:root { color-scheme: light dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:#0b1020; color:#eef2ff; }
* { box-sizing:border-box; }
body { margin:0; background:linear-gradient(180deg,#0b1020,#111827 45%,#0b1020); min-height:100vh; }
button,input,select { font:inherit; }
button { cursor:pointer; }
.shell { width:min(900px,100%); margin:0 auto; padding:18px 14px 72px; }
.hero { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px 4px 14px; }
h1 { margin:2px 0 8px; font-size:clamp(2rem,8vw,3.5rem); letter-spacing:-.05em; }
h2 { margin:2px 0; font-size:1.15rem; }
p { line-height:1.45; }
.eyebrow { margin:0; font-size:.72rem; letter-spacing:.14em; font-weight:800; opacity:.65; }
.card { margin:12px 0; padding:16px; border:1px solid rgba(255,255,255,.1); background:rgba(17,24,39,.86); border-radius:18px; box-shadow:0 12px 30px rgba(0,0,0,.18); }
.upload-card { display:grid; gap:10px; }
.file-button { display:flex; justify-content:center; align-items:center; padding:14px 16px; border-radius:14px; background:#f8fafc; color:#111827; font-weight:800; }
.file-button input { display:none; }
button { border:0; border-radius:12px; padding:11px 14px; background:#f8fafc; color:#111827; font-weight:750; }
button.secondary { background:rgba(255,255,255,.08); color:#eef2ff; border:1px solid rgba(255,255,255,.12); }
button.danger { background:rgba(248,113,113,.08); color:#fecaca; border:1px solid rgba(248,113,113,.2); }
.privacy,.muted,.status { color:#aab4ca; font-size:.87rem; }
.light { width:44px; height:44px; border-radius:999px; display:grid; place-items:center; font-size:2rem; line-height:1; border:1px solid rgba(255,255,255,.15); flex:0 0 auto; }
.light.green { color:#4ade80; box-shadow:0 0 30px rgba(74,222,128,.25); }
.light.yellow { color:#facc15; box-shadow:0 0 30px rgba(250,204,21,.22); }
.light.red { color:#fb7185; box-shadow:0 0 30px rgba(251,113,133,.25); }
.light.neutral { color:#64748b; }
.tabs { position:sticky; top:8px; z-index:20; display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:2px 0 14px; padding:5px; border:1px solid rgba(255,255,255,.1); border-radius:15px; background:rgba(11,16,32,.88); backdrop-filter:blur(12px); }
.tab { padding:9px 8px; background:transparent; color:#94a3b8; border-radius:10px; }
.tab.active { background:rgba(255,255,255,.1); color:#f8fafc; }
.section-heading { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:10px; }
.badge { font-size:.76rem; border-radius:999px; padding:6px 9px; background:rgba(255,255,255,.08); color:#cbd5e1; white-space:nowrap; }
.badge.good { color:#86efac; background:rgba(74,222,128,.09); border:1px solid rgba(74,222,128,.2); }
.badge.warn { color:#fde68a; background:rgba(250,204,21,.08); border:1px solid rgba(250,204,21,.22); }
.badge.bad { color:#fecaca; background:rgba(248,113,113,.08); border:1px solid rgba(248,113,113,.22); }
.summary-list { display:grid; margin:2px 0 12px; border-top:1px solid rgba(255,255,255,.07); }
.summary-row { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:9px 2px; border-bottom:1px solid rgba(255,255,255,.07); }
.summary-row span { color:#94a3b8; font-size:.82rem; }
.summary-row strong { text-align:right; }
.mini-label { margin:10px 0 7px; color:#94a3b8; font-size:.76rem; }
.tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.tag { display:inline-flex; align-items:center; min-height:30px; padding:5px 9px; border-radius:999px; background:rgba(74,222,128,.08); color:#bbf7d0; border:1px solid rgba(74,222,128,.16); font-size:.78rem; }
.notice-box { margin-top:12px; padding:10px 12px; border-radius:12px; border:1px solid rgba(250,204,21,.2); background:rgba(250,204,21,.06); }
.notice-box p { margin:0; color:#fde68a; font-size:.82rem; }
.notice-box p + p { margin-top:7px; }
.review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.review-field { display:grid; gap:4px; padding:8px; border-radius:11px; background:rgba(255,255,255,.035); }
.review-field.uncertain { outline:1px solid rgba(250,204,21,.65); }
.field-label { font-size:.75rem; color:#aab4ca; }
.review-field input { width:100%; padding:8px 9px; min-height:38px; border-radius:8px; border:1px solid rgba(255,255,255,.12); background:#0b1020; color:#f8fafc; }
.review-field small { color:#64748b; font-size:.7rem; }
.inline-warning { grid-column:1/-1; padding:10px; border-radius:11px; background:rgba(250,204,21,.08); border:1px solid rgba(250,204,21,.28); color:#fde68a; font-size:.83rem; }
.inline-warning.blocking { background:rgba(248,113,113,.08); border-color:rgba(248,113,113,.28); color:#fecaca; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.compact-actions { margin-top:12px; }
.raw { overflow:auto; max-height:320px; margin-top:12px; padding:12px; white-space:pre-wrap; background:#050816; border-radius:12px; color:#cbd5e1; font-size:.78rem; }
.metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.metric { padding:11px 12px; border-radius:12px; background:rgba(255,255,255,.04); display:grid; gap:3px; }
.metric span { color:#94a3b8; font-size:.74rem; }
.metric strong { font-size:1.03rem; }
.history-row { display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-top:1px solid rgba(255,255,255,.08); }
.history-row:first-child { border-top:0; }
.history-row > div { display:grid; gap:2px; }
.history-row > div:last-child { text-align:right; }
.history-row span { font-size:.76rem; color:#94a3b8; }
.mini-state { display:inline-flex; width:max-content; margin-top:3px; padding:3px 6px; border-radius:999px; color:#bfdbfe !important; background:rgba(96,165,250,.08); border:1px solid rgba(96,165,250,.17); }
.year-select { min-width:88px; border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:8px 10px; background:#0b1020; color:#f8fafc; font-weight:700; }
.error-card { border-color:rgba(248,113,113,.24); }
.quiet-card { border-style:dashed; box-shadow:none; }
.hidden { display:none !important; }
@media (max-width:620px) {
  .shell { padding-left:10px; padding-right:10px; }
  .review-grid { grid-template-columns:1fr; }
  .metrics { grid-template-columns:1fr; }
  .history-row { align-items:flex-start; }
  .hero p { max-width:32rem; }
  .card { padding:13px; border-radius:15px; }
  .summary-row { padding:8px 1px; }
  .tabs { top:5px; }
  .actions button { flex:1 1 auto; }
}
.learning-note { margin:10px 0 0; padding:10px 11px; border-radius:11px; background:rgba(96,165,250,.07); border:1px solid rgba(96,165,250,.18); color:#bfdbfe; font-size:.82rem; line-height:1.45; }

/* Beta: data-derived monthly pay bars; no external charting dependencies. */
.chart-legend { display:flex; gap:16px; margin:0 0 14px; color:#aab4ca; font-size:.77rem; }
.chart-legend span::before { content:""; display:inline-block; width:10px; height:10px; margin-right:6px; border-radius:3px; }
.legend-gross::before { background:#60a5fa; }
.legend-net::before { background:#4ade80; }
.monthly-chart { display:grid; gap:11px; margin:12px 0; }
.chart-row { display:grid; grid-template-columns:44px minmax(0,1fr) 104px; align-items:center; gap:9px; min-width:0; }
.chart-month-label { color:#aab4ca; font-size:.8rem; }
.chart-bars { display:grid; align-content:center; gap:4px; min-width:0; min-height:22px; color:#fde68a; font-size:.75rem; }
.chart-bar { height:8px; border-radius:4px; min-width:0; max-width:100%; }
.chart-bar-gross { background:#60a5fa; }
.chart-bar-net { background:#4ade80; }
.chart-amount { font-size:.79rem; text-align:right; font-variant-numeric:tabular-nums; }
.analysis-coverage { grid-column:1/-1; margin:3px 0 0; }
@media (max-width:390px) {
  .tab { padding:9px 3px; font-size:.82rem; }
  .chart-row { grid-template-columns:38px minmax(0,1fr) 83px; gap:6px; }
  .chart-amount { font-size:.72rem; }
}

/* Beta insights · accessible expandable detail and local-only scenario inputs */
.insight-rows { display:grid; gap:8px; margin:12px 0; min-width:0; }
.insight-line { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; padding:9px 0; border-bottom:1px solid rgba(160,174,192,.13); font-size:.84rem; line-height:1.45; }
.insight-line span { color:#aab4ca; flex:1 1 45%; min-width:120px; overflow-wrap:anywhere; }
.insight-line strong { font-weight:600; text-align:right; flex:0 1 auto; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.month-expand { border:1px solid rgba(160,174,192,.2); border-radius:10px; padding:11px 12px; min-width:0; background:rgba(255,255,255,.018); }
.month-expand summary { cursor:pointer; font-weight:600; font-size:.85rem; line-height:1.5; overflow-wrap:anywhere; }
.month-expand[open] summary { margin-bottom:9px; }
.input-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); gap:12px; margin:12px 0 14px; min-width:0; }
.insight-label { display:grid; gap:7px; margin:10px 0; font-size:.82rem; color:#cbd5e1; }
.insight-label input,.insight-label select { min-width:0; width:100%; box-sizing:border-box; border-radius:10px; padding:11px 12px; background:#121a2a; color:#f8fafc; border:1px solid rgba(148,163,184,.35); font:inherit; font-size:1rem; }
.insight-label input:focus-visible,.insight-label select:focus-visible { outline:2px solid #60a5fa; outline-offset:2px; }
@media(max-width:390px){.input-grid{grid-template-columns:minmax(0,1fr)} .insight-line strong{text-align:left}}
