/* The account page (account.html + assets/account.js), 2026-10-18.
   Profile header with your numbers, a sticky section menu (chips under 900px), settings cards with one row per
   option, a Danger zone apart. Built on app.css tokens so every colour scheme and dark mode work. */
.acpg .ac { --soft: cubic-bezier(0.32, 0.72, 0, 1); max-width: 1120px; margin: 0 auto; padding: 26px 28px 150px; }
.ac-loading { padding: 140px 0; text-align: center; font-size: 11px; color: var(--faint); }
.ac svg { width: 17px; height: 17px; flex: none; }
.ac a:not([class]) { color: inherit; }
@keyframes ac-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- header ---------- */
.ac-hero { position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 var(--line); animation: ac-in .6s var(--soft) both; }
.ac-hero::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto 45%; height: 160%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lav) 80%, transparent), transparent), radial-gradient(closest-side at 70% 30%, color-mix(in srgb, var(--sky) 70%, transparent), transparent); pointer-events: none; }
html[data-theme="dark"] .ac-hero::before { opacity: .35; }
.ac-hero__id { display: flex; align-items: center; gap: 18px; }
.ac-av { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #2B1608; background: linear-gradient(140deg, #FFC56B, #F08A4E 70%); box-shadow: 0 10px 24px -12px rgba(240, 138, 78, .8), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.ac-hero__t { flex: 1; min-width: 0; }
.ac-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hero__t > p { margin-top: 2px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--navy); color: var(--muted); }
.ac-chip.is-paid { color: #fff; background: linear-gradient(120deg, #F08A4E, #8E6CE0); }
.ac-hero__acts { flex: none; align-self: flex-start; }

.ac-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ac-stat { display: flex; flex-direction: column; gap: 1px; padding: 14px 16px; border-radius: 20px; text-decoration: none; transition: transform .35s var(--soft), box-shadow .3s; animation: ac-in .6s var(--soft) both; }
.ac-stat:nth-child(2) { animation-delay: .05s; } .ac-stat:nth-child(3) { animation-delay: .1s; } .ac-stat:nth-child(4) { animation-delay: .15s; }
.ac-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .4); }
.ac-stat b { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ac-stat span { font-size: 13.5px; font-weight: 700; }
.ac-stat small { font-size: 12px; color: color-mix(in srgb, var(--paper) 62%, transparent); }
.ac-stat--sky { background: var(--sky); } .ac-stat--lav { background: var(--lav); } .ac-stat--mint { background: var(--mint); } .ac-stat--sun { background: var(--sun); }
html[data-theme="dark"] .ac-stat--sky { background: var(--sky); } html[data-theme="dark"] .ac-stat--lav { background: var(--lav); }
html[data-theme="dark"] .ac-stat--mint { background: var(--mint); } html[data-theme="dark"] .ac-stat--sun { background: var(--sun); }

/* ---------- menu + sections ---------- */
.ac-grid { margin-top: 18px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.ac-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.ac-nav a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 13px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s; }
.ac-nav a:hover { background: var(--navy); color: var(--paper); }
.ac-nav a.is-on { background: var(--ink, #0E0E10); color: #fff; }
html[data-theme="dark"] .ac-nav a.is-on { background: var(--paper); color: var(--card); }
.ac-nav a:last-child { margin-top: 6px; } .ac-nav a:last-child:not(.is-on) { color: #C0313F; }
html[data-theme="dark"] .ac-nav a:last-child:not(.is-on) { color: var(--t-rose); }
.ac-nav a:focus-visible, .ac-btn:focus-visible, .ac-item:focus-visible, .ac-stat:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.ac-main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.ac-sec { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 10px; }
.ac-sec__h { padding: 0 4px; }
.ac-eye { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-sec__h h2 { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.ac-sec__h p { margin-top: 3px; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ac-sec__h p a { color: var(--paper); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.ac-card { border-radius: 22px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.ac-card--pad { padding: 16px 18px; }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; }
.ac-row + .ac-row { border-top: 1px solid var(--line); }
.ac-row__t { min-width: 0; }
.ac-row__t b { display: block; font-size: 14.5px; font-weight: 700; }
.ac-row__t span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ac-row__t span a, .ac-empty a { color: var(--paper); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ac-row__c { flex: none; display: flex; align-items: center; gap: 8px; }

/* buttons, pills, switch */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--navy); color: var(--paper); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .25s var(--soft), filter .2s; }
.ac-btn:hover { background: var(--slate); }
.ac-btn:active { transform: scale(.97); }
.ac-btn:disabled { opacity: .45; cursor: default; }
.ac-btn svg { width: 15px; height: 15px; }
.ac-btn--ink { background: var(--ink, #0E0E10); color: #fff; } .ac-btn--ink:hover { background: var(--ink, #0E0E10); filter: brightness(1.25); }
html[data-theme="dark"] .ac-btn--ink { background: var(--paper); color: var(--card); }
.ac-btn--light { background: #fff; color: #0E0E10; } .ac-btn--light:hover { background: #fff; filter: brightness(.94); }
.ac-btn--warn { background: transparent; color: #C0313F; box-shadow: inset 0 0 0 1px color-mix(in srgb, #C0313F 35%, transparent); } .ac-btn--warn:hover { background: rgba(192, 49, 63, .07); }
.ac-btn--bad { background: #C0313F; color: #fff; } .ac-btn--bad:hover { background: #C0313F; filter: brightness(1.1); }
html[data-theme="dark"] .ac-btn--warn { color: var(--t-rose); }
.ac-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--navy); color: var(--muted); white-space: nowrap; }
.ac-pill svg { width: 13px; height: 13px; }
.ac-pill.is-ok { background: color-mix(in srgb, #1E8A55 14%, transparent); color: #1E8A55; }
html[data-theme="dark"] .ac-pill.is-ok { color: #6FCF97; }
.ac-sw { position: relative; display: inline-flex; cursor: pointer; }
.ac-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ac-sw i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.ac-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--soft); }
.ac-sw input:checked + i { background: var(--orange); }
.ac-sw input:checked + i::after { transform: translateX(18px); }
.ac-sw input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }

/* friends */
.ac-fwho { display: flex; align-items: center; gap: 12px; }
.ac-fwho > span { min-width: 0; }
.ac-fwho > span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-fav, .ac-row__t .ac-fav { margin: 0; line-height: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #2B1608; background: linear-gradient(140deg, #FFC56B, #F08A4E); }
.ac-row.is-new { background: color-mix(in srgb, var(--orange) 7%, transparent); }
.ac-card > .ac-row:first-child, .ac-card > form:first-child { border-radius: 22px 22px 0 0; }
[data-friends] > .ac-row { border-top: 1px solid var(--line); }
[data-friends] > .ac-row:last-child { border-radius: 0 0 22px 22px; }

/* plan */
.ac-plan { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: 22px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(142, 108, 224, .35), transparent 60%), #0E0E10; }
.ac-plan.is-paid { background: radial-gradient(90% 120% at 100% 0%, rgba(240, 138, 78, .45), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(142, 108, 224, .3), transparent 60%), #0E0E10; }
.ac-plan__t small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ac-plan__t b { display: block; margin-top: 2px; font-size: 21px; letter-spacing: -0.02em; }
.ac-plan__t span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .65); }
.ac-code { flex-wrap: wrap; }
.ac-code__c input { width: 160px; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--navy); color: var(--paper); font: inherit; font-size: 13.5px; letter-spacing: .04em; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.ac-code__c input:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.ac-err { flex-basis: 100%; margin: 0; font-size: 13px; color: #C0313F; } .ac-err:empty { display: none; }

/* themes: the shared picker (nav.js schemesHtml; its colours are in app.css under #account-themes) */
.ac-themes .mm__th > h4 { display: none; }

/* saved lists */
.ac-list__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ac-list__h b { font-size: 14.5px; }
.ac-list__h a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; } .ac-list__h a:hover { color: var(--paper); }
.ac-list { display: grid; gap: 4px; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--navy); text-decoration: none; transition: background-color .2s; }
.ac-item:hover { background: var(--slate); }
.ac-item__tag { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--card); color: var(--muted); }
.ac-item__t { flex: 1; min-width: 0; } .ac-item__t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ac-item__t small { display: block; font-size: 12px; color: var(--muted); }
.ac-item > svg { color: var(--muted); transition: transform .25s var(--soft); } .ac-item:hover > svg { transform: translateX(3px); }
.ac-continue { display: grid; gap: 8px; }
.ac-continue + .ac-card { margin-top: 0; }
.ac-sec .ac-card + .ac-card { margin-top: 0; }
.ac-empty { padding: 12px 14px; border-radius: 14px; background: var(--navy); font-size: 13.5px; color: var(--muted); }

/* danger zone */
.ac-card--danger { box-shadow: inset 0 0 0 1px color-mix(in srgb, #C0313F 30%, transparent); background: color-mix(in srgb, #C0313F 3%, var(--card)); }
.ac-sec--danger .ac-eye { color: #C0313F; }
html[data-theme="dark"] .ac-sec--danger .ac-eye { color: var(--t-rose); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .ac-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ac-nav { top: 72px; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: color-mix(in srgb, var(--card) 88%, transparent); }
  .ac-nav::-webkit-scrollbar { display: none; }
  .ac-nav a { flex: none; height: 36px; padding: 0 12px; }
  .ac-nav a:last-child { margin-top: 0; }
  .ac-nav a svg { display: none; }
  .ac-sec { scroll-margin-top: 140px; }
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .acpg .ac { padding: 16px 14px 130px; }
  .ac-hero { padding: 18px; border-radius: 24px; }
  .ac-hero__id { flex-wrap: wrap; gap: 14px; }
  .ac-av { width: 58px; height: 58px; font-size: 24px; }
  .ac-hero__acts { flex-basis: 100%; } .ac-hero__acts .ac-btn { width: 100%; }
  .ac-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .ac-row__c { justify-content: flex-start; }
  .ac-code__c { width: 100%; } .ac-code__c input { flex: 1; width: auto; min-width: 0; }
  .ac-plan { flex-direction: column; align-items: stretch; }
  .ac-stat b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ac-hero, .ac-stat { animation: none; } .ac-stat, .ac-btn, .ac-sw i, .ac-sw i::after, .ac-item > svg { transition: none; } }

/* Security (2026-10-22): two-step sign-in methods and set-up */
.ac-row--col { flex-direction: column; align-items: stretch !important; gap: 12px; }
.ac-mfa:empty { display: none; }
.ac-mfa { display: flex; flex-direction: column; gap: 8px; }
.ac-mfa__f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--fg-rgb), .04); }
.ac-mfa__f > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-mfa__f svg { width: 18px; height: 18px; flex: none; color: #1E8A55; }
.ac-mfa__f b { font-size: 14px; } .ac-mfa__f small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.ac-mfa__add { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-mfa__setup { padding: 14px; border-radius: 16px; background: rgba(var(--fg-rgb), .04); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), .08); }
.ac-mfa__setup[hidden] { display: none; }
.ac-mfa__setup p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.ac-mfa__setup code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--card); word-break: break-all; }
.ac-mfa__qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 10px; }
.ac-mfa__qr img { flex: none; width: 180px; height: 180px; padding: 8px; border-radius: 14px; background: #fff; }
.ac-mfa__qr > div { flex: 1; min-width: 200px; }
.ac-mfa__code { display: flex; gap: 8px; }
.ac-mfa__code input { flex: 1; min-width: 0; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .25em; }
/* the four numbers moved to the profile (owner, 2026-10-24): one link to it */
.ac-statlink { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 20px; background: var(--sky); color: var(--paper); text-decoration: none; transition: transform .35s var(--soft); }
.ac-statlink:hover { transform: translateY(-2px); }
.ac-statlink > span { display: flex; flex-direction: column; gap: 2px; }
.ac-statlink b { font-size: 15px; font-weight: 800; }
.ac-statlink small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ac-statlink svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- My setup (owner, 2026-10-24): every setup answer, edited one row at a time ---------- */
.su-row + .su-row { border-top: 1px solid var(--line); }
.su-row .ac-row + .ac-row { border-top: 0; }
.su-row.is-open { background: rgba(var(--fg-rgb), .025); }
.ac-row__t .su-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--paper); font-weight: 600; }
.ac-row__t .su-list > span { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: inherit; font-size: 13px; }
.ac-row__t .su-tag, .su-tag { display: inline-grid; place-items: center; height: 18px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.ac-row__t .su-sub, .su-sub { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.su-ed { padding: 4px 18px 18px; }
.su-help { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.su-count { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--fg-rgb), .06); color: var(--paper); font-weight: 700; font-size: 12px; }
.su-grp { margin-top: 14px; }
.su-grp:first-child { margin-top: 0; }
.su-grp h5 { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.su-chs { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chs--col { flex-direction: column; align-items: flex-start; }
.su-ch { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--paper); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--soft); }
.su-ch:hover { border-color: rgba(var(--fg-rgb), .3); }
.su-ch:active { transform: scale(.97); }
.su-ch.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.su-ch.is-hl { background: var(--lv-hl, var(--orange)); border-color: transparent; color: var(--on-accent, #fff); }
.su-ch.is-sl { background: var(--pick-sl); border-color: transparent; color: var(--pick-sl-ink); }
.su-ch sup { font-size: 9.5px; font-weight: 800; margin-left: 2px; }
.su-flds { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.su-flds label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.su-flds input { width: 150px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--paper); font: inherit; font-size: 15px; }
.su-flds input:disabled { opacity: .5; }
.su-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.su-ed .ac-err:empty { display: none; }
.su-levels { margin-top: 14px; }
.su-levels__h { display: flex; flex-direction: column; gap: 2px; padding: 15px 18px 6px; }
.su-levels__h b { font-size: 14.5px; }
.su-levels__h span { font-size: 13px; color: var(--muted); }
html[data-theme="dark"] .su-ch.is-on { background: var(--paper); border-color: var(--paper); color: var(--card); }
@media (max-width: 560px) { .su-ed { padding: 4px 14px 16px; } .su-flds input { width: 130px; } }
/* My setup: EE subject and Your background (owner, 2026-10-25) */
.su-flds--bg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.su-flds--bg input { width: 100%; }
.su-sel { width: 100%; max-width: 380px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--paper); font: inherit; font-size: 15px; }
@media (max-width: 640px) { .su-flds--bg { grid-template-columns: 1fr; } }

/* ---------- About you (owner, 2026-10-25): the header ring, the menu's sub-links, the groups ---------- */
.ac-hero__id { align-items: center; }
.ac-hero__stats { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.ac-hero__stats:hover { color: var(--paper); }
.ac-hero__stats svg { width: 14px; height: 14px; transition: transform .25s var(--soft); }
.ac-hero__stats:hover svg { transform: translateX(3px); }
[data-ring] { flex: none; }
.ay-ring-box { display: flex; align-items: center; gap: 16px; max-width: 380px; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(var(--fg-rgb), .045); }
.ay-ring { --p: 0; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(var(--fg-rgb), .1) 0); }
.ay-ring i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-style: normal; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.ay-ring-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ay-ring-t b { font-size: 15px; font-weight: 800; }
.ay-ring-t small { font-size: 13px; color: var(--muted); }
.ay-ring-t .ac-btn { margin-top: 8px; height: 34px; }
.ac-btn--go { background: var(--orange); color: var(--on-accent, #fff); } .ac-btn--go:hover { background: var(--orange); filter: brightness(1.08); }
.ac-nav a.ac-nav__sub { height: 32px; padding-left: 39px; font-size: 13px; font-weight: 600; }
.ac-nav a.ac-nav__sub.is-on { background: rgba(var(--fg-rgb), .08); color: var(--paper); }
html[data-theme="dark"] .ac-nav a.ac-nav__sub.is-on { background: rgba(var(--fg-rgb), .1); color: var(--paper); }
.ac-nav a.is-par { color: var(--paper); }
.ay-private { display: flex; align-items: center; gap: 8px; margin: -2px 4px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ay-private svg { width: 15px; height: 15px; }
.ay-grp { scroll-margin-top: 96px; }
.ay-grp__h { display: flex; flex-direction: column; gap: 3px; padding: 20px 22px 18px; }
.ay-grp__h b { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.ay-grp__h span { font-size: 13px; color: var(--muted); }
.ay-grp .su-row:first-of-type { border-top: 0; }
.ay-grp .su-row { border-top: 1px solid var(--line); }
.ay-grp .su-row + .su-row { border-top: 1px solid var(--line); }
.ac-row__t .ay-tags { display: flex; margin-top: 7px; }
.ac-row__t .ay-tag { display: inline-flex; margin: 0; color: var(--paper); font-size: 13px; }
.ac-row__t .ay-tag small { display: inline; font-size: 11px; color: var(--muted); }
.ac-row__t .ay-none { color: var(--faint); }
.ac-row__t a { color: var(--paper); font-weight: 700; }
.ay-opt { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.ac-row__t b .ay-opt { display: inline; }
.su-ed .ay-ed { padding-top: 2px; }
@media (max-width: 900px) {
  .ac-nav a.ac-nav__sub { display: none; }
  .ay-grp { scroll-margin-top: 140px; }
}
@media (max-width: 760px) {
  .ac-hero__id { flex-wrap: wrap; }
  [data-ring] { flex-basis: 100%; }
  .ay-ring-box { max-width: none; }
}

/* spacing pass (owner, 2026-10-25: "the spacings are all kinda scuffed"): one rhythm for every group: the same space
   above and below a group's title, every row 22px in, 16px top and bottom, 14px between groups */
.ac-sec .ay-grp + .ay-grp { margin-top: 4px; }
.ay-grp .ac-row { padding: 16px 22px; min-height: 72px; }
.ay-grp .ac-row__t b { line-height: 1.3; }
.ay-grp .su-ed { padding: 2px 22px 20px; }
.ay-grp > .su-row:last-child.is-open { border-radius: 0 0 22px 22px; }
.ac-sec__h { padding: 0 4px 4px; }
.ay-private { margin: 0 4px 6px; }
@media (max-width: 640px) { .ay-grp__h { padding: 18px 16px 14px; } .ay-grp .ac-row { padding: 14px 16px; min-height: 0; } .ay-grp .su-ed { padding: 2px 16px 18px; } }
/* the SAT row: your score, your superscore beside it, your next test */
.su-sat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.su-sat__c { padding: 14px 16px; border-radius: 16px; background: rgba(var(--fg-rgb), .04); }
.su-sat__c h5 { display: flex; align-items: baseline; gap: 10px; }
.su-sat__c .su-flds { flex-wrap: nowrap; }
.su-sat__c .su-flds label { flex: 1; min-width: 0; }
.su-sat__c .su-flds input { width: 100%; }
.su-sat__sup { margin-left: auto; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--paper); text-transform: none; }
.su-sat__help { margin: 10px 0 0; font-size: 12.5px; }
@media (max-width: 760px) { .su-sat { grid-template-columns: 1fr; } }
/* Profile: the Friends page's editor in a frame (it sets its own height) */
.ac-pf { display: block; width: 100%; height: 760px; border: 0; background: transparent; } /* (no color-scheme of its own: a frame whose scheme differs from the page gets an opaque black or white backdrop) */
.ac-av--pfp { overflow: hidden; background: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.ac-av--pfp svg { width: 100%; height: 100%; display: block; }
/* ---------- Stats (assets/acct-stats.js, owner 2026-10-25): every number, one tile grid per area ---------- */
.st-grp { scroll-margin-top: 96px; }
.ac-sec .st-grp + .st-grp { margin-top: 4px; }
.st-body { padding: 0 22px 22px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.st-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px; border-radius: 16px; background: rgba(var(--fg-rgb), .045); }
.st-t b { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-t--text b { font-size: 18px; white-space: normal; line-height: 1.25; }
.st-t span { font-size: 13px; font-weight: 700; line-height: 1.35; }
.st-t small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.st-t.is-none b { color: var(--faint); }
.st-t.is-none span { color: var(--muted); }
.st-sub { margin-top: 16px; }
.st-sub > b { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; padding-bottom: 18px; position: relative; }
.st-chart i { position: relative; height: max(3px, var(--h)); border-radius: 6px 6px 3px 3px; background: var(--orange); opacity: .9; }
.st-chart i:last-child { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 35%, transparent); }
.st-chart em { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.st-chart i:first-child em { left: 0; transform: none; }
.st-chart i:last-child em { left: auto; right: 0; transform: none; }
.st-rar { display: flex; flex-wrap: wrap; gap: 8px; }
.st-rar span { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(var(--fg-rgb), .06); font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 3px 0 0 var(--c, transparent); }
.st-rar span b { color: var(--paper); font-size: 15px; font-weight: 900; }
.st-note { margin-top: -2px; }
/* focus by day: one month, GitHub-style (acct-stats.js grid) */
.st-gh { position: relative; max-width: 420px; }
.st-gh__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-gh__top b { font-size: 15px; font-weight: 800; }
.st-gh__top span { margin-right: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.st-gh__nav { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(var(--fg-rgb), .07); color: var(--paper); font: inherit; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.st-gh__nav:hover:not(:disabled) { background: rgba(var(--fg-rgb), .13); }
.st-gh__nav:disabled { opacity: .35; cursor: default; }
.st-gh__body { display: flex; gap: 8px; }
.st-gh__days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 5px; }
.st-gh__days em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1; display: flex; align-items: center; }
.st-gh__cells { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 34px); gap: 5px; flex: 1; }
.st-gh i { display: block; aspect-ratio: 1; border-radius: 6px; background: rgba(var(--fg-rgb), .09); }
.st-gh i.is-out { background: rgba(var(--fg-rgb), .035); }
.st-gh__cells i[data-d] { transition: transform .15s cubic-bezier(0.32, 0.72, 0, 1), box-shadow .15s; }
.st-gh__cells i[data-d]:hover { transform: scale(1.12); box-shadow: 0 0 0 2px rgba(var(--fg-rgb), .35); position: relative; z-index: 1; }
.st-gh i[data-l="1"] { background: color-mix(in srgb, var(--orange) 30%, transparent); }
.st-gh i[data-l="2"] { background: color-mix(in srgb, var(--orange) 55%, transparent); }
.st-gh i[data-l="3"] { background: color-mix(in srgb, var(--orange) 80%, transparent); }
.st-gh i[data-l="4"] { background: var(--orange); }
.st-gh i[data-today] { box-shadow: 0 0 0 2px var(--paper); }
.st-gh__key { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--muted); }
.st-gh__key i { width: 12px; border-radius: 3px; }
.st-gh__tip { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; background: #17181B; color: #FFF; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.st-gh__tip[hidden] { display: none; }
html[data-theme="dark"] .st-gh__tip { background: #F2F3F5; color: #111214; }
.st-gh__tip::after { content: ""; position: absolute; top: 100%; left: var(--ax, 50%); width: 10px; height: 10px; background: inherit; transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px; }
.st-gh__tip b { font-size: 12.5px; font-weight: 800; }
.st-gh__tip span { font-size: 12px; font-weight: 600; opacity: .75; }
@media (max-width: 640px) { .st-body { padding: 0 16px 18px; } .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-t b { font-size: 20px; } }
