/* One symbol: quote card, candle chart, the best deep in-the-money strike by expiry and the option chain with
   that strike marked. Built on the site's Metronic tokens (--tw-*), so both themes follow the rest of the site;
   the dark-theme tints mix a token into the card colour because the -light tokens there are nearly the card. */
.stock-page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; min-width: 0; }
.stock-page .card { min-width: 0; }
.stock-page .sp-tabs { margin-bottom: 0; }
.stock-page .lv-pos { color: #0f7a37; } .stock-page .lv-neg { color: var(--tw-danger); }
.dark .stock-page .lv-pos { color: var(--tw-success); }
.sp-dim { color: var(--tw-gray-500); }

/* Quote */
.sp-quote { padding: 18px 20px 0; overflow: hidden; }
.sp-quote__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.sp-quote__main { min-width: 0; }
.sp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 15px; font-weight: 500; color: var(--tw-gray-900); }
.sp-sym { font-size: 20px; font-weight: 650; letter-spacing: .01em; }
.sp-kind { display: inline-block; padding: 0 .35rem; border-radius: .3rem; font-size: .6rem; font-weight: 600; line-height: 1.5; color: var(--tw-gray-700); background: var(--tw-gray-200); align-self: center; }
.dark .sp-kind { background: var(--tw-gray-300); }
.sp-name { font-weight: 400; color: var(--tw-gray-600); font-size: 14px; }
.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sp-last { font-size: 32px; font-weight: 650; color: var(--tw-gray-900); line-height: 1; letter-spacing: -.01em; }
.sp-last.is-stale { color: var(--tw-gray-500); }
.sp-last.is-up { animation: sp-tick-up .9s ease-out; }
.sp-last.is-down { animation: sp-tick-down .9s ease-out; }
.sp-last.is-up2 { animation: sp-tick-up2 .9s ease-out; }         /* the same tint again, for a second move the same way */
.sp-last.is-down2 { animation: sp-tick-down2 .9s ease-out; }
@keyframes sp-tick-up { from { color: #22a06b; } }
@keyframes sp-tick-down { from { color: #e5484d; } }
@keyframes sp-tick-up2 { from { color: #22a06b; } }
@keyframes sp-tick-down2 { from { color: #e5484d; } }
.sp-feed.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; vertical-align: 1px;
                           background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, .18); }
.sp-chg { font-size: 16px; font-weight: 600; }
.sp-main { font-size: 12.5px; color: var(--tw-gray-600); cursor: help; }
.sp-bidask { margin-top: 6px; font-size: 12.5px; color: var(--tw-gray-600); font-variant-numeric: tabular-nums; min-height: 18px; }
.sp-bidask b { font-weight: 600; color: var(--tw-gray-800); }
.sp-quote__status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.sp-phase { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tw-gray-700); background: var(--tw-gray-100); border: 1px solid var(--tw-gray-200); }
.sp-phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tw-gray-400); }
.sp-phase[data-phase="main"] { color: #0f7a37; background: var(--tw-success-light); border-color: transparent; }
.dark .sp-phase[data-phase="main"] { color: var(--tw-success); }
.sp-phase[data-phase="main"]::before { background: var(--tw-success); }
.sp-phase[data-phase="pre"], .sp-phase[data-phase="post"] { color: #0b5fcc; background: var(--tw-primary-light); border-color: transparent; }
.dark .sp-phase[data-phase="pre"], .dark .sp-phase[data-phase="post"] { color: #6aa8ff; }
.sp-phase[data-phase="pre"]::before, .sp-phase[data-phase="post"]::before { background: var(--tw-primary); }
.sp-feed { max-width: 240px; font-size: 11.5px; color: var(--tw-gray-600); font-variant-numeric: tabular-nums; text-align: right; }
#sp-updated { white-space: nowrap; }

/* The best deep in-the-money strike of the selected expiry, repeated in the quote card */
.sp-quick { flex: 0 1 340px; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--tw-warning-clarity, var(--tw-gray-200));
            background: var(--tw-warning-light); color: var(--tw-gray-800); text-decoration: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sp-quick[hidden] { display: none; }
.sp-quick:hover { border-color: var(--tw-warning); }
.sp-quick__title { font-size: 11px; font-weight: 600; color: var(--tw-gray-700); letter-spacing: .02em; }
.sp-quick__row { display: grid; grid-template-columns: 30px 56px 1fr auto; gap: 8px; align-items: baseline; }
.sp-quick__side { color: var(--tw-gray-600); }
.sp-quick__row b { color: var(--tw-gray-900); font-weight: 650; }
.sp-quick__row small { color: var(--tw-gray-600); font-size: 11px; }
.sp-quick__lev { font-size: 15px; }
.sp-quick__row > .sp-dim { grid-column: 2 / -1; white-space: nowrap; }
#sp-quick-exp { white-space: nowrap; }
.sp-own { cursor: help; }

.sp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 16px -20px 0; border-top: 1px solid var(--tw-gray-200); background: var(--tw-gray-200); }
.sp-stats > div { padding: 11px 20px 13px; min-width: 0; background: var(--tw-card-background-color); }
.sp-stats dt { font-size: 11px; color: var(--tw-gray-600); margin-bottom: 4px; }
.sp-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--tw-gray-900); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-stats__range dd { overflow: visible; }                    /* the range dot must not be clipped */
.sp-stats__text { display: block; overflow: hidden; text-overflow: ellipsis; }
.sp-rangebar { position: relative; display: block; height: 4px; margin: 8px 5px 3px; border-radius: 2px; background: var(--tw-gray-200); }
.sp-rangebar i { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--tw-primary); box-shadow: 0 0 0 2px var(--tw-card-background-color); display: none; }

/* Cards */
.sp-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--tw-gray-200); }
.sp-card__head h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tw-gray-900); }
.sp-card__body { padding: 14px 20px 16px; min-width: 0; }
.sp-meta { margin-left: 6px; font-weight: 400; font-size: 12px; line-height: 1.5; color: var(--tw-gray-600); font-variant-numeric: tabular-nums; }
.sp-headlink { font-size: 12.5px; color: var(--tw-primary); white-space: nowrap; }
.sp-headlink:hover { text-decoration: underline; }
.sp-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--tw-gray-600); max-width: 120ch; }
.sp-note a { color: var(--tw-primary); }
.sp-how { margin-top: 10px; }
.sp-how summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--tw-gray-600); list-style: none; }
.sp-how summary::-webkit-details-marker { display: none; }
.sp-how summary::before { content: ""; width: 6px; height: 6px; margin: 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.sp-how[open] summary::before { transform: rotate(45deg); }
.sp-how summary:hover, .sp-how[open] summary { color: var(--tw-gray-800); }

/* Segmented buttons and the extended-hours switch */
.sp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sp-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--tw-gray-100); border: 1px solid var(--tw-gray-200); }
.sp-seg button { padding: 4px 11px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--tw-gray-600); }
.sp-seg button:hover { color: var(--tw-gray-900); }
.sp-seg button.active { background: var(--tw-card-background-color); color: var(--tw-gray-900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.dark .sp-seg button.active { background: var(--tw-gray-300); }
.sp-seg button:focus-visible, .sp-exp:focus-visible, .sp-deep__box:focus-visible, .sp-terms__btn:focus-visible, #sp-terms-reload:focus-visible { outline: 2px solid var(--tw-primary); outline-offset: 1px; }
.sp-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--tw-gray-700); cursor: pointer; }
.sp-check[hidden], .sp-seg[hidden] { display: none; }

/* Chart: the pre-market and after-hours bands sit under the transparent chart */
.sp-chart-wrap { position: relative; }
.sp-chart { position: relative; z-index: 1; width: 100%; height: 420px; }
.sp-band { position: absolute; z-index: 0; display: none; background: rgba(0, 0, 0, .035); pointer-events: none; }
.dark .sp-band { background: rgba(255, 255, 255, .035); }
.sp-chart__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--tw-gray-600); pointer-events: none; }
.sp-legend { position: absolute; top: 2px; left: 4px; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px 10px; max-width: calc(100% - 80px); padding: 3px 8px; border-radius: 6px; font-size: 11.5px;
             color: var(--tw-gray-700); background: var(--tw-card-background-color); font-variant-numeric: tabular-nums; pointer-events: none; opacity: .92; }
.sp-legend b { font-weight: 600; color: var(--tw-gray-900); }
.sp-legend:empty { display: none; }

/* The best deep in-the-money strike across expiries */
.sp-terms-scroll { overflow-x: auto; border: 1px solid var(--tw-gray-200); border-radius: 10px; }
.sp-terms { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sp-terms th, .sp-terms td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--tw-gray-200); vertical-align: middle; }
.sp-terms tbody tr:last-child td { border-bottom: none; }
.sp-terms th.sp-terms__exp, .sp-terms td.sp-terms__exp { text-align: left; }
.sp-terms thead th { background: var(--tw-gray-100); color: var(--tw-gray-600); font-size: 11px; font-weight: 500; }
.sp-terms th.sp-side { text-align: center; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.sp-terms .sp-side--p { border-left: 1px solid var(--tw-gray-200); }
.sp-terms tbody tr { cursor: pointer; }
.sp-terms tbody tr:hover > td { background: var(--tw-gray-100); }
.sp-terms tbody tr.is-selected > td { background: var(--tw-primary-light); }
.sp-terms tbody tr.is-selected > td:first-child { box-shadow: inset 3px 0 0 var(--tw-primary); }
.sp-terms td b { font-weight: 650; color: var(--tw-gray-900); }
.sp-terms td small { font-size: 11px; color: var(--tw-gray-600); }
.sp-terms td.sp-dim { color: var(--tw-gray-500); text-align: center; }
.sp-terms__exp { position: sticky; left: 0; z-index: 1; background: var(--tw-card-background-color); }
.sp-terms thead .sp-terms__exp { z-index: 2; background: var(--tw-gray-100); }
.sp-terms__btn { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; font: inherit; color: inherit; text-align: left; }
.sp-mo { align-self: center; padding: 0 4px; border-radius: 4px; font-size: 9.5px; font-weight: 700; line-height: 1.5; color: var(--tw-gray-700); background: var(--tw-gray-200); }
.sp-terms td.sp-barcell { position: relative; padding-bottom: 11px; }
.sp-bar { position: absolute; right: 10px; bottom: 4px; height: 3px; border-radius: 2px; max-width: calc(100% - 20px); }
.sp-bar--over { background: var(--tw-warning); }
.sp-bar--lev { background: var(--tw-primary); }
.sp-wide { text-decoration: underline dotted var(--tw-warning); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Expiry picker: one group per month, a monthly expiry in bold; a phone gets one swipeable row */
.sp-expiries { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.sp-exp-group { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; }
.sp-exp-month { margin-right: 3px; font-size: 11px; font-weight: 600; color: var(--tw-gray-600); text-transform: uppercase; letter-spacing: .03em; }
.sp-exp { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 3px 6px 2px; border-radius: 6px; border: 1px solid var(--tw-gray-200); background: var(--tw-card-background-color); color: var(--tw-gray-800); font-size: 12.5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sp-exp small { font-size: 9.5px; color: var(--tw-gray-600); white-space: nowrap; }
.sp-exp.is-monthly { font-weight: 700; }
.sp-exp.is-expired { opacity: .5; }
.sp-exp:hover { border-color: var(--tw-primary); }
.sp-exp.active { background: var(--tw-primary); border-color: var(--tw-primary); color: #fff; opacity: 1; }
.sp-exp.active small { color: rgba(255, 255, 255, .85); }

/* The best deep in-the-money strike of the selected expiry */
.sp-deep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.sp-deep__box { display: block; width: 100%; padding: 10px 14px 11px; border-radius: 10px; border: 1px solid var(--tw-warning-clarity, var(--tw-gray-200)); background: var(--tw-warning-light);
                color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.sp-deep__box:hover { border-color: var(--tw-warning); }
.sp-deep__title { display: block; font-size: 11px; font-weight: 600; color: var(--tw-gray-700); text-transform: uppercase; letter-spacing: .03em; }
.sp-deep__body { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--tw-gray-800); font-variant-numeric: tabular-nums; }
.sp-deep__head { display: flex; align-items: baseline; gap: 10px; }
.sp-deep__k, .sp-deep__lev { font-size: 22px; font-weight: 650; line-height: 1.15; color: var(--tw-gray-900); }
.sp-deep__lev { margin-left: auto; }
.sp-deep__sub { font-size: 12px; color: var(--tw-gray-600); }
.sp-deep__stats { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }
.sp-deep__stats > span { display: block; }
.sp-deep__stats small { display: block; font-size: 10.5px; color: var(--tw-gray-600); }
.sp-deep__stats b { font-weight: 600; color: var(--tw-gray-900); }
.sp-deep__stats em { font-style: normal; font-size: 11.5px; color: var(--tw-gray-600); }
.sp-deep__none { color: var(--tw-gray-700); }

/* Chain: sticky two-row header and a strike column that stays in view when the table scrolls sideways */
.sp-chain-scroll { max-height: 72vh; overflow: auto; border: 1px solid var(--tw-gray-200); border-radius: 10px; }
.sp-chain { width: 100%; border-collapse: separate; border-spacing: 0; }
.sp-chain th { position: sticky; top: 0; z-index: 2; background: var(--tw-gray-100); color: var(--tw-gray-600); font-weight: 500; }
.sp-chain thead tr:first-child th { height: 1.6rem; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.sp-chain thead tr:nth-child(2) th { top: 1.6rem; box-shadow: inset 0 -1px 0 var(--tw-gray-300); }
.sp-chain td, .sp-chain th { padding: .22rem .42rem; font-size: .74rem; line-height: 1.3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--tw-gray-100); }
.dark .sp-chain td { border-bottom-color: var(--tw-gray-200); }
@media (max-width: 1279.98px) { .sp-chain td, .sp-chain th { padding-left: .3rem; padding-right: .3rem; } }
@media (min-width: 1024px) and (max-width: 1479.98px) { body:not(.sidebar-collapse) .sp-chain td, body:not(.sidebar-collapse) .sp-chain th { padding-left: .28rem; padding-right: .28rem; } }
.sp-chain th.sp-side { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.sp-chain th.sp-side span { position: sticky; left: .75rem; right: 6.5rem; display: inline-block; }
.sp-chain th.sp-side:last-child span { left: 6.5rem; right: .75rem; }
.sp-chain .sp-strike, .sp-chain .sp-strike-h { position: sticky; left: 0; right: 0; z-index: 1; text-align: center; font-weight: 650; color: var(--tw-gray-900); background: var(--tw-gray-100);
                                               border-left: 1px solid var(--tw-gray-200); border-right: 1px solid var(--tw-gray-200); }
.sp-chain th.sp-strike-h { z-index: 3; }
.dark .sp-chain .sp-strike, .dark .sp-chain .sp-strike-h { background: var(--tw-coal-400); border-color: var(--tw-gray-300); }
.sp-chain td.sp-sec { color: var(--tw-gray-600); }
.sp-chain td.sp-q { color: var(--tw-gray-900); font-weight: 500; }
.sp-chain td.sp-q.sp-live { box-shadow: inset 0 -2px 0 rgba(34, 160, 107, .6); }
.sp-chain td.sp-itm { background: var(--tw-success-light); background: color-mix(in srgb, var(--tw-success) 9%, var(--tw-card-background-color)); }
.sp-chain tr.sp-atm td { box-shadow: inset 0 0 0 999px rgba(59, 130, 246, .12); }
.sp-chain tr.sp-atm td.sp-q.sp-live { box-shadow: inset 0 -2px 0 rgba(34, 160, 107, .6), inset 0 0 0 999px rgba(59, 130, 246, .12); }
.sp-chain tr.sp-atm td.sp-strike { color: var(--tw-primary); }
.sp-chain td.sp-lev { color: var(--tw-gray-800); }
.sp-chain td.sp-lev--weak { color: var(--tw-gray-500); }
.sp-chain td.sp-old { color: var(--tw-gray-500); font-style: italic; }
.sp-chain td.sp-best { background: var(--tw-warning-light); }
.sp-chain td.sp-best.sp-lev { color: var(--tw-gray-900); font-weight: 650; }
.sp-chain td.sp-strike.sp-best-k { box-shadow: inset 0 0 0 2px var(--tw-warning); }
.sp-chain td.sp-strike .sp-badge { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; font-size: .64rem; font-weight: 700; line-height: 1.5; color: var(--tw-gray-900);
                                   background: var(--tw-warning-light); border: 1px solid var(--tw-warning); vertical-align: 1px; }
.sp-chain td.sp-strike .sp-adj { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px; font-size: .6rem; font-weight: 600; line-height: 1.5; color: var(--tw-gray-600); background: var(--tw-gray-200); vertical-align: 1px; }
.sp-chain td.sp-strike.is-flash { animation: sp-flash 1.4s ease-out; }
.sp-chain__msg { text-align: center !important; color: var(--tw-gray-600); padding: 24px !important; }
@keyframes sp-flash { from { background-color: rgba(59, 130, 246, .35); } to { background-color: transparent; } }
.sp-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 11.5px; line-height: 1.45; color: var(--tw-gray-600); }
.sp-keys span { display: inline-flex; align-items: flex-start; gap: 6px; }
.sp-key { flex: none; display: inline-block; width: 14px; height: 10px; margin-top: 2px; border-radius: 3px; border: 1px solid var(--tw-gray-300); }
.sp-key--itm { background: var(--tw-success-light); border-color: color-mix(in srgb, var(--tw-success) 45%, transparent); }
.sp-key--atm { background: rgba(59, 130, 246, .18); }
.sp-key--best { background: var(--tw-warning-light); border-color: var(--tw-warning); }

/* Dark theme: the -light tokens are almost the card there, so mix the accent into the card instead. */
.dark .sp-chain td.sp-itm, .dark .sp-key--itm { background: color-mix(in srgb, var(--tw-success) 10%, var(--tw-card-background-color)); }
.dark .sp-chain td.sp-best, .dark .sp-key--best, .dark .sp-chain td.sp-strike .sp-badge { background: color-mix(in srgb, var(--tw-warning) 20%, var(--tw-card-background-color)); }
.dark .sp-deep__box, .dark .sp-quick { background: color-mix(in srgb, var(--tw-warning) 11%, var(--tw-card-background-color)); border-color: color-mix(in srgb, var(--tw-warning) 35%, transparent); }
.dark .sp-key--itm { border-color: color-mix(in srgb, var(--tw-success) 45%, transparent); }

/* Small text that carries data: darker in the light theme, where gray-600 on white is under 4.5:1. */
.sp-stats dt, .sp-meta, .sp-exp small, .sp-exp-month, .sp-feed, .sp-keys, .sp-terms td small, .sp-how summary, .sp-main, .sp-bidask, .sp-note, .sp-deep__stats small, .sp-deep__sub,
.sp-chain td.sp-sec, .sp-chain th, .sp-terms thead th, .sp-quick__side, .sp-quick__row small, .sp-deep__stats em, .sp-seg button, .sp-name, .sp-quick .sp-dim, .sp-terms td.sp-dim { color: var(--tw-gray-700); }
.dark .sp-stats dt, .dark .sp-meta, .dark .sp-exp small, .dark .sp-exp-month, .dark .sp-feed, .dark .sp-keys, .dark .sp-terms td small, .dark .sp-how summary, .dark .sp-main,
.dark .sp-bidask, .dark .sp-note, .dark .sp-name { color: var(--tw-gray-600); }
/* On the warm tints and the header bands the dark theme needs the lighter grey. */
.dark .sp-deep__stats small, .dark .sp-deep__stats em, .dark .sp-deep__sub, .dark .sp-deep__title, .dark .sp-quick__side, .dark .sp-quick__row small, .dark .sp-quick__title,
.dark .sp-chain th, .dark .sp-terms thead th, .dark .sp-quick .sp-dim, .dark .sp-terms td.sp-dim, .dark .sp-chain td.sp-sec, .dark .sp-seg button,
.dark .sp-deep__none, .dark .sp-kind, .dark .sp-terms tr.is-selected td small { color: var(--tw-gray-700); }
.sp-seg button.active { color: var(--tw-gray-900); }
.sp-exp.active small { color: rgba(255, 255, 255, .85); }
#sp-options, #sp-terms { scroll-margin-top: 82px; }         /* clear the fixed site header */

/* The expanded sidebar takes 200 px more from 1024 px up: the stats go to two rows there too. */
@media (min-width: 1024px) and (max-width: 1180px) {
  body:not(.sidebar-collapse) .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.sidebar-collapse) .sp-stats__range { grid-column: 1 / -1; order: -1; }
  body:not(.sidebar-collapse) .sp-quick { flex-basis: 100%; order: 3; }
}
@media (max-width: 900px) {
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-stats__range { grid-column: 1 / -1; order: -1; }
  .sp-deep { grid-template-columns: 1fr; }
  .sp-quick { flex-basis: 100%; order: 3; }
}
@media (max-width: 640px) {
  #sp-options, #sp-terms { scroll-margin-top: 72px; }
  .sp-quote { padding: 14px 12px 0; }
  .sp-stats { margin: 14px -12px 0; }
  .sp-stats > div { padding: 9px 12px 11px; }
  .sp-quote__status { align-items: flex-start; margin-left: 0; }
  .sp-feed { text-align: left; max-width: none; }
  .sp-last { font-size: 26px; }
  .sp-card__head { padding: 12px; }
  .sp-card__head h2 .sp-meta { display: block; margin: 2px 0 0; }
  .sp-card__body { padding: 12px; }
  .sp-chart { height: 300px; }
  .sp-legend { position: static; max-width: none; min-height: 36px; margin: 0 0 6px; padding: 0; background: none; opacity: 1; }
  .sp-expiries { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sp-expiries::-webkit-scrollbar { display: none; }
  .sp-exp-group { flex: none; flex-wrap: nowrap; }
  .sp-terms th, .sp-terms td { padding: 7px 8px; }
  .sp-deep__k, .sp-deep__lev { font-size: 19px; }
}
