/* Options Desk (public/options.js) */
#tab-options-view {
  --od-ce: #257de0; --od-pe: #f47230; --od-net: #00b894; --od-iv: #6a4ce2;
  --od-up: var(--bullish, #15803d); --od-dn: var(--bearish, #dc2626);
  --od-ink: var(--foreground, #191919); --od-ink2: var(--muted-foreground, #666); --od-surface: var(--card, #fff);
  --od-grid: color-mix(in srgb, var(--foreground, #191919) 9%, transparent); --od-base: color-mix(in srgb, var(--foreground, #191919) 28%, transparent);
  --od-bd: var(--border, #e5e5e5); --od-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--foreground);
}
html.dark #tab-options-view { --od-ce: #338ced; --od-pe: #e76624; --od-net: #00a888; --od-iv: #9887ef; }

#tab-options-view .od-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
#tab-options-view .od-intro { max-width: 640px; }
#tab-options-view .od-eyebrow { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--od-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--od-ink2); margin-bottom: 10px; }
#tab-options-view .od-sep { opacity: .4; }
#tab-options-view .od-beacon { width: 8px; height: 8px; border-radius: 50%; background: var(--od-ink2); opacity: .5; }
#tab-options-view .od-beacon.live { background: var(--od-net); opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--od-net) 60%, transparent); animation: odPulse 1.8s infinite; }
@keyframes odPulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#tab-options-view .od-title { font: 650 30px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -.025em; margin: 0 0 8px; }
#tab-options-view .od-sub { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--od-ink2); }

/* index plates */
#tab-options-view .od-plates { display: flex; gap: 10px; }
#tab-options-view button.od-plate { all: unset; box-sizing: border-box; cursor: pointer; width: 196px; padding: 12px 14px 11px; border-radius: 14px; border: 1px solid var(--od-bd); background: var(--od-surface);
  display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
#tab-options-view button.od-plate::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--od-ink); transform: scaleY(0); transition: transform .25s; }
#tab-options-view button.od-plate:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--od-ink) 30%, transparent); }
#tab-options-view button.od-plate.on { border-color: var(--od-ink); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--od-ink) 50%, transparent); }
#tab-options-view button.od-plate.on::before { transform: scaleY(1); }
#tab-options-view button.od-plate:focus-visible { outline: 2px solid var(--od-ce); outline-offset: 2px; }
#tab-options-view .od-plate-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
#tab-options-view .od-plate-top em { font-style: normal; font: 600 10px/1.6 var(--od-mono); color: var(--od-ink2); border: 1px solid var(--od-bd); border-radius: 4px; padding: 0 5px; }
#tab-options-view .od-plate b { font: 600 21px/1.15 var(--od-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#tab-options-view .od-plate-sub { font: 11px var(--od-mono); color: var(--od-ink2); }

/* expiry rail */
#tab-options-view .od-exp { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
#tab-options-view button.od-chip { all: unset; box-sizing: border-box; cursor: pointer; flex: none; padding: 7px 12px; border-radius: 10px; border: 1px dashed var(--od-bd); display: flex; flex-direction: column; gap: 2px; min-width: 92px; transition: background .15s, border-color .15s; }
#tab-options-view button.od-chip b { font: 600 13px var(--od-mono); }
#tab-options-view button.od-chip em { font-style: normal; font-size: 10.5px; color: var(--od-ink2); }
#tab-options-view button.od-chip:hover { border-style: solid; }
#tab-options-view button.od-chip.on { border: 1px solid var(--od-ink); background: var(--od-ink); color: var(--od-surface); }
#tab-options-view button.od-chip.on em { color: color-mix(in srgb, var(--od-surface) 75%, transparent); }
#tab-options-view button.od-chip:focus-visible { outline: 2px solid var(--od-ce); outline-offset: 2px; }

/* lens switch: four cards in a strip */
#tab-options-view .od-lenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--od-bd); border-radius: 14px; overflow: hidden; margin: 6px 0 14px; background: var(--od-surface); }
@media (max-width: 900px) { #tab-options-view .od-lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#tab-options-view button.od-lens { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-right: 1px solid var(--od-bd); position: relative; transition: background .15s; }
#tab-options-view button.od-lens:last-child { border-right: 0; }
#tab-options-view button.od-lens svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--od-ink2); }
#tab-options-view button.od-lens span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tab-options-view button.od-lens b { font-size: 13px; font-weight: 600; }
#tab-options-view button.od-lens em { font-style: normal; font-size: 11px; color: var(--od-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-options-view button.od-lens::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--od-ink); transform: scaleX(0); transition: transform .25s; }
#tab-options-view button.od-lens:hover { background: color-mix(in srgb, var(--od-ink) 4%, transparent); }
#tab-options-view button.od-lens.on { background: color-mix(in srgb, var(--od-ink) 6%, transparent); }
#tab-options-view button.od-lens.on svg { color: var(--od-ink); }
#tab-options-view button.od-lens.on::after { transform: scaleX(1); }
#tab-options-view button.od-lens:focus-visible { outline: 2px solid var(--od-ce); outline-offset: -2px; }

/* KPI ribbon */
#tab-options-view .od-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--od-bd); border-bottom: 1px solid var(--od-bd); margin-bottom: 14px; }
@media (max-width: 1400px) { #tab-options-view .od-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { #tab-options-view .od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#tab-options-view .od-kpi { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; border-right: 1px solid var(--od-bd); }
#tab-options-view .od-kpi:last-child { border-right: 0; }
#tab-options-view .od-kpi span { font-size: 11px; color: var(--od-ink2); }
#tab-options-view .od-kpi b { font: 600 17px/1.2 var(--od-mono); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#tab-options-view .od-kpi em { font-style: normal; font-size: 10.5px; color: var(--od-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-options-view .od-kpi[data-tone="pos"] b { color: var(--od-up); }
#tab-options-view .od-kpi[data-tone="neg"] b { color: var(--od-dn); }
#tab-options-view .od-kpi.pop b { animation: odPop .6s ease; }
@keyframes odPop { 0% { opacity: .35; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }

/* controls */
#tab-options-view .od-ctl { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; }
#tab-options-view .od-seg { display: flex; align-items: center; gap: 2px; }
#tab-options-view .od-seg > span { font-size: 11px; color: var(--od-ink2); margin-right: 6px; }
#tab-options-view .od-seg button { all: unset; box-sizing: border-box; cursor: pointer; font: 500 12px var(--od-mono); padding: 5px 10px; border: 1px solid var(--od-bd); margin-left: -1px; transition: background .15s; }
#tab-options-view .od-seg button:first-of-type { border-radius: 8px 0 0 8px; }
#tab-options-view .od-seg button:last-of-type { border-radius: 0 8px 8px 0; }
#tab-options-view .od-seg button.on { background: var(--od-ink); color: var(--od-surface); border-color: var(--od-ink); position: relative; }
#tab-options-view .od-seg button:focus-visible { outline: 2px solid var(--od-ce); outline-offset: 1px; position: relative; }
#tab-options-view .od-seg select { margin-left: 8px; height: 28px; border: 1px solid var(--od-bd); border-radius: 8px; background: var(--background); color: var(--foreground); font: 12px var(--od-mono); padding: 0 6px; }
#tab-options-view .od-seg select:disabled { opacity: .45; }

#tab-options-view .od-err { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--od-dn) 45%, transparent); margin-bottom: 12px; font-size: 13px; }
#tab-options-view .od-err[hidden] { display: none; }
#tab-options-view .od-err span { color: var(--od-ink2); }

/* cards + layout */
#tab-options-view .od-grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
#tab-options-view .od-g-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1150px) { #tab-options-view .od-grid2 { grid-template-columns: 1fr; } }
#tab-options-view .od-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#tab-options-view .od-card { border: 1px solid var(--od-bd); border-radius: 16px; background: var(--od-surface); padding: 14px 16px; margin-bottom: 14px; min-width: 0; }
#tab-options-view .od-col .od-card, #tab-options-view .od-grid2 > .od-card { margin-bottom: 0; }
#tab-options-view .od-grid2 { margin-bottom: 14px; }
#tab-options-view .od-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
#tab-options-view .od-card-h h4 { margin: 0; font-size: 14px; font-weight: 600; }
#tab-options-view .od-hint { font-size: 11px; color: var(--od-ink2); }
#tab-options-view .od-cv { display: block; width: 100%; cursor: crosshair; }
#tab-options-view .od-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--od-ink2); margin: 2px 0 10px; }
#tab-options-view .od-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: middle; }
#tab-options-view .od-legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
#tab-options-view .od-skel { display: block; width: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--od-grid) 25%, color-mix(in srgb, var(--od-ink) 4%, transparent) 50%, var(--od-grid) 75%); background-size: 200% 100%; animation: odShim 1.3s infinite linear; }
@keyframes odShim { to { background-position: -200% 0; } }

/* strike ladder */
#tab-options-view .od-ladder { display: flex; flex-direction: column; gap: 2px; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
#tab-options-view .od-rung { display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); align-items: center; min-height: 22px; border-radius: 6px; }
#tab-options-view .od-rung:hover { background: color-mix(in srgb, var(--od-ink) 5%, transparent); }
#tab-options-view .od-rung.atm .od-k b { text-decoration: underline; text-underline-offset: 3px; }
#tab-options-view .od-k { text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
#tab-options-view .od-k b { font: 600 12px var(--od-mono); font-variant-numeric: tabular-nums; }
#tab-options-view .od-k em { font-style: normal; font-size: 9.5px; color: var(--od-ink2); white-space: nowrap; }
#tab-options-view .od-side { position: relative; height: 14px; display: flex; align-items: center; }
#tab-options-view .od-side i { display: block; height: 100%; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
#tab-options-view .od-side.pe { justify-content: flex-end; }
#tab-options-view .od-side.pe i { background: var(--od-pe); border-radius: 4px 0 0 4px; }
#tab-options-view .od-side.ce i { background: var(--od-ce); border-radius: 0 4px 4px 0; }
#tab-options-view .od-side i.neg { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--od-ink2); }
#tab-options-view .od-side small { position: absolute; font: 10px var(--od-mono); color: var(--od-ink2); white-space: nowrap; }
#tab-options-view .od-side.pe small { left: 2px; }
#tab-options-view .od-side.ce small { right: 2px; }
#tab-options-view .od-ladder.enter .od-side i { animation: odGrow .7s cubic-bezier(.2, .8, .2, 1) both; }
#tab-options-view .od-ladder.enter .od-side.pe i { transform-origin: right; }
#tab-options-view .od-ladder.enter .od-side.ce i { transform-origin: left; }
@keyframes odGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#tab-options-view .od-mark { position: relative; height: 18px; display: flex; align-items: center; justify-content: center; }
#tab-options-view .od-mark::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--od-ink); }
#tab-options-view .od-mark-flip::before { border-top: 1.5px dashed var(--od-ink2); }
#tab-options-view .od-mark span { position: relative; background: var(--od-surface); padding: 0 8px; font: 600 10.5px var(--od-mono); }
#tab-options-view .od-mark-flip span { color: var(--od-ink2); }

/* regime + stats */
#tab-options-view .od-regime-k { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#tab-options-view .od-regime-k b { font: 600 22px var(--od-mono); }
#tab-options-view .od-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
#tab-options-view [data-tone="pos"] .od-badge { color: var(--od-up); }
#tab-options-view [data-tone="neg"] .od-badge { color: var(--od-dn); }
#tab-options-view .od-regime p, #tab-options-view .od-stats p { font-size: 12.5px; line-height: 1.55; color: var(--od-ink2); margin: 0 0 10px; }
#tab-options-view .od-regime p b { color: var(--od-ink); }
#tab-options-view dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 10px; }
#tab-options-view dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--od-bd); font-size: 12px; }
#tab-options-view dt { color: var(--od-ink2); }
#tab-options-view dd { margin: 0; font: 600 12px var(--od-mono); font-variant-numeric: tabular-nums; }
#tab-options-view .od-meter { margin-bottom: 12px; }
#tab-options-view .od-meter-h { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
#tab-options-view .od-meter-h b { font-family: var(--od-mono); }
#tab-options-view .od-meter-bar { display: flex; gap: 2px; height: 10px; margin-top: 6px; }
#tab-options-view .od-meter-bar i { display: block; height: 100%; background: var(--c); transition: width .6s; }
#tab-options-view .od-meter-bar i:first-child { border-radius: 4px 0 0 4px; }
#tab-options-view .od-meter-bar i:last-child { border-radius: 0 4px 4px 0; }

/* tables */
#tab-options-view .od-scroll { overflow-x: auto; }
#tab-options-view .od-ledger-wrap { max-height: 560px; overflow-y: auto; }
#tab-options-view .od-table { width: 100%; border-collapse: collapse; font-size: 12px; }
#tab-options-view .od-table th { font-weight: 500; font-size: 10.5px; color: var(--od-ink2); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--od-bd); white-space: nowrap; position: sticky; top: 0; background: var(--od-surface); }
#tab-options-view .od-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--od-bd) 65%, transparent); font: 12px var(--od-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
#tab-options-view .od-table tr:hover td { background: color-mix(in srgb, var(--od-ink) 4%, transparent); }
#tab-options-view .od-table th:first-child, #tab-options-view .od-table td:first-child { text-align: left; }
#tab-options-view .od-up { color: var(--od-up); }
#tab-options-view .od-dn { color: var(--od-dn); }
#tab-options-view .od-bu th.ce, #tab-options-view .od-bu th.pe { text-align: center; font-weight: 600; color: var(--od-ink); }
#tab-options-view .od-bu th.ce { box-shadow: inset 0 -2px 0 var(--od-ce); }
#tab-options-view .od-bu th.pe { box-shadow: inset 0 -2px 0 var(--od-pe); }
#tab-options-view .od-bu td.od-strike { text-align: center; font-weight: 600; background: color-mix(in srgb, var(--od-ink) 4%, transparent); }
#tab-options-view .od-bu tr.atm td.od-strike { background: var(--od-ink); color: var(--od-surface); }
#tab-options-view .bu { display: inline-block; min-width: 26px; text-align: center; font: 600 10.5px/18px var(--od-mono); border-radius: 5px; padding: 0 5px; border: 1px solid; }
#tab-options-view .bu.LB { color: var(--od-up); border-color: color-mix(in srgb, var(--od-up) 50%, transparent); }
#tab-options-view .bu.SB { color: var(--od-dn); border-color: color-mix(in srgb, var(--od-dn) 50%, transparent); }
#tab-options-view .bu.SC { color: var(--od-up); border-style: dashed; }
#tab-options-view .bu.LU { color: var(--od-dn); border-style: dashed; }
#tab-options-view .bu.none { color: var(--od-ink2); border-color: transparent; }
#tab-options-view .od-bu-legend { font-size: 11px; color: var(--od-ink2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 10px; }
#tab-options-view .od-bu-legend .bu { margin-left: 8px; }
#tab-options-view .od-dbar { display: block; position: relative; width: 120px; height: 10px; }
#tab-options-view .od-dbar::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid var(--od-base); }
#tab-options-view .od-dbar i { position: absolute; top: 0; height: 100%; }
#tab-options-view .od-dbar i.pe { background: var(--od-pe); border-radius: 0 4px 4px 0; }
#tab-options-view .od-dbar i.ce { background: var(--od-ce); border-radius: 4px 0 0 4px; }
#tab-options-view .od-bar-td, #tab-options-view .od-bar-th { text-align: center !important; }

/* tooltip */
#tab-options-view .od-tip { position: fixed; z-index: 80; pointer-events: none; min-width: 160px; max-width: 320px; padding: 9px 11px; border-radius: 10px; background: var(--od-surface); color: var(--od-ink);
  border: 1px solid var(--od-bd); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .35); font-size: 12px; line-height: 1.45; }
#tab-options-view .od-tip[hidden] { display: none; }
#tab-options-view .od-tip table { border-collapse: collapse; margin-top: 4px; width: 100%; }
#tab-options-view .od-tip th { font-weight: 500; color: var(--od-ink2); font-size: 10.5px; text-align: right; padding: 1px 0 1px 10px; }
#tab-options-view .od-tip td { padding: 1px 0; }
#tab-options-view .od-tip td + td { text-align: right; padding-left: 12px; font-family: var(--od-mono); font-variant-numeric: tabular-nums; }
#tab-options-view .od-tip .od-tip-mu { color: var(--od-ink2); font-size: 11px; }
#tab-options-view .od-tip i.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 6px; }

/* gamma walls */
#tab-options-view .od-rung.wall-ce { background: color-mix(in srgb, var(--od-ce) 13%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--od-ce) 70%, transparent); }
#tab-options-view .od-rung.wall-pe { background: color-mix(in srgb, var(--od-pe) 13%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--od-pe) 70%, transparent); }
#tab-options-view .od-rung.wall-ce, #tab-options-view .od-rung.wall-pe { min-height: 30px; margin: 3px 0; }
#tab-options-view .od-rung.wall-ce .od-side.ce i, #tab-options-view .od-rung.wall-pe .od-side.pe i { height: 20px; animation: odWall 2.4s ease-in-out infinite; }
@keyframes odWall { 50% { filter: brightness(1.15) saturate(1.2); } }
#tab-options-view .od-wtag { display: inline-block; margin-top: 2px; font: 700 9px/15px var(--od-mono); letter-spacing: .06em; padding: 0 6px; border-radius: 4px; color: #fff; }
#tab-options-view .od-wtag.ce { background: var(--od-ce); }
#tab-options-view .od-wtag.pe { background: var(--od-pe); color: #1a1a1a; }
html.dark #tab-options-view .od-wtag.pe { color: #fff; }
#tab-options-view .od-wallbar { margin: 4px 0 12px; padding: 10px 12px 12px; border-radius: 12px; background: color-mix(in srgb, var(--od-ink) 3%, transparent); }
#tab-options-view .od-wb-ends { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#tab-options-view .od-wb-ends span { display: flex; flex-direction: column; gap: 1px; }
#tab-options-view .od-wb-ends span.ce { text-align: right; }
#tab-options-view .od-wb-ends b { font: 700 12px var(--od-mono); letter-spacing: .02em; }
#tab-options-view .od-wb-ends .pe b { color: var(--od-pe); } #tab-options-view .od-wb-ends .ce b { color: var(--od-ce); }
#tab-options-view .od-wb-ends em { font-style: normal; font-size: 10.5px; color: var(--od-ink2); }
#tab-options-view .od-wb-track { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--od-pe) 45%, transparent), color-mix(in srgb, var(--od-ink) 10%, transparent) 50%, color-mix(in srgb, var(--od-ce) 45%, transparent)); margin: 0 8px 16px; }
#tab-options-view .od-wb-track i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--od-surface); transition: left .6s cubic-bezier(.2, .8, .2, 1); }
#tab-options-view .od-wb-track i.pe { background: var(--od-pe); } #tab-options-view .od-wb-track i.ce { background: var(--od-ce); }
#tab-options-view .od-wb-track i.spot { width: 4px; height: 20px; border-radius: 2px; border: 0; background: var(--od-ink); }
#tab-options-view .od-wb-track i.spot span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font: 600 10px var(--od-mono); white-space: nowrap; }

/* put - call vega difference tile */
#tab-options-view .od-vdiff { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; border-left: 4px solid var(--od-pe); background: color-mix(in srgb, var(--od-pe) 8%, transparent); }
#tab-options-view .od-vdiff[data-tone="ce"] { border-left-color: var(--od-ce); background: color-mix(in srgb, var(--od-ce) 8%, transparent); }
#tab-options-view .od-vdiff span { font-size: 11px; color: var(--od-ink2); }
#tab-options-view .od-vdiff b { font: 700 20px var(--od-mono); }
#tab-options-view .od-vdiff em { font-style: normal; font-size: 11px; color: var(--od-ink2); }

/* market sentiment */
#tab-options-view .od-senti { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px 22px; align-items: center; border: 1px solid var(--od-bd); border-radius: 16px; background: var(--od-surface); padding: 12px 16px; margin-bottom: 14px; position: relative; overflow: hidden; }
@media (max-width: 900px) { #tab-options-view .od-senti { grid-template-columns: 1fr; } }
#tab-options-view .od-senti::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--od-ink2); }
#tab-options-view .od-senti[data-tone="up"]::before { background: var(--od-up); }
#tab-options-view .od-senti[data-tone="dn"]::before { background: var(--od-dn); }
#tab-options-view .od-gauge { display: flex; align-items: center; gap: 12px; }
#tab-options-view .od-gauge svg { width: 120px; flex: none; }
#tab-options-view .od-needle { transform-origin: 60px 62px; transform-box: view-box; transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1); }
#tab-options-view .od-gauge-txt { display: flex; flex-direction: column; gap: 2px; }
#tab-options-view .od-gauge-txt span { font: 600 10px var(--od-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--od-ink2); }
#tab-options-view .od-gauge-txt span i { font-style: normal; }
#tab-options-view .od-gauge-txt b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
#tab-options-view .od-senti[data-tone="up"] .od-gauge-txt b { color: var(--od-up); }
#tab-options-view .od-senti[data-tone="dn"] .od-gauge-txt b { color: var(--od-dn); }
#tab-options-view .od-gauge-txt em { font-style: normal; font-size: 11px; color: var(--od-ink2); }
#tab-options-view .od-factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
#tab-options-view .od-factors li { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--od-bd); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#tab-options-view .od-f-l { font-size: 10.5px; color: var(--od-ink2); }
#tab-options-view .od-factors b { font: 600 12.5px var(--od-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-options-view .od-factors em { font-style: normal; font-size: 10.5px; line-height: 1.35; color: var(--od-ink2); }
#tab-options-view .od-factors li[data-tone="up"] em { color: var(--od-up); }
#tab-options-view .od-factors li[data-tone="dn"] em { color: var(--od-dn); }
#tab-options-view .od-senti-empty { margin: 0; font-size: 12px; color: var(--od-ink2); grid-column: 1 / -1; }

#tab-options-view .od-foot { font-size: 11px; line-height: 1.55; color: var(--od-ink2); max-width: 980px; margin: 8px 0 4px; }

/* ================================================================ motion layer */
@keyframes odRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes odFade { from { opacity: 0; } }
@keyframes odPopIn { from { opacity: 0; transform: scale(.85); } }
/* header: a field of option "bells" (gamma profiles) breathing behind the title */
#tab-options-view .od-head { position: relative; isolation: isolate; padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--od-bd); border-radius: 18px; background: var(--od-surface); overflow: hidden; animation: odRise .5s cubic-bezier(.2,.7,.2,1) both; }
#tab-options-view .od-head > *:not(.od-aura) { position: relative; z-index: 1; }
#tab-options-view .od-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#tab-options-view .od-aura::before, #tab-options-view .od-aura::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(70px); opacity: .14; }
#tab-options-view .od-aura::before { background: var(--od-ce); top: -220px; left: 18%; animation: odDrift 16s ease-in-out infinite alternate; }
#tab-options-view .od-aura::after { background: var(--od-pe); bottom: -250px; right: 22%; animation: odDrift 19s ease-in-out infinite alternate-reverse; }
html.dark #tab-options-view .od-aura::before, html.dark #tab-options-view .od-aura::after { opacity: .2; }
@keyframes odDrift { to { transform: translate(90px, 30px) scale(1.12); } }
#tab-options-view .od-aura svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
#tab-options-view .od-aura path { fill: none; stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#tab-options-view .od-aura path.b1 { stroke: color-mix(in srgb, var(--od-ce) 45%, transparent); stroke-dasharray: 4 6; animation: odDash 18s linear infinite; }
#tab-options-view .od-aura path.b2 { stroke: color-mix(in srgb, var(--od-pe) 40%, transparent); stroke-dasharray: 2 7; animation: odDash 24s linear infinite reverse; }
#tab-options-view .od-aura path.b3 { stroke: color-mix(in srgb, var(--od-net) 50%, transparent); stroke-width: 1.8; transform-origin: 50% 100%; transform-box: view-box; animation: odBreathe 6s ease-in-out infinite; }
@keyframes odDash { to { stroke-dashoffset: -400; } }
@keyframes odBreathe { 50% { transform: scaleY(.82); } }
#tab-options-view .od-aura .od-scan { position: absolute; top: 0; bottom: 0; width: 90px; left: -100px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--od-net) 12%, transparent), transparent); animation: odScan 7s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes odScan { 0% { left: -100px; } 65%, 100% { left: calc(100% + 10px); } }
#tab-options-view .od-title { background: linear-gradient(90deg, var(--od-ink) 0%, var(--od-ink) 40%, var(--od-ce) 50%, var(--od-ink) 60%, var(--od-ink) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: odShine 8s linear infinite; }
@keyframes odShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* plates: tick flashes + lift */
#tab-options-view button.od-plate { animation: odRise .5s cubic-bezier(.2,.7,.2,1) both; }
#tab-options-view button.od-plate + button.od-plate { animation-delay: .08s; }
#tab-options-view .od-plate b { display: inline-block; transition: color .3s; }
#tab-options-view .od-plate b.t-up { animation: odTickUp 1.2s ease; }
#tab-options-view .od-plate b.t-dn { animation: odTickDn 1.2s ease; }
@keyframes odTickUp { 0%, 35% { color: var(--od-up); transform: translateY(-2px); } }
@keyframes odTickDn { 0%, 35% { color: var(--od-dn); transform: translateY(2px); } }
#tab-options-view button.od-plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--od-ink) 6%, transparent) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; transition: background-position .8s ease; pointer-events: none; }
#tab-options-view button.od-plate:hover::after { background-position: -30% 0; }

/* expiry chips + lens strip */
#tab-options-view button.od-chip { animation: odPopIn .35s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 40ms); transition: background .15s, border-color .15s, transform .2s; }
#tab-options-view button.od-chip:hover { transform: translateY(-2px); }
#tab-options-view .od-lenses { animation: odRise .5s .12s cubic-bezier(.2,.7,.2,1) both; }
#tab-options-view button.od-lens svg { transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .2s; }
#tab-options-view button.od-lens:hover svg { transform: translateY(-2px) rotate(-6deg) scale(1.1); }
#tab-options-view button.od-lens.on svg { animation: odIcon .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes odIcon { 40% { transform: scale(1.25) rotate(-8deg); } }
#tab-options-view button.od-lens::after { transition: transform .35s cubic-bezier(.3,.8,.3,1); background: linear-gradient(90deg, var(--od-ce), var(--od-net), var(--od-pe)); background-size: 200% 100%; animation: odSlide 4s linear infinite; }
@keyframes odSlide { to { background-position: -200% 0; } }

/* KPI ribbon */
#tab-options-view .od-kpi { position: relative; animation: odRise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); transition: background .2s; }
#tab-options-view .od-kpi:hover { background: color-mix(in srgb, var(--od-ink) 3%, transparent); }
#tab-options-view .od-kpi::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--od-net); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
#tab-options-view .od-kpi:hover::after { transform: scaleX(1); }
#tab-options-view .od-kpi.t-up b { animation: odTickUp 1.2s ease; }
#tab-options-view .od-kpi.t-dn b { animation: odTickDn 1.2s ease; }

/* body: lens swap + cards */
#tab-options-view .od-body.od-swap > * { animation: odRise .5s cubic-bezier(.2,.7,.2,1) both; }
#tab-options-view .od-body.od-swap > *:nth-child(2) { animation-delay: .07s; }
#tab-options-view .od-body.od-swap > *:nth-child(3) { animation-delay: .14s; }
#tab-options-view .od-body.od-swap .od-col > .od-card { animation: odRise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: .18s; }
#tab-options-view .od-body.od-swap .od-col > .od-card + .od-card { animation-delay: .26s; }
#tab-options-view .od-card { transition: border-color .25s, box-shadow .25s; }
#tab-options-view .od-card:hover { border-color: color-mix(in srgb, var(--od-ink) 22%, var(--od-bd)); box-shadow: 0 10px 28px -20px color-mix(in srgb, var(--od-ink) 60%, transparent); }

/* sentiment */
#tab-options-view .od-gauge path.od-arc { stroke-dasharray: 100; stroke-dashoffset: 100; animation: odArc 1.1s .15s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes odArc { to { stroke-dashoffset: 0; } }
#tab-options-view .od-gauge .od-hub { transform-origin: 60px 62px; transform-box: view-box; animation: odHub 2.4s ease-in-out infinite; }
@keyframes odHub { 50% { transform: scale(1.25); } }
#tab-options-view .od-senti::before { transition: background .4s; }
#tab-options-view .od-senti::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 120px at 70px 50%, color-mix(in srgb, var(--od-ink2) 10%, transparent), transparent); transition: opacity .4s; }
#tab-options-view .od-senti[data-tone="up"]::after { background: radial-gradient(260px 120px at 70px 50%, color-mix(in srgb, var(--od-up) 13%, transparent), transparent); animation: odGlow 3.2s ease-in-out infinite; }
#tab-options-view .od-senti[data-tone="dn"]::after { background: radial-gradient(260px 120px at 70px 50%, color-mix(in srgb, var(--od-dn) 13%, transparent), transparent); animation: odGlow 3.2s ease-in-out infinite; }
@keyframes odGlow { 50% { opacity: .45; } }
#tab-options-view .od-gauge-txt b { display: inline-block; }
#tab-options-view .od-gauge-txt b.swap { animation: odPopIn .45s cubic-bezier(.3,1.5,.5,1); }
#tab-options-view .od-gauge-txt strong { font: 700 13px var(--od-mono); margin-left: 6px; color: var(--od-ink2); }
#tab-options-view .od-factors li { position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
#tab-options-view .od-factors.enter li { animation: odRise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--j, 0) * 70ms + .2s); }
#tab-options-view .od-factors li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--od-ink) 25%, var(--od-bd)); }
#tab-options-view .od-factors li s { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--s) * 100%); background: var(--od-ink2); text-decoration: none; transform-origin: left; animation: odGrowX .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--j, 0) * 70ms + .35s); }
#tab-options-view .od-factors li[data-tone="up"] s { background: var(--od-up); }
#tab-options-view .od-factors li[data-tone="dn"] s { background: var(--od-dn); }
@keyframes odGrowX { from { transform: scaleX(0); } }

/* ladder + wall bar */
#tab-options-view .od-rung { transition: background .15s; }
#tab-options-view .od-rung:hover { background: color-mix(in srgb, var(--od-ink) 5%, transparent); }
#tab-options-view .od-rung:hover .od-k b { color: var(--od-net); }
#tab-options-view .od-ladder.enter .od-rung { animation: odFade .4s both; }
#tab-options-view .od-mark-spot span { animation: odSpotPulse 2s ease-in-out infinite; }
@keyframes odSpotPulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--od-ink) 12%, transparent); } }
#tab-options-view .od-wtag { display: inline-block; animation: odPopIn .45s .3s cubic-bezier(.3,1.5,.5,1) both; }
#tab-options-view .od-wb-track i { animation: odPopIn .5s cubic-bezier(.3,1.5,.5,1) both; }
#tab-options-view .od-wb-track i.ce { animation-delay: .1s; }
#tab-options-view .od-wb-track i.spot { animation-delay: .2s; }
#tab-options-view .od-wb-track i.spot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--od-ink); opacity: 0; animation: odRing 2.2s ease-out infinite; }
@keyframes odRing { 0% { opacity: .5; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }

/* tables + meters */
#tab-options-view .od-table.enter tbody tr { animation: odRowIn .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(min(var(--r, 0), 30) * 22ms); }
@keyframes odRowIn { from { opacity: 0; transform: translateX(-8px); } }
#tab-options-view .od-table tbody tr { transition: background .12s; }
#tab-options-view .od-table.enter .od-dbar i { animation: odGrowX .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(min(var(--r, 0), 30) * 22ms + .15s); }
#tab-options-view .od-table.enter .od-dbar i[style*="right"] { transform-origin: right; }
#tab-options-view .od-table .bu { display: inline-block; transition: transform .2s; }
#tab-options-view .od-table tr:hover .bu { transform: scale(1.12); }
#tab-options-view .od-stats.enter .od-meter-bar i { animation: odGrowX .9s .1s cubic-bezier(.2,.7,.2,1) both; }
#tab-options-view .od-stats.enter dl > div { animation: odRise .4s both; animation-delay: calc(var(--j, 0) * 50ms + .1s); }
#tab-options-view .od-vdiff { animation: odPopIn .5s cubic-bezier(.3,1.4,.5,1) both; }

@media (prefers-reduced-motion: reduce) {
  #tab-options-view *, #tab-options-view *::before, #tab-options-view *::after { animation: none !important; transition: none !important; }
  #tab-options-view .od-gauge path.od-arc { stroke-dashoffset: 0; }
  #tab-options-view .od-aura svg, #tab-options-view .od-aura .od-scan { display: none; }
  #tab-options-view .od-title { color: var(--od-ink); background: none; }
}
