:root { --chart-1: #2a78d6; --chart-2: #6a4fc9; --chart-3: #14895f; --chart-4: #d0661f; --st-notrun: #8a94a3; --st-progress: #2a78d6; --st-blocked: #d99400; --st-failed: #d03b3b; --st-passed: #1d9a3e; --st-planned: #6b9bd6; --st-unverified: #c9d1dc; }
:root[data-theme=dark] { --chart-1: #6aa7f0; --chart-2: #a897f2; --chart-3: #4cc79a; --chart-4: #f0955a; --st-notrun: #7d8899; --st-progress: #5b9cf0; --st-blocked: #e0a83a; --st-failed: #f07b72; --st-passed: #4cc47a; --st-planned: #8fb4e6; --st-unverified: #4a5878; }

.matrix-root { padding: 4px 0; word-break: break-word; }
.mx-tabs { display: flex; border-bottom: 1px solid var(--line); }
.mx-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.mx-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.mx-summary { white-space: nowrap; }
.matrix-wrap { background: var(--panel); }
table.matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.matrix th, .matrix td { border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.matrix .mx-corner { inset-inline-start: 0; z-index: 4; min-width: 260px; max-width: 320px; text-align: start; padding: 8px 10px; font-weight: 400; color: var(--muted); }
.matrix .mx-col { width: 30px; min-width: 30px; max-width: 30px; height: 170px; padding: 6px 0; }
.matrix.wide-cells .mx-col { width: 70px; min-width: 70px; max-width: 70px; }
.mx-col-label { display: block; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto; color: var(--text); font-weight: 500; }
.mx-col.gap { background: var(--danger-bg) !important; }
.mx-count-h { min-width: 48px; padding: 0 6px 8px; font-size: 11px; color: var(--muted); }
.matrix .mx-row { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--panel); text-align: start; font-weight: 400; padding: 5px 10px; max-width: 320px; min-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-end: 1px solid var(--line); }
.matrix .mx-row .swatch { display: inline-block; margin-inline-end: 6px; vertical-align: 0; }
.matrix .mx-row a { color: var(--text); }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: var(--hover); }
.matrix tr.gap .mx-row { background: var(--danger-bg); box-shadow: inset 3px 0 0 var(--danger); }
.mx-cell { text-align: center; cursor: pointer; height: 26px; color: var(--ok); font-weight: 700; font-size: 14px; }
.mx-cell:hover { background: var(--accent-2) !important; outline: 1px solid var(--accent); outline-offset: -1px; }
.mx-cell.on { background: var(--ok-bg); }
.mx-cell.mx-diag { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--surface-3) 3px, var(--surface-3) 5px) !important; cursor: default; outline: 0 !important; }
.mx-relname { display: block; font-size: 9.5px; font-weight: 500; line-height: 1.15; color: var(--ok); white-space: normal; }
.mx-count { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; }
.matrix tfoot th, .matrix tfoot td { position: sticky; bottom: 0; background: var(--panel-2); border-top: 1px solid var(--line); font-weight: 600; z-index: 1; }
.matrix tfoot .mx-row { z-index: 3; }
.matrix tfoot td.gap { color: var(--danger); }
.matrix .mx-spacer { padding: 0 !important; border: 0 !important; background: transparent !important; }
.matrix thead th.mx-spacer, .matrix tfoot .mx-spacer { background: var(--panel-2) !important; }
.matrix.mx-virtual tbody tr[data-row] { height: 27px; }
.matrix.mx-virtual tbody tr[data-row] > * { height: 26px; max-height: 26px; padding-top: 0; padding-bottom: 0; white-space: nowrap; overflow: hidden; }
.matrix.mx-virtual .mx-relname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-cell.mx-locked { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 4px, var(--surface-3) 4px, var(--surface-3) 6px); cursor: not-allowed; }
.mx-gapmark { color: var(--danger); font-weight: 700; }
.mx-doubt { font-size: 10px; font-weight: 700; margin-inline-start: 1px; }
.mx-cell.mx-locked:hover { outline: 0 !important; background: var(--surface-3) !important; }
.matrix th.mx-col, .matrix tbody th.mx-row { cursor: pointer; }
.matrix th.mx-hl { background: var(--accent-2) !important; color: var(--accent); }
.matrix td.mx-hl:not(.on):not(.mx-assist):not(.mx-locked) { background: color-mix(in srgb, var(--sel-bg) 55%, transparent) !important; }
.matrix th.mx-selected { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-2) !important; }
.matrix th.mx-hit { background: var(--warn-bg) !important; }
.matrix th.mx-hit-cur { background: color-mix(in srgb, var(--amber) 55%, var(--surface)) !important; }
.mx-cmt { font-size: 10px; margin-inline-end: 3px; }
.mx-readout { color: var(--text); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-error { margin: 8px 12px; padding: 8px 12px; border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger); border-radius: var(--r-ctl); font-size: var(--fs-sm); }
.mx-ok { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--ok); background: var(--ok-bg); color: var(--ok); border-radius: var(--r-ctl); }
.mx-imp-sum { display: flex; gap: 16px; margin: 8px 0; font-weight: 600; }
.mx-imp-sum .ok { color: var(--ok); }
.mx-imp-sum .bad { color: var(--danger); }
.mx-imp-sec { margin: 6px 0; }
.mx-imp-sec summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.mx-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.mx-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 360px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm, 13px); cursor: pointer; }
.mx-chip:hover:not(:disabled) { border-color: var(--accent); }
.mx-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mx-chip:disabled { opacity: .6; cursor: default; }
.mx-chip-k { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mx-chip-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-chip-caret { color: var(--muted); font-size: 10px; }
.mx-by { color: var(--muted); }
.mx-relfield { display: inline-flex; align-items: center; gap: 6px; }
.mx-rel { max-width: 220px; }
.mx-axis-form { min-width: min(360px, 100%); }
.mx-root-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mx-rootbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.mx-rootbtn:hover { color: var(--accent); }
.mx-add { margin-top: 4px; padding: 0 6px; font-size: 11px; }
.matrix .mx-foot { display: flex; align-items: center; gap: 8px; }
.mx-empty .btn { margin-top: 8px; }
.mx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 12px; border-bottom: 1px solid var(--line-2); color: var(--text); }
.mx-lg { display: inline-flex; align-items: center; gap: 5px; }
.mx-lg-cell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 16px; border: 1px solid var(--line); font-weight: 700; font-size: 12px; color: var(--ok); }
.mx-lg-cell.on { background: var(--ok-bg); }
.mx-lg-cell.mx-locked { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 4px, var(--surface-3) 4px, var(--surface-3) 6px); }
.mx-cell.on.mx-suspect, .mx-lg-cell.mx-suspect { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.mx-cell.on.mx-attr, .mx-lg-cell.mx-attr { position: relative; }
.mx-cell.on.mx-attr::after, .mx-lg-cell.mx-attr::after { content: ''; position: absolute; top: 0; inset-inline-end: 0; border-style: solid; border-block-width: 0 6px; border-inline-width: 0 6px; border-block-color: transparent; border-inline-color: transparent var(--accent); }
.mx-cell.on[class*="mx-tc-"], .mx-lg-cell[class*="mx-tc-"] { --c: var(--st-notrun); color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.mx-tc-passed { --c: var(--st-passed) !important; } .mx-tc-failed { --c: var(--st-failed) !important; } .mx-tc-blocked { --c: var(--st-blocked) !important; }
.mx-tc-inprogress { --c: var(--st-progress) !important; } .mx-tc-notrun { --c: var(--st-notrun) !important; }
.mx-cell.mx-assist { outline: 1px dashed var(--amber); outline-offset: -3px; }
.mx-cell.mx-prop-add:not(.on) { color: var(--ok); background: color-mix(in srgb, var(--ok-bg) 60%, transparent); }
.mx-cell.mx-prop-rm { background: var(--danger-bg) !important; color: var(--danger); }
.mx-cell.mx-prop-on { outline: 2px solid var(--amber); }
.mx-review { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.mx-review.hidden { display: none; }
.mx-rv-head { display: flex; align-items: baseline; gap: 6px; }
.mx-rv-group h4 { margin: 4px 0; font-size: 12px; color: var(--muted); }
.mx-rv-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; padding: 6px 8px; margin-bottom: 4px; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--ok); border-radius: var(--r-ctl); }
.mx-rv-item.rm { border-inline-start-color: var(--danger); }
.mx-rv-main { display: flex; gap: 6px; align-items: flex-start; }
.mx-rv-reason { grid-column: 1; }
.mx-rv-show { grid-row: 1; grid-column: 2; }
.mx-rv-item .ai-risk-why { grid-column: 1 / -1; }
.mx-rv-foot { position: sticky; bottom: 0; display: flex; gap: 8px; padding-top: 8px; background: var(--panel); border-top: 1px solid var(--line-2); }

.intel-summary { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.intel-pct { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.intel-pct.intel-danger { color: var(--danger); } .intel-pct.intel-warn { color: var(--warn); } .intel-pct.intel-ok { color: var(--ok); }
.intel-layout { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.intel-facets { display: flex; flex-direction: column; gap: var(--sp-3); position: sticky; top: 0; }
.intel-facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.intel-facet legend { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 0 4px; }
.intel-facet-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: var(--fs-sm); }
.intel-facet-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intel-facet-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.intel-facet[data-facet=rule] { max-height: 320px; overflow: auto; }
.intel-list { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 0 var(--sp-2); min-width: 0; }
.intel-issue.ignored .intel-issue-main { opacity: .7; }
.intel-body { padding: 6px 8px; max-height: 520px; overflow: auto; }
.intel-ok { padding: 8px; color: var(--ok); }
.intel-limit { margin-bottom: var(--sp-3); }
.intel-limit input { width: 90px; }
.intel-rule { border-bottom: 1px solid var(--line-2); }
.intel-rule-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; text-align: start; padding: 7px 4px; color: var(--text); cursor: pointer; }
.intel-rule-head:hover { background: var(--accent-2); }
.intel-sev.warn { color: var(--brand-900); }
.intel-sev { color: var(--surface); font-size: var(--fs-xs); font-weight: 700; padding: 1px 6px; border-radius: var(--r-sm); flex: none; }
.intel-num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 74px; }
.intel-heading { flex: 1; font-size: 13px; }
.intel-count { background: var(--line-2); border-radius: 10px; padding: 0 8px; font-size: 12px; font-weight: 600; flex: none; }
.intel-issues { padding-block: 2px 8px; padding-inline: 12px 4px; }
.intel-desc { margin: 2px 0 6px; }
.intel-issue { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px dashed var(--line-2); }
.intel-issue-main { flex: 1; min-width: 0; }
.intel-fix-head { margin-bottom: 10px; }
.intel-fix-related { max-height: 200px; overflow: auto; border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 8px; margin-bottom: 8px; }
.intel-settings { max-height: 60vh; overflow: auto; }
.intel-settings h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.intel-set-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.intel-set-row > span:nth-child(2) { flex: 1; }
.intel-set-row select { width: 110px; }
.rs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.rs-toolbar p { margin: 0; flex: 1 1 280px; }
.rs-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-set { border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.rs-set-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-set-head .grow { flex: 1; }
.rs-rules { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.rs-rules th { text-align: start; font-weight: 600; font-size: 12px; color: var(--muted); padding: 3px 6px; border-bottom: 1px solid var(--line-2); }
.rs-rules td { padding: 4px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; overflow-wrap: anywhere; }
.rs-row-actions { white-space: nowrap; text-align: end; }
.rs-json { font-family: var(--mono, ui-monospace, monospace); font-size: 12px; width: 100%; }
.rb-form .rb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.rb-form .rb-row > .field { flex: 1 1 200px; min-width: 0; }
.rb-form .rb-row > .checkbox { align-self: center; margin-top: 14px; }
.rb-form [hidden] { display: none !important; }
.rb-preview { padding: 6px 8px; border-radius: 4px; background: var(--bg-2, rgba(127,127,127,.08)); min-height: 1.6em; overflow-wrap: anywhere; }
@media (max-width: 800px) { .intel-layout { grid-template-columns: 1fr; } .intel-facets { position: static; } }

.charts-grid { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.chart-card .card-head { font-size: 14px; }
.chart-card .icon-btn.small { font-size: 16px; }
.chart-body { min-height: 200px; }
.chart-svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart-mark:hover path, .chart-mark:hover rect:not([fill="transparent"]), .chart-mark:hover circle { filter: brightness(1.08) drop-shadow(0 0 2px rgba(0,0,0,.25)); }
.chart-mark.link { cursor: pointer; }
.chart-table { font-size: 13px; }

.tc-page .tc-legend { margin-top: var(--sp-3); }
.tc-table tr.selected td { background: var(--sel-bg); }
.tc-table tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--sel-edge); }
.tc-focus { animation: tc-focus 1.6s ease-out; }
@keyframes tc-focus { 0%, 40% { box-shadow: 0 0 0 3px var(--focus-halo); } 100% { box-shadow: none; } }
.tc-bar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); gap: 2px; }
.tc-bar span { display: block; height: 100%; }
.tc-mini { width: 140px; }
.tc-mini .tc-bar { height: 8px; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.tc-filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); padding: 0 10px; font-size: var(--fs-xs); color: var(--text); }
.tc-filter:hover { background: var(--hover-bg); }
.tc-filter.active { border-color: var(--sel-edge); background: var(--sel-bg); color: var(--text); font-weight: 600; }
.tc-pill { --c: var(--st-notrun); display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--text); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.tc-suite .card-head { flex-wrap: wrap; }
.tc-suite .table-wrap { overflow-x: auto; }
.tc-table td { vertical-align: top; }
.tc-table td textarea { min-width: 170px; font-size: 12px; }
.tc-name { min-width: 220px; max-width: 360px; }
.tc-name a { font-weight: 600; }
.tc-table .reg-cell.tc-text { display: block; width: 100%; min-width: 170px; max-width: 320px; white-space: normal; margin: 0; padding: 2px 6px; }
.tc-text-v { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; font-size: 12px; }
.tc-status .reg-cell + .tc-rerun { margin-inline-start: 6px; }
.tc-verifies { min-width: 160px; }
.tc-req { display: inline-flex; align-items: center; gap: 2px; background: var(--chip-bg); border: 1px solid var(--chip-line); color: var(--chip-text); border-radius: var(--r-pill); padding-block: 0; padding-inline: 8px 2px; margin-block: 0 3px; margin-inline: 0 4px; font-size: var(--fs-xs); }
.tc-req button { border: 0; background: none; color: var(--muted); padding: 0 4px; opacity: 0; }
.tc-req:hover button, .tc-req button:focus-visible { opacity: 1; }
.tc-unv-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.tc-coverage { margin-bottom: 16px; }
.tc-run h3 { margin-top: 10px; }
.tc-run-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tc-run-bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.tc-run-bar span { display: block; height: 100%; background: var(--accent); }
.tc-run-text { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 10px; }
.tc-run-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.btn.tc-pass { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.btn.tc-fail { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.tc-blocked { color: var(--warn); border-color: var(--warn); }

.schema-side { width: 280px !important; }
.schema-search { padding: 12px 14px 0; position: sticky; top: 0; background: var(--panel); z-index: 1; padding-bottom: 6px; }
.schema-page { width: 100%; }
.schema-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.schema-head h2 { margin: 0; font-size: var(--fs-xl); }
.wf-sub { font-size: 1em; }
.schema-page > .card { margin-bottom: 16px; }
.card-body.flush { padding: 0; overflow-x: auto; }
.schema-table th { cursor: default; }
.schema-table td:first-child { white-space: nowrap; }
.schema-table td code { font-size: 11.5px; background: var(--line-2); padding: 1px 5px; border-radius: 3px; }
.schema-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-inline-start-width: 3px; border-radius: 3px; padding: 0 6px; margin-block: 1px; margin-inline: 0 4px; font-size: 12px; color: var(--text); background: var(--panel); white-space: nowrap; }
.schema-chip:hover { background: var(--accent-2); text-decoration: none; }
.schema-subs { margin-top: 10px; }
.schema-result { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line-2); }

.vc-page > .card { margin-bottom: 16px; }
.vc-table th { cursor: default; }
.vc-actions { display: flex; gap: 4px; justify-content: flex-end; }
.vc-pick { align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vc-arrow { font-size: 20px; color: var(--muted); padding-bottom: 16px; }
.vc-tiles { margin: 4px 0 16px; }
.vc-section { margin-top: 16px; }
.vc-section h3 { font-size: 14px; margin-bottom: 6px; }
.vc-diff td { font-size: 12.5px; }
.vc-from { color: var(--danger); background: var(--danger-bg); max-width: 380px; white-space: pre-wrap; }
.vc-to { color: var(--ok); background: var(--ok-bg); max-width: 380px; white-space: pre-wrap; }
.vc-item { padding: 3px 8px; border-radius: 3px; margin-bottom: 2px; font-size: 13px; }
.vc-item.added { background: var(--ok-bg); }
.vc-item.removed { background: var(--danger-bg); }
.vc-rel { display: inline; }

.split-btn { display: inline-flex; }
.split-btn .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.split-btn .btn + .btn { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 1px solid rgba(255,255,255,.35); padding: 6px 8px; }
.chart-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.chart-tile { position: relative; cursor: pointer; overflow: hidden; transition: box-shadow .12s; }
.chart-tile:hover { box-shadow: var(--shadow); }
.chart-thumb { height: 150px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 6px; }
.chart-thumb svg { width: 100%; height: 100%; }
.chart-thumb-ph { color: var(--muted); font-size: 13px; }
.chart-tile-body { padding: 8px 12px 10px; }
.chart-tile-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-tile-menu { position: absolute; inset-inline-end: 6px; top: 6px; background: var(--panel) !important; border: 1px solid var(--line) !important; opacity: .85; }
.chart-tile-menu:hover { opacity: 1; }
.chart-editor .content { background: var(--bg); }
.chart-editor-body { flex: 1; overflow: auto; padding: 12px; min-height: 0; }
.chart-canvas { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; max-width: 1100px; }
.chart-canvas svg { width: 100%; height: auto; display: block; }
.xy-pt.sel { filter: drop-shadow(0 0 3px rgba(255, 122, 0, .7)); }
.chart-legend-item.off { opacity: .6; }
.chart-side .pad { padding: 10px 14px; }
.chart-selhead { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.chart-selactions { padding: 8px 14px; }
.chart-roottab h4 { margin: 4px 0 10px !important; }
.chart-set { border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px 4px; margin: 0 0 10px; }
.chart-set legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.chart-set .row { flex-wrap: wrap; align-items: flex-end; }
.chart-settings { max-height: 64vh; overflow: auto; }
.radar-spoke-item { cursor: grab; }
.radar-dragging, .radar-dragging .radar-spoke-item { cursor: grabbing; }
.radar-chart-panel .radar-color { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.radar-chart-panel .radar-color-pick { display: flex; align-items: center; gap: 8px; flex: 1; }
.radar-chart-panel .radar-color-pick input[type=color] { width: 40px; height: 24px; padding: 0; }
.sp-chart-panel .sp-fam-group { margin: 4px 0 8px; }
.sp-chart-panel .sp-fam-head { margin: 4px 0; }
.sp-chart-panel .sp-relrow { display: flex; align-items: center; gap: 6px; padding-inline-start: 20px; }
.sp-chart-panel .sp-relrow input[type=color] { width: 32px; height: 22px; padding: 0; }
.sp-chart-panel .sp-spacing-val { min-width: 48px; text-align: end; font-variant-numeric: tabular-nums; }
.sp-chart-panel input[type=range] { flex: 1; }
.chart-section { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.chart-section .chart-set .field { margin: 4px 0; }
.chart-section .chart-set input[type=color] { width: 48px; height: 24px; padding: 0; }
.wiz-steps { display: flex; gap: 14px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.wiz-steps .on { color: var(--accent); font-weight: 600; }
.xy-sets { display: flex; gap: 14px; min-height: 280px; }
.xy-setlist { width: 190px; flex: none; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--line-2); padding-inline-end: 10px; }
.xy-setbtn { display: flex; align-items: center; gap: 6px; text-align: start; background: none; border: 1px solid transparent; border-radius: 4px; padding: 5px 8px; color: var(--text); }
.xy-setbtn.active { border-color: var(--accent); background: var(--accent-2); }
.xy-setbtn .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.xy-setedit { flex: 1; min-width: 0; }
.xy-pts { max-width: 420px; margin: 6px 0; }
.xy-pts input { width: 140px; }
.xy-ycols { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.xy-preview svg { width: 100%; max-width: 560px; height: auto; border: 1px solid var(--line-2); border-radius: 4px; }
.rb-table input { min-width: 0; width: 100%; }
.tc-changed td { background: var(--warn-bg) !important; }
.tc-attr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.tc-compare { margin-top: 14px; }
.tc-cycles .grid-table { margin-bottom: 8px; }
.chart-extra { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
[data-theme=dark] .tc-run-text { background: var(--panel-2); border-color: var(--line); }

.rs-edit h4 { margin: 12px 0 4px; font-size: 13px; }
.rs-top { gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.rs-axis td { padding: 3px 4px; vertical-align: middle; }
.rs-axis { width: 100%; }
.rs-axis td:nth-child(2) input { width: 150px; }
.rs-axis td:last-child { width: 55%; }
.rs-axis td:last-child input { width: 100%; min-width: 180px; }
.rs-levels { display: flex; flex-direction: column; gap: 4px; }
.rs-levels .row { gap: 6px; align-items: center; }
.rs-levels > .btn { align-self: flex-start; }
.rs-top .field { margin: 0; }
.rs-top .field > span { min-height: 18px; }
.rs-levels input[type=color] { width: 32px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: none; }
.rs-grid { display: grid; gap: 2px; align-items: stretch; max-width: 560px; }
.rs-ax { font-size: 11px; color: var(--muted); padding: 4px 6px; display: flex; align-items: center; justify-content: flex-end; text-align: end; }
.rs-ax.col { justify-content: center; text-align: center; }
.rs-cell { border: 0; border-radius: var(--r-sm); min-height: 30px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand-900); cursor: pointer; }
.rs-cell:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.rs-names { max-width: 760px; }
.rs-name-cell { display: grid; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.rs-name-cell input[type=color] { width: 28px; height: 22px; padding: 0; border: 0; background: none; }
.risk-cell-rows { display: grid; gap: 2px; margin: 4px 0; }
.risk-cell-row { display: flex; align-items: center; gap: 6px; width: 100%; text-align: start; background: none; border: 0; border-radius: var(--r-sm); padding: 4px 6px; color: var(--text); cursor: pointer; }
.risk-cell-row:hover, .risk-cell-row:focus-visible { background: var(--accent-2); }
.risk-cell-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-banner { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 8px 12px; border: 1px solid var(--warn); background: var(--warn-bg); color: var(--text); border-radius: var(--r-ctl); font-size: var(--fs-sm); }
.rb-banner span { flex: 1; }
.rb-table td { vertical-align: middle; }
.rb-summary { padding: 4px 12px; }
.rr-wrap { overflow: auto; }
.rr-text { width: 120px; }
.rr-table tr.selected td { background: var(--sel-bg); }
.rr-table tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--sel-edge); }
.rr-table tbody tr { cursor: pointer; }
.rr-table tbody tr:focus-visible { outline-offset: -2px; box-shadow: none; }
.rr-table .risk-chip { white-space: nowrap; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; white-space: nowrap; }
.rr-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.rr-table th.sorted { color: var(--accent); }
.rr-table td { vertical-align: middle; }
.rr-table select.input.small { min-width: 96px; }
.rr-trigger { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-bd { text-decoration: none; margin-inline-start: 6px; font-size: var(--fs-xs); padding: 0 6px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); white-space: nowrap; }

.tc-vlegend { margin-top: 8px; }
.tc-methods { display: inline-flex; gap: 2px; }
.tc-mbtn { width: 24px; height: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; padding: 0; cursor: pointer; }
.tc-mbtn.on { background: var(--sel-bg); border-color: var(--sel-edge); color: var(--text); }
.tc-unv-row .tc-pill { min-width: 84px; text-align: center; }
.tc-steps-btn { margin-top: 4px; }
.tc-evidence { margin-top: 3px; }
.tc-issue { margin-top: 3px; }
.tc-steps { width: 100%; }
.tc-steps td { vertical-align: top; }
.tc-steps textarea { width: 100%; min-width: 140px; }
.tc-run-session { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.tc-run-meta { gap: 16px; align-items: flex-start; flex-wrap: wrap; }
@media (max-width: 700px) { .tc-run-session { grid-template-columns: 1fr; } }
.mx-filter { width: 180px; }
.mx-find { width: 130px; }
.mx-xlinks:empty { display: none; }
.mx-xl { border-top: 1px solid var(--line); background: var(--panel); }
.mx-xl > summary { padding: 6px 10px; cursor: pointer; }
.mx-xl-body { max-height: 30vh; overflow: auto; padding: 0 10px 8px; }

.libraries-page .card + .card { margin-top: var(--sp-3); }
.lib-none-used { margin: 0; padding: var(--sp-2) var(--sp-3) 0; }
.lib-origin { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel-2); }
.lib-browse-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.lib-compare td.lib-diff { max-width: 60ch; overflow-wrap: anywhere; }
.lib-chip { margin-inline-start: var(--sp-1); background: var(--panel-2); border: 1px dashed var(--line-strong, var(--line)); color: var(--text-2, inherit); font-size: 11px; }
.lib-mount-box { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.lib-page-note { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--panel-2); }
.cov-page .cov-filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.cov-page td.cov-links { max-width: 60ch; }
.cov-page .cov-proj { display: block; }
.cov-page tr[data-covered="0"] td:first-child { border-inline-start: 3px solid var(--warn, #b26a00); }

.tr-import .tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.tr-import .tr-preview { max-height: 320px; overflow: auto; }
.tr-import .tr-list ul { max-height: 160px; overflow: auto; margin: 4px 0 0; padding-inline-start: 18px; }
.tc-table td.tc-status { white-space: nowrap; }
.tc-table td.tc-status .tc-reused { white-space: normal; min-width: 14em; max-width: 24em; margin-top: 4px; }
.tc-table td.tc-status .tc-reused .btn { margin-inline-start: 4px; }
.tc-table td.tc-status [data-ctl=tc-reuse] { display: block; margin-top: 4px; }
.grid-table.rr-table:not(.sf-table) th, .grid-table.rr-table:not(.sf-table) td { padding-inline-start: 6px; padding-inline-end: 6px; }
.grid-table.rr-table:not(.sf-table) th, .grid-table.rr-table:not(.sf-table) th.sortable, .grid-table.rr-table:not(.sf-table) .th-sort { white-space: normal; text-align: start; }
.rr-table:not(.sf-table) .reg-cell { white-space: normal; text-align: start; }
.rr-table:not(.sf-table) .reg-links { display: block; width: 120px; font-size: 0; }
.rr-table:not(.sf-table) .reg-links > a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.rr-table:not(.sf-table) .reg-links > .reg-more { font-size: var(--fs-sm); }
.rr-table:not(.sf-table) .rr-trigger { max-width: 120px; }
.schema-table .wf-act { margin-inline-start: 6px; }
