/* MCAT Invest (mcatinvest.org), Oct 2026 redesign: a brokerage interface in the manner of Robinhood's web
   app. Black on white (white on black at night), one 13px type scale, hairline rules instead of boxes,
   pill buttons, and an accent that follows the market: green when what you're looking at is up, orange-red
   when it's down. app.css supplies the primitives shared with Anki Markets (avatars, names, badges, toasts,
   modals, menus, skeletons); everything visible here is restyled below. */

:root[data-site="invest"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --bg-soft: #f3f5f6;
  --bg-hover: #f7f8f9;
  --line: #e3e9ed;
  --line-2: #cbd3d9;
  --text: #000000;
  --text-2: #6a7278;
  --text-3: #959da3;
  --yes: #00c805;
  --yes-ink: #00a804;
  --yes-soft: rgba(0, 200, 5, .1);
  --yes-soft-2: rgba(0, 200, 5, .18);
  --no: #ff5000;
  --no-ink: #ea4a00;
  --no-soft: rgba(255, 80, 0, .1);
  --no-soft-2: rgba(255, 80, 0, .18);
  --accent: var(--yes);
  --accent-ink: var(--yes-ink);
  --accent-soft: var(--yes-soft);
  --blue: #00a804;
  --blue-hover: #008f03;
  --blue-soft: rgba(0, 200, 5, .12);
  --ink: #000000;          /* the solid pill: black on white, white on black */
  --ink-fg: #ffffff;
  --gold: #f5a524;
  --shadow: none;
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .18);
  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 40px -12px rgba(0, 0, 0, .2), 0 4px 12px -6px rgba(0, 0, 0, .08);
  --skeleton: #eef1f3;
  --skeleton-hi: #f7f8f9;
  --r-card: 8px;
  --r-btn: 4px;
  --r-lg: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-site="invest"]:not([data-theme="light"]) {
    --bg: #000000; --panel: #000000; --bg-soft: #151718; --bg-hover: #0d0f10; --line: #262a2e; --line-2: #3b4147;
    --text: #ffffff; --text-2: #9aa3a9; --text-3: #6b7378;
    --yes: #00c805; --yes-ink: #2ad36b; --no: #ff5000; --no-ink: #ff6a2b;
    --blue: #2ad36b; --blue-hover: #4fdd84; --blue-soft: rgba(0, 200, 5, .16);
    --ink: #ffffff; --ink-fg: #000000;
    --shadow-hover: 0 8px 24px -12px rgba(0, 0, 0, .8);
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 50px -14px rgba(0, 0, 0, .9), 0 4px 12px -6px rgba(0, 0, 0, .6);
    --skeleton: #141617; --skeleton-hi: #1c1f21;
    color-scheme: dark;
  }
}
:root[data-site="invest"][data-theme="dark"] {
  --bg: #000000; --panel: #000000; --bg-soft: #151718; --bg-hover: #0d0f10; --line: #262a2e; --line-2: #3b4147;
  --text: #ffffff; --text-2: #9aa3a9; --text-3: #6b7378;
  --yes: #00c805; --yes-ink: #2ad36b; --no: #ff5000; --no-ink: #ff6a2b;
  --blue: #2ad36b; --blue-hover: #4fdd84; --blue-soft: rgba(0, 200, 5, .16);
  --ink: #ffffff; --ink-fg: #000000;
  --shadow-hover: 0 8px 24px -12px rgba(0, 0, 0, .8);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 50px -14px rgba(0, 0, 0, .9), 0 4px 12px -6px rgba(0, 0, 0, .6);
  --skeleton: #141617; --skeleton-hi: #1c1f21;
  color-scheme: dark;
}
/* the accent follows the thing on screen: [data-tone=down] anywhere above turns it orange-red */
[data-tone="down"] { --accent: var(--no); --accent-ink: var(--no-ink); --accent-soft: var(--no-soft); }
[data-tone="up"] { --accent: var(--yes); --accent-ink: var(--yes-ink); --accent-soft: var(--yes-soft); }

/* ---------- base */
body { font-size: 13px; line-height: 20px; letter-spacing: 0; font-feature-settings: "cv11", "ss01", "tnum" 0; }
.app { max-width: 1360px; padding: 28px 40px 80px; }
.up { color: var(--yes-ink); }
.down { color: var(--no-ink); }
.flat { color: var(--text-2); }
.tnum, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
html { scroll-padding-top: 80px; }
.card { border-radius: var(--r-card); box-shadow: none; }
.btn { border-radius: 999px; height: 36px; font-size: 13px; }
.btn.blue { background: var(--accent); color: #fff; box-shadow: none; }
.btn.blue:hover { background: var(--accent-ink); }
.btn.lg { height: 44px; font-size: 13px; }
.input { border-radius: var(--r-btn); height: 36px; font-size: 13px; }
.input:focus { border-color: var(--text); box-shadow: none; }
.hide-m { }
.menu { border-radius: 8px; padding: 6px; }
.menu a, .menu button { font-size: 13px; }
.toast { border-radius: 8px; font-size: 13px; }
.toast .ti.info { background: var(--text); }
.modal { border-radius: 12px; }
.modal h3 { font-size: 20px; font-weight: 600; }
.empty { padding: 48px 16px; }
.empty h3 { font-size: 15px; }
.skel { border-radius: 6px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }

/* ---------- the header: brand, search, the section nav, your tokens and account */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; height: 60px; padding: 0 40px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand-mark { width: 24px; height: 24px; fill: var(--yes); color: var(--yes); }
.brand.sm { font-size: 14px; }
.brand.sm .brand-mark { width: 20px; height: 20px; }
.gsearch { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; width: 300px; max-width: 100%; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg); color: var(--text-2); transition: border-color var(--dur); }
.gsearch:hover { border-color: var(--line-2); }
.gsearch:focus-within { border-color: var(--text); }
.gsearch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.gsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 13px; }
.gsearch input::placeholder { color: var(--text-2); }
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsearch kbd { font: 500 11px var(--font); color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.gsearch:focus-within kbd { display: none; }
.gs-pop { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 6px; animation: menuin .18s var(--ease); }
.gs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--text); transition: background var(--dur); cursor: pointer; }
.gs-row:hover, .gs-row.on { background: var(--bg-soft); }
.gs-row .t { flex: 1; min-width: 0; }
.gs-row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row .t small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row .px { text-align: right; font-variant-numeric: tabular-nums; }
.gs-row .px b { display: block; font-weight: 600; }
.gs-row .px small { display: block; font-size: 12px; font-weight: 600; }
.gs-empty { padding: 12px 10px; color: var(--text-2); }
.gs-hint { padding: 6px 10px 4px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; height: 60px; }
.top-nav a { display: inline-flex; align-items: center; height: 60px; color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; position: relative; transition: color var(--dur); }
.top-nav a:hover { color: var(--text-2); }
.top-nav a.on { font-weight: 700; }
.top-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); }
.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.tok-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--dur), background var(--dur); }
.tok-pill:hover { border-color: var(--line-2); background: var(--bg-hover); }
.tok-pill .coin { width: 14px; height: 14px; }
.tok-pill b.bump { animation: bump .5s var(--spring); }
.av-btn { width: 34px; height: 34px; font-size: 17px; }
.me-menu { position: relative; }
.me-menu .menu { min-width: 260px; }
.menu-head small { font-size: 12px; }

/* ---------- pill buttons (Robinhood's 44px pills): solid ink, accent, outlined, plain */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--ink-fg); font-weight: 600; font-size: 13px; white-space: nowrap; letter-spacing: 0; cursor: pointer; transition: background var(--dur), border-color var(--dur), color var(--dur), opacity var(--dur), transform .12s var(--ease); }
.pill:hover { opacity: .88; }
.pill:active { transform: scale(.985); }
.pill:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.pill.accent { background: var(--accent); color: #fff; }
.pill.line { background: transparent; border-color: var(--accent); color: var(--accent-ink); }
.pill.line:hover { background: var(--accent-soft); opacity: 1; }
.pill.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.pill.ghost:hover { background: var(--bg-soft); opacity: 1; }
.pill.sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.pill.xs { height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.pill.block { width: 100%; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkish { color: var(--text-2); }
.textlink { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--text-2); }
.alink { color: var(--accent-ink); font-weight: 600; }
.alink:hover { text-decoration: underline; }

/* ---------- layouts */
.rh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.rh-grid > * { min-width: 0; }
.rh-main { min-width: 0; }
.rh-rail { min-width: 0; position: sticky; top: 84px; }
.rh-rail.flow { position: static; }
.page { max-width: 880px; }
.page.wide { max-width: 1040px; }
.page.full { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.page-head .sub { margin-top: 6px; font-size: 13px; color: var(--text-2); max-width: 640px; }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- the hero numbers: a name, the big price, the change line */
.hero { padding-top: 4px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; margin-bottom: 2px; }
.hero-title { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-title .sym { color: var(--text-2); font-weight: 500; font-size: 20px; }
.hero-num { margin-top: 2px; font-size: 36px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; }
.hero-num .coin { width: 22px; height: 22px; }
.hero-chg { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; min-height: 20px; }
.hero-chg b { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.hero-chg b.up { color: var(--yes-ink); }
.hero-chg b.down { color: var(--no-ink); }
.hero-chg b.flat { color: var(--text-2); }
.hero-chg .when { color: var(--text); }
.hero-sub { margin-top: 2px; color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mstate { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.mstate i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.mstate.open i { background: var(--yes); animation: blink 1.4s infinite; }
.mstate.ext i { background: var(--gold); }
.flash-up { animation: fl-up .7s var(--ease); border-radius: 4px; }
.flash-down { animation: fl-down .7s var(--ease); border-radius: 4px; }
@keyframes fl-up { from { background: var(--yes-soft-2); } }
@keyframes fl-down { from { background: var(--no-soft-2); } }

/* ---------- the chart (js/chart.js): a line, a dotted baseline, nothing else */
.rh-chart { position: relative; height: 280px; margin-top: 8px; cursor: crosshair; }
.rh-chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.rh-chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rh-chart .ln.up { stroke: var(--yes); }
.rh-chart .ln.down { stroke: var(--no); }
.rh-chart .base { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.rh-chart .xh { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.rh-chart .dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.rh-chart .dot.up { fill: var(--yes); } .rh-chart .dot.down { fill: var(--no); }
.rh-chart .ln-in { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chartdraw .6s var(--ease) forwards; }
.rh-chart svg { animation: fade .28s var(--ease) both; }
.rh-chart .xlabel { position: absolute; top: -6px; transform: translateX(-50%); font-size: 12px; color: var(--text-2); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.rh-chart .xlabel.on { opacity: 1; }
.rh-chart .chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); text-align: center; padding: 20px; }
.rh-chart.sm { height: 180px; }
.ranges { display: flex; align-items: center; gap: 22px; margin-top: 10px; padding-bottom: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ranges::-webkit-scrollbar { display: none; }
.ranges button { position: relative; height: 34px; padding: 0 2px; border: 0; background: none; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: -.01em; transition: color var(--dur); flex: none; }
.ranges button:hover { color: var(--text-2); }
.ranges button.on { color: var(--accent-ink); }
.ranges button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.ranges .spacer { flex: 1; }
.ranges .note { color: var(--text-2); font-size: 12px; white-space: nowrap; flex: none; }

/* ---------- rows: a label on the left, a value on the right, hairlines between */
.rows { display: grid; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.row.first { border-top: 1px solid var(--line); }
.row .l { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.row .l small { font-weight: 400; color: var(--text-2); }
.row .v { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 500; }
.row .v .coin { width: 13px; height: 13px; }
.row .v svg.chev { width: 14px; height: 14px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row .v .faint { font-weight: 400; }
a.row:hover { background: var(--bg-hover); }
a.row { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 4px; }
a.row.first { border-top-color: transparent; box-shadow: inset 0 1px 0 var(--line); }
.row-note { padding: 10px 0 0; color: var(--text-2); font-size: 12.5px; }
.info { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--text-2); color: var(--text-2); font-size: 10px; font-weight: 800; font-style: normal; line-height: 1; }

/* ---------- sections: a 24px heading, then whatever */
.sec { margin-top: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sec-head h2, .sec > h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sec-head .more { color: var(--text); font-weight: 600; font-size: 13px; }
.sec-head .more:hover { text-decoration: underline; }
.sec-head p { color: var(--text-2); }
.sec-sub { color: var(--text-2); margin: -6px 0 14px; max-width: 680px; }
.sec-rule { border-top: 1px solid var(--line); }
.prose { color: var(--text); line-height: 1.6; max-width: 720px; }
.prose p + p { margin-top: 10px; }
.prose b { font-weight: 700; }
.prose.muted { color: var(--text-2); }

/* ---------- about: the company's description, four lines until "Show more", the facts under it, then ours */
.about-desc { color: var(--text); line-height: 1.6; max-width: 720px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.about-desc.open { display: block; -webkit-line-clamp: none; }
.about-more { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 13px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.about-more:hover { color: var(--text-2); }
.about-more[hidden] { display: none; }
.about-wait { max-width: 720px; padding: 3px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts b { display: block; font-weight: 700; font-size: 13px; }
.facts span { display: block; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.facts span a { color: inherit; }
.facts span a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose.after { margin-top: 18px; }

/* ---------- stats grid (key statistics): bold label over a plain value */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.stat b { display: block; font-weight: 700; font-size: 13px; }
.stat span { display: block; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span.up { color: var(--yes-ink); } .stat span.down { color: var(--no-ink); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.range52 { margin-top: 14px; }
.range52 .bar { position: relative; height: 3px; border-radius: 2px; background: var(--line); }
.range52 .bar i { position: absolute; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--bg); }
.range52 .ends { display: flex; justify-content: space-between; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; }
.range52 .ends b { color: var(--text); font-weight: 700; display: block; }

/* ---------- symbol tiles, sparklines, change tags */
.tile { flex: none; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 65% 91%); }
:root[data-theme="dark"] .tile { color: hsl(var(--h) 65% 85%); background: hsl(var(--h) 30% 20%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { color: hsl(var(--h) 65% 85%); background: hsl(var(--h) 30% 20%); } }
.tile.lg { width: 48px; height: 48px; border-radius: 10px; font-size: 14px; }
.tile.sm { width: 26px; height: 26px; border-radius: 5px; font-size: 8.5px; }
.tile.xs { width: 22px; height: 22px; border-radius: 4px; font-size: 7.5px; }
.spark { width: 72px; height: 28px; display: block; overflow: visible; flex: none; }
.spark path { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark.up path { stroke: var(--yes); }
.spark.down path { stroke: var(--no); }
.spark.flat path { stroke: var(--text-3); }
.chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.chg.up { color: var(--yes-ink); } .chg.down { color: var(--no-ink); } .chg.flat { color: var(--text-2); }
.chg.pill-tag { height: 22px; padding: 0 7px; border-radius: 4px; }
.chg.pill-tag.up { background: var(--yes-soft); } .chg.pill-tag.down { background: var(--no-soft); } .chg.pill-tag.flat { background: var(--bg-soft); }

/* ---------- asset lists (the rail, lists, holdings): name, a line, the price and the day */
.assets { display: grid; }
.asset { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: center; gap: 14px; padding: 11px 8px; margin: 0 -8px; border-radius: 6px; border-bottom: 1px solid var(--line); color: var(--text); min-height: 52px; transition: background var(--dur); }
.asset:hover { background: var(--bg-hover); }
.asset.first { border-top: 1px solid var(--line); }
.asset.first { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.asset .nm { min-width: 0; display: flex; align-items: center; gap: 10px; }
.asset .nm > div { min-width: 0; }
.asset .nm b { display: block; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .nm small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .px { text-align: right; min-width: 72px; }
.asset .px b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.asset .px .chg { font-size: 12px; justify-content: flex-end; display: flex; }
.asset .px small { display: block; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.asset.no-spark { grid-template-columns: minmax(0, 1fr) auto; }
.assets .more-row { display: flex; justify-content: center; padding: 12px 0 0; }

/* the rail's sections */
.rail-sec + .rail-sec { margin-top: 28px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rail-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rail-head h3 small { color: var(--text-2); font-weight: 500; }
.rail-head a, .rail-head button { color: var(--text-2); font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.rail-head a:hover, .rail-head button:hover { color: var(--text); }
.rail-head svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rail-sec .asset { padding: 10px 0; min-height: 50px; }
.rail-empty { padding: 14px 0 4px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.rail-empty .pill { margin-top: 10px; }
.rail-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.rail-card h3 { font-size: 15px; font-weight: 700; }
.rail-card p { color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.rail-card .pill { margin-top: 14px; }
.rail-card + .rail-card { margin-top: 12px; }

/* ---------- market tables (the lists on /markets) */
.mtable { width: 100%; border-collapse: collapse; }
.mtable th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text); padding: 8px 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable th.r, .mtable td.r { text-align: right; }
.mtable td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.mtable tbody tr { cursor: pointer; transition: background var(--dur); }
.mtable tbody tr:hover { background: var(--bg-hover); }
.mtable td.r { font-variant-numeric: tabular-nums; }
.mtable td.r b { font-weight: 600; }
.mtable .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mtable .nm b { display: block; font-weight: 700; }
.mtable .nm small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.mtable td.sp { width: 92px; }
.mtable th .sort { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.mtable th .sort svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .5; }
.mtable th .sort.on svg { opacity: 1; }
.mtable-foot { display: flex; justify-content: center; padding: 14px 0 0; }
.mtable .faint { color: var(--text-3); }
.index-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.index-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); transition: background var(--dur), border-color var(--dur); }
.index-card:hover { background: var(--bg-hover); border-color: var(--line-2); }
.index-card small { color: var(--text-2); font-weight: 600; font-size: 12px; grid-column: 1 / -1; }
.index-card b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.index-card .spark { width: 56px; height: 24px; grid-row: 2; grid-column: 2; justify-self: end; }
.index-card .chg { grid-column: 1 / -1; font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; background: var(--bg); transition: background var(--dur), border-color var(--dur); white-space: nowrap; }
.chip:hover { background: var(--bg-soft); }
.chip.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.chip small { color: inherit; opacity: .6; font-weight: 500; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -40px; padding: 2px 40px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.movers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mover { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); transition: background var(--dur), border-color var(--dur); min-width: 0; }
.mover:hover { background: var(--bg-hover); border-color: var(--line-2); }
.mover .hd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mover .hd b { display: block; font-weight: 700; }
.mover .hd small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover .spark { width: 100%; height: 40px; }
.mover .ft { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mover .ft b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -40px; padding: 2px 40px 8px; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 200px; scroll-snap-align: start; }
.seg { border-radius: 999px; background: var(--bg-soft); padding: 3px; }
.seg button, .seg a { border-radius: 999px; font-size: 13px; height: 30px; font-weight: 600; }
.seg:not(.has-ind) .on { background: var(--panel); box-shadow: none; }
.seg .ind { border-radius: 999px; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg.solid .on, .seg.solid .ind { background: var(--ink); color: var(--ink-fg); box-shadow: none; }
.seg.solid .ind { background: var(--ink); }
.seg.solid .on { color: var(--ink-fg); }
.seg.accent .on { color: #fff; }
.seg.accent .ind { background: var(--accent); }
.seg.accent:not(.has-ind) .on { background: var(--accent); }
.utabs { gap: 24px; }
.utabs button, .utabs a { font-size: 13px; font-weight: 600; color: var(--text-2); height: 38px; }
.utabs .on { color: var(--text); font-weight: 700; }
.utabs .on::after { background: var(--text); }
.ind { background: var(--text); }

/* ---------- the order ticket (the stock page, the option board) */
.ticket { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); box-shadow: 0 -12px 24px rgba(0, 0, 0, .02), 0 12px 24px rgba(0, 0, 0, .06); position: sticky; top: 84px; }
:root[data-theme="dark"] .ticket { box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticket { box-shadow: 0 12px 32px rgba(0, 0, 0, .6); } }
.tk-tabs { display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tk-tabs button { position: relative; height: 50px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--text); transition: color var(--dur); white-space: nowrap; }
.tk-tabs button.on { color: var(--accent-ink); }
.tk-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.tk-tabs button:not(.on):hover { color: var(--text-2); }
.tk-body { padding: 16px 20px 18px; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tk-row + .tk-row { margin-top: 2px; }
.tk-row .l { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tk-row .l small { display: block; font-weight: 400; color: var(--text-2); font-size: 12px; }
.tk-row .v { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.tk-row .v.big { font-weight: 700; }
.tk-sel { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg); font-weight: 500; cursor: pointer; transition: border-color var(--dur); }
.tk-sel:hover { border-color: var(--line-2); }
.tk-sel select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.tk-sel svg { width: 14px; height: 14px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-in { display: flex; align-items: center; height: 36px; width: 140px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg); transition: border-color var(--dur); gap: 4px; }
.tk-in:focus-within { border-color: var(--text); }
.tk-in .coin { width: 13px; height: 13px; }
.tk-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; text-align: right; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0; color: var(--text); }
.tk-in input::placeholder { color: var(--text-3); }
.tk-in.err { border-color: var(--no); }
.tk-chips { display: flex; gap: 6px; justify-content: flex-end; margin: 8px 0 2px; flex-wrap: wrap; }
.tk-chips button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font-size: 12px; font-weight: 600; transition: background var(--dur), border-color var(--dur); }
.tk-chips button:hover { background: var(--bg-soft); border-color: var(--line-2); }
.tk-est { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 2px; font-weight: 700; }
.tk-est .v { font-variant-numeric: tabular-nums; }
.tk-est .v.faint { color: var(--text-3); font-weight: 600; }
.tk-sum { display: grid; gap: 6px; padding: 10px 0 2px; }
.tk-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--text-2); }
.tk-sum div b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tk-sum div.total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }
.tk-sum div.total b { font-size: 15px; font-weight: 700; }
.tk-go { margin-top: 14px; }
.tk-foot { padding: 14px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--text); font-weight: 500; }
.tk-foot small { display: block; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.tk-note { margin-top: 10px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; text-align: center; }
.tk-warn { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: rgba(245, 165, 36, .14); color: #8f5a00; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
:root[data-theme="dark"] .tk-warn { color: #f5c26b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk-warn { color: #f5c26b; } }
.tk-gate { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 11px; border-radius: 6px; background: var(--bg-soft); color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.tk-gate b { color: var(--text); font-weight: 700; }
.tk-gate svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tk-gate.locked { background: rgba(245, 165, 36, .14); color: #8f5a00; }
.tk-gate.locked b { color: inherit; } .tk-gate.locked svg { stroke: #c58a0b; }
.tk-gate.free { background: var(--yes-soft); color: var(--yes-ink); }
.tk-gate.free b { color: inherit; } .tk-gate.free svg { stroke: var(--yes); }
.tk-empty { padding: 10px 0 4px; color: var(--text-2); line-height: 1.5; }
.tk-empty b { display: block; color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tk-empty .pill { margin-top: 12px; }
.tk-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.tk-head b { display: block; font-weight: 700; font-size: 15px; }
.tk-head small { display: block; color: var(--text-2); font-size: 12px; }
.tk-book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tk-book div { padding: 8px 10px; border-radius: 6px; background: var(--bg-soft); }
.tk-book small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.tk-book b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-book .bid b { color: var(--yes-ink); } .tk-book .ask b { color: var(--no-ink); }
.tk-book span { display: block; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tk-pos { margin-top: 12px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--text-2); }
.tk-pos b { display: block; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.tk-pos .wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.tk-pos .wide b { font-size: 15px; }
.tk-orders { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.tk-orders h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.tk-orders .o { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.tk-orders .o b { display: block; font-weight: 600; }
.tk-orders .o small { display: block; color: var(--text-2); font-size: 12px; }
.tk-review { padding: 4px 0; }
.tk-review h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tk-review .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.under-ticket { display: grid; gap: 10px; margin-top: 14px; }
.payoff { margin-top: 12px; }
.payoff svg { width: 100%; height: 110px; display: block; overflow: visible; }
.payoff .cap { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }

/* ---------- the option board */
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.oc-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oc-tools .spacer { flex: 1; }
.oc-tools .hint { color: var(--text-2); font-size: 12.5px; }
.oc-exps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; }
.oc-exps::-webkit-scrollbar { display: none; }
.oc-exps button { flex: none; display: grid; gap: 0; justify-items: center; min-width: 68px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.2; transition: background var(--dur), border-color var(--dur), color var(--dur); }
.oc-exps button small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.oc-exps button:hover { background: var(--bg-soft); }
.oc-exps button.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.oc-exps button.on small { color: inherit; opacity: .7; }
.oc-exps button.monthly { position: relative; }
.oc-exps button.monthly::after { content: ""; position: absolute; top: 6px; right: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.oc-exps button.on.monthly::after { background: var(--ink-fg); }
.oc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.oc-table th { text-align: right; font-size: 12px; font-weight: 700; color: var(--text); padding: 12px 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.oc-table th:first-child, .oc-table td:first-child { text-align: left; padding-left: 0; }
.oc-table th:last-child, .oc-table td:last-child { padding-right: 0; }
.oc-table td { text-align: right; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.oc-table tbody tr { cursor: pointer; transition: background var(--dur); }
.oc-table tbody tr:hover { background: var(--bg-hover); }
.oc-table tbody tr.sel { background: var(--accent-soft); }
.oc-table tbody tr.held td:first-child { font-weight: 800; }
.oc-table td.strike { font-weight: 700; }
.oc-table td.strike small { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--accent-ink); vertical-align: 1px; }
.oc-table td.itm { color: var(--text); }
.oc-table tr.atm td { box-shadow: inset 0 -1px 0 var(--text); }
.oc-table td small { display: block; font-size: 11px; color: var(--text-2); font-weight: 500; line-height: 1.2; }
.oc-table td.bidc b { color: var(--yes-ink); font-weight: 700; } .oc-table td.askc b { color: var(--no-ink); font-weight: 700; }
.oc-table td.faint { color: var(--text-3); }
.oc-table td.flash-up, .oc-table td.flash-down { border-radius: 0; }
.oc-table .ax { font-weight: 700; }
.oc-table .held-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 4px; background: var(--ink); color: var(--ink-fg); font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.oc-full { overflow-x: auto; }
.oc-full table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.oc-full th { padding: 8px 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.oc-full th.c, .oc-full td.c { text-align: center; }
.oc-full thead tr:first-child th { padding-top: 12px; padding-bottom: 4px; border-bottom: 0; font-size: 12px; color: var(--text); }
.oc-full th.calls { color: var(--yes-ink); } .oc-full th.puts { color: var(--no-ink); }
.oc-full td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.oc-full td.strike { background: var(--bg-soft); font-weight: 700; text-align: center; }
.oc-full td.strike small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent-ink); }
.oc-full tr.atm td.strike { box-shadow: inset 0 0 0 1px var(--text); }
.oc-full td.opc { cursor: pointer; }
.oc-full td.opc small { display: block; font-size: 10.5px; color: var(--text-2); font-weight: 500; line-height: 1.2; }
.oc-full td.opc.itm.call { background: color-mix(in srgb, var(--yes) 7%, transparent); }
.oc-full td.opc.itm.put { background: color-mix(in srgb, var(--no) 7%, transparent); }
.oc-full tr:hover td.opc { background: var(--bg-hover); }
.oc-full td.opc.sel { background: var(--accent-soft) !important; }
.oc-full td.opc.held { font-weight: 700; }
.oc-full td.bidc b { color: var(--yes-ink); font-weight: 600; } .oc-full td.askc b { color: var(--no-ink); font-weight: 600; }
.oc-full td.faint { color: var(--text-3); }
.oc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.oc-asof { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.oc-asof .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.oc-asof.live .dot { background: var(--yes); animation: blink 1.4s infinite; }
.oc-under { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oc-under div small { display: block; font-size: 12px; font-weight: 700; }
.oc-under div b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; }
.oc-under div b em { font-style: normal; color: var(--text-2); font-size: 12px; margin-left: 3px; }
.oc-under b.bid { color: var(--yes-ink); } .oc-under b.ask { color: var(--no-ink); }
.oc-contract { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.oc-contract div { padding: 7px 8px; border-radius: 6px; background: var(--bg-soft); font-size: 12px; color: var(--text-2); }
.oc-contract div b { display: block; color: var(--text); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.oc-contract div b.bid { color: var(--yes-ink); } .oc-contract div b.ask { color: var(--no-ink); }
.oc-contract div b em { font-style: normal; color: var(--text-2); font-weight: 500; font-size: 11px; margin-left: 2px; }
.oc-mine .o { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.oc-mine .o b { display: block; font-weight: 700; }
.oc-mine .o small { display: block; color: var(--text-2); font-size: 12px; }
.oc-mine .o .r { text-align: right; font-variant-numeric: tabular-nums; }
.oc-pop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.oc-pop a { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); transition: background var(--dur), border-color var(--dur); }
.oc-pop a:hover { background: var(--bg-hover); border-color: var(--line-2); }
.oc-pop a b { font-weight: 700; }
.oc-pop a small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-pop a .chg { font-size: 12px; }

/* ---------- portfolio page */
.alloc { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-soft); margin-top: 14px; }
.alloc i { display: block; height: 100%; min-width: 2px; }
.alloc-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--text-2); font-size: 12.5px; }
.alloc-key span { display: inline-flex; align-items: center; gap: 6px; }
.alloc-key i { width: 8px; height: 8px; border-radius: 2px; }
.alloc-key b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.htable { width: 100%; border-collapse: collapse; }
.htable th { text-align: left; font-size: 12px; font-weight: 700; padding: 8px 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.htable th.r, .htable td.r { text-align: right; }
.htable td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.htable tbody tr { cursor: pointer; transition: background var(--dur); }
.htable tbody tr:hover { background: var(--bg-hover); }
.htable .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.htable .nm b { display: block; font-weight: 700; }
.htable .nm small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.htable td.r b { font-weight: 600; }
.htable td.r small { display: block; font-size: 12px; font-weight: 600; }
.htable td.r small.muted { font-weight: 400; }
.htable td .pill.xs { visibility: hidden; }
.htable tr:hover td .pill.xs { visibility: visible; }
.otag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--bg-soft); color: var(--text-2); }
.otag.open { background: var(--accent-soft); color: var(--accent-ink); }
.otag.filled { background: var(--yes-soft); color: var(--yes-ink); }
.otag.buy { background: var(--yes-soft); color: var(--yes-ink); }
.otag.sell { background: var(--no-soft); color: var(--no-ink); }
.otag.settle, .otag.expired, .otag.cancelled, .otag.failed { background: var(--bg-soft); color: var(--text-2); }
.trade-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trade-cell > div { min-width: 0; }
.trade-cell b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-cell small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-weight: 500; }
.who .av { width: 24px; height: 24px; font-size: 12px; }
.who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who:hover span { text-decoration: underline; }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.feed-row .r b { display: block; font-weight: 600; }
.feed-row .r small { display: block; color: var(--text-2); font-size: 12px; }
.feed-row.new { animation: fl-up 1.2s var(--ease); }

/* ---------- news (a stock page, the home feed): the source and when, the headline out to the article, a line of
   the summary, the tickers as chips, a thumbnail when there is one; hairlines between stories, no boxes */
.news { display: grid; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-main { min-width: 0; display: grid; gap: 4px; }
.st-src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.st-src b { color: var(--text); font-weight: 700; }
.st-head { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; }
.st-head:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-sum { color: var(--text-2); font-size: 13px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: background var(--dur), border-color var(--dur); }
.st-tag:hover { background: var(--bg-soft); }
.st-tag.plus { color: var(--text-2); font-weight: 600; }
.st-img { display: block; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.st-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news .more-row { display: flex; justify-content: center; padding: 12px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.tile-stat small { display: block; font-weight: 700; font-size: 12.5px; }
.tile-stat b { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-stat b .coin { width: 15px; height: 15px; }
.tile-stat span { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.tile-stat b.up { color: var(--yes-ink); } .tile-stat b.down { color: var(--no-ink); }

/* ---------- leaderboard and player pages */
.lb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.lb-wrap > * { min-width: 0; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font-size: 12px; font-weight: 700; padding: 8px 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb-table th.r, .lb-table td.r { text-align: right; }
.lb-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.lb-table tbody tr { cursor: pointer; transition: background var(--dur); }
.lb-table tbody tr:hover { background: var(--bg-hover); }
.lb-table tr.me td { background: var(--accent-soft); }
.lb-table td.rk { width: 36px; color: var(--text-2); font-weight: 600; }
.lb-table td.rk.top { color: var(--text); font-weight: 800; }
.lb-table .who .av { width: 32px; height: 32px; font-size: 16px; }
.lb-table .who span { font-weight: 600; }
.lb-table td.r b { font-weight: 700; }
.lb-table .medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #000; }
.lb-search { height: 44px; margin-top: 4px; }
.lb-search input { font-size: 13px; }
.lb-pinned { border-radius: 8px; padding: 0; box-shadow: var(--shadow-pop); background: var(--panel); }
.lb-pinned .lb-table td { border-bottom: 0; padding: 8px 12px; }
.pf-head { display: flex; align-items: center; gap: 16px; }
.pf-head .av.lg { width: 72px; height: 72px; font-size: 34px; }
.pf-id h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-id p { color: var(--text-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-bio { color: var(--text); margin-top: 6px !important; }

/* ---------- account */
.acct-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.acct-head .av.lg { width: 64px; height: 64px; font-size: 30px; }
.acct-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-head p { color: var(--text-2); margin-top: 2px; }
.acct-head .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.acct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lvbox { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.switch-row .sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); border: 0; padding: 0; transition: background var(--dur); cursor: pointer; }
.switch-row .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch-row .sw.on { background: var(--yes); }
.switch-row .sw.on::after { transform: translateX(16px); }

/* ---------- how it works */
.how-hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.how-hero h1 { font-size: 40px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; max-width: 720px; }
.how-hero p { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 640px; }
.how-hero .acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-step i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--ink-fg); font-style: normal; font-weight: 800; font-size: 13px; }
.how-step h3 { margin-top: 12px; font-size: 17px; font-weight: 700; }
.how-step p { margin-top: 6px; color: var(--text-2); line-height: 1.55; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--text-2); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--text-2); line-height: 1.6; max-width: 720px; }
.faq .a b { color: var(--text); }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rule { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.rule b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rule span { display: block; color: var(--text-2); margin-top: 2px; line-height: 1.45; }

/* ---------- the front page for visitors */
.land-hero { margin: -28px -40px 0; padding: 72px 40px 64px; background: #000; color: #fff; }
.land-hero-in { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.land-kick { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 600; }
.land-kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); animation: blink 1.4s infinite; }
.land-kick.off i { background: rgba(255, 255, 255, .4); animation: none; }
.land-hero h1 { margin-top: 20px; font-size: clamp(40px, 5.2vw, 68px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.land-hero h1 em { font-style: normal; color: var(--yes); }
.land-hero p { margin-top: 18px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .72); max-width: 520px; }
.land-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.land-hero .pill { background: var(--yes); color: #000; }
.land-hero .pill.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.land-hero .pill.ghost:hover { background: rgba(255, 255, 255, .1); }
.land-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.land-stats b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.land-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.land-chart { --bg: #0b0c0d; --panel: #0b0c0d; --text: #fff; --text-2: #9aa3a9; --text-3: #6b7378; --line: #24282b; --bg-soft: #16191b; --bg-hover: #111315; --ink: #fff; --ink-fg: #000; --yes-ink: #2ad36b; --no-ink: #ff6a2b; --accent-ink: var(--yes-ink); border: 1px solid #24282b; border-radius: 12px; padding: 18px 20px 16px; background: #0b0c0d; color: #fff; }
.land-chart .hero-title { font-size: 17px; }
.land-chart .hero-num { font-size: 28px; }
.land-chart .rh-chart { height: 200px; }
.land-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #24282b; }
.land-mini a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name spark" "price spark" "chg spark"; column-gap: 6px; padding: 8px 10px; border-radius: 8px; background: #16191b; color: #fff; transition: background var(--dur); }
.land-mini a:hover { background: #1d2124; }
.land-mini small { grid-area: name; color: #9aa3a9; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.land-mini b { grid-area: price; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.land-mini .chg { grid-area: chg; font-size: 11.5px; }
.land-mini .spark { grid-area: spark; width: 44px; height: 24px; align-self: center; }
.land-sec { padding: 56px 0 0; }
.land-sec-head { max-width: 640px; }
.land-sec-head small { display: inline-block; color: var(--accent-ink); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.land-sec-head h2 { margin-top: 8px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.land-sec-head p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.land-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.land-feat > div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; align-content: start; }
.land-feat .ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); color: var(--text); }
.land-feat .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.land-feat h3 { font-size: 17px; font-weight: 700; }
.land-feat p { color: var(--text-2); line-height: 1.5; }
.land-sample { margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 10px 12px; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.land-sample .row { padding: 5px 0; border: 0; min-height: 0; }
.land-sample .row + .row { border-top: 1px solid var(--line); }
.land-sample .row .l { font-weight: 500; color: var(--text-2); }
.land-sample .row .v { font-weight: 600; }
.land-book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.land-book div { border-radius: 6px; padding: 8px 10px; }
.land-book .bid { background: var(--yes-soft); color: var(--yes-ink); } .land-book .ask { background: var(--no-soft); color: var(--no-ink); }
.land-book small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.land-book b { display: block; font-size: 18px; font-weight: 700; }
.land-book span { font-size: 12px; opacity: .9; }
.land-chain { width: 100%; border-collapse: collapse; }
.land-chain th { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); text-align: right; padding: 2px 0 6px; white-space: nowrap; }
.land-chain th:first-child, .land-chain td:first-child { text-align: left; }
.land-chain td { text-align: right; padding: 5px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.land-chain td:first-child { font-weight: 700; }
.land-chain tr.atm td:first-child { color: var(--accent-ink); }
.land-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.land-band { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 32px 36px; border-radius: 16px; background: var(--ink); color: var(--ink-fg); }
.land-band h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.land-band p { margin-top: 6px; opacity: .7; font-size: 14px; }
.land-band .pill { background: var(--ink-fg); color: var(--ink); }
.land-band .pill.ghost { background: transparent; color: var(--ink-fg); border-color: color-mix(in srgb, var(--ink-fg) 30%, transparent); }
.land-top { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.land-top a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink-fg) 12%, transparent); color: inherit; font-size: 13px; transition: background var(--dur); }
.land-top a:hover { background: color-mix(in srgb, var(--ink-fg) 20%, transparent); }
.land-top a .av { width: 24px; height: 24px; font-size: 12px; }
.land-top a b { font-weight: 700; } .land-top a span { opacity: .7; font-variant-numeric: tabular-nums; }
.land-top-more { font-size: 13px; opacity: .6; }

/* ---------- sign in */
.signin { max-width: 440px; margin: 24px auto 0; }
.signin h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.signin .sub { color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.signin .how { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.signin .how b { font-weight: 700; }
.signin .how p { color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.signin form { margin-top: 20px; }
.signin .label { font-size: 13px; font-weight: 700; }
.signin .input { height: 44px; }
.signin .pill { margin-top: 12px; }
.signin .err { color: var(--no-ink); margin-top: 10px; font-weight: 500; }
.signin .foot { border: 0; margin-top: 16px; background: none; color: var(--text-2); line-height: 1.55; }

/* ---------- the phone tab bar */
.rh-tabbar { display: none; }
.rh-foot { background: var(--bg); margin-top: 48px; }
.rh-foot .foot-in { max-width: 1360px; padding: 24px 40px 40px; font-size: 12.5px; }
.rh-foot .foot-links a, .rh-foot .foot-links button { font-weight: 500; font-size: 12.5px; }
.rh-foot p { max-width: 820px; line-height: 1.6; color: var(--text-2); }

/* ---------- responsive */
@media (max-width: 1180px) {
  .rh-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .lb-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .movers, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-pop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .oc-under { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .top-nav { display: none; }
  .app { padding-bottom: 100px; }
  .rh-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); box-shadow: inset 0 1px 0 var(--line); }
  .rh-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-2); }
  .rh-tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rh-tabbar a.on { color: var(--text); }
  .rh-foot { padding-bottom: 60px; }
  .rh-grid, .lb-wrap { grid-template-columns: minmax(0, 1fr); }
  .rh-rail { position: static; }
  .ticket { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-hero-in { grid-template-columns: minmax(0, 1fr); }
  .land-feat, .land-steps, .how-steps, .rule-grid, .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .land-band { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .oc-contract { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .app { padding: 16px 16px 96px; max-width: none; }
  .top-in { padding: 0 12px; gap: 10px; height: 56px; }
  .brand-name { display: none; }
  .gsearch { flex: 1 1 100px; min-width: 0; width: auto; padding: 0 8px 0 10px; }
  .gsearch kbd { display: none; }
  .top-right { gap: 6px; }
  .top-right .tok-pill { height: 32px; padding: 0 9px; font-size: 12.5px; }
  .top-right .pill.sm { height: 32px; padding: 0 12px; }
  .top-right .pill.sm.hide-m { display: none; }
  .hero-title { font-size: 24px; }
  .hero-num { font-size: 30px; }
  .rh-chart { height: 220px; }
  .page-head h1 { font-size: 26px; }
  .sec-head h2, .sec > h2 { font-size: 20px; }
  .land-hero { margin: -16px -16px 0; padding: 48px 16px 40px; }
  .land-hero h1 { font-size: 38px; }
  .land-mini { grid-template-columns: minmax(0, 1fr); }
  .chips.scroll, .hscroll { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .movers, .tiles, .oc-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtable .nm small { max-width: 150px; }
  .mtable td.sp, .mtable th.sp, .hide-m { display: none !important; }
  .htable .nm small { max-width: 140px; }
  .oc-under { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-table th, .oc-table td { padding-left: 5px; padding-right: 5px; font-size: 12.5px; }
  .oc-full .vol, .oc-full .oi { display: none; }
  .asset { grid-template-columns: minmax(0, 1fr) auto; }
  .asset .spark { display: none; }
  .facts { gap: 12px 24px; }
  .facts > div { flex: 1 1 40%; }
  .story { gap: 12px; }
  .st-img { width: 72px; height: 54px; }
  .rh-foot .foot-in { padding: 20px 16px 36px; }
  .pf-head { flex-wrap: wrap; }
  .acct-head { flex-wrap: wrap; }
  .acct-head .acts { margin-left: 0; width: 100%; }
}
/* ---------- motion: sliding indicators on every tab strip (js/motion.js), the bar that shows a page loading,
   staggered entrances, the ticket's steps, and hover states that move */
.top-nav { position: relative; }
.top-nav .ind { height: 2px; background: var(--text); }
.ranges .ind, .tk-tabs .ind { bottom: -1px; height: 2px; background: var(--accent); }
.oc-exps { position: relative; }
.oc-exps button { position: relative; z-index: 1; }
.oc-exps .ind { top: 12px; bottom: auto; height: 44px; border-radius: 8px; background: var(--ink); z-index: 0; } /* top = the rail's padding */
.oc-exps.has-ind button.on { background: transparent; border-color: transparent; }
.top::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--yes); opacity: 0; transition: width .25s var(--ease), opacity .35s; pointer-events: none; }
html.routing .top::after { opacity: 1; width: 72%; transition: width 5s cubic-bezier(.08, .7, .2, 1), opacity .1s; }
html.routed .top::after { width: 100%; opacity: 0; transition: width .18s var(--ease), opacity .4s .12s; }
.app[data-fresh] > .rh-grid, .app[data-fresh] > .page, .app[data-fresh] > .lb-wrap { animation: none; }
.app[data-fresh] .rh-main > *, .app[data-fresh] .rh-rail > *, .app[data-fresh] .page > *, .app[data-fresh] .lb-wrap > * { animation: rise .46s var(--ease) both; }
.app[data-fresh] .rh-main > :nth-child(2), .app[data-fresh] .page > :nth-child(2) { animation-delay: .05s; }
.app[data-fresh] .rh-main > :nth-child(3), .app[data-fresh] .page > :nth-child(3) { animation-delay: .1s; }
.app[data-fresh] .rh-main > :nth-child(4), .app[data-fresh] .page > :nth-child(4) { animation-delay: .15s; }
.app[data-fresh] .rh-main > :nth-child(5), .app[data-fresh] .page > :nth-child(5) { animation-delay: .2s; }
.app[data-fresh] .rh-main > :nth-child(6), .app[data-fresh] .page > :nth-child(6) { animation-delay: .25s; }
.app[data-fresh] .rh-main > :nth-child(n+7), .app[data-fresh] .page > :nth-child(n+7) { animation-delay: .3s; }
.app[data-fresh] .rh-rail > *, .app[data-fresh] .lb-wrap > :nth-child(2) { animation-delay: .12s; }
.app[data-fresh] .rh-rail > :nth-child(2) { animation-delay: .18s; }
.app[data-fresh] .rh-rail > :nth-child(n+3) { animation-delay: .24s; }
.tk-body.tk-enter { animation: tkin .28s var(--ease) both; }
@keyframes tkin { from { opacity: 0; transform: translateY(6px); } }
.rh-chart .xlabel { transition: opacity .15s, left .06s linear; }
.rh-tabbar a svg { transition: transform var(--dur) var(--ease), stroke var(--dur); }
.rh-tabbar a.on svg { transform: translateY(-1px); }
.row, .mtable tbody tr, .htable tbody tr, .oc-table tbody tr, .lb-table tbody tr, .feed-row { transition: background var(--dur); }
.feed-row:hover { background: var(--bg-hover); }
.oc-table tbody tr.sel td { transition: background var(--dur-slow) var(--ease); }
.hero-num .tnum { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .rh-chart .ln-in { animation: none; stroke-dashoffset: 0; }
  .flash-up, .flash-down, .feed-row.new, .tk-body.tk-enter, .rh-chart svg { animation: none; }
  .ind.ready { transition: none; }
  html.routing .top::after, html.routed .top::after { transition: none; opacity: 0; }
}
