/* Vendor Risk Assessment (TPRM) web app — styles. System fonts, CSS tokens, light/dark, print. MIT License. */

:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-alt: #eef1f6;
  --text: #1b2230;
  --muted: #5c6678;
  --border: #d5dbe5;
  --accent: #2f5597;
  --accent-contrast: #ffffff;
  --danger: #a43434;
  --focus: #d9a23a;
  --t1: #c00000; --t1-fg: #fff;
  --t2: #f4b183; --t2-fg: #7f3200;
  --t3: #c6e0b4; --t3-fg: #1e4620;
  --low: #c6e0b4; --low-fg: #1e4620;
  --medium: #ffe699; --medium-fg: #7f6000;
  --high: #f4b183; --high-fg: #7f3200;
  --critical: #c00000; --critical-fg: #fff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151c; --surface: #1a2029; --surface-alt: #232a35; --text: #e6e9ee; --muted: #9aa5b5; --border: #353d49;
    --accent: #7ea6e6; --accent-contrast: #0e1217; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #11151c; --surface: #1a2029; --surface-alt: #232a35; --text: #e6e9ee; --muted: #9aa5b5; --border: #353d49;
  --accent: #7ea6e6; --accent-contrast: #0e1217; --shadow: none;
}

* { box-sizing: border-box; }
html { font-family: var(--font); line-height: 1.5; }
body { margin: 0; background: var(--bg); color: var(--text); }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
h1 { font-size: 1.5rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 0.92rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tagline { color: var(--muted); margin: 4px 0 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 18px 0; }

.btn { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 0.85rem; }
.file-btn { position: relative; display: inline-block; }
.file-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 16px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-alt); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--accent); }
.panel[hidden] { display: none; }
.panel .card:first-child { margin-top: 0; border-top-left-radius: 0; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
label { display: grid; gap: 4px; font-size: 0.92rem; font-weight: 600; }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); min-width: 0; }
textarea { resize: vertical; min-height: 40px; width: 100%; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.kpi { background: var(--surface-alt); border-radius: 8px; padding: 10px 12px; }
.kpi b { display: block; font-size: 1.45rem; line-height: 1.2; }
.kpi small { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); position: sticky; top: 0; z-index: 1; }
td.id { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
td select, td input { width: 100%; min-width: 90px; }
td.w { text-align: center; font-weight: 700; }
tr.domain-row td { background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 700; }
tr.w3no td { background: color-mix(in srgb, var(--danger) 9%, transparent); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill[data-v="Tier 1"] { background: var(--t1); color: var(--t1-fg); }
.pill[data-v="Tier 2"] { background: var(--t2); color: var(--t2-fg); }
.pill[data-v="Tier 3"] { background: var(--t3); color: var(--t3-fg); }
.pill[data-v="Low"] { background: var(--low); color: var(--low-fg); }
.pill[data-v="Medium"] { background: var(--medium); color: var(--medium-fg); }
.pill[data-v="High"] { background: var(--high); color: var(--high-fg); }
.pill[data-v="Critical"] { background: var(--critical); color: var(--critical-fg); }
.pill[data-v="Required"] { background: var(--t1); color: var(--t1-fg); }
.pill[data-v="Recommended"] { background: var(--medium); color: var(--medium-fg); }
.pill[data-v="Optional"] { background: var(--surface-alt); color: var(--muted); }
.pill[data-v="overdue"] { background: var(--critical); color: var(--critical-fg); }
.pill[data-v="missing"] { background: var(--critical); color: var(--critical-fg); }

.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 220px 1fr 46px; align-items: center; gap: 10px; font-size: 0.88rem; }
.bar .track { height: 10px; background: var(--surface-alt); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); }
.bar .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.counts table { font-size: 0.88rem; }
.vendor-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 8px; }
.vendor-bar label { min-width: 240px; }
.hint { color: var(--muted); font-size: 0.8rem; }
.status { min-height: 1.4em; color: var(--muted); margin-top: 10px; }
.site-footer { color: var(--muted); font-size: 0.85rem; padding: 10px 0 30px; }

@media (max-width: 700px) { th, td { padding: 6px 5px; } .bar { grid-template-columns: 120px 1fr 40px; } }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .intro, .actions, .tabs, .skip-link, .btn, .site-footer { display: none !important; }
  .panel[hidden] { display: block; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 12px 0; break-inside: avoid; }
  th { position: static; }
  select, input, textarea { border: 0; padding: 0; background: transparent; appearance: none; }
}

/* sample-data banner shown on first visit */
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.demo-banner[hidden] { display: none; }

/* VendorLens — executive workspace. Local assets only; no external fonts. */
:root {
  --bg: #f5f8fc; --surface: #fff; --surface-alt: #f0f5fc;
  --text: #223f58; --muted: #587086; --border: #dce6f1;
  --accent: #2563d9; --accent-contrast: #fff; --focus: #3675dc;
  --radius: 18px; --shadow: 0 5px 24px #23496c06;
  --t1: #fff0ec; --t1-fg: #a83e26; --t2: #fff7dd; --t2-fg: #815d12;
  --t3: #e4f6ef; --t3-fg: #19634f; --low: #e4f6ef; --low-fg: #19634f;
  --medium: #fff7dd; --medium-fg: #815d12; --high: #fff0ec; --high-fg: #a83e26;
  --critical: #ffebf1; --critical-fg: #a52c52;
}
html { font-size: 14px; }
body { background: radial-gradient(ellipse at 95% 12%, #e8f1ff 0, transparent 34%), var(--bg); }
.wrap { width: min(1500px, 100% - 80px); }
.site-header { padding: 20px 0; background: var(--surface); }
.header-row { align-items: center; }
.brand { display: flex; gap: 13px; align-items: center; }
.brand-mark { display: grid; place-items: center; position: relative; width: 44px; height: 47px; border-radius: 14px 14px 20px 20px; background: #e7efff; color: #2563d9; font-size: 28px; font-weight: 800; }
.brand-mark span { position: absolute; font-size: 15px; bottom: 2px; right: 4px; color: #12846d; }
.brand-title { font-size: 23px; font-weight: 800; letter-spacing: -1px; margin: 0; line-height: 1.2; }
.brand-title span { color: var(--accent); }
.brand-subtitle { color: var(--muted); font-size: 9px; letter-spacing: 1.6px; margin: 4px 0 0; font-weight: 650; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.privacy-badge { color: #21735e; font-size: 11px; font-weight: 650; background: #eaf8f2; border: 1px solid #d5eee2; border-radius: 20px; padding: 7px 12px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0 22px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.8px; margin-bottom: 10px; }
h1 { font-size: clamp(25px, 2.6vw, 37px); letter-spacing: -1.3px; line-height: 1.2; font-weight: 750; }
.tagline { margin-top: 12px; font-size: 13px; }
.workbook-link { text-decoration: none; white-space: nowrap; background: var(--surface); }
.framework-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.framework-strip span { padding: 4px 10px; font-size: 10px; font-weight: 650; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--surface); }
.framework-strip span:first-child { border: 0; padding-left: 0; background: none; letter-spacing: 1px; font-size: 9px; }
.demo-banner { margin: 0 0 12px; border-color: #d7e6fc; background: #edf4ff; padding: 12px 17px; border-radius: 12px; font-size: 12px; color: #405f81; }
.demo-banner strong { color: #275aa4; }
.demo-banner .btn { font-size: 11px; padding: 7px 12px; background: #fff; }
.card { padding: 25px; border-color: var(--border); box-shadow: var(--shadow); }
.intro { margin: 0 0 24px; padding: 13px 18px; background: transparent; box-shadow: none; border-style: dashed; }
.intro summary { cursor: pointer; font-weight: 650; font-size: 12px; }
.intro summary .muted { font-size: 12px; font-weight: 400; }
.intro p { margin-top: 14px; line-height: 1.9; font-size: 12px; }
.tabs { border-bottom: 1px solid var(--border); gap: 24px; margin: 0 0 25px; }
.tabs button { display: inline-flex; align-items: center; gap: 9px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 13px 3px 16px; background: transparent; font-size: 13px; font-weight: 650; }
.tabs button span { font-size: 19px; line-height: 1; }
.tabs button[aria-selected="true"] { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--accent); }
.panel .card:first-child { border-radius: var(--radius); }
#panel-dashboard > .card { padding: 0; background: transparent; border: none; box-shadow: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 20px; }
.section-heading .eyebrow { font-size: 9px; margin-bottom: 5px; }
h2 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 0; }
h3 { font-size: 15px; letter-spacing: -.2px; }
.section-note { font-size: 11px; color: var(--muted); }
.btn { padding: 10px 16px; font-size: 12px; border-radius: 9px; transition: background .15s, box-shadow .15s; background: var(--surface); }
.btn:hover { background: var(--surface-alt); box-shadow: 0 3px 10px #23496c0c; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: #1e54bc; }
.btn-danger { border-color: #f0d9dc; color: #a52c52; }
.btn-sm { padding: 7px 10px; font-size: 11px; }
.kpis { gap: 15px; margin: 0 0 24px; }
#d-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
.kpi { position: relative; overflow: hidden; padding: 21px; border: 1px solid var(--border); background: var(--surface); border-radius: 15px; box-shadow: var(--shadow); }
.kpi::before { content: ''; display: block; width: 25px; height: 4px; background: #4d88ef; border-radius: 4px; margin-bottom: 15px; }
.kpi:nth-child(2)::before { background: #7b6ae0; }
.kpi:nth-child(3)::before { background: #dd9963; }
.kpi:nth-child(4)::before { background: #32a38a; }
.kpi:nth-child(5)::before { background: #d36e87; }
.kpi > small:first-child { display: block; font-size: 11px; font-weight: 650; }
.kpi b { font-size: clamp(24px,2.4vw,34px); font-weight: 750; letter-spacing: -1px; margin: 8px 0; color: var(--text); }
.kpi > small:last-child { font-size: 10px; display: block; min-height: 28px; }
.counts { grid-template-columns: 1fr 1fr 1.08fr; gap: 20px; margin-bottom: 28px; }
.distribution { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; }
.distribution h3 { margin: 0 0 6px; font-size: 15px; }
.distribution > .muted { font-size: 11px; margin-bottom: 21px; }
.distribution-row { margin: 0 0 15px; }
.distribution-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.distribution-label > span:last-child { font-size: 11px; color: var(--muted); }
.distribution progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface-alt); appearance: none; color: #74bba6; }
.distribution progress::-webkit-progress-bar { background: var(--surface-alt); border-radius: 8px; }
.distribution progress::-webkit-progress-value { background: #74bba6; border-radius: 8px; }
.distribution progress::-moz-progress-bar { background: #74bba6; border-radius: 8px; }
[data-rating="Tier 1"] progress::-webkit-progress-value, [data-rating="High"] progress::-webkit-progress-value { background: #e7a68b; }
[data-rating="Tier 2"] progress::-webkit-progress-value, [data-rating="Medium"] progress::-webkit-progress-value { background: #dec176; }
[data-rating="Critical"] progress::-webkit-progress-value { background: #d986a0; }
[data-rating="Tier 1"] progress::-moz-progress-bar, [data-rating="High"] progress::-moz-progress-bar { background: #e7a68b; }
[data-rating="Tier 2"] progress::-moz-progress-bar, [data-rating="Medium"] progress::-moz-progress-bar { background: #dec176; }
[data-rating="Critical"] progress::-moz-progress-bar { background: #d986a0; }
.distribution-footnote { margin: 18px 0 0; color: var(--muted); font-size: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.queue-item { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); color: var(--text); background: transparent; font: inherit; cursor: pointer; }
.queue-item:hover .queue-copy strong { color: var(--accent); }
.vendor-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #edf0ff; color: #6154ad; font-size: 11px; font-weight: 750; border-radius: 10px; }
.queue-copy { flex: 1; min-width: 0; }
.queue-copy strong, .queue-copy small { display: block; }
.queue-copy strong { font-size: 12px; overflow-wrap: anywhere; }
.queue-copy small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.summary-heading { margin-bottom: 15px; }
.summary-heading h3 { font-size: 18px; margin: 0 0 6px; }
.summary-heading .muted { font-size: 12px; }
.table-wrap { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { font-size: 12px; }
th { padding: 14px; background: var(--surface-alt); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; letter-spacing: .3px; }
td { padding: 15px 14px; vertical-align: middle; border-bottom-color: var(--border); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
td.id { font-size: 11px; color: var(--muted); }
.pill { font-size: 10px; padding: 4px 9px; font-weight: 700; }
input, select, textarea { font-size: 12px; padding: 9px 10px; border-radius: 8px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.vendor-bar { gap: 18px; padding: 0 0 24px; }
.vendor-bar label { min-width: 200px; flex: 1; font-size: 11px; color: var(--muted); }
.vendor-bar label input, .vendor-bar label select { margin-top: 5px; color: var(--text); }
.field-grid { padding: 16px; background: var(--surface-alt); border-radius: 12px; margin-bottom: 12px; }
.field-grid label { font-size: 11px; }
.bars { padding: 20px; border: 1px solid var(--border); border-radius: 12px; }
.bar .fill { background: linear-gradient(90deg,#6f9ce8,#69c3af); }
.hint { margin-top: 15px; margin-bottom: 20px; line-height: 1.7; }
.actions { margin-top: 28px; padding: 22px 25px 12px; }
.status { font-size: 12px; }
.site-footer { font-size: 11px; padding-bottom: 30px; line-height: 1.8; }
.footer-brand { font-weight: 650; color: var(--text); font-size: 12px; }
.footer-brand span { color: #b1c3d7; padding: 0 8px; }
:root[data-theme="dark"] { --bg:#152539; --surface:#1b3047; --surface-alt:#233c55; --text:#e2edf8; --muted:#afc3d6; --border:#355169; --accent:#91b9ff; --accent-contrast:#152539; }
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .demo-banner { background:#233c55; border-color:#42678f; color:#d7e9ff; }
:root[data-theme="dark"] .demo-banner strong { color:#a3c7ff; }
:root[data-theme="dark"] .demo-banner .btn { background:var(--surface); }
@media (max-width: 1100px) { .wrap { width:calc(100% - 40px); } .counts { grid-template-columns:1fr 1fr; } .review-queue { grid-column:1/-1; } #d-kpis { gap:10px; } .kpi { padding:16px; } }
@media (max-width: 760px) {
  .wrap { width:calc(100% - 28px); } .site-header { padding:15px 0; } .privacy-badge { display:none; }
  .brand-title { font-size:21px; } .brand-subtitle { font-size:8px; } .brand-mark { width:36px; height:40px; }
  .workspace-heading { align-items:flex-start; flex-direction:column; padding-top:25px; gap:16px; }
  h1 { font-size:28px; } .tabs { gap:7px; flex-wrap:nowrap; overflow-x:auto; } .tabs button { flex-shrink:0; font-size:11px; padding:12px 6px; }
  .tabs button span { display:none; } #d-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #d-kpis .kpi:last-child { grid-column:1/-1; } .kpi b { font-size:29px; } .kpi > small:last-child { min-height:0; }
  .counts { grid-template-columns:1fr; } .review-queue { grid-column:auto; } .section-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  .card { padding:18px; } .intro { padding:12px; } .intro summary .muted { display:block; margin-top:5px; } .bar { grid-template-columns:120px 1fr 40px; }
  .actions { padding:18px; } .field-grid { padding:12px; } .vendor-bar label { min-width:100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
@media print {
  .workspace-heading, .framework-strip, .demo-banner, .intro { display:none !important; }
  .wrap { width:100%; } #panel-dashboard>.card { break-inside:auto; } .counts { grid-template-columns:1fr 1fr; }
  .distribution, .kpi { box-shadow:none; break-inside:avoid; } .table-wrap { overflow:visible; border:0; }
  table { font-size:8px; } th,td { padding:5px; } .queue-item { display:none; }
}


/* Chromatic workspace: blue, mint, lavender and peach instead of neutral grey. */
@media screen {
  :root:not([data-theme="dark"]) {
    --bg:#e7f2ff; --surface:#f6faff; --surface-alt:#e6f0ff;
    --border:#bed7f4; --text:#203f64; --muted:#476787;
  }
  :root:not([data-theme="dark"]) body {
    background:radial-gradient(ellipse at 100% 5%,#e4dcff 0,transparent 42%),radial-gradient(ellipse at 0 75%,#ccf4e9 0,transparent 42%),linear-gradient(135deg,#e5f1ff,#eaf5ff 55%,#e2eaff);
    background-attachment:fixed;
  }
  :root:not([data-theme="dark"]) .site-header { background:#e1edff; border-color:#bcd3f5; }
  :root:not([data-theme="dark"]) .intro { background:#ede7ff; border-color:#c4b8ee; }
  :root:not([data-theme="dark"]) .demo-banner { background:#dcecff; border-color:#aacbf7; }
  :root:not([data-theme="dark"]) #d-kpis .kpi:nth-child(1) { background:linear-gradient(135deg,#d5e8ff,#e8f3ff); border-color:#a9caf7; }
  :root:not([data-theme="dark"]) #d-kpis .kpi:nth-child(2) { background:linear-gradient(135deg,#e2d9ff,#f0eaff); border-color:#c4b5f1; }
  :root:not([data-theme="dark"]) #d-kpis .kpi:nth-child(3) { background:linear-gradient(135deg,#ffdfcc,#fff0df); border-color:#eec2a4; }
  :root:not([data-theme="dark"]) #d-kpis .kpi:nth-child(4) { background:linear-gradient(135deg,#c8eee0,#e1f8ed); border-color:#9ed8c2; }
  :root:not([data-theme="dark"]) #d-kpis .kpi:nth-child(5) { background:linear-gradient(135deg,#ffdce9,#ffedf3); border-color:#efb8cd; }
  :root:not([data-theme="dark"]) .distribution:nth-child(1) { background:linear-gradient(145deg,#e0eeff,#eff7ff); border-color:#b3cff2; }
  :root:not([data-theme="dark"]) .distribution:nth-child(2) { background:linear-gradient(145deg,#e9e0ff,#f5efff); border-color:#cdbdf1; }
  :root:not([data-theme="dark"]) .distribution:nth-child(3) { background:linear-gradient(145deg,#d4f2e8,#eafaf2); border-color:#acdccc; }
  :root:not([data-theme="dark"]) .distribution progress,
  :root:not([data-theme="dark"]) .distribution progress::-webkit-progress-bar { background:#cedef6; }
  :root:not([data-theme="dark"]) .distribution progress { background:#cedef6; }
  :root:not([data-theme="dark"]) .table-wrap { background:#edf6ff; border-color:#b5d1f2; }
  :root:not([data-theme="dark"]) th { background:#d8e9ff; color:#355b83; }
  :root:not([data-theme="dark"]) tbody tr:nth-child(even):not(.domain-row):not(.w3no) { background:#e3efff; }
  :root:not([data-theme="dark"]) tbody tr:hover { background:#d7e9ff; }
  :root:not([data-theme="dark"]) .actions { background:linear-gradient(120deg,#dedfff,#e7edff 55%,#dcf4f1); border-color:#b8c6ef; }
  :root:not([data-theme="dark"]) .framework-strip span:not(:first-child) { background:#dcecff; border-color:#afccf1; color:#305c91; }
  :root:not([data-theme="dark"]) .framework-strip span:nth-child(3) { background:#ddf3e9; border-color:#abd8c5; color:#266953; }
  :root:not([data-theme="dark"]) .framework-strip span:nth-child(4) { background:#ede1ff; border-color:#cfb9f1; color:#694296; }
  :root:not([data-theme="dark"]) .framework-strip span:nth-child(5) { background:#ffead5; border-color:#edc8a3; color:#875123; }
  :root:not([data-theme="dark"]) .btn { background:#e2edff; border-color:#acc8ee; }
  :root:not([data-theme="dark"]) .btn:hover { background:#cddfff; }
  :root:not([data-theme="dark"]) .btn-primary { background:#2563d9; color:#fff; }
  :root:not([data-theme="dark"]) .btn-primary:hover { background:#1e54bc; }
  :root:not([data-theme="dark"]) .tabs button:nth-child(1) { color:#235fb1; }
  :root:not([data-theme="dark"]) .tabs button:nth-child(2) { color:#21725b; }
  :root:not([data-theme="dark"]) .tabs button:nth-child(3) { color:#7650a8; }
  :root:not([data-theme="dark"]) .tabs button:nth-child(4) { color:#965527; }
  :root:not([data-theme="dark"]) .tabs button[aria-selected="true"] { background:#d8e9ff; border-radius:10px 10px 0 0; }
}
/* Override reason missing: the override is ignored until a reason is given. */
#q-override-reason[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 25%, transparent); }
