:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #58655f;
  --line: #d5ddd7;
  --paper: #f4f1e9;
  --surface: #fffefa;
  --blue: #234e73;
  --brick: #a0523b;
  --gold: #c8973d;
  --shadow: 0 20px 70px rgba(23, 32, 27, 0.12);
  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); }
main { width: min(100%, 1080px); margin: 0 auto; padding: 14px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0; max-width: 720px; font-size: clamp(2.4rem, 7vw, 5.8rem); line-height: 0.94; letter-spacing: -0.04em; }
h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.2; }
p { line-height: 1.55; }
.eyebrow { margin: 0 0 12px; color: var(--brick); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.translator-shell { overflow: hidden; border: 1px solid var(--line); background: rgba(255, 254, 250, 0.92); box-shadow: var(--shadow); }
.translator-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 28px 30px 22px; background: linear-gradient(130deg, rgba(96, 118, 106, 0.16), transparent 62%); }
.lede { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.usage-note { max-width: 250px; margin: 0; color: var(--muted); font-size: 0.84rem; text-align: right; }
.claim-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr); gap: 18px 24px; padding: 24px 30px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-field { display: grid; align-content: start; gap: 8px; }
.form-field-wide { grid-row: span 2; }
label { font-weight: 800; }
select, textarea { width: 100%; border: 1px solid #bccac0; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
select { min-height: 46px; padding: 0 12px; }
textarea { min-height: 112px; padding: 12px; resize: vertical; line-height: 1.45; }
select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(35, 78, 115, 0.27); outline-offset: 2px; }
.field-help { margin: 0; color: var(--muted); font-size: 0.8rem; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; align-self: end; }
.session-note { margin: 0; color: var(--muted); font-size: 0.8rem; }
button { min-height: 44px; border: 0; border-radius: 4px; background: var(--blue); color: #fff; cursor: pointer; font: inherit; font-weight: 800; padding: 0 16px; }
button:hover { background: #183c5a; }
button:disabled { cursor: not-allowed; background: #8c9690; }
.output { min-height: 280px; padding: 28px 30px 32px; background: var(--surface); }
.empty-state { display: grid; min-height: 220px; place-content: center; max-width: 510px; margin: 0 auto; text-align: center; }
.empty-mark { margin: 0 0 14px; color: var(--gold); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.08em; }
.empty-state p:last-child { margin-bottom: 0; color: var(--muted); }
.output-card { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.output-header { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.output-header h2 { margin-bottom: 7px; }
.output-header > p:last-child { margin: 0; color: var(--muted); }
.section-card { padding: 18px; border: 1px solid var(--line); background: #fff; }
.section-card h3 { color: var(--blue); }
.section-card p, .section-card ul { margin: 0; color: var(--muted); line-height: 1.5; }
.section-card ul { padding-left: 1.2rem; }
.section-card li + li { margin-top: 6px; }
.owner-note { margin: 2px 0 0; padding: 17px 18px; border-left: 5px solid var(--gold); background: rgba(200, 151, 61, 0.12); color: var(--ink); line-height: 1.5; }
@media (max-width: 700px) {
  main { padding: 8px; }
  .translator-heading { display: block; padding: 22px 18px 18px; }
  .usage-note { max-width: none; margin-top: 12px; text-align: left; }
  .claim-form { display: block; padding: 20px 18px 22px; }
  .form-field + .form-field { margin-top: 18px; }
  .form-actions { margin-top: 20px; align-items: stretch; flex-direction: column-reverse; }
  button { width: 100%; }
  .output { padding: 20px 18px 26px; }
  .section-card { padding: 16px; }
}
