/* REI platform design system (2026-11). Light first; dark mode selected, not inverted. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/app/static/vendor/inter-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f5f6f8; --panel: #ffffff; --panel-2: #f9fafb; --hover: #f2f4f7;
  --ink: #101828; --ink-2: #344054; --muted: #667085; --faint: #98a2b3;
  --line: #e4e7ec; --line-2: #d0d5dd;
  --accent: #2463d8; --accent-strong: #1a4fb4; --accent-soft: #eef4ff; --accent-ink: #1a4fb4;
  --ring: rgba(36, 99, 216, .22);
  --ok-bg: #ecfdf3; --ok-ink: #067647; --ok-dot: #12b76a;
  --warn-bg: #fffaeb; --warn-ink: #93370d; --warn-dot: #f79009;
  --bad-bg: #fef3f2; --bad-ink: #b42318; --bad-dot: #f04438;
  --info-bg: #f2f4f7; --info-ink: #344054;
  /* categorical slots (validated: adjacent CVD dE >= 8.4, both modes); aqua and yellow need labels */
  --lien: #2a78d6; --deed: #eb6834; --redeemable_deed: #1baf7a; --hybrid: #eda100; --none: #c4cad4;
  --series-1: #2a78d6; --track: #e8eef9;
  --hatch: rgba(255, 255, 255, .75);
  --radius: 12px; --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -6px rgba(16, 24, 40, .16), 0 4px 8px -2px rgba(16, 24, 40, .05);
  --sidebar-w: 260px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c111d; --panel: #161b26; --panel-2: #1b2130; --hover: #1f2635;
    --ink: #f5f5f6; --ink-2: #cecfd2; --muted: #94969c; --faint: #6f737c;
    --line: #262d3c; --line-2: #333b4c;
    --accent: #5b8ff0; --accent-strong: #84aaf5; --accent-soft: #1a2540; --accent-ink: #a9c3f8;
    --ring: rgba(91, 143, 240, .35);
    --ok-bg: #0f2a1d; --ok-ink: #75e0a7; --warn-bg: #2f2210; --warn-ink: #fec84b;
    --bad-bg: #351816; --bad-ink: #fda29b; --info-bg: #1f2635; --info-ink: #cecfd2;
    --lien: #3987e5; --deed: #d95926; --redeemable_deed: #199e70; --hybrid: #c98500; --none: #3a4252;
    --series-1: #3987e5; --track: #1e2a42; --hatch: rgba(0, 0, 0, .55);
    --shadow-xs: none; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 16px; line-height: 1.3; font-weight: 620; letter-spacing: -.01em; margin: 28px 0 12px; }
h3 { font-size: 14px; font-weight: 620; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover);
  padding: 1px 5px; border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- shell */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--panel) calc(var(--sidebar-w) - 1px), var(--line) 0,
    var(--line) var(--sidebar-w), transparent 0); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px 14px; }
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; color: var(--ink);
  text-decoration: none !important; }
.sb-brand .logo-mark { color: var(--accent); }
.sb-name { display: block; font-weight: 680; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.sb-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); padding: 14px 10px 6px; }
.sb-link, details.menu > summary { display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 550; font-size: 14px;
  text-decoration: none !important; cursor: pointer; transition: background .12s, color .12s; }
.sb-link .ico, details.menu > summary .ico:first-child { color: var(--faint); }
.sb-link:hover, details.menu > summary:hover { background: var(--hover); color: var(--ink); }
.sb-link.on { background: var(--accent-soft); color: var(--accent-ink); }
.sb-link.on .ico { color: var(--accent); }
.sb-count { margin-left: auto; font-size: 11.5px; font-weight: 650; min-width: 22px; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.sb-count.hot { background: var(--bad-bg); color: var(--bad-ink); }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary .ico:last-child { margin-left: auto; color: var(--faint); transition: transform .15s; }
details.menu[open] > summary .ico:last-child { transform: rotate(180deg); }
details.menu.on > summary { color: var(--ink); }
details.menu.on > summary .ico:first-child { color: var(--accent); }
details.menu .drop { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 20px;
  padding-left: 10px; border-left: 1px solid var(--line); }
details.menu .drop a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--muted);
  font-size: 13.5px; text-decoration: none; }
details.menu .drop a:hover { background: var(--hover); color: var(--ink); }
details.menu .drop a.on { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.sb-foot { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted);
  padding: 14px 10px 2px; border-top: 1px solid var(--line); margin-top: 14px; }
.sb-foot .ico { color: var(--ok-dot); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center;
  gap: 14px; padding: 0 32px; background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tb-date { color: var(--muted); font-size: 13px; }
.tb-brand { display: none; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none !important; }
.tb-brand .logo-mark { color: var(--accent); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.menu-btn { display: none; }
.bell .count { position: absolute; top: 2px; right: 0; min-width: 16px; padding: 0 4px; height: 16px;
  border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center;
  background: var(--ink-2); color: var(--panel); box-shadow: 0 0 0 2px var(--panel); box-sizing: border-box; }
.bell.hot .count { background: var(--bad-dot); color: #fff; }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 4px 8px 4px 4px; border-radius: 12px; color: var(--muted); }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { background: var(--hover); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: linear-gradient(140deg, #2463d8, #5b8ff0); color: #fff;
  font-weight: 650; font-size: 12.5px; letter-spacing: .02em; flex: none; }
.um-text { display: flex; flex-direction: column; line-height: 1.2; }
.um-name { color: var(--ink); font-weight: 600; font-size: 13.5px; max-width: 170px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.um-role { font-size: 12px; text-transform: capitalize; }
.um-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
  z-index: 40; }
.um-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
  display: flex; flex-direction: column; }
.um-head span { color: var(--muted); font-size: 12.5px; }
.um-drop a, .um-drop button.um-signout { display: flex; align-items: center; justify-content: flex-start;
  gap: 10px; width: 100%; box-shadow: none;
  padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font: 500 13.5px var(--font);
  text-decoration: none; background: transparent; border: 0; cursor: pointer; text-align: left; }
.um-drop a:hover, .um-drop button.um-signout:hover { background: var(--hover); color: var(--ink); }
.um-drop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.content { width: 100%; max-width: 1440px; padding: 30px 32px 72px; }
.no-shell .content { margin: 0 auto; }
.bare-top { padding: 18px 24px; }
.scrim { display: none; }

/* ---------------------------------------------------------------- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); padding: 16px 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); display: flex; flex-direction: column; min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.panel-h h2 { margin: 0; font-size: 15px; }
.panel-h .ico { color: var(--muted); }
.panel-h .more { margin-left: auto; font-size: 13px; font-weight: 550; display: inline-flex;
  align-items: center; gap: 4px; }
.panel-b { padding: 0 18px 16px; }
.panel-b.flush { padding: 0; }
.panel-f { border-top: 1px solid var(--line); padding: 10px 18px; font-size: 13px; margin-top: auto; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-bottom: 18px; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* stat tiles (legacy .kpi/.n/.l kept) */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 550; }
.stat-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--accent-soft); color: var(--accent); }
.stat-value { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.stat-meta { font-size: 12.5px; color: var(--muted); }
.card.kpi { padding: 16px 18px; }
.kpi .n { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* meters and bars (dataviz: thin marks, rounded data end, same-ramp track) */
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin: 6px 0 2px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--series-1); }
.meter.warn > span { background: var(--warn-dot); } .meter.bad > span { background: var(--bad-dot); }
.hbars { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 10px 12px;
  align-items: center; }
.hbars .hb-name { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hbars .hb-track { height: 14px; position: relative; }
.hbars .hb-fill { height: 14px; border-radius: 0 4px 4px 0; background: var(--series-1); min-width: 2px; }
.hbars .hb-val { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px);
  z-index: 10; background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 500;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--track); margin: 6px 0; gap: 2px; }
.bar span { display: block; height: 100%; }

/* lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows .r-main { min-width: 0; flex: 1; }
.rows .r-title { font-weight: 550; color: var(--ink); display: block; }
.rows .r-sub { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.rows .r-side { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.datebox { flex: none; width: 44px; text-align: center; border: 1px solid var(--line); border-radius: 9px;
  padding: 3px 0 4px; line-height: 1.1; background: var(--panel-2); }
.datebox b { display: block; font-size: 16px; color: var(--ink); }
.datebox span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 28px 18px; color: var(--muted); }
.empty .ico { color: var(--faint); }
.empty strong { color: var(--ink-2); font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr max-content; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* pipeline steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2);
  text-decoration: none !important; color: inherit; }
.step:hover { border-color: var(--line-2); background: var(--hover); }
.step b { display: block; font-size: 22px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.step span { font-size: 12.5px; color: var(--muted); }

/* status chips (status color + label + dot, never color alone) */
.chip, .lvl, .st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.chip::before, .lvl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.lvl { text-transform: capitalize; }
.lvl-urgent, .chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.lvl-action, .chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.lvl-info, .chip.info { background: var(--info-bg); color: var(--info-ink); }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.st-unverified { background: var(--warn-bg); color: var(--warn-ink); }
.st-verified { background: var(--ok-bg); color: var(--ok-ink); }
.st-disputed { background: var(--bad-bg); color: var(--bad-ink); }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; color: #fff; white-space: nowrap; line-height: 18px; }
.b-lien { background: var(--lien); } .b-deed { background: var(--deed); }
.b-redeemable_deed { background: var(--redeemable_deed); } .b-hybrid { background: var(--hybrid); color: #0b0b0b; }
.b-none { background: var(--none); color: var(--ink); }
.soon { color: var(--bad-ink); font-weight: 600; }

/* alerts (legacy list) */
.alert { display: flex; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- tables */
.scroll { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden;
  font-size: 13.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
th { background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
tr:hover > td { background: color-mix(in srgb, var(--hover) 60%, transparent); }
.panel table { border: 0; border-radius: 0; box-shadow: none; }
td table, .card table { box-shadow: none; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 550; }
input, select, textarea { font: 14px var(--font); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 11px;
  box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
input[type=checkbox], input[type=radio] { box-shadow: none; padding: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
label > input, label > select, label > textarea { margin-top: 5px; }
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 14px var(--font); padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: var(--shadow-xs);
  text-decoration: none !important; transition: background .12s, border-color .12s; }
button:hover, a.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button.ghost, a.button.ghost { background: var(--panel); color: var(--ink-2); border-color: var(--line-2); }
button.ghost:hover, a.button.ghost:hover { background: var(--hover); color: var(--ink); }
button.block { width: 100%; padding: 11px 16px; font-size: 15px; }
form.stack p { margin: 0 0 14px; }
form.stack input, form.stack select, form.stack textarea { width: 100%; }
form.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.inline { display: inline; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
details > summary { cursor: pointer; }
details > form { margin-top: 8px; }
pre.resolution { white-space: pre-wrap; font: inherit; margin: 0; }

/* notices */
.notice, .error, .ok-note { display: block; border-radius: 10px; padding: 12px 14px; margin: 12px 0;
  border: 1px solid transparent; font-size: 13.5px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-dot) 30%, transparent); }
.error { background: var(--bad-bg); color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad-dot) 30%, transparent); }
.ok-note { background: var(--ok-bg); color: var(--ok-ink); }

/* facts, sub-navigation */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.subnav a { padding: 8px 12px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent;
  margin-bottom: -1px; text-decoration: none; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- map */
#map-wrap { position: relative; }
#map svg { width: 100%; height: auto; display: block; }
#map path.state { stroke: var(--panel); stroke-width: .8; cursor: pointer; }
#map path.state:hover, #map path.state:focus { stroke: var(--ink); stroke-width: 1.6; outline: none; }
#map path.county { fill: none; stroke: var(--panel); stroke-width: .25; stroke-opacity: .6; pointer-events: none; }
#map circle.auc { fill: var(--ink); fill-opacity: .8; stroke: var(--panel); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin: 8px 0; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
#tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; font-size: 13px; max-width: 280px; display: none; box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------------- sign-in */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 18px; background:
    radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; text-align: center; }
.auth-logo .logo-mark { color: var(--accent); filter: drop-shadow(0 6px 14px rgba(36, 99, 216, .3)); }
.auth-logo .sb-name { font-size: 17px; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 30px 30px 26px; }
.auth-card h1 { font-size: 22px; text-align: center; margin: 0 0 6px; }
.auth-lead { color: var(--muted); text-align: center; margin: 0 0 24px; }
.auth-form label { margin: 0 0 6px; }
.auth-form input { width: 100%; padding: 11px 12px; font-size: 15px; margin: 0 0 16px; }
.auth-form button { margin-top: 4px; }
.code-input { letter-spacing: .3em; font-size: 22px !important; text-align: center; font-weight: 600; }
.auth-help { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0 0; }
.auth-foot { color: var(--muted); font-size: 12.5px; margin: 22px auto 0; text-align: center; max-width: 360px; }
.auth-foot .ico { margin: -2px 4px 0 0; }
.auth-foot .ico { color: var(--ok-dot); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-toggle:checked ~ .shell .sidebar { transform: none; }
  .nav-toggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(16, 24, 40, .45); }
  .menu-btn { display: inline-flex; margin-left: -8px; }
  .tb-brand { display: inline-flex; }
  .shell { background: none; }
  .topbar { padding: 0 18px; }
  .content { padding: 22px 18px 56px; }
  .cols, .cols.even, .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; gap: 4px; }
  .stat-value { font-size: 22px; }
  .stat-ic { display: none; }
  .stat-top { font-size: 12px; }
  .stat-meta { font-size: 11.5px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; white-space: nowrap; font-size: 13.5px; padding: 9px 10px; }
  .tb-date, .um-text { display: none; }
  h1 { font-size: 21px; }
  th, td { padding: 8px 10px; }
  .rows > li { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
