.scan-reader {display:flex;align-items:stretch;min-width:0;min-height:0;background:#e8ecef}
.scan-reader .desk {flex:1 1 auto;min-width:0;min-height:0;position:relative;overflow:auto}
.sheet-thumbs {display:flex;flex:0 0 58px;align-self:stretch;flex-direction:column;align-items:center;gap:6px;padding:8px 3px;min-height:0;max-height:inherit;overflow:auto;background:#f4f7f9;border-right:1px solid #dbe3e8;scrollbar-width:thin}
.sheet-thumbs button {display:grid;justify-items:center;gap:3px;flex:none;width:46px;padding:3px 2px;border:1px solid transparent;border-radius:6px;color:#576d7d;background:transparent;font-family:inherit;font-size:11px;line-height:1.1;font-weight:600}
.sheet-thumbs canvas {display:block;width:34px;height:37px;border:1px solid #cad5da;background:white;border-radius:1px}
.sheet-thumbs button[aria-current="page"] {color:#0e659b;border-color:#83b8d4;background:#e1eef9}
.sheet-thumbs button:focus-visible {outline:2px solid #277dad;outline-offset:-2px}
.sheet-thumbs button:hover {background:#e7eff5}
.scan-reader .paper-stage {width:100%;max-width:none;margin:0;box-sizing:border-box;padding:12px}
.scan-reader .scan-sheet+.scan-sheet {margin-top:14px}
.scan-reader .paper {background:white;max-width:none;aspect-ratio:800 / 870}
.scan-reader .paper canvas {position:absolute;inset:0;width:100%;height:100%}
.scan-reader .paper {touch-action:pan-x pan-y pinch-zoom}
.scan-reader .paper.drawing,.scan-reader .paper.targeting {touch-action:none}
.sheet-caption {display:block;margin:0 0 4px;color:#596c77;font-size:10px;font-weight:650}
.reader-controls .overview-on {background:#e3f1fc;color:#12619b}
.scan-reader .overview-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.scan-reader .overview-grid .scan-sheet {margin:0;min-width:0}
.scan-reader .overview-grid .paper {width:100%!important}
.scan-reader .transcript-desk {background:white}
.scan-reader .transcript {padding:12px 15px;max-height:none;overflow:visible}
.text-sheet+.text-sheet {border-top:1px solid #d9e2e9;margin-top:12px;padding-top:12px}
.text-sheet .subhead {margin-bottom:5px}
.text-sheet .reading-lines {margin-bottom:0}
@media (max-width:600px){
 .scan-reader .paper-stage {padding:6px}
 .sheet-thumbs {flex-basis:40px;gap:3px;padding:4px 0}
 .sheet-thumbs button {width:35px;padding:2px 1px;gap:2px;min-height:44px}
 .sheet-thumbs canvas {width:24px;height:26px}
 .scan-reader .overview-grid {gap:6px}
 .scan-reader .transcript {padding:9px}
}
.source-card .fit-page {border:0;border-radius:5px;background:transparent;font:600 11px/1.2 system-ui,sans-serif;color:#456073;min-height:28px;min-width:34px;padding:2px 3px;cursor:pointer}
.source-card .fit-page:hover,.source-card .fit-page:focus-visible {color:#116593;background:#e6f3fa}
.result-source .scan-reader,.source-card:not(.review-layout .source-card) .scan-reader {max-height:65dvh}
.source-card>.scan-head {display:flex;gap:7px;min-width:0;min-height:39px;padding:4px 10px;border-bottom:1px solid #e1e7ec}
.source-card .scan-head .section-title {min-width:0;gap:6px}
.source-card .scan-head h2 {white-space:nowrap}
.source-card .scan-head .scan-views {margin-left:auto;display:inline-flex;align-items:center;flex:none;gap:1px;background:#f2f6f8;padding:2px;border:1px solid #dfe7ed;border-radius:7px}
.source-card .scan-head .scan-views button {padding:3px 8px;min-height:25px;margin:0;font-size:12px;border-radius:5px;line-height:1.1}
.source-card .scan-head .scan-views .current {background:white;box-shadow:0 1px 3px #213b4d20}
.source-card .scan-head .scan-views .current::after {display:none}
.source-card .scan-head>.ib {flex:none}
@media(max-width:760px){
 .source-card>.scan-head {min-height:31px;gap:4px}
 .source-card .scan-head .section-title .square {display:none}
 .source-card .scan-head .scan-views button {font-size:11px;padding:2px 7px;min-height:22px}
}
