/* Authr's pages, in the Creatorverse 2026 palette: Midnight Ink and Cyber Pink at one end, Ice Blue
   and Ivory at the other, Chartreuse between them. Headings in Bricolage Grotesque, text in Work Sans
   (both served from here; nothing is loaded from another site). Light only.
   Sign-in pages are a white card on Midnight Ink; /account is cards on Ivory under an Ink bar. */
@font-face { font-family: "Work Sans"; src: url(/static/fonts/work-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/static/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #13131e; --pink: #f421bd; --chartreuse: #cbe242; --ice: #cee8f7;
  --primary: #13131e; --primary-hover: #2c2c40; --primary-lighter: #f3f9fd;
  /* Text and focus pink: dark enough to read on white (6.5:1). */
  --link: #b0148a; --link-hover: #8f0f70;
  --surface: #ffffff; --surface-raised: #f6f2e3; --page: #faf7ea;
  --text: #1d1d2b; --text-muted: #5f5f6e;
  --border: #cfc9b4; --border-soft: #ebe7d9; --border-hover: #a8a28e;
  --danger: #b3261e; --danger-bg: #fff1f0; --info-bg: #fde4f6; --ok: #1e6b34; --ok-bg: #e6f4ea;
  --radius-control: 8px; --radius-card: 14px;
  --font: "Work Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Work Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(19, 19, 30, 0.04), 0 2px 8px rgba(19, 19, 30, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--text);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: 26px; line-height: 32px; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 16px; line-height: 24px; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
button, input { font: inherit; color: inherit; }
/* One focus style everywhere: a solid ring that reads on white, ivory and ink alike. */
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.auth :focus-visible, .topbar :focus-visible { outline-color: #ff8ee0; }
.auth .card :focus-visible { outline-color: var(--link); }

/* The brand's moving line across the top of every page. */
.rail { flex: none; height: 3px; background: linear-gradient(90deg, #f421bd, #ec47a5, #cbe242, #cee8f7, #f421bd, #ec47a5, #cbe242, #cee8f7, #f421bd);
  background-size: 200% 100%; animation: flow-x 12s linear infinite; }
@keyframes flow-x { to { background-position: -200% 0; } }
@keyframes aurora { from { background-position: 0% 0%, 0% 0%, 0 0; } to { background-position: 100% 100%, 100% 100%, 0 0; } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.brand { font: 700 20px/28px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }

/* ---- Sign-in pages: one card on Midnight Ink, a pink and an ice glow behind it, the star grid turning. ---- */
body.auth { position: relative; isolation: isolate; overflow-x: hidden; color: #fff;
  background: radial-gradient(55vw 55vh at 8% 4%, rgba(244, 33, 189, 0.3), transparent 70%),
    radial-gradient(50vw 50vh at 96% 100%, rgba(206, 232, 247, 0.16), transparent 70%), var(--ink);
  background-size: 130% 130%, 130% 130%, auto; animation: aurora 22s ease-in-out infinite alternate; }
body.auth::before { content: ""; position: absolute; z-index: -1; right: -6vw; top: -8vh; width: min(70vw, 760px); aspect-ratio: 1;
  background: url(/static/star-grid.png) center / contain no-repeat; opacity: 0.22; pointer-events: none; animation: drift 160s linear infinite; }
.shell { flex: 1; display: grid; place-items: center; padding: 48px 16px; }
.card { background: var(--surface); color: var(--text); border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.auth .card { width: 100%; max-width: 440px; padding: 32px; display: flex; flex-direction: column; gap: 16px;
  border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(19, 19, 30, 0.06);
  animation: fade-in 0.16s ease-out; }
.auth .card > form { display: flex; flex-direction: column; gap: 12px; }
.auth .card > form > .link { align-self: center; }
.auth .brand { margin-bottom: 4px; font-size: 16px; line-height: 20px; color: var(--text-muted); }
.auth h1 + .sub { margin-top: -12px; }
.context { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.context strong { color: var(--text); font-weight: 600; }

.sub { color: var(--text-muted); }
.sub strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.hint { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.alt { text-align: center; font-size: 14px; color: var(--text-muted); }
.alt-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }

/* ---- Fields. 16px text, so phones do not zoom in on focus; 48px tall, a comfortable target. ---- */
label, .label { display: block; font-weight: 500; font-size: 14px; }
label + input, label + .reveal, label + .inline { margin-top: -6px; }
input:not([type=hidden]) { width: 100%; height: 48px; padding: 0 14px; font-size: 16px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-control); transition: border-color 0.15s; }
input:not([type=hidden]):hover { border-color: var(--border-hover); }
input:not([type=hidden]):focus-visible { border-color: var(--link); outline-offset: 0; border-radius: var(--radius-control); }
input::placeholder { color: #9a9aa6; }
/* The 6-digit code: one field drawn as six places. The digits are spaced to land one per place;
   the field runs on past the last place (clipped by the box) so that the caret after the sixth
   digit does not push the others along. */
.code-box { --cell: 46px; --gap: 8px; align-self: center; width: calc(6 * var(--cell) + 5 * var(--gap)); max-width: 100%; height: 58px; overflow: hidden; border-radius: var(--radius-control);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='58'%3E%3Crect x='.5' y='.5' width='45' height='57' rx='8' fill='%23fff' stroke='%23cfc9b4'/%3E%3C/svg%3E") 0 0 repeat-x; }
.code-box:focus-within { outline: 3px solid var(--link); outline-offset: 4px; }
.code-box input.code-input { width: calc(100% + 80px); height: 58px; padding: 0 0 0 calc((var(--cell) - 1ch) / 2); border: 0; border-radius: 0; background: none; outline: none;
  font: 600 26px/58px ui-monospace, Menlo, Consolas, monospace; letter-spacing: calc(var(--cell) + var(--gap) - 1ch); caret-color: var(--link); }
label + .code-box { margin-top: -2px; margin-bottom: 6px; }
@media (max-width: 380px) {
  .code-box { --cell: 36px; --gap: 6px; height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='50'%3E%3Crect x='.5' y='.5' width='35' height='49' rx='7' fill='%23fff' stroke='%23cfc9b4'/%3E%3C/svg%3E"); }
  .code-box input.code-input { height: 50px; font-size: 22px; line-height: 50px; }
}
.reveal { position: relative; width: 100%; }
.reveal input { padding-right: 68px !important; }
.reveal .link { position: absolute; right: 4px; top: 2px; bottom: 2px; padding: 0 10px; font-weight: 600; }

/* ---- Buttons: pills, 48px. The one thing to do next is pink; the rest are outlined. ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; list-style: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s; }
.button::-webkit-details-marker { display: none; }
.button:hover { border-color: var(--border-hover); background: var(--surface-raised); color: var(--text); }
.button:active { transform: scale(0.98); }
.button:focus-visible { border-radius: 999px; }
/* White on these pinks is at least 4.8:1. */
.button.primary { position: relative; overflow: hidden; border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #d1179f, #9c1079); box-shadow: 0 6px 18px rgba(209, 23, 159, 0.3); }
.button.primary:hover { background: linear-gradient(135deg, #dc1ba9, #a91383); box-shadow: 0 8px 24px rgba(209, 23, 159, 0.42); transform: translateY(-1px); color: #fff; }
.button.primary:active { background: linear-gradient(135deg, #b0148a, #850d66); transform: scale(0.98); }
.button.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-120%); pointer-events: none; }
.button.primary:hover::after { animation: sheen 0.9s ease-out; }
.button.provider { border: 2px solid var(--primary); color: var(--primary); }
.button svg { flex: none; width: 20px; height: 20px; }
.button .out { font-size: 14px; color: var(--text-muted); }
.button.primary .tag { background: rgba(255, 255, 255, 0.22); color: #fff; }
.link:disabled { color: var(--text-muted); cursor: default; text-decoration: none; }
.suggest .link { display: inline; min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; }
.auth .card > form > .hint { margin-top: -6px; }
.button.provider:hover { border-color: var(--primary-hover); background: var(--primary-lighter); color: var(--primary-hover); }
.button.danger-solid { border-color: transparent; background: var(--danger); color: #fff; }
.button.danger-solid:hover { background: #981f18; color: #fff; }
.button.busy { pointer-events: none; opacity: 0.75; }
.button.busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.providers { display: flex; flex-direction: column; gap: 10px; }
/* Text buttons and links that act: padded out to a 44px target without looking bigger. */
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; font-size: 15px; font-weight: 500;
  color: var(--link); text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; color: var(--link-hover); }
.link.danger, .danger { color: var(--danger); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
#passkey-signin { margin-top: -4px; }

.tag { padding: 2px 9px; border-radius: 999px; background: var(--surface-raised); color: var(--text-muted); font: 600 12px/18px var(--font); letter-spacing: 0; white-space: nowrap; }
.button .tag { margin-left: 4px; background: var(--info-bg); color: var(--link-hover); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

.notice { padding: 12px 14px; border-radius: var(--radius-control); font-size: 15px; line-height: 22px; width: 100%; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
.notice.info { background: var(--ok-bg); color: var(--ok); }

/* The person: picture or initials, and who they are. */
.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #d1179f, #5aa9d6);
  color: #fff; font: 600 13px/1 var(--font-display); letter-spacing: 0.02em; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border-soft), 0 8px 22px rgba(19, 19, 30, 0.12); }
.who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-raised); line-height: 1.35; }
.who-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.who strong { font-weight: 600; }
.who small { color: var(--text-muted); font-size: 14px; }
.who a { flex: none; font-size: 14px; padding: 12px 4px; }
.account-choice { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-raised); color: inherit; font: inherit; line-height: 1.35; text-align: left; cursor: pointer; }
.account-choice:hover { border-color: var(--pink); }
.account-choice strong { font-weight: 600; }
.account-choice small { color: var(--text-muted); font-size: 14px; }
.account-choice .chevron { flex: none; font-size: 22px; color: var(--text-muted); }
.account-choice.other { background: transparent; }
.other-avatar { width: 36px; height: 36px; background: none; border: 1px dashed var(--border-soft); color: var(--text-muted); font-size: 20px; }

.qr { display: flex; justify-content: center; }
.qr svg { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
code, .codes { font-family: ui-monospace, Menlo, Consolas, monospace; }
.code-sample { margin: 0 0 14px; padding: 12px 14px; background: var(--surface-raised); border-radius: 8px; font: 13px/20px ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.howto { margin: 4px 0 0; }
.howto > summary { cursor: pointer; }
code { overflow-wrap: anywhere; background: var(--surface-raised); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.codes { margin: 0; padding: 16px; columns: 2; font-size: 16px; line-height: 30px; background: var(--surface-raised);
  border: 1px solid var(--border-soft); border-radius: var(--radius-card); overflow-x: auto; }
.scopes { margin: 0; padding: 12px 16px 12px 34px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-raised); border-radius: var(--radius-card); }

/* "Are you sure?" in place: the action opens a short question with the real button in it. */
.confirm { flex: none; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] { flex: 1 1 100%; }
.confirm[open] > summary { display: none; }
.confirm-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--danger-bg); border-radius: var(--radius-control); font-size: 15px; }
.confirm-body p { flex: 1 1 220px; }
.confirm-body .button { width: auto; min-height: 44px; font-size: 15px; }
.disclose { width: 100%; }
.disclose > summary { width: auto; }
.disclose[open] > summary { display: none; }
.disclose > form { margin-top: 4px; }

/* ---- /account: an Ink bar, a list of sections down the side, one card per subject on Ivory. ---- */
.topbar { position: sticky; top: 0; z-index: 10; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; height: 60px; background: var(--ink); color: #d9d9e6; }
.topbar .brand { color: #fff; }
.topbar-who { display: flex; align-items: center; gap: 8px; }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; color: #d9d9e6; font-size: 15px; text-decoration: none; padding: 0 14px; border-radius: 999px; }
.topbar a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.account-main { width: 100%; max-width: 1000px; margin: 0 auto; padding: 40px 20px 80px; }
.account-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.sidenav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.sidenav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.sidenav a:hover { background: var(--surface-raised); color: var(--text); }
.account-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.profile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-text .sub { overflow-wrap: anywhere; }
.profile-text h1 { font-size: 32px; line-height: 40px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0 18px; }
.account-main section { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.account-main section form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; max-width: 440px; }
.account-main section .rows form, .account-main .confirm-body form, .account-main .providers form { width: auto; max-width: none; }
.account-main .button { width: auto; min-height: 44px; font-size: 15px; }
/* On the account page the main action in a card is solid Ink; the pink is kept for signing in. */
.account-main .button.primary { background: var(--ink); box-shadow: none; }
.account-main .button.primary:hover { background: var(--primary-hover); box-shadow: 0 6px 16px rgba(19, 19, 30, 0.22); }
.account-main .button.primary::after { display: none; }
.account-main .providers { flex-direction: row; flex-wrap: wrap; }
.account-main .providers:empty { display: none; }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.method:first-of-type { padding-top: 0; border-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 4px 20px; width: 100%; }
.inline { display: flex; gap: 8px; width: 100%; }
.inline input { flex: 1; min-width: 0; }
.field-static { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 0; padding: 0; width: 100%; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows li > span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.rows small { color: var(--text-muted); font-size: 14px; }
.rows.compact li { padding: 8px 0; flex-wrap: nowrap; }
.rows.compact small { flex: none; }

/* ---- Form pieces the admin pages add: longer text, choices, tick boxes. ---- */
textarea, select { font: inherit; color: inherit; }
textarea, select { width: 100%; padding: 12px 14px; font-size: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-control); }
textarea { min-height: 76px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 20px; }
select { height: 48px; padding: 0 14px; }
textarea:hover, select:hover { border-color: var(--border-hover); }
textarea:focus-visible, select:focus-visible { border-color: var(--link); outline-offset: 0; border-radius: var(--radius-control); }
label + textarea, label + select { margin-top: -6px; }
input[type=checkbox], input[type=radio] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; line-height: 22px; cursor: pointer; }
.check small { color: var(--text-muted); font-size: 14px; }
fieldset { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 4px 0; padding: 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); min-width: 0; }
legend { padding: 0 6px; font-weight: 600; font-size: 14px; }

/* ---- /admin: the account frame, wider, with pages down the side instead of sections. ---- */
.admin-main { max-width: 1180px; }
.topbar .tag { margin-left: 6px; background: var(--pink); color: #fff; vertical-align: 3px; }
.sidenav a[aria-current=page] { background: var(--ink); color: #fff; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 4px; }
.page-head h1 { font-size: 32px; line-height: 40px; }
.crumb { font-size: 14px; }
.crumb a { text-decoration: none; }
.crumb a::before { content: "\2190\00a0"; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rows li > span.tag { flex: none; }
.tag.warn { background: #fff3d6; color: #7a4b00; }
.person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rows li > span.person { align-items: flex-start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; }
a.stat:hover { border-color: var(--border-hover); color: var(--text); }
.stat-value { font: 600 28px/34px var(--font-display); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.admin-main section form { max-width: 640px; }
.admin-main section form.filters { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; gap: 8px; }
.filters input, .filters select { flex: 1 1 180px; width: auto; height: 44px; font-size: 15px; }
.filters .button { flex: none; }
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
table.data th { text-align: left; font-weight: 600; color: var(--text-muted); padding: 0 16px 8px 0; white-space: nowrap; }
table.data td { padding: 10px 16px 10px 0; border-top: 1px solid var(--border-soft); vertical-align: top; overflow-wrap: anywhere; }
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data small { color: var(--text-muted); }
table.data .nowrap { white-space: nowrap; }
table.numbers td, table.numbers th { text-align: right; font-variant-numeric: tabular-nums; }
table.numbers td:first-child, table.numbers th:first-child { text-align: left; }
table.data td.bad { color: var(--danger); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--border-hover); }
.dot-ok { background: var(--ok); }
.dot-bad { background: var(--danger); }
.dot-admin { background: var(--pink); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; margin: 0; width: 100%; align-items: center; }
.facts dt { color: var(--text-muted); font-size: 14px; }
.facts dd { margin: 0; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; overflow-wrap: anywhere; }
.facts .link { min-height: 32px; }
ul.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.notice.secret { display: flex; flex-direction: column; gap: 6px; }
.notice.secret code { background: #fff; font-size: 15px; padding: 4px 8px; }
.disclose.plain > summary { list-style: none; }
.disclose.plain[open] > summary { display: inline-flex; }
.admin-main .confirm-body form { flex-direction: column; align-items: flex-start; }

@media (max-width: 800px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* The section list becomes one row that scrolls sideways. */
  .sidenav { position: static; flex-direction: row; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { flex: none; background: var(--surface); border: 1px solid var(--border-soft); }
}
@media (max-width: 520px) {
  .shell { padding: 20px 12px 32px; }
  .auth .card { padding: 24px 20px; }
  .account-main { padding: 24px 12px 56px; }
  .sidenav { margin: 0 -12px; padding: 0 12px 4px; }
  .account-main section { padding: 18px; }
  .topbar { padding: 0 6px 0 14px; gap: 8px; }
  .topbar .brand { white-space: nowrap; font-size: 18px; }
  .topbar-who { gap: 0; }
  .topbar a { white-space: nowrap; padding: 0 8px; font-size: 14px; }
  .topbar .tag { margin-left: 4px; }
  .profile { gap: 14px; }
  .avatar-lg { width: 64px; height: 64px; font-size: 22px; }
  .profile-text h1 { font-size: 24px; line-height: 30px; }
  .codes { columns: 1; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { margin-top: 8px; }
  .page-head h1 { font-size: 24px; line-height: 30px; }
}
/* Moving from one step of signing in to the next: the card changes shape in place instead of the page blinking. */
@view-transition { navigation: auto; }
.auth .card { view-transition-name: card; }
::view-transition-group(card) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
