/* SIGNAL MONSTER 8.13 — visual QA: real market only, mobile/iPad compatible. */
#marketPage{--sm13-cyan:#48e7d7;--sm13-red:#ff587d;--sm13-bg:#071625;--sm13-outline:#27465d}
#marketPage .grid{gap:15px!important}
#marketPage .panel{border-color:#24455e!important;box-shadow:0 10px 45px #0002}
#marketPage .sectiontitle{font-size:11px;letter-spacing:.12em}
#sm87PriceHeader{padding:8px 4px 15px!important;border-bottom:1px solid #234359;margin-bottom:15px!important}
#sm87PriceHeader .sm87-price-label{white-space:normal;line-height:1.35}
#sm87PriceHeader .sm87-price-number{white-space:nowrap}
#sm77Chart{position:relative;overflow:hidden;min-height:275px;touch-action:pan-y}
#sm77Chart svg{position:relative;z-index:1}
#sm77Equator{stroke:#91b7cb;stroke-dasharray:9 6}
#sm77Hover{position:absolute;z-index:3;top:9px;right:10px;pointer-events:none;padding:7px 11px;border-radius:9px;border:1px solid #2b7180;background:#091d30e8;color:#dff8fe;font-size:12px;font-variant-numeric:tabular-nums}
#sm812ChartSource{border:1px solid #25475c;border-radius:10px;padding:9px 11px;background:#071b2c;margin-top:9px;display:flex;justify-content:space-between}
#sm812SpotFreshness{flex:1}
#sm812HistoryRow{padding-top:5px}
#sm812HistoryRow .chart-tools button:focus-visible,#sm812StatsToggle:focus-visible{outline:2px solid var(--sm13-cyan);outline-offset:2px}
#sm812QuoteBanner{border-top:1px solid #1f3b52;padding-top:12px;gap:10px;flex-wrap:wrap}
#sm811Desk{background:linear-gradient(160deg,#0b2538,#071827)!important;border:1px solid #33637a!important;padding:16px!important;box-shadow:inset 0 1px #4ca3ab20!important}
#sm811Desk .sm811-heading{display:flex;align-items:center;justify-content:space-between;gap:9px}
#sm811Desk .sm811-meta{line-height:1.65;color:#a7c4d5;font-size:11px!important;margin-top:13px;overflow-wrap:anywhere}
#sm811Desk #sm811State{font-size:11px;letter-spacing:.03em;border:1px solid #45596c;color:#c7daeb}
#sm811Desk #sm811State[data-state="LIVE_SNAPSHOT"]{color:#80f2d0;border-color:#237e77;background:#103d39}
#sm811Desk #sm811State[data-state="OFFLINE"],#sm811Desk #sm811State[data-state="STALE"],#sm811Desk #sm811State[data-state="EXPIRED"],#sm811Desk #sm811State[data-state="INCOMPLETE"],#sm811Desk #sm811State[data-state="UNSUPPORTED"]{background:#442333;border-color:#a15968;color:#ffadbe}
#sm811Desk .sm811-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#sm811Desk .sm813-quote{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#071827;border:1px solid #2b4e65;border-radius:12px;padding:13px;min-width:0;transition:border-color .2s ease,background .2s ease}
#sm811Desk .sm813-quote[data-market-side="UP"]>span{color:#57e7c9}
#sm811Desk .sm813-quote[data-market-side="DOWN"]>span{color:#ff89a5}
#sm811Desk .sm813-quote strong{font-size:clamp(22px,2.1vw,30px)!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#sm811Desk .sm813-quote[data-market-side="DOWN"] strong{color:#ff7796!important}
#sm811Desk .sm813-quote small{font-size:10px;line-height:1.6;word-break:break-word}
#sm811Desk .sm813-calc{margin:12px 0 0;padding:13px;border:1px solid #2d5670;border-radius:12px;background:#10283d;display:flex;flex-direction:column;gap:7px}
#sm811Desk .sm813-calc>span{font-size:10px;letter-spacing:.1em;color:#86c8d9;font-weight:800}
#sm811Desk .sm813-calc>strong{font-size:15px;line-height:1.5;color:#e8fbfc;overflow-wrap:anywhere}
#sm811Desk .sm813-calc>small{font-size:11px;color:#abc5d1;line-height:1.5}
#sm811Desk .sm811-footer{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:9px}
#sm813MarketLink{color:#9af5db;text-decoration:none;font-size:12px;line-height:1.45;border:1px solid #2b6b65;border-radius:10px;padding:9px 10px}
#sm813MarketLink:hover{background:#14504b}
#sm813MarketLink[hidden]{display:none!important}
#sm811Reload{margin-left:auto;min-height:37px}
#sm811Desk .sm811-warning{font-size:11px!important;line-height:1.6;color:#adc3d0}
#sides .side-price{display:none!important} /* no archive renderer is allowed to expose a second quote */
#tradeActions{margin-bottom:8px}
#sm813Five{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
#sm813Five button{padding:10px 8px;min-height:39px;border:1px solid #2b5870;border-radius:9px;color:#c1ecf2;background:#112d42;font-weight:700;cursor:pointer}
#sm813Five button:active{transform:scale(.98)}
#historyPopover{position:relative;z-index:5;background:#0a1e2e;border:1px solid #376078;border-radius:12px;padding:11px;margin-top:10px}
#historyPopover.hidden{display:none!important}
#historyList{display:flex;flex-direction:column;gap:6px;max-height:280px;overflow:auto;font-size:12px;color:#bed0de}
#historyList .sm813-round-result{font-variant-numeric:tabular-nums;background:#10273a;border-left:3px solid #5e7081;border-radius:7px;padding:9px 11px;color:#c0ccda}
#historyList .sm813-round-result[data-result="up"]{border-left-color:#49dac1;color:#92f1df}
#historyList .sm813-round-result[data-result="down"]{border-left-color:#f66c8c;color:#ffadbb}
#sm77Rounds .sm77round{font-size:11px;white-space:nowrap}
#marketPage .health-grid .health-card strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#marketPage .health-grid .health-card p{font-size:11px!important;color:#a6c6d5}
#marketPage .forecast-card .smYodaRow{gap:10px}
#smYodaFeedState{font-size:11px;color:#ffcf8d!important}
#smYodaFlipAction{font-size:12px;line-height:1.5}
@media(max-width:900px){#marketPage .grid{display:flex!important;flex-direction:column}#marketPage .grid>.stack{width:100%!important;min-width:0}#sm77Chart{height:310px!important}}
@media(max-width:640px){#sm77Chart{min-height:245px;height:255px!important}#sm87PriceHeader{column-gap:11px!important;row-gap:12px!important}#sm812HistoryRow{flex-wrap:wrap}#sm811Desk{padding:11px!important}#sm811Desk .sm811-prices{gap:7px}#sm811Desk .sm813-quote{padding:10px}#sm811Desk .sm813-quote strong{font-size:21px!important}#sm811Desk .sm811-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#sm811Desk .sm813-quote,#sm813Five button{transition:none!important}}

#sm811Reload{background:#13384f!important;color:#a8edee!important;border:1px solid #356e81!important;border-radius:10px!important;padding:9px 13px!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important}
#sm811Reload:hover{background:#1b4960!important}
#sm811Reload:focus-visible,#sm813Five button:focus-visible{outline:2px solid #4be6d8;outline-offset:2px}
#sm811Desk .sm811-prices small{line-height:1.5!important}

#historyPopover{max-width:400px;width:100%;margin:10px auto 14px 0!important}

#historyPopover{position:static!important;inset:auto!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;max-height:360px!important}
/* No duplicated amount presets; retain −$1/+ $1 beside amount plus −$5/+ $5 below. */
#sm87AmountExtras{display:none!important}
/* An untrained model must not show a filled confidence/probability bar. */
#smYodaUpBar,#smYodaDownBar,#smYodaFlipBar,#smYodaFlipRest{width:0!important;max-width:0!important;opacity:0!important}
#smYodaDuo .smYodaProbability{background:#1b3146!important}
