:root{--bg:#f3f6fa;--surface:#fff;--ink:#0b1f3a;--muted:#64748b;--border:#e2e8f0;--line:#eef2f7;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-light:#eff4ff;--navy:#0b1f3a;--positive:#15803d;--positive-bg:#dcfce7;--positive-ink:#166534;--negative:#b91c1c;--negative-bg:#fee2e2;--negative-ink:#991b1b;--amber:#b45309;--amber-bg:#fff7e6;--radius:14px;--shadow:0 1px 2px rgba(11,31,58,.04),0 6px 20px rgba(11,31,58,.05);font-family:"Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,"SF Pro Text",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}
button,input,select,textarea{font:inherit}
button,.button{border:1px solid var(--accent);border-radius:10px;background:var(--accent);color:#fff;padding:10px 16px;cursor:pointer;display:inline-block;font-weight:600;transition:background .15s,border-color .15s}
button:hover,.button:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.secondary,.button.secondary{color:var(--ink);background:var(--surface);border-color:var(--border)}.secondary:hover,.button.secondary:hover{background:var(--accent-light);border-color:#c7d7fe;color:var(--ink)}
.danger{background:var(--negative);border-color:var(--negative)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bfd3fe;outline-offset:2px}
input,select,textarea{width:100%;border:1px solid #cbd5e1;background:#fff;color:var(--ink);padding:10px 12px;border-radius:10px;margin-top:6px}input:focus,select:focus,textarea:focus{border-color:var(--accent)}input[type=checkbox]{width:auto;accent-color:var(--accent)}
label{font-size:14px;font-weight:600}form p{margin:16px 0}.helptext{display:block;font-size:12px;color:var(--muted);margin-top:6px;font-weight:400}.errorlist{color:var(--negative);padding-left:18px}
.layout{display:flex;min-height:100vh}
.sidebar{width:236px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{font-size:21px;font-weight:700;letter-spacing:-.4px;color:var(--ink);display:flex;align-items:center;flex-wrap:wrap}.brand:hover{color:var(--ink)}
.brand-mark{display:inline-flex;background:var(--accent);color:#fff;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;margin-right:10px;font-size:17px}
.brand-caption{flex-basis:100%;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.3px;margin:8px 0 0 44px}
.sidebar nav{display:grid;gap:2px;margin-top:34px}
.sidebar nav a{color:#475569;font-weight:500;padding:10px 12px;border-radius:10px}.sidebar nav a:hover{background:var(--bg);color:var(--ink)}
.sidebar nav a.active{background:var(--accent-light);color:var(--accent-hover);font-weight:600}
.sidebar-bottom{margin-top:auto;font-size:12px;color:var(--muted);line-height:1.7;padding-top:32px}.sidebar-bottom .pill{font-size:11px}
.link-button{border:0;background:none;padding:0;color:var(--muted);font-size:12px;font-weight:500}.link-button:hover{background:none;color:var(--ink)}
main{padding:36px 44px;max-width:1440px;width:100%;min-width:0}
h1{font-size:30px;font-weight:700;letter-spacing:-.6px;margin:6px 0 10px}h2{font-size:18px;font-weight:650;margin:0 0 14px;letter-spacing:-.2px}h3{font-size:16px}p{line-height:1.55}
.eyebrow{text-transform:uppercase;letter-spacing:1.2px;font-size:11px;font-weight:650;color:var(--accent);margin:0 0 8px}
.muted{color:var(--muted)}
.page-heading,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.page-heading{margin-bottom:22px}
.status-line{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:18px;flex-wrap:wrap}
.status-dot{width:8px;height:8px;background:var(--positive);border-radius:50%}.status-dot.warning{background:var(--amber)}
.pill{display:inline-block;border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:3px 10px;font-size:11px;font-weight:500}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
.metric{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;min-height:140px;box-shadow:var(--shadow)}
.metric p{color:var(--muted);font-size:13px;font-weight:500;margin:0 0 14px}
.metric strong{display:block;font-size:26px;font-weight:700;letter-spacing:-.6px;white-space:nowrap;font-variant-numeric:tabular-nums}.metric strong small{font-size:17px;font-weight:500}
.metric span{display:block;color:var(--muted);font-size:12px;margin-top:12px}
.metric.primary{background:var(--navy);border-color:var(--navy);color:#fff}.metric.primary p{color:#93c5fd}.metric.primary span{color:#a9bdd8}
.positive{color:var(--positive)}.negative{color:var(--negative)}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin:20px 0;box-shadow:var(--shadow)}
.narrow{max-width:640px}.table-scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:12px;font-weight:500;color:var(--muted);padding:12px;line-height:1.5;border-bottom:1px solid var(--border)}
td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle;line-height:1.45}tbody tr:hover td{background:#f8fafc}tbody tr:last-child td{border-bottom:0}
td small,.line-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.instrument-link{font-weight:600;color:var(--ink)}.instrument-link:hover{color:var(--accent)}
.chip{display:inline-block;margin-top:4px;border-radius:20px;padding:2px 9px;font-size:12px;font-weight:600;background:var(--bg);color:var(--muted)}
.chip.positive{background:var(--positive-bg);color:var(--positive-ink)}.chip.negative{background:var(--negative-bg);color:var(--negative-ink)}
.table-note{font-size:12px;color:var(--muted);line-height:1.6;margin:16px 0 0}
.filters{display:flex;gap:10px;align-items:end}.filters label{font-size:12px;font-weight:500;color:var(--muted)}.filters select{font-size:13px;padding:8px 10px;min-width:150px}.filters button{font-size:13px;padding:9px 14px}
.section-heading p{font-size:13px;margin:0 0 12px}.section-heading h2{margin-bottom:6px}
.notice{border:1px solid #c7d7fe;background:var(--accent-light);padding:12px 16px;border-radius:12px;font-size:14px;color:#1e3a8a}
.notice.warning,.notice.error{border-color:#fcd9a5;background:var(--amber-bg);color:#7c3a0a}.notice.success{border-color:#bbf7d0;background:#f0fdf4;color:var(--positive-ink)}
.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.source-grid article{background:var(--bg);border-radius:12px;padding:16px;font-size:13px}.source-grid strong{font-size:14px}
.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.two-columns .panel{margin-top:0}
.line-item{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}
.hash{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;color:var(--muted);font-size:12px}
.chart{width:100%;height:auto;max-height:230px}
.chart-legend{display:flex;gap:20px;font-size:12px;color:var(--muted);margin:14px 0;flex-wrap:wrap}
.green-key:before,.grey-key:before{content:"";display:inline-block;width:14px;height:3px;border-radius:2px;background:var(--accent);vertical-align:middle;margin-right:8px}.grey-key:before{background:#94a3b8}
.grid-line{stroke:var(--line);stroke-width:1;fill:none}
.capital-line{fill:none;stroke:var(--accent);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.funding-line{fill:none;stroke:#94a3b8;stroke-width:2;stroke-dasharray:6 5}
.chart-dates{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.chart-empty{padding:40px 20px;text-align:center;color:var(--muted);font-size:14px;border:1px dashed #cbd5e1;border-radius:12px;margin-top:16px;background:#fafcff}
.empty{max-width:720px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:50px;margin:40px auto;text-align:center;box-shadow:var(--shadow)}
.empty p{color:var(--muted);margin:16px auto 24px;max-width:480px}.empty .button{margin:5px}
.empty-mark{display:inline-flex;background:var(--accent-light);color:var(--accent);font-size:34px;width:68px;height:68px;border-radius:18px;align-items:center;justify-content:center;margin-bottom:20px}
.job{border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}
footer{color:var(--muted);font-size:12px;text-align:center;margin:32px 0 8px}
.auth-body{display:flex;min-height:100vh;align-items:center;justify-content:center;background:var(--bg)}
.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;width:min(95%,500px);padding:36px;margin:30px;box-shadow:var(--shadow)}
.auth-card .brand{margin-bottom:26px}.auth-card img{max-width:100%}.auth-card ul{padding-left:22px}.auth-card .muted{font-size:12px;margin-top:22px}.auth-card .exit{margin-top:18px}
.heading-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.heading-actions .status-line{margin:0}
.grid-top,.grid-mid,.grid-bottom{display:grid;gap:16px;margin:16px 0}.grid-top{grid-template-columns:1.35fr 1fr 1fr}.grid-mid,.grid-bottom{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);min-width:0}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.card-head.wrap{flex-wrap:wrap;align-items:center}.card-head a{font-size:13px;font-weight:500}
.card-label{margin:0;font-size:13px;font-weight:600;color:var(--muted)}.card-note{margin:6px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.hero{background:var(--navy);border-color:var(--navy);color:#fff;display:flex;flex-direction:column}.hero .card-label{color:#93c5fd}
.hero-value{font-size:36px;font-weight:700;letter-spacing:-1px;margin:8px 0 4px;white-space:nowrap;font-variant-numeric:tabular-nums}.hero-value small{font-size:22px;font-weight:500;color:#a9bdd8}
.hero-sub{margin:0;font-size:14px;font-weight:600;color:#cbd5e1}.hero .positive{color:#86efac}.hero .negative{color:#fca5a5}
.hero-foot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}
.hero-foot span{display:block;font-size:11px;color:#a9bdd8}.hero-foot strong{display:block;font-size:15px;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ring-row{display:flex;align-items:center;gap:14px}.ring{width:84px;height:84px;flex-shrink:0}.ring circle{fill:none;stroke-width:9}.ring-track{stroke:#e8eef6}.ring-fill{stroke:var(--accent);stroke-linecap:round}
.ring-row .big-number{font-size:22px;margin:0}
.seg{display:inline-flex;background:var(--bg);border-radius:10px;padding:3px;gap:2px;flex-wrap:wrap}.seg a{font-size:13px;font-weight:600;color:var(--muted);padding:5px 11px;border-radius:8px}.seg a:hover{color:var(--ink)}.seg a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(11,31,58,.1)}.seg small{font-weight:500;color:#94a3b8}
.chart-gain{margin:6px 0 0;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}.chart-gain small{font-size:12px;font-weight:500;color:var(--muted)}
.chart-box{position:relative}.area{fill:var(--accent);fill-opacity:.08;stroke:none}.pt{fill:transparent;cursor:pointer}.pt:hover{fill:rgba(37,99,235,.12)}
.chart-tip{position:absolute;transform:translate(-50%,calc(-100% - 12px));background:var(--navy);color:#fff;border-radius:10px;padding:8px 11px;font-size:12px;white-space:nowrap;pointer-events:none;box-shadow:var(--shadow)}.chart-tip b{display:block;font-size:14px}.chart-tip span{display:block;color:#a9bdd8}.chart-tip[hidden]{display:none}
.donut-row{display:flex;align-items:center;gap:16px}.donut{width:132px;height:132px;flex-shrink:0}.donut circle{fill:none;stroke-width:18}.donut-track{stroke:#eef2f7}
.seg-share{stroke:var(--accent)}.seg-bond{stroke:#06b6d4}.seg-fund{stroke:var(--navy)}.seg-cash{stroke:#cbd5e1}
.legend{list-style:none;margin:0;padding:0;flex:1;min-width:0}.legend li{display:grid;grid-template-columns:auto 1fr auto;column-gap:8px;align-items:center;padding:5px 0;font-size:13px}.legend small{grid-column:2/4;color:var(--muted);font-size:12px}
.holdings{margin-top:6px}.holding{display:grid;grid-template-columns:minmax(0,2.2fr) 124px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;padding:12px 8px;border-bottom:1px solid var(--line);color:var(--ink);border-radius:10px}
a.holding:hover{background:#f8fafc;color:var(--ink)}.holding.head{font-size:12px;color:var(--muted);padding-top:4px;padding-bottom:8px;border-radius:0}.holding small{display:block;color:var(--muted);font-size:12px;margin-top:3px;font-weight:400}
.h-name{display:flex;align-items:center;gap:11px;min-width:0}.h-name strong{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}
.av-share{background:#dbeafe;color:#1e40af}.av-bond{background:#cffafe;color:#155e75}.av-fund{background:#e0e7ff;color:#3730a3}.av-cash{background:#f1f5f9;color:#475569}
.side{display:flex;flex-direction:column;gap:16px;min-width:0}
.sources{list-style:none;margin:0;padding:0}.sources li{display:flex;gap:10px;align-items:flex-start;padding:7px 0;font-size:13px}.sources .status-dot{margin-top:6px;flex-shrink:0}.sources small{display:block;color:var(--muted);font-size:12px}
.job-line{font-size:12px;margin-top:8px}
.big-number{font-size:26px;font-weight:700;letter-spacing:-.6px;margin:4px 0 12px;font-variant-numeric:tabular-nums}.big-number small{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}
.progress{display:block;width:100%;height:8px;margin:6px 0 12px}.progress-track{fill:#e8eef6}.progress-fill{fill:var(--accent)}
.streak{font-size:14px;margin:8px 0 4px}
.bars{display:block;width:100%;height:auto;max-height:150px}.bars text{font-size:11px;fill:var(--muted)}
.bar{fill:#cbd5e1}.bar.met{fill:var(--accent)}.bar.current{fill:#93c5fd}.bar.incomplete{opacity:.4}
.target-line{stroke:var(--amber);stroke-width:1.5;stroke-dasharray:5 4}
h2.spaced{margin-top:26px}
.stack{display:block;width:100%;height:14px;border-radius:7px;margin:4px 0 8px}
.stack-share{fill:var(--accent);background:var(--accent)}.stack-bond{fill:#06b6d4;background:#06b6d4}.stack-fund{fill:var(--navy);background:var(--navy)}.stack-cash{fill:#cbd5e1;background:#cbd5e1}
.key{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:8px;vertical-align:middle}
.partial-key:before{content:"";display:inline-block;width:8px;height:8px;border:2px solid var(--amber);border-radius:50%;vertical-align:middle;margin-right:8px}
.partial-point{fill:#fff;stroke:var(--amber);stroke-width:2}
.spark{display:block;width:120px;height:30px}.spark.wide{width:300px;height:60px}
.spark polyline{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.spark.up polyline{stroke:#16a34a}.spark.down polyline{stroke:#dc2626}
.spark-zero{stroke:#dbe3ee;stroke-width:1;stroke-dasharray:3 3}
@media(min-width:1500px){main{padding:44px 56px}}
@media(max-width:1200px){main{padding:30px 24px}.sidebar{width:210px;padding:26px 14px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{align-items:flex-start;flex-direction:column}.grid-top{grid-template-columns:1fr 1fr}.grid-top .hero{grid-column:1/3}.grid-mid,.grid-bottom{grid-template-columns:1fr}.side{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
@media(max-width:760px){.layout{display:block}.sidebar{position:static;width:100%;height:auto;padding:14px 16px;border-right:0;border-bottom:1px solid var(--border)}.brand{font-size:19px}.brand-caption{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:4px;margin-top:12px}.sidebar nav a{font-size:13px;white-space:nowrap;padding:8px 10px}.sidebar-bottom{display:none}main{padding:22px 16px}h1{font-size:25px}.page-heading{align-items:flex-start;flex-direction:column;gap:6px}.metrics{gap:10px}.metric{padding:16px 14px;min-height:124px}.metric strong{font-size:21px}.panel{padding:18px 14px}.two-columns,.source-grid{grid-template-columns:1fr}.filters{flex-wrap:wrap;gap:8px}.filters select{min-width:120px}.empty{padding:28px 18px}.numeric{font-size:13px}td,th{padding:12px 9px}.spark.wide{width:200px;height:40px}.grid-top{grid-template-columns:1fr}.grid-top .hero{grid-column:auto}.hero-value{font-size:29px}.hero-foot strong{font-size:13px}.card{padding:16px 14px}.holding{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.holding.head,.h-spark,.holding>span:nth-child(3){display:none}.holding>span:nth-child(5){grid-column:2}.donut-row{flex-direction:column;align-items:stretch}.donut{align-self:center}}
