/* Option chain page */
.spot { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.spotline { display: flex; align-items: baseline; gap: 10px; margin-right: 8px; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); }
.bar span { transition: width .5s; }
.bar .c { background: var(--ce); } .bar .u { background: var(--pe); }
.pl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.pl b { font-size: 22px; color: var(--text); }
.hr { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; }
.hr b { width: 26px; font-size: 12px; }
.hr span { font-weight: 700; font-size: 17px; }
.hr em { margin-left: auto; font-style: normal; color: var(--muted); }
.tb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }

/* The table takes the whole screen height: nothing above it except the toolbar */
.tw { max-height: max(380px, calc(100vh - 168px)); overflow: auto; scroll-behavior: smooth; overscroll-behavior: contain; margin-bottom: 14px; }
.tw table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.tw th { position: sticky; top: 0; z-index: 2; padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: right; background: var(--glass2); backdrop-filter: blur(14px); }
.tw th.g { text-align: center; font-size: 13px; }
.tw th.ce { color: var(--ce); } .tw th.pe { color: var(--pe); }
.tw td { padding: 8px 12px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; position: relative; }
.tw td.k { text-align: center; font-weight: 700; background: rgba(130,140,200,.1); }
.tw tr.atm td { background: var(--atm); }
.tw tr.atm td.k { color: var(--ac); }
.tw td.oi::before { content: ""; position: absolute; top: 6px; bottom: 6px; width: var(--w, 0); border-radius: 6px; opacity: .22; }
.tw td.oi.c::before { right: 8px; background: var(--ce); }
.tw td.oi.p::before { left: 8px; background: var(--pe); }
.tw td span { position: relative; }
.tw td.itm.c { background: rgba(214,58,58,.05); }
.tw td.itm.p { background: rgba(18,147,95,.05); }
/* Highest OI / change in OI / volume: whole cell filled, white text. Red on the CE side, green on the PE side. */
.tw td.top1 { color: #fff; font-weight: 700; }
.tw td.top1.c { background: var(--ce-bg); }
.tw td.top1.p { background: var(--pe-bg); }
.tw td.top1::before { display: none; }
.tw td.f1 { animation: flash-up 1.1s; }
.tw td.f2 { animation: flash-dn 1.1s; }
@keyframes flash-up { from { background: rgba(18,147,95,.4); } }
@keyframes flash-dn { from { background: rgba(214,58,58,.4); } }
.empty { padding: 28px; text-align: center; color: var(--muted); margin: 0; }

@media (max-width: 900px) { .tw { max-height: 72vh; } .spot { font-size: 20px; } }
