/* Phase G11 — account page IA.
 *
 * Left sidebar (240px) at >=1024px, collapses to a horizontal rail at
 * 768–1023px, and to a slide-in drawer below 768px. The right pane is
 * a single focused view per section, max-width 960px. Tokens use the
 * shared :root variables defined in styles.css so colour drift can't
 * happen. The legacy .account-card / .account-rail selectors stay
 * intact for any other view that imports them, but the new IA hangs
 * off .account-pane / .account-rail-list. */

.account-body { background: var(--page, #f6f8fb); }

.account {
  --rail-width: 240px;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 24px auto 64px;
  padding: 0 24px;
  align-items: flex-start;
}

/* Sidebar shell. Sticky so the rail is always reachable while the
   buyer scrolls a long invoice list. min-height: 0 lets the inner
   list scroll independently when the viewport is shorter than the
   list itself. */
.account-rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 14px;
  padding: 14px 12px;
  max-height: calc(100vh - 48px);
  min-height: 0;
}
.account-rail-head {
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--line, #dbe2ea);
  margin-bottom: 8px;
}
.account-rail-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #657083);
  font-weight: 600;
}
.account-rail-email {
  display: block;
  font-size: 13px;
  color: var(--ink, #172033);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.account-rail-list li { margin: 0; }
.account-rail-foot {
  border-top: 1px solid var(--line, #dbe2ea);
  margin-top: 8px;
  padding-top: 8px;
}
.account-rail-signout {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--muted, #657083);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.account-rail-signout:hover { background: #f1f4f9; color: var(--ink, #172033); }

/* Each rail item is a button (focusable, keyboard-activatable). The
   `display: grid` lets the icon + label + badge align without
   fragile flex-grow rules. */
.account-tab {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink, #172033);
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  transition: background 120ms ease, color 120ms ease;
}
.account-tab:hover { background: var(--blue-soft, #eaf3ff); }
.account-tab:focus-visible {
  outline: 2px solid var(--blue, #0b63b6);
  outline-offset: 2px;
}
.account-tab.active {
  background: var(--blue, #0b63b6);
  color: #fff;
}
.account-tab.active .account-tab-icon { color: #fff; }
.account-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #657083);
}
.account-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-tab-badge {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--pill-neutral-bg, #eef1f6);
  color: var(--pill-neutral-fg, #657083);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.account-tab.active .account-tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.account-tab-badge-danger {
  background: var(--pill-danger-bg, #fff0ee);
  color: var(--pill-danger-fg, #b42318);
}
.account-tab.active .account-tab-badge-danger {
  background: #fff;
  color: var(--red, #b42318);
}
.account-tab-meta {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #657083);
  font-weight: 600;
}
.account-tab.active .account-tab-meta { color: rgba(255,255,255,0.85); }

/* Hamburger toggle + scrim are hidden until the breakpoint kicks in. */
.account-rail-toggle { display: none; }
.account-rail-scrim { display: none; }
.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;
}

/* ---- Right pane shell ---------------------------------------------- */

.account-content {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 960px;
}
.account-pane {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 14px;
  padding: 28px 32px;
  display: grid;
  gap: 24px;
}
/* Specificity matters: `display: grid` above outranks the UA-style
   `[hidden] { display: none }`, so without this rule every inactive
   pane stays visible and the IIFE never gets to "focus the active
   one". */
.account-pane[hidden] { display: none !important; }
.account-pane-header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line, #dbe2ea);
  padding-bottom: 16px;
}
.account-pane-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink, #172033);
  letter-spacing: -0.01em;
}
.account-pane-title:focus-visible {
  outline: 2px solid var(--blue, #0b63b6);
  outline-offset: 2px;
  border-radius: 4px;
}
.account-pane-sub {
  margin: 0;
  color: var(--muted, #657083);
  font-size: 14px;
}
.account-pane-body { display: grid; gap: 24px; }

.account-subsection { display: grid; gap: 12px; }
.account-subsection-heading {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #657083);
  font-weight: 600;
}

/* Active alerts banner. One row per actionable item; clicking the
   embedded link moves the buyer to the relevant pane. Built once per
   page; account.js fills the items on first sweep. */
.account-alerts {
  display: grid;
  gap: 8px;
  border: 1px solid var(--yellow-soft, #fff6df);
  background: linear-gradient(180deg, #fffaeb 0%, #fff 100%);
  border-radius: 12px;
  padding: 14px 16px;
}
.account-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink, #172033);
}
.account-alert-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yellow-soft, #fff6df);
  color: var(--yellow, #9a6b00);
  font-size: 12px;
  font-weight: 700;
}
.account-alert-link {
  color: var(--blue, #0b63b6);
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
}
.account-alert-link:hover { text-decoration: underline; }
.account-alert.is-danger .account-alert-icon {
  background: var(--pill-danger-bg, #fff0ee);
  color: var(--pill-danger-fg, #b42318);
}

/* Filter chip rail (orders / notifications). */
.account-filterbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.account-filter {
  border: 1px solid var(--line, #dbe2ea);
  background: var(--panel, #fff);
  color: var(--ink, #172033);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.account-filter:hover { background: var(--blue-soft, #eaf3ff); }
.account-filter.is-active {
  background: var(--blue, #0b63b6);
  border-color: var(--blue, #0b63b6);
  color: #fff;
}
.account-filter-action { margin-left: auto; }

/* List rows reused across panels. */
.account-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.account-list li {
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel, #fff);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.account-list li.unread {
  border-left: 3px solid var(--blue, #0b63b6);
  background: var(--blue-soft, #eaf3ff);
}
.account-list li > div:first-child { min-width: 0; }
.account-list li strong { display: block; }
.account-list li .muted { font-size: 13px; }

/* Empty + skeleton states. The skeleton is intentionally low-fidelity
   (3 grey rectangles) — it's a *signal*, not a placeholder for the
   content shape. Mostly so the panel doesn't flash empty between hash
   activation and the first /me/* response. */
.account-empty {
  border: 1px dashed var(--line, #dbe2ea);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted, #657083);
  background: #fafbfd;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.account-empty-title {
  font-weight: 600;
  color: var(--ink, #172033);
  font-size: 15px;
}
.account-empty a { color: var(--blue, #0b63b6); }
.account-skeleton {
  display: grid;
  gap: 10px;
}
.account-skeleton-row {
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef1f6 0%, #f6f8fb 50%, #eef1f6 100%);
  background-size: 200% 100%;
  animation: account-shimmer 1.4s ease-in-out infinite;
}
@keyframes account-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .account-skeleton-row { animation: none; }
}

/* ---- Profile pane -------------------------------------------------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--blue-soft, #eaf3ff);
  border-radius: 12px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--blue, #0b63b6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.profile-identity-text { display: grid; gap: 4px; min-width: 0; }
.profile-identity-name {
  font-weight: 700;
  color: var(--ink, #172033);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-identity-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #657083);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.profile-verified-pill {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft, #e8f6f1);
  color: var(--green, #16805f);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.profile-form { display: grid; gap: 18px; max-width: 560px; }
.profile-fieldset {
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 12px;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}
.profile-fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #657083);
}
.profile-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink, #172033); }
.profile-form input,
.profile-form select {
  border: 1px solid var(--line-strong, #c9d3df);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  background: #fff;
}
.profile-form input:focus,
.profile-form select:focus {
  outline: 2px solid var(--blue, #0b63b6);
  outline-offset: -1px;
  border-color: var(--blue, #0b63b6);
}
.profile-form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-hint { margin: 0; font-size: 13px; }

/* ---- Watching grid ------------------------------------------------- */
.watching-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.watching-card {
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel, #fff);
  display: grid;
  gap: 8px;
}
.watching-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #172033);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.watching-card-meta { font-size: 12.5px; color: var(--muted, #657083); }
.watching-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .watching-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Credits hero -------------------------------------------------- */
.credit-hero {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(135deg, var(--blue, #0b63b6), var(--blue-dark, #084a8f));
  border-radius: 14px;
  color: #fff;
}
.credit-hero-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.credit-hero-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- Status text --------------------------------------------------- */
.status { min-height: 20px; font-size: 13px; color: var(--muted, #657083); margin: 0; }
.status.is-success { color: var(--green, #16805f); }
.status.is-error { color: var(--red, #b42318); }

/* ---- Invoice card (Phase G11 polish) ------------------------------- */
/* The invoice card is rendered as a single <li> from invoiceCardHtml().
   Before G11 it inherited the generic `account-list li` grid, which
   broke on mobile because the breakdown <dl> was forced into a tiny
   column. Now it owns its own block-flow layout so the header / pill /
   breakdown / pay button / nested orders stack cleanly. */
.account-list li.invoice-card {
  grid-template-columns: 1fr;
  gap: 14px;
  display: block;
  padding: 18px 18px 16px;
}
.invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.invoice-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--pill-neutral-bg, #eef1f6);
  color: var(--pill-neutral-fg, #657083);
}
.invoice-status-open {
  background: var(--pill-warning-bg, #fff6df);
  color: var(--pill-warning-fg, #9a6b00);
}
.invoice-status-paid {
  background: var(--pill-success-bg, #e8f6f1);
  color: var(--pill-success-fg, #16805f);
}
.invoice-status-partially_paid {
  background: var(--pill-info-bg, #eaf3ff);
  color: var(--pill-info-fg, #084a8f);
}
.invoice-status-cancelled, .invoice-status-expired {
  background: var(--pill-danger-bg, #fff0ee);
  color: var(--pill-danger-fg, #b42318);
}
.invoice-countdown {
  font-size: 13px;
  color: var(--muted, #657083);
  font-variant-numeric: tabular-nums;
}
.invoice-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f6f8fb;
  border-radius: 10px;
  font-size: 13.5px;
}
.invoice-breakdown > div { display: contents; }
.invoice-breakdown dt {
  color: var(--muted, #657083);
  margin: 0;
}
.invoice-breakdown dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #172033);
}
.invoice-breakdown .invoice-total dt,
.invoice-breakdown .invoice-total dd {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink, #172033);
  padding-top: 6px;
  border-top: 1px solid var(--line, #dbe2ea);
  margin-top: 4px;
}
.invoice-orders {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.invoice-orders .invoice-order {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 10px;
  background: var(--panel, #fff);
  align-items: center;
}
.invoice-orders .invoice-order strong { display: block; font-size: 14px; }
@media (max-width: 767px) {
  .invoice-breakdown { padding: 10px 12px; }
  .invoice-orders .invoice-order { grid-template-columns: 1fr; }
}

/* ---- Inline pills (used by bid + appointment rows) ----------------- */
.pill-success, .pill-warning, .pill-neutral {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-success { background: var(--pill-success-bg, #e8f6f1); color: var(--pill-success-fg, #16805f); }
.pill-warning { background: var(--pill-warning-bg, #fff6df); color: var(--pill-warning-fg, #9a6b00); }
.pill-neutral { background: var(--pill-neutral-bg, #eef1f6); color: var(--pill-neutral-fg, #657083); }

/* ---- Phase F4 prefs grid (preserved) ------------------------------- */
.prefs-blurb { color: var(--muted, #657083); margin: 0 0 4px; }
.prefs-status { min-height: 20px; font-size: 13px; color: var(--muted, #657083); margin-bottom: 8px; }
.prefs-status.is-success { color: var(--green, #16805f); }
.prefs-status.is-error { color: var(--red, #b42318); }
.prefs-grid-wrap { overflow-x: auto; }
.prefs-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 10px;
  overflow: hidden;
}
.prefs-grid th, .prefs-grid td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
}
.prefs-grid thead th {
  background: #f6f8fb;
  font-weight: 600;
  color: var(--ink, #172033);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prefs-grid tbody th { font-weight: 500; color: var(--ink, #172033); }
.prefs-grid td { text-align: center; }
.prefs-grid tr:last-child th, .prefs-grid tr:last-child td { border-bottom: 0; }
.prefs-checkbox { display: inline-flex; align-items: center; justify-content: center; }
.prefs-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.prefs-checkbox input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.4; }

.prefs-section-heading {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #172033);
}
.muted { color: var(--muted, #657083); }
.sms-form { display: grid; gap: 12px; max-width: 460px; margin-top: 4px; }
.sms-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink, #172033); }
.sms-form input {
  border: 1px solid var(--line-strong, #c9d3df);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  background: #fff;
}
.sms-form-actions { display: flex; gap: 12px; align-items: center; }

/* Phase G7 — inline Pay-now drawer.
   Renders inside the .invoice-card so the buyer keeps the line items
   visible while entering card details. The drawer is a self-contained
   block at the foot of the card; no overlay, no body scroll lock. */
.invoice-card { position: relative; }
.pay-drawer {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  gap: 12px;
}
.pay-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.pay-drawer-amount { margin: 0; font-size: 14px; color: #4b5563; }
.pay-drawer-amount strong { color: #1f2937; }
.pay-element { min-height: 60px; }
.pay-error { color: #b42318; margin: 0; font-size: 13px; }
.pay-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.pay-drawer-note { margin: 0; font-size: 12px; color: #6b7280; }
.stripe-unavailable-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
}

/* ---- Tablet (768–1023px) — compact rail without text labels -------- */
@media (max-width: 1023px) {
  .account {
    --rail-width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .account-rail {
    position: static;
    flex-direction: column;
    max-height: none;
    padding: 12px;
  }
  .account-rail-head { display: none; }
  .account-rail-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .account-rail-list li { flex: 0 0 auto; scroll-snap-align: start; }
  .account-tab {
    grid-template-columns: 18px auto auto;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .account-rail-foot { display: none; }
  .account-pane { padding: 22px 24px; }
  .watching-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Mobile (<768px) — slide-in drawer ----------------------------- */
@media (max-width: 767px) {
  .account {
    grid-template-columns: 1fr;
    margin: 12px auto 48px;
    padding: 0 16px;
    gap: 12px;
  }
  .account-rail-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--line, #dbe2ea);
    background: var(--panel, #fff);
    border-radius: 10px;
    cursor: pointer;
    align-self: flex-start;
  }
  .account-rail-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink, #172033);
  }
  .account-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 86vw;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    border-radius: 0 14px 14px 0;
    border: 1px solid var(--line, #dbe2ea);
    border-left: 0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    max-height: 100vh;
  }
  .account-rail[data-open="true"] { transform: translateX(0); }
  .account-rail-head { display: block; }
  .account-rail-list {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .account-rail-foot { display: block; }
  .account-tab { grid-template-columns: 22px 1fr auto; }
  .account-rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 55;
  }
  /* Same specificity trap as `.account-pane[hidden]` above: explicit
     `display:block` outranks UA `[hidden]`. Without this the scrim
     greys the entire page on first mobile load. */
  .account-rail-scrim[hidden] { display: none; }
  .account-pane { padding: 18px; }
  .account-pane-title { font-size: 20px; }
  .account-content { gap: 16px; }
  .watching-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .account-rail { transition: none; }
}
