:root {
  --ink: #060606;
  --paper: #fbfaf6;
  --stone: #eeede8;
  --rule: #d6d4cc;
  --graphite: #383838;
  --muted: #74736e;
  --gold: #b59a5a;
  --blue: #55758b;
  --clay: #b98572;
  --white: #ffffff;
  --sidebar: 244px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--paper); }

button, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.prototype-banner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 20px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prototype-banner span { color: var(--gold); font-weight: 800; }
.prototype-banner p { margin: 0; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - 32px); }

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 30px 22px 24px;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid #1d1d1d;
  z-index: 20;
}

.wordmark, .footer-wordmark {
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.wordmark span, .footer-wordmark span { color: var(--gold); }

.client-chip { display: flex; align-items: center; gap: 11px; margin: 46px 0 34px; }
.client-chip strong, .client-chip small { display: block; }
.client-chip strong { font-size: 13px; }
.client-chip small { margin-top: 3px; color: #9e9e98; font-size: 10px; }

.client-avatar, .profile-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #55544f;
  border-radius: 50%;
  color: var(--paper);
  background: #171717;
  font-size: 11px;
  font-weight: 800;
}

.primary-nav { display: grid; gap: 4px; }

.nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 13px 10px;
  border: 0;
  border-left: 2px solid transparent;
  color: #aeadA7;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover { color: var(--paper); background: #121212; }
.nav-item.is-active { color: var(--paper); border-left-color: var(--gold); background: #171717; }
.nav-index { color: #696963; font-size: 9px; letter-spacing: .08em; }
.nav-item.is-active .nav-index { color: var(--gold); }

.sidebar-note { margin-top: auto; padding-top: 18px; border-top: 1px solid #2c2c2a; }
.sidebar-note p { margin: 8px 0 0; color: #999993; font-size: 10px; line-height: 1.55; }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.main-content { min-width: 0; }

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, .96);
}

.topbar strong { display: block; margin-top: 4px; font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.freshness { text-align: right; }
.freshness span, .freshness strong { display: block; }
.freshness span { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.freshness strong { margin-top: 4px; font-size: 11px; }
.profile-button { color: var(--ink); background: var(--stone); border-color: var(--rule); cursor: pointer; }
.menu-button { display: none; }

.view { display: none; padding: 58px clamp(24px, 4vw, 64px) 0; }
.view.is-visible { display: block; animation: appear .3s ease-out; }

@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-heading { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); align-items: end; gap: 40px; margin-bottom: 44px; }
.page-heading h1 { max-width: 760px; margin: 8px 0 0; font-size: clamp(42px, 5.2vw, 78px); line-height: .95; letter-spacing: -.065em; }
.page-heading > p { max-width: 450px; margin: 0; color: var(--graphite); font-size: 15px; line-height: 1.65; }

.eyebrow { display: inline-block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: #a9a8a1; }

.value-hero { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 308px; background: var(--stone); border-top: 5px solid var(--ink); }
.hero-number { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 66px); border-right: 1px solid var(--rule); }
.hero-number > strong { margin: 16px 0 13px; font-size: clamp(54px, 7.6vw, 110px); line-height: .88; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.hero-change { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--graphite); font-size: 13px; font-weight: 700; }
.hero-change span + span::before { content: "/"; margin-right: 12px; color: #9f9e98; }
.definition-trigger { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--blue); background: transparent; font-size: 10px; cursor: pointer; }
.hero-context { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 54px); }
.context-label { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-context h2 { margin: 13px 0 12px; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.04; letter-spacing: -.045em; }
.hero-context p { margin: 0; color: var(--graphite); font-size: 13px; line-height: 1.65; }
.text-link { width: fit-content; margin-top: 22px; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--ink); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-top: 0; }
.metric-card { min-height: 138px; padding: 25px 27px; border-right: 1px solid var(--rule); background: var(--paper); }
.metric-card:last-child { border-right: 0; }
.metric-card strong { display: block; margin-top: 18px; font-size: clamp(24px, 2.7vw, 36px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.overview-grid, .portfolio-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; margin-top: 58px; }
.panel { border: 1px solid var(--rule); background: var(--white); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 32px 24px; border-bottom: 1px solid var(--rule); }
.panel-heading h2, .next-panel h2, .data-note h2 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.045em; }
.quiet-button { padding: 8px 11px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 800; cursor: pointer; }

.objective-row { padding: 28px 32px; border-bottom: 1px solid var(--rule); }
.objective-row:last-child { border-bottom: 0; }
.objective-top { display: flex; justify-content: space-between; gap: 20px; }
.objective-top h3 { margin: 0; font-size: 15px; }
.objective-top strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; margin: 17px 0 9px; background: var(--stone); }
.progress-track span { display: block; height: 100%; background: var(--gold); }
.objective-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

.next-panel { padding: 31px 32px; background: var(--stone); }
.action-list { margin: 25px 0 0; padding: 0; list-style: none; }
.action-list li { display: grid; grid-template-columns: 65px 1fr; gap: 15px; padding: 19px 0; border-top: 1px solid var(--rule); }
.action-date { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.action-list strong { font-size: 13px; }
.action-list p { margin: 5px 0 0; color: var(--graphite); font-size: 11px; line-height: 1.5; }

.ink-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: end; margin: 70px calc(-1 * clamp(24px, 4vw, 64px)) 0; padding: 65px clamp(24px, 4vw, 64px); color: var(--paper); background: var(--ink); }
.ink-band h2 { max-width: 620px; margin: 12px 0 0; font-size: clamp(32px, 4.3vw, 62px); line-height: .98; letter-spacing: -.055em; }
.ink-band p { max-width: 560px; margin: 0; color: #b8b7b0; font-size: 14px; line-height: 1.7; }

.assumption-banner { display: grid; grid-template-columns: 210px 1fr; gap: 30px; margin-bottom: 24px; padding: 20px 24px; border-left: 4px solid var(--gold); background: #f1eee4; }
.assumption-banner strong { font-size: 12px; }
.assumption-banner p { margin: 0; color: var(--graphite); font-size: 11px; line-height: 1.55; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.objective-card { padding: 34px; border: 1px solid var(--rule); background: var(--white); }
.objective-card header { display: flex; justify-content: space-between; gap: 20px; }
.objective-card h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.05em; }
.quality-tag { height: fit-content; padding: 6px 8px; color: #5d533a; background: #eee7d5; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.objective-value { margin: 36px 0 8px; font-size: clamp(42px, 5vw, 66px); font-weight: 800; letter-spacing: -.065em; }
.objective-card > p { margin: 0; color: var(--muted); font-size: 11px; }
.objective-details { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--rule); }
.objective-details div { padding: 18px 12px 0 0; }
.objective-details span, .mini-stats span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.objective-details strong, .mini-stats strong { display: block; margin-top: 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.planning-panel { margin-top: 22px; }
.cashflow-flow { display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-step { position: relative; padding: 32px; border-right: 1px solid var(--rule); }
.flow-step:last-child { border-right: 0; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 35px; z-index: 2; color: var(--gold); background: var(--white); }
.flow-step span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.flow-step strong { display: block; margin-top: 13px; font-size: 24px; letter-spacing: -.04em; }
.flow-step p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }

.allocation-panel { min-width: 0; }
.allocation-visual { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: center; padding: 34px; }
.donut-wrap { display: grid; place-items: center; }
.donut-wrap svg { width: 210px; height: 210px; transform: rotate(-90deg); }
.donut-center { position: absolute; text-align: center; }
.donut-center strong { display: block; font-size: 23px; }
.donut-center span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.donut-wrap { position: relative; }
.sleeve-item { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sleeve-item:last-child { border-bottom: 0; }
.sleeve-swatch { width: 7px; height: 7px; }
.sleeve-item span { font-size: 11px; }
.sleeve-item strong { font-size: 11px; font-variant-numeric: tabular-nums; }

.concentration-panel { padding: 34px; background: var(--stone); }
.concentration-number { margin: 25px 0 5px; font-size: clamp(60px, 7vw, 94px); font-weight: 850; letter-spacing: -.08em; }
.concentration-panel h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; }
.concentration-panel > p { margin: 25px 0; color: var(--graphite); font-size: 11px; line-height: 1.6; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.mini-stats div { padding-top: 18px; }
.holdings-panel { margin-top: 22px; }
.filter-control { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.filter-control select { margin-left: 8px; padding: 8px 28px 8px 9px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 14px 18px; color: var(--muted); background: var(--stone); font-size: 8px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
td { padding: 17px 18px; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
td.number, th.number { text-align: right; }
.holding-name { display: flex; align-items: center; gap: 11px; }
.ticker-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); font-size: 8px; font-weight: 900; }
.holding-name strong, .holding-name small { display: block; }
.holding-name small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.drift { display: inline-block; min-width: 50px; padding: 5px 7px; text-align: center; background: var(--stone); }
.drift.is-watch { color: #6e5630; background: #eee7d5; }

.empty-state { margin: 0; padding: 28px 32px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.forecast-warning { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; margin-bottom: 0; padding: 22px 26px; border: 2px solid var(--ink); border-left: 7px solid var(--clay); background: #f4e8e3; }
.forecast-warning strong { font-size: 14px; }
.forecast-warning p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.5; }
.forecast-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-top: 0; }
.forecast-kpis article { min-height: 145px; padding: 25px 27px; border-right: 1px solid var(--rule); background: var(--white); }
.forecast-kpis article:last-child { border-right: 0; }
.forecast-kpis span, .chart-unit { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.forecast-kpis strong { display: block; margin-top: 17px; font-size: clamp(23px, 2.5vw, 34px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.forecast-kpis small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.forecast-workbench { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.4fr); gap: 22px; margin-top: 44px; }
.forecast-controls { display: grid; padding: 16px 30px 26px; }
.forecast-controls label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; min-height: 50px; border-bottom: 1px solid var(--rule); color: var(--graphite); font-size: 10px; }
.forecast-controls label > span { display: flex; align-items: center; gap: 6px; }
.forecast-controls input[type="number"], .scenario-table input { width: 88px; padding: 8px 9px; border: 1px solid var(--rule); border-radius: 0; color: var(--ink); background: var(--paper); text-align: right; font: inherit; font-variant-numeric: tabular-nums; }
.forecast-controls em { width: 45px; color: var(--muted); font-size: 8px; font-style: normal; }
.forecast-controls .toggle-control { display: flex; justify-content: space-between; padding-top: 13px; border-bottom: 0; }
.toggle-control input { width: 17px; height: 17px; accent-color: var(--ink); }
.forecast-chart-panel { min-width: 0; }
.forecast-chart { min-height: 360px; padding: 24px 22px 0; }
.forecast-chart svg { width: 100%; height: auto; overflow: visible; }
.forecast-grid line { stroke: var(--rule); stroke-width: 1; }
.forecast-grid text { fill: var(--muted); font-size: 9px; }
.forecast-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.forecast-line.conservative { stroke: var(--clay); }
.forecast-line.base { stroke: var(--ink); stroke-width: 4; }
.forecast-line.favourable { stroke: var(--gold); }
.forecast-line.benchmark { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 7 6; }
.forecast-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 34px 27px; }
.forecast-legend span { display: flex; align-items: center; gap: 7px; color: var(--graphite); font-size: 9px; }
.forecast-legend i { width: 18px; height: 3px; background: var(--ink); }
.forecast-legend i.conservative { background: var(--clay); }
.forecast-legend i.favourable { background: var(--gold); }
.forecast-legend i.benchmark { height: 2px; background: var(--blue); }
.scenario-panel { margin-top: 22px; }
.scenario-table input { width: 76px; }
.scenario-table td:last-child { color: var(--muted); }
.horizon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.horizon-card { padding: 29px; border: 1px solid var(--rule); background: var(--white); }
.horizon-card:nth-child(2) { border-top: 5px solid var(--ink); }
.horizon-card header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.horizon-card header strong { font-size: 27px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.horizon-card > p { margin: 8px 0 23px; color: var(--muted); font-size: 9px; }
.range-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; }
.range-line i { height: 2px; background: linear-gradient(90deg, var(--clay), var(--gold)); }
.horizon-card dl, .benchmark-copy dl { margin: 22px 0 0; }
.horizon-card dl div, .benchmark-copy dl div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--rule); }
.horizon-card dt, .benchmark-copy dt { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.horizon-card dd, .benchmark-copy dd { margin: 0; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.forecast-evidence-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-top: 22px; }
.dividend-history { padding: 25px 32px 30px; }
.dividend-year { display: grid; grid-template-columns: 62px 1fr 90px; align-items: center; gap: 16px; min-height: 39px; }
.dividend-year span { color: var(--muted); font-size: 9px; }
.dividend-year > i { height: 8px; background: var(--stone); }
.dividend-year b { display: block; height: 100%; background: var(--gold); }
.dividend-year strong { text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.benchmark-copy { padding: 28px 32px 32px; }
.benchmark-copy p { margin: 0; color: var(--graphite); font-size: 11px; line-height: 1.6; }
.benchmark-copy > strong { display: block; margin-top: 20px; padding: 13px; color: #654a3f; background: #f4e8e3; font-size: 9px; line-height: 1.5; }
.forecast-methodology { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; margin-top: 22px; padding: 38px; color: var(--paper); background: var(--ink); }
.forecast-methodology h2 { margin: 8px 0 0; font-size: 29px; letter-spacing: -.045em; }
.forecast-methodology ul { margin: 0; padding-left: 18px; color: #b7b6b0; font-size: 11px; line-height: 1.7; }
.forecast-methodology li + li { margin-top: 6px; }

.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-card { min-height: 295px; display: flex; flex-direction: column; padding: 31px; border: 1px solid var(--rule); background: var(--white); }
.report-card:first-child { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.report-card:first-child .eyebrow, .report-card:first-child p { color: #a9a8a1; }
.report-card h2 { margin: 21px 0 9px; font-size: 30px; letter-spacing: -.05em; }
.report-card p { margin: 0; color: var(--graphite); font-size: 11px; line-height: 1.55; }
.report-status { margin-top: auto; padding-top: 20px; border-top: 1px solid currentColor; font-size: 9px; }
.report-method { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; border-top: 5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.report-method > div { padding: 35px; border-right: 1px solid var(--rule); }
.report-method > div:last-child { border-right: 0; }
.report-step { color: var(--gold); font-size: 10px; font-weight: 900; }
.report-method h3 { margin: 28px 0 8px; font-size: 19px; }
.report-method p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.activity-grid { display: grid; gap: 22px; }
.activity-grid.has-transactions { grid-template-columns: minmax(320px, .7fr) minmax(620px, 1.3fr); align-items: start; }
.activity-grid.has-transactions .timeline-item { grid-template-columns: 82px 14px minmax(0, 1fr); gap: 12px; }
.activity-grid.has-transactions .state-tag { display: none; }
.activity-panel { min-width: 0; }
.timeline { padding: 0 34px; }
.timeline-item { display: grid; grid-template-columns: 110px 18px 1fr auto; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-date { color: var(--muted); font-size: 9px; }
.timeline-marker { position: relative; width: 8px; height: 8px; margin-top: 2px; border: 2px solid var(--gold); border-radius: 50%; }
.timeline-marker::after { content: ""; position: absolute; left: 2px; top: 10px; width: 1px; height: 64px; background: var(--rule); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-copy strong { font-size: 14px; }
.timeline-copy p { margin: 6px 0 0; color: var(--graphite); font-size: 11px; line-height: 1.55; }
.state-tag { height: fit-content; padding: 5px 7px; color: var(--muted); background: var(--stone); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.transaction-panel { min-width: 0; }
.transaction-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.transaction-summary div { padding: 20px 21px; border-right: 1px solid var(--rule); }
.transaction-summary div:last-child { border-right: 0; }
.transaction-summary span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.transaction-summary strong { display: block; margin-top: 7px; font-size: 15px; font-variant-numeric: tabular-nums; }
.transaction-table-wrap { max-height: 560px; overflow: auto; }
.transaction-table-wrap thead { position: sticky; top: 0; z-index: 2; }
.transaction-change.is-positive { color: #3f654d; }
.transaction-change.is-negative { color: #8a4f3d; }
.transaction-note { margin: 0; padding: 18px 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 9px; line-height: 1.55; }
.data-note { max-width: 940px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: end; margin-top: 22px; padding: 35px; color: var(--paper); background: var(--ink); }
.data-note p { margin: 0; color: #b7b6b0; font-size: 11px; line-height: 1.6; }

.portal-footer { display: grid; grid-template-columns: 180px 1fr; gap: 30px; margin: 78px 0 0; padding: 32px clamp(24px, 4vw, 64px); border-top: 1px solid var(--rule); }
.portal-footer p { max-width: 820px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.footer-wordmark { color: var(--ink); font-size: 15px; }

dialog { width: min(500px, calc(100% - 36px)); padding: 38px; border: 1px solid var(--rule); border-radius: 0; color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
dialog::backdrop { background: rgba(6, 6, 6, .58); }
dialog h2 { margin: 12px 0 10px; font-size: 28px; letter-spacing: -.045em; }
dialog p { margin: 0; color: var(--graphite); font-size: 13px; line-height: 1.65; }
.dialog-close { float: right; padding: 0; border: 0; border-bottom: 1px solid; background: transparent; font-size: 10px; cursor: pointer; }

@media (max-width: 1120px) {
  :root { --sidebar: 210px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .overview-grid, .portfolio-layout { grid-template-columns: 1fr; }
  .allocation-visual { grid-template-columns: 210px 1fr; }
  .cashflow-flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .forecast-kpis { grid-template-columns: repeat(2, 1fr); }
  .forecast-kpis article:nth-child(2) { border-right: 0; }
  .forecast-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .forecast-workbench { grid-template-columns: 1fr; }
  .horizon-grid { grid-template-columns: 1fr; }
  .horizon-card:nth-child(2) { border-top-width: 1px; }
  .activity-grid.has-transactions { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .prototype-banner { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 32px; width: min(290px, 86vw); height: calc(100vh - 32px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 30px 0 80px rgba(0,0,0,.2); }
  .sidebar.is-open { transform: translateX(0); }
  .menu-button { display: block; padding: 7px 9px; border: 1px solid var(--rule); background: var(--paper); font-size: 10px; font-weight: 800; }
  .topbar { height: 72px; }
  .topbar > div:first-of-type .eyebrow { display: none; }
  .freshness { display: none; }
  .view { padding-top: 38px; }
  .page-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 34px; }
  .page-heading h1 { font-size: clamp(42px, 13vw, 64px); }
  .value-hero { grid-template-columns: 1fr; }
  .hero-number { min-height: 235px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero-context { min-height: 250px; }
  .ink-band { grid-template-columns: 1fr; gap: 30px; }
  .plan-grid, .report-grid { grid-template-columns: 1fr; }
  .forecast-evidence-grid, .forecast-methodology { grid-template-columns: 1fr; }
  .report-method { grid-template-columns: 1fr; }
  .report-method > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .report-method > div:last-child { border-bottom: 0; }
  .portal-footer { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .prototype-banner p { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .metric-card:last-child { border-bottom: 0; }
  .overview-grid { margin-top: 38px; }
  .panel-heading { align-items: flex-start; padding: 24px; }
  .objective-row, .next-panel { padding: 24px; }
  .assumption-banner { grid-template-columns: 1fr; gap: 8px; }
  .objective-card { padding: 25px; }
  .objective-details { grid-template-columns: 1fr; }
  .objective-details div { padding-bottom: 12px; }
  .cashflow-flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step::after { display: none; }
  .allocation-visual { grid-template-columns: 1fr; }
  .timeline { padding: 0 22px; }
  .timeline-item { grid-template-columns: 70px 14px 1fr; gap: 10px; }
  .state-tag { display: none; }
  .transaction-summary { grid-template-columns: repeat(2, 1fr); }
  .transaction-summary div:nth-child(2) { border-right: 0; }
  .transaction-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .data-note { grid-template-columns: 1fr; gap: 25px; }
  .forecast-warning { grid-template-columns: 1fr; gap: 8px; }
  .forecast-kpis { grid-template-columns: 1fr; }
  .forecast-kpis article { border-right: 0; border-bottom: 1px solid var(--rule); }
  .forecast-kpis article:last-child { border-bottom: 0; }
  .forecast-controls { padding: 12px 22px 22px; }
  .forecast-controls label { grid-template-columns: 1fr; gap: 7px; padding: 11px 0; }
  .forecast-controls .toggle-control { flex-direction: row; }
  .forecast-chart { min-height: 260px; padding: 18px 8px 0; }
  .dividend-history { padding: 22px; }
  .dividend-year { grid-template-columns: 50px 1fr 75px; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
