/* ============================================================
   Fratco App v4.10 color layer
   Navy frame, Fratco red for action, one color per area of the app so people always
   know where they are: Sales green, Engineering blue, Production amber, Admin violet,
   You cyan. Every color is a token, so the Account accent picker and light/dark/system
   themes restyle the whole app.
   ============================================================ */
:root:root {
  --bg: #F3F5F8; --bg-2: #E9EDF2; --surface: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #EEF2F6;
  --ink: #0F172A; --ink-soft: #475569; --ink-faint: #64748B;
  --line: #E2E8F0; --line-2: #CBD5E1;
  --nav-bg: #0F172A; --nav-2: #1E293B; --nav-ink: #E2E8F0; --nav-soft: #94A3B8; --nav-line: rgba(148,163,184,.16);
  --m-home: var(--acc); --m-app: #059669; --m-engineering: #2563EB; --m-production: #D97706; --m-admin: #7C3AED; --m-account: #0891B2;
  --tint: 12%;
  --good: #047857; --good-bg: #DCFCE7; --warn: #B45309; --warn-bg: #FEF3C7;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 40px -12px rgba(15,23,42,.25), 0 4px 12px rgba(15,23,42,.08);
  --focus: 0 0 0 3px color-mix(in srgb, var(--acc) 35%, transparent);
}
:root:root[data-theme="dark"] {
  --bg: #0B1120; --bg-2: #0F172A; --surface: #111827; --surface-2: #162032; --surface-3: #1E293B;
  --ink: #F1F5F9; --ink-soft: #CBD5E1; --ink-faint: #94A3B8;
  --line: #1F2A3C; --line-2: #334155;
  --nav-bg: #070B16; --nav-2: #131C2E;
  --m-app: #34D399; --m-engineering: #60A5FA; --m-production: #FBBF24; --m-admin: #A78BFA; --m-account: #22D3EE;
  --tint: 18%;
  --good: #4ADE80; --good-bg: #0F2A1C; --warn: #FBBF24; --warn-bg: #2A1F08;
  --shadow-sm: none; --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.7);
}
@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme="light"]) {
    --bg: #0B1120; --bg-2: #0F172A; --surface: #111827; --surface-2: #162032; --surface-3: #1E293B;
    --ink: #F1F5F9; --ink-soft: #CBD5E1; --ink-faint: #94A3B8;
    --line: #1F2A3C; --line-2: #334155;
    --nav-bg: #070B16; --nav-2: #131C2E;
    --m-app: #34D399; --m-engineering: #60A5FA; --m-production: #FBBF24; --m-admin: #A78BFA; --m-account: #22D3EE;
    --tint: 18%;
    --good: #4ADE80; --good-bg: #0F2A1C; --warn: #FBBF24; --warn-bg: #2A1F08;
    --shadow-sm: none; --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.7);
  }
}
[data-mod="home"] { --mc: var(--m-home); } [data-mod="app"] { --mc: var(--m-app); } [data-mod="engineering"] { --mc: var(--m-engineering); }
[data-mod="production"] { --mc: var(--m-production); } [data-mod="admin"] { --mc: var(--m-admin); } [data-mod="account"] { --mc: var(--m-account); }

html body { font-size: 14.5px; letter-spacing: -0.006em; font-feature-settings: 'tnum' 0; }
html h1, html h2, html h3 { letter-spacing: -0.022em; }
.big, .kpi-val, .h-stat b, .mb-total, .qx input, .v4-stat { font-feature-settings: 'tnum' 1; }
html a, html button, html [role="button"], html .len-chip, html .line-card { cursor: pointer; }
html .btn, html .b3, html .v4-link, html .qx-b, html .seg button, html .len-chip { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }

/* ================= NAVY SIDEBAR ================= */
@media (min-width: 900px) {
  .v4-side { background: var(--nav-bg); border-right: 0; color: var(--nav-ink); padding: 16px 14px 14px; gap: 6px; }
}
.v4-brand { color: #fff; padding: 2px 6px 12px; }
.v4-brand span { font-weight: 700; letter-spacing: -0.02em; }
.v4-brand img { height: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.v4-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; margin-bottom: 8px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--acc) 70%, transparent); }
.v4-new:hover { background: color-mix(in srgb, var(--acc) 88%, white); text-decoration: none; }
.v4-new:active { transform: translateY(1px); }
.v4-quick:empty { display: none; }
.v4-find { background: var(--nav-2); border-color: var(--nav-line); color: var(--nav-soft); height: 36px; }
.v4-find:hover { color: var(--nav-ink); border-color: rgba(148,163,184,.3); }
.v4-find kbd { background: transparent; border-color: var(--nav-line); color: var(--nav-soft); }
.v4-group { font-size: 11.5px; font-weight: 650; color: var(--nav-soft); opacity: .8; padding: 14px 10px 6px; letter-spacing: .02em; }
.v4-nav .v4-group:first-child { padding-top: 6px; }
.v4-link { height: 40px; gap: 11px; padding: 0 8px; color: var(--nav-ink); font-weight: 550; font-size: 14px; border-radius: 10px; opacity: .88; }
.v4-link:hover { background: var(--nav-2); color: #fff; opacity: 1; }
.v4-link.on { background: color-mix(in srgb, var(--mc) 16%, var(--nav-bg)); color: #fff; opacity: 1; font-weight: 650; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 28%, transparent); }
.v4-chip { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: color-mix(in srgb, var(--mc) 20%, transparent); color: color-mix(in srgb, var(--mc) 70%, white); }
.v4-link svg, .v4-link.on svg { color: inherit; }
.v4-link.on .v4-chip { background: var(--mc); color: #fff; }
.v4-sub { border-left-color: var(--nav-line); margin: 4px 0 8px 22px; padding-left: 12px; }
.v4-sublink { color: var(--nav-soft); height: 32px; font-size: 13.5px; font-weight: 500; border-radius: 7px; }
.v4-sublink:hover { background: var(--nav-2); color: #fff; }
.v4-sublink.on { color: #fff; font-weight: 650; background: rgba(255,255,255,.05); }
.v4-sublink.on::before { background: var(--mc); left: -13px; }
.v4-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--nav-line); }
.v4-theme { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--nav-2); }
.v4-theme button { flex: 1; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--nav-soft); display: flex; align-items: center; justify-content: center; gap: 5px; font: 550 12px 'Inter'; }
.v4-theme button:hover { color: #fff; }
.v4-theme button.on { background: rgba(255,255,255,.1); color: #fff; }
.v4-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; color: var(--nav-ink); text-align: left; border-top: 0; margin: 0; }
.v4-user:hover { background: var(--nav-2); }
.v4-user > svg { color: var(--nav-soft); flex: 0 0 auto; }
.v4-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #7C3AED)); color: #fff; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.v4-avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.v4-who strong { color: #fff; font-size: 13.5px; }
.v4-who span { color: var(--nav-soft); font-size: 12px; }
.v4-menu { position: fixed; z-index: 250; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; }
.v4-menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.v4-menu-who strong { font-size: 14px; } .v4-menu-who span { font-size: 12.5px; color: var(--ink-faint); }
.v4-menu a, .v4-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 550 13.5px 'Inter'; text-decoration: none; text-align: left; }
.v4-menu a:hover, .v4-menu button:hover { background: var(--surface-3); text-decoration: none; }
.v4-menu svg { color: var(--ink-faint); }
.v4-menu .danger, .v4-menu .danger svg { color: var(--red); }
.v4-menu-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ================= PAGE HEADER ================= */
@media (min-width: 900px) {
  .v4-head { display: flex; align-items: center; gap: 14px; padding: 0 0 22px; }
  .v4-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
  .v4-crumb { font-size: 13px; font-weight: 650; color: var(--mc); margin-bottom: 1px; }
  .v4-crumb span { color: var(--ink-faint); font-weight: 500; }
}
.v4-head-chip { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--mc) var(--tint), var(--surface)); color: var(--mc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 25%, transparent); flex: 0 0 auto; }
body.v4 main.container { padding-top: 30px; }

/* ================= PHONE ================= */
@media (max-width: 899px) {
  body.v4 .topbar { background: var(--nav-bg); border-bottom: 0; color: #fff; }
  body.v4 .topbar nav a { color: var(--nav-soft); } body.v4 .topbar nav a.active, body.v4 .topbar nav a:hover { background: var(--nav-2); color: #fff; }
  body.v4 .topbar .who, body.v4 .topbar .hamburger-btn { color: #fff; }
  body.v4 .topbar .brand span { color: #fff; }
  body.v4 .topbar .brand .ver { background: var(--nav-2); color: var(--nav-soft); }
  body.v4 .topbar .logout-btn { background: var(--nav-2); color: #fff; border-color: var(--nav-line); }
}
@media (max-width: 640px) {
  body.v4 .topbar .hamburger-btn { display: none; }
  body.v4 .v4-tabs { background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .v4-tab { color: var(--ink-faint); font-weight: 600; min-height: 48px; }
  .v4-tab svg { transition: transform .15s ease; }
  .v4-tab.on { color: var(--mc); }
  .v4-tab.on svg { transform: translateY(-1px); }
}
.v4-sheet { position: fixed; inset: 0; z-index: 260; background: rgba(2,6,23,0); pointer-events: none; transition: background .2s ease; display: flex; align-items: flex-end; }
.v4-sheet.open { background: rgba(2,6,23,.5); pointer-events: auto; }
.v4-sheet-box { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.v4-sheet.open .v4-sheet-box { transform: none; }
.v4-sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 14px; }
.v4-sheet-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.v4-sheet-who strong { display: block; font-size: 16px; } .v4-sheet-who span { font-size: 13px; color: var(--ink-faint); }
.v4-sheet .v4-theme { background: var(--surface-3); margin-bottom: 8px; }
.v4-sheet .v4-theme button { color: var(--ink-soft); height: 40px; font-size: 13px; }
.v4-sheet .v4-theme button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.v4-sheet .v4-group { color: var(--ink-faint); padding: 14px 4px 6px; }
.v4-sheet-list a, .v4-sheet-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 600 15px 'Inter'; text-decoration: none; text-align: left; }
.v4-sheet-list a > svg:last-child, .v4-sheet-list button > svg:last-child { margin-left: auto; color: var(--ink-faint); }
.v4-sheet-list button.on { color: var(--acc); }
.v4-sheet-list .danger { color: var(--red); border-bottom: 0; }
.v4-sheet-list .danger .v4-chip { background: var(--red-soft); color: var(--red); }
.v4-sheet-list .v4-chip { color: var(--mc); background: color-mix(in srgb, var(--mc) var(--tint), transparent); }

/* ================= CONTROLS WITH COLOR ================= */
html .btn-primary, html .b3-primary { box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--acc) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.12); font-weight: 650; }
html .btn, html .b3 { min-height: 38px; border-radius: 9px; }
html .btn-outline, html .b3-secondary { font-weight: 600; }
html .seg, html .seg.light { background: var(--surface-3); border-radius: 9px; }
html .seg button.on, html .seg.light button.on, html .total-card .seg button.on { background: var(--surface); color: var(--acc); box-shadow: 0 1px 3px rgba(15,23,42,.1), 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); font-weight: 650; }
:root[data-theme="dark"] html .seg button.on { color: #fff; }
html .seg-tabs button.on { color: var(--acc); font-weight: 650; box-shadow: 0 1px 3px rgba(15,23,42,.1), 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
html [class*="seg"] button.on { color: var(--acc); }
html input:focus, html textarea:focus, html select:focus { border-color: var(--acc); }
html .tabs button.active { border-bottom-color: var(--acc); }
html .card { border-radius: 14px; box-shadow: var(--shadow); border-color: var(--line); }
html .section-head h2 { font-size: 16.5px; font-weight: 700; }
html .kpi-grid { border-radius: 14px; }
html .kpi { position: relative; padding: 16px 18px 14px; }
html .kpi::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--kc, var(--acc)); }
html .kpi:nth-child(6n+1) { --kc: var(--m-account); } html .kpi:nth-child(6n+2) { --kc: var(--m-app); } html .kpi:nth-child(6n+3) { --kc: var(--acc); }
html .kpi:nth-child(6n+4) { --kc: var(--m-admin); } html .kpi:nth-child(6n+5) { --kc: var(--m-production); } html .kpi:nth-child(6n+6) { --kc: var(--m-engineering); }
html .kpi-val { font-size: 24px; font-weight: 750; }
html .hl-card { position: relative; overflow: hidden; }
html .hl-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: currentColor; }
html .hl-card .hl-val { color: var(--ink); }
html .hl-margin { color: var(--good); } html .hl-big { color: var(--acc); }
html .hl-card:nth-child(3) { color: var(--m-engineering); } html .hl-card:nth-child(4) { color: var(--m-production); }
html .hl-card .hl-kind { color: inherit; font-weight: 650; }
html .chart-wrap { border-radius: 12px; }

/* ================= ORDER SCREEN ================= */
html .total-card { border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
html .total-card > .stats-row { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 7%, var(--surface)), var(--surface)); padding-top: 22px; }
html .total-card > .stats-row::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc); }
html .stat-block .big { font-size: 34px; font-weight: 750; letter-spacing: -0.04em; }
html .stat-block:not(.right) .big { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px !important; border-radius: 10px; font-size: 20px; color: var(--m-app); background: color-mix(in srgb, var(--m-app) var(--tint), transparent); }
html .line-card { border-radius: 12px; }
html .line-card.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 8px 20px -10px color-mix(in srgb, var(--acc) 50%, transparent); background: color-mix(in srgb, var(--acc) 4%, var(--surface)); }
html .line-card.on svg { color: var(--acc); }
html .dw-card-count { background: var(--acc); color: #fff; }
html .len-chip.on { background: var(--acc); border-color: var(--acc); color: #fff; }
html .len-chip.on .len-badge { background: #fff; color: var(--acc); }
html .order-list { border-radius: 12px; }
html .order-list.grid .order-item.has-qty, html .order-item.has-qty { background: color-mix(in srgb, var(--acc) 5%, var(--surface)); }
html .order-list.grid .order-item.has-qty { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line), inset 0 3px 0 var(--acc); }
html .order-list.grid .size-lbl { font-size: 17px; font-weight: 750; }
.qx { height: 42px; border-radius: 10px; }
html .order-list.grid .qx { height: 42px; }
.qx-b { width: 40px; font-size: 20px; font-weight: 500; }
.qx-b:hover { background: color-mix(in srgb, var(--acc) 10%, var(--surface)); color: var(--acc); }
.qx-b:active { background: color-mix(in srgb, var(--acc) 18%, var(--surface)); }
html .qx input, html .order-row .qx input { font-size: 17px; font-weight: 600; }
.has-qty .qx { border-color: color-mix(in srgb, var(--acc) 45%, var(--line-2)); }
.qx-fill { color: var(--acc); font-weight: 700; background: color-mix(in srgb, var(--acc) 9%, transparent); }
.qx-fill:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.qx-fill.quiet { background: none; font-weight: 550; }
.qx-bar { background: color-mix(in srgb, var(--m-app) 15%, var(--surface-3)); }
.qx-bar i { background: var(--m-app); }
html .howto { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 7%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--acc) 22%, var(--line)); }
html .howto-steps b { background: var(--acc); color: #fff; }
html .mobile-total-bar { background: var(--nav-bg); color: #fff; box-shadow: 0 16px 32px -8px rgba(2,6,23,.5); }
html .mobile-total-bar .btn-primary { background: var(--acc); }

/* ================= HOME ================= */
html .h-head { margin-bottom: 18px; }
html .h-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
html .h-head h1::after { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--acc); margin-top: 10px; }
html .h-hero { border-radius: 16px; border: 0; box-shadow: var(--shadow-lg); }
html .h-title { font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
html .h-short { border-radius: 12px; padding: 16px; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
html .h-short:hover { border-color: color-mix(in srgb, var(--mc, var(--acc)) 40%, var(--line)); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--mc, var(--acc)) 55%, transparent); transform: translateY(-1px); background: var(--surface); }
html .h-short .hs-ic { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--mc, var(--acc)) var(--tint), var(--surface)); color: var(--mc, var(--acc)); }
html .h-short { grid-template-columns: 40px minmax(0, 1fr); }
html .h-short .hs-t { font-weight: 700; }
a.h-short[href^="app.html#account"] { --mc: var(--m-account); }
a.h-short[href="app.html"], a.h-short[href^="app.html#quotes"], a.h-short[href^="app.html#pricing"] { --mc: var(--m-app); }
a.h-short[href="app.html"] { --mc: var(--acc); }
a.h-short[href^="engineering"] { --mc: var(--m-engineering); } a.h-short[href^="production"] { --mc: var(--m-production); } a.h-short[href^="admin"] { --mc: var(--m-admin); }
html .h-day { background: none; border: 0; gap: 12px; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
html .h-stat { position: relative; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 18px 16px; overflow: hidden; }
html .h-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mc, var(--acc)); }
html .h-stat b { font-size: 32px; font-weight: 800; color: var(--mc, var(--ink)); }
html .h-stat:hover { background: var(--surface); border-color: color-mix(in srgb, var(--mc, var(--acc)) 35%, var(--line)); }
a.h-stat[href^="app.html"] { --mc: var(--m-app); } a.h-stat[href^="production"] { --mc: var(--m-production); } a.h-stat[href^="engineering"] { --mc: var(--m-engineering); }
html .h-stat.warn { --mc: var(--warn); } html .h-stat.warn b, html .h-stat.live b { color: var(--mc); }
html .h-cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================= AUTH ================= */
html .auth-shell { background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%), var(--nav-bg); }
html .auth-card { border: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
html .auth-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; background: var(--acc); }

/* ================= DENSITY + TEXT SIZE (Account settings) ================= */
:root[data-density="compact"] html body, :root[data-density="compact"] body { font-size: 13.5px; }
:root[data-density="compact"] .card { padding: 14px; }
:root[data-density="compact"] .total-card { padding: 0; }
:root[data-density="compact"] .order-list.grid .order-item { padding: 8px 10px 6px; }
:root[data-density="compact"] .order-row { padding: 0; }
:root[data-density="compact"] .qx, :root[data-density="compact"] .order-list.grid .qx { height: 36px; }
:root[data-density="compact"] .v4-link { height: 34px; }
:root[data-density="compact"] main.container { padding-top: 18px; }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before { transition: none !important; animation: none !important; }

/* ---------- carried over from earlier v4.10 drafts ---------- */
html .order-list.grid .qx-meta { min-height: 26px; }
.qx-meta .full { color: var(--good); font-weight: 700; }
/* Home welcome card: warm, light, the photo banner carries the drama */
html .h-head { position: relative; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 8%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--line)); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow); align-items: center; }
html .h-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc); }
html .h-head h1 { color: var(--ink); }
html .h-head p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 640px) {
  html .h-head { flex-direction: column; align-items: flex-start; padding: 18px; gap: 10px; }
  html .h-head h1 { font-size: 23px; }
  body.v4 .topbar { justify-content: flex-start; gap: 10px; }
  body.v4 .topbar .brand { margin-right: auto; }
}
/* the quote total: one dark, confident panel that matches the sidebar */
html .total-card > .stats-row { background: var(--nav-bg); color: #fff; border-bottom: 0; padding-top: 22px; padding-bottom: 18px; overflow: hidden; }
html .total-card > .stats-row::after { content: ''; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 40%, transparent), transparent 65%); pointer-events: none; }
html .total-card > .stats-row .stat-block { position: relative; z-index: 1; }
html .total-card > .stats-row .stat-block.right .big { color: #fff; }
html .total-card > .stats-row .lbl { color: var(--nav-soft); }
html .total-card > .stats-row .stat-block:not(.right) .big { color: #6EE7B7; background: rgba(16,185,129,.16); }
html .acct-pipes { color: var(--acc); opacity: .14; }
