/* A smaller shared header gives every customer step more working space. */
body[data-interface="customer"][data-step]>header{min-height:56px;padding:5px 18px;gap:10px;flex-wrap:wrap}
body[data-interface="customer"][data-step] .brand img{height:38px;width:auto;max-width:132px;object-fit:contain}
body[data-interface="customer"][data-step] .brand{margin-right:auto}
body[data-interface="customer"][data-step] .location,
body[data-interface="customer"][data-step] .prototype{display:none}
body[data-interface="customer"][data-step] header .quiet{min-height:42px;font-size:.8rem;padding:7px 10px}
body[data-interface="customer"][data-step] #displayBtn{margin-left:0}
body[data-interface="customer"][data-step] .quickguide{gap:8px;margin-bottom:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-interface="customer"][data-step] .quickguide>button{min-height:44px;padding:7px 12px;gap:10px;flex-direction:row;text-align:left;border-radius:10px}
body[data-interface="customer"][data-step] .quickguide small{display:none}
body[data-interface="customer"][data-step] .quickguide strong{font-size:.85rem;line-height:1.2}
body[data-interface="customer"][data-step] .quickguide p{display:block}
body[data-interface="customer"][data-step] .quickguide .guideicon{width:27px;height:27px;margin:0;border-radius:8px;flex-shrink:0}
body[data-interface="customer"][data-step] .quickguide .guideicon svg{width:20px;height:20px}
body[data-interface="customer"][data-step] .quickguide .stepnumber{width:16px;height:16px;font-size:.6rem;right:-4px;bottom:-4px}
/* Print World's colours identify each file source. */
#drop{--source-accent:#007491;--source-tint:#e8f8ff}
#phone{--source-accent:#b32176;--source-tint:#fff0f8}
#emailFiles{--source-accent:#8b5900;--source-tint:#fff7d5}
#cloudFiles{--source-accent:#216c4d;--source-tint:#eaf9eb}
#step1 .home-source-grid .home-source{background:linear-gradient(135deg,var(--source-tint),var(--panel));border:1px solid var(--source-accent);border-top:5px solid var(--source-accent);padding-top:14px;box-shadow:0 4px 15px #32273b0b}
#step1 .home-source-grid #drop{background:linear-gradient(135deg,var(--source-tint),var(--panel));border:1px solid var(--source-accent);border-top:5px solid var(--source-accent)}
#step1 .home-source-grid .home-source:hover{background:var(--source-tint);border-color:var(--source-accent);box-shadow:0 6px 20px #45479520}
#step1 .home-source-grid .source-icon{width:44px;height:44px;padding:9px;border-radius:12px;background:var(--source-accent);color:#fff}
#step1 .home-source-grid .source-arrow{color:var(--source-accent)}
.home-footer{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.85fr);gap:18px;border:1px solid var(--line);background:var(--bluebg);border-radius:14px;padding:12px 14px;align-items:center}
.home-meta{display:grid;gap:5px}
.home-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:.8rem;line-height:1.3}
.home-rates span{display:flex;align-items:center;min-height:36px;padding:7px 10px;border-left:3px solid var(--cyan);border-radius:7px;background:var(--panel);color:var(--ink);font-weight:650}
.home-rates span:nth-child(2){border-left-color:#bc3583}.home-rates span:nth-child(3){border-left-color:#5f8b36}
.home-tools{margin:0;gap:12px}
.home-tools .textbtn{padding:3px 0;min-height:30px;font-size:.8rem}
.home-next{display:grid;grid-template-columns:1fr;justify-items:stretch;align-items:center;gap:5px;min-width:0}
#homeOrderInfo{font-size:.85rem;max-width:none;margin:0;text-align:left;color:var(--ink)}
#toSettings{width:100%;max-width:none!important;min-height:52px;justify-content:space-between;padding:12px 18px;font-size:1rem}
#toSettings:disabled{opacity:1;background:var(--panel);border-color:var(--border);color:var(--muted)}
html[data-theme="dark"] #drop{--source-accent:#87d5ec;--source-tint:#193541}
html[data-theme="dark"] #phone{--source-accent:#eca3d1;--source-tint:#40263b}
html[data-theme="dark"] #emailFiles{--source-accent:#ecc779;--source-tint:#3b3423}
html[data-theme="dark"] #cloudFiles{--source-accent:#9dd1aa;--source-tint:#243b31}
html[data-theme="dark"] #step1 .home-source-grid .source-icon{color:#211c2f}
html[data-theme="contrast"] #step1 .home-source-grid .home-source,
html[data-theme="contrast"] #step1 .home-source-grid #drop{background:var(--panel);border-color:var(--border)}
html[data-theme="contrast"] #step1 .home-source-grid .source-icon{color:#000;background:var(--cyan)}
html[data-theme="contrast"] .home-rates span{border-color:var(--border)}
/* Documents and pages share a browser next to the current preview. */
.documentside{display:flex;flex-direction:column;gap:10px;min-width:0}
.document-chooser{display:flex;flex-direction:column;gap:5px;font-size:.8rem;font-weight:650;color:var(--ink)}
.document-chooser select{width:100%;min-width:0;min-height:40px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--ink);padding:8px;font-size:.85rem}
.browser-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:var(--soft);border-radius:10px;padding:4px}
.browser-tabs button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:38px;padding:6px 4px;font-size:.8rem;font-weight:650;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink)}
.browser-tabs button span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.browser-tabs button b{font-size:.65rem;border-radius:5px;background:var(--soft);padding:1px 4px;flex-shrink:0}
.browser-tabs [aria-selected="true"]{background:var(--panel);border-color:var(--cyan);color:var(--cyan);box-shadow:0 2px 6px #0001}
.browser-panel{min-width:0;min-height:0}
#documentsPanel .docrail{display:flex;flex-direction:column;gap:8px;max-height:380px;overflow:auto;overscroll-behavior:contain}
#documentsPanel .doccard{width:100%;flex:0 0 auto}
#pagesPanel{display:flex;flex-direction:column;gap:8px;max-height:580px}
#pagesPanel .pageshead{margin:0;justify-content:flex-start}
#pagesPanel .pageshead h2{display:none}
#pagesPanel .pageshead .textbtn{font-size:.8rem;min-height:34px;padding:3px 0}
.page-range{padding:8px!important;margin:0!important;background:var(--bluebg);border:1px solid var(--line)}
.page-range>summary{font-size:.75rem;font-weight:650;line-height:1.3}
.page-range[open]>summary{margin-bottom:8px}
.page-range .pagequick{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}
.page-range .pagequick .field span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.page-range .field input{padding:6px 8px;min-height:38px;font-size:.8rem}
.page-range .secondary{margin:0;padding:7px;font-size:.8rem;min-height:38px}
.page-range #rangeError{padding:8px;font-size:.85rem}
#pageGrid{position:relative}
#pagesPanel .pagegrid{display:grid;align-content:start;grid-auto-rows:max-content;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:7px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;padding:3px}
#pagesPanel .pagecard{padding:10px;border-radius:9px;min-width:0;cursor:grab}
#pagesPanel .pagepick{display:grid;grid-template-columns:45px minmax(0,1fr);gap:3px 10px;text-align:left;align-items:center}
#pagesPanel .pagepick img{grid-row:1/4;height:64px;width:45px;max-width:45px;margin:0;object-fit:contain}
#pagesPanel .pagepick strong{font-size:.85rem;margin:0;line-height:1.25}
#pagesPanel .pagepick small{font-size:.8rem;line-height:1.25;min-height:0;margin:0}
#pagesPanel .movebar{margin-top:6px;gap:4px;justify-content:space-between}
#pagesPanel .movebar button{min-height:32px;height:32px;min-width:32px;width:32px;padding:0;font-size:.95rem}
#pagesPanel .pagecheck{padding:0;margin:0;min-height:32px;min-width:30px}
#pagesPanel .pagecheck input{width:20px;height:20px;margin:0}
#pagesPanel .pager{margin:0;gap:6px;font-size:.7rem;flex-shrink:0}
#pagesPanel .pager button{min-height:34px;min-width:32px;padding:0;font-size:1.1rem}
.browser-add{min-height:40px;padding:8px;font-size:.8rem;width:100%;margin:0!important}
/* Summary core and checkout buttons stay together; detail is optional. */
.summary-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 0;border-block:1px solid var(--line)}
.summary .summary-counts .summaryrow{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:3px;margin:0;font-size:.75rem;line-height:1.3;min-width:0}
.summary-counts b{font-size:1.35rem;line-height:1.1;color:var(--ink)}
.summary-price-details{padding:9px 10px;margin:0;background:var(--bluebg);border-radius:10px}
.summary-price-details>summary{font-size:.8rem;line-height:1.3;font-weight:650}
.summary-price-details .summaryrow{font-size:.8rem;margin:8px 0}
.summary-price-details .small{font-size:.75rem;line-height:1.4;margin:10px 0}
.summary-price-details .specs{font-size:.75rem;line-height:1.4;margin:10px 0 0;gap:3px}
.summary-detail-area{margin:12px 0;min-height:0}
.summary .summary-minimum{font-size:.8rem;line-height:1.3;margin:4px 0 8px;color:var(--muted)}
.summary-finish .total{margin:0}
.summary-finish .total b{font-size:2rem;line-height:1.2}
.summary-finish .paytag{font-size:.8rem;line-height:1.35;padding:9px 10px;margin:0;border-radius:9px}
.summary-finish .summaryactions{padding:12px 0 0;margin:10px 0 0;border-top:1px solid var(--line);gap:8px}
.summary-finish .summaryactions button{min-height:46px;padding:9px 6px;font-size:.8rem;line-height:1.3}
/* On kiosk displays the browser, preview, settings and summary each have a stable area. */
@media(min-width:1000px) and (min-height:600px){
 body[data-interface="customer"][data-step="2"]{height:100dvh;min-height:600px;display:flex;flex-direction:column}
 body[data-interface="customer"][data-step="2"]>header{flex-wrap:nowrap;flex-shrink:0}
 body[data-interface="customer"][data-step="2"]>main{flex:1;min-height:0;width:100%;max-width:1600px;display:grid;grid-template-rows:46px minmax(0,1fr);gap:10px;padding:8px 16px 12px}
 body[data-interface="customer"][data-step="2"] .quickguide{height:46px;margin:0}
 body[data-interface="customer"][data-step="2"] .layout{display:grid;grid-template-columns:minmax(0,1fr) 242px;gap:14px;align-items:stretch;min-height:0}
 body[data-interface="customer"][data-step="2"] #workspace{display:flex;flex-direction:column;padding:14px 16px;min-height:0;border-radius:16px}
 body[data-interface="customer"][data-step="2"] #step2{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}
 #step2>.eyebrow,#step2>.intro{display:none}
 #step2>h1{font-size:1.45rem;line-height:1.1;margin:0;color:var(--ink)}
 #step2 .organisehead{margin:0;gap:12px;align-items:center;min-width:0}
 #step2 #docTitle{font-size:.8rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 #step2 #docPosition{font-size:.75rem;white-space:nowrap}
 #step2 .editor{flex:1;min-height:0;display:grid;grid-template-columns:246px minmax(0,1fr) 230px;gap:14px;align-items:stretch}
 #step2 .documentside{grid-column:auto;position:static;min-height:0;display:flex;flex-direction:column;gap:8px;background:var(--bluebg);border:1px solid var(--line);padding:10px;border-radius:12px}
 #step2 .browser-panel{flex:1;min-height:0}
 #step2 #documentsPanel{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 #step2 #documentsPanel .docrail{overflow:visible;max-height:none;margin:0;padding:2px}
 #step2 #documentsPanel .doccard{padding:10px;flex-basis:auto;min-width:0}
 #step2 #documentsPanel .docpick{display:grid;grid-template-columns:46px minmax(0,1fr);gap:5px 10px;align-items:center}
 #step2 #documentsPanel .docpick img{height:65px;width:46px;max-width:46px;margin:0;grid-row:1/3}
 #step2 #documentsPanel .docpick strong{font-size:.85rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:clip;margin:0;min-height:0}
 #step2 #documentsPanel .docpick small{font-size:.75rem;line-height:1.3}
 #step2 #documentsPanel .movebar{gap:3px;margin-top:5px}
 #step2 #documentsPanel .movebar button{min-width:40px;width:40px;min-height:36px;height:36px}
 #step2 #pagesPanel{max-height:none;overflow:hidden}
 #step2 #pagesPanel .pagegrid{grid-template-columns:1fr;flex:1;overflow:auto}
 #step2 .page-range{flex-shrink:0;max-height:48%;overflow:auto}
 #step2 .preview{position:static;min-height:0;display:flex;flex-direction:column;gap:8px}
 #step2 .previewbar{margin:0;gap:6px;min-height:0;font-size:.75rem;flex-wrap:wrap}
 #step2 .previewbar #previewLabel{font-size:.75rem}
 #step2 .pagejump{font-size:.75rem;gap:5px}
 #step2 .pagejump select{max-width:150px;min-height:34px;font-size:.75rem;padding:4px 6px}
 #step2 .paperbadge{font-size:.7rem;padding:3px 6px}
 #step2 .previewstage{flex:1;min-height:0;grid-template-columns:28px minmax(0,1fr) 28px;gap:4px;align-items:stretch}
 #step2 .previewarrow{align-self:center;width:28px;min-height:44px;height:44px;font-size:1.6rem;border-radius:10px}
 #step2 .paperwrap{position:relative;min-height:0;height:100%;max-width:none;padding:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}
 #step2 .paperwrap canvas{position:static;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;box-shadow:0 3px 12px #14112d20;background:#fff}
 #step2 #previewNote{font-size:.7rem;line-height:1.3;margin:0}
 #step2 #quality{flex-shrink:0;font-size:.7rem;line-height:1.3;padding:7px 9px;margin:0;max-height:50px;overflow:auto}
 #step2 .settings{display:block;overflow:auto;min-height:0;padding:2px 8px 4px 2px;overscroll-behavior:contain;scrollbar-width:thin}
 #step2 .settings fieldset{margin-bottom:12px}
 #step2 .settings legend,#step2 .field,#step2 .check{font-size:.8rem;line-height:1.35}
 #step2 .settings legend{margin-bottom:5px}
 #step2 .choice{gap:6px}
 #step2 .choice button{min-height:42px;padding:7px 4px;font-size:.8rem;line-height:1.25}
 #step2 .choice small{font-size:.7rem;margin-top:3px}
 #step2 .settings .field{gap:5px;margin-bottom:12px;position:relative}
 #step2 .settings .field input,#step2 .settings .field select{min-height:38px;padding:6px 8px;font-size:.85rem}
 #step2 .settings label:has(>#copies){padding-right:35px}
 #step2 .settings label:has(>#copies) .helpbutton{position:absolute;right:0;bottom:3px;width:28px;height:28px;margin:0;font-size:.85rem}
 #step2 .fitchoices{gap:5px}
 #step2 .fitchoices button{min-height:58px;padding:7px 6px;gap:6px;font-size:.8rem;line-height:1.25}
 #step2 .fiticon{width:17px;height:23px}
 #step2 #fitNote{font-size:.7rem;line-height:1.35;margin:7px 0}
 #step2 .sheetpanel{padding:10px;margin:10px 0}
 #step2 .sheetpanel .check{font-size:.75rem;font-weight:600}
 #step2 .settings .layoutbar,#step2 .settings .pagecopies,#step2 .settings #advanced{margin:9px 0}
 #step2 .settings .layoutbar>summary,#step2 .settings .pagecopies>summary,#step2 .settings #advanced>summary{font-size:.8rem;line-height:1.3;padding:10px 11px}
 #step2 .settings .pagecopies,#step2 .settings #advanced{padding:0}
 #step2 .settings .pagecopies[open],#step2 .settings #advanced[open]{padding:0 10px 10px}
 #step2 .settings .pagecopies[open]>summary,#step2 .settings #advanced[open]>summary{padding-inline:0;margin-bottom:4px}
 #step2 .settings .editbuttons{gap:5px}
 #step2 .settings .editbuttons .iconbutton{min-width:40px;min-height:40px;padding:6px}
 #step2 .settings .applybox{margin-top:10px;padding-top:10px}
 #step2 .settings .applybox button:not(.helpbutton){min-height:42px;padding:8px;font-size:.85rem}
 body[data-interface="customer"][data-step="2"] aside{position:static;min-height:0;display:flex;align-self:stretch}
 body[data-interface="customer"][data-step="2"] .summary{flex:1;min-height:0;padding:16px;display:flex;flex-direction:column;border-radius:16px}
 body[data-interface="customer"][data-step="2"] .summary>.eyebrow{display:none}
 body[data-interface="customer"][data-step="2"] .summary>h2{font-size:1.1rem;margin:0 0 10px;line-height:1.25}
 body[data-interface="customer"][data-step="2"] .summary-detail-area{flex:1;min-height:32px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 body[data-interface="customer"][data-step="2"] .summary-finish{flex-shrink:0}
 body[data-interface="customer"][data-step="2"] #error{flex-shrink:0;max-height:56px;overflow:auto;margin:8px 0 0;padding:7px 10px;font-size:.8rem;line-height:1.3}
 body[data-interface="customer"][data-step="2"] #status{font-size:.75rem;line-height:1.3;margin-top:5px;flex-shrink:0}
 html[data-size="large"] body[data-interface="customer"][data-step="2"]{height:auto;min-height:100dvh;display:block}
 html[data-size="large"] body[data-interface="customer"][data-step="2"]>header{flex-wrap:wrap}
 html[data-size="large"] body[data-interface="customer"][data-step="2"]>main{display:block}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .editor{grid-template-columns:190px minmax(0,1fr)}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .preview{height:460px;min-height:420px}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .settings{grid-column:1/-1;overflow:visible}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] aside{position:sticky;top:10px;align-self:start}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .summary{display:flex;max-height:calc(100dvh - 20px)}
 html[data-size="large"] body[data-interface="customer"][data-step="2"] .documentside{max-height:580px}
}
@media(min-width:1000px) and (max-width:1190px) and (min-height:600px){
 body[data-interface="customer"][data-step="2"] .layout{grid-template-columns:minmax(0,1fr) 220px;gap:10px}
 #step2 .editor{grid-template-columns:220px minmax(0,1fr) 196px;gap:10px}
 #step2 .documentside{padding:7px}
 #step2 .browser-tabs button{font-size:.75rem;padding-inline:2px}
 body[data-interface="customer"][data-step="2"] .summary{padding:13px}
 #step2 .pagejump select{max-width:124px}
}
@media(max-width:999px), (max-height:599px){
 #step2 .editor{grid-template-columns:1fr;gap:16px}
 #step2 .documentside{position:static;grid-column:1/-1;background:var(--bluebg);padding:12px;border:1px solid var(--line);border-radius:12px}
 #step2 #pagesPanel{max-height:300px}
 #step2 #documentsPanel .docrail{display:flex;flex-direction:row;max-height:170px}
 #step2 #documentsPanel .doccard{width:160px;flex:0 0 160px}
 #step2 .settings{display:block}
 #step2 .preview{position:static}
 .home-footer{grid-template-columns:1fr;gap:12px}
 .home-rates{font-size:.75rem}
 .home-rates span{padding:6px}
 #homeOrderInfo{text-align:left}
 #toSettings{max-width:none}
 .summary{padding:18px}
}
@media(prefers-reduced-motion:reduce){#step1 .home-source-grid .home-source{transition:none}}

@media(min-width:800px) and (min-height:600px){
 body[data-interface="customer"][data-step="1"] .home-footer{grid-template-columns:minmax(0,1.25fr) minmax(260px,.85fr)}
 body[data-interface="customer"][data-step="1"][data-has-files="true"] .home-source-text small{display:none}
 body[data-interface="customer"][data-step="1"][data-has-files="true"] .home-source-grid{grid-template-rows:repeat(2,minmax(68px,1fr))}
 body[data-interface="customer"][data-step="1"][data-has-files="true"] .home-source-grid .home-source{min-height:68px}
}

#step2 .editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#step2 .editor-help{font-size:.8rem;line-height:1.35;min-height:32px;padding:5px 0;white-space:nowrap}
.details-prompt{font-weight:650;color:var(--ink);margin:0 0 10px}
#pilotResult:empty{display:none}#pilotResult{padding:10px;border-radius:10px;background:var(--bluebg);overflow-wrap:anywhere}
.collection-scanner{display:grid;grid-template-columns:1fr auto;gap:10px}.collection-scanner .field{margin:0}.collection-scanner video{grid-column:1/-1;width:100%;max-height:190px;object-fit:contain;background:#152030;border-radius:12px}.collection-scanner .camera-error{grid-column:1/-1;margin:0;color:var(--danger,#a33)}
#step1 .welcome-start:has(.collection-entry[hidden]){grid-template-columns:minmax(0,1fr)}

#collectionEntry[hidden]{display:none!important}
.checkout-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;align-items:start}.checkout-documents{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:12px}.checkout-documents>summary{font-weight:700;cursor:pointer}.checkout-documents #reviewItems{max-height:380px;overflow:auto;overscroll-behavior:contain;margin-top:10px}.checkout-documents .reviewitem{padding:10px;margin-bottom:8px;font-size:.8rem;line-height:1.3}.checkout-documents .reviewitem p{margin:5px 0}.checkout-documents .reviewitem strong{overflow-wrap:anywhere}.checkout-details>h2{font-size:1.1rem;margin:12px 0 4px}.checkout-details>.small{margin:4px 0 10px}.checkout-details .details-prompt{margin:5px 0;font-size:.85rem}.checkout-details #payment{padding:12px;margin:0 0 10px;font-size:.85rem}.checkout-details #payment p{margin:5px 0 0}.checkout-details .field{margin:7px 0}.checkout-details input{min-height:42px;padding:9px 10px}.checkout-details .approval{margin:12px 0;font-size:.85rem}.checkout-details .actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr}.checkout-details .actions button{min-height:46px}.checkout-documents summary{min-height:32px}#wifiDialog{max-width:380px;text-align:center}#wifiQr{max-width:100%;height:auto}#wifiDialog .actions{justify-content:center}
@media(min-width:1000px) and (min-height:650px){body[data-interface="customer"][data-step="3"]{height:100dvh;overflow:hidden}body[data-step="3"] main{padding-top:12px;padding-bottom:12px}#step3>.eyebrow{display:none}#step3>h1{font-size:1.7rem;margin:4px 0 12px}#step3 .checkout-grid{max-height:calc(100dvh - 200px)}#step3 .checkout-documents #reviewItems{max-height:calc(100dvh - 260px)}#step3 .checkout-details{max-height:calc(100dvh - 210px);overflow:auto}body[data-step="3"] aside .summary{padding:16px}}
@media(max-width:999px){.checkout-grid{grid-template-columns:1fr}.checkout-documents #reviewItems{max-height:200px}.checkout-details .actions{position:sticky;bottom:0;background:var(--panel);padding:10px 0}}
.checkout-details>.details-prompt{display:none}.checkout-details .actions{position:sticky;bottom:0;background:var(--panel);padding:8px 0}

/* The first view presents the essentials; extra controls stay available on demand. */
#pageBrowser,#moreSettings{margin:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:10px;min-height:0}
#pageBrowser>summary,#moreSettings>summary{cursor:pointer;font-weight:650;font-size:.85rem;min-height:28px}
#pageBrowser[open]{overflow:auto;overscroll-behavior:contain}
#pageBrowser .browser-tabs{margin-top:10px}
#moreSettings[open]>summary{margin-bottom:12px}
#step2 .settings>#layoutBar,#step2 .settings>#moreSettings{margin-top:12px}
#pageBrowser #pageGrid{max-height:320px;overflow:auto}
@media(min-width:1000px) and (min-height:600px){#step2 .documentside{align-self:start;max-height:100%;overflow:auto}#step2 #pageBrowser[open]{max-height:calc(100dvh - 350px)}#step2 #pageBrowser #pagesPanel{overflow:visible}#step2 #pageBrowser #pageGrid{max-height:calc(100dvh - 530px);min-height:100px}}
.draft-handoff{margin-top:10px;width:100%;font-size:.85rem;min-height:40px}
#draftSendDialog,#draftReceiveDialog{max-width:480px}
#draftSendDialog canvas{display:block;max-width:100%;height:auto;margin:12px auto}
#draftLink{width:100%;font-size:.8rem;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}
#draftSendDialog .actions{justify-content:space-between}
#draftReceiveDialog form>button{margin-top:10px}
#resumeDraft{margin-top:10px;min-height:40px;font-size:.85rem}
#draftReceiveStatus:empty,#draftReceiveError:empty,#draftSendError:empty{display:none}

/* A resumed draft is a full-width action in both the flex and grid kiosk card. */
#collectionEntry #resumeDraft{grid-column:1/-1;justify-self:stretch;align-self:stretch;width:100%;min-width:0;max-width:none;min-height:46px;padding:10px 12px;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.35;background:#fff;color:#343677;border-color:#fff;margin-top:6px}
@media(min-width:1000px){#step3 #handoffCheckout{display:none}}
