@font-face {
  font-family: "Oswald";
  src: url("/oswald.ttf?v=5b38c246e255") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #151a1e;
  --slate: #3f4a50;
  --muted: #59666b;
  --rule: #cbd1cf;
  --paper: #f4f5f2;
  --surface: #fff;
  --soft: #e9edea;
  --amber: #edb321;
  --amber-ink: #4d3300;
  --negative: #a03225;
  --positive: #176344;
  --focus: #835300;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Oswald", ui-sans-serif, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
::selection { background: var(--amber); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); background: var(--amber); font-weight: 700; }
.skip-link:focus { transform: none; }
.field-label, .section-meta, .paper-mark, .authority-mark, .updated-at, th, .table-note, .account-footnote, .stat-note, .status-label, .position-symbol, .position-meta, .order-tag { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono, .account-value, .stat-value, .data-value, .pnl-value, .scenario-amount, .board-table td, .rail-label { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.empty-state { margin: 0; color: var(--muted); font-size: 14px; }
.entry-brand, .brand-name, .entry-content h1, .section-head h1, .section-head h2, .scenario-intro h2, .position-head h3, .exit-head h4, .activity-main h3, .mini-section h3, .decisions-block h3, .research-grid h3 { font-family: var(--display); font-weight: 600; letter-spacing: .005em; }

/* Session and passkey entry */
.entry-shell { min-height: 100svh; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 54px); background: var(--paper); }
.entry-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; font-weight: 700; letter-spacing: .01em; font-size: 21px; }
.entry-brand span { color: var(--slate); font: 11px var(--mono); letter-spacing: .08em; }
.entry-content { width: min(100%, 580px); margin: auto 0; padding: 48px 0; }
.entry-content h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.08; }
.entry-content > p { margin: 16px 0 26px; color: var(--slate); }
.entry-foot { margin: auto 0 0; padding-top: 15px; border-top: 1px solid var(--rule); color: var(--muted); font: 12px var(--mono); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 3px; font-weight: 700; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button-dark { min-width: 220px; background: var(--ink); color: #fff; }
.button-dark:hover { background: #344147; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--soft); }
.form-message { min-height: 24px; margin: 13px 0 0 !important; font-size: 13px; }
.form-message.error { color: var(--negative); }
.enroll-details { max-width: 420px; margin-top: 46px; padding-top: 16px; border-top: 1px solid var(--rule); }
.enroll-details summary { width: fit-content; font-weight: 650; cursor: pointer; }
.enroll-content { padding-top: 7px; }
.enroll-content p { color: var(--muted); font-size: 14px; }
.enroll-content label { display: block; margin: 18px 0 8px; font-weight: 650; }
.enroll-content input { display: block; width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid #87928f; border-radius: 3px; background: #fff; color: var(--ink); }
.enroll-content .button { margin-top: 15px; }

/* Account frame */
.site-head { background: var(--ink); color: #f9faf7; }
.head-inner, .nav-inner, .page-main { width: min(100%, 1460px); margin-inline: auto; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 12px clamp(20px, 3vw, 44px); }
.brand-block, .head-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.paper-mark { padding: 5px 8px; border: 1px solid #998044; color: #ffe2a0; font-size: 10px; white-space: nowrap; }
.updated-at { color: #d0d8d6; font-size: 11px; text-align: right; }
.button-head { min-height: 36px; padding: 7px 11px; border-color: #82908d; background: transparent; color: #fff; font-size: 12px; white-space: nowrap; }
.button-head:hover { background: #313e42; }
.section-nav { border-bottom: 1px solid var(--rule); background: var(--surface); }
.nav-inner { display: flex; gap: 28px; padding-inline: clamp(20px, 3vw, 44px); }
.section-nav a { display: inline-flex; align-items: center; min-height: 46px; border-bottom: 3px solid transparent; color: var(--slate); font-weight: 650; text-decoration: none; }
.section-nav a:hover, .section-nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.page-main { padding: 36px clamp(20px, 3vw, 44px) 26px; }
.global-status { margin-bottom: 22px; padding: 13px 16px; border: 1px solid #b9974f; background: #fff2d1; color: #573b00; font-weight: 600; }
.global-status.error { border-color: #bd786d; background: #fff0ed; color: #822b1e; }
.section { scroll-margin-top: 24px; margin-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-head h1, .section-head h2, .scenario-intro h2 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }
.section-head h1 { font-size: clamp(32px, 3.7vw, 48px); }
.section-head h2, .scenario-intro h2 { font-size: clamp(24px, 2.7vw, 31px); }
.section-head p, .scenario-intro p { margin: 8px 0 0; color: var(--slate); max-width: 72ch; }
.page-title-row { margin-bottom: 22px; }
.price-context { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; padding: 12px 15px; border: 1px solid #b99d61; background: #fff4d9; color: #4b390d; font-size: 13px; }
.price-context strong { font-weight: 800; }
.price-context span { flex: 0 0 auto; max-width: 310px; font: 12px var(--mono); text-align: right; }
.run-indicator { display: inline-flex; align-items: center; gap: 9px; max-width: 260px; padding: 7px 0; color: var(--slate); font-size: 12px; }
.status-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #818e8a; }
.status-dot.ok { background: var(--positive); }
.status-dot.warn { background: #b47900; }
.status-dot.error { background: var(--negative); }
.account-board { display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--ink); }
.account-primary, .account-stat { display: flex; flex-direction: column; min-width: 0; min-height: 155px; padding: 19px 21px; }
.account-primary { background: #e9edeb; }
.account-stat { border-left: 1px solid var(--rule); }
.field-label { color: var(--slate); font-size: 12px; font-weight: 650; }
.account-value { margin: auto 0 5px; font-size: clamp(28px, 3.25vw, 43px); font-weight: 730; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.stat-value { margin: auto 0 10px; font-size: clamp(19px, 2vw, 27px); font-weight: 700; line-height: 1.12; overflow-wrap: anywhere; }
.account-footnote, .stat-note { color: var(--muted); font-size: 11px; }
.positions-heading { margin-top: 42px; }
.positions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.position-sheet { min-width: 0; border: 1px solid var(--ink); background: var(--surface); }
.position-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 17px; border-bottom: 1px solid var(--rule); }
.position-head h3 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.position-symbol { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.position-meta { color: var(--slate); font-size: 11px; text-align: right; }
.position-body { padding: 18px 22px; }
.position-secondary { padding: 17px 22px 18px; border-top: 1px solid var(--rule); }
.position-profit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.position-profit .field-label { font-family: var(--sans); font-size: 13px; }
.pnl-value { font-size: clamp(23px, 2.5vw, 33px); font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.position-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.position-data div { min-width: 0; }
.position-data dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.position-data dd { margin: 0; font: 650 15px var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rail-wrap { margin: 23px 0 5px; }
.price-rail { display: block; width: 100%; height: auto; }
.rail-track { stroke: #89938f; stroke-width: 3; }
.rail-stop { stroke: var(--amber-ink); fill: var(--amber); }
.rail-entry { stroke: #6c7775; fill: #fff; }
.rail-current { fill: var(--ink); }
.rail-label { fill: var(--muted); font-size: 10px; }
.rail-caption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 11px var(--mono); }
.rail-key { display: inline-flex; align-items: center; gap: 5px; }
.rail-key::before { content: ""; display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border: 1px solid var(--ink); border-radius: 50%; }
.rail-key-stop::before { border-radius: 0; border-color: var(--amber-ink); background: var(--amber); }
.rail-key-current::before { background: var(--ink); }
.exit-block { padding: 17px 22px 18px; border-top: 1px solid var(--ink); background: #f2f3f0; }
.exit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.exit-head h4 { margin: 0; font-size: 16px; }
.exit-head span { color: var(--slate); font-size: 12px; }
.stop-list { display: grid; gap: 0; }
.stop-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.stop-row:first-child { border-top: 0; }
.stop-row span { display: block; color: var(--muted); font-size: 11px; }
.stop-row strong { display: block; margin-top: 3px; font: 700 15px var(--mono); overflow-wrap: anywhere; }
.coverage-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--slate); font-size: 12px; }
.coverage-line strong { color: var(--ink); font-family: var(--mono); }
.coverage-detail { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.explain-line { margin-top: 12px; color: var(--slate); font-size: 13px; }
.scenario-section { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr); gap: 18px 32px; margin-top: 42px; padding: 25px 28px; border: 1px solid var(--ink); background: #e9edeb; }
.scenario-intro p { max-width: 41ch; font-size: 14px; }
.scenario-controls { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 13px; align-content: start; }
.scenario-controls label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.scenario-controls select, .scenario-controls input { width: 100%; min-height: 45px; padding: 8px 11px; border: 1px solid #8d9893; border-radius: 2px; background: #fff; color: var(--ink); }
.scenario-controls input::placeholder { color: #63706c; }
.presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.preset-button { min-height: 34px; padding: 6px 10px; border: 1px solid #8d9893; border-radius: 2px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; }
.preset-button:hover, .preset-button:focus-visible { background: #fff; border-color: var(--ink); }
.scenario-result { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid #aab5af; font-size: 14px; }
.scenario-amount { display: inline-block; margin: 4px 0; font-size: clamp(23px, 2.4vw, 32px); font-weight: 750; }
.scenario-caveat { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 12px; }
.section-meta { color: var(--slate); font-size: 12px; }
.board-table-scroll { max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); }
.scroll-hint { display: none; }
.board-table { width: 100%; min-width: 660px; border-collapse: collapse; }
.board-table th, .board-table td { padding: 13px 15px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.board-table th { background: #e9edeb; color: var(--slate); font-size: 11px; font-weight: 700; }
.board-table td { font-size: 13px; }
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table .table-empty { padding: 23px 15px; color: var(--muted); text-align: center; white-space: normal; }
.side-sell { color: var(--negative); font-weight: 800; }
.side-buy { color: var(--positive); font-weight: 800; }
.order-tag { display: inline-block; padding: 3px 6px; background: var(--soft); font-size: 11px; }
.table-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.activity-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 22px; }
.activity-main, .activity-side, .decisions-block { min-width: 0; }
.activity-main h3, .mini-section h3, .decisions-block h3, .research-grid h3 { margin: 0 0 12px; font-size: 17px; }
.activity-side { display: grid; gap: 22px; }
.mini-section { min-width: 0; padding: 18px 19px; border: 1px solid var(--rule); background: var(--surface); }
.mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini-head span { color: var(--muted); font: 11px var(--mono); text-align: right; }
.chart-wrap { display: flex; align-items: center; justify-content: center; min-height: 160px; }
.chart-wrap svg { width: 100%; height: auto; }
.chart-grid { stroke: #d6ddda; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.chart-area { fill: #d9e1dd; }
.chart-point { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.chart-label { fill: var(--muted); font: 11px var(--mono); }
.detail-list { margin: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.decisions-block { margin-top: 28px; }
.decision-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.decision-item { min-width: 0; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); }
.decision-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.decision-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.decision-head span:last-child { color: var(--muted); font: 11px var(--mono); }
.decision-item p { margin: 6px 0 0; color: var(--slate); font-size: 13px; overflow-wrap: anywhere; }
.research-section { padding-top: 26px; border-top: 2px solid var(--ink); }
.authority-mark { padding: 5px 8px; background: var(--amber); color: var(--amber-ink); font-size: 11px; font-weight: 800; white-space: nowrap; }
.research-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 20px; }
.research-grid > div { min-width: 0; padding: 19px; border: 1px solid var(--rule); background: var(--surface); }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.health-row:last-child { border-bottom: 0; }
.health-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.health-state { color: var(--slate); font: 11px var(--mono); text-align: right; text-transform: uppercase; }
.advice-summary { margin-bottom: 15px; color: var(--slate); font-size: 14px; }
.advice-summary p { margin: 0; }
.opinion-item { padding: 12px 0; border-top: 1px solid var(--rule); }
.opinion-item strong { display: block; }
.opinion-item p { margin: 5px 0 0; color: var(--slate); font-size: 13px; }
.facts-details { margin-top: 13px; padding: 14px 18px; border: 1px solid var(--rule); background: var(--surface); }
.facts-details summary { cursor: pointer; font-weight: 700; }
.facts-details summary span { margin-left: 12px; color: var(--muted); font: 11px var(--mono); }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 15px; }
.fact-item { min-width: 0; padding: 11px 0; border-top: 1px solid var(--rule); }
.fact-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 11px var(--mono); text-transform: uppercase; }
.fact-claim { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.fact-link { display: inline-block; margin-top: 7px; color: #075e79; font-size: 12px; font-weight: 700; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 8px; border-top: 1px solid var(--rule); color: var(--muted); font: 11px var(--mono); }
@media (max-width: 1100px) {
  .account-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-primary { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); min-height: 140px; }
  .account-stat:first-of-type { border-left: 0; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .head-inner { flex-wrap: wrap; gap: 9px; padding-block: 14px; }
  .head-actions { width: 100%; justify-content: space-between; }
  .updated-at { margin-right: auto; text-align: left; }
  .nav-inner { gap: 22px; }
  .page-main { padding-top: 26px; }
  .section-head { align-items: flex-start; }
  .page-title-row { flex-direction: column; gap: 6px; }
  .price-context { align-items: flex-start; flex-direction: column; }
  .price-context span { max-width: none; text-align: left; }
  .positions-grid, .research-grid, .decision-list, .facts-list { grid-template-columns: 1fr; }
  .decision-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .scenario-section { grid-template-columns: 1fr; }
  .scenario-result, .scenario-caveat { grid-column: 1; }
  .scroll-hint { display: block; margin: 0 0 7px; color: var(--slate); font-size: 12px; font-weight: 700; }
}
@media (max-width: 520px) {
  .head-inner { min-height: 0; padding-block: 9px; }
  .brand-name { font-size: 18px; }
  .paper-mark { font-size: 9px; }
  .head-actions { gap: 7px; }
  .updated-at { font-size: 10px; }
  .button-head { min-height: 34px; padding: 6px 8px; font-size: 11px; }
  .nav-inner { justify-content: space-between; gap: 7px; }
  .section-nav a { font-size: 13px; }
  .section-nav a { min-height: 39px; }
  .page-main { padding-top: 18px; }
  .page-title-row { margin-bottom: 10px; }
  .page-title-row p { margin-top: 4px; font-size: 13px; }
  .price-context { gap: 5px; margin-bottom: 10px; padding: 9px 11px; font-size: 12px; line-height: 1.35; }
  .price-context span { font-size: 11px; }
  .account-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-primary { grid-column: 1 / -1; }
  .account-primary { min-height: 100px; padding: 11px 13px; }
  .account-stat { min-height: 101px; padding: 10px 9px; border-top: 1px solid var(--rule); }
  .account-stat:nth-child(2) { border-left: 0; }
  .account-stat:nth-child(4) { grid-column: auto; border-left: 1px solid var(--rule); }
  .account-value { font-size: 29px; }
  .stat-value { font-size: 16px; margin-bottom: 5px; }
  .stat-note, .account-footnote { font-size: 10px; }
  .positions-heading { margin-top: 21px; margin-bottom: 10px; }
  .positions-heading h2 { font-size: 23px; }
  .positions-heading p { margin-top: 4px; font-size: 12px; }
  .position-head { padding: 12px 14px; }
  .position-head h3 { font-size: 22px; }
  .position-body { padding: 12px 14px; }
  .position-secondary { padding: 13px 14px; }
  .exit-block { padding: 13px 14px; }
  .position-profit { margin-bottom: 10px; }
  .pnl-value { font-size: 24px; }
  .position-data { gap: 8px; }
  .position-data dd { font-size: 13px; }
  .stop-row strong { font-size: 13px; }
  .scenario-section { padding: 18px; }
  .scenario-controls { grid-template-columns: 1fr; }
  .presets { grid-column: 1; }
  .activity-side { grid-template-columns: 1fr; }
  .research-section .section-head { flex-direction: column; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
