/* ============================================================
   Delta Neutral Monitor - shared design system
   Dashboard app shell, light + deep-black dark theme.
   Single source of truth for every page.
   ============================================================ */

:root,
[data-theme="light"] {
  color-scheme: light;
  --desk: #ebe8e2;
  --card: #ffffff;
  /* Nested surface. #fafaf8 was a hair off white and cards vanished into panels. */
  --paper: #f6f5f2;
  --pebble: #efedE8;
  --border: #e0ded7;
  --hair: #ebe9e4;
  --panel-shadow: rgba(20, 20, 18, .05) 0px 1px 2px 0px, rgba(20, 20, 18, .03) 0px 2px 6px 0px;
  --ink: #141415;
  --carbon: #454542;
  --slate: #6e6f6c;
  --stone: #8c8c89;
  --fog: #b7b7b4;
  --orange: #f35b22;
  --orange-soft: #fdece5;
  --success: #3f9950;
  --success-soft: #eaf5ec;
  --coral: #e0574f;
  --coral-soft: #fdeceb;
  --amber: #b6820f;
  --amber-soft: #fdf3e2;
  --shell-shadow: rgba(24, 25, 22, .04) 0px 1px 2px 0px;
  --pop-shadow: rgba(24, 25, 22, .12) 0px 8px 24px 0px;
  --track: #f0eeea;
}

[data-theme="dark"] {
  color-scheme: dark;
  --desk: #000000;
  --card: #0b0b0c;
  --paper: #151517;
  --pebble: #1f1f22;
  --border: #2a2a2d;
  --hair: #1d1d20;
  /* Shadows do not read on near-black; separation there comes from the borders. */
  --panel-shadow: none;
  --ink: #f7f7f5;
  --carbon: #d6d6d2;
  --slate: #a0a09c;
  --stone: #7a7a76;
  --fog: #565652;
  /* Lighter than the light-theme orange on purpose: a deep orange reads heavy and
     muddy against near-black, so the dark theme lifts it to keep the accent bright. */
  --orange: #ff8a5c;
  --orange-soft: rgba(255, 138, 92, .15);
  --success: #4ac26a;
  --success-soft: rgba(74, 194, 106, .14);
  --coral: #ff6b61;
  --coral-soft: rgba(255, 107, 97, .14);
  --amber: #e0a92b;
  --amber-soft: rgba(224, 169, 43, .14);
  --shell-shadow: none;
  --pop-shadow: rgba(0, 0, 0, .6) 0px 8px 28px 0px;
  --track: #1c1c1e;
}

:root {
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--desk); }
body {
  margin: 0; min-height: 100vh; background: var(--desk); color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; font-feature-settings: "calt" 0, "liga" 0;
  padding: 20px; -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- app shell ---------- */
.app-shell {
  width: min(1520px, 100%); margin: 0 auto; min-height: calc(100vh - 40px);
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 258px minmax(0, 1fr);
  box-shadow: var(--shell-shadow);
}

/* ---------- sidebar ---------- */
.sidebar { border-right: 1px solid var(--border); padding: 26px 16px 20px; display: flex; flex-direction: column; gap: 22px; }
/* minmax(0, 1fr) pins the column to the container. Without it the brand name's
   intrinsic width widens the auto column past the collapsed rail, and
   justify-items centres the logo in that overflowing column instead of the rail. */
.side-brand { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid var(--hair); }
.brand-mark { width: 56px; height: 56px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-brand strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.side-brand > span > span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--stone); }

/* The sidebar is a column flexbox, so anything without an explicit flex-basis gets
   squeezed once the nav is taller than the viewport. The fixed chrome must not
   shrink - .side-top losing height let its absolutely-positioned button slide out
   of its own box and land on the logo. Only the nav itself may give/scroll. */
.side-top, .side-brand, .side-foot { flex: 0 0 auto; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.side-label { margin: 14px 0 4px; padding: 0 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }
.side-label:first-child { margin-top: 0; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px;
  color: var(--carbon); font-size: 13.5px; font-weight: 500; transition: background .14s ease, color .14s ease;
}
.side-link svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: var(--stone); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.side-link:hover { background: var(--paper); color: var(--ink); }
.side-link.active { background: var(--pebble); color: var(--ink); font-weight: 600; }
.side-link.active svg { stroke: var(--orange); }
.side-link.soon { color: var(--stone); }
.side-link.soon::after {
  content: "soon"; margin-left: auto; font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--stone); background: var(--paper);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px;
}
.side-foot { padding: 14px 10px 0; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--stone); }
.side-foot a { color: var(--orange); }
.foot-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
/* Right-pinned rather than flex-aligned: the collapse button then only moves by the
   sidebar's padding delta as it animates, instead of jumping when alignment flips. */
.side-top { position: relative; height: 32px; margin-bottom: -10px; }
/* Offset rather than flex-aligned so the collapsed state can slide it to centre
   instead of the alignment flipping instantly mid-animation. */
.side-top .theme-toggle { position: absolute; top: 0; right: 0; transition: right .24s cubic-bezier(.4, 0, .2, 1); }
.nav-collapse .chev { transition: transform .18s ease; transform-origin: 14px 12px; }

/* ---------- collapsed rail (desktop only - mobile uses the hamburger) ---------- */
@media (min-width: 901px) {
  .app-shell { position: relative; }
  /* Pin both children to explicit tracks. When collapsed the sidebar is taken out
     of the grid flow - without this the workspace would auto-place into column 1
     (the 68px rail) and collapse the page content. */
  .app-shell > .sidebar { grid-column: 1; grid-row: 1; }
  .app-shell > .workspace { grid-column: 2; grid-row: 1; }
  .nav-collapsed .app-shell { grid-template-columns: 68px minmax(0, 1fr); }

  /* The sidebar is absolutely positioned for the whole collapsed state, not just on
     hover: `position` can't be transitioned, so switching it on hover made the panel
     snap open. Holding it absolute lets plain `width` animate smoothly, and the grid
     column stays 68px so the content underneath never reflows. */
  .nav-collapsed .sidebar {
    position: absolute; top: 0; left: 0; bottom: 0; z-index: 60;
    width: 68px; padding: 26px 12px 20px; overflow: hidden;
    background: var(--card); border-right: 1px solid var(--border);
    transition: width .24s cubic-bezier(.4, 0, .2, 1), padding .24s cubic-bezier(.4, 0, .2, 1), box-shadow .24s ease;
  }
  .nav-collapsed .sidebar:hover {
    width: 258px; padding: 26px 16px 20px; box-shadow: var(--pop-shadow); overflow-y: auto;
  }

  /* Labels stay in the layout and fade instead of display:none-ing, so nothing
     reflows mid-animation - the rail's overflow simply clips them. */
  .nav-collapsed .side-text,
  .nav-collapsed .side-link.soon::after {
    opacity: 0; white-space: nowrap; transition: opacity .16s ease;
  }
  .nav-collapsed .sidebar:hover .side-text,
  .nav-collapsed .sidebar:hover .side-link.soon::after { opacity: 1; }

  .nav-collapsed .side-link { padding: 8px 14px; transition: padding .24s cubic-bezier(.4, 0, .2, 1); }
  .nav-collapsed .sidebar:hover .side-link { padding: 8px 10px; }

  /* Rail is 68px with 12px padding -> 44px inner; a 32px button needs 6px each
     side to sit on the same centre line as the 40px logo below it. Right-pinning
     left it 6px off-axis and the two icons read as misaligned. */
  .nav-collapsed .sidebar:not(:hover) .side-top .theme-toggle { right: 6px; }

  /* The brand name/tagline sit in their own wrapper, not a .side-text span, and
     would leave a tall empty gap at the top of the rail if only faded. */
  /* Drop the horizontal padding too: the 40px mark does not fit the rail's 44px
     inner width with 8px sides, so it overflowed right and got clipped. */
  .nav-collapsed .side-brand { padding: 4px 0 14px; gap: 0; }
  .nav-collapsed .side-brand > span:not(.brand-mark) {
    opacity: 0; max-height: 0; overflow: hidden;
    transition: opacity .16s ease, max-height .24s cubic-bezier(.4, 0, .2, 1);
  }
  .nav-collapsed .sidebar:hover .side-brand > span:not(.brand-mark) { opacity: 1; max-height: 60px; }
  .nav-collapsed .brand-mark { width: 40px; height: 40px; transition: width .24s ease, height .24s ease; }
  .nav-collapsed .sidebar:hover .brand-mark { width: 56px; height: 56px; }

  .nav-collapsed .side-foot { padding: 14px 0 0; }
  .nav-collapsed .sidebar:hover .side-foot { padding: 14px 10px 0; }
  .nav-collapsed .nav-collapse .chev { transform: rotate(180deg); }

  /* Dim the workspace while the panel is out, so the overlap reads as deliberate
     rather than as the sidebar accidentally sitting on top of the content. */
  .nav-collapsed .app-shell::after {
    content: ""; position: absolute; inset: 0 0 0 68px; z-index: 55;
    background: rgba(8, 8, 8, .32); opacity: 0; pointer-events: none;
    transition: opacity .24s ease;
  }
  .nav-collapsed .app-shell:has(.sidebar:hover)::after { opacity: 1; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 6px;
  background: var(--paper); color: var(--carbon); display: grid; place-items: center; cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- workspace ---------- */
.workspace { padding: 30px 34px 40px; min-width: 0; }
.ws-head h1 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.ws-head h1 .accent { color: var(--orange); }
.ws-head p { margin: 8px 0 0; font-size: 14px; color: var(--slate); line-height: 1.5; max-width: 760px; }
.ws-divider { height: 1px; background: var(--border); margin: 22px 0; }
.ws-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; border-radius: 5px; padding: 4px 10px;
  background: var(--orange-soft); color: var(--orange); font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- toolbar / metrics ---------- */
.toolbar-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--carbon); }
.toolbar-label svg { width: 15px; height: 15px; stroke: var(--stone); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); padding: 14px 16px; display: grid; gap: 4px; }
.metric .m-label { font-size: 11.5px; color: var(--slate); }
/* Ink, not orange. Colouring every number made the accent meaningless and the page
   read as noise - orange is reserved for links, the active nav item, and the one
   highlighted word in a heading. */
.metric .m-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.source-strip { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.source-strip .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--fog); }
.source-strip .src { border: 1px solid var(--border); border-radius: 5px; background: var(--paper); padding: 3px 9px; font-size: 11.5px; color: var(--carbon); }

/* ---------- panels ---------- */
.panel { margin-top: 26px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; box-shadow: var(--panel-shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.panel-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--slate); }
.panel-head .head-link { font-size: 12.5px; font-weight: 500; color: var(--orange); white-space: nowrap; }
.panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.legend { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--slate); white-space: nowrap; }
.legend .dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.panel-body { padding: 18px 20px; }
.panel-body.flush { padding: 0; }

/* ---------- status chips / pills ---------- */
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--paper); color: var(--carbon); padding: 5px 10px; font-family: var(--font-mono); font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.dot-live { width: 7px; height: 7px; border-radius: 999px; display: inline-block; background: var(--amber); }
.dot-live.good { background: var(--success); }
.dot-live.bad { background: var(--coral); }
.dot-live.warn { background: var(--amber); }

.filter-pill, .table-action {
  min-height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper);
  color: var(--carbon); padding: 5px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.filter-pill:hover, .table-action:hover { border-color: var(--orange); color: var(--orange); }
.filter-pill.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.filter-pill.secondary.active { border-color: var(--orange); background: var(--orange); color: #ffffff; }

/* ---------- highlight cards ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hl-card { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); padding: 16px; display: grid; gap: 7px; align-content: start; transition: border-color .15s ease, background .15s ease; }
.hl-card:not(.soon):hover { border-color: var(--orange); background: var(--card); }
.hl-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.hl-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-value { font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.hl-value.pos { color: var(--success); }
.hl-value.neg { color: var(--coral); }
.hl-meta { font-size: 11.5px; color: var(--slate); line-height: 1.4; }
.hl-card.soon { border-style: dashed; background: var(--card); }
.hl-card.soon .hl-label { color: var(--stone); }
.hl-card.soon .hl-value { font-size: 13px; font-weight: 600; color: var(--stone); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- data cards ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.op-card { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); padding: 16px; display: grid; gap: 9px; align-content: start; transition: border-color .15s ease, background .15s ease; }
.op-card:hover { border-color: var(--orange); background: var(--card); }
.op-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-tag { display: inline-flex; align-items: center; border-radius: 5px; padding: 3px 8px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; background: var(--pebble); color: var(--slate); }
.op-tag.pos { color: var(--success); background: var(--success-soft); }
.op-tag.neg { color: var(--coral); background: var(--coral-soft); }
.op-tag.warn { color: var(--amber); background: var(--amber-soft); }
.op-sub { font-size: 11px; color: var(--stone); }
.op-title { font-size: 15px; font-weight: 600; color: var(--ink); }
/* Default to ink and only colour when the sign actually carries meaning. A grid of
   40 cards all shouting in orange has no hierarchy left. */
.op-value { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.op-value.pos { color: var(--success); }
.op-value.neg { color: var(--coral); }
.op-bar { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.op-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--orange); transition: width .3s ease; }
.op-meta { font-size: 11.5px; color: var(--slate); }
/* Muted by default: one orange link per card times forty cards is a wall of orange.
   It only lights up on hover, where the affordance actually matters. */
.op-meta a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.op-meta a:hover { color: var(--orange); text-decoration-color: currentColor; }
.empty { padding: 26px; text-align: center; color: var(--slate); font-size: 13px; grid-column: 1 / -1; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  text-align: left; padding: 11px 20px; font-size: 11.5px; font-weight: 500; color: var(--slate);
  background: var(--paper); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 13px 20px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--paper); }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .pos { color: var(--success); }
.data-table .neg { color: var(--coral); }
.data-table .muted { color: var(--slate); }
.data-table .ev-text { display: block; color: var(--ink); }
.data-table .ev-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--stone); white-space: nowrap; }
.cell-asset strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cell-asset span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--stone); }
.kind-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 3px 9px; font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--pebble); color: var(--slate); }
.kind-pill.listing { color: var(--success); background: var(--success-soft); }
.kind-pill.delisting { color: var(--coral); background: var(--coral-soft); }
.kind-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.src-link { font-size: 12px; color: var(--orange); font-weight: 500; white-space: nowrap; }
.mini-link {
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 5px;
  padding: 4px 9px; font-size: 11.5px; font-weight: 500; color: var(--carbon); background: var(--card);
}
.mini-link:hover { border-color: var(--orange); color: var(--orange); }
.mini-link.primary { border-color: var(--orange); background: var(--orange); color: #ffffff; }

/* ---------- charts ---------- */
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- teasers / feature cards ---------- */
.teaser-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.teaser-card { border: 1px solid var(--border); border-radius: 8px; background: var(--paper); padding: 14px 16px; display: grid; gap: 4px; transition: border-color .15s ease, background .15s ease; }
.teaser-card:hover { border-color: var(--orange); background: var(--card); }
.teaser-card strong { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.teaser-card span { font-size: 11px; color: var(--stone); line-height: 1.4; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat-card { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); padding: 18px; display: grid; gap: 8px; align-content: start; }
.feat-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feat-card strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.feat-card span.desc { font-size: 12.5px; color: var(--slate); line-height: 1.5; }
.feat-card .src-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--stone); }

.pending-note {
  border: 1px dashed var(--border); border-radius: 10px; background: var(--paper); padding: 28px;
  text-align: center; color: var(--slate); display: grid; gap: 10px; justify-items: center;
}
.pending-note strong { color: var(--ink); font-size: 14.5px; }
.pending-note span { font-size: 13px; line-height: 1.5; max-width: 520px; }
.cta-link {
  display: inline-flex; align-items: center; min-height: 36px; border-radius: 6px; padding: 8px 18px;
  background: var(--orange); color: #ffffff; font-size: 13px; font-weight: 500;
}
.cta-link.ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.cta-link.ghost:hover { border-color: var(--orange); color: var(--orange); }

.errors {
  display: none; margin-bottom: 16px; border: 1px solid var(--coral); border-radius: 8px;
  background: var(--coral-soft); color: var(--coral); padding: 12px 16px; font-size: 13px; line-height: 1.5;
}

/* ---------- mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 1180px) {
  .hl-grid, .teaser-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .two-col { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { padding: 0; }
  .app-shell { grid-template-columns: 1fr; border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
    background: var(--card);
  }
  .mobile-bar .mb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mobile-bar .mb-mark { width: 32px; height: 32px; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
  .mobile-bar .mb-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mobile-bar strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .mb-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .menu-toggle {
    width: 38px; height: 34px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper);
    color: var(--ink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle::before, .menu-toggle::after {
    content: ""; display: block; width: 16px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .18s ease, opacity .18s ease;
  }
  body.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-toggle span { opacity: 0; }
  body.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

  .sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px; gap: 0; }
  body.menu-open .sidebar { display: flex; }
  .side-brand, .side-foot { display: none; }

  /* The desktop filter bar uses a flex spacer to push the mode pills right; on a
     phone that collapses and the two groups run together, so break the line. */
  .panel-tools > span[style*="flex:1"] { flex-basis: 100%; height: 0; }
  .workspace { padding: 20px 16px 32px; }
  .ws-head h1 { font-size: 20px; }
  .ws-head p { font-size: 13.5px; }
  .ws-divider { margin: 18px 0; }
  .panel { margin-top: 18px; border-radius: 10px; }
  .panel-head { padding: 14px 16px; }
  .panel-body { padding: 14px 16px; }
  .hl-grid, .teaser-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-grid, .op-grid.wide { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 11px 16px; }
}
@media (max-width: 560px) {
  .hl-grid, .teaser-row { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 12px 13px; }
  .metric .m-value { font-size: 18px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .panel-tools { justify-content: flex-start; }
  .ws-head h1 { font-size: 19px; letter-spacing: -.015em; }
  .op-value { font-size: 20px; }
  .hl-value { font-size: 19px; }
}

/* ============================================================
   Landing page - the front door for first-time visitors.
   Deliberately NOT the dashboard shell: no sidebar, bigger type,
   more air, plain language. The app lives at /board.
   ============================================================ */
body.landing { padding: 0; background: var(--card); }
.lp-wrap { width: min(1120px, calc(100vw - 40px)); margin: 0 auto; }

.lp-nav {
  position: sticky; top: 0; z-index: 30; background: var(--card);
  border-bottom: 1px solid var(--border);
}
.lp-nav .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand img { width: 34px; height: 34px; border-radius: 999px; display: block; }
.lp-brand strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lp-nav-links { display: flex; align-items: center; gap: 4px; }
.lp-nav-links a { padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--carbon); }
.lp-nav-links a:hover { color: var(--ink); background: var(--paper); }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 11px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: #ffffff; border: 1px solid var(--orange); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }

.lp-hero { background: var(--paper); border-bottom: 1px solid var(--border); padding: 84px 0 72px; text-align: center; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-size: 13px; color: var(--carbon);
}
.lp-badge .pip { width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.lp-h1 {
  margin: 0 auto; max-width: 15ch; font-size: clamp(38px, 5.6vw, 62px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.035em; color: var(--ink);
}
.lp-h1 .accent { color: var(--orange); }
.lp-sub { margin: 22px auto 0; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--slate); }
.lp-cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.lp-note { margin-top: 16px; font-size: 13px; color: var(--stone); }

.lp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.lp-proof > div { padding: 22px 20px; border-right: 1px solid var(--border); }
.lp-proof > div:last-child { border-right: 0; }
.lp-proof .p-val { font-family: var(--font-mono); font-size: 27px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.lp-proof .p-lab { margin-top: 5px; font-size: 13px; color: var(--slate); }

.lp-section { padding: 76px 0; border-bottom: 1px solid var(--border); }
.lp-section.tinted { background: var(--paper); }
.lp-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.lp-h2 { margin: 12px 0 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.lp-lead { margin: 14px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: var(--slate); }
.lp-section-head { margin-bottom: 40px; }

.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-card {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 26px;
  display: grid; gap: 10px; align-content: start; box-shadow: var(--panel-shadow);
  transition: border-color .15s ease;
}
.lp-card:hover { border-color: var(--orange); }
.lp-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); display: grid; place-items: center; margin-bottom: 4px; }
.lp-card .ic svg { width: 19px; height: 19px; stroke: var(--orange); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.lp-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate); }
.lp-card .go { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--orange); }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-step { display: grid; gap: 10px; align-content: start; }
.lp-step .n {
  width: 34px; height: 34px; border-radius: 999px; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600;
}
.lp-step h3 { margin: 4px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); }

.lp-live { border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: var(--panel-shadow); }
.lp-live-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--hair); }
.lp-live-head strong { font-size: 15px; font-weight: 600; }
.lp-live-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--hair); }
.lp-live-row:last-child { border-bottom: 0; }
.lp-live-row .who { display: grid; gap: 3px; min-width: 0; }
.lp-live-row .who strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.lp-live-row .who span { font-size: 13px; color: var(--slate); }
.lp-live-row .val { font-family: var(--font-mono); font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.lp-live-row .val.pos { color: var(--success); }
.lp-live-row .val.neg { color: var(--coral); }

.lp-faq { display: grid; gap: 10px; max-width: 820px; }
.lp-faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.lp-faq summary {
  padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 20px; color: var(--stone); line-height: 1; }
.lp-faq details[open] summary::after { content: "\2013"; }
.lp-faq .a { padding: 0 20px 18px; font-size: 15px; line-height: 1.65; color: var(--slate); }

.lp-final { padding: 84px 0; text-align: center; background: var(--paper); border-bottom: 1px solid var(--border); }
.lp-footer { padding: 30px 0 40px; }
.lp-footer .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--stone); }
.lp-footer a { color: var(--carbon); }
.lp-footer a:hover { color: var(--orange); }
.lp-foot-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .lp-cards, .lp-steps { grid-template-columns: 1fr; }
  .lp-proof { grid-template-columns: 1fr; }
  .lp-proof > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .lp-proof > div:last-child { border-bottom: 0; }
  .lp-nav-links { display: none; }
  .lp-hero { padding: 56px 0 48px; }
  .lp-section, .lp-final { padding: 52px 0; }
  .lp-sub { font-size: 16.5px; }
  .lp-live-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   Board polish pass - calmer fintech palette, stronger spacing,
   clearer hierarchy, and mobile menu that behaves like an app.
   ============================================================ */

:root,
[data-theme="light"] {
  --desk: #ffffff;
  --card: #ffffff;
  --paper: #f7f8fa;
  --pebble: #f0f2f5;
  --border: #e5e7eb;
  --hair: #f0f1f3;
  --ink: #17151f;
  --carbon: #363241;
  --slate: #6c6778;
  --stone: #928c9a;
  --fog: #b8b0bd;
  --orange: #f35b22;
  --orange-soft: #fff1ea;
  --success: #07885f;
  --success-soft: #e9f7f0;
  --coral: #e94863;
  --coral-soft: #fff0f3;
  --amber: #c47a15;
  --amber-soft: #fff3dd;
  --track: #eceff3;
  --panel-shadow: rgba(15, 23, 42, .04) 0 1px 2px, rgba(15, 23, 42, .04) 0 8px 22px;
  --shell-shadow: rgba(15, 23, 42, .06) 0 12px 40px;
  --pop-shadow: rgba(26, 22, 38, .16) 0 14px 34px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --desk: #000000;
  --card: #050505;
  --paper: #0b0c0f;
  --pebble: #121418;
  --border: #20242c;
  --hair: #15181f;
  --ink: #f7f8fb;
  --carbon: #dfe3ea;
  --slate: #a5a0b0;
  --stone: #827d8e;
  --fog: #5c5967;
  --orange: #ff7a3d;
  --orange-soft: rgba(255, 122, 61, .16);
  --success: #22d084;
  --success-soft: rgba(34, 208, 132, .13);
  --coral: #ff5f78;
  --coral-soft: rgba(255, 95, 120, .14);
  --amber: #f0ae3f;
  --amber-soft: rgba(240, 174, 63, .14);
  --track: #242937;
  --panel-shadow: rgba(0, 0, 0, .28) 0 12px 34px;
  --shell-shadow: none;
  --pop-shadow: rgba(0, 0, 0, .66) 0 16px 40px;
}

html { background: var(--desk); }
body {
  background: var(--desk);
  line-height: 1.5;
}

.app-shell {
  width: min(1680px, calc(100vw - 28px));
  min-height: calc(100dvh - 34px);
  border-radius: 18px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 15px 18px;
  gap: 20px;
  background: color-mix(in srgb, var(--card) 92%, var(--paper));
}

.side-brand {
  gap: 10px;
  padding: 3px 8px 16px;
}

.side-brand strong,
.mobile-bar strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.side-brand > span > span {
  color: var(--slate);
  font-size: 10.5px;
}

.side-label {
  margin: 12px 0 5px;
  color: var(--stone);
  letter-spacing: .08em;
}

.side-link {
  min-height: 36px;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--slate);
  transition: background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out), border-color .18s var(--ease-out);
}

.side-link:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(2px);
}

.side-link.active {
  background: var(--orange-soft);
  color: var(--ink);
}

.side-link.active svg { stroke: var(--orange); }

.side-link.soon::after {
  border-radius: 999px;
  background: var(--card);
}

.side-foot {
  padding-top: 14px;
  color: var(--slate);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card);
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}

.theme-toggle:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.workspace {
  padding: clamp(22px, 2.4vw, 38px);
}

.ws-head {
  display: grid;
  gap: 7px;
  max-width: 760px;
}

.ws-head h1 {
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.045em;
}

.ws-head p {
  margin: 0;
  max-width: 620px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: var(--slate);
}

.ws-divider {
  margin: clamp(18px, 2vw, 28px) 0;
  background: linear-gradient(90deg, var(--border), transparent);
}

.toolbar-label {
  margin-bottom: 11px;
  color: var(--carbon);
  font-weight: 650;
}

.metric-row {
  gap: 10px;
}

.metric {
  min-height: 78px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--card), var(--paper));
  padding: 14px 15px;
  gap: 6px;
  box-shadow: rgba(30, 26, 20, .03) 0 1px 0 inset;
}

.metric .m-label {
  color: var(--slate);
  font-size: 12px;
}

.metric .m-value {
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -.04em;
}

.source-strip {
  margin-top: 10px;
  gap: 6px;
}

.source-strip .src {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--card);
  padding: 4px 9px;
}

.panel {
  margin-top: clamp(16px, 1.6vw, 24px);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 94%, var(--paper));
  box-shadow: var(--panel-shadow);
}

.panel-head {
  padding: 17px 19px;
  gap: 14px;
}

.panel-head h2 {
  font-size: clamp(15px, 1vw, 18px);
  letter-spacing: -.025em;
  font-weight: 700;
}

.panel-head p {
  margin-top: 4px;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.5;
}

.panel-head .head-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--orange-soft);
  color: var(--orange);
}

.panel-body {
  padding: 17px 19px 19px;
}

.hl-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.hl-card,
.op-card,
.teaser-card {
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.hl-card {
  min-height: 112px;
  padding: 14px;
  gap: 6px;
}

.hl-card:not(.soon):hover,
.op-card:hover,
.teaser-card:hover {
  border-color: color-mix(in srgb, var(--orange) 54%, var(--border));
  background: var(--card);
  transform: translateY(-1px);
  box-shadow: rgba(30, 26, 20, .06) 0 7px 18px;
}

[data-theme="dark"] .hl-card:not(.soon):hover,
[data-theme="dark"] .op-card:hover,
[data-theme="dark"] .teaser-card:hover {
  box-shadow: rgba(0, 0, 0, .24) 0 10px 26px;
}

.hl-label,
.op-tag,
.source-strip .lbl {
  letter-spacing: .075em;
}

.hl-title,
.op-title {
  letter-spacing: -.02em;
}

.hl-value,
.op-value,
.data-table .num,
.metric .m-value,
.status-chip {
  font-variant-numeric: tabular-nums;
}

.op-grid {
  gap: 10px;
}

.op-card {
  position: relative;
  padding: 13px 14px;
  gap: 7px;
}

.op-tag {
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
}

.op-sub {
  color: var(--slate);
}

.op-title {
  font-size: 14px;
}

.op-value {
  font-size: 17px;
}

.op-bar {
  height: 4px;
}

.op-bar > span {
  background: linear-gradient(90deg, var(--orange), color-mix(in srgb, var(--orange) 62%, var(--success)));
  transition: width .26s var(--ease-out);
}

/* ---------- TWAP visual grouping ---------- */
.twap-group-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 1px;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.twap-group-label small {
  font-size: 10px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .04em;
  text-transform: none;
}

.twap-group-label.muted {
  margin-top: 14px;
  color: var(--slate);
}

.twap-group-label.muted small {
  color: var(--stone);
}

.asset-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.asset-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
  color: var(--ink);
  overflow: hidden;
}

.asset-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
}

.asset-logo.real .asset-logo-placeholder {
  display: none;
}

.asset-logo.real.fallback .asset-logo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.asset-logo-placeholder svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.asset-logo.token {
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .7), transparent 26%),
    linear-gradient(135deg, rgba(255, 89, 35, .92), rgba(32, 21, 15, .92));
  color: #fff;
}

.asset-logo.token.real {
  padding: 1px;
  background: #fff;
}

.asset-logo.token.real img {
  border-radius: 999px;
}

.asset-logo.stock {
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 89, 35, .12), rgba(255, 255, 255, .02)),
    var(--paper);
  color: var(--orange);
}

.asset-logo.stock.real {
  padding: 2px;
  background: #fff;
}

.asset-logo.stock.real img {
  border-radius: 5px;
  object-fit: contain;
}

.twap-card {
  overflow: hidden;
}

.twap-card.twap-large {
  border-color: var(--border);
  box-shadow: rgba(15, 23, 42, .055) 0 5px 16px;
}

.twap-card.twap-large.side-buy {
  border-color: color-mix(in srgb, var(--success) 38%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success-soft) 72%, transparent), transparent 68%),
    var(--paper);
}

.twap-card.twap-large.side-sell {
  border-color: color-mix(in srgb, var(--coral) 38%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--coral-soft) 72%, transparent), transparent 68%),
    var(--paper);
}

.twap-card.side-buy .op-bar > span {
  background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 58%, var(--amber)));
}

.twap-card.side-sell .op-bar > span {
  background: linear-gradient(90deg, var(--coral), color-mix(in srgb, var(--coral) 66%, var(--amber)));
}

.twap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.twap-foot .op-meta {
  min-width: 0;
  text-align: right;
}

.twap-size-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
}

.twap-size-pill.muted {
  background: var(--pebble);
  color: var(--slate);
}

[data-theme="dark"] .asset-logo.stock {
  background:
    linear-gradient(135deg, rgba(255, 89, 35, .2), rgba(255, 255, 255, .03)),
    var(--paper);
}

[data-theme="dark"] .twap-card.twap-large {
  box-shadow: rgba(0, 0, 0, .28) 0 8px 22px;
}

[data-theme="dark"] .twap-card.twap-large.side-buy {
  border-color: color-mix(in srgb, var(--success) 42%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success-soft) 82%, transparent), transparent 70%),
    var(--paper);
}

[data-theme="dark"] .twap-card.twap-large.side-sell {
  border-color: color-mix(in srgb, var(--coral) 42%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--coral-soft) 82%, transparent), transparent 70%),
    var(--paper);
}

@media (max-width: 560px) {
  .twap-group-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .twap-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .twap-foot .op-meta {
    text-align: left;
  }
}

.data-table th {
  padding: 10px 16px;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 16px;
}

.kind-pill,
.mini-link,
.filter-pill,
.table-action,
.cta-link {
  min-height: 32px;
  border-radius: 999px;
}

.filter-pill,
.table-action,
.mini-link {
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}

.filter-pill:hover,
.table-action:hover,
.mini-link:hover {
  transform: translateY(-1px);
}

.empty {
  border-radius: var(--radius-md);
  background: var(--paper);
}

.teaser-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.teaser-card {
  min-height: 88px;
  padding: 13px 14px;
}

.teaser-card strong {
  font-size: 12.5px;
}

.teaser-card span {
  font-size: 11.5px;
}

@media (min-width: 901px) {
  .nav-collapsed .app-shell { grid-template-columns: 66px minmax(0, 1fr); }
  .nav-collapsed .sidebar {
    width: 66px;
    padding: 24px 13px 18px;
  }
  .nav-collapsed .sidebar:hover {
    width: 250px;
    padding: 24px 15px 18px;
  }
  .nav-collapsed .side-brand,
  .nav-collapsed .sidebar:hover .side-brand {
    position: relative;
    min-height: 68px;
    padding: 3px 0 13px;
    gap: 0;
    align-content: start;
  }
  .nav-collapsed .brand-mark,
  .nav-collapsed .sidebar:hover .brand-mark {
    width: 40px;
    height: 40px;
  }
  .nav-collapsed .side-brand > span:not(.brand-mark),
  .nav-collapsed .sidebar:hover .side-brand > span:not(.brand-mark) {
    position: absolute;
    top: 45px;
    left: 8px;
    right: 8px;
    max-height: 18px;
    pointer-events: none;
  }
  .nav-collapsed .side-brand strong {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-collapsed .side-brand > span > span {
    display: none;
  }
  .nav-collapsed .side-link,
  .nav-collapsed .sidebar:hover .side-link {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nav-collapsed .app-shell::after {
    inset: 0 0 0 66px;
    backdrop-filter: blur(1px);
  }
  .nav-collapsed .sidebar:not(:hover) .side-top .theme-toggle { right: 3px; }
}

@media (max-width: 900px) {
  body {
    padding: 0;
    background: var(--desk);
  }

  .app-shell {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
  }

  .mobile-bar {
    min-height: calc(56px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(18px);
  }

  .mobile-bar .mb-mark {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card);
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .sidebar {
    display: flex;
    position: fixed;
    z-index: 70;
    top: calc(56px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    max-height: min(70dvh, 620px);
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--pop-shadow);
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    pointer-events: none;
    overflow: auto;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }

  .sidebar .side-top {
    display: none;
  }

  body.menu-open .sidebar {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(16, 14, 23, .34);
    backdrop-filter: blur(4px);
  }

  .side-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    overflow: visible;
  }

  .side-label {
    grid-column: 1 / -1;
    margin: 14px 0 2px;
  }

  .side-link {
    min-height: 42px;
    justify-content: flex-start;
    border: 1px solid var(--border);
    background: var(--paper);
  }

  .side-link.soon::after {
    display: none;
  }

  .workspace {
    padding: 18px 14px 30px;
  }

  .ws-head {
    gap: 8px;
  }

  .ws-head h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .ws-head p {
    font-size: 13.5px;
    line-height: 1.58;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 78px;
    padding: 13px;
  }

  .panel {
    border-radius: 15px;
  }

  .panel-head {
    padding: 15px;
  }

  .panel-body {
    padding: 15px;
  }

  .hl-grid,
  .teaser-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 16px 12px 28px;
  }

  .ws-head h1 {
    font-size: 24px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .panel-head {
    gap: 12px;
  }

  .panel-head .head-link {
    width: max-content;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .hl-card {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Navigation control pass: keep both utility buttons near the top
   so the theme switch is visible in the collapsed desktop rail.
   ============================================================ */
.side-top {
  height: auto;
  min-height: 34px;
  margin-bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-top .theme-toggle {
  position: static;
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}

.side-top .side-theme {
  color: var(--orange);
}

.side-foot {
  justify-content: flex-start;
}

@media (min-width: 901px) {
  .nav-collapsed .side-top,
  .nav-collapsed .sidebar:hover .side-top {
    min-height: 78px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
  }

  .nav-collapsed .sidebar:hover .side-top {
    display: flex;
    justify-content: space-between;
  }

  .nav-collapsed .sidebar:not(:hover) .side-top .theme-toggle {
    right: auto;
  }
}

/* ============================================================
   Bun-inspired landing refresh: deeper contrast, chunkier type,
   code-like live preview, and visible source/broker hooks.
   ============================================================ */
body.landing {
  background: #050505;
  color: #f7f7f5;
}

body.landing .lp-nav {
  background: rgba(5, 5, 5, .88);
  border-bottom-color: #242424;
  backdrop-filter: blur(16px);
}

body.landing .lp-brand strong,
body.landing .lp-nav-links a,
body.landing .btn-ghost {
  color: #f3f3ef;
}

body.landing .lp-nav-links a:hover,
body.landing .btn-ghost:hover {
  color: #ff7a3d;
  background: #111111;
}

body.landing .btn-ghost,
body.landing .theme-toggle {
  border-color: #2b2b2d;
  background: #0b0b0c;
}

body.landing .lp-nav-actions .btn-primary,
body.landing .btn-primary {
  border-color: #ff5a1f;
  background: #ff5a1f;
  color: #fffaf7;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22);
}

body.landing .lp-wrap {
  width: min(1400px, calc(100vw - 56px));
}

body.landing .lp-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 68px);
  padding: clamp(70px, 9vw, 128px) 0 clamp(52px, 7vw, 92px);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255, 90, 31, .13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at 24% 26%, rgba(255, 90, 31, .2), transparent 34%),
    #050505;
  background-size: 76px 76px, 76px 76px, auto, auto;
  border-bottom-color: #232323;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

body.landing .lp-badge {
  margin-bottom: 28px;
  border-radius: 0;
  border-color: #303033;
  background: #0c0c0d;
  color: #b8b8b4;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

body.landing .lp-h1 {
  max-width: 11.5ch;
  margin: 0;
  color: #f5f3ee;
  font-size: clamp(58px, 8.3vw, 128px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: 0;
}

body.landing .lp-h1 .accent {
  color: #ff5a1f;
  text-shadow: 0 0 36px rgba(255, 90, 31, .26);
}

body.landing .lp-sub {
  margin: 28px 0 0;
  max-width: 64ch;
  color: #b6b1ac;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.58;
}

body.landing .lp-cta-row {
  justify-content: flex-start;
}

body.landing .lp-note {
  color: #85827c;
}

.hero-terminal {
  border: 1px solid #2b2b2d;
  background: linear-gradient(180deg, #161618, #080809);
  box-shadow: rgba(0, 0, 0, .48) 0 24px 70px, inset 0 1px 0 rgba(255, 255, 255, .04);
  min-height: 430px;
  padding: 0;
  transform: rotate(-1deg);
}

.terminal-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-bottom: 1px solid #2a2a2c;
  background: #1f1f20;
  color: #a4a19c;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6e6e6c;
}

.term-dot.hot {
  background: #ff5a1f;
}

.terminal-top strong {
  margin-left: auto;
  color: #e6e3df;
  font-weight: 600;
}

.term-line {
  display: flex;
  gap: 12px;
  padding: 30px 26px 18px;
  color: #e8e4df;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.1vw, 18px);
}

.term-line .cmd {
  color: #ff5a1f;
  font-weight: 700;
}

.term-table {
  display: grid;
  margin: 10px 26px;
  border: 1px solid #28282a;
}

.term-table div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid #28282a;
  font-family: var(--font-mono);
}

.term-table div:last-child {
  border-bottom: 0;
}

.term-table span {
  color: #8a8581;
}

.term-table strong {
  color: #f0eee9;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.term-table .pos {
  color: #22d084;
}

.term-table .warn {
  color: #ffc247;
}

.term-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 28px 26px 30px;
}

.term-bars i {
  height: 52px;
  border: 1px solid #29292b;
  background: linear-gradient(180deg, rgba(255, 90, 31, .72), rgba(255, 90, 31, .1));
}

.term-bars i:nth-child(2n) {
  height: 34px;
  align-self: end;
  background: linear-gradient(180deg, rgba(34, 208, 132, .65), rgba(34, 208, 132, .08));
}

.term-bars i:nth-child(3n) {
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 194, 71, .72), rgba(255, 194, 71, .08));
}

.logo-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(34px, 5vw, 72px);
  border: 1px solid #28282a;
  background: rgba(8, 8, 9, .78);
  overflow-x: auto;
}

.logo-strip a {
  min-height: 70px;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid #28282a;
  color: #ddd9d4;
  font-weight: 700;
}

.logo-strip a:last-child {
  border-right: 0;
}

.logo-strip a:hover {
  background: #111112;
  color: #fff;
}

.logo-chip {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #343437;
  background: #121214;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.logo-chip.trade { color: #ff5a1f; }
.logo-chip.hyper { color: #22d084; }
.logo-chip.ibkr { color: #80bfff; }

body.landing .lp-proof {
  margin-top: clamp(32px, 4vw, 54px);
  border-radius: 0;
  border-color: #28282a;
  background: #080809;
}

body.landing .lp-proof > div {
  border-right-color: #28282a;
}

body.landing .lp-proof .p-val {
  color: #ff5a1f;
  font-size: clamp(24px, 2.5vw, 38px);
}

body.landing .lp-proof .p-lab {
  color: #9c9792;
}

body.landing .lp-section,
body.landing .lp-final,
body.landing .lp-footer {
  background: #050505;
  border-bottom-color: #232323;
}

body.landing .lp-section.tinted,
body.landing .lp-final {
  background: #090909;
}

body.landing .lp-eyebrow {
  color: #ff5a1f;
}

body.landing .lp-h2 {
  color: #f4f1ec;
  font-weight: 800;
  letter-spacing: 0;
}

body.landing .lp-lead,
body.landing .lp-card p,
body.landing .lp-step p,
body.landing .lp-faq .a,
body.landing .lp-live-row .who span {
  color: #aaa5a0;
}

body.landing .lp-card,
body.landing .lp-step,
body.landing .lp-live,
body.landing .lp-faq details {
  border-radius: 0;
  border-color: #28282a;
  background: #0b0b0c;
  box-shadow: none;
}

body.landing .lp-card {
  min-height: 270px;
}

body.landing .lp-card .ic {
  border-radius: 0;
  border: 1px solid #343437;
  background: #111112;
}

body.landing .lp-card h3,
body.landing .lp-step h3,
body.landing .lp-live-head strong,
body.landing .lp-live-row .who strong,
body.landing .lp-faq summary {
  color: #f4f1ec;
}

body.landing .lp-card:hover,
body.landing .lp-faq details[open] {
  border-color: #ff5a1f;
}

body.landing .lp-live-head,
body.landing .lp-live-row {
  border-bottom-color: #242426;
}

body.landing .lp-footer .lp-wrap,
body.landing .lp-footer a {
  color: #918c86;
}

body.landing .lp-footer a:hover {
  color: #ff5a1f;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    transform: none;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  body.landing .lp-wrap {
    width: min(100% - 28px, 680px);
  }

  body.landing .lp-hero {
    min-height: auto;
    padding: 46px 0 42px;
  }

  body.landing .lp-h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  body.landing .lp-sub {
    font-size: 16px;
  }

  .term-table div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .logo-strip {
    margin-top: 28px;
  }
}

/* ============================================================
   Humanized landing pass: quieter hero, more breathing room,
   and a dashboard snapshot instead of a synthetic terminal.
   ============================================================ */
body.landing .lp-hero {
  min-height: auto;
  padding: clamp(74px, 9vw, 128px) 0 clamp(76px, 9vw, 132px);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 90, 31, .13), transparent 30%),
    linear-gradient(180deg, #050505 0%, #080808 100%);
  background-size: auto;
}

body.landing .lp-wrap {
  width: min(1320px, calc(100vw - 72px));
}

.hero-grid {
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  gap: clamp(58px, 7vw, 112px);
}

body.landing .lp-badge {
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .11);
}

body.landing .lp-h1 {
  max-width: 14ch;
  font-size: clamp(30px, 3.9vw, 58px);
  line-height: 1.02;
  font-weight: 760;
  color: #f2eee8;
}

body.landing .lp-sub {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(16px, 1.08vw, 18px);
  color: #bdb7b0;
}

body.landing .lp-cta-row {
  margin-top: 30px;
}

body.landing .lp-note {
  margin-top: 18px;
}

.hero-dashboard {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: linear-gradient(180deg, #111214, #070708);
  box-shadow: rgba(0, 0, 0, .44) 0 30px 80px, inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .55;
}

.dash-top,
.dash-stats,
.dash-table,
.dash-foot {
  position: relative;
  z-index: 1;
}

.dash-top {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dash-kicker {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f8984;
}

.dash-top strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: #f4f0ea;
}

.dash-live {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 7px 12px;
  color: #c9c2ba;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  background: rgba(0, 0, 0, .26);
}

.dash-live i,
.dash-foot .ok {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  background: #22d084;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 26px;
}

.dash-stats div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  padding: 14px 16px;
}

.dash-stats span,
.dash-row small,
.dash-row.head {
  color: #8f8984;
}

.dash-stats span {
  font-size: 12px;
}

.dash-stats strong {
  font-family: var(--font-mono);
  font-size: 24px;
  color: #f5f1ec;
  font-variant-numeric: tabular-nums;
}

.dash-stats .pos,
.dash-row .pos {
  color: #22d084;
}

.dash-table {
  margin: 0 26px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, .18);
}

.dash-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(150px, .9fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #d6d0c8;
}

.dash-row:last-child {
  border-bottom: 0;
}

.dash-row.head {
  padding-top: 11px;
  padding-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255, 255, 255, .035);
}

.dash-row.signal {
  box-shadow: inset 3px 0 0 #22d084;
}

.dash-row.watch {
  box-shadow: inset 3px 0 0 #ffc247;
}

.dash-row b {
  display: block;
  margin-bottom: 3px;
  color: #f2eee8;
  font-size: 14px;
}

.dash-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dash-row strong {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.dash-row .warn {
  color: #ffc247;
}

.dash-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 26px 26px;
  color: #a9a29a;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dash-foot span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .03);
}

.dash-foot .blue {
  background: #80bfff;
}

.dash-foot .amber {
  background: #ffc247;
}

body.landing .lp-proof {
  margin-top: clamp(58px, 7vw, 104px);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.logo-strip {
  margin-top: clamp(24px, 3.5vw, 42px);
  border-radius: 16px;
}

.logo-strip a {
  min-width: 0;
  flex: 1 1 0;
}

body.landing .lp-section {
  padding: clamp(96px, 10vw, 150px) 0;
}

body.landing .lp-section.tinted {
  padding-top: clamp(104px, 11vw, 164px);
  padding-bottom: clamp(104px, 11vw, 164px);
}

body.landing .lp-section-head {
  margin-bottom: clamp(46px, 5vw, 76px);
}

body.landing .lp-cards {
  gap: 22px;
}

body.landing .lp-card {
  min-height: 0;
  padding: clamp(28px, 3vw, 38px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}

body.landing .lp-card .ic {
  border-radius: 12px;
}

body.landing .lp-live {
  border-radius: 18px;
}

body.landing .lp-live-row {
  padding-top: 18px;
  padding-bottom: 18px;
}

body.landing .lp-steps {
  gap: 28px;
}

body.landing .lp-step {
  padding-top: 8px;
}

body.landing .lp-final {
  padding: clamp(104px, 10vw, 156px) 0;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  body.landing .lp-wrap {
    width: min(100% - 30px, 680px);
  }

  body.landing .lp-hero {
    padding: 52px 0 70px;
  }

  body.landing .lp-h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.05;
  }

  .hero-dashboard {
    border-radius: 16px;
  }

  .dash-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px 16px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .dash-stats div {
    min-height: 72px;
  }

  .dash-table {
    margin: 0 18px 16px;
  }

  .dash-row,
  .dash-row.head {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dash-row.head {
    display: none;
  }

  .dash-row strong {
    justify-self: start;
  }

  .dash-foot {
    padding: 0 18px 20px;
  }

  body.landing .lp-proof,
  .logo-strip {
    border-radius: 14px;
  }

  .logo-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logo-strip a {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid #28282a;
  }

  .logo-strip a:last-child {
    border-bottom: 0;
  }

  body.landing .lp-section,
  body.landing .lp-section.tinted,
  body.landing .lp-final {
    padding-top: 78px;
    padding-bottom: 78px;
  }
}

/* ============================================================
   Landing 3D dashboard pass: turn the hero preview into a
   dimensional product object while keeping mobile flat.
   ============================================================ */
.hero-3d-stage {
  position: relative;
  isolation: isolate;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-3d-stage::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 3%;
  bottom: -34px;
  height: 88px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0) 68%),
    radial-gradient(ellipse at 24% 46%, rgba(255, 90, 31, .2), rgba(255, 90, 31, 0) 46%);
  filter: blur(18px);
  opacity: .82;
  transform: rotateX(72deg) translateZ(-92px);
  z-index: -2;
}

.hero-3d-stage::after {
  content: "";
  position: absolute;
  inset: 7% -18px 11% auto;
  width: 78px;
  border-radius: 0 22px 22px 0;
  background:
    linear-gradient(90deg, rgba(255, 90, 31, .26), rgba(5, 5, 5, .94) 62%),
    linear-gradient(180deg, rgba(34, 208, 132, .16), rgba(128, 191, 255, .12));
  opacity: .74;
  transform: rotateY(-35deg) translateZ(-44px);
  transform-origin: left center;
  z-index: -1;
}

.hero-3d-stage .hero-dashboard {
  overflow: visible;
  transform: rotateX(8deg) rotateY(-13deg) rotateZ(.7deg);
  transform-style: preserve-3d;
  transform-origin: 42% 54%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #121315 0%, #050505 100%);
  box-shadow:
    rgba(0, 0, 0, .74) 44px 54px 110px,
    rgba(255, 90, 31, .16) -18px -10px 60px,
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset -22px -16px 42px rgba(0, 0, 0, .36);
}

.hero-3d-stage .hero-dashboard::before {
  border-radius: inherit;
  transform: translateZ(2px);
  opacity: .42;
}

.hero-3d-stage .hero-dashboard::after {
  content: "";
  position: absolute;
  inset: 20px -22px -24px 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 90, 31, .22), rgba(0, 0, 0, .92) 34%, rgba(0, 0, 0, .98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  transform: translateZ(-48px);
  z-index: -1;
}

.hero-3d-stage .dash-top,
.hero-3d-stage .dash-stats,
.hero-3d-stage .dash-table,
.hero-3d-stage .dash-foot {
  transform-style: preserve-3d;
}

.hero-3d-stage .dash-top {
  transform: translateZ(34px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
}

.hero-3d-stage .dash-live,
.hero-3d-stage .dash-stats div,
.hero-3d-stage .dash-table,
.hero-3d-stage .dash-foot span {
  box-shadow:
    rgba(0, 0, 0, .32) 0 14px 30px,
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-3d-stage .dash-stats {
  transform: translateZ(28px);
}

.hero-3d-stage .dash-stats div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.hero-3d-stage .dash-table {
  transform: translateZ(38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .18));
}

.hero-3d-stage .dash-row {
  background: rgba(255, 255, 255, .012);
}

.hero-3d-stage .dash-row.signal,
.hero-3d-stage .dash-row.watch {
  position: relative;
}

.hero-3d-stage .dash-row.signal::after,
.hero-3d-stage .dash-row.watch::after {
  content: "";
  position: absolute;
  inset: 9px 12px;
  border-radius: 10px;
  pointer-events: none;
  opacity: .08;
  transform: translateZ(-1px);
}

.hero-3d-stage .dash-row.signal::after {
  background: #22d084;
}

.hero-3d-stage .dash-row.watch::after {
  background: #ffc247;
}

.hero-3d-stage .dash-foot {
  transform: translateZ(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-3d-stage .hero-dashboard {
    transition: transform .35s ease, box-shadow .35s ease;
  }

  .hero-3d-stage:hover .hero-dashboard {
    transform: rotateX(7deg) rotateY(-10deg) rotateZ(.4deg) translateY(-3px);
    box-shadow:
      rgba(0, 0, 0, .78) 48px 60px 120px,
      rgba(255, 90, 31, .2) -22px -12px 72px,
      inset 0 1px 0 rgba(255, 255, 255, .13),
      inset -22px -16px 42px rgba(0, 0, 0, .34);
  }
}

@media (max-width: 1080px) {
  .hero-3d-stage {
    max-width: 760px;
    perspective: 900px;
  }
}

@media (max-width: 760px) {
  .hero-3d-stage {
    perspective: none;
  }

  .hero-3d-stage::before,
  .hero-3d-stage::after,
  .hero-3d-stage .hero-dashboard::after {
    display: none;
  }

  .hero-3d-stage .hero-dashboard,
  .hero-3d-stage:hover .hero-dashboard,
  .hero-3d-stage .hero-dashboard::before,
  .hero-3d-stage .dash-top,
  .hero-3d-stage .dash-stats,
  .hero-3d-stage .dash-table,
  .hero-3d-stage .dash-foot {
    transform: none;
  }

  .hero-3d-stage .hero-dashboard {
    overflow: hidden;
    box-shadow:
      rgba(0, 0, 0, .42) 0 24px 70px,
      inset 0 1px 0 rgba(255, 255, 255, .08);
  }
}

/* ============================================================
   Landing mobile + visual consistency pass.
   ============================================================ */
body.landing {
  --landing-radius: 18px;
  --landing-radius-sm: 12px;
}

body.landing .lp-card,
body.landing .lp-step,
body.landing .lp-live,
body.landing .lp-faq details,
body.landing .logo-strip,
body.landing .lp-proof,
body.landing .hero-dashboard {
  border-radius: var(--landing-radius);
}

body.landing .lp-card .ic,
body.landing .lp-faq summary,
body.landing .dash-stats div,
body.landing .dash-table {
  border-radius: var(--landing-radius-sm);
}

.venue-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .14), transparent 28%),
    #121214;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), rgba(0, 0, 0, .18) 0 12px 24px;
}

.venue-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-mark.trade {
  color: #ff6a2a;
}

.venue-mark.hyper {
  color: #22d084;
}

.venue-mark.ibkr {
  color: #80bfff;
}

.hero-3d-stage {
  min-width: 0;
}

.hero-3d-stage::before {
  left: 16%;
  right: 12%;
  bottom: -46px;
  height: 76px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 70%),
    radial-gradient(ellipse at 34% 48%, rgba(255, 90, 31, .14), rgba(255, 90, 31, 0) 52%);
  filter: blur(20px);
  opacity: .7;
}

.hero-3d-stage .hero-dashboard {
  max-width: 100%;
  transform: rotateX(6deg) rotateY(-8deg) rotateZ(.45deg);
  box-shadow:
    rgba(0, 0, 0, .62) 28px 42px 82px,
    rgba(255, 90, 31, .12) -14px -8px 44px,
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset -18px -12px 34px rgba(0, 0, 0, .32);
}

.hero-3d-stage .hero-dashboard::after {
  inset: 16px -16px -18px 16px;
  transform: translateZ(-34px);
  opacity: .72;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-3d-stage:hover .hero-dashboard {
    transform: rotateX(5deg) rotateY(-6deg) rotateZ(.25deg) translateY(-2px);
  }
}

@media (max-width: 1080px) {
  .hero-3d-stage .hero-dashboard,
  .hero-3d-stage:hover .hero-dashboard {
    transform: none;
  }

  .hero-3d-stage::before,
  .hero-3d-stage::after,
  .hero-3d-stage .hero-dashboard::after {
    display: none;
  }

  .hero-3d-stage .hero-dashboard {
    overflow: hidden;
    box-shadow:
      rgba(0, 0, 0, .38) 0 22px 58px,
      inset 0 1px 0 rgba(255, 255, 255, .08);
  }
}

@media (max-width: 760px) {
  body.landing .lp-wrap {
    width: min(100% - 32px, 620px);
  }

  body.landing .lp-nav {
    position: sticky;
  }

  body.landing .lp-nav .lp-wrap {
    min-height: 58px;
    gap: 10px;
  }

  body.landing .lp-brand img {
    width: 30px;
    height: 30px;
  }

  body.landing .lp-brand strong {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  body.landing .lp-nav-actions {
    gap: 6px;
  }

  body.landing .lp-nav-actions .btn-primary {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 12px;
  }

  body.landing .theme-toggle {
    width: 38px;
    height: 38px;
  }

  body.landing .lp-hero {
    padding: 34px 0 54px;
  }

  body.landing .hero-grid {
    gap: 28px;
  }

  body.landing .lp-badge {
    margin-bottom: 16px;
    font-size: 11px;
  }

  body.landing .lp-h1 {
    max-width: 12ch;
    font-size: clamp(30px, 9.6vw, 42px);
  }

  body.landing .lp-sub {
    margin-top: 16px;
    font-size: 15.5px;
    line-height: 1.56;
  }

  body.landing .lp-cta-row {
    margin-top: 22px;
  }

  body.landing .lp-note {
    margin-top: 12px;
  }

  body.landing .hero-3d-stage {
    margin-top: 4px;
  }

  body.landing .dash-top {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 16px 16px 12px;
  }

  body.landing .dash-kicker {
    font-size: 9.5px;
  }

  body.landing .dash-top strong {
    font-size: 18px;
  }

  body.landing .dash-live {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10px;
  }

  body.landing .dash-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px;
  }

  body.landing .dash-stats div {
    min-height: 62px;
    padding: 10px;
  }

  body.landing .dash-stats span {
    font-size: 10px;
  }

  body.landing .dash-stats strong {
    font-size: clamp(17px, 5vw, 21px);
  }

  body.landing .dash-table {
    margin: 0 16px 16px;
  }

  body.landing .dash-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  body.landing .dash-row.head,
  body.landing .dash-row span:nth-child(2),
  body.landing .dash-row.watch,
  body.landing .dash-foot {
    display: none;
  }

  body.landing .dash-row b {
    font-size: 13px;
  }

  body.landing .dash-row small {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  body.landing .dash-row strong {
    justify-self: end;
    font-size: 13px;
  }

  body.landing .lp-proof {
    margin-top: 34px;
  }

  body.landing .logo-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
    overflow: hidden;
  }

  body.landing .logo-strip a {
    min-height: 58px;
    min-width: 0;
    padding: 12px 14px;
  }

  body.landing .venue-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  body.landing .venue-mark svg {
    width: 22px;
    height: 22px;
  }

  body.landing .lp-section,
  body.landing .lp-section.tinted,
  body.landing .lp-final {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  body.landing .lp-section-head {
    margin-bottom: 28px;
  }

  body.landing .lp-card {
    padding: 22px;
    min-height: 0;
  }

  body.landing .lp-faq {
    gap: 12px;
  }

  body.landing .lp-faq summary {
    padding: 18px;
  }

  body.landing .lp-faq .a {
    padding: 0 18px 18px;
  }
}

@media (max-width: 700px) {
  body.menu-open .sidebar {
    top: auto;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    max-height: min(56dvh, 430px);
    border-radius: 18px;
    transform: translateY(8px) scale(.98);
  }

  body.menu-open .sidebar {
    transform: translateY(0) scale(1);
  }

  body.menu-open::before {
    background: rgba(0, 0, 0, .44);
    backdrop-filter: blur(2px);
  }

  body.menu-open .side-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.menu-open .side-link {
    min-height: 44px;
  }
}

/* Keep the final call-to-action centered. The hero CTA intentionally aligns
   left, but that rule should not leak into the closing section. */
body.landing .lp-final .lp-wrap {
  display: grid;
  justify-items: center;
  text-align: center;
}

body.landing .lp-final .lp-sub {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.landing .lp-final .lp-cta-row {
  justify-content: center;
  width: 100%;
}

@media (max-width: 560px) {
  body.landing .lp-final .lp-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    max-width: 320px;
  }
}

/* ============================================================
   Dark app landing variant: inspired by entertainment app UIs,
   tightened for finance and without cartoon gradients.
   Rollback point: backup-before-dark-app-landing.
   ============================================================ */
body.landing {
  --landing-bg: #050506;
  --landing-panel: #0d0d10;
  --landing-panel-2: #131318;
  --landing-line: rgba(255, 255, 255, .095);
  --landing-muted: #a09ca6;
  --landing-soft: #f5f2ea;
  --landing-accent: #ff4f1f;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 79, 31, .13), transparent 34%),
    linear-gradient(180deg, #050506 0%, #070708 46%, #050506 100%);
}

body.landing .lp-nav {
  background: rgba(5, 5, 6, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: rgba(0, 0, 0, .26) 0 12px 38px;
}

body.landing .lp-brand strong {
  color: #ff372d;
  font-weight: 800;
  letter-spacing: 0;
}

body.landing .lp-nav-links {
  gap: clamp(10px, 1.8vw, 28px);
}

body.landing .lp-nav-links a {
  color: rgba(245, 242, 234, .62);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
}

body.landing .lp-nav-links a:hover {
  color: #f7f3ed;
  background: rgba(255, 255, 255, .07);
}

body.landing .btn-primary {
  border: 0;
  background: linear-gradient(180deg, #ff5b2a, #f23618);
  box-shadow: rgba(255, 79, 31, .32) 0 14px 34px, inset 0 -2px 0 rgba(0, 0, 0, .22);
}

body.landing .btn-ghost {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 242, 234, .86);
}

body.landing .lp-hero {
  overflow: hidden;
  padding-top: clamp(84px, 8vw, 132px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 24% 16%, rgba(255, 79, 31, .16), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(34, 208, 132, .08), transparent 28%),
    #050506;
  background-size: 76px 76px, auto, auto, auto;
}

body.landing .lp-badge {
  border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  color: rgba(245, 242, 234, .72);
}

body.landing .lp-h1 {
  max-width: 12.5ch;
  color: #f7f3ed;
  font-weight: 850;
  letter-spacing: 0;
}

body.landing .lp-h1 .accent {
  color: var(--landing-accent);
  text-shadow: 0 0 36px rgba(255, 79, 31, .28);
}

body.landing .lp-sub {
  color: rgba(245, 242, 234, .66);
}

body.landing .lp-note {
  color: rgba(245, 242, 234, .44);
}

body.landing .logo-strip {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(13, 13, 16, .72);
  box-shadow: rgba(0, 0, 0, .3) 0 20px 52px;
}

body.landing .logo-strip a {
  border-right-color: rgba(255, 255, 255, .09);
  color: rgba(245, 242, 234, .86);
}

body.landing .lp-proof {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(13, 13, 16, .76);
  box-shadow: rgba(0, 0, 0, .24) 0 18px 46px;
}

body.landing .lp-section,
body.landing .lp-section.tinted,
body.landing .lp-final,
body.landing .lp-footer {
  background: #050506;
  border-bottom-color: rgba(255, 255, 255, .08);
}

body.landing .lp-section.tinted,
body.landing .lp-final {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 79, 31, .075), transparent 28%),
    #070708;
}

body.landing .lp-eyebrow {
  color: var(--landing-accent);
  font-weight: 800;
}

body.landing .lp-h2 {
  color: #f7f3ed;
  font-weight: 820;
}

body.landing .lp-lead {
  color: rgba(245, 242, 234, .58);
}

body.landing .lp-card.signal-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: linear-gradient(145deg, #17171c, #09090b);
  box-shadow: rgba(0, 0, 0, .34) 0 24px 58px, inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.landing .lp-card.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .11), transparent 20%),
    linear-gradient(135deg, rgba(255, 79, 31, .82) 0%, rgba(110, 54, 255, .34) 42%, rgba(6, 6, 8, .2) 100%);
  opacity: .72;
}

body.landing .lp-card.signal-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .58));
}

body.landing .lp-card.signal-card > * {
  position: relative;
  z-index: 1;
}

body.landing .lp-card.signal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 31, .46);
  box-shadow: rgba(0, 0, 0, .42) 0 30px 72px, rgba(255, 79, 31, .12) 0 0 54px;
}

body.landing .lp-card.gap-card::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .11), transparent 20%),
    linear-gradient(135deg, rgba(255, 79, 31, .6) 0%, rgba(34, 208, 132, .28) 48%, rgba(8, 8, 10, .16) 100%);
}

body.landing .lp-card.flow-card::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .11), transparent 20%),
    linear-gradient(135deg, rgba(69, 116, 255, .58) 0%, rgba(110, 54, 255, .38) 52%, rgba(8, 8, 10, .16) 100%);
}

body.landing .lp-card.listing-card::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .11), transparent 20%),
    linear-gradient(135deg, rgba(255, 194, 71, .5) 0%, rgba(255, 79, 31, .34) 50%, rgba(8, 8, 10, .16) 100%);
}

body.landing .lp-card.signal-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
}

body.landing .lp-card.signal-card h3 {
  margin-top: auto;
  max-width: 14ch;
  color: #fffaf3;
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.08;
  font-weight: 820;
}

body.landing .lp-card.signal-card p {
  color: rgba(255, 250, 243, .72);
  font-size: 14.5px;
  line-height: 1.52;
}

body.landing .lp-card.signal-card .go {
  color: #fff7ee;
}

body.landing .lp-live,
body.landing .lp-step,
body.landing .lp-faq details {
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: rgba(0, 0, 0, .22) 0 18px 42px;
}

body.landing .lp-faq details {
  border-radius: 18px;
}

body.landing .lp-faq details[open] {
  border-color: rgba(255, 79, 31, .38);
  box-shadow: rgba(255, 79, 31, .08) 0 0 0 1px, rgba(0, 0, 0, .28) 0 18px 46px;
}

/* Dashboard shadow fix: remove the rectangular back plate and replace it
   with rounded depth/shadow that follows the dashboard card. */
.hero-3d-stage::after,
.hero-3d-stage .hero-dashboard::after {
  display: none;
}

.hero-3d-stage::before {
  left: 12%;
  right: 8%;
  bottom: -42px;
  height: 92px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 72%),
    radial-gradient(ellipse at 38% 46%, rgba(255, 79, 31, .18), rgba(255, 79, 31, 0) 56%);
  filter: blur(24px);
  transform: rotateX(70deg) translateZ(-80px);
}

.hero-3d-stage .hero-dashboard {
  border-radius: 24px;
  overflow: hidden;
  filter: drop-shadow(30px 44px 70px rgba(0, 0, 0, .48));
  box-shadow:
    rgba(255, 79, 31, .12) -12px -8px 46px,
    inset 0 1px 0 rgba(255, 255, 255, .13),
    inset -18px -12px 34px rgba(0, 0, 0, .28);
}

@media (max-width: 1080px) {
  .hero-3d-stage .hero-dashboard {
    filter: none;
  }
}

@media (max-width: 760px) {
  body.landing .lp-card.signal-card {
    min-height: 250px;
    border-radius: 20px;
  }

  body.landing .lp-card.signal-card h3 {
    max-width: 15ch;
    font-size: clamp(22px, 7vw, 28px);
  }

  body.landing .lp-card.signal-card p {
    font-size: 14px;
  }
}

/* ============================================================
   Emergency mobile containment: iOS Safari was allowing dashboard
   children to widen the page, so users landed on the right edge.
   ============================================================ */
html,
body {
  max-width: 100%;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body:not(.landing) {
    position: relative;
    padding: 0;
  }

  body:not(.landing) .app-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
  }

  body:not(.landing) .mobile-bar,
  body:not(.landing) .workspace,
  body:not(.landing) section,
  body:not(.landing) .panel,
  body:not(.landing) .panel-body,
  body:not(.landing) .panel-head,
  body:not(.landing) .metric-row,
  body:not(.landing) .hl-grid,
  body:not(.landing) .op-grid,
  body:not(.landing) .two-col,
  body:not(.landing) .teaser-row,
  body:not(.landing) .chart-wrap,
  body:not(.landing) .source-strip {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.landing) .workspace {
    width: 100%;
    overflow-x: hidden;
  }

  body:not(.landing) .mobile-bar {
    width: 100%;
  }

  body:not(.landing) .panel {
    overflow: hidden;
  }

  body:not(.landing) .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.landing) .data-table {
    min-width: 560px;
  }

  body:not(.landing) .source-strip,
  body:not(.landing) .panel-tools {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.landing) .op-card,
  body:not(.landing) .hl-card,
  body:not(.landing) .metric,
  body:not(.landing) .teaser-card {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.landing) .op-title,
  body:not(.landing) .op-meta,
  body:not(.landing) .hl-title,
  body:not(.landing) .hl-meta,
  body:not(.landing) .ws-head h1,
  body:not(.landing) .ws-head p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  body:not(.landing) .workspace {
    padding-left: 14px;
    padding-right: 14px;
  }

  body:not(.landing) .metric-row,
  body:not(.landing) .hl-grid,
  body:not(.landing) .op-grid,
  body:not(.landing) .two-col,
  body:not(.landing) .teaser-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.landing) .source-strip {
    display: flex;
    flex-wrap: wrap;
  }
}
