.identity-dialog{width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #ffffff30;border-radius:22px;padding:28px;background:#1c2949;color:#fffdf7;box-shadow:0 25px 90px #070e2970;font-family:"Outfit",system-ui,sans-serif}.identity-dialog::backdrop{background:#080f25b3;backdrop-filter:blur(5px)}.identity-spark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ffda65;color:#17213f;font-size:26px;margin-bottom:18px}.identity-dialog .identity-eyebrow{font-size:10px;letter-spacing:1.5px;color:#ffda65;font-weight:700;margin:0 0 8px}.identity-dialog h2{font:700 28px/1.15 "Outfit",sans-serif;color:#fffdf7;margin:0 0 12px}.identity-explanation{color:#c0c8dd;font-size:14px;line-height:1.5;margin:0 0 20px}.identity-fields{display:grid;gap:14px}.identity-dialog label{display:grid;gap:7px;font-size:13px;color:#fffdf7}.identity-dialog input,.identity-dialog select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #ffffff40;background:#111c35;color:#fffdf7;border-radius:10px;padding:12px;font:400 16px "Outfit",sans-serif}.identity-dialog input[type=password]{letter-spacing:.3em}.identity-birthday{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.identity-error{color:#ffb6bd;font-size:13px;line-height:1.5;min-height:20px;margin:15px 0}.identity-actions{display:flex;gap:10px}.identity-actions button{font:700 13px "Outfit",sans-serif;border:1px solid #ffffff30;background:transparent;color:#fffdf7;border-radius:10px;padding:12px;cursor:pointer;min-height:44px}.identity-actions .identity-submit{margin-left:auto;color:#17213f;background:#ffda65;border-color:#ffda65}.identity-dialog button:disabled{opacity:.5;cursor:wait}.identity-dialog small{display:block;margin-top:16px;font-size:11px;color:#c0c8dd;line-height:1.5}.identity-dialog :focus-visible{outline:3px solid #ffda65;outline-offset:3px}

/* Keep the dialog inside the viewport, including native mobile form controls. */
.identity-dialog,
.identity-dialog * { box-sizing:border-box; }
.identity-dialog {
  width:min(440px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
}
.identity-form { width:100%; min-width:0; margin:0; }
.identity-fields,
.identity-fields label { min-width:0; }
.identity-birthday { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.identity-dialog input,
.identity-dialog select { display:block; height:48px; min-height:48px; margin:0; }
.identity-error:empty { display:none; }
.identity-actions { margin-top:24px; align-items:stretch; }
.identity-actions button { white-space:normal; text-align:center; line-height:1.35; }
@media(max-width:480px) {
  .identity-dialog { padding:24px 20px; border-radius:20px; }
  .identity-dialog h2 { font-size:26px; }
  .identity-explanation { font-size:14px; margin-bottom:20px; }
  .identity-birthday { gap:12px; }
  .identity-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  .identity-actions button { width:100%; min-width:0; min-height:48px; padding:12px 14px; }
  .identity-actions .identity-submit { order:-1; margin:0; }
  .identity-dialog small { line-height:1.6; }
}
