:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172326;
  background: #edf2f0;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: radial-gradient(circle at 50% 8%, #d9e9e2 0, #edf2f0 52%);
}
.card {
  width: min(100%, 500px);
  padding: clamp(26px, 6vw, 48px);
  background: #fff;
  border: 1px solid #dce5e1;
  border-radius: 20px;
  box-shadow: 0 24px 70px #213b3212;
}
.eyebrow { color: #587468; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 14px 0 10px; font-size: clamp(27px, 6vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
h2 { margin: 8px 0 0; font-size: 18px; }
.intro { margin: 0 0 24px; color: #5f6e69; line-height: 1.55; }
.form-note { margin: 0; color: #687971; font-size: 13px; line-height: 1.5; }
.status { min-height: 48px; margin: 0 0 20px; padding: 13px 15px; border-radius: 10px; background: #f2f6f4; color: #43524d; font-size: 14px; }
.status[data-kind="success"] { background: #eaf6ee; color: #22643a; }
.status[data-kind="error"] { background: #fff0ee; color: #a13d32; }
.account-status { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #f2f6f4; color: #43524d; font-size: 14px; }
.account-status[data-kind="success"] { background: #eaf6ee; color: #22643a; }
.account-status[data-kind="error"] { background: #fff0ee; color: #a13d32; }
.flow-grid { display: grid; gap: 14px; }
.flow-card { padding: 18px; border: 1px solid #dce7e2; border-radius: 14px; background: #fbfdfc; }
.saved-account { background: #f5faf7; border-color: #d4e6db; }
.new-account { background: #fbfcff; border-color: #dce3ef; }
.flow-eyebrow { color: #71857b; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.flow-card h2 { margin: 7px 0 8px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reset-note { margin: 10px 0 0; }
.challenge-form { padding-top: 8px; border-top: 1px solid #dce7e2; }
.qr-panel { display: grid; justify-items: center; gap: 10px; padding: 14px 8px 4px; text-align: center; }
.qr-panel canvas { width: min(240px, 100%); height: auto; padding: 8px; border: 1px solid #dce5e1; border-radius: 10px; background: #fff; }
.qr-expiry { margin: 0; color: #718078; font-size: 12px; }
form { display: grid; gap: 10px; margin-top: 12px; }
[hidden] { display: none !important; }
label { font-size: 13px; font-weight: 650; }
input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid #cad7d1; border-radius: 9px; background: #fff;
  color: inherit; font: inherit; outline: none;
}
input:focus { border-color: #347d61; box-shadow: 0 0 0 3px #347d611c; }
button {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 9px;
  background: #226b4c; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
button:hover { background: #18583d; }
button:disabled { opacity: .58; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button.secondary { min-height: 40px; background: #eef3f0; color: #35463f; font-size: 13px; }
button.secondary:hover { background: #e1ebe6; }
button.danger { color: #994338; }
.danger:hover { background: #f8e9e6 !important; color: #812d24 !important; }
.footnote { margin: 20px 0 0; color: #81908a; font-size: 12px; }
@media (max-width: 420px) {
  .actions { display: grid; }
  .actions button { width: 100%; }
  .flow-actions { display: grid; }
  .flow-actions button { width: 100%; }
}
