:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66716b;
  --paper: #f7f5ef;
  --card: #fffefa;
  --line: #dddcd4;
  --accent: #176b52;
  --accent-dark: #0f513d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.shell { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
.header { display: flex; align-items: center; gap: 12px; padding-block: 24px; }
.brand { color: var(--ink); font-size: 20px; font-weight: 800; text-decoration: none; }
.badge { padding: 4px 9px; border-radius: 999px; background: #dcefe7; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.hero { max-width: 760px; padding: 72px 0 36px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.55; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 35px rgba(23,32,28,.06); }
.upload-card { padding: 24px; }
.dropzone { display: grid; gap: 8px; place-items: center; min-height: 220px; padding: 28px; border: 2px dashed #b9c7c0; border-radius: 14px; background: #f9fcfa; text-align: center; cursor: pointer; }
.drop-title { font-size: 20px; font-weight: 750; }
.dropzone input[type="file"] {
  max-width: 100%;
  margin-top: 12px;
  padding: 6px;
  cursor: pointer;
}
.dropzone input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .15s ease;
}
.dropzone input[type="file"]::file-selector-button:hover { background: var(--accent-dark); }
.muted, small { color: var(--muted); }
.consent {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  width: auto;
  margin: 18px 0;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent span { line-height: 1.35; }
button, .button, .secondary { display: inline-flex; justify-content: center; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
button, .button { background: var(--accent); color: white; }
button:hover, .button:hover { background: var(--accent-dark); }
.secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.notice { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 0 70px; }
.steps article { padding: 8px; }
.steps span { color: var(--accent); font-weight: 850; }
.steps h2 { margin: 8px 0; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.result-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 52px 0 28px; }
.result-head h1 { font-size: clamp(28px, 5vw, 48px); overflow-wrap: anywhere; }
.status-card { padding: 60px 24px; text-align: center; }
.spinner { width: 34px; height: 34px; margin: 0 auto 20px; border: 4px solid #d7e8e1; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.editor { display: grid; gap: 18px; padding-bottom: 70px; }
.editor .card { padding: 24px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-title h2 { margin: 0; }
.fields { display: grid; gap: 18px; }
.fields label { display: grid; gap: 8px; font-weight: 700; }
input:not([type="checkbox"]), textarea { width: 100%; border: 1px solid #c9cec9; border-radius: 9px; padding: 11px 12px; background: white; color: var(--ink); font: inherit; line-height: 1.5; }
textarea { resize: vertical; }
.fields button { justify-self: start; }
.footer { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .result-head, .section-title { align-items: stretch; flex-direction: column; }
  .button, .secondary { width: 100%; }
}
