/* Single-task mobile studio. Board texture correction is scoped here; rules stay unchanged. */
:root{--studio-gold:#e4bf68;--studio-surface:#171512;--studio-border:#42392c;--studio-radius:18px}
button.primary{background:var(--studio-gold);border-color:var(--studio-gold);color:#17130c}
button.primary:hover{background:#f0d38b}
button{border-radius:11px}
.quiet{background:transparent;color:var(--muted);border-color:transparent}
.quiet:hover{background:#262119}
.studio-storage{display:none!important}
#studio-content>.studio-storage{display:block!important}
#studio-dialog{width:min(600px,calc(100% - 24px));padding:0;max-height:calc(100dvh - 32px);border-color:#6a5636;background:#161411;box-shadow:0 24px 90px #000b;overscroll-behavior:contain}
.sheet-heading{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;background:#161411;border-bottom:1px solid var(--line)}
.sheet-heading h2{font-size:1.125rem;margin:0}.sheet-heading .eyebrow{font-size:.625rem;margin-bottom:5px}.sheet-heading button{min-height:44px;padding:8px 12px}
#studio-content{padding:16px 20px 22px;overflow-wrap:anywhere}
#studio-notice{font-size:.8125rem;line-height:1.4;color:#f1d998;margin:8px 0 0;overflow-wrap:anywhere}
#studio-content>.sheet-root{margin:0;border-top:0;padding:0}
#studio-content>.sheet-root>summary{display:none}
#studio-content>.sheet-root+.sheet-root{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
#studio-content #move-form label{position:static;clip-path:none;width:auto;height:auto;overflow:visible;font-size:.875rem;margin:0 0 8px}
#studio-content .manual-move{display:flex;margin:0;gap:8px}#studio-content .manual-move input{width:100%;min-height:48px;flex:1}#studio-content .manual-move button{flex:0 0 auto;min-height:48px}
#studio-content #move-help{font-size:.8125rem;margin:8px 0 14px}
#studio-content .hint{font-size:.8125rem;line-height:1.5}
#studio-content #legal-picker{border-top:1px solid var(--line);padding-top:8px}
#studio-content #legal-picker>summary{min-height:44px;font-size:.875rem}
#studio-content .piece-filters{gap:6px;margin:10px 0}
#studio-content .piece-filters{grid-template-columns:repeat(4,minmax(44px,1fr))}
#studio-content .piece-filters button{min-height:48px;font-size:.75rem}
#studio-content .options,#studio-content>#extra-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:none;overflow:visible;margin:12px 0}
#studio-content .options button{font-size:1.125rem;min-height:48px;padding:10px 8px}
#studio-content #legal-options{max-height:none;overflow:visible}
#studio-content .sequence{max-height:none;overflow:visible;margin:0}
#studio-content .move-row button{min-height:52px;font-size:1rem;padding:9px 10px}
#studio-content .move-row button small{font-size:.6875rem}
#studio-feedback{position:fixed;z-index:50;top:62px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);margin:0;padding:9px 16px;border:1px solid #587a60;border-radius:30px;background:#1b3023;color:#d2f4dd;font-size:.8125rem;box-shadow:0 8px 24px #0006;pointer-events:none}
body[data-step=review]{height:100dvh;min-height:0;overflow:hidden}
body[data-step=review] header{display:none}
body[data-step=review] main{height:100%;max-width:1120px;padding:0 12px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column}
body[data-step=review] .steps{position:static;flex-shrink:0;padding:7px 0 6px;gap:5px;border-bottom:0}
body[data-step=review] .steps button{border:0;background:transparent;min-height:44px;padding:8px 4px;border-radius:10px;font-size:.8125rem}
body[data-step=review] .steps button > span:first-child{display:inline;font-size:.625rem;margin-right:5px}
body[data-step=review] .steps button[aria-current=step]{background:#2b2418;box-shadow:none;color:var(--studio-gold)}
body[data-step=review] .draft-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
body[data-step=review] .workspace{width:100%;flex:1;min-height:0;margin:0;max-width:none}
body[data-step=review] .review-panel{height:100%;padding:0;border:0;background:none;border-radius:0;display:flex;flex-direction:column;gap:0}
.studio-review-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;padding:3px 2px 5px}
.studio-review-heading h2{font-size:1.0625rem;letter-spacing:-.025em}
.studio-review-heading .review-summary{display:block;line-height:1.2;margin-top:3px}
body[data-step=review] #progress{font-size:.6875rem;font-weight:500;color:var(--muted)}
body[data-step=review] #pending{font-size:.6875rem;color:var(--muted);margin-left:7px}
.studio-tools{display:flex;gap:4px}.studio-tools button{min-height:44px;padding:8px 10px;font-size:.75rem;background:#191613;border-color:#302a21}
body[data-step=review] .review-panel>progress{margin:3px 0 4px;height:3px;flex-shrink:0}
body[data-step=review] .move-strip{min-height:44px;height:auto;gap:5px;margin:4px 0 8px;padding:0;scrollbar-width:none}
.move-strip::-webkit-scrollbar{display:none}
body[data-step=review] .move-strip button{min-width:70px;min-height:44px;height:auto;font-size:.8125rem;padding:5px 9px;border-radius:9px;background:transparent;border-color:#302a21;line-height:1.1}
body[data-step=review] .move-strip button small{font-size:.5625rem;margin-top:3px}
body[data-step=review] .move-strip button[aria-current]{background:#2b2418;border-color:#9a7b3c;box-shadow:none;color:#f2d793}
body[data-step=review] .review-work{order:0;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:safe center;align-items:center;gap:8px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}
body[data-step=review] .position-pane{align-self:center}
body[data-step=review] .board-wrap{width:min(72vw,clamp(200px,calc(100dvh - 590px),248px));max-width:none;padding:8px 7px 20px 20px;border:1px solid #6b5735;border-radius:12px;background:#1d1913;box-shadow:0 6px 22px #0006}
/* The imported renderer's checker texture starts dark at top-left. Rotate the
   texture, not the board/coordinates: a8 and h1 must be light in either view. */
#board.silicio-board-native silicio-board-surface.silicio-board-native__board{background-image:conic-gradient(from 90deg,var(--silicio-board-light) 25%,var(--silicio-board-dark) 0 50%,var(--silicio-board-light) 0 75%,var(--silicio-board-dark) 0)}
body[data-step=review] .board-controls{max-width:390px;min-height:28px;margin:2px auto 0;font-size:.625rem;padding:0 2px;gap:4px}
body[data-step=review] .board-controls button{min-height:44px;margin-top:-7px;margin-bottom:-7px;font-size:.6875rem;padding:7px 5px}
body[data-step=review] .focus{padding:10px 12px;background:linear-gradient(155deg,#211c15,#171512);border:1px solid var(--studio-border);border-radius:var(--studio-radius);margin:0}
.focus-heading{gap:6px;margin-bottom:4px;min-height:24px}
body[data-step=review] .focus-heading #move-label{font-size:.6875rem;letter-spacing:.06em;color:#f1d28e}
.review-mark{font-size:.625rem;margin-left:auto}
#zoom-row{font-size:.6875rem;min-height:44px;padding:6px;margin-block:-10px}
body[data-step=review] .fragment-labels{font-size:.625rem;margin:0 0 2px}
body[data-step=review] #fragment{height:64px;min-height:0;max-height:64px;width:100%;margin:0 0 4px;border:1px solid #8a7754;border-radius:6px;object-fit:contain}
body[data-step=review] #fragment-empty{font-size:.75rem;padding:9px 10px;margin:0 0 4px;background:#28221a;border-radius:7px;line-height:1.3}
body[data-step=review] #evidence{font-size:.6875rem;line-height:1.35;margin:3px 0 5px;color:#d0c6b6}
.suggestion-row{display:flex;gap:5px;align-items:stretch}
body[data-step=review] #options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-width:0;margin:0;gap:5px}
body[data-step=review] #options button{padding:6px 4px;min-height:52px;font-size:1.125rem;border-radius:9px;border-color:#605031;background:#242019}
body[data-step=review] #options button[aria-pressed=true]{border:2px solid #e4bf68;background:#483a20;color:#fff5db}
body[data-step=review] #options small{font-size:.625rem;line-height:1.1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body[data-step=review] #more-options{width:44px;min-height:52px;padding:4px;margin:0;font-size:.875rem;background:transparent;border-color:#605031;border-radius:9px}
.reading-actions{display:flex;align-items:center;gap:10px;margin-top:3px;min-height:44px}
body[data-step=review] #options-help{flex:1;font-size:.6875rem;line-height:1.35;margin:0;color:#c7beaf}
#open-correction{flex-shrink:0;font-size:.75rem;padding:8px 10px;min-height:44px;background:transparent;border:0;color:#ebc979}
body[data-step=review] #proposal-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0!important}
body[data-step=review] #resolve-earlier{min-height:44px;margin:3px 0;font-size:.75rem}
body[data-step=review] .review-dock{position:static;transform:none;left:auto;bottom:auto;order:8;flex-shrink:0;width:100%;padding:7px 0 0;border:0;border-top:1px solid #3c3325;background:none;box-shadow:none;border-radius:0;margin-top:7px}
.review-navigation{grid-template-columns:minmax(0,1fr) 2em minmax(0,1fr) minmax(0,1.2fr);gap:6px}
.review-navigation button{min-width:0;background:transparent;border-color:transparent;font-size:.75rem;min-height:44px;padding:8px 4px;overflow-wrap:anywhere}
.review-navigation #previous,.review-navigation #next{font-size:1.6rem;line-height:1}
.review-navigation #previous span,.review-navigation #next span{display:none}
.review-navigation{grid-template-columns:44px minmax(30px,1fr) 44px minmax(110px,1.6fr)}
#navigation-position{font-size:.6875rem;color:#e4bf68;min-width:0}
.review-commit{grid-template-columns:minmax(85px,max-content) minmax(0,1fr);gap:8px;margin-top:3px}
.review-commit button{min-height:46px;font-size:.875rem;padding:9px 8px;border-radius:12px}
.review-commit #undo{font-size:.75rem;background:#201b14;border-color:#403526}
.review-commit #confirm-move{background:var(--studio-gold);border-color:var(--studio-gold);color:#17130c;box-shadow:0 4px 14px #b8913420}
#finish-review{display:none!important}
body[data-step=review] #review-alert:not([hidden]){margin:4px 0;padding:7px 10px;font-size:.8125rem;flex-shrink:0;max-height:90px;overflow:auto}
#ocr-recovery:not([hidden]){display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:.8125rem;padding:6px 0}
#ocr-status{margin:0;flex:1;min-width:0;font-size:inherit;line-height:1.35}
#ocr-recovery button{max-width:45%;padding:8px;font-size:.8125rem;min-height:44px}
/* Capture: begin with an action, not a long landing page. */
body:not([data-step=review]) header{padding:12px 18px;max-width:980px;border-color:#28221a}
body:not([data-step=review]) main{max-width:980px;padding:16px 16px 24px}
.intro{display:block;margin:4px 0 18px}.intro .eyebrow{font-size:.625rem;margin-bottom:8px}.intro h1{font-size:1.9rem;margin:0 0 8px}.intro>div>p:last-child{margin:0;font-size:.9375rem}
.intro .privacy{display:flex;align-items:center;font-size:.75rem;margin-top:12px;gap:0}.intro .privacy small{font-size:.6875rem;margin:0 0 0 8px;max-width:none}.privacy .dot{flex-shrink:0}
body:not([data-step=review]) .steps{position:static;padding:4px 0 10px;border:0;gap:5px}
body:not([data-step=review]) .steps button{font-size:.8125rem;padding:8px 4px;min-height:44px;border-color:#302a21;background:transparent}
body:not([data-step=review]) .steps button > span:first-child{display:inline;font-size:.625rem;margin-right:4px}
body:not([data-step=review]) .steps button[aria-current]{background:#2c2416;box-shadow:none;border-color:#7d663c}
body:not([data-step=review]) .draft-state{font-size:.625rem;margin:0 2px 8px;color:#b2a796}
.source-panel{padding:18px;border-radius:20px;border-color:#443929;background:linear-gradient(145deg,#211c15,#11100e)}
.source-panel .panel-heading{margin-bottom:10px}.source-panel .capture-guide{font-size:.875rem;margin:0 0 14px}.source-panel>.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.source-panel>.actions button{min-height:52px;font-size:.9375rem}.source-panel #capture-status{font-size:.75rem;padding:8px 10px;margin:10px 0;line-height:1.45}
body[data-has-photo=false] .photo-stage{min-height:0;background:none;border:0;margin:12px 0 0;display:block}
body[data-has-photo=false] #empty-photo{padding:0}#empty-photo>span,#empty-photo h3,#empty-photo p{display:none}
#demo{min-height:44px;width:100%;font-size:.8125rem;background:transparent;border:1px solid #4b3f2b}
#open-capture-tools{font-size:.8125rem;min-height:44px;margin-top:8px}
body[data-has-photo=true] .capture-guide{display:none}
body[data-has-photo=true] .photo-stage{margin:12px 0;min-height:0;height:clamp(150px,calc(100dvh - 640px),250px);border:1px solid #514432;background:#080807}
.crop-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.crop-actions button{min-height:44px;font-size:.8125rem;padding:8px}
#photo-controls #read,#capture-resume{min-height:48px;margin-top:12px}
body[data-has-photo=true] #capture-status:empty{display:none}
body[data-has-photo=true] .photo-stage canvas{max-width:100%;width:auto;max-height:100%;height:auto;object-fit:contain}
body[data-crop-mode=true] .photo-stage{height:clamp(300px,70dvh,700px)}
#crop-help{font-size:.75rem;margin:6px 0}
#crop-status{font-size:.6875rem;margin:6px 0}#recognizer{font-size:.6875rem;margin-bottom:0}
body:not([data-step=review]) footer{font-size:.6875rem;padding:16px 3px;line-height:1.5;max-width:600px}
/* Export keeps the same surface and a clear, safe route back to unresolved moves. */
.export-panel{margin-top:6px;padding:20px;border-radius:20px;background:linear-gradient(145deg,#211c15,#11100e);border-color:#443929}
.export-panel h2{font-size:1.4rem}.export-panel .eyebrow{font-size:.625rem;margin:0 0 8px}.export-panel p{font-size:.8125rem;line-height:1.5;margin:8px 0 12px}
.export-panel .export-requirements{padding:11px 12px;font-size:.8125rem;border-radius:12px;background:#0e0d0b}
.export-panel label{font-size:.8125rem}.export-panel .check{font-size:.8125rem;margin:10px 0;padding:10px;line-height:1.4}
.export-panel #return-review{font-size:.8125rem;min-height:44px;padding:8px 12px}.export-controls .actions{grid-template-columns:1fr;gap:8px}.export-controls button{font-size:.875rem;min-height:46px}
.export-controls #export-partial{order:2;background:transparent;font-size:.75rem;min-height:44px;padding:7px}
.export-controls input,.export-controls select{min-height:44px}
.export-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:8px 12px;align-content:start}
.export-controls>label:not(.check){margin:0;min-width:0}
.export-controls :is(input,select){min-width:0;width:100%;font-size:.875rem}
.export-controls>.check,.export-controls>.actions,.export-controls>.hint{grid-column:1/-1}
.export-controls>.check input{width:22px;min-height:22px}
.export-panel #export-status{font-size:.75rem;line-height:1.4;padding:8px 10px;margin:8px 0 0}
@media(min-width:620px){
 body[data-step=review] main{padding-inline:24px}
 body[data-step=review] .review-work{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-content:safe center}
 body[data-step=review] .board-wrap{width:min(100%,calc(100dvh - 340px),430px);min-width:180px}
 body[data-step=review] .review-work:has(#resolve-earlier:not([hidden])) .board-wrap{width:min(100%,calc(100dvh - 340px),430px)}
 body[data-step=review] .focus{padding:20px}
 body[data-step=review] #fragment{height:80px;max-height:80px}
 body[data-step=review] #options button{min-height:66px;font-size:1.35rem}
 body[data-step=review] #options small{font-size:.75rem}
 body[data-step=review] .focus-heading #move-label{font-size:.8125rem}
 body[data-step=review] #options-help,body[data-step=review] #evidence{font-size:.8125rem}
 body[data-step=review] .board-controls{font-size:.75rem;min-height:36px}
 body[data-step=review] .review-dock{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-block:10px;align-items:center}
 .review-commit{margin:0;grid-template-columns:90px 1fr}.review-navigation button{font-size:.8125rem}
 body:not([data-step=review]) .intro{margin:15px 0 22px}.source-panel{max-width:650px;margin:auto}
}
@media(max-width:359px){
 body[data-step=review] main{padding-inline:8px}.studio-tools button{padding-inline:8px;font-size:.6875rem}.studio-review-heading h2{font-size:.9375rem}body[data-step=review] #pending{display:none}
 body[data-step=review] .focus{padding:8px}.focus-heading{flex-wrap:nowrap}body[data-step=review] .focus-heading #move-label{font-size:.625rem}.review-mark{font-size:.5625rem}#zoom-row{font-size:.625rem}
 body[data-step=review] #options button{font-size:1rem}body[data-step=review] #options small{font-size:.5625rem}.review-navigation{gap:3px}.review-navigation button{font-size:.6875rem}
 .intro .privacy{display:block}.intro .privacy small{display:block;margin:3px 0 0 14px}#studio-content{padding:12px}.sheet-heading{padding:12px}.piece-filters{gap:3px!important}
}
@media(max-height:650px) and (max-width:619px){
 body[data-step=review] .move-strip{display:none}
 body[data-step=review] .review-work{gap:4px}
 body[data-step=review] .focus{padding-block:7px}
 body[data-step=review] #fragment{height:40px;max-height:40px}
 body[data-step=review] #evidence{font-size:.625rem;margin:2px 0 4px}
 body[data-step=review] .move-strip{margin-bottom:3px}
 body[data-step=review] .board-wrap{width:min(72vw,200px)}
 .reading-actions{margin:0}
}
@media(max-height:500px) and (min-width:620px){
 body[data-step=review] .move-strip{display:none}
 body[data-step=review] .fragment-labels{display:none}
 body[data-step=review] .studio-review-heading{padding-block:0}.studio-review-heading h2{font-size:.9375rem}
 body[data-step=review] .board-wrap{width:200px;min-width:0}body[data-step=review] .review-work:has(#resolve-earlier:not([hidden])) .board-wrap{width:200px}body[data-step=review] .board-controls{font-size:.625rem;min-height:22px}
 body[data-step=review] .review-work{gap:14px;align-content:start}body[data-step=review] .focus{padding:8px 10px}body[data-step=review] #fragment{height:38px;max-height:38px}body[data-step=review] #options button{min-height:46px;font-size:1rem}body[data-step=review] #options small{font-size:.625rem}body[data-step=review] #evidence,body[data-step=review] #options-help{font-size:.625rem}
 body[data-step=review] .review-dock{padding-block:3px;margin-top:3px}.reading-actions{min-height:38px}.studio-review-heading .review-summary{display:none}
}
@media(prefers-reduced-motion:no-preference){
 #studio-dialog[open]{animation:studio-arrive .17s ease-out}
 #studio-feedback:not([hidden]){animation:studio-arrive .15s ease-out}
 @keyframes studio-arrive{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
}
/* Playback-first review: stable transport, optional review, direct correction. */
body[data-step=review] .review-dock{display:block;padding-top:4px;margin-top:5px}
.playback-position{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px}
.playback-position #navigation-position{font-size:.8125rem;font-weight:650}
.playback-position #next-pending{font-size:.8125rem;min-height:44px;padding:6px 10px;background:transparent;border:0;color:#f1d28e}
body[data-step=review] .review-navigation{display:grid;grid-template-columns:48px minmax(48px,1fr) minmax(100px,1.5fr) minmax(48px,1fr) 48px;gap:5px}
body[data-step=review] .review-navigation button{min-height:48px;border:1px solid #69583b;background:#242019;font-size:.8125rem;padding:6px 3px;border-radius:10px}
body[data-step=review] .review-navigation #previous,body[data-step=review] .review-navigation #next{font-size:1.875rem}
body[data-step=review] .review-navigation #play{background:#e4bf68;color:#17130c;border-color:#e4bf68;font-size:.9375rem}
body[data-step=review] .review-navigation #play[aria-pressed=true]{background:#f4dba3}
body[data-step=review] .review-commit{display:grid;grid-template-columns:minmax(70px,.8fr) minmax(110px,1.3fr) minmax(105px,1.2fr);gap:5px;margin-top:5px}
body[data-step=review] .review-commit #confirm-move{background:transparent;border-color:transparent;color:#d0c6b6;box-shadow:none;font-size:.75rem}
body[data-step=review] .review-commit button{min-height:44px}
body[data-step=review] .review-commit #save-game{font-size:.8125rem}
body[data-step=review] #progress,body[data-step=review] #pending{font-size:.75rem}
body[data-step=review] .move-strip button small{font-size:.625rem}
body[data-step=review] .board-wrap{width:min(78vw,clamp(190px,calc(100dvh - 540px),310px))}
body[data-step=review] #options-help,body[data-step=review] #evidence{font-size:.75rem}
body[data-step=review] .review-mark{font-size:.6875rem}
body[data-step=review] #fragment{height:70px;max-height:70px}
body[data-step=review] .review-work{align-content:safe start}
#export-ack-label{grid-column:1/-1;background:#282218;border-radius:10px}
@media(min-width:620px){
 body[data-step=review] .review-work{align-content:safe center}
 body[data-step=review] .board-wrap{width:min(100%,calc(100dvh - 360px),430px)}
 body[data-step=review] .review-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 20px}
 .playback-position{grid-column:1/-1}
 body[data-step=review] .review-commit{margin:0}
 body[data-step=review] #fragment{height:90px;max-height:90px}
}
@media(max-width:359px){body[data-step=review] .review-navigation{grid-template-columns:44px minmax(44px,1fr) minmax(88px,1.5fr) minmax(44px,1fr) 44px;gap:3px}body[data-step=review] .review-commit{grid-template-columns:70px 1fr 100px}.studio-review-heading .review-summary{line-height:1.4}}
/* Keep the photo visible: no second heading row or redundant confirmation dock. */
.studio-review-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
.studio-review-heading>div:first-child{display:contents}
.studio-review-heading h2{grid-column:1;grid-row:1}
.studio-review-heading .studio-tools{grid-column:2;grid-row:1}
.studio-review-heading .review-summary{grid-column:1/-1;grid-row:2;margin:0}
body[data-step=review] #pending{margin-left:8px}
body[data-step=review] .board-wrap{width:min(78vw,clamp(202px,calc(100dvh - 510px),310px))}
.review-dock>.playback-position{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);min-height:0}
body[data-step=review] #photo-page-label{font-size:.6875rem;line-height:1.2;margin:2px 0}
body[data-step=review] .reading-actions{min-height:0;margin-top:5px}
body[data-step=review] .suggestion-row #open-correction{width:68px;min-width:44px;min-height:52px;white-space:normal;padding:4px;border:1px solid #69583b;border-radius:9px;font-size:.75rem}
body[data-step=review] .review-commit #next-pending{background:transparent;border-color:#69583b;color:#f1d28e;font-size:.8125rem}
#studio-content #confirm-move{min-height:44px;width:100%;margin-bottom:10px}
@media(min-width:620px){body[data-step=review] .board-wrap{width:min(100%,calc(100dvh - 315px),430px)}}
@media(max-height:740px) and (max-width:619px){
 body[data-step=review] .move-strip{display:none}
 body[data-step=review] .review-work{gap:4px}
 body[data-step=review] .board-wrap{width:202px}
 body[data-step=review] .focus{padding:7px 10px}
 body[data-step=review] #fragment{height:52px;max-height:52px}
 body[data-step=review] .fragment-labels{display:none}
 body[data-step=review] #evidence{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.6875rem}
 body[data-step=review] .reading-actions{margin:0}
}
.compact-board-hint{display:none}
/* A short phone cannot fit a legible board AND photo: prioritize the written move. */
@media(max-height:600px) and (max-width:619px){
 body[data-step=review] .focus{order:0}
 body[data-step=review] .position-pane{order:1}
 body[data-step=review] .compact-board-hint{display:block;font-size:.6875rem;color:#d0c6b6;margin:6px 0 0}
}
/* Portrait tablets use their height for a larger board and a full-width photo. */
@media(min-width:620px) and (max-width:1023px) and (min-height:950px){
 body[data-step=review] .review-work{grid-template-columns:minmax(0,560px);justify-content:center;align-content:safe start;gap:14px}
 body[data-step=review] .board-wrap{width:min(100%,430px)}
}
