:root {
  --ink: #eaf3f5;
  --muted: #8ea4aa;
  --muted-2: #5e767d;
  --line: rgba(179, 224, 220, 0.12);
  --panel: rgba(13, 29, 39, 0.76);
  --panel-strong: #102a35;
  --bg: #071019;
  --bg-2: #0b1c26;
  --aqua: #8de7d6;
  --aqua-strong: #40cfbd;
  --orange: #ffae62;
  --red: #ff796f;
  --blue: #8db9ff;
  --radius: 18px;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 5%, rgba(61, 170, 154, 0.14), transparent 24rem),
    radial-gradient(circle at 4% 40%, rgba(43, 96, 144, 0.13), transparent 25rem),
    linear-gradient(135deg, #071019 0%, #0a1923 56%, #071017 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: linear-gradient(rgba(141, 231, 214, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 231, 214, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }

.shell { width: min(1440px, calc(100% - 56px)); margin: 0 auto; }

.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: end; gap: 3px; padding: 5px; border: 1px solid rgba(141,231,214,.45); border-radius: 9px; transform: rotate(-10deg); background: rgba(141,231,214,.06); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: var(--aqua); transform: rotate(10deg); }
.brand-mark i:nth-child(1) { height: 7px; opacity: .5; }.brand-mark i:nth-child(2) { height: 12px; opacity: .75; }.brand-mark i:nth-child(3) { height: 16px; }
.brand-copy { display: grid; gap: 3px; }.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; }.brand-name b { color: var(--aqua); font-weight: 500; }.eyebrow, .metric-label, .rule-label, .section-kicker { color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.run-status { display: flex; align-items: center; gap: 10px; }.status-dot, .live-pulse { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--aqua-strong); box-shadow: 0 0 0 5px rgba(64,207,189,.1), 0 0 18px rgba(64,207,189,.6); animation: breathe 2s ease-in-out infinite; }.status-label { display: block; color: var(--aqua); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .15em; }.status-time { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }

.intro-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 50px; padding: 74px 0 52px; }.accent { color: var(--aqua); }.intro-copy h1 { max-width: 760px; margin: 14px 0 18px; font-size: clamp(45px, 7vw, 92px); line-height: .98; letter-spacing: -.075em; font-weight: 800; }.intro-copy h1 em { color: var(--aqua); font-style: normal; }.lede { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.rule-card { position: relative; min-height: 174px; overflow: hidden; padding: 23px 24px; border: 1px solid rgba(141,231,214,.2); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20,53,62,.95), rgba(9,26,35,.86)); box-shadow: 0 20px 60px rgba(0,0,0,.16); }.rule-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -58px; top: -76px; border: 1px solid rgba(141,231,214,.2); border-radius: 50%; box-shadow: 0 0 0 16px rgba(141,231,214,.035), 0 0 0 33px rgba(141,231,214,.025); }.rule-value { margin: 27px 0 18px; font-size: 19px; font-weight: 700; }.rule-value span { margin-right: 7px; color: var(--aqua); font-family: "DM Mono", monospace; }.rule-line { display: flex; align-items: center; gap: 5px; }.rule-line span { height: 3px; flex: 1; border-radius: 4px; background: var(--aqua-strong); }.rule-line span:nth-child(2) { opacity: .7; }.rule-line span:nth-child(3) { opacity: .45; }.rule-line span:nth-child(4) { opacity: .26; }.rule-line span:nth-child(5) { opacity: .12; }.rule-foot { display: flex; justify-content: space-between; margin-top: 11px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }

.overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.overview-item { min-height: 118px; padding: 25px 24px 20px 0; border-right: 1px solid var(--line); }.overview-item + .overview-item { padding-left: 24px; }.overview-item:last-child { border-right: 0; }.overview-item strong { display: inline-block; margin-top: 11px; font-size: 34px; line-height: 1; letter-spacing: -.06em; font-weight: 700; }.metric-note { margin-left: 7px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 10px; }.signal-metric strong { color: var(--orange); }

.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }.section-kicker { margin: 0 0 7px; color: var(--aqua); }.toolbar h2 { margin: 0; font-size: 29px; letter-spacing: -.05em; }.toolbar-actions { display: flex; align-items: center; gap: 10px; }.select-wrap select, .refresh-button { appearance: none; border: 1px solid var(--line); border-radius: 999px; outline: none; background: rgba(12,30,40,.8); color: var(--muted); font: inherit; font-size: 11px; }.select-wrap select { padding: 10px 30px 10px 14px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 11px) 14px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }.refresh-button { padding: 9px 13px 9px 15px; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }.refresh-button:hover { color: var(--aqua); border-color: rgba(141,231,214,.45); }.refresh-button:active { transform: rotate(-12deg); }.refresh-button span { margin-left: 5px; color: var(--aqua); font-size: 16px; line-height: 0; }.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }.toggle input { position: absolute; opacity: 0; pointer-events: none; }.toggle-ui { position: relative; width: 30px; height: 17px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.05); transition: .2s; }.toggle-ui::after { content: ""; position: absolute; width: 11px; height: 11px; top: 2px; left: 2px; border-radius: 50%; background: var(--muted-2); transition: .2s; }.toggle input:checked + .toggle-ui { border-color: rgba(141,231,214,.5); background: rgba(64,207,189,.2); }.toggle input:checked + .toggle-ui::after { left: 15px; background: var(--aqua); }

.feed-meta { display: flex; align-items: center; gap: 9px; min-height: 33px; color: var(--muted-2); font-size: 11px; }.feed-meta .live-pulse { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(64,207,189,.09); }.feed-divider { width: 1px; height: 14px; margin-left: 5px; background: var(--line); }.mono { font-family: "DM Mono", monospace; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.stock-card { position: relative; min-height: 306px; padding: 23px 23px 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(145deg, rgba(17,39,49,.9), rgba(8,21,29,.88)); transition: transform .25s ease, border-color .25s ease, background .25s ease; }.stock-card:hover { transform: translateY(-3px); border-color: rgba(141,231,214,.3); background: linear-gradient(145deg, rgba(20,49,59,.95), rgba(8,22,30,.94)); }.stock-card.has-signal { border-color: rgba(255,174,98,.38); }.stock-card.is-flat { border-color: rgba(255,121,111,.48); }.stock-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -150px; bottom: -160px; border: 1px solid rgba(141,231,214,.11); border-radius: 50%; box-shadow: 0 0 0 20px rgba(141,231,214,.025), 0 0 0 42px rgba(141,231,214,.015); pointer-events: none; }.card-top, .card-price, .card-data-row, .card-footer { position: relative; z-index: 1; }.card-top { display: flex; justify-content: space-between; align-items: flex-start; }.identity { display: flex; align-items: center; gap: 10px; }.ticker-badge { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(141,231,214,.25); border-radius: 11px; color: var(--aqua); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; background: rgba(141,231,214,.06); }.identity h3 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.02em; }.identity small { color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 10px; }.position-pill { padding: 6px 9px; border: 1px solid rgba(141,231,214,.2); border-radius: 999px; color: var(--aqua); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }.position-pill.flat { color: var(--red); border-color: rgba(255,121,111,.35); }.position-pill.signal { color: var(--orange); border-color: rgba(255,174,98,.35); }.card-price { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 18px; }.last-price { font-family: "DM Mono", monospace; font-size: 34px; letter-spacing: -.09em; }.observation-change { font-family: "DM Mono", monospace; font-size: 12px; }.positive { color: var(--aqua); }.negative { color: var(--red); }.neutral { color: var(--muted); }.card-data-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.data-cell label { display: block; margin-bottom: 6px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }.data-cell b { font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }.stop-cell b { color: var(--orange); }.distance { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 11px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 9px; }.distance strong { color: var(--ink); font-weight: 500; }.meter { height: 4px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.08); }.meter span { display: block; width: 70%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua-strong), var(--aqua)); box-shadow: 0 0 14px rgba(64,207,189,.35); }.meter span.danger { background: linear-gradient(90deg, var(--red), var(--orange)); box-shadow: 0 0 14px rgba(255,121,111,.3); }.card-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted-2); font-size: 10px; }.events-preview { max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.event-buy { color: var(--aqua); }.event-sell { color: var(--orange); }.last-time { font-family: "DM Mono", monospace; }.empty-state, .loading-card { display: grid; place-items: center; min-height: 180px; grid-column: 1 / -1; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }.loader { width: 16px; height: 16px; margin-right: 7px; display: inline-block; vertical-align: -3px; border: 2px solid rgba(141,231,214,.2); border-top-color: var(--aqua); border-radius: 50%; animation: spin .8s linear infinite; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0 38px; margin-top: 70px; border-top: 1px solid var(--line); color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } } @keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .shell { width: min(100% - 32px, 680px); }.intro-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; }.rule-card { max-width: 520px; }.overview { grid-template-columns: repeat(2, 1fr); }.overview-item:nth-child(2) { border-right: 0; }.overview-item:nth-child(n+3) { border-top: 1px solid var(--line); }.overview-item:nth-child(3) { padding-left: 0; }.cards { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .shell { width: min(100% - 24px, 500px); }.topbar { min-height: 78px; }.brand-name { font-size: 12px; }.run-status { gap: 7px; }.status-time { display: none; }.intro-copy h1 { font-size: 55px; }.lede { font-size: 13px; }.overview-item { min-height: 98px; padding-top: 19px; }.overview-item + .overview-item { padding-left: 13px; }.overview-item:nth-child(3) { padding-left: 0; }.overview-item strong { font-size: 26px; }.metric-note { display: block; margin: 6px 0 0; font-size: 9px; }.toolbar { align-items: flex-start; flex-direction: column; margin-bottom: 10px; }.toolbar-actions { width: 100%; flex-wrap: wrap; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; }.feed-meta { margin-bottom: 7px; }.stock-card { padding: 19px; }.footer { flex-direction: column; gap: 7px; margin-top: 48px; font-size: 8px; } }

/* V2: larger type, continuously measured returns, and rolling counters. */
html { font-size: 18px; }
.shell { width: min(1560px, calc(100% - 64px)); }
.topbar { min-height: 104px; }
.brand-name { font-size: 17px; }
.eyebrow, .metric-label, .rule-label, .section-kicker { font-size: 12px; }
.status-label { font-size: 12px; }
.status-time { font-size: 12px; }
.intro-grid { padding: 86px 0 62px; }
.intro-copy h1 { font-size: clamp(56px, 7.2vw, 104px); }
.lede { max-width: 690px; font-size: 18px; line-height: 1.8; }
.rule-card { min-height: 198px; padding: 29px 30px; }
.rule-value { margin: 31px 0 22px; font-size: 24px; }
.rule-foot { font-size: 11px; }
.overview { grid-template-columns: .7fr 1.25fr 1.2fr 1fr .9fr; }
.overview-item { min-height: 142px; padding: 31px 25px 24px 0; }
.overview-item strong { margin-top: 15px; font-size: 43px; }
.primary-counter { color: var(--aqua); font-family: "DM Mono", monospace; }
.return-metric strong { color: var(--aqua); }
.metric-note { display: block; margin: 9px 0 0; font-size: 11px; }
.rolling-number { font-variant-numeric: tabular-nums; }
.rolling-number.is-rolling { animation: counterGlow .9s ease-out; }
.toolbar h2 { font-size: 36px; }
.select-wrap select, .refresh-button, .toggle { font-size: 13px; }
.feed-meta { min-height: 44px; font-size: 13px; }
.cards { gap: 18px; }
.stock-card { min-height: 418px; padding: 28px 28px 24px; }
.ticker-badge { width: 48px; height: 48px; font-size: 12px; }
.identity { gap: 13px; }
.identity h3 { margin-bottom: 5px; font-size: 21px; }
.identity small { font-size: 12px; }
.position-pill { padding: 8px 11px; font-size: 11px; }
.card-primary { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin: 28px 0 20px; }
.return-panel, .quote-panel { padding: 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 16, 23, .32); }
.return-panel label, .quote-panel label, .trade-strip label { display: block; margin-bottom: 7px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.return-panel strong, .quote-panel strong { display: block; font-family: "DM Mono", monospace; line-height: 1; letter-spacing: -.06em; }
.return-panel strong { font-size: 38px; }
.quote-panel strong { font-size: 29px; color: var(--ink); }
.return-panel span, .quote-panel span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.trade-strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 17px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-strip div { padding: 0 14px; border-right: 1px solid var(--line); }
.trade-strip div:first-child { padding-left: 0; }
.trade-strip div:last-child { border-right: 0; }
.trade-strip b { font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500; }
.card-data-row.wide-row { grid-template-columns: repeat(4, 1fr); padding: 0 0 16px; border-top: 0; }
.data-cell label { font-size: 11px; }
.data-cell b { font-size: 15px; }
.meter { height: 6px; }
.card-footer { margin-top: 16px; font-size: 12px; }
.footer { font-size: 11px; }
@keyframes counterGlow { 0% { transform: translateY(8px); opacity: .45; filter: blur(2px); } 55% { color: #d9fff8; text-shadow: 0 0 20px rgba(64,207,189,.65); } 100% { transform: translateY(0); opacity: 1; filter: blur(0); } }

@media (max-width: 1180px) {
  .overview { grid-template-columns: repeat(3, 1fr); }
  .overview-item:nth-child(3) { border-right: 0; }
  .overview-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .overview-item:nth-child(4) { padding-left: 0; }
}
@media (max-width: 900px) {
  html { font-size: 17px; }
  .shell { width: min(100% - 32px, 720px); }
  .overview { grid-template-columns: repeat(2, 1fr); }
  .overview-item:nth-child(3) { border-right: 1px solid var(--line); }
  .overview-item:nth-child(even) { border-right: 0; }
  .overview-item:nth-child(4) { padding-left: 24px; }
  .overview-item:nth-child(5) { padding-left: 0; border-top: 1px solid var(--line); }
  .stock-card { min-height: 400px; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 520px); }
  .brand-name { font-size: 14px; }
  .intro-copy h1 { font-size: 58px; }
  .lede { font-size: 16px; }
  .overview-item strong { font-size: 32px; }
  .card-primary { grid-template-columns: 1fr; }
  .return-panel strong { font-size: 36px; }
  .quote-panel strong { font-size: 27px; }
  .trade-strip { grid-template-columns: repeat(2, 1fr); gap: 13px 0; }
  .trade-strip div:nth-child(2) { border-right: 0; }
  .trade-strip div:nth-child(3) { padding-left: 0; }
  .card-data-row.wide-row { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .data-cell label { font-size: 10px; }
  .data-cell b { font-size: 14px; }
}

/* V3: continuous tape table — one symbol per horizontal row. */
.cards {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,39,49,.9), rgba(8,21,29,.9));
  scrollbar-color: rgba(141,231,214,.35) rgba(255,255,255,.04);
}
.stock-table { min-width: 1420px; }
.stock-table-head,
.stock-row {
  display: grid;
  grid-template-columns: 190px 88px 116px 126px 126px 116px 126px 108px 132px 120px 132px;
  column-gap: 12px;
  align-items: center;
  padding: 0 20px;
}
.stock-table-head {
  min-height: 48px;
  color: var(--muted-2);
  border-bottom: 1px solid rgba(141,231,214,.18);
  background: rgba(4,16,23,.45);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stock-row {
  position: relative;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, box-shadow .2s ease;
}
.stock-row:last-child { border-bottom: 0; }
.stock-row:hover { background: rgba(141,231,214,.045); box-shadow: inset 3px 0 0 var(--aqua-strong); }
.stock-row.has-signal { background: rgba(255,174,98,.035); }
.stock-row.is-flat { box-shadow: inset 3px 0 0 rgba(255,121,111,.72); }
.row-cell { min-width: 0; color: var(--muted); font-size: 15px; }
.row-cell strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 18px; font-weight: 500; white-space: nowrap; }
.row-cell strong.positive { color: var(--aqua); }
.row-cell strong.negative { color: var(--red); }
.row-identity { display: flex; align-items: center; gap: 12px; }
.row-identity strong { overflow: hidden; text-overflow: ellipsis; font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 700; }
.stock-row .ticker-badge { flex: 0 0 auto; width: 48px; height: 40px; font-size: 12px; }
.stock-row .position-pill { display: inline-block; font-size: 11px; }
.numeric { font-variant-numeric: tabular-nums; }
.stop-value strong { color: var(--orange); }
.execution-value { display: flex; align-items: baseline; gap: 7px; }
.execution-value strong { color: var(--orange); font-size: 22px; }
.execution-value span { color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 11px; white-space: nowrap; }
.row-time { color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 12px; white-space: nowrap; }
.cards::-webkit-scrollbar { height: 10px; }
.cards::-webkit-scrollbar-track { background: rgba(255,255,255,.035); }
.cards::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 10px; background: rgba(141,231,214,.3); background-clip: padding-box; }
@media (max-width: 900px) {
  .cards { margin-right: -8px; }
  .stock-table-head, .stock-row { padding-left: 16px; padding-right: 16px; }
}
