:root {
  color-scheme: light;
  --paper: #f3f1ec;
  --paper-raised: #fbfaf7;
  --paper-soft: #ebe8e1;
  --ink: #0d2238;
  --ink-soft: #3f5060;
  --muted: #77828d;
  --line: #d8d6d0;
  --line-strong: #c6c3bb;
  --navy: #102f4f;
  --navy-bright: #164b78;
  --gold: #bc9350;
  --gold-soft: #e7d7ba;
  --positive: #16745b;
  --negative: #b24d44;
  --warning: #a66d21;
  --shadow: 0 22px 54px rgba(13, 34, 56, .07);
  --radius: 18px;
  --content: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page-grid: rgba(13, 34, 56, .018);
  --header-bg: rgba(243, 241, 236, .92);
  --control-bg: #fff;
  --hover-bg: rgba(251, 250, 247, .72);
  --chart-surface: rgba(251, 250, 247, .45);
  --tooltip-bg: rgba(251, 250, 247, .96);
  --chart-navy: #164b78;
  --chart-navy-dark: #102f4f;
  --chart-green: #16745b;
  --chart-gold: #bc9350;
  --chart-red: #b24d44;
  --chart-grid: #d8d6d0;
  --chart-muted: #77828d;
  --chart-paper: #fbfaf7;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0b0d;
  --paper-raised: #111318;
  --paper-soft: #181b21;
  --ink: #f4f1e9;
  --ink-soft: #c7c9cf;
  --muted: #858b95;
  --line: #292d34;
  --line-strong: #3b4049;
  --navy: #111b27;
  --navy-bright: #79a9d2;
  --gold: #d9ad5b;
  --gold-soft: #eed7a6;
  --positive: #70caa1;
  --negative: #ed8379;
  --warning: #d3a257;
  --shadow: 0 22px 54px rgba(0, 0, 0, .28);
  --page-grid: rgba(255, 255, 255, .018);
  --header-bg: rgba(10, 11, 13, .9);
  --control-bg: #121419;
  --hover-bg: rgba(255, 255, 255, .025);
  --chart-surface: rgba(17, 19, 24, .64);
  --tooltip-bg: rgba(17, 19, 24, .97);
  --chart-navy: #79a9d2;
  --chart-navy-dark: #102f4f;
  --chart-green: #70caa1;
  --chart-gold: #d9ad5b;
  --chart-red: #ed8379;
  --chart-grid: #2c3139;
  --chart-muted: #858b95;
  --chart-paper: #111318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--paper);
  color: var(--ink);
  font: 14px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.initial-state {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
}
.initial-state h1 { margin: 0; font: 400 clamp(34px, 6vw, 60px)/1 Georgia, "Songti SC", serif; }
.initial-state p { margin: 0; color: var(--muted); }
.state-code { display: grid; place-items: center; width: 52px; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); font: italic 28px Georgia, serif; }
.state-actions { display: flex; gap: 10px; }
.button { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.button--primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button--quiet { background: var(--paper-raised); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; letter-spacing: .17em; }
.brand-seal { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: italic 17px Georgia, serif; letter-spacing: 0; }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { font-size: 13px; line-height: 1.15; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.brand--center { font-weight: 720; }
.loading-rule { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loading-rule i { display: block; width: 48%; height: 100%; background: var(--gold); animation: loading-slide 1.2s var(--ease) infinite; }
@keyframes loading-slide { from { transform: translateX(-110%); } to { transform: translateX(320%); } }

.site-header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-status { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.client-environment-label { padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--gold) 9%, transparent); color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.live-status { display: inline-flex; align-items: center; gap: 7px; color: var(--positive); }
.live-status i, .strategy-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(22, 116, 91, .09); }
.live-status.is-stale { color: var(--warning); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; position: relative; }
.theme-switch { height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-soft); display: flex; align-items: center; }
.theme-switch button { min-width: 44px; height: 26px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.is-active { background: var(--control-bg); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.icon-action { width: 38px; height: 38px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; cursor: pointer; transition: background .2s ease, transform .2s var(--ease); }
.icon-action:hover { background: var(--paper-soft); transform: translateY(-1px); }
.icon-action svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-action.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-control { min-height: 40px; padding: 4px 6px 4px 4px; border: 0; background: transparent; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.profile-control > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; }
.profile-control strong { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.profile-control i { color: var(--muted); font-style: normal; }
.client-menu { width: 150px; padding: 6px; position: absolute; top: 48px; right: 0; z-index: 30; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-raised); box-shadow: var(--shadow); }
.client-menu a, .client-menu button { width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; display: flex; align-items: center; text-decoration: none; cursor: pointer; }
.client-menu a:hover, .client-menu button:hover { background: var(--paper-soft); }

.account-bar {
  min-height: 74px;
  padding: 14px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.account-identity { display: flex; align-items: center; gap: 14px; }
.account-identity > span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.account-select-wrap { position: relative; }
.account-select-wrap select { min-width: 270px; max-width: 420px; height: 40px; padding: 0 42px 0 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--control-bg); color: var(--ink); font-weight: 650; appearance: none; cursor: pointer; }
.account-select-wrap svg { width: 17px; position: absolute; top: 12px; right: 13px; fill: none; stroke: var(--muted); stroke-width: 1.7; pointer-events: none; }
.strategy-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--positive); font-size: 11px; }
.strategy-badge.is-idle { color: var(--warning); }
.strategy-badge.is-alert { color: var(--negative); }
.period-switch { padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); display: flex; }
.period-switch button { min-width: 52px; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.period-switch button:hover { color: var(--ink); }
.period-switch button.is-active { background: var(--control-bg); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 34, 56, .08); font-weight: 650; }

.range-explorer {
  min-height: 92px;
  padding: 18px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-raised) 72%, transparent);
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(420px, 1.45fr);
  align-items: center;
  gap: 42px;
}
.range-copy { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 14px; }
.range-copy > span { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.range-copy strong { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-copy strong i { color: var(--gold); font: italic 10px Georgia, serif; }
.range-copy small { justify-self: end; color: var(--muted); font-size: 10px; white-space: nowrap; }
.range-controls { min-width: 0; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 18px; }
.range-controls > button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.range-controls > button:hover { border-color: var(--gold); color: var(--ink); }
.dual-range { height: 30px; position: relative; display: flex; align-items: center; }
.range-rail { width: 100%; height: 3px; position: absolute; left: 0; top: 14px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.range-rail i { height: 100%; position: absolute; left: 0; right: 0; border-radius: inherit; background: var(--gold); }
.dual-range input { width: 100%; height: 30px; margin: 0; position: absolute; inset: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.dual-range input::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.dual-range input::-moz-range-track { height: 3px; background: transparent; }
.dual-range input::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 2px solid var(--paper); border-radius: 50%; appearance: none; -webkit-appearance: none; background: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 3px 12px rgba(0,0,0,.18); pointer-events: auto; cursor: grab; }
.dual-range input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 3px 12px rgba(0,0,0,.18); pointer-events: auto; cursor: grab; }
.dual-range input:focus-visible { outline: none; }
.dual-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 24%, transparent); }

.dashboard-content { max-width: var(--content); margin: 0 auto; padding: 38px 0 72px; }
.reveal { animation: reveal .65s var(--ease) both; }
.reveal:nth-of-type(2) { animation-delay: .05s; }
.reveal:nth-of-type(3) { animation-delay: .1s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.account-hero {
  min-height: 310px;
  padding: clamp(34px, 5vw, 68px);
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .7fr);
  align-items: end;
}
.account-hero::before { content: ""; width: 480px; height: 480px; position: absolute; right: -160px; top: -270px; border: 1px solid rgba(231, 215, 186, .2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(231, 215, 186, .025), 0 0 0 150px rgba(231, 215, 186, .018); }
.hero-main, .hero-return { position: relative; z-index: 2; }
.hero-kicker { display: flex; gap: 12px; margin-bottom: 24px; color: rgba(255, 255, 255, .6); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero-kicker span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 2px 0; border-radius: 50%; background: var(--gold); }
.account-hero h1 { margin: 0 0 36px; color: rgba(255, 255, 255, .92); font: 400 clamp(22px, 2.4vw, 34px)/1.2 Georgia, "Songti SC", serif; letter-spacing: -.02em; }
.hero-figure { display: grid; align-items: end; }
.hero-figure > span, .hero-return > span { color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .08em; }
.hero-figure strong { margin: 5px 0 1px; font: 500 clamp(38px, 5.5vw, 72px)/1.05 Inter, sans-serif; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.hero-figure small { color: #a8d8c6; font-size: 12px; }
.hero-return { min-height: 148px; padding-left: clamp(28px, 4vw, 62px); border-left: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-return strong { margin: 10px 0 14px; color: var(--gold-soft); font: 400 clamp(38px, 4vw, 58px)/1 Georgia, serif; letter-spacing: -.035em; }
.return-caption { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .65); font-size: 11px; }
.return-caption i { width: 22px; height: 1px; background: var(--gold); }
.hero-watermark { position: absolute; right: 25%; bottom: -84px; color: rgba(255, 255, 255, .025); font: italic 300px/1 Georgia, serif; user-select: none; }

.capital-strip { min-height: 112px; padding: 24px clamp(26px, 5vw, 66px); border: 1px solid var(--line); border-top: 0; background: var(--paper-raised); display: grid; grid-template-columns: auto 1fr auto 1fr auto minmax(170px, .8fr); align-items: center; gap: 26px; }
.timeline-item { display: grid; gap: 5px; white-space: nowrap; }
.timeline-item span { color: var(--muted); font-size: 10px; letter-spacing: .07em; }
.timeline-item strong { font-size: 15px; font-weight: 650; }
.timeline-line { display: flex; align-items: center; }
.timeline-line::before { content: ""; order: 2; width: 100%; height: 1px; background: var(--line); }
.timeline-line i { width: 5px; height: 5px; border: 1px solid var(--gold); border-radius: 50%; flex: 0 0 auto; }
.timeline-line i:first-child { order: 1; }
.timeline-line i:last-child { order: 3; }
.capital-strip > p { margin: 0; padding-left: 26px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }

.metrics-section, .chart-section, .yield-assets, .position-overview, .table-section, .milestones-section { padding-top: clamp(70px, 8vw, 112px); }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading > div { display: flex; align-items: baseline; gap: 16px; }
.section-index { color: var(--gold); font: italic 14px Georgia, serif; }
.section-heading h2 { margin: 0; font: 400 clamp(27px, 3vw, 42px)/1.1 Georgia, "Songti SC", serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.metric-ledger { border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-ledger article { min-height: 146px; padding: 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s ease, transform .25s var(--ease); }
.metric-ledger article:nth-child(3n) { border-right: 0; }
.metric-ledger article:hover { background: var(--hover-bg); transform: translateY(-2px); }
.metric-ledger article > span, .yield-balance-row article > span, .risk-ledger article > span { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.metric-ledger article strong { font-size: clamp(21px, 2.2vw, 30px); font-weight: 560; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-ledger article small { color: var(--positive); font-size: 11px; }
.metric-ledger .metric-primary { background: var(--paper-raised); }
.metric-ledger .metric-primary strong { font: 400 clamp(26px, 3vw, 40px)/1 Georgia, serif; }
.metric-ledger .metric-primary small, .metric-ledger article:last-child small { color: var(--muted); }

.chart-section { position: relative; }
.section-heading--chart { margin-bottom: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); align-items: center; }
.chart-legend { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { width: 24px; height: 2px; background: var(--navy-bright); }
.legend-line--income { background: var(--positive); }
.legend-line--gold { background: var(--gold); }
.legend-bar { width: 7px; height: 9px; background: rgba(22, 116, 91, .25); }
.legend-bar--bfusd { background: var(--chart-navy); }
.legend-bar--rwusd { background: var(--chart-gold); }
.chart-delta { padding-left: 18px; border-left: 1px solid var(--line); color: var(--positive); font-size: 12px; font-weight: 650; }
.chart-stage { height: 360px; position: relative; background: var(--chart-surface); }
.chart-stage--large { height: 420px; }
.chart-stage--mini { height: 280px; background: transparent; }
.chart-stage--yield { height: 340px; background: var(--chart-surface); }
.chart-stage canvas { width: 100%; height: 100%; display: block; }
.chart-tooltip { min-width: 132px; padding: 10px 12px; position: absolute; z-index: 3; top: 0; left: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--tooltip-bg); box-shadow: 0 12px 30px rgba(13, 34, 56, .12); color: var(--ink); font-size: 10px; line-height: 1.65; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .12s ease; white-space: nowrap; }
.chart-tooltip.is-visible { opacity: 1; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted); font-size: 12px; }
.chart-export { padding: 5px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 10px; letter-spacing: .05em; cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.chart-export:hover { color: var(--ink); border-color: var(--gold); }
.chart-section > .chart-export { position: absolute; right: 0; bottom: -29px; }

.yield-balance-row { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.yield-balance-row article { min-height: 130px; padding: 26px 30px; display: grid; gap: 7px; }
.yield-balance-row article + article { border-left: 1px solid var(--line); }
.yield-balance-row strong { font: 400 clamp(30px, 4vw, 48px)/1 Georgia, serif; letter-spacing: -.025em; }
.yield-balance-row small { color: var(--positive); }
.yield-chart-grid { margin-top: 38px; display: grid; grid-template-columns: 1fr; gap: 72px; }
.yield-chart { min-width: 0; padding-top: 18px; border-top: 2px solid var(--navy); }
.yield-chart:last-child { border-color: var(--gold); }
.mini-chart-head { display: flex; align-items: center; justify-content: space-between; }
.mini-chart-head > div { display: flex; align-items: baseline; gap: 10px; }
.mini-chart-head span { color: var(--gold); font: italic 11px Georgia, serif; }
.mini-chart-head h3 { margin: 0; font: 400 clamp(24px, 2.6vw, 34px) Georgia, "Songti SC", serif; }
.mini-chart-head small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; letter-spacing: .04em; }

.risk-ledger { border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(4, 1fr); }
.risk-ledger article { min-height: 130px; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: space-between; gap: 7px; }
.risk-ledger article:last-child { border-right: 0; }
.risk-ledger strong { font-size: clamp(23px, 2.4vw, 32px); font-weight: 540; letter-spacing: -.035em; }
.risk-ledger small { color: var(--muted); font-size: 10px; }
.position-detail-grid { margin-top: 48px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.strategy-brief, .allocation-panel { min-height: 330px; padding: clamp(28px, 4vw, 48px); background: var(--paper-raised); }
.strategy-brief-head, .allocation-panel > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.strategy-brief-head > span, .allocation-panel > div:first-child span { color: var(--muted); font-size: 11px; }
.strategy-brief-head strong { color: var(--positive); font-size: 12px; }
.release-progress { margin-top: 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.release-progress > div { min-height: 76px; padding: 15px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: space-between; gap: 8px; }
.release-progress span { color: var(--muted); font-size: 9px; }
.release-progress strong { font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; }
.strategy-diagram { min-height: 160px; display: grid; grid-template-columns: 1fr minmax(110px, .45fr) 1fr; align-items: center; }
.strategy-leg { display: grid; gap: 8px; }
.strategy-leg span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.strategy-leg strong { font: 400 clamp(21px, 2.2vw, 30px)/1 Georgia, serif; }
.strategy-leg--short { text-align: right; }
.strategy-axis { display: flex; align-items: center; color: var(--positive); font-size: 9px; white-space: nowrap; }
.strategy-axis i { width: 100%; height: 1px; background: var(--gold); }
.strategy-axis span { padding: 0 10px; }
.strategy-brief > p { max-width: 660px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.allocation-panel > div:first-child strong { font: 400 22px Georgia, serif; }
.allocation-visual { margin-top: 30px; display: grid; grid-template-columns: 176px 1fr; align-items: center; gap: 24px; }
.allocation-visual canvas { width: 176px; height: 176px; max-width: 100%; aspect-ratio: 1; display: block; }
.allocation-legend { display: grid; gap: 12px; }
.allocation-legend-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; font-size: 10px; }
.allocation-legend-item i { width: 7px; height: 7px; border-radius: 50%; }
.allocation-legend-item span { color: var(--muted); }
.allocation-legend-item strong { font-weight: 620; }

.section-heading--table { align-items: center; }
.data-count { color: var(--muted); font-size: 11px; }
.position-table-wrap { border-top: 1px solid var(--line-strong); overflow-x: auto; }
.position-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
.position-table th { height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 520; text-align: right; letter-spacing: .03em; }
.position-table th:first-child, .position-table th:nth-child(2) { text-align: left; }
.position-table td { height: 64px; padding: 0 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12px; }
.position-table td:first-child, .position-table td:nth-child(2) { text-align: left; }
.position-table tr { transition: background .18s ease; }
.position-table tbody tr:hover { background: rgba(251, 250, 247, .72); }
.position-name { display: grid; gap: 2px; }
.position-name strong { font-size: 12px; }
.position-name small { color: var(--muted); font-size: 9px; }
.side-label { min-width: 52px; padding: 4px 8px; border-radius: 999px; display: inline-flex; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.side-label.long { background: rgba(22, 116, 91, .09); color: var(--positive); }
.side-label.short { background: rgba(178, 77, 68, .08); color: var(--negative); }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.table-empty { min-height: 120px; border-bottom: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.milestone-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.milestone-item { min-height: 88px; padding: 20px 8px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 20px minmax(200px, 1fr) minmax(160px, .5fr); align-items: center; gap: 18px; }
.milestone-item time { color: var(--muted); font-size: 11px; }
.milestone-dot { width: 8px; height: 8px; border: 1px solid var(--gold); border-radius: 50%; position: relative; }
.milestone-item:not(:last-child) .milestone-dot::after { content: ""; width: 1px; height: 80px; position: absolute; top: 8px; left: 3px; background: var(--line); }
.milestone-copy { display: grid; gap: 4px; }
.milestone-copy strong { font: 400 17px Georgia, "Songti SC", serif; }
.milestone-copy small, .milestone-value { color: var(--muted); font-size: 10px; }
.milestone-value { text-align: right; }

.client-footer { margin-top: 112px; padding: 34px 0 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; color: var(--muted); font-size: 10px; }
.brand--footer { color: var(--ink); font-size: 11px; font-weight: 700; }
.brand--footer .brand-seal { width: 26px; height: 26px; font-size: 13px; }
.client-footer p { max-width: 600px; margin: 0; }
.client-toast { max-width: calc(100vw - 32px); padding: 12px 16px; position: fixed; left: 50%; bottom: 24px; z-index: 50; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease); }
.client-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1360px) {
  .dashboard-content { margin: 0 28px; }
  .account-bar { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-status { display: none; }
  .account-bar { align-items: stretch; flex-direction: column; gap: 12px; }
  .range-explorer { padding-left: 28px; padding-right: 28px; grid-template-columns: 1fr; gap: 14px; }
  .account-identity { flex-wrap: wrap; }
  .period-switch { align-self: flex-start; }
  .account-hero { min-height: 340px; grid-template-columns: 1fr; gap: 34px; }
  .hero-return { min-height: auto; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
  .capital-strip { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .capital-strip > p { grid-column: 1 / -1; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .metric-ledger { grid-template-columns: 1fr 1fr; }
  .metric-ledger article:nth-child(3n) { border-right: 1px solid var(--line); }
  .metric-ledger article:nth-child(2n) { border-right: 0; }
  .yield-chart-grid { gap: 56px; }
  .risk-ledger { grid-template-columns: 1fr 1fr; }
  .risk-ledger article:nth-child(2) { border-right: 0; }
  .position-detail-grid { grid-template-columns: 1fr; }
  .allocation-panel { min-height: auto; }
}

@media (max-width: 640px) {
  body { background-size: 48px 48px; }
  .site-header { height: 62px; padding: 0 16px; }
  .brand-copy small, .profile-control strong, .profile-control i, #print-button { display: none; }
  .theme-switch button { min-width: 34px; padding: 0 6px; font-size: 9px; }
  .header-actions { gap: 0; }
  .account-bar { padding: 14px 16px; }
  .account-identity { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .account-identity > span:first-child { grid-column: 1 / -1; }
  .account-select-wrap { min-width: 0; }
  .account-select-wrap select { width: 100%; min-width: 0; max-width: none; }
  .strategy-badge { white-space: nowrap; }
  .period-switch { width: 100%; overflow-x: auto; }
  .period-switch button { min-width: 20%; padding: 0 6px; }
  .range-explorer { min-height: 112px; padding: 15px 16px 17px; gap: 12px; }
  .range-copy { grid-template-columns: 1fr auto; }
  .range-copy strong { font-size: 12px; }
  .range-controls { grid-template-columns: 1fr auto; gap: 10px; }
  .dashboard-content { margin: 0; padding: 0 0 46px; }
  .account-hero { min-height: 350px; padding: 34px 22px 32px; }
  .account-hero h1 { margin-bottom: 30px; }
  .hero-figure strong { font-size: clamp(34px, 11.4vw, 48px); }
  .hero-return { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .hero-return > span { grid-column: 1 / -1; }
  .hero-return strong { margin-bottom: 0; font-size: 36px; }
  .return-caption { justify-content: flex-end; padding-bottom: 4px; }
  .hero-watermark { right: -25px; }
  .capital-strip { padding: 22px 20px; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .timeline-line { display: none; }
  .timeline-item:last-of-type { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
  .metrics-section, .chart-section, .yield-assets, .position-overview, .table-section, .milestones-section { padding: 68px 20px 0; }
  .section-heading { margin-bottom: 24px; align-items: flex-start; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 30px; }
  .metric-ledger { grid-template-columns: 1fr 1fr; }
  .metric-ledger article { min-height: 122px; padding: 20px 14px; }
  .metric-ledger article strong { font-size: 18px; }
  .metric-ledger .metric-primary strong { font-size: 23px; }
  .section-heading--chart { display: grid; gap: 18px; }
  .chart-legend { flex-wrap: wrap; }
  .chart-stage, .chart-stage--large { height: 310px; margin: 0 -8px; }
  .chart-section > .chart-export { right: 20px; }
  .yield-balance-row { grid-template-columns: 1fr; }
  .yield-balance-row article { padding: 22px 18px; }
  .yield-balance-row article + article { border-top: 1px solid var(--line); border-left: 0; }
  .yield-chart-grid { grid-template-columns: 1fr; gap: 50px; }
  .chart-stage--mini, .chart-stage--yield { height: 260px; }
  .risk-ledger article { min-height: 118px; padding: 19px 14px; }
  .risk-ledger strong { font-size: 22px; }
  .position-detail-grid { margin-left: -20px; margin-right: -20px; border-right: 0; border-left: 0; }
  .strategy-brief, .allocation-panel { min-height: auto; padding: 28px 20px; }
  .strategy-diagram { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .release-progress { grid-template-columns: 1fr 1fr; }
  .strategy-leg--short { text-align: left; }
  .strategy-axis { order: 2; }
  .strategy-leg--short { order: 3; }
  .allocation-visual { grid-template-columns: 130px 1fr; gap: 16px; }
  .allocation-visual canvas { width: 130px; height: 130px; }
  .table-section { padding-left: 0; padding-right: 0; }
  .table-section .section-heading { padding: 0 20px; }
  .position-table th, .position-table td { padding: 0 12px; }
  .position-table th:first-child, .position-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--paper); }
  .milestone-item { grid-template-columns: 86px 16px 1fr; gap: 10px; }
  .milestone-value { grid-column: 3; text-align: left; }
  .client-footer { margin: 84px 20px 0; grid-template-columns: 1fr auto; gap: 18px; }
  .client-footer p { grid-column: 1 / -1; grid-row: 2; }
}

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

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff; }
  .site-header, .account-bar, .range-controls, .chart-export, .client-menu, .client-toast, .theme-switch { display: none !important; }
  .range-explorer { min-height: 0; padding: 8px 0; border: 0; background: transparent; display: block; }
  .dashboard-content { max-width: none; margin: 0; padding: 0; }
  .account-hero { min-height: 220px; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .capital-strip { break-inside: avoid; }
  .metrics-section, .chart-section, .yield-assets, .position-overview, .table-section, .milestones-section { padding-top: 34px; break-inside: avoid; }
  .chart-stage, .chart-stage--large { height: 270px; }
  .yield-chart-grid { gap: 20px; }
  .chart-stage--mini, .chart-stage--yield { height: 230px; }
  .client-footer { margin-top: 40px; }
}
