:root {
  color-scheme: light;
  --bg: #f4f7f6; --surface: #fff; --ink: #121817; --muted: #65706e;
  --line: #e1e7e5; --grid: #e8edec; --call: #00a878; --put: #ef3e5b;
  --curve: #315ee7; --flip: #f3913f; --price: #788482;
  --shadow: 0 18px 60px rgba(23,42,37,.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
button,select { font: inherit; }
.overview-view .selected-head,.overview-view .stats,.overview-view .chart-section { display: none; }
.detail-view .overview { display: none; }
.shell { width: min(1180px,calc(100% - 32px)); margin: 28px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 32px 38px 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--curve); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(29px,5vw,46px); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; }
h2 { margin-bottom: 6px; font-size: 21px; letter-spacing: -.02em; font-weight: 500; }
.subhead,.section-head p,.overview-head p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.asof-block { min-width: 150px; text-align: right; }
.asof-block span,.selected-meta small,.stat span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.asof-block strong { display: block; font-size: 18px; font-weight: 500; }
.asof-block small,.stat small { color: var(--muted); font-size: 12px; }
.selected-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 24px 38px; border-bottom: 1px solid var(--line); }
.selected-kicker { margin-bottom: 5px; color: var(--curve); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.close-detail { margin: 0 0 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.overview-view .close-detail { display: none; }
.selected-head h2 { margin: 0; font-size: 28px; }
.selected-head h2 span:last-child { margin-left: 8px; color: var(--muted); font-size: 16px; font-weight: 400; }
.selected-meta { display: flex; gap: 28px; text-align: right; }
.selected-meta span { min-width: 96px; }
.selected-meta strong { display: block; font-size: 18px; font-weight: 500; }
.stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.stat { padding: 20px 38px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 4px; font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.net-stat { background: linear-gradient(135deg,rgba(49,94,231,.08),transparent 72%); }
.call-stat strong { color: var(--call); } .put-stat strong { color: var(--put); }
.chart-section,.overview { padding: 28px 38px 32px; }
.chart-section { border-bottom: 1px solid var(--line); }
.overview { border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(250px,1fr) minmax(260px,560px); align-items: start; gap: 20px; }
.section-head > div { min-width: 0; }
.expiry-control { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 560px; margin: 0; padding: 0; border: 0; }
.expiry-control legend { width: 100%; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; }
.expiry-option { position: relative; cursor: pointer; }
.expiry-option input { position: absolute; opacity: 0; pointer-events: none; }
.expiry-option span { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: .16s ease; }
.expiry-option input:checked + span { border-color: var(--curve); background: var(--curve); color: #fff; }
.expiry-option input:focus-visible + span { outline: 3px solid rgba(49,94,231,.28); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 22px 0 7px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 12px; height: 4px; border-radius: 4px; }
.swatch.call { height: 9px; background: var(--call); } .swatch.put { height: 9px; background: var(--put); }
.swatch.curve { background: var(--curve); } .swatch.flip { background: var(--flip); }
.swatch.price { background: repeating-linear-gradient(90deg,var(--price) 0 4px,transparent 4px 7px); }
.chart-wrap { position: relative; width: 100%; min-height: 400px; }
#gex-chart { display: block; width: 100%; height: auto; overflow: visible; }
.axis-label,.tick-label,.annotation { fill: var(--muted); font-family: inherit; }
.tick-label,.axis-label { font-size: 11px; } .axis-label { font-weight: 500; }
.annotation { fill: var(--ink); font-size: 10.5px; font-weight: 500; }
.annotation-box { fill: var(--surface); stroke-width: 1; }
.annotation-box.spot { stroke: var(--price); } .annotation-box.flip { stroke: var(--flip); }
.annotation-box.call { stroke: var(--call); } .annotation-box.put { stroke: var(--put); }
.annotation-leader { stroke-width: 1; stroke-dasharray: 2 3; }
.annotation-leader.call { stroke: var(--call); } .annotation-leader.put { stroke: var(--put); }
.grid-line { stroke: var(--grid); stroke-width: 1; } .zero-line { stroke: var(--price); stroke-width: 1.25; stroke-dasharray: 5 5; }
.scenario-line { fill: none; stroke: var(--curve); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spot-line { stroke: var(--price); stroke-width: 1.5; stroke-dasharray: 5 5; } .flip-line { stroke: var(--flip); stroke-width: 1.5; }
.bar-call { fill: var(--call); } .bar-put { fill: var(--put); } .bar-hit { fill: transparent; cursor: crosshair; }
.tooltip { position: absolute; z-index: 5; min-width: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 12px; pointer-events: none; }
.tooltip strong,.tooltip span { display: block; } .tooltip strong { margin-bottom: 5px; font-weight: 500; } .tooltip span { color: var(--muted); line-height: 1.55; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.chart-foot strong { color: var(--ink); font-weight: 500; }
.overview-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.filters label,.cap-filter legend,.date-filter legend { color: var(--muted); font-size: 11px; font-weight: 500; }
select,.filters input[type="search"] { display: block; min-width: 132px; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
select { padding-right: 30px; }
.filters input[type="search"]::placeholder { color: var(--muted); }
.date-filter { min-width: 250px; margin: 0; padding: 0; border: 0; }
.date-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.date-option { position: relative; cursor: pointer; }
.date-option input { position: absolute; opacity: 0; pointer-events: none; }
.date-option span { display: block; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.date-option input:checked + span { border-color: var(--curve); background: var(--curve); color: #fff; }
.date-option input:focus-visible + span { outline: 3px solid rgba(49,94,231,.28); outline-offset: 2px; }
.cap-filter { min-width: 250px; margin: 0; padding: 0; border: 0; }
.cap-filter legend { float: left; }
.cap-filter output { float: right; color: var(--ink); font-size: 11px; font-weight: 500; }
.cap-slider { --low-pct:0%; --high-pct:100%; position: relative; clear: both; height: 27px; margin-top: 9px; }
.cap-slider::before,.cap-range-fill { position: absolute; top: 12px; right: 0; left: 0; height: 3px; border-radius: 3px; content: ""; background: var(--line); }
.cap-range-fill { right: calc(100% - var(--high-pct)); left: var(--low-pct); background: var(--curve); }
.cap-slider input { position: absolute; inset: 0; width: 100%; height: 27px; margin: 0; pointer-events: none; appearance: none; -webkit-appearance: none; background: transparent; }
.cap-slider input::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.cap-slider input::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--curve); box-shadow: 0 0 0 1px var(--curve); pointer-events: auto; appearance: none; -webkit-appearance: none; }
.cap-slider input::-moz-range-track { height: 3px; background: transparent; }
.cap-slider input::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid var(--surface); border-radius: 50%; background: var(--curve); box-shadow: 0 0 0 1px var(--curve); pointer-events: auto; }
.result-count { margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.cohort-grid { display: grid; gap: 34px; }
.earnings-day { display: grid; gap: 12px; }
.earnings-day-title { margin: 4px 0 -2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.earnings-group { margin-top: 12px; }
.group-title { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.group-title h3 { margin: 0; font-size: 15px; font-weight: 500; }
.cohort .group-title { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(90deg,rgba(49,94,231,.08),transparent 65%); }
.cohort.after-market .group-title { background: linear-gradient(90deg,rgba(243,145,63,.1),transparent 65%); }
.cohort.unconfirmed .group-title { background: linear-gradient(90deg,rgba(120,132,130,.1),transparent 65%); }
.group-title span { color: var(--muted); font-size: 11px; }
.cohort-toggle { color: var(--ink); text-align: left; cursor: pointer; }
.cohort-toggle:hover { border-color: rgba(49,94,231,.4); }
.cohort-toggle:focus-visible { outline: 3px solid rgba(49,94,231,.25); outline-offset: 2px; }
.cohort-count { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.cohort-count i { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.cohort-toggle[aria-expanded="false"] .cohort-count i { transform: rotate(-45deg); }
.ticker-list[hidden] { display: none; }
.cohort-empty { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; }
.ticker-list { display: grid; gap: 6px; }
.ticker-row { width: 100%; display: grid; grid-template-columns: minmax(160px,1.5fr) repeat(7,minmax(74px,1fr)); align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .14s ease,border-color .14s ease; }
.ticker-row:hover { background: rgba(49,94,231,.04); border-color: rgba(49,94,231,.3); }
.ticker-row[aria-pressed="true"] { border-color: var(--curve); background: rgba(49,94,231,.07); }
.ticker-name strong,.ticker-metric strong { display: block; font-weight: 500; }
.ticker-name small,.ticker-metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.ticker-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score strong { color: var(--curve); }
.empty { padding: 24px 0; color: var(--muted); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.contact-link,.back-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.contact-link { font-size: 11px; font-weight: 400; }
.contact-link:hover,.back-link:hover { border-color: rgba(49,94,231,.4); background: rgba(49,94,231,.04); }
.contact-link:focus-visible,.back-link:focus-visible { outline: 3px solid rgba(49,94,231,.25); outline-offset: 2px; }
.contact-shell { width: min(720px,calc(100% - 32px)); }
.contact-hero { align-items: center; }
.contact-content { padding: 32px 38px 38px; text-align: center; }
.contact-content h2 { margin-bottom: 8px; font-size: 25px; }
.contact-content p { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.contact-image { display: block; width: min(100%,520px); height: auto; margin: 0 auto; border-radius: 16px; }
.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; }

@media (max-width: 820px) {
  .shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .hero,.selected-head { padding: 24px 20px 22px; }
  .selected-head { display: block; }
  .selected-meta { margin-top: 18px; justify-content: space-between; gap: 12px; text-align: left; }
  .selected-meta span { min-width: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .net-stat { grid-column: 1/-1; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat { padding: 18px 20px; }
  .chart-section,.overview { padding: 24px 16px 28px; }
  .section-head { display: block; }
  .expiry-control { justify-content: flex-start; max-width: none; margin-top: 16px; }
  .expiry-control legend { text-align: left; }
  .overview-head { align-items: flex-start; }
  .ticker-row { grid-template-columns: minmax(140px,1.4fr) repeat(5,minmax(68px,1fr)); }
  .ticker-row .secondary-metric { display: none; }
  footer { align-items: flex-start; flex-direction: column; padding: 18px 20px; }
  .contact-content { padding: 28px 20px 32px; }
  .contact-link { width: 100%; }
}
@media (max-width: 560px) {
  .hero { display: block; }
  .asof-block { margin-top: 18px; text-align: left; }
  .selected-head h2 span:last-child { display: block; margin: 5px 0 0; }
  .selected-meta { display: grid; grid-template-columns: repeat(3,1fr); }
  .selected-meta strong { font-size: 15px; }
  .overview-head { display: block; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 17px; }
  .date-filter { grid-column: 1/-1; min-width: 0; }
  .date-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .date-option:first-child { grid-column: 1/-1; }
  .cap-filter { grid-column: 1/-1; min-width: 0; width: 100%; }
  .filters label,.filters select,.filters input { min-width: 0; width: 100%; }
  .ticker-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ticker-row .secondary-metric { display: block; }
  .ticker-name { grid-column: 1/-1; }
  .chart-wrap { min-height: 380px; }
  .legend { gap: 10px 13px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg:#0d1110; --surface:#131918; --ink:#f0f5f3; --muted:#9eaaa7; --line:#27302e; --grid:#222b29; --call:#25c997; --put:#ff5570; --curve:#7696ff; --flip:#ffa35c; --price:#a0aaa8; --shadow:0 18px 60px rgba(0,0,0,.3); }
  .expiry-option input:checked + span { color: #0d1110; }
}
