:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f4f6fa;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
main { width: min(100% - 32px, 560px); margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 0 max(40px, env(safe-area-inset-bottom)); }
header { margin: 24px 0 28px; }
h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.25rem); letter-spacing: -0.045em; }
.eyebrow { margin: 0 0 8px; color: #2563eb; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede, .muted { color: #5d677a; }
.lede { margin: 10px 0 0; line-height: 1.5; }
.card, .auth-card { padding: 24px; border: 1px solid #d9dfeb; border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(17, 24, 39, .06); }
.stack { display: grid; gap: 18px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 4px 16px; color: #5d677a; font-size: .9rem; }
label { display: grid; gap: 8px; font-weight: 650; }
.optional { color: #7a8495; font-size: .8rem; font-weight: 500; }
input, select, button { width: 100%; min-height: 48px; border-radius: 12px; font: inherit; }
input, select { border: 1px solid #c7cfdd; padding: 0 14px; background: white; color: inherit; }
input:focus, select:focus { outline: 3px solid rgba(37, 99, 235, .18); border-color: #2563eb; }
button { border: 0; padding: 0 16px; background: #111827; color: white; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { border: 1px solid #c7cfdd; background: #fff; color: #111827; }
button.danger { color: #b42318; }
.link-button { width: auto; min-height: auto; padding: 6px; background: transparent; color: #2563eb; }
.state { margin: 0; font-weight: 850; letter-spacing: .04em; }
.muted, .error { margin: 6px 0 0; line-height: 1.45; }
.error { padding: 12px; border-radius: 10px; background: #fff1f0; color: #b42318; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; margin: 0; }
.summary dt { color: #5d677a; }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 750; }
[hidden] { display: none !important; }
noscript { display: block; padding: 20px; text-align: center; }

@media (max-width: 420px) {
  main { width: min(100% - 24px, 560px); }
  .card, .auth-card { padding: 20px; border-radius: 16px; }
}
