:root {
  --paper:#E8E6E8; --white:#FFFFFF; --ink:#1D1D1B; --grey:#5E5C5A; --hair:#D4D2D4; --red:#FF313C;
  --font:ui-rounded,"SF Pro Rounded",system-ui,-apple-system,sans-serif;
  --ink2:#5E5C5A; --ink3:#5E5C5A; --surf:#FFFFFF;
  color-scheme:light;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body.nilla-auth { display:block; margin:0; min-height:100vh; min-height:100dvh; background:var(--paper); color:var(--ink); font-family:var(--font); font-size:17px; line-height:1.35; -webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased; }
.nilla-auth p,.nilla-auth h1,.nilla-auth h2 { margin:0; }
.nilla-auth button,.nilla-auth input { font:inherit; color:inherit; }
.nilla-auth a { color:inherit; }
.nilla-auth .tbar { height:44px; border-bottom:1px solid var(--hair); display:flex; align-items:center; }
.nilla-auth .tbar .in { width:100%; padding:0 5px 0 16px; display:flex; align-items:center; justify-content:space-between; }
.nilla-auth .logo { display:flex; align-items:center; min-height:44px; }
.nilla-auth .tbar img { height:20px; display:block; width:auto; }
.nilla-auth .menuk { width:44px; height:44px; display:grid; place-items:center; border:0; background:none; cursor:pointer; }
.nilla-auth .menuk svg { width:24px; height:24px; }
.nilla-auth .col { width:min(100% - 32px,430px); max-width:none; margin:0 auto; padding:24px 0 32px; display:flex; flex-direction:column; }
.nilla-auth .lockup { display:flex; justify-content:center; margin:8px 0 0; gap:0; font-family:var(--font); }
.nilla-auth .lockup .hl { display:inline-flex; flex-direction:column; }
.nilla-auth .lockup .r1 { align-self:flex-start; white-space:nowrap; font-size:34px; font-weight:800; line-height:1; }
.nilla-auth .lockup .r1 img { display:inline-block; vertical-align:baseline; height:var(--lh,50px); width:auto; margin-bottom:var(--lb,-2px); }
.nilla-auth .lockup .t1 { margin-left:.25em; font-size:34px; font-weight:800; line-height:1; }
.nilla-auth .lockup .t2 { display:block; align-self:flex-start; margin-top:8px; font-size:17px; font-weight:400; line-height:1.2; text-transform:uppercase; white-space:nowrap; letter-spacing:var(--ls,.1em); margin-right:calc(-1 * var(--ls,.1em)); }
.nilla-auth .board { background:var(--white); border-radius:12px; padding:16px; display:flex; flex-direction:column; margin-top:24px; box-shadow:none; }
.nilla-auth .board h1,.nilla-auth .board h2 { font-size:22px; font-weight:800; line-height:1.2; text-align:left; letter-spacing:normal; }
.nilla-auth label { display:block; margin:0; font-size:13px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); }
.nilla-auth input[type=email] { display:block; width:100%; height:44px; min-height:44px; margin-top:8px; border:0; border-radius:6px; background:var(--paper); padding:0 12px; font-family:var(--font); font-size:17px; outline:none; color:var(--ink); }
.nilla-auth input[type=email]:focus { box-shadow:inset 0 0 0 2px var(--ink); }
.nilla-auth .small { font-size:15px; font-weight:400; color:var(--grey); margin-top:8px; }
.nilla-auth .key,.nilla-auth .primary,.nilla-auth .btn-magic { min-height:44px; width:100%; border:0; border-radius:6px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:15px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; padding:10px 12px; }
.nilla-auth .key:active { transform:translateY(1px); }
.nilla-auth .red,.nilla-auth .primary,.nilla-auth .btn-magic { background:var(--red); color:var(--white); margin-top:16px; }
.nilla-auth .key.google { margin-top:16px; background:var(--white); color:var(--ink); box-shadow:inset 0 0 0 1.5px rgba(29,29,27,.14); text-transform:none; letter-spacing:0; height:44px; }
.nilla-auth .key.google svg { width:18px; height:18px; flex:none; }
.nilla-auth .or { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:16px 0; font-size:13px; font-weight:800; letter-spacing:.1em; color:var(--grey); }
.nilla-auth .or::before,.nilla-auth .or::after { content:""; height:1px; background:var(--hair); }
.nilla-auth .help { font-size:15px; font-weight:400; color:var(--grey); margin-top:16px; }
.nilla-auth .foot { font-size:15px; font-weight:400; color:var(--grey); text-align:center; text-wrap:balance; margin-top:24px; padding:0 8px; }
.nilla-auth button:disabled { opacity:.6; cursor:wait; }
.nilla-auth button:focus-visible,.nilla-auth a:focus-visible,.nilla-auth [tabindex="-1"]:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.nilla-auth .error,.nilla-auth .err { font-size:15px; font-weight:400; color:var(--ink); overflow-wrap:anywhere; margin-top:8px; min-height:0; border:0; padding:0; }
.nilla-auth .err:empty { display:none; }
.nilla-auth .hint,.nilla-auth .status { font-size:15px; color:var(--grey); margin-top:8px; }
.nilla-auth .board section>p,.nilla-auth .check-card p { margin-top:8px; }
.nilla-auth .text-button,.nilla-auth .btn-retry { min-height:44px; background:none; border:0; padding:10px 0; color:var(--ink); text-decoration:underline; text-underline-offset:4px; font-size:15px; font-weight:800; cursor:pointer; }
.nilla-auth .email { overflow-wrap:anywhere; font-weight:800; }
.nilla-auth .check-card,.nilla-auth .mismatch-card { background:transparent; padding:0; border:0; border-radius:0; text-align:left; }
.nilla-auth .check-card p[style] { font-size:15px!important; color:var(--grey)!important; }
.nilla-auth b { font-weight:800; }
.nilla-auth .state { width:100%; }
.nilla-auth .skeleton { height:16px; border-radius:4px; background:var(--paper); margin:12px 0; width:85%; }
.nilla-auth .skeleton.short { width:55%; }
.nilla-auth .skeleton.button { width:100%; height:44px; margin-top:24px; }
.nilla-auth .lmenu { background:var(--paper); border-bottom:1px solid var(--hair); }
.nilla-auth .lmin { max-width:462px; margin:auto; padding:0 16px 16px; }
.nilla-auth .lrow { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:60px; border-bottom:1px solid var(--hair); padding:12px 0; text-decoration:none; font-weight:800; }
.nilla-auth .lrow svg { width:24px; height:24px; flex:none; }
.nilla-auth .lrow i { display:block; font-size:15px; font-style:normal; font-weight:400; color:var(--grey); }
.nilla-auth .lkeys { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.nilla-auth .lkeys a { text-decoration:none; margin:0; }
.nilla-auth .ink { background:var(--ink); color:var(--white); }
.nilla-auth dialog { width:min(100% - 32px,430px); max-height:calc(100dvh - 32px); border:0; border-radius:12px; padding:16px; background:var(--white); color:var(--ink); font-family:var(--font); }
.nilla-auth dialog::backdrop { background:rgba(29,29,27,.35); }
.nilla-auth .dh { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.nilla-auth .dh button { width:44px; height:44px; flex:none; border:0; background:var(--paper); border-radius:6px; cursor:pointer; }
.nilla-auth dialog p { margin-top:16px; }
.nilla-auth dialog details { border-top:1px solid var(--hair); padding:12px 0; }
.nilla-auth dialog summary { min-height:44px; cursor:pointer; font-weight:800; padding:10px 0; }
@media(prefers-reduced-motion:reduce) { .nilla-auth * { transition:none!important; animation:none!important; } }
