/* Common Dev accessibility layer. Orange fills and profit semantics stay intact. */
html[data-theme]{--acc-ink:#04121f;--mx-accent-text:#b8480a}
html[data-theme=light]{--t3:#636c73;--mut:#636c73}
html[data-theme=dark]{--t3:#9aa2a8;--mut:#9aa2a8;--mx-accent-text:var(--acc)}
html[data-theme=light] :is(#planChipLabel,#acctPlan,#acctLive,#planBadgeLabel,.planchoice,.dev-badge,.feed-kicker,.feed-preset.on,.oc.obest,.lgo,.sline .sn,.sline .sgo,.lgchips b.on,.bs-gt .cnt,.live-sport-chip[aria-pressed=true] .sport-count,.themegrid button.on,.admin-role-chip,.admin-badge.good,.dev-lock-button[aria-pressed=true],.funded-toggle,#fundedAdd,.funded-empty button,#devClearExclusions,.funded-stale button){color:var(--mx-accent-text)!important}
html[data-theme=light] #acctAv{color:#a84008!important}
html[data-theme=light][data-design=apple] #planChipLabel{color:var(--t)!important}
html[data-theme=light] :is(.lc-link,.legcards .hwin.stake,.legcards .kv2 .cur,.eitherbar .eb,.result .r.big .rv,.cal-od .o .oa.plus){color:var(--mx-accent-text)!important}
html[data-theme=light] :is(.bb-item.active,.mode-sheet-kicker,.mode-path-label,.mode-path-action,.boostex-tag,.boostex-row.hi b,.step-number,.bks-swap,.scan-link,.filter-clear,.filter-sheet-kicker,.stbl th.grp,.stbl th.col.sorted,.bk-mono,.stbl .team-u,.stbl .line-ml,.stbl .sport-badge,.instr .note.boost,.res-val.pos){color:var(--mx-accent-text)!important}
html[data-theme=light] #promoAssistant :is(.pa-eyebrow,ol li.active){color:var(--mx-accent-text)!important}
html[data-theme] :is(#apply,#howAll,.ctl-done,.funded-submit,.lh-next,#promoAssistant .pa-primary){color:var(--acc-ink)!important}
html[data-theme] :is(input,textarea)::placeholder{color:var(--t3);opacity:1}

/* Pointer focus has no keyboard ring. Keyboard focus uses one neutral treatment. */
html[data-theme] :is(button,input,select,textarea,a,summary,[tabindex],[role=button]):focus:not(:focus-visible){outline:none!important}
html[data-theme] :is(button,input,select,textarea,a,summary,[tabindex],[role=button]):focus-visible,
html[data-theme] :is(#drawer,#demoControls,#how,#promoAssistant,#lowholdAssistant) :focus-visible,
html[data-theme] #how #howTitle:focus-visible{outline:2px solid var(--t)!important;outline-offset:2px!important}
html[data-theme] #how #howTitle:focus:not(:focus-visible){outline:none!important}
html[data-theme] :is(input,select,textarea):focus{box-shadow:none!important;border-color:var(--line2)!important}
html[data-theme] :is(input,select,textarea):focus-visible{border-color:var(--t)!important}
html[data-theme] :is(.dev-money-input,.funded-cash):focus-within{outline:none!important}
html[data-theme] :is(.dev-money-input,.funded-cash):has(:focus-visible),
html[data-theme] #promoAssistant .pa-book-choice:has(input:focus-visible){outline:2px solid var(--t)!important;outline-offset:2px!important}
.mx-skip-results{position:fixed;top:8px;left:8px;z-index:1400;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.mx-skip-results:focus-visible{width:auto;height:auto;min-height:44px;padding:12px 18px;clip-path:none;pointer-events:auto;border:1px solid var(--t);border-radius:8px;background:var(--card);color:var(--t);font:600 16px/1.25 system-ui,sans-serif;text-decoration:none}
#scanTblCard{scroll-margin-top:16px}

/* Reading at larger text sizes takes precedence over a dense card layout. */
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) :is(.pch,.match,.wh,.demo-card-total){flex-wrap:wrap;height:auto!important;min-width:0}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) :is(.match,.lb,.l1,.a,.tm,.subj){white-space:normal!important;overflow-wrap:anywhere;min-width:0;max-width:100%;text-overflow:clip}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .rc{margin-left:auto;max-width:100%}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .wg2{display:grid!important;padding-right:0!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:8px!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .brow{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;height:auto!important;min-height:0!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .cell{grid-column:auto!important;grid-row:auto!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;min-width:0;width:100%;height:auto!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .oz{grid-column:1/-1!important;grid-row:2!important;justify-self:start;max-width:100%}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .lk{grid-column:2!important;grid-row:3!important;justify-self:end;min-width:28px;min-height:28px}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .wgw{position:static!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;justify-content:flex-end;padding:4px 0!important;border:0!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) :is(.odin2,.wgi input){max-width:100%;height:auto!important;line-height:1.4!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .v2x2{position:static!important;grid-column:1/-1!important;grid-row:auto!important;width:100%!important;min-height:36px;flex-direction:row;justify-content:center;gap:8px;margin-top:8px}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .settle-note{grid-column:1/-1;white-space:normal!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .prof{white-space:normal!important;flex-wrap:wrap}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .lb{display:block!important;grid-column:2!important;grid-row:1!important}
html[data-theme][data-large-text] :is(#mxResults,#how,#lowholdAssistant) :is(.pc,.demo-arb-modal) .brand-logo{grid-column:1!important;grid-row:1!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:10px!important;height:auto!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-selection{grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:anywhere}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row>.brand-logo{grid-column:1!important;grid-row:1!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row>.odin2{grid-column:1/-1!important;grid-row:2!important;justify-self:start;width:12ch!important;max-width:calc(100% - 2em)!important;text-align:left!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row>.lk{grid-column:2!important;grid-row:2!important;justify-self:end}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-stake{grid-column:1/-1!important;grid-row:3!important;display:flex!important;justify-content:flex-end;gap:6px;width:100%;max-width:100%;height:auto!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-stake input{width:12ch!important;max-width:calc(100% - 2em)!important}
html[data-theme][data-large-text] #mxResults .evc :is(.demo-ev-head,.demo-ev-note){flex-wrap:wrap;white-space:normal!important;gap:6px}
html[data-theme][data-large-text] #mxResults .evc :is(.demo-ev-head,.demo-ev-note)>span{white-space:normal!important;overflow-wrap:anywhere;max-width:100%}
html[data-large-text] :is(#drawer,#demoControls,#how,#promoAssistant,#lowholdAssistant){overflow-wrap:anywhere}
html[data-large-text] :is(#drawer,#demoControls,#how) :is(header,.h,.hh,.page-setting,.acctrow){height:auto!important;min-height:44px;flex-wrap:wrap}
html[data-large-text] :is(#drawer,#demoControls,#how) :is(label,.acopy,.demo-book-name){white-space:normal!important}

@media(prefers-contrast:more){
 html[data-theme]{--t2:var(--t);--t3:var(--t);--mut:var(--t);--line:var(--line2)}
 html[data-theme] :is(.themegrid,.mx-design-choice,.hc-format,.og-tabs,.tv-tabs){background:var(--card)!important;border:1px solid var(--line2)!important}
 html[data-theme] :is(.themegrid,.mx-design-choice,.hc-format,.og-tabs,.tv-tabs) button{color:var(--t)!important}
 html[data-theme] :is(.top,.sub,.mx-toolbar-actions,.mx-apple-tabs){background:var(--bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(prefers-reduced-transparency:reduce){
 html[data-theme] :is(.top,.sub,.mx-toolbar-actions,.mx-apple-tabs){background:var(--bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
