.capture-preview{display:block;width:100%;max-height:38dvh;object-fit:contain;border-radius:16px;background:var(--panel)}.capture-preview:not([src]){min-height:100px}.capture-original img{display:block;max-width:100%;height:150px;object-fit:contain;margin-inline:auto}.capture-camera .actions{flex-wrap:wrap}

.capture-original-full{display:block;max-width:100%;max-height:80dvh;object-fit:contain}.capture-preview[hidden]{display:none}
.capture-viewfinder{position:relative;overflow:hidden}.capture-document-guide{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:2px solid white;border-radius:8px;box-shadow:0 0 0 100vmax #0005}.capture-viewfinder:has(video[hidden]) .capture-document-guide{display:none}.capture-parts{display:grid;gap:8px}.capture-part{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.capture-part img{width:48px;height:64px;object-fit:contain}.capture-part p{flex:1;min-width:0;overflow-wrap:anywhere}
.capture-parts-toggle{display:flex;align-items:center;gap:8px}.capture-parts-toggle input{width:auto}.capture-parts-toggle p{margin:0}
@media(min-width:600px) and (max-height:500px){.capture-camera{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.capture-camera-status{grid-column:1/-1;margin:0}.capture-viewfinder{grid-column:1;grid-row:2/5;align-self:center}.capture-frame-help{grid-column:2;grid-row:2;margin:0;font-size:.85rem;line-height:1.35}.capture-parts-toggle{grid-column:2;grid-row:3;font-size:.85rem}.capture-camera>.actions{grid-column:2;grid-row:4;margin:0}.capture-camera>.actions button{padding:8px;min-height:44px}.capture-camera>.capture-parts{grid-column:1/-1}.capture-camera>[data-action=CAPTURE_PARTS_ANALYZE]{grid-column:1/-1}}

.capture-original.review{display:flex;align-items:center;gap:12px}.capture-original.review img{height:72px;max-width:100px;margin:0}.capture-original.review button{margin-inline-start:auto}


/* Fit every original preview, also during OCR. Evidence bytes are unchanged. */
.capture-image-preview{min-width:0;max-width:100%}
.capture-image-preview img{display:block;max-width:100%;height:auto;max-height:65dvh;object-fit:contain;margin-inline:auto}
.capture-original{min-width:0;max-width:100%}
.capture-original img{height:150px;max-height:35dvh}
.capture-original.review .capture-image-preview{flex:0 1 100px}
.capture-original-full{width:auto;height:auto;max-height:65dvh}
