
:root { color-scheme: light; --accent: #05163d; --line: #e5e5e5; --muted: #666666; --warn: #a32929; --ok: #286548; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #202020; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; font-size: 16px; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
.auth-layout { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-brand { padding: 28px; }
.auth-brand img { width: 136px; height: auto; opacity: .8; display: block; }
.auth-page-card { width: min(360px, calc(100vw - 40px)); margin: 60px auto 36px; text-align: center; }
.auth-page-card.wide { width: min(480px, calc(100vw - 40px)); text-align: left; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -.6px; margin: 8px 0 14px; }
.wide h1 { font-size: 26px; }
h2 { font-size: 16px; font-weight: 500; margin: 28px 0 8px; }
.lead, .auth-description { color: var(--muted); line-height: 1.65; font-size: 14px; margin: 16px 0 24px; overflow-wrap: anywhere; }
.small { font-size: 12px; color: #737373; line-height: 1.5; }
button, a.button { width: 100%; min-height: 48px; border: 1px solid #d9d9d9; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #202020; margin: 12px 0 0; padding: 0 18px; cursor: pointer; text-decoration: none; text-align: center; }
button:hover, a.button:hover { background: #f7f7f7; }
button.primary, a.button.primary { background: #242424; color: #fff; border-color: #242424; }
button.primary:hover, a.button.primary:hover { background: #363636; }
button:disabled { cursor: default; opacity: .45; }
button svg, a.button svg { width: 18px; height: 18px; flex-shrink: 0; }
label { display: block; text-align: left; margin: 16px 0 6px; font-size: 12px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
input { width: 100%; height: 50px; border: 1px solid #dedede; border-radius: 28px; padding: 0 18px; background: #fff; color: #202020; }
input:disabled { background: #f7f7f7; color: #888; }
.auth-divider { display: flex; align-items: center; gap: 20px; margin: 24px 0; font-size: 11px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice, .auth-notice { padding: 14px; background: #f6f6f6; border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 20px 0; text-align: left; }
.switch { margin-top: 28px; font-size: 14px; color: var(--muted); }
.switch a { color: #202020; text-decoration: underline; text-underline-offset: 2px; }
.auth-legal { display: flex; justify-content: center; gap: 12px; margin-top: 48px; font-size: 13px; color: var(--muted); }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.actions { display: grid; gap: 0; margin-top: 12px; }
/* A display rule would otherwise show what the script hid (the decision buttons once decided). */
[hidden] { display: none !important; }
ul.lines { padding-left: 1.2rem; margin: 8px 0 16px; }
ul.lines li { margin: 6px 0; }
ul.ways-in, ul.websites { list-style: none; padding: 0; margin: 0; }
ul.ways-in li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ededed; }
ul.websites li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ededed; }
ul.websites li span { display: block; }
ul.websites button, ul.websites a.button { width: auto; min-height: 36px; margin: 0; padding: 0 14px; font-size: 14px; }
ul.websites .row-actions { display: flex; gap: 8px; }
/* An address to open on another device: whole on one tap (user-select: all), so it copies in one piece. */
.address { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 12px 14px; border: 1px solid #dedede; border-radius: 12px; margin: 8px 0; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
/* The code a person compares with the one their device shows: large, spaced, never broken mid-group. */
.fingerprint { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 1px; line-height: 1.5; padding: 14px; border: 1px solid #dedede; border-radius: 12px; text-align: center; margin: 8px 0; overflow-wrap: anywhere; }
details.add-email { margin-top: 16px; }
details.add-email summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.card { border: 1px solid #e1e5e9; border-radius: 14px; padding: 12px 14px; margin: 8px 0; overflow-wrap: anywhere; background: linear-gradient(135deg, #edf2f7, #dce5ee); color: #172537; }
#message { min-height: 24px; color: var(--warn); font-size: 13px; margin: 16px 0 0; }
#message.ok { color: var(--ok); }
@media (max-width: 480px) { .auth-page-card { margin-top: 32px; } .auth-brand { padding: 24px; } }
