:root { --bg: #f4f6fb; --card: #ffffff; --text: #111827; --muted: #4b5563; --line: #d1d5db; --field: transparent; --accent: #1e66f5;
        --on-accent: #ffffff; --err: #b42318; --ok: #166534; --title: var(--accent); --glow: none; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b1220; --card: #131c2e; --text: #f3f4f6; --muted: #9ca3af; --line: #2b3548; --accent: #64b5f6; --on-accent: #0b1220; --err: #fca5a5; --ok: #86efac; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
       background: var(--bg) var(--glow) no-repeat; color: var(--text);
       font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
#card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
/* The app's name at the top of the sign-in screens (not on the account screens: they cover every app). */
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand-name { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: .01em;
              background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { margin: 0 0 6px; font-size: 22px; }
.sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.field { display: block; margin: 12px 0; font-size: 14px; color: var(--muted); }
.field input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font-size: 16px; color: var(--text);
               background: var(--field); border: 1px solid var(--line); border-radius: 10px; }
.primary { width: 100%; margin-top: 10px; padding: 12px; font-size: 16px; font-weight: 600; color: var(--on-accent); background: var(--accent);
           border: 0; border-radius: 10px; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: default; }
.link { display: block; margin-top: 14px; font-size: 14px; color: var(--accent); text-decoration: none; }
.msg { min-height: 1em; margin: 0; font-size: 14px; }
.msg[data-tone="error"] { color: var(--err); } .msg[data-tone="info"] { color: var(--ok); }
#qr { display: block; margin: 8px auto; background: #fff; border-radius: 8px; padding: 6px; }
#secret { display: block; word-break: break-all; font-size: 14px; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; }
.secondary { width: 100%; margin-top: 10px; padding: 11px; font-size: 15px; font-weight: 600; color: var(--accent); background: transparent;
             border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.secondary:disabled { opacity: .6; cursor: default; }
.choices { display: grid; gap: 8px; margin: 14px 0 4px; }
.choice { text-align: left; padding: 12px 14px; color: var(--text); background: transparent; border: 1px solid var(--line);
          border-radius: 12px; cursor: pointer; font: inherit; }
.choice[aria-checked="true"] { border: 2px solid var(--accent); padding: 11px 13px; }
.choice:disabled { opacity: .55; cursor: default; }
.choice-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.choice-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 2px 8px; }
h2.section { margin: 18px 0 4px; font-size: 15px; }
.row { margin: 4px 0; font-size: 14px; color: var(--muted); }
.link.inline { display: inline; margin: 0; }
/* "Continue as this account?": the account's full email, big enough to read (2026-11-08, login CSRF fix). */
.who { margin: 4px 0 8px; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
/* The required terms box on "Create account" and "Start my … account" (2026-11-08). */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.agree label { line-height: 1.4; cursor: pointer; }
.agree .link.inline { text-decoration: underline; }
.foot { margin-top: 18px; border-top: 1px solid var(--line); }
.foot:empty { display: none; }
  