/* Shared game/trainer viewport contract. Keep the console's intrinsic height;
   the outer workspace, not the clipped stage, is the emergency scroll area. */
#root .app>.view.playing-view,#demo-root .view.playing-view{
  gap:clamp(6px,1.2dvh,14px)!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
}
#root .app>.view.playing-view{overflow-y:auto!important;overscroll-behavior-y:contain;}
.playing-view>.hud,.playing-view>.oa-stage,.playing-view>.oa-result,
.playing-view>.card:not(.tip-cd){flex:0 0 auto!important;min-width:0;}
.playing-view>.oa-stage{height:auto!important;max-height:none!important;min-height:var(--orbi-stage-height,0px)!important;zoom:var(--orbi-stage-fit,1);}
.playing-view>.hud .tm-clock:empty{min-height:0;}
.playing-view>.tm-bar:not(.on){display:none!important;}
.playing-view .g2 .g2-last:empty{display:none;}
/* Prefer removing empty space and excess padding to reducing artwork or text. */
@media(max-height:900px){
  .playing-view .oa-hud{padding-block:10px 7px;gap:8px;}
  .playing-view .oa-rail{padding-bottom:7px;}
  .playing-view .oa-body{padding-block:2px 12px;}
  .playing-view .oa-q{gap:10px;}
  .playing-view .g2 .g2-focus{gap:8px;padding-block:0;}
  .playing-view .g2 .g2-panel{padding:10px;}
  .playing-view .g2 .g2-panel:has(>.ql){padding-block:6px;}
  .playing-view .g2 .ql{height:clamp(68px,10dvh,var(--h,96px));}
  .playing-view .g2 .g2-qrow .start{min-height:48px;}
  .playing-view .g2 .g2-col{gap:8px;}
  .playing-view .mt-q{padding-block:12px 8px;gap:6px;}
  .playing-view .mt-help{padding-bottom:2px;}
  .playing-view .mt-pad{gap:5px;margin-top:6px;}
  .playing-view .mt-key{height:clamp(44px,6.8dvh,54px);}
}
@media(max-height:620px) and (min-width:700px){
  .playing-view .mt-stage .oa-body:has(.mt-pad){
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:center;column-gap:14px;
  }
  .playing-view .mt-stage .oa-body>.mt-pad{grid-column:2;grid-row:1/span 3;width:100%;}
}
html[data-orbi-hardware-keyboard] .playing-view .mt-pad{display:none!important;}
/* Preserve readable enlarged-text mode; long sessions/results retain scrolling. */
/* Enlarged text remains a preference; fit its complete content as well. */

/* Fit the actual workspace, not the device's nominal screen dimensions. */
#root .app>.view.playing-view{display:flex!important;flex-direction:column!important;height:0!important;min-height:0!important;padding-block:2px 6px!important;gap:6px!important;}
#root .app>.view.playing-view::after{display:none!important;}
#root .app>.view.playing-view>.hud,#demo-root .playing-view>.hud{flex:none!important;margin-block:0!important;padding-block:0!important;min-height:0!important;}
.playing-view>.oa-stage{align-self:center!important;width:100%;max-width:100%;box-sizing:border-box;flex:none!important;margin-block:0!important;overflow:visible!important;}
.playing-view>.oa-stage[data-orbi-transform-fit]{zoom:1!important;transform:scale(var(--orbi-stage-fit,1));transform-origin:top center;margin-bottom:var(--orbi-stage-collapse,0px)!important;}
.playing-view>.oa-stage::before{border-radius:inherit;}
@media(min-width:700px) and (max-height:950px){
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow){display:grid;max-width:none;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:12px;row-gap:6px;align-items:center;}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-dots{grid-column:1/-1;grid-row:1}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-dicehost{grid-column:1;grid-row:2/span 3}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-row{grid-column:1;grid-row:5;justify-content:center;text-align:center}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-last{grid-column:1;grid-row:6}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-q{grid-column:2;grid-row:2;font-size:clamp(18px,2.4vw,25px)}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-ask2{grid-column:2;grid-row:3}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-panel{grid-column:2;grid-row:4}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.g2-qrow{grid-column:2;grid-row:5}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost):has(>.g2-qrow)>.mm-err{grid-column:2;grid-row:6}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost) .g2-qrow .start{padding-inline:12px}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost) .mm-quote label{min-width:0}
  .playing-view .g2 .g2-focus:has(>.g2-dicehost) .mm-quote input{min-width:0;width:100%}
}

/* Fill the usable workspace, including the content rather than just the border. */
.playing-view>.oa-stage{display:flex!important;flex-direction:column!important;}
.playing-view>.oa-stage>.oa-hud,.playing-view>.oa-stage>.oa-rail{flex:none;}
.playing-view>.oa-stage>.oa-body{display:flex;flex-direction:column;flex:1 0 auto;min-width:0;justify-content:space-evenly;gap:clamp(6px,calc(6px + var(--orbi-stage-room,0px)*.035),18px);}
.playing-view>.oa-stage>.oa-body>:is(.oa-q,.g2-focus){width:100%;flex:1 0 auto;justify-content:space-evenly;}
.playing-view>.oa-stage>.oa-body>.oa-q{gap:clamp(10px,calc(10px + var(--orbi-stage-room,0px)*.06),26px);}
.playing-view>.oa-stage .oa-prompt{min-height:clamp(120px,calc(120px + var(--orbi-stage-room,0px)*.30),230px);}
.playing-view>.oa-stage .oa-choice{min-height:clamp(50px,calc(56px + var(--orbi-stage-room,0px)*.06),80px);}
.playing-view>.oa-stage .mt-key{height:clamp(44px,calc(48px + var(--orbi-stage-room,0px)*.07),64px);}
.playing-view>.oa-stage .mt-text{font-size:clamp(34px,calc(42px + var(--orbi-stage-room,0px)*.045),64px);}
.playing-view>.oa-stage.g2 .g2-focus{align-content:space-evenly;}
.playing-view>.oa-stage .g2-focus>.g2-dicehost>:is(.d3-wrap,.g2-dice2d){height:clamp(150px,calc(150px + var(--orbi-stage-room,0px)*.32),230px)!important;}
.playing-view>.oa-stage .g2-focus .ql{height:clamp(74px,calc(88px + var(--orbi-stage-room,0px)*.16),130px);}
.playing-view>.oa-stage[data-orbi-measuring]{--orbi-stage-room:0px!important;min-height:0!important;zoom:1!important;transform:none!important;margin-bottom:0!important;}
.playing-view>.oa-stage[data-orbi-measuring]>.oa-body{flex:none;justify-content:flex-start;}
.playing-view>.oa-stage[data-orbi-measuring]>.oa-body>:is(.oa-q,.g2-focus){flex:none;justify-content:flex-start;}
@media(min-width:700px) and (max-height:950px){.playing-view>.oa-stage .g2-focus:has(>.g2-dicehost):has(>.g2-qrow){align-content:space-evenly;justify-content:stretch;row-gap:clamp(6px,calc(6px + var(--orbi-stage-room,0px)*.035),16px);}}

/* Compact settings workspace: consistent panel widths, no oversized empty charts. */
#root .app>.view.tip-setup{max-width:1180px!important;gap:clamp(7px,1.1dvh,13px)!important;padding-block:4px 8px!important;justify-content:flex-start!important;align-items:stretch!important;}
#root .app>.view.tip-setup>.tm-titlebar{flex:none;min-height:32px;gap:10px;}
.tip-setup .tm-gname{font-size:clamp(19px,2.2vw,25px);line-height:1.2;margin:0;}
.tip-setup .orbi-setup-tabs{display:flex;flex-wrap:wrap;gap:4px;flex:none;align-self:flex-start;padding:3px;border:1px solid var(--line);background:var(--surface);border-radius:12px;max-width:100%;}
.orbi-setup-tabs button{border:0;border-radius:8px;background:transparent;color:var(--muted);font:600 12px Inter,system-ui,sans-serif;min-height:32px;padding:6px 12px;cursor:pointer;}
.orbi-setup-tabs button[hidden]{display:none!important}
.orbi-setup-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);}
.orbi-setup-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
#root .app>.view.tip-setup>.tip-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(8px,1.2vw,16px);align-items:start;flex:none;min-width:0;zoom:var(--setup-fit,1);}
.tip-setup .tip-grid>.tip-panel,.tip-setup .tip-side>.tip-panel,.tip-setup>.tip-lessons{padding:clamp(11px,1.5dvh,17px)!important;gap:clamp(5px,1dvh,10px)!important;border-radius:18px;min-width:0;}
.tip-setup .tip-side{gap:clamp(7px,1.2dvh,12px);}
.tip-setup .tip-h{font-size:17px;margin:0;line-height:1.25;}
.tip-setup .tip-panel .lead{font-size:13px;line-height:1.4;margin:0;}
.tip-setup .tip-lbl{margin-top:1px;}
.tip-setup .tip-seg{padding:3px;gap:3px;}
.tip-setup .tip-seg button{padding:8px 5px;min-height:32px;font-size:12px;}
.tip-setup .tip-tiles{gap:7px;margin:0;}
.tip-setup .tip-tile{padding:8px 10px;gap:3px;min-height:46px;}
.tip-setup .tip-tile>b,.tip-setup .tip-num input,.tip-setup .tip-sel,.tip-setup .tip-toggle{font-size:16px;}
.tip-setup .tip-tile>span:first-child{font-size:11px;line-height:1.25;}
.tip-setup .tip-stat{padding:8px 9px;gap:3px;}
.tip-setup .tip-stat b{font-size:clamp(17px,2vw,22px);}
.tip-setup .tip-stat span{font-size:10px;letter-spacing:.035em;}
.tip-setup .tip-stats{gap:6px;}
.tip-setup .tip-empty,.tip-setup .tip-empty.small{min-height:40px;padding:5px;}
.tip-setup .tip-cbox{padding:8px!important;gap:4px!important;}
.tip-setup .tip-cwrap svg{display:block;width:100%;height:100%;max-height:none;}
.tip-setup .tip-go{margin-top:3px;padding:10px 18px;min-height:42px;font-size:15px;}
.tip-setup .tip-enter{margin-top:0;font-size:11px;}
.tip-setup .note{margin:0;font-size:12px;line-height:1.4;}
.tip-setup .tip-board li,.tip-setup .tip-hist li{padding:4px 2px;min-height:34px;gap:6px;}
.tip-setup .tip-board .tip-rank{width:24px;height:24px;}
.tip-setup .tip-who b,.tip-setup .tip-amt{font-size:13px;}
.tip-setup .tip-who em{font-size:11px;}
.tip-setup .tip-hist{max-height:none;}
.tip-setup[data-setup-pane] .tip-side>[data-setup-panel]{display:none;}
.tip-setup[data-setup-pane=overview] .tip-side>:is([data-setup-panel=stats],[data-setup-panel=best]),.tip-setup[data-setup-pane=progress] .tip-side>[data-setup-panel=progress],.tip-setup[data-setup-pane=history] .tip-side>[data-setup-panel=history]{display:flex;}
.tip-setup[data-setup-pane]>.tip-lessons{display:none;}
.tip-setup[data-setup-pane=lessons]>.tip-lessons{display:flex;zoom:var(--setup-fit,1);}
.tip-setup[data-setup-pane=lessons]>.tip-grid{display:none!important;}
#root .app>.view.tip-setup[data-setup-narrow]>.tip-grid{grid-template-columns:minmax(0,1fr);max-width:600px;align-self:center;width:100%;}
.tip-setup[data-setup-narrow][data-setup-pane=settings] .tip-side,.tip-setup[data-setup-narrow]:not([data-setup-pane=settings]) .tip-grid>.tip-panel{display:none;}
@media(min-width:1300px){.tip-setup .tip-grid>.tip-panel>.tip-tiles{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-height:720px){.tip-setup .tip-panel{gap:5px!important}.tip-setup .tip-tile{padding-block:6px;min-height:42px}.tip-setup .tip-go{min-height:40px}.tip-setup .tip-cwrap svg{max-height:none}}
@media(max-width:999px){.tip-setup .orbi-setup-tabs{width:100%;justify-content:center}.orbi-setup-tabs button{flex:1;padding-inline:8px;white-space:nowrap}}

/* Align the Trading Questions and Coding Bank browse controls to the right.
   Keep the shared toolbar height and orbital geometry unchanged. */
#root .app>.view:is(.orb-trading-home,.orb-coding-home)>.orb-lessons-tools{
  justify-content:flex-end;
  align-self:stretch;
  width:auto;
}

/* Phone-first practice workspace. Preserve shared hub geometry and artwork;
   use the available width for readable content and finger-sized controls. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 #root .app>.view.orb-practice-home>.orb-lesson-orbit>.orb-lesson-topics{gap:8px!important;grid-auto-rows:minmax(52px,auto)}
 #root .app>.view.orb-practice-home .orb-lesson-topic{min-height:52px!important;padding:10px 14px!important}
 #root .app>.view.orb-practice-library{gap:10px!important}
 #root .app>.view.orb-practice-library .orb-topic-header{gap:10px;flex-wrap:wrap}
 #root .app>.view.orb-practice-library .orb-topic-header p{font-size:13px;line-height:1.45}
 #root .app>.view.orb-practice-library .orb-lesson-list{gap:10px}
 #root .app>.view.orb-practice-library .orb-lesson-row .tcard{border-radius:18px;grid-template-columns:minmax(0,1fr)!important}
 #root .app>.view.orb-practice-library .orb-lesson-row .tcard .tart{height:clamp(108px,32vw,150px)!important;min-height:0!important;border-right:0;border-bottom:1px solid var(--line)}
 #root .app>.view.orb-practice-library .orb-lesson-row .tcard .tbody{padding:12px!important;gap:7px}
 #root .app>.view.orb-practice-library .orb-lesson-row .tfoot{padding-top:4px}
 #root .app>.view.orb-practice-library .orb-lesson-row .start{min-height:44px}
 #root .app>.view.tip-setup{gap:8px!important}
 #root .app>.view.tip-setup>.tm-titlebar{flex-wrap:wrap;gap:6px}
 #root .app>.view.tip-setup>.orbi-setup-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:4px;box-sizing:border-box}
 .tip-setup .orbi-setup-tabs button{min-height:40px;white-space:normal;line-height:1.2;padding:6px}
 #root .app>.view.tip-setup>.tip-grid,.tip-setup>.tip-lessons{zoom:1!important}
 .tip-setup .tip-grid>.tip-panel,.tip-setup .tip-side>.tip-panel,.tip-setup>.tip-lessons{padding:12px!important;border-radius:16px}
 .tip-setup .tip-seg{border-radius:16px;flex-wrap:wrap}
 .tip-setup .tip-seg button{min-width:0;min-height:40px;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
 .tip-setup .tip-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .tip-setup .tip-tile{padding:8px;min-height:52px}
 .tip-setup .tip-num input{max-width:100%}
 .tip-setup .tip-stat span,.tip-setup .tip-stat b{white-space:normal;overflow-wrap:anywhere}
 .tip-setup .tip-go{min-height:48px}
 html:not([data-orbi-hardware-keyboard]) .tip-setup .tip-enter{display:none}
 .playing-view>.oa-stage{border-radius:16px;max-width:100%}
 .playing-view>.oa-stage>.oa-hud{grid-template-columns:minmax(0,1fr) auto;padding:8px 10px 6px;gap:6px}
 .playing-view .oa-hud-r{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:5px}
 .playing-view .oa-hud-r:empty{display:none}
 .playing-view .oa-stat{min-width:0;padding:5px 7px;align-items:center}
 .playing-view .oa-title{white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.2}
 .playing-view .oa-sub{font-size:10px}
 .playing-view .oa-rail{padding:0 10px 6px}
 .playing-view>.oa-stage>.oa-body{padding:4px 10px 10px;gap:8px}
 .playing-view>.oa-stage>.oa-body>:is(.oa-q,.g2-focus){min-width:0;gap:8px}
 .playing-view>.oa-stage .oa-prompt,.playing-view>.oa-stage .oa-memo{min-height:clamp(70px,12dvh,110px);gap:6px;padding:6px 2px;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
 .playing-view>.oa-stage .oa-choices{gap:6px}
 .playing-view>.oa-stage .oa-choice{min-height:48px;padding:8px;gap:6px;font-size:15px}
 .playing-view .oa-choice-v{overflow-wrap:anywhere}
 .playing-view .oa-num-box{min-width:0;max-width:100%;flex:1 1 120px}
 .playing-view .oa-num-box input,.playing-view .mm-quote input{font-size:20px;min-width:0}
 .playing-view .oa-num>.start{min-height:44px}
 .playing-view>.oa-stage .mt-q{padding:8px 2px 4px;gap:5px}
 .playing-view>.oa-stage .mt-text{font-size:clamp(28px,8vw,40px);overflow-wrap:anywhere}
 .playing-view .mt-ans{min-height:40px;font-size:30px}
 .playing-view .mt-help{font-size:11px;gap:4px 8px;padding:0}
 .playing-view .mt-pad{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .playing-view>.oa-stage .mt-key{height:clamp(44px,6.4dvh,54px);font-size:18px}
 .playing-view>.oa-stage .mt-key.w{font-size:14px}
 .playing-view .oa-pad{margin-top:6px}
 .playing-view .g2 .g2-qrow{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .playing-view .g2 .g2-qrow>*{min-width:0;max-width:100%}
 .playing-view .g2 .g2-qrow .start{padding-inline:12px;min-height:48px}
 .playing-view .g2 .g2-panel{padding:10px;min-width:0}
 .playing-view .g2 .g2-q{font-size:clamp(17px,5vw,22px);overflow-wrap:anywhere}
 .playing-view>.oa-stage .g2-focus>.g2-dicehost>:is(.d3-wrap,.g2-dice2d){height:clamp(115px,20dvh,170px)!important}
 .playing-view .g2 .mm-quote{grid-template-columns:repeat(2,minmax(0,1fr))}
 .playing-view .g2 .mm-quote label{min-width:0}
 .playing-view .oa-banner{padding:9px;gap:7px;font-size:13px;overflow-wrap:anywhere}
 .playing-view .oa-result{padding:12px;gap:10px;min-width:0}
 .playing-view .oa-result-top{gap:10px}
 .playing-view .oa-result-h{min-width:0;flex:1}
 .playing-view .oa-result-h h3{font-size:20px;overflow-wrap:anywhere}
 .playing-view .oa-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .playing-view .oa-metric{padding:9px;min-width:0;overflow-wrap:anywhere}
 .playing-view .oa-rev summary{min-height:44px;flex-wrap:wrap;gap:6px}
 .playing-view .oa-rev-q,.playing-view .oa-rev-x{overflow-wrap:anywhere}
 .playing-view .oa-rev-x{padding:0 10px 10px}
}
@media(max-width:359px){
 .playing-view .g2 .g2-qrow{grid-template-columns:minmax(0,1fr)}
 .playing-view .g2 .g2-qrow .start{width:100%}
 .playing-view .oa-choice kbd{width:20px;height:22px}
 .tip-setup .tip-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Active phone sessions get a dedicated practice viewport. Keep Settings/Back
   and Restart accessible in the HUD; restore the orbital dock when leaving. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 #root .app:has(>.view.playing-view){padding-bottom:calc(var(--orb-mobile-bottom,0px) + 6px)!important;padding-inline:8px!important}
 #root .app>.view.playing-view{padding-bottom:8px!important;scroll-padding-bottom:8px!important}
 body.orbi-public[data-public-view="demo"]:has(#demo-root .playing-view) .orbi-public-scroll{bottom:var(--orb-mobile-bottom,0px)!important}
 body.orbi-public[data-public-view="demo"]:has(#demo-root .playing-view) [data-public-demo-footer]{display:none!important}
 body.orbi-public[data-public-view="demo"] #demo-root:has(.playing-view){width:calc(100% - 16px);min-height:0;padding:6px 0}
 body.orbi-public[data-public-view="demo"] #demo-root .playing-view{min-height:0;display:flex;flex-direction:column;gap:6px!important}
 .playing-view>.oa-stage{zoom:1!important;transform:none!important;margin-bottom:0!important;min-height:0!important}
 .playing-view>.oa-stage>.oa-body{flex:1 0 auto;justify-content:flex-start}
 .playing-view>.oa-stage>.oa-body>:is(.oa-q,.g2-focus){justify-content:flex-start}
 .playing-view>.oa-stage .oa-hud-r{display:flex;flex-wrap:wrap;justify-content:stretch}
 .playing-view>.oa-stage .oa-hud-r>.oa-stat{flex:1 1 60px}
 .playing-view>.hud{flex-wrap:wrap;gap:6px;align-items:center}
 .playing-view>.hud :is(button,a){min-height:40px}
 .playing-view>.hud .hud-l,.playing-view>.hud .hud-r{min-width:0;flex-wrap:wrap}
 .playing-view .oa-art{max-width:100%;height:auto}
 .playing-view .oa-body :is(.mm-px,.start,.oa-choice,.mt-key){min-height:44px;touch-action:manipulation}
 .playing-view .oa-body :is(.mm-grid,.tc-main,.ev-grid,.ea-grid,.bb-grid,.hc-main,.of-top)>*{min-width:0}
 .playing-view .oa-body .ts-keys{width:100%;gap:6px}
 .playing-view .oa-body .ts-keys .mm-px{min-width:0;flex:1}
 .playing-view .oa-body .tg-nums{max-width:100%;flex-wrap:wrap;justify-content:center;gap:6px}
 .playing-view .oa-body .tg-nums span{width:clamp(38px,12vw,52px);height:clamp(38px,12vw,52px)}
 .playing-view .oa-body .tg-pad .btn{min-height:44px}
 .playing-view .oa-body .sg-row{flex-wrap:wrap;justify-content:center;gap:6px}
 .playing-view .oa-body .sw-field{height:clamp(240px,48dvh,420px)}
 .playing-view .oa-body .dl-dial{width:min(240px,100%)}
 .playing-view .oa-body .g2-chip{white-space:normal;overflow-wrap:anywhere}
 /* Trading Game: a phone-sized order ticket, not a shrunken desktop book. */
 .playing-view .g2 .tc-head{padding:6px}
 .playing-view .g2 .tc-head>.g2-row{padding:4px 0 0}
 .playing-view .g2 .tc-steps{padding:8px 0 2px}
 .playing-view .g2 .tc-step{gap:4px;min-width:0}
 .playing-view .g2 .tc-main{grid-template-columns:minmax(0,1fr);gap:8px}
 .playing-view .g2 .tc-book{padding:4px 8px}
 .playing-view .g2 .tc-row:not(.tc-th){grid-template-columns:minmax(40px,.62fr) repeat(2,minmax(0,1fr));gap:5px;padding:5px 0}
 .playing-view .g2 .tc-row .nm{grid-column:auto;min-width:0;font-size:13px;overflow-wrap:anywhere}
 .playing-view .g2 .tc-row .mm-px{min-height:44px;padding:6px;gap:3px;font-size:12px;min-width:0}
 .playing-view .g2 .tc-row .mm-px b{font-size:15px}
 .playing-view .g2 .tc-side{grid-template-columns:minmax(80px,.8fr) minmax(0,1.2fr);gap:6px}
 .playing-view .g2 .tc-dial{gap:2px}
 .playing-view .g2 .tc-dial svg{width:min(120px,100%);height:auto;max-height:68px}
 .playing-view .g2 .tc-dial b{font-size:23px}
 .playing-view .g2 .tc-dial .oa-lbl{font-size:9px;text-align:center}
 .playing-view .g2 .tc-tiles{gap:5px}
 .playing-view .g2 .tc-tiles>div{padding:6px;min-width:0}
 .playing-view .g2 .tc-tiles b{font-size:16px;overflow-wrap:anywhere}
 .playing-view .g2 .mm-tape{max-height:76px}
 .playing-view .g2 .tc-main .g2-col{gap:6px}
 .playing-view .g2 .g2-foot{padding-top:6px;gap:6px}
 .playing-view .g2 .g2-foot .start{min-height:48px}
 .playing-view .orbi-replay .row{flex-wrap:wrap}
}
@media(max-width:359px){
 .playing-view .g2 .tc-row:not(.tc-th){grid-template-columns:repeat(2,minmax(0,1fr))}
 .playing-view .g2 .tc-row .nm{grid-column:1/-1}
}

/* Mobile audit corrections: compact header, natural height and wrap long
   mathematical options instead of overflowing the viewport. Shared by demo
   and premium. Preserve game mechanics, timer and artwork animations. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 /* Keep the fixed rail mounted while the compact HUD replaces the header. */
 #root .app:has(>.view.playing-view)>.top{display:contents!important}
 #root .app:has(>.view.playing-view)>.top>:not(.tabs){display:none!important}
 #root .app:has(>.view.playing-view)>.stats-top{display:none!important}
 #root .app:has(>.view.playing-view){padding-top:calc(var(--orb-mobile-top,0px) + 6px)!important}
 .orbi-public[data-public-view="demo"]:has(#demo-root .playing-view) .site-header{display:none!important}
 .orbi-public[data-public-view="demo"]:has(#demo-root .playing-view) .orbi-public-pane[data-public-view-pane="demo"]{padding-bottom:8px}
 .playing-view>.hud{width:100%;min-width:0;box-sizing:border-box}
 .playing-view>.hud .hud-l{flex:1 1 180px;gap:5px;min-width:0}
 .playing-view>.hud .hud-r{flex:0 0 auto;gap:5px}
 .playing-view>.hud .hud-l .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .playing-view>.hud .hud-l .tag.dim{display:none}
 .playing-view>.oa-stage>.oa-hud{grid-template-columns:minmax(0,1fr) auto;gap:5px}
 .playing-view>.oa-stage>.oa-hud:has(.oa-ring-ph){grid-template-columns:minmax(0,1fr)}
 .playing-view>.oa-stage .oa-ring-ph{display:none}
 .playing-view>.oa-stage>.oa-body{flex:none;min-height:0;padding-bottom:16px}
 .playing-view>.oa-stage>.oa-body>:is(.oa-q,.g2-focus){flex:none;max-width:100%;box-sizing:border-box}
 .playing-view>.oa-stage .oa-prompt>*,
 .playing-view>.oa-stage .oa-memo>*,
 .playing-view>.oa-stage .pb-q,
 .playing-view>.oa-stage .sq-row{min-width:0;max-width:100%;box-sizing:border-box}
 .playing-view>.oa-stage .oa-prompt .col{width:100%;min-width:0}
 .playing-view>.oa-stage .sq-row{gap:5px}
 .playing-view>.oa-stage .sq-t{min-width:0;padding:8px;font-size:clamp(17px,5vw,22px);overflow-wrap:anywhere}
 .playing-view>.oa-stage .oa-choices{width:100%;min-width:0;max-width:100%;box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .playing-view>.oa-stage .oa-choices.cm-opts{grid-template-columns:minmax(0,1fr)!important}
 .playing-view>.oa-stage .oa-choice{min-width:0;max-width:100%;box-sizing:border-box;white-space:normal}
 .playing-view>.oa-stage .oa-choice-v{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .playing-view>.oa-stage .oa-choice-v .katex{max-width:100%;font-size:1em}
 .playing-view>.oa-stage .oa-prompt .tip-tex{max-width:100%;overflow-x:auto;vertical-align:middle}
 .playing-view>.oa-stage .oa-choice-v .tip-tex{min-width:0;max-width:100%;overflow-x:auto;padding-block:2px}
 html:not([data-orbi-hardware-keyboard]) .playing-view>.oa-stage .oa-choice kbd{display:none}
 .playing-view>.oa-stage .oa-banner-t{min-width:0;overflow-wrap:anywhere}
 .playing-view>.oa-stage .g2 .g2-foot,.playing-view>.oa-stage.g2 .g2-foot{padding-top:5px}
 .playing-view>.oa-stage.g2 .tc-side{grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr);padding:6px}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{justify-content:center;flex-wrap:wrap}
 html:not([data-orbi-hardware-keyboard]) .playing-view .g2 .tc-row .mm-px kbd{display:none}
 .playing-view>.oa-stage.g2 .tc-steps .dk-card{width:clamp(33px,11vw,46px)!important;height:clamp(46.2px,15.4vw,64.4px)!important}
 .playing-view>.oa-stage.g2 .g2-panel{padding:8px}
 .playing-view>.oa-stage.g2 .g2-col{gap:6px}
 .playing-view>.oa-stage.g2 .ca-desk{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:5px;padding:8px}
 .playing-view>.oa-stage.g2 .ca-desk .nm{grid-column:1/-1}
 .playing-view>.oa-stage.g2 .ca-desk .mm-px{min-width:0;padding:7px}
 .playing-view>.oa-stage.g2 .ca-desk .px{font-size:20px}
 .playing-view>.oa-stage.g2 .bb-tiles{gap:6px}
 .playing-view>.oa-stage.g2 .bb-tile{padding:8px;gap:4px}
 .playing-view>.oa-stage.g2 .bb-call button{padding:9px;min-height:44px}
 .playing-view>.oa-stage.g2 .fa-wrap{gap:8px;width:100%;min-width:0}
 .playing-view>.oa-stage.g2 .fa-track{height:100px}
 .playing-view>.oa-stage.g2 .fa-boxes{gap:5px}
 .playing-view>.oa-stage.g2 .hc-main{gap:6px}
 .playing-view>.oa-stage.g2 .hc-strip{min-width:0;max-width:100%}
}

/* Trading ticket: prioritise exposure, live prices and the next action.
   Secondary history is expandable, not removed. Shared with the free demo. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view:has(>.oa-stage .tc-head)>.hud .hud-l>.tag{display:none}
 .playing-view>.oa-stage.g2:has(.tc-head)>.oa-body{padding:4px 8px 10px}
 .playing-view>.oa-stage.g2 .tc-main>.tc-side{order:-1;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:5px}
 .playing-view>.oa-stage.g2 .tc-dial{display:grid;grid-template-columns:minmax(40px,.8fr) minmax(0,1fr);align-items:center;gap:2px 5px;text-align:center}
 .playing-view>.oa-stage.g2 .tc-dial svg{grid-row:1/3;max-height:45px}
 .playing-view>.oa-stage.g2 .tc-dial b{font-size:21px}
 .playing-view>.oa-stage.g2 .tc-dial .small{font-size:10px;line-height:1.15}
 .playing-view>.oa-stage.g2 .tc-tiles>div{padding:5px}
 .playing-view>.oa-stage.g2 .tc-mobile-tape{padding:0 8px;min-width:0}
 .playing-view>.oa-stage.g2 .tc-mobile-tape summary{min-height:36px;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer}
 .playing-view>.oa-stage.g2 .tc-mobile-tape summary::before{content:"›";font-size:18px;line-height:1;transition:transform .2s}
 .playing-view>.oa-stage.g2 .tc-mobile-tape[open] summary::before{transform:rotate(90deg)}
 .playing-view>.oa-stage.g2 .tc-mobile-tape[open] .mm-tape{padding-bottom:8px;max-height:110px}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{flex-wrap:nowrap;font-size:12px}
 .playing-view>.oa-stage.g2 .tc-row .mm-px b{font-size:14px}
 .playing-view>.oa-stage.g2 .tc-main{gap:5px}
 .playing-view>.oa-stage.g2:has(.tc-head) .g2-foot{gap:5px}
 .playing-view>.oa-stage.g2:has(.tc-head) .g2-foot>.small{font-size:11px;line-height:1.3}
}

/* 1.4 — Dedicated mobile practice workspace. The status bar is outside the
   scrollport, the question uses the available screen, and the controls are
   native-size. Long explanations, books and results scroll within the screen.
   These rules apply to the exact same components in the paid and free demo. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 #root .app>.view.playing-view:has(>.oa-stage),
 body.orbi-public[data-public-view="demo"] #demo-root>.playing-view:has(>.oa-stage){
  display:flex!important;flex-direction:column!important;min-height:0!important;
  overflow:hidden!important;gap:4px!important;padding:0!important;
 }
 #root .app>.view.playing-view:has(>.oa-stage){flex:1 1 0!important;height:0!important}
 body.orbi-public[data-public-view="demo"]:has(#demo-root>.playing-view) .orbi-public-pane[data-public-view-pane="demo"]{
  padding:0!important;overflow:hidden!important;
 }
 body.orbi-public[data-public-view="demo"] #demo-root:has(>.playing-view){
  width:100%!important;max-width:none!important;height:100%!important;
  min-height:0!important;box-sizing:border-box;padding:6px 8px 0!important;
  display:flex;flex-direction:column;
 }
 body.orbi-public[data-public-view="demo"] #demo-root>.playing-view{
  flex:1 1 0!important;height:0!important;min-height:0!important;overflow-y:auto;
 }
 /* Fixed session toolbar, one row; the stage below is independently scrollable. */
 #root .app>.view.playing-view>.hud,#demo-root>.playing-view>.hud{
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  flex-wrap:nowrap!important;gap:6px!important;flex:none!important;
  border-bottom:1px solid var(--line);padding:0 4px 4px!important;
 }
 .playing-view>.hud .hud-l,.playing-view>.hud .hud-r{display:flex;flex-wrap:nowrap!important;gap:6px}
 .playing-view>.hud .hud-l{flex:1 1 auto!important}
 .playing-view>.hud .hud-l>.tag{display:none!important}
 .playing-view>.hud .hud-r{flex:0 0 auto!important}
 .playing-view>.hud .tm-clock:empty{display:none}
 .playing-view>.hud button{min-height:44px!important;padding-inline:10px!important;white-space:nowrap}
 /* Full-height game surface; no decorative outer card, no global scale. */
 #root .app>.view.playing-view>.oa-stage,#demo-root>.playing-view>.oa-stage{
  flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;
  width:100%!important;max-width:none!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent;overflow:hidden!important;zoom:1!important;transform:none!important;
 }
 .playing-view>.oa-stage::before{display:none}
 .playing-view>.oa-stage>.oa-hud{
  flex:none!important;display:grid;grid-template-columns:auto minmax(0,1fr);
  align-items:center;gap:5px 8px;padding:8px 8px 6px!important;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
 }
 .playing-view>.oa-stage>.oa-hud:has(.oa-ring-ph){grid-template-columns:minmax(0,1fr)}
 .playing-view>.oa-stage>.oa-hud>.oa-hud-l{
  grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;
 }
 .playing-view>.oa-stage .oa-title{font-size:15px!important;font-weight:750;line-height:1.25}
 .playing-view>.oa-stage .oa-sub{font-size:10px;line-height:1.25;letter-spacing:.025em;text-transform:none;overflow-wrap:anywhere}
 .playing-view>.oa-stage>.oa-hud>.oa-ring:not(.oa-ring-ph){width:40px!important;height:40px!important}
 .playing-view>.oa-stage>.oa-hud>.oa-ring svg{width:100%;height:100%}
 .playing-view>.oa-stage>.oa-hud>.oa-ring b{font-size:11px}
 .playing-view>.oa-stage>.oa-hud>.oa-hud-r{grid-column:auto;display:flex;flex-wrap:nowrap;gap:4px;min-width:0;align-items:stretch}
 .playing-view>.oa-stage .oa-hud-r>.oa-stat{
  flex:1 1 0;min-width:0;min-height:38px;justify-content:center;
  padding:4px 5px;gap:2px;border-radius:9px;background:var(--surface-2);text-align:center
 }
 .playing-view>.oa-stage .oa-stat span{font-size:9px;line-height:1.1;letter-spacing:0;overflow-wrap:anywhere}
 .playing-view>.oa-stage .oa-stat b{font-size:15px;line-height:1.15;overflow-wrap:anywhere;max-width:100%}
 .playing-view>.oa-stage>.oa-rail{flex:none;padding:6px 3px 4px!important;gap:2px;min-width:0}
 .playing-view>.oa-stage>.oa-rail i{min-width:0;height:3px}
 .playing-view>.oa-stage>.oa-body{
  flex:1 1 0!important;min-height:0!important;min-width:0!important;
  display:flex!important;flex-direction:column;justify-content:flex-start!important;
  overflow:auto!important;overscroll-behavior:contain;scroll-padding:8px;
  padding:4px 4px 12px!important;gap:8px!important;
 }
 .playing-view>.oa-stage>.oa-body>*,.playing-view>.oa-stage .oa-q>*,.playing-view>.oa-stage .g2-focus>*{
  flex-shrink:0;min-width:0;max-width:100%;box-sizing:border-box;
 }
 /* Drill layout: one main question area and one answer region. */
 .playing-view>.oa-stage>.oa-body>.oa-q{
  min-height:100%;height:auto;flex:none!important;gap:8px!important;
  justify-content:center!important;padding:6px 0 2px;
 }
 .playing-view>.oa-stage>.oa-body>.oa-q:has(>.oa-pad){justify-content:flex-start!important}
 .playing-view>.oa-stage .oa-q>.oa-prompt,.playing-view>.oa-stage .oa-q>.oa-memo{
  background:var(--surface);border:1px solid var(--line);border-radius:18px;
  min-height:clamp(78px,14dvh,128px);padding:10px 8px!important;
  justify-content:center;gap:6px!important;font-size:17px;line-height:1.4;
 }
 .playing-view>.oa-stage .oa-q:has(>.oa-pad)>.oa-prompt{flex:1 0 auto;min-height:60px}
 .playing-view>.oa-stage .oa-q>.oa-choices{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;margin:0;
 }
 .playing-view>.oa-stage .oa-q>.oa-choices:has(>.oa-choice:nth-child(5):last-child)>.oa-choice:last-child{grid-column:1/-1}
 .playing-view>.oa-stage .oa-choice{
  min-height:48px!important;font-size:16px;line-height:1.2;padding:8px!important;
  border-radius:13px;justify-content:center;background:var(--surface);
 }
 .playing-view>.oa-stage .oa-choice.ok{background:color-mix(in srgb,var(--k3) 12%,var(--surface))}
 .playing-view>.oa-stage .oa-choice.bad{background:color-mix(in srgb,var(--k4) 10%,var(--surface))}
 .playing-view>.oa-stage .oa-choice-v svg{max-width:100%;height:auto}
 .playing-view>.oa-stage .oa-choice-v .cm-code{font-size:clamp(13px,4vw,20px);letter-spacing:.08em}
 .playing-view>.oa-stage .oa-num{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:stretch}
 .playing-view>.oa-stage .oa-num-box{min-width:0;min-height:44px;padding-inline:8px}
 .playing-view>.oa-stage .oa-num-box input{font-size:19px!important;padding-block:8px}
 .playing-view>.oa-stage .oa-num>.start,.playing-view>.oa-stage .oa-num>.ghost{min-height:44px;padding-inline:10px}
 .playing-view>.oa-stage .oa-pad{margin-top:auto!important}
 .playing-view>.oa-stage .mt-pad{width:100%;max-width:none;gap:5px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-sizing:border-box}
 .playing-view>.oa-stage .mt-key{height:clamp(44px,6dvh,58px)!important;min-height:44px;border-radius:10px;font-size:20px}
 .playing-view>.oa-stage.mt-stage>.oa-body:has(>.mt-pad){display:flex!important;gap:6px}
 .playing-view>.oa-stage.mt-stage>.oa-body>.mt-q{flex:1 0 auto;justify-content:center;min-height:0;padding:8px!important;gap:5px}
 .playing-view>.oa-stage.mt-stage>.oa-body>.mt-pad{margin-top:auto}
 .playing-view>.oa-stage .mt-text{font-size:clamp(28px,9vw,46px)!important}
 .playing-view>.oa-stage .mt-ans{min-height:34px!important;font-size:28px}
 .playing-view>.oa-stage .mt-help{font-size:11px;line-height:1.2}
 /* Market games: use flat tickets instead of a desktop dashboard of panels. */
 .playing-view>.oa-stage.g2>.oa-body{gap:6px!important}
 .playing-view>.oa-stage.g2 .g2-col,.playing-view>.oa-stage.g2 .g2-focus{gap:6px!important}
 .playing-view>.oa-stage.g2 .g2-panel{padding:8px!important;border-radius:13px}
 .playing-view>.oa-stage.g2 .g2-q,.playing-view>.oa-stage.g2 .ev-q{font-size:19px;line-height:1.25}
 .playing-view>.oa-stage.g2 .g2-q small{font-size:12px;line-height:1.3}
 .playing-view>.oa-stage.g2 .g2-big{font-size:30px}
 .playing-view>.oa-stage.g2 .g2-foot{flex-direction:column;align-items:stretch;gap:4px;padding-top:5px}
 .playing-view>.oa-stage.g2 .g2-foot>.start{min-height:48px!important;flex:none;width:100%;border-radius:13px}
 .playing-view>.oa-stage.g2 .mm-px{min-height:44px!important;border-radius:10px}
 .playing-view>.oa-stage.g2 .g2-dicehost{min-height:0}
 .playing-view>.oa-stage.g2 .g2-dicehost>:is(.d3-wrap,.g2-dice2d){height:clamp(100px,18dvh,146px)!important;min-height:0!important}
 .playing-view>.oa-stage.g2 .g2-focus>.g2-panel:has(>.ql){padding:6px!important}
 .playing-view>.oa-stage.g2 .ql{height:75px!important}
 .playing-view>.oa-stage.g2 .tc-row:not(.tc-th){grid-template-columns:minmax(42px,.65fr) repeat(2,minmax(0,1fr));gap:4px}
 .playing-view>.oa-stage.g2 .tc-row>.nm{grid-column:auto!important}
 .playing-view>.oa-stage.g2 .tc-row>span:nth-child(2),.playing-view>.oa-stage.g2 .tc-row>span:nth-child(3),.playing-view>.oa-stage.g2 .tc-row>.w,.playing-view>.oa-stage.g2 .tc-th{display:none}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{justify-content:center;flex-wrap:wrap;column-gap:3px;font-size:12px;padding:5px}
 .playing-view>.oa-stage.g2 .tc-head .oa-lbl{font-size:10px}
 .playing-view>.oa-stage.g2 .tc-step .oa-lbl{font-size:9px}
 .playing-view>.oa-stage.g2 .tc-steps .dk-card{width:clamp(30px,10vw,45px)!important;height:clamp(42px,14vw,63px)!important}
 .playing-view>.oa-stage.g2 .tc-side{padding:5px!important}
 .playing-view>.oa-stage.g2 .tc-mobile-tape{padding:0 8px!important}
 .playing-view>.oa-stage.g2 .tc-mobile-tape summary{min-height:44px}
 .playing-view>.oa-stage.g2 .ev-feed{max-height:clamp(96px,17dvh,146px);overflow:auto;overscroll-behavior:contain;gap:4px}
 .playing-view>.oa-stage.g2 .ev-head{padding:5px 7px;gap:6px;grid-template-columns:22px minmax(0,1fr) auto}
 .playing-view>.oa-stage.g2 .ev-head .ar{width:22px;height:22px}
 .playing-view>.oa-stage.g2 .ev-head b{font-size:13px;line-height:1.25}
 .playing-view>.oa-stage.g2 .ev-head em{font-size:10px}
 .playing-view>.oa-stage.g2 .ev-wait{font-size:11px;padding:5px 8px}
 .playing-view>.oa-stage.g2 .ea-grid{gap:6px}
 .playing-view>.oa-stage.g2 .ea-grid>.g2-panel.soft{order:-1;gap:4px}
 .playing-view>.oa-stage.g2 .ea-comp{padding:5px;gap:1px}
 .playing-view>.oa-stage.g2 .ea-comp .g2-spark{height:18px!important}
 .playing-view>.oa-stage.g2 .ea-nav{padding:5px 8px}
 .playing-view>.oa-stage.g2 .ea-meter{height:128px;margin-top:0}
 .playing-view>.oa-stage.g2 .ea-act{gap:6px}
 .playing-view>.oa-stage.g2 .ea-act .mm-px{padding:7px;flex-wrap:wrap}
 .playing-view>.oa-stage.g2 .ea-act .mm-px b{font-size:19px}
 .playing-view>.oa-stage.g2 .ca-desks,.playing-view>.oa-stage.g2 .mf-tr{gap:5px}
 .playing-view>.oa-stage.g2 .ca-desk{grid-template-columns:minmax(48px,.7fr) repeat(2,minmax(0,1fr));gap:4px;padding:6px}
 .playing-view>.oa-stage.g2 .ca-desk .nm{grid-column:1/-1}
 .playing-view>.oa-stage.g2 .ca-desk .px{font-size:17px}
 .playing-view>.oa-stage.g2 .ca-desk .mm-px{min-width:0;flex-wrap:wrap;justify-content:center;font-size:12px;padding:5px}
 .playing-view>.oa-stage.g2 .ca-desk .mm-px b{font-size:14px}
 .playing-view>.oa-stage.g2 .ca-pass{padding:9px;min-height:44px}
 .playing-view>.oa-stage.g2 .mf-tc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:4px;padding:6px;align-items:center}
 .playing-view>.oa-stage.g2 .mf-tc>.mm-quote{grid-column:1/-1}
 .playing-view>.oa-stage.g2 .mf-tc .px{font-size:18px}
 .playing-view>.oa-stage.g2 .mf-cards{gap:6px}
 .playing-view>.oa-stage.g2 .bb-grid{gap:6px}
 .playing-view>.oa-stage.g2 .bb-tile{min-height:65px;padding:6px}
 .playing-view>.oa-stage.g2 .bb-tile .o{font-size:21px}
 .playing-view>.oa-stage.g2 .bb-call{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .playing-view>.oa-stage.g2 .bb-call button{font-size:13px;line-height:1.2;min-height:44px;padding:6px}
 .playing-view>.oa-stage.g2 .bb-pad .ln{font-size:12px;gap:6px}
 .playing-view>.oa-stage.g2 .bb-tbw{max-width:100%}
 .playing-view>.oa-stage.g2 .fa-q{font-size:18px;line-height:1.35}
 .playing-view>.oa-stage.g2 .fa-track{height:94px;margin-inline:12px}
 .playing-view>.oa-stage.g2 .fa-boxes{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .playing-view>.oa-stage.g2 .fa-boxes label:nth-child(n){grid-column:auto;order:0}
 .playing-view>.oa-stage.g2 .fa-boxes .start{grid-column:1/-1;order:4;height:46px}
 .playing-view>.oa-stage.g2 .fa-boxes label>span{font-size:9px;letter-spacing:0}
 .playing-view>.oa-stage.g2 .fa-boxes .oa-num-box{padding-inline:5px}
 .playing-view>.oa-stage.g2 .fa-boxes .oa-num-box input{font-size:16px!important}
 .playing-view>.oa-stage.g2 .hc-main{gap:6px}
 .playing-view>.oa-stage.g2 .hl-cards{gap:12px}
 .playing-view>.oa-stage.g2 .hl-cards .dk-card{width:58px!important;height:81.2px!important}
 .playing-view>.oa-stage.g2 .hl-call button{min-height:48px;font-size:16px;padding:8px}
 .playing-view>.oa-stage.g2 .hc-stake .btn{min-height:40px}
 .playing-view>.oa-stage.g2 .hc-strip{padding-block:4px}
 .playing-view>.oa-stage.g2 .of-card{padding:12px 10px;gap:6px}
 .playing-view>.oa-stage.g2 .of-q{font-size:17px}
 .playing-view>.oa-stage.g2 .of-odds{font-size:21px;padding:5px 10px}
 .playing-view>.oa-stage.g2 .of-opts{gap:6px}
 .playing-view>.oa-stage.g2 .of-opts button{min-height:52px;padding:8px;gap:3px}
 .playing-view>.oa-stage.g2 .sd-card{padding:12px;gap:8px}
 .playing-view>.oa-stage.g2 .sd-dot{width:36px;height:36px}
 /* Visual and motor trainers use a dedicated field proportional to the room. */
 .playing-view>.oa-stage .ts-box{height:clamp(116px,25dvh,200px)}
 .playing-view>.oa-stage .cf-box{gap:8px}
 .playing-view>.oa-stage .cf-word{font-size:clamp(30px,10vw,44px)}
 .playing-view>.oa-stage .cf-row{max-width:100%;gap:3px}
 .playing-view>.oa-stage .cf-row svg{min-width:0;max-width:20%}
 .playing-view>.oa-stage .gr-grid{width:min(100%,270px,43dvh);gap:5px}
 .playing-view>.oa-stage .gr-cell{min-width:0;border-radius:8px}
 .playing-view>.oa-stage .hf-stage{width:clamp(120px,27dvh,178px);height:clamp(120px,27dvh,178px)}
 .playing-view>.oa-stage .hf-stage svg{width:74%}
 .playing-view>.oa-stage .ic-field{width:min(100%,280px,42dvh)}
 .playing-view>.oa-stage .bs-field{height:clamp(210px,42dvh,340px)}
 .playing-view>.oa-stage .dl-dial{width:min(220px,39dvh,100%)}
 .playing-view>.oa-stage .sw-field{height:clamp(220px,44dvh,370px)}
 .playing-view>.oa-stage .ir-cell,.playing-view>.oa-stage .ir-cell svg{width:clamp(50px,19vw,74px)}
 .playing-view>.oa-stage .ir-cell.q{height:clamp(50px,19vw,74px)}
 .playing-view>.oa-stage .sg-card{width:clamp(45px,18vw,70px)}
 .playing-view>.oa-stage .pc-slot{width:100px;height:100px}
 .playing-view>.oa-stage .tg-target{padding:6px 18px}
 /* Separate scrollable results; retain replay and all review information. */
 .playing-view:has(>.oa-result){overflow-y:auto!important}
 .playing-view>.oa-result{border:0;box-shadow:none;background:transparent;padding:8px!important}
 .playing-view>.oa-result .oa-result-top{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
 .playing-view>.oa-result .oa-result-top>.sp{display:none}
 .playing-view>.oa-result .oa-result-top>.start{grid-column:1/-1;min-height:48px}
 .playing-view>.oa-result .oa-metrics{gap:6px}
 /* Game settings and free demo menus share the same mobile touch rhythm. */
 #root .app>.view.tip-setup>.orbi-setup-tabs{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 #root .app>.view.tip-setup>.orbi-setup-tabs button{min-height:44px}
 #root .app>.view.tip-setup .tip-go{position:sticky;bottom:4px;z-index:3;min-height:48px;margin-top:8px;box-shadow:0 5px 18px color-mix(in srgb,var(--bg) 70%,transparent)}
 .orbi-public #demo-root .demo-intro{margin:4px 0 12px}
 .orbi-public #demo-root .demo-intro h1{font-size:28px}
 .orbi-public #demo-root .demo-game-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .orbi-public #demo-root .demo-game-tile{display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px 9px;min-height:0;padding:13px;border-radius:14px}
 .orbi-public #demo-root .demo-game-number{grid-row:1/3;align-self:start;padding-top:4px}
 .orbi-public #demo-root .demo-tile-title{font-size:16px;line-height:1.3}
 .orbi-public #demo-root .demo-tile-copy,.orbi-public #demo-root .demo-tile-end{grid-column:2}
 .orbi-public #demo-root .demo-tile-copy{font-size:12px;line-height:1.4}
 .orbi-public #demo-root .demo-setup-card{gap:10px;padding:12px;margin-top:6px}
 .orbi-public #demo-root .demo-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .orbi-public #demo-root .demo-setup-card .start{justify-self:stretch;min-height:48px;position:sticky;bottom:6px;z-index:2}
}
@media(max-width:699px) and (max-height:700px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view>.oa-stage>.oa-hud{padding:5px 7px!important;gap:3px 6px}
 .playing-view>.oa-stage>.oa-hud>.oa-ring:not(.oa-ring-ph){width:36px!important;height:36px!important}
 .playing-view>.oa-stage .oa-stat{min-height:33px}
 .playing-view>.oa-stage .oa-q>.oa-prompt,.playing-view>.oa-stage .oa-q>.oa-memo{min-height:64px}
 .playing-view>.oa-stage .mt-key{height:44px!important}
 .playing-view>.oa-stage .mt-pad{gap:4px;padding:4px}
 .playing-view>.oa-stage.g2 .g2-dicehost>:is(.d3-wrap,.g2-dice2d){height:105px!important}
 .playing-view>.oa-stage.g2 .tc-steps{padding:4px 0 0}
 .playing-view>.oa-stage.g2 .tc-steps .dk-card{width:32px!important;height:44.8px!important}
 .playing-view>.oa-stage.g2 .tc-dial svg{max-height:36px}
 .playing-view>.oa-stage.g2 .tc-side .tc-tiles>div{padding:4px}
}
@media(max-width:359px){
 .playing-view>.oa-stage .oa-num{grid-template-columns:minmax(0,1fr) auto}
 .playing-view>.oa-stage .oa-num>.ghost{grid-column:1/-1}
 .playing-view>.oa-stage.g2 .tc-row:not(.tc-th){grid-template-columns:minmax(36px,.6fr) repeat(2,minmax(0,1fr))}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{font-size:11px}
}

/* Native phone ticket: keep the next action outside the order-book scroll
   region. The contract stays in view even on a 360x640 display. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view>.oa-stage.g2:has(>.oa-body>.g2-col>.tc-main)>.oa-body{
  overflow:hidden!important;padding:4px 4px 4px!important;
 }
 .playing-view>.oa-stage.g2>.oa-body>.g2-col:has(>.tc-main){
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  /* A definite flex allocation, not a percentage height resolved against a
     padded flex parent (which can overflow in WebKit). */
  flex:1 1 0!important;min-height:0!important;height:0!important;max-height:100%;box-sizing:border-box;gap:5px!important;
 }
 .playing-view>.oa-stage.g2 .tc-main{
  min-height:0;overflow-y:auto;overscroll-behavior:contain;
  align-content:start;scroll-padding:4px;
 }
 .playing-view>.oa-stage.g2 .tc-main>.g2-col{min-height:0;gap:5px!important}
 .playing-view>.oa-stage.g2 .tc-row:not(.tc-th){padding-block:2px}
 .playing-view>.oa-stage.g2 .tc-head{padding:5px!important}
 .playing-view>.oa-stage.g2 .tc-steps{padding:4px 0 0}
 .playing-view>.oa-stage.g2 .tc-step{gap:3px}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot{
  min-width:0;flex:none;background:var(--bg);padding:5px 2px 0;gap:4px;
 }
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.small{font-size:11px;line-height:1.25}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.start{min-height:46px!important}
 /* Scale Weights uses a two-up evidence panel and one centred query scale.
    Preserve the SVG proportions and all shapes rather than scaling the stage. */
 .playing-view>.oa-stage .sc-wrap{gap:5px}
 .playing-view>.oa-stage .sc-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .playing-view>.oa-stage .sc-row:has(>.sc-cell:only-child){grid-template-columns:minmax(0,220px);justify-content:center}
 .playing-view>.oa-stage .sc-cell{min-width:0;min-height:0;padding:3px;box-sizing:border-box}
 .playing-view>.oa-stage .sc-cell .oa-art{width:100%;height:auto;display:block}
 .playing-view>.oa-stage .oa-q:has(.sc-wrap)>.oa-prompt{min-height:0;padding:5px!important}
 .playing-view>.oa-stage .oa-q:has(.sc-wrap){justify-content:flex-start!important}
 .playing-view>.oa-stage .oa-q:has(.sc-wrap)>.oa-choices{gap:4px!important}
}
@media(max-width:699px) and (max-height:700px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view>.oa-stage .sc-row:has(>.sc-cell:only-child){grid-template-columns:minmax(0,174px)}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.small{font-size:10px}
}

/* Keep all Fermi scale labels inside the phone layout, including very small
   and very large estimates in the separate public sample question pool. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view>.oa-stage.g2 .fa-wrap{width:100%;min-width:0;max-width:100%}
 .playing-view>.oa-stage.g2 .fa-wrap>.g2-panel{min-width:0;max-width:100%;box-sizing:border-box}
 .playing-view>.oa-stage.g2 .fa-track{min-width:0;width:auto;max-width:none;margin-inline:36px;height:112px}
 .playing-view>.oa-stage.g2 :is(.fa-dec,.fa-h span,.fa-ans span){
  box-sizing:border-box;max-width:64px;white-space:normal;overflow-wrap:anywhere;text-align:center;
  font-size:10px;line-height:1.1;
 }
 .playing-view>.oa-stage.g2 .fa-h span{width:max-content;left:50%;transform:translateX(-50%)}
 .playing-view>.oa-stage.g2 .fa-ans span{width:max-content;bottom:-34px}
 .playing-view>.oa-stage.g2 .fa-q{overflow-wrap:anywhere;max-width:100%}
 .playing-view>.oa-stage.g2 .fa-boxes>label{min-width:0;overflow-wrap:anywhere}
 .playing-view>.oa-stage.g2 .fa-boxes input{width:100%;min-width:0}
}

/* Phone trading desk: safe native chrome and space allocated to actionable
   content, not an empty order-book scrollport. Short screens keep the compact
   ticket and can scroll the quotes; tall phones expand the existing controls. */
@media(max-width:699px), (max-width:999px) and (max-height:499px) and (orientation:landscape){
 html[data-orbi-native-practice]{--orbi-native-top:32px;--orbi-native-bottom:24px}
 #root .app:has(>.view.playing-view){
  padding-top:calc(max(var(--sat,0px),env(safe-area-inset-top,0px),var(--orbi-native-top,0px)) + 8px)!important;
  padding-bottom:calc(max(var(--sab,0px),env(safe-area-inset-bottom,0px),var(--orbi-native-bottom,0px)) + 8px)!important;
  padding-inline:10px!important;
 }
 body.orbi-public[data-public-view="demo"]:has(#demo-root .playing-view) .orbi-public-scroll{
  top:max(var(--sat,0px),env(safe-area-inset-top,0px),var(--orbi-native-top,0px))!important;
  bottom:max(var(--sab,0px),env(safe-area-inset-bottom,0px),var(--orbi-native-bottom,0px))!important;
 }
 .playing-view>.oa-stage.g2:has(.tc-head)>.oa-hud{padding:10px!important;gap:6px 9px;border-radius:14px}
 .playing-view>.oa-stage.g2:has(.tc-head) .oa-title{font-size:17px!important;letter-spacing:-.025em}
 .playing-view>.oa-stage.g2:has(.tc-head) .oa-sub{font-size:11px}
 .playing-view>.oa-stage.g2:has(.tc-head) .oa-stat span{font-size:10px}
 .playing-view>.oa-stage.g2:has(.tc-head) .oa-stat b{font-size:17px}
 .playing-view>.oa-stage.g2 .tc-head,.playing-view>.oa-stage.g2 .tc-side,.playing-view>.oa-stage.g2 .tc-book,.playing-view>.oa-stage.g2 .tc-mobile-tape{border-radius:14px}
 .playing-view>.oa-stage.g2 .tc-head .oa-lbl{font-size:11px;line-height:1.35;letter-spacing:0}
 .playing-view>.oa-stage.g2 .tc-step .oa-lbl{font-size:10px;letter-spacing:0}
 .playing-view>.oa-stage.g2 .tc-row .nm{font-size:14px}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{font-size:13px;gap:4px}
 .playing-view>.oa-stage.g2 .tc-row .mm-px b{font-size:17px}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.small{font-size:12px;line-height:1.35}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.start{font-size:16px;font-weight:650;min-height:48px!important}
}
@media(max-width:699px) and (min-height:740px){
 .playing-view>.oa-stage.g2:has(.tc-head)>.oa-body{padding:8px 2px 5px!important}
 .playing-view>.oa-stage.g2>.oa-body>.g2-col:has(>.tc-main){gap:10px!important}
 .playing-view>.oa-stage.g2 .tc-head{padding:10px!important}
 .playing-view>.oa-stage.g2 .tc-steps{padding:12px 0 5px;gap:4px}
 .playing-view>.oa-stage.g2 .tc-step{gap:8px}
 .playing-view>.oa-stage.g2 .tc-steps .dk-card{width:clamp(46px,13.8vw,62px)!important;height:clamp(64.4px,19.32vw,86.8px)!important;max-width:100%}
 .playing-view>.oa-stage.g2 .tc-steps:has(>.tc-step:nth-child(6)) .dk-card{width:clamp(32px,9vw,43px)!important;height:clamp(44.8px,12.6vw,60.2px)!important}
 .playing-view>.oa-stage.g2 .tc-main{grid-template-rows:auto minmax(min-content,1fr);align-content:stretch;align-items:stretch;gap:10px}
 .playing-view>.oa-stage.g2 .tc-main>.tc-side{padding:10px!important;gap:8px;align-items:center}
 .playing-view>.oa-stage.g2 .tc-dial svg{max-height:58px}
 .playing-view>.oa-stage.g2 .tc-dial b{font-size:25px}
 .playing-view>.oa-stage.g2 .tc-dial .small{font-size:11px}
 .playing-view>.oa-stage.g2 .tc-tiles>div{padding:9px 7px}
 .playing-view>.oa-stage.g2 .tc-tiles b{font-size:19px}
 .playing-view>.oa-stage.g2 .tc-main>.g2-col:not(.tc-side){display:flex;flex-direction:column;gap:8px!important}
 .playing-view>.oa-stage.g2 .tc-book{display:flex;flex-direction:column;flex:1 0 auto;min-height:min-content;padding:7px 10px!important}
 .playing-view>.oa-stage.g2 .tc-row:not(.tc-th){flex:1 0 auto;min-height:58px;gap:6px;padding-block:5px;align-items:stretch}
 .playing-view>.oa-stage.g2 .tc-row>.nm{align-self:center}
 .playing-view>.oa-stage.g2 .tc-row .mm-px{min-height:48px!important;align-self:stretch;justify-content:center}
 .playing-view>.oa-stage.g2 .tc-mobile-tape summary{font-size:13px;min-height:44px}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot{padding-top:6px;gap:7px}
 .playing-view>.oa-stage.g2 .tc-main~.g2-foot>.start{min-height:54px!important}
}


/* Short landscape screens keep the session controls at their natural size. */
@media(max-width:999px) and (max-height:499px) and (orientation:landscape){
 .playing-view>.oa-stage.mt-stage>.oa-body:has(>.mt-pad){
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;
 }
 .playing-view>.oa-stage.mt-stage>.oa-body>.mt-pad{margin:0}
 #root .app>.view.tip-setup{overflow-y:auto!important;overscroll-behavior:contain}
}

/* Focused activities: transition the existing rail, never remount it.
   The lesson back control remains the way out; the rail cannot intercept input. */
#root .app>.top .tabs{
 opacity:1;visibility:visible;
 transition:transform 350ms cubic-bezier(.3,.7,.3,1),opacity 350ms cubic-bezier(.3,.7,.3,1),visibility 0s linear 0s!important;
}
#root .app>.top .tabs[inert]{
 transform:translate3d(-110%,0,0)!important;opacity:0;visibility:hidden;
 transition:transform 350ms cubic-bezier(.3,.7,.3,1),opacity 350ms cubic-bezier(.3,.7,.3,1),visibility 0s linear 350ms!important;
 pointer-events:none!important;
}
#root .app>.top .tabs[inert] *{pointer-events:none!important}
@media(max-width:999px){
 #root .app>.top .tabs[inert]{transform:translate3d(0,110%,0)!important}
 #root .app:has(>.view:is(.setup-view,.orb-lesson-detail,.orb-lesson-formulas)){
  padding-bottom:calc(max(var(--orb-mobile-bottom,0px),var(--orbi-native-bottom,0px)) + 8px)!important;
 }
 #root .app:has(>.view.playing-view){
  padding-bottom:calc(max(var(--sab,0px),env(safe-area-inset-bottom,0px),var(--orbi-native-bottom,0px)) + 8px)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #root .app>.top .tabs,#root .app>.top .tabs[inert]{transition:none!important}
}


/* Reclaim the rail's actual layout reservation, not only its painted pixels.
   Focused routes retain their back controls and use the existing scrollport. */
#root .app:has(>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view),>.scrim.orb-exam-session,>.scrim :is(.tip-mock-dots,.tip-mres,.wb-exam-head))>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view){
 width:100%!important;max-width:none!important;min-width:0!important;align-self:stretch!important;
}
#root .app>.scrim.orb-exam-session{
 position:fixed!important;inset:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;
 padding:calc(max(env(safe-area-inset-top,0px),var(--sat,0px),var(--orbi-native-top,0px)) + 12px) clamp(10px,2vw,24px) calc(max(env(safe-area-inset-bottom,0px),var(--sab,0px),var(--orbi-native-bottom,0px)) + 12px)!important;
 background:var(--bg)!important;overflow:hidden!important;box-sizing:border-box;
}
#root .app>.scrim.orb-exam-session>.modal{
 width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;
 min-width:0;min-height:0!important;margin:0!important;display:flex!important;flex-direction:column!important;
 box-sizing:border-box;overflow:hidden!important;border:0!important;box-shadow:none!important;background:var(--bg)!important;
}
#root .app>.scrim.orb-exam-session>.modal>.modal-h{flex:none}
#root .app>.scrim.orb-exam-session>.modal>.modal-b{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
@media(min-width:1000px){
 #root .app{transition:padding-left 350ms cubic-bezier(.3,.7,.3,1)}
 #root .app>.stats-top{transition:margin-left 350ms cubic-bezier(.3,.7,.3,1)}
 #root .app:has(>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view),>.scrim.orb-exam-session,>.scrim :is(.tip-mock-dots,.tip-mres,.wb-exam-head)){padding-left:20px!important}
 #root .app:has(>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view),>.scrim.orb-exam-session,>.scrim :is(.tip-mock-dots,.tip-mres,.wb-exam-head))>.stats-top{margin-left:calc(var(--orbit-nav) + 2px)!important}
 #root .app:has(>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view),>.scrim.orb-exam-session,>.scrim :is(.tip-mock-dots,.tip-mres,.wb-exam-head))>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view){padding-inline:0!important}
 #root .app>.top .tabs[inert]{transform:translate3d(-125%,0,0)!important}
}
@media(max-width:999px){
 /* Keep the rail's transform/opacity animated, but apply safe-area and
    scrollport geometry immediately, including live native inset changes. */
 #root .app{transition:none!important}
 #root .app:has(>.view:is(.game-view,.orb-lesson-detail,.orb-lesson-formulas,.orb-trading-detail,.orb-coding-detail,.orb-trading-library,.orb-coding-library,.orb-lesson-library,.rd-view),>.scrim.orb-exam-session,>.scrim :is(.tip-mock-dots,.tip-mres,.wb-exam-head)){
  padding-bottom:calc(max(var(--orb-mobile-bottom,0px),var(--sab,0px),env(safe-area-inset-bottom,0px),var(--orbi-native-bottom,0px)) + 8px)!important;
 }
 #root .app>.top .tabs[inert]{transform:translate3d(0,calc(100% + 28px),0)!important}
}
@media(prefers-reduced-motion:reduce){#root .app,#root .app>.stats-top{transition:none!important}}

/* Native insets are layout constraints, never animated. Bound the entire
   practice shell to the visual viewport before sizing its inner grid. */
@media(max-width:999px){
 html[data-orbi-native-practice] #root .app:has(>.view.playing-view){
  height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;
  padding-top:calc(max(var(--sat,0px),env(safe-area-inset-top,0px),var(--orbi-native-top,0px)) + 8px)!important;
  padding-bottom:calc(max(var(--sab,0px),env(safe-area-inset-bottom,0px),var(--orbi-native-bottom,0px)) + 8px)!important;
 }
}

/* Full arithmetic review: compact content-driven spacing with no replay placeholder. */
.playing-view>.oa-result.oa-full-review{width:100%;max-width:none;box-sizing:border-box;align-self:stretch;gap:10px;padding:12px}
.oa-full-review>.oa-result-top{gap:10px}
.oa-full-review>.oa-metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));align-items:stretch;gap:6px}
.oa-full-review .oa-metric{justify-content:center;gap:3px;min-width:0}
.oa-full-review .oa-notes{margin:0;line-height:1.45}
.oa-full-review .oa-review{gap:5px;margin:0;min-width:0}
.oa-full-review .oa-rev summary{gap:8px;min-width:0}
.oa-full-review .oa-rev-index{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85em;margin-inline-end:4px}
.oa-full-review .oa-rev-q{overflow-wrap:anywhere}
@media(max-width:699px){
 .playing-view>.oa-result.oa-full-review{gap:8px;padding:4px!important}
 .oa-full-review>.oa-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .oa-full-review .oa-rev summary{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:4px 7px;align-items:center;padding:8px}
 .oa-full-review .oa-rev-a{text-align:right;overflow-wrap:anywhere;max-width:28vw}
 .oa-full-review .oa-rev-t{grid-column:2;justify-self:start}
}

/* Keep wide setting selects compact without affecting choice chips or numeric controls. */
.tip-setup .tip-wide .tip-tile.edit:has(>select.tip-sel){padding-block:2px;}
.tip-setup .tip-wide .tip-tile.edit>select.tip-sel{box-sizing:border-box;min-height:36px;padding-block:5px;line-height:24px;}
@media(pointer:coarse){.tip-setup .tip-wide .tip-tile.edit>select.tip-sel{min-height:40px;}}

/* Stable practice geometry: no entrance movement or score scaling between answers. */
.playing-view>.oa-stage[data-orbi-stable-stage] :is(.mt-q,.oa-q,.oa-choice,.oa-pop){animation:none!important}
.playing-view>.oa-stage[data-orbi-stable-stage] .oa-stat b{min-inline-size:4ch;text-align:right;font-variant-numeric:tabular-nums}
.playing-view>.oa-stage.mt-stage .mt-q{width:100%;box-sizing:border-box;min-width:0}
.playing-view>.oa-stage.mt-stage .mt-text{width:100%;min-block-size:2.15em;align-content:center;overflow-wrap:anywhere}
.playing-view>.oa-stage.mt-stage .mt-sub{min-block-size:2.5em;line-height:1.25;text-align:center;align-content:center}
.playing-view>.oa-stage.mt-stage .mt-ans{display:grid;grid-template-columns:1.2ch minmax(0,10ch);justify-content:center;align-items:baseline;width:100%;max-width:100%;gap:10px}
.playing-view>.oa-stage.mt-stage .mt-typed{box-sizing:border-box;width:100%;min-width:0;max-width:100%;text-align:center;overflow-wrap:anywhere}
.playing-view>.oa-stage[data-orbi-stable-stage]>.oa-body>.oa-q{justify-content:flex-start}
/* Shift the complete desktop arc and reclaim the same amount of content width.
   Do not touch the phone dock or the focused-workspace hide animation. */
@media(min-width:1000px){
 :root{--orbi-nav-nudge:clamp(6px,2.5dvh,18px);--orbit-nav:calc(204px - var(--orbi-nav-nudge))}
 #root .app>.top .tabs{left:calc(-1 * var(--orbi-nav-nudge))!important}
 #root .app>.stats-top{padding-left:var(--orbi-nav-nudge)}
}
@media(min-width:1000px) and (max-width:1220px){:root{--orbit-nav:calc(186px - var(--orbi-nav-nudge))}}

/* Stable setup scale; keep lengthy configurations accessible. */
#root .app>.view.tip-setup,#demo-root>.view.tip-setup{overflow-y:auto!important;overscroll-behavior:contain;}
.tip-setup .tip-wide .tip-tile.edit:has(>select.tip-sel){box-sizing:border-box;padding:0 9px 0 12px!important;min-height:0!important;height:38px;display:flex;justify-content:center;gap:0!important;}
.tip-setup .tip-wide .tip-tile.edit>select.tip-sel{box-sizing:border-box;height:100%;min-height:0!important;margin:0!important;padding:0!important;line-height:normal!important;display:block;}
@media(pointer:coarse){.tip-setup .tip-wide .tip-tile.edit:has(>select.tip-sel){height:42px;}}
/* Persistent answer field, fixed-size slots, no score pop or per-answer layout motion. */
.playing-view>.oa-stage.mt-stage .mt-q{flex:1 0 auto!important;animation:none!important;display:flex;align-items:center;justify-content:center!important;}
.playing-view>.oa-stage.mt-stage .mt-text{display:block;align-content:center;box-sizing:border-box;block-size:2.55em;min-block-size:2.55em;line-height:1.1;}
.playing-view>.oa-stage.mt-stage .mt-sub{display:block;align-content:center;block-size:2.5em;min-block-size:2.5em;}
.playing-view>.oa-stage.mt-stage .mt-ans{grid-template-columns:1.2ch minmax(0,10ch);align-items:center;min-inline-size:0;}
.playing-view>.oa-stage.mt-stage .mt-ans input.mt-typed{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:1.55em;line-height:1.15;margin:0!important;padding:3px 7px!important;}
.playing-view>.oa-stage.mt-stage .oa-hud-r>.oa-stat{min-inline-size:76px;box-sizing:border-box;}
.playing-view>.oa-stage.mt-stage .oa-stat b{animation:none!important;font-variant-numeric:tabular-nums;}
@media(max-width:699px){.playing-view>.oa-stage.mt-stage .mt-text{block-size:2.3em;min-block-size:2.3em;}}
