/* ===============================================================
   GoDeposit — styles
   Shares its design language with the rest of the folio
   (CanMortgage, AirTicketMania): Manrope + JetBrains Mono, cards,
   pills, a navy top bar, light and dark themes, an accent colour.
   =============================================================== */
:root {
  --bg: #f2f5f7; --panel: #fff; --panel2: #f5f8fa; --ink: #0f1f29; --muted: #5a6b78; --line: #dfe6eb;
  --accent: #0e9f6e; --accent-ink: #fff; --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --good: #15803d; --good-soft: #dcfce7; --bad: #dc2626; --bad-soft: #fee2e2; --warn: #b45309; --warn-soft: #fef3c7; --info: #2563eb; --info-soft: #dbeafe;
  --navy: #0b2530; --gold: #ffb81c;
  --shadow: 0 1px 2px rgba(15,31,41,.05), 0 8px 24px rgba(15,31,41,.07);
  --r: 16px; --gap: 14px; --pad: 16px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08141a; --panel: #0f1f27; --panel2: #152a34; --ink: #e6eff3; --muted: #93a7b3; --line: #233a46;
    --good: #4ade80; --good-soft: rgba(74,222,128,.13); --bad: #f87171; --bad-soft: rgba(248,113,113,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13); --info: #60a5fa; --info-soft: rgba(96,165,250,.14);
    --navy: #06171e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08141a; --panel: #0f1f27; --panel2: #152a34; --ink: #e6eff3; --muted: #93a7b3; --line: #233a46;
  --good: #4ade80; --good-soft: rgba(74,222,128,.13); --bad: #f87171; --bad-soft: rgba(248,113,113,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13); --info: #60a5fa; --info-soft: rgba(96,165,250,.14);
  --navy: #06171e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
}
:root[data-density="compact"] { --gap: 10px; --pad: 12px; --r: 12px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 600 14px/1.45 var(--font); color: var(--ink); background: var(--bg); overflow: hidden; }
.screen { position: fixed; inset: 0; display: none; }
@supports (height: 100dvh) { .screen { bottom: auto; height: 100dvh; } }
.screen.active { display: flex; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: var(--mono); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
a { color: var(--accent); }
:root[data-theme="dark"] a, :root[data-theme="dark"] .navbtn.on, :root[data-theme="dark"] .gloss b, :root[data-theme="dark"] .pill.acc { color: color-mix(in srgb, var(--accent) 65%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a, :root:not([data-theme="light"]) .navbtn.on, :root:not([data-theme="light"]) .gloss b, :root:not([data-theme="light"]) .pill.acc { color: color-mix(in srgb, var(--accent) 65%, #fff); } }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .spacer { flex: 1; } .grow { flex: 1; min-width: 0; }

/* ---------- controls ---------- */
.btn { font: 800 14px var(--font); border: 1px solid var(--line); border-radius: 11px; padding: 9px 15px; cursor: pointer; background: var(--panel); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: transform .1s, filter .15s, background .15s; box-shadow: 0 1px 2px rgba(0,0,0,.05); text-decoration: none; }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .navbtn:focus-visible, .step:focus-visible, .sample:focus-visible, .q:focus-visible, .brand:focus-visible, .ws-pick:focus-visible, .fresh:focus-visible, .swatches button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.big { font-size: 17px; padding: 13px 24px; border-radius: 14px; }
.btn.sm { font-size: 12.5px; padding: 6px 11px; border-radius: 9px; }
.btn.xs { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  font: 700 14px var(--font); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 100%; min-width: 0; }
textarea { font: 500 12.5px/1.45 var(--mono); resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=color] { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--panel); cursor: pointer; flex: none; }
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap > .pre, .inp-wrap > .post { position: absolute; color: var(--muted); font-weight: 800; font-size: 13px; pointer-events: none; }
.inp-wrap > .pre { left: 10px; } .inp-wrap > .post { right: 10px; }
.inp-wrap.has-pre input { padding-left: calc(var(--pre, 22px) + 4px); } .inp-wrap.has-post input { padding-right: 44px; }
.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #b8c2cf; border-radius: 25px; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(19px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 6px 12px; border-radius: 999px; font: 800 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip small { opacity: .6; font-weight: 800; }
.chip.warn { border-color: #f59e0b; } .chip.none { border-style: dashed; color: var(--muted); }
.chip.on.warn, .chip.on.none { color: var(--accent-ink); border-color: var(--accent); border-style: solid; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 800 12.5px var(--font); padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.lchip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 24px; padding: 0 7px; border-radius: 7px; font: 800 10.5px var(--mono); letter-spacing: .01em; flex: none; white-space: nowrap; vertical-align: middle; }
.lchip.big { min-width: 64px; height: 30px; font-size: 11.5px; border-radius: 9px; }
.lchip.logo { background: #fff; border: 1px solid var(--line); min-width: 46px; max-width: 92px; height: 26px; padding: 4px 7px; }
.lchip.logo.big { min-width: 64px; max-width: 116px; height: 32px; padding: 5px 8px; }
.lchip.logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; border-radius: 3px; }
.lchip.logo { gap: 5px; color: #0f1f29; max-width: 112px; }
.lchip.logo span { overflow: hidden; text-overflow: ellipsis; }
.lchip.logo.big { max-width: 132px; }

/* ---------- title ---------- */
#screen-title { align-items: center; justify-content: center; overflow: auto; overflow-x: hidden; color: #fff;
  background: radial-gradient(1100px 560px at 18% 8%, rgba(14,159,110,.5), transparent 60%), radial-gradient(900px 520px at 92% 18%, rgba(255,184,28,.28), transparent 60%), linear-gradient(165deg, #0d3340, #061a22 72%); }
.title-wrap { position: relative; z-index: 2; text-align: center; padding: 32px 16px 150px; max-width: 720px; }
.title-badge { font-size: 40px; letter-spacing: 6px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.title-name { font-size: clamp(44px, 12vw, 88px); line-height: 1; margin: 10px 0 8px; letter-spacing: -.04em; }
.title-name span { color: var(--gold); }
.title-sub { margin: 0 auto 18px; font-size: 18px; opacity: .9; max-width: 560px; }
.title-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.title-btns .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.title-btns .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c1400; }
.title-meta { margin-top: 18px; font-size: 12.5px; opacity: .78; }
.title-back { display: inline-block; margin-top: 14px; color: rgba(255,255,255,.72); font-weight: 800; text-decoration: none; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; z-index: 1; pointer-events: none; opacity: .95; }
.skyline .ferry { animation: sail 46s linear infinite; }
@keyframes sail { from { transform: translateX(-90px); } to { transform: translateX(1280px); } }
#coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.coin { position: absolute; top: -40px; animation: fall linear infinite; opacity: .75; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
.ticker { margin: 0 auto; max-width: 640px; background: #03090c; color: var(--gold); font: 700 13px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 36px; overflow: hidden; border-radius: 9px; border: 1px solid #1d2a30; }
.ticker .lbl { color: #9aa6b6; font-size: 11px; flex: none; }
.ticker .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sample { text-align: left; border: 1px solid var(--line); background: var(--panel2); border-radius: 14px; padding: 12px; cursor: pointer; color: var(--ink); font: inherit; }
.sample:hover { border-color: var(--accent); }
.sample b { display: block; font-size: 15px; } .sample small { color: var(--muted); }
.sample .ico { font-size: 26px; display: block; margin-bottom: 4px; }

/* ---------- app shell ---------- */
#screen-app { flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--navy); color: #fff; flex: none; }
.brand { display: flex; align-items: center; gap: 8px; font: 800 18px var(--font); color: #fff; background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: -.02em; }
.brand b { color: var(--gold); }
.ws-pick { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 10px; font: 800 13px var(--font); padding: 6px 10px; cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.fresh { font: 800 11.5px var(--font); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #cfe0e6; white-space: nowrap; cursor: pointer; border: 0; }
.fresh.old { background: #fbbf24; color: #3b2600; }
.body { flex: 1; display: flex; min-height: 0; }
.nav { width: 204px; flex: none; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--panel); overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.navbtn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--ink); font: 800 14px var(--font); padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left; position: relative; }
.navbtn .ic { font-size: 18px; width: 24px; text-align: center; }
.navbtn .sm { display: none; }
.navbtn:hover { background: var(--panel2); }
.navbtn.on { background: var(--accent-soft); color: var(--accent); }
.navbtn .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.navbtn .dot.ok { background: var(--good); } .navbtn .dot.warn { background: #f59e0b; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; flex: none; }
.main { flex: 1; overflow: auto; min-width: 0; overflow-x: hidden; }
.view { max-width: 1160px; margin: 0 auto; padding: 18px 18px 90px; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.view > * { min-width: 0; }
[data-live] { min-width: 0; }
div[data-live]:not(.dsum) { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.vhead { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.vhead h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.vhead p { margin: 2px 0 0; color: var(--muted); max-width: 640px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--pad); min-width: 0; }
.card > h3, .card .row > h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card > h3 { margin-bottom: 10px; }
.card h3 small { font-weight: 700; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.tip .ic { font-size: 18px; flex: none; }
.tip.disc { background: var(--panel2); border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }
.tip.disc b { color: var(--ink); }
.tip.warnbox { background: var(--warn-soft); }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty .big { font-size: 42px; display: block; margin-bottom: 6px; }
.empty b { color: var(--ink); display: block; font-size: 16px; }
.hero { border-radius: var(--r); padding: 18px; color: #fff; display: grid; gap: 14px; box-shadow: var(--shadow);
  background: radial-gradient(600px 240px at 0% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%), linear-gradient(135deg, #0d3340, #0a2029); }
.hero h2 { font-size: 24px; } .hero p { margin: 4px 0 0; opacity: .9; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step { display: flex; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.08); cursor: pointer; font: 800 13px var(--font); color: #fff; text-align: left; min-width: 0; }
.step:hover { background: rgba(255,255,255,.14); }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step.done .n { background: var(--gold); color: #1c1400; }
.step b { display: block; } .step small { display: block; opacity: .75; font-weight: 700; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step > span:last-child { min-width: 0; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; align-items: start; }
.form .wide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > label { font-size: 12px; font-weight: 800; color: var(--muted); display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
#tipbox { position: fixed; z-index: 80; background: #0b2530; color: #fff; font: 600 12.5px/1.45 var(--font); padding: 9px 11px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transition: opacity .12s; border: 1px solid rgba(255,255,255,.12); }
#tipbox.on { opacity: 1; }
.q { cursor: help; border: 1px solid var(--line); border-radius: 50%; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--muted); background: var(--panel); margin-left: 4px; text-transform: none; letter-spacing: 0; flex: none; position: relative; }
.q::after { content: ''; position: absolute; inset: -9px; }   /* a finger-sized target */
.q:hover, .q:focus-visible { border-color: var(--accent); color: var(--accent); }
.fld .hint { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fld.tog { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sec-t { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.sec-t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel2); display: grid; gap: 10px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.item.due { border-color: #f59e0b; } .item.dim { opacity: .6; }
.item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.item-head .ic { font-size: 22px; }
.item-head h4 { font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.item-head > div { min-width: 0; }
.lines { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.role-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.role-row.on { border-color: var(--accent); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; }
.kpi b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- compare ---------- */
.bestpick { border-radius: var(--r); padding: 16px; color: #fff; display: grid; gap: 12px; box-shadow: var(--shadow); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000), color-mix(in srgb, var(--accent) 55%, #0b2530)); }
.bp-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bp-main > div { min-width: 0; }
.trophy { font-size: 40px; flex: none; animation: pop .5s; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.bp-main small { opacity: .85; font-weight: 800; }
.bp-main h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.bp-main p { margin: 0; opacity: .9; }
.bp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bp-nums div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.bp-nums small { display: block; font-size: 11.5px; opacity: .85; font-weight: 800; }
.bp-nums b { font-size: 18px; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.bp-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.bp-foot > span { flex: 1; min-width: 200px; opacity: .95; }
.bestpick .btn { background: #fff; color: #0f1f29; border-color: #fff; }
.filt { align-items: flex-end; }
.cmpgrid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.sidechart { position: sticky; top: 12px; }
.olist { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.orow { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 10px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.orow.best { outline: 3px solid var(--accent); outline-offset: -1px; }
.orow.out { background: var(--panel2); box-shadow: none; }
.o-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-width: 0; }
.o-bank { display: flex; gap: 10px; align-items: center; min-width: 0; }
.o-bank > div { min-width: 0; }
.o-bank b { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.o-bank span:not(.pill):not(.lchip) { color: var(--muted); font-size: 12.5px; display: block; }
.o-rate { text-align: right; flex: none; }
.o-rate b { font-size: 26px; letter-spacing: -.03em; display: block; line-height: 1.05; }
.orow.best .o-rate b { color: var(--accent); }
.o-rate small { color: var(--muted); font-weight: 800; font-size: 11.5px; }
.o-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.o-nums div { min-width: 0; }
.o-nums small { display: flex; align-items: center; font-size: 11px; color: var(--muted); font-weight: 800; }
.o-nums b { font-size: 14.5px; white-space: nowrap; }
.o-cond { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.o-why { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--warn); }
.o-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; white-space: normal; }
table.t th { font-size: 11.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
table.t tr.tot td { font-weight: 800; border-top: 2px solid var(--line); }
table.t td.neg { color: var(--bad); } table.t td.pos { color: var(--good); }
.tscroll { overflow-x: auto; max-width: 100%; }
table.board td { text-align: center; } table.board th { text-align: center; }
table.board td b { display: block; font-size: 16px; } table.board td span { display: block; margin-top: 3px; }
table.board th, table.board td { padding: 7px 3px; } table.board td:first-child { padding-left: 0; }
table.board .lchip { display: flex; min-width: 0; max-width: 74px; margin: 3px auto 0; height: 20px; font-size: 9.5px; padding: 0 5px; overflow: hidden; }
table.board .lchip.logo { padding: 3px 5px; gap: 3px; }
table.board .chip { padding: 5px 9px; }
table.sbs td, table.sbs th { text-align: left; white-space: normal; min-width: 140px; vertical-align: top; }
table.sbs td:first-child, table.sbs th:first-child { min-width: 96px; color: var(--muted); font-weight: 800; font-size: 12px; position: sticky; left: 0; background: var(--panel); }
table.sbs th div { margin-top: 4px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }

/* ---------- deposits ---------- */
.dsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dsum span { min-width: 0; } .dsum small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; }
.dsum b { font-size: 14.5px; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 6px; }
.timeline { display: grid; gap: 8px; }
.tl { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); font-size: 13px; }
.tl.soon { border-color: #f59e0b; } .tl.due { border-color: var(--bad); }
.tl .when { font-weight: 800; } .tl .when small { display: block; color: var(--muted); font-size: 11px; }
.ropts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ropt { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.ropt > div { min-width: 0; }
.ropt small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; }
.ropt b { display: flex; gap: 6px; align-items: center; font-size: 16px; }
.ropt span:not(.lchip) { display: block; font-size: 12px; color: var(--muted); }
.expo { display: grid; gap: 10px; }
.ex .rl { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 800; flex-wrap: wrap; margin-bottom: 4px; align-items: center; }
.meter { height: 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--good); transition: width .4s; }
.meter i.warn { background: #f59e0b; } .meter i.bad { background: var(--bad); }
.meter u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .6; }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dn { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.legend.col { justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- ladder ---------- */
.ladder { display: grid; gap: 8px; }
.rung { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); overflow: hidden; }
.rung .rb { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 50%); opacity: .13; }
.rung .rc { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; flex-wrap: wrap; }
.rung .rt { font: 800 12px var(--mono); background: var(--navy); color: #fff; border-radius: 7px; padding: 4px 8px; flex: none; }
.rung .grow b { display: block; } .rung .rr { text-align: right; } .rung .rr b { display: block; }

/* ---------- verdict (tools) ---------- */
.verdict { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; border-radius: var(--r); padding: 18px; color: #fff; background: linear-gradient(135deg, #15803d, #0f766e); box-shadow: var(--shadow); }
.verdict.refer { background: linear-gradient(135deg, #b45309, #a16207); }
.verdict.decline { background: linear-gradient(135deg, #b91c1c, #9f1239); }
.verdict h3 { font-size: 22px; letter-spacing: -.02em; }
.verdict p { opacity: .94; margin: 6px 0 0; }
.verdict .vbig { text-align: center; background: rgba(255,255,255,.12); border-radius: 14px; padding: 14px 10px; }
.verdict .vbig b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.verdict .vbig small { display: block; font-weight: 800; opacity: .88; font-size: 12px; }
.verdict .vk { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.verdict .vk div small { display: block; font-size: 11.5px; opacity: .85; font-weight: 800; }
.verdict .vk div b { font-size: 18px; }

/* ---------- rates editor ---------- */
.rgrid input { width: 68px; padding: 6px; font-size: 13px; text-align: right; }
.rgrid td, .rgrid th { padding: 4px; text-align: center !important; }
.rgrid td:first-child, .rgrid th:first-child { text-align: left !important; white-space: nowrap !important; font-weight: 800; font-size: 12px; color: var(--muted); }
.bankpick .chip { padding: 5px 10px; }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; font-size: 13px; align-items: start; }
.checks li .ci { font-size: 15px; line-height: 1.3; }
.checks li b { display: block; } .checks li span { color: var(--muted); font-weight: 600; }
.checks.srcs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.checks a { overflow-wrap: anywhere; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .ax { stroke: var(--line); }
.chart text { fill: var(--muted); font: 700 11px var(--font); }
.chart text.hi { fill: var(--ink); font-weight: 800; }
.chart.tline { min-width: 560px; }
.chart .tl-lb { fill: var(--ink); font-weight: 800; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }

/* ---------- modal, toasts, confetti ---------- */
#modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.modal-back { position: absolute; inset: 0; background: rgba(3,12,16,.6); display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: auto; animation: fade .16s; }
.modal-back.closing { opacity: 0; transition: opacity .16s; }
.modal { background: var(--panel); border-radius: 18px; width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid var(--line); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-head h2 { font-size: 18px; }
.modal-head .x { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.modal-body { padding: 16px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast { background: #0b2530; color: #fff; padding: 11px 14px; border-radius: 12px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: up .25s; border: 1px solid rgba(255,255,255,.12); }
.toast.good { background: #15803d; } .toast.bad { background: #b91c1c; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .35s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
#confetti i { position: absolute; top: -24px; width: 9px; height: 14px; border-radius: 2px; animation: drop linear forwards; font-style: normal; }
#confetti i.em { width: auto; height: auto; font-size: 20px; }
@keyframes drop { to { transform: translateY(108vh) rotate(720deg); } }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .coin, .skyline .ferry, .trophy { animation: none !important; } .coin { display: none; } }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatches button.on { border-color: var(--ink); }
.prose h3 { margin: 0 0 8px; font-size: 16px; } .prose ul:not(.checks) { margin: 0 0 8px; padding-left: 18px; } .prose li { margin: 4px 0; }
.gloss { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; font-size: 13px; } .gloss b { color: var(--accent); } .gloss span { color: var(--muted); font-weight: 600; }

/* ---------- mobile ---------- */
@media (max-width: 1080px) { .cmpgrid { grid-template-columns: minmax(0, 1fr); } .sidechart { position: static; } }
@media (max-width: 1000px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .nav { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: auto; flex-direction: row; overflow: hidden; border-right: 0; border-top: 1px solid var(--line); padding: 5px 4px; padding-bottom: max(5px, env(safe-area-inset-bottom)); z-index: 20; gap: 0; }
  .navbtn { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 1px; font-size: 9.5px; padding: 5px 0; align-items: center; letter-spacing: -.02em; }
  .navbtn .ic { font-size: 19px; width: auto; }
  .navbtn .lg { display: none; } .navbtn .sm { display: block; max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .navbtn .dot { position: absolute; top: 3px; right: calc(50% - 16px); margin: 0; width: 7px; height: 7px; }
  .nav .sep { display: none; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .topbar .hide-sm, .vhead .hide-sm { display: none; }
  .view { padding: 14px 16px 104px; }
  .vhead h2 { font-size: 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .ropts { grid-template-columns: minmax(0, 1fr); }
  .fresh { font-size: 0; padding: 5px 9px; } .fresh::before { content: '📅'; font-size: 14px; } .fresh.old::before { content: '⚠️'; }
  .ws-pick { max-width: 46vw; } .brand span { display: none; }
  #toasts { bottom: 84px; }
  .title-wrap { padding-bottom: 170px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: 10px 11px; } .kpi b { font-size: 17px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .fld:has(.seg), .form .fld.tog, .cmpform .fld { grid-column: 1 / -1; }
  .cmpform .fld:has(input[type=number]), .cmpform .fld:has(select), .cmpform .fld:has(input[type=date]) { grid-column: auto; }
  .cmpform .fld:has(input[type=number]) { grid-column: 1 / -1; }
  .bp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bp-nums b { font-size: 16px; }
  .bp-main h3 { font-size: 18px; } .trophy { font-size: 32px; }
  .dsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-rate b { font-size: 22px; }
  .o-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gloss { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .gloss span { margin-bottom: 8px; }
  .tl { grid-template-columns: 70px minmax(0, 1fr); } .tl .btn { grid-column: 1 / -1; justify-self: start; }
  .split2 { grid-template-columns: minmax(0, 1fr); }
  .seg { display: flex; } .seg button { flex: 1 1 auto; padding: 7px 8px; }
  .rung .rr { text-align: left; flex-basis: 100%; display: flex; gap: 10px; align-items: baseline; }
  .title-sub { font-size: 16px; } .title-badge { font-size: 32px; }
  .hero h2 { font-size: 21px; }
  .verdict .vbig b { font-size: 28px; }
  .o-act .small { flex-basis: 100%; }
  .modal-foot .btn { flex: 1 1 auto; }
  table.t th, table.t td { padding: 7px 4px; }
  table.board th, table.board td { padding: 7px 2px; } table.board .lchip { max-width: 58px; } table.board td b { font-size: 15px; }
}
@media print {
  .nav, .topbar, #toasts, .o-act, .btn, .disc { display: none !important; }
  body, .main { overflow: visible !important; height: auto; } .screen { position: static; height: auto; }
  .card, .orow, .kpi { box-shadow: none; break-inside: avoid; }
}
