/* Common Dev targets. Native card fields and Compare keep their own layout space. */
html[data-theme]{--mx-hit-size:28px}
html[data-theme] #devAssistantLoadNotice{position:fixed;z-index:99999;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom,0px));max-width:520px;margin:auto;padding:14px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--t);box-shadow:0 8px 30px #0002;font:inherit}
html[data-theme] #devAssistantLoadNotice>span{flex:1 1 200px}
html[data-theme] #devAssistantLoadNotice>div{display:flex;align-items:center;gap:8px}
html[data-theme] #devAssistantLoadNotice button{min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--bg);color:inherit;font:inherit;cursor:pointer}
@media(max-width:999px){html[data-theme][data-design=apple] #devAssistantLoadNotice{bottom:calc(65px + env(safe-area-inset-bottom,0px))}}
html[data-theme][data-design-surface=promo] :is(.legend-learn,#scanPBTrig,#scanHBTrig,#swapBks,#qualifierSort){min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme][data-design-surface=promo] .sc2-fld{min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme][data-design-surface=promo] :is(.mode-sheet-x,.bkp-close,#bkpSearch,.bkp-region,.bkp-mini-btn,#bkpConfirm){min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme][data-design-surface=promo] .mode-path-action{min-width:var(--mx-hit-size);min-height:max(40px,var(--mx-hit-size));box-sizing:border-box}
html[data-theme][data-design-surface=promo] :is(.pm-close,#pmStake,.pm-odds-edit,.pm-odds-input,.pm-reset,.pm-bet){min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme][data-design-surface=promo] :is(.pm-odds-edit,.pm-reset,.pm-bet){display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;position:relative;z-index:1}
html[data-theme][data-design-surface=promo][data-large-text] .pm-stake{flex-direction:column;align-items:flex-start}
html[data-theme][data-design-surface=promo][data-large-text] #pmStake{flex:none;width:14ch;max-width:100%}
html[data-theme] :is(#devDeposit .dev-calculate,#fundedDialog .funded-submit,#fundedDialog .funded-remove,#fundedDialog #fundedAdd,#fundedDialog .funded-book-row select){min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme] :is(#devContinue,#fundedSummary .funded-edit,#fundedSummary [data-funded-again]){display:inline-flex;align-items:center;justify-content:center;min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme] :is(#devPlanResult,#fundedSummary) .mx-profit-unit::before{inset:-8px}
html[data-theme] #fundedDialog .funded-remove{width:var(--mx-hit-size);height:max(36px,var(--mx-hit-size))}
html[data-theme] #fundedDialog .funded-book-row{grid-template-columns:32px minmax(0,1fr) max-content var(--mx-hit-size);column-gap:8px;row-gap:8px}
html[data-theme] #fundedDialog .funded-label-row{grid-template-columns:minmax(0,1fr) 128px var(--mx-hit-size);column-gap:8px}
html[data-theme] #fundedDialog .funded-book-row .funded-cash input{width:12ch;max-width:none;box-sizing:content-box}
@media(max-width:540px){html[data-theme] #fundedDialog .funded-book-row{grid-template-columns:27px minmax(0,1fr) max-content var(--mx-hit-size)}}
html[data-theme][data-large-text] :is(#devDeposit,#fundedDialog)>header{position:static!important}
html[data-theme][data-large-text] :is(#devDeposit .dev-budget-grid,#fundedDialog .funded-options){grid-template-columns:minmax(0,1fr)}
html[data-theme][data-large-text] #fundedDialog .funded-book-row{grid-template-columns:32px minmax(0,1fr) var(--mx-hit-size)}
html[data-theme][data-large-text] #fundedDialog .funded-book-icon{grid-column:1;grid-row:1}
html[data-theme][data-large-text] #fundedDialog .funded-book-row select{grid-column:2;grid-row:1}
html[data-theme][data-large-text] #fundedDialog .funded-remove{grid-column:3;grid-row:1}
html[data-theme][data-large-text] #fundedDialog .funded-book-row .funded-cash{grid-column:1/-1;grid-row:2;justify-self:end}
html[data-theme][data-large-text] #fundedDialog .funded-label-row{display:flex;justify-content:space-between;gap:8px}
html[data-theme] #how :is(.dev-payout-details,.demo-review-help)>summary{min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme] #how .dev-payout-details>summary{align-items:center}
html[data-theme] #how .demo-review-help>summary{padding-block:max(0px,calc((var(--mx-hit-size) - 1lh)/2))}
html[data-theme] #how .f>button{min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box}
html[data-theme] :where(#modInfo,#how .h>.x,#accountDrawerClose,.dev-dialog-close,#devInsights .funded-close,#fundedDialog .funded-close,#promoAssistant [data-close],#lowholdAssistant .lh-close){position:relative}
html[data-theme] :is(#modInfo,#how .h>.x,#accountDrawerClose,.dev-dialog-close,#devInsights .funded-close,#fundedDialog .funded-close,#promoAssistant [data-close],#lowholdAssistant .lh-close)::after{
 content:'';position:absolute;left:50%;top:50%;width:max(100%,var(--mx-hit-size));height:max(100%,var(--mx-hit-size));transform:translate(-50%,-50%)
}
html[data-theme] :is(#demoControls,#demoPromoControls) :is(.eye,.infob):not([hidden]){min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box}
html[data-theme] .funded-menu [role=menuitem]:not([hidden]){min-height:var(--mx-hit-size);min-width:var(--mx-hit-size)}
html[data-theme] :is(.pc,.demo-arb-modal) :is(input.odin2,.wgi input,.wgp input,input.evstake){min-width:var(--mx-hit-size)!important;min-height:var(--mx-hit-size)!important;box-sizing:border-box}
html[data-theme] :is(.pc,.demo-arb-modal) .demo-alt-more{min-width:var(--mx-hit-size)!important;min-height:var(--mx-hit-size)!important;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
html[data-theme] :is(.pc,.demo-arb-modal) :is(.lb>.b,.demo-card-alternatives):has(.demo-alt-more){height:auto!important;min-height:var(--mx-hit-size)!important}
html[data-theme] :is(.pc,.demo-arb-modal) :is(.cell,.wg2,.demo-ev-row){column-gap:8px!important}
html[data-theme] :is(.pc,.demo-arb-modal) .wg2{row-gap:8px!important}
html[data-theme] :is(.pc,.demo-arb-modal) :is(a.lk,.v2x2){min-width:var(--mx-hit-size)!important;min-height:var(--mx-hit-size)!important;box-sizing:border-box}
html[data-theme] :is(.pc,.demo-arb-modal) a.lk:not([hidden]){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
html[data-theme] :is(.pc,.demo-arb-modal) :is(.wg2,.well.g2 .wh){grid-template-columns:minmax(0,1fr) var(--mx-hit-size) max-content!important}
html[data-theme] :is(.demo-arb,.demo-arb-modal) .pc:has(.dev-stake-lock) :is(.wg2,.well.g2 .wh){grid-template-columns:minmax(0,1fr) max-content!important}
html[data-theme] .pc .well:has(.dev-stake-lock){
 --stake-lock-target:max(32px,var(--mx-hit-size));--stake-lock-gap:1px
}
html[data-theme] .pc .wg2 .wgw:has(>.dev-stake-lock){
 display:flex!important;flex-flow:row nowrap!important;align-items:center;align-self:center!important;
 grid-column:2!important;justify-self:end;justify-content:flex-end!important;width:max-content!important;gap:var(--stake-lock-gap)!important
}
html[data-theme] .pc .well:has(.dev-stake-lock) .wh{
 display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important
}
html[data-theme] .pc .well:has(.dev-stake-lock) .wh>.c{
 display:block;grid-column:2!important;justify-self:end;white-space:nowrap;
 margin-inline-end:calc(var(--stake-lock-target) + var(--stake-lock-gap))
}
html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection{grid-template-columns:40px minmax(0,1fr) auto var(--mx-hit-size)!important}
html[data-theme] .pc .demo-ev-row{grid-template-columns:40px minmax(0,1fr) auto var(--mx-hit-size) max-content!important}
html[data-theme] .m-lowhold .pc .cell .lb .l1{grid-template-columns:minmax(0,1fr) var(--mx-hit-size)!important;column-gap:8px!important}
html[data-theme] .demo-more-panel .demo-alt{min-width:var(--mx-hit-size)!important;min-height:max(38px,var(--mx-hit-size))!important;height:auto!important;max-width:100%;box-sizing:border-box;padding:6px 8px}
html[data-theme] .demo-more-panel .demo-alt>img{flex:none}
html[data-theme] .demo-more-panel .demo-alt>span{min-width:0;overflow-wrap:anywhere;text-align:left}
html[data-theme] .demo-card-alternatives .demo-alt-slot{gap:8px!important;min-height:var(--mx-hit-size)!important}
html[data-theme] .demo-card-alternatives .demo-alt-slot:empty{min-height:0!important;height:0!important}
html[data-theme] .demo-card-alternatives :is(.demo-alt,.demo-ev-badge){width:var(--mx-hit-size)!important;min-width:var(--mx-hit-size)!important;height:var(--mx-hit-size)!important;min-height:var(--mx-hit-size)!important;flex:0 0 var(--mx-hit-size)!important;box-sizing:border-box}
html[data-theme] .demo-book-link{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex:0 0 max(40px,var(--mx-hit-size));width:max(40px,var(--mx-hit-size));height:max(40px,var(--mx-hit-size));min-width:var(--mx-hit-size);min-height:var(--mx-hit-size);box-sizing:border-box;border-radius:0!important;color:inherit;text-decoration:none}
html[data-theme] .cell>.demo-book-link>img{width:36px;height:36px;object-fit:contain;flex:none}
html[data-theme] :is(.demo-arb,.demo-arb-modal) .pc .cell>.demo-book-link>img{width:40px;height:40px}
html[data-theme] .pc .demo-ev-row>.demo-book-link>img{width:40px;height:40px;object-fit:contain}
@media(max-width:767px){
 html[data-theme]{--mx-hit-size:44px}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection{grid-template-columns:var(--mx-hit-size) minmax(0,1fr) var(--mx-hit-size)!important;row-gap:8px!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>.lb{display:contents!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>.lb>.l1{grid-column:1/-1!important;grid-row:1!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>:is(img,.demo-book-link){grid-column:1!important;grid-row:2!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>.lb>.b{grid-column:1/-1!important;grid-row:3!important;margin:0!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>.oz{grid-column:2!important;grid-row:2!important}
 html[data-theme] :is(.pc,.demo-arb-modal) .cell.demo-selection>.lk{grid-column:3!important;grid-row:2!important}
 html[data-theme] .pc .demo-ev-row{grid-template-columns:var(--mx-hit-size) minmax(0,1fr) auto var(--mx-hit-size) max-content!important}
 /* Primary sportsbook artwork keeps its landscape size inside the 44px target. */
 html[data-theme] .top :is(.burger,a[aria-label="Marginox home"]){position:relative}
 html[data-theme] .top .burger{margin-inline-end:6px}
 html[data-theme] .top :is(.burger,a[aria-label="Marginox home"])::after{content:'';position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
 html[data-theme] .top :is(.mx-updates-trigger,.acct-btn){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:none}
 html[data-theme] .mx-compact-toolbar .mx-toolbar-actions{gap:4px!important}
 html[data-theme] .mx-compact-toolbar #mxDevBar{gap:4px!important}
 html[data-theme] .mx-compact-toolbar .mx-toolbar-actions :is(.mx-search-toggle,.dev-insights-open,.funded-toggle,#pageSettingsPill){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 html[data-theme] .mx-compact-toolbar #demoBoardSearch button{width:44px;min-width:44px;height:44px}
 html[data-theme] .mx-compact-toolbar #demoBoardSearch{height:50px}
}
html[data-theme][data-large-text] :is(.pc,.demo-arb-modal) .cell.demo-selection>.demo-book-link{grid-column:1!important;grid-row:1!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row:has(.demo-book-link){grid-template-columns:max(30px,var(--mx-hit-size)) minmax(0,1fr)!important}
html[data-theme][data-large-text] #mxResults .evc .demo-ev-row>.demo-book-link{grid-column:1!important;grid-row:1!important}

/* Alan's compact Arb board: one selection line, one aligned book/price line.
   Full-size fields and keyboard focus stay; expanded text keeps its reflow. */
html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards{max-width:1056px;margin-inline:auto}
html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .demo-card-total:not(:has(button)){height:32px;min-height:32px}
@media(max-width:767px){
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .pch{display:flex!important;flex-wrap:wrap;gap:5px;padding-block:7px 4px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .pch .tclock{grid-column:auto;grid-row:auto;flex:none}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .pch .rc{margin-left:auto;flex:none}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wg2{grid-template-columns:minmax(144px,1fr) 44px minmax(0,max-content)!important;gap:6px!important}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .well.g2 .wh{display:flex!important;justify-content:space-between;gap:8px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wh>.c{display:block}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .v2x2{min-width:44px!important;width:44px;position:relative;isolation:isolate;background:transparent;border-color:transparent}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .v2x2::before{content:'';position:absolute;inset:0 8px;z-index:-1;border:1px solid var(--line2);border-radius:0 10px 10px 0;background:var(--cellbg);pointer-events:none}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection{grid-template-columns:44px minmax(0,1fr) auto 24px!important;grid-template-rows:auto 44px!important;column-gap:2px!important;row-gap:0!important;min-height:0;padding:4px 2px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.lb{display:contents!important}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.lb>.l1{grid-column:1/-1!important;grid-row:1!important;min-height:0}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.lb .a{min-width:0;white-space:normal;display:block;line-height:1.25}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>:is(img,.demo-book-link){grid-column:1!important;grid-row:2!important}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.lb>.b{grid-column:2!important;grid-row:2!important;margin:0!important}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.oz{grid-column:3!important;grid-row:2!important}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .cell.demo-selection>.lk{grid-column:4!important;grid-row:2!important;min-width:24px!important;width:24px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wg2 .wgw{align-self:end!important;height:44px;min-height:44px;margin-bottom:4px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wgw .wgs{height:44px;line-height:44px}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wgw .wgi{flex:none}
 html[data-theme]:not([data-design=apple]):not([data-large-text]) #demoArbCards .pc .wgw .wgi{height:44px!important;min-height:44px!important}
}
