/* Prediction Markets occupies the existing left column and chart area. */
#prediction-side[hidden],#prediction-main[hidden]{display:none!important}
body.prediction-mode #side>:not(#sidehd):not(#prediction-side){display:none!important}
body.prediction-mode #sidehd>:not(h1){display:none!important}
body.prediction-mode #sidehd{margin-bottom:18px}
body.prediction-mode #main>#chart,body.prediction-mode #main>#top,body.prediction-mode #main>#ovlegend,body.prediction-mode #main>#subpane,body.prediction-mode #main>#brand,body.prediction-mode #main>#optimize,body.prediction-mode #main>#equity,body.prediction-mode #main>#eqpanel{display:none!important}
body.prediction-mode #hours,body.prediction-mode #coachbtn,body.prediction-mode #coach-bubble,body.prediction-mode #tutorialbtn,body.prediction-mode #rpbar,body.prediction-mode #rpbtn,body.prediction-mode #qstart,body.prediction-mode #qb-legend,body.prediction-mode #main .vlabel{display:none!important}
#prediction-main{position:absolute;inset:36px 0 0;display:flex;flex-direction:column;min-height:0;background:#060608;color:#8c919d}
body.prediction-mode #main{min-width:0}
#symmenu.prediction-market-picker{min-width:0;width:min(620px,calc(100vw - 20px));box-sizing:border-box}
body.prediction-mode #symbtn{max-width:340px;overflow:hidden;text-overflow:ellipsis}
body.prediction-mode #indsel{display:none!important}
body.prediction-mode #xsettings{max-width:calc(100vw - 24px);min-width:min(290px,calc(100vw - 24px))}
.prediction-indicator-list{padding:12px 18px;display:flex;flex-direction:column;gap:13px;font-size:13px;color:#abb4c5}
.prediction-indicator-list label{display:flex;gap:10px;align-items:center;cursor:pointer;margin:0}
.prediction-indicator-list input{width:auto;accent-color:#2962ff}
.prediction-indicator-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #202127}
.prediction-indicator-row:last-child{border-bottom:0}
.prediction-indicator-row small{flex-basis:100%;color:#777f8e;font-size:11px}
.prediction-indicator-row small:empty{display:none}
.prediction-indicator-list .prediction-indicator-setting{font-size:11px;color:#8c919d;gap:6px}
.prediction-indicator-setting input[type=number]{box-sizing:border-box;width:62px;background:#131419;color:#dfe3ea;border:1px solid #26262c;border-radius:5px;padding:5px}
.prediction-indicator-setting input:disabled{opacity:.4}
.prediction-venues{display:flex;flex-wrap:wrap;gap:6px;padding:5px 8px 12px}
/* These live inside #topbar, whose compact button defaults must not size
   two-line menu rows. Keep the overrides scoped to prediction controls. */
#topbar .prediction-venues button,#topbar .prediction-picker-retry{width:auto;height:auto;min-height:30px;margin:0;border:1px solid #26262c;background:#131419;color:#9299a7;border-radius:6px;padding:6px 11px;font-size:12px;cursor:pointer;white-space:normal}
#topbar .prediction-venues button[aria-pressed=true]{background:rgba(45,212,191,.12);border-color:#347c70;color:#5ce1cd}
#topbar button.prediction-market-row{display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;width:100%;height:auto;min-height:58px;margin:0;padding:10px 9px;text-align:left;white-space:normal;background:transparent;border:1px solid transparent;border-bottom-color:#1d2129;border-radius:7px;color:#cbd0da;font:inherit;cursor:pointer}
#topbar button.prediction-market-row:hover,#topbar button.prediction-market-row[aria-pressed=true]{background:rgba(45,212,191,.07);border-color:#28524c;color:#fff}
#topbar button.prediction-market-row:focus-visible,#topbar .prediction-venues button:focus-visible{outline:2px solid #2dd4bf;outline-offset:-2px}
.prediction-market-rank{flex:0 0 19px;line-height:18px;text-align:center;color:#6a7889;font-size:11px;font-variant-numeric:tabular-nums}
.prediction-market-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px;line-height:1.45;font-size:12px}
.prediction-market-title{overflow-wrap:anywhere}
.prediction-market-copy small{font-size:10.5px;color:#7d8798}
#symmenu.prediction-market-picker .im-cathead{flex-wrap:wrap;gap:2px 8px}
#symmenu.prediction-market-picker .symlist{overflow-x:hidden}
#topbar .prediction-picker-retry{margin:8px}
.prediction-load-error{padding:20px;font-size:13px}
#prediction-main>button{width:auto;align-self:flex-start;margin:0 20px;padding:6px 12px}
@media(max-width:760px){body.prediction-mode #side{width:300px;flex-basis:300px;padding:12px}body.prediction-mode #symbtn{max-width:160px}body.prediction-mode #topbar{gap:5px;padding-left:8px;padding-right:8px}body.prediction-mode #topbar #indsel{max-width:125px}body.prediction-mode #topbar .tbsep{display:none}}
@media(max-width:900px){body.prediction-mode #app{display:flex;flex-direction:column;height:auto;min-height:100%}body.prediction-mode #side{width:100%;box-sizing:border-box;flex-basis:auto;max-height:42vh;border-right:0;border-bottom:1px solid #202127;overflow:auto}body.prediction-mode #sideresize{display:none}body.prediction-mode #main{flex:none;height:72vh;min-height:480px}body.prediction-mode #topbar{flex-wrap:wrap;height:auto;min-height:72px;align-content:flex-start}body.prediction-mode #prediction-main{inset:72px 0 0}}
body.prediction-mode #indmenu{min-width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 110px);box-sizing:border-box}
body.prediction-mode #indmenu .im-list{min-height:0}
body.prediction-mode #indmenu .imitem[aria-disabled=true]{opacity:.4;cursor:default}
body.prediction-mode #indmenu .imitem:focus-visible{outline:1px solid #2dd4bf;outline-offset:-1px}
body.prediction-mode #indmenu .im-cathead{flex-wrap:wrap}
body.prediction-mode #indmenu .im-search{min-width:60px}
@media(max-width:580px){body.prediction-mode #indmenu .im-rail{flex-basis:125px;padding:8px 4px}body.prediction-mode #indmenu .im-sub{display:none}body.prediction-mode #indmenu .im-top b{font-size:12px}}
body.prediction-mode #setupmenu{width:min(420px,calc(100vw - 30px))!important;min-width:0;height:auto!important;min-height:0;max-height:calc(100vh - 110px);resize:none;overflow:auto}
body.prediction-mode #setupmenu>*{zoom:1}
