/* Scanned Page Studio: follows the Lab's warm-paper, hard-outline visual system. */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-size:15px;line-height:1.55}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:#6234d8}button:focus-visible,a:focus-visible{outline:3px solid #6234d8;outline-offset:3px}[hidden]{display:none!important}.page{margin:0 auto}.skip-link{position:absolute;left:12px;top:-80px;background:#ffe372;padding:12px;z-index:20}.skip-link:focus{top:10px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{text-decoration:none;display:flex;align-items:center;white-space:nowrap}.lang{display:flex;gap:3px}.lang a{padding:7px 11px;text-decoration:none}.hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.65fr);gap:32px;align-items:center}.eyebrow{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:1.8px;margin:0 0 10px}.hero h1{font-size:clamp(38px,5vw,58px);line-height:1.04;margin:0 0 16px;max-width:680px}.summary{font-size:17px;line-height:1.65;max-width:690px;margin:0 0 18px}.trust{display:flex;flex-wrap:wrap;gap:7px}.trust span{font-size:12px;padding:5px 9px;font-weight:750}.hero-note{position:relative;background:#ffe372;border:2px solid #191919;padding:23px;box-shadow:5px 5px 0 #191919;transform:rotate(1.2deg);border-radius:4px}.hero-note p{margin:0}.hero-note strong{display:block;font-size:19px;margin:14px 0 5px}.spread-art{display:flex;gap:5px;background:#ed5a50;border:2px solid #191919;padding:10px;max-width:245px;margin:0 auto;box-shadow:3px 3px 0 #191919}.art-page{flex:1;background:#fffdf8;border:1px solid #191919;padding:9px}.art-page b{font-size:29px;color:#6234d8;line-height:1}.art-lines{display:block;height:29px;margin-top:8px;background:repeating-linear-gradient(0deg,#a8a399 0 2px,transparent 2px 8px)}.step-heading{display:flex;align-items:center;gap:10px;margin:0;font-size:21px;letter-spacing:-.4px}.step-number{display:inline-grid;place-items:center;background:#ffe372;border:2px solid #191919;width:30px;height:30px;font-size:15px;flex:none}.panel{padding:23px;margin-bottom:22px}.panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.hint{font-size:13px;line-height:1.55;margin:8px 0}.import-panel{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.import-panel .step-heading{grid-column:1/-1}.drop{position:relative;padding:21px;text-align:center;min-width:0}.drop strong{font-size:18px;display:block}.drop p{margin:5px 0 13px;color:#575751;font-size:13px}.btn{padding:10px 14px;min-height:42px;line-height:1.25}.btn.small{padding:7px 10px;min-height:36px;font-size:13px}.btn.subtle{box-shadow:none!important}.import-options{display:flex;flex-direction:column;gap:10px;min-width:180px}.import-options .hint{max-width:220px}.file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.notice{background:#fff5d5;border-left:4px solid #d8a625;padding:11px 14px;font-size:13px}.status-area{margin:0 0 22px}.status-line{display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:700;min-height:35px}.status-line p{margin:0}progress{display:block;accent-color:#6234d8;width:100%;height:11px;margin:9px 0}.error{border:2px solid #a62424;background:#fff1ef;color:#83211a;padding:13px 15px;margin:10px 0;overflow-wrap:anywhere}.error p{margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.81fr);align-items:start;gap:22px}.workspace>.panel{min-width:0}.empty-state{padding:35px 22px;text-align:center;background:#f5f2eb;border:2px dashed #b9b6ad}.empty-state strong{display:block;font-size:18px;margin-bottom:5px}.empty-state p{color:#575751;margin:0}.counts{font-size:13px;font-weight:700;background:#eee7ff;border:1px solid #9580c4;padding:5px 8px;white-space:nowrap}.page-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;margin:0}.page-item{border:2px solid #b9b6ad;background:#fff;padding:7px;border-radius:4px;min-width:0}.page-item.selected{border-color:#6234d8;box-shadow:3px 3px 0 #6234d8}.page-item.omitted{background:#e8e5df}.page-item.omitted .thumb{opacity:.45}.page-select{border:0;background:none;color:inherit;padding:0;display:block;width:100%;text-align:left}.thumb{aspect-ratio:3/4;background:#efede7;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d4d0c6;position:relative}.thumb canvas{max-width:100%;max-height:100%;object-fit:contain}.thumb-placeholder{font-size:11px;padding:8px;text-align:center;color:#77736d}.page-number{display:block;font-size:12px;font-weight:850;margin:6px 0 2px}.source-name{display:block;font-size:11px;color:#575751;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-actions{display:flex;gap:3px;margin-top:7px}.page-actions button{border:1px solid #827e75;background:#fff;min-height:30px;border-radius:2px;padding:2px 6px;font-size:12px;flex:1}.page-actions button:hover{background:#ffe372}.page-actions button:disabled{opacity:.35}.editor-panel{position:sticky;top:15px}.editor-panel .panel-heading{align-items:flex-start}.editor-source{font-size:12px;overflow-wrap:anywhere;margin:5px 0 0;color:#575751}.editor-preview{background:#dedbd3;border:1px solid #a5a094;min-height:170px;display:flex;align-items:center;justify-content:center;padding:13px;margin-bottom:12px}.crop-stage{position:relative;display:inline-block;max-width:100%;line-height:0;overflow:hidden}.crop-stage canvas{display:block;max-width:100%;height:auto;max-height:370px;width:auto;object-fit:contain}.crop-overlay{position:absolute;inset:0;pointer-events:none}.crop-frame{position:absolute;border:2px dashed #6234d8;box-shadow:0 0 0 1000px #35294766}.crop-frame:before,.crop-frame:after{content:'';position:absolute;inset:33.333% 0;border-block:1px solid #fff9}.crop-frame:after{inset:0 33.333%;border-block:0;border-inline:1px solid #fff9}.editor-caption{font-size:12px;margin:0 0 13px;color:#575751}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.editor-actions .btn{flex:1}.control-group{border:0;border-top:1px solid #c2bdb3;padding:15px 0 0;margin:15px 0 0;min-width:0}.control-group legend{font-size:14px;font-weight:850;padding:0 8px 0 0}.control-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{min-width:0}.field label{display:block;font-size:12px;font-weight:750;margin:0 0 5px}.field input[type=number],.field select{width:100%;padding:8px;min-height:40px}.range-row{display:flex;gap:10px;align-items:center}.range-row input[type=range]{width:100%;min-width:0;accent-color:#6234d8}.range-row input[type=number]{width:82px;flex:none}.crop-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.crop-fields input{padding:7px 5px!important}.crop-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.split-preview{position:relative;background:#ebe7df;border:1px solid #c2bdb3;line-height:0;max-width:100%;margin:12px auto;display:table;overflow:hidden}.split-preview canvas{display:block;width:auto;height:auto;max-height:180px;max-width:100%}.split-line{position:absolute;left:50%;top:0;bottom:0;border-left:3px dashed #ed5a50;pointer-events:none}.split-line.horizontal{left:0;right:0;top:50%;bottom:auto;border-left:0;border-top:3px dashed #ed5a50}.split-order-marker{position:absolute;left:6px;top:6px;line-height:1;background:#ffe372;border:1px solid #191919;padding:5px;font-size:11px;font-weight:800}.split-order-marker.second{left:auto;right:6px}.split-preview.horizontal .second{top:auto;bottom:6px;left:6px;right:auto}.export-panel{margin-top:0}.export-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}.export-result{padding:13px;background:#edf1e5;border:1px solid #879575;margin-top:16px}.export-result a{display:inline-block;font-weight:850}.export-result p{margin:6px 0 0;font-size:13px}.seo{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:36px 0}.seo-card{padding:24px;min-width:0}.seo-card h2{font-size:23px;line-height:1.25;margin:0 0 15px;letter-spacing:-.5px}.seo-card h3{font-size:16px;margin:20px 0 5px}.seo-card p,.seo-card li{font-size:14px;line-height:1.7}.seo-card p:last-child{margin-bottom:0}.seo-card ol,.seo-card ul{padding-left:22px;margin-bottom:0}.seo-card li+li{margin-top:10px}.seo-card.wide{grid-column:1/-1}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.faq-grid h3{margin-top:10px}.related-links{display:flex;flex-wrap:wrap;gap:10px 22px}.lab-simple-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.busy .workspace{opacity:.76}.busy .page-list{pointer-events:none}@media(max-width:1050px){.page-list{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.workspace{grid-template-columns:1fr}.editor-panel{position:static}.page-list{grid-template-columns:repeat(4,minmax(0,1fr))}.import-panel{grid-template-columns:1fr}.import-options{flex-direction:row;flex-wrap:wrap;align-items:center}.import-options .hint{max-width:none;flex-basis:100%;margin:0}.hero-note{display:none}.crop-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.seo{grid-template-columns:1fr}.faq-grid{grid-template-columns:1fr}.export-grid{grid-template-columns:1fr 1fr}.export-grid>.btn{grid-column:1/-1}.panel{padding:18px}.hero h1{max-width:650px}}@media(max-width:470px){.page-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.page-item{padding:5px}.page-actions button{padding:1px 3px;font-size:11px;min-height:34px}.panel-heading{flex-wrap:wrap}.step-heading{font-size:19px}.counts{white-space:normal}.lang a{padding:6px 8px}.crop-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{font-size:15px!important}.hero h1{font-size:36px!important}.control-row{gap:8px}.seo-card{padding:18px}.status-line{font-size:13px}.editor-preview{padding:9px}.source-name{max-width:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Batch choices stay separate from the current page; preview is a read-only stage. */
.batch-controls,.batch-preview-notice{padding:16px;border:1px solid #9580c4;background:#f6f2ff;margin-bottom:18px;border-radius:3px}.batch-controls h3,.batch-preview-notice h3{font-size:16px;margin:0 0 6px}.batch-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:13px}.batch-toolbar .field{flex:1;min-width:150px}.batch-selection{font-size:12px;font-weight:750;margin:10px 0}.batch-operation{border-top:1px solid #d4cbe7;padding:9px 0;display:flex;align-items:center;gap:12px;justify-content:space-between}.batch-operation p{flex:1;min-width:0;margin:0}.batch-operation .btn{flex:0 0 auto;max-width:45%}.batch-warning{color:#675337;border-left:3px solid #c9a84e;padding-left:9px}.batch-preview-notice{background:#fff5c5;border:2px solid #191919}.batch-preview-notice>p{font-size:13px;line-height:1.65}.batch-preview-actions{display:flex;gap:9px;flex-wrap:wrap}.page-check{display:flex;gap:6px;align-items:center;min-height:32px;padding:0 1px 5px;font-size:11px;font-weight:700;cursor:pointer}.page-check input{width:17px;height:17px;accent-color:#6234d8;margin:0;flex:none}.page-check input:focus-visible{outline:3px solid #6234d8;outline-offset:3px}.page-item.batch-target{background:#fff9df;border-color:#b38c15}.page-item.batch-target.selected{border-color:#6234d8}.batch-previewing .page-actions,.batch-previewing .editor-actions,.batch-previewing #cropControls,.batch-previewing #splitControls{opacity:.45}.batch-previewing .page-check{cursor:default}@media(max-width:470px){.batch-controls,.batch-preview-notice{padding:12px}.batch-toolbar{gap:6px}.batch-toolbar .field{flex-basis:100%}.batch-operation{align-items:start;flex-direction:column;gap:8px}.batch-operation .btn{max-width:100%}.page-check{font-size:10px;gap:4px}}
