/* Glaze dashboards (My Glaze for members, Glaze for Business for partners). Preview, Nov 12, 2026.
   Porcelain and cream, plum ink, gold glow. Mobile first at 390, two and three columns from 900 / 1180.
   Motion is transform and opacity only, and stops under prefers-reduced-motion. */
@font-face { font-family: "Glaze Fraunces"; src: url(/fonts/glaze-fraunces.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Glaze Fraunces"; font-style: italic; src: url(/fonts/glaze-fraunces-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Glaze DM Sans"; src: url(/fonts/glaze-dmsans.woff2) format("woff2"); font-display: swap; font-weight: 100 900; }

:root {
  --gd-cream: #FDF8F0;
  --gd-porcelain: #FFFDF9;
  --gd-ink: #2D1928;
  --gd-plum: #4A1942;
  --gd-plum-2: #5B2A4A;
  --gd-muted: #6E5A66;
  --gd-gold: #C99A2E;
  --gd-gold-soft: #F6EAD0;
  --gd-matcha: #6E8B3D;
  --gd-line: rgba(74, 25, 66, .10);
  --gd-shadow: 0 1px 2px rgba(45, 25, 40, .06), 0 14px 32px -16px rgba(45, 25, 40, .28);
  --gd-ease: cubic-bezier(.2, .8, .2, 1);
  --gd-serif: "Glaze Fraunces", "Fraunces", Georgia, serif;
  --gd-sans: "Glaze DM Sans", "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gd { margin: 0; background: var(--gd-cream); color: var(--gd-ink); font: 400 16px/1.5 var(--gd-sans); overflow-x: hidden; }
.gd img, .gd svg { max-width: 100%; display: block; }
.gd a { color: inherit; }
.gd button { font-family: inherit; }
.gd h1, .gd h2, .gd h3 { font-family: var(--gd-serif); font-weight: 600; color: var(--gd-plum); margin: 0; line-height: 1.1; text-wrap: balance; }
.gd h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); letter-spacing: -.01em; }
.gd h1 em { font-style: italic; color: var(--gd-plum-2); }
.gd h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.gd h3 { font-size: 1.12rem; }
.gd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Preview strip + top bar */
.gd-preview { margin: 0; background: var(--gd-plum); color: #fffaf3; font-size: .78rem; text-align: center; padding: .45rem 16px; }
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 16px; position: sticky; top: 0; z-index: 30; background: rgba(253, 248, 240, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gd-line); }
.gd-home { display: flex; align-items: center; gap: .5rem; font: 600 1.15rem var(--gd-serif); color: var(--gd-plum); text-decoration: none; white-space: nowrap; }
.gd-home img { width: 34px; height: 34px; border-radius: 50%; }
.gd-who { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.gd-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gd-gold-soft); color: var(--gd-plum); font: 700 .85rem var(--gd-sans); border: 1px solid rgba(201, 154, 46, .5); }

/* Persona switcher (preview only) */
.gd-as { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 16px; scrollbar-width: none; border-bottom: 1px solid var(--gd-line); background: var(--gd-porcelain); }
.gd-as::-webkit-scrollbar { display: none; }
.gd-as span { flex: none; align-self: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gd-gold); margin-right: .2rem; }
.gd-as a { flex: none; text-decoration: none; font-size: .82rem; font-weight: 650; color: var(--gd-plum-2); border: 1px solid var(--gd-line); background: #fff; border-radius: 999px; padding: .42rem .8rem; }
.gd-as a[aria-current="page"] { background: var(--gd-plum); color: #fffaf3; border-color: var(--gd-plum); }

/* Section nav (sticky chips) */
.gd-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: .55rem 16px; position: sticky; top: 55px; z-index: 25; background: rgba(253, 248, 240, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); scrollbar-width: none; border-bottom: 1px solid var(--gd-line); }
.gd-tabs::-webkit-scrollbar { display: none; }
.gd-tabs a { flex: none; text-decoration: none; font-size: .8rem; font-weight: 650; color: var(--gd-muted); padding: .38rem .7rem; border-radius: 999px; }
.gd-tabs a.is-on { color: var(--gd-plum); background: #fff; box-shadow: var(--gd-shadow); }

/* Layout */
.gd-main { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px 4rem; }
.gd-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.gd-sec { scroll-margin-top: 110px; padding: 1.6rem 0 .4rem; min-width: 0; }
.gd-eyebrow { margin: 0 0 .3rem; font: 700 .7rem/1 var(--gd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gd-gold); }
.gd-card { background: var(--gd-porcelain); border: 1px solid var(--gd-line); border-radius: 26px; padding: 1.1rem; box-shadow: var(--gd-shadow); min-width: 0; }
.gd-card + .gd-card { margin-top: .9rem; }
.gd-muted { color: var(--gd-muted); }
.gd-fine { font-size: .8rem; color: var(--gd-muted); margin: .7rem 0 0; }
.gd-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.gd-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; flex-wrap: wrap; }
.gd-draft { display: inline-block; vertical-align: middle; font: 700 .62rem/1 var(--gd-sans); letter-spacing: .08em; text-transform: uppercase; color: #8A5A00; background: #FFF1CC; border: 1px solid #F0D48A; border-radius: 6px; padding: .22rem .38rem; margin-left: .3rem; }
.gd-curb { display: flex; gap: .55rem; align-items: flex-start; margin: .9rem 0 0; padding: .7rem .85rem; border-radius: 16px; background: var(--gd-gold-soft); color: var(--gd-plum); font-weight: 650; font-size: .9rem; }
.gd-curb svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }

@media (min-width: 900px) {
  .gd-grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 1.4rem; }
  .gd-sec { padding-top: 2.2rem; }
  .gd-tabs { justify-content: center; }
}
@media (min-width: 1180px) {
  .gd-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
}

/* Buttons */
.gd-btn, .gd-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: 0 1.15rem; border-radius: 999px; font: 700 .94rem var(--gd-sans); text-decoration: none; cursor: pointer; border: 0; transition: transform .18s var(--gd-ease), box-shadow .2s, background .2s; }
.gd-btn, .gd a.gd-btn { background: var(--gd-plum); color: #fffaf3; box-shadow: 0 10px 22px -12px rgba(74, 25, 66, .7); }
.gd-btn.gold { background: linear-gradient(135deg, #E3B64C, #C99A2E); color: #2D1928; box-shadow: 0 0 0 1px rgba(201, 154, 46, .4), 0 12px 26px -12px rgba(201, 154, 46, .9); }
.gd-ghost { background: #fff; color: var(--gd-plum); border: 1.5px solid rgba(74, 25, 66, .2); }
.gd-btn:active, .gd-ghost:active { transform: scale(.97); }
.gd-btn[disabled], .gd-ghost[disabled] { opacity: .45; cursor: not-allowed; }
.gd-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.gd-btns > * { flex: 1 1 auto; }
.gd-mini { border: 1px solid var(--gd-line); background: #fff; color: var(--gd-plum); border-radius: 999px; padding: .45rem .8rem; font: 650 .8rem var(--gd-sans); cursor: pointer; min-height: 36px; }
.gd-mini[aria-pressed="true"] { background: var(--gd-plum); color: #fffaf3; border-color: var(--gd-plum); }

/* Segmented toggle (liked "how often" pattern) */
.gd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #F1E8DC; border-radius: 999px; padding: 4px; position: relative; }
.gd-seg button { position: relative; z-index: 1; border: 0; background: none; padding: .55rem .4rem; font: 700 .82rem var(--gd-sans); color: var(--gd-muted); cursor: pointer; border-radius: 999px; min-height: 40px; }
.gd-seg button[aria-checked="true"] { color: var(--gd-plum); }
.gd-seg i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; box-shadow: 0 4px 10px -4px rgba(74, 25, 66, .35); transition: transform .35s var(--gd-ease); }

/* Hero: next box + countdown */
.gd-hero { padding-top: 1.4rem; }
.gd-hello { margin-bottom: 1rem; }
.gd-hello p { margin: .35rem 0 0; color: var(--gd-muted); }
.gd-next { position: relative; overflow: hidden; background: radial-gradient(130% 90% at 100% 0%, #fff 0%, var(--gd-porcelain) 55%, #F7EEDF 100%); }
.gd-next-top { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.gd-next-when { font: 600 1.5rem/1.1 var(--gd-serif); color: var(--gd-plum); margin: .15rem 0 0; }
.gd-pill { display: inline-flex; align-items: center; gap: .35rem; font: 700 .75rem var(--gd-sans); border-radius: 999px; padding: .3rem .6rem; background: #EAF3DF; color: #3E5A1C; white-space: nowrap; }
.gd-pill.warn { background: #FFF1CC; color: #7A4F00; }
.gd-pill.plum { background: #F3E6EF; color: var(--gd-plum); }
.gd-pill b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: gd-pulse 1.6s ease-in-out infinite; }
.gd-clock { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.gd-clock div { background: #fff; border: 1px solid var(--gd-line); border-radius: 16px; padding: .55rem .4rem; text-align: center; }
.gd-clock b { display: block; font: 600 1.6rem/1 var(--gd-serif); color: var(--gd-plum); font-variant-numeric: tabular-nums; }
.gd-clock small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-muted); font-weight: 700; }
.gd-clock-cap { margin: .55rem 0 0; font-size: .84rem; color: var(--gd-muted); }

/* Credit ring */
.gd-ring { position: relative; width: 112px; height: 112px; flex: none; }
.gd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gd-ring circle { fill: none; stroke-width: 10; }
.gd-ring .bg { stroke: #F1E8DC; }
.gd-ring .fg { stroke: url(#gdGold); stroke-linecap: round; transition: stroke-dashoffset .8s var(--gd-ease); }
.gd-ring-lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gd-ring-lbl b { font: 600 1.9rem/1 var(--gd-serif); color: var(--gd-plum); }
.gd-ring-lbl small { font-size: .68rem; font-weight: 700; color: var(--gd-muted); letter-spacing: .06em; text-transform: uppercase; }
.gd-wallet { display: flex; gap: 1rem; align-items: center; }
.gd-wallet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.gd-wallet li { display: flex; justify-content: space-between; gap: .8rem; }
.gd-wallet li b { color: var(--gd-plum); }

/* Porcelain tray */
.gd-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; border-radius: 28px; background: linear-gradient(160deg, #ffffff, #f4ede3); box-shadow: inset 0 2px 0 #fff, inset 0 -6px 14px rgba(74, 25, 66, .06), 0 24px 40px -26px rgba(45, 25, 40, .45); border: 1px solid rgba(74, 25, 66, .07); }
.gd-tray { max-width: 460px; margin-inline: auto; }
.gd-tray.six { grid-template-columns: repeat(3, 1fr); }
.gd-well { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #EFE5D6 0%, #F8F2E8 62%, #fff 100%); box-shadow: inset 0 6px 12px rgba(74, 25, 66, .12), inset 0 -2px 0 #fff; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; }
.gd-well:empty::after { content: "+"; font: 300 1.4rem var(--gd-sans); color: rgba(74, 25, 66, .25); }
.gd-well .gd-coin { width: 86%; height: 86%; }
.gd-well .gd-tag { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); background: var(--gd-plum); color: #fffaf3; font: 700 .58rem/1 var(--gd-sans); padding: .2rem .35rem; border-radius: 6px; white-space: nowrap; }
.gd-coin { display: block; border-radius: 50%; overflow: hidden; }
.gd-coin img, .gd-coin svg { width: 100%; height: 100%; object-fit: contain; }
.gd-coin.send { display: grid; place-items: center; background: linear-gradient(135deg, #F3E6EF, #fff); color: var(--gd-plum); }
.gd-coin.send svg { width: 54%; height: 54%; }
.gd-well.is-new .gd-coin { animation: gd-drop .55s var(--gd-ease) both; }
.gd-flyer { position: fixed; z-index: 60; pointer-events: none; border-radius: 50%; transition: transform .55s var(--gd-ease), opacity .55s; will-change: transform; }

/* Coin picker */
.gd-coins { display: flex; gap: .55rem; overflow-x: auto; padding: .4rem .1rem .7rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.gd-coins::-webkit-scrollbar { display: none; }
.gd-pick { flex: none; width: 82px; display: grid; justify-items: center; gap: .3rem; border: 0; background: none; cursor: pointer; padding: 0; scroll-snap-align: start; }
.gd-pick .gd-coin { width: 66px; height: 66px; background: #fff; box-shadow: 0 8px 16px -10px rgba(45, 25, 40, .5); border: 2px solid #fff; transition: transform .18s var(--gd-ease); }
.gd-pick:active .gd-coin { transform: scale(.92); }
.gd-pick span { font-size: .72rem; font-weight: 650; color: var(--gd-plum-2); text-align: center; line-height: 1.15; }
.gd-pick small { display: flex; gap: 2px; }
.gd-pick small i { width: 6px; height: 6px; border-radius: 50%; background: var(--gd-gold); }
.gd-pick[disabled] { opacity: .35; cursor: not-allowed; }
.gd-pick.more .gd-coin { display: grid; place-items: center; background: var(--gd-cream); color: var(--gd-plum); font: 600 1.5rem var(--gd-serif); }
.gd-meter { height: 10px; border-radius: 999px; background: #F1E8DC; overflow: hidden; margin: .7rem 0 .35rem; }
.gd-meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #E3B64C, #C99A2E); transition: width .5s var(--gd-ease); }

/* Week strip */
.gd-weeks { display: grid; gap: .6rem; }
.gd-week { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--gd-line); border-radius: 20px; padding: .7rem .8rem; transition: opacity .3s; }
.gd-week .d { text-align: center; border-radius: 14px; background: var(--gd-cream); padding: .35rem 0; }
.gd-week .d b { display: block; font: 600 1.35rem/1 var(--gd-serif); color: var(--gd-plum); }
.gd-week .d small { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-muted); }
.gd-week p { margin: 0; font-size: .9rem; }
.gd-week p small { display: block; color: var(--gd-muted); font-size: .78rem; }
.gd-week.is-skip { opacity: .55; }
.gd-week.is-skip p { text-decoration: line-through; text-decoration-color: rgba(74, 25, 66, .35); }

/* Tracker */
.gd-track { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 0; }
.gd-track li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: .7rem; padding-bottom: 1rem; }
.gd-track li::before { content: ""; position: absolute; left: 16px; top: 30px; bottom: 0; width: 2px; background: #EADFD0; }
.gd-track li:last-child::before { display: none; }
.gd-track .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F1E8DC; color: var(--gd-muted); font-size: .9rem; position: relative; z-index: 1; }
.gd-track li.done .dot { background: var(--gd-plum); color: #fffaf3; }
.gd-track li.done::before { background: var(--gd-plum); }
.gd-track li.now .dot { background: linear-gradient(135deg, #E3B64C, #C99A2E); color: var(--gd-ink); box-shadow: 0 0 0 6px rgba(201, 154, 46, .2); animation: gd-glow 2s ease-in-out infinite; }
.gd-track b { display: block; color: var(--gd-plum); font-size: .95rem; }
.gd-track small { color: var(--gd-muted); font-size: .8rem; }

/* Perks / stat tiles */
.gd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gd-tile { background: #fff; border: 1px solid var(--gd-line); border-radius: 20px; padding: .85rem; min-width: 0; }
.gd-tile b { display: block; font: 600 1.55rem/1.05 var(--gd-serif); color: var(--gd-plum); }
.gd-tile small { display: block; font-size: .78rem; color: var(--gd-muted); margin-top: .2rem; }
.gd-tile.glow { background: radial-gradient(120% 120% at 0% 0%, #FFF6DF, #fff 70%); border-color: rgba(201, 154, 46, .45); box-shadow: 0 0 0 1px rgba(201, 154, 46, .15), 0 16px 30px -18px rgba(201, 154, 46, .8); }
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.gd-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.gd-list li > i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--gd-gold-soft); font-style: normal; font-size: .95rem; }
.gd-list li b { display: block; color: var(--gd-plum); }
.gd-list li small { color: var(--gd-muted); }

/* Share card */
.gd-share { position: relative; border-radius: 24px; padding: 1.1rem; color: #fffaf3; background: radial-gradient(120% 120% at 100% 0%, #7A2E6B 0%, #4A1942 55%, #2D1928 100%); overflow: hidden; }
.gd-share h3 { color: #fffaf3; font-size: 1.35rem; }
.gd-share p { margin: .35rem 0 0; opacity: .85; font-size: .9rem; }
.gd-share .code { display: inline-block; margin-top: .8rem; font: 700 1.05rem var(--gd-sans); letter-spacing: .12em; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .45); border-radius: 12px; padding: .45rem .75rem; }
.gd-share .gd-btn { background: #fffaf3; color: var(--gd-plum); }
.gd-share .coins { position: absolute; right: -14px; top: -10px; display: flex; gap: 4px; transform: rotate(-8deg); opacity: .95; }
.gd-share .coins .gd-coin { width: 54px; height: 54px; background: #fff; border: 2px solid #fff; animation: gd-float 5s ease-in-out infinite; }
.gd-share .coins .gd-coin:nth-child(2) { animation-delay: -1.6s; margin-top: 18px; }

/* Table (invoices) */
.gd-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gd-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gd-muted); font-weight: 700; padding: 0 0 .4rem; }
.gd-table td { padding: .6rem 0; border-top: 1px solid var(--gd-line); vertical-align: middle; }
.gd-table td:last-child, .gd-table th:last-child { text-align: right; }
.gd-table .amt { font-weight: 700; color: var(--gd-plum); font-variant-numeric: tabular-nums; }

/* Stepper */
.gd-step { display: inline-flex; align-items: center; gap: .2rem; background: #fff; border: 1px solid var(--gd-line); border-radius: 999px; padding: 3px; }
.gd-step button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gd-cream); color: var(--gd-plum); font: 700 1.1rem var(--gd-sans); cursor: pointer; }
.gd-step output { min-width: 2.2rem; text-align: center; font: 600 1.15rem var(--gd-serif); color: var(--gd-plum); font-variant-numeric: tabular-nums; }
.gd-line { display: grid; grid-template-columns: 52px 1fr auto; gap: .7rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--gd-line); }
.gd-line:first-child { border-top: 0; }
.gd-line .gd-coin { width: 52px; height: 52px; background: #fff; box-shadow: 0 6px 12px -8px rgba(45, 25, 40, .5); }
.gd-line p { margin: 0; font-weight: 650; color: var(--gd-plum); font-size: .94rem; }
.gd-line p small { display: block; font-weight: 500; color: var(--gd-muted); font-size: .78rem; }

/* Journey (business) */
.gd-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.gd-journey li { text-align: center; font-size: .66rem; font-weight: 700; color: var(--gd-muted); display: grid; gap: .35rem; justify-items: center; line-height: 1.15; }
.gd-journey li i { width: 100%; height: 8px; border-radius: 999px; background: #F1E8DC; display: block; position: relative; overflow: hidden; }
.gd-journey li.done i { background: var(--gd-plum); }
.gd-journey li.now i { background: #F1E8DC; }
.gd-journey li.now i::after { content: ""; position: absolute; inset: 0; width: 55%; border-radius: 999px; background: linear-gradient(90deg, #E3B64C, #C99A2E); animation: gd-grow 2.4s var(--gd-ease) infinite alternate; transform-origin: 0 50%; }
.gd-journey li.done, .gd-journey li.now { color: var(--gd-plum); }

/* Ratings (tasting feedback) */
.gd-rate { display: grid; grid-template-columns: 52px 1fr; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--gd-line); }
.gd-rate:first-of-type { border-top: 0; }
.gd-rate .gd-coin { width: 52px; height: 52px; background: #fff; }
.gd-rate p { margin: 0 0 .3rem; font-weight: 650; color: var(--gd-plum); font-size: .92rem; }
.gd-faces { display: flex; gap: .3rem; flex-wrap: wrap; }
.gd-faces button { border: 1px solid var(--gd-line); background: #fff; border-radius: 999px; padding: .35rem .6rem; font: 650 .76rem var(--gd-sans); color: var(--gd-plum-2); cursor: pointer; min-height: 34px; }
.gd-faces button[aria-pressed="true"] { background: var(--gd-plum); color: #fffaf3; border-color: var(--gd-plum); }

/* Bars (sell-through) */
.gd-bars { display: grid; gap: .65rem; }
.gd-bar { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; font-size: .86rem; }
.gd-bar span { font-weight: 650; color: var(--gd-plum); }
.gd-bar em { font-style: normal; color: var(--gd-muted); font-variant-numeric: tabular-nums; }
.gd-bar div { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: #F1E8DC; overflow: hidden; }
.gd-bar div i { display: block; height: 100%; border-radius: 999px; background: var(--gd-plum); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--gd-ease); }
.gd-bar div i.gold { background: linear-gradient(90deg, #E3B64C, #C99A2E); }
.is-seen .gd-bar div i { transform: scaleX(var(--v)); }
.gd-suggest { margin-top: .9rem; padding: .85rem; border-radius: 18px; background: #F3E6EF; color: var(--gd-plum); font-size: .9rem; }
.gd-suggest b { display: block; font: 600 1.05rem var(--gd-serif); }

/* QR card */
.gd-qr { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; }
.gd-qr svg { width: 96px; height: 96px; border-radius: 14px; background: #fff; padding: 6px; border: 1px solid var(--gd-line); }

/* Toast */
.gd-toast { position: fixed; left: 50%; bottom: 18px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; background: var(--gd-ink); color: #fffaf3; padding: .7rem 1rem; border-radius: 16px; font-size: .88rem; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .3s var(--gd-ease), opacity .3s; }
.gd-toast.on { transform: translate(-50%, 0); opacity: 1; }

/* Reveal */
.gd-sec.will-reveal .gd-card { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .55s var(--gd-ease), transform .55s var(--gd-ease); }
.gd-sec.is-seen .gd-card { opacity: 1; transform: none; }

/* ---------- BonBon narrator (same look as the site's glz-nar / gp-nar) ---------- */
.gd-nar { --m: 56px; display: flex; align-items: flex-end; gap: .55rem; width: fit-content; max-width: min(24rem, 100%); margin: 0 0 .9rem; }
.gd-nar-btn { flex: none; width: var(--m); height: calc(var(--m) * 1.12); padding: 0; border: 0; background: none; cursor: pointer; animation: gd-bob 3.2s ease-in-out infinite; }
.gd-nar-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(58, 42, 34, .22)); }
.gd-nar-bubble { position: relative; background: #fffaf3; color: var(--gd-plum); border: 1px solid rgba(91, 42, 74, .12); border-radius: 22px; padding: .6rem 1.65rem .6rem .9rem; box-shadow: 0 10px 22px -14px rgba(91, 42, 74, .45); font: 650 .87rem/1.35 var(--gd-sans); min-height: 2.4rem; transform-origin: 0 80%; opacity: 0; }
.gd-nar-bubble::before { content: ""; position: absolute; left: -6px; bottom: 14px; width: 12px; height: 12px; background: #fffaf3; border-left: 1px solid rgba(91, 42, 74, .12); border-bottom: 1px solid rgba(91, 42, 74, .12); transform: rotate(45deg); }
.gd-nar-text { margin: 0; }
.gd-nar-dots { display: none; gap: 5px; height: 1.2em; align-items: center; }
.gd-nar-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gd-plum); opacity: .35; animation: gd-dots 1.1s ease-in-out infinite; }
.gd-nar-dots i:nth-child(2) { animation-delay: .15s; } .gd-nar-dots i:nth-child(3) { animation-delay: .3s; }
.gd-nar.is-typing .gd-nar-bubble { opacity: 1; }
.gd-nar.is-typing .gd-nar-dots { display: inline-flex; }
.gd-nar.is-typing .gd-nar-text { display: none; }
.gd-nar.is-in .gd-nar-bubble { opacity: 1; animation: gd-pop .38s var(--gd-ease) both; }
.gd-nar-x { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border: 0; background: none; color: rgba(91, 42, 74, .5); cursor: pointer; font-size: 1rem; line-height: 1; }
.gd-nar.is-away { display: none; }

@keyframes gd-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
@keyframes gd-dots { 0%, 100% { transform: translate3d(0, 0, 0); opacity: .3; } 50% { transform: translate3d(0, -3px, 0); opacity: .8; } }
@keyframes gd-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gd-drop { 0% { transform: translate3d(0, -26px, 0) scale(.6); opacity: 0; } 70% { transform: translate3d(0, 3px, 0) scale(1.04); opacity: 1; } 100% { transform: none; } }
@keyframes gd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gd-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(201, 154, 46, .18); } 50% { box-shadow: 0 0 0 9px rgba(201, 154, 46, .08); } }
@keyframes gd-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); } 50% { transform: translate3d(0, -6px, 0) rotate(3deg); } }
@keyframes gd-grow { from { transform: scaleX(.25); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .gd-sec.will-reveal .gd-card { opacity: 1; transform: none; }
  .gd-bar div i { transform: scaleX(var(--v)); }
}

/* Loops (Nov 15): BonBon's line holds the bubble's size while the dots play on top, so nothing grows or shifts. */
.gd-nar.is-typing .gd-nar-text { display: block; visibility: hidden; }
.gd-nar.is-typing .gd-nar-dots { position: absolute; left: .9rem; top: 50%; margin-top: -.6em; }
/* While BonBon types, only a small pill around the dots shows, by the tail; when he speaks it grows out to the full bubble
   and the words fade in. The paint is two clipped layers (the ring on .gd-nar-paint, the cream on ::after), so the growing
   is paint only: the bubble box never changes size and nothing on the page moves (no layout shift) (Loops, Nov 15). The /fin review variants (body.df) paint their own bubbles and keep the old look. */
body:not(.df) .gd-nar-bubble { isolation: isolate; background: transparent; border-color: transparent; box-shadow: none; }
body:not(.df) .gd-nar-paint, body:not(.df) .gd-nar-bubble::after { position: absolute; z-index: -1; transition: clip-path .36s var(--gd-ease); pointer-events: none; }
body:not(.df) .gd-nar-paint { inset: 0; border-radius: 22px; background: linear-gradient(rgba(91, 42, 74, .12), rgba(91, 42, 74, .12)), #fffaf3; box-shadow: 0 10px 22px -14px rgba(91, 42, 74, .45); clip-path: inset(0 -14px -26px -14px round 22px); }
body:not(.df) .gd-nar-bubble::after { content: ""; inset: 1px; border-radius: 21px; background: #fffaf3; clip-path: inset(0 0 0 0 round 21px); }
body:not(.df) .gd-nar:not(.is-in) .gd-nar-paint { clip-path: inset(calc(100% - 2.85rem) calc(100% - 4rem) 0 0 round 22px); }
body:not(.df) .gd-nar:not(.is-in) .gd-nar-bubble::after { clip-path: inset(calc(100% - 2.85rem + 2px) calc(100% - 4rem + 2px) 0 0 round 21px); }
body:not(.df) .gd-nar.is-typing .gd-nar-dots { top: auto; bottom: 0; height: 2.85rem; margin-top: 0; }
body:not(.df) .gd-nar.is-typing .gd-nar-x { visibility: hidden; }
body:not(.df) .gd-nar.is-grow .gd-nar-bubble { animation: none; }
body:not(.df) .gd-nar.is-grow .gd-nar-text, body:not(.df) .gd-nar.is-grow .gd-nar-x { animation: gd-nar-words .3s .12s ease-out both; }
@keyframes gd-nar-words { from { opacity: 0; } to { opacity: 1; } }

/* Batch 25 (Nov 15, 2026). Phones: BonBon's notes end short of his corner button, so it never sits on the words or the close mark. */
@media (max-width: 640px) { html:has(#bonbonAI) .gd-nar { max-width: min(24rem, calc(100% - 64px)); } }
