  :root {
    --bg: #44230B;
    --surface: #522D12;
    --ink: #F1E2C4;
    --gold: #E8BD6A;
    --muted: #C39B54;
    --line: #6B4521;
    --brass: #E8BD6A;
    --up: #9FCB86;
    --down: #F08A6C;
    --bench: #AD8648;
    --serif: "Montserrat", "Arial Black", Arial, sans-serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.5;
  }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
  .wrap.layout { max-width: 1340px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .side-col { position: static; }
  .side-col section { border-bottom: 0; }
  .side-col .bulls-list { columns: 1; }
  @media (max-width: 1000px) {
    .wrap.layout { grid-template-columns: minmax(0, 1fr); max-width: 1040px; gap: 0; }
    .side-col { position: static; }
  }

  .demo-bar {
    background: var(--gold); color: var(--bg); font-weight: 600; font-size: 14px; text-align: center; padding: 6px 12px;
  }

  header { border-bottom: 1px solid var(--line); }
  .head-row {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap; padding: 20px 0;
  }
  .brand { font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: 0.04em; color: var(--gold); }
  .brand { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; }
  .brand-name { flex: 1 1 0; font-size: 30px; line-height: 1; letter-spacing: 0.1em; padding-left: 0.1em; text-transform: uppercase; }
  .brand img { display: block; width: 120px; max-width: 100%; height: auto; }
  .viewer { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
  select {
    font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px;
  }
  select:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

  section { padding: 40px 0; border-bottom: 1px solid var(--line); }
  h2 { font-family: var(--serif); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gold); margin: 0 0 6px; }
  .sub { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

  .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 32px; margin-bottom: 32px; }
  .fig .k { font-size: 14px; color: var(--muted); }
  .fig .v { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--gold); }
  .fig .v.lead { font-size: 42px; }
  .fig .vs { font-size: 14px; color: var(--muted); margin-top: 2px; }
  .up, .fig .v.up { color: var(--up); } .down, .fig .v.down { color: var(--down); }

  .chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
  .chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .chart-head h3 { font-size: 16px; font-weight: 600; margin: 0; }
  .legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
  .legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--c); }
  .canvas-holder { position: relative; height: 300px; }
  .view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .view-toggle button { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 0; padding: 6px 12px; cursor: pointer; }
  .view-toggle button + button { border-left: 1px solid var(--line); }
  .view-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--bg); font-weight: 600; }
  #fundLegend { margin-bottom: 10px; }
  [hidden] { display: none !important; }

  /* ---- Phones ---- */
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .head-row { padding: 14px 0; gap: 10px; }
    section { padding: 28px 0; }
    h2 { font-size: 21px; }
    .sub { font-size: 15px; margin-bottom: 18px; }
    .row-h { font-size: 12px; margin-bottom: 10px; }
    .figures { grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-bottom: 22px; }
    .fig:has(.lead) { grid-column: 1 / -1; }
    .fig .k { font-size: 13px; }
    .fig .v { font-size: 22px; }
    .fig .v.lead { font-size: 34px; }
    .fig .vs { font-size: 12px; }
    .chart-box { padding: 14px; }
    .chart-head { margin-bottom: 8px; }
    .chart-head h3 { font-size: 15px; }
    .view-toggle button { padding: 5px 10px; font-size: 13px; }
    .canvas-holder { height: 230px; }
    .two-col { gap: 14px; }
    .cmp-row { grid-template-columns: 58px 1fr auto; gap: 8px; }
    .cmp-v { min-width: 0; font-size: 14px; }
    .calc { font-size: 14px; }
    .stake-ring svg { width: 72px; height: 72px; }
    .gate { padding: 20px; }
    .auth { font-size: 13px; }
    .btn { padding: 8px 14px; font-size: 14px; }
    footer { padding: 20px 0 36px; }
  }
  .bulls-list { list-style: none; margin: 0; padding: 0; counter-reset: bull; columns: 2; column-gap: 40px; }
  @media (max-width: 760px) { .bulls-list { columns: 1; } }
  .bulls-list li { break-inside: avoid; }
  .bulls-list li { counter-increment: bull; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px;
    align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }

  .bulls-list li::before { content: counter(bull); font-family: var(--serif); font-weight: 800; color: var(--gold); }
  .bulls-list .b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bulls-list .b-share { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
  .bulls-list .b-value { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
  .bulls-list li.me .b-name { color: var(--gold); font-weight: 600; }
  .poll-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
  .auth { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); }
  .btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--bg); background: var(--gold); border: 1px solid var(--gold); border-radius: 6px; padding: 9px 16px; cursor: pointer; }
  .btn:hover { filter: brightness(1.06); }
  .btn.ghost { background: transparent; color: var(--gold); }
  .gate { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; text-align: center; }
  .gate p { margin: 0 0 16px; color: var(--ink); }
  .gate p:last-child { margin-bottom: 0; }
  .admin-pick { margin-bottom: 20px; justify-content: flex-start; }
  .row-h { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .card-h { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
  .cmp-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; }
  .cmp-k { font-size: 14px; color: var(--muted); }
  .cmp-bar { height: 22px; background: var(--bg); border-radius: 4px; overflow: hidden; }
  .cmp-bar i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
  .cmp-bar i.muted { background: var(--bench); }
  .cmp-v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 80px; text-align: right; }
  .per-dollar { margin: 18px 0 0; color: var(--muted); }
  .calc { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-size: 15px; }
  .calc dt { color: var(--muted); } .calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
  .calc .calc-total { border-top: 1px solid var(--line); padding-top: 8px; color: var(--gold); font-weight: 600; }


  .two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  @media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 15px; }
  th { text-align: left; font-weight: 500; color: var(--muted); font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  td { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

  .stake-ring { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
  .stake-ring svg { flex: none; }
  .stake-ring p { margin: 0; color: var(--muted); font-size: 15px; }
  .stake-ring strong { color: var(--gold); font-family: var(--serif); font-size: 24px; font-weight: 800; display: block; }

  .alloc li { list-style: none; margin-bottom: 14px; }
  .alloc ul { padding: 0; margin: 0; }
  .alloc .row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
  .alloc .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
  .alloc .bar i { display: block; height: 100%; background: var(--gold); }

  footer { padding: 28px 0 48px; color: var(--muted); font-size: 13px; max-width: 70ch; }

  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
  .brand .brand-name:first-child { text-align: right; }
  .brand .brand-name:last-child { text-align: left; }
  .brand { width: 100%; max-width: 520px; }
  @media (max-width: 420px) { .brand { gap: 12px; } .brand-name { font-size: 22px; } .brand img { width: 92px; } }

  /* ---- Site menu ---- */
  header { position: relative; }
  .menu { position: absolute; top: 18px; right: 20px; z-index: 20; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600;
    color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
  .menu-btn:hover { border-color: var(--gold); }
  .menu-icon { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
  .menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
  .menu-panel a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .menu-panel a:hover, .menu-panel a:focus-visible { background: var(--bg); color: var(--gold); outline: none; }
  .menu-panel a[aria-current="page"] { color: var(--gold); font-weight: 700; }
  @media (max-width: 600px) {
    .menu { top: 12px; right: 12px; }
    .menu-btn .menu-text { display: none; }
    .menu-btn { padding: 10px; }
    .head-row { padding-top: 52px; }
  }
  /* ---- Simple content pages ---- */
  .page { max-width: 820px; }
  .page section { border-bottom: 0; }
  .placeholder { text-align: center; padding: 40px 24px; }
  .placeholder .big { font-size: 40px; margin-bottom: 8px; }
  .placeholder p { margin: 0 auto 10px; max-width: 46ch; color: var(--muted); }
  a { color: var(--gold); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* ---- Holdings page ---- */
  .page.wide { max-width: 1040px; }
  .alloc-list .alloc-row { display: grid; grid-template-columns: minmax(70px, 160px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; margin-bottom: 10px; }
  .alloc-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .alloc-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
  .h-table-box { margin-top: 24px; }
  #hAllocBox { margin-top: 0; }
  #hTable th, #hTable td { padding-right: 16px; white-space: nowrap; }
  #hTable .total-row td { font-weight: 700; color: var(--gold); border-bottom: 0; }
  @media (max-width: 600px) { .alloc-list .alloc-row { grid-template-columns: 64px minmax(0, 1fr) 50px; gap: 8px; } }
  /* ---- Wins & Losses ---- */
  .moves-list { list-style: none; margin: 0 0 18px; padding: 0; }
  .moves-list:last-child { margin-bottom: 0; }
  .moves-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .moves-list li.empty { display: block; color: var(--muted); font-size: 14px; }
  .moves-list .b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .moves-list .b-share { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
  .moves-list .b-value { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
  .moves-h { margin-bottom: 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
  .moves-h.up { color: var(--up); } .moves-h.down { color: var(--down); }
  .side-col section + section { padding-top: 0; }
  .record { text-align: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
  .record-score { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1.1; }
  .record-dash { color: var(--muted); margin: 0 8px; }
  .record-k { font-size: 13px; color: var(--muted); margin-top: 4px; }
  .record-split { font-size: 13px; color: var(--ink); margin-top: 6px; }
  #hTable tr.up td { color: var(--up); }
  #hTable tr.down td { color: var(--down); }
  #hToneNote { margin: -6px 0 10px; }
  .sold-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
  .record-avg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .record-avg > div { background: var(--bg); border-radius: 8px; padding: 8px 6px; }
  .record-avg-k { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
  .record-avg span:not(.record-avg-k) { font-family: var(--serif); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
  .h-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
  #hSearch { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
    border-radius: 6px; padding: 7px 10px; min-width: 0; flex: 1 1 180px; max-width: 260px; }
  #hSearch:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
  .h-count { font-size: 13px; color: var(--muted); margin-left: auto; }
  .th-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; white-space: nowrap; }
  .th-sort:hover { color: var(--gold); }
  .th-sort:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  #hTable th.num .th-sort { width: 100%; text-align: right; }
  .h-empty { text-align: center; color: var(--muted); padding: 18px 0; }
  @media (max-width: 600px) { #hSearch { max-width: none; flex-basis: 100%; } .h-count { margin-left: 0; } }
