:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #58645e;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --line: #d8ded9;
  --green: #126446;
  --green-soft: #e7f4ed;
  --amber: #7b5000;
  --amber-soft: #fff4d7;
  --red: #9b2c2c;
  --red-soft: #fff0f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #eef5ee 0, var(--paper) 32rem);
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero { max-width: 760px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.lede { margin: 22px 0 0; color: var(--muted); font-size: 1.14rem; line-height: 1.6; }

.notice, .panel, .source {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 40px rgba(32, 51, 40, .06);
}

.notice { padding: 20px 22px; border-left: 5px solid var(--amber); background: var(--amber-soft); }
.notice h2, .source h2 { margin: 0 0 8px; font-size: 1.08rem; }
.notice p, .source p { margin: 0; line-height: 1.55; }
.panel { margin-top: 18px; padding: clamp(20px, 4vw, 34px); }

.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.section-heading > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.section-heading h2 { margin: 1px 0 4px; font-size: 1.3rem; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.45; }

.grid { display: grid; gap: 18px; margin-top: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label { display: grid; gap: 8px; font-weight: 750; line-height: 1.35; }
label span { font-weight: 500; color: var(--muted); }
input, select, button { font: inherit; }
input, select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid #aeb9b2;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #7bc6a8; outline-offset: 2px; }
.input-suffix { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid #aeb9b2; border-radius: 10px; overflow: hidden; background: white; }
.input-suffix input { border: 0; border-radius: 0; }
.input-suffix > span { padding: 0 14px; color: var(--ink); font-weight: 800; }
.optional { max-width: 310px; margin-top: 18px; }

.confirm { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 11px; margin-top: 24px; padding: 16px; border-radius: 12px; background: #f2f5f2; }
.confirm input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.confirm span { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
button { min-height: 48px; border: 0; border-radius: 10px; padding: 11px 18px; color: white; background: var(--green); font-weight: 800; cursor: pointer; }
button.secondary { border: 1px solid #aeb9b2; color: var(--ink); background: white; }

.status { margin: 0; border-radius: 12px; padding: 18px; font-size: 1.2rem; font-weight: 850; }
.status-unknown { color: var(--amber); background: var(--amber-soft); }
.status-error { color: var(--red); background: var(--red-soft); }
.status-ready { color: var(--green); background: var(--green-soft); }
.errors { margin: 16px 0 0; padding-left: 24px; color: var(--red); line-height: 1.6; }
.steps { margin: 18px 0 0; }
.step { display: grid; grid-template-columns: minmax(130px, .55fr) 1.45fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.step dt { color: var(--muted); font-weight: 750; }
.step dd { display: grid; gap: 5px; margin: 0; }
.step dd strong { font-size: 1.08rem; overflow-wrap: anywhere; }
.step dd span { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }

.source { margin-top: 18px; padding: 22px; }
.source p + p { margin-top: 10px; }
a { color: var(--green); font-weight: 750; }

@media (max-width: 720px) {
  main { width: min(100% - 22px, 960px); padding-top: 32px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
}

@media print {
  body { background: white; }
  main { width: 100%; padding: 0; }
  form, .notice, .actions { display: none; }
  .panel, .source { box-shadow: none; break-inside: avoid; }
}
