/* X10 decorative layer — operator addition.
   Every graphic is an alpha asset tinted from a theme token, so dark/light both
   work without a second asset set. No bitmaps, no scripts, no network calls.
   Motifs are anchored to whitespace (page heading band, sidebar, empty states)
   so they never sit behind tables, charts, numbers or controls. */

:root {
  --deco-grid: rgba(255, 255, 255, 0.9);
  --deco-bars: rgba(255, 255, 255, 0.85);
  --deco-wave: rgba(255, 255, 255, 0.8);
  --deco-line: rgba(120, 220, 200, 0.85);
  --deco-alt: rgba(150, 200, 240, 0.85);
  --deco-empty: rgba(255, 255, 255, 0.8);
  --deco-ink: 0.5;
}

/* Light theme: ink + slate-blue strokes on a near-white ground. */
body.light {
  --deco-grid: rgba(0, 122, 106, 0.55);
  --deco-bars: rgba(14, 132, 116, 0.5);
  --deco-wave: rgba(14, 132, 116, 0.45);
  --deco-line: rgba(0, 138, 118, 0.95);
  --deco-alt: rgba(72, 132, 196, 0.9);
  --deco-empty: rgba(0, 128, 110, 0.9);
  --deco-ink: 0.62;
}

/* --- Hero: faded grid, anchored to the top ---------------------------- */
.hero-panel {
  position: relative;
  isolation: isolate;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: min(260px, 70%);
  border-radius: inherit;
  background-color: var(--deco-grid);
  -webkit-mask-image: url('/assets/grid.svg'), linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: url('/assets/grid.svg'), linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-size: 32px 32px, 100% 100%;
  mask-size: 32px 32px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* --- Market-to-opportunity banner: bar ornament on the trailing edge -- */
.market-discovery-shortcut {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.market-discovery-shortcut::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: min(240px, 32%);
  border-radius: inherit;
  background-color: var(--deco-bars);
  -webkit-mask-image: url('/assets/ornament-bars.svg');
  mask-image: url('/assets/ornament-bars.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

/* --- Footer: market wave band ---------------------------------------- */
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  background-color: var(--deco-wave);
  -webkit-mask-image: url('/assets/market-waves.svg');
  mask-image: url('/assets/market-waves.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

/* =====================================================================
   Page-heading motif
   The heading row is the one band on every view that carries no data:
   measured whitespace between the description text and the data-source
   stamp is 580-692px at 1440px wide. The motif lives only in that gap.
   ===================================================================== */

.heading {
  position: relative;
  isolation: isolate;
}

.heading::after {
  content: '';
  position: absolute;
  right: 232px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 64px;
  background-color: var(--deco-line);
  -webkit-mask-image: url('/assets/deco-contours.svg');
  mask-image: url('/assets/deco-contours.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: var(--deco-motif-opacity, 0.3);
  --deco-motif-opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* Per-view variation: same stroke language, different geometry.
   Selected by the active view so each page reads as its own motif. */
body:has(#market:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-arcs.svg');
  mask-image: url('/assets/deco-arcs.svg');
}

body:has(#portfolio:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-rings.svg');
  mask-image: url('/assets/deco-rings.svg');
  --deco-motif-opacity: 0.26;
}

body:has(#derivatives:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-parallel.svg');
  mask-image: url('/assets/deco-parallel.svg');
}

body:has(#strategy:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-steps.svg');
  mask-image: url('/assets/deco-steps.svg');
}

body:has(#alerts:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-dots.svg');
  mask-image: url('/assets/deco-dots.svg');
  background-color: var(--deco-alt);
  --deco-motif-opacity: 0.32;
}

body:has(#ai:not([hidden])) .heading::after {
  -webkit-mask-image: url('/assets/deco-dots.svg');
  mask-image: url('/assets/deco-dots.svg');
  background-color: var(--deco-alt);
  --deco-motif-opacity: 0.24;
}

/* =====================================================================
   Sidebar: geometry framing the X10 mark
   Anchored to the brand block's own box so it cannot drift over nav items.
   ===================================================================== */

.sidebar {
  position: fixed;
}

.brand {
  position: relative;
  isolation: isolate;
}

.brand::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -10px;
  width: 190px;
  height: 72px;
  background-color: var(--deco-line);
  -webkit-mask-image: url('/assets/deco-mark-strokes.svg');
  mask-image: url('/assets/deco-mark-strokes.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: var(--deco-mark-opacity, 0.24);
  --deco-mark-opacity: 0.24;
  pointer-events: none;
  z-index: -1;
}

/* =====================================================================
   Empty states: a small illustration above the existing message text.
   Drawn with ::before so the JS-generated <p class="empty"> is untouched.
   ===================================================================== */

.empty {
  position: relative;
}

.empty::before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  background-color: var(--deco-empty);
  -webkit-mask-image: url('/assets/empty-cards.svg');
  mask-image: url('/assets/empty-cards.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.3;
  --deco-mark-opacity: 0.3;
}

/* Alert surfaces get the bell instead of the stacked cards. */
#alert-list:has(> .empty) > .empty::before,
#alert-rules:has(> .empty) > .empty::before {
  -webkit-mask-image: url('/assets/empty-bell.svg');
  mask-image: url('/assets/empty-bell.svg');
}

/* =====================================================================
   Entrance: a few strokes settle in on view load.
   Motion is opt-out via prefers-reduced-motion at the end of this file.
   ===================================================================== */

@keyframes deco-settle {
  from { opacity: 0; transform: translateY(-50%) scale(0.985); }
  to   { opacity: var(--deco-motif-opacity, 0.3); transform: translateY(-50%) scale(1); }
}

@keyframes deco-fade-in {
  from { opacity: 0; }
  to   { opacity: var(--deco-mark-opacity, 0.24); }
}

.heading::after {
  animation: deco-settle 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.brand::before {
  animation: deco-fade-in 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 90ms;
}

.empty::before {
  animation: deco-fade-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ---------------------------------------------------------------------
   Narrow viewports: the heading gap is gone, so the heading motif is
   dropped rather than allowed to collide with the title or description.
   --------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .heading::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-panel::before {
    height: 170px;
    opacity: 0.4;
  }

  .market-discovery-shortcut::after {
    width: 116px;
    opacity: 0.26;
  }

  footer::before {
    height: 60px;
    opacity: 0.22;
  }

  .brand::before {
    width: 150px;
    height: 60px;
  }

  .empty::before {
    width: 56px;
    height: 56px;
    opacity: 0.24;
  }
}

/* Stock section navigation: four tabs plus a separate research action. */
#stock .stock-sections {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-width:0; min-height:52px; padding:6px 8px; margin-bottom:20px;
  background:#fff; border:1px solid #DCE6EA; border-radius:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.04); overflow:visible;
}
#stock .stock-tab-tray {
  display:flex; align-items:center; flex:0 1 auto; min-width:0; gap:4px;
  padding:4px; background:#F1F5F7; border:1px solid #E4ECEF; border-radius:9px;
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
#stock .stock-tab-tray::-webkit-scrollbar { display:none; }
#stock .stock-sections button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  flex:0 0 auto; height:36px; min-height:36px; padding:0 12px; margin:0;
  border:0; border-radius:7px; background:transparent; color:#4A606A;
  font-size:14px; line-height:1; font-weight:500; white-space:nowrap;
  box-shadow:none; transform:none; filter:none; transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease,border-color 150ms ease;
}
#stock .stock-sections button svg { flex:none; width:16px; height:16px; }
#stock .stock-tab-tray button:hover { background:#E5EEF1; color:#1E323A; }
#stock .stock-tab-tray button[aria-selected="true"] {
  background:#08776E; color:#fff; font-weight:600;
  box-shadow:0 1px 3px rgba(8,119,110,.24);
}
#stock .stock-tab-tray button[aria-selected="true"]:hover { background:#076860; }
#stock .stock-ai-action { display:flex; align-items:center; flex-shrink:0; }
#stock .stock-ai-action button {
  padding:0 14px; border:1px solid #B8E2DB; border-radius:8px;
  background:#E6F5F3; color:#08776E; font-weight:600;
}
#stock .stock-ai-action button:hover { background:#D6EFEA; border-color:#95D4C9; }
#stock .stock-sections button:focus-visible { outline:2px solid #08776E; outline-offset:-2px; }
@media(max-width:760px) {
  /* The decorative desktop sidebar must not overlay mobile content. */
  .sidebar { position:relative; }
  #stock .stock-sections { gap:8px; }
  #stock .stock-tab-tray { flex:1 1 0; }
  #stock .stock-ai-action { border-left:1px solid #DCE6EA; padding-left:8px; }
}

/* External symbol pages are available even when the public widget is not. */
.chart-tabs .tradingview-link { display:inline-flex; align-items:center; min-height:34px; padding:4px 10px; border:1px solid var(--line); border-radius:6px; color:var(--accent); font-size:13px; text-decoration:none; }
.chart-tabs .tradingview-link:hover { background:var(--accent-dim); }
.chart-tabs .tradingview-link[aria-disabled="true"] { opacity:.5; cursor:default; }
.chart-tabs .tradingview-link:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Reference-led terminal: navy navigation, mint title band, clear market data. */
body { font-family:'Segoe UI',Arial,sans-serif; }
body.light { --bg:#F6F9FB; --text:#102A40; --muted:#60758A; --line:#D9E3EB; --positive:#00935F; --negative:#DF3048; --flat:#526170; --accent:#00877F; }
.sidebar { width:228px; padding:24px 12px; background:#10283D; border-right:0; color:#EDF5FB; }
.workspace { margin-left:228px; }
.sidebar .brand { display:flex; flex-direction:column; align-items:flex-start; gap:0; padding:0 14px 22px; margin-bottom:18px; border-bottom:1px solid #FFFFFF17; text-decoration:none; }
.sidebar .brand::before { display:none; }
.sidebar .brand .mark { display:block; width:auto; height:auto; background:none; color:#F3FCFF; font-size:46px; line-height:1.05; letter-spacing:-3px; font-weight:800; border-radius:0; }
.sidebar .brand .brand-name { font-size:20px; font-weight:600; line-height:1.4; color:#F3FCFF; }
.sidebar .brand small { font-size:11px; color:#A1BBCD; margin-top:7px; font-weight:400; letter-spacing:.02em; }
.sidebar .nav-caption { display:none; }
.sidebar nav { gap:4px; }
.sidebar nav a { display:flex; align-items:center; gap:12px; padding:13px 12px; min-height:46px; margin:0; border:0; border-radius:7px; font-size:15px; line-height:1.35; color:#E0ECF5; text-decoration:none; font-weight:500; }
.sidebar nav .nav-symbol { width:20px; height:20px; flex:none; }
.sidebar nav a:hover { background:#FFFFFF0D; color:#FFF; }
body.light .sidebar nav a.active,.sidebar nav a.active { color:#FFF; background:#007C78; box-shadow:inset 0 0 0 1px #40D1BA22; font-weight:650; }
.sidebar .auxiliary-nav { border-color:#FFFFFF20; margin-top:20px; padding-top:12px; }
.sidebar .auxiliary-nav summary { color:#9DB7CC; font-size:12px; }
.sidebar .auxiliary-nav a { font-size:13px; min-height:40px; padding-top:10px; padding-bottom:10px; }
.sidebar-bottom { border-color:#FFFFFF20; margin-top:26px; }
.sidebar .sidebar-bottom p { font-size:12px; color:#ABC1D2; }
.sidebar .sidebar-bottom .chip { color:#A9DBD3; background:#FFFFFF08; border-color:#FFFFFF20; font-size:10px; }
.sidebar #theme { background:transparent; color:#DDECF4; border-color:#FFFFFF30; font-size:12px; border-radius:6px; }
.topbar { min-height:76px; height:auto; padding:14px 24px; gap:20px; border-bottom:1px solid var(--line); background:var(--panel); }
.search { flex:1; max-width:650px; gap:12px; }
.search label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.search input,body.light .search input { flex:1; min-width:0; width:360px; height:44px; border-radius:8px; font-size:17px; font-weight:600; padding-left:40px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23596F82' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:13px center; }
.search #search { height:44px; padding:0 20px; border-radius:8px; font-size:16px; color:#FFF; background:#00877F; border-color:#00877F; }
.top-actions #account { font-size:15px; font-weight:600; min-height:40px; color:var(--accent); border-color:var(--accent); border-radius:7px; padding:0 18px; }
.top-actions #bell { font-size:13px; }
.top-actions .connection { font-size:12px; }
main { padding:20px 24px; max-width:1900px; }
.heading { min-height:112px; margin-bottom:16px; padding:22px 26px; border-radius:10px; border:1px solid var(--line); isolation:isolate; }
body.light .heading { background:#E9F8F4; border-color:#E4F4F0; }
body:has(#overview:not([hidden])) .heading { min-height:138px; }
.heading::after { inset:0 0 0 auto; width:62%; height:100%; max-height:none; background:url('/assets/terminal-landscape.svg') right center/contain no-repeat; mask-image:none!important; -webkit-mask-image:none!important; opacity:.9; animation:none; transform:none; z-index:-1; }
.heading h1#page-title { font-size:34px; font-weight:750; line-height:1.15; letter-spacing:-1.1px; }
body:has(#overview:not([hidden])) .heading h1#page-title { font-size:38px; }
.heading p { margin-top:8px; font-size:14px; }
.heading .source { align-self:center; font-size:11px; max-width:180px; background:var(--panel); padding:8px 10px; border:1px solid var(--line); border-radius:7px; text-align:right; }
.heading .source span { font-size:11px; }
.panel,.hero-panel { border-radius:10px; box-shadow:0 1px 2px #102A4004; }
.hero-panel::before { display:none; }
.panel h2,.panel-heading h2 { font-size:20px; letter-spacing:-.025em; }
.index-ribbon { gap:10px; margin-bottom:18px; }
body .index-ribbon .index-tile { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; padding:16px; border:1px solid #CCD9E4; border-radius:9px; background:var(--panel); min-height:94px; }
.index-tile>span { font-size:17px; font-weight:700; color:var(--text); }
.index-tile>strong { font-size:24px; font-weight:750; letter-spacing:-.6px; }
.index-tile>small { font-size:12px; white-space:nowrap; align-self:center; }
.market-hero { grid-template-columns:minmax(0,1fr) minmax(320px,35%); gap:14px; margin-bottom:18px; }
.hero-panel { padding:18px; }
.hero-heading { flex-wrap:wrap; justify-content:flex-start; gap:12px 20px; padding-bottom:14px; margin-bottom:0; border-bottom:1px solid var(--line); }
.hero-heading .section-kicker { display:none; }
.hero-heading h2 { margin:0; font-size:25px; }
.hero-heading .hero-quote { margin:0; padding:0; border:0; gap:14px; }
.hero-heading #hero-date { margin-left:auto; padding:4px 7px; border-radius:4px; font-size:11px; line-height:1.3; color:var(--muted); background:var(--panel2); white-space:nowrap; }
.hero-quote>strong { font-size:29px; letter-spacing:-.6px; }
.hero-quote>span { font-size:15px; }
.hero-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0; }
.hero-toolbar .segment { flex-wrap:nowrap; }
.hero-toolbar .segment+.segment { border-left:1px solid var(--line); padding-left:12px; }
.hero-toolbar .segment button { font-size:13px; min-height:32px; padding:6px 10px; border-radius:6px; }
.hero-toolbar #hero-symbols button.selected { background:var(--accent); color:#FFF; }
.market-hero-chart { height:clamp(320px,37vh,420px); background:var(--panel); }
.chart-bottom { font-size:12px; flex-wrap:wrap; gap:6px; justify-content:space-between; margin-top:10px; padding-top:10px; }
.chart-bottom #hero-date,.chart-bottom #hero-source { font-size:11px; font-weight:400; color:var(--muted); }
.hero-aside { display:flex; flex-direction:column; gap:14px; }
.hero-aside .panel { border:1px solid #CCD9E4; border-radius:10px; padding:18px; margin:0; }
.compact-book .panel-heading { margin-bottom:12px; }
.compact-book .panel-heading h2 { font-size:22px; }
.compact-book .panel-heading { gap:8px; }
.compact-book .panel-heading h2 { margin-right:auto; }
.compact-book #quick-book-open { width:auto; min-height:30px; padding:0 10px; margin:0; font-size:12px; border-radius:6px; }
.compact-book .panel-heading select { font-size:13px; width:85px; min-height:30px; border-radius:6px; }
.compact-book .book-quote { margin:0 0 12px; padding-bottom:12px; }
.compact-book .book-symbol { display:grid; gap:4px; }
.compact-book .book-symbol b { font-size:15px; }
.compact-book .book-symbol small { font-size:11px; color:var(--muted); }
.compact-book .book-last { margin-left:auto; display:flex; align-items:baseline; gap:10px; }
.compact-book .book-last strong { font-size:28px; letter-spacing:-.7px; }
.compact-book .book-last span { font-size:13px; font-weight:600; }
.compact-book .book-quote>b { font-size:14px; }
.compact-book .book-quote>strong { font-size:27px; }
.compact-book table { width:100%; font-size:14px; table-layout:fixed; }
.compact-book th { font-size:12px; padding:9px 5px; font-weight:500; text-align:right; background:var(--panel2); }
.compact-book td { font-size:16px; padding:8px 5px; font-variant-numeric:tabular-nums; }
.compact-book .book-sides th { text-align:center; padding:7px; font-size:14px; font-weight:650; }
.compact-book .book-sides th:first-child { color:var(--positive); background:var(--accent-dim); border-radius:5px 0 0 0; }
.compact-book .book-sides th:last-child { color:var(--negative); background:#E52F4812; border-radius:0 5px 0 0; }
.compact-book td:nth-child(2),.compact-book td:nth-child(3) { font-weight:700; }
.compact-book p { font-size:11px; margin:12px 0 0; }
.compact-book>button { border-radius:6px; font-size:12px; min-height:32px; }
.breadth-panel h2 { font-size:21px; }
.breadth-numbers { margin:18px 0; gap:0; }
.breadth-numbers>span { display:flex; flex-direction:column; gap:4px; }
.breadth-numbers>span+span { border-left:1px solid var(--line); }
.breadth-numbers>span>span { font-size:14px; font-weight:500; color:var(--text); }
.breadth-numbers b { font-size:32px; line-height:1.2; }
body.light .breadth-numbers>.flat { color:#526170; }
.breadth-panel .breadth { height:28px; border-radius:6px; margin:12px 0; }
.breadth-panel .breadth>span { display:flex; justify-content:center; align-items:center; color:#FFF; font-size:12px; font-weight:650; overflow:hidden; white-space:nowrap; }
.breadth .flat { background:#8A969E; }
.breadth-panel p { font-size:11px; }
.mobile-tool-links .nav-symbol { flex:none; }
.mobile-tool-links a { display:flex; align-items:center; gap:10px; }
@media(min-width:1550px) {
  .sidebar { width:244px; padding:26px 14px; }
  .workspace { margin-left:244px; }
  .sidebar nav a { font-size:16px; }
  .index-tile>strong { font-size:27px; }
  .index-tile>small { font-size:13px; }
}
@media(max-width:1200px) and (min-width:761px) {
  .sidebar { width:208px; }
  .workspace { margin-left:208px; }
  .sidebar nav a { font-size:14px; gap:10px; }
  .index-tile>strong { font-size:21px; }
  .index-tile>small { font-size:11px; }
  body .index-ribbon .index-tile { padding:12px; }
  .top-actions .connection { display:none; }
  .heading h1#page-title,body:has(#overview:not([hidden])) .heading h1#page-title { font-size:32px; }
}
@media(max-width:1050px) {
  .market-hero { grid-template-columns:minmax(0,1fr); }
  .hero-aside { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
}
@media(max-width:760px) {
  .sidebar { position:relative; width:100%; height:auto; padding:14px 16px 10px; }
  .sidebar .brand { flex-direction:row; align-items:center; gap:10px; padding:0 0 12px; margin-bottom:10px; }
  .sidebar .brand .mark { font-size:30px; letter-spacing:-1.5px; }
  .sidebar .brand .brand-name { font-size:16px; }
  .sidebar .brand small { display:none; }
  .sidebar nav { gap:4px; }
  .sidebar nav a { font-size:13px; padding:9px 10px; min-height:36px; }
  .sidebar nav .nav-symbol { display:none; }
  .sidebar .mobile-expert-button { background:transparent; border:1px solid #FFFFFF30; color:#EDF5FB; border-radius:6px; font-size:13px; }
  .workspace { margin-left:0; }
  .topbar { padding:12px 16px; min-height:0; gap:10px; }
  .search { width:100%; max-width:none; }
  .search input,body.light .search input { width:100px; height:40px; font-size:16px; }
  .search #search { height:40px; padding:0 14px; font-size:14px; }
  .top-actions { gap:8px; }
  .top-actions #account { min-height:34px; font-size:13px; padding:0 12px; }
  .top-actions #bell { font-size:12px; }
  main { padding:14px; }
  .heading,body:has(#overview:not([hidden])) .heading { padding:20px; min-height:116px; margin-bottom:14px; }
  .heading h1#page-title,body:has(#overview:not([hidden])) .heading h1#page-title { font-size:28px; letter-spacing:-.7px; }
  .heading p { font-size:13px; max-width:95%; }
  .heading::after { width:68%; opacity:.4; }
  .index-ribbon { display:flex; overflow-x:auto; gap:8px; padding-bottom:5px; scroll-snap-type:x proximity; }
  body .index-ribbon .index-tile { flex:0 0 164px; min-height:86px; padding:12px; scroll-snap-align:start; }
  .index-tile>span { font-size:15px; }
  .index-tile>strong { font-size:21px; }
  .index-tile>small { font-size:11px; }
  .hero-panel { padding:14px; }
  .hero-heading { gap:8px; }
  .hero-heading h2 { font-size:21px; }
  .hero-quote>strong { font-size:25px; }
  .hero-quote>span { font-size:13px; }
  .hero-toolbar { gap:6px; }
  .hero-toolbar .segment+.segment { padding-left:6px; }
  .hero-toolbar .segment button { padding:6px 8px; font-size:12px; }
  .market-hero-chart { height:300px; }
  .hero-aside { grid-template-columns:minmax(0,1fr); }
  .hero-aside .panel { padding:16px; }
  .compact-book td { font-size:15px; }
}

@media (prefers-reduced-motion: reduce) {
  #stock .stock-sections button { transition:none; }
  .heading::after,
  .brand::before,
  .empty::before {
    animation: none;
  }
}
