/* AI Mention Monitor - customer interface. No build step required. */
/* Blue identity. White-label tenants override the accent and nav tokens (see partials/brand-head). */
:root {
  color-scheme: light;
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --ink: #0f1b2d;
  --ink-2: #45546b;
  --muted: #66758c;
  --grid: #e2e8f0;
  --axis: #c5cfdc;
  --border: rgba(15, 40, 80, 0.10);
  --accent: #1a5fc8;
  --accent-ink: #ffffff;
  --accent-soft: #e6effb;
  --nav: #0e2a52;
  --nav-ink: #ffffff;
  --nav-ink-2: #b8c8e0;
  --nav-hover: rgba(255, 255, 255, 0.08);
  --nav-active: rgba(255, 255, 255, 0.15);
  --nav-mark: #60a5fa;
  --series-1: #2a78d6;
  --series-1-soft: #cde2fb;
  --series-2: #c2410c;
  --good: #0ca30c; --good-ink: #006300;
  --warning: #fab219; --warning-ink: #7a5200;
  --serious: #ec835a; --serious-ink: #8a3a17;
  --critical: #d03b3b; --critical-ink: #a32121;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 40, 80, 0.06), 0 4px 12px rgba(15, 40, 80, 0.04);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b1220; --surface: #121b2b; --surface-2: #1a2538;
    --ink: #f3f6fb; --ink-2: #b3c0d4; --muted: #8595ad;
    --grid: #223047; --axis: #2f3f58; --border: rgba(255, 255, 255, 0.08);
    --accent: #5b9bf0; --accent-ink: #0b1220; --accent-soft: #16294a;
    --nav: #0a1628;
    --series-1: #3987e5; --series-1-soft: #184f95; --series-2: #f08a4b;
    --good-ink: #0ca30c; --warning-ink: #fab219; --serious-ink: #ec835a; --critical-ink: #e66767;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1220; --surface: #121b2b; --surface-2: #1a2538;
  --ink: #f3f6fb; --ink-2: #b3c0d4; --muted: #8595ad;
  --grid: #223047; --axis: #2f3f58; --border: rgba(255, 255, 255, 0.08);
  --accent: #5b9bf0; --accent-ink: #0b1220; --accent-soft: #16294a;
  --nav: #0a1628;
  --series-1: #3987e5; --series-1-soft: #184f95; --series-2: #f08a4b;
  --good-ink: #0ca30c; --warning-ink: #fab219; --serious-ink: #ec835a; --critical-ink: #e66767;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.muted { color: var(--muted); } .secondary { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell: top menu bar + content */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.shell { min-height: 100vh; }
.topnav { background: var(--nav); color: var(--nav-ink); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 16px rgba(5, 15, 35, .18); }
.topnav-bar { max-width: 1240px; margin: 0 auto; padding: 0 36px; height: 60px; display: flex; align-items: center; gap: 24px; }
.topnav a { color: var(--nav-ink-2); }
.topnav a:hover { text-decoration: none; }
.brand { font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; white-space: nowrap; }
.topnav .brand { color: var(--nav-ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--nav-mark), var(--accent)); display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.brand img { background: #fff; border-radius: 6px; padding: 3px 6px; }
.primary-nav { display: flex; align-items: center; flex: 1; gap: 16px; min-width: 0; height: 100%; }
.primary-nav > nav { height: 100%; }

/* Menu items: text links with an underline indicator, not buttons */
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 4px; height: 100%; }
.menu > li { display: flex; align-items: stretch; position: relative; }
.menu > li > a, .menu > li > .dropdown > summary {
  display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: .93rem; font-weight: 550;
  color: var(--nav-ink-2); border-bottom: 3px solid transparent; border-top: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > .dropdown > summary:hover { color: var(--nav-ink); background: var(--nav-hover); }
.menu > li > a[aria-current="page"], .menu > li > .dropdown > summary[aria-current="page"] { color: var(--nav-ink); border-bottom-color: var(--nav-mark); }
.menu > li > .dropdown { display: flex; }

/* Dropdowns (<details>): keyboard accessible without JavaScript */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .7; }
.dropdown[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.submenu { list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(5, 15, 35, .18); z-index: 60; }
.dropdown-right .submenu { left: auto; right: 0; }
.submenu a, .submenu-button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; color: var(--ink); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.submenu a:hover, .submenu-button:hover { background: var(--accent-soft); text-decoration: none; }
.submenu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.submenu-sep { border-top: 1px solid var(--grid); margin-top: 6px; padding-top: 6px; }
.submenu-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 2px; }
.topnav .submenu a { color: var(--ink); }
.topnav .submenu a[aria-current="page"] { color: var(--accent); }

.menu-label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submenu-user { padding: 8px 10px 10px; display: flex; flex-direction: column; line-height: 1.3; }
.submenu-user strong { font-size: .92rem; }
.submenu-user span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* Right-hand side: notifications + account */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-icon { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--nav-ink-2); }
.nav-icon:hover, .nav-icon[aria-current="page"] { background: var(--nav-hover); color: var(--nav-ink); }
.nav-icon-label { display: none; }
.nav-icon .count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--nav-mark); color: #0b1220; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.account { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 10px; cursor: pointer; color: var(--nav-ink); }
.account:hover, .dropdown[open] > .account { background: var(--nav-hover); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--nav-mark); color: #0b1220; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.account-text { display: flex; flex-direction: column; line-height: 1.2; }
.account-name { font-weight: 600; font-size: .88rem; }
.account-org { font-size: .75rem; color: var(--nav-ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile menu toggle (shown by app.js on small screens) */
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: transparent; color: var(--nav-ink); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -5px; } .nav-toggle-icon::after { top: 5px; }

.main { padding: 32px 36px 56px; max-width: 1240px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.65rem; letter-spacing: -.02em; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

/* Site sub-navigation: underlined menu, not buttons */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--grid); width: 100%; margin-top: 6px; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 550; font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--axis); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; } /* let wide tables scroll inside their card instead of stretching the page */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Stat tiles */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .85; }
.stat .label { font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .value { font-size: 1.95rem; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.stat .hint { font-size: .8rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover { background: var(--accent-soft); }

/* Forms */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.field { margin-bottom: 14px; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error { font-size: .85rem; color: var(--critical-ink); margin-top: 4px; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); padding: 8px 15px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 1px 2px rgba(15, 40, 80, .15); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); box-shadow: 0 2px 8px rgba(26, 95, 200, .25); }
.btn-danger { color: var(--critical-ink); }
.btn-sm { padding: 4px 10px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }

/* Badges (status: always icon + label, never colour alone) */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.good { color: var(--good-ink); } .badge.good::before { background: var(--good); }
.badge.warning { color: var(--warning-ink); } .badge.warning::before { background: var(--warning); }
.badge.serious { color: var(--serious-ink); } .badge.serious::before { background: var(--serious); }
.badge.critical { color: var(--critical-ink); } .badge.critical::before { background: var(--critical); }

/* Alerts */
.alert { border: 1px solid var(--border); border-left: 4px solid var(--muted); background: var(--surface); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert.good { border-left-color: var(--good); }
.alert.warning { border-left-color: var(--warning); }
.alert.critical { border-left-color: var(--critical); }
.alert strong { display: block; margin-bottom: 2px; }
.secret { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed var(--axis); padding: 10px; border-radius: 8px; word-break: break-all; }

/* Meter (credits) */
.meter { height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series-1); opacity: .10; }
.chart .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart .line-2 { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot-2 { fill: var(--series-2); stroke: var(--surface); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.legend .key { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--series-1); vertical-align: middle; margin-right: 6px; }
.legend .key-2 { border-top: 2px dashed var(--series-2); }
.delta-up { color: var(--good-ink); } .delta-down { color: var(--critical-ink); }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.chart .tooltip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.12); border-radius: 8px; padding: 6px 10px; font-size: .82rem; white-space: nowrap; transform: translate(-50%, -110%); }
.chart .tooltip strong { display: block; font-size: .95rem; }
.chart .tooltip .key { display: inline-block; width: 12px; height: 2px; background: var(--series-1); vertical-align: middle; margin-right: 5px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr 56px; gap: 10px; align-items: center; font-size: .88rem; }
.bar-row .bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track { height: 14px; border-radius: 0 4px 4px 0; }
.bar-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row:hover .bar-fill { filter: brightness(1.12); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }
details.table-view summary { cursor: pointer; font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }

/* Answer text */
.answer { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 14px; font-size: .92rem; }
mark.brand { background: var(--series-1-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* Guest pages */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--nav-mark) 35%, transparent), transparent 60%),
              linear-gradient(160deg, var(--nav) 0%, color-mix(in srgb, var(--nav) 70%, var(--accent)) 100%); }
.guest .card { width: 100%; max-width: 440px; padding: 28px; box-shadow: 0 20px 50px rgba(5, 15, 35, .35); border: 0; }
.guest .brand { justify-content: center; margin-bottom: 22px; font-size: 1.1rem; }

/* Menu bar density, decided by measuring (see partials/nav-fit): .nav-tight first, then .nav-compact. */
.nav-tight .account-text { display: none; }
.nav-tight .topnav-bar { gap: 16px; padding: 0 24px; }
.nav-tight .menu-label { max-width: 140px; }
/* Without JavaScript the bar wraps instead of overflowing. */
html:not(.js) .topnav-bar { flex-wrap: wrap; height: auto; min-height: 60px; }
html:not(.js) .primary-nav { flex-wrap: wrap; }
html:not(.js) .menu { flex-wrap: wrap; }

/* Compact (hamburger) menu */
.nav-compact .topnav-bar { padding: 0 16px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 12px; }
.nav-compact .nav-toggle { display: inline-flex; }
.nav-compact .primary-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; height: auto; padding: 4px 0 12px; }
.nav-compact .primary-nav[data-collapsed] { display: none; }
.nav-compact .primary-nav > nav { height: auto; }
.nav-compact .menu { flex-direction: column; height: auto; gap: 0; }
.nav-compact .menu > li { display: block; }
.nav-compact .menu > li > a, .nav-compact .menu > li > .dropdown > summary { padding: 11px 8px; border: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
.nav-compact .menu > li > a[aria-current="page"], .nav-compact .menu > li > .dropdown > summary[aria-current="page"] { border-left-color: var(--nav-mark); background: var(--nav-active); }
.nav-compact .menu > li > .dropdown { display: block; }
.nav-compact .submenu { color: var(--nav-ink); position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 4px 16px; min-width: 0; max-height: none; }
.nav-compact .topnav .submenu a, .nav-compact .submenu-button { color: var(--nav-ink-2); }
.nav-compact .topnav .submenu a[aria-current="page"] { color: var(--nav-ink); }
.nav-compact .submenu a:hover, .nav-compact .submenu-button:hover { background: var(--nav-hover); }
.nav-compact .submenu-sep { border-top-color: rgba(255, 255, 255, .1); }
.nav-compact .submenu-label { color: var(--nav-ink-2); }
.nav-compact .nav-right { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; align-items: flex-start; }
.nav-compact .nav-icon { width: auto; padding: 0 10px; gap: 8px; grid-auto-flow: column; }
.nav-compact .nav-icon-label { display: inline; font-size: .93rem; }
.nav-compact .nav-icon .count { position: static; }
.nav-compact .account-text { display: flex; }
.nav-compact .nav-right .dropdown { flex-basis: 100%; }
.nav-compact .menu-label { max-width: none; }
.nav-compact .submenu-user span { color: var(--nav-ink-2); }
@media (max-width: 900px) {
  .main { padding: 20px 16px 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .value { font-size: 1.45rem; }
  .stat .label { font-size: .68rem; }
  .bar-row { grid-template-columns: 1fr 48px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (forced-colors: active) {
  .menu a[aria-current="page"], .menu summary[aria-current="page"], .tabs a[aria-current="page"] { outline: 2px solid CanvasText; }
  .bar-fill, .meter > span { background: CanvasText; }
  .badge::before { border: 1px solid CanvasText; }
}
.guest form > .btn-primary { width: 100%; justify-content: center; padding: 10px 15px; }

/* Legal documents and links */
.guest .card.wide { max-width: 820px; }
.legal-links { margin-top: 18px; font-size: .8rem; text-align: center; color: var(--muted); }
.legal-links a { color: var(--muted); }
.legal-doc h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal-doc h3 { font-size: .95rem; margin: 18px 0 6px; }
.legal-doc p, .legal-doc li { line-height: 1.6; }
.legal-doc ol, .legal-doc ul { padding-left: 1.3em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; margin-bottom: 18px; }
.legal-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); text-decoration: none; }
.draft-notice { border: 1px dashed var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; margin-bottom: 16px; }
.checkbox.legal-check { align-items: flex-start; }
.checkbox.legal-check input { margin-top: 4px; }

/* Onboarding checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.checklist li:last-child { border-bottom: 0; }
.checklist .check { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.checklist li.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.checklist li.done s { color: var(--muted); }
