.scan-panel,.scan-result{border:1px solid #bad2c8;border-radius:12px;padding:16px;margin-block:16px;background:#f5faf7}.scan-image{display:block;max-width:100%;max-height:460px;object-fit:contain;margin-block:12px}.scan-corners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-block:12px}.scan-corners label{display:flex;gap:8px;align-items:center}.scan-corners input{width:100%;min-width:0}.scan-corners legend{font-size:.9rem}#business-selected-files{padding-inline-start:24px}#business-selected-files li{padding:12px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}#business-selected-files a{display:inline-block;margin:8px}#business-scan-open{min-height:48px}#business-intake [hidden]{display:none!important}
/* The original stays unrotated and EXIF-oriented. Both layers share contain geometry. */
.scan-corner-stage{position:relative;width:100%;height:clamp(240px,55vh,460px);margin-block:24px;overflow:visible}
.scan-corner-stage>.scan-image{width:100%;height:100%;max-height:none;margin:0;object-fit:contain;image-orientation:from-image}
.scan-corner-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.scan-corner-polygon{fill:#00785822;stroke:#007858;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:none}
.scan-corner-handle{fill:#fff9;stroke:#005c43;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:all;touch-action:none;cursor:grab}
.scan-corner-handle:focus{fill:#ffe396;stroke:#111;stroke-width:5;outline:none}
.scan-corner-handle:active{cursor:grabbing}.scan-corner-status{min-height:1.5em;color:#823200}.scan-drag-cancel{min-height:48px}
@media(max-width:480px){.scan-corner-review{padding-inline:16px}.scan-corners label{flex-wrap:wrap}.scan-corner-stage{margin-block:28px}}

.capture-checklist{border:1px solid #bad2c8;border-radius:12px;padding:16px;margin-block:16px}.capture-checklist label{display:flex;align-items:flex-start;gap:12px;padding-block:10px;line-height:1.5;cursor:pointer}.capture-checklist input{flex:0 0 22px;width:22px;height:22px;margin:1px 0}.capture-checklist legend{font-weight:700}

/* A selected file contains metadata, downloads, editor and actions. It is not a
   compact flex row: the inherited rule squeezed Korean labels into one letter
   per line on phones. Keep each content region at the full available width. */
.business-intake #business-selected-files{box-sizing:border-box;max-width:100%;min-width:0}
.business-intake #business-selected-files>li{display:block;min-width:0;max-width:100%;line-height:1.55}
.business-intake #business-selected-files>li>*{box-sizing:border-box;min-width:0;max-width:100%}
.business-intake #business-selected-files>li>a{display:block;width:fit-content;margin:12px 0;white-space:normal;word-break:keep-all;overflow-wrap:break-word}
.business-intake #business-selected-files .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;align-items:stretch}
.business-intake #business-selected-files button{min-height:46px;white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-height:1.45}
.business-intake #business-selected-files .actions>button{width:100%;margin:0;min-width:0}
.business-intake #business-selected-files>li>button{display:block;margin:10px 0}
.business-intake .scan-corners,.business-intake .capture-checklist{box-sizing:border-box;min-width:0;max-width:100%}
.business-intake .scan-corners legend,.business-intake .capture-checklist legend{max-width:100%;white-space:normal;overflow-wrap:break-word}
@media(max-width:650px){.business-intake #business-selected-files{padding-inline-start:18px}.business-intake #business-selected-files .actions{grid-template-columns:minmax(0,1fr)}.business-intake #business-selected-files>li>button{width:100%}.business-intake .scan-panel,.business-intake .scan-result{padding:12px}.business-intake .scan-corners{grid-template-columns:minmax(0,1fr)}}
