.live-account-page {
  --live-ink: #0a2034;
  --live-teal: #13596c;
  --live-muted: #4b6069;
  --live-line: #c8d0ce;
  background: var(--site-paper, #f5f2eb);
  color: var(--live-ink);
  font-variant-numeric: tabular-nums;
}
.live-account-page [hidden] { display: none !important; }
.live-shell { width: min(90%, 1200px); margin: 0 auto; padding: clamp(22px, 3vw, 42px) 0 clamp(48px, 7vw, 90px); }
.record-link { color: var(--live-teal); font-size: .88rem; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.record-link span { display: inline-block; text-decoration: none; }
.record-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trade-jump, .trade-hint { display: none; }
.live-heading { border-bottom: 1px solid var(--live-ink); }
.live-title-row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: 20px 0 27px; }
.live-title-row h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.065em; margin: 0 0 .55rem; color: var(--live-ink); }
.live-title-row p { margin: 0; color: var(--live-muted); }
.live-freshness { font-size: .82rem; color: var(--live-muted); }
.live-freshness dl { margin: 0; display: grid; grid-template-columns: max-content auto; gap: 2px 13px; }
.live-freshness dl div { display: contents; }
.live-freshness dt { font-weight: 650; color: var(--live-ink); }
.live-freshness dd { margin: 0; }
.live-freshness #source-age { margin-top: 4px; }
.live-freshness[data-stale="true"] #freshness-label { color: #834039; }
.live-workspace { padding: clamp(24px, 3vw, 36px) 0; }
.growth-topline, .growth-reading, .trade-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.growth-topline { align-items: center; }
.live-shell h2 { margin: 0; color: var(--live-ink); font-size: 1.18rem; line-height: 1.2; letter-spacing: -.026em; }
.live-ranges { display: flex; align-items: center; gap: 2px; }
.live-ranges button { appearance: none; font: inherit; cursor: pointer; }
.live-ranges button { min-width: 40px; min-height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--live-muted); font-size: .84rem; font-weight: 650; transition: border-color 140ms ease, color 140ms ease; }
.live-ranges button:hover, .live-ranges button:focus-visible { color: var(--live-ink); }
.live-ranges button[aria-pressed="true"] { color: var(--live-teal); border-bottom-color: var(--live-teal); }
.growth-overview { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; margin: 10px 0 16px; }
.growth-reading { flex-direction: column; justify-content: start; align-items: start; gap: 3px; }
.growth-reading strong { font: normal clamp(3.25rem, 5.1vw, 5.15rem)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.065em; color: var(--live-ink); }
.growth-reading time, .axis-note, .trade-heading p, .trade-note, .live-message { color: var(--live-muted); }
.growth-reading time { font-size: .91rem; }
.growth-plot { position: relative; width: 100%; height: clamp(225px, 22vw, 310px); }
.growth-plot canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.growth-plot canvas:focus-visible { outline: 2px solid var(--live-teal); outline-offset: 3px; }
.axis-note { margin: 5px 0 0; font-size: .79rem; }
.trade-heading p, .trade-note { font-size: .86rem; }
.strategy-stats { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 4vw, 60px); margin: 0; }
.strategy-stats dt { font-size: .86rem; font-weight: 600; }
.strategy-stats dd { margin: 2px 0 0; font: normal clamp(1.7rem, 2.8vw, 2.6rem)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; }
.strategy-stats .stat-detail { margin-top: 4px; font: inherit; font-size: .78rem; letter-spacing: 0; color: var(--live-muted); }
.trade-ledger, .returns-section { padding-top: clamp(21px, 2.5vw, 32px); border-top: 1px solid var(--live-ink); }
.returns-section { margin-top: clamp(26px, 3vw, 42px); }
.trade-heading { margin-bottom: 15px; }
.trade-heading h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); letter-spacing: -.045em; }
.trade-scroll, .matrix-scroll { overflow-x: auto; }
.matrix-scroll:focus-visible { outline: 2px solid var(--live-teal); outline-offset: 3px; }
.return-matrix { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; font-size: .84rem; }
.return-matrix th, .return-matrix td { padding: 10px 5px; text-align: right; border-bottom: 1px solid var(--live-line); }
.return-matrix thead th { color: var(--live-muted); font-weight: 600; }
.return-matrix tr > :first-child { position: sticky; left: 0; z-index: 1; padding-left: 0; padding-right: 12px; text-align: left; background: var(--site-paper, #f5f2eb); }
.return-matrix small { display: block; font-size: .72rem; line-height: 1.2; font-weight: 400; color: var(--live-muted); }
.return-matrix .gain { color: #145a53; }
.return-matrix .loss { color: #884537; }
.return-matrix .in-progress { text-decoration: underline dotted; text-underline-offset: .23em; }
.return-matrix .period-total { font-weight: 700; }
.trade-ledger table { width: 100%; min-width: 655px; border-collapse: collapse; font-size: .91rem; text-align: left; }
.trade-ledger th { color: var(--live-muted); font-weight: 600; font-size: .82rem; }
.trade-ledger th span { font-weight: 400; }
.trade-ledger th, .trade-ledger td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--live-line); white-space: nowrap; }
.trade-ledger th:last-child, .trade-ledger td:last-child { padding-right: 0; }
.trade-ledger tbody th { color: var(--live-ink); font-weight: 500; font-size: inherit; }
.trade-ledger .instrument { color: var(--live-ink); font-weight: 700; }
.trade-ledger tr > :nth-child(3) { padding-right: clamp(20px, 3.3vw, 46px); }
.trade-heading h2 { scroll-margin-top: 100px; }
.trade-ledger .numeric { text-align: right; }
.trade-ledger .positive { color: #145a53; }
.trade-ledger .negative { color: #884537; }
.live-message, .trade-note { padding: 18px 0; }
@media (max-width: 760px) {
  .live-shell { width: calc(100% - 36px); }
  .live-title-row { padding: 17px 0 20px; }
  .trade-jump { display: inline; }
  .growth-overview { flex-direction: column; align-items: start; margin-bottom: 18px; }
  .strategy-stats { gap: 24px; }
  .strategy-stats dt { font-size: .79rem; }
  .return-matrix th, .return-matrix td { padding: 8px 10px; }
  .growth-plot { height: clamp(195px, 48vw, 250px); }
  .trade-heading { align-items: start; gap: 4px; }
  .trade-heading h2 { width: 100%; }
  .trade-hint { display: block; color: var(--live-muted); font-size: .78rem; margin: 6px 0 0; }
}
@media (max-width: 380px) { .live-shell { width: calc(100% - 28px); } }
@media (prefers-reduced-motion: reduce) { .live-ranges button { transition: none; } }
