:root{font-family:system-ui,sans-serif;color:#e9eef5;background:#122321;color-scheme:dark}*{box-sizing:border-box}body{margin:0}
main{max-width:54rem;margin:0 auto;padding:16px}main.card-page{display:flex;flex-direction:column;align-items:center;padding-top:40px}
.auth-card{width:min(400px,100%);padding:20px 22px;border:1px solid #537165;border-radius:14px;background:#173327;box-shadow:0 10px 30px rgba(0,0,0,.35)}.auth-card h2{margin:4px 0 12px;font-size:1.25rem}
.tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid #537165}.tabs a{flex:1;text-align:center;padding:10px;color:#b4c9c0;text-decoration:none;border-bottom:3px solid transparent}.tabs a[aria-current]{color:#e8f4ec;font-weight:700;border-bottom-color:#ffcf71}
label{display:block;margin:.8rem 0;font-size:.9rem;color:#d9eee1}input:not([type=checkbox]),select{display:block;width:100%;margin-top:4px;font:inherit;padding:.6rem;border:1px solid #537165;border-radius:8px;background:#1c3d32;color:inherit}.check{display:flex;align-items:center;gap:.5rem}.terms-check{align-items:flex-start}.terms-check input{margin-top:.15rem}
/* Buttons: the site's one set (/buttons.css, the Friends page design): compact, a solid primary, quiet outlined others; the main action full width on a phone only. */
button{position:relative;font:inherit;font-size:.9rem;font-weight:600;line-height:1.2;min-height:36px;padding:6px 16px;margin:.4rem 0;border:1px solid #4f7a6c;border-radius:999px;background:transparent;color:#c8e4c9;cursor:pointer}button:hover:not(:disabled){border-color:#91bba9;background:rgba(200,228,201,.08)}button:focus-visible{outline:2px solid #ffcf71;outline-offset:2px}button.primary{background:#c8e4c9;border-color:#c8e4c9;color:#152a23}button.primary:hover:not(:disabled){background:#dcf0dd}@media(max-width:600px){button.primary{width:100%}}@media(pointer:coarse){button:not(.link)::after{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;transform:translateY(-50%)}}button.link{padding:0;border:0;background:none;color:#c8e4c9;text-decoration:underline}
.note{font-size:.85rem;color:#b4c9c0;margin:.3rem 0}.switch{margin:.8rem 0 0;font-size:.9rem;color:#b4c9c0}.switch a{color:#c8e4c9}.divider{display:flex;align-items:center;gap:8px;color:#b4c9c0;font-size:.85rem}.divider::before,.divider::after{content:"";flex:1;border-top:1px solid #537165}
[role=status]{width:min(400px,100%);padding:.8rem 1rem;margin:0 0 12px;border:1px solid #ffcf71;border-radius:10px;color:#ffcf71}section{margin:0 0 1.5rem}a{color:#c8e4c9}.preview{opacity:.8}
.auth-card.wide{width:min(720px,100%)}.avatar-picker{border:0;padding:0;margin:.8rem 0}.avatar-picker legend{font-size:.9rem;color:#d9eee1;margin-bottom:6px}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}.avatar-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0;padding:10px 6px;border:2px solid #537165;border-radius:12px;background:#1c3d32;cursor:pointer;text-align:center;font-size:.75rem;color:#b4c9c0}.avatar-card img{width:72px;height:72px}.avatar-card input{position:absolute;opacity:0;pointer-events:none}.avatar-card:has(input:checked){border-color:#ffcf71;box-shadow:0 0 0 2px rgba(255,207,113,.35);color:#e8f4ec}.avatar-card:has(input:focus-visible){outline:3px solid #ffcf71;outline-offset:2px}.current-avatar{display:flex;align-items:center;gap:10px}.current-avatar img{width:56px;height:56px;border-radius:50%;background:#345a50}
/* Avatar creator (D321): phone first, a large preview, swipeable part tabs,
   then a grid of large choices. */
.avatar-tabs{display:flex;gap:8px;margin:0 0 12px}.avatar-tabs a{padding:6px 12px;border-radius:999px;border:1px solid #91bba9;text-decoration:none}.avatar-tabs a[aria-current=page]{background:#c8e4c9;color:#10251d;font-weight:600}
.avatar-creator{display:flex;flex-direction:column;align-items:center;gap:8px}
.creator-stage{position:sticky;top:0;z-index:2;display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding:8px 0;background:#173327}
.creator-choices{width:100%;min-width:0}
@media (min-width:680px){.avatar-creator{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:start;gap:20px}.creator-stage{top:12px}}
.creator-heading{margin:10px 0 6px;font-size:.95rem;font-weight:600}
.creator-note{margin:0 0 6px;font-size:.8rem;color:#ffcf71}
.creator-section[data-unavailable] .creator-grid{opacity:.4}
.creator-option[aria-disabled=true]{cursor:not-allowed}
.creator-option:focus-visible,.creator-tab:focus-visible{outline:3px solid #ffcf71;outline-offset:2px}
.creator-preview{width:160px;height:160px;border-radius:50%;background:#345a50}
.creator-description{margin:0;font-size:.85rem;text-align:center;color:#b4c9c0}
.creator-controls{display:flex;gap:8px;justify-content:center}
.creator-tabs{display:flex;flex-wrap:wrap;gap:6px;width:100%;padding:4px 0}
.creator-tab{flex:0 0 auto;padding:8px 12px;border-radius:999px;border:1px solid #91bba9;background:transparent;color:inherit;font:inherit}
.creator-tab[aria-selected=true]{background:#c8e4c9;color:#10251d;font-weight:600}
.creator-tab:disabled{opacity:.4;cursor:not-allowed}
.creator-option[data-apart]{margin-right:14px}
.creator-options{width:100%}.creator-section{border:0;padding:0;margin:8px 0}.creator-section legend{font-weight:600;margin-bottom:6px}
.creator-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}
.creator-option{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:44px;padding:6px;border-radius:10px;border:2px solid transparent;background:#0b1917;color:inherit;font:inherit;font-size:.8rem}
.creator-option[aria-checked=true]{border-color:#c8e4c9}
.creator-thumb{width:56px;height:56px;border-radius:8px;background:#345a50}.creator-swatch{width:36px;height:36px;border-radius:50%;border:1px solid #91bba9}
.creator-label{text-align:center;line-height:1.1}
#avatar-creator-form{display:flex;justify-content:center;margin-top:12px}

/* Two-step sign-in (D344): the key and recovery codes wrap on a phone. */
#two-step code{font-family:ui-monospace,Menlo,Consolas,monospace}
#two-step .secret{word-break:break-all}
.setup-qr{width:min(220px,100%);margin:.4rem 0 .8rem}.setup-qr svg{display:block;width:100%;height:auto}
.recovery-codes{columns:2;column-gap:24px;padding-left:1.4em}
@media (max-width:420px){.recovery-codes{columns:1}}
/* Show password (show-password.js): the eye sits inside the field's right edge, a 44 px target. */
.password-field{position:relative;display:block;margin-top:4px}.password-field input:not([type=checkbox]){margin-top:0;min-height:44px;padding-right:48px}
.password-toggle{position:absolute;top:0;right:0;bottom:0;width:44px;margin:0;padding:0;border:0;background:none;color:#b4c9c0;display:grid;place-items:center}.password-toggle:hover{color:#e8f4ec}.password-toggle:focus-visible{outline:3px solid #ffcf71;outline-offset:-3px;border-radius:8px}
.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.password-toggle-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Terms of use (D381): the registration box's text wraps beside it; the Account page lists acceptances. */
.terms-check{align-items:flex-start}.terms-check input{margin-top:3px;flex:none}.terms-check a,.terms-history a{color:#ffcf71}.terms-history ul{margin:.4rem 0;padding-left:1.2rem}
.password-strength{margin:4px 0 10px;font-size:.9rem;color:#b4c9c0;min-height:1.2em}.password-strength[data-level=weak]{color:#f2b8b5}.password-strength[data-level=ok]{color:#ffcf71}.password-strength[data-level=strong]{color:#9fe0b5}
.contact-form textarea{width:100%;min-height:9em;font:inherit;resize:vertical}.contact-form select{display:block;margin-top:4px;min-height:44px;width:100%;font:inherit}.contact-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* The username a password manager saves (D416): the account page's copy is
   hidden (the input rule above would otherwise show it); a shown one is
   read-only and looks it. */
input[hidden]{display:none}input[readonly]{background:transparent;color:#b4c9c0}
/* Card faces on the Settings page (D490): two choices side by side, each a
   small card drawn in its style; 16 px text and large targets (D486). On a
   guest's page it is a card above the sign-in card. */
.settings-section{width:min(400px,100%);margin:0 0 1.5rem}main.card-page .settings-section{padding:16px 22px;border:1px solid #537165;border-radius:14px;background:#173327}
main.card-page .settings-section h2{margin:4px 0 8px;font-size:1.25rem}
.settings-note,.settings-saved{font-size:1rem;line-height:1.4;color:#b4c9c0;margin:.4rem 0}.settings-saved:empty{display:none}
.face-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:.6rem 0}
.face-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:12px 8px;border:2px solid #537165;border-radius:12px;background:#1c3d32;cursor:pointer;text-align:center;font-size:1rem;color:#d9eee1}
.face-choice input{position:absolute;display:block;width:1px;height:1px;margin:0;padding:0;opacity:0;pointer-events:none}
.face-choice:has(input:checked){border-color:#ffcf71;box-shadow:0 0 0 2px rgba(255,207,113,.35)}
.face-choice:has(input:focus-visible){outline:3px solid #ffcf71;outline-offset:2px}
.face-choice:has(input:disabled){cursor:default;opacity:.7}
.face-text{display:flex;flex-direction:column;gap:2px;line-height:1.3}.face-text strong{font-size:1.1rem;color:#e8f4ec}.face-text span{font-size:1rem;color:#b4c9c0}
.face-preview{position:relative;display:block;flex:none;width:48px;height:68px;border-radius:6px;background:#fff8ec;color:#1d2b25;box-shadow:0 2px 6px rgba(0,0,0,.35);font-size:16px;line-height:1}
.face-rank{position:absolute;left:5px;top:4px}.face-preview.large .face-rank{font-size:1.3em;font-weight:800}
.face-pip{position:absolute;left:50%;top:62%;transform:translate(-50%,-50%);font-size:1.9em}
/* Settings tabs (D496): one row of four that fits a 320 px phone, the open
   tab underlined, each a 48 px tall tap. */
.settings-tabs{display:flex;margin:0 0 16px;border-bottom:1px solid #537165;position:sticky;top:var(--page-bar-height,0);z-index:50;background:#122321}
.settings-tabs a{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 4px;color:#b4c9c0;text-decoration:none;white-space:nowrap;font-size:1rem;border-bottom:3px solid transparent;margin-bottom:-1px}
.settings-tabs a[aria-selected=true]{color:#e8f4ec;font-weight:700;border-bottom-color:#ffcf71}
.settings-tabs a:focus-visible{outline:2px solid #ffcf71;outline-offset:-2px}
/* Email and Password on the Sign-in tab: a line ending in Change, which
   opens its form (a <details>). */
.change-row{margin:0 0 .5rem;border-bottom:1px solid #2f4d43}
.change-row summary{display:block;padding:12px 0;line-height:1.5;cursor:pointer;list-style:none;font-size:1rem}.change-row summary::-webkit-details-marker{display:none}
.change-what{overflow-wrap:anywhere}.change-link{color:#ffcf71;text-decoration:underline}.change-row details[open] .change-link{text-decoration:none;font-weight:700}
.change-row summary:focus-visible{outline:2px solid #ffcf71;outline-offset:2px;border-radius:4px}
.change-row form{padding:0 0 .6rem}
.blocked-row{display:flex;flex-wrap:wrap;align-items:center;gap:0 .6rem}
/* An invite link's welcome over the Register form (#1426). */
.invited{margin:0 0 14px;padding:10px 12px;border:1px solid #ffcf71;border-radius:10px;background:#173327;color:#e9eef5}
/* Sign-up's first and last name side by side (#1429). */
.name-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.name-row label{min-width:0}.name-row input{width:100%}
/* Delete account (#361), on the Privacy tab: an outlined button in the error
   colour opens a confirm box (a <dialog>; without JavaScript the same box is
   drawn open by ?change=delete); the box's own Delete account is filled. */
.delete-account p{font-size:.9rem;line-height:1.4;color:#b4c9c0}
.btn-danger,.delete-dialog button.danger{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.9rem;font-weight:600;line-height:1.2;min-height:36px;padding:6px 16px;margin:.4rem 0;border:1px solid #f2b8b5;border-radius:999px;background:transparent;color:#f2b8b5;text-decoration:none;cursor:pointer}
.btn-danger:hover,.delete-dialog button.danger:hover{background:rgba(242,184,181,.1)}
.btn-danger:focus-visible{outline:2px solid #ffcf71;outline-offset:2px}
.delete-dialog button.danger{background:#f2b8b5;color:#2a1210}.delete-dialog button.danger:hover{background:#f7cfcd}
.delete-dialog{width:min(400px,calc(100% - 32px));padding:20px 22px;border:1px solid #91bba9;border-radius:14px;background:#173327;color:#e9eef5;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.delete-dialog::backdrop{background:rgba(0,0,0,.65)}
.delete-dialog[open]:not(:modal){margin:0 0 1.5rem}
.delete-dialog h2{margin:0 0 .6rem;font-size:1.25rem}
.delete-dialog p{margin:.4rem 0;font-size:1rem;line-height:1.4}
.delete-dialog .dialog-notice{padding:.6rem .8rem;border:1px solid #ffcf71;border-radius:10px;color:#ffcf71;font-size:.9rem}
.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:.6rem}.dialog-actions button{margin:0}
