/* ============================================================
   account-hub.css - My Account as a hub (owner, 2026-11-11). account-hub.js
   Who you are and your numbers up top, a door to everything below it,
   then the course, family, library and settings, calmer and tighter.
   ============================================================ */

/* ---- hero: face, name, numbers ---- */
.hub-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(22px, 3vw, 34px); }
.hub-hero .phero-inner { max-width: 1000px; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 34px); align-items: center; }
.hub-hero .phero-inner:has(> .aa-me) { grid-template-columns: auto minmax(0, 1fr) auto; }
.hub-hero h1 { font-size: clamp(30px, 3.8vw, 50px); margin: 0; }
.hub-id { min-width: 0; }
.hub-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.hub-plan[hidden] { display: none; }
.hub-plan-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 6px; border-radius: 999px; overflow: hidden; font-family: var(--f-body); font-weight: 700; font-size: 14px; color: var(--ink); background: #FFF6E3; box-shadow: inset 0 0 0 1.5px #EBD9B4; }
/* Max (owner, 2026-11-11: "doesn't look aura"): gold foil with a crown, one sheen pass when the page opens */
.hub-plan-pill.is-max { padding: 8px 16px 7px 12px; font-family: var(--f-disp); font-size: 13px; letter-spacing: .08em; color: #3B2300;
  background: linear-gradient(135deg, #FFF4C8 0%, #FFD457 24%, #F0AE1F 52%, #FFE27E 74%, #DC9410 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1.5px 0 rgba(140, 80, 0, .25), 0 0 0 1px rgba(190, 120, 0, .4), 0 8px 22px -8px rgba(230, 150, 0, .75); }
.hub-plan-pill.is-max svg { width: 17px; height: 17px; color: #7A4700; filter: drop-shadow(0 1px 0 rgba(255, 240, 190, .9)); }
.hub-plan-pill.is-max::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .75) 48%, transparent 62%); transform: translateX(-110%); animation: hub-sheen 1.3s ease-out .5s 1 both; pointer-events: none; }
.hub-plan-pill.is-fluent { color: #062B4E; background: linear-gradient(135deg, #CFEBFF 0%, #8DD3FF 45%, #5BBAF7 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(28, 143, 224, .35), 0 8px 18px -10px rgba(28, 143, 224, .7); }
.hub-plan-fam { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: #36506A; }
.hub-plan-faces { display: inline-flex; }
.hub-plan-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.hub-plan-faces img + img { margin-left: -8px; }
@keyframes hub-sheen { to { transform: translateX(110%); } }
.hub-since { margin: 10px 0 0; font-size: 14.5px; color: #4A6A88; }
.hub-since[hidden] { display: none; }

/* the face on the hub sits left and a little smaller; "Edit" is the pen alone */
.hub-hero .aa-me { --aa: clamp(84px, 9vw, 112px); }
.hub-hero .aa-me:not(.is-empty) .aa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hub-hero .aa-me.is-empty { gap: 10px; }
.hub-hero .aa-me.is-empty .aa-label { padding: 8px 14px; font-size: 13px; }

.hub-stats { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hub-stats[hidden] { display: none; }
.hub-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic n" "l l"; justify-items: start; align-items: center; column-gap: 8px; row-gap: 3px; min-width: 124px; padding: 14px 18px 13px; border-radius: 22px; background: var(--white); box-shadow: var(--soft); animation: hub-rise .6s var(--spring) both; }
.hub-stat:nth-child(2) { animation-delay: .06s; } .hub-stat:nth-child(3) { animation-delay: .12s; }
.hub-stat-ic { position: relative; grid-area: ic; width: 30px; height: 30px; display: grid; place-items: center; }
.hub-stat-ic > * { grid-area: 1 / 1; }
.hub-stat b { grid-area: n; font-family: var(--f-disp); font-weight: 700; font-size: 26px; line-height: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hub-stat > span:last-child { grid-area: l; font-size: 13px; font-weight: 600; color: #4A6A88; white-space: nowrap; }

/* ---- the doors (v3: art, not icons) ---- */
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 clamp(26px, 3.5vw, 40px); }
.hub-tiles[hidden] { display: none; }
.hub-tile {
  --lip: #DCE6F0;
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 14px;
  border-radius: 26px; background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 0 var(--lip), 0 18px 28px -20px rgba(11, 60, 110, .45);
  transition: transform .2s var(--spring), box-shadow .2s;
  animation: hub-rise .55s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms + .1s);
}
.hub-tile:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--lip), 0 24px 32px -20px rgba(11, 60, 110, .5); }
.hub-tile:active { transform: translateY(3px); transition-duration: .06s; box-shadow: 0 1px 0 var(--lip), 0 6px 10px -6px rgba(11, 60, 110, .4); }
.hub-tile:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.hub-tile-art { position: relative; display: grid; place-items: end center; height: 132px; border-radius: 19px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #EEF6FF 0%, #DCEBFA 100%); }
.hub-tile-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 60, 110, .22), transparent); z-index: 0; }
.hub-tile-art > * { position: relative; z-index: 1; transition: transform .35s var(--spring); }
.hub-tile:hover .hub-tile-art > * { transform: translateY(-4px); }
.hub-saqr { height: 112px; width: auto; margin-bottom: 12px; }
.hub-covers { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 14px; }
.hub-covers img { width: 58px; height: auto; aspect-ratio: 720 / 1304; object-fit: cover; border-radius: 4px 7px 7px 4px; box-shadow: 0 10px 16px -8px rgba(11, 40, 80, .55); transition: transform .35s var(--spring); }
.hub-covers.n2 img:first-child, .hub-covers.n3 img:first-child { transform: rotate(-9deg) translate(10px, 4px); }
.hub-covers.n2 img:last-child, .hub-covers.n3 img:last-child { transform: rotate(9deg) translate(-10px, 4px); }
.hub-covers.n3 img:nth-child(2) { position: relative; z-index: 1; width: 64px; }
.hub-tile:hover .hub-covers.n2 img:first-child, .hub-tile:hover .hub-covers.n3 img:first-child { transform: rotate(-13deg) translate(4px, 2px); }
.hub-tile:hover .hub-covers.n2 img:last-child, .hub-tile:hover .hub-covers.n3 img:last-child { transform: rotate(13deg) translate(-4px, 2px); }
.hub-tile:hover .hub-tile-art > .hub-covers { transform: none; }
.hub-faces { display: grid; grid-template-columns: repeat(2, 50px); gap: 4px 2px; margin-bottom: 14px; }
.hub-faces img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 8px 14px -8px rgba(11, 60, 110, .6); }
.hub-faces img:nth-child(2), .hub-faces img:nth-child(4) { transform: translateY(8px); }
.hub-tile-t { display: grid; gap: 2px; padding: 0 6px; min-width: 0; }
.hub-tile-t b { font-weight: 700; font-size: 16px; line-height: 1.2; }
.hub-tile-t small { font-size: 13px; color: #5B6F84; }

/* ---- what's new ---- */
.hub-news { position: relative; display: flex; gap: clamp(16px, 2.5vw, 28px); align-items: center; margin: 0 0 clamp(26px, 3.5vw, 40px); padding: clamp(18px, 2.4vw, 24px); padding-right: 56px; border-radius: 26px; background: linear-gradient(120deg, #EAF6FF 0%, #FFFFFF 46%); box-shadow: var(--soft); animation: hub-rise .6s var(--spring) .2s both; transition: opacity .35s, transform .35s var(--ease); }
.hub-news.is-gone { opacity: 0; transform: translateY(-8px) scale(.98); }
.hub-news-faces { flex: none; display: grid; grid-template-columns: repeat(2, 54px); gap: 6px; transform: rotate(-4deg); }
.hub-news-faces img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 10px 16px -10px rgba(11, 60, 110, .6); }
.hub-news-faces img:nth-child(2) { transform: translateY(8px); }
.hub-news-faces img:nth-child(4) { transform: translateY(8px); }
.hub-news-t { min-width: 0; }
.hub-news-k { margin: 0 0 4px; font-family: var(--f-body); font-weight: 700; font-size: 14px; color: #C26A00; }
.hub-news h2 { margin: 0 0 6px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.hub-news p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #3E5670; max-width: 62ch; }
.hub-news-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hub-news-acts:empty { display: none; }
.hub-news-credit { margin-top: 10px !important; font-size: 13.5px !important; color: #5A4A33 !important; }
.hub-news-credit[hidden] { display: none; }
.hub-news-credit b { color: var(--ink); }
.hub-news-acts .btn-go, .hub-news-acts .ac-vol-dl { min-height: 42px; padding: 0 18px; font-size: 14px; }
.hub-news-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 60, 110, .06); color: #36506A; cursor: pointer; transition: background-color .2s, transform .2s var(--spring); }
.hub-news-x:hover { background: rgba(11, 60, 110, .12); transform: rotate(90deg); }
.hub-news-x svg { width: 16px; height: 16px; }

/* ---- the library: compact rows instead of tall posters ---- */
#shelf .ac-shelf { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
#shelf .ac-vol { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; border-radius: 24px; background: var(--white); }
#shelf .ac-vol:nth-child(n) { background: var(--white); }
#shelf .ac-vol::before { display: none; }
#shelf .ac-vol-cover { grid-row: 1 / span 2; align-self: center; height: 128px; padding: 14px 0 14px 16px; filter: drop-shadow(0 12px 12px rgba(11, 60, 110, .3)); }
#shelf .ac-vol:not(:has(.ac-vol-cover)) { grid-template-columns: minmax(0, 1fr); }
#shelf .ac-vol-body { padding: 16px 18px 16px 14px; }
#shelf .ac-vol-name { font-family: var(--f-body); font-weight: 700; font-size: 16.5px; letter-spacing: 0; }
#shelf .ac-vol-sub { font-size: 10px; }
#shelf .ac-vol-bar { height: 7px; margin-top: 10px; }
#shelf .ac-vol-acts { padding-top: 12px; gap: 8px; }
#shelf .ac-vol-acts > a, #shelf .ac-vol-acts > button, #shelf .ac-vol-read, #shelf .ac-vol-dl { min-height: 38px; font-size: 13.5px; --d: 3px; }
#shelf .ac-vol:hover { transform: translateY(-2px); }

/* ---- settings: one grouped list with icons ---- */
#settings .ac-fold { border-radius: 0; box-shadow: none; }
#settings { border-radius: 24px; background: var(--white); box-shadow: var(--soft); overflow: hidden; padding: 0; }
#settings > .ac-h2 { margin: 0; padding: 20px 22px 6px; font-size: 18px; }
#settings .ac-fold + .ac-fold { border-top: 1.5px solid #F3EADA; }
#settings .ac-fold > summary { justify-content: flex-start; padding: 15px 22px; }
#settings .ac-fold > summary > span { margin-right: auto; }
#settings .ac-fold > summary i { width: 28px; height: 28px; border-radius: 50%; background: #F3EEE4; box-shadow: none; }
#settings .ac-fold > summary i::before { font-size: 16px; }
#settings .ac-fold .ac-list { box-shadow: none; padding-top: 0; }
.ac-exits { margin-top: clamp(22px, 3vw, 32px); }

@keyframes hub-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- tablet / phone ---- */
@media (max-width: 900px) {
  .hub-hero .phero-inner, .hub-hero .phero-inner:has(> .aa-me) { grid-template-columns: auto minmax(0, 1fr); }
  .hub-stats { grid-column: 1 / -1; }
  .hub-stat { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 560px) {
  .hub-hero .phero-inner, .hub-hero .phero-inner:has(> .aa-me) { gap: 14px 16px; }
  .hub-hero h1 { font-size: 28px; }
  .hub-hero .aa-me { --aa: 76px; }
  .hub-stat { column-gap: 6px; padding: 12px 12px 11px; border-radius: 18px; }
  .hub-stat-ic { width: 24px; height: 24px; }
  .hub-stat b { font-size: 21px; line-height: 24px; }
  .hub-stat > span:last-child { font-size: 12px; white-space: normal; line-height: 1.25; }
  .hub-news { flex-direction: column; align-items: flex-start; padding-right: 20px; }
  .hub-news-faces { grid-template-columns: repeat(4, 44px); gap: 0; transform: none; }
  .hub-news-faces img { width: 44px; height: 44px; margin-right: -6px; }
  .hub-news-faces img:nth-child(n) { transform: none; }
  #shelf .ac-vol { grid-template-columns: 92px minmax(0, 1fr); }
  #shelf .ac-vol-cover { height: 104px; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hub-stat, .hub-tile, .hub-news, .hub-plan-pill.is-max::after { animation: none; } }

/* v2: the name gets the full width; numbers sit under it */
.hub-hero .phero-inner, .hub-hero .phero-inner:has(> .aa-me) { grid-template-columns: auto minmax(0, 1fr); }
.hub-hero h1 { font-size: clamp(34px, 4.6vw, 60px); overflow-wrap: anywhere; }
.hub-id .hub-stats { margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .hub-id .hub-stats { grid-column: auto; } }
@media (max-width: 560px) {
  .hub-hero .phero-inner, .hub-hero .phero-inner:has(> .aa-me) { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .hub-id { display: contents; }
  .hub-hero .aa-me { grid-row: 1 / span 3; align-self: start; }
  .hub-plan, .hub-hero h1, .hub-since { grid-column: 2; }
  .hub-plan { margin: 6px 0 0; }
  .hub-since { margin: 0; font-size: 13.5px; }
  .hub-id .hub-stats { grid-column: 1 / -1; display: flex; margin-top: 4px; }
}

/* phones: the doors are a two-wide grid, the art a little shorter */
@media (max-width: 560px) {
  .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hub-tile { border-radius: 22px; padding: 8px 8px 12px; }
  .hub-tile-art { height: 112px; border-radius: 16px; }
  .hub-saqr { height: 94px; margin-bottom: 10px; }
  .hub-covers img { width: 50px; }
  .hub-covers.n3 img:nth-child(2) { width: 56px; }
  .hub-faces { grid-template-columns: repeat(2, 44px); }
  .hub-faces img { width: 44px; height: 44px; }
  .hub-tile-t { padding: 0 4px; }
  .hub-tile-t b { font-size: 15px; }
}

/* ---- the three numbers, alive (owner, 2026-11-11) ---- */
.hub-stat { transition: transform .25s var(--spring), box-shadow .25s; }
.hub-stat:hover { transform: translateY(-3px); }
.hub-stat b { transition: transform .3s var(--spring); }
.hub-stat.is-counted b { animation: hub-num-land .5s var(--spring) 1.1s both; }
@keyframes hub-num-land { 40% { transform: scale(1.14); } 100% { transform: none; } }

/* The three icons, redrawn (Ali, 2026-11-12): glossy drawn icons, no tile behind them,
   each number on the same line as its icon. */
.hub-stat-ic svg { width: 100%; height: 100%; overflow: visible; }
.hub-flame { transform-origin: 50% 92%; filter: drop-shadow(0 3px 5px rgba(255, 90, 20, .35)); }
.hub-stat.is-lit .hub-flame { animation: hub-flicker 2.4s ease-in-out infinite; }
.hub-stat.is-lit .hub-flame .i { transform-origin: 50% 95%; animation: hub-flicker-in 1.6s ease-in-out infinite; }
@keyframes hub-flicker { 0%, 100% { transform: scale(1) skewX(0); } 30% { transform: scale(1.03, 1.06) skewX(-2deg); } 60% { transform: scale(.98, 1.01) skewX(1.5deg); } }
@keyframes hub-flicker-in { 0%, 100% { transform: scale(1); } 45% { transform: scale(.9, 1.1); } }
.hub-stat.is-flame:not(.is-lit) .hub-flame { filter: grayscale(1) opacity(.45); }
.hub-book { filter: drop-shadow(0 3px 5px rgba(28, 127, 224, .3)); }
.hub-book .l, .hub-book .r { transform-box: fill-box; transition: transform .7s var(--spring) .45s; }
.hub-book .l { transform-origin: 100% 50%; } .hub-book .r { transform-origin: 0 50%; }
.hub-stats:not(.is-in) .hub-book .l, .hub-stats:not(.is-in) .hub-book .r { transform: scaleX(.15); }
.hub-star { filter: drop-shadow(0 3px 5px rgba(240, 150, 0, .4)); transform: scale(0) rotate(-72deg); }
.hub-stats.is-in .hub-star { animation: hub-star-in .8s var(--spring) .55s forwards; }
.hub-stat.is-gold:hover .hub-star { animation: hub-star-spin .7s var(--spring); transform: none; }
@keyframes hub-star-in { to { transform: none; } }
@keyframes hub-star-spin { from { transform: rotate(0); } to { transform: rotate(72deg); } }
@media (prefers-reduced-motion: reduce) {
  .hub-flame, .hub-flame .i, .hub-stat.is-counted b { animation: none !important; }
  .hub-star { transform: none; animation: none !important; }
  .hub-book .l, .hub-book .r { transition: none; transform: none !important; }
}

/* Tamara under the upgrade button, on its own line (owner OK, 2026-11-11) */
.hub-news-acts .tm-summary { flex-basis: 100%; order: 3; margin-top: -2px; }
.hub-news-credit { order: 4; }

/* someone who has not picked a face yet shows their initial */
.hub-init { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #FFF3D1, #FFE08A); color: #6B4300; font-family: var(--f-disp); font-weight: 700; line-height: 1; }
.hub-plan-faces .hub-init { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px #fff; }
.hub-plan-faces > * + * { margin-left: -8px; }
.hub-faces .hub-init { width: 50px; height: 50px; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 8px 14px -8px rgba(11, 60, 110, .6); }
.hub-faces > :nth-child(2), .hub-faces > :nth-child(4) { transform: translateY(8px); }
@media (max-width: 560px) { .hub-faces .hub-init { width: 44px; height: 44px; font-size: 18px; } }

/* ---- doors v4 (owner, 2026-11-11): e-books get a wide tile with real-size
   covers on a shelf; receipts, help and privacy show a small live preview of
   the thing itself instead of a mascot ---- */
.hub-tiles { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); grid-auto-flow: dense; }
.hub-tile.is-wide { grid-column: span 2; }
.hub-tile.is-books .hub-tile-art { background: radial-gradient(90% 80% at 50% 10%, #FFFDF6 0%, rgba(255, 253, 246, 0) 65%), linear-gradient(180deg, #FFF3DA 0%, #F9E2B6 100%); place-items: end center; }
.hub-tile.is-books .hub-tile-art::after { display: none; }
.hub-tile.is-books .hub-covers { gap: 0; margin-bottom: 15px; }
.hub-tile.is-books .hub-covers img, .hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 66px; border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .08), 0 14px 18px -10px rgba(80, 40, 0, .6); }
.hub-tile.is-books .hub-covers.n1 img { width: 70px; transform: rotate(-3deg); }
.hub-tile.is-books .hub-covers.n2 img:first-child, .hub-tile.is-books .hub-covers.n3 img:first-child { transform: rotate(-7deg) translate(14px, 3px); }
.hub-tile.is-books .hub-covers.n2 img:last-child, .hub-tile.is-books .hub-covers.n3 img:last-child { transform: rotate(7deg) translate(-14px, 3px); }
.hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 74px; z-index: 2; }
.hub-tile.is-books:hover .hub-covers.n1 img { transform: rotate(0) translateY(-4px); }
.hub-tile.is-books:hover .hub-covers.n2 img:first-child, .hub-tile.is-books:hover .hub-covers.n3 img:first-child { transform: rotate(-12deg) translate(2px, 0); }
.hub-tile.is-books:hover .hub-covers.n2 img:last-child, .hub-tile.is-books:hover .hub-covers.n3 img:last-child { transform: rotate(12deg) translate(-2px, 0); }
.hub-tile.is-books:hover .hub-covers.n3 img:nth-child(2) { transform: translateY(-6px); }
.hub-shelf { position: absolute !important; left: 12%; right: 12%; bottom: 10px; height: 8px; border-radius: 4px; background: linear-gradient(180deg, #E9C88E, #D4A65A); box-shadow: 0 6px 10px -4px rgba(120, 70, 0, .45); z-index: 0 !important; }
.hub-tile.is-books .hub-covers { z-index: 1; }

/* receipts: a receipt that prints up, stamped */
.vg-receipt { position: relative; display: grid; gap: 7px; width: 104px; padding: 12px 12px 16px; margin-bottom: -6px; background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 12px 20px -12px rgba(11, 60, 110, .55);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 10px 6px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 10px 6px repeat-x;
  animation: vg-print 1.2s cubic-bezier(.22, 1, .36, 1) .5s both; }
.vg-brand { font-family: var(--f-disp); font-size: 11px; letter-spacing: -.02em; color: var(--ink); }
.vg-brand i { font-style: normal; font-family: inherit; color: #C26A00; font-size: 10px; }
.vg-line { display: block; height: 5px; border-radius: 3px; background: #E9EEF4; }
.vg-line.s { width: 62%; }
.vg-total { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1.5px dashed #E2E8EF; }
.vg-total i { width: 34%; height: 5px; border-radius: 3px; background: #CBD6E2; }
.vg-total b { font-family: var(--f-body); font-weight: 700; font-size: 10px; color: var(--ink); }
.vg-paid { position: absolute; right: -10px; top: 26px; padding: 3px 7px 2px; border: 2px solid #1C8FE0; border-radius: 6px; color: #1C8FE0; background: rgba(255, 255, 255, .85); font: 800 10px/1 var(--f-body); letter-spacing: .04em; font-style: normal; transform: rotate(-12deg) scale(0); animation: vg-stamp .45s cubic-bezier(.2, 1.6, .4, 1) 1.6s forwards; }
@keyframes vg-print { from { transform: translateY(70%); } to { transform: none; } }
@keyframes vg-stamp { to { transform: rotate(-12deg) scale(1); } }
.hub-tile.is-receipts .hub-tile-art { place-items: end center; }
.hub-tile.is-receipts .hub-tile-art::after { display: none; }

/* help: a question, and a reply on its way */
.vg-chat { display: grid; gap: 8px; width: 100%; padding: 0 14px; margin-bottom: 18px; }
.vg-bub { max-width: 82%; padding: 8px 11px; border-radius: 16px; font-size: 11.5px; line-height: 1.3; font-weight: 600; opacity: 0; animation: vg-pop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.vg-bub.me { justify-self: end; background: #1C8FE0; color: #fff; border-bottom-right-radius: 5px; animation-delay: .5s; }
.vg-bub.us { justify-self: start; display: inline-flex; gap: 4px; padding: 11px 13px; background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 8px 14px -10px rgba(11, 60, 110, .5); animation-delay: 1.1s; }
.vg-bub.us i { width: 6px; height: 6px; border-radius: 50%; background: #9DB2C8; animation: vg-dot 1.2s ease-in-out infinite; }
.vg-bub.us i:nth-child(2) { animation-delay: .15s; } .vg-bub.us i:nth-child(3) { animation-delay: .3s; }
@keyframes vg-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes vg-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.hub-tile.is-help .hub-tile-art::after { display: none; }

/* privacy: a lock card, one switch flips on */
.vg-priv { display: grid; gap: 8px; width: 112px; padding: 12px; margin-bottom: 16px; background: #fff; border-radius: 14px; box-shadow: 0 12px 20px -12px rgba(11, 60, 110, .55); }
.vg-lock { justify-self: center; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #FFD55C, #FFB300); }
.vg-lock svg { width: 16px; height: 16px; fill: #2B1500; stroke: #2B1500; stroke-width: 2.2; stroke-linecap: round; }
.vg-lock svg path { fill: none; }
.vg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vg-row i { flex: 1; height: 5px; border-radius: 3px; background: #E9EEF4; }
.vg-row i.s { flex: .6; }
.vg-sw { position: relative; flex: none; width: 24px; height: 14px; border-radius: 999px; background: #D7DEE6; }
.vg-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.vg-sw.on { animation: vg-sw-bg .3s ease 1.4s forwards; }
.vg-sw.on::after { animation: vg-sw-knob .3s cubic-bezier(.3, 1.4, .5, 1) 1.4s forwards; }
@keyframes vg-sw-bg { to { background: #1C8FE0; } }
@keyframes vg-sw-knob { to { transform: translateX(10px); } }
.hub-tile.is-privacy .hub-tile-art::after { display: none; }

/* hover: each preview does its thing again */
.hub-tile:hover .hub-tile-art > .vg-chat, .hub-tile:hover .hub-tile-art > .vg-priv, .hub-tile:hover .hub-tile-art > .vg-receipt { transform: translateY(-4px); }

@media (max-width: 560px) {
  .hub-tile.is-wide { grid-column: 1 / -1; }
  .hub-tile.is-books .hub-covers img, .hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 60px; }
  .hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 66px; }
  .vg-chat { padding: 0 10px; } .vg-bub { font-size: 10.5px; }
  .vg-receipt { width: 92px; } .vg-priv { width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-receipt, .vg-bub, .vg-bub.us i, .vg-sw.on, .vg-sw.on::after { animation: none; opacity: 1; }
  .vg-paid { animation: none; transform: rotate(-12deg); }
  .vg-sw.on { background: #1C8FE0; } .vg-sw.on::after { transform: translateX(10px); }
}
/* six doors fit one row on a laptop; covers sit fully inside the stage */
.hub-tiles { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.hub-tile.is-books .hub-covers img { width: 56px; }
.hub-tile.is-books .hub-covers.n1 img { width: 62px; }
.hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 62px; }
@media (max-width: 900px) { .hub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-tile.is-books .hub-covers img { width: 58px; } .hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 64px; } }
.vg-brand { white-space: nowrap; }
@media (max-width: 560px) {
  .hub-tile-art { height: 128px; }
  .hub-tile.is-books .hub-covers img, .hub-tile.is-books .hub-covers.n1 img { width: 54px; }
  .hub-tile.is-books .hub-covers.n3 img:nth-child(2) { width: 60px; }
  .vg-receipt { width: 96px; gap: 6px; padding: 10px 10px 14px; }
  /* an odd one out takes the full row instead of sitting alone */
  .hub-tile:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ---- sign-in details: email and password always in view (Ali, 2026-11-12) ---- */
.ac-shell .card.ac-login { padding: 18px 22px 8px; margin: 0; }
.ac-login .ac-course-eyebrow { margin-bottom: 4px; }
.ac-login-row {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 0;
  border-top: 2px dashed rgba(43, 21, 0, .16);
}
.ac-login .ac-course-eyebrow + .ac-login-row { border-top: 0; }
.ac-login-k { flex: 0 0 92px; font-weight: 700; font-size: 14px; color: var(--ink); }
.ac-login-v { flex: 1 1 auto; min-width: 0; }
.ac-login-email { display: block; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.ac-login-dots { display: inline-block; font-size: 18px; line-height: 1; letter-spacing: .14em; color: var(--ink); padding-top: 4px; }
.ac-login-note { font-size: 13.5px; color: var(--ink-soft); }
.ac-login-btn { flex: 0 0 auto; min-height: 42px; padding: 0 20px; }
.ac-login-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 4px 0 14px; }
.ac-login-form .sp-field { margin: 0 0 12px; }
.ac-login-form .ac-note { grid-column: 1 / -1; }
.ac-login-form .sp-submit { margin-top: 0; min-height: 46px; padding: 0 28px; }
.ac-login-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ac-login-cancel, .ac-login-out, .ac-login-link {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--ink);
  background: none; border: 0; padding: 10px 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.ac-login-cancel, .ac-login-out { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.ac-login-link { padding: 0 2px; font-size: inherit; color: inherit; }
.ac-login-row--out { justify-content: flex-start; }
.ac-login-row--out .ac-login-k { display: none; }
.ac-login-out { color: var(--red); }
.ac-login-done { margin: 0 0 12px; }
@media (max-width: 640px) {
  .ac-shell .card.ac-login { padding: 16px 16px 6px; }
  .ac-login-row { flex-wrap: wrap; row-gap: 2px; padding: 10px 0; }
  .ac-login-k { flex: 0 0 100%; font-size: 13px; color: var(--ink-soft); }
  .ac-login-form { grid-template-columns: 1fr; }
  .ac-login-acts .sp-submit { flex: 1 1 auto; }
}

/* Load skeletons (owner, 2026-11-12: no layout shift). account-expect.js puts
   .hub-expect on <html> before first paint for a course buyer; these hold the
   space of the plan pill, greeting line, stats row and course card until
   account-hub.js / account.js swap the real thing in (they drop .is-skel, and
   anything that never fills goes back to [hidden]; pages.css forces [hidden]
   with !important, hence the !important here). Built from the real
   classes, so each skeleton is the real size at every width. */
.hub-skel-card { display: none; }
.hub-expect .hub-plan.is-skel[hidden] { display: flex !important; }
.hub-expect .hub-since.is-skel[hidden] { display: block !important; }
.hub-expect .hub-stats.is-skel[hidden] { display: flex !important; }
.hub-expect .ac-list .hub-skel-card { display: block; background: #E3F1F6; box-shadow: none; animation: hub-skel 1.4s ease-in-out infinite; }
@media (max-width: 760px) { .hub-expect .ac-list .hub-skel-card { min-height: 440px; } }
.hub-skel { display: inline-block; border-radius: 999px; background: rgba(74, 106, 136, .13); color: transparent; animation: hub-skel 1.4s ease-in-out infinite; }
.hub-skel-pill { width: 86px; height: 35px; }
.hub-skel-line { width: 15em; max-width: 100%; height: .85em; vertical-align: middle; }
.hub-stats.is-skel .hub-stat { animation: none; box-shadow: none; background: rgba(255, 255, 255, .6); }
.hub-stats.is-skel .hub-stat-ic.hub-skel { border-radius: 15px; }
.hub-stats.is-skel b.hub-skel { width: 2.4ch; border-radius: 8px; }
.hub-stats.is-skel span.hub-skel:last-child { width: 9ch; height: .9em; }
@keyframes hub-skel { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hub-skel, .hub-expect .ac-list .hub-skel-card { animation: none; } }

/* No typewriter font on the pages reworked in Nov 2026 (owner, 2026-11-12): anything
   that still asks for mono here gets the body font. Other pages keep it for now. */
body { --f-mono: var(--f-body); }

/* Live password match under "Type it again" (account.js liveMatch, Ali 2026-11-12). */
.ac-pw-match { margin: 6px 2px 0; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ac-pw-match.is-err { color: #C42B1C; }
.ac-pw-match.is-ok { color: var(--green-deep); }
.ac-pw-match.is-ok::before { content: "\2713  "; }
.sp-input[aria-invalid="true"] { border-color: #C42B1C; }
/* No mono, no caps labels on the account page: the small eyebrows read as plain headings. */
.ac-shell .ac-course-eyebrow { font-family: var(--f-body); font-size: 16px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Book cards keep one gold button each (2026-11-14). The free handbook's
   Download PDF is a link, and the gold link rule caught it, so it sat gold
   beside Read online. A book whose only action is the PDF makes that its gold one. */
.ac-vol-acts > a.ac-vol-dl { --top: #FFFFFF; --bot: #FFF6E3; --lip: #E6D1A8; --glow: rgba(120, 80, 20, .28); }
.ac-vol-acts > .ac-vol-dl:only-child { --top: #FFDA6B; --bot: #FFC11F; --lip: #E39A00; --glow: rgba(214, 132, 0, .45); }
/* The reading-and-writing books title their card with an h3; it matches the
   other cards' titles (same size, no browser margin pushing it down). */
#shelf .ac-vol-body > h3 { margin: 0; font-family: var(--f-body); font-weight: 700; font-size: 16.5px; line-height: 1.25; letter-spacing: 0; color: var(--ink); }
