.document-page { max-width:52rem; min-height:65vh; }
.document-page h1 { margin:.65rem 0; font-size:clamp(2rem,4vw,3.25rem); letter-spacing:-.045em; }
.document-page .guide-lead { margin:0 0 2rem; color:var(--muted); }
.document-modes { display:inline-flex; flex-wrap:wrap; gap:.25rem; margin:0 0 1rem; padding:.25rem; border:1px solid var(--line); border-radius:9px; }
.document-modes label { padding:.5rem .85rem; border-radius:6px; cursor:pointer; }
.document-modes input:checked + label { background:var(--ink); color:#fff; }
.document-modes input:focus-visible + label { outline:2px solid var(--blue); outline-offset:2px; }
.document-panel { display:grid; gap:1.1rem; padding:clamp(1.25rem,4vw,2.25rem); border:1px solid var(--line); border-radius:14px; background:#faf9f6; }
.document-inputs { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:.75rem; }
.document-inputs input + label { margin-top:.5rem; }
.document-panel label { font-weight:700; }
.document-panel input { max-width:100%; font:inherit; }
.document-panel input::file-selector-button { margin-right:.75rem; padding:.65rem .85rem; background:white; border:1px solid var(--line); border-radius:5px; cursor:pointer; }
.document-panel button,.document-panel a { justify-self:start; border-radius:6px; font:inherit; font-weight:600; padding:.65rem 1.1rem; }
.document-panel button { background:var(--ink); color:white; border:0; cursor:pointer; }
.document-panel button:disabled { opacity:.45; cursor:default; }
.document-panel a { background:var(--blue); color:white; }
.document-panel [hidden],.document-panel:has(a[href]) button { display:none; }
.document-panel p { margin:0; }
.document-panel #document-status:empty { display:none; }
.document-note { color:var(--muted); margin:1rem 0; }
