/* Layout idea: a quiet ledger. Sidebar on desktop, tab bar on phones; numbers in tabular figures; colour only for state. */
:root {
  --bg: #f2f5fa; --surface: #ffffff; --ink: #101828; --muted: #5b6577; --line: #dfe5ee;
  --accent: #2456e6; --accent-ink: #ffffff; --accent-soft: #e6edff;
  --good: #12805c; --warn: #a35a00; --bad: #c0362c; --warn-soft: #fff1d6; --bad-soft: #fde7e4; --good-soft: #dff5ec;
  --m-personal: #2456e6; --m-property: #0d9488; --m-shares: #d98a0b; --m-crypto: #7c4dff; --m-super: #d6336c; --m-retire: #ea580c;
  --c-pension: #8fb3ff; --c-super: #0b5d2e; --c2: #d98a0b; --c3: #7c4dff; --c4: #8b95a7;
  --side: #0c1730; --side-ink: #c5d0e6; --hero-a: #0c1730; --hero-b: #2456e6;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0b1120; --surface: #131c2e; --ink: #e7ecf5; --muted: #96a2b8; --line: #25304a;
    --accent: #7aa2ff; --accent-ink: #06122e; --accent-soft: #1b2a4d;
    --good: #5fd3a6; --warn: #f2b84b; --bad: #ff8a80; --warn-soft: #3a2f14; --bad-soft: #3d1f1c; --good-soft: #143326;
    --m-personal: #7aa2ff; --m-property: #2dd4bf; --m-shares: #f2b84b; --m-crypto: #a78bfa; --m-super: #f472a6; --m-retire: #fb923c;
    --c-pension: #7aa2ff; --c-super: #34a56b; --c2: #f2b84b; --c3: #a78bfa; --c4: #6f7a8f;
    --side: #080d1a; --side-ink: #aab6cf; --hero-a: #131c2e; --hero-b: #1d3a8f; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
h1 { font-size: 1.5rem; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
h3 { font-size: .95rem; margin: 0 0 .4rem; }
p { margin: 0 0 .6rem; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.neg { color: var(--bad); } .pos { color: var(--good); }
.loading { padding: 3rem; text-align: center; color: var(--muted); }

.shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .25rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; padding: .25rem .5rem 1rem; }
.brand img { width: 28px; height: 28px; }
.side a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .foot { margin-top: auto; font-size: .8rem; color: var(--muted); padding: .5rem; overflow-wrap: anywhere; }
main { padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 5rem; max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.head .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tabbar { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.grid { display: grid; gap: .75rem; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.kpi .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .v { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .s { font-size: .8rem; color: var(--muted); }
.two { grid-template-columns: 1.4fr 1fr; }
.cols2 { grid-template-columns: 1fr 1fr; }
.pill { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.plain { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.banner { border-left: 4px solid var(--warn); background: var(--warn-soft); padding: .7rem .9rem; border-radius: 6px; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.banner.ok { border-color: var(--good); background: var(--good-soft); } .banner.info { border-color: var(--accent); background: var(--accent-soft); }
.banner.badb { border-color: var(--bad); background: var(--bad-soft); }

.tblwrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .45rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
th.num { text-align: right; }
td a.name { font-weight: 600; text-decoration: none; }

.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.goal { display: grid; gap: .25rem; margin-bottom: .7rem; } .goal .row { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.hbar { display: grid; grid-template-columns: 110px 1fr 90px; gap: .5rem; align-items: center; font-size: .88rem; margin-bottom: .4rem; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; }

button, .btn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .5rem .85rem; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--bad); } button.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: grid; gap: .2rem; font-size: .82rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; min-width: 0; }
input[type=number] { font-variant-numeric: tabular-nums; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; align-items: end; }
.form .wide { grid-column: 1 / -1; }
.lines { display: grid; gap: .5rem; }
.line { display: grid; grid-template-columns: 1.3fr 130px 1.3fr auto; gap: .5rem; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .82rem; padding: .25rem .6rem; border-radius: 99px; }
details.card > summary { cursor: pointer; font-weight: 600; }
details.card[open] > summary { margin-bottom: .8rem; }
.thumb { max-width: 140px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.docs { display: flex; flex-wrap: wrap; gap: .75rem; } .doc { width: 150px; font-size: .8rem; }

.auth { max-width: 880px; margin: 0 auto; padding: 2.5rem 1rem; display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.auth h1 { font-size: 2rem; margin-bottom: .6rem; } .auth ul { padding-left: 1.1rem; margin: .6rem 0; } .auth li { margin-bottom: .3rem; }
.price { font-size: 1.6rem; font-weight: 700; }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 20; }
#toast.show { opacity: 1; } #toast.err { background: var(--bad); color: #fff; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 1rem 1rem 6rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { text-align: center; padding: .55rem .2rem .6rem; font-size: .72rem; color: var(--muted); text-decoration: none; display: grid; gap: .1rem; justify-items: center; }
  .tabbar a svg { width: 22px; height: 22px; } .tabbar a.on { color: var(--accent); font-weight: 600; }
  .two, .cols2, .auth { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi .v { font-size: 1.2rem; }
  .line { grid-template-columns: 1fr 110px; } .line .note { grid-column: 1 / 2; }
  /* property tables become cards on a phone */
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 0; text-align: left; display: flex; justify-content: space-between; gap: .5rem; }
  table.stack td::before { content: attr(data-l); color: var(--muted); font-size: .78rem; }
  table.stack td.first { grid-column: 1 / -1; font-size: 1rem; } table.stack td.first::before { content: none; }
  table.stack tfoot { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* overview, holdings and property photos */
.brand { line-height: 1.2; }
.three { grid-template-columns: repeat(3, 1fr); }
.hero .l, .tile .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hero .big { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .s { color: var(--muted); margin-bottom: .8rem; }
.alloc { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); margin-bottom: .5rem; }
.alloc i { display: block; height: 100%; }
a.tile { display: flex; flex-direction: column; gap: .15rem; color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.tile .v { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--muted); font-size: .85rem; }
.tile .rows { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; font-size: .88rem; margin: .6rem 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.tile .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
.pname { display: inline-flex; align-items: center; gap: .6rem; }
.pthumb { width: 44px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; background: var(--bg); }
.pthumb.none { display: inline-block; background: var(--accent-soft); }
.cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.coverpick { max-width: 340px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* ---- 2nd design pass: colour, icons, add-ons, planner ---- */
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic.h { width: 26px; height: 26px; margin-right: .45rem; color: var(--accent); vertical-align: -4px; }
h2 > .ic, h3 > .ic, button > .ic, .banner .ic { margin-right: .4rem; }
.card, .kpi { box-shadow: var(--shadow); border-color: var(--line); }
.side { background: var(--side); border-right: 0; }
.side .brand { color: #fff; } .side a { color: var(--side-ink); display: flex; align-items: center; gap: .6rem; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.on { background: rgba(255,255,255,.13); color: #fff; }
.side hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: .5rem .4rem; width: auto; }
.side .foot { color: var(--side-ink); } .side .foot button.link { color: #fff; }
.chip { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.chip .ic { width: 20px; height: 20px; }
.chip.m-personal { background: color-mix(in srgb, var(--m-personal) 15%, transparent); color: var(--m-personal); }
.chip.m-property { background: color-mix(in srgb, var(--m-property) 16%, transparent); color: var(--m-property); }
.chip.m-shares { background: color-mix(in srgb, var(--m-shares) 18%, transparent); color: var(--m-shares); }
.chip.m-crypto { background: color-mix(in srgb, var(--m-crypto) 15%, transparent); color: var(--m-crypto); }
.chip.m-super { background: color-mix(in srgb, var(--m-super) 14%, transparent); color: var(--m-super); }
.chip.m-retire { background: color-mix(in srgb, var(--m-retire) 15%, transparent); color: var(--m-retire); }
.kpi { position: relative; padding-right: 3.2rem; } .kpi .chip { position: absolute; top: .7rem; right: .7rem; width: 32px; height: 32px; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--hero-a), var(--hero-b)); box-shadow: var(--shadow); }
.hero .l { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.hero .big { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .s { opacity: .85; margin-bottom: .8rem; } .hero a { color: #fff; } .hero .legend { color: rgba(255,255,255,.85); }
.hero .alloc { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); margin-top: .8rem; }
.goalbar { display: flex; align-items: center; gap: .7rem; font-size: .85rem; } .goalbar .bar { flex: 1; background: rgba(255,255,255,.15); border-color: transparent; } .goalbar .bar i { background: #fff; }
.side2 { background: rgba(255,255,255,.1); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .4rem; align-content: start; }
.cf { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; } .spark { width: 100%; height: auto; margin-top: .4rem; }
a.tile { border-top: 3px solid var(--line); } a.tile.m-personal { border-top-color: var(--m-personal); } a.tile.m-property { border-top-color: var(--m-property); } a.tile.m-shares { border-top-color: var(--m-shares); }
a.tile.m-crypto { border-top-color: var(--m-crypto); } a.tile.m-super { border-top-color: var(--m-super); } a.tile.m-retire { border-top-color: var(--m-retire); }
.thead { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; } .thead .tl { font-weight: 700; flex: 1; }
.four { grid-template-columns: repeat(4, 1fr); } .two-free { grid-template-columns: 1fr 1fr; }
.addon { display: grid; gap: .35rem; align-content: start; cursor: pointer; border: 2px solid var(--line); } .addon.on { border-color: var(--accent); }
.addon .t { font-weight: 700; font-size: 1.05rem; } .addon .p { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; } .addon .p small, .total small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.addon .d { font-size: .85rem; color: var(--muted); } .addon .pick { display: flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: .3rem; } .addon input { width: auto; }
.total { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border: 2px solid var(--accent); } .total .big { font-size: 2rem; font-weight: 700; } .total .l { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--accent); border-radius: 99px; padding: 2px; background: var(--surface); } .seg button { border: 0; border-radius: 99px; padding: .35rem .9rem; background: none; color: var(--accent); font-weight: 600; } .seg button.on { background: var(--accent); color: var(--accent-ink); }
.disc { display: flex; gap: .6rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1rem; line-height: 1.4; } .disc .ic { margin-top: 2px; }
.prose { max-width: 70ch; } .prose h3 { margin-top: 1rem; }
h3.sub { display: flex; align-items: center; gap: .1rem; margin: 1rem 0 .5rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.lab { display: inline-flex; align-items: center; gap: .45rem; } form.inline { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; } form.inline input { width: 140px; }
label.check { display: flex; flex-direction: row; align-items: flex-start; gap: .5rem; color: var(--ink); font-size: .9rem; margin: .8rem 0; } label.check input { width: auto; margin-top: .2rem; } label.terms { font-size: .82rem; color: var(--muted); }
.pricelist { display: grid; gap: .45rem; margin: 1rem 0; } .pricelist > div { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem .5rem .5rem; } .pricelist span:last-child { color: var(--muted); font-size: .88rem; }
/* retirement planner */
.rtop { display: grid; grid-template-columns: 1.9fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.rchart { padding: 1.1rem 1.2rem; min-width: 0; } .rhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; } .rhead h2 { margin: 0; } .rhead select { width: auto; }
.rsum { background: #05070d; color: #fff; padding: 1.2rem; display: grid; gap: .1rem; align-content: start; } .rsum select { margin-bottom: .9rem; }
.rsum .n { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .5rem; } .rsum .n.under { color: #ff9c92; } .rsum .t { font-size: .8rem; opacity: .8; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.2); } .rsum .t:last-child { border: 0; }
.steps { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; } .steps button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: .7rem .9rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.steps button span { width: 24px; height: 24px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; } .steps button.on { color: var(--accent); border-bottom-color: var(--accent); } .steps button.on span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 180px auto; gap: .7rem; align-items: end; margin-top: .7rem; } .pair.three { grid-template-columns: 1fr 1fr 1fr auto; }
.linkrow { display: flex; flex-direction: row; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; color: var(--ink); font-size: .92rem; cursor: pointer; } .linkrow.on { border-color: var(--accent); background: var(--accent-soft); } .linkrow input { width: auto; }
.exprow { display: grid; grid-template-columns: 1fr 150px 140px 110px; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.slide { display: grid; grid-template-columns: 1fr 180px; gap: 1rem; align-items: end; } input[type=range] { padding: 0; accent-color: var(--accent); border: 0; background: none; }
ul.plain { padding-left: 1.1rem; margin: 0; display: grid; gap: .3rem; }
@media (max-width: 860px) {
  .hero, .rtop, .four, .two-free, .slide { grid-template-columns: 1fr; } .pair, .pair.three { grid-template-columns: 1fr 1fr; } .exprow { grid-template-columns: 1fr 1fr; }
  .tabbar a .ic { width: 22px; height: 22px; }
}
.hero .l, .hero .s, .hero .small { color: rgba(255,255,255,.82); }
.side2 .l { color: rgba(255,255,255,.82); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* portfolios, rebalancing, dividends, buckets */
.seg.wrap { flex-wrap: wrap; border-radius: 16px; align-self: flex-start; }
input.mini { width: 90px; text-align: right; padding: .3rem .45rem; }
.dbars { display: flex; gap: 1rem; align-items: flex-end; height: 170px; margin: .4rem 0 .8rem; }
.dbar { flex: 1; display: grid; justify-items: center; gap: .25rem; font-size: .82rem; color: var(--muted); align-content: end; } .dbar i { width: 100%; max-width: 70px; background: var(--m-shares); border-radius: 6px 6px 0 0; display: block; } .dbar .num { color: var(--ink); font-weight: 600; }
.bucket .v { font-size: 1.6rem; font-weight: 700; } .bucket .s { color: var(--muted); font-size: .85rem; min-height: 2.6em; }
.bk { display: grid; grid-template-columns: 36px 1fr auto; gap: .3rem .6rem; align-items: center; font-size: .82rem; margin: .7rem 0 .4rem; }
.bucket.b-cash { border-top: 3px solid var(--m-personal); } .bucket.b-defensive { border-top: 3px solid var(--m-property); } .bucket.b-growth { border-top: 3px solid var(--m-shares); }
.b-cash .bar i, .b-cash .chip { background: var(--m-personal); color: #fff; } .b-defensive .bar i, .b-defensive .chip { background: var(--m-property); color: #fff; } .b-growth .bar i, .b-growth .chip { background: var(--m-shares); color: #fff; }
.bar.rule i { opacity: .45; }
.rec { border-left: 4px solid var(--accent); } .rec li { margin-bottom: .2rem; }
.brow { display: grid; grid-template-columns: 1fr 120px 140px; gap: .7rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid var(--line); } .brow .check { margin: 0; } .brow.off { opacity: .55; }
@media (max-width: 860px) { .brow { grid-template-columns: 1fr 110px; } .brow .num { display: none; } }

/* split, withdrawal table, income rows */
.split { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-bottom: .9rem; background: var(--bg); }
.splitbar { height: 12px; border-radius: 99px; background: var(--m-property); overflow: hidden; margin: .7rem 0 .4rem; } .splitbar i { display: block; height: 100%; background: var(--m-shares); }
select.mini2 { width: 118px; padding: .3rem .4rem; } .btnrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
tr.hl td { background: var(--accent-soft); font-weight: 600; }
.brow.two { grid-template-columns: 1fr 160px; }
@media (max-width: 860px) { .brow.two { grid-template-columns: 1fr 120px; } .brow.two .num { display: block; } }

/* sign-up steps, order summary, reports, imports, checklist, print */
.onb { min-height: 100%; background: var(--bg); } .obar { display: flex; justify-content: space-between; align-items: center; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--line); } .obar .brand { padding: 0; } .obar .who { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; }
.owrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3rem; } .owrap h1 { font-size: 1.6rem; margin-bottom: 1rem; } .owrap h1 .muted { font-size: 1rem; font-weight: 500; }
.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 1.5rem; } .stepper li { flex: 1; display: grid; justify-items: start; gap: .3rem; font-size: .82rem; color: var(--muted); position: relative; } .stepper li:last-child { flex: 0 0 auto; }
.stepper li span { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font-weight: 700; position: relative; z-index: 1; } .stepper li::after { content: ""; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: var(--line); } .stepper li:last-child::after { display: none; }
.stepper li.on span, .stepper li.done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .stepper li.done::after { background: var(--accent); } .stepper li.on, .stepper li.done { color: var(--ink); font-weight: 600; }
.ogrid { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; align-items: start; }
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; } .pkg { display: grid; gap: .4rem; justify-items: center; text-align: center; align-content: start; border: 2px solid var(--line); } .pkg.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.pkg .t { font-weight: 700; font-size: 1.05rem; } .pkg .d { font-size: .82rem; color: var(--muted); } .pkg .p { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-top: .3rem; } .pkg .p small { font-size: .8rem; font-weight: 500; color: var(--muted); } .pkg button { width: 100%; margin-top: .3rem; }
.pkg.base { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 1rem; } .pkg.base .p { margin: 0; text-align: right; } .good { color: var(--good); }
.chip.big { width: 52px; height: 52px; border-radius: 99px; } .chip.big .ic { width: 26px; height: 26px; }
.order { display: grid; gap: .1rem; position: sticky; top: 1rem; } .ol { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); } .ol.save { color: var(--good); } .ol.tot { font-weight: 700; font-size: 1.05rem; border-bottom: 0; padding-top: .8rem; } .ol.tot .num { color: var(--accent); font-size: 1.5rem; } .ol.due { border: 0; padding-top: 0; }
button.wide { width: 100%; margin-top: .6rem; } .card.done { text-align: center; display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1rem; }
.tblwrap.tall { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; } .tblwrap.tall thead th { position: sticky; top: 0; background: var(--surface); } select.mini3 { width: 150px; padding: .3rem .4rem; }
.crow { display: grid; grid-template-columns: 1.6fr 160px 1fr auto; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); } .crow .check { margin: 0; } .crow.done strong { text-decoration: line-through; color: var(--muted); }
.report { max-width: 980px; } .report h1 { font-size: 1.4rem; margin-bottom: .4rem; } .report h2 { margin-top: 1.4rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; } .report table { margin-bottom: .6rem; }
.rdisc { border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--warn-soft); padding: .7rem .9rem; border-radius: 6px; font-size: .85rem; } .rprop { break-inside: avoid; margin-bottom: 1rem; } .rprop h3 { margin: .9rem 0 .3rem; } .rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .ogrid { grid-template-columns: 1fr; } .pkgs { grid-template-columns: 1fr 1fr; } .pkg.base { grid-template-columns: auto 1fr; } .pkg.base .p { grid-column: 1 / -1; text-align: left; } .order { position: static; } .crow, .rgrid { grid-template-columns: 1fr; } .stepper li { font-size: .72rem; } }
@media print {
  .side, .tabbar, .noprint, .disc, #toast, .banner { display: none !important; } .shell { display: block; } main { padding: 0; max-width: none; } body { background: #fff; color: #000; font-size: 11pt; }
  .card { border: 0; box-shadow: none; padding: 0; } .report { max-width: none; } .rdisc { background: #fff; } a { color: inherit; text-decoration: none; }
}
@media (max-width: 860px) { .report, .report .rprop { overflow-x: auto; } .report table { min-width: 520px; } }

/* sign-in page */
.auth2 { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem; display: grid; grid-template-columns: 1fr 370px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.auth2 .brand { padding: 0; margin-bottom: 1.6rem; } .auth2 h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: .8rem; text-wrap: balance; } .auth2 .lead { font-size: 1.08rem; color: var(--muted); max-width: 58ch; margin-bottom: 1.6rem; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.6rem; } .feats > div { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start; } .feats .chip { width: 40px; height: 40px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.feats strong { display: block; margin-bottom: .15rem; } .feats p { margin: 0; font-size: .9rem; color: var(--muted); }
.signin { display: grid; gap: 1rem; position: sticky; top: 1.5rem; } .signin .card h2 { margin-bottom: .1rem; } .signin .grid { margin-top: .9rem; } .newhere { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); } .newhere p { margin: .2rem 0 .7rem; } .btn.wide { width: 100%; text-align: center; justify-content: center; }
.auth2 .foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
@media (max-width: 860px) { .auth2 { grid-template-columns: 1fr; } .signin { position: static; order: -1; } .feats { grid-template-columns: 1fr; } }

/* toggles, owner dashboard, feedback, reset pages */
.toggles { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .7rem; } .tg { display: inline-flex; align-items: center; gap: .4rem; border-radius: 99px; padding: .3rem .75rem; font-size: .85rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.tg i { width: 10px; height: 10px; border-radius: 3px; opacity: .35; } .tg.on { color: var(--ink); border-color: var(--ink); font-weight: 600; } .tg.on i { opacity: 1; }
.fb { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); } .fb p { margin: .3rem 0 0; white-space: pre-wrap; } .fb.done { opacity: .55; }
code.wrap { word-break: break-all; user-select: all; } .auth2.narrow { grid-template-columns: minmax(0, 420px); justify-content: center; } .auth2.narrow .signin { position: static; }
.brow input[type=text] { min-width: 0; } input.mini { width: 110px; padding: .3rem .45rem; } button.link { text-align: left; } .brow.four { grid-template-columns: 1fr 120px 140px auto; }
@media (max-width: 860px) { .brow.four { grid-template-columns: 1fr 1fr; } }
.pkg button[disabled] { opacity: 1; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); border-color: transparent; cursor: default; }
.brow.four > * { min-width: 0; } .brow.four input, .brow.four select { width: 100%; }
@media (max-width: 860px) { .brow.two .num:has(input) { display: block; } .brow.two:has(input.mini) { grid-template-columns: 1fr; } }

/* quick-add buttons on the monthly log (not the round icon chips), home chart size, planner sub-rows */
.chips .chip { width: auto; height: auto; display: inline-flex; align-items: center; white-space: nowrap; border-radius: 99px; padding: .3rem .7rem; }
.homechart { max-width: 680px; } .pair.subrow { margin: -.2rem 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); align-items: end; }

/* planner chart switches, timeline, legal pages, human check */
.rtog { margin: .1rem 0 .5rem; } .rtog .toggles { margin: .3rem 0 0; } .tgc { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; padding: .22rem .6rem; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: var(--surface); }
.tgc input { margin: 0; accent-color: var(--accent); } .tgc i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } i.tri { width: 0 !important; height: 0 !important; background: none !important; border-radius: 0 !important; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--m-personal); display: inline-block; }
.tline { list-style: none; margin: .4rem 0 .8rem; padding: 0; border-left: 2px solid var(--line); } .tline li { display: grid; grid-template-columns: 44px 1fr; gap: .7rem; padding: .45rem 0 .45rem .8rem; position: relative; } .tline li::before { content: ""; position: absolute; left: -6px; top: .95rem; width: 10px; height: 10px; border-radius: 99px; background: var(--m-super); }
.tline .ta { font-weight: 700; font-size: 1.05rem; } .prose ul { margin: .3rem 0 .8rem 1.2rem; } .prose li { margin: .15rem 0; } .ts { min-height: 65px; }
.tgc { white-space: nowrap; } .tgc input { width: auto; flex: none; padding: 0; } .tgc i { flex: none; } .rtog .toggles { gap: .35rem; }

/* compact overview */
.head.compact { margin-bottom: .5rem; } .head.compact h1 { font-size: 1.25rem; } .hero.slim { padding: .9rem 1.2rem; gap: 1rem; margin-bottom: .8rem; } .hero.slim .big { font-size: clamp(1.7rem, 4vw, 2.3rem); } .hero.slim .s { margin-bottom: .3rem; } .hero.slim .alloc { margin-top: .4rem; height: 10px; }
.hero.slim .side2 { padding: .6rem .8rem; gap: .2rem; } .hero.slim .goalbar { margin: .2rem 0; }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .8rem; align-items: start; } .hgrid > .card { margin: 0; padding: .8rem 1rem; } .hgrid .homechart { max-width: none; } .hgrid .rhead { margin-bottom: .3rem; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .tiles2 a.tile { padding: .6rem .8rem; gap: 0; } .tiles2 .rows, .tiles2 .go { display: none; } .tiles2 .tile .v { font-size: 1.3rem; } .tiles2 .tile .s { font-size: .78rem; color: var(--muted); } .tiles2 .thead { margin-bottom: .1rem; } .tiles2 .thead .chip { width: 28px; height: 28px; border-radius: 8px; }
@media (max-width: 1100px) { .hgrid { grid-template-columns: 1fr; } }
/* planner: verdict, fixes, year detail, events */
.verdict { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .98rem; } .verdict > div { flex: 1; min-width: 0; } .verdict > .ic { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.verdict.good { background: var(--good-soft); } .verdict.good > .ic, .verdict.good strong:first-child { color: var(--good); } .verdict.warn { background: var(--warn-soft); } .verdict.warn > .ic { color: var(--warn); } .verdict.bad { background: var(--bad-soft); } .verdict.bad > .ic { color: var(--bad); } .verdict.info { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.vchip { flex: none; font-size: .82rem; padding: .25rem .65rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; } .vchip.high strong { color: var(--good); } .vchip.medium strong { color: var(--warn); } .vchip.low strong { color: var(--bad); }
.fixes { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; font-size: .86rem; } button.fix { font-size: .84rem; padding: .3rem .7rem; border-radius: 99px; background: var(--surface); }
svg .hit { cursor: pointer; } svg .hit:hover { fill: rgba(127,127,127,.12); } .yhint { margin: .3rem 0 0; }
.ypanel { margin-top: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; background: var(--bg); } .yhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; } .ygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } .ypanel h4 { margin: 0 0 .25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.yr { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding: .12rem 0; } .yr.tot { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .3rem; font-weight: 700; } .yr.neg { color: var(--bad); font-weight: 600; } .yr.pos { color: var(--good); }
.tline.ev li { grid-template-columns: 44px 1fr auto; align-items: center; } .tline.ev strong .ic { width: 15px; height: 15px; margin-right: .35rem; vertical-align: -2px; } .tline.ev input { width: auto; }
@media (max-width: 860px) { .verdict { flex-wrap: wrap; } .ygrid { grid-template-columns: 1fr; } }

.head.compact p { margin: 0; } .hero.slim + .hgrid { margin-top: 0; } main > .banner { margin-bottom: .7rem; }
@media (max-width: 860px) { .tiles2 { grid-template-columns: 1fr; } .hgrid, .hgrid > * { min-width: 0; } }
.head.compact > div { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; } .head.compact { margin-bottom: .3rem; } .hgrid .legend { margin-top: .2rem; } .tiles2 a.tile { padding: .5rem .8rem; }
