/* FreightAlloy design system — product register, restrained palette, one accent. */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: oklch(0.975 0.004 262);
  --surface: #ffffff;
  --surface-2: oklch(0.955 0.006 262);
  --line: oklch(0.90 0.008 262);
  --line-strong: oklch(0.82 0.012 262);
  --ink: oklch(0.22 0.02 262);
  --ink-2: oklch(0.40 0.02 262);
  --ink-3: oklch(0.52 0.02 262);
  --accent: oklch(0.52 0.20 262);
  --accent-strong: oklch(0.44 0.20 262);
  --accent-soft: oklch(0.95 0.03 262);
  --accent-ink: oklch(0.38 0.17 262);
  --ok: oklch(0.55 0.15 150);  --ok-soft: oklch(0.95 0.04 150);
  --warn: oklch(0.70 0.16 70); --warn-soft: oklch(0.96 0.05 80);
  --bad: oklch(0.55 0.20 25);  --bad-soft: oklch(0.95 0.04 25);
  --info-soft: oklch(0.95 0.03 230);
  --side: oklch(0.21 0.022 262);
  --side-2: oklch(0.27 0.025 262);
  --side-ink: oklch(0.80 0.02 262);
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px oklch(0 0 0 / .05), 0 4px 16px -8px oklch(0.22 0.02 262 / .18);
  --shadow-lg: 0 20px 50px -20px oklch(0.22 0.02 262 / .45);
  --z-drop: 30; --z-sticky: 20; --z-backdrop: 40; --z-panel: 50; --z-toast: 60;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; } h4 { font-size: 13px; color: var(--ink-2); }
p { margin: 0 0 8px; } a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--ink-3); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-3); }
.muted { color: var(--ink-3); } .small { font-size: 12px; } .strong { font-weight: 600; } .num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .gap { gap: 12px; }
.hide { display: none !important; }

/* ---------- shell ---------- */
.app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--side-ink); letter-spacing: 0; }
.nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 500; transition: background .15s var(--ease), color .15s; }
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--accent); color: #fff; }
.nav .sec { padding: 12px 10px 4px; font-size: 11px; font-weight: 600; color: oklch(0.6 0.02 262); }
.side-foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--side-2); font-size: 12px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot button { background: none; border: 0; color: var(--side-ink); padding: 0; cursor: pointer; }
.side-foot button:hover { color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 520px; position: relative; }
.topbar .search input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.topbar .search svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--ink-3); }
.topbar .search kbd { position: absolute; right: 9px; top: 8px; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: var(--surface-2); }
.results { position: absolute; top: 40px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: var(--z-drop); overflow: hidden; }
.results a { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.results a:hover, .results a.sel { background: var(--accent-soft); text-decoration: none; }
.results a:last-child { border-bottom: 0; }
.content { padding: 18px 22px 60px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 2px; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; line-height: 1.2; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); border-color: var(--accent-strong); color: #fff; box-shadow: 0 1px 0 oklch(1 0 0 / .15) inset, 0 1px 2px oklch(0 0 0 / .1); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 40%, var(--line)); } .btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; } .btn.xs { padding: 2px 7px; font-size: 12px; border-radius: 6px; }
.btn.ai { background: linear-gradient(180deg, oklch(0.36 0.06 262), oklch(0.26 0.04 262)); color: #fff; border-color: oklch(0.22 0.03 262); }
.btn.ai:hover { filter: brightness(1.12); }
.btn svg { width: 15px; height: 15px; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-color: #fff transparent #fff transparent; border-radius: 50%; animation: spin .8s linear infinite; color: var(--ink); }
.btn:not(.primary):not(.ai).loading::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); position: relative; z-index: 1; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: auto; }
.error-text { color: var(--bad); font-size: 12.5px; margin-top: 4px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.cols { display: grid; gap: 14px; } .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-main { grid-template-columns: minmax(0, 1fr) 340px; }
.panel-list { display: flex; flex-direction: column; }
.panel-list .item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.panel-list .item:last-child { border-bottom: 0; }
.panel-list .item .body { flex: 1; min-width: 0; }
.panel-list .item .title { font-weight: 600; } .panel-list .item .meta { font-size: 12px; color: var(--ink-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 4px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: oklch(0.40 0.12 150); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: oklch(0.45 0.12 70); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: oklch(0.42 0.16 25); border-color: transparent; }
.chip.info { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.rating { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 12px; background: var(--surface-2); color: var(--ink-2); }
.rating.A { background: var(--accent); color: #fff; } .rating.B { background: var(--accent-soft); color: var(--accent-ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 12px; flex: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: oklch(0.985 0.004 262); }
.tbl tr.click { cursor: pointer; }
.tbl .th-r, .tbl .td-r { text-align: right; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .t { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s var(--ease); }
.bar i.ok { background: var(--ok); } .bar i.warn { background: var(--warn); } .bar i.bad { background: var(--bad); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 300px; display: flex; flex-direction: column; }
.kcol .kh { padding: 10px 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.kcol .kh .n { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kcol .kb { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kcol.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: grab; box-shadow: 0 1px 2px oklch(0 0 0 / .04); }
.kcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.kcard .t { font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 6px; }
.kcard .m { font-size: 12px; color: var(--ink-3); }
.kcard.dragging { opacity: .5; }

/* ---------- side panel (slide-over) ---------- */
.backdrop { position: fixed; inset: 0; background: oklch(0.2 0.02 262 / .35); z-index: var(--z-backdrop); animation: fade .18s var(--ease); }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: var(--z-panel); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s var(--ease); }
.panel.wide { width: min(760px, 100vw); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.panel-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.dialog { position: fixed; inset: 0; display: grid; place-items: center; z-index: var(--z-panel); padding: 20px; }
.dialog .box { background: var(--surface); border-radius: 12px; width: min(440px, 100%); box-shadow: var(--shadow-lg); padding: 18px; animation: pop .18s var(--ease); }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 8px 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); } .tabs button.on { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- timeline ---------- */
.tl { display: flex; flex-direction: column; }
.tl .ev { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl .ev:last-child { border-bottom: 0; }
.tl .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 10.5px; font-weight: 700; }
.tl .ic.CALL { background: var(--accent-soft); color: var(--accent-ink); } .tl .ic.VISIT { background: var(--ok-soft); color: oklch(0.4 0.12 150); } .tl .ic.WHATSAPP { background: oklch(0.95 0.05 150); color: oklch(0.4 0.12 150); }
.tl .ic.QUOTE { background: var(--warn-soft); color: oklch(0.45 0.12 70); } .tl .ic.STAGE { background: oklch(0.95 0.04 300); color: oklch(0.4 0.14 300); } .tl .ic.AI { background: oklch(0.3 0.04 262); color: #fff; }
.tl .h { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; } .tl .h .when { font-weight: 500; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.tl .d { color: var(--ink-2); white-space: pre-wrap; margin-top: 2px; font-size: 13px; }

/* ---------- AI output ---------- */
.ai-out { background: oklch(0.985 0.006 262); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; line-height: 1.55; font-size: 13.5px; }
.ai-out h1, .ai-out h2, .ai-out h3 { font-size: 13.5px; margin: 10px 0 4px; } .ai-out table { border-collapse: collapse; margin: 6px 0; } .ai-out td, .ai-out th { border: 1px solid var(--line); padding: 4px 8px; font-size: 12.5px; }
.ai-out ul { margin: 4px 0; padding-left: 18px; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-mark { width: 22px; height: 22px; border-radius: 6px; background: oklch(0.3 0.04 262); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 14px; margin: 6px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- misc ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: var(--z-toast); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .18s var(--ease); max-width: 90vw; }
.toast.bad { background: var(--bad); }
.callout { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.callout.warn { background: var(--warn-soft); border-color: transparent; } .callout.ok { background: var(--ok-soft); border-color: transparent; } .callout.info { background: var(--accent-soft); border-color: transparent; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.spark i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.spark i.v { background: var(--ok); }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel .f { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 8px; font-size: 12.5px; }
.funnel .f b { height: 18px; border-radius: 4px; display: block; min-width: 4px; transition: width .5s var(--ease); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tool-sheet .verdict { font-size: 18px; font-weight: 800; padding: 12px 14px; border-radius: 10px; margin-top: 12px; }
.verdict.ok { background: var(--ok-soft); color: oklch(0.36 0.12 150); } .verdict.bad { background: var(--bad-soft); color: oklch(0.4 0.16 25); }
.print-only { display: none; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 80% -10%, oklch(0.93 0.04 262), transparent), var(--bg); }
.login .box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.login .brand { padding: 0 0 16px; color: var(--ink); }
.login .brand small { color: var(--ink-3); }
.help-btn { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-sticky); border-radius: 999px; padding: 10px 14px; box-shadow: var(--shadow-lg); }
.score { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) { .cols-main { grid-template-columns: 1fr; } .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .content { padding: 14px 14px 90px; }
  .topbar { padding: 10px 14px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--side); z-index: var(--z-sticky); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--side-ink); font-size: 10.5px; font-weight: 600; padding: 4px; border-radius: 8px; }
  .mobile-nav a svg { width: 20px; height: 20px; } .mobile-nav a.active { color: #fff; }
  .help-btn { bottom: 76px; }
  .panel { width: 100vw; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .side, .topbar, .mobile-nav, .help-btn, .no-print { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; } .print-only { display: block; }
  body { background: #fff; } .card, .tool-sheet { border: 0; box-shadow: none; }
}

/* ---------- additions: rate options, contact rows, documents, analytics, senior sources ---------- */
.opt-row .divider { margin: 8px 0; } .opt-row:last-child .divider { display: none; }
.c-row { padding: 6px 0; border-bottom: 1px dashed var(--line); } .c-row:last-child { border-bottom: 0; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hb { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 48px; align-items: center; gap: 8px; font-size: 12.5px; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hb-t { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; } .hb-t i { display: block; height: 100%; border-radius: 4px; transition: width .5s var(--ease); }
.hb-v { text-align: right; font-weight: 600; }
.sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sources a { display: inline-block; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tool-guide summary { cursor: pointer; } .tool-guide ol { padding-left: 18px; margin: 6px 0; } .tool-guide li { margin-bottom: 3px; }
details.callout[open] summary { margin-bottom: 4px; }
input[type=file] { padding: 6px; border: 1px dashed var(--line-strong); border-radius: 8px; width: 100%; background: var(--surface-2); }
