/* ============================================================
   Mythiq.net Account — styles
   Auth pages reuse the admin.css split-screen classes
   (.login-split-container etc.) plus the additions below; the settings hub
   uses a card layout on the same tokens. Everything here inherits the dark
   Mythiq palette from assets/css/ui.css — this file must not introduce
   a light surface of its own, or the two halves of a screen disagree.
   ============================================================ */

/* ---- Auth page tweaks (login/register/forgot/reset/verify) ---- */
.account-auth-body .form-subheader { color: var(--a-muted); }
.account-auth-body .alert-success {
  background: var(--a-success-bg); color: var(--a-success); border: 1px solid var(--a-success-line);
  padding: 12px 14px; border-radius: var(--radius-lg); margin-bottom: 16px;
  font-size: .95rem; line-height: 1.4;
}
.account-auth-body .alert-success a { color: var(--a-success); font-weight: 600; }
.account-auth-links { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.account-auth-links .muted-link { color: var(--a-ink); font-weight: 600; text-decoration: none; }
.account-auth-links .muted-link:hover { text-decoration: underline; }
.account-auth-links .login-hint { color: var(--a-muted); }
.account-auth-links .login-hint a { color: var(--a-ink); font-weight: 600; }
.input-group-row { display: flex; gap: 12px; }
.input-group-row > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) {
  .input-group-row { flex-direction: column; gap: 0; }
}

/* ---- Registration consent checkboxes (terms + marketing) ---- */
.account-auth-body .consent-group {
  display: flex; flex-direction: column; gap: 12px;
  margin: 4px 0 20px;
}
.account-auth-body .consent-item {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: .9rem; line-height: 1.45; color: var(--a-ink, #f7f7f7);
}
.account-auth-body .consent-item input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.account-auth-body .consent-box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--a-field-line, #43454c); border-radius: var(--radius-sm);
  background: var(--a-field, #16171a); display: flex; align-items: center; justify-content: center;
  color: var(--a-on-accent); transition: background-color .15s, border-color .15s;
}
.account-auth-body .consent-box svg { opacity: 0; transform: scale(.6); transition: opacity .12s; }
.account-auth-body .consent-item input:checked + .consent-box {
  background: var(--a-accent); border-color: var(--a-accent);
}
.account-auth-body .consent-item input:checked + .consent-box svg { opacity: 1; }
.account-auth-body .consent-item input:focus-visible + .consent-box {
  outline: 2px solid var(--a-accent); outline-offset: 2px;
}
.account-auth-body .consent-text { padding-top: 1px; }
.account-auth-body .consent-text a {
  color: var(--a-ink, #f7f7f7); font-weight: 600; text-decoration: underline;
}
.account-auth-body .consent-text .muted { color: var(--a-muted, #7A7A7A); }

/* ---- Required-field validation (register form) ----
   Added to fields the user left empty/unchecked on submit. Removed as soon as
   the field is edited. Purely presentational — the browser still owns native
   required validation; this just makes the invalid fields visibly red. */
.account-auth-body .input-wrapper input.is-invalid { border-color: #dc2626; }
.account-auth-body .consent-item input.is-invalid + .consent-box {
  border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220, 38, 38, .18);
}

/* ============================================================
   Mythiq.net Account — SETTINGS PAGE
   Mirrors the login page by building on the same admin.css tokens, so the
   dark Mythiq palette and Mythiq-blue accent apply here for free. The
   login/register pages reuse admin.css directly; this styles only the
   settings UI.
   ============================================================ */
.account-page {
  background: var(--a-bg, #202125);
  color: var(--a-ink, #f7f7f7);
  font-family: 'Momo Trust Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
/* Lift the content above style.css's animated body::before aura (the pink/blue
   blobs). On the homepage this is done via `main { position: relative;
   z-index: 1 }`; this page has no <main>, so without this the fixed aura at
   z-index:0 paints ON TOP of the cards. Establishing a stacking context here
   keeps the blobs as a background and the white cards solid on top. */
.account-wrap { position: relative; z-index: 1; }
.account-wrap {
  max-width: 1100px; margin-inline: auto;
  padding: clamp(32px, 6vh, 64px) clamp(20px, 4vw, 48px) clamp(64px, 12vh, 120px);
}

/* ---- Top bar: back-to-home (same component as login's .back-to-home) ---- */
.account-topbar { margin-bottom: clamp(28px, 4vh, 44px); }
.account-topbar .account-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  color: var(--a-muted, #7A7A7A);
  background: var(--a-panel); border: 1px solid var(--a-line-strong, #3b3d42);
  border-radius: var(--radius-pill); text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .15s ease;
}
.account-topbar .account-back:hover {
  color: var(--a-on-accent); background: var(--a-accent); border-color: var(--a-accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.account-topbar .account-back:active { box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* ---- Layout ---- */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 56px;
  align-items: start;
}

/* ---- Sidebar ---- */
.account-sidebar { display: flex; flex-direction: column; gap: 24px; }
.account-brand { display: flex; align-items: center; gap: 12px; }
.account-avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--a-accent); color: var(--a-on-accent);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.account-brand-text { display: flex; flex-direction: column; min-width: 0; }
.account-brand-name {
  font-weight: 700; font-size: 0.92rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--a-ink, #f7f7f7);
}
.account-brand-email {
  color: var(--a-muted, #7A7A7A); font-size: 0.78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Category label — icon + bold (login form-header scale). */
.account-nav-group {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0 4px; width: 100%;
  font-size: 0.95rem; font-weight: 700; color: var(--a-ink, #f7f7f7);
  letter-spacing: -0.01em; line-height: normal;
}
.account-nav-group svg { flex: 0 0 auto; color: var(--a-ink-soft, #cacaca); }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav-item {
  display: flex; align-items: center;
  height: 42px; padding: 0 14px;
  width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: var(--a-ink, #f7f7f7);
  border-radius: var(--a-radius-sm, 7px);
  font-size: 0.92rem; font-weight: 500;
  transition: background .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.account-nav-item:hover { background: rgba(255,255,255,.06); }
.account-nav-item.is-active {
  background: var(--a-accent); color: var(--a-on-accent); font-weight: 600;
}
.account-nav-item.is-active:hover { background: var(--a-accent); color: var(--a-on-accent); }

/* Sign-out — lightly divided. */
.account-signout { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--a-line, #303237); }
.account-logout-form { margin: 0; }
.account-signout-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  height: 42px; padding: 0 14px;
  background: transparent; border: 0;
  border-radius: var(--a-radius-sm, 7px); cursor: pointer;
  font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--a-muted, #7A7A7A);
  transition: background .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.account-signout-btn svg { flex: 0 0 auto; }
.account-signout-btn:hover { background: rgba(255,255,255,.06); color: var(--a-ink, #f7f7f7); }

/* Admin-area link: same button treatment as Sign out, then a divider. */
a.account-admin-link { text-decoration: none; box-sizing: border-box; }
.account-action-divider { margin: 12px 0; }
.account-divider.account-action-divider { margin: 12px 0; }

/* A second nav category ("Content") under the Account tabs. It needs air above
   it and a rule, or it reads as a sixth Account item with a stray icon. */
.account-nav-group-next {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--a-line, #303237);
}

/* Nav items carrying a count lay out as a row instead of plain text. */
.account-nav-item { display: flex; align-items: center; gap: 10px; }
.account-nav-count {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 22px;
  text-align: center;
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  padding: 4px 7px; border-radius: var(--radius-pill);
  background: var(--a-fill, #232428);
  border: 1px solid var(--a-line, #303237);
  color: var(--a-ink-soft, #cacaca);
}
/* Something in that section is waiting on the member. Visible from the menu, so
   they do not have to open the section to find out. */
.account-nav-count.is-warn {
  background: var(--a-warning-bg, rgba(217,119,6,.16));
  border-color: rgba(251, 191, 36, .34);
  color: var(--a-warning, #d97706);
}
/* Not a count but a STATE — the author page is published. Same chip so the menu
   stays one shape, in the success colour so it reads as "good, done" rather
   than as a number the member is meant to act on. */
.account-nav-count.is-live {
  background: var(--a-success-bg, rgba(52,211,153,.14));
  border-color: rgba(52, 211, 153, .32);
  color: var(--a-success, #34d399);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.account-nav-item.is-active .account-nav-count {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: var(--a-on-accent, #fff);
}

/* ---- Content panes ---- */
.account-content { min-width: 0; }
/* Mobile-only Back-to-menu button (hidden everywhere except mobile content view).
   Higher specificity than .account-topbar .account-back so it actually hides. */
.account-topbar .account-back-to-menu { display: none; }
.account-pane { display: none; }
/* Pane slide-in only — never animate opacity, otherwise the white card goes
   transparent on the first frame and the page background blinks through. */
.account-pane.is-active { display: block; animation: acctPaneSlide .2s cubic-bezier(.4,0,.2,1); }
@keyframes acctPaneSlide { from { transform: translateY(4px); } to { transform: none; } }

/* Page title — login form-header h1 scale. */
.account-title {
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--a-ink, #f7f7f7);
  margin: 0 0 28px;
}

.account-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Cards — white panels, login card aesthetic. */
.account-card {
  background: var(--a-panel, #181819);
  border: 1px solid var(--a-line, #303237);
  border-radius: var(--a-radius, 10px);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--a-shadow-sm, 0 1px 2px rgba(0,0,0,.35));
}
.account-card-title {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--a-ink, #f7f7f7); margin: 0 0 18px;
}

.account-name-display {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--a-ink, #f7f7f7); margin: 0 0 6px;
}
.account-badge {
  display: inline-block; margin-top: 6px;
  font-size: 0.72rem; font-weight: 600; color: var(--a-muted, #7A7A7A);
  background: var(--a-fill, #232428); border: 1px solid var(--a-line, #303237);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.account-pill {
  display: inline-block; margin-left: 6px;
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle;
}
.account-pill-ok   { background: var(--a-success-bg, #ecfdf5); color: var(--a-success, #34d399); }
.account-pill-warn { background: var(--a-warning-bg, #fffbeb); color: var(--a-warning, #d97706); }

/* Key/value list (overview). */
.account-kv { margin: 18px 0 0; padding: 0; }
.account-kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--a-line, #303237); }
.account-kv-row:first-child { border-top: 0; }
.account-kv dt { color: var(--a-muted, #7A7A7A); font-weight: 600; font-size: 0.85rem; }
.account-kv dd { margin: 0; text-align: right; word-break: break-word; font-size: 0.92rem; color: var(--a-ink, #f7f7f7); }

/* Buttons at the foot of a card. */
.account-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.account-empty-text { font-size: 0.92rem; line-height: 1.55; color: var(--a-muted, #7A7A7A); margin: 0; }

/* ============================================================
   Your mods — the Content category's section.
   The catalogue keeps ownership of editing (that is /mods/edit/, with the
   uploader and the version list); this reports and routes.
   ============================================================ */

/* Headline numbers. auto-fit so four tiles become two rows on a narrow pane
   rather than four unreadable slivers. */
.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.account-stat {
  background: var(--a-fill, #232428);
  border: 1px solid var(--a-line, #303237);
  border-radius: var(--a-radius-sm, 7px);
  padding: 14px 16px;
  min-width: 0;
}
.account-stat-n {
  display: block;
  font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--a-ink, #f7f7f7);
}
.account-stat-k {
  display: block; margin-top: 4px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--a-muted, #7A7A7A);
}

.account-modlist { list-style: none; margin: 0; padding: 0; }
.account-mod {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--a-line, #303237);
}
.account-mod:first-child { border-top: 0; padding-top: 0; }
.account-mod:last-child { padding-bottom: 0; }
.account-mod-main { flex: 1 1 240px; min-width: 0; }
.account-mod-title {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--a-ink, #f7f7f7); margin: 8px 0 2px;
  overflow-wrap: anywhere;
}
.account-mod-where { font-size: 0.82rem; color: var(--a-muted, #7A7A7A); margin: 0; }

/* Downloads / rating / comments on one line, split by dots drawn in CSS so the
   markup stays a plain list of spans. */
.account-mod-stats {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 14px;
  margin: 8px 0 0;
  font-size: 0.82rem; color: var(--a-ink-soft, #cacaca);
}
.account-mod-stats span { display: inline-flex; align-items: center; }
.account-mod-stats span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--a-line-strong, #3b3d42);
  margin-right: 14px;
}
.account-mod-flag {
  margin: 8px 0 0;
  font-size: 0.8rem; color: var(--a-warning, #d97706);
}

/* Status pills. mods.css is not loaded on this page — it is a different design
   system with its own tokens — so the four states are restated here in the
   account palette rather than imported. */
.account-mod-status {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 9px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.account-mod-status-approved { background: rgba(5,150,105,.16);   border-color: rgba(52,211,153,.32); color: #34d399; }
.account-mod-status-pending  { background: rgba(217,119,6,.16);   border-color: rgba(251,191,36,.32); color: #d97706; }
.account-mod-status-rejected { background: rgba(180,35,24,.18);   border-color: rgba(248,113,113,.32); color: #f87171; }
.account-mod-status-draft    { background: var(--a-fill, #232428); border-color: var(--a-line, #303237); color: var(--a-muted, #7A7A7A); }

/* Exclusivity, as a SECOND pill beside the review status — two independent
   verdicts about one mod, so two pills rather than one with invented combined
   wording. The violet is --mods-ex from mods.css, restated as a literal for the
   reason the four above are restated at all: this pane deliberately does not
   import mods.css, because the account area is a different design system. */
.account-mod-status-ex-verified { background: rgba(167,139,250,.16); border-color: rgba(167,139,250,.34); color: #a78bfa; }
.account-mod-status-ex-claimed  { background: rgba(217,119,6,.16);   border-color: rgba(251,191,36,.32); color: #d97706; }
.account-mod-status-ex-declined { background: var(--a-fill, #232428); border-color: var(--a-line, #303237); color: var(--a-muted, #7A7A7A); }

.account-mod-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* Setting rows. */
.account-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
.account-row:first-of-type { padding-top: 0; }
.account-row:last-of-type { padding-bottom: 0; }
.account-row-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-row-key { color: var(--a-muted, #7A7A7A); font-weight: 600; font-size: 0.85rem; }
.account-row-val { color: var(--a-ink, #f7f7f7); word-break: break-word; font-size: 0.92rem; }
.account-divider { border: 0; border-top: 1px solid var(--a-line, #303237); margin: 0; }

.account-pane-sub {
  margin: 0 0 18px; color: var(--a-muted, #7A7A7A);
  font-size: 0.9rem; line-height: 1.6; max-width: 60ch;
}

/* Connected-account provider rows */
.account-provider-row { gap: 16px; }
.account-provider-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-provider-logo {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--a-fill, #232428); color: var(--a-ink, #f7f7f7);
  border: 1px solid var(--a-line, #303237);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.92rem;
}

/* ============================================================
   Buttons — the variants live in assets/css/ui.css (.btn system).
   ============================================================ */
.inline-form { margin: 0; }

/* ---- Alerts — login/admin.css alert component. ---- */
.account-content .alert {
  padding: 12px 16px; border-radius: var(--a-radius, 10px); margin-bottom: 20px;
  font-size: 0.9rem; font-weight: 500; line-height: 1.5;
  display: flex; align-items: center; gap: 10px; border: 1px solid transparent;
}
.account-content .alert-success { background: var(--a-success-bg, #ecfdf5); color: #047857; border-color: var(--a-success-line, #a7f3d0); }
.account-content .alert-error   { background: var(--a-danger-bg, rgba(180,35,24,.18)); color: var(--a-danger, #f87171); border-color: var(--a-danger-line, rgba(248,113,113,.32)); }

/* ============================================================
   Popovers (edit forms) — reuse login input/label/button language.
   ============================================================ */
.account-popover {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.account-popover.is-open { display: flex; animation: acctFade .2s cubic-bezier(.4,0,.2,1); }
@keyframes acctFade { from { opacity: 0; } to { opacity: 1; } }
.account-popover-card {
  background: var(--a-panel, #181819); width: 100%; max-width: 480px;
  border-radius: var(--a-radius, 10px);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--a-shadow-lg, 0 12px 32px rgba(0,0,0,.55));
  max-height: 90vh; overflow-y: auto;
}
.account-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-popover-head h3 {
  margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.65rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--a-ink, #f7f7f7);
}
.account-popover-sub { margin: 0; color: var(--a-muted, #7A7A7A); font-size: 0.9rem; line-height: 1.5; }
.account-popover-close {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--a-radius-sm, 7px);
  background: transparent; border: 1px solid var(--a-line, #303237);
  display: grid; place-items: center; cursor: pointer; color: var(--a-muted, #7A7A7A);
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.account-popover-close:hover { background: var(--a-fill, #232428); color: var(--a-ink, #f7f7f7); }
.account-popover .account-divider { margin: 18px 0; }

.account-form { display: flex; flex-direction: column; gap: 16px; }
.account-field { display: flex; flex-direction: column; gap: 8px; }
.account-field > span {
  font-weight: 600; font-size: 0.85rem; color: var(--a-ink-soft, #cacaca);
}
/* textarea and select were added with the author page, which is the first form
   in this shell to need either. They share the input's box rather than getting
   their own: three differently-shaped controls in one form is what makes a
   settings screen look assembled from parts. */
.account-field input,
.account-field textarea,
.account-field select {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--a-line-strong, #3b3d42);
  border-radius: var(--a-radius-sm, 7px);
  padding: 12px 16px;
  font-family: inherit; font-size: 0.95rem; font-weight: 400;
  color: var(--a-ink, #f7f7f7); background: var(--a-fill, #232428);
  transition: border-color .2s, box-shadow .2s;
}
.account-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
/* The native arrow is drawn in the OS's own colour and disappears on a dark
   field, so it is replaced with one painted in the field's text colour. */
.account-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23cacaca' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.account-field select option { background: var(--a-fill, #232428); color: var(--a-ink, #f7f7f7); }
/* A file input's button is the browser's, and on a dark field it renders as a
   light slab. Padding it back and letting the control size itself keeps it from
   filling the row. */
.account-field input[type="file"] { padding: 10px 12px; font-size: 0.9rem; }
.account-field input[type="checkbox"] { width: auto; }

.account-field input::placeholder,
.account-field textarea::placeholder { color: var(--a-faint, #5c5e63); }
.account-field input:focus,
.account-field textarea:focus,
.account-field select:focus {
  outline: none; border-color: var(--mythiq-hover-blue);
}

/* Visually hidden, still announced. The author page's link rows label each of
   their three controls for assistive tech while the row's own header carries
   the visible column names. */
.account-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.account-current-line { margin: 0; font-size: 0.9rem; color: var(--a-muted, #7A7A7A); }
.account-current-line strong { color: var(--a-ink, #f7f7f7); }
.account-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

/* honeypot inside popovers */
.account-form .hp-field { position: absolute; left: -9999px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  /* Drill-down layout: the sidebar and content swap via the `is-content-view`
     class on .account-shell (toggled by JS). Menu view = sidebar visible +
     "Back to home". Content view = content visible + "Back" to menu.
     The nav items reuse the desktop vertical-list style (42px, full-width,
     black-fill active). */
  .account-layout { grid-template-columns: 1fr; gap: 24px; }
  .account-layout .account-content { display: none; }
  .account-shell.is-content-view .account-layout .account-sidebar { display: none; }
  .account-shell.is-content-view .account-layout .account-content { display: block; }

  /* Top-bar swap: "Back to home" by default (menu view), "Back" inside a section. */
  .account-shell.is-content-view .account-back-home { display: none; }
  .account-shell.is-content-view .account-back-to-menu { display: inline-flex; }

  .account-sidebar { gap: 16px; }
  .account-nav-group { width: 100%; padding: 4px 0 6px; }
  /* No selected state on the mobile menu list — items look identical whether
     or not they carry is-active (the class still tracks which pane to open). */
  .account-nav-item.is-active { background: transparent; color: var(--a-ink, #f7f7f7); font-weight: 500; }
  .account-nav-item.is-active:hover { background: rgba(255,255,255,.06); color: var(--a-ink, #f7f7f7); }
  .account-signout { margin-top: 10px; }
  .account-signout-btn { width: 100%; }
}
@media (max-width: 520px) {
  .account-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .account-form-actions { flex-direction: column-reverse; align-items: stretch; }
  .account-form-actions .btn-primary,
  .account-form-actions .btn-ghost,
  .account-form-actions .btn-danger-solid { width: 100%; }

  /* Two tiles a row rather than four slivers, and a mod's buttons go full
     width under it instead of squeezing beside the title. */
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-mod-actions { width: 100%; }
  .account-mod-actions .btn-outline,
  .account-mod-actions .btn-ghost { flex: 1 1 auto; }
  .account-card-actions .btn-primary,
  .account-card-actions .btn-outline { flex: 1 1 auto; }
}

/* ---- Marketing consent toggle switch (Settings → Profile) ---- */
.account-marketing-form { display: inline-flex; align-items: center; }
.account-toggle {
  position: relative; display: inline-block; width: 42px; height: 24px;
  flex: 0 0 auto;
}
.account-toggle input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.account-toggle-track {
  position: absolute; inset: 0; background: var(--a-line-strong, #3b3d42);
  border-radius: var(--radius-pill); transition: background-color .15s;
}
.account-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #ffffff; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
.account-toggle input:checked ~ .account-toggle-track { background: var(--a-accent, var(--mythiq-blue)); }
.account-toggle input:checked ~ .account-toggle-thumb { transform: translateX(18px); }
.account-toggle input:focus-visible ~ .account-toggle-track {
  outline: 2px solid var(--a-accent); outline-offset: 2px;
}
