/* ============================================================
   POD Roadmap brand: dark topo map, cyan road, neon heartbeat
   ============================================================ */
:root {
  --bg: #0d1117;
  --bg-2: #10141B;
  --panel: #1A212B;
  --panel-2: #161C25;
  --pill: #212A36;
  --border: #2B3542;
  --text: #F2F5F7;
  --muted: #93A1AE;
  --muted-2: #5F6D7A;
  --accent: #34D6DE;      /* cyan road line */
  --accent-2: #1FA6AE;    /* deep teal */
  --accent-ink: #0B1216;  /* text on cyan */
  --lime: #DDF247;        /* neon heartbeat yellow */
  --green: #5BE37D;       /* glowing green */
  --good: #5BE37D;
  --good-bg: rgba(91,227,125,.12);
  --warn: #DDF247;
  --warn-bg: rgba(221,242,71,.10);
  --bad: #FF8A8A;
  --bad-bg: rgba(255,138,138,.12);
  --radius: 16px;
  --glow: 0 0 0 1px rgba(52,214,222,.35), 0 0 18px rgba(52,214,222,.25);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", "Inter", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(31,166,174,.12), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(91,227,125,.06), transparent 60%),
              url("topo.svg") 0 0 / 900px 700px repeat, var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, .display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.hidden { display: none !important; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-img { flex: none; display: block; border-radius: 22%; clip-path: inset(1px round 22%); box-shadow: 0 0 14px rgba(52,214,222,.25); }
.logo-text { line-height: .92; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; }
.logo-text b { display: block; font-size: 20px; letter-spacing: .01em; }
.logo-text span { display: block; font-size: 20px; letter-spacing: .01em; }
.logo-text small { display: block; font-style: normal; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--accent); margin-top: 5px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 20px rgba(52,214,222,.35); }
.btn-primary:hover { background: #5be2e8; box-shadow: 0 0 28px rgba(52,214,222,.5); }
.btn-dark { background: var(--pill); color: var(--text); border-color: var(--border); }
.btn-dark:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; font-size: 16px; line-height: 1; text-decoration: none; }
.icon-btn:hover { background: var(--bad-bg); color: var(--bad); }

label.field { display: block; }
.field-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #d5dce2; }
.field-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; transition: border .15s, box-shadow .15s; color: var(--text); }
.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,214,222,.15); }
select.input option { background: var(--panel); }
.input-wrap { position: relative; }
.input-wrap .prefix, .input-wrap .suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 14px; pointer-events: none; }
.input-wrap .prefix { left: 12px; }
.input-wrap .suffix { right: 12px; }
.input-wrap.has-prefix .input { padding-left: 26px; }
.input-wrap.has-suffix .input { padding-right: 30px; }
.input.tight { padding: 7px 9px; border-radius: 8px; }
.input-wrap.has-prefix .input.tight { padding-left: 22px; }
.input-wrap.has-prefix .prefix { left: 9px; }
input[type=number]::-webkit-inner-spin-button { opacity: .3; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--pill); border: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 800; cursor: help; font-family: var(--font); font-style: normal; text-transform: none; letter-spacing: 0; }
.tip:hover, .tip:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: 150%; transform: translateX(-50%); width: 260px; background: #0B1216; border: 1px solid var(--accent-2); color: var(--text); font-weight: 500; font-size: 12px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; white-space: pre-line; box-shadow: 0 10px 30px rgba(0,0,0,.5); text-align: left; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid var(--border);
  background: radial-gradient(700px 400px at 30% 40%, rgba(31,166,174,.16), transparent 70%), url("topo.svg") 0 0 / 700px 545px repeat, #0A0E13; }
.auth-hero h1 { font-size: 54px; line-height: 1; margin: 48px 0 18px; max-width: 560px; }
.auth-hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px rgba(52,214,222,.45); }
.auth-hero p { color: var(--muted); max-width: 460px; font-size: 16px; }
.auth-hero ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 470px; }
.auth-hero li { display: flex; gap: 12px; align-items: center; color: #d5dce2; background: rgba(26,33,43,.7); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 8px; }
.auth-hero li i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(52,214,222,.12); border: 1px solid rgba(52,214,222,.5); color: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.auth-road { position: absolute; left: 0; right: 0; bottom: 84px; width: 100%; height: 90px; pointer-events: none; }
.auth-foot { font-size: 13px; color: var(--muted-2); position: relative; }
.auth-foot a { color: var(--text); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: rgba(13,17,23,.85); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 30px; margin: 0 0 6px; }
.auth-card form { display: grid; gap: 14px; margin-top: 24px; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255,138,138,.3); }
.form-ok { background: var(--good-bg); color: var(--good); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid rgba(91,227,125,.3); }
.get-access { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--panel-2); border: 1px dashed var(--border); text-align: center; font-size: 14px; color: var(--muted); }
.get-access .btn { margin-top: 10px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: rgba(10,14,19,.92); border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .logo { padding: 0 8px 26px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid transparent; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: rgba(52,214,222,.08); color: var(--accent); border-color: rgba(52,214,222,.35); box-shadow: 0 0 14px rgba(52,214,222,.12); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-pulse { margin: 18px 8px 0; opacity: .8; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--muted-2); padding: 12px; border-top: 1px solid var(--border); }
.side-foot b { color: var(--text); display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.side-foot span { color: var(--muted); }
.side-foot .btn-link { color: var(--muted); font-size: 12px; margin-top: 6px; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--border); background: rgba(13,17,23,.82); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 28px; margin: 0; line-height: 1.05; }
.topbar .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.save-status { font-size: 12px; color: var(--good); font-weight: 600; min-width: 64px; text-align: right; }
.save-status.saving { color: var(--lime); }
.save-status.error { color: var(--bad); }
.content { padding: 28px 32px 64px; max-width: 1300px; }
.demo-banner { background: rgba(221,242,71,.07); color: var(--lime); font-size: 13px; font-weight: 600; padding: 8px 32px; border-bottom: 1px solid rgba(221,242,71,.18); }
.mobile-nav { display: none; }

/* ---------- cards / layout ---------- */
.card { background: linear-gradient(180deg, rgba(26,33,43,.96), rgba(22,28,37,.96)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 20px; margin: 0 0 4px; }
.card h3 { font-size: 12px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-head p b { color: var(--text); }
.card-head > b { font-family: var(--display); font-size: 22px; color: var(--text); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.sticky { position: sticky; top: 100px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; margin-right: 10px; vertical-align: 2px; box-shadow: 0 0 12px rgba(52,214,222,.3); font-family: var(--display); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: linear-gradient(180deg, rgba(26,33,43,.96), rgba(22,28,37,.96)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .k-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; display: flex; gap: 6px; align-items: center; }
.kpi .k-value { font-family: var(--display); font-size: 34px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.feature { border-color: rgba(91,227,125,.55); box-shadow: 0 0 0 1px rgba(91,227,125,.25), 0 0 26px rgba(91,227,125,.18); background: linear-gradient(160deg, rgba(91,227,125,.10), rgba(22,28,37,.96) 60%); }
.kpi.feature .k-value { color: var(--green); text-shadow: 0 0 18px rgba(91,227,125,.35); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.ok { background: var(--warn-bg); color: var(--lime); }
.badge.low { background: var(--bad-bg); color: var(--bad); }
.badge.neutral { background: var(--pill); color: var(--accent); }

/* reminder banner (the "Holiday Roadmap" glowing pill look) */
.reminder { display: flex; align-items: center; gap: 16px; background: linear-gradient(100deg, rgba(91,227,125,.10), rgba(26,33,43,.95) 55%); border: 1.5px solid rgba(91,227,125,.6); box-shadow: 0 0 24px rgba(91,227,125,.18); border-radius: 999px; padding: 14px 16px 14px 24px; margin-bottom: 18px; }
.reminder .r-icon { flex: none; }
.reminder b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 20px; }
.reminder span { color: var(--muted); font-size: 13px; }
.reminder .btn-primary { background: var(--green); box-shadow: 0 0 20px rgba(91,227,125,.4); }
.reminder .btn-primary:hover { background: #7aeb95; }

/* insights */
.insights { display: grid; gap: 10px; }
.insight { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); font-size: 14px; color: #d5dce2; }
.insight b { color: var(--text); }
.insight .i-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--muted-2); }
.insight.good .i-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.insight.warn .i-dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.insight.bad .i-dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.insight.neutral .i-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted-2); font-size: 11px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 86px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 10px; color: #d5dce2; }
.hbar .track { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--accent); }

/* summary list */
.sum-list { display: grid; gap: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: #d5dce2; }
.sum-row:last-child { border-bottom: 0; }
.sum-row b { font-weight: 700; color: var(--text); }
.sum-row.total { border-top: 1px solid var(--accent-2); border-bottom: 0; margin-top: 4px; padding-top: 12px; font-size: 15px; }
.sum-row.total b { font-family: var(--display); font-size: 22px; }
.big-profit { text-align: center; padding: 20px 0 10px; }
.big-profit .v { font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1; }
.big-profit .v.pos { text-shadow: 0 0 22px rgba(91,227,125,.4); }
.big-profit .l { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-top: 8px; }

/* month picker */
.month-picker { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; }
.month-picker select { border: 0; background: transparent; font-weight: 700; padding: 6px 4px; outline: none; cursor: pointer; color: var(--text); }
.month-picker select option { background: var(--panel); }
.month-picker .icon-btn { font-size: 20px; }
.month-picker .icon-btn:hover { background: var(--pill); color: var(--accent); }
.month-strip { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 6px; margin-bottom: 18px; position: relative; }
.month-strip a { text-align: center; padding: 9px 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; position: relative; letter-spacing: .04em; }
.month-strip a:hover { border-color: var(--accent-2); color: var(--text); }
.month-strip a.done { color: var(--text); }
.month-strip a.done::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); transform: translateX(-50%); }
.month-strip a.current { background: rgba(52,214,222,.12); color: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(52,214,222,.25); }
.month-strip a.future { opacity: .4; }

/* list editors */
.list-table { width: 100%; border-collapse: collapse; }
.list-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 6px 6px; text-transform: uppercase; letter-spacing: .08em; }
.list-table td { padding: 4px 6px; vertical-align: middle; }
.list-table td.calc { font-weight: 700; white-space: nowrap; }
.empty-note { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); }
.data { border-collapse: collapse; width: 100%; font-size: 13px; }
.data th, .data td { padding: 9px 12px; border-bottom: 1px solid #222a35; white-space: nowrap; text-align: right; }
.data th:first-child, .data td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel-2); z-index: 1; }
.data thead th { background: var(--panel); font-size: 11px; color: var(--muted); font-weight: 700; position: sticky; top: 0; text-transform: uppercase; letter-spacing: .08em; }
.data thead th a { color: var(--accent); text-decoration: none; }
.data thead th:first-child { background: var(--panel); z-index: 2; }
.data td a { color: var(--text); text-decoration: none; }
.data td a:hover { color: var(--accent); }
.data tr:hover td { background: #1b222c; }
.data tr.group td { background: rgba(52,214,222,.07); color: var(--accent); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; text-align: left; border-top: 1px solid rgba(52,214,222,.25); border-bottom-color: rgba(52,214,222,.25); }
.data tr.group td:first-child { background: #15232a; }
.data tr.total td { font-weight: 800; background: var(--panel); border-top: 1px solid var(--accent-2); }
.data tr.total td:first-child { background: var(--panel); }
.data td.dim { color: var(--muted-2); }
.data .m-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); padding: 4px; border-radius: 999px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 1px solid transparent; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgba(52,214,222,.1); color: var(--accent); border-color: rgba(52,214,222,.4); }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel); border: 1px solid var(--accent-2); color: var(--text); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; box-shadow: 0 0 20px rgba(52,214,222,.2); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: 28px; margin: 12px 0 6px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 24px 40px; border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-hero h1 { font-size: 36px; margin-top: 24px; }
  .auth-hero ul, .auth-road { display: none; }
  .auth-card { padding: 24px; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-nav { display: flex; gap: 4px; overflow-x: auto; background: rgba(10,14,19,.96); border-bottom: 1px solid var(--border); padding: 10px 12px; position: sticky; top: 0; z-index: 11; }
  .mobile-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
  .mobile-nav a.active { color: var(--accent); border-color: rgba(52,214,222,.4); background: rgba(52,214,222,.08); }
  .topbar { position: static; padding: 16px 18px; flex-wrap: wrap; }
  .topbar h1 { font-size: 24px; }
  .content { padding: 18px 16px 48px; }
  .demo-banner { padding: 8px 18px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .month-strip { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .hbar { grid-template-columns: 110px 1fr 80px; }
  .reminder { border-radius: 18px; flex-wrap: wrap; padding: 16px; }
  .list-table thead { display: none; }
  .list-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .list-table td { padding: 0; }
  .list-table td:first-child { grid-column: 1 / -1; }
}
@media print {
  :root { --bg: #fff; --panel: #fff; --panel-2: #fff; --text: #111; --muted: #555; --border: #ccc; }
  body { background: #fff; color: #111; }
  .side, .topbar .top-actions, .mobile-nav, .demo-banner { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .card, .kpi, .table-wrap { background: #fff !important; box-shadow: none !important; }
}

.dash-main { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
@media (max-width: 1100px) { .dash-main { grid-template-columns: 1fr; } }

/* Etsy CSV import */
.import-card { margin-bottom: 18px; border-style: dashed; border-color: rgba(52,214,222,.35); transition: border-color .15s, box-shadow .15s; }
.import-card.dragging { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(52,214,222,.25); }
.import-card + .split { margin-top: 0; }
.imp-month { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.imp-title { font-family: var(--display); text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }

/* ---------- readability pass ---------- */
.field-label { white-space: nowrap; min-height: 18px; }
.grid.g4 > .field, .grid.g4 > label.field { display: flex; flex-direction: column; justify-content: flex-end; }

/* striped rows */
.sum-list .sum-row { padding: 9px 10px; border-bottom: 0; border-radius: 8px; }
.sum-list .sum-row:nth-child(even) { background: rgba(255,255,255,.03); }
.sum-list .sum-row.total { border-radius: 0; background: none; }
.data.zebra tbody tr:not(.group):not(.total):nth-child(even) td { background: #1b222c; }
.data.zebra tbody tr:not(.group):not(.total):nth-child(even) td:first-child { background: #1b222c; }
.data td.sel, .data th.sel { background: rgba(26,157,166,.12) !important; color: var(--text); }
.data th.sel { color: var(--accent); }
.data td.strong, .data th.strong { font-weight: 700; color: var(--text); }
.data tr.empty td { color: var(--muted-2); }
.data tr:hover td { background: #222b37 !important; }

/* chart hover */
.chart .col { fill: transparent; }
.chart .hit.hover .col { fill: rgba(255,255,255,.05); }
.hit { cursor: default; }
.chart-tip { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .1s; background: #0B1216; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #d5dce2; box-shadow: 0 10px 30px rgba(0,0,0,.5); min-width: 150px; }
.chart-tip.show { opacity: 1; }
.chart-tip b { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.hbar { grid-template-columns: 150px 1fr 76px auto; padding: 4px 6px; border-radius: 8px; margin-bottom: 4px; }
.hbar:nth-child(even) { background: rgba(255,255,255,.025); }
.hbar.hover { background: rgba(255,255,255,.06); }
.hbar .share { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.hbar .track { height: 10px; }

/* metric tiles */
.metrics-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-bottom: 18px; align-items: start; }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.mtile { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 20px; }
.m-label { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.m-val { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.m-val.dim { color: var(--muted-2); }
.m-sub { min-height: 20px; display: flex; align-items: center; gap: 2px; }
.chip { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.chip.up { background: var(--good-bg); color: var(--good); }
.chip.down { background: var(--bad-bg); color: var(--bad); }
.chip.flat { background: var(--pill); color: var(--muted); }
.spark { width: 100%; height: 34px; margin-top: 4px; overflow: visible; }
.spark-empty { font-size: 11px; color: var(--muted-2); height: 34px; display: flex; align-items: center; margin-top: 4px; }
details.full-table summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; }
details.full-table summary::-webkit-details-marker { display: none; }
details.full-table summary h2 { margin: 0; }
details.full-table summary::before { content: "▸"; color: var(--accent); font-size: 14px; transition: transform .15s; }
details.full-table[open] summary::before { transform: rotate(90deg); }
.year-table td:first-child { white-space: nowrap; }
.month-picker button.icon-btn[disabled] { opacity: .3; cursor: default; }
.month-picker button.icon-btn { font-size: 20px; }

@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } .metrics-top { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hbar { grid-template-columns: 100px 1fr 64px auto; } .m-val { font-size: 22px; } }

.grid > .card + .card { margin-top: 0; }
@media (max-width: 860px) { .m-top { flex-wrap: wrap; } .m-label { white-space: normal; } .mgrid { gap: 8px; } .mtile { padding: 10px 10px 6px; } }

/* ---------- profit calculator ---------- */
.calc-grid { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr); align-items: start; }
.frows { display: grid; gap: 0; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: text; }
.frow:nth-child(even) { background: rgba(255,255,255,.03); }
.frow-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: #d5dce2; }
.frow-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; justify-content: flex-start; cursor: pointer; }
.frow-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.profit-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.donut { width: 150px; height: 150px; overflow: visible; }
.donut .seg { transition: stroke-width .12s; cursor: default; }
.donut .seg.hover { stroke-width: 30; }
.donut .dn-v { font-family: var(--display); font-size: 26px; font-weight: 700; fill: var(--text); }
.donut .dn-v.pos { fill: var(--good); }
.donut .dn-v.neg { fill: var(--bad); }
.donut .dn-l { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.donut-legend { display: grid; gap: 6px; font-size: 13px; }
.dl-row { display: grid; grid-template-columns: 12px 1fr auto 36px; gap: 8px; align-items: center; }
.dl-row b { text-align: right; }
.dl-row .muted { text-align: right; font-size: 12px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; flex: none; }
.dl-row .sw { margin-right: 0; }
.sale-hero { background: var(--panel-2); border: 1px solid rgba(91,227,125,.4); border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 18px rgba(91,227,125,.08); }
.sale-price { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--green); line-height: 1.1; margin: 2px 0 4px; }
@media (max-width: 1250px) { .profit-split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .frow { grid-template-columns: minmax(0,1fr) 140px; padding: 8px 6px; } .donut-wrap { grid-template-columns: 120px 1fr; } .donut { width: 120px; height: 120px; } }
.calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.frow { grid-template-columns: minmax(0, 1fr) 130px; }
.frow-label { white-space: nowrap; }
.profit-split { grid-template-columns: 1fr; gap: 16px; }
.profit-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.donut-wrap { grid-template-columns: 140px minmax(190px, 1fr); }
.donut { width: 140px; height: 140px; }
.dl-row span:nth-child(2) { white-space: nowrap; }
@media (max-width: 1250px) { .profit-top { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .frow { grid-template-columns: minmax(0,1fr) 120px; } .frow-label { white-space: normal; } }
@media (max-width: 1100px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .donut-wrap { grid-template-columns: 120px minmax(0, 1fr); }
  .donut { width: 120px; height: 120px; }
  .dl-row { grid-template-columns: 12px minmax(0,1fr) auto 32px; gap: 6px; }
  .dl-row span:nth-child(2) { white-space: normal; }
}
/* calculator: four equal boxes in a 2x2 grid */
.calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.calc-grid > .card { margin-top: 0; }
@media (max-width: 1100px) { .calc-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.profit-top .big-profit .l { white-space: nowrap; }

/* ---------- Etsy Ads ---------- */
.verdict { margin-bottom: 18px; font-size: 15px; padding: 16px 18px; border-radius: 14px; }
.verdict.good { border-color: rgba(91,227,125,.45); background: rgba(91,227,125,.06); }
.verdict.bad { border-color: rgba(255,138,138,.45); background: rgba(255,138,138,.06); }
.verdict .i-dot { margin-top: 7px; }
.ads-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; margin-bottom: 18px; }
.ads-grid > .card { margin-top: 0; }
.funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.f-step { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; }
.f-num { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.f-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.f-arrow { font-size: 11px; color: var(--muted); display: grid; gap: 1px; }
.f-arrow span { font-weight: 800; color: var(--accent); font-size: 13px; }
.f-arrow::after { content: "→"; color: var(--muted-2); font-size: 16px; }
.data tr.sel-row td { background: rgba(26,157,166,.10) !important; }
.data td .btn-link { color: var(--text); text-decoration: none; font-weight: 600; }
.data td .btn-link:hover { color: var(--accent); }
@media (max-width: 1100px) { .ads-grid { grid-template-columns: 1fr; } }
.kpi.feature.bad { border-color: rgba(255,138,138,.55); box-shadow: 0 0 0 1px rgba(255,138,138,.25), 0 0 26px rgba(255,138,138,.14); background: linear-gradient(160deg, rgba(255,138,138,.10), rgba(22,28,37,.96) 60%); }
.kpi.feature.bad .k-value { color: var(--bad); text-shadow: 0 0 18px rgba(255,138,138,.3); }

/* ---------- check-in: stacked rows & editable expense list ---------- */
.h3row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 8px; }
.h3row h3 { margin: 0; }
.frow-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--pill); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.frows.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.frows.two-col .frow:nth-child(4n+2), .frows.two-col .frow:nth-child(4n+3) { background: rgba(255,255,255,.03); }
.frows.two-col .frow:nth-child(4n+1), .frows.two-col .frow:nth-child(4n+4) { background: none; }
.line-edit { display: grid; gap: 8px; }
.le-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 34px; gap: 8px; align-items: center; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
@media (max-width: 860px) {
  .frows.two-col { grid-template-columns: 1fr; }
  .frows.two-col .frow:nth-child(even) { background: rgba(255,255,255,.03); }
  .frows.two-col .frow:nth-child(odd) { background: none; }
  .le-row { grid-template-columns: 1fr 34px; }
  .le-row select { grid-column: 1; }
  .frow-tag { display: none; }
}

/* "Add your visits" prompts */
.visits-note { display: grid; gap: 6px; justify-items: start; background: var(--panel-2); border: 1px dashed rgba(52,214,222,.4); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #d5dce2; }
.visits-note .btn { margin-top: 4px; }
.frow.flash { animation: flashrow 2.2s ease-out; }
@keyframes flashrow { 0%, 40% { background: rgba(52,214,222,.18); box-shadow: inset 0 0 0 1px var(--accent); } 100% { background: transparent; box-shadow: none; } }

/* dashboard columns & insight status icons */
.dash-main { align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stack > .card, .stack .card + .card { margin-top: 0; }
.stack .grid.g2 { gap: 18px; }
.insight { align-items: flex-start; }
.insight .i-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; background: rgba(52,214,222,.12); color: var(--accent); border: 1px solid rgba(52,214,222,.35); font-style: normal; }
.insight.good .i-ico { background: var(--good-bg); color: var(--good); border-color: rgba(91,227,125,.4); }
.insight.ok .i-ico { background: var(--warn-bg); color: var(--lime); border-color: rgba(221,242,71,.4); }
.insight.bad .i-ico { background: var(--bad-bg); color: var(--bad); border-color: rgba(255,138,138,.45); }
.insight.bad { border-color: rgba(255,138,138,.35); }
.insight .i-text { flex: 1; min-width: 0; }
.insight .i-tag { flex: none; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; margin-top: 2px; background: var(--pill); color: var(--muted); }
.insight.good .i-tag { background: var(--good-bg); color: var(--good); }
.insight.ok .i-tag { background: var(--warn-bg); color: var(--lime); }
.insight.bad .i-tag { background: var(--bad-bg); color: var(--bad); }
.insight a { color: var(--accent); }
.verdict-wrap { margin-bottom: 18px; }
.verdict-wrap .insight { font-size: 15px; padding: 16px 18px; }
.verdict-wrap .insight.good { border-color: rgba(91,227,125,.45); background: rgba(91,227,125,.06); }
.verdict-wrap .insight.bad { background: rgba(255,138,138,.06); }
.dash-main { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
