/* ══════════════════════════════════════════════════════════════════════════
   ACCOUNTS HUB — Phase W1 scaffolding (additive pair with accounts-hub.js)
   ──────────────────────────────────────────────────────────────────────────
   PURE ADDITIVE (Glass Lagoon pattern). Loaded after every base stylesheet;
   styles ONLY the new #acctHub* elements + the two entry points (the
   #dockAccountItem dock slot and the adopted profile-menu row). No base
   selector is redefined.

   One state machine, two presentations (accounts-hub.js):
     ≤768px  bottom sheet — same chrome recipe + z-slot as the options sheet
             (#slideMenu): scrim 1490 < header 1500 < sheet 1600 < dock 1700,
             so the sheet rises from BEHIND the dock and the dock stays
             tappable. Views open as full pages (z 1400) behind the sheet.
     ≥769px  centered modal — same tier as the app's full modals
             (.modal-overlay-container, z 2000); width per state:
             420px doors/code · 520px Manage · 560px pack/dashboard · 760px checkout.

   Spec: docs/ACCOUNTS_HUB_BUILD_PLAN.md (Phase W1) + the two design mockups
   linked there. Copy deliberately matches the mockups.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── dock entry point: NEW badge on the Accounts item (one release only) ── */
#dockAccountItem {
  position: relative;
}

/* W4: while the hub is open the Accounts item carries .gl-active (set by
   accounts-hub.js) — mute the underlying tab's own active colour so only one
   dock item reads selected. Colour only; the raised Play circle keeps its
   shape. Reverts the instant the hub closes (class comes off). */
#glassDock:has(#dockAccountItem.gl-active) .gl-dock-item.gl-active:not(#dockAccountItem) {
  color: #888780;
}
#glassDock:has(#dockAccountItem.gl-active) .gl-dock-play.gl-active .gl-play-circle {
  background: #888780;
  box-shadow: 0 6px 14px rgba(6, 18, 58, 0.22);
}
#dockAccountItem::after {
  content: "NEW";
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -30px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  background: #fc8008;
  border-radius: 999px;
  padding: 2px 5px;
  pointer-events: none;
}

/* ── profile-menu entry point: NEW badge on the adopted /auth/ row.
   glass-skin.css §18 already styles the row itself (flex, person glyph). ── */
#settingsDropdown a[href="/auth/"] .ah-new-badge {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  background: #fc8008;
  border-radius: 999px;
  padding: 2.5px 6px;
  flex-shrink: 0;
}
/* The ⭐ tag that sat after the "For Grown-ups" label is gone — accounts-hub.js
   no longer appends .ah-star-badge, so its rule went with it rather than being
   left as dead style. */

/* ══ shared chrome ══ */

#acctHubScrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 59, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#acctHubScrim.ah-show {
  opacity: 1;
  pointer-events: auto;
}

#acctHubSheet {
  position: fixed;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  background: var(--gl-frost-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 255, 0.94)));
  border: 1px solid var(--gl-frost-border, rgba(255, 255, 255, 0.9));
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1b2440;
}
#acctHubSheet.ah-open {
  display: flex;
}

.ah-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 8px;
}
.ah-back {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #185fa5;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(5, 18, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ah-back[hidden] {
  display: none;
}
.ah-crumbs {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c89a8;
}
.ah-title {
  font-size: 19px;
  margin: 0;
  color: #1b2440;
  font-weight: 800;
  line-height: 1.25;
}
.ah-close {
  margin-left: auto;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #4a5578;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(5, 18, 58, 0.12);
  flex: none;
}

.ah-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 18px;
}
.ah-sub {
  text-align: center;
  font-size: 12.5px;
  color: #66738f;
  margin: 0 0 10px;
  font-weight: 600;
}

/* Hero image between the title block and the doors (accounts-hub.js
   renderRoles). Rounded to match the rows below it; the source is 1200x660 so
   it scales down to the sheet width rather than up. */
.ah-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 14px;
}

/* ── the two-door menu (doors differ by pack state; see accounts-hub.js) ── */
.ah-door {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #e1e9f5;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-top: 9px;
  cursor: pointer;
  font-family: inherit;
  color: #1b2440;
  transition: border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ah-door:hover {
  border-color: #1e6fd9;
}
.ah-door:active {
  transform: scale(0.985);
}
.ah-door-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2fe;
  color: #185fa5;
}
.ah-door-ic svg {
  width: 20px;
  height: 20px;
}
.ah-door-t {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  color: #1b2440;
  line-height: 1.3;
}
.ah-door-s {
  display: block;
  font-size: 11.5px;
  color: #66738f;
  line-height: 1.35;
}
.ah-door-chev {
  margin-left: auto;
  color: #9aa7c4;
  font-weight: 800;
  font-size: 15px;
}
.ah-doors-note {
  text-align: center;
  font-size: 11px;
  color: #9aa7c4;
  margin: 12px 0 0;
  font-weight: 600;
}

/* ── W2 sign-in gate (/auth/ STATE 2 in the sheet/modal) ── */
.ah-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #fcf0c8;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  margin: 6px 0 16px;
}
.ah-badge-title {
  color: #c46a15;
  font-weight: 800;
  font-size: 16.8px;
}
/* lighter descriptor beneath the title — clearly a subtitle via weight + colour */
.ah-badge-sub {
  color: #a5772f;
  font-weight: 500;
  font-size: 14px;
}
.ah-gate-h {
  text-align: center;
  font-size: 19px;
  margin: 12px 0 18px;
  color: #1b2440;
  font-weight: 800;
}
.ah-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  border: 2px solid #e1e9f5;
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  color: #1b2440;
  transition: border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ah-auth-btn:hover {
  border-color: #1e6fd9;
}
/* Last-used provider: subtle highlight + a "Last time" pill so a returning
   parent picks the same identity (finds their pack; dodges Apple relay). */
.ah-auth-btn.ah-auth-last {
  border-color: #1e6fd9;
  background: #f2f8ff;
}
.ah-auth-hint {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1e6fd9;
  background: #e2eefb;
  border-radius: 999px;
  padding: 2px 8px;
}
.ah-auth-btn:active {
  transform: scale(0.985);
}
.ah-auth-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.ah-auth-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.ah-gate-note {
  text-align: center;
  font-size: 11px;
  color: #9aa7c4;
  margin: 10px 0 0;
  font-weight: 600;
}
/* "Use the same sign-in you used last time" — shown only when a provider hint exists. */
.ah-gate-tip {
  text-align: center;
  font-size: 12px;
  color: #1e6fd9;
  font-weight: 700;
  margin: 12px 0 0;
}
/* "Just looking? See what's included →" — the way out of the gate for a parent
   who is not ready to sign in. A borderless button, quieter than the provider
   rows above it: it is an alternative to signing in, not a fourth way to do it.
   Underlined so it reads as a link despite being a <button> (it drives an
   in-shell view change, so it cannot be an <a href>). */
.ah-gate-peek {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 12px 4px 2px;
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #1e6fd9;
  text-decoration: underline;
  cursor: pointer;
}
.ah-gate-peek:hover {
  color: #10457a;
}
.ah-gate-peek:focus-visible {
  outline: 2px solid #271ECC;
  outline-offset: 2px;
  border-radius: 8px;
}

.ah-gate-err {
  margin-top: 10px;
  background: #fdecec;
  border: 1px solid #f5c6c6;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}
.ah-gate-err[hidden] {
  display: none;
}
.ah-gate-err a {
  color: #185fa5;
}

/* ── W3 view content: cards, CTAs, inputs, rows (mockup recipes, ah-*) ── */
.ah-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 3px 12px rgba(5, 18, 58, 0.07);
}
.ah-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1b2440;
  font-weight: 800;
}
.ah-card-sub {
  font-size: 12px;
  color: #66738f;
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}
.ah-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 2px;
}
.ah-price {
  font-size: 30px;
  font-weight: 800;
  color: #1b2440;
}
.ah-price-note {
  font-size: 12px;
  color: #66738f;
  font-weight: 700;
}
.ah-benefits {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: #3d4867;
  font-weight: 600;
}
.ah-benefits li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 3px 0;
}
.ah-benefits li::before {
  content: "✓";
  color: #0e7a36;
  font-weight: 800;
}
.ah-cta {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  background: linear-gradient(180deg, #ffa547, #fc8008 55%, #e67300);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 12px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #c95f00, 0 8px 16px rgba(201, 95, 0, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
}
.ah-cta:disabled {
  opacity: 0.6;
  cursor: default;
}
.ah-cta.ah-cta-blue {
  background: linear-gradient(180deg, #6ea6f5, #1e6fd9 55%, #1a5fc0);
  box-shadow: 0 4px 0 #0c46a8, 0 8px 16px rgba(12, 70, 168, 0.3);
}
.ah-cta.ah-cta-ghost {
  background: #fff;
  color: #185fa5;
  box-shadow: inset 0 0 0 2px #c9dcf5;
  text-shadow: none;
}
.ah-fine {
  text-align: center;
  font-size: 11px;
  color: #9aa7c4;
  margin: 10px 0 0;
  font-weight: 600;
}
.ah-view-err {
  margin-top: 10px;
  background: #fdecec;
  border: 1px solid #f5c6c6;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}
.ah-view-err[hidden] {
  display: none;
}
.ah-code-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid #e1e9f5;
  border-radius: 14px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: #1b2440;
}
.ah-code-input:focus {
  outline: none;
  border-color: #1e6fd9;
}
.ah-name-input {
  font-family: inherit;
}

/* children / identity rows */
.ah-kid-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f8;
}
.ah-kid-row:last-child {
  border-bottom: none;
}
.ah-kid-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: #e3f0ff;
  color: #185fa5;
}
.ah-kid-ava.ah-pal-1 {
  background: #ffe9d6;
  color: #b45309;
}
.ah-kid-ava.ah-pal-2 {
  background: #e6f6ec;
  color: #0e7a36;
}
.ah-kid-ava.ah-parent-ava {
  background: #ffe4ec;
}
.ah-kid-meta {
  flex: 1;
  min-width: 0;
}
.ah-kid-nm {
  font-weight: 800;
  font-size: 13.5px;
  color: #1b2440;
}
.ah-kid-cd {
  font-size: 11.5px;
  color: #66738f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ah-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2fe;
  color: #185fa5;
  border: none;
  cursor: pointer;
  font-family: inherit;
  flex: none;
}
.ah-linked-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf2fe;
  color: #185fa5;
  vertical-align: 1px;
}

/* labelled family summary strip */
.ah-strip {
  margin-top: 12px;
  background: #e8f2fd;
  border-radius: 14px;
  padding: 8px 8px 10px;
}
.ah-strip-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c89a8;
  text-align: center;
  margin-bottom: 6px;
}
.ah-strip-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #66738f;
  text-align: center;
}
.ah-strip-row strong {
  display: block;
  font-size: 15px;
  color: #1b2440;
  font-variant-numeric: tabular-nums;
}

/* add-child menu row */
.ah-mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: #1b2440;
  font-weight: 700;
  text-align: left;
}
.ah-mrow:disabled {
  opacity: 0.55;
  cursor: default;
}
.ah-mrow-sub {
  display: block;
  font-size: 11px;
  color: #66738f;
  font-weight: 600;
}
.ah-mrow-chev {
  color: #9aa7c4;
  font-weight: 800;
}
.ah-add-form[hidden] {
  display: none;
}

/* dashboard chips + card head */
.ah-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ah-chip {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: #66738f;
  box-shadow: 0 2px 6px rgba(5, 18, 58, 0.06);
}
.ah-chip[aria-pressed="true"] {
  border-color: #1e6fd9;
  color: #185fa5;
}
.ah-dash-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ah-dash-nm {
  font-weight: 800;
  font-size: 17px;
  color: #1b2440;
}

/* ── W1 placeholder chrome (still used for loading/holding states) ── */
.ah-ph {
  background: #fff;
  border-radius: 16px;
  padding: 26px 16px;
  margin-top: 12px;
  box-shadow: 0 3px 12px rgba(5, 18, 58, 0.07);
  text-align: center;
}
.ah-ph-emoji {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
}
.ah-ph p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #66738f;
}

/* .ah-teacher was the quiet "Teaching a class?" line under the account doors.
   The teacher is a full door of their own now (accounts-hub.js renderRoles),
   so the muted footnote style has nothing left to style. */

/* "All N places used" — the add-a-child pill at the seat limit. It used to be
   a link to Manage family; post-merge there is nowhere to send anyone, so it
   is a disabled button whose tooltip explains the limit. Kept VISIBLE at the
   limit on purpose: a control that vanishes reads as a bug. */
.pv-pill.add[disabled] {
  opacity: 0.65;
  cursor: default;
}

/* Spinner for the waiting placeholders (accounts-hub.js phWait). Its own
   keyframes rather than borrowing co-spin from shared/inline-checkout.css: that
   file is a Match2.Cards parallel copy, and depending on it across files would
   make this animation breakable from a repo this one does not control.
   Reduced motion slows it rather than freezing it, matching the checkout
   spinner's behaviour — a stopped spinner reads as a hung screen. */
.ah-ph-spinner {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  border: 3px solid #e1e9f5;
  border-top-color: #185fa5;
  border-radius: 50%;
  animation: ah-spin 0.75s linear infinite;
}
@keyframes ah-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ah-ph-spinner { animation-duration: 1.5s; }
}

/* ══ ≤768px: bottom sheet + full page behind it ══ */
@media (max-width: 768px) {
  /* scrim sits in the options-sheet slot: above the page, below the header */
  #acctHubScrim {
    z-index: 1490;
  }

  #acctHubSheet {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 82vh;
    max-height: 82dvh;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(var(--mc-dock-space, 60px) + 8px); /* clear the dock riding above */
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
    z-index: 1600; /* below the dock (1700): the sheet pops up from behind it */
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.22, 0.9, 0.34, 1);
  }
  #acctHubSheet.ah-open {
    transform: translateY(0);
  }
  /* grab-handle pill, same recipe as the options sheet */
  #acctHubSheet::before {
    content: "";
    flex: 0 0 auto;
    align-self: center;
    width: 44px;
    height: 5px;
    margin: 8px 0 6px;
    border-radius: 999px;
    background: rgba(27, 36, 64, 0.22);
  }
  /* the sheet holds only the doors on mobile: centre the title, no ← / crumbs */
  #acctHubSheet .ah-back,
  #acctHubSheet .ah-crumbs {
    display: none;
  }
  #acctHubSheet .ah-head {
    justify-content: center;
    position: relative;
  }
  #acctHubSheet .ah-title {
    text-align: center;
    font-size: 21px;
  }
  #acctHubSheet .ah-close {
    position: absolute;
    right: 12px;
    top: 0;
    margin-left: 0;
  }
  /* gate state: the sheet reads badge-first like the mockup — the header
     collapses to just the ✕ (desktop keeps its "Account" title) */
  #acctHubSheet.ah-gate-mode .ah-titles {
    display: none;
  }

  /* views render as full pages BEHIND the sheet (mockup .app-page):
     under the header (1500) and the scrim (1490), above the game. */
  #acctHubPage {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-menu-bar-height, 60px);
    bottom: 0;
    z-index: 1400;
    background: #f3f7fc;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(var(--mc-dock-space, 60px) + 20px);
    font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1b2440;
  }
  #acctHubPage[hidden] {
    display: none;
  }
  .ah-page-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
  }
  .ah-page-head .ah-back {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .ah-page-title {
    font-size: 21px;
    margin: 0;
    color: #1b2440;
    font-weight: 800;
  }
}

/* ══ ≥769px: centered modal (same tier as .modal-overlay-container, z 2000) ══ */
@media (min-width: 769px) {
  #acctHubScrim {
    z-index: 2000;
  }
  #acctHubSheet {
    left: 50%;
    top: 46%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(var(--ah-mw, 420px), calc(100vw - 48px));
    max-height: 86vh;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(5, 18, 58, 0.4);
    z-index: 2001;
    transition: width 0.2s ease;
    padding-top: 8px;
  }
  /* width per state (set as data-width by accounts-hub.js) */
  #acctHubSheet[data-width="narrow"] { --ah-mw: 420px; } /* doors · enter-a-code */
  #acctHubSheet[data-width="list"]   { --ah-mw: 520px; } /* manage */
  #acctHubSheet[data-width="wide"]   { --ah-mw: 760px; } /* checkout */
  /* Parent dashboard: ONE column at every width, exactly as designed for the
     phone. A 760px modal holding a 520px card left the offer beneath it
     stretched to full width — two different measures stacked. Narrowing the
     shell instead keeps card, offer and chart on the same edges. */
  #acctHubSheet[data-width="card"]   { --ah-mw: 560px; } /* dashboard · family pack */

  /* The shared pack caps itself at 480px because /auth/ centres it in a page
     column. Inside the hub the sheet already sets the measure, so let it fill
     — otherwise the pack sits narrower than the dashboard it was opened from. */
  #acctHubSheet .fp-pack { max-width: none; }

  /* the mobile page never shows at desktop widths — views live in the modal */
  #acctHubPage {
    display: none !important;
  }

  /* Centre the "Account" title, which mobile already does further up. Scoped to
     the top level via the hidden ← : sub-views show the arrow and crumbs, and
     there the left-aligned header is what you want. .ah-close comes out of flow
     so its width can't pull the centring off — same technique as the mobile
     block. Browsers without :has() keep the existing left alignment. */
  #acctHubSheet .ah-head:has(> .ah-back[hidden]) {
    justify-content: center;
    position: relative;
  }
  #acctHubSheet .ah-head:has(> .ah-back[hidden]) .ah-title {
    text-align: center;
  }
  #acctHubSheet .ah-head:has(> .ah-back[hidden]) .ah-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  /* Family Pack view: two columns in the wide (760px) modal — offer left,
     free-forever + @School cards right (mockup .buy-cols). */
  .ah-buy-cols {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 12px;
    align-items: start;
  }

  /* The old two-column dashboard grid is gone with the redesign — it placed
     .pv-inline-stats / .pv-panels / .pv-heatmap, none of which exist now. The
     card is a single column and the shell (data-width="card") sets the
     measure, so nothing inside needs its own max-width. */
}

/* The offer card moved into the card design (.pv-offer in parents-view.css)
   with the 2026-07-29 redesign, so the .ah-unlock block that lived here is
   gone rather than left as dead style. */

/* View transition — the body slides forward, the header stays pinned. The
   hub was already ONE shell (showView swaps the body; it never closes and
   reopens), so this only adds the motion that makes the stack legible. */
.ah-view-in { animation: ah-slide-in 0.24s cubic-bezier(0.22, 0.9, 0.34, 1); }
@keyframes ah-slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-view-in { animation: ah-fade-in 0.18s ease; }
  @keyframes ah-fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Parent's provider photo in the Manage-family identity row. The <img> falls
   back to the 👤 glyph on error (see accounts-hub.js), so a blocked or missing
   photo never leaves an empty circle. */
.ah-kid-ava { overflow: hidden; }
.ah-parent-ava img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
