.document-reader { margin: 0 0 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.document-reader h2 { margin: 0 0 18px; font-size: 1.35rem; }
.document-reader h3 { font-size: 1rem; line-height: 1.5; }
.document-reader p { color: var(--muted); font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
#document-status[data-severity="error"], #document-status[data-severity="warning"] { padding: 14px 16px; border-left: 4px solid var(--gold); background: #fff8e8; color: #59471d; font-weight: 600; }
#document-status[data-severity="error"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.document-reader label { display: block; font-size: .9rem; font-weight: 600; }
.document-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 170px; padding: 24px; border: 2px dashed var(--gold-light); border-radius: 6px; background: #fafaf8; text-align: center; transition: border-color .15s, background .15s; }
.document-dropzone strong { font-size: 1rem; overflow-wrap: anywhere; }
.document-dropzone span { font-size: .85rem; color: var(--muted); }
.document-upload-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.document-reader #document-camera { color: var(--green-2); background: white; border: 1px solid var(--green); }
@media(pointer: coarse) { .document-reader button { min-height: 44px; } }
.document-dropzone.is-dragging { border-color: var(--green); background: var(--green-soft); }
.document-dropzone[aria-busy=true] { opacity: .6; }
.document-dropzone[aria-disabled=true] { opacity: .6; cursor: not-allowed; }
.document-file-list { padding: 0; margin: 12px 0; list-style: none; }
.document-file-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.document-file-list .file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.document-file-list .file-size { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.document-reader .file-remove { width: 36px; height: 36px; flex-shrink: 0; padding: 0; background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 1.3rem; }
.document-reader .document-consent { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0; font-weight: 400; }
.document-reader a { color: var(--green-2); text-underline-offset: 3px; }
.document-reader input[type="checkbox"] { accent-color: var(--green); }
.document-reader button { padding: 12px 16px; border: 0; border-radius: 6px; color: white; background: var(--green); cursor: pointer; }
.document-reader button:disabled { opacity: .5; cursor: not-allowed; }
.document-reader button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.document-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.document-fields input,.document-fields select { width: 100%; min-width: 0; margin-top: 6px; padding: 10px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.document-candidates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.document-candidate { padding: 18px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: start; }
.document-candidate h3 { overflow-wrap: anywhere; }
.document-candidate button { margin-top: auto; width: 100%; }
.document-candidate.is-recommended { border-color: var(--gold); border-top: 3px solid var(--gold); background: #fafaf8; }
.document-badge { color: var(--ink); background: var(--gold-light); padding: 5px 9px; font-size: .8rem; border-radius: 4px; }
.document-reader .document-difference { color: var(--red); }
@media(max-width: 760px) { .document-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .document-candidates { grid-template-columns: 1fr; } .document-reader { padding: 18px; } }
@media(max-width: 420px) { .document-fields { grid-template-columns: 1fr; } }
@media print { .document-reader { display: none !important; } }
