:root {
  color-scheme: light dark;
  --page: #f4f6f8;
  --surface: #ffffff;
  --ink: #26343e;
  --muted: #62707c;
  --line: #d4dce2;
  --soft: #f4f6f8;
  --action: #314b5e;
  --on-action: #ffffff;
  --important-surface: #fff8e8;
  --important-line: #a76b12;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141b21;
    --surface: #1e252c;
    --ink: #e5ebf0;
    --muted: #a8b6c2;
    --line: #45515b;
    --soft: #29343d;
    --action: #c6d9e6;
    --on-action: #1c2d39;
    --important-surface: #302a1e;
    --important-line: #e0b65e;
  }
}

* { box-sizing: border-box; }
body { margin: 0; padding: 56px 24px; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
h1:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font-size: 1rem; line-height: 1.5; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 500; }
.app-window { width: 100%; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.app-header { display: flex; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.brand { font-size: .875rem; font-weight: 600; letter-spacing: .035em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
main { padding: 30px 28px 22px; }
.step-label { color: var(--muted); font-size: .875rem; margin-bottom: 8px; }
.description { color: var(--muted); margin-top: 10px; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 23px 20px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.choice:hover { border-color: var(--action); background: var(--soft); }
.choice-label { flex: 1; min-width: 0; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.choice .icon { color: var(--muted); }
.choice .icon:last-child { width: 17px; height: 17px; }
.breadcrumbs { font-size: .875rem; margin-bottom: 23px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; gap: 8px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumb-separator { color: var(--muted); }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; }
.text-link .icon { width: 17px; height: 17px; }
.secondary { font-size: .875rem; color: var(--muted); }
.step-progress { display: flex; gap: 6px; }
.step-mark { width: 22px; height: 3px; border-radius: 2px; background: var(--line); }
.step-mark.is-active { background: var(--action); }
.guide-content { margin-top: 26px; }
.instructions h2 { margin-bottom: 12px; }
.instruction-list { margin: 0; padding-left: 22px; }
.instruction-list > li { padding-left: 3px; margin-bottom: 24px; }
.instruction-list > li::marker { font-weight: 600; }
.instruction-list p { color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.instruction-details { padding-left: 22px; margin: 0; overflow-wrap: anywhere; }
.instruction-details > li { padding-left: 3px; margin-bottom: 10px; }
.instruction-details > li:last-child, .instruction-list > li:last-child { margin-bottom: 0; }
.instruction-list > .instruction-important { padding: 16px; border-left: 3px solid var(--important-line); border-radius: 0 8px 8px 0; background: var(--important-surface); }
.instruction-important h2 { font-weight: 700; }
.instruction-important .instruction-details > li + li { margin-top: 20px; }
.instruction-important p { color: var(--ink); }
.form-action { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 9px; background: var(--action); color: var(--on-action); text-decoration: none; font-weight: 500; text-align: center; }
.primary-action:hover { opacity: .9; }
.primary-action:disabled { opacity: .45; cursor: not-allowed; }
.primary-action .icon { width: 18px; height: 18px; }
.form-action p { margin-top: 10px; }

@media (max-width: 540px) {
  body { padding: 18px 12px; }
  .app-window { border-radius: 18px; }
  .app-header { padding: 14px 18px 18px; }
  .brand { min-height: 36px; }
  main { padding: 24px 18px 18px; }
  h1 { font-size: 1.5rem; }
  .choices { grid-template-columns: 1fr; }
  .choices { gap: 12px; }
  .choice { padding: 20px 16px; min-height: 76px; }
  .primary-action { width: 100%; padding-inline: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .choice, .text-link { transition: background-color .12s ease, border-color .12s ease; }
}
