.scan-dialog{width:min(1160px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;direction:rtl;background:#fff;color:#202528;border:1px solid var(--brand,#165b78);border-radius:14px;padding:18px}.scan-dialog header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.scan-dialog h2,.scan-dialog h3{color:var(--brand,#165b78)}.scan-dialog [hidden]{display:none!important}.scan-dialog video{width:100%;max-height:42dvh;object-fit:contain;background:#123d43;border-radius:10px}.scan-dialog button,.scan-import{min-height:44px}.scan-toolbar{position:relative;gap:10px;margin-block:15px;flex-wrap:wrap}.scan-import input{display:block;width:220px;max-width:100%}.scan-pages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.scan-page{border:1px solid #bfd4d8;border-radius:10px;padding:12px;min-width:0;overflow-wrap:anywhere}.scan-page.selected{outline:2px solid var(--brand,#165b78)}.scan-page label{display:block}.scan-page input[type=checkbox]{width:22px;height:22px;vertical-align:middle}.scan-drag{padding:10px;background:#ddebec;color:var(--brand,#165b78);font-weight:bold;cursor:grab;touch-action:none}.scan-thumb{width:100%;background:#f3f6f4}.scan-page img,.scan-pages figure img{display:block;max-width:100%;height:200px;object-fit:contain;margin:auto}.scan-warning{color:#725200;background:#fff4d8;padding:8px;border-radius:5px;font-size:16px}.scan-warning:empty{display:none}.scan-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:14px}.scan-compare figure{margin:0;min-width:0;border:1px solid #bfd4d8;padding:8px}.scan-compare figcaption{font-weight:bold;color:var(--brand,#165b78)}.scan-zoom{height:380px;overflow:auto;background:#f0f3f3}.scan-zoom img{display:block;width:100%;height:100%;object-fit:contain}.scan-crop{display:block;width:100%;max-height:70dvh;touch-action:none;background:#eaf0f2}.scan-dialog [data-scan-editor]{margin-block:16px;padding:12px;border:1px solid #bfd4d8;border-radius:8px}.scan-dialog .actions{display:flex;gap:8px;flex-wrap:wrap}.scan-ready-pages{display:flex;gap:8px;overflow-x:auto}.scan-ready-pages img{width:110px;height:150px;object-fit:contain;border:1px solid #bfd4d8}.scan-dialog input[type=range]{max-width:180px}@media(max-width:700px){.scan-dialog{padding:12px;max-height:96dvh}.scan-pages,.scan-compare{grid-template-columns:1fr}.scan-dialog header button{width:100%}.scan-dialog .actions button{flex:1 1 120px}.scan-dialog .scan-toolbar{display:flex;flex-direction:column;align-items:stretch}.scan-import input{width:100%}.scan-dialog .scan-zoom{height:350px}}
.scan-dialog [data-scan-progress]{margin:12px 0;background:#edf6f5;border:1px solid #bfd4d8;padding:12px;border-radius:8px}.scan-dialog progress{width:100%;height:20px;accent-color:var(--brand,#165b78)}.scan-method{background:#f3f6f6;border-inline-start:3px solid var(--brand,#165b78);padding:10px}#section-doc-enhancement{border:1px solid #bfd4d8;background:#f2f8f7;border-radius:9px;padding:12px;margin-block:12px}#section-doc-enhancement[hidden]{display:none!important}
