:root { font-family: Arial, sans-serif; color: #172b27; background: #f5f7f6; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: #18372f; color: #fff; }
.header-inner { height: 68px; display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: #7fd2aa; color: #12382b; font-size: 22px; font-weight: 800; }
.brand-name { font-weight: 750; font-size: 18px; }
.header-note { margin-left: auto; color: #bfdbce; font-size: 13px; }
.workspace { padding: 42px 0 70px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.workspace-heading p { margin: 0; color: #6c7b75; font-size: 14px; }
.version { color: #25664b; background: #e0f3e8; padding: 5px 8px; border-radius: 4px; font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .86fr); gap: 36px; align-items: start; }
.controls { background: #fff; border: 1px solid #dce5df; border-radius: 6px; padding: 24px; }
.file-picker { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-height: 118px; padding: 20px; border: 2px dashed #a6c5b2; border-radius: 5px; background: #f4faf6; cursor: pointer; }
.file-picker:hover, .file-picker:focus-within { border-color: #2e7757; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker-title { color: #15563a; font-size: 18px; font-weight: 700; }
.file-picker small { color: #66746c; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
h2 { margin: 0; font-size: 17px; }
.section-heading span { color: #7c8b83; font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field-grid label { display: flex; flex-direction: column; gap: 6px; color: #4e5f56; font-size: 13px; font-weight: 600; }
.field-grid input, .field-grid select { width: 100%; height: 40px; padding: 8px 11px; border: 1px solid #cbd8ce; border-radius: 4px; background: #fff; color: #1d3129; }
.field-grid input:focus, .field-grid select:focus { border-color: #277451; outline: 2px solid #b6dcc6; }
.field-grid input:disabled { color: #374a41; background: #f3f6f4; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; }
.button { min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid #1f694a; font-weight: 700; cursor: pointer; }
.button.primary { background: #1f694a; color: #fff; }
.button.secondary { background: #fff; color: #1f694a; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.privacy-note { color: #75847b; font-size: 12px; line-height: 1.5; margin: 17px 0 0; }
.result-area { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.document-preview { aspect-ratio: 210 / 297; padding: 13% 12%; background: #fff; border: 1px solid #e2e7e3; box-shadow: 0 8px 22px #203a2a12; position: relative; }
.preview-label { position: absolute; bottom: 9%; left: 12%; color: #8b9b90; font-size: 10px; }
.preview-heading { text-align: center; font: bold clamp(8px, 1.1vw, 13px) Georgia, serif; margin-bottom: 18%; }
.preview-heading.small { text-align: left; font-size: clamp(7px, 1vw, 11px); margin-bottom: 10%; }
.preview-line, .preview-text { height: 3px; margin-bottom: 9%; background: #d0d8d1; width: 82%; }
.preview-line.wide, .preview-text { width: 100%; }
.preview-line.long { width: 94%; }
.preview-text { height: 2px; margin-bottom: 4%; }
.preview-text.short { width: 73%; }
.preview-gap { height: 10%; }
.report { min-width: 0; }
.report h2 { font-size: 18px; margin: 0 0 15px; }
.report-summary { font-size: 13px; color: #66776a; margin: 0 0 18px; }
.report ul { list-style: none; margin: 0; padding: 0; }
.report li { border-top: 1px solid #dfe6e0; padding: 10px 0; font-size: 13px; line-height: 1.35; }
.muted { color: #7b8980; font-size: 13px; line-height: 1.5; }
.report-note { border-top: 1px solid #dfe6e0; padding-top: 14px; }
.error { color: #a43f34; }
.success { color: #246b48; font-weight: 600; }
.site-footer { border-top: 1px solid #dbe3dc; color: #738077; font-size: 12px; line-height: 1.5; padding: 18px 0; }
@media (max-width: 920px) { .workspace-grid { grid-template-columns: 1fr; } .result-area { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 600px) { .shell { width: min(100% - 28px, 1180px); } .header-note { display: none; } .workspace { padding-top: 25px; } h1 { font-size: 24px; } .workspace-grid { gap: 28px; } .controls { padding: 17px; } .result-area { grid-template-columns: 1fr; } .document-preview { display: none; } .form-actions { flex-direction: column; } .button { width: 100%; } }
