:root { color-scheme: light; font-family: system-ui, sans-serif; color: #18222f; background: #eef3f7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(920px, calc(100% - 2rem)); margin: 3rem auto; }
header { margin-bottom: 2rem; }
h1 { max-width: 700px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin: .25rem 0 1rem; }
.eyebrow { color: #12665c; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.card { background: white; border: 1px solid #d6e0e8; border-radius: 16px; padding: clamp(1.25rem, 4vw, 2.5rem); margin: 1rem 0; box-shadow: 0 8px 30px #17324d12; }
.drop-zone { display: grid; gap: .5rem; padding: 2rem; border: 2px dashed #7b97ad; border-radius: 12px; background: #f7fafc; cursor: pointer; }
.drop-zone input { margin-top: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
button { border: 0; border-radius: 8px; padding: .8rem 1.1rem; background: #12665c; color: white; font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: #e7eef3; color: #263849; }
.button-link { display: inline-block; border-radius: 8px; padding: .8rem 1.1rem; background: #12665c; color: white; font-weight: 700; text-decoration: none; }
.button-link.secondary { background: #e7eef3; color: #263849; }
button:disabled { opacity: .6; cursor: wait; }
#status { min-height: 1.5rem; font-weight: 600; }
.field { display: grid; gap: .35rem; margin: 1rem 0; padding-left: .8rem; border-left: 4px solid #3d846e; }
.field.missing, .field.low-confidence, .field.defaulted, .field.calculated { border-left-color: #c87916; }
.field label { font-weight: 700; }
.field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; padding: .7rem; border: 1px solid #9eb0bf; border-radius: 6px; font: inherit; background: white; }
.field input[type="checkbox"] { width: 1.25rem; height: 1.25rem; }
.checkbox-group { display: grid; gap: .55rem; border: 0; padding: .4rem 0 0; margin: 0; }
.checkbox-group label { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.field input:disabled { background: #edf2f5; color: #465968; }
.field textarea { min-height: 7rem; resize: vertical; }
.field small { color: #536779; }
.notice { margin-top: 2rem; padding: 1rem; border-radius: 8px; background: #fff5df; }
.required-mark { color: #a33a24; }
dialog { width: min(850px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid #b8c8d3; border-radius: 14px; padding: 1.5rem; }
dialog::backdrop { background: #18222fcc; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.preview-toolbar h2 { margin: 0; }
.preview-section { margin-top: 1.5rem; }
.preview-table { width: 100%; border-collapse: collapse; }
.preview-table th, .preview-table td { padding: .65rem; border: 1px solid #b8c8d3; text-align: left; vertical-align: top; }
.preview-table th { width: 38%; background: #e7f0ee; }
.document-created { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; background: #e8f5ef; }
.document-created p { margin-bottom: 0; }
.hidden { display: none; }
@media (max-width: 520px) { main { margin: 1rem auto; } .card { border-radius: 10px; } }
