:root {
  color-scheme: light;
  --paper: #f3f5ed;
  --surface: #fff;
  --ink: #202a22;
  --muted: #515e53;
  --line: #dce3d7;
  --accent: #255a3b;
  --soft-accent: #eaf2e8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }

.page { width: min(100% - 32px, 740px); margin: 0 auto; padding-bottom: 32px; }

.masthead, .brand, .local-badge { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { gap: 8px; font-weight: 750; font-size: .95rem; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--accent); }
.brand-icon svg, .notes svg { width: 20px; height: 20px; }
.local-badge { gap: 6px; color: var(--accent); font-size: .69rem; font-weight: 700; }
.local-badge span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #4d855e; }

.intro { margin: clamp(34px, 8vw, 66px) 0 24px; }
.intro h1 { max-width: 620px; margin: 0; font-size: clamp(2rem, 6.5vw, 3.6rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
.intro p { max-width: 510px; margin: 14px 0 0; color: var(--muted); line-height: 1.55; }

.tool { padding: clamp(14px, 3.4vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 32px #243c2910; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; padding: 20px 12px; border: 2px dashed #adc5ae; border-radius: 13px; background: #f7faf5; text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone:focus-within, .drop-zone.is-dragging, .drop-zone.drag-over { border-color: var(--accent); background: var(--soft-accent); }
.drop-zone:has(input:disabled) { cursor: wait; }
.drop-zone strong { font-size: 1.07rem; }
.upload-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 2px; color: var(--accent); background: var(--soft-accent); border-radius: 11px; }
.upload-icon svg { width: 23px; height: 23px; }
.drop-hint, .formats { color: var(--muted); font-size: .82rem; }
.formats { font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
@media (pointer: coarse) { .drop-hint { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.button, .download-file { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; font-size: .86rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #19452c; }
.button-quiet, .download-file { color: var(--accent); background: var(--soft-accent); }
.button-quiet:hover:not(:disabled), .download-file:hover { background: #dbeada; }
.button:disabled { color: #59675a; background: #eef1ec; cursor: default; }
.button:focus-visible, .download-file:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.status { margin: 12px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 9px; margin-top: 12px; accent-color: var(--accent); }

.file-list { margin: 14px 0 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 9px 0; border-top: 1px solid var(--line); }
.file-details { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.file-details strong { font-size: .9rem; }
.file-details small { color: var(--muted); }
.file-error small { color: #9a3429; }
.download-file { flex-shrink: 0; }

.notes { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 0 3px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.notes svg { flex-shrink: 0; color: var(--accent); }
.notes strong { color: var(--ink); }
.notes p { margin: 2px 0 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
