* { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; }

:root {
  --page-px: 16px;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-inner: #f0f0f0;
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --up: #16a34a;
  --down: #dc2626;
  --th-bg: rgba(15,23,42,.035);
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --row-hover: rgba(59,130,246,.07);
  --highlight-soft: #eff6ff;
  --highlight-hover: #dbeafe;
  --cell-clicked: #fef9c3;
  --overlay: rgba(0,0,0,.4);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #0f1117;
    --fg: #e4e8f0;
    --muted: #8b9ab5;
    --muted-light: #5a6a84;
    --border: #2a3347;
    --border-inner: #1e2636;
    --blue: #60a5fa;
    --blue-dark: #93c5fd;
    --up: #4ade80;
    --down: #f87171;
    --th-bg: rgba(255,255,255,.045);
    --surface: #161c2c;
    --surface-2: #1a2235;
    --row-hover: rgba(96,165,250,.1);
    --highlight-soft: rgba(96,165,250,.12);
    --highlight-hover: rgba(96,165,250,.2);
    --cell-clicked: rgba(234,179,8,.22);
    --overlay: rgba(0,0,0,.65);
    color-scheme: dark;
  }
}

html.dark {
  --bg: #0f1117;
  --fg: #e4e8f0;
  --muted: #8b9ab5;
  --muted-light: #5a6a84;
  --border: #2a3347;
  --border-inner: #1e2636;
  --blue: #60a5fa;
  --blue-dark: #93c5fd;
  --up: #4ade80;
  --down: #f87171;
  --th-bg: rgba(255,255,255,.045);
  --surface: #161c2c;
  --surface-2: #1a2235;
  --row-hover: rgba(96,165,250,.1);
  --highlight-soft: rgba(96,165,250,.12);
  --highlight-hover: rgba(96,165,250,.2);
  --cell-clicked: rgba(234,179,8,.22);
  --overlay: rgba(0,0,0,.65);
  color-scheme: dark;
}

html.light {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-inner: #f0f0f0;
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --up: #16a34a;
  --down: #dc2626;
  --th-bg: rgba(15,23,42,.035);
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --row-hover: rgba(59,130,246,.07);
  --highlight-soft: #eff6ff;
  --highlight-hover: #dbeafe;
  --cell-clicked: #fef9c3;
  --overlay: rgba(0,0,0,.4);
  color-scheme: light;
}

/* Top nav */
#search-wrap { padding: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
#search-top-bar { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 38px; }
#home-link, #watchlist-link, #atm-link, #user-manual-link { color: var(--blue); text-decoration: none;
             white-space: nowrap; flex-shrink: 0; font-weight: 400; font-size: 12px;
             padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
#home-link:hover, #watchlist-link:hover, #atm-link:hover, #user-manual-link:hover {
  border-color: var(--blue); background: var(--highlight-soft); text-decoration: none; }
#home-link.active, #watchlist-link.active, #atm-link.active, #user-manual-link.active {
  border-color: var(--blue); background: var(--highlight-soft); color: var(--blue-dark); font-weight: 500; }
#theme-link { color: var(--muted); text-decoration: none; white-space: nowrap; flex-shrink: 0;
              font-weight: 400; font-size: 14px; padding: 3px 8px; border: 1px solid var(--border);
              border-radius: 6px; background: var(--bg); margin-left: auto; cursor: pointer;
              line-height: 1; display: flex; align-items: center; }
#theme-link:hover { border-color: var(--blue); color: var(--blue); }
#search-bar { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border);
              border-radius: 6px; padding: 4px 8px; cursor: pointer; background: var(--bg);
              flex: 0 0 28%; max-width: 28%; min-width: 90px; }
#search-bar:hover { border-color: var(--muted-light); }
#search-bar .search-icon { width: 13px; height: 13px; color: var(--muted-light); flex-shrink: 0; }
#search-placeholder { flex: 1; min-width: 0; color: var(--muted-light); font-size: 12px;
                       white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd { color: var(--muted-light); border: 1px solid var(--border);
       border-radius: 0; padding: 0 4px; background: var(--surface); flex-shrink: 0; font-size: 12px; }
.sym-link { color: var(--blue); text-decoration: none; font-weight: 400; }

/* Search modal */
#search-backdrop { display: none; position: fixed; inset: 0; background: var(--overlay);
                   z-index: 1000; justify-content: center; padding-top: 80px; }
#search-backdrop.open { display: flex; }
#search-modal { background: var(--bg); border-radius: 6px; width: min(600px,90vw);
                max-height: 70vh; overflow: hidden; display: flex; flex-direction: column;
                border: 1px solid var(--border); }
#search-top { display: flex; align-items: center; gap: 10px;
              padding: 10px 16px; border-bottom: 1px solid var(--surface-2); flex-shrink: 0; }
#search-top .search-icon { width: 16px; height: 16px; color: var(--muted-light); flex-shrink: 0; }
#search-input { flex: 1; border: none; outline: none; font-size: 12px;
                font-family: inherit; color: var(--fg); background: transparent;
                text-transform: uppercase; }
#search-results { overflow-y: auto; padding: 4px 0; }
.sr-item { padding: 8px 16px; cursor: pointer; }
.sr-item:hover, .sr-item.active { background: var(--surface); }
.sr-symbol { font-weight: 400; color: var(--fg); }
.sr-name { color: var(--muted); margin-top: 2px; }
.sr-empty { padding: 20px 16px; color: var(--muted-light); text-align: center; }

html { scroll-behavior: smooth; }
body { font-family: 'SF Mono', ui-monospace, Menlo, monospace;
       font-weight: 400; font-size: 12px; line-height: 1.5; background: var(--bg); color: var(--fg); }
.sym-nav-wrap { display: flex; align-items: center; gap: 4px; }
#symbol-nav { display: flex; gap: 8px; padding: 5px 16px; flex-wrap: wrap;
              position: sticky; top: 0; z-index: 100;
              background: var(--bg); border-bottom: 1px solid var(--border); }
#symbol-nav:empty { display: none; }
.sym-nav-link { color: var(--blue); text-decoration: none; padding: 3px 10px;
                border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
                white-space: nowrap; font-family: inherit; font-size: 12px; cursor: pointer;
                font-weight: 400; }
.sym-nav-link:hover { border-color: var(--blue); background: var(--highlight-soft); text-decoration: none; }
.sym-nav-link.active { border-color: var(--blue); background: var(--highlight-soft); color: var(--blue-dark); font-weight: 500; }
.section { scroll-margin-top: 60px; }

/* Fundamental Analysis modal */
#fund-modal-backdrop { display: none; position: fixed; inset: 0; background: var(--overlay);
                       z-index: 500; justify-content: center; align-items: flex-start;
                       padding-top: 60px; }
#fund-modal-backdrop.open { display: flex; }
#fund-modal { background: var(--bg); border-radius: 6px; width: min(800px, 95vw);
              max-height: 80vh; overflow-y: auto;
              border: 1px solid var(--border); }
#fund-modal-hdr { display: flex; align-items: center; justify-content: space-between;
                  padding: 10px 16px; border-bottom: 1px solid var(--surface-2);
                  position: sticky; top: 0; background: var(--bg); z-index: 1; font-weight: 400; }
#fund-modal-close { border: none; background: none; font-size: 20px; cursor: pointer;
                    color: var(--muted-light); line-height: 1; padding: 0 4px; }
#fund-modal-close:hover { color: var(--fg); }
#fund-modal-body { padding: 0 16px 16px; }
.fund-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 0 8px; }
.fund-tab { border: 1px solid transparent; background: none; font-family: inherit; font-size: inherit;
            cursor: pointer; color: var(--muted); padding: 3px 10px; border-radius: 6px; }
.fund-tab:hover { background: var(--surface-2); color: var(--fg); }
.fund-tab.active { color: var(--blue-dark); background: var(--bg); border-color: var(--border); }
.section { margin: 0 0 1px 0; padding: 10px 16px; }
.peers-row { margin-top: 4px; padding-bottom: 8px; }
.sec-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mover-pair { display: flex; gap: 32px; overflow-x: hidden; }
.mover-col { min-width: 0; }
.mover-col-lbl { font-weight: 400; color: var(--muted); font-size: 12px;
                 text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sf { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pill { color: var(--blue); cursor: pointer; border: none;
        background: none; font-family: inherit; padding: 0; }
.pill:hover { color: var(--blue-dark); }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-list.compact { gap: 4px; margin-bottom: 8px; }
.news-headline { color: var(--blue); text-decoration: none; }
.news-headline:hover { text-decoration: underline; }
.news-more-btn, .filings-more-btn { display: inline-block; margin-top: 8px; }

/* News modal */
#news-modal-backdrop { display: none; position: fixed; inset: 0; background: var(--overlay);
                       z-index: 500; justify-content: center; align-items: flex-start;
                       padding-top: 60px; }
#news-modal-backdrop.open { display: flex; }
#news-modal { background: var(--bg); border-radius: 6px; width: min(1000px, 95vw);
              max-height: 80vh; overflow-y: auto;
              border: 1px solid var(--border); }
#news-modal-hdr { display: flex; align-items: center; justify-content: space-between;
                  padding: 10px 16px; border-bottom: 1px solid var(--surface-2);
                  position: sticky; top: 0; background: var(--bg); z-index: 1; font-weight: 400; }
#news-modal-close { border: none; background: none; font-size: 20px; cursor: pointer;
                    color: var(--muted-light); line-height: 1; padding: 0 4px; }
#news-modal-close:hover { color: var(--fg); }
#news-modal-body { padding: 12px 16px 16px; }

/* Filings modal */
#filings-modal-backdrop { display: none; position: fixed; inset: 0; background: var(--overlay);
                          z-index: 500; justify-content: center; align-items: flex-start;
                          padding-top: 60px; }
#filings-modal-backdrop.open { display: flex; }
#filings-modal { background: var(--bg); border-radius: 6px; width: min(700px, 95vw);
                 max-height: 80vh; overflow-y: auto;
                 border: 1px solid var(--border); }
#filings-modal-hdr { display: flex; align-items: center; justify-content: space-between;
                     padding: 10px 16px; border-bottom: 1px solid var(--surface-2);
                     position: sticky; top: 0; background: var(--bg); z-index: 1; font-weight: 400; }
#filings-modal-close { border: none; background: none; font-size: 20px; cursor: pointer;
                       color: var(--muted-light); line-height: 1; padding: 0 4px; }
#filings-modal-close:hover { color: var(--fg); }
#filings-modal-body { padding: 12px 16px 16px; }
table { border-collapse: collapse; width: max-content; font-variant-numeric: tabular-nums; font-size: 12px; font-family: 'SF Mono', ui-monospace, Menlo, monospace; line-height: 1.2; }
th { text-align: left; padding: 4px 10px; background: var(--th-bg);
     font-weight: 400; font-size: 12px; text-transform: lowercase; letter-spacing: 0.04em;
     color: var(--muted);
     border: none; border-bottom: 1px solid var(--border);
     white-space: nowrap; user-select: none; font-family: 'SF Mono', ui-monospace, Menlo, monospace; }
.th-i { display: flex; align-items: center; gap: 3px; }
.th-l { cursor: pointer; }
.si { font-size: 8px; color: #cbd5e1; }
.sia { color: var(--blue); } .sid { color: var(--blue); }
.hb { font-size: 12px; font-weight: 400; color: var(--muted-light); border: none; background: none;
      cursor: pointer; padding: 0 2px; font-family: inherit; opacity: 0; transition: opacity .12s; }
.hb:hover { color: var(--down); }
th:hover .hb, .mv-head .mv-cell:hover .hb { opacity: 1; }
td { padding: 4px 10px; border: none; border-bottom: 1px solid var(--border-inner); max-width: 360px;
     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
td:first-child { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-weight: 400; }
th:first-child { font-family: 'SF Mono', ui-monospace, Menlo, monospace; }
th.col-percent-change, td.col-percent-change { white-space: nowrap; }
td.col-mark, td.col-change, td.col-percent-change, td.col-volume,
td.col-1w, td.col-1m, td.col-3m, td.col-6m, td.col-1y,
.mv-cell.col-mark, .mv-cell.col-change, .mv-cell.col-percent-change, .mv-cell.col-volume { text-align: right; }
th.col-mark .th-i, th.col-change .th-i, th.col-percent-change .th-i, th.col-volume .th-i,
th.col-1w .th-i, th.col-1m .th-i, th.col-3m .th-i, th.col-6m .th-i, th.col-1y .th-i,
.mv-head .mv-cell.col-mark .th-i, .mv-head .mv-cell.col-change .th-i,
.mv-head .mv-cell.col-percent-change .th-i, .mv-head .mv-cell.col-volume .th-i { justify-content: flex-end; }

/* Shared column widths so symbol/name/mark/change/%/volume/timeframe columns
   line up consistently across the stacked homepage list sections. */
th.col-symbol, td.col-symbol { width: 70px; }
th.col-name, td.col-name { width: 190px; }
th.col-mark, td.col-mark { width: 90px; }
th.col-change, td.col-change { width: 80px; }
th.col-percent-change, td.col-percent-change { width: 90px; }
th.col-volume, td.col-volume { width: 90px; }
th.col-1w, td.col-1w, th.col-1m, td.col-1m, th.col-3m, td.col-3m,
th.col-6m, td.col-6m, th.col-1y, td.col-1y { width: 70px; }
#sec-mag7 table, #sec-volatility table, #sec-yields table,
#sec-sectors table, #sec-oil table, #sec-metals table, #sec-crypto table { table-layout: fixed; width: auto; }

.mv-table { display: grid; width: 100%; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mv-row { display: contents; }
.mv-cell { padding: 4px 10px; border: none; border-bottom: 1px solid var(--border-inner);
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
           font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 400; }
.mv-cell.col-name { min-width: 0; font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-weight: 400; }
.mv-head .mv-cell { background: var(--th-bg); border-bottom-color: var(--border);
                     user-select: none; font-weight: 400; font-size: 12px; color: var(--muted);
                     text-transform: lowercase; letter-spacing: 0.04em;
                     font-family: 'SF Mono', ui-monospace, Menlo, monospace; }
.mv-row:not(.mv-head):hover .mv-cell { background: var(--row-hover); }
tr:hover td { background: var(--row-hover); }
/* ATM: hover highlights both of a symbol's rows (its tbody), not just one. */
#atm-app tbody:hover td { background: var(--row-hover); }
#app tr:hover td:hover, #app .mv-row:not(.mv-head):hover .mv-cell:hover,
#watchlist-app tr:hover td:hover, #atm-app tr:hover td:hover,
#price-history-app tr:hover td:hover, #options-chain tr:hover td:hover,
#strike-lookup-results tr:hover td:hover { background: var(--cell-clicked); }
tr.earnings-next td { background: var(--highlight-soft); font-weight: 400; }
tr.earnings-next:hover td { background: var(--highlight-hover); }
.nil { color: var(--muted-light); }
.up { color: var(--up); font-weight: 500; } .down { color: var(--down); font-weight: 500; }
@keyframes flash-up   { 0%,100% { background: transparent; } 30% { background: rgba(22,163,74,.25); } }
@keyframes flash-down { 0%,100% { background: transparent; } 30% { background: rgba(220,38,38,.2); } }
.stream-up   { animation: flash-up   1.2s ease; }
.stream-down { animation: flash-down 1.2s ease; }
.subsec-hdr { font-weight: 400; font-size: 12px; letter-spacing: 0.05em;
              text-transform: uppercase; color: var(--muted); padding: 8px 0 2px; }
.fund-metric { font-weight: 400; color: var(--muted-light);
               text-align: left; padding: 2px 10px 2px 0; white-space: nowrap;
               background: transparent; border: none; font-family: 'SF Mono', ui-monospace, Menlo, monospace; }
.fund-val { padding: 2px 10px 2px 0; white-space: nowrap; border: none; font-weight: 400;
            font-family: 'SF Mono', ui-monospace, Menlo, monospace; }

/* Clicked cell highlight and copy toast */
.cell-clicked { background: var(--cell-clicked) !important; }
#copy-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
              background: var(--fg); color: var(--bg); padding: 5px 12px; border-radius: 6px;
              font-size: 12px; pointer-events: none; opacity: 0;
              transition: opacity .15s ease; z-index: 2000; white-space: nowrap; }
#copy-toast.show { opacity: 1; }

/* Options */
.chain-hidden-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.exp-pills { display: grid; grid-template-columns: repeat(3, max-content); gap: 2px 16px;
             margin-bottom: 10px; }
.exp-pills > .sf { grid-column: 1 / -1; margin-bottom: 2px; }
.exp-pill { font-family: inherit; border: 1px solid transparent; background: none;
            padding: 2px 6px; border-radius: 6px; cursor: pointer; color: var(--blue); font-size: 12px;
            text-align: left; white-space: nowrap; }
.exp-pill:hover { color: var(--blue-dark); }
.exp-pill.active { font-weight: 400; color: var(--blue-dark); cursor: default;
                    border-color: var(--border); background: var(--bg); }
.exp-pill-dte { color: var(--muted-light); }
.chain-group-lbl { text-align: center; letter-spacing: 0.06em; border-bottom: none; }
th.chain-strike, td.chain-strike { font-weight: 400; text-align: center;
                                    border-left: 1px solid var(--border);
                                    border-right: 1px solid var(--border); }
#options-chain th, #options-chain td { padding: 4px 8px; }
#options-chain td:not(.chain-strike) { text-align: right; }
#options-chain th:not(.chain-strike):not(.chain-group-lbl) { text-align: right; }
#options-chain th:not(.chain-strike):not(.chain-group-lbl) .th-i { justify-content: flex-end; }
tr.chain-current td { background: var(--highlight-soft); }
tr.chain-current:hover td { background: var(--highlight-hover); }

#sec-quote td.col-mark { background: var(--cell-clicked); }

.chain-layout { display: flex; align-items: flex-start; gap: 24px; }
.chain-layout-main { overflow-x: auto; }
.strike-lookup { flex: 0 0 220px; border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.strike-lookup-title { display: block; margin-bottom: 10px; }
.strike-lookup-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.strike-lookup-input { font-family: inherit; font-size: 12px; padding: 5px 8px;
                        border: 1px solid var(--border); border-radius: 6px; width: 100%;
                        background: var(--bg); color: var(--fg); }
.seg-control { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; width: fit-content; }
.seg-btn { font-family: inherit; font-size: 12px; border: none; background: none;
           padding: 4px 12px; cursor: pointer; color: var(--muted); }
.seg-btn.active { background: var(--blue); color: var(--bg); cursor: default; }
#strike-lookup-results table { width: 100%; }
#strike-lookup-results th, #strike-lookup-results td { padding: 2px 6px; }
.strike-lookup-exp { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strike-lookup-dte { color: var(--muted-light); text-align: right; font-variant-numeric: tabular-nums; }

/* Price history */
.tf-links { display: flex; gap: 12px; margin-bottom: 10px; }
.tf-link { color: var(--blue); cursor: pointer; text-decoration: none;
           background: none; border: 1px solid transparent; font-family: inherit;
           padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.tf-link:hover { color: var(--blue-dark); }
.tf-link.active { font-weight: 400; color: var(--blue-dark); text-decoration: none; cursor: default;
                   border-color: var(--border); background: var(--bg); }

/* Markets */
.mkt-open   { color: var(--up); font-weight: 700; }
.mkt-closed { color: var(--muted-light); }
.mkt-back   { color: var(--blue); cursor: pointer; border: none;
              background: none; font-family: inherit; padding: 0; margin-right: 8px; }
.mkt-back:hover { color: var(--blue-dark); }
tr[style*="cursor"]:hover td { background: var(--row-hover); cursor: pointer; }

#tv-chart-app { margin: 0 16px; max-width: 900px; }

/* Watchlist */
.wl-header { display: flex; align-items: center; gap: 24px; margin-bottom: 10px; }
.wl-textarea { width: 100%; min-height: 480px; font-family: inherit; font-size: 12px;
               border: 1px solid var(--border); border-radius: 6px; padding: 10px; resize: vertical;
               text-transform: capitalize; background: var(--bg); color: var(--fg); }
.wl-btn-row { display: flex; gap: 16px; margin-top: 10px; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --page-px: 10px; }
  body { font-size: 12px; }

  /* layout */
  #search-top-bar { padding: 0 var(--page-px); gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #search-bar { flex: 1 1 auto; max-width: none; }
  .section { margin: 0 0 1px 0; }
  #symbol-nav { padding: 5px var(--page-px); gap: 4px; }
  .sym-nav-link { padding: 3px 8px; }

  /* scroll hint: fade right edge to show nav continues off screen */
  #search-wrap {
    -webkit-mask-image: linear-gradient(to right, black 82%, transparent);
    mask-image: linear-gradient(to right, black 82%, transparent);
  }

  /* hide ⌘K hint on touch */
  .kbd { display: none; }

  /* tables: horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100vw - calc(var(--page-px) * 2));
  }
  td { max-width: 180px; }

  /* mover pair: stack vertically, let each table scroll horizontally */
  .mover-pair { flex-direction: column; gap: 20px; }
  .mover-col { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mv-table { width: max-content; min-width: 100%; }

  /* modal: full-screen */
  #fund-modal-backdrop { padding-top: 0; align-items: flex-end; }
  #fund-modal { width: 100vw; max-height: 90vh; border-radius: 6px; }
  #news-modal-backdrop { padding-top: 0; align-items: flex-end; }
  #news-modal { width: 100vw; max-height: 90vh; border-radius: 6px; }
  #filings-modal-backdrop { padding-top: 0; align-items: flex-end; }
  #filings-modal { width: 100vw; max-height: 90vh; border-radius: 6px; }
  #search-backdrop { padding-top: 0; align-items: flex-end; }
  #search-modal { width: 100vw; height: 70%; max-height: 70%; border-radius: 6px; }
  #search-results { flex: 1 1 auto; min-height: 0; }
  #search-input { font-size: 16px; }

  /* options: let chain scroll */
  #options-chain { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chain-layout { flex-direction: column; }
  .strike-lookup { flex: none; width: 100%; box-sizing: border-box; }

  /* price history: already inside ph-table div */
  #ph-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* expiration pills: smaller */
  .exp-pills { gap: 2px 10px; }
  .exp-pill { padding: 2px 6px; }

  /* timeframe links: tighter */
  .tf-links { gap: 8px; flex-wrap: wrap; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; }
