:root {
  --bg: #0d1117;
  --panel: #161b22;
  --line: #21262d;
  --text: #c9d1d9;
  --muted: #8b949e;
  --green: #2ea043;
  --green-dim: rgba(46,160,67,0.18);
  --red: #f85149;
  --red-dim: rgba(248,81,73,0.18);
  --accent: #58a6ff;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel);
}
h1 { font-size: 15px; margin: 0; color: #fff; }
h1::first-letter { color: var(--green); }
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.brand-icon { height: 30px; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)); }
.brand-word { height: 15px; display: block; }
/* soft light halo + drop shadow so the white-bg logo separates from dark theme */
.hero-logo {
  height: 150px; display: block; margin-bottom: 6px;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.10)) drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.controls { display: flex; gap: 10px; align-items: center; }
select {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font: inherit;
}
.status { font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.status.on { background: var(--green-dim); color: var(--green); }
.status.off { background: var(--red-dim); color: var(--red); }
.badge { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }

/* nav menu */
nav#menu { display: flex; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.nav-btn {
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active { color: #fff; border-color: var(--accent); background: rgba(88,166,255,0.12); }

.view { padding: 16px 18px; }
.view.hidden { display: none; }

/* options positions form */
.pos-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.pos-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.pos-form label small { color: #6e7681; }
.pos-form input, .pos-form select {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px; font: inherit; min-width: 130px;
}
.pos-form button {
  background: var(--accent); color: #06224a; border: 0; border-radius: 6px;
  padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.pos-meta { color: var(--text); font-size: 13px; margin-bottom: 14px; }
.pos-meta b { color: var(--accent); }

.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sw.call { background: var(--green); }
.sw.put { background: var(--red); }
.sw.vol { background: var(--accent); }

/* horizontal bars */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.bar-row.hot .bar-strike { color: #fff; }
.bar-row.hot { background: rgba(88,166,255,0.10); border-radius: 6px; padding: 3px 4px; }
.bar-strike { text-align: right; font-weight: 700; color: var(--text); }
.bar-stack { display: flex; flex-direction: column; gap: 3px; }
.bar {
  height: 16px; border-radius: 3px; min-width: 2px;
  display: flex; align-items: center; justify-content: flex-end;
  transition: width .3s ease;
}
.bar span { font-size: 10px; color: rgba(255,255,255,0.92); padding: 0 6px; white-space: nowrap; }
.bar.call { background: var(--green); }
.bar.put { background: var(--red); }
.bar.vol { background: var(--accent); }

.refresh-toggle { flex-direction: row !important; align-items: center; gap: 6px !important; color: var(--text) !important; cursor: pointer; }
.refresh-toggle input { min-width: 0; }

/* summary cards */
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.summary .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 16px; min-width: 120px;
}
.summary .card label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.summary .card span { font-size: 20px; font-weight: 700; }
.summary .bull { color: var(--green); }
.summary .bear { color: var(--red); }
.summary .pain { color: var(--accent); }

/* combined OI-by-strike (stacked: call + put on one shared scale) */
.combined { margin-top: 14px; }
.combined-bars { display: flex; flex-direction: column; gap: 4px; }
.cmb-row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; padding: 1px 4px; }
.cmb-strike { text-align: right; font-weight: 700; font-size: 12px; color: var(--text); }
.cmb-track { display: flex; align-items: center; height: 14px; }
.cmb-seg { height: 14px; min-width: 0; transition: width .3s ease; }
.cmb-seg.call { background: var(--green); border-radius: 2px 0 0 2px; }
.cmb-seg.put { background: var(--red); border-radius: 0 2px 2px 0; }
.cmb-seg.vol { background: var(--accent); border-radius: 2px; opacity: .85; }
.cmb-total { font-size: 10px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.cmb-row.pain { background: rgba(88,166,255,0.10); border-radius: 5px; }
.cmb-row.pain .cmb-strike { color: var(--accent); }
.cmb-row.spot .cmb-strike { color: #fff; }

/* IV surface heatmap */
.iv-surface { overflow-x: auto; }
.ivs { border-collapse: collapse; font-size: 11px; }
.ivs th { color: var(--muted); font-weight: 500; padding: 4px 7px; white-space: nowrap; text-align: center; }
.ivs thead th.atmcol { color: var(--accent); }
.ivs tbody th { text-align: right; color: var(--text); }
.ivs td { padding: 5px 9px; text-align: center; color: #fff; min-width: 34px; }
.ivs td.na { background: var(--bg); color: var(--muted); }

/* volatility charts */
.vchart { width: 100%; height: auto; }
.vc-grid { stroke: var(--line); stroke-width: 1; }
.vc-marker { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.vc-ytick { fill: var(--muted); font-size: 10px; text-anchor: end; }
.vc-xtick { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.vc-leg { font-size: 11px; }
.vc-axis { fill: var(--muted); font-size: 10px; text-anchor: middle; }

/* landing (home) */
.landing { max-width: 760px; margin: 30px auto 0; text-align: center; }
.landing .hero-logo { margin: 0 auto 18px; height: 160px; }
.landing-title { font-size: 30px; color: #fff; margin: 0 0 12px; line-height: 1.2; }
.landing-sub { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 560px; margin: 0 auto 22px; }
.cta-btn {
  background: var(--accent); color: #06224a; border: 0; border-radius: 8px;
  padding: 12px 26px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s, filter .15s;
}
.cta-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.landing-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.landing-chips span {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  background: var(--panel); border-radius: 20px; padding: 5px 12px;
}

/* about us */
.about { max-width: 920px; margin: 10px auto 0; }
.about-cols { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }
.about-logo { height: 90px; display: block; margin-bottom: 14px; }
.about h2 { font-size: 24px; color: #fff; margin: 0 0 14px; }
.about h3 { font-size: 14px; color: var(--accent); margin: 22px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.about p { color: var(--text); font-size: 13px; line-height: 1.7; margin: 0 0 6px; }
.about a { color: var(--accent); }
.about-disclaimer { color: var(--muted); font-size: 11px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.about-quote {
  margin: 0; padding: 16px 18px; border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 8px 8px 0;
  font-size: 15px; font-style: italic; color: #fff; line-height: 1.5;
}
.about-quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: var(--accent); }

/* home page */
.home-hero { padding: 12px 0 22px; }
.home-hero h2 { font-size: 24px; color: #fff; margin: 0 0 8px; }
.home-hero p { color: var(--muted); font-size: 13px; margin: 0; max-width: 640px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
/* Institutional / quant-desk scheme: dark slate cards, one muted accent each. */
.home-card {
  --accent: #5b8fb0;
  position: relative;
  display: flex; flex-direction: column; gap: 9px; text-align: left;
  background: #0f1620; border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--accent); border-radius: 9px;
  padding: 17px 18px; font: inherit; color: #c2cdda; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.home-card:hover {
  transform: translateY(-2px); background: #131c28;
  border-color: rgba(255,255,255,0.14); border-left-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
/* muted, desaturated accents — cohesive across the grid */
.home-grid .home-card:nth-child(1)  { --accent: #5b8fb0; } /* steel blue */
.home-grid .home-card:nth-child(2)  { --accent: #4f9d8f; } /* teal */
.home-grid .home-card:nth-child(3)  { --accent: #7c8aa3; } /* slate */
.home-grid .home-card:nth-child(4)  { --accent: #6aa97e; } /* muted green */
.home-grid .home-card:nth-child(5)  { --accent: #b98a55; } /* brass */
.home-grid .home-card:nth-child(6)  { --accent: #8a86c4; } /* dusty indigo */
.home-grid .home-card:nth-child(7)  { --accent: #59a0a8; } /* cyan-gray */
.home-grid .home-card:nth-child(8)  { --accent: #b07f88; } /* dusty rose */
.home-grid .home-card:nth-child(9)  { --accent: #8fa977; } /* olive */
.home-grid .home-card:nth-child(10) { --accent: #6699bb; } /* sky steel */
.home-grid .home-card:nth-child(11) { --accent: #c2974f; } /* bronze */
.home-grid .home-card:nth-child(12) { --accent: #6cab9c; } /* seafoam */
.home-grid .home-card:nth-child(13) { --accent: #9a86b0; } /* muted mauve */
.home-grid .home-card:nth-child(14) { --accent: #6f9aa8; } /* steel cyan */
.home-grid .home-card:nth-child(15) { --accent: #b07f88; } /* dusty rose */
.home-card .hc-num {
  width: 24px; height: 24px; border-radius: 5px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--accent); color: var(--accent);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: flex; align-items: center; justify-content: center;
}
.home-card .hc-title {
  font-size: 14.5px; font-weight: 600; color: #e6edf3; letter-spacing: .2px;
  display: block; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.home-card .hc-desc { font-size: 12px; color: #8b97a6; line-height: 1.55; flex: 1; }
.home-card .hc-go { font-size: 11.5px; color: var(--accent); font-weight: 600; letter-spacing: .3px; }

/* OLDIAL game */
.game-head h2 { font-size: 20px; color: #fff; margin: 0 0 6px; }
.game-head h2 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.game-head p { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 720px; margin: 0 0 16px; }
.game-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.game-label { color: var(--muted); font-size: 12px; margin-right: 2px; }
.bet-btn {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.bet-btn:hover { border-color: var(--accent); }
.bet-btn.active { border-color: var(--accent); background: rgba(88,166,255,0.14); color: #fff; }
.game-go {
  background: #ff2740; color: #fff; border: 0; border-radius: 7px;
  padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; margin-left: 6px;
  animation: dropFlash 0.6s steps(1, end) infinite;
}
.game-go:hover { filter: brightness(1.1); }
@keyframes dropFlash {
  0%, 100% { background: #ff2740; color: #fff; box-shadow: 0 0 18px 5px rgba(255,39,64,0.75); }
  50% { background: #5e0a12; color: #ffb3bd; box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.game-alt { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.game-alt:hover { border-color: var(--accent); }
.game-hud { display: flex; gap: 22px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.game-hud b { color: #fff; font-size: 15px; }
.g-flash { font-weight: 800; font-size: 16px; }
.g-flash.win { color: var(--green); }
.g-flash.lose { color: var(--red); }
#gameCanvas { max-width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.game-stage { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.game-quote {
  flex: 1; min-width: 220px; max-width: 300px; align-self: center;
  border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0;
  padding: 18px 20px; font-size: 17px; font-style: italic; color: #fff; line-height: 1.55;
}
.game-quote cite { display: block; margin-top: 12px; font-size: 12px; font-style: normal; color: var(--accent); }

/* PIN lock modal */
.pin-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(5,8,12,0.82); backdrop-filter: blur(3px);
}
.pin-modal.hidden { display: none; }
.pin-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 30px; width: 300px; text-align: center;
}
.pin-logo { height: 54px; margin-bottom: 12px; }
.pin-box h3 { margin: 0 0 6px; color: #fff; font-size: 17px; }
.pin-box p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.pin-box form { display: flex; gap: 8px; }
.pin-box input {
  flex: 1; background: var(--bg); color: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; letter-spacing: 3px; text-align: center;
}
.pin-box button {
  background: var(--accent); color: #06224a; border: 0; border-radius: 8px;
  padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.pin-err { color: var(--red); font-size: 12px; margin-top: 10px; min-height: 14px; }

/* option pricer */
.verdict {
  display: inline-block; font-weight: 800; font-size: 18px; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 9px; margin: 4px 0 14px; border: 1px solid var(--line);
}
.verdict span { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.verdict.bull { color: var(--green); background: var(--green-dim); border-color: rgba(46,160,67,0.4); }
.verdict.bear { color: var(--red); background: var(--red-dim); border-color: rgba(248,81,73,0.4); }
.verdict.pain { color: var(--accent); background: rgba(88,166,255,0.12); border-color: rgba(88,166,255,0.4); }
.verdict.dim { color: var(--muted); }
.pricer-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.pricer-h .dim { text-transform: none; letter-spacing: 0; }

/* fundamentals + social pages */
.src-badge { font-size: 11px; color: var(--muted); }
.fund-head { margin-bottom: 16px; }
.fh-name { font-size: 18px; font-weight: 700; color: #fff; }
.fh-sym { font-size: 13px; color: var(--muted); font-weight: 500; }
.fh-price { font-size: 26px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.fh-price span { font-size: 14px; margin-left: 8px; }
.fh-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px;
}
.stat label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stat span { font-size: 17px; font-weight: 700; color: var(--text); }
.stat .bull { color: var(--green); }
.stat .bear { color: var(--red); }
.stat .pain { color: var(--accent); }
.fund-desc { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 820px; }

/* news cards */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.news-empty { color: var(--muted); padding: 20px 0; }
.news-card {
  display: flex; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; transition: border-color .15s;
}
.news-card:hover { border-color: var(--accent); }
.news-img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-img.placeholder { background: var(--bg); }
.news-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.news-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }
.news-meta { font-size: 11px; color: var(--accent); }
.news-desc {
  font-size: 11px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.qpick select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: inherit; }

.quote-bar { display: flex; gap: 26px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.q { display: flex; flex-direction: column; }
.q label { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.q span { font-size: 20px; font-weight: 600; }
#last { color: var(--accent); }

main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 18px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 12px; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.panel h2 small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 3px 6px; text-align: right; white-space: nowrap; }
thead th { color: var(--muted); font-weight: 500; font-size: 11px; border-bottom: 1px solid var(--line); }

/* order book */
.book td { position: relative; }
.book .depth { position: absolute; top: 1px; bottom: 1px; opacity: .9; z-index: 0; }
.book .bidsz .depth { right: 0; background: var(--green-dim); }
.book .asksz .depth { left: 0; background: var(--red-dim); }
.book .val { position: relative; z-index: 1; }
.book .bidpx { color: var(--green); }
.book .askpx { color: var(--red); }
.book .mid td { text-align: center; color: var(--muted); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 11px; }

/* tape */
.tape { font-size: 12px; }
.tape tbody { display: block; max-height: 320px; overflow: hidden; }
.tape thead, .tape tbody tr { display: table; width: 100%; table-layout: fixed; }
.tape .buy { color: var(--green); }
.tape .sell { color: var(--red); }
.tape .mbo { color: var(--muted); }
.flash-up { animation: fu .6s; }
.flash-dn { animation: fd .6s; }
@keyframes fu { from { background: var(--green-dim); } to { background: transparent; } }
@keyframes fd { from { background: var(--red-dim); } to { background: transparent; } }

/* options */
.opt-scroll { overflow-x: auto; }
.opt { font-size: 12px; min-width: 760px; }
.opt th.calls { color: var(--green); text-align: center; }
.opt th.puts { color: var(--red); text-align: center; }
.opt th.strike, .opt td.strike { text-align: center; color: #fff; font-weight: 700; background: var(--bg); }
.opt tr.atm td.strike { color: var(--accent); }
.opt td { color: var(--text); }
.opt .dim { color: var(--muted); }

footer { color: var(--muted); font-size: 11px; padding: 12px 18px; border-top: 1px solid var(--line); }
code { color: var(--accent); }

/* ---- EMA Analysis artifact ---- */
.ema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 960px) { .ema-grid { grid-template-columns: 1fr; } }
.ema-tbl td, .ema-tbl th { text-align: left; padding: 6px 10px; }
.ema-tbl tr.ema-here { background: rgba(88, 166, 255, 0.14); }
.ema-tag { color: var(--accent); font-size: 11px; font-weight: 700; }
.sig-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .sig-list { grid-template-columns: 1fr; } }
.sig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.sig-dot { font-size: 16px; line-height: 1.3; }
.sig-txt { color: var(--muted); font-size: 13px; }
.sig.sig-on { border-color: #2ea043; background: rgba(46,160,67,0.10); }
.sig.sig-on .sig-dot { color: #2ea043; }
.sig.sig-bear { border-color: #f85149; background: rgba(248,81,73,0.10); }
.sig.sig-bear .sig-dot { color: #f85149; }
.sig.sig-off { opacity: 0.6; }
.sig.sig-off .sig-dot { color: var(--muted); }
.sig-note { margin-top: 12px; font-size: 12px; }
.sup-top { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #2ea043; background: rgba(46,160,67,0.10); font-size: 15px; }
.snap-note { margin-top: 8px; padding: 8px 11px; border-radius: 8px; font-size: 13px;
  color: #e8b339; border: 1px solid #e8b339; background: rgba(232,179,57,0.10); }
.oh-lab { fill: var(--muted); font-size: 11px; font-weight: 600; }

/* ---- Sector Heatmap artifact ---- */
.sec-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-block { flex: 1 1 280px; min-width: 240px; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; background: #0d141d; }
.sec-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px;
  font-size: 12.5px; font-weight: 600; color: #e6edf3; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sec-pc { font-variant-numeric: tabular-nums; }
.sec-tiles { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; min-height: 84px; }
.sec-tile { flex: 1 1 56px; min-width: 50px; min-height: 38px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 4px; color: #eef3f8; line-height: 1.25; }
.st-tk { font-size: 11.5px; font-weight: 700; }
.st-pc { font-size: 10.5px; opacity: .92; font-variant-numeric: tabular-nums; }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.heat-bar { width: 150px; height: 10px; border-radius: 5px; background: linear-gradient(90deg,#f85149,#39414e,#2ea043); }
.page-h { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

/* ---- US Indices ---- */
.ix-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ix-card { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-align: left;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: #0f1620; cursor: pointer; font: inherit;
  transition: border-color .12s, background .12s; }
.ix-card:hover { border-color: rgba(255,255,255,0.2); }
.ix-card.selected { border-color: #58a6ff; background: rgba(88,166,255,0.1); box-shadow: 0 0 0 1px #58a6ff inset; }
.ix-name { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.ix-lvl { font-size: 22px; font-weight: 700; color: #e6edf3; font-variant-numeric: tabular-nums; }
.ix-chg { font-size: 13px; font-variant-numeric: tabular-nums; }
.ix-tbl td, .ix-tbl th { padding: 5px 10px; white-space: nowrap; }
.ix-tbl td.num, .ix-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ix-tbl tbody tr:hover { background: rgba(255,255,255,0.05); }
.ix-tbl small { opacity: .8; font-size: 10.5px; }
.ix-tbl td.bull { color: var(--green); }   /* + green */
.ix-tbl td.bear { color: var(--red); }      /* − red */
.lk { font: inherit; background: none; border: none; color: #e6edf3; cursor: pointer; padding: 0; }
.lk:hover { color: var(--accent, #58a6ff); text-decoration: underline; }

/* ---- AI supply-chain map ---- */
.chain-phase { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 8px; }
.chain-movers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; background: #0f1620; }
.mv-lab { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--muted); margin-right: 2px; }
.mv-chip { font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.mv-chip.up { color: #5fd27e; background: rgba(46,160,67,0.14); border-color: rgba(46,160,67,0.3); }
.mv-chip.down { color: #ff8079; background: rgba(248,81,73,0.14); border-color: rgba(248,81,73,0.3); }
.mv-chip:hover { filter: brightness(1.2); }
.chain-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.07); border-left: 4px solid #5b8fb0; border-radius: 9px; background: #0f1620; padding: 9px 11px; }
.chain-row.software { border-left-color: #9a86b0; }
.chain-label { flex: 0 0 190px; display: flex; flex-direction: column; justify-content: center; }
.chain-label b { font-size: 14px; color: #e6edf3; }
.chain-label .dim { font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.chain-tiles { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chain-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 104px; padding: 6px 9px; border-radius: 7px; cursor: pointer; font: inherit;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); transition: border-color .12s, background .12s; }
.chain-tile.up { background: rgba(46,160,67,0.12); border-color: rgba(46,160,67,0.30); }
.chain-tile.down { background: rgba(248,81,73,0.12); border-color: rgba(248,81,73,0.30); }
.chain-tile:hover { filter: brightness(1.18); }
.ct-head { display: flex; align-items: center; gap: 5px; }
.ct-logo { width: 18px; height: 18px; border-radius: 4px; background: #fff; object-fit: contain; padding: 1px; flex: 0 0 auto; }
.ct-tk { font-size: 13px; font-weight: 700; color: #e6edf3; }
.ct-px { font-size: 12.5px; color: #c9d4e0; font-variant-numeric: tabular-nums; }
.ct-pc { font-size: 11px; font-variant-numeric: tabular-nums; }
.ct-iv { font-size: 10.5px; color: #8b97a6; }
.ct-choke { color: #e8b339; font-size: 11px; margin-left: 4px; }
.chain-tile.is-choke { border-color: rgba(232,179,57,0.45); }
.chain-tile.is-choke:hover { border-color: #e8b339; }
.ct-mover { font-size: 10px; margin-left: 3px; }
.ct-livedot { color: #2ea043; font-size: 9px; vertical-align: middle; }
.chain-tile.is-mover { border-color: #2ea043; background: rgba(46,160,67,0.10); }
.chain-tile.is-mover:hover { border-color: #3fb950; }
@media (max-width: 680px) { .chain-row { flex-direction: column; } .chain-label { flex-basis: auto; } }

/* ---- Block Trades artifact ---- */
.blk-tbl { width: 100%; }
.blk-tbl td, .blk-tbl th { padding: 5px 9px; white-space: nowrap; }
.blk-tbl td.num, .blk-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.blk-tbl tbody tr.blk-bull { background: rgba(46,160,67,0.13); }
.blk-tbl tbody tr.blk-bear { background: rgba(248,81,73,0.13); }
.blk-tbl tbody tr.blk-neut { background: rgba(255,255,255,0.045); }
.blk-tbl tbody tr:hover { background: rgba(255,255,255,0.09); }
.blk-tbl td.blk-call { color: #5fd27e; font-weight: 600; }    /* call */
.blk-tbl td.blk-put  { color: #ff8079; font-weight: 600; }    /* put */
.blk-tbl td.blk-above { color: #f2cc4b; font-weight: 700; }   /* yellow — above ask */
.blk-tbl td.blk-below { color: #4aa3ff; font-weight: 700; }   /* blue — below bid */
.blk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.blk-legend .lg { font-size: 11px; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.blk-legend .lg.blk-bull { background: rgba(46,160,67,0.18); color: #5fd27e; }
.blk-legend .lg.blk-bear { background: rgba(248,81,73,0.18); color: #ff8079; }
.blk-legend .lg.blk-neut { background: rgba(255,255,255,0.09); color: #e6edf3; }
.blk-legend .lg.blk-above { background: rgba(242,204,75,0.16); color: #f2cc4b; }
.blk-legend .lg.blk-below { background: rgba(74,163,255,0.16); color: #4aa3ff; }
.confirm-btn { margin-top: 10px; padding: 9px 14px; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; background: #b3261e; border: 1px solid #ff7b72; }
.confirm-btn:hover { background: #d12f25; }
.opra-live-lbl { flex-direction: row !important; align-items: center; gap: 8px; }
.opra-live-lbl input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2ea043; }

/* Bearish alert: flashing red banner + flashing bearish signal chips. */
@keyframes bearBanner { 0%, 100% { background: #8e1c16; } 50% { background: #f85149; } }
@keyframes bearChip   { 0%, 100% { background: rgba(248,81,73,0.12); border-color: #f85149; }
  50% { background: rgba(248,81,73,0.42); border-color: #ff7b72; box-shadow: 0 0 14px rgba(248,81,73,0.55); } }
.bear-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; color: #fff;
  font-weight: 700; border: 1px solid #ff7b72; animation: bearBanner 0.9s ease-in-out infinite; }
.bear-banner ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; font-size: 13px; }
.sig.sig-bear.sig-flash { animation: bearChip 0.9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .bear-banner, .sig.sig-bear.sig-flash { animation: none; }
  .bear-banner { background: #b3261e; }
}
