:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #19252a;
    background: #f1f4f3;
    --accent: #185a4c;
    --border: #d1dbd7;
    --muted: #4f625b;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1120px, calc(100% - 32px)); margin: clamp(24px, 7vw, 90px) auto; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.section-label { color: var(--accent); font-size: .875rem; font-weight: 700; margin: 0 0 5px; }
h1 { font-size: clamp(1.65rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; margin: 0; }
h2 { margin: 0 0 22px; font-size: 1.25rem; letter-spacing: -.02em; }
.columns { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: stretch; }
.card { min-width: 0; background: white; border: 1px solid var(--border); border-radius: 18px; padding: clamp(16px, 3vw, 28px); }
.gate { max-width: 460px; }
label { display: block; font-size: .925rem; font-weight: 650; margin-bottom: 8px; }
textarea, input { font: inherit; }
textarea, input[type=password] { display: block; width: 100%; padding: 12px 14px; background: #f8faf9; border: 1px solid var(--border); border-radius: 8px; color: inherit; }
textarea { resize: vertical; line-height: 1.55; }
input[type=password] { margin-bottom: 16px; }
input[type=file] { max-width: 100%; font-size: .875rem; }
input[type=file]::file-selector-button { font: inherit; border: 1px solid var(--border); background: white; border-radius: 6px; padding: 6px 9px; margin-right: 8px; cursor: pointer; }
.hint { font-size: .875rem; color: var(--muted); margin: 8px 0 0; font-weight: 400; }
.upload { margin: 20px 0; padding: 14px; background: #f5f8f6; border-radius: 10px; }
#preview { width: auto; max-width: 100%; max-height: 160px; margin-top: 12px; border-radius: 6px; }
summary { font-size: .925rem; cursor: pointer; }
details textarea { margin-top: 10px; }
details { margin-bottom: 22px; }
button { border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; font: inherit; font-weight: 650; color: white; background: var(--accent); cursor: pointer; }
button.quiet { color: var(--accent); background: white; border-color: var(--border); }
button:hover:enabled { filter: brightness(.93); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.output { display: flex; flex-direction: column; align-items: start; }
#draft { flex: 1; min-height: 240px; margin-bottom: 14px; }
#status { font-size: .875rem; margin: 8px 0 0; min-height: 1.4em; }
.error { color: #a02227; }
@media (max-width: 680px) { .columns { grid-template-columns: 1fr; } }
select, input:not([type]) { display: block; width: 100%; margin-bottom: 17px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f8faf9; color: inherit; font: inherit; }
.checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.checkbox input { accent-color: var(--accent); }
