:root {
  --bg:#F6F4EF; --surface:#fff; --ink:#1B2430; --muted:#5B6573; --line:#E1DDD3; --focus:#1D5FD1;
  --idea-bg:#EEF2FF; --idea-ink:#3B4BA8;
  --p1-bg:#FBE3E1; --p1-ink:#9B1C1C; --p2-bg:#FFF0CF; --p2-ink:#7A4B00; --p3-bg:#E3EAF4; --p3-ink:#34445C;
  --ok-bg:#DDF1E4; --ok-ink:#14602F; --warn-bg:#FFF0CF; --warn-ink:#7A4B00;
  --fill:#1B2430; --fillw:#C77700; --track:#E6E2D8; --link:#2F6B3F;
  --paid:#1B2430; --unpaid:#E2B96B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#12161C; --surface:#1B222B; --ink:#EEF1F5; --muted:#9AA5B4; --line:#2C3541; --focus:#7FB0FF;
    --idea-bg:#232A4A; --idea-ink:#B9C4FF;
    --p1-bg:#4A2020; --p1-ink:#FFB4AE; --p2-bg:#4A3510; --p2-ink:#F2CE86; --p3-bg:#27303D; --p3-ink:#C5CFDD;
    --ok-bg:#183524; --ok-ink:#8FDDA9; --warn-bg:#4A3510; --warn-ink:#F2CE86;
    --fill:#EEF1F5; --fillw:#E2A13B; --track:#2C3541; --link:#7CC38E;
    --paid:#EEF1F5; --unpaid:#8A6A2C;
  }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:400 16px/1.5 Inter, system-ui, sans-serif; }
.wrap { max-width:1180px; margin:0 auto; padding:0 16px; }
h1,h2,h3 { font-family:"Space Grotesk", Inter, system-ui, sans-serif; margin:0; }
h1 { font-size:clamp(30px,5vw,44px); line-height:1.1; font-weight:700; }
a { color:inherit; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:6px; }
.eyebrow { margin:0; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.muted { color:var(--muted); } .small { font-size:14px; } .src { font-size:12px; color:var(--muted); }
.grow { flex:1 1 280px; min-width:0; } .mb { margin-bottom:12px; } .mt { margin-top:12px; }

/* home */
.top { padding:32px 0 24px; }
.top .eyebrow { margin-bottom:4px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%,240px),1fr)); gap:14px; padding-bottom:48px; }
.card { display:flex; align-items:center; gap:14px; min-height:88px; padding:16px; text-decoration:none; color:inherit; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.card:hover { border-color:var(--muted); }
.name { font:600 18px/1.25 "Space Grotesk", Inter, sans-serif; overflow-wrap:anywhere; }
.icon { flex:none; width:56px; height:56px; border-radius:14px; display:grid; place-items:center; overflow:hidden; }
.mark { font:700 20px/1 "Space Grotesk", Inter, sans-serif; letter-spacing:-.02em; }
.icon-logo { background:#fff; border:1px solid var(--line); }
.icon-logo img { width:100%; height:100%; object-fit:contain; }
.icon-idea { background:var(--idea-bg); color:var(--idea-ink); border:1.5px dashed var(--idea-ink); }

/* command center bar */
.cc-bar { border-bottom:1px solid var(--line); background:var(--surface); position:sticky; top:0; z-index:5; }
.cc-bar-in { display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; padding-top:6px; padding-bottom:6px; }
.back { display:inline-flex; align-items:center; min-height:44px; font-weight:600; text-decoration:none; color:var(--link); }
.back:hover { text-decoration:underline; }
.switch { display:flex; flex-wrap:wrap; gap:6px; }
.pill { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border-radius:999px; border:1px solid var(--line); text-decoration:none; font-size:14px; font-weight:500; background:var(--bg); }
.pill:hover { border-color:var(--muted); }
.pill[aria-current="page"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.dot { width:10px; height:10px; border-radius:3px; flex:none; }

/* command center body */
.cc { padding-top:24px; padding-bottom:64px; display:flex; flex-direction:column; gap:28px; }
.cc-title { display:flex; flex-wrap:wrap; gap:14px 20px; justify-content:space-between; align-items:center; }
.cc-title-l { display:flex; gap:16px; align-items:center; min-width:0; }
.cc-title-l h1 { font-size:clamp(26px,4vw,34px); }
.cc-title-l p { margin:2px 0 0; font-size:14px; max-width:60ch; }
.cc-title-r { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.repo { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:600; color:var(--link); text-decoration:underline; text-underline-offset:3px; }
.tag { display:inline-block; font-size:12px; font-weight:600; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.p1,.act { background:var(--p1-bg); color:var(--p1-ink); } .p2,.watch,.warnbadge { background:var(--warn-bg); color:var(--warn-ink); }
.p3 { background:var(--p3-bg); color:var(--p3-ink); } .ok { background:var(--ok-bg); color:var(--ok-ink); }
.brief { display:flex; flex-direction:column; gap:8px; }
.headline { font-size:clamp(22px,3.4vw,30px); line-height:1.25; font-weight:600; }
.lead { margin:0; max-width:80ch; }
.callout { margin:0; padding:14px 16px; border-radius:12px; background:var(--warn-bg); color:var(--warn-ink); font-size:14px; }
.sec { display:flex; flex-direction:column; gap:12px; }
.sec-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; }
.sec-head h2, .panel > h2 { font-size:22px; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; min-width:0; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.kpi-v { font:700 30px/1.1 "Space Grotesk", Inter, sans-serif; margin:8px 0 6px; } .kpi-v.sm { font-size:24px; }
.kpis .tag { margin-bottom:8px; }
.two { display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start; }
.grow2 { flex:999 1 560px; } .grow1 { flex:1 1 340px; }
.rows { display:flex; flex-direction:column; }
.row { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-top:1px solid var(--line); }
.panel > h2 + .rows .row:first-child { border-top:0; }
.panel.rows { padding-top:6px; padding-bottom:6px; } .panel.rows .row:first-child { border-top:0; }
.row-tag { min-width:38px; text-align:center; flex:none; }
.row-body { flex:1; min-width:0; } .row-title { font-weight:600; } .row-body > * + * { margin-top:3px; }
.wrap-row { flex-wrap:wrap; align-items:center; } .scope-sys { flex:0 0 150px; font-weight:600; }
.amt { font-weight:600; white-space:nowrap; }
.chain { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.stage { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.stage .kpi-v { margin:2px 0; }
.bars { display:flex; flex-direction:column; gap:16px; }
.bar-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; font-size:14px; margin-bottom:6px; }
.bar-name { font-weight:600; }
.bar { height:10px; border-radius:6px; background:var(--track); position:relative; overflow:hidden; }
.fill { position:absolute; left:0; top:0; bottom:0; border-radius:6px; background:var(--fill); }
.fill.fillw { background:var(--fillw); }
.bar-note { margin:6px 0 0; font-size:13px; color:var(--muted); }
.decisions { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.decision { border-top:4px solid var(--fillw); } .decision h3 { font-size:18px; line-height:1.3; margin:8px 0; } .decision p { margin:0; }

/* chart + tables */
.chart-head { display:none; }
.seg-wrap { display:inline-flex; margin-bottom:14px; }
.seg { min-height:44px; padding:0 16px; border:1px solid var(--line); background:var(--bg); color:var(--ink); font:500 14px Inter, sans-serif; cursor:pointer; }
.seg:first-child { border-radius:10px 0 0 10px; } .seg:last-child { border-radius:0 10px 10px 0; border-left:0; }
.seg[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.scroll-x { overflow-x:auto; }
.plot { display:flex; gap:8px; min-width:560px; align-items:flex-end; }
.col { flex:1; display:flex; flex-direction:column; align-items:stretch; text-align:center; gap:4px; }
.col-v { font-size:12px; font-weight:600; }
.col-l { font-size:12px; color:var(--muted); }
.stack { display:flex; flex-direction:column; justify-content:flex-end; }
.seg-unpaid { background:var(--unpaid); border-radius:4px 4px 0 0; }
.seg-paid { background:var(--paid); border-radius:4px 4px 0 0; }
.legend { margin-top:12px; }
.tbl { min-width:720px; }
.tr { display:grid; grid-template-columns:minmax(200px,2.2fr) repeat(5,minmax(90px,1fr)); gap:12px; align-items:center; padding:12px 0; border-top:1px solid var(--line); font-size:14px; }
.tr.th { border-top:0; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding-top:0; }
.tr .tag { justify-self:start; }
.age { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; align-items:end; }
.age-c { display:flex; flex-direction:column; gap:2px; justify-content:flex-end; }
.swatch { width:100%; border-radius:6px; margin-bottom:6px; }

@media (max-width:420px) { .card { padding:14px; gap:12px; } .icon { width:48px; height:48px; } .panel { padding:16px; } }
.icon-sm { width:44px; height:44px; }

.group { margin-bottom:8px; }
.group-title { font-size:20px; display:flex; align-items:center; gap:10px; margin:24px 0 12px; }
.group-n { font:600 13px Inter, sans-serif; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:1px 9px; }
.empty { margin:0 0 20px; color:var(--muted); border:1px dashed var(--line); border-radius:14px; padding:16px; }
.group .grid { padding-bottom:8px; }

/* command center shell: sidebar + one view at a time */
.cc-bar-in { max-width:none; margin:0; padding:6px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; }
.intel-frame { display:block; width:100%; height:calc(100vh - 58px); min-height:640px; border:0; background:var(--bg); }
.ccx { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; }
.ccx-side { background:#0B1220; color:#CBD5E1; padding:18px 12px; position:sticky; top:58px; height:calc(100vh - 58px); overflow:auto; }
.ccx-brand { display:flex; gap:10px; align-items:center; padding:2px 6px 16px; }
.ccx-brand b { display:block; color:#fff; font-size:14px; } .ccx-brand small { font-size:12px; color:#8A98B3; }
.ccx-nav { display:flex; flex-direction:column; gap:2px; }
.ccx-btn { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:0 10px; border:0; border-radius:8px; background:none; color:#CBD5E1; font:500 14px Inter, sans-serif; text-align:left; cursor:pointer; }
.ccx-btn:hover { background:#141D31; }
.ccx-btn[aria-pressed="true"] { background:#1E2B47; color:#fff; }
.ccx-ic { width:18px; text-align:center; opacity:.9; }
.ccx-cnt { margin-left:auto; background:#DC2626; color:#fff; border-radius:99px; font-size:11px; padding:0 7px; }
.ccx-main { padding:24px 28px 64px; display:flex; flex-direction:column; gap:28px; min-width:0; }
@media (max-width:820px) {
  .ccx { grid-template-columns:1fr; }
  .ccx-side { position:static; height:auto; padding:10px 12px; }
  .ccx-brand { display:none; }
  .ccx-nav { flex-direction:row; flex-wrap:wrap; }
  .ccx-btn { width:auto; padding:0 12px; }
  .ccx-main { padding:20px 16px 56px; }
  .intel-frame { height:calc(100vh - 110px); }
}

/* CEO view */
:root { --red:#DC2626; --amber:#D97706; --green:#16A34A; }
.ceo-brief { background:linear-gradient(135deg,#0B1220,#16294D); color:#E2E8F0; border-radius:14px; padding:20px 22px; display:flex; flex-direction:column; gap:10px; }
.ceo-h { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#93C5FD; }
.ceo-head { font-size:clamp(20px,3vw,26px); line-height:1.25; font-weight:600; color:#fff; }
.ceo-lead { margin:0; color:#CBD5E1; max-width:80ch; }
.ceo-ul { list-style:none; margin:4px 0 0; padding:0; display:grid; gap:8px; }
.ceo-ul li { display:flex; gap:10px; font-size:14px; }
.ceo-dot { flex:none; width:8px; height:8px; border-radius:50%; margin-top:8px; }
.ceo-dot.R, .dot2.R { background:var(--red); } .ceo-dot.A, .dot2.A { background:#FBBF24; } .ceo-dot.G, .dot2.G { background:#4ADE80; } .ceo-dot.N, .dot2.N { background:#94A3B8; }
.ceo-foot { font-size:12px; color:#93A8CF; }
.health { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.hc { border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:var(--surface); display:flex; flex-direction:column; gap:2px; min-width:0; }
.hc b { font-size:12px; color:var(--muted); font-weight:600; }
.hc-v { font-size:18px; font-weight:700; display:flex; align-items:center; gap:6px; }
.hc-t { font-size:15px; line-height:1.3; font-weight:600; }
.dot2 { width:9px; height:9px; border-radius:50%; display:inline-block; flex:none; }
.outlook { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.cc-bar-in { gap:4px 18px; }

/* tabs + group performance */
.tabs { display:flex; gap:4px; margin-top:20px; border-bottom:1px solid var(--line); }
.tab { padding:10px 16px; text-decoration:none; font-weight:600; color:var(--muted); border-bottom:3px solid transparent; margin-bottom:-1px; }
.tab:hover { color:var(--ink); }
.tab[aria-current="page"] { color:var(--ink); border-bottom-color:var(--ink); }
.g-page { padding-bottom:56px; }
.g-note { background:var(--warn-bg); color:var(--warn-ink); border-radius:12px; padding:12px 14px; font-size:14px; margin-bottom:14px; }
.g-note code { font-size:13px; }
.g-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:14px; margin-bottom:14px; }
.g-kpi, .g-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; }
.g-card { margin-bottom:14px; min-width:0; }
.g-kl { font-size:13px; color:var(--muted); } .g-kv { font:700 30px/1.2 "Space Grotesk",Inter,sans-serif; margin:4px 0; } .g-ks { font-size:13px; color:var(--muted); }
.g-up { color:var(--ok-ink); font-weight:600; } .g-dn { color:var(--p1-ink); font-weight:600; } .g-am { color:var(--p2-ink); font-weight:600; }
.g-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; margin-bottom:12px; }
.g-head h2 { font-size:18px; }
.g-target { display:grid; gap:12px; }
.g-big { font:700 34px/1.1 "Space Grotesk",Inter,sans-serif; }
.g-track { display:flex; height:22px; border-radius:11px; background:var(--track); overflow:hidden; }
.g-track i { display:block; height:100%; } .g-done { background:var(--fill); } .g-fc { background:var(--unpaid); }
.g-legend { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--muted); margin-top:8px; }
.sw { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.g-tsw { background:none; border:2px dashed var(--ink); height:0; width:14px; border-radius:0; }
.g-heading { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.g-heading b { display:block; font:700 20px/1.2 "Space Grotesk",Inter,sans-serif; } .g-heading span { font-size:12.5px; color:var(--muted); }
.g-grid { stroke:var(--line); } .g-axis { font-size:10.5px; fill:var(--muted); } .g-dc { font:700 18px "Space Grotesk",Inter,sans-serif; fill:var(--ink); }
.g-tline { fill:none; stroke:var(--ink); stroke-width:2; stroke-dasharray:5 4; } .g-tdot { fill:var(--surface); stroke:var(--ink); stroke-width:2; }
.g-split { stroke:var(--muted); stroke-dasharray:3 4; }
.g-two { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:14px; } .g-two > .g-card { margin-bottom:14px; }
.g-cap { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; margin-bottom:10px; }
.g-cap span { display:block; font-size:12.5px; color:var(--muted); } .g-cap b { font:700 20px "Space Grotesk",Inter,sans-serif; }
.g-capt { border-left:1px solid var(--line); padding-left:10px; }
.g-row { display:grid; grid-template-columns:minmax(90px,170px) 1fr 70px; align-items:center; gap:10px; font-size:13.5px; margin-top:8px; }
.g-row b { text-align:right; } .g-bar { height:10px; background:var(--track); border-radius:5px; overflow:hidden; } .g-bar i { display:block; height:100%; }
.g-donut { width:min(100%,260px); display:block; margin:0 auto 12px; }
.g-key { display:grid; gap:7px; font-size:14px; } .g-key div { display:flex; align-items:center; gap:2px; } .g-key span { flex:1; } .g-key b { font-weight:600; text-align:right; }
.g-tw { overflow-x:auto; } .g-tw table { width:100%; border-collapse:collapse; font-size:14px; }
.g-tw th { text-align:left; font-size:12px; color:var(--muted); font-weight:600; padding:8px 10px; border-bottom:1px solid var(--line); }
.g-tw td { padding:10px; border-bottom:1px solid var(--line); white-space:nowrap; } .g-tw a { text-decoration:none; font-weight:600; } .g-tw a:hover { text-decoration:underline; }
.g-total td { border-bottom:0; border-top:2px solid var(--ink); }

.top-tight { padding-bottom:0; }
.tasks-frame { display:block; width:100%; height:calc(100vh - 150px); min-height:680px; border:0; border-top:1px solid var(--line); background:#f3f5f7; }

.ccx-sub { padding-left:34px; font-size:13px; min-height:38px; }
.bsx-wrap { padding-bottom:40px; }

/* ---------- top-level Home navigation + personal tabs ---------- */
.mainnav { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0 4px; }
.mn { padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--muted); font-weight:600; font-size:14px; text-decoration:none; }
.mn:hover { color:var(--ink); }
.mn[aria-current="page"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.mainnav + .tabs { margin-top:14px; }
.pp-page { display:grid; gap:16px; padding-bottom:48px; }
.pp-head { padding-top:8px; } .pp-title { margin:0; font-size:clamp(24px,4vw,32px); } .pp-lead { margin:4px 0 0; color:var(--muted); }
.pp-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.pp-kpi { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pp-kl { font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.pp-kv { font-size:24px; line-height:1.15; overflow-wrap:anywhere; } .pp-kv.bad { color:#C0392B; } .pp-kv.pos, b.pos { color:#14804A; }
.pp-ks { font-size:12.5px; color:var(--muted); }
.pp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; }
.pp-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.pp-ch { display:flex; justify-content:space-between; align-items:baseline; gap:10px; } .pp-ch h2 { margin:0; font-size:17px; }
.pp-sub { font-size:12.5px; color:var(--muted); }
.pp-empty { margin:0; padding:12px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); font-size:14px; }
.pp-note { margin:0; font-size:12.5px; color:var(--muted); }
.pp-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; align-items:end; }
.pp-form label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); font-weight:600; min-width:0; } .pp-form label.wide { grid-column:1/-1; }
.pp-form input, .pp-form select, .pp-mini { font:inherit; font-size:14px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); min-width:0; width:100%; }
.pp-mini { width:auto; max-width:110px; padding:5px 8px; }
.pp-btn { font:inherit; font-weight:600; padding:9px 14px; border:0; border-radius:8px; background:var(--ink); color:var(--bg); cursor:pointer; }
.pp-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); font-size:14px; }
.pp-rn { flex:1; min-width:0; overflow-wrap:anywhere; display:flex; flex-direction:column; } .pp-trip .pp-rn b { font-size:15px; }
.pp-rd { flex:none; width:96px; color:var(--muted); font-size:13px; }
.pp-tag { font-size:11px; padding:2px 8px; border-radius:999px; background:var(--ok-bg); color:var(--ok-ink); font-weight:600; } .pp-tag.liability { background:var(--p1-bg); color:var(--p1-ink); }
.pp-x { border:0; background:none; color:var(--muted); font-size:20px; line-height:1; cursor:pointer; padding:2px 6px; } .pp-x:hover { color:#C0392B; }
.pp-bars { display:grid; gap:8px; } .pp-bar { display:grid; grid-template-columns:90px 1fr auto; gap:10px; align-items:center; font-size:13px; }
.pp-bn { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pp-bv { min-width:64px; text-align:right; font-weight:600; }
.pp-bt { height:10px; background:var(--track); border-radius:6px; overflow:hidden; } .pp-bt i { display:block; height:100%; background:var(--fill); border-radius:6px; }
.pp-goal { display:grid; gap:6px; } .pp-goal .pp-row { border-top:0; padding-bottom:0; }
.pp-inline { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); }
@media (max-width:420px) { .pp-grid { grid-template-columns:1fr; } .pp-bar { grid-template-columns:70px 1fr auto; } }

/* ---------- Finance (flywheel) ---------- */
.fx-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--line); margin:4px 0 6px; -webkit-overflow-scrolling:touch; }
.fx-tab { flex:none; font:inherit; font-weight:600; font-size:14px; color:var(--muted); background:none; border:0; border-bottom:2px solid transparent; padding:10px 12px; cursor:pointer; white-space:nowrap; }
.fx-tab:hover { color:var(--ink); } .fx-tab[aria-current="page"] { color:var(--ink); border-bottom-color:var(--ink); }
.fx-note { margin:2px 0 0; font-size:12.5px; color:var(--muted); max-width:90ch; } .fx-note.warn { color:#9A6200; }
.fx-h3 { margin:12px 0 2px; font-size:13px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.fx-tw { overflow-x:auto; border:1px solid var(--line); border-radius:10px; }
.fx-table { border-collapse:collapse; width:100%; font-size:13.5px; }
.fx-table th { text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:var(--bg); padding:8px 10px; white-space:nowrap; border-bottom:1px solid var(--line); }
.fx-table td { padding:7px 10px; border-top:1px solid var(--line); vertical-align:middle; }
.fx-table .r { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.fx-table tr.tot td { font-weight:700; background:var(--bg); } .fx-table tr.cum td { color:var(--muted); } .fx-table tr.gapr td { font-weight:600; color:#9A6200; }
.fx-table tr.od td { background:var(--p1-bg); } .fx-table tr.cl td { opacity:.5; }
.fx-reg td:nth-child(2) { min-width:230px; } .fx-reg td:nth-child(2) b { display:block; } .fx-reg td:nth-child(2) .pp-sub { display:block; font-size:12px; }
.fx-cal td:first-child { min-width:210px; white-space:nowrap; } .fx-spike { color:#C0392B; font-weight:700; }
.fx-in { font:inherit; font-size:13.5px; padding:5px 7px; border:1px solid var(--line); border-radius:7px; background:var(--bg); color:var(--ink); width:112px; max-width:100%; text-align:right; } select.fx-in { width:auto; text-align:left; } .fx-in.w { width:100%; text-align:left; }
.fx-tag { font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; } .fx-tag.ok { background:var(--ok-bg); color:var(--ok-ink); } .fx-tag.no { background:var(--p1-bg); color:var(--p1-ink); }
.fx-fly { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; }
.fx-st { border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; background:var(--bg); border-left:4px solid var(--line); }
.fx-st b { font-size:11px; color:var(--muted); } .fx-sn { font-weight:700; font-size:14px; } .fx-ss { font-size:12px; color:var(--muted); }
.fx-st.ok { border-left-color:#16A34A; } .fx-st.no { border-left-color:#DC2626; background:var(--p1-bg); } .fx-st.lock { border-left-color:#94A3B8; opacity:.75; }
.fx-gates { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin-top:6px; }
.fx-gate { border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:6px; } .fx-gate.ok { border-color:#16A34A; } .fx-gate.no { border-color:#DC262655; }
.fx-gh { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.fx-gr { display:grid; grid-template-columns:10px 1fr; gap:2px 8px; font-size:13px; align-items:start; } .fx-gr em { grid-column:2; font-style:normal; color:var(--muted); font-size:12px; }
.fx-dot { width:9px; height:9px; border-radius:50%; margin-top:5px; } .fx-dot.ok { background:#16A34A; } .fx-dot.no { background:#DC2626; }
.fx-flag { display:grid; grid-template-columns:70px 1fr; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.fx-flag p { margin:2px 0 0; font-size:13.5px; color:var(--muted); } .fx-flag b { font-size:14.5px; }
.fx-fb { height:fit-content; text-align:center; font-size:11px; font-weight:700; padding:3px 6px; border-radius:6px; } .fx-flag.R .fx-fb { background:var(--p1-bg); color:var(--p1-ink); } .fx-flag.A .fx-fb { background:var(--p2-bg); color:var(--p2-ink); } .fx-flag.B .fx-fb { background:var(--p3-bg); color:var(--p3-ink); }
.fx-q { flex:1; } .fx-a { text-align:right; max-width:50%; }
.fx-stack { display:flex; height:12px; border-radius:6px; overflow:hidden; background:var(--track); } .fx-stack i { display:block; height:100%; }
.fx-leg { margin:4px 0 0; font-size:12.5px; color:var(--muted); }
.fx-three { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.fx-meth { border:1px solid var(--line); border-radius:12px; padding:12px 14px; } .fx-meth p { margin:2px 0 8px; }
.fx-ol { margin:0; padding-left:20px; display:grid; gap:4px; font-size:13px; } .fx-ol li span { display:inline; } .fx-ol li em { display:block; font-style:normal; color:var(--muted); font-size:12px; }
.fx-split { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; align-items:end; margin-top:4px; }
.fx-split label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); font-weight:600; } .fx-split label .fx-in { width:100%; text-align:left; } .fx-calc { font-size:16px; padding:6px 0; color:var(--ink); }
.fx-pool { border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:grid; gap:8px; }
.fx-cols { display:grid; grid-template-columns:repeat(12,1fr); gap:6px; align-items:end; height:190px; } .fx-col { display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:3px; height:100%; min-width:0; } .fx-col i { display:block; width:100%; background:var(--fill); border-radius:5px 5px 0 0; } .fx-cv { font-size:10.5px; color:var(--muted); } .fx-cl { font-size:10.5px; color:var(--muted); white-space:nowrap; }
.fx-task { display:grid; gap:4px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; margin-top:6px; } .fx-task p { margin:0; font-size:13.5px; color:var(--muted); } .fx-task.done { background:var(--ok-bg); } .fx-task.wip { background:var(--p2-bg); } .fx-kpi { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.fx-drop { display:flex; flex-direction:column; gap:4px; align-items:flex-start; border:2px dashed var(--line); border-radius:12px; padding:18px; cursor:pointer; } .fx-drop input { margin-top:6px; }
.fx-msg { margin:0; font-size:13px; } .fx-tools { display:flex; gap:8px; flex-wrap:wrap; }
.pp-btn.ghost { background:transparent; color:var(--ink); border:1px solid var(--line); } .pp-btn.danger { color:#C0392B; }
@media (max-width:600px) { .fx-flag { grid-template-columns:1fr; } .fx-a { max-width:55%; } .fx-cols { height:150px; gap:3px; } .fx-cv { display:none; } }
.fx-tabs ~ .pp-kpis, .pp-page > .pp-kpis { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.pp-card .pp-bar { grid-template-columns:minmax(110px,190px) 1fr auto; }
.fx-pool label, .fx-split label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); font-weight:600; } .fx-pool .fx-in { width:100%; text-align:left; }
.fx-reg select.fx-in { min-width:92px; }

/* ---------- Home landing (heritage cards) + hobby hub ---------- */
.ic-svg { display:inline-flex; width:1.1em; height:1.1em; } .ic-svg svg { width:100%; height:100%; }
.subnav { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0 2px; padding:8px; background:var(--surface); border:1px solid var(--line); border-radius:14px; width:fit-content; max-width:100%; }
.sn { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:10px; color:var(--muted); font-weight:600; font-size:13.5px; text-decoration:none; }
.sn:hover { color:var(--ink); background:var(--bg); } .sn[aria-current="page"] { background:var(--ink); color:var(--bg); }
.lp { padding-bottom:56px; }
.lp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:20px; margin-top:26px; }
.lp-card { position:relative; overflow:hidden; display:flex; flex-direction:column; gap:8px; min-height:300px; padding:28px 26px 24px; border-radius:22px; color:#FBF6EA; text-decoration:none; isolation:isolate; box-shadow:0 1px 0 rgba(255,255,255,.18) inset, 0 12px 32px -14px rgba(27,36,48,.5); transition:transform .25s ease, box-shadow .25s ease; animation:lp-in .6s both; animation-delay:calc(var(--i) * 90ms); }
.lp-card:hover { transform:translateY(-6px); box-shadow:0 1px 0 rgba(255,255,255,.2) inset, 0 22px 40px -14px rgba(27,36,48,.55); }
.lp-card:focus-visible, .hb-card:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.lp-card .ic-svg { width:54px; height:54px; padding:11px; border-radius:16px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); }
.lp-card h2 { margin:14px 0 0; font:600 clamp(30px,4vw,38px)/1.05 Georgia,"Times New Roman",serif; letter-spacing:-.01em; }
.lp-tag { margin:0; color:rgba(251,246,234,.82); font-size:15px; max-width:26ch; }
.lp-stat { margin-top:auto; align-self:flex-start; font-size:12.5px; font-weight:600; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.24); }
.lp-go { font-weight:600; font-size:14px; opacity:.9; } .lp-card:hover .lp-go { text-decoration:underline; }
.lp-orn { position:absolute; z-index:-1; right:-70px; top:-70px; width:240px; height:240px; border-radius:50%; background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,0) 68%); }
.lp-orn::after { content:""; position:absolute; inset:34px; border-radius:50%; border:1px solid rgba(255,255,255,.22); box-shadow:0 0 0 22px rgba(255,255,255,.05); }
.c-biz { background:linear-gradient(150deg,#1F3A4D 0%,#14283A 60%,#0E1C2A 100%); }
.c-fin { background:linear-gradient(150deg,#2F5D43 0%,#1D4130 60%,#12291E 100%); }
.c-hob { background:linear-gradient(150deg,#A8543D 0%,#7E3A52 62%,#4F2745 100%); }
.lp-foot { margin:34px 0 0; text-align:center; color:var(--muted); font:italic 16px Georgia,serif; }
.lp-h2 { margin:26px 0 0; font:600 clamp(28px,4vw,36px)/1.1 Georgia,"Times New Roman",serif; } .lp-sub { margin:4px 0 0; color:var(--muted); }
.hb-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; margin-top:22px; }
.hb-card { display:flex; flex-direction:column; gap:6px; padding:22px 20px 18px; border-radius:18px; background:var(--surface); border:1px solid var(--line); border-top:5px solid var(--acc); color:var(--ink); text-decoration:none; min-height:210px; transition:transform .2s ease, box-shadow .2s ease; animation:lp-in .5s both; animation-delay:calc(var(--i) * 70ms); }
.hb-card:hover { transform:translateY(-4px); box-shadow:0 16px 28px -16px rgba(27,36,48,.4); }
.hb-card .ic-svg { width:46px; height:46px; padding:9px; border-radius:14px; background:var(--acc); color:#fff; }
.hb-card h3 { margin:10px 0 0; font:600 22px Georgia,serif; } .hb-card p { margin:0; color:var(--muted); font-size:14px; }
.hb-card .lp-stat { background:var(--bg); border-color:var(--line); color:var(--ink); margin-top:auto; }
.hb-blog { --acc:#B5673F; } .hb-photography { --acc:#5B4B8A; } .hb-travel { --acc:#1F7A8C; } .hb-music { --acc:#B23A62; } .hb-fitness { --acc:#4B8B3B; }
.pp-link { font-size:13.5px; font-weight:600; color:var(--link); text-decoration:none; align-self:flex-start; } .pp-link:hover { text-decoration:underline; }
.ph-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.ph { margin:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--bg); } .ph img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; cursor:zoom-in; }
.ph figcaption { display:flex; align-items:center; gap:4px; padding:4px 6px; } .ph-cap { flex:1; min-width:0; border:0; background:transparent; font:inherit; font-size:12.5px; color:var(--ink); }
.ph-box { position:fixed; inset:0; z-index:50; background:rgba(10,12,16,.88); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:20px; cursor:zoom-out; } .ph-box img { max-width:100%; max-height:84vh; border-radius:8px; } .ph-box span { color:#fff; }
@keyframes lp-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .lp-card, .hb-card { animation:none; transition:none; } }
@media (max-width:420px) { .lp-card { min-height:240px; } }
.c-tsk { background:linear-gradient(150deg,#8A6A2B 0%,#6B4F1E 60%,#463313 100%); }
.homeback { display:inline-block; margin:0 0 10px; }
.lp-grid { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.top .homeback { margin:0 0 6px; } .top h1 + .homeback { margin-top:6px; }

/* ---------- Sign-in front door ---------- */
.lockbtn { float:right; margin-top:6px; padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--muted); font-weight:600; font-size:13px; text-decoration:none; }
.lockbtn:hover { color:var(--ink); }
.si { position:relative; min-height:100vh; display:flex; flex-direction:column; overflow:hidden; color:#FBF6EA; background:radial-gradient(120% 90% at 50% 0%, #1E3354 0%, #101C31 55%, #0A1222 100%); font-family:inherit; }
.si-ribbon { position:relative; z-index:2; text-align:center; font-size:12.5px; padding:8px 14px; background:rgba(247,184,75,.14); color:#F7D9A0; border-bottom:1px solid rgba(247,184,75,.25); }
.si-sun { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.si-grid { position:relative; z-index:1; flex:1; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,440px); gap:clamp(24px,6vw,96px); align-items:center; max-width:1180px; width:100%; margin:0 auto; padding:clamp(28px,6vh,72px) clamp(20px,5vw,48px) clamp(32px,8vh,96px); }
.si-eyebrow { margin:0 0 22px; letter-spacing:.22em; text-transform:uppercase; font-size:12px; color:#F7B84B; font-weight:600; }
.si-quote blockquote { margin:0; }
.si-quote blockquote p { margin:0; font:500 clamp(28px,4.4vw,52px)/1.18 Georgia,"Times New Roman",serif; letter-spacing:-.01em; transition:opacity .22s ease; text-wrap:balance; }
.si-quote footer { display:flex; align-items:center; gap:14px; margin-top:26px; flex-wrap:wrap; }
.si-by { font:italic 18px Georgia,serif; color:#F7D9A0; } .si-by::before { content:""; display:inline-block; width:34px; height:1px; background:#F7B84B; vertical-align:middle; margin-right:12px; }
.si-on { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(251,246,234,.6); }
.si-dots { display:flex; gap:8px; margin-top:34px; }
.si-dot { width:10px; height:10px; padding:0; border-radius:50%; border:1px solid rgba(247,184,75,.7); background:transparent; cursor:pointer; } .si-dot[aria-selected="true"] { background:#F7B84B; }
.si-dot:focus-visible, .si-btn:focus-visible, .si-code input:focus-visible { outline:3px solid #F7D9A0; outline-offset:2px; }
.si-card { background:#FBF6EA; color:#1B2430; border-radius:22px; padding:clamp(22px,4vw,34px); box-shadow:0 30px 70px -24px rgba(0,0,0,.65), 0 0 0 1px rgba(247,184,75,.25); }
.si-steps { list-style:none; margin:0 0 22px; padding:0; display:flex; gap:6px; font-size:12px; color:#8A8472; }
.si-steps li { flex:1; display:flex; align-items:center; gap:7px; padding-bottom:10px; border-bottom:2px solid #E4DCC8; font-weight:600; }
.si-steps b { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:#E4DCC8; color:#6B6552; font-size:11px; }
.si-steps li.now { color:#1B2430; border-bottom-color:#E8892B; } .si-steps li.now b { background:#E8892B; color:#fff; }
.si-steps li.done { color:#2F6B4A; border-bottom-color:#2F6B4A; } .si-steps li.done b { background:#2F6B4A; color:#fff; }
.si-pane h1 { margin:0; font:600 30px/1.1 Georgia,serif; } .si-sub { margin:8px 0 22px; color:#5E5A4C; font-size:15px; }
.si-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:13px 16px; border-radius:12px; border:1px solid transparent; font:inherit; font-weight:600; font-size:15px; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s; }
.si-btn svg { width:20px; height:20px; } .si-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 8px 18px -10px rgba(0,0,0,.5); }
.si-btn.dark { background:#14223A; color:#fff; } .si-btn.gold { background:#E8892B; color:#fff; } .si-btn.gold:disabled { background:#E9D5B9; color:#8A7B62; cursor:not-allowed; }
.si-btn.ghost { background:transparent; color:#1B2430; border-color:#CFC6AE; } .si-btn.ghost:hover { background:#F3ECDA; }
.si-fine { margin:14px 0 0; font-size:12.5px; color:#7A7563; }
.si-code { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-bottom:16px; }
.si-code input { width:100%; aspect-ratio:1/1.12; text-align:center; font:600 24px Georgia,serif; border:1.5px solid #CFC6AE; border-radius:12px; background:#fff; color:#1B2430; min-width:0; padding:0; } .si-code input:focus { border-color:#E8892B; }
.si-or { display:flex; align-items:center; gap:12px; margin:14px 0; color:#8A8472; font-size:12px; text-transform:uppercase; letter-spacing:.1em; } .si-or::before, .si-or::after { content:""; flex:1; height:1px; background:#DDD4BD; }
.si-ok { width:58px; height:58px; border-radius:50%; background:#2F6B4A; color:#fff; display:grid; place-items:center; margin-bottom:14px; animation:si-pop .4s ease both; } .si-ok svg { width:30px; height:30px; }
.si-trust { list-style:none; display:flex; gap:6px 14px; flex-wrap:wrap; margin:22px 0 0; padding:16px 0 0; border-top:1px solid #E4DCC8; font-size:12px; color:#6B6552; } .si-trust li::before { content:"\2713"; color:#2F6B4A; font-weight:700; margin-right:5px; }
@keyframes si-pop { from { transform:scale(.6); opacity:0; } to { transform:none; opacity:1; } }
@media (max-width:820px) { .si-grid { grid-template-columns:1fr; gap:28px; align-content:start; } .si-quote blockquote p { font-size:clamp(26px,7vw,36px); } .si-dots { margin-top:20px; } }
@media (prefers-reduced-motion: reduce) { .si-quote blockquote p, .si-btn, .si-ok { transition:none; animation:none; } }

/* sign-in form */
.si-lab { display:block; margin:0 0 6px; font-size:13px; font-weight:600; color:#3E3A2E; }
.si-in { width:100%; padding:12px 14px; margin-bottom:14px; border:1.5px solid #CFC6AE; border-radius:12px; background:#fff; color:#1B2430; font:inherit; font-size:16px; }
.si-in:focus { outline:none; border-color:#E8892B; box-shadow:0 0 0 3px rgba(232,137,43,.2); }
.si-pwrow { position:relative; } .si-pwrow .si-in { padding-right:64px; }
.si-show { position:absolute; right:8px; top:6px; border:0; background:transparent; color:#8A5A1B; font:inherit; font-weight:600; font-size:13px; padding:6px 8px; cursor:pointer; }
.si-err { margin:-4px 0 12px; color:#A32D2D; font-size:13px; }
.si-link { display:block; margin:12px auto 0; border:0; background:transparent; color:#6B5A2E; font:inherit; font-size:13px; text-decoration:underline; cursor:pointer; }
/* PWA: mobile bottom bar, safe areas, standalone */
.bbar { display:none; }
@media (max-width:820px) {
  .bbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--surface,#fff); border-top:1px solid var(--line,#ddd); padding:6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bbar a { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; font-size:11px; font-weight:600; color:var(--muted,#667); text-decoration:none; min-height:44px; }
  .bbar a svg { width:22px; height:22px; } .bbar a[aria-current="page"] { color:#E8892B; }
  #app { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) { body { overscroll-behavior-y:none; -webkit-tap-highlight-color:transparent; } .si-ribbon { padding-top:calc(8px + env(safe-area-inset-top)); } }

/* Per-card unlock */
.ul { position:relative; min-height:100vh; display:flex; flex-direction:column; color:#FBF6EA; }
.ul .si-ribbon { position:relative; z-index:2; }
.ul-home { position:absolute; top:56px; left:max(16px,env(safe-area-inset-left)); z-index:3; display:inline-flex; align-items:center; gap:8px; padding:9px 14px; min-height:44px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; text-decoration:none; font-weight:600; font-size:14px; border:1px solid rgba(255,255,255,.28); backdrop-filter:blur(6px); }
.ul-home:hover { background:rgba(255,255,255,.24); } .ul-home svg { width:20px; height:20px; }
.ul-main { flex:1; display:grid; place-items:center; padding:96px 20px 48px; }
.ul-card { width:min(420px,100%); background:#FBF6EA; color:#1B2430; border-radius:22px; padding:clamp(22px,4vw,32px); box-shadow:0 30px 70px -24px rgba(0,0,0,.65); animation:si-pop .35s ease both; }
.ul-ic { width:48px; height:48px; border-radius:14px; background:#14223A; color:#F7D9A0; display:grid; place-items:center; margin-bottom:14px; } .ul-ic svg { width:24px; height:24px; }
.ul-eyebrow { margin:0 0 4px; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#8A5A1B; font-weight:600; }
.ul-card h1 { margin:0; font:600 32px/1.1 Georgia,serif; } .ul-sub { margin:6px 0 20px; color:#5E5A4C; font-size:15px; }
.ul-cd { letter-spacing:.4em; text-align:center; font-size:20px; }
.ul-back { display:block; margin-top:16px; text-align:center; font-weight:600; font-size:14px; color:#14223A; text-decoration:none; padding:10px; min-height:44px; } .ul-back:hover { text-decoration:underline; }
.ul-home:focus-visible, .ul-back:focus-visible { outline:3px solid #F7D9A0; outline-offset:2px; }
@media (max-width:820px) { .ul-main { padding-top:104px; } }

/* Wealth + Family cards */
:root { --w1:#2a78d6; --w2:#eb6834; --w3:#1baf7a; --w4:#eda100; --w5:#e87ba4; --w6:#008300; --w7:#6250d6; --w8:#e34948; --wo:#8d8a82; --wm:#52514e; }
@media (prefers-color-scheme: dark) { :root { --w1:#3987e5; --w2:#d95926; --w3:#199e70; --w4:#c98500; --w5:#d55181; --w6:#008300; --w7:#9085e9; --w8:#e66767; --wo:#8d8a82; --wm:#c3c2b7; } }
.c-wea { background:linear-gradient(150deg,#3B3A7A 0%,#2A2A5C 60%,#1A1A3E 100%); }
.c-fam { background:linear-gradient(150deg,#1F6F78 0%,#175259 60%,#0F3A3F 100%); }
.wl-body { display:grid; gap:16px; }
.wl-sample { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border:1px dashed var(--line); border-radius:12px; background:var(--warn-bg); color:var(--warn-ink); font-size:14px; }
.wl-donut { display:grid; grid-template-columns:minmax(150px,200px) 1fr; gap:18px; align-items:center; }
.wl-donut svg { width:100%; height:auto; max-width:200px; } .wl-dc { font:700 17px "Space Grotesk",Inter,sans-serif; fill:var(--ink); } .wl-ds { font-size:11px; fill:var(--muted); }
.wl-sw { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:8px; vertical-align:-1px; }
.wl-leg td, .wl-leg th { padding-top:5px; padding-bottom:5px; }
.wl-div { display:grid; gap:7px; } .wl-dr { display:grid; grid-template-columns:96px 1fr 70px; gap:10px; align-items:center; font-size:13px; }
.wl-dn { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wl-dt { position:relative; height:12px; background:var(--track); border-radius:6px; } .wl-dt::after { content:""; position:absolute; left:50%; top:-2px; bottom:-2px; width:1px; background:var(--muted); }
.wl-dt i { position:absolute; top:0; bottom:0; border-radius:4px; } .wl-dt i.pos { background:var(--w1); } .wl-dt i.neg { background:var(--w2); }
.wl-dv { text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
.wl-line { width:100%; height:auto; max-height:240px; } .wl-grid { stroke:var(--line); stroke-width:1; } .wl-lbl { font-size:11.5px; font-weight:600; fill:var(--ink); } .wl-ax { font-size:11px; fill:var(--muted); }
.wl-flags { display:grid; gap:8px; } .wl-flag { display:grid; grid-template-columns:70px 1fr auto; gap:10px; align-items:start; padding:10px 12px; border-radius:10px; border:1px solid var(--line); border-left:4px solid var(--p2-ink); font-size:14px; }
.wl-flag.high { border-left-color:#C0392B; background:var(--p1-bg); } .wl-ft { font-size:11px; letter-spacing:.06em; text-transform:uppercase; padding-top:2px; }
.wl-go { font:inherit; font-size:12.5px; font-weight:600; background:none; border:1px solid var(--line); border-radius:8px; padding:4px 10px; color:var(--ink); cursor:pointer; }
.pp-btn.ghost { background:transparent; color:var(--ink); border:1px solid var(--line); }
.fm-notes { width:100%; font:inherit; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); resize:vertical; }
@media (max-width:640px) { .wl-donut { grid-template-columns:1fr; justify-items:center; } .wl-donut .fx-tw { width:100%; } .wl-flag { grid-template-columns:1fr; } .wl-dr { grid-template-columns:70px 1fr 64px; } }

.pp-inline { flex-wrap:wrap; }
