:root {
  color-scheme: dark;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  color: #d9e3f1;
  background: #0d141d;
  --surface: #101a26;
  --surface-raised: #162331;
  --line: #263444;
  --muted: #98a9bf;
  --accent: #66dfba;
  --number-font: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { min-height: 36px; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
svg { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; }
.skip-link { position: absolute; top: -100px; left: 15px; z-index: 20; padding: 12px; background: var(--surface-raised); border-radius: 5px; }
.skip-link:focus { top: 7px; }
.site-header { background: #111b27; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 55px; padding: 0 24px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #edf4ff; font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.brand-light { font-weight: 450; }
.brand-mark { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 25px; height: 25px; padding: 4px 3px; }
.brand-mark i { width: 4px; height: 7px; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }
.site-nav { display: flex; align-self: stretch; gap: 24px; }
.site-nav a { display: flex; gap: 7px; align-items: center; color: var(--muted); border-bottom: 2px solid transparent; font-size: 12px; padding: 0 2px; }
.site-nav a[aria-current] { color: #d9e3f1; border-color: var(--accent); }
.provider-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-left: auto; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page { padding: 24px; min-height: calc(100vh - 108px); }
.page.terminal-page { padding: 0; }
.terminal-workspace { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: calc(100vh - 108px); }
.stock-sidebar { background: #0f1822; border-right: 1px solid var(--line); }
.stock-browser { position: sticky; top: 0; }
.stock-browser-heading { padding: 17px 16px 0; font-size: 11px; color: #a5b5c9; list-style: none; letter-spacing: .2px; display: flex; align-items: center; justify-content: space-between; }
.stock-browser-heading::-webkit-details-marker { display: none; }
.stock-browser-heading > svg { transition: transform .15s; }
.stock-browser[open] > summary > svg { transform: rotate(180deg); }
.sidebar-content { padding: 14px 12px 20px; }
.search-input-wrap { display: flex; align-items: center; gap: 7px; background: #121f2c; border: 1px solid #314355; border-radius: 5px; padding: 0 8px; color: #9cadc1; }
.search-input-wrap:focus-within { border-color: var(--accent); }
.search-input-wrap input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: #e0e9f8; font-size: 12px; }
.search-input-wrap input::placeholder { color: #9caec3; }
.search-input-wrap button { background: transparent; border: 0; min-height: 32px; padding: 0; color: #a4b8ce; }
.search-input-wrap button:hover { color: var(--accent); }
.sidebar-label { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1.2px; color: #7f93ab; margin: 24px 5px 10px; }
.stock-list { max-height: calc(100vh - 255px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b3d50 #0f1822; }
.stock-link { display: flex; flex-direction: column; gap: 4px; padding: 13px 12px; margin: 2px 0; border-radius: 4px; border-left: 3px solid transparent; color: #cbd9ec; }
.stock-link strong { font-size: 13px; font-weight: 600; }
.stock-link span { font-size: 11px; color: #95a9c0; line-height: 1.4; }
.stock-link:hover { background: #142330; }
.stock-link.active { border-left-color: var(--accent); background: #1a2a39; color: #e4efff; }
.sidebar-help, .sidebar-empty { font-size: 10px; line-height: 1.7; color: #8398b0; margin: 20px 5px 0; }
.terminal-main { min-width: 0; padding: 21px 23px 28px; }
.readiness-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: #98acc4; font-size: 10px; padding: 0 0 15px; margin-bottom: 17px; border-bottom: 1px solid #233445; }
.readiness-strip strong { color: #bdd0e6; font-weight: 500; }
.readiness-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 6px 1px 0; background: #71869d; }
.readiness-strip.ready .readiness-dot { background: var(--accent); }
.readiness-strip.ready strong { color: var(--accent); }
.terminal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 23px; }
.stock-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stock-identity h1 { font-size: 34px; font-weight: 600; letter-spacing: -1px; margin: 0; color: #e0ebff; }
.stock-identity h2 { font-size: 15px; font-weight: 550; color: #c6d5e9; margin: 0; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-identity p { color: #94a9c2; font-size: 11px; margin: 6px 0 0; }
.day-controls { flex-shrink: 0; text-align: center; }
.date-navigation { display: flex; align-items: center; justify-content: center; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #34485b; border-radius: 5px; background: #15222f; color: #b6c9e1; }
.icon-button:hover { border-color: #619a91; background: #1b343c; color: var(--accent); }
.icon-button.disabled { opacity: .35; cursor: default; }
.date-picker select { border: 0; background: transparent; padding: 0 3px; color: #dce7f8; font-size: 16px; font-weight: 600; min-height: 32px; }
.date-picker option { background: var(--surface); color: #dce7f8; }
.date-context { font-size: 11px; color: #9bafc7; margin: 6px 0 0; }
.toolbar-filters { display: flex; align-items: end; gap: 18px; }
.expiration-form { display: grid; gap: 5px; }
.expiration-form label { font-size: 10px; color: #9cacc2; }
.expiration-form select { border: 1px solid #314356; border-radius: 5px; background: #101b27; color: #c5d5e9; font-size: 12px; padding: 6px 10px; min-width: 155px; }
.contract-tabs { display: flex; border: 1px solid #2c3c50; border-radius: 5px; overflow: hidden; }
.contract-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; color: #abbdd4; padding: 7px 12px; font-size: 11px; white-space: nowrap; border-right: 1px solid #26384c; }
.contract-tabs a:last-child { border-right: 0; }
.contract-tabs a:hover { background: #1a2b39; color: #e3f0ff; }
.contract-tabs a[aria-current] { background: #65dcb8; color: #102d28; font-weight: 650; }
.chain-quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: #111d29; }
.quick-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-filter { padding: 8px 12px; border: 1px solid #3a5066; border-radius: 5px; background: #172635; color: #c6d6eb; font-size: 12px; }
.quick-filter span { font-size: 10px; opacity: .8; }
.quick-filter:hover:not(:disabled) { border-color: #619a91; background: #1b343c; }
.quick-filter[aria-pressed="true"] { border-color: #61cfaf; background: #1c3e38; color: #8defcd; }
.quick-filter:disabled { opacity: .5; cursor: not-allowed; }
.chain-quick-filters p { margin: 0; color: #9bafc7; font-size: 11px; line-height: 1.8; }
.chain-quick-filters strong { font-variant-numeric: tabular-nums; color: #d4e2f4; font-weight: 550; }
.moneyness-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: -3px 0 17px; color: #becde0; font-size: 11px; }
.moneyness-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.moneyness-basis, .moneyness-unavailable { color: #9bafc7; font-size: 11px; }
.moneyness-unavailable { margin: -3px 0 17px; }
.moneyness-badge { position: relative; display: inline-block; padding: 2px 5px; border: 1px solid; border-radius: 3px; font: 600 9px/1.3 "Segoe UI", sans-serif; letter-spacing: .5px; vertical-align: middle; }
.moneyness-badge.money-itm { background: #19435e; color: #a5dfff; border-color: #4a829f; }
.moneyness-badge.money-atm { background: #4a3716; color: #ffe2a3; border-color: #ac8744; }
.table-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #92a8c2; font-size: 10px; margin: 1px 0 13px; }
.context-divider { margin: 0 8px; color: #51677f; }
.expansion-tools { display: inline-flex; gap: 8px; align-items: center; }
.expansion-tools button { background: none; border: 0; color: #a8bfd6; font-size: 10px; padding: 3px 0; min-height: 24px; }
.expansion-tools button:hover { color: var(--accent); }
.expiration-sections { border: 1px solid #293a4d; border-radius: 6px; overflow: hidden; }
.expiration-group + .expiration-group { border-top: 1px solid #2a3b4d; }
.expiration-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 15px; background: #152230; list-style: none; user-select: none; }
.expiration-heading::-webkit-details-marker { display: none; }
.expiration-heading:hover { background: #1a2c3b; }
.expiration-title { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: #cfdef2; }
.expiration-title > svg { color: var(--accent); transform: rotate(-90deg); }
.expiration-group[open] > summary .expiration-title > svg { transform: rotate(0); }
.expiration-label { color: #8da4be; font-size: 8px; letter-spacing: 1px; font-weight: 400; }
.expiration-count { color: #9eb2cb; font-size: 10px; }
.table-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #344c63 #101925; }
.chain-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.chain-table.single-side { min-width: 520px; }
.chain-table thead th { border-block: 1px solid #293a4d; background: #111e2b; color: #9fb6d2; text-align: right; font-size: 10px; font-weight: 450; padding: 10px 12px; white-space: nowrap; }
.chain-table .side-heading th { font-size: 16px; font-weight: 550; text-align: left; color: #ccddf3; background: #121f2c; padding: 10px 14px; }
.chain-table .side-heading .strike-heading { text-align: center; width: 100px; font-size: 13px; background: #19293b; border-inline: 1px solid #2b4056; }
.chain-table tbody td { text-align: right; border-bottom: 1px solid #243344; padding: 7px 12px; height: 34px; background: #101923; color: #d3dff0; font-size: 12px; font-family: var(--number-font); white-space: nowrap; }
.chain-table tbody tr:nth-child(even) td { background: #15212e; }
.chain-table tbody tr:hover td { background: #1c3041; }
.chain-table tbody td.strike-cell { text-align: center; font-weight: 600; color: #e1ecfb; background: #19283a; border-inline: 1px solid #2b4056; }
.chain-table .previous-oi { color: #9fb2ca; }
.chain-table .current-oi { color: #e1ebfb; }
.chain-table .iv-cell { color: #94abc5; font-size: 11px; }
.chain-table .missing-contract { text-align: center; color: #60788f; }
.chain-table tbody td.money-itm { background: #142f43; border-bottom-color: #2c4d63; }
.chain-table tbody tr:nth-child(even) td.money-itm { background: #19364c; }
.chain-table tbody tr:hover td.money-itm { background: #23455d; }
.chain-table tbody td.money-atm { background: #3b301b; border-bottom-color: #635334; }
.chain-table tbody tr:nth-child(even) td.money-atm { background: #443820; }
.chain-table tbody tr:hover td.money-atm { background: #51442a; }
.chain-table .current-oi .moneyness-badge { display: block; width: max-content; margin: 4px 0 0 auto; }
.atm-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #111c28; border-bottom: 1px solid #293a4d; }
.atm-summary > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.atm-summary-caption { color: #91a6be; font-size: 9px; letter-spacing: .5px; }
.atm-summary strong { color: #cbd9e9; font: 600 14px/1.3 var(--number-font); }
.atm-nearest-caption { color: #9bafc7; font-size: 11px; }
.atm-nearest-caption b { color: #cbd9e9; margin-left: 4px; }
.atm-summary a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #34485b; border-radius: 4px; background: transparent; color: #bdcfe4; font-size: 11px; }
.atm-summary a:hover { background: #1b2d3c; }
.nearest-atm-row { scroll-margin-top: 72px; }
.chain-table tbody tr.nearest-atm-row > td.atm-strike { background: #3b3528; color: #e6d3a8; font-size: 14px; border: 1px solid #6a5c3f; }
.atm-strike-label { display: block; margin-top: 4px; font: 750 8px/1.4 "Segoe UI", sans-serif; letter-spacing: .5px; }
.chain-table tbody tr.stock-price-marker > td { padding: 0; height: auto; background: #121d29; border-block: 1px solid #344253; }
.stock-price-marker td > div { display: flex; align-items: center; gap: 12px; padding: 6px 12px; }
.stock-price-marker td > div::before, .stock-price-marker td > div::after { content: ""; height: 1px; flex: 1; background: #39495b; }
.stock-price-marker span { color: #9bafc7; font: 500 9px/1.6 "Segoe UI", sans-serif; letter-spacing: .4px; white-space: nowrap; }
.stock-price-marker strong { font: 600 12px/1.6 var(--number-font); margin-left: 8px; color: #cbd9e9; }
.change-badge { font-weight: 550; }
.change-badge.positive, .positive { color: #61e0b4; }
.change-badge.negative, .negative { color: #ff6985; }
.change-badge.unchanged { color: #94a8c1; }
.new-label { display: inline-block; font-family: "Segoe UI", sans-serif; font-size: 8px; color: #72b9ef; margin-left: 5px; }
.no-prior { font-family: "Segoe UI", sans-serif; font-size: 10px; color: #90a5be; }
.muted { color: #698098; }
abbr[title] { text-decoration: none; cursor: help; }
.table-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #92a9c3; font-size: 10px; padding: 12px 15px; background: #111c29; }
.pagination { display: flex; align-items: center; gap: 14px; }
.pagination a { color: #b9cde4; padding: 6px 10px; border: 1px solid #344a60; border-radius: 4px; }
.pagination a:hover { background: #193137; color: var(--accent); }
.pagination [aria-disabled] { color: #5e768e; }
.table-empty { text-align: center; padding: 45px 15px; color: #a2b6cd; font-size: 12px; background: #101923; }
.viewer-notes { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-top: 14px; color: #8da3bd; font-size: 10px; line-height: 1.8; }
.viewer-notes p { display: flex; gap: 7px; margin: 0; max-width: 790px; }
.viewer-notes p > svg { margin-top: 2px; }
.keyboard-hint { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
kbd { font-family: inherit; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #32465b; background: #14202d; border-radius: 3px; color: #b0c2d7; }
.notice { display: flex; align-items: start; gap: 10px; padding: 12px 15px; background: #2a251a; border: 1px solid #625239; border-radius: 5px; color: #dec790; font-size: 12px; line-height: 1.7; margin-bottom: 18px; overflow-wrap: anywhere; }
.notice > svg { margin-top: 2px; }
.notice details { margin-top: 4px; }
.collection-notice > div { flex: 1; min-width: 0; }
.notice-dismiss { flex-shrink: 0; min-height: 30px; padding: 4px 9px; border: 1px solid #75613c; border-radius: 4px; background: transparent; color: #dec790; font-size: 11px; }
.notice-dismiss:hover { background: #3b311e; }
.notice-error { background: #2f1c25; border-color: #6d3849; color: #f8b2c1; }
.contract-history-link { display: inline-block; min-width: 30px; padding: 2px 0; color: inherit; text-decoration: underline; text-decoration-color: #728eaa; text-underline-offset: 4px; text-decoration-style: dotted; }
.history-inline-hint { display: inline-block; margin-left: 14px; color: #a0b8cf; }
.contract-history-link:hover { color: var(--accent); text-decoration-style: solid; }
body:has(.contract-history-dialog[open]) { overflow: hidden; }
.contract-history-dialog { width: min(880px, calc(100vw - 24px)); max-width: none; max-height: 90vh; max-height: 90dvh; padding: 0; border: 1px solid #3a5066; border-radius: 10px; background: #101b27; color: #d9e3f1; box-shadow: 0 25px 100px #0009; }
.contract-history-dialog[open] { display: flex; flex-direction: column; }
.contract-history-dialog::backdrop { background: #030910bd; backdrop-filter: blur(2px); }
.history-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #2c3e52; background: #142231; }
.history-dialog-header h2 { margin: 0; font-size: 15px; font-weight: 550; }
.history-dialog-header > div { display: flex; align-items: center; gap: 14px; }
.history-dialog-header a { font-size: 11px; color: #b8ccdf; }
.history-dialog-header button { padding: 6px 12px; border: 1px solid #42596f; border-radius: 4px; background: #1b3041; color: #d5e5f6; font-size: 12px; }
.history-dialog-header button:hover { background: #284256; }
.history-dialog-content { overflow-y: auto; min-height: 0; padding: 22px; }
.history-status { margin: 0; padding: 25px 0; color: #b1c5db; font-size: 13px; line-height: 1.8; }
.history-page { max-width: 960px; margin: 0 auto; padding: 26px 20px; }
.history-page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.history-page-heading h1 { margin: 0; font-size: 23px; font-weight: 550; }
.history-page-heading a { font-size: 12px; }
.history-contract-heading h2 { margin: 0; color: #dce9fa; font-size: 25px; font-weight: 600; }
.history-contract-heading h2 span { color: #a9c2da; margin-left: 6px; }
.history-contract-code { margin: 8px 0 0; color: #90a8c1; font: 11px/1.5 var(--number-font); overflow-wrap: anywhere; }
.history-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.history-stats > div { padding: 13px; border: 1px solid #2c4055; border-radius: 6px; background: #142332; }
.history-stats span { display: block; margin-bottom: 8px; color: #9fb4cc; font-size: 11px; }
.history-stats strong { display: block; font: 600 24px/1.3 var(--number-font); }
.history-stats small { display: block; margin-top: 7px; color: #9db1c9; font-size: 10px; line-height: 1.5; }
.history-chart { margin: 0; padding: 16px 12px 5px; border: 1px solid #2b4055; border-radius: 6px; background: #101d2a; }
.history-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; padding: 0 5px 7px; color: #c6d9ec; font-size: 12px; }
.history-chart figcaption span { color: #91a8bf; font-size: 10px; }
.history-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #2a3d50; stroke-width: 1; }
.chart-label { fill: #a1b6ce; font: 10px var(--number-font); }
.history-chart-line { fill: none; stroke: #6bdbba; stroke-width: 2.5; stroke-linejoin: round; }
.history-chart-dot { fill: #6bdbba; stroke: #10202a; stroke-width: 2; cursor: help; }
.history-chart-dot.selected { fill: #e4c47f; stroke: #f0dfbc; }
.history-explanation { margin: 13px 0; color: #9db2ca; font-size: 11px; line-height: 1.8; }
.history-table-wrap { position: relative; overflow: auto; max-height: 340px; border: 1px solid #2c4055; border-radius: 6px; }
.history-table { width: 100%; min-width: 460px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.history-table th, .history-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid #26394c; font-size: 12px; }
.history-table thead th { position: sticky; top: 0; z-index: 1; background: #1b2d3f; color: #adbed2; font-size: 10px; font-weight: 500; }
.history-table th:first-child { text-align: left; }
.history-table tbody th { font-weight: 450; }
.history-table tbody td { font-family: var(--number-font); }
.history-table tr:nth-child(even) { background: #142230; }
.history-table tr.history-selected-date { background: #1a3541; }
.history-table .history-selected-date th { box-shadow: inset 3px 0 #6bdbba; }
.history-viewed-day { margin-left: 8px; color: #80dfc2; font-size: 9px; }
@media (max-width: 520px) {
  .history-dialog-header { padding: 12px; }
  .history-dialog-header h2 { font-size: 13px; }
  .history-dialog-header > div { gap: 9px; }
  .history-dialog-content { padding: 16px 12px; }
  .history-stats { gap: 6px; }
  .history-stats > div { padding: 10px 8px; }
  .history-stats strong { font-size: 18px; }
  .history-chart { padding-inline: 5px; }
  .history-chart .chart-label { font-size: 20px; }
  .history-table { min-width: 0; table-layout: fixed; }
  .history-table th, .history-table td { padding: 10px 8px; }
  .history-table th:first-child { width: 44%; }
  .history-contract-heading h2 { font-size: 22px; }
}
.empty-state { border: 1px solid var(--line); border-radius: 6px; padding: 85px 25px; text-align: center; background: #101b27; min-height: 450px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 12px; color: var(--accent); border: 1px solid #304e53; background: #142e32; margin-bottom: 25px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: #819cb5; margin: 0 0 12px; }
.empty-state h1 { font-size: 29px; font-weight: 550; letter-spacing: -.7px; margin: 0; }
.empty-state > p:not(.eyebrow) { font-size: 13px; color: #9fb4ce; line-height: 1.8; }
.empty-steps { display: flex; justify-content: center; gap: 30px; margin-top: 40px; font-size: 10px; color: #67c7ae; }
.empty-steps b { font-weight: 400; color: #8fa7c0; margin-left: 6px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 53px; padding: 14px 24px; border-top: 1px solid var(--line); color: #7e96b0; font-size: 10px; }
.footer-dot { margin: 0 6px; color: #4f647c; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.filters select, .filters button, .button-secondary { background: #152433; color: #cee0f5; border: 1px solid #3a5066; border-radius: 4px; padding: 7px 12px; }
.panel, .empty { padding: 20px; border: 1px solid var(--line); background: #111d2a; border-radius: 6px; }
.panel-heading h2 { font-size: 20px; margin: 0; }
.panel-heading p { font-size: 12px; color: var(--muted); }
.panel table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: right; }
.panel th, .panel td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.panel .pagination { justify-content: end; padding-top: 15px; }
.top-symbols-page { max-width: 1180px; margin: 0 auto; padding-block: 32px; }
.symbol-ranking-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.symbol-ranking-heading h1 { margin: 0; font-size: 30px; font-weight: 550; letter-spacing: -.7px; }
.symbol-ranking-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.symbol-ranking-heading .filters { margin: 0; }
.ranking-tabs { display: flex; gap: 4px; border-bottom: 1px solid #34495e; margin-bottom: 26px; }
.ranking-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px; border-bottom: 3px solid transparent; font-size: 13px; color: #a9bdd3; border-radius: 5px 5px 0 0; }
.ranking-tabs a:hover { background: #182a39; color: #e0ecfa; }
.ranking-tabs .ranking-tab-added[aria-current] { border-bottom-color: #76e7c0; background: #162d2c; color: #91edc9; }
.ranking-tabs .ranking-tab-lost[aria-current] { border-bottom-color: #ff91a6; background: #2d202a; color: #ffabc0; }
.ranking-tabs a[aria-current] { font-weight: 650; }
.symbol-ranking-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #a8bdd5; font-size: 12px; }
.symbol-ranking-context > span:last-child { color: var(--muted); font-size: 11px; }
.symbol-ranking-wrap { border: 1px solid var(--line); border-radius: 6px; }
.symbol-ranking-table { width: 100%; min-width: 850px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.symbol-ranking-table th, .symbol-ranking-table td { text-align: right; padding: 17px 18px; border-bottom: 1px solid var(--line); font: 12px var(--number-font); }
.symbol-ranking-table thead th { background: #172534; color: #9fb6d2; font: 11px "Segoe UI", sans-serif; }
.symbol-ranking-table th:first-child, .symbol-ranking-table th:nth-child(2), .symbol-ranking-table .ranking-position { text-align: left; }
.symbol-ranking-table tbody tr { background: #101b27; }
.symbol-ranking-table tbody tr:nth-child(even) { background: #142230; }
.symbol-ranking-table tbody tr:hover { background: #1a2e3e; }
.symbol-ranking-table tbody tr:last-child > * { border-bottom: 0; }
.symbol-ranking-table tbody th a { display: inline-flex; gap: 12px; align-items: center; color: #dbe9fa; font: 600 14px "Segoe UI", sans-serif; }
.symbol-ranking-table tbody th a svg { color: #7294af; }
.symbol-ranking-table tbody th a:hover, .symbol-ranking-table tbody th a:hover svg { color: var(--accent); }
.symbol-ranking-table .ranking-position { color: #8098b2; width: 65px; }
.symbol-ranking-table thead th:nth-child(3), .symbol-ranking-table td.business-name { text-align: left; }
.symbol-ranking-table td.business-name { min-width: 180px; max-width: 260px; overflow-wrap: anywhere; font: 12px/1.5 "Segoe UI", sans-serif; color: #b8cbe0; }
.symbol-ranking-table td.business-name-missing { color: #8098b2; }
.ranking-percent { display: inline-block; padding: 6px 8px; border-radius: 4px; color: #76e7c0; background: #183a34; font-weight: 600; }
.ranking-percent.negative { color: #ff91a6; background: #3c2330; }
.symbol-ranking-section { margin-top: 24px; }
.symbol-ranking-section h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 17px; font-weight: 550; margin: 0 0 12px; }
.symbol-ranking-section h2 span { color: var(--muted); font-size: 11px; font-weight: 400; }
.symbol-ranking-table td.table-empty { text-align: center; font: 12px/1.8 "Segoe UI", sans-serif; white-space: normal; padding: 35px 20px; }
.symbol-ranking-notes { color: #92a9c1; font-size: 11px; line-height: 1.9; margin: 17px 0; }
@media (max-width: 1250px) {
  .terminal-toolbar { flex-wrap: wrap; gap: 18px; }
  .toolbar-filters { margin-left: auto; }
  .stock-identity { flex: 1; }
  .viewer-notes { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 850px) {
  .header-inner { padding: 12px 16px 0; gap: 12px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; gap: 24px; }
  .site-nav a { min-height: 40px; }
  .terminal-workspace { grid-template-columns: minmax(0, 1fr); }
  .stock-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .stock-browser { position: static; }
  .stock-browser-heading { padding: 14px 18px; }
  .sidebar-content { padding: 0 18px 15px; }
  .stock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 210px; }
  .sidebar-label { margin-top: 16px; }
  .sidebar-help { margin-top: 12px; }
  .terminal-main { padding: 20px 16px 26px; }
  .stock-identity h1 { font-size: 29px; }
  .stock-identity h2 { font-size: 13px; max-width: 190px; }
  .toolbar-filters { margin-left: 0; width: 100%; justify-content: space-between; }
  .chain-table { min-width: 900px; }
  .table-bottom { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 53px; }
  .brand { font-size: 17px; gap: 6px; }
  .site-nav a { font-size: 10px; }
  .provider-badge { font-size: 9px; gap: 5px; }
  .provider-badge .status-dot { width: 4px; height: 4px; }
  .terminal-toolbar { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .stock-identity { gap: 15px; }
  .stock-identity h2 { max-width: 230px; }
  .date-navigation { justify-content: space-between; }
  .date-picker select { font-size: 17px; }
  .toolbar-filters { gap: 10px; align-items: stretch; flex-direction: column; }
  .expiration-form { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  .contract-tabs a { flex: 1; }
  .table-context { align-items: start; flex-direction: column; gap: 4px; }
  .expiration-heading { padding: 13px 10px; gap: 8px; }
  .expiration-title { gap: 7px; font-size: 12px; }
  .expiration-label { display: none; }
  .expiration-count { font-size: 9px; }
  .expiration-count .context-divider { margin: 0 3px; }
  .empty-state { padding: 55px 18px; }
  .empty-state h1 { font-size: 24px; }
  .empty-steps { flex-direction: column; gap: 15px; }
  .site-footer { flex-direction: column; align-items: start; padding: 16px; gap: 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, summary { transition: background .15s ease, color .15s ease; }
}
