/* Shared look for the code helper tools (DAX formatter, M explainer, SQL formatter). Uses the site tokens only. */
.cd-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }
.cd-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.cd-h { font-size: var(--fs-base); margin: 22px 0 8px; }
.cd-note { font-size: var(--fs-sm); color: var(--muted); margin: 8px 0; max-width: 80ch; }
.cd-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cd-findings li { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface-2, var(--bg)); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.cd-findings li.cd-err { border-left-color: #dc2626; }
.cd-findings li.cd-warn { border-left-color: #d97706; }
.cd-findings li.cd-tip { border-left-color: var(--accent); }
.cd-fns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cd-fns li { font-family: var(--mono, monospace); font-size: var(--fs-xs); padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2, var(--bg)); }
.cd-outline { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.cd-outline li { overflow-wrap: anywhere; }
.cd-scroll { overflow-x: auto; max-width: 100%; }
.cd-scroll .tool-table { min-width: 560px; }
.cd-scroll .tool-table td, .cd-scroll .tool-table th { vertical-align: top; }
.cd-scroll .tool-table code { font-family: var(--mono, monospace); font-size: var(--fs-xs); }
.cd-result-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cd-result-head strong { font-size: var(--fs-sm); }
.cd-tool-notes h2 { font-size: var(--fs-lg); margin-top: 34px; }
.cd-tool-notes h3 { font-size: var(--fs-base); margin: 18px 0 4px; }
.cd-tool-notes p, .cd-tool-notes li { max-width: 75ch; }
.cd-tool-notes ul { padding-left: 1.2em; }
@media (max-width: 480px) { .tool-wrap { padding-left: 16px; padding-right: 16px; } }
