/* ============================================================
   THESMALLBOOK — NEO-BRUTALIST STYLESHEET
   Inspired by loot-drop.io aesthetics
   ============================================================ */

:root {
  --bg: #f2ede2;
  --ink: #111111;
  --paper: #fffdf5;
  --yellow: #ffc800;
  --red: #ff4d4d;
  /* v250: red as a BACKGROUND is --red; red as TEXT on paper must be
     --red-ink, or small labels sit at 3.2:1 and fail AA in both themes. */
  --red-ink: #c22b2b;
  --blue: #4d7cff;
  --green: #00c48c;
  --pink: #ff90e8;
  --purple: #b28dff;
  --orange: #ff8a3d;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --border: 3px solid var(--ink);
  --radius: 10px;

  /* ---- v250 CONTRAST TOKENS ------------------------------------
     The dark theme swaps --ink (text) and --paper (surface), which
     silently broke two whole families of components:
       1. bright accent chips that said `color: var(--ink)` -> cream
          text on yellow = invisible in dark mode.
       2. near-black chips that said `background: var(--ink)` -> cream
          box with yellow text = invisible in dark mode.
     These tokens never flip, so a component reads the same in both
     themes and stays legible. Use them instead of raw --ink/--paper
     whenever the colour depends on the SURFACE, not the theme. */
  --on-accent: #14110c;   /* text on yellow / green / pink / purple  */
  --chip: #111111;        /* near-black chip surface (ticker, badge) */
  --on-chip: #fffdf5;     /* text on a chip surface                  */
  --muted: #6b655c;       /* secondary text  (>= 4.5:1 on --paper)   */
  --muted-2: #8a8378;     /* tertiary text   (>= 4.5:1 on --paper)   */
  --surface: #fffdf5;     /* card surface                            */
  --surface-2: #f6f1e5;   /* inset / input surface                   */
  --line: #111111;        /* hairline borders                        */
  --font-head: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}
.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; }

/* ============================================================
   v261 · AUDIT MY IDEA + THE WIRE (graveyard.html)
   Free OSINT desk: rule engine + Wikipedia + Hacker News.
   ============================================================ */
.gtabs { display: flex; gap: 8px; margin: 26px auto 20px; padding: 0 14px; max-width: 1080px; }
.gtab { flex: 1; border: 3px solid #111; background: #fffdf5; box-shadow: 4px 4px 0 #111; border-radius: 14px;
  padding: 13px 8px; font: 900 clamp(11px, 2.6vw, 13.5px) 'Archivo Black', sans-serif; letter-spacing: 1px;
  cursor: pointer; color: #111; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.gtab:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #111; }
.gtab.active { background: #16130e; color: #ffc800; box-shadow: 4px 4px 0 #ffc800; }
.gpanel { max-width: 860px; margin: 0 auto; padding: 0 14px 40px; }
.acard { background: #fffdf5; border: 3px solid #111; border-radius: 20px; box-shadow: 8px 8px 0 #16130e; padding: 22px 18px; }
.acard__h { margin: 0 0 8px; font: 900 clamp(18px, 4.6vw, 24px) 'Archivo Black', sans-serif; color: #111; letter-spacing: .5px; }
.acard__s { margin: 0 0 16px; font: 500 13.5px/1.6 'Space Grotesk', sans-serif; color: #4a463c; }
.acard__s b { color: #111; }
.acard__lbl { display: block; margin: 14px 0 7px; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: #6b6656; }
.acard__textwrap { position: relative; }
#auditText { width: 100%; box-sizing: border-box; border: 3px solid #111; border-radius: 14px; background: #fff;
  font: 500 15px/1.6 'Space Grotesk', sans-serif; color: #111; padding: 14px 14px 46px; resize: vertical; min-height: 110px; }
#auditText:focus { outline: none; box-shadow: 4px 4px 0 #ffc800; }
.amic { position: absolute; left: 10px; bottom: 10px; border: 2.5px solid #111; background: #ffc800; border-radius: 999px;
  padding: 8px 14px; font: 800 11px 'Space Grotesk', sans-serif; letter-spacing: 1px; cursor: pointer; }
.amic.on { background: #ff4d4d; color: #fff; animation: micPulse 1.1s ease-in-out infinite; }
@keyframes micPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.achips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { border: 2.5px solid #111; background: #fff; border-radius: 999px; padding: 9px 13px;
  font: 700 11.5px 'Space Grotesk', sans-serif; letter-spacing: .5px; cursor: pointer; color: #111; }
.achip.on { background: #ffc800; box-shadow: 3px 3px 0 #111; }
.achip--grave { background: #16130e; color: #f2ead8; border-color: #16130e; }
.achip--grave:hover { background: #3a2f22; }
.ain { width: 100%; box-sizing: border-box; border: 3px solid #111; border-radius: 12px; padding: 11px 12px;
  font: 500 14px 'Space Grotesk', sans-serif; background: #fff; }
.arun { display: block; width: 100%; margin: 20px 0 4px; border: 3px solid #111; background: #ff4d4d; color: #fff;
  box-shadow: 5px 5px 0 #111; border-radius: 16px; padding: 16px; cursor: pointer;
  font: 900 15px 'Archivo Black', sans-serif; letter-spacing: 1.5px; }
.arun:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 #111; }
.arun:disabled { opacity: .65; transform: none; }
.arun--slim { padding: 12px; font-size: 12.5px; margin: 0 0 12px; background: #ffc800; color: #111; }
.astatus { margin: 12px 0; border: 2.5px dashed #b9b19c; border-radius: 12px; background: #faf6e8;
  padding: 12px 14px; font: 600 12.5px/1.65 'Space Grotesk', sans-serif; color: #4a463c; }
.astatus__ok { color: #0b7a58; font-weight: 700; }
.astatus__line { color: #4a463c; font-weight: 700; }
.askel__pulse { animation: askelPulse 1.2s ease-in-out infinite; }
@keyframes askelPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.areport { margin-top: 16px; }
.ameter { border: 3px solid #111; border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 #111; padding: 14px 16px; margin-bottom: 14px; }
.ameter__head { display: flex; justify-content: space-between; align-items: baseline;
  font: 800 11px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; color: #6b6656; }
.ameter__head b { font: 900 22px 'Archivo Black', sans-serif; }
.ameter__bar { height: 16px; border: 2.5px solid #111; border-radius: 999px; background: #f1ebdd; overflow: hidden; margin: 10px 0 8px; }
.ameter__bar i { display: block; height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.2,1,.4,1); }
.ameter__verdict { font: 900 14px 'Archivo Black', sans-serif; letter-spacing: 1px; text-align: center; }
.astrong { border: 3px solid #0b7a58; background: #eafaf3; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.astrong > span { display: block; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; color: #0b7a58; margin-bottom: 8px; }
.astrong i { display: inline-block; border: 2px solid #0b7a58; color: #0b7a58; border-radius: 999px;
  padding: 5px 11px; margin: 0 6px 6px 0; font: 700 11.5px 'Space Grotesk', sans-serif; font-style: normal; background: #fff; }
.areport__h { margin: 18px 0 10px; font: 900 12.5px 'Archivo Black', sans-serif; letter-spacing: 1.6px; color: #111; }
.aweak { border: 3px solid #b3261e; border-radius: 14px; background: #fff2f0; box-shadow: 4px 4px 0 #b3261e;
  padding: 14px; margin-bottom: 12px; }
.aweak > b { display: block; font: 900 14.5px 'Space Grotesk', sans-serif; color: #8f1d16; margin-bottom: 6px; }
.aweak p { margin: 0 0 10px; font: 500 13.5px/1.6 'Space Grotesk', sans-serif; color: #4a2018; }
.aweak__fix { border-left: 4px solid #b3261e; background: #fff; border-radius: 0 10px 10px 0;
  padding: 9px 11px; font: 600 12.5px/1.55 'Space Grotesk', sans-serif; color: #333; margin-bottom: 10px; }
.aweak__fix span { display: block; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; color: #b3261e; margin-bottom: 4px; }
.agrave { border: 2.5px solid #111; background: #16130e; color: #ffc800; border-radius: 999px;
  padding: 9px 14px; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: .8px; cursor: pointer; }
.agrave:hover { background: #3a2f22; }
.aexists { margin-top: 4px; }
.awiki { display: block; width: 100%; text-align: left; border: 2.5px solid #111; background: #fff; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.awiki:hover { box-shadow: 3px 3px 0 #111; transform: translate(-1px, -1px); }
.awiki b { display: block; font: 800 13.5px 'Space Grotesk', sans-serif; color: #111; margin-bottom: 3px; }
.awiki i { font: 500 12px/1.5 'Space Grotesk', sans-serif; color: #6b6656; font-style: normal; }
.anote { font: 500 12px/1.6 'Space Grotesk', sans-serif; color: #8f8a80; margin: 6px 0; }
.ahist { margin-top: 18px; border-top: 2px dashed #b9b19c; padding-top: 12px; }
.ahist__t { display: block; font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; color: #6b6656; margin-bottom: 8px; }
.askel { height: 12px; border-radius: 8px; margin: 10px 0; background: linear-gradient(90deg, #ece5d2 25%, #f6f1e2 50%, #ece5d2 75%);
  background-size: 200% 100%; animation: askelShine 1.1s linear infinite; }
@keyframes askelShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.awiregrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 6px; }
.awire { display: block; border: 2.5px solid #111; background: #fff; border-radius: 12px; padding: 11px 12px;
  margin-bottom: 8px; text-decoration: none; }
.awire:hover { box-shadow: 3px 3px 0 #111; transform: translate(-1px, -1px); }
.awire b { display: block; font: 700 13px/1.45 'Space Grotesk', sans-serif; color: #111; margin-bottom: 5px; }
.awire i { display: block; font: 600 11px 'Space Grotesk', sans-serif; color: #8f8a80; font-style: normal; margin-bottom: 6px; }
.awire span { font: 900 10px 'Archivo Black', sans-serif; letter-spacing: 1px; color: #b3261e; }
.autopsy--doc .autopsy__page { width: min(660px, 100%); }
.adoc__h { font: 900 clamp(20px, 5.4vw, 28px) 'Archivo Black', sans-serif; color: #111; margin: 4px 0 14px; line-height: 1.25; }
.adoc__p { font: 500 14.5px/1.7 'Space Grotesk', sans-serif; color: #2c2a24; margin: 0 0 12px; }
@media (max-width: 480px) {
  .gtabs { gap: 6px; padding: 0 10px; }
  .acard { padding: 18px 14px; }
  .awiregrid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .amic.on, .askel__pulse, .askel { animation: none; }
}

/* ============================================================
   v262 · AUDIT WIZARD + PRO METERS + FRESH GRAVES
   ============================================================ */
.astepswrap { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.astepsdots { display: flex; gap: 6px; }
.astepsdots i { width: 26px; height: 8px; border: 2px solid #111; border-radius: 999px; background: #fff; }
.astepsdots i.on { background: #16130e; border-color: #16130e; }
.asteplbl { font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; color: #6b6656; text-transform: uppercase; }
.afield { animation: afieldIn .25s ease; }
@keyframes afieldIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.anext { display: block; width: 100%; margin: 16px 0 0; border: 3px solid #111; background: #16130e; color: #ffc800;
  box-shadow: 4px 4px 0 #111; border-radius: 14px; padding: 14px; cursor: pointer;
  font: 900 13px 'Archivo Black', sans-serif; letter-spacing: 1.2px; }
.anext:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #111; }
.anext--back { background: #fff; color: #111; box-shadow: 3px 3px 0 #111; margin-top: 10px; padding: 11px; font-size: 11.5px; }
.ameters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ameter__one { border: 3px solid #111; border-radius: 14px; background: #fff; box-shadow: 4px 4px 0 #111; padding: 12px; }
.ameter__one > span { display: block; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; color: #6b6656; text-transform: uppercase; }
.ameter__one .ameter__bar { margin: 8px 0 6px; }
.ameter__one b { font: 900 20px 'Archivo Black', sans-serif; }
.ameter__one em { display: block; font: 800 9px 'Space Grotesk', sans-serif; letter-spacing: 1.2px; font-style: normal; color: #8f8a80; margin-top: 2px; }
.astepsplan { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.astepsplan li { counter-increment: step; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 3px solid #111; border-radius: 14px; background: #fff; box-shadow: 4px 4px 0 #ffc800;
  padding: 12px 12px 12px 46px; margin-bottom: 10px; position: relative;
  font: 600 13px/1.55 'Space Grotesk', sans-serif; color: #2c2a24; }
.astepsplan li::before { content: counter(step); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; background: #ffc800; border: 2.5px solid #111;
  border-radius: 50%; font: 900 13px 'Archivo Black', sans-serif; color: #111; }
.astepsplan .agrave--sm { flex: none; }
.agrave--sm { border-width: 2px; padding: 6px 10px; font-size: 9.5px; }
.freshhead { margin-top: 34px; }
.freshtxt { max-width: 1080px; margin: 10px auto 16px; padding: 0 14px;
  font: 500 12.5px/1.6 'Space Grotesk', sans-serif; color: #6b6656; }
.freshtxt b { color: #b3261e; }
.fgravegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.fgrave { border: 3px solid #111; border-radius: 16px; background: #16130e; box-shadow: 5px 5px 0 #b3261e;
  padding: 14px; color: #f2ead8; display: flex; flex-direction: column; gap: 8px; }
.fgrave__top { display: flex; justify-content: space-between; align-items: baseline; }
.fgrave__rip { font: 900 10px 'Archivo Black', sans-serif; letter-spacing: 3px; opacity: .7; }
.fgrave__yr { font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: 1.5px; color: #ffc800; }
.fgrave b { font: 800 15px 'Space Grotesk', sans-serif; color: #fffdf5; line-height: 1.3; }
.fgrave p { margin: 0; font: 500 12.5px/1.6 'Space Grotesk', sans-serif; color: #cfc7b4; flex: 1; }
.fgrave .agrave { align-self: flex-start; background: #ffc800; color: #111; border-color: #ffc800; }
.frepgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px;
  max-width: 1080px; margin: 12px auto 0; padding: 0 14px 30px; }
.freport { position: relative; border: 2.5px solid #111; border-radius: 14px; background: #fff;
  box-shadow: 4px 4px 0 #4d7cff; padding: 12px 12px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.freport:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #4d7cff; }
.freport__tag { position: absolute; top: -11px; left: 10px; background: #4d7cff; border: 2px solid #111;
  border-radius: 999px; padding: 3px 9px; font: 900 8.5px 'Archivo Black', sans-serif; letter-spacing: 1px; color: #fff; }
.freport b { font: 700 13px/1.45 'Space Grotesk', sans-serif; color: #111; margin-top: 4px; }
.freport i { font: 600 10.5px 'Space Grotesk', sans-serif; color: #8f8a80; font-style: normal; }
@media (max-width: 480px) {
  .ameters { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ameter__one { padding: 10px; }
  .fgravegrid, .frepgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   v263 · THE LOGIN SKIN — premium .lg layer (login.html)
   Yellow hero → rounded white sheet → segmented tabs → icon
   fields → ink primary button. Circular edges, zero blur, lean.
   ============================================================ */
.youpage .youview { align-items: flex-start; padding: 0 0 calc(90px + env(safe-area-inset-bottom, 0px)); }
.youpage .youcard.lgcard { width: min(520px, 100%); background: transparent; border: 0; box-shadow: none;
  border-radius: 0; padding: 0; overflow: visible; }
.youpage .youpage__x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 5;
  width: 40px; height: 40px; display: grid; place-items: center; background: rgba(17,17,17,.85); color: #ffc800;
  border: 2.5px solid #ffc800; border-radius: 50%; font-size: 15px; text-decoration: none; }
.lghero { position: relative; background: #ffc800; border-bottom: 3px solid #111;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 22px 42px; text-align: left; overflow: hidden; }
.lghero__shape { position: absolute; border: 3px solid #111; }
.lghero__shape--ring { width: 34px; height: 34px; border-radius: 50%; top: 24px; right: 22px; background: #fffdf5; }
.lghero__shape--diamond { width: 20px; height: 20px; transform: rotate(45deg); top: 66px; right: 54px; background: #111; }
.lghero__chip { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #111; color: #ffc800;
  border-radius: 14px; font-size: 22px; box-shadow: 4px 4px 0 rgba(17,17,17,.25); margin-bottom: 14px; }
.lghero__eyebrow { display: block; font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 3.5px; color: #4a4033; margin-bottom: 6px; }
.lghero__title { margin: 0 0 8px; font: 900 clamp(36px, 11vw, 54px)/0.95 'Archivo Black', sans-serif; color: #111; letter-spacing: .5px; }
.lghero__sub { margin: 0 0 14px; font: 600 13.5px/1.5 'Space Grotesk', sans-serif; color: #4a4033; max-width: 40ch; }
.lghero__perks { display: flex; flex-wrap: wrap; gap: 8px; }
.lghero__perks span { background: #fffdf5; border: 2.5px solid #111; border-radius: 999px; padding: 6px 11px;
  font: 700 10.5px 'Space Grotesk', sans-serif; color: #111; }
.lgsheet { position: relative; z-index: 1; margin: -20px auto 0; width: min(520px, 100%);
  background: #fffdf5; border: 3px solid #111; border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 20px 18px 30px; box-shadow: 0 -12px 34px rgba(17,17,17,.16); }
.youpage .yotabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #16130e;
  border: 3px solid #111; border-radius: 999px; padding: 5px; margin-bottom: 16px; }
.youpage .yotab { border: 0; background: transparent; color: #cfc7b4; border-radius: 999px; padding: 12px 6px;
  font: 900 11px 'Archivo Black', sans-serif; letter-spacing: 1px; cursor: pointer;
  transition: background .2s ease, color .2s ease; opacity: 1; }
.youpage .yotab.on { background: #ffc800; color: #111; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.youpage .yougoogle { width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #111; border: 3px solid #111; border-radius: 18px; box-shadow: 4px 4px 0 #111;
  padding: 14px; font: 800 14px 'Space Grotesk', sans-serif; cursor: pointer; }
.youpage .yougoogle:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #111; }
.youpage .yougoogle svg { width: 20px; height: 20px; }
.youpage .yodiv { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #8f8a80;
  font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.youpage .yodiv::before, .youpage .yodiv::after { content: ""; flex: 1; height: 2.5px; background: #e3dccb; }
.lgsec { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px;
  font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 2px; color: #8f8a80; }
.lgsec::after { content: ""; flex: 1; height: 2px; background: #e3dccb; }
.youpage .yoform { text-align: left; }
.youpage .yoform:not([hidden]) { animation: lgPane .26s ease; }
@keyframes lgPane { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.youpage .yoin { width: 100%; box-sizing: border-box; border: 3px solid #111; border-radius: 16px; background: #fff;
  font: 500 15px 'Space Grotesk', sans-serif; color: #111; padding: 14px 16px; margin: 0 0 12px; }
.youpage .yoin:focus { outline: none; box-shadow: 4px 4px 0 #ffc800; }
.youpage select.yoin { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.lgi { position: relative; }
.lgi .yoin { padding-right: 46px; }
.lgi__ic { position: absolute; right: 15px; top: 21px; font-size: 15px; opacity: .75; pointer-events: none; }
.youpage .yopass.lgi { margin-bottom: 12px; }
.youpage .yopass.lgi .yoin { margin-bottom: 0; }
.youpage .yopass.lgi .yoeye { position: absolute; right: 44px; top: 11px; width: 36px; height: 36px;
  background: none; border: 0; font-size: 15px; cursor: pointer; }
.youpage .youser { position: relative; margin-bottom: 12px; }
.youpage .youser .yoin { padding-left: 40px; margin-bottom: 0; }
.youpage .youser__at { position: absolute; left: 16px; top: 13px; font: 800 16px 'Space Grotesk', sans-serif; color: #8f8a80; }
.youpage .youser__state { position: absolute; right: 14px; top: 15px; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: .5px; }
.youpage .youser__state.is-ok { color: #0b7a58; }
.youpage .youser__state.is-bad { color: #b3261e; }
.youpage .yoage { border: 2.5px dashed #b9b19c; border-radius: 16px; background: #faf6e8; padding: 13px 14px; margin-bottom: 12px; }
.youpage .yoage__t { display: block; font: 700 12px 'Space Grotesk', sans-serif; color: #4a463c; margin-bottom: 9px; }
.youpage .yoage__row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9px; }
.youpage .yoage .yoin { margin: 0; padding: 12px 14px; }
.youpage .yotick { display: flex; gap: 11px; align-items: flex-start; text-align: left; cursor: pointer;
  border: 2.5px solid #111; border-radius: 16px; background: #fff; padding: 13px 13px; margin-bottom: 14px; }
.youpage .yotick__box { flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border: 2.5px solid #111; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 900; color: transparent; }
.youpage .yotick input { position: absolute; opacity: 0; pointer-events: none; }
.youpage .yotick input:checked ~ .yotick__box { background: #ffc800; color: #111; }
.youpage .yotick__t { font: 500 12px/1.55 'Space Grotesk', sans-serif; color: #4a463c; }
.youpage .yotick__t b { color: #111; }
.youpage .yotick__t a { color: #111; font-weight: 800; }
.youpage .yogo { width: 100%; border: 3px solid #111; border-radius: 18px; background: #16130e; color: #fff;
  box-shadow: 5px 5px 0 #ffc800; padding: 16px; font: 900 15px 'Archivo Black', sans-serif; letter-spacing: 2px;
  cursor: pointer; margin: 4px 0 6px; transition: transform .12s ease, box-shadow .12s ease; }
.youpage .yogo:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 #ffc800; }
.youpage .yogo:disabled { opacity: .6; transform: none; }
.youpage .yoforgot { display: block; width: 100%; background: none; border: 0; color: #6b6656; cursor: pointer;
  font: 700 12px 'Space Grotesk', sans-serif; text-decoration: underline; padding: 9px 0 2px; text-align: center; }
.youpage .yohint { margin: 12px 0 0; font: 500 11.5px/1.6 'Space Grotesk', sans-serif; color: #8f8a80; text-align: center; }
.youpage .yocode__in { font-size: 20px !important; font-weight: 800; letter-spacing: .5em; text-align: center;
  padding-left: 1.2em; min-height: 56px; }
.youpage .yocode__t { margin: 4px 0 14px; font: 600 13.5px/1.55 'Space Grotesk', sans-serif; color: #111; text-align: center; }
.youpage .yostrip { border: 3px solid #111; border-radius: 16px; padding: 13px 14px; margin: 14px 0 4px;
  font: 600 12.5px/1.55 'Space Grotesk', sans-serif; text-align: center; }
.youpage .yostrip--ok { background: #eafaf3; border-color: #0b7a58; color: #0b7a58; }
.youpage .yostrip--err { background: #fff2f0; border-color: #b3261e; color: #8f1d16; }
.youpage .youskip { display: block; text-align: center; margin: 16px auto 0; color: #6b6656;
  font: 700 12px 'Space Grotesk', sans-serif; text-decoration: underline; }
.youpage .youfine { max-width: 520px; margin: 14px auto 0; padding: 0 18px; font: 500 10.5px/1.6 'Space Grotesk', sans-serif;
  color: #8f8a80; text-align: center; }
/* the finish-line shares the skin */
.youpage .lghero--fin { padding-bottom: 34px; }
.youpage .lghero--fin .lghero__sub { color: #4a4033; }
@media (min-width: 560px) {
  .lgsheet { border-radius: 26px; border-bottom: 3px solid #111; margin-bottom: 20px;
    box-shadow: 0 -12px 34px rgba(17,17,17,.14), 8px 10px 0 rgba(17,17,17,.85); }
}
@media (prefers-reduced-motion: reduce) {
  .youpage .yoform:not([hidden]) { animation: none; }
}

/* ============================================================
   v263 · THE GRAVEYARD SKIN — no tabs, no dig buttons.
   Audit + Wire live in the page flow; every grave card is a
   readable story teaser; the whole card opens the autopsy.
   ============================================================ */
.gpanel { max-width: 1080px; margin: 0 auto; padding: 0 14px 8px; }
.audhead { margin-top: 30px; }
.audsub { max-width: 780px; margin: 10px auto 12px; text-align: center;
  font: 500 13.5px/1.65 'Space Grotesk', sans-serif; color: #6b6656; }
.audsub b { color: #111; }
.audfeats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 16px; max-width: 780px; }
.audfeats span { border: 2.5px solid #111; background: #fffdf5; border-radius: 999px; padding: 7px 12px;
  font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: .8px; color: #111; box-shadow: 3px 3px 0 #ffc800; }
.gpanel .acard { max-width: 860px; margin: 0 auto; }

/* the grave card — one readable surface */
.grave { display: flex; align-items: flex-start; gap: 16px; cursor: pointer; margin-bottom: 14px;
  padding: 16px 18px 15px 20px; }
.grave__main { flex: 1; min-width: 0; text-align: left; }
.grave__name { margin-top: 2px; }
.grave__excerpt { margin: 9px 0 8px; font: 500 13px/1.62 'Space Grotesk', sans-serif; color: #4a463c; }
html.dark .grave__excerpt { color: #b8b2a2; }
.grave__hint { display: inline-block; font: 900 9.5px 'Archivo Black', sans-serif; letter-spacing: 1.4px;
  color: var(--gcat, #888); text-transform: uppercase; border-bottom: 2px solid var(--gcat, #888); padding-bottom: 2px; }
.grave__cause { display: inline-block; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1px;
  border: 2px solid rgba(17,17,17,.35); border-radius: 999px; padding: 4px 9px; color: #4a463c; }
html.dark .grave__cause { border-color: rgba(242,234,216,.35); color: #b8b2a2; }
.grave__meta .grave__cause { margin-left: 2px; }
@media (max-width: 560px) {
  .grave { gap: 12px; padding: 14px 14px 14px 16px; }
  .grave__excerpt { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .grave, .grave:hover { transition: none; transform: none; }
}


/* ============================================================
   v260 · THE AUTOPSY — full-screen grave reader (graveyard.html)
   The card is the headstone; this is the story beneath it.
   ============================================================ */
html.autopsy-lock { overflow: hidden; }
.autopsy { position: fixed; inset: 0; z-index: 9990; display: flex; }
.autopsy__veil { position: absolute; inset: 0; background: rgba(12, 6, 4, .68); opacity: 0; transition: opacity .25s ease; }
.autopsy--on .autopsy__veil { opacity: 1; }
.autopsy__page { position: relative; z-index: 1; margin: auto; width: min(660px, 100%); height: 100%;
  background: #fffdf5; border: 3px solid #111; border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 60px rgba(0,0,0,.45); display: flex; flex-direction: column;
  transform: translateY(6%); opacity: 0; transition: transform .28s cubic-bezier(.2,1.2,.4,1), opacity .22s ease; }
.autopsy--on .autopsy__page { transform: translateY(0); opacity: 1; }
@media (min-width: 700px) {
  .autopsy__page { height: auto; max-height: calc(100% - 48px); border-bottom: 3px solid #111;
    border-radius: 22px; box-shadow: 10px 10px 0 rgba(12,6,4,.85); }
}
.autopsy__top { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px calc(10px + env(safe-area-inset-top)); border-bottom: 2.5px solid #111; background: #16130e; }
.autopsy__case { font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #ffc800; }
.autopsy__x { flex: none; width: 42px; height: 42px; border: 2.5px solid #ffc800; background: #16130e; color: #ffc800;
  border-radius: 12px; font-size: 17px; font-weight: 800; cursor: pointer; }
.autopsy__x:hover { background: #ffc800; color: #111; }
.autopsy__progress { position: relative; height: 4px; background: rgba(17,17,17,.12); overflow: hidden; }
.autopsy__progress i { position: absolute; inset: 0; background: #ffc800; transform: scaleX(0); transform-origin: 0 50%; }
.autopsy__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 18px 18px calc(26px + env(safe-area-inset-bottom)); }
.autopsy__hero { text-align: center; border: 3px solid #111; border-radius: 18px; background: #16130e;
  box-shadow: 6px 6px 0 var(--gcat, #9aa2ad); padding: 22px 16px 18px; margin: 2px 0 18px; }
.autopsy__stone { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.autopsy__rip { font: 900 13px 'Archivo Black', sans-serif; letter-spacing: 5px; color: #e8e0cf; opacity: .75; }
.autopsy__emoji { font-size: 54px; line-height: 1.15; }
.autopsy__year { font: 800 13px 'Space Grotesk', sans-serif; letter-spacing: 3px; color: #ffc800; }
.autopsy__name { margin: 12px 0 4px; font: 900 clamp(24px, 6.4vw, 34px) 'Archivo Black', sans-serif; color: #fffdf5; letter-spacing: .4px; }
.autopsy__epitaph { margin: 0 0 14px; font: 600 13.5px 'Space Grotesk', sans-serif; color: #cfc7b4; line-height: 1.45; }
.autopsy__stamps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.autopsy__stamp { font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.1px; text-transform: uppercase;
  border: 2px solid rgba(242,234,216,.4); color: #e8e0cf; border-radius: 999px; padding: 6px 10px; }
.autopsy__stamp--loss { background: #ffc800; border-color: #ffc800; color: #111; }
.autopsy__sec { border: 3px solid #111; border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 #111;
  padding: 16px 16px 14px; margin: 0 0 14px; }
.autopsy__h { margin: 0 0 8px; font: 900 12px 'Archivo Black', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #111; }
.autopsy__sec p { margin: 0; font: 500 14.5px/1.66 'Space Grotesk', sans-serif; color: #2c2a24; }
.autopsy__sec--mistake { background: #fff2f0; border-color: #b3261e; box-shadow: 5px 5px 0 #b3261e; }
.autopsy__h--mistake { color: #b3261e; }
.autopsy__sec--lesson { background: #fff8dd; box-shadow: 5px 5px 0 #ffc800; }
.autopsy__h--lesson { color: #8a6d00; }
.autopsy__book { display: flex; flex-direction: column; gap: 3px; border: 3px solid #111; border-radius: 16px;
  background: #eafaf3; box-shadow: 5px 5px 0 #00c48c; padding: 14px 16px; margin: 0 0 14px; text-decoration: none; }
.autopsy__book span { font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; color: #0b7a58; text-transform: uppercase; }
.autopsy__book strong { font: 800 15px 'Space Grotesk', sans-serif; color: #111; }
.autopsy__more { display: block; text-align: center; border: 2.5px dashed #6b7280; border-radius: 12px;
  padding: 10px 12px; margin: 0 0 12px; font: 700 12px 'Space Grotesk', sans-serif; color: #444; text-decoration: none; }
.autopsy__more:hover { border-color: #111; color: #111; }
.autopsy__fine { text-align: center; font: 600 11px 'Space Grotesk', sans-serif; color: #8f8a80; margin: 4px 0 0; }
.autopsy .grave__share { display: block; width: 100%; border: 3px solid #111; background: #ffc800; box-shadow: 4px 4px 0 #111;
  border-radius: 999px; padding: 12px; font: 900 12px 'Archivo Black', sans-serif; letter-spacing: 1px; cursor: pointer; margin: 0 0 6px; }
.autopsy .grave__share:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #111; }

/* the slim dig CTA on each grave card */
.grave__dig-btn { display: block; width: 100%; border: 0; border-top: 2.5px dashed rgba(242,234,216,.35);
  background: transparent; color: #f2ead8; padding: 12px 16px 14px; cursor: pointer;
  font: 900 11.5px 'Archivo Black', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; opacity: .92; }
.grave__dig-btn:hover { opacity: 1; color: #ffc800; }
@media (prefers-reduced-motion: reduce) {
  .autopsy__page, .autopsy__veil { transition: none; }
}


* { margin: 0; padding: 0; box-sizing: border-box; }

/* CRITICAL: the hidden attribute must ALWAYS win. Author CSS like
   display:flex on .scanmodal__result overrides the browser's default
   [hidden]{display:none}, which made scanner overlays appear instantly
   on real devices (fake FOUND card covering the live camera). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* stop iOS/Android from auto-inflating text on large-font devices */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(17,17,17,.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

::selection { background: var(--yellow); color: var(--on-accent); }

h1, h2, h3, .head { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; }

a { color: inherit; }

/* ---------- TICKER ---------- */
.ticker {
  background: var(--chip);
  color: var(--on-chip);
  border-bottom: var(--border);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0;
}
.ticker__track { display: inline-block; animation: tick 28s linear infinite; }
.ticker__track span { margin: 0 24px; }
.ticker__track em { color: var(--yellow); font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px clamp(12px, 4vw, 48px);
  border-bottom: var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
}
.logo__mark {
  width: 44px; height: 44px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-size: 1.3rem;
  transform: rotate(-6deg);
  transition: transform .2s;
}
.logo:hover .logo__mark { transform: rotate(6deg) scale(1.05); }
.logo__small { color: var(--red); }

.nav__links { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

/* ---------- NAV AUTH (top-right login chip) ---------- */
.nav__auth { display: flex; align-items: center; }
/* phones & small tablets: chip ALWAYS floats top-right in the LOGO row,
   never below the buttons (covers 561–900px which previously wrapped) */
@media (max-width: 900px) {
  .nav__auth { position: absolute; top: 12px; right: 14px; z-index: 6; margin-left: 0; }
  html.tsb-logged-in .nav__links { padding-right: 96px; }
}
@media (max-width: 560px) {
  html.tsb-logged-in .nav__links { padding-right: 0; }
  html.tsb-logged-in .logo { padding-right: 88px; }
}
.tsb-navchip {
  display: inline-flex; align-items: center; gap: 7px;
  border: var(--border); background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding: 8px 12px; text-decoration: none; line-height: 1;
  box-shadow: 3px 3px 0 var(--green); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.tsb-navchip:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--green); }
.tsb-navchip .tsb-navuser__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  border: 2px solid var(--ink); flex: none; animation: tsbDotPulse 2.2s ease-in-out infinite;
}
@keyframes tsbDotPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.nav .btn--blue { color: #111; }
/* ---------- ⭐ PREMIUM LOGIN BUTTON (Google-style, top-right slot) ---------- */
.tsb-loginbtn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: "Archivo Black", sans-serif; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 16px; text-decoration: none; line-height: 1; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tsb-loginbtn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.tsb-loginbtn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.tsb-loginbtn svg { flex: none; }
.tsb-loginbtn span { white-space: nowrap; }
html.dark .tsb-loginbtn { background: #fff; color: #111; }
@media (max-width: 560px) {
  .tsb-loginbtn { padding: 8px 12px; font-size: 10px; gap: 6px; letter-spacing: 1px; }
}


.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--ink { background: var(--chip); color: var(--on-chip); }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) clamp(30px, 5vw, 60px);
  text-align: center;
  position: relative;
}
.hero__badge {
  display: inline-block;
  background: var(--chip);
  color: var(--yellow);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
  margin-bottom: 26px;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotate(-1.5deg) translateY(0);} 50% { transform: rotate(-1.5deg) translateY(-6px);} }

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.02;
  margin-bottom: 8px;
}
.hero h1 .hl {
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  padding: 0 14px;
  transform: rotate(-1deg);
}
.hero h1 .hl--red { background: var(--red); color: #fff; transform: rotate(1.2deg); }
.hero__sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
}
.hero__sub strong { background: var(--pink); padding: 0 6px; border: 2px solid var(--ink); }

/* ---------- SEARCH ---------- */
.searchwrap {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 0 14px;
}
.search {
  display: flex;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.search input::placeholder { color: #999; }
.search button {
  border: none;
  border-left: var(--border);
  background: var(--yellow);
  font-family: var(--font-head);
  font-size: .9rem;
  text-transform: uppercase;
  padding: 0 28px;
  cursor: pointer;
  transition: background .15s;
}
.search button:hover { background: var(--red); color: #fff; }
.search__hint {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-top: 10px; color: #777;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.stat {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: transform .15s;
}
.stat:hover { transform: translate(-2px,-2px); }
.stat__num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.stat__label { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-top: 4px; }
.stat--yellow { background: var(--yellow); }
/* v250: the label is small uppercase text, so it gets a dark ink on the
   saturated card — pale-on-red/blue measured 2.7:1 and 3.0:1 in BOTH themes. */
.stat--red { background: var(--red); color:#fff; } .stat--red .stat__label{ color:#2a0503; }   /* 5.7:1 */
.stat--blue { background: var(--blue); color:#fff; } .stat--blue .stat__label{ color:#08122e; }   /* 5.0:1 */
.stat--green { background: var(--green); }

/* ---------- FILTERS ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 36px clamp(16px, 4vw, 48px) 8px;
}
.chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--paper);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 16px;
  cursor: pointer;
  transition: all .12s;
}
.chip:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.chip.active { background: var(--chip); color: var(--yellow); }

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  max-width: 1280px;
  margin: 34px auto 70px;
  padding: 0 clamp(16px, 4vw, 48px);
}

.card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.card:hover { transform: translate(-4px,-4px); box-shadow: var(--shadow-lg); }
.card:active { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }

.card__top {
  border-bottom: var(--border);
  padding: 22px;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 230px;
}
.card__cover {
  width: 140px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
  transition: transform .2s;
  background: #fff;
  object-fit: cover;
}
.card:hover .card__cover { transform: rotate(3deg) scale(1.06); }

.card__cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--chip);
  color: var(--on-chip);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
}
.card__time {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
}

.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; }
.card__author { font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #777; }
.card__tag { font-size: .92rem; font-weight: 500; flex: 1; }
.card__footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 2px dashed var(--ink);
  padding-top: 12px;
  font-weight: 700; font-size: .75rem;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.card__lessons { background: var(--yellow); border: 2px solid var(--ink); padding: 3px 8px; }
.card__go { transition: transform .15s; }
.card:hover .card__go { transform: translateX(5px); }

.empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1/-1;
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
}
.empty span { font-size: 3rem; display: block; margin-bottom: 14px; }

/* ---------- SECTION HEADS ---------- */
.section-head {
  display: flex; align-items: center; gap: 16px;
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 20px;
  transform: rotate(-1deg);
}
.section-head .line { flex: 1; height: 4px; background: var(--chip); }

/* ---------- HOW IT WORKS ---------- */
.how {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.how__step {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: relative;
}
.how__num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  position: absolute;
  top: -22px; right: 14px;
  background: var(--red);
  color: #fff;
  border: var(--border);
  padding: 0 14px;
  transform: rotate(3deg);
}
.how__step:nth-child(2) .how__num { background: var(--blue); }
.how__step:nth-child(3) .how__num { background: var(--green); color: var(--on-accent); }
.how__step h3 { font-size: 1rem; margin-bottom: 8px; }
.how__step p { font-size: .9rem; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: var(--border);
  background: var(--chip);
  color: var(--on-chip);
  padding: 34px clamp(16px, 4vw, 48px);
  text-align: center;
}
.footer .head { color: var(--yellow); font-size: 1.2rem; margin-bottom: 8px; }
.footer p { font-size: .85rem; opacity: .85; max-width: 700px; margin: 0 auto; }
.footer .tiny { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 18px; opacity: .5; }

/* ============================================================
   BOOK DETAIL PAGE
   ============================================================ */
.bookhero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 4vw, 50px);
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
  align-items: start;
}
.bookhero__coverbox {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(-2deg);
  position: sticky;
  top: 100px;
}
.bookhero__coverbox img { width: 100%; border: var(--border); display: block; }
.bookhero__meta { display: flex; flex-direction: column; gap: 16px; }
.bookhero__cat {
  align-self: flex-start;
  background: var(--chip); color: var(--yellow);
  font-weight: 700; font-size: .7rem; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 6px 14px;
}
.bookhero h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.05; }
.bookhero__author { font-weight: 700; font-size: .95rem; letter-spacing: 2px; text-transform: uppercase; color: #666; }
.origband { display: inline-flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 9px 14px 10px; width: fit-content; background: var(--yellow); color: var(--on-accent); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-head); font-size: .74rem; letter-spacing: 1.8px; }
.origband small { font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .2px; opacity: .92; }
.bookhero__oneliner {
  font-size: 1.1rem; font-weight: 500;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}
.bookhero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-weight: 700; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 12px;
  background: var(--paper);
}
.badge--yellow { background: var(--yellow); }
.badge--green { background: var(--green); }
.badge--pink { background: var(--pink); }

/* BIG IDEA */
.bigidea {
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.bigidea__box {
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
  position: relative;
}
.bigidea__label {
  position: absolute;
  top: -18px; left: 22px;
  background: var(--chip); color: var(--on-chip);
  font-family: var(--font-head);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  transform: rotate(-2deg);
}
.bigidea__box p { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; }

/* LESSONS */
.lessons {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.lesson {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.lesson:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.lesson__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: var(--border);
  cursor: pointer;
  user-select: none;
}
.lesson__num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  background: var(--chip); color: var(--yellow);
  min-width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.lesson__titlebox { flex: 1; }
.lesson__title { font-family: var(--font-head); font-size: clamp(.95rem, 2vw, 1.2rem); text-transform: uppercase; line-height: 1.2; }
.lesson__chapter { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-top: 3px; }
.lesson__toggle {
  font-family: var(--font-head);
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.lesson.open .lesson__toggle { transform: rotate(45deg); background: var(--red); color: #fff; }
.lesson__body { display: none; padding: 22px; }
.lesson.open .lesson__body { display: block; animation: drop .25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none;} }
.lesson__body p { margin-bottom: 14px; font-size: .98rem; }

.callout {
  border: 2px solid var(--ink);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: .93rem;
  position: relative;
}
.callout strong.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--chip);
  color: var(--on-chip);
  padding: 3px 10px;
  margin-bottom: 8px;
}
.callout--example { background: #e8f1ff; }
.callout--action { background: #e6fff5; }
.callout--example strong.tag { background: var(--blue); }
.callout--action strong.tag { background: var(--green); color: var(--on-accent); }
.callout--caveat { background: #ffe9e6; border-color: var(--ink); }
.callout--caveat strong.tag { background: var(--red); color: #fff; }
html.dark .callout--caveat { background: #2e1d1a; }

/* 🧠 HONESTY BOX — caveat + graveyard proof, after the action plan */
.truthbox { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }

/* 💀 GRAVEYARD PROOF CARD — premium autopsy ticket */
.gravecross {
  display: flex; align-items: center; gap: 14px;
  background:
    radial-gradient(420px 160px at 100% -20%, rgba(255,82,82,.18), transparent 60%),
    linear-gradient(135deg, #1c0a0a 0%, #2b1010 55%, #351414 100%);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 16px; text-decoration: none; color: #f2ead8;
  position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .12s;
}
.gravecross::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #ff5252 30%, #ff8a7a 55%, #ff5252 80%, transparent);
}
.gravecross:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.gravecross:active { transform: translate(1px,1px); box-shadow: 3px 3px 0 var(--ink); }

.gravecross__head { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.gravecross__em {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 24px; background: var(--red); border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 #000; transform: rotate(-3deg);
}
.gravecross__titles { min-width: 0; }
.gravecross__titles b {
  display: block; font-family: "Archivo Black", sans-serif; font-size: .95rem;
  letter-spacing: 1px; text-transform: uppercase; color: #ffd94d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gravecross__titles small {
  display: block; font-size: .72rem; font-weight: 600; color: #d8b9b9;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gravecross__mid {
  flex: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  max-width: 46%;
}
.gravecross__cat {
  font-family: "Space Grotesk", sans-serif; font-size: .58rem; font-weight: 800;
  letter-spacing: 2px; background: rgba(255,82,82,.15); color: #ff8a7a;
  border: 1.5px solid rgba(255,82,82,.5); border-radius: 5px; padding: 2px 7px;
}
.gravecross__loss {
  font-size: .68rem; font-weight: 800; color: #ffd94d; text-align: right;
  line-height: 1.35;
}
.gravecross__go {
  flex: none; font-family: "Archivo Black", sans-serif; font-size: .62rem; letter-spacing: 1px;
  background: linear-gradient(135deg, #ff5252, #d92b2b); color: #fff;
  border: 2.5px solid var(--ink); padding: 10px 12px; white-space: nowrap;
  box-shadow: 3px 3px 0 #000; transition: transform .1s, filter .1s;
}
.gravecross:hover .gravecross__go { transform: translate(-1px,-1px); filter: brightness(1.1); }

@media (max-width: 700px) {
  .gravecross { flex-wrap: wrap; gap: 10px; }
  .gravecross__head { flex: 1 1 100%; }
  .gravecross__mid { flex: 1 1 auto; align-items: flex-start; max-width: 100%; }
  .gravecross__loss { text-align: left; }
  .gravecross__go { width: 100%; text-align: center; }
}

/* QUOTES */
.quotes {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.quote {
  background: var(--pink);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  font-weight: 600;
  font-size: 1rem;
  transform: rotate(-1deg);
}
.quote:nth-child(2n) { background: var(--purple); transform: rotate(1deg); }
.quote:nth-child(3n) { background: var(--green); transform: rotate(-.5deg); }
.quote::before { content: '“'; font-family: var(--font-head); font-size: 2.4rem; display: block; line-height: .6; margin-bottom: 10px; }

/* ACTION PLAN */
.plan {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.plan__box {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}
.plan__box ol { list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 14px; }
.plan__box ol li {
  counter-increment: p;
  display: flex; gap: 14px; align-items: flex-start;
  font-weight: 500;
}
.plan__box ol li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--font-head);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 2px 10px;
  font-size: .85rem;
  flex-shrink: 0;
}

/* NAV between books */
.booknav {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.backbar { max-width: 1100px; margin: 26px auto 0; padding: 0 clamp(16px,4vw,48px); }

/* ============================================================
   COMMUNITY STORIES
   ============================================================ */
.storyform {
  max-width: 900px;
  margin: 40px auto 70px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.storyform__box {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: var(--border);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: box-shadow .15s;
}
.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus { box-shadow: 4px 4px 0 var(--ink); }
.field textarea { min-height: 220px; resize: vertical; }
.field__hint { font-size: .75rem; font-weight: 600; color: #777; margin-top: 6px; }

.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .fieldrow { grid-template-columns: 1fr; } }

/* file drop */
.drop {
  border: 3px dashed var(--ink);
  background: var(--bg);
  padding: 22px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .15s;
}
.drop:hover { background: var(--yellow); }
.drop.has-file { background: var(--green); border-style: solid; }
.drop input { display: none; }
.drop__preview { max-width: 120px; border: var(--border); margin: 12px auto 0; display: block; }

/* story cards */
/* 📚 library stories on the community shelf — same card language as a reader
   post, different chrome: no like button, no follow, clearly the library */
.cm-card__kind--lib {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--ink); color: var(--yellow); border: 2px solid var(--ink);
  border-radius: 999px; padding: 3px 9px;
  font: 800 9.5px/1.4 "Archivo Black", system-ui, sans-serif; letter-spacing: .7px;
}
.cm-ava--lib {
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); font-size: .9rem;
}
.cm-cmts--lib {
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink);
  padding: 6px 12px; font: 800 10.5px "Space Grotesk", system-ui, sans-serif;
  text-decoration: none; letter-spacing: .3px; box-shadow: 2px 2px 0 var(--ink);
}
/* the hook — the question that makes a stranger think "that's me" */
.cm-card__hook {
  margin: 4px 0 0; font-family: var(--font-body); font-weight: 600;
  font-size: .86rem; line-height: 1.55; color: #6b6355;
}
html.dark .cm-card__hook { color: #b7ae9c; }
.cm-reel--lib .cm-reel__t { font-size: 1.28rem; line-height: 1.3; }
.cm-reel--lib .cm-reel__s { font-weight: 700; opacity: .95; }
/* a library cover is a 4:5 quote card, not a 16:9 photo band — cropping it to
   the reader-post shape cut the quote in half. Library cards show the card whole. */
.cm-card--lib .cm-card__cover { aspect-ratio: 4 / 5; }
.cm-card--lib .cm-card__cover img { object-fit: contain; background: #f4efe4; }
@media (max-width: 560px) { .cm-card--lib .cm-card__cover { aspect-ratio: 1 / 1; } }
.cm-libchip {
  background: var(--ink); color: var(--yellow); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 10px; margin-left: auto;
  font: 800 9.5px/1.4 "Archivo Black", system-ui, sans-serif; letter-spacing: .6px; white-space: nowrap;
}
html.dark .cm-libchip { background: var(--yellow); color: #14110c; }
/* the library's own burst — same frame, different furniture (no like button) */
.cm-reel--lib .cm-reel__q { font-size: 2.4rem; }
.cm-reel__who--lib { cursor: default; }
.cm-reel__metaline {
  font: 800 11px "Space Grotesk", system-ui, sans-serif; letter-spacing: .4px;
  color: #ffe9a8; opacity: .95;
}
.cm-more {
  text-align: center; font: 700 11px "Space Grotesk", system-ui, sans-serif;
  color: var(--muted, #6b6459); padding: 10px 14px 22px; opacity: .85;
}
html.dark .cm-cmts--lib { background: var(--yellow); color: #14110c; }

.storycard__cover {
  width: 140px; height: 190px;
  object-fit: cover;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
  transition: transform .2s;
  background: #fff;
}
.card:hover .storycard__cover { transform: rotate(3deg) scale(1.06); }
.storycard__badge {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--pink);
  border: 2px solid var(--ink);
  font-weight: 700; font-size: .62rem;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 8px;
  transform: rotate(2deg);
}

/* story reader */
.reader {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.reader__box {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
}
.reader__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-bottom: 2px dashed var(--ink);
  padding-bottom: 18px; margin-bottom: 22px;
}
.reader__cover { width: 90px; border: var(--border); box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
.reader__title { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.reader__by { font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #777; margin-top: 6px; }
.reader__text { font-size: 1.05rem; white-space: pre-wrap; }
.reader__text::first-letter { font-family: var(--font-head); font-size: 3.2rem; float: left; line-height: .85; padding: 4px 10px 0 0; }
.reader embed, .reader iframe { width: 100%; height: 75vh; border: var(--border); }

/* toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--chip); color: var(--yellow);
  font-family: var(--font-head);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 26px;
  z-index: 200;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* credits */
.credits {
  display: inline-block;
  margin-top: 16px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--paper);
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  transform: rotate(-1deg);
}

/* ============================================================
   MOTION & DECORATION LAYER
   ============================================================ */

/* floating decorative shapes (hero) */
.deco { position: absolute; border: 3px solid var(--ink); pointer-events: none; z-index: 0; }
.deco--sq { width: 34px; height: 34px; background: var(--yellow); animation: spinFloat 9s linear infinite; }
.deco--circ { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); animation: bob 5s ease-in-out infinite; }
.deco--tri {
  width: 0; height: 0; border: none;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-bottom: 32px solid var(--blue);
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: bob 6s ease-in-out infinite reverse;
}
.deco--star { font-size: 2rem; border: none; animation: spinFloat 12s linear infinite reverse; }
@keyframes spinFloat {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-14px); }
  100% { transform: rotate(360deg) translateY(0); }
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
.hero { overflow: hidden; }
.hero > *:not(.deco) { position: relative; z-index: 1; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); }
.reveal.in { opacity: 1; transform: none; }

/* card entrance */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}
.card { animation: cardIn .45s ease backwards; }

/* gentle cover float on the detail page */
.bookhero__coverbox { animation: coverFloat 6s ease-in-out infinite; }
@keyframes coverFloat {
  0%,100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}

/* stat pulse */
.stat__num { display: inline-block; }
.stat:hover .stat__num { animation: statPop .35s ease; }
@keyframes statPop { 50% { transform: scale(1.18) rotate(-3deg); } }

/* logo wiggle every few seconds */
.logo__mark { animation: wiggle 7s ease-in-out infinite; }
@keyframes wiggle {
  0%, 88%, 100% { transform: rotate(-6deg); }
  90% { transform: rotate(8deg) scale(1.08); }
  94% { transform: rotate(-10deg); }
  97% { transform: rotate(4deg); }
}

/* chip hover shake */
.chip:hover { animation: chipShake .3s ease; }
@keyframes chipShake { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* section head slide-in accent */
.section-head h2 { transition: transform .2s; }
.section-head:hover h2 { transform: rotate(1deg) scale(1.02); }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   MOBILE PERFECTION PASS
   ============================================================ */
@media (max-width: 900px) {
  .bookhero { grid-template-columns: 220px 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .bookhero { grid-template-columns: 1fr; }
  .bookhero__coverbox { max-width: 220px; margin: 0 auto; position: static; }
  .nav__links .btn { padding: 8px 12px; font-size: .72rem; }
}

@media (max-width: 560px) {
  /* nav: logo row + full-width button row; chip floats top-right of logo row */
  .nav { padding: 10px 12px; position: relative; }
  .logo { font-size: 1.05rem; gap: 8px; padding-right: 74px; }
  .logo__mark { width: 36px; height: 36px; font-size: 1rem; }
  .nav__links { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
  .nav__links .btn { justify-content: center; text-align: center; padding: 9px 6px; font-size: .68rem; box-shadow: 3px 3px 0 var(--ink); }
  .nav__auth { position: absolute; top: 10px; right: 12px; margin-left: 0; }
  .tsb-navchip { font-size: 11px; padding: 6px 10px; box-shadow: 2.5px 2.5px 0 var(--green); }

  /* hero */
  .hero { padding: 32px 14px 24px; }
  .hero__badge { font-size: .65rem; padding: 6px 12px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .hero h1 .hl { padding: 0 8px; box-shadow: 3px 3px 0 var(--ink); }
  .hero__sub { font-size: .95rem; }

  /* search */
  .searchwrap { padding: 0 4px; }
  .search input { padding: 14px 14px; font-size: .9rem; }
  .search button { padding: 0 16px; font-size: .75rem; }

  /* stats: 2x2 grid */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; margin-top: 28px; }
  .stat { padding: 12px 8px; }

  /* filters & grid */
  .filters { gap: 8px; padding: 26px 14px 4px; }
  .chip { font-size: .7rem; padding: 7px 12px; }
  .grid { grid-template-columns: 1fr; gap: 20px; padding: 0 14px; margin: 26px auto 50px; }
  .card__top { min-height: 200px; padding: 18px; }
  .card__cover { width: 120px; }
  .card__body { padding: 16px; }
  .card__title { font-size: 1.05rem; }

  /* section heads */
  .section-head { gap: 10px; padding: 0 14px; }
  .section-head h2 { font-size: 1.05rem; padding: 7px 14px; }

  /* how it works */
  .how { padding: 0 14px; gap: 26px; margin-bottom: 60px; }
  .how__step { padding: 20px 16px; }
  .how__num { font-size: 1.7rem; top: -18px; }

  /* book detail */
  .bookhero { margin-top: 30px; padding: 0 14px; gap: 20px; }
  .bookhero h1 { font-size: 1.6rem; }
  .bookhero__oneliner { font-size: .98rem; padding: 13px 15px; }
  .bigidea { padding: 0 14px; margin-top: 38px; }
  .bigidea__box { padding: 20px 16px; }
  .bigidea__box p { font-size: .98rem; }
  .bigidea__label { font-size: .7rem; padding: 5px 12px; top: -14px; left: 14px; }

  /* lessons: tighter head, smaller num */
  .lessons { padding: 0 14px; gap: 18px; margin: 36px auto; }
  .lesson__head { gap: 10px; padding: 14px; }
  .lesson__num { min-width: 36px; height: 36px; font-size: .85rem; }
  .lesson__title { font-size: .88rem; }
  .lesson__chapter { font-size: .62rem; }
  .lesson__toggle { width: 32px; height: 32px; font-size: 1.1rem; }
  .lesson__body { padding: 16px 14px; }
  .lesson__body p, .callout { font-size: .92rem; }

  .quotes { padding: 0 14px; gap: 14px; }
  .quote { padding: 18px; font-size: .95rem; }
  .plan { padding: 0 14px; margin-bottom: 50px; }
  .plan__box { padding: 20px 16px; }
  .plan__box ol li { font-size: .93rem; gap: 10px; }
  .booknav { padding: 0 14px; margin-bottom: 50px; }
  .booknav .btn { flex: 1; justify-content: center; font-size: .72rem; }
  .backbar { padding: 0 14px; }

  /* stories */
  .storyform { padding: 0 14px; }
  .storyform__box { padding: 18px 14px; gap: 14px; }
  .field input[type="text"], .field select, .field textarea { padding: 12px; font-size: .92rem; }
  .field textarea { min-height: 160px; }
  .drop { padding: 16px 10px; font-size: .72rem; }
  .reader { padding: 0 14px; margin: 24px auto 50px; }
  .reader__box { padding: 20px 16px; }
  .reader__cover { width: 70px; }
  .reader__title { font-size: 1.15rem; }
  .reader__text { font-size: .97rem; }
  .reader embed, .reader iframe { height: 60vh; }

  /* footer */
  .footer { padding: 26px 16px; }
  .footer p { font-size: .8rem; }

  /* decorations: smaller, fewer on mobile */
  .deco--sq { width: 22px; height: 22px; }
  .deco--circ { width: 18px; height: 18px; }
  .deco--star { font-size: 1.3rem; }
}

/* very small phones */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.55rem; }
  .nav__links { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* touch devices: replace hover-lift with tap feedback */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow); }
  .card:active { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }
  .btn:hover { transform: none; box-shadow: var(--shadow-sm); }
  .lesson:hover { transform: none; box-shadow: var(--shadow); }
}

/* ============================================================
   DARK MODE
   ============================================================ */
html.dark {
  --bg: #16130e;
  --paper: #241f17;
  --ink: #f2ead8;
  --red-ink: #ff6b6b;   /* 5.9:1 on #241f17 */
  --yellow: #ffc800;
  --red: #ff5252;
  --blue: #5d88ff;
  --green: #00d99b;
  --pink: #ff90e8;
  --purple: #b28dff;
  --orange: #ff9552;

  /* v250: surfaces + text that must NOT follow the --ink/--paper swap */
  --on-accent: #100e09;   /* stays dark on bright accents              */
  --chip: #0b0906;        /* stays near-black so --yellow text pops    */
  --on-chip: #f2ead8;
  --muted: #b7b0a5;       /* 8.6:1 on --paper(#241f17)                 */
  --muted-2: #9a917d;     /* 6.1:1 on --paper                          */
  --surface: #241f17;
  --surface-2: #1b1712;
  --line: #000000;
}
html.dark body {
  background-image: radial-gradient(rgba(242,234,216,.06) 1.5px, transparent 1.5px);
}
html.dark .card__author,
html.dark .search__hint,
html.dark .stat__label,
html.dark .lesson__chapter,
html.dark .bookhero__author,
html.dark .field__hint,
html.dark .reader__by { color: #9a917d; }
html.dark .search input::placeholder { color: #8a8170; }
html.dark .callout--example { background: #1c2637; }
html.dark .callout--action { background: #14322a; }
html.dark .quote, html.dark .quote:nth-child(2n), html.dark .quote:nth-child(3n) { color: #111; }
/* v250: ink text needs the pink tile behind it — dark paper made this 1.1:1 */
html.dark .storyform__box[style*="--pink"] { color: #14110c; background: var(--pink); }
html.dark .hero__sub strong { color: #111; }
html.dark .card__lessons { color: #111; }
html.dark .badge--yellow, html.dark .badge--green, html.dark .badge--pink { color: #111; }
html.dark .bigidea__box { color: #111; }
html.dark .bigidea__box p { color: #111; }
html.dark .plan__box ol li::before { color: #111; }
html.dark .lesson__num { color: var(--yellow); }
html.dark .stat--yellow, html.dark .stat--green { color: #111; }
html.dark .stat--yellow .stat__label, html.dark .stat--green .stat__label { color: #333; }
html.dark .chip.active { color: var(--yellow); }
html.dark .deco--sq, html.dark .deco--circ { border-color: var(--ink); }

/* ============================================================
   NEW FEATURE COMPONENTS
   ============================================================ */

/* --- bookmark heart on cards --- */
.card__fav {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  z-index: 3;
  transition: transform .15s;
}
.card__fav:hover { transform: scale(1.15) rotate(-6deg); }
.card__fav.on { background: var(--red); }

/* --- progress bar on cards --- */
.card__progress {
  height: 8px;
  background: var(--bg);
  border-top: 2px solid var(--ink);
  position: relative;
}
.card__progress span {
  display: block; height: 100%;
  background: var(--green);
  transition: width .4s ease;
}
.card__progress em {
  position: absolute; right: 6px; top: -22px;
  font-style: normal; font-size: .62rem; font-weight: 700;
  letter-spacing: 1px; color: var(--on-accent);
  background: var(--green); border: 2px solid var(--ink);
  padding: 1px 6px;
}

/* --- toolbar row (sort etc) --- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px) 0;
}
.toolbar select {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--paper); color: var(--ink);
  border: var(--border); box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 12px; cursor: pointer; outline: none;
}

/* --- continue reading banner --- */
.continue {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.continue__box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--blue); color: #fff;
  border: var(--border); box-shadow: var(--shadow-sm);
  padding: 14px 20px;
  transform: rotate(-.4deg);
}
.continue__box .head { font-size: .95rem; }
.continue__box .btn { margin-left: auto; }

/* --- lesson of the day --- */
.lod {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.lod__box {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 18px; align-items: center;
  background: var(--paper);
  border: var(--border); box-shadow: var(--shadow);
  padding: 18px 22px;
  position: relative;
}
.lod__label {
  position: absolute; top: -16px; left: 18px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: .72rem;
  letter-spacing: 2px; text-transform: uppercase;
  border: 2px solid var(--ink); padding: 4px 12px;
  transform: rotate(-2deg);
}
.lod__box img { width: 90px; border: var(--border); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.lod__title { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; line-height: 1.2; }
.lod__meta { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #888; margin-top: 4px; }
@media (max-width: 640px) {
  .lod__box { grid-template-columns: 64px 1fr; }
  .lod__box img { width: 64px; }
  .lod__box .btn { grid-column: 1/-1; justify-content: center; }
}

/* --- gamification strip --- */
.gamebar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 26px auto 0; padding: 0 16px;
}
.gamebar__chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: .75rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer;
  transition: transform .12s;
}
.gamebar__chip:hover { transform: translate(-2px,-2px); }
.gamebar__chip b { font-family: var(--font-head); }

/* --- achievements modal + popup --- */
.achvpop {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; gap: 14px; align-items: center;
  background: var(--chip); color: var(--on-chip);
  border: 3px solid var(--yellow);
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  padding: 14px 20px;
  z-index: 400;
  max-width: 320px;
  transform: translateX(420px);
  transition: transform .4s cubic-bezier(.2,1.3,.4,1);
}
.achvpop.show { transform: none; }
.achvpop__icon { font-size: 2rem; }
.achvpop__title { font-size: .6rem; font-weight: 700; letter-spacing: 2px; color: var(--yellow); }
.achvpop__name { font-family: var(--font-head); font-size: .95rem; text-transform: uppercase; }
.achvpop__desc { font-size: .75rem; opacity: .8; }

.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  padding: 18px;
}
.modal.open { display: flex; }
.modal__box {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow-lg);
  max-width: 560px; width: 100%; max-height: 86vh; overflow: auto;
  padding: 26px;
  position: relative;
}
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-head); font-size: 1rem;
  cursor: pointer;
}
.modal__title { font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; margin-bottom: 16px; }

.achvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.achvcard {
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 12px; text-align: center;
  background: var(--yellow); color: #111;
}
.achvcard.locked { background: var(--bg); color: var(--ink); opacity: .45; filter: grayscale(1); }
.achvcard .i { font-size: 1.8rem; }
.achvcard .n { font-family: var(--font-head); font-size: .72rem; text-transform: uppercase; margin-top: 6px; }
.achvcard .d { font-size: .65rem; font-weight: 600; margin-top: 3px; }

.levelbar { margin: 18px 0 6px; }
.levelbar__label { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.levelbar__track { height: 16px; border: 2px solid var(--ink); background: var(--bg); }
.levelbar__fill { height: 100%; background: var(--green); transition: width .5s; }

/* --- book page action bar --- */
.actionbar {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 clamp(16px,4vw,48px);
  display: flex; flex-wrap: wrap; gap: 10px;
}
/* colorful free-flowing action buttons — no box, each its own bold color */
.abtn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 3px solid var(--ink, #111);
  box-shadow: 3px 3px 0 var(--ink, #111);
  padding: 9px 14px 9px 10px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800;
  font-size: .7rem; text-transform: uppercase; letter-spacing: 1.1px;
  color: #111; background: var(--paper);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  text-decoration: none; line-height: 1;
}
.abtn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink, #111); }
.abtn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink, #111); }
.abtn__ico { font-size: 15px; line-height: 1; }
.abtn__lbl { white-space: nowrap; }
/* every button gets its own loud color — eye-catching, never colorless */
.abtn--save { background: #fff; }
.abtn--save.on { background: var(--red, #ff4d4d); color: #fff; border-color: var(--ink); }
.abtn--card { background: var(--yellow, #ffc800); }
.abtn--link { background: #fff; }
.abtn--link .abtn__ico { color: #1a3fae; }
.abtn--pod { background: var(--ink, #111); color: var(--paper, #fffdf5); }
.abtn--pod .abtn__ico { filter: none; }
.abtn--expand { background: var(--paper); }
.abtn--font { background: var(--paper); }
html.dark .abtn--pod { background: #000; color: #f2ead8; }
html.dark .abtn--link { background: #1b1712; color: #f2ead8; }
html.dark .abtn--expand, html.dark .abtn--font { background: #1b1712; color: #f2ead8; }
html.dark .abtn { border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .abtn:hover { box-shadow: 5px 5px 0 #000; }
@media (max-width: 640px) {
  .actionbar { gap: 8px; padding: 0 12px; }
  .abtn { padding: 8px 11px 8px 9px; font-size: .64rem; letter-spacing: .8px; gap: 6px; }
}


/* --- lesson extras --- */
.lesson__tools { display: flex; gap: 8px; margin-top: 14px; }
.minibtn {
  font-family: var(--font-body); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 6px 10px; cursor: pointer;
  transition: transform .12s;
}
.minibtn:hover { transform: translate(-1px,-1px); }
.minibtn.active { background: var(--green); color: #111; }

/* --- checkable action plan --- */
.plan__box ol li.checkable { cursor: pointer; user-select: none; }
.plan__box ol li.checkable:hover { opacity: .85; }
.plan__box ol li.done { text-decoration: line-through; opacity: .55; }
.plan__box ol li.done::before { background: var(--green); content: "✓"; }

/* --- related books --- */
.related {
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0 clamp(16px,4vw,48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 18px;
}
.related a {
  display: flex; gap: 12px; align-items: center;
  background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm);
  padding: 12px; text-decoration: none; color: var(--ink);
  transition: transform .15s;
}
.related a:hover { transform: translate(-3px,-3px); }
.related img { width: 52px; border: 2px solid var(--ink); }
.related .t { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; line-height: 1.2; }
.related .a { font-size: .65rem; font-weight: 700; letter-spacing: 1px; color: #888; text-transform: uppercase; margin-top: 3px; }

/* --- quote card share button --- */
.quote { position: relative; }
.quote__share {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer; font-size: .9rem;
  display: grid; place-items: center;
  transition: transform .12s;
}
.quote__share:hover { transform: scale(1.12); }

/* --- flashcard quiz --- */
.quiz__card {
  border: var(--border); box-shadow: var(--shadow-sm);
  background: var(--yellow); color: #111;
  padding: 26px; margin: 14px 0; min-height: 170px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  text-align: center;
}
.quiz__q { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; line-height: 1.25; }
.quiz__a { font-size: .92rem; font-weight: 500; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 14px; text-align: left; }
.quiz__nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quiz__count { text-align: center; font-weight: 700; font-size: .75rem; letter-spacing: 2px; }

/* --- reading font sizes --- */
.fontsize-1 .lesson__body p, .fontsize-1 .callout, .fontsize-1 .bigidea__box p { font-size: 1.08rem; }
.fontsize-2 .lesson__body p, .fontsize-2 .callout, .fontsize-2 .bigidea__box p { font-size: 1.2rem; }

/* --- skeleton loader --- */
.skel {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm);
  height: 320px; position: relative; overflow: hidden;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(128,128,128,.15), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* --- listening state --- */
.minibtn.speaking { background: var(--red); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

/* ============================================================
   DARK MODE — CONTRAST FIXES
   Any element sitting on a bright background must use dark text.
   ============================================================ */
html.dark .hl { color: #111; }
html.dark .hl--red { color: #fff; }
html.dark .btn--yellow { color: #111; }
html.dark .search button { color: #111; }
html.dark .search button:hover { color: #fff; }
html.dark .lesson__toggle { color: #111; }
html.dark .lesson.open .lesson__toggle { color: #fff; }
html.dark .drop:hover { color: #111; }
html.dark .drop.has-file { color: #111; }
html.dark .storycard__badge { color: #111; }
html.dark .card__progress em { color: #111; }
html.dark .callout--action strong.tag { color: #111; }
html.dark .minibtn.active { color: #111; }
/* v250: unlocked badges are a yellow tile with ink text in BOTH themes */
html.dark .achvcard:not(.locked) { color: #14110c; background: var(--yellow); }
html.dark .achvcard.locked { background: var(--paper); }
html.dark .how__step:nth-child(3) .how__num { color: #111; }
html.dark .lod__meta { color: #9a917d; }
html.dark .related .a { color: #9a917d; }
html.dark .empty { color: var(--ink); }
html.dark .toolbar select { background: var(--paper); color: var(--ink); }
html.dark .quote__share { background: var(--paper); color: var(--ink); }
html.dark .plan__box ol li.done::before { color: #111; }
html.dark .continue__box { color: #fff; }
html.dark .continue__box .btn--yellow { color: #111; }
html.dark ::selection { background: var(--yellow); color: #111; }

/* ============================================================
   DARK MODE — FULL CONTRAST AUDIT (v2)
   In dark mode --ink becomes LIGHT, so anything that used
   "ink background + yellow/light text" turned invisible.
   All such components now get a true-dark background instead.
   ============================================================ */
html.dark .ticker { background: #000; color: var(--ink); }
html.dark .ticker__track em { color: var(--yellow); }
html.dark .hero__badge { background: #000; color: var(--yellow); }
html.dark .toast { background: #000; color: var(--yellow); border-color: var(--yellow); }
html.dark .achvpop { background: #000; color: var(--ink); }
html.dark .lesson__num { background: #000; color: var(--yellow); border-color: var(--ink); }
html.dark .chip.active { background: var(--yellow); color: #111; }
html.dark .card__cat { background: #000; color: var(--ink); }
html.dark .bigidea__label { background: #000; color: var(--ink); }
html.dark .callout strong.tag { background: #000; color: var(--ink); }
html.dark .callout--example strong.tag { background: var(--blue); color: #fff; }
html.dark .callout--action strong.tag { background: var(--green); color: #111; }
html.dark .footer { background: #000; color: var(--ink); }
html.dark .footer .head { color: var(--yellow); }
html.dark .footer p { opacity: .9; }
html.dark .credits { background: var(--yellow); color: #111; border-color: #000; box-shadow: 3px 3px 0 #555; }
html.dark .search button:hover { background: var(--red); color: #fff; }
html.dark .lod__label { color: #fff; }
html.dark .how__num { color: #fff; }
html.dark .how__step:nth-child(3) .how__num { color: #111; }
html.dark .booknav .btn--blue, html.dark .booknav .btn--red { color: #fff; }
html.dark .quote::before { color: #111; }
html.dark .quote__share { background: var(--paper); color: var(--ink); border-color: #000; }
html.dark .card__title, html.dark .card__tag { color: var(--ink); }
html.dark .modal__title, html.dark .modal__box { color: var(--ink); }
html.dark .achvcard.locked { color: var(--ink); opacity: .5; }
html.dark .field label { color: var(--ink); }
html.dark .reader__title, html.dark .reader__text { color: var(--ink); }
html.dark .storyform__box .modal__title { color: var(--ink); }
html.dark #submitModal ol, html.dark #submitModal p { color: var(--ink); }
html.dark .levelbar__label { color: var(--ink); }

/* ============================================================
   SUPPORT / DONATE + GITHUB STAR
   ============================================================ */
.supportbar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 18px auto 0; padding: 0 14px;
}
.btn--support { background: var(--green); }
.btn--star { background: var(--paper); }
html.dark .btn--support { color: #111; }

.support__perks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.perk {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  background: var(--bg); padding: 10px 14px;
  font-weight: 600; font-size: .88rem;
}
.perk b { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; display: block; }
.perk span.i { font-size: 1.4rem; flex-shrink: 0; }

.upibox {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--yellow); color: #111;
  border: var(--border); box-shadow: var(--shadow-sm);
  padding: 12px 16px; margin: 14px 0;
  font-weight: 700;
}
.upibox code {
  font-family: var(--font-body); font-weight: 700;
  background: var(--paper); color: var(--ink);
  border: 2px solid #111; padding: 4px 10px;
  font-size: .95rem; word-break: break-all;
}
html.dark .upibox { color: #111; }
html.dark .upibox code { background: #111; color: var(--yellow); border-color: #111; }

.support__note { font-size: .72rem; font-weight: 600; opacity: .75; margin-top: 10px; }

@media (max-width: 560px) {
  .supportbar .btn { flex: 1; justify-content: center; font-size: .7rem; padding: 9px 8px; }
  .perk { font-size: .8rem; }
  .upibox { font-size: .8rem; }
  .upibox code { font-size: .82rem; }
}

/* ============================================================
   UNIVERSAL LANGUAGE PICKER 🌐
   ============================================================ */
.modal__box--wide { max-width: 720px; }
.langsection {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; margin: 18px 0 10px;
  border-bottom: 3px solid var(--ink); padding-bottom: 6px;
}
.langgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.langcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 12px; cursor: pointer; text-align: left;
  font-family: var(--font-body);
  transition: transform .12s;
}
.langcard:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.langcard.active { background: var(--yellow); color: #111; }
.langcard--special { background: var(--pink); color: #111; }
.langcard--special.active { background: var(--green); }
.langcard__flag { font-size: 1.3rem; }
.langcard__name { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.langcard__native { font-size: .68rem; font-weight: 600; opacity: .75; }
.langcard__badge {
  font-style: normal; font-size: .55rem; font-weight: 800;
  background: #111; color: var(--yellow);
  padding: 1px 6px; letter-spacing: 1px; vertical-align: middle;
}
html.dark .langcard--special { color: #111; }
html.dark .langcard.active { color: #111; }

/* hide google translate's default UI clutter */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
font[style*="background-color"], font[style*="box-shadow"] { background: none !important; box-shadow: none !important; }

@media (max-width: 560px) {
  .langgrid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 8px; }
  .langcard { padding: 8px 10px; }
  .langcard__native { font-size: .6rem; }
}

/* ============================================================
   NAV POLISH v2 — compact icon buttons, clean at any width
   ============================================================ */
.btn--icon {
  padding: 10px 12px;
  min-width: 44px;
  justify-content: center;
  flex: 0 0 auto;
}
/* language button may show a label (e.g. "🌐 Hindi") — keep it tidy */
[data-lang-btn] { white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* desktop: keep everything on one balanced row */
.nav__links { align-items: center; }

/* tablets */
@media (max-width: 860px) {
  .nav__links { gap: 8px; }
  .nav__links .btn { font-size: .7rem; padding: 9px 10px; }
  .nav__links .btn--icon { min-width: 40px; padding: 9px 8px; }
}

/* phones: single tidy row — text buttons share space, icons stay square */
@media (max-width: 560px) {
  .nav__links {
    display: flex !important;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
  }
  .nav__links .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 4px;
    font-size: .64rem;
    letter-spacing: .5px;
    box-shadow: 3px 3px 0 var(--ink);
    min-width: 0;
  }
  .nav__links .btn--icon {
    flex: 0 0 42px;
    font-size: .9rem;
    padding: 10px 0;
  }
  [data-lang-btn] { max-width: 42px; }
  /* hide the language label on phones — icon only, stays square */
}

/* very small phones */
@media (max-width: 360px) {
  .nav__links { gap: 5px; }
  .nav__links .btn { font-size: .58rem; padding: 9px 2px; }
  .nav__links .btn--icon { flex: 0 0 38px; }
}

/* ============================================================
   DARK MODE — CONTRAST SWEEP v3 (category pills & label chips)
   Rule: every label pill gets an EXPLICIT bg + text pair in dark.
   ============================================================ */
/* the big one: book page category pill (was yellow-on-cream) */
html.dark .bookhero__cat { background: #000; color: var(--yellow); }

/* card category pill: pure black bg + bright cream text, always readable */
html.dark .card__cat { background: #000; color: #f2ead8; }

/* card read-time pill */
html.dark .card__time { background: #000; color: #f2ead8; border-color: var(--ink); }

/* lesson chapter + card author: brighter grey for dark bg */
html.dark .lesson__chapter,
html.dark .card__author,
html.dark .bookhero__author,
html.dark .lod__meta,
html.dark .related .a,
html.dark .search__hint,
html.dark .stat__label,
html.dark .field__hint,
html.dark .reader__by { color: #b3a98f; }

/* stat labels on colored stat tiles need their own values */
html.dark .stat--red .stat__label { color: #2a0503; }   /* 5.9:1 — #ffd9d9 was 2.5:1 */
html.dark .stat--blue .stat__label { color: #08122e; }   /* 5.2:1 — #d6e2ff was 2.5:1 */
html.dark .stat--yellow .stat__label, html.dark .stat--green .stat__label { color: #333; }

/* section heads & toolbar chips */
html.dark .section-head h2 { background: var(--paper); color: var(--ink); }
html.dark .chip { background: var(--paper); color: var(--ink); }
html.dark .toolbar select { border-color: var(--ink); }

/* how-it-works numbered tags */
html.dark .how__num { border-color: var(--ink); }

/* language section headers inside the modal */
html.dark .langsection { color: var(--ink); border-color: var(--ink); }
html.dark .langcard { background: #1b1712; color: var(--ink); }
html.dark .langcard__native { opacity: .85; }
html.dark .langcard.active { background: var(--yellow); color: #111; }
html.dark .langcard.active .langcard__native { color: #333; opacity: 1; }
html.dark .langcard--special { background: var(--pink); color: #111; }
html.dark .langcard--special .langcard__native { color: #333; opacity: 1; }
html.dark .langcard--special.active { background: var(--green); }

/* support modal perk tiles */
html.dark .perk { background: #1b1712; color: var(--ink); }

/* story reader emoji-cover fallback */
html.dark .reader__cover[style*="yellow"], html.dark .storycard__cover[style*="yellow"] { color: #111; }

/* google translate leftovers: keep text colors sane after translation */
html.dark font { color: inherit !important; }

/* language button label hides on phones (icon stays square) */
@media (max-width: 560px) {
  .langbtn__label { display: none; }
}

/* the ink button itself (dark-mode toggle) — black bg flips to light in dark mode */
html.dark .btn--ink { background: #000; color: #f2ead8; }

/* ============================================================
   💀 THE GRAVEYARD
   ============================================================ */
.ticker--grave { background: #1a0505; }
.ticker--grave .ticker__track em, .ticker--grave { color: #f2ead8; }
.hero__badge--grave { background: #1a0505; color: var(--red); }

.gravegrid {
  max-width: 1000px;
  margin: 34px auto 70px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.grave {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.grave::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gcat, #888), var(--gcat, #888) 60%, transparent 100%);
  z-index: 2;
}
.grave:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink), 0 0 26px rgba(0,0,0,.14); }
html.dark .grave { box-shadow: 5px 5px 0 #000; }
html.dark .grave:hover { box-shadow: 9px 9px 0 #000; }

.grave__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

/* the tombstone */
.grave__stone {
  flex-shrink: 0;
  width: 76px; height: 92px;
  background: linear-gradient(160deg, #8a93a5, #5a6270);
  border: 3px solid var(--ink);
  border-radius: 38px 38px 8px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.grave__rip { font-family: var(--font-head); font-size: .55rem; letter-spacing: 1px; color: #f2ead8; }
.grave__emoji { font-size: 1.5rem; line-height: 1; }
.grave__year { font-size: .58rem; font-weight: 800; color: #f2ead8; letter-spacing: .5px; }

.grave__titles { flex: 1; min-width: 0; }
.grave__name { font-family: var(--font-head); font-size: clamp(1rem, 2.4vw, 1.3rem); text-transform: uppercase; line-height: 1.15; }
.grave__epitaph { font-size: .85rem; font-weight: 600; color: #777; margin-top: 3px; }
html.dark .grave__epitaph { color: #b3a98f; }
.grave__loss {
  display: inline-block;
  margin-top: 8px;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px;
  transform: rotate(-1deg);
}
.grave__toggle {
  font-family: var(--font-head);
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow); color: #111;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.grave.open .grave__toggle { transform: rotate(45deg); background: var(--red); color: #fff; }

.grave__body { display: none; padding: 0 22px 22px; }
.grave.open .grave__body { display: block; animation: drop .25s ease; }

.grave__section { margin-top: 14px; border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.grave__section--mistake { background: #ffe9e9; }
.grave__section--lesson { background: #e6fff5; }
html.dark .grave__section { background: #1b1712; }
html.dark .grave__section--mistake { background: #2b1414; }
html.dark .grave__section--lesson { background: #10291f; }
.grave__section p { font-size: .95rem; margin-top: 8px; }

.grave__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .62rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px;
  background: var(--chip); color: var(--on-chip);
}
html.dark .grave__label { background: #000; color: #f2ead8; }
.grave__label--mistake { background: var(--red); color: #fff; }
.grave__label--lesson { background: var(--green); color: #111; }

.grave__book {
  display: block;
  margin-top: 14px;
  background: var(--yellow); color: #111;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 16px;
  font-weight: 700; font-size: .8rem;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s;
}
.grave__book:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
html.dark .grave__book { color: #111; }

/* homepage graveyard banner */
.gravebanner {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}
.gravebanner__box {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #1a0505;
  color: #f2ead8;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  transform: rotate(-.4deg);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.gravebanner__box:hover { transform: rotate(-.4deg) translate(-3px,-3px); box-shadow: 10px 10px 0 var(--ink); }
.gravebanner__skull { font-size: 3rem; flex-shrink: 0; animation: bob 4s ease-in-out infinite; }
.gravebanner__text { flex: 1; min-width: 220px; }
.gravebanner__title { font-family: var(--font-head); font-size: clamp(1.1rem, 3vw, 1.6rem); text-transform: uppercase; color: var(--red); }
.gravebanner__sub { font-size: .88rem; font-weight: 600; margin-top: 4px; opacity: .9; }
.gravebanner__cta {
  background: var(--red); color: #fff;
  border: 2px solid #f2ead8;
  box-shadow: 3px 3px 0 rgba(242,234,216,.4);
  font-family: var(--font-body); font-weight: 800;
  font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 20px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .grave__head { gap: 12px; padding: 13px 14px; }
  .grave__stone { width: 58px; height: 70px; }
  .grave__emoji { font-size: 1.15rem; }
  .grave__name { font-size: .92rem; }
  .grave__epitaph { font-size: .74rem; }
  .grave__body { padding: 0 14px 16px; }
  .grave__section p { font-size: .88rem; }
  .gravebanner__box { padding: 16px; gap: 12px; }
  .gravebanner__cta { width: 100%; text-align: center; }
}

/* grave share button */
.grave__share {
  display: block; width: 100%;
  margin-top: 10px;
  background: #1a0505; color: var(--red);
  border: 2px solid var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 16px;
  font-family: var(--font-body); font-weight: 800;
  font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.grave__share:hover { transform: translate(-2px,-2px); background: var(--red); color: #fff; }

/* ============================================================
   💀 GRAVEYARD TRANSITION — the descent
   ============================================================ */
.grave-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: #120404;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.grave-transition.on { opacity: 1; pointer-events: all; }
.grave-transition__skull {
  font-size: 5rem;
  animation: skullDrop .9s cubic-bezier(.3,1.6,.4,1) both;
}
.grave-transition__text {
  font-family: var(--font-head);
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: flickerIn 1s steps(8) both;
}
.grave-transition__sub {
  color: #b3a98f; font-weight: 700; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
}
@keyframes skullDrop {
  0% { transform: translateY(-160px) rotate(-20deg); opacity: 0; }
  60% { transform: translateY(12px) rotate(6deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes flickerIn {
  0% { opacity: 0; } 10% { opacity: 1; } 20% { opacity: .2; } 30% { opacity: 1; }
  45% { opacity: .4; } 60% { opacity: 1; } 75% { opacity: .6; } 100% { opacity: 1; }
}
/* graveyard page entrance: rise from the dirt */
.graveyard-page .hero--grave h1,
.graveyard-page .hero--grave .hero__badge,
.graveyard-page .hero--grave .hero__sub {
  animation: riseFromDirt .7s cubic-bezier(.2,.9,.3,1.1) both;
}
.graveyard-page .hero--grave .hero__sub { animation-delay: .15s; }
.graveyard-page .hero--grave h1 { animation-delay: .05s; }

@keyframes riseFromDirt {
  from { transform: translateY(46px); opacity: 0; filter: blur(3px); }
  to { transform: none; opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grave-transition, .grave-transition__skull, .grave-transition__text { animation: none !important; transition: none !important; }
}

/* ============================================================
   💀 GRAVEYARD v2 — juicy, clickable corpses
   ============================================================ */
.grave__head { cursor: pointer; user-select: none; position: relative; }

/* colored tombstone — category tint on the gradient */
.grave__stone {
  background: linear-gradient(160deg, var(--gcat, #8a93a5), #4a5058) !important;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s;
}
.grave__rip, .grave__year { color: #f2ead8 !important; }
html.dark .grave__rip, html.dark .grave__year { color: #f2ead8 !important; }
.grave:hover .grave__stone { transform: rotate(-3deg) translateY(-2px); }

/* meta row: loss + category pill + fresh */
.grave__meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 7px; }
.grave__cat {
  display: inline-block; font-family: var(--font-head); font-size: .52rem;
  letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px;
  background: var(--gcat, #888); color: var(--ink); border: 2px solid var(--ink);
}
html.dark .grave__cat { color: #111; border-color: #111; }
.grave__fresh {
  display: inline-block; font-family: var(--font-head); font-size: .52rem;
  letter-spacing: .5px; padding: 4px 8px; background: var(--red); color: #fff;
  border: 2px solid var(--ink); animation: freshGlow 2.4s ease-in-out infinite;
}
@keyframes freshGlow { 0%,100% { box-shadow: 0 0 0 rgba(255,77,77,0); } 50% { box-shadow: 0 0 12px rgba(255,77,77,.75); } }

/* DIG IT UP button replaces plain + */
.grave__dig {
  flex-shrink: 0; align-self: center;
  font-family: var(--font-head); font-size: .58rem; letter-spacing: .5px;
  padding: 10px 12px; background: var(--yellow); color: #111;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
html.dark .grave__dig { border-color: #000; box-shadow: 3px 3px 0 #000; }
.grave__dig::after { content: "⚰️ DIG IT UP"; }
.grave.open .grave__dig { background: var(--red); color: #fff; }
.grave.open .grave__dig::after { content: "🪦 BURY IT"; }
.grave__head:hover .grave__dig { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
html.dark .grave__head:hover .grave__dig { box-shadow: 5px 5px 0 #000; }

/* cause-of-death stamp inside autopsy */
.grave__cause {
  display: inline-block; font-family: var(--font-head); font-size: .62rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--red);
  border: 3px dashed var(--red); padding: 7px 12px; margin-top: 16px;
  transform: rotate(-1.5deg); background: transparent;
}

/* staggered rise */
.gravegrid .grave.reveal { transition-delay: calc(min(var(--i, 0), 8) * 45ms); }

@media (max-width: 560px) {
  .grave__dig { font-size: .5rem; padding: 8px 8px; }
  .grave__dig::after { content: "⚰️ DIG"; }
  .grave.open .grave__dig::after { content: "🪦 BURY"; }
  .grave__cat, .grave__fresh { font-size: .46rem; }
  .grave__cause { font-size: .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grave__stone, .grave__fresh { animation: none !important; transition: none !important; transform: none !important; }
}

/* ============================================================
   📖 AMAZON BUY BUTTONS (affiliate)
   ============================================================ */
.buybtn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 13px 20px;
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .5px;
  background: var(--yellow); color: #111; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.buybtn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.buybtn__amz { font-family: var(--font-body); font-weight: 700; font-size: .8rem; opacity: .75; }
html.dark .buybtn { border-color: #000; box-shadow: 5px 5px 0 #000; color: #111; }
html.dark .buybtn:hover { box-shadow: 7px 7px 0 #000; }

.buynudge {
  display: block; margin-top: 22px; padding: 16px 20px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: .95rem; color: var(--ink); text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.buynudge:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.buynudge span { color: #b26a00; font-weight: 800; text-decoration: underline; }
html.dark .buynudge { background: #1b1712; }
html.dark .buynudge span { color: var(--yellow); }

.affnote { font-size: .68rem; opacity: .55; margin-top: 10px; }

/* ============================================================
   🏆 BOOK-COMPLETE CELEBRATION + soft hero buy
   ============================================================ */
.buybtn--soft {
  background: var(--paper);
  font-size: .68rem;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.buybtn--soft:hover { background: var(--yellow); }
html.dark .buybtn--soft { background: #1b1712; color: #f2ead8; }
html.dark .buybtn--soft:hover { background: var(--yellow); color: #111; }

.celebmodal { text-align: center; max-width: 480px; }
.celebmodal__emoji { font-size: 4rem; animation: bob 2s ease-in-out infinite; }
.celebmodal h3 { font-family: var(--font-head); font-size: 1.6rem; margin-top: 6px; text-transform: uppercase; }
.celebmodal__sub { margin-top: 10px; font-size: .95rem; opacity: .9; }
.celebmodal__buy { margin: 20px auto 0; display: inline-flex; font-size: .8rem; }
.celebmodal__row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.confetti {
  position: fixed; top: -30px; z-index: 500; pointer-events: none;
  animation: confettiFall 2.6s linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .celebmodal__emoji { animation: none; }
}


/* ============================================================
   💀 GRAVEYARD v3 — sort modes, live data feed, top-burn medals
   ============================================================ */
.gravesort {
  max-width: var(--maxw); margin: 18px auto 0; padding: 0 20px;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;           /* centered — always, on every screen */
  align-items: center;
}
.gravesort__btn {
  font-family: var(--font-head); font-size: .68rem; letter-spacing: .5px;
  padding: 12px 20px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;              /* modern pill */
  min-height: 44px;                  /* comfortable touch target */
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.gravesort__btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.gravesort__btn.active { background: var(--red); color: #fff; }
html.dark .gravesort__btn { background: #1b1712; color: #f2ead8; border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .gravesort__btn.active { background: var(--red); color: #fff; }
/* mobile: clean 2×2 centered grid (buttons fill evenly, text centered) */
@media (max-width: 560px) {
  .gravesort { gap: 8px; }
  .gravesort__btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0; padding: 13px 8px; text-align: center;
    font-size: .62rem; letter-spacing: .3px;
  }
}

.gravefeed {
  max-width: var(--maxw); margin: 18px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gravefeed__cell {
  background: #120404; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
}
.gravefeed__cell::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,82,82,.08), transparent);
  animation: feedSweep 3.2s ease-in-out infinite;
}
@keyframes feedSweep { 0% { left: -60%; } 60%, 100% { left: 120%; } }
.gravefeed__label { font-family: var(--font-head); font-size: .48rem; letter-spacing: 1px; color: #b3a98f; }
.gravefeed__val { font-family: var(--font-head); font-size: clamp(.9rem, 2.4vw, 1.25rem); color: #f2ead8; }
.gravefeed__val--red { color: #ff5252; }
html.dark .gravefeed__cell { border-color: #000; box-shadow: 4px 4px 0 #000; }

.grave__medal {
  display: inline-block; font-family: var(--font-head); font-size: .52rem;
  letter-spacing: .5px; padding: 4px 8px; background: #ffd700; color: #111;
  border: 2px solid var(--ink);
}
html.dark .grave__medal { border-color: #111; }

@media (max-width: 700px) {
  .gravefeed { grid-template-columns: repeat(2, 1fr); }
  .gravesort__btn { font-size: .52rem; padding: 8px 10px; }
  .gravefeed__label { font-size: .44rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gravefeed__cell::after { animation: none; display: none; }
}

/* ============================================================
   📑 STICKY LESSON JUMP-NAV (book pages)
   ============================================================ */
.lessonnav__fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 250;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem;
  padding: 12px 16px; background: var(--yellow); color: #111;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; opacity: 0; transform: translateY(80px);
  transition: opacity .25s, transform .25s cubic-bezier(.2,.9,.3,1.2), background .15s;
}
.lessonnav__fab.show { opacity: 1; transform: none; }
.lessonnav__fab.open { background: var(--chip); color: var(--yellow); }
.lessonnav__count { font-size: .68rem; background: #111; color: var(--yellow); padding: 3px 7px; }
.lessonnav__fab.open .lessonnav__count { background: var(--yellow); color: #111; }
html.dark .lessonnav__fab { border-color: #000; box-shadow: 4px 4px 0 #000; }

.lessonnav__panel {
  position: fixed; right: 18px; bottom: 76px; z-index: 250;
  width: min(340px, calc(100vw - 36px));
  max-height: 60vh; overflow: auto;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: none;
}
.lessonnav__panel.open { display: block; animation: navPop .18s cubic-bezier(.2,.9,.3,1.3); }
@keyframes navPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.lessonnav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid rgba(17,17,17,.08);
  transition: background .12s;
}
.lessonnav__item:hover { background: var(--yellow); color: #111; }
.lessonnav__item:last-child { border-bottom: none; }
.lessonnav__num { font-family: var(--font-head); font-size: .7rem; flex-shrink: 0; width: 26px; }
.lessonnav__title { font-size: .82rem; font-weight: 600; line-height: 1.25; flex: 1; }
.lessonnav__check { font-family: var(--font-head); color: var(--green); flex-shrink: 0; }
.lessonnav__item--plan { background: #fff6d9; }
.lessonnav__item--plan:hover { background: var(--yellow); }
html.dark .lessonnav__panel { background: #1b1712; }
html.dark .lessonnav__item { color: #f2ead8; border-color: rgba(242,234,216,.1); }
html.dark .lessonnav__item:hover { color: #111; }
html.dark .lessonnav__item--plan { background: #2a2417; }
html.dark .lessonnav__item--plan:hover { background: var(--yellow); }

@media (max-width: 560px) {
  .lessonnav__fab { right: 12px; bottom: 12px; font-size: .7rem; padding: 10px 13px; }
  .lessonnav__panel { right: 12px; bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lessonnav__fab, .lessonnav__panel.open { animation: none !important; transition: opacity .1s !important; }
}

/* ============================================================
   🆕 NEW BADGE + 🔍 FOUND-INSIDE CHIP (home cards)
   ============================================================ */
/* gold bookmark-tab hanging from the card's top edge — premium, no overlap */
.card__new {
  position: absolute; top: -3px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-head); font-size: .55rem; letter-spacing: 1.5px;
  padding: 6px 14px 8px;
  background: linear-gradient(135deg, #ffd94d, var(--yellow) 55%, #e6b400);
  color: #111;
  border: 2px solid var(--ink); border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 0 var(--ink);
  overflow: hidden;
}
.card__new::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  animation: newShine 3s ease-in-out infinite;
}
@keyframes newShine { 0%, 55% { left: -80%; } 85%, 100% { left: 130%; } }
html.dark .card__new { border-color: #000; box-shadow: 0 3px 0 #000; }
@media (prefers-reduced-motion: reduce) { .card__new::after { animation: none; display: none; } }

.card__hit {
  margin-top: 8px; font-size: .72rem; font-weight: 700;
  padding: 7px 10px; background: #fff6d9; border: 2px dashed var(--ink);
  color: #5a4a00; line-height: 1.3;
}
.card__hit strong { color: #111; }
html.dark .card__hit { background: #2a2417; color: #d8c98a; }
html.dark .card__hit strong { color: #f2ead8; }

/* ============================================================
   📄 ABOUT PAGE
   ============================================================ */

/* ============================================================
   👋 ABOUT HERO — premium rounded intro (v2)
   ============================================================ */
.ahero { max-width: 960px; margin: 30px auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.ahero__inner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 220px at 88% -15%, rgba(255,200,0,.18), transparent 60%),
    linear-gradient(150deg, #14100a 0%, #1e160a 55%, #261c0b 100%);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 46px 26px 36px;
  text-align: center; color: #f2ead8;
}
.ahero__inner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #ffc800 25%, #ffe08a 50%, #ffc800 75%, transparent);
}
.ahero__blob {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none;
}
.ahero__blob--1 { width: 130px; height: 130px; background: rgba(255,200,0,.25); top: -50px; left: -30px; }
.ahero__blob--2 { width: 100px; height: 100px; background: rgba(255,82,82,.2); bottom: -35px; right: -20px; }
.ahero__mark {
  display: inline-grid; place-items: center;
  width: 74px; height: 74px; border-radius: 22px;
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  border: 4px solid #111; box-shadow: 5px 5px 0 #000;
  font-size: 36px; transform: rotate(-4deg);
  margin-bottom: 16px;
}
.ahero__badge {
  display: inline-block;
  font-family: "Archivo Black", sans-serif; font-size: 10px; letter-spacing: 2.5px;
  background: rgba(255,200,0,.12); color: #ffd94d;
  border: 2px solid rgba(255,200,0,.5); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 14px;
}
.ahero h1 {
  font-family: "Archivo Black", sans-serif; font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: 1px; line-height: 1.1; color: #f2ead8; margin: 0 0 10px;
}
.ahero__hl {
  background: linear-gradient(90deg, #ffd94d, #ffc800 60%, #f0b400);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ahero__sub { font-size: 1.02rem; font-weight: 500; color: #d8d0bd; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.ahero__sub strong { color: #ffc800; }
.ahero__chips {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.ahero__chips span {
  font-size: .62rem; font-weight: 800; letter-spacing: 1.5px;
  background: rgba(255,255,255,.05); color: #f2ead8;
  border: 2px solid rgba(255,200,0,.4); border-radius: 999px;
  padding: 6px 13px;
}
html.dark .ahero__inner { border-color: #000; box-shadow: 8px 8px 0 #000; }

/* intro block — rounded premium */
.about__block--intro {
  border-radius: 20px !important;
  padding: 26px 26px 22px !important;
  box-shadow: 6px 6px 0 var(--ink) !important;
}
@media (max-width: 560px) {
  .ahero__inner { padding: 34px 18px 28px; border-radius: 22px; }
}
.about { max-width: 820px; margin: 0 auto; padding: 20px 20px 60px; }
.about__block {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 28px 30px; margin-top: 28px;
}
.about__block--creator { border-left: 10px solid var(--yellow); }
.about__head {
  font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; margin-bottom: 12px;
  display: inline-block; background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 10px;
  padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-.6deg);
}
html.dark .about__head { box-shadow: 3px 3px 0 #000; }
.about__block--grave .about__head { background: #2b0e0e; color: #ff8a7a; box-shadow: 3px 3px 0 #000; }
.about__block--insta .about__head { background: #fff; }
.about__block p { font-size: 1rem; line-height: 1.65; margin-top: 10px; }
.about__block a:not(.btn) { color: inherit; font-weight: 700; }
.about__block--cta .btn--ink { color: #fffdf5 !important; }
html.dark .about__block--cta .btn--ink { color: #f2ead8 !important; }
.about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 20px; }
.about__rules { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 1rem; line-height: 1.6; }
.about__reach { background: #fff6d9; border: 2px dashed var(--ink); border-radius: 14px; padding: 16px 18px; margin-top: 16px !important; font-size: .95rem !important; }
html.dark .about__reach { background: #2a2417; }
.about__block--cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; background: transparent; border: none; box-shadow: none; }
.btn--big { font-size: .85rem; padding: 16px 22px; }
html.dark .about__block { background: #1b1712; }
.about__features { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.about__features li { font-size: .97rem; line-height: 1.55; padding: 10px 14px; background: var(--bg); border: 2px solid var(--ink); }
html.dark .about__features li { background: #171310; }

/* ============================================================
   📺 SHELVES VIEW (Netflix-style category rows)
   ============================================================ */
.grid--shelves { display: block !important; }
.shelfrow { margin-bottom: 34px; }
.shelfrow__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.shelfrow__title {
  font-family: var(--font-head); font-size: clamp(1rem, 2.6vw, 1.3rem);
  text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}
.shelfrow__count {
  font-size: .62rem; background: var(--chip); color: var(--yellow);
  padding: 4px 9px; letter-spacing: 1px;
}
.shelfrow__tools { display: flex; gap: 8px; align-items: center; }
.shelfrow__arrow {
  width: 38px; height: 38px; font-family: var(--font-head); font-size: .85rem;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.shelfrow__arrow:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow); }
.shelfrow__seeall {
  font-family: var(--font-head); font-size: .6rem; letter-spacing: .5px;
  padding: 10px 12px; background: var(--yellow); color: #111;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.shelfrow__seeall:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
html.dark .shelfrow__arrow { background: #1b1712; color: #f2ead8; border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .shelfrow__arrow:hover { background: var(--yellow); color: #111; }
html.dark .shelfrow__seeall { border-color: #000; box-shadow: 3px 3px 0 #000; }

.shelfrow__scroll {
  display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.shelfrow__scroll::-webkit-scrollbar { height: 8px; }
.shelfrow__scroll::-webkit-scrollbar-thumb { background: var(--chip); border-radius: 0; }
.card--shelf {
  flex: 0 0 250px; max-width: 250px; scroll-snap-align: start;
  animation: none;
}
@media (max-width: 560px) {
  .card--shelf { flex: 0 0 200px; max-width: 200px; }
  .shelfrow__arrow { display: none; } /* touch scroll on mobile */
  .shelfrow__scroll { gap: 12px; }
}

/* ============================================================
   📊 READING PROGRESS BAR (book pages)
   ============================================================ */
.readbar {
  position: fixed; top: 0; left: 0; right: 0; height: 5px;
  background: rgba(17,17,17,.12); z-index: 400;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.readbar.show { opacity: 1; }
.readbar__fill {
  display: block; height: 100%; width: 0%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255,200,0,.5);
  transition: width .1s linear;
}
html.dark .readbar { background: rgba(242,234,216,.12); }
.btn--green { background: var(--green); color: #111; }


   ============================================================ */
/* story teaser: first line, fading out like a torn page — the itch */
.grave__tease {
  margin-top: 10px; font-size: .88rem; font-style: italic; line-height: 1.45;
  color: var(--ink); opacity: .75; max-width: 640px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  transition: opacity .2s;
}
.grave:hover .grave__tease { opacity: 1; }
.grave.open .grave__tease, .grave.open .grave__seals { display: none; }
html.dark .grave__tease { color: #f2ead8; }

/* sealed-evidence chips: what's buried inside, stamped shut */
.grave__seals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grave__seal {
  font-family: var(--font-head); font-size: .58rem; letter-spacing: 1px;
  background: #f0ece2; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 12px;
}
.grave__seal::before {
  content: "🔒"; position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%); font-size: .62rem;
}
.grave:hover .grave__seal { color: var(--ink); border-color: var(--ink); }
.grave:hover .grave__seal--book { color: #b26a00; border-color: #b26a00; }
.grave:hover .grave__seal:nth-child(1) { transform: rotate(-1.2deg); }
.grave:hover .grave__seal:nth-child(3) { transform: rotate(1.2deg); }
html.dark .grave__seal { color: #6b6353; border-color: #4a4438; }
html.dark .grave:hover .grave__seal { color: #f2ead8; border-color: #f2ead8; }
html.dark .grave:hover .grave__seal--book { color: var(--yellow); border-color: var(--yellow); }

/* DIG button upgrade: pulse-glow so it reads as the key to the seals */
.grave__dig { position: relative; }
.grave:hover .grave__dig { animation: digGlow 1.2s ease-in-out infinite; }
@keyframes digGlow {
  0%, 100% { box-shadow: 3px 3px 0 var(--ink); }
  50% { box-shadow: 3px 3px 0 var(--ink), 0 0 16px rgba(255,200,0,.75); }
}
html.dark .grave:hover .grave__dig { animation-name: digGlowDark; }
@keyframes digGlowDark {
  0%, 100% { box-shadow: 3px 3px 0 #000; }
  50% { box-shadow: 3px 3px 0 #000, 0 0 16px rgba(255,200,0,.75); }
}

/* opening feels like a reveal: autopsy sections rise in sequence */
.grave.open .grave__body > * { animation: autopsyRise .35s ease backwards; }
.grave.open .grave__body > *:nth-child(2) { animation-delay: .06s; }
.grave.open .grave__body > *:nth-child(3) { animation-delay: .12s; }
.grave.open .grave__body > *:nth-child(4) { animation-delay: .18s; }
.grave.open .grave__body > *:nth-child(5) { animation-delay: .24s; }
.grave.open .grave__body > *:nth-child(6) { animation-delay: .3s; }
@keyframes autopsyRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .grave__tease { font-size: .78rem; -webkit-line-clamp: 2; }
  .grave__seal { font-size: .44rem; padding: 5px 8px 5px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .grave__dig, .grave.open .grave__body > * { animation: none !important; }
}

/* ============================================================
   📄 ABOUT PAGE v2 — glow-up
   ============================================================ */
.about__block { position: relative; }
.about__block--intro { border-left: 10px solid var(--yellow); border-radius: 20px; }
.about__sticker {
  position: absolute; font-family: var(--font-head); font-size: .58rem;
  letter-spacing: 1px; padding: 7px 12px; background: var(--green); color: #111;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
}
.about__sticker--tl { top: -14px; right: 18px; }

.about__block--grave {
  background:
    radial-gradient(460px 180px at 90% -20%, rgba(255,82,82,.2), transparent 60%),
    linear-gradient(150deg, #160707 0%, #220b0b 60%, #2b0e0e 100%);
  color: #f2ead8;
  border-color: #000; display: flex; flex-direction: column;
  border-radius: 20px; position: relative; overflow: hidden;
}
.about__block--grave::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #ff5252 30%, #ff8a7a 55%, #ff5252 80%, transparent);
}
.about__block--grave .about__head { color: #ff8a7a; }
.about__block--grave p { color: #f2ead8; }
.about__gravepunch {
  font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase;
  color: #00d99b !important; margin-top: 14px !important;
}
html.dark .about__block--grave { background: #120404; }

/* creator ID card */
.idcard {
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  background: var(--bg); margin-top: 16px; overflow: hidden;
  border-radius: 16px;
  transform: rotate(-.5deg);
}
.idcard__strip {
  background: var(--chip); color: var(--yellow);
  font-family: var(--font-head); font-size: .5rem; letter-spacing: 2px;
  padding: 6px 10px; white-space: nowrap; overflow: hidden;
}
.idcard__body { display: flex; gap: 18px; padding: 18px; align-items: center; flex-wrap: wrap; }
.idcard__avatar {
  width: 84px; height: 84px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; background: var(--yellow);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.idcard__info { flex: 1; min-width: 220px; }
.idcard__name { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .5px; }
.idcard__role { font-size: .85rem; font-weight: 700; margin-top: 3px; opacity: .8; }
.idcard__loc { font-size: .8rem; font-weight: 600; margin-top: 3px; opacity: .7; }
.idcard__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.idcard__chip {
  font-family: var(--font-head); font-size: .58rem; letter-spacing: .5px;
  padding: 8px 12px; background: var(--paper); color: var(--ink) !important;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none !important; transition: transform .12s, box-shadow .12s, background .12s;
}
.idcard__chip:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); }
.idcard__chip--insta { background: linear-gradient(45deg, #feda75, #d62976 70%); color: #fff !important; }
.idcard__chip--insta:hover { background: linear-gradient(45deg, #feda75, #d62976 70%); }
html.dark .idcard { background: #171310; }
html.dark .idcard__strip { background: #171310; }
html.dark .idcard__chip { background: #1b1712; color: #f2ead8 !important; }
html.dark .idcard__chip:hover { background: var(--yellow); color: #111 !important; }

/* feature tiles */
.about__block--naked { background: transparent; border: none; box-shadow: none; padding-left: 0; padding-right: 0; }
.featgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.feattile {
  background: var(--tile, var(--paper)); color: #111;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  border-radius: 14px;
  padding: 16px; font-size: .82rem; line-height: 1.45;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .14s, box-shadow .14s;
}
.feattile:hover { transform: translate(-3px,-3px) rotate(-.5deg); box-shadow: 7px 7px 0 var(--ink); }
.feattile__emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.feattile strong { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; }
html.dark .feattile { border-color: #000; box-shadow: 4px 4px 0 #000; }

/* rule cards */
.rulestack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.rulecard {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px; font-size: .95rem; line-height: 1.55;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .15s;
}
.rulecard:hover { transform: rotate(0deg) translateX(4px); }
.rulecard__num {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--yellow);
  background: var(--chip); padding: 4px 9px; flex-shrink: 0;
}
html.dark .rulecard { background: #171310; }
html.dark .rulecard__num { background: #171310; }

@media (max-width: 560px) {
  .featgrid { grid-template-columns: repeat(2, 1fr); }
  .feattile { font-size: .72rem; padding: 12px; }
  .idcard__avatar { width: 64px; height: 64px; font-size: 2rem; }
}

/* 💡 Lesson of the Day — live date badge */
.lod__datebadge {
  position: absolute; top: -14px; right: 16px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px 7px;
  transform: rotate(2deg);
}
.lod__dateday {
  font-size: .5rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
}
.lod__datenum { font-family: var(--font-head); font-size: .8rem; white-space: nowrap; }
.lod__fresh { font-size: .68rem; font-weight: 700; margin-top: 6px; opacity: .65; }
html.dark .lod__datebadge { background: #1b1712; }
@media (max-width: 560px) {
  .lod__datebadge { top: -12px; right: 10px; padding: 4px 9px 5px; }
  .lod__datenum { font-size: .68rem; }
}

/* ============================================================
   🔎 SEO STATIC PAGES (books/ + graveyard/)
   ============================================================ */
.seopage { max-width: 820px; margin: 0 auto; padding: 24px 20px 60px; }
.seohero {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow);
  padding: 28px 30px; margin-bottom: 26px;
}
.seohero--grave { background: #120404; color: #f2ead8; border-color: #000; }
.seohero--grave h1 { color: #f2ead8; }
.seocrumb { font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.seocrumb a { color: inherit; }
.seohero h1 { font-family: var(--font-head); font-size: clamp(1.3rem, 4vw, 2rem); text-transform: uppercase; line-height: 1.15; }
.seometa { font-size: .85rem; font-weight: 700; margin-top: 8px; opacity: .8; }
.seocover { border: var(--border); box-shadow: 4px 4px 0 var(--ink); margin: 16px 0 6px; transform: rotate(-1.5deg); }
.seotagline { font-size: 1rem; margin: 12px 0 16px; }
.seolang { font-size: .8rem; font-weight: 600; opacity: .75; margin-top: 12px; }
.seoh2 { font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; margin: 30px 0 6px; }
.seoblock {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow);
  padding: 22px 26px; margin-top: 18px;
}
.seoblock h2, .seoblock h3 { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; margin-bottom: 10px; }
.seoblock p { font-size: .97rem; line-height: 1.65; margin-top: 8px; }
.seoblock ol, .seoblock ul { margin: 8px 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: .97rem; line-height: 1.6; }
.seoblock a { color: inherit; font-weight: 700; }
.seochapter { font-size: .75rem !important; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .6; }
.seoblock--mistake { background: #ffe9e9; }
.seoblock--lesson { background: #e6fff5; }
.seocta { text-align: center; }
.seocta .btn { display: inline-block; margin-bottom: 10px; }
html.dark .seohero, html.dark .seoblock { background: #1b1712; }
html.dark .seoblock--mistake { background: #2b1414; }
html.dark .seoblock--lesson { background: #10291f; }
html.dark .seohero--grave { background: #120404; }

/* ============================================================
   💀 GRAVEYARD CASE-STUDY PAGE — premium autopsy layout
   (opened from the book's "When this doesn't work" card)
   ============================================================ */
.ghero {
  max-width: 960px; margin: 0 auto;
  background:
    radial-gradient(560px 220px at 85% -20%, rgba(255,82,82,.22), transparent 60%),
    linear-gradient(150deg, #160707 0%, #220b0b 60%, #2b0e0e 100%);
  border: 4px solid #000; box-shadow: 8px 8px 0 var(--ink);
  color: #f2ead8; text-align: center;
  padding: 38px 22px 30px;
  position: relative; overflow: hidden;
}
.ghero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #ff5252 30%, #ff8a7a 55%, #ff5252 80%, transparent);
}
.ghero__badge {
  display: inline-block;
  font-family: "Archivo Black", sans-serif; font-size: 10px; letter-spacing: 2.5px;
  background: rgba(255,82,82,.18); color: #ff8a7a;
  border: 2px solid rgba(255,82,82,.55); border-radius: 6px;
  padding: 5px 12px; margin-bottom: 14px;
}
.ghero__em { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(255,82,82,.4)); }
.ghero h1 {
  font-family: "Archivo Black", sans-serif; font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.15;
  color: #ffd94d; margin: 10px 0 6px;
}
.ghero__title { font-size: 1rem; font-weight: 600; color: #d8b9b9; max-width: 640px; margin: 0 auto; }
.ghero__stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 22px;
}
.ghero__stat {
  min-width: 130px; padding: 10px 16px;
  background: rgba(255,255,255,.04); border: 2.5px solid #111;
  box-shadow: 3px 3px 0 #000;
}
.ghero__stat b {
  display: block; font-family: "Archivo Black", sans-serif; font-size: .95rem;
  letter-spacing: .5px; color: #f2ead8;
}
.ghero__stat span {
  display: block; font-size: .58rem; font-weight: 800; letter-spacing: 2px;
  color: #9a937f; margin-top: 3px;
}
.ghero__stat--loss { border-color: #ff5252; }
.ghero__stat--loss b { color: #ff8a7a; }
html.dark .ghero { border-color: #000; box-shadow: 8px 8px 0 #000; }

/* 📕 antidote book card — cover + interactive link */
.gantidote__card {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, #f7ead1, #f2e2c0);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 16px; margin-top: 10px;
}
html.dark .gantidote__card { background: #241f18; }
.gantidote__cover {
  flex: none; width: 110px; height: 165px; object-fit: cover;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg); background: #fff;
}
.gantidote__info { flex: 1; min-width: 0; }
.gantidote__info b {
  display: block; font-family: "Archivo Black", sans-serif; font-size: 1.05rem;
  letter-spacing: .5px; text-transform: uppercase; color: var(--ink);
}
html.dark .gantidote__info b { color: #f2ead8; }
.gantidote__info small {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  color: #8a7a55; margin-top: 3px;
}
html.dark .gantidote__info small { color: #b3a98f; }
.gantidote__info p { font-size: .88rem; line-height: 1.55; color: #555; margin: 8px 0 12px; }
html.dark .gantidote__info p { color: #c9c2b2; }
.gantidote__btn {
  display: inline-block;
  font-family: "Archivo Black", sans-serif; font-size: .68rem; letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  color: #111; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 14px; text-decoration: none;
  transition: transform .1s, box-shadow .1s, filter .1s;
}
.gantidote__btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); filter: brightness(1.05); }
@media (max-width: 560px) {
  .gantidote__card { flex-direction: column; align-items: center; text-align: center; }
  .gantidote__cover { width: 130px; height: 195px; }
  .ghero__stats { flex-direction: column; align-items: stretch; }
}


/* ============================================================
   ✍️ STORIES v2 — ghost card, featured, prompts
   ============================================================ */
.ghostcard { text-decoration: none; }
.ghostcard__frame {
  height: 100%; min-height: 340px;
  border: 3px dashed var(--ink); background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 26px; text-align: center;
  transition: background .15s, transform .15s;
}
.ghostcard:hover .ghostcard__frame { background: var(--yellow); transform: rotate(-.5deg); }
.ghostcard__emoji { font-size: 3rem; opacity: .8; }
.ghostcard__title { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; color: var(--ink); }
.ghostcard__byline { font-size: .85rem; font-weight: 700; color: var(--ink); opacity: .55; }
.ghostcard__you { border-bottom: 3px solid var(--ink); padding: 0 18px; }
.ghostcard__cta {
  font-family: var(--font-head); font-size: .62rem; letter-spacing: 1px;
  background: var(--chip); color: var(--yellow); padding: 9px 14px; margin-top: 8px;
}
html.dark .ghostcard__frame { border-color: #f2ead8; }
html.dark .ghostcard__title, html.dark .ghostcard__byline { color: #f2ead8; }
html.dark .ghostcard__you { border-color: #f2ead8; }
html.dark .ghostcard:hover .ghostcard__frame { background: #2a2417; }

.storycard--featured { border-width: 4px; box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 3px var(--ink); }
.storycard--featured .storycard__badge { background: var(--yellow); color: #111; }
.storycard--featured .card__title { text-decoration: underline 3px var(--yellow); text-underline-offset: 4px; }

.promptbar { max-width: var(--maxw); margin: 0 auto 18px; padding: 0 20px; }
.promptbar__label { font-family: var(--font-head); font-size: .62rem; letter-spacing: 1px; margin-bottom: 10px; }
.promptbar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.promptchip {
  font-size: .78rem; font-weight: 700; padding: 9px 13px;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.promptchip:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.promptchip.active { background: var(--pink); }
html.dark .promptchip { background: #1b1712; color: #f2ead8; border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .promptchip.active { background: var(--pink); color: #111; }

/* ============================================================
   ✍️ STORIES TRANSITION — pen writes you onto the shelf
   ============================================================ */
.story-transition {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  /* subtle ruled-paper lines */
  background-image: repeating-linear-gradient(180deg, transparent, transparent 38px, rgba(17,17,17,.06) 38px, rgba(17,17,17,.06) 40px);
}
.story-transition.on { opacity: 1; pointer-events: all; }
html.dark .story-transition {
  background-color: #171310;
  background-image: repeating-linear-gradient(180deg, transparent, transparent 38px, rgba(242,234,216,.07) 38px, rgba(242,234,216,.07) 40px);
}
.story-transition__pen {
  font-size: 4rem;
  animation: penWrite .9s ease-in-out both;
}
@keyframes penWrite {
  0% { transform: translateX(-130px) rotate(-14deg); opacity: 0; }
  25% { opacity: 1; }
  40% { transform: translateX(-40px) rotate(4deg) translateY(-8px); }
  60% { transform: translateX(30px) rotate(-8deg) translateY(4px); }
  80% { transform: translateX(90px) rotate(3deg) translateY(-5px); }
  100% { transform: translateX(130px) rotate(-4deg); opacity: 1; }
}
.story-transition__line {
  height: 5px; width: 0; max-width: 320px;
  background: var(--pink); border-radius: 3px;
  box-shadow: 0 0 12px rgba(255,144,232,.5);
  animation: inkLine .9s ease-in-out .1s both;
}
@keyframes inkLine { from { width: 0; } to { width: min(320px, 70vw); } }
.story-transition__text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 4.5vw, 2rem);
  text-transform: uppercase; color: var(--ink);
  animation: fadeUpIn .45s ease .35s both;
}
.story-transition__sub {
  font-size: .85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink); opacity: 0;
  animation: fadeUpIn .45s ease .55s forwards;
}
html.dark .story-transition__text, html.dark .story-transition__sub { color: #f2ead8; }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .story-transition, .story-transition__pen, .story-transition__line { animation: none !important; transition: none !important; display: none !important; }
}

/* ============================================================
   📕 ASK THE LIBRARY — floating widget v2 (every page)
   ============================================================ */
/* FAB — "ASK" text, no robot */
.aq-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 9990;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink), 0 0 0 0 rgba(255,200,0,.35);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
/* on book pages the lesson-jump button owns bottom-right → ASK moves to bottom-left */
.tsb-ask--book .aq-fab { right: auto; left: 18px; }
.tsb-ask--book .aq-panel { right: 18px; left: auto; }
@media (max-width: 640px) {
  .tsb-ask--book .aq-fab { left: 12px; right: auto; }
}
.aq-fab:hover { transform: translate(-2px,-2px) rotate(-4deg); box-shadow: 7px 7px 0 var(--ink), 0 0 22px rgba(255,200,0,.5); }
.aq-fab:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.aq-fab__spark {
  position: absolute; top: 7px; right: 10px;
  font-size: 11px; color: var(--ink); line-height: 1;
  animation: fabSpark 2.2s ease-in-out infinite;
}
@keyframes fabSpark { 0%,100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.35) rotate(20deg); opacity: .6; } }
.aq-fab__txt {
  font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: .4px;
  color: var(--ink); line-height: 1;
}
.aq-fab__pulse {
  position: absolute; inset: -9px; border-radius: 50%;
  border: 3px solid var(--yellow); opacity: 0; animation: aqPulse 2.4s infinite;
}
@keyframes aqPulse { 0% { transform: scale(.8); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.aq-fab--hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

/* PANEL */
.aq-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 9991;
  width: 430px; max-width: calc(100vw - 24px);
  height: min(78vh, 720px);
  display: flex; flex-direction: column;
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .16s, opacity .16s, visibility 0s .16s;
}
.aq-panel--open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .16s, opacity .16s; }
.aq-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--yellow); border-bottom: 4px solid var(--ink);
  padding: 10px 14px;
}
.aq-head__t { font-family: "Archivo Black", sans-serif; font-size: 14px; letter-spacing: .5px; }
.aq-head__s { font-size: 10px; color: #555; width: 100%; margin-top: -4px; }
.aq-head__btns { margin-left: auto; display: flex; gap: 6px; }
.aq-libbtn, .aq-close, .aq-clear {
  font-family: "Archivo Black", sans-serif; font-size: 13px;
  width: 32px; height: 32px; border: 3px solid var(--ink); background: var(--paper);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .08s, background .1s;
  display: flex; align-items: center; justify-content: center;
}
.aq-libbtn:hover { background: var(--blue); }
.aq-clear:hover { background: var(--red); }
.aq-close:hover { background: var(--red); color: #fff; }

/* CHIPS — colored, emoji-safe (fixes blank boxes) */
.aq-chips {
  display: flex; gap: 7px; padding: 9px 10px; overflow-x: auto;
  border-bottom: 3px solid var(--ink); background: #f5f1e6; flex: none;
  scrollbar-width: thin;
}
.aq-chip {
  font-family: "Archivo Black", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 11px; letter-spacing: .3px;
  border: 3px solid var(--ink); padding: 8px 12px; cursor: pointer; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .08s, box-shadow .08s;
  color: var(--ink);
}
.aq-chip:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.aq-chip--0 { background: var(--yellow); }
.aq-chip--1 { background: var(--pink); }
.aq-chip--2 { background: var(--green); }
.aq-chip--3 { background: var(--blue); color: #fff; }
.aq-chip--4 { background: var(--purple); color: #fff; }
.aq-chip--all { background: var(--chip); color: var(--yellow); }
.aq-chip--mini { font-size: 10px; padding: 6px 10px; background: var(--paper); }
/* (dark chip rules live in the authoritative dark block below) */

/* MESSAGES */
.aq-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.aq-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
.aq-msg--user { justify-content: flex-end; }
.aq-av {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.aq-bubble {
  border: 3px solid var(--ink); background: #fff; padding: 14px 16px;
  max-width: 360px; font-size: 14px; line-height: 1.6; box-shadow: 4px 4px 0 rgba(17,17,17,.5);
}
.aq-bubble--user { background: var(--yellow); font-family: "Archivo Black", sans-serif; font-size: 12px; }
.aq-dots i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #888; animation: aqBlink 1s infinite; }
.aq-dots i:nth-child(2) { animation-delay: .18s; } .aq-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes aqBlink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ANSWER CONTENT ------------------------------------------------------------
   v251: the answer is a designed block, not a coloured band of text.
   question → the thought → the reasoning → numbered sources with covers. */
.aq-ans { margin:0 0 14px; }
.aq-ans__q {
  font-family: var(--font-body, "Space Grotesk"), system-ui, sans-serif;
  font-size:.78rem; font-weight:700; letter-spacing:.2px; color:var(--muted, #6b6459);
  border-left:3px solid var(--a, #ffc800); padding:1px 0 1px 9px; margin:0 0 10px;
  overflow-wrap:anywhere;
}
.aq-ans__body {
  position:relative; border:2.5px solid var(--ink); border-radius:16px;
  background:var(--paper, #fffdf5); padding:14px 15px 14px 17px;
  box-shadow:4px 4px 0 var(--ink);
}
.aq-ans__body::before {
  content:""; position:absolute; left:0; top:14px; bottom:14px; width:6px;
  border-radius:0 6px 6px 0; background:#ffc800;
}
.aq-ans__tag {
  display:inline-block; font-family:"Archivo Black", sans-serif; font-size:9px; letter-spacing:1.1px;
  background:var(--ink); color:#ffc800; border-radius:999px; padding:3px 9px; margin-bottom:7px;
}
.aq-ans__body p {
  margin:0; font-size:.95rem; line-height:1.6; font-weight:600; color:var(--ink);
}
/* a small numbered head above each group of sources */
.aq-head2 {
  display:flex; align-items:center; gap:8px; margin:12px 0 8px;
  font-family:"Archivo Black", sans-serif; font-size:9.5px; letter-spacing:1px; text-transform:uppercase;
  color:var(--muted, #6b6459);
}
.aq-head2 :first-child { flex:none; }
.aq-head2 i {
  font-style:normal; flex:none; background:var(--ink); color:#ffc800;
  border-radius:999px; min-width:18px; height:18px; display:grid; place-items:center;
  font-size:9.5px; padding:0 5px;
}
.aq-head2::after { content:""; flex:1; height:1.5px; background:currentColor; opacity:.22; border-radius:2px; }

/* the old full-width question strip — kept only for stored history and graves */
.aq-q {
  font-family: "Archivo Black", sans-serif; font-size: 14.5px; line-height: 1.5;
  background: #f5f1e6; border: 2.5px solid var(--ink); padding: 8px 10px; margin-bottom: 8px;
}
.aq-guided { font-size: 14.5px; line-height: 1.65; margin-bottom: 10px; }
.aq-guided__tag {
  display: inline-block; font-family: "Archivo Black", sans-serif; font-size: 9px; letter-spacing: 1px;
  background: var(--chip); color: var(--yellow); padding: 3px 8px; margin-right: 6px; vertical-align: 2px;
}
.aq-bookbig { font-size: 12.5px; color: #444; line-height: 1.6; border-left: 4px solid var(--yellow); padding: 4px 0 4px 10px; margin: 6px 0 10px; }
.aq-srcs { display: grid; gap: 7px; }
.aq-src {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 10px;
  border: 3px solid var(--ink); background: #fffdf2; padding: 12px 12px 12px 14px;
  text-decoration: none; color: var(--ink); transition: transform .08s, box-shadow .08s;
  border-left: 10px solid var(--yellow);
}
.aq-src:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.aq-b--p { border-left-color: var(--pink); } .aq-b--g { border-left-color: var(--green); }
.aq-b--b { border-left-color: var(--blue); } .aq-b--v { border-left-color: var(--purple); }
.aq-src__book { font-family: "Archivo Black", sans-serif; font-size: 12.5px; }
.aq-src__lesson { font-size: 14px; font-weight: 700; margin-top: 2px; }
.aq-src__blurb { font-size: 12.5px; color: #555; line-height: 1.5; grid-column: 1 / 3; }
.aq-src__go { font-family: "Archivo Black", sans-serif; font-size: 10px; color: #1a3fae; grid-column: 2; grid-row: 1; }
.aq-src--grave { border-left: 8px solid var(--red); }
.aq-src--grave .aq-src__book { color: var(--red); }
.aq-src--grave .aq-src__go { color: var(--red); }
.aq-gravehead { font-family: "Archivo Black", sans-serif; font-size: 11px; margin: 8px 0 6px; color: var(--red); }
.aq-plan { font-size: 12px; line-height: 1.6; border: 2.5px dashed var(--ink); padding: 8px 10px; margin: 8px 0; background: #fff9e8; }
.aq-foot { font-size: 10px; color: #999; text-align: center; margin-top: 8px; }
.aq-none { font-size: 12px; color: #888; }
.aq-copyrow { margin-top: 10px; }
.aq-copy {
  font-family: "Archivo Black", sans-serif; font-size: 10px; letter-spacing: .4px;
  border: 2.5px solid var(--ink); background: var(--chip); color: var(--yellow);
  padding: 6px 10px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.aq-copy:hover { transform: translate(-1px,-1px); }
.aq-follow { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.aq-follow__l { font-family: "Archivo Black", sans-serif; font-size: 9px; letter-spacing: 1px; color: #888; width: 100%; }

/* INPUT */
.aq-inputrow { display: flex; gap: 8px; padding: 10px; border-top: 4px solid var(--ink); background: #f5f1e6; flex: none; }
.aq-input {
  flex: 1; font-family: "Space Grotesk", sans-serif; font-size: 14px;
  border: 3px solid var(--ink); padding: 9px 12px; background: #fff; color: var(--ink);
}
.aq-input:focus { outline: none; box-shadow: 3px 3px 0 var(--yellow); }
.aq-send {
  font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: .5px;
  border: 3px solid var(--ink); background: var(--yellow); color: var(--on-accent);
  padding: 9px 16px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s;
}
.aq-send:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.aq-send:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

/* 📚 LIBRARY MODAL */
.aq-lib {
  position: fixed; inset: 0; z-index: 9992;
  display: flex; flex-direction: column;
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(17,17,17,.6);
  transform: translateY(20px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .16s, opacity .16s, visibility 0s .16s;
}
.aq-lib--open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .16s, opacity .16s; }
.aq-lib__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--blue); border-bottom: 4px solid var(--ink); padding: 12px 14px;
}
.aq-lib__t { font-family: "Archivo Black", sans-serif; font-size: 15px; color: #fff; }
.aq-lib__s { font-size: 10px; color: #dce4ff; width: 100%; margin-top: -4px; }
.aq-lib__close {
  margin-left: auto; font-family: "Archivo Black", sans-serif; font-size: 13px;
  width: 32px; height: 32px; border: 3px solid var(--ink); background: var(--paper);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.aq-lib__close:hover { background: var(--red); color: #fff; }
.aq-lib__search {
  margin: 10px 12px; padding: 10px 12px; font-family: "Space Grotesk", sans-serif; font-size: 14px;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
}
.aq-lib__search:focus { outline: none; box-shadow: 3px 3px 0 var(--yellow); }
.aq-lib__list { flex: 1; overflow-y: auto; padding: 0 12px 12px; }
.aq-lib__row {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  border: 3px solid var(--ink); background: #fff; padding: 9px 10px; margin-bottom: 8px;
}
.aq-lib__q { font-size: 13px; line-height: 1.4; flex: 1; }
.aq-lib__act { display: flex; gap: 6px; flex: none; }
.aq-lib__ask {
  font-family: "Archivo Black", sans-serif; font-size: 10px; letter-spacing: .4px;
  border: 3px solid var(--ink); background: var(--yellow); color: var(--on-accent);
  padding: 6px 12px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.aq-lib__ask:hover { transform: translate(-1px,-1px); }
.aq-lib__copy {
  font-family: "Archivo Black", sans-serif; font-size: 12px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 6px 9px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.aq-lib__copy:hover { background: var(--green); }
.aq-lib__empty { text-align: center; padding: 30px 14px; color: #666; font-size: 14px; }

/* dark mode */
html.dark .aq-panel { background: #1b1712; }
html.dark .aq-bubble { background: #241f18; color: #f2ead8; }
html.dark .aq-bubble--user { background: var(--yellow); color: var(--on-accent); }
html.dark .aq-src { background: #2a241b; }
html.dark .aq-chip--0, html.dark .aq-chip--1, html.dark .aq-chip--2 { color: #111; }
html.dark .aq-chip--all { background: #17130b; color: var(--yellow); }
html.dark .tsb-ask--page .aq-chip { color: var(--ink); }
html.dark .tsb-ask--page .aq-chip--all { background: transparent; color: var(--ink); }
html.dark .aq-chip--mini { background: #2a241b; color: #f2ead8; }
html.dark .aq-chips, html.dark .aq-inputrow { background: #171310; }
html.dark .aq-input { background: #241f18; color: #f2ead8; }
html.dark .aq-plan { background: #241c10; }
html.dark .aq-lib { background: #171310; }
html.dark .aq-lib__row { background: #241f18; }
html.dark .aq-lib__row .aq-lib__q { color: #f2ead8; }
html.dark .aq-q { background: #241f18; }
html.dark .aq-ans__body { background:#241f17; border-color:#3a352b; box-shadow:4px 4px 0 #0d0b08; }
html.dark .aq-ans__q { color:#a8a094; }
html.dark .aq-head2 { color:#a8a094; }
html.dark .aq-head2 i { background:#3a352b; color:#ffc800; }
html.dark .aq-src__tag { border-color:#4a4436; }
html.dark .aq-guided__tag { background: var(--yellow); color: var(--on-accent); }

/* mobile: full-width bottom sheet */
@media (max-width: 640px) {
  .aq-panel {
    left: 8px; right: 8px; bottom: 8px;
    width: auto; height: min(86vh, 700px);
    border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  }
  .aq-fab { right: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 11px; }
  .aq-fab__txt { font-size: 11px; }
  .tsb-ask--book .aq-fab { left: 12px; right: auto; }
  .aq-lib { left: 24px; right: 24px; top: 7vh; bottom: 7vh; border-radius: 12px; }
}

/* 🤖 AI THINKING CARD */
.aq-think {
  border: 3px solid var(--ink); background: #fff; padding: 16px 18px;
  min-width: 250px; max-width: 320px; box-shadow: 4px 4px 0 rgba(17,17,17,.5);
}
.aq-think__scan {
  position: relative; width: 52px; height: 52px; margin: 0 auto 10px;
  border: 3px solid var(--ink); background: var(--yellow); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  animation: aqThinkBob 0.9s ease-in-out infinite alternate;
  overflow: hidden;
}
.aq-think__book { font-size: 24px; position: relative; z-index: 2; }
.aq-think__scan::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 4px;
  background: rgba(17,17,17,.55); border-radius: 2px;
  animation: aqScan 1.1s ease-in-out infinite;
}
@keyframes aqThinkBob {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-6px) rotate(3deg); }
}
@keyframes aqScan {
  0%   { top: 6px; }
  50%  { top: 42px; }
  100% { top: 6px; }
}
.aq-think__status {
  text-align: center; font-size: 12.5px; font-weight: 700; color: #555;
  min-height: 18px; letter-spacing: .2px;
}
.aq-think__bar {
  height: 9px; border: 2.5px solid var(--ink); margin-top: 10px;
  overflow: hidden; background: #fff; border-radius: 3px;
}
.aq-think__bar i {
  display: block; height: 100%; width: 42%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, var(--ink) 10px 13px);
  animation: aqBar 1s ease-in-out infinite;
}
@keyframes aqBar {
  0%   { margin-left: -45%; }
  100% { margin-left: 100%; }
}
html.dark .aq-think { background: #241f18; }
html.dark .aq-think__status { color: #c9bfa8; }
html.dark .aq-think__bar { background: #171310; }

/* 📸 INSTAGRAM SECTION (about page) */
.about__block--insta { text-align: center; }
.instabox {
  max-width: 640px; margin: 20px auto 0;
  border: 4px solid var(--ink); background: var(--paper);
  box-shadow: 8px 8px 0 rgba(17,17,17,.9);
  border-radius: 22px;
  padding: 28px 24px;
  background-image: linear-gradient(135deg, #fdf497 0%, #fd5949 18%, #d6249f 40%, #285AEB 90%);
}
.instabox__handle {
  display: inline-block; font-family: "Archivo Black", sans-serif; font-size: 26px;
  background: #fff; color: var(--ink); border: 4px solid var(--ink);
  padding: 8px 18px; transform: rotate(-1.5deg); box-shadow: 5px 5px 0 rgba(17,17,17,.85);
}
.instabox__tag {
  display: inline-block; font-family: "Archivo Black", sans-serif; font-size: 11px; letter-spacing: 2px;
  background: var(--chip); color: var(--yellow); padding: 5px 12px; margin: 10px 0 12px;
}
html.dark .instabox__handle { color: #111; }
html.dark .instabox__tag { background: #17130b; }
.instabox p { color: #fff; font-size: 14.5px; line-height: 1.6; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.instabox .btn { margin-top: 16px; box-shadow: 5px 5px 0 rgba(17,17,17,.85); }

/* ============================================================
   🚀 LAUNCH LOADING SCREEN — neo-brutalist brand splash
   ============================================================ */
/* 🚀 MAIN APP LOADING SCREEN — smooth, no lag, brand-perfect */
html.tsb-loading, html.tsb-loading body { overflow: hidden; } /* no scroll jump while splashing */
.tsb-loader {
  position: fixed; inset: 0; z-index: 99999;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(17,17,17,.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  transition: opacity .45s ease, visibility 0s .45s;
  will-change: opacity;
}
.tsb-loader--hide { opacity: 0; pointer-events: none; visibility: hidden; }

/* inner stack pops in with a gentle spring — staggered */
.tsb-loader__in { animation: loaderIn .55s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes loaderIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.tsb-loader__logo {
  width: 88px; height: 88px; border-radius: 18px;
  background: var(--yellow); border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: loaderBob .8s cubic-bezier(.45,.05,.35,1) infinite alternate;
  will-change: transform;
}
.tsb-loader__logo svg { display: block; }
.tsb-loader__logo img {
  display: block; width: 50px; height: 50px;
  object-fit: contain; image-rendering: auto;
}
@keyframes loaderBob {
  from { transform: translateY(0) rotate(-5deg); }
  to   { transform: translateY(-10px) rotate(5deg); }
}

.tsb-loader__word {
  font-family: "Archivo Black", sans-serif; font-size: 30px; text-align: center; color: var(--ink);
  animation: loaderWordIn .5s ease .1s both;
}
@keyframes loaderWordIn { from { opacity: 0; letter-spacing: 6px; } to { opacity: 1; letter-spacing: 0; } }
.tsb-loader__hl { background: var(--yellow); padding: 0 7px; }

.tsb-loader__tag {
  text-align: center; font-size: 12px; color: #777; margin-top: 8px;
  letter-spacing: 2.5px; text-transform: uppercase;
  animation: loaderTagIn .5s ease .2s both;
}
@keyframes loaderTagIn { from { opacity: 0; } to { opacity: 1; } }

.tsb-loader__bar {
  width: 210px; height: 13px; border: 3px solid var(--ink);
  margin: 20px auto 0; overflow: hidden; background: #fff;
  animation: loaderBarIn .5s ease .3s both;
}
@keyframes loaderBarIn { from { opacity: 0; } to { opacity: 1; } }
.tsb-loader__bar i {
  display: block; height: 100%; width: 45%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, var(--ink) 10px 13px);
  animation: loaderSlide 1.1s cubic-bezier(.4,.1,.6,.9) infinite;
}
@keyframes loaderSlide { 0% { margin-left: -45%; } 100% { margin-left: 100%; } }

.tsb-loader__pct {
  text-align: center; font-family: "Archivo Black", sans-serif;
  font-size: 14px; letter-spacing: 1px; color: var(--ink); margin-top: 12px;
}
.tsb-loader__pct span { color: #b37700; }
html.dark .tsb-loader {
  background-color: #120404;
  background-image: radial-gradient(rgba(255,82,82,.08) 1.5px, transparent 1.5px);
}
html.dark .tsb-loader__word { color: #f2ead8; }
html.dark .tsb-loader__tag { color: #b3a98f; }
html.dark .tsb-loader__bar { background: #171310; }
html.dark .tsb-loader__pct { color: #f2ead8; }
html.dark .tsb-loader__pct span { color: var(--yellow); }


/* 🎧 PODCAST PLAYER — professional, mobile-first, any ratio */
.tsb-player {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%) translateY(150%);
  z-index: 9989;
  width: min(430px, calc(100vw - 20px));
  background: var(--paper); border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(17,17,17,.85);
  overflow: hidden;
  visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), visibility 0s .28s;
}
.tsb-player--show {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2);
}
/* progress track — sleek dark bar on top */
.tsb-player__prog { height: 8px; background: #111; }
.tsb-player__prog i {
  display: block; height: 100%; width: 0;
  background: var(--yellow);
  transition: width .4s linear;
}
/* top row: art + titles + close */
.tsb-player__top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 4px;
}
.tsb-player__art {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  border: 3px solid var(--ink); background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden;
}
.tsb-player__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* live equalizer bars overlay — pulses while playing */
.tsb-player__eq {
  position: absolute; right: -6px; bottom: -6px;
  display: flex; align-items: flex-end; gap: 2px;
  background: var(--chip); border: 2.5px solid var(--ink);
  border-radius: 7px; padding: 3px 4px;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.tsb-player__eq i {
  width: 3px; height: 5px; background: var(--yellow);
  border-radius: 1px;
}
.tsb-player__eq--on { opacity: 1; transform: scale(1); }
.tsb-player__eq--on i { animation: eqBar .9s ease-in-out infinite; }
.tsb-player__eq--on i:nth-child(2) { animation-delay: .18s; }
.tsb-player__eq--on i:nth-child(3) { animation-delay: .36s; }
.tsb-player__eq--on i:nth-child(4) { animation-delay: .54s; }
@keyframes eqBar {
  0%, 100% { height: 5px; }
  50% { height: 15px; }
}
/* subtle breathing on the whole player while playing */
.tsb-player--show { animation: playerBreath 3.2s ease-in-out infinite; }
@keyframes playerBreath {
  0%, 100% { box-shadow: 6px 6px 0 rgba(17,17,17,.85); }
  50% { box-shadow: 6px 6px 0 rgba(17,17,17,.55), 0 0 22px rgba(255,200,0,.25); }
}
.tsb-player__art { position: relative; }
.tsb-player__info { flex: 1; min-width: 0; }
.tsb-player__title {
  font-family: "Archivo Black", sans-serif; font-size: 12.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tsb-player__sub {
  font-size: 10.5px; color: #777; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* LIVE badge — blinks while playing */
.tsb-player__live {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 1px;
  color: #999; opacity: 0; height: 0; overflow: hidden;
  transition: opacity .2s, height .2s;
}
.tsb-player__live--on { opacity: 1; height: 13px; color: var(--red); }
.tsb-player__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: inline-block;
  animation: liveDot 1s ease-in-out infinite;
}
@keyframes liveDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
/* progress shimmer — a soft moving shine over the yellow fill */
.tsb-player__prog { overflow: hidden; position: relative; }
.tsb-player__prog i::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: progShine 2.2s ease-in-out infinite;
}
@keyframes progShine { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.tsb-player__close {
  flex: none; width: 32px; height: 32px;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 9px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "Archivo Black", sans-serif; font-size: 13px;
}
.tsb-player__close:hover { background: var(--red); color: #fff; }
/* bottom row: transport + pills */
.tsb-player__row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 10px;
}
.tsb-player__btn {
  flex: none; width: 42px; height: 38px;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 9px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "Archivo Black", sans-serif; font-size: 15px;
  transition: transform .08s;
}
.tsb-player__btn:hover { transform: translate(-1px,-1px); }
.tsb-player__btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.tsb-player__btn--main { background: var(--yellow); }
.tsb-player__sp { flex: 1; }
.tsb-player__pill {
  flex: none;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 6px 9px;
  font-family: "Archivo Black", sans-serif; font-size: 11px;
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .08s;
}
.tsb-player__pill:hover { transform: translate(-1px,-1px); background: var(--yellow); }
html.dark .tsb-player { background: #1b1712; box-shadow: 6px 6px 0 #000; }
html.dark .tsb-player__title { color: #f2ead8; }
html.dark .tsb-player__sub { color: #b3a98f; }
html.dark .tsb-player__btn, html.dark .tsb-player__pill, html.dark .tsb-player__close { background: #241f18; color: #f2ead8; }
html.dark .tsb-player__btn--main { background: var(--yellow); color: var(--on-accent); }
html.dark .tsb-player__close:hover { background: var(--red); color: #fff; }
/* mobile: any width — above the ASK FAB, safe-area aware */
@media (max-width: 640px) {
  .tsb-player {
    width: min(400px, calc(100vw - 16px));
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
  }
  .tsb-player__top { padding: 9px 10px 3px; }
  .tsb-player__row { padding: 5px 10px 9px; gap: 7px; }
  .tsb-player__art { width: 42px; height: 42px; }
  .tsb-player__btn { width: 40px; height: 36px; font-size: 14px; }
  .tsb-player__pill { font-size: 10px; padding: 5px 8px; }
}
@media (max-width: 360px) {
  .tsb-player__btn { width: 36px; height: 34px; }
  .tsb-player__pill { font-size: 9.5px; padding: 4px 6px; }
}

/* 🎧 PODCAST BUTTON — sleek, not chunky */
.podcastbtn {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px;
  font-family: "Archivo Black", sans-serif; font-size: 13.5px; letter-spacing: .3px;
  color: var(--on-accent);
  background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 10px; padding: 9px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.podcastbtn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.podcastbtn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.podcastbtn__icon { font-size: 17px; line-height: 1; }
.podcastbtn__label { line-height: 1; }
.podcastbtn__live {
  font-size: 9px; letter-spacing: 1.5px; color: #fff;
  background: var(--red); border: 2px solid var(--ink);
  border-radius: 6px; padding: 2px 7px;
  display: none;
}
.podcastbtn--playing { background: #111; color: var(--yellow); }
.podcastbtn--playing .podcastbtn__live { display: inline-block; animation: liveBlink 1.1s ease-in-out infinite; }
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
html.dark .podcastbtn { color: #111; box-shadow: 4px 4px 0 #000; }

/* ============================================================
   💀 GRAVEYARD POLISH (Aug 2026) — light upgrade, structure same
   ============================================================ */

/* --- CAUSE OF DEATH → chunky red autopsy banner --- */
.grave__cause {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 16px;
  margin-top: 18px;
  transform: rotate(-1.5deg);
  animation: graveStampIn .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes graveStampIn { from { transform: rotate(-4deg) scale(.8); opacity: 0; } to { transform: rotate(-1.5deg) scale(1); opacity: 1; } }

/* --- LOSS stamp → stronger, with shadow --- */
.grave__loss {
  font-size: .72rem;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 rgba(17,17,17,.85);
}

/* --- sections → colored left rail + richer tints --- */
.grave__section {
  border-left: 6px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.grave__section--mistake { border-left-color: var(--red); }
.grave__section--lesson  { border-left-color: var(--green); }
.grave__section p { line-height: 1.6; }
html.dark .grave__section--mistake { border-left-color: var(--red); }
html.dark .grave__section--lesson { border-left-color: var(--green); }

/* --- card hover → category-colored glow --- */
.grave:hover {
  box-shadow: 9px 9px 0 var(--ink), 0 0 0 2px var(--gcat, transparent);
}

/* --- open state: subtle lift so the body feels "exhumed" --- */
.grave.open { transform: translateY(-2px); }

/* --- hero badge: slow heartbeat pulse --- */
.hero__badge--grave { animation: graveBeat 2.6s ease-in-out infinite; }
@keyframes graveBeat { 0%,100% { box-shadow: 3px 3px 0 var(--ink); } 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px rgba(255,77,77,.15); } }

/* --- feed bar: red left rail + polish --- */
.gravefeed { border-left: 6px solid var(--red); }
.gravefeed__label { letter-spacing: 1.5px; }

/* --- sort active: subtle pulse --- */
.gravesort__btn.active { animation: graveBeat 3s ease-in-out infinite; }

/* --- antonym book link: yellow accent stays, add left rail --- */
.grave__book { border-left: 6px solid var(--yellow); }

/* --- share button: keep, but hover translate already there --- */

/* --- tombstone: soft inner engraving feel --- */
.grave__stone { box-shadow: 3px 3px 0 var(--ink), inset 0 -6px 0 rgba(0,0,0,.18); }

/* --- mobile tweaks for the new stamps --- */
@media (max-width: 560px) {
  .grave__cause { font-size: .56rem; padding: 6px 12px; letter-spacing: 1px; }
  .grave__loss { font-size: .64rem; padding: 3px 9px; }
}

/* ============================================================
   ✍️ STORIES v2 — premium polish (Aug 2026)
   ============================================================ */
.storystats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: var(--maxw); margin: 0 auto 22px; padding: 0 20px;
}
.storystats__cell {
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.storystats__cell:nth-child(2) { box-shadow: 4px 4px 0 var(--yellow); }
.storystats__cell:nth-child(3) { box-shadow: 4px 4px 0 var(--green); }
.storystats__label { font-family: var(--font-head); font-size: .5rem; letter-spacing: 1.5px; color: #888; }
html.dark .storystats__label { color: #9a937f; }
.storystats__val { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storystats__val--y { color: #a97f00; }
.storystats__val--g { color: var(--green); }
/* featured story = full-width horizontal banner */
.storycard--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 200px 1fr;
  border-width: 4px;
}
.storycard--featured .card__top { border-bottom: none; border-right: var(--border); min-height: 0; }
.storycard--featured .card__body { display: flex; flex-direction: column; justify-content: center; }
.storycard--featured .storycard__cover { width: 120px; }
@media (max-width: 640px) {
  .storystats { grid-template-columns: 1fr; gap: 8px; }
  .storycard--featured { grid-template-columns: 1fr; }
  .storycard--featured .card__top { border-right: none; border-bottom: var(--border); }
}

/* ============================================================
   📱 MOBILE PREMIUM POLISH (Aug 2026)
   - kills the blue tap-flash on every phone
   - only reading text is selectable (buttons/cards stay clean)
   - instant button response (no 300ms tap delay)
   - below-fold sections skip off-screen rendering (smooth scroll)
   ============================================================ */

/* 1) no more blue/gray flash when tapping anything */
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

/* 2) interactive elements: not selectable + instant tap */
button, a, .btn, .abtn, .chip, .card, .card a, .grave, .grave__head,
.grave__toggle, .tsb-navchip, .tsb-loginbtn, .tsb-auth-chip,
.tsb-bell, .minibtn, .nav a, .logo, .shelfrow__arrow, .shelfrow__seeall,
.lod__box a, .storycard, .ghostcard, .continue__box a, .pathcard a,
.fuel-amt, .tsb-rm-item, select, .search button, .tsb-hl, .tsb-hl-btn,
[data-nav-auth], [data-lang-btn], [data-theme-toggle], .grave__share,
.ob-goals button, .ob-styles button, .ob-next, .ob-skip, .tsb-auth-ov button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* 3) reading content stays fully selectable (highlight feature needs it) */
.lesson__body, .lesson__body p, .lesson__body .callout,
.grave__body p, .grave__section, .storytext, .lod__title,
.quote, .bigidea, .actionplan li, article p, .story p, .story__body {
  -webkit-user-select: text;
  user-select: text;
}

/* 4) performance: skip rendering below-fold sections until scrolled to
   (NOTE: .how and .shelfrow are NOT included — content-visibility clips
   the overflowing step numbers (01/02/03) and card shadows. Crop fix.) */
.library, #library, .grid, #grid, #shelves,
.footer, .gravegrid, #graveGrid, .storystats, #storyGrid, .pathgrid {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
/* keep the hero & above-fold instantly visible */
.hero, .nav, #continue, #lod, #gamebar { content-visibility: visible; }

/* 5) smoother taps: press state on touch feels instant, no flash */
.btn:active, .abtn:active, .chip:active, .minibtn:active,
.grave__toggle:active, .tsb-navchip:active { transition-duration: .03s; }


/* ============================================================
   💛 TIP JAR (end of every lesson — optional, dismissible)
   ============================================================ */
.tipjar {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px; padding: 10px 34px 10px 12px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe9c9 100%);
  border: 2px solid var(--ink);
}
html.dark .tipjar { background: linear-gradient(135deg, #2a2418 0%, #3a2c1a 100%); }
.tipjar__row { display: flex; align-items: center; gap: 9px; }
.tipjar__icon {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 14px; background: var(--yellow); border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg);
}
html.dark .tipjar__icon { background: #3a2c1a; }
.tipjar__q {
  font-size: .8rem; font-weight: 800; color: var(--ink);
  line-height: 1.35;
}
html.dark .tipjar__q { color: #f2ead8; }
.tipjar__btns { display: flex; gap: 6px; }
.tipjar__btns a {
  font-family: var(--font-head); font-size: .72rem; letter-spacing: 1px;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  background: linear-gradient(135deg, #ffd94d, #ffc800); color: #111;
  padding: 5px 11px; text-decoration: none;
  transition: transform .1s, box-shadow .1s, filter .1s;
}
.tipjar__btns a:nth-child(2) { background: linear-gradient(135deg, #ffb36b, #ff8a3d); }
.tipjar__btns a:nth-child(3) { background: linear-gradient(135deg, #ff9d8a, #ff5252); color: #fff; }
.tipjar__btns a:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); filter: brightness(1.05); }
.tipjar__btns a:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
/* ✕ pinned to the top-right corner of the box */
.tipjar__x {
  position: absolute; top: 6px; right: 6px;
  border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--font-head); font-size: .56rem; padding: 2px 7px;
  cursor: pointer; color: var(--ink); box-shadow: 2px 2px 0 var(--ink);
  line-height: 1.4;
}
html.dark .tipjar__x { background: #1d1914; color: #f2ead8; }
.tipjar__x:hover { background: var(--red); color: #fff; transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 560px) {
  .tipjar { padding: 9px 32px 9px 10px; gap: 7px; }
  .tipjar__q { font-size: .76rem; }
  .tipjar__btns a { padding: 5px 9px; font-size: .68rem; }
}

/* ============================================================
   ⭐ SOCIAL PROOF (home page — real reader words)
   ============================================================ */
.socialproof { max-width: 1280px; margin: 30px auto 6px; padding: 0 clamp(16px, 4vw, 48px); }
.socialproof__head {
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2.5px;
  background: var(--chip); color: var(--yellow); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--pink); padding: 7px 16px; display: inline-block; margin-bottom: 16px;
}
html.dark .socialproof__head { background: #17130b; }
/* ⭐ reader cards: ALWAYS side-by-side (horizontal row, scrolls on tiny screens) */
.socialproof__row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.socialproof__row::-webkit-scrollbar { height: 6px; }
.socialproof__row::-webkit-scrollbar-thumb { background: var(--chip); border-radius: 0; }
.sp-quote { flex: 1 0 240px; scroll-snap-align: start; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 16px 16px 12px; }
.sp-quote:nth-child(2) { box-shadow: 5px 5px 0 var(--yellow); }
.sp-quote:nth-child(3) { box-shadow: 5px 5px 0 var(--green); }
.sp-quote p { font-size: .88rem; font-style: italic; line-height: 1.5; margin: 0 0 10px; }
.sp-quote cite { font-style: normal; font-family: var(--font-head); font-size: .66rem; letter-spacing: 1px; color: #666; }
html.dark .sp-quote cite { color: #9a937f; }

/* ============================================================
   👑 TSB GOLD — page + home banner (premium dark editorial)
   ============================================================ */
.btn--gold {
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  color: #111 !important;
  border: 3px solid var(--ink, #111) !important;
  box-shadow: 3px 3px 0 var(--ink, #111) !important;
  font-weight: 800;
  animation: goldGlowNav 2.4s ease-in-out infinite;
}
.btn--gold:hover { transform: translate(-2px,-2px) !important; box-shadow: 5px 5px 0 var(--ink, #111) !important; }
@keyframes goldGlowNav { 0%,100% { box-shadow: 3px 3px 0 var(--ink, #111); } 50% { box-shadow: 3px 3px 0 var(--ink, #111), 0 0 0 6px rgba(255,200,0,.25); } }
html.dark .btn--gold { border-color: #000 !important; box-shadow: 3px 3px 0 #000 !important; }

.goldbanner { max-width: 1280px; margin: 22px auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.goldbanner__box {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; gap: 0;
  background:
    radial-gradient(620px 240px at 88% -30%, rgba(255,200,0,.16), transparent 60%),
    linear-gradient(120deg, #14100a 0%, #1c1408 55%, #241a0a 100%);
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 #b8860b;
  color: #f2ead8;
}
.goldbanner__box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #ffc800 20%, #ffe08a 50%, #ffc800 80%, transparent);
  opacity: .95;
}
/* slow gold shine sweeping across the banner */
.goldbanner__shine {
  position: absolute; top: -60%; bottom: -60%; left: -35%; width: 22%;
  background: linear-gradient(105deg, transparent, rgba(255,214,90,.14) 45%, rgba(255,224,138,.32) 50%, rgba(255,214,90,.14) 55%, transparent);
  transform: skewX(-18deg);
  animation: goldShine 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes goldShine { 0% { left: -35%; } 60%, 100% { left: 135%; } }
.goldbanner__main { flex: 1; min-width: 260px; padding: 18px 20px 16px; position: relative; z-index: 1; }
.goldbanner__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.goldbanner__icon { font-size: 26px; filter: drop-shadow(0 0 8px rgba(255,200,0,.4)); }
.goldbanner__title {
  font-family: "Archivo Black", sans-serif; font-size: 1.3rem; letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd94d, #ffc800 55%, #f0b400);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.goldbanner__soon {
  font-family: var(--font-head); font-size: .6rem; letter-spacing: 1.5px;
  background: var(--red); color: #fff; border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 #000; padding: 5px 10px;
  animation: goldSoonPulse 1.6s ease-in-out infinite;
}
@keyframes goldSoonPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.goldbanner__sub { font-size: .92rem; color: #d8d0bd; margin: 10px 0 0; line-height: 1.5; }
.goldbanner__sub b { color: #ffc800; }
.goldbanner__perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.goldbanner__perks span {
  font-size: .58rem; font-weight: 800; letter-spacing: 1px;
  border: 2px solid rgba(255,200,0,.45); color: #ffd94d;
  padding: 4px 8px; background: rgba(255,200,0,.06);
}
.goldbanner__offer {
  position: relative; z-index: 1;
  min-width: 260px; display: flex; flex-direction: column; gap: 7px; justify-content: center;
  padding: 16px 20px 16px 18px; border-left: 2px dashed rgba(255,200,0,.35);
}
.goldbanner__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.goldbanner__price s { color: #9a8f78; font-size: .95rem; font-weight: 700; }
.goldbanner__price b { font-family: "Archivo Black", sans-serif; font-size: 2.1rem; color: #ffd94d; line-height: 1; }
.goldbanner__price em { font-style: normal; font-size: .82rem; color: #c9c2b2; font-weight: 700; }
.goldbanner__off {
  font-family: var(--font-head); font-size: .58rem; letter-spacing: 1px;
  background: #ffc800; color: #111; border: 2px solid #000;
  padding: 3px 7px; transform: rotate(2deg);
}
.goldbanner__lock { font-size: .66rem; font-weight: 800; letter-spacing: 1.5px; color: #ffd94d; }
.goldbanner__spotsbar {
  display: block; height: 12px; border: 2.5px solid var(--ink);
  background: #0d0a05; position: relative;
}
.goldbanner__spotsbar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffc800, #ffe08a);
  transition: width .8s ease;
}
.goldbanner__spotslbl {
  display: block; font-size: .6rem; font-weight: 800;
  letter-spacing: 1.5px; color: #c9c2b2;
}
.goldbanner__cta {
  font-family: "Archivo Black", sans-serif; font-size: .76rem; letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  color: #111; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 18px; text-decoration: none; text-align: center; white-space: nowrap;
  animation: goldGlowNav 2.4s ease-in-out infinite;
}
.goldbanner__cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); filter: brightness(1.05); }

/* 💬 GOLD — WhatsApp QR offer (number hidden, preloaded message) */
.wadeal {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 14px;
  background: #e9ffe9; border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none; color: var(--ink);
  transition: transform .1s, box-shadow .1s;
}
html.dark .wadeal { background: #14231a; color: #f2ead8; }
.wadeal:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.wadeal__ico {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 19px; background: #25d366; border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.wadeal span:nth-child(2) { flex: 1; min-width: 0; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.wadeal b { color: #128c4b; }
html.dark .wadeal b { color: #4ade80; }
.wadeal__go {
  flex: none; font-family: "Archivo Black", sans-serif; font-size: .62rem; letter-spacing: 1px;
  background: #25d366; color: #111; border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); padding: 8px 11px; white-space: nowrap;
}
@media (max-width: 560px) { .wadeal__go { width: 100%; text-align: center; } }

@media (max-width: 860px) {
  .goldbanner__box { flex-direction: column; }
  .goldbanner__offer { border-left: none; border-top: 2px dashed rgba(255,200,0,.35); padding: 14px 16px 18px; }
  .goldbanner__main { padding-bottom: 10px; }
}
@media (max-width: 560px) {
  .goldbanner__main { padding: 14px 14px 8px; }
  .goldbanner__title { font-size: 1.05rem; }
  .goldbanner__price b { font-size: 1.6rem; }
  .goldbanner__cta { padding: 11px 14px; font-size: .68rem; }
}

/* ============================================================
   🎙️ HUMAN AUDIO · LIVE SAMPLES — matches the app's podcast
   mini-player design language (rounded card, art box, circular
   play, LIVE dot + equalizer, shimmer progress)
   ============================================================ */
/* LISTEN button inside the HUMAN AUDIO card — same shape as the
   podcast button on book pages (rounded 10px, yellow, ink border) */
.gs-open {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: .5px;
  color: var(--on-accent);
  background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 10px; padding: 9px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.gs-open:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.gs-open:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.gs-open__ico {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--chip); color: var(--yellow);
  font-size: 9px; line-height: 1;
}
html.dark .gs-open { color: #111; box-shadow: 3px 3px 0 #000; }
html.dark .gs-open__ico { background: #000; }
.goldcard--audio .live {
  font-family: "Space Grotesk", sans-serif; font-size: 9px; letter-spacing: 2px;
  background: var(--red); color: #fff; border: 2px solid var(--ink);
  border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 3px;
  animation: liveBlink 1.1s ease-in-out infinite;
}
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* the expandable panel — identical DNA to .tsb-player */
.gs-panel { max-width: 1180px; margin: 6px auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.gs-panel__card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(17,17,17,.85);
  overflow: hidden;
}
html.dark .gs-panel__card { background: #1b1712; box-shadow: 6px 6px 0 #000; }

/* top progress track — sleek dark bar with yellow fill + shimmer */
.gs-panel__prog { height: 8px; background: #111; position: relative; overflow: hidden; }
.gs-panel__prog i {
  display: block; height: 100%; width: 0%;
  background: var(--yellow);
  transition: width .4s linear;
  position: relative;
}
.gs-panel__prog i::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: progShine 2.2s ease-in-out infinite;
}
@keyframes progShine { 0% { left: -40%; } 60%, 100% { left: 110%; } }

/* top row: art + titles + close — same as tsb-player__top */
.gs-panel__top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 8px;
}
.gs-panel__art {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  border: 3px solid var(--ink); background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; position: relative; overflow: hidden;
}
.gs-panel__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-panel__eq {
  position: absolute; right: -6px; bottom: -6px;
  display: flex; align-items: flex-end; gap: 2px;
  background: var(--chip); border: 2.5px solid var(--ink);
  border-radius: 7px; padding: 3px 4px;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.gs-panel__eq i { width: 3px; height: 5px; background: var(--yellow); border-radius: 1px; }
.gs-panel__eq--on { opacity: 1; transform: scale(1); }
.gs-panel__eq--on i { animation: eqBar .9s ease-in-out infinite; }
.gs-panel__eq--on i:nth-child(2) { animation-delay: .18s; }
.gs-panel__eq--on i:nth-child(3) { animation-delay: .36s; }
.gs-panel__eq--on i:nth-child(4) { animation-delay: .54s; }
@keyframes eqBar { 0%, 100% { height: 5px; } 50% { height: 15px; } }

.gs-panel__info { flex: 1; min-width: 0; }
.gs-panel__title {
  font-family: "Archivo Black", sans-serif; font-size: 12.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
}
html.dark .gs-panel__title { color: #f2ead8; }
.gs-panel__sub { font-size: 10.5px; color: #777; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .gs-panel__sub { color: #b3a98f; }
.gs-panel__live {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 1px;
  color: #999; opacity: 0; height: 0; overflow: hidden;
  transition: opacity .2s, height .2s;
}
.gs-panel__live--on { opacity: 1; height: 13px; color: var(--red); }
.gs-panel__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: inline-block;
  animation: liveDot 1s ease-in-out infinite;
}
@keyframes liveDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

.gs-panel__close {
  flex: none; width: 32px; height: 32px;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 9px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "Archivo Black", sans-serif; font-size: 13px;
  transition: transform .08s;
}
.gs-panel__close:hover { transform: translate(-1px,-1px); background: var(--red); color: #fff; }
html.dark .gs-panel__close { background: #241f18; color: #f2ead8; }
html.dark .gs-panel__close:hover { background: var(--red); color: #fff; }

/* rows — playlist style, same buttons as the mini-player */
.gs-panel__list { padding: 2px 12px 6px; }
.gs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px;
  border-top: 2px dashed rgba(17,17,17,.14);
  transition: background .15s;
}
.gs-row:first-child { border-top: none; }
.gs-row:hover { background: rgba(255,200,0,.07); }
.gs-row:hover .gs-row__art img, .gs-row.playing .gs-row__art img { transform: scale(1.07); }
.gs-row__art img { transition: transform .2s ease; }
html.dark .gs-row { border-top-color: rgba(255,255,255,.1); }
.gs-row__art {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  border: 3px solid var(--ink); background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; position: relative; overflow: hidden;
}
.gs-row__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-row__eq {
  position: absolute; right: -6px; bottom: -6px;
  display: flex; align-items: flex-end; gap: 2px;
  background: var(--chip); border: 2.5px solid var(--ink);
  border-radius: 7px; padding: 3px 4px;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.gs-row__eq i { width: 3px; height: 5px; background: var(--yellow); border-radius: 1px; }
.gs-row__eq--on { opacity: 1; transform: scale(1); }
.gs-row__eq--on i { animation: eqBar .9s ease-in-out infinite; }
.gs-row__eq--on i:nth-child(2) { animation-delay: .18s; }
.gs-row__eq--on i:nth-child(3) { animation-delay: .36s; }
.gs-row__eq--on i:nth-child(4) { animation-delay: .54s; }

.gs-row__meta { flex: 1; min-width: 0; }
.gs-row__title {
  font-family: "Archivo Black", sans-serif; font-size: 12px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
}
html.dark .gs-row__title { color: #f2ead8; }
.gs-row__sub { font-size: 10.5px; color: #777; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .gs-row__sub { color: #b3a98f; }
.gs-tag {
  display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #111;
  background: var(--yellow); border: 1.5px solid var(--ink);
  border-radius: 5px; padding: 1px 5px; margin-left: 3px; vertical-align: 1px;
  box-shadow: 1px 1px 0 var(--ink);
}
.gs-tag:first-of-type { margin-left: 6px; }
html.dark .gs-tag { background: #3a2c1a; color: #ffd94d; border-color: #000; box-shadow: 1px 1px 0 #000; }
.gs-row__live {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 1px;
  color: #999; opacity: 0; height: 0; overflow: hidden;
  transition: opacity .2s, height .2s;
}
.gs-row__live--on { opacity: 1; height: 13px; color: var(--red); }
.gs-row__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: inline-block;
  animation: liveDot 1s ease-in-out infinite;
}

/* track + circular play — same shapes as the mini-player */
.gs-row__track { width: 150px; flex: none; }
.gs-row__bar {
  height: 8px; background: #111; cursor: pointer;
  position: relative; overflow: hidden; border-radius: 4px;
}
.gs-row__bar i {
  display: block; height: 100%; width: 0%;
  background: var(--yellow);
  transition: width .15s linear;
  position: relative;
}
.gs-row__bar i::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: progShine 2.2s ease-in-out infinite;
}
.gs-row__time {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1px;
  color: #999; margin-top: 4px; font-variant-numeric: tabular-nums; text-align: right;
}
.gs-row__play {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--yellow); color: var(--on-accent);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; padding: 0;
  transition: transform .08s, box-shadow .08s;
}
.gs-row__play svg { display: block; }
.gs-row__play:hover { transform: translate(-1px,-1px); }
.gs-row__play:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.gs-row.playing .gs-row__play { background: #111; color: var(--yellow); }
html.dark .gs-row__play { background: var(--yellow); color: var(--on-accent); }
html.dark .gs-row.playing .gs-row__play { background: #000; color: var(--yellow); }

.gs-panel__foot {
  text-align: center; font-size: 11px; font-weight: 600; color: #777;
  padding: 8px 14px 12px; border-top: 2px dashed rgba(17,17,17,.14);
}
html.dark .gs-panel__foot { color: #b3a98f; border-top-color: rgba(255,255,255,.1); }
.gs-panel__foot b { color: var(--ink); }
html.dark .gs-panel__foot b { color: #ffc800; }

@media (max-width: 640px) {
  .gs-row { flex-wrap: wrap; gap: 8px 10px; }
  .gs-row__track { width: 100%; order: 5; }
  .gs-row__play { width: 40px; height: 40px; }
}


/* ============================================================
   📷 BOOK SCANNER — minimal button + fullscreen live scanner
   ============================================================ */
/* SEARCH row: one joined professional bar — input + camera icon + FIND IT */
.searchrow { display: flex; gap: 0; align-items: stretch; }
.searchrow .search { flex: 1 1 auto; min-width: 0; }

/* camera scan button — joined inside the bar, icon only (no text),
   divider matches FIND IT, transparent so the paper bar shows through.
   It's an <a href="scan.html"> now: standalone scanner page = zero cache risk */
.search .scanbtn {
  border: none;
  border-left: var(--border);
  background: transparent;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.search .scanbtn:hover { background: var(--yellow); color: var(--on-accent); }
.search .scanbtn:active { background: var(--red); color: #fff; }
.scanbtn__ico { flex: none; display: block; transition: transform .15s; }
.search .scanbtn:hover .scanbtn__ico { transform: rotate(-6deg) scale(1.08); }
html.dark .search .scanbtn { color: #e8e2d0; }
html.dark .search .scanbtn:hover { background: #3a2c1a; color: #ffd94d; }

/* ---------- fullscreen scanner ---------- */
.scanmodal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  animation: scanModalIn .28s ease-out;
}
.scanmodal--open { display: block; }
@keyframes scanModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.scanmodal__stage { position: absolute; inset: 0; overflow: hidden; }
.scanmodal__stage video, .scanmodal__stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.scanmodal__stage canvas { display: none; }

/* dark vignette + frame */
.scanmodal__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
.scanmodal__corner {
  position: absolute; width: 44px; height: 44px;
  border: 4px solid #ffc800;
  filter: drop-shadow(0 0 6px rgba(255,200,0,.5));
}
.scanmodal__corner--tl { top: 14%; left: 10%; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.scanmodal__corner--tr { top: 14%; right: 10%; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.scanmodal__corner--bl { bottom: 26%; left: 10%; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.scanmodal__corner--br { bottom: 26%; right: 10%; border-left: none; border-top: none; border-radius: 0 0 10px 0; }
.scanmodal__scanline {
  position: absolute; left: 12%; right: 12%; top: 30%; height: 3px;
  background: linear-gradient(90deg, transparent, #ffc800, transparent);
  box-shadow: 0 0 14px rgba(255,200,0,.7);
  animation: scanSweep 2.4s ease-in-out infinite;
}
@keyframes scanSweep { 0% { top: 26%; } 50% { top: 74%; } 100% { top: 26%; } }

.scanmodal__hint {
  position: absolute; bottom: 104px; left: 0; right: 0;
  text-align: center; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
.scanmodal__hint b {
  display: block; font-family: "Archivo Black", sans-serif; font-size: .95rem; letter-spacing: 2px;
  color: #ffc800;
}
.scanmodal__hint span { display: block; font-size: .72rem; font-weight: 600; margin-top: 4px; opacity: .9; }
.scanmodal__empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: .82rem; font-weight: 700; text-align: center; padding: 24px;
}

/* top bar — title chip + close */
.scanmodal__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0));
  pointer-events: none;
}
.scanmodal__top .scanmodal__title,
.scanmodal__top .scanmodal__close { pointer-events: auto; }
.scanmodal__title {
  font-family: "Archivo Black", sans-serif; font-size: .72rem; letter-spacing: 2px;
  color: #fff; background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.4);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.scanmodal__close {
  width: 46px; height: 46px;
  border: 3px solid #111; background: rgba(255,255,255,.95); color: #111;
  border-radius: 14px; font-family: "Archivo Black", sans-serif; font-size: 16px;
  cursor: pointer; box-shadow: 3px 3px 0 rgba(0,0,0,.55); flex: none;
}
.scanmodal__close:hover { background: #ff5252; color: #fff; }

/* bottom bar — FLIP CAMERA + FIND BOOK SUMMARY */
.scanmodal__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.scanmodal__flip {
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  border: 3px solid rgba(255,255,255,.9); background: rgba(255,255,255,.16);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 3px 14px rgba(0,0,0,.45); transition: transform .12s, background .12s;
}
.scanmodal__flipico { font-size: 22px; line-height: 1; }
.scanmodal__fliptxt { font-family: "Archivo Black", sans-serif; font-size: .52rem; letter-spacing: 1.5px; }
.scanmodal__flip:hover { background: rgba(255,255,255,.3); }
.scanmodal__flip:active { transform: scale(.93); }
.scanmodal__find {
  flex: 1 1 auto; max-width: 330px; height: 60px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid #111; background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  color: #111; font-family: "Archivo Black", sans-serif; font-size: .78rem; letter-spacing: 1.5px;
  cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,.5);
  transition: transform .12s, filter .12s;
}
.scanmodal__findico { font-size: 15px; }
.scanmodal__find:hover { filter: brightness(1.07); }
.scanmodal__find:active { transform: translateY(2px) scale(.99); }
.scanmodal__find:disabled { opacity: .6; filter: grayscale(.5); cursor: default; }

/* request-a-book + search library (NOT FOUND screen) */
.scanmodal__rgo--search {
  background: linear-gradient(135deg, #7c5cff, #5f3df0 55%, #4a2bd6);
  color: #fff;
}
.scanmodal__request {
  font-family: "Archivo Black", sans-serif; font-size: .68rem; letter-spacing: 1px;
  color: #9bd1ff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  padding: 4px 6px;
}
.scanmodal__request:hover { color: #cdeaff; }

/* analyzing */
.scanmodal__analyzing {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(0,0,0,.78);
  color: #fff; font-family: "Archivo Black", sans-serif; font-size: .85rem; letter-spacing: 1.5px;
  animation: scanFadeIn .2s ease-out;
}
@keyframes scanFadeIn { from { opacity: 0; } to { opacity: 1; } }
.scanmodal__spinner {
  width: 40px; height: 40px; border: 4px solid #ffc800; border-top-color: transparent;
  border-radius: 50%; animation: scanSpin .8s linear infinite;
}
@keyframes scanSpin { to { transform: rotate(360deg); } }

/* result overlays */
.scanmodal__result {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background: rgba(0,0,0,.82);
  animation: scanResultIn .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes scanResultIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.scanmodal__rbadge {
  font-family: "Archivo Black", sans-serif; font-size: .9rem; letter-spacing: 2px;
  padding: 8px 18px; border-radius: 999px;
}
.scanmodal__result--found .scanmodal__rbadge { background: #00c48c; color: #fff; box-shadow: 0 0 18px rgba(0,196,140,.5); }
.scanmodal__result--no .scanmodal__rbadge { background: #ff5252; color: #fff; }
.scanmodal__rbook {
  font-family: "Archivo Black", sans-serif; font-size: 1.5rem; color: #fff;
  text-transform: uppercase; letter-spacing: .5px; max-width: 90%;
}
.scanmodal__rgo {
  font-family: "Archivo Black", sans-serif; font-size: .78rem; letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd94d, #ffc800 55%, #e6a800);
  color: #111; border: 3px solid #111; border-radius: 12px;
  padding: 14px 22px; cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.6);
}
.scanmodal__rgo:hover { transform: translate(-1px,-1px); filter: brightness(1.06); }
.scanmodal__ragain {
  font-family: "Archivo Black", sans-serif; font-size: .68rem; letter-spacing: 1px;
  background: transparent; color: #ccc; border: 2px solid #555; border-radius: 10px;
  padding: 10px 18px; cursor: pointer;
}
.scanmodal__ragain:hover { color: #fff; border-color: #aaa; }
.scanmodal__noTxt { color: #ddd; font-size: .82rem; font-weight: 600; max-width: 420px; line-height: 1.5; }
.scanmodal__type {
  width: min(360px, 88vw);
  border: 3px solid #111; border-radius: 10px;
  background: #fff; color: #111;
  font-family: inherit; font-weight: 700; font-size: .9rem;
  padding: 13px 14px; box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.scanmodal__typeHint { display: flex; flex-direction: column; gap: 8px; width: min(360px, 88vw); }
.scanmodal__typehit {
  display: flex; flex-direction: column; gap: 2px;
  border: 2.5px solid #111; border-radius: 10px; background: #fff; color: #111;
  padding: 10px 14px; cursor: pointer; text-align: left;
}
.scanmodal__typehit:hover { background: #ffc800; }
.scanmodal__typehit b { font-family: "Archivo Black", sans-serif; font-size: .72rem; text-transform: uppercase; }
.scanmodal__typehit small { font-size: .64rem; color: #777; }
.scanmodal__typenone { color: #bbb; font-size: .72rem; font-weight: 700; }


/* ============================================================
   📱 PREMIUM BOTTOM ACTION BAR — Home · Read · + · Chat · You
   ------------------------------------------------------------
   NON-NEGOTIABLE RULES (do not break):
   1. The bar is centred with left:50% → EVERY rule that
      re-declares transform on .tsb-bar MUST re-state
      translateX(-50%), or the bar slides diagonally off-screen.
   2. Animate transform & opacity ONLY — never bottom/height/width.
   3. The active state is painted ONLY by .tsb-bar__item::before.
      No background on the item itself (double-layering).
   4. `contain: layout paint` stays on the bar (no page reflow).
   5. Scrolling pages: padding-bottom: calc(var(--bar-total) + 24px)
      (applied below via html.tsb-hasbar, set by js/bar.js).
   ============================================================ */
:root {
  --tsb-bar-h: 64px;
  --tsb-bar-gap: 10px;
  --bar-total: calc(var(--tsb-bar-h) + var(--tsb-bar-gap) + env(safe-area-inset-bottom, 0px));
}
.tsb-bar {
  position: fixed;
  bottom: calc(var(--tsb-bar-gap) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(560px, calc(100vw - 14px));
  display: flex; align-items: stretch;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 6px 0 var(--ink);
  contain: layout paint;
  z-index: 260;
  opacity: 1;
  transition: transform .32s cubic-bezier(.2,.9,.3,1.08), opacity .26s ease;
  -webkit-tap-highlight-color: transparent;
}
/* parked state (enter + scroll-hide): straight down, translateX kept! */
.tsb-bar--off {
  transform: translateX(-50%) translateY(calc(100% + var(--bar-total) + 30px));
  opacity: 0;
}
.tsb-bar__item {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  min-height: var(--tsb-bar-h);
  padding: 8px 2px;
  border: 0;
  background: none;                 /* ::before owns the active state */
  color: #8f8a80;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .2px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, color .12s ease;
}
.tsb-bar__item:active { transform: scale(.92); }
.tsb-bar__item svg { width: 22px; height: 22px; display: block; }
/* ACTIVE PILL — painted ONLY by this ::before (rule 3) */
.tsb-bar__item::before {
  content: "";
  position: absolute;
  inset: 6px 7px;
  border-radius: 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .18s ease, transform .24s cubic-bezier(.2,.9,.3,1.35);
  z-index: -1;
}
.tsb-bar__item.is-active { color: #111111; }
.tsb-bar__item.is-active::before { opacity: 1; transform: scale(1); }
/* centre red + (scan) */
.tsb-bar__item--plus { color: #fff; }
.tsb-bar__plus {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease;
}
.tsb-bar__plus svg { width: 22px; height: 22px; }
.tsb-bar__item--plus:active .tsb-bar__plus { transform: scale(.92); }
/* dark mode */
html.dark .tsb-bar { border-color: #000; box-shadow: 5px 6px 0 #000; }
html.dark .tsb-bar__item { color: #8d867b; }
html.dark .tsb-bar__item--plus { color: #fff; }
html.dark .tsb-bar__item.is-active { color: #111111; }
html.dark .tsb-bar__item::before { border-color: #000; }
html.dark .tsb-bar__plus { border-color: #000; box-shadow: 3px 3px 0 #000; }
/* rule 5: page padding + lift every bottom-fixed widget above the bar */
@media (max-width: 768px) {
  html.tsb-hasbar body { padding-bottom: calc(var(--bar-total) + 24px); }
  html.tsb-hasbar .toast { bottom: calc(var(--bar-total) + 32px); }
  html.tsb-hasbar .achvpop { bottom: calc(var(--bar-total) + 16px); }
  html.tsb-hasbar .aq-panel { bottom: calc(var(--bar-total) + 12px); height: min(70vh, 620px); }
  html.tsb-hasbar .tsb-player { bottom: calc(var(--bar-total) + 14px); }
  html.tsb-hasbar .lessonnav__fab { bottom: calc(var(--bar-total) + 18px); }
  html.tsb-hasbar .lessonnav__panel { bottom: calc(var(--bar-total) + 78px); }
}
/* v13 — the action bar lives on EVERY screen now (phone, tablet,
   laptop, desktop): same centred floating pill, same rules. */
@media (min-width: 769px) {
  .tsb-bar { width: min(470px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .tsb-bar, .tsb-bar__item::before, .tsb-bar__plus { transition: none; }
}


/* ============================================================
   📱 v2 UPGRADES — pill trim · sign-in sheet · YOU pages ·
   full-page chat · settings · 7-step onboarding
   (bar rules still hold: translateX(-50%) everywhere on .tsb-bar,
    transform/opacity-only animation, ::before owns active state)
   ============================================================ */

/* --- active pill: trimmed smaller + premium micro-motion --- */
.tsb-bar__item svg { transition: transform .18s cubic-bezier(.2,.9,.3,1.3); }
.tsb-bar__item::before { inset: 8px 10px; border-radius: 12px; border-width: 2.5px; }
.tsb-bar__item.is-active svg { transform: translateY(-1px) scale(1.05); }
/* the + (Stories) shows "active" by inverting — no pill behind it */
.tsb-bar__item--plus::before { display: none; }
.tsb-bar__item--plus.is-active .tsb-bar__plus { background: var(--chip); color: var(--yellow); }

/* --- 📱 premium sign-in sheet (You tab, signed out) --- */
.tsb-sheetwrap { position: fixed; inset: 0; z-index: 9995; pointer-events: none; }
.tsb-sheetveil { position: absolute; inset: 0; background: rgba(10,8,4,.52); opacity: 0; transition: opacity .28s ease; }
.tsb-sheet {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(105%);
  width: min(560px, 100vw);
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 44px rgba(0,0,0,.28);
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  transition: transform .36s cubic-bezier(.2,.9,.3,1.04);
}
.tsb-sheetwrap--on { pointer-events: auto; }
.tsb-sheetwrap--on .tsb-sheetveil { opacity: 1; }
.tsb-sheetwrap--on .tsb-sheet { transform: translateX(-50%) translateY(0); }
.tsb-sheet__grip { width: 46px; height: 5px; border-radius: 99px; background: rgba(127,127,127,.35); margin: 6px auto 10px; }
.tsb-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tsb-sheet__title { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 1px; }
.tsb-sheet__x { width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: 2.5px 2.5px 0 var(--ink); }
.tsb-sheet__wave { font-size: 40px; line-height: 1; margin: 4px 0 8px; }
.tsb-sheet__h { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; margin-bottom: 8px; }
.tsb-sheet__s { color: #8f8a80; font-size: .88rem; margin-bottom: 16px; }
.tsb-sheet__perk { display: flex; align-items: center; gap: 12px; text-align: left; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); padding: 13px 14px; margin-bottom: 10px; font-weight: 600; font-size: .9rem; }
.tsb-sheet__perk span { font-size: 1.25rem; }
.tsb-sheet__google { width: 100%; margin-top: 8px; background: var(--yellow); color: #111; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 14px; font-family: var(--font-body); font-weight: 800; font-size: .98rem; cursor: pointer; }
.tsb-sheet__mail { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; border: 2.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 14px; padding: 12px; font-family: var(--font-body); font-weight: 800; font-size: .92rem; text-decoration: none; }
.tsb-sheet__fine { color: #8f8a80; font-size: .7rem; margin-top: 12px; }

/* --- YOU page: professional sign-in + account (same link) --- */
.youview { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
.youpage__x { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 5; width: 40px; height: 40px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; display: grid; place-items: center; box-shadow: 2.5px 2.5px 0 var(--ink); }
.youcard { width: min(560px, 100%); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink); padding: 36px 26px 24px; text-align: center; }
.youcard__icon { width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 36px; background: var(--yellow); border-radius: 22px; box-shadow: 0 0 44px rgba(255,200,0,.55); }
.youcard h1 { font-size: 1.55rem; letter-spacing: .5px; margin-bottom: 10px; }
.youcard__s { color: #8f8a80; font-size: .9rem; margin-bottom: 18px; }
.youperk { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.youperk span { font-size: 1.3rem; }
.youperk b { display: block; font-size: .9rem; }
.youperk i { font-style: normal; color: #8f8a80; font-size: .76rem; }
.yougoogle { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); color: #111; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 14px; font-family: var(--font-body); font-weight: 800; font-size: 1rem; cursor: pointer; }
.yougoogle svg { width: 21px; height: 21px; }
html.dark .yougoogle { background: #fff; color: #111; }
/* ---- v253 · create account / sign in ---- */
.yotabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg); border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px; margin-bottom: 18px; }
.yotab { border: 0; background: transparent; border-radius: 9px; padding: 11px 6px; font-family: var(--font-head), "Archivo Black", system-ui, sans-serif; font-weight: 900; font-size: .78rem; letter-spacing: .4px; color: var(--ink); cursor: pointer; opacity: .55; }
.yotab.on { background: var(--yellow); opacity: 1; box-shadow: 2px 2px 0 var(--ink); }
.yoform { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.yoin { width: 100%; background: var(--bg); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; padding: 13px 14px; font-family: var(--font-body); font-size: .95rem; font-weight: 600; }
.yoin:focus { outline: none; box-shadow: 3px 3px 0 var(--yellow); }
.yoin::placeholder { color: #a29b8c; font-weight: 500; }
.yopass { position: relative; }
.yopass .yoin { padding-right: 52px; }
.yoeye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; padding: 6px; }
.yoage { background: var(--bg); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.yoage__t { font-size: .8rem; font-weight: 700; }
.yoage__t b { background: var(--yellow); padding: 0 4px; border-radius: 5px; }
.yoage__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.yoage__h { font-size: .68rem; color: #8f8a80; }
.yogo { border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow); color: #111; box-shadow: 4px 4px 0 var(--ink); padding: 14px; font-family: var(--font-head), "Archivo Black", system-ui, sans-serif; font-weight: 900; letter-spacing: .4px; font-size: .95rem; cursor: pointer; margin-top: 4px; }
.yogo:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.yogo:disabled { opacity: .6; cursor: wait; }
.yoforgot { border: 0; background: transparent; color: #8f8a80; font-family: var(--font-body); font-weight: 700; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 2px; }
.yostrip { border: 2.5px solid var(--ink); border-radius: 12px; padding: 11px 13px; font-size: .84rem; font-weight: 700; line-height: 1.5; margin-top: 12px; text-align: left; }
.yostrip--err { background: #ffe3dc; }
.yostrip--ok { background: #e4f7d9; }
html.dark .yostrip--err { background: #4a221c; color: #ffd9cf; }
html.dark .yostrip--ok { background: #24391a; color: #dcf5c9; }
.yodiv { display: flex; align-items: center; gap: 12px; color: #b5ad9e; font-size: .72rem; font-weight: 800; letter-spacing: 2px; margin: 16px 0 2px; }
.yodiv::before, .yodiv::after { content: ""; height: 2px; background: var(--ink); opacity: .15; flex: 1; }
html.dark .yotab { color: var(--ink); }
.yorow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.youser { position: relative; }
.youser .yoin { padding-left: 30px; padding-right: 86px; }
.youser__at { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #a29b8c; }
.youser__state { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 800 11px "Space Grotesk", system-ui, sans-serif; letter-spacing: .4px; }
.youser__state.is-ok { color: #2e7d32; }
.youser__state.is-bad { color: #c0392b; }
html.dark .youser__state.is-ok { color: #9dde93; }
html.dark .youser__state.is-bad { color: #ffb4a4; }
.yotick { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 2px dashed var(--ink); border-radius: 12px; padding: 11px 12px; cursor: pointer; text-align: left; }
.yotick input { position: absolute; opacity: 0; pointer-events: none; }
.yotick__box { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2.5px solid var(--ink); border-radius: 7px; background: #fff; color: #111; display: grid; place-items: center; font-weight: 900; font-size: 13px; opacity: 0; transition: opacity .12s; }
.yotick input:checked + .yotick__box { opacity: 1; background: var(--yellow); }
.yotick input:focus-visible + .yotick__box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.yotick__t { font-size: .78rem; line-height: 1.55; font-weight: 600; }
.yotick__t a { color: inherit; }
.yohint { margin: 10px 0 0; font-size: .74rem; line-height: 1.6; color: #8f8a80; font-weight: 600; }
/* the official channel avatar is the app's own logo */
.cm-ava--lib img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
html.dark .yoin { background: rgba(255,255,255,.06); }
.youskip { display: inline-block; margin-top: 16px; color: #8f8a80; font-weight: 600; font-size: .85rem; }
.youfine { color: #8f8a80; font-size: .7rem; line-height: 1.7; margin-top: 14px; }
.youfine a { color: inherit; }

/* --- account (signed-in state, same URL) --- */
.accbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.accbar__acts { display: flex; gap: 8px; }
.acc { max-width: 640px; margin: 0 auto; padding: 4px 16px calc(120px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.acc__hero { display: flex; align-items: center; gap: 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 16px; }
.acc__ava { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: #111; border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; overflow: hidden; }
.acc__ava img { width: 100%; height: 100%; object-fit: cover; }
.acc__who { min-width: 0; }
.acc__who h1 { font-size: 1.15rem; margin-bottom: 2px; }
.acc__who p { color: #8f8a80; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc__cloud { margin-left: auto; flex: none; font-size: .58rem; font-weight: 800; letter-spacing: 1px; background: var(--green); color: #06301f; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; }
.acc__level { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; }
.acc__level .levelbar { height: 12px; }
.acc__level .levelbar i { background: var(--yellow); }
.acc__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.accstat { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 12px 6px; text-align: center; }
.accstat b { display: block; font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 3px; }
.accstat span { font-size: .58rem; letter-spacing: .6px; text-transform: uppercase; color: #8f8a80; font-weight: 700; }
.acc__menu { display: flex; flex-direction: column; gap: 10px; }
.accrow { display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.accrow span { font-size: 1.15rem; }
.accrow i { margin-left: auto; font-style: normal; color: #8f8a80; }
.acc__out { background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 13px; font-family: var(--font-body); font-weight: 800; font-size: .92rem; cursor: pointer; }

/* --- 💬 full-page chat mode (chat.html) --- */
.tsb-ask--page .aq-panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: 100%; height: auto;
  border: 0; border-radius: 0; box-shadow: none;
  transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  transition: none;
}
@media (max-width: 768px) {
  .tsb-ask--page .aq-panel { bottom: calc(var(--bar-total) + 10px); }
}
.tsb-ask--page .aq-close { display: none; }
.aq-back { flex: none; width: 36px; height: 36px; margin-right: 6px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 2.5px 2.5px 0 var(--ink); }
.aq-search { padding: 10px 12px 0; }
.aq-search input { width: 100%; border: 2.5px solid var(--ink); border-radius: 13px; background: var(--bg); color: var(--ink); padding: 11px 14px; font-family: var(--font-body); font-size: .9rem; }
.aq-search input:focus { outline: 2px solid var(--yellow); }

/* --- ⚙️ settings page --- */
.set { max-width: 640px; margin: 0 auto; padding: 4px 16px calc(120px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.set__h { font-size: 1.5rem; }
.setcard { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 16px; }
.setcard h2 { font-size: .92rem; margin-bottom: 12px; }
.setrow { display: flex; gap: 10px; }
.setopt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2.5px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 12px; font-family: var(--font-body); font-weight: 700; font-size: .9rem; cursor: pointer; }
.setopt--md { font-size: 1.15rem; }
.setopt--lg { font-size: 1.4rem; }
.setopt.on { background: var(--yellow); color: #111; box-shadow: 3px 3px 0 var(--ink); }
.sethint { color: #8f8a80; font-size: .72rem; margin-top: 10px; }
.setlangs { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 8px; max-height: 262px; overflow: auto; }
.setlang { display: flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 9px 10px; font-family: var(--font-body); font-size: .76rem; font-weight: 600; cursor: pointer; }
.setlang.on { background: var(--yellow); color: #111; box-shadow: 2.5px 2.5px 0 var(--ink); }
.setbtn { display: block; width: 100%; margin-top: 10px; border: 2.5px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 11px; font-family: var(--font-body); font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: none; text-align: center; }
.setbtn--yellow { background: var(--yellow); color: #111; box-shadow: 3px 3px 0 var(--ink); }
.setbtn--red { background: var(--red); color: #fff; }
.setacc__in { font-size: .9rem; margin-bottom: 4px; }
.setacc__in i { color: #8f8a80; }

/* --- 🎯 7-step onboarding --- */
.ob-lock { overflow: hidden; }
.obwrap { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(12,10,6,.55); backdrop-filter: blur(3px); transition: opacity .4s ease; }
.obwrap--off { opacity: 0; pointer-events: none; }
.ob { position: relative; width: min(460px, 100%); max-height: min(84dvh, 660px); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 rgba(0,0,0,.4); padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.ob__prog { display: flex; gap: 6px; margin: 6px 0 16px 36px; }
.ob__prog i { flex: 1; height: 5px; border-radius: 99px; background: rgba(127,127,127,.25); transition: background .25s; }
.ob__prog i.on { background: var(--yellow); }
.ob__back { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.ob__body { position: relative; flex: 1; overflow-y: auto; }
.ob-step { transition: transform .22s ease, opacity .22s ease; }
.ob-step--enter { transform: translateX(28px); opacity: 0; }
.ob-step--enterback { transform: translateX(-28px); }
.ob-step--out, .ob-step--outback { position: absolute; inset: 0; opacity: 0; }
.ob-step--out { transform: translateX(-28px); }
.ob-step--outback { transform: translateX(28px); }
.ob-step h2 { font-family: var(--font-head); font-size: 1.22rem; text-transform: uppercase; margin: 2px 0 6px; }
.ob-step__center { text-align: center; padding-top: 6px; }
.ob-step__center h2 span { color: var(--red); }
.ob-logo { width: 74px; height: 74px; margin: 6px auto 12px; display: grid; place-items: center; font-size: 34px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
.ob-tag { letter-spacing: 2.4px; font-size: .66rem; text-transform: uppercase; color: #8f8a80; font-weight: 700; margin-bottom: 12px; }
.ob-sub { color: #8f8a80; font-size: .85rem; margin-bottom: 14px; }
.ob-input { width: 100%; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--bg); color: var(--ink); padding: 13px 14px; font-family: var(--font-body); font-size: 1rem; margin-bottom: 14px; }
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.ob-grid--mins { grid-template-columns: repeat(4, 1fr); }
.ob-chip { display: flex; align-items: center; gap: 8px; border: 2.5px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 11px 12px; font-family: var(--font-body); font-weight: 600; font-size: .8rem; cursor: pointer; text-align: left; }
.ob-chip span { font-size: 1.05rem; }
.ob-chip.on { background: var(--yellow); color: #111; box-shadow: 3px 3px 0 var(--ink); }
.ob-shake { animation: obShake .4s; }
@keyframes obShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ob-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 238px; overflow: auto; margin-bottom: 14px; }
.ob-lang { display: flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 9px 10px; font-family: var(--font-body); font-size: .75rem; font-weight: 600; cursor: pointer; }
.ob-lang.on { background: var(--yellow); color: #111; box-shadow: 2.5px 2.5px 0 var(--ink); }
.ob-btns { display: flex; gap: 10px; align-items: center; }
.ob-cta { flex: 1; background: var(--yellow); color: #111; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 13px; font-family: var(--font-body); font-weight: 800; font-size: .95rem; cursor: pointer; }
.ob-skip { background: none; border: 0; color: #8f8a80; font-family: var(--font-body); font-weight: 600; cursor: pointer; }
.ob-step--done { text-align: center; padding-top: 26px; }

/* --- dark-mode ink swaps for the new surfaces --- */
html.dark .tsb-sheet, html.dark .youcard, html.dark .acc__hero, html.dark .accstat,
html.dark .accrow, html.dark .setcard, html.dark .ob, html.dark .ob-chip,
html.dark .setopt, html.dark .setlang, html.dark .ob-lang, html.dark .acc__out,
html.dark .yougoogle, html.dark .tsb-sheet__google, html.dark .tsb-sheet__x,
html.dark .ob-cta, html.dark .aq-back, html.dark .setbtn, html.dark .youpage__x { border-color: #000; }
html.dark .youcard { box-shadow: 8px 8px 0 #000; }
html.dark .acc__hero, html.dark .ob { box-shadow: 6px 6px 0 #000; }
html.dark .accstat, html.dark .accrow, html.dark .setcard, html.dark .acc__out,
html.dark .yougoogle, html.dark .ob-cta, html.dark .tsb-sheet__google { box-shadow: 4px 4px 0 #000; }
html.dark .tsb-sheet__x, html.dark .aq-back, html.dark .youpage__x { box-shadow: 2.5px 2.5px 0 #000; }
html.dark .tsb-sheet { border-bottom: 0; }


/* ============================================================
   v3 POLISH — bar side-gap + pill trim · onboarding rows ·
   premium sign-in glow · ChatGPT-clean chat page
   ============================================================ */

/* --- bar: ~11px breathing gap from each screen edge --- */
.tsb-bar { width: min(560px, calc(100vw - 22px)); }
/* --- active pill: trimmed again (11px side gap inside each tab) --- */
.tsb-bar__item::before { inset: 9px 11px; border-radius: 12px; }

/* --- onboarding v3: full-width rows (overlap-proof) --- */
.ob-rows { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.ob-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 2.5px solid var(--ink); background: var(--bg); color: var(--ink);
  border-radius: 16px; padding: 12px 14px;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  text-align: left; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.ob-row:active { transform: scale(.985); }
.ob-row .ic { flex: none; font-size: 1.3rem; line-height: 1; }
.ob-row small { display: block; font-weight: 500; font-size: .72rem; color: #8f8a80; margin-top: 2px; }
.ob-row .tick { margin-left: auto; flex: none; font-weight: 800; opacity: 0; transition: opacity .15s; }
.ob-row.on { background: var(--yellow); color: #111; box-shadow: 3px 3px 0 var(--ink); }
.ob-row.on small { color: #5a4300; }
.ob-row.on .tick { opacity: 1; }
.ob-seg { display: flex; border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--bg); }
.ob-seg button {
  flex: 1; padding: 13px 4px; border: 0; border-right: 2.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font-family: var(--font-head); font-size: 1rem; cursor: pointer;
}
.ob-seg button:last-child { border-right: 0; }
.ob-seg button.on { background: var(--yellow); color: #111; }
.ob-sub--mt { margin-top: 12px; }
.ob-langs { grid-template-columns: 1fr 1fr; }
.ob-lang { justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
  .ob-row { font-size: .84rem; padding: 11px 12px; gap: 10px; }
  .ob-row .ic { font-size: 1.15rem; }
  .ob-langs { grid-template-columns: 1fr; }
}
html.dark .ob-row, html.dark .ob-seg { border-color: #000; }
html.dark .ob-row.on, html.dark .ob-seg button.on { box-shadow: 3px 3px 0 #000; }

/* --- premium sign-in: soft blue/violet glow page (your screenshot) --- */
#view-signin {
  background:
    radial-gradient(620px 340px at 85% -10%, rgba(77,124,255,.22), transparent 62%),
    radial-gradient(520px 300px at -10% 32%, rgba(255,77,77,.14), transparent 60%),
    radial-gradient(720px 420px at 50% 112%, rgba(178,141,255,.18), transparent 66%),
    var(--bg);
}
html.dark #view-signin {
  background:
    radial-gradient(660px 360px at 85% -10%, rgba(93,136,255,.30), transparent 62%),
    radial-gradient(560px 320px at -10% 32%, rgba(255,82,82,.20), transparent 60%),
    radial-gradient(780px 460px at 50% 112%, rgba(178,141,255,.24), transparent 66%),
    #141118;
}
.youcard__icon { box-shadow: 0 0 60px rgba(255,200,0,.6), 0 0 0 3px rgba(255,200,0,.22); }
html.dark .youcard {
  background: rgba(28,25,23,.84);
  backdrop-filter: blur(12px);
  border-color: rgba(242,234,216,.16);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
}
html.dark .youperk { background: rgba(255,255,255,.05); }
html.dark .youperk i, html.dark .youcard__s, html.dark .youfine, html.dark .youskip { color: #b3a98f; }

/* --- 💬 chat page: ChatGPT/Claude-clean (same engine, calm UI) --- */
.tsb-ask--page .aq-panel { background: var(--bg); }
.tsb-ask--page .aq-head {
  background: transparent; border: 0; box-shadow: none;
  padding: 10px 14px; border-bottom: 1px solid rgba(127,127,127,.28);
}
.tsb-ask--page .aq-head__t { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; }
.tsb-ask--page .aq-head__s { color: #8f8a80; }
.tsb-ask--page .aq-libbtn, .tsb-ask--page .aq-clear {
  background: transparent; border: 2px solid rgba(127,127,127,.4);
  box-shadow: none; border-radius: 10px;
}
.tsb-ask--page .aq-search { max-width: 760px; margin: 0 auto; width: 100%; padding: 12px 16px 0; }
.tsb-ask--page .aq-search input { border: 2px solid rgba(127,127,127,.4); border-radius: 999px; background: var(--paper); }
.tsb-ask--page .aq-chips { max-width: 760px; margin: 0 auto; width: 100%; padding: 10px 16px 0; }
.tsb-ask--page .aq-chip {
  background: var(--paper); border: 2px solid rgba(127,127,127,.35);
  box-shadow: none; border-radius: 999px; font-weight: 600;
}
.tsb-ask--page .aq-msgs { max-width: 760px; margin: 0 auto; width: 100%; padding: 18px 16px; gap: 18px; }
.tsb-ask--page .aq-bubble {
  border: 0; box-shadow: none; background: var(--paper);
  border-radius: 16px; padding: 12px 15px;
  font-size: .93rem; line-height: 1.68;
}
.tsb-ask--page .aq-bubble--user {
  background: var(--yellow); color: #111;
  border-radius: 16px 16px 4px 16px;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
}
.tsb-ask--page .aq-av { border: 2px solid var(--ink); box-shadow: none; }
.tsb-ask--page .aq-inputrow {
  max-width: 760px; margin: 0 auto; width: 100%;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent; border-top: 1px solid rgba(127,127,127,.28);
}
.tsb-ask--page .aq-input {
  border-radius: 999px; border: 2px solid rgba(127,127,127,.45);
  background: var(--paper); box-shadow: none;
}
.tsb-ask--page .aq-send { border-radius: 999px; box-shadow: none; }
html.dark .tsb-ask--page .aq-bubble { background: #241f17; }
html.dark .tsb-ask--page .aq-input { background: #241f17; }


/* ============================================================
   💬 v4 — TRUE MINIMAL CHAT PAGE (ChatGPT/Claude calm)
   Complete scoped reset: every aq-* element, chat page only.
   The pop-out on other pages is gone; this is the one chat UI.
   ============================================================ */
html { font-size: 16px; }              /* one default size on every phone */

.tsb-ask--page .aq-panel { background: var(--bg); }
/* header — slim, hairline, no chrome */
.tsb-ask--page .aq-head {
  background: transparent; border: 0; border-bottom: 1px solid rgba(127,127,127,.26);
  padding: 10px 12px; flex-wrap: nowrap;
}
.tsb-ask--page .aq-head__t { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; }
.tsb-ask--page .aq-head__s { color: #8f8a80; font-size: 10.5px; }
.tsb-ask--page .aq-libbtn, .tsb-ask--page .aq-clear {
  width: 34px; height: 34px; background: transparent;
  border: 1.5px solid rgba(127,127,127,.45); border-radius: 10px;
  box-shadow: none; font-size: 13px;
}
/* suggestion chips — quiet outline pills */
.tsb-ask--page .aq-chips {
  background: transparent; border-bottom: 0;
  max-width: 760px; margin: 0 auto; width: 100%;
  padding: 12px 16px 2px; gap: 8px;
}
.tsb-ask--page .aq-chip,
.tsb-ask--page .aq-chip--0, .tsb-ask--page .aq-chip--1, .tsb-ask--page .aq-chip--2,
.tsb-ask--page .aq-chip--3, .tsb-ask--page .aq-chip--4, .tsb-ask--page .aq-chip--all,
.tsb-ask--page .aq-chip--mini {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(127,127,127,.45); border-radius: 999px;
  box-shadow: none; font-family: var(--font-body); font-weight: 600;
  font-size: 11.5px; padding: 7px 12px;
}
.tsb-ask--page .aq-chip:hover { transform: none; box-shadow: none; }
/* conversation — centred column, airy */
.tsb-ask--page .aq-msgs {
  max-width: 760px; margin: 0 auto; width: 100%;
  padding: 20px 16px 26px; gap: 24px;
  scrollbar-width: none;
}
.tsb-ask--page .aq-msgs::-webkit-scrollbar { width: 0; }
.tsb-ask--page .aq-msg { gap: 12px; }
.tsb-ask--page .aq-av {
  width: 30px; height: 30px; font-size: 13px;
  background: transparent; border: 1.5px solid rgba(127,127,127,.5);
}
/* assistant = plain text, no box (like ChatGPT) */
.tsb-ask--page .aq-bubble {
  border: 0; box-shadow: none; background: transparent;
  padding: 2px 0; max-width: 100%;
  font-size: .95rem; line-height: 1.72; color: var(--ink);
}
/* user = one soft bubble, right */
.tsb-ask--page .aq-bubble--user {
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(127,127,127,.38);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 15px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  box-shadow: none;
}
html.dark .tsb-ask--page .aq-bubble--user { background: #241f17; }
/* answer internals — typographic, not boxed */
.tsb-ask--page .aq-q {
  background: transparent; border: 0; padding: 0; margin: 0 0 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.45;
  border-left:3px solid #ffc800; padding-left:10px;
}
.tsb-ask--page .aq-ans__body { border-radius:18px; padding:16px 17px 16px 19px; box-shadow:0 2px 0 rgba(0,0,0,.06); border-width:1.5px; }
.tsb-ask--page .aq-ans__body::before { background:#ffc800; }
.tsb-ask--page .aq-ans__body p { font-size:1rem; line-height:1.68; }
.tsb-ask--page .aq-head2 { margin:16px 0 9px; }
.tsb-ask--page .aq-src__img { width:56px !important; height:80px !important; }
.tsb-ask--page .aq-src--img { grid-template-columns:56px minmax(0, 1fr) auto; }
.tsb-ask--page .aq-guided { font-size: .95rem; line-height: 1.72; }
.tsb-ask--page .aq-guided__tag {
  background: rgba(127,127,127,.16); color: var(--ink);
  border-radius: 6px; padding: 2px 7px;
  font-family: var(--font-body); font-weight: 700; font-size: 9px;
}
.tsb-ask--page .aq-bookbig { border-left: 3px solid var(--yellow); color: #8f8a80; }
.tsb-ask--page .aq-src {
  border: 1px solid rgba(127,127,127,.35); border-left: 5px solid var(--yellow);
  background: var(--paper); border-radius: 14px; box-shadow: none;
  padding: 12px 14px;
}
.tsb-ask--page .aq-src:hover { transform: none; box-shadow: none; border-color: rgba(127,127,127,.6); border-left-color: var(--yellow); }
html.dark .tsb-ask--page .aq-src { background: #241f17; }
.tsb-ask--page .aq-plan {
  border: 1.5px dashed rgba(127,127,127,.5); background: rgba(255,200,0,.08);
  border-radius: 12px;
}
.tsb-ask--page .aq-copy {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(127,127,127,.5); border-radius: 8px;
  box-shadow: none; font-family: var(--font-body); font-weight: 600;
}
.tsb-ask--page .aq-copy:hover { transform: none; }
.tsb-ask--page .aq-follow { padding-left: 0; gap: 8px; }
.tsb-ask--page .aq-follow__l { font-family: var(--font-body); font-weight: 700; color: #8f8a80; }
/* composer — floating pill bar above the action bar */
.tsb-ask--page .aq-inputrow {
  max-width: 760px; margin: 0 auto; width: 100%;
  background: transparent; border-top: 1px solid rgba(127,127,127,.26);
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.tsb-ask--page .aq-input {
  border: 1.5px solid rgba(127,127,127,.45); border-radius: 999px;
  background: var(--paper); box-shadow: none;
  padding: 12px 18px; font-size: .95rem;
}
.tsb-ask--page .aq-input:focus { outline: 2px solid var(--yellow); box-shadow: none; }
html.dark .tsb-ask--page .aq-input { background: #241f17; }
.tsb-ask--page .aq-send {
  border: 0; border-radius: 999px; box-shadow: none;
  background: var(--yellow); color: #111;
  font-family: var(--font-body); font-weight: 800; font-size: .82rem;
  padding: 12px 20px;
}
.tsb-ask--page .aq-send:hover, .tsb-ask--page .aq-send:active { transform: none; box-shadow: none; }
/* question library — clean bottom sheet */
.tsb-ask--page .aq-lib {
  border: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.28);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tsb-ask--page .aq-lib__head { background: transparent; border: 0; }
.tsb-ask--page .aq-lib__search { border: 1.5px solid rgba(127,127,127,.45); border-radius: 999px; background: var(--paper); }
html.dark .tsb-ask--page .aq-lib__search { background: #241f17; }


/* ============================================================
   v5 — THE ONE "YOU" WINDOW (profile + app settings inline)
   + chat empty-state hero
   ============================================================ */
.youwin { width: min(640px, 100%); display: flex; flex-direction: column; gap: 14px; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(120px + env(safe-area-inset-bottom, 0px)); }
.youwin__top { display: flex; align-items: center; justify-content: space-between; }
.youwin__title { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 1.2px; color: var(--ink); }
.youwin__home { width: 40px; height: 40px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); display: grid; place-items: center; text-decoration: none; font-size: 1.05rem; box-shadow: 2.5px 2.5px 0 var(--ink); }
.youwin__hero { display: flex; align-items: center; gap: 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 16px; }
.youwin__set { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.youwin__set h2 { font-size: .92rem; letter-spacing: .6px; }
.yset__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yset__lbl { flex: none; width: 84px; font-weight: 700; font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; color: #8f8a80; }
.yset__ctl { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.setopt--sm { flex: 0 0 auto; padding: 9px 13px; font-size: .78rem; border-radius: 12px; }
.yset__sw button { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--sw); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease; }
.yset__sw button.on { transform: scale(1.1); box-shadow: 2px 2px 0 var(--ink), 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.setbtn--sm { width: auto; margin: 0; padding: 9px 14px; font-size: .78rem; border-radius: 12px; }
html.dark .youwin__hero, html.dark .youwin__set, html.dark .youwin__home { border-color: #000; }
html.dark .youwin__hero { box-shadow: 6px 6px 0 #000; }
html.dark .youwin__set { box-shadow: 5px 5px 0 #000; }
html.dark .youwin__home { box-shadow: 2.5px 2.5px 0 #000; }

/* chat empty-state hero */
.cht-hero { text-align: center; padding: 7vh 10px 12px; transition: opacity .3s ease, transform .3s ease; }
.cht-hero__logo { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 30px; background: var(--yellow); border-radius: 18px; box-shadow: 0 0 44px rgba(255,200,0,.45); }
.cht-hero h1 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 6px; color: var(--ink); text-transform: none; }
.cht-hero p { color: #8f8a80; font-size: .85rem; }
.cht-hero--off { opacity: 0; transform: translateY(-8px); }


/* ============================================================
   v6 — chat suggestion scroller moves BELOW the conversation
   (library stays the 📚 button) + safe centring for tall pages
   + onboarding skip button
   ============================================================ */
/* conversation first, suggestions as a smooth scroller above the composer */
.tsb-ask--page .aq-head { order: 0; }
.tsb-ask--page .aq-search { order: 1; }
.tsb-ask--page .aq-msgs { order: 2; }
.tsb-ask--page .aq-chips {
  order: 3;
  border-top: 1px solid rgba(127,127,127,.2);
  padding: 9px 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.tsb-ask--page .aq-chips .aq-chip { scroll-snap-align: start; }
.tsb-ask--page .aq-inputrow { order: 4; }
/* tall pages (You window / sign-in) never clip at the top */
.youview { align-items: flex-start; }
.youview > * { margin: auto; }
.youview > .youpage__x { margin: 0; }
/* onboarding skip */
.ob__x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); z-index: 2;
}
html.dark .ob__x { border-color: #000; box-shadow: 2px 2px 0 #000; }


/* ============================================================
   v7 — compact smooth bar · perfect pill · aligned onboarding ·
   proper chat header · source cards with book covers
   ============================================================ */
/* bar: shorter width + lower profile + silkier motion */
:root { --tsb-bar-h: 58px; }
.tsb-bar {
  width: min(430px, calc(100vw - 24px));
  transition: transform .26s cubic-bezier(.22,.9,.28,1), opacity .22s ease;
}
.tsb-bar--off { transform: translateX(-50%) translateY(calc(100% + 22px)); }
/* the active pill — the perfect middle size */
.tsb-bar__item::before { inset: 7px 9px; border-radius: 13px; border-width: 2.5px; }

/* onboarding: every row aligned, clean edges */
.ob-row { min-height: 54px; border-radius: 14px; padding: 11px 13px; }
.ob-row .ic { flex: none; width: 28px; display: grid; place-items: center; font-size: 1.25rem; }
.ob-row > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.ob-row .tick { flex: none; width: 16px; text-align: center; }
.ob-row small { margin-top: 1px; }
.ob-seg { border-radius: 14px; }
.ob-seg button { padding: 12px 4px; }
.ob-lang { min-height: 40px; border-radius: 12px; }
.ob-chip, .ob-row, .ob-seg, .ob-lang { -webkit-tap-highlight-color: transparent; }

/* chat header = a proper app toolbar: back | centred title | actions */
.tsb-ask--page .aq-head {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 8px;
}
.tsb-ask--page .aq-head__t {
  justify-self: center; text-align: center;
  font-weight: 800; font-size: 15px;
}
.tsb-ask--page .aq-head__s { text-align: center; width: auto; margin: 0; }
.tsb-ask--page .aq-head__btns { margin-left: 0; justify-self: end; }

/* source cards: book cover thumbnail in the mini card */
/* the text column must be allowed to shrink, or "READ →" gets pushed clean
   out of the card by a long lesson title (grid items default to min-width:auto) */
.aq-src--img { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.aq-src__book, .aq-src__lesson, .aq-src__blurb, .aq-src__meta { min-width: 0; overflow-wrap: anywhere; }
.aq-src--img .aq-src__go { white-space: nowrap; align-self: start; }
.aq-src__img { width:52px !important; height:74px !important; }
.aq-src--img { border-radius:14px; }
.aq-src__meta { grid-column:2 / 4; display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:5px; }
.aq-src__tag {
  font-size:9px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  border:1.5px solid rgba(127,127,127,.45); border-radius:999px; padding:2px 7px; opacity:.85;
}
.aq-src__time { font-size:9.5px; font-weight:700; opacity:.62; }
.aq-src__img[src=""], .aq-src__img:not([src]) { visibility:hidden; }
.aq-src__img {
  grid-column: 1; grid-row: 1 / span 3;
  width: 44px; height: 62px; object-fit: cover;
  border-radius: 8px; border: 2px solid rgba(127,127,127,.4);
  background: var(--bg);
}
.aq-src--img .aq-src__book { grid-column: 2; }
.aq-src--img .aq-src__lesson { grid-column: 2; }
.aq-src--img .aq-src__blurb { grid-column: 2 / 4; }
.aq-src--img .aq-src__go { grid-column: 3; grid-row: 1; }

/* composer stays pinned & opaque above the action bar */
.tsb-ask--page .aq-inputrow { background: var(--bg); position: relative; z-index: 2; }


/* ============================================================
   v8 — paper toasts (no black boxes) · dead-space killer ·
   chat full-height column · starter shelf · guest gate
   ============================================================ */
/* every toast in the app becomes a clean paper card */
.toast {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: .84rem;
  text-transform: none; letter-spacing: .2px;
  padding: 12px 18px; max-width: calc(100vw - 32px); text-align: center;
}
html.dark .toast { background: #241f17; color: var(--ink); border-color: #000; box-shadow: 5px 5px 0 var(--yellow); }
/* achievements: paper card with a yellow icon chip */
.achvpop { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--yellow); }
.achvpop__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; font-size: 1.45rem; }
.achvpop__title { color: #a07800; }
.achvpop__desc { opacity: .75; }
html.dark .achvpop { background: #241f17; color: #f2ead8; }
html.dark .achvpop__title { color: var(--yellow); }

/* kill the dead strip under every scrolling page:
   the bar's clearance moves INSIDE the footer (dark on dark) */
html.tsb-hasbar body { padding-bottom: 0; }
html.tsb-hasbar body > footer:last-of-type { padding-bottom: calc(var(--bar-total) + 34px); }
body.chatpage { padding-bottom: 0 !important; }

/* chat: one full-height column — msgs grow, composer pinned above bar */
.tsb-ask--page .aq-panel { bottom: 0; height: 100dvh; }
.tsb-ask--page .aq-msgs { flex: 1 1 auto; min-height: 0; }
.tsb-ask--page .aq-chips { flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 10px; }
.tsb-ask--page .aq-chips::-webkit-scrollbar { display: none; }
.tsb-ask--page .aq-inputrow { flex: none; padding-bottom: calc(var(--bar-total) + 10px); background: var(--bg); }
.cht-hero { margin: auto; padding: 28px 18px; text-align: center; }
.cht-hero h1 { font-size: 21px; margin: 12px 0 6px; }
.cht-hero p { color: #8f8a80; font-size: .85rem; max-width: 34ch; margin: 0 auto; }
/* header toolbar: back | centred stack | compact actions */
.tsb-ask--page .aq-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; flex-wrap: nowrap; padding: 10px 12px; }
.tsb-ask--page .aq-head__c { min-width: 0; text-align: center; }
.tsb-ask--page .aq-head__t { font-size: 14px; line-height: 1.15; }
.tsb-ask--page .aq-head__s { width: auto; margin: 2px 0 0; text-align: center; font-size: 10px; }
.tsb-ask--page .aq-head__btns { margin-left: 0; }
.tsb-ask--page .aq-libbtn, .tsb-ask--page .aq-clear { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 15px; border-radius: 10px; }
.tsb-ask--page .aq-back { margin-right: 0; }

/* onboarding: the starter shelf payoff screen */
.ob-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin-top: 6px; }
.ob-book { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 9px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; text-align: left; }
.ob-book:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.ob-book img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; border: 2px solid rgba(127,127,127,.35); background: var(--bg); }
.ob-book__t { font-size: .68rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ob-book__n { position: absolute; top: -9px; left: -8px; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); color: var(--on-accent); border: 2px solid var(--ink); border-radius: 50%; font-family: var(--font-head); font-size: .62rem; }
.ob-shelfnote { font-size: .72rem; color: #8f8a80; margin-top: 12px; text-align: center; }
.ob-book__new { position: absolute; top: -9px; right: -8px; z-index: 2; padding: 2px 7px 3px; background: var(--yellow); color: var(--on-accent); border: 2px solid var(--ink); border-radius: 9px; font-family: var(--font-head); font-size: .55rem; letter-spacing: .6px; box-shadow: 2px 2px 0 var(--ink); }
.ob-book.is-off { opacity: .45; }
.ob-book.is-off .ob-book__pick { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.ob-book__pick {
  position: absolute; top: -9px; right: -8px; z-index: 2; width: 22px; height: 22px;
  display: grid; place-items: center; background: var(--red); color: #fff;
  border: 2px solid var(--ink); border-radius: 50%; font-family: var(--font-head); font-size: .62rem;
}
.ob-pickctr { font-family: var(--font-head); font-size: .72rem; letter-spacing: .5px; margin: 2px 0 10px; color: var(--ink); }

/* guest gate: one clean card, on-brand */
.gatewrap { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 16, 10, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .24s ease; }
.gatewrap.on { opacity: 1; }
.gate { width: min(420px, 100%); background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 rgba(0,0,0,.35); padding: 26px 22px 20px; text-align: center; transform: translateY(14px) scale(.97); transition: transform .24s cubic-bezier(.2,1.2,.4,1); }
.gatewrap.on .gate { transform: none; }
.gate__icon { width: 74px; height: 74px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 0 40px rgba(255,200,0,.5); }
.gate h2 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.gate p { font-size: .88rem; color: #55504a; margin-bottom: 16px; }
.gate__cta { display: block; background: var(--yellow); color: var(--on-accent); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 14px; font-family: var(--font-head); font-size: .95rem; text-decoration: none; margin-bottom: 10px; }
.gate__cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.gate__later { background: none; border: none; color: #8f8a80; font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 6px; }
.gate__tiny { font-size: .68rem; color: #8f8a80; margin: 12px 0 0; }
html.dark .gate { background: #241f17; color: #f2ead8; }
html.dark .gate p, html.dark .gate__tiny { color: #b7b0a5; }
html.dark .gate__cta { color: #111; }


/* ============================================================
   v9 — invisible hidden toast (kill the peeking pill) ·
   pages end flush: footer content sits at the true bottom,
   the floating bar owns its own space (no dead strips)
   ============================================================ */
.toast {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1), opacity .22s ease, visibility 0s .32s;
}
.toast.show {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1), opacity .18s ease;
}
/* footer ends with its own breathing room only — bar floats over it */
html.tsb-hasbar body > footer:last-of-type {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}


/* ============================================================
   v10 — chat column on CSS grid (1fr row = conversation ALWAYS
   fills, composer glued above the bar) · onboarding progress
   strips inset clear of ← / ✕ · auth toasts go paper
   ============================================================ */
.tsb-ask--page .aq-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
.tsb-ask--page .aq-head { grid-row: 1; }
.tsb-ask--page .aq-search { grid-row: 2; }
.tsb-ask--page .aq-msgs { grid-row: 3; min-height: 0; overflow-y: auto; }
.tsb-ask--page .aq-chips { grid-row: 4; }
.tsb-ask--page .aq-inputrow { grid-row: 5; }

/* progress strips sit BETWEEN the corner buttons, never under them */
.ob__prog { margin: 8px 48px 16px; }

/* sign-in / login messages: paper cards like everything else */
html body .tsb-auth-toast {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: .84rem;
  letter-spacing: .2px; padding: 12px 18px;
  max-width: calc(100vw - 32px); text-align: center;
}
html body .tsb-auth-toast--welcome { background: var(--yellow); color: var(--on-accent); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
html.dark body .tsb-auth-toast { background: #241f17; color: var(--ink); border-color: #000; box-shadow: 5px 5px 0 var(--yellow); }
html.tsb-hasbar body .tsb-auth-toast { bottom: calc(var(--bar-total) + 20px); }


/* ============================================================
   v11 — chat dock: questions + search + ask ALL at the bottom ·
   podcast player & lesson fab dance with the bar (transform only)
   ============================================================ */
/* bottom cluster: head / conversation / question pills / search / ask */
.tsb-ask--page .aq-panel { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.tsb-ask--page .aq-head { grid-row: 1; }
.tsb-ask--page .aq-msgs { grid-row: 2; }
.tsb-ask--page .aq-chips {
  grid-row: 3;
  -webkit-mask-image: linear-gradient(90deg, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 93%, transparent 100%);
}
.tsb-ask--page .aq-search { grid-row: 4; padding: 8px 12px 0; max-width: 760px; margin: 0 auto; width: 100%; }
.tsb-ask--page .aq-search input { padding: 9px 14px; font-size: .82rem; }
.tsb-ask--page .aq-inputrow { grid-row: 5; }

/* bar tucked → player & fab glide into the freed space; bar back → they rise */
html.tsb-bar-hidden .tsb-player--show {
  transform: translateX(-50%) translateY(calc(var(--bar-total) + 8px));
}
html.tsb-bar-hidden .lessonnav__fab.show {
  transform: translateY(calc(var(--bar-total) + 8px));
}


/* ============================================================
   v12 — chat = exactly four rows (head / conversation /
   personalised pills / ask) · static name chip · library views
   ============================================================ */
.tsb-ask--page .aq-panel { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.tsb-ask--page .aq-head { grid-row: 1; }
.tsb-ask--page .aq-msgs { grid-row: 2; }
.tsb-ask--page .aq-chips { grid-row: 3; }
.tsb-ask--page .aq-inputrow { grid-row: 4; }
.tsb-ask--page .aq-search { display: none; }

/* signed-in name badge: shows who you are, opens nothing */
.tsb-navchip--static { cursor: default; }
.tsb-navchip--static:hover { transform: none; }

/* 📚 library display modes (tsb_lib_view) */
.tsb-libview-compact .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tsb-libview-compact .card__top { min-height: 170px; padding: 16px; }
.tsb-libview-compact .card__cover { width: 104px; }
.tsb-libview-compact .card__body { padding: 12px 14px 14px; gap: 6px; }
.tsb-libview-compact .card__title { font-size: .98rem; }
.tsb-libview-compact .card__tag { display: none; }
.tsb-libview-list .grid { grid-template-columns: 1fr; gap: 12px; max-width: 900px; }
.tsb-libview-list .card { flex-direction: row; align-items: stretch; }
.tsb-libview-list .card__top { min-height: 0; border-bottom: 0; border-right: var(--border); padding: 12px; width: 118px; flex: none; }
.tsb-libview-list .card__cover { width: 86px; transform: none; }
.tsb-libview-list .card:hover .card__cover { transform: scale(1.04); }
.tsb-libview-list .card__cat, .tsb-libview-list .card__time { display: none; }
.tsb-libview-list .card__body { padding: 14px 16px; }


/* v12b — composer hugs the bar: only the bar's own slot below ASK */
.tsb-ask--page .aq-inputrow { padding-bottom: calc(var(--bar-total) + 6px); }


/* ============================================================
   v14 — accent = bar pill only · font styles · progress bar ·
   name input · library-head contrast · dark-safe
   ============================================================ */
.tsb-bar__item::before { background: var(--tsb-bar-accent, var(--yellow)); }
.tsb-bar__item--plus.is-active .tsb-bar__plus { color: var(--tsb-bar-accent, var(--yellow)); }

html.tsb-font-serif { --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
html.tsb-font-clean { --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* question-library head: ink on yellow, crisp in both themes */
.aq-lib__head { background: var(--yellow); }
.aq-lib__t { color: var(--ink); }
.aq-lib__s { color: #55504a; }
html.dark .aq-lib__head { background: var(--yellow); }
html.dark .aq-lib__t { color: var(--ink); }
html.dark .aq-lib__s { color: #55504a; }

/* reading progress bar */
.progbar { height: 16px; border: 2.5px solid var(--ink); border-radius: 99px; background: var(--bg); overflow: hidden; box-shadow: 2.5px 2.5px 0 var(--ink); }
.progbar em { display: block; height: 100%; background: var(--yellow); border-right: 2.5px solid var(--ink); min-width: 6px; transition: width .5s cubic-bezier(.2,.9,.3,1.1); }
.progtxt { font-size: .78rem; font-weight: 700; color: #8f8a80; margin-top: 8px; }
html.dark .progtxt { color: #b7b0a5; }

/* name input */
.setinput { flex: 1; min-width: 0; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 10px 12px; font-family: var(--font-body); font-weight: 600; font-size: .9rem; }
.setinput:focus { outline: 2px solid var(--yellow); }
html.dark .setinput { background: #241f17; color: var(--ink); }


/* ============================================================
   v15 — 🌍 COMMUNITY: feed · skeletons · composer · rich post ·
   comments · profiles · mini audio player (dark-safe)
   ============================================================ */
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px; max-width: 760px; margin: 0 auto; }
.cm-head__t { font-family: var(--font-head); font-size: 20px; }
.cm-head__s { font-size: .68rem; color: #8f8a80; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.cm-write { background: var(--yellow); color: var(--on-accent); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 16px; font-family: var(--font-head); font-size: .78rem; cursor: pointer; text-decoration: none; display: inline-block; }
.cm-write:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.cm-tabs { display: flex; gap: 8px; padding: 0 16px 12px; position: sticky; top: 0; z-index: 5; background: var(--bg); max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.cm-tabs button { flex: 1; border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 9px 6px; font-weight: 800; font-size: .76rem; cursor: pointer; }
.cm-tabs button.on { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.cm-feed { max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; padding: 4px 16px calc(var(--bar-total) + 30px); display: flex; flex-direction: column; gap: 18px; }
.cm-card { display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.cm-card--row { flex-direction: row; align-items: stretch; }
.cm-card__cover { position: relative; display: block; border-bottom: 3px solid var(--ink); background: var(--bg); min-height: 150px; }
.cm-card__cover img { width: 100%; height: 190px; object-fit: cover; display: block; }
.cm-card--row .cm-card__cover { border-bottom: 0; border-right: 3px solid var(--ink); width: 108px; flex: none; min-height: 108px; }
.cm-card--row .cm-card__cover img { height: 100%; min-height: 108px; }
.cm-quote { display: grid; place-items: center; font-size: 44px; color: var(--on-accent); height: 190px; background: var(--yellow); width: 100%; }
.cm-card--row .cm-quote { height: 100%; min-height: 108px; font-size: 26px; }
.cm-card__aud { position: absolute; bottom: 10px; right: 10px; background: var(--chip); color: var(--yellow); border-radius: 99px; padding: 4px 10px; font-size: .78rem; }
.cm-card__kind { position: absolute; top: 10px; left: 10px; background: var(--paper); border: 2px solid var(--ink); font-size: .58rem; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; }
.cm-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.cm-card__meta { display: flex; align-items: center; gap: 8px; }
.cm-ava { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink); overflow: hidden; display: grid; place-items: center; background: var(--yellow); text-decoration: none; color: var(--on-accent); font-weight: 800; font-size: .8rem; }
.cm-ava img { width: 100%; height: 100%; object-fit: cover; }
.cm-ava--lg { width: 44px; height: 44px; font-size: 1rem; }
.cm-ava--xl { width: 86px; height: 86px; font-size: 1.7rem; }
.cm-name { font-weight: 800; font-size: .85rem; color: var(--ink); text-decoration: none; }
.cm-time { font-size: .68rem; color: #8f8a80; font-weight: 700; }
.cm-follow { margin-left: auto; border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 5px 10px; font-size: .68rem; font-weight: 800; cursor: pointer; }
.cm-follow.on { background: #00c48c; }
.cm-card__title { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.cm-card__sub { font-size: .85rem; color: #55504a; }
.cm-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-card__tags span { font-size: .64rem; font-weight: 800; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 9px; background: var(--bg); }
.cm-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cm-like, .cm-cmts, .cm-listen, .cm-del, .cm-share { border: none; background: none; cursor: pointer; font-weight: 800; font-size: .78rem; color: #55504a; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; padding: 4px; }
.cm-like.on { color: #e5484d; }
.cm-listen { border: 2px solid var(--ink); border-radius: 99px; background: var(--yellow); color: var(--on-accent); padding: 4px 10px; }
.cm-read { margin-left: auto; font-size: .68rem; color: #8f8a80; font-weight: 700; }
/* skeletons */
.cm-card--skel { pointer-events: none; }
.cm-sk { background: linear-gradient(90deg, rgba(127,127,127,.16) 25%, rgba(127,127,127,.32) 37%, rgba(127,127,127,.16) 63%); background-size: 400% 100%; animation: cmShimmer 1.2s ease infinite; border-radius: 8px; }
.cm-sk--cover { height: 190px; border-radius: 0; }
.cm-sk--line { height: 14px; margin: 8px 16px; }
.w60 { width: 60%; } .w90 { width: 90%; } .w40 { width: 40%; }
@keyframes cmShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.cm-empty { text-align: center; padding: 60px 20px; font-weight: 700; color: #8f8a80; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cm-empty--sm { padding: 24px 12px; }
/* composer sheet */
.cm-sheetwrap { position: fixed; inset: 0; z-index: 9990; background: rgba(20,16,10,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .22s; }
.cm-sheetwrap.on { opacity: 1; }
.cm-sheet { width: min(680px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 22px 22px 0 0; transform: translateY(30px); transition: transform .24s cubic-bezier(.2,1.1,.4,1); }
.cm-sheetwrap.on .cm-sheet { transform: none; }
.cm-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 3px solid var(--ink); background: var(--yellow); position: sticky; top: 0; z-index: 2; }
.cm-sheet__head b { font-family: var(--font-head); }
.cm-sheet__x { width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 800; }
.cm-sheet__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cm-lbl { display: flex; flex-direction: column; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8f8a80; }
.cm-lbl input[type="file"] { font-size: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.cm-seg { display: flex; gap: 8px; }
.cm-seg button { flex: 1; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 9px 4px; font-weight: 800; font-size: .74rem; cursor: pointer; }
.cm-seg button.on { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.cm-prev { max-height: 140px; border: 2.5px solid var(--ink); border-radius: 12px; object-fit: cover; }
.cm-edbar { display: flex; gap: 6px; }
.cm-edbar button { min-width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--bg); color: var(--ink); cursor: pointer; font-size: .8rem; }
.cm-ed { min-height: 180px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 12px 14px; font-size: .95rem; line-height: 1.6; outline: none; }
.cm-ed:empty:before { content: attr(data-ph); color: #8f8a80; }
.cm-ed h2 { font-family: var(--font-head); margin: 10px 0 6px; }
.cm-ed blockquote { border-left: 4px solid var(--yellow); padding-left: 10px; margin: 8px 0; font-style: italic; }
.cm-audiorow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-recstate { font-size: .72rem; font-weight: 800; color: #e5484d; }
.cm-pub { background: var(--yellow); color: var(--on-accent); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 13px; font-family: var(--font-head); font-size: .9rem; cursor: pointer; }
.cm-pub--sm { padding: 9px 14px; font-size: .75rem; }
.cm-fine { font-size: .68rem; color: #8f8a80; text-align: center; }
/* post page */
.cm-post { max-width: 760px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(var(--bar-total) + 30px); }
.cm-postcard { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cm-postcard__cover { width: 100%; max-height: 320px; object-fit: cover; border: 3px solid var(--ink); border-radius: 14px; }
.cm-postcard__head { display: flex; align-items: center; gap: 10px; }
.cm-postcard__who { display: flex; flex-direction: column; }
.cm-postcard h1 { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; }
.cm-postcard__sub { color: #55504a; font-weight: 600; }
.cm-listenbig { background: var(--chip); color: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; padding: 12px; font-family: var(--font-head); font-size: .85rem; cursor: pointer; box-shadow: 4px 4px 0 var(--yellow); }
.cm-rich { font-size: 1.02rem; line-height: 1.75; display: flex; flex-direction: column; gap: 12px; }
.cm-rich h2 { font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; }
.cm-rich blockquote { border-left: 5px solid var(--yellow); background: var(--bg); padding: 10px 14px; border-radius: 0 12px 12px 0; font-style: italic; }
.cm-rich ul, .cm-rich ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.cm-postcard__foot { border-top: 2px dashed rgba(127,127,127,.35); padding-top: 12px; }
/* comments */
.cm-comments { margin-top: 22px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cm-comments h2 { font-family: var(--font-head); font-size: 1rem; }
.cm-cmt { border-bottom: 2px dashed rgba(127,127,127,.25); padding-bottom: 10px; }
.cm-cmt b { font-size: .85rem; }
.cm-cmt p { font-size: .9rem; margin-top: 4px; }
.cm-cmtrow { display: flex; gap: 8px; }
/* profile */
.cm-profile { max-width: 760px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(var(--bar-total) + 30px); }
.cm-profhead { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cm-profhead h1 { font-family: var(--font-head); font-size: 1.3rem; }
.cm-profhead h1 i { font-style: normal; color: #8f8a80; font-size: .8rem; }
.cm-bio { color: #55504a; font-weight: 600; font-size: .9rem; }
.cm-stats { display: flex; gap: 16px; justify-content: center; }
.cm-stats span { font-size: .72rem; font-weight: 800; color: #8f8a80; }
.cm-stats b { color: var(--ink); font-size: .95rem; }
.cm-profedit { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 6px; }
.cm-sect { font-family: var(--font-head); font-size: 1rem; margin: 22px 0 12px; }
/* mini audio player */
.cm-play { position: fixed; left: 50%; transform: translateX(-50%) translateY(160%); bottom: calc(var(--bar-total, 70px) + 14px); z-index: 9988; display: flex; align-items: center; gap: 10px; width: min(430px, calc(100vw - 24px)); background: var(--chip); color: var(--on-chip); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--yellow); padding: 10px 12px; transition: transform .3s cubic-bezier(.2,1.2,.4,1); }
.cm-play.on { transform: translateX(-50%) translateY(0); }
.cm-play__btn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2.5px solid var(--yellow); background: none; color: var(--yellow); font-size: 1rem; cursor: pointer; }
.cm-play__t { flex: 1; font-size: .78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-play__x { border: none; background: none; color: var(--on-chip); cursor: pointer; font-size: .9rem; }
html.tsb-bar-hidden .cm-play.on { transform: translateX(-50%) translateY(calc(var(--bar-total) + 8px)); }
/* dark */
html.dark .cm-card, html.dark .cm-postcard, html.dark .cm-comments, html.dark .cm-profhead, html.dark .cm-sheet { background: #241f17; color: var(--ink); }
html.dark .cm-card__sub, html.dark .cm-bio, html.dark .cm-postcard__sub { color: #b7b0a5; }
html.dark .cm-tabs button, html.dark .cm-follow, html.dark .cm-ed, html.dark .cm-edbar button, html.dark .cm-seg button { background: #1b1712; color: var(--ink); }
html.dark .cm-tabs button.on, html.dark .cm-seg button.on { background: var(--yellow); color: var(--on-accent); }
html.dark .cm-like, html.dark .cm-cmts, html.dark .cm-del, html.dark .cm-share { color: #b7b0a5; }
html.dark .cm-rich blockquote { background: #1b1712; }
html.dark .cm-card__tags span { background: #1b1712; }


/* ============================================================
   v16 — Instagram-grade feed: author rail with rings,
   double-tap heart burst, section headers
   ============================================================ */
.cm-rail { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; -ms-overflow-style: none; }
.cm-rail::-webkit-scrollbar { display: none; }
.cm-rail__i { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.cm-rail__ring { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: rgba(127,127,127,.35); display: grid; place-items: center; }
.cm-rail__i.fol .cm-rail__ring { background: conic-gradient(var(--yellow), #ff8a3d, var(--yellow)); }
.cm-rail__ring > * , .cm-rail__ring img, .cm-rail__ring span { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 1.05rem; overflow: hidden; }
.cm-rail__n { font-size: .62rem; font-weight: 800; color: #55504a; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.dark .cm-rail__n { color: #b7b0a5; }
.cm-feed > .cm-sect { margin: 2px 0 -4px; font-family: var(--font-head); font-size: .82rem; letter-spacing: .5px; }
.cm-heart { position: absolute; inset: 0; display: grid; place-items: center; font-size: 74px; color: #e5484d; text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: cmHeart .85s cubic-bezier(.2,1.4,.4,1) forwards; pointer-events: none; }
@keyframes cmHeart { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.25); opacity: 1; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }


/* ============================================================
   v17 — full-page writer (Notes/Substack grade) · verified ✔ ·
   share cards · public IDs · mono/serif editor faces
   ============================================================ */
.wr-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: var(--bg); border-bottom: 2px dashed rgba(127,127,127,.3); }
.wr-back { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 2.5px 2.5px 0 var(--ink); }
.wr-save { flex: 1; font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8f8a80; }
.wr-wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px calc(var(--bar-total) + 40px); display: flex; flex-direction: column; gap: 14px; }
.wr-title { border: none; background: none; color: var(--ink); font-family: var(--font-head); font-size: 1.7rem; line-height: 1.15; text-transform: uppercase; outline: none; width: 100%; }
.wr-title::placeholder { color: rgba(127,127,127,.5); }
.wr-sub { border: none; background: none; color: #55504a; font-weight: 600; font-size: 1rem; outline: none; width: 100%; }
html.dark .wr-sub { color: #b7b0a5; }
.wr-bar { position: sticky; top: 62px; z-index: 7; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); padding: 8px; }
.wr-bar button { min-width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 9px; background: var(--bg); color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 700; }
.wr-bar button:active { background: var(--yellow); }
.wr-sep { width: 2px; height: 22px; background: rgba(127,127,127,.35); border-radius: 2px; }
.wr-bar select { border: 2px solid var(--ink); border-radius: 9px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: .75rem; padding: 7px 6px; }
.wr-ed { min-height: 52vh; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 18px 18px 26px; font-size: 1.05rem; line-height: 1.8; outline: none; }
.wr-ed:empty:before { content: attr(data-ph); color: #8f8a80; }
.wr-ed--serif { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }
.wr-ed--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.wr-ed h1 { font-family: var(--font-head); font-size: 1.4rem; margin: 14px 0 8px; text-transform: uppercase; }
.wr-ed h2 { font-family: var(--font-head); font-size: 1.15rem; margin: 12px 0 6px; text-transform: uppercase; }
.wr-ed blockquote { border-left: 5px solid var(--yellow); background: var(--bg); padding: 10px 14px; border-radius: 0 12px 12px 0; font-style: italic; margin: 10px 0; }
.wr-ed pre, .cm-rich pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--chip); color: var(--yellow); padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.6; margin: 10px 0; }
.wr-ed ul, .wr-ed ol, .cm-rich ul, .cm-rich ol { padding-left: 22px; margin: 8px 0; }
.cm-rich code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1.5px solid rgba(127,127,127,.4); border-radius: 6px; padding: 1px 5px; font-size: .88em; }
.wr-meta { display: flex; flex-direction: column; gap: 14px; background: transparent; border: none; box-shadow: none; padding: 0; }
.wr-card{
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wr-card--inspire{
  background: linear-gradient(135deg, #fffdf5 0%, #fff6d9 55%, #fff3c4 100%);
  border-color: #111;
}
.wr-card__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.wr-card__title{
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.wr-card__sub{
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8f8a80;
}
.wr-uprow{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}
.wr-inspirebtn{
  width: 100%;
  border: 3px solid #111;
  background: #ffc800;
  border-radius: 999px;
  padding: 12px 16px;
  font: 800 12.5px 'Space Grotesk', sans-serif;
  letter-spacing: .4px;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  text-align: center;
}
.wr-inspirebtn:hover{ transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #111; }
.wr-inspirebtn:active{ transform: translate(1px,1px); box-shadow: 2px 2px 0 #111; }
.wr-hint{
  font-size: .72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
}
html.dark .wr-card{ background: #241f17; border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .wr-card--inspire{ background: linear-gradient(135deg, #2a2417 0%, #33290f 100%); }
html.dark .wr-card__sub{ color: #b7b0a5; }
html.dark .wr-hint{ color: #b7b0a5; }
html.dark .wr-inspirebtn{ border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .wr-meta, html.dark .wr-ed, html.dark .wr-bar { background: #241f17; color: var(--ink); }
html.dark .wr-bar button, html.dark .wr-bar select { background: #1b1712; color: var(--ink); }
.wr-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 4px; }
@media(max-width: 560px){ .wr-actions{ grid-template-columns: 1fr; } }
.wr-actions .cm-pub{ width: 100%; text-align: center; justify-content: center; }
.wr-actions .setbtn{ white-space: nowrap; }

/* verified tick */
.cm-vtick { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; background: #4d7cff; color: #fff; font-size: .58rem; font-weight: 900; vertical-align: middle; }
/* share card + ids */
.cm-sharecard { width: 100%; background: var(--bg); border: 2.5px dashed var(--ink); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.cm-sharecard__brand { font-family: var(--font-head); font-size: .62rem; letter-spacing: 2px; color: #8f8a80; }
.cm-sharecard__who { display: flex; align-items: center; gap: 10px; }
.cm-sharecard__who b { font-size: .95rem; }
.cm-sharecard__who > div { display: flex; flex-direction: column; align-items: flex-start; }
.cm-sharerow { display: flex; gap: 8px; }
.cm-idcode { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px; font-size: .78rem; font-weight: 700; color: var(--ink); }
html.dark .cm-idcode { background: #1b1712; color: var(--ink); }


/* ============================================================
   v18 — People · Reels · DMs · progress · quote mode
   ============================================================ */
.cm-write--alt { background: var(--bg); padding: 10px 12px; }
html.dark .cm-write { color: #111; }
html.dark .cm-write--alt { color: var(--ink); }
/* people */
.cm-people { display: flex; flex-direction: column; gap: 10px; }
.cm-person { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3.5px 3.5px 0 var(--ink); padding: 12px 14px; }
.cm-person__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-person__meta .cm-bio { font-size: .74rem; color: #6b655c;   /* 5.7:1 — was 3.4:1 */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-person__acts { display: flex; align-items: center; gap: 8px; }
.cm-dmbtn { display: grid; place-items: center; width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--bg); text-decoration: none; font-size: 1rem; box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-prog { font-size: .78rem; font-weight: 800; color: #55504a; }
html.dark .cm-person, html.dark .cm-prog { color: var(--ink); }
html.dark .cm-person { background: #241f17; }
/* reels overlay */
.cm-reels { position: fixed; inset: 0; z-index: 60; background: #0d0b08; }
.cm-reels__x { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 62; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #fff; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; cursor: pointer; }
.cm-reels__track { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; }
.cm-reel { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; background: var(--chip); background-size: cover; background-position: center; padding: 18px 18px calc(var(--bar-total) + 24px); }
.cm-reel__grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,5,.88) 0%, rgba(10,8,5,.35) 45%, rgba(10,8,5,.15) 100%); }
.cm-reel__body { position: relative; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.cm-reel__who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.cm-reel__who b { font-size: .88rem; }
.cm-reel__t { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; text-wrap: balance; }
.cm-reel__s { font-size: .9rem; color: #e8e2d8; font-weight: 600; }
.cm-reel__acts { display: flex; gap: 14px; align-items: center; }
.cm-reel .cm-like, .cm-reel .cm-listen, .cm-reel .cm-cmts { color: #fff; }
.cm-reel .cm-like.on { color: #ff5f64; }
.cm-reel .cm-like b { font-size: .75rem; }
/* DMs */
.dmpage .cm-wrap { padding-bottom: calc(var(--bar-total) + 120px); }
.dm-list { display: flex; flex-direction: column; gap: 8px; }
.dm-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 10px 14px; text-decoration: none; color: var(--ink); }
.dm-row__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-row__meta span { font-size: .78rem; color: #8f8a80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-thread { display: flex; flex-direction: column; }
.dm-msgs { display: flex; flex-direction: column; gap: 8px; max-height: calc(100dvh - var(--bar-total) - 220px); overflow-y: auto; padding: 4px 2px; }
.dm-bub { max-width: 78%; align-self: flex-start; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px 16px 16px 5px; box-shadow: 2.5px 2.5px 0 var(--ink); padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.dm-bub.me { align-self: flex-end; background: var(--yellow); border-radius: 16px 16px 5px 16px; }
.dm-bub em { font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .5px; color: #8f8a80; text-transform: uppercase; }
.dm-send { position: sticky; bottom: calc(var(--bar-total) + 8px); display: flex; gap: 8px; margin-top: 14px; }
.dm-input { flex: 1; min-width: 0; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; padding: 12px 14px; outline: none; box-shadow: 3px 3px 0 var(--ink); }
/* v250 · FIX: the dark rename pass wrote this AFTER the own-bubble rule, so MY OWN
   messages rendered #111 on near-black — invisible in dark mode. Own bubbles are
   always the yellow accent: they keep dark ink and re-assert their own background. */
html.dark .dm-row { background: var(--paper); }   /* the row keeps its card tile */
html.dark .dm-bub { background: var(--paper); color: var(--ink); }
html.dark .dm-bub.me {
  background: var(--yellow); color: #14110c;
  border-color: #000; box-shadow: 2.5px 2.5px 0 #000;
}
html.dark .dm-input { background: #1b1712; color: var(--ink); }
/* quote mode writer */
.wr-quote .wr-title { text-transform: none; font-family: Georgia, serif; font-size: 1.9rem; }
.wr-quote .wr-ed { min-height: 30vh; font-family: Georgia, "Iowan Old Style", serif; font-style: italic; font-size: 1.2rem; }
/* --- QUOTE vs STORY — visibly different editors (v226) --- */
.wr-modechip{ display:inline-block; font-family:var(--font-head); font-size:.62rem; letter-spacing:1.5px; text-transform:uppercase; border:2px solid var(--ink); border-radius:999px; padding:6px 12px; margin:4px 0 6px; box-shadow:2px 2px 0 var(--ink); }
.wr-modechip--quote{ background:var(--yellow); color:#111; }
.wr-modechip--story{ background:var(--paper); color:#555; border-style:dashed; }
html.dark .wr-modechip--story{ background:#1b1712; color:#b7b0a5; }
.wr-quotelive{ background:var(--paper); border:3px solid var(--ink); border-radius:18px; box-shadow:5px 5px 0 var(--ink); padding:12px; display:flex; flex-direction:column; gap:10px; margin:6px 0 8px; }
.wr-quotelive__card{ position:relative; width:100%; aspect-ratio:4/5; border:3px solid var(--ink); border-radius:14px; overflow:hidden; background:linear-gradient(135deg,#fff6d9 0%,#ffe27a 55%,#ffd94d 100%); display:grid; place-items:center; text-align:center; padding:18px; background-size:cover; background-position:center; }
.wr-quotelive__card.has-img{ color:#fff; }
.wr-quotelive__card.has-img::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,
    rgba(0,0,0,calc(var(--scrim, .55) * .3)) 0%,
    rgba(0,0,0,calc(var(--scrim, .55) * .62)) 45%,
    rgba(0,0,0,var(--scrim, .55)) 100%)}
.wr-quotelive__inner{ position:relative; z-index:1; display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center; max-width:92%; }
.wr-quotelive__quote{ font-family:Georgia,"Iowan Old Style",serif; font-size:1.25rem; line-height:1.35; font-weight:700; font-style:italic; text-wrap:balance; }
.wr-quotelive__by{ font-family:var(--font-body); font-size:.78rem; font-weight:700; letter-spacing:.5px; opacity:.85; }
.wr-quotelive__ph{ font-family:Georgia,serif; font-size:1.15rem; font-style:italic; color:#6b6b6b; line-height:1.4; }
.wr-quotelive__ph span{ display:block; font-family:var(--font-body); font-style:normal; font-size:.7rem; letter-spacing:1px; text-transform:uppercase; margin-top:6px; opacity:.6; }
.wr-quotelive__btn{ width:100%; background:var(--yellow); color:#111; border:3px solid var(--ink); border-radius:14px; box-shadow:3px 3px 0 var(--ink); padding:12px; font-family:var(--font-head); font-size:.8rem; cursor:pointer; }
.wr-quotelive__btn:active{ transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
.wr-quotelive__hint{ font-size:.68rem; color:#8f8a80; font-weight:600; line-height:1.4; text-align:center; }
.wr-quote .wr-bar{ display:flex !important; flex-wrap:wrap; gap:6px; }
.wr-quote .wr-bar [data-cmd], .wr-quote .wr-bar select, .wr-quote .wr-bar .wr-sep{ display:none !important; }
.wr-quote .wr-bar #wInspireBtn{ display:inline-flex !important; }
.wr-quote .wr-ed{ min-height:22vh; font-size:1rem; }
.wr-quote .wr-title{ font-size:2rem; text-align:center; border:2.5px dashed rgba(127,127,127,.25); border-radius:14px; padding:14px 12px; background:var(--paper); }
html.dark .wr-quote .wr-title{ background:#241f17; }
.wr-quote .wr-sub{ text-align:center; font-style:italic; }
.wr-quote .wr-title:focus, .wr-quote .wr-sub:focus{ outline:2px solid var(--yellow); border-radius:8px; }
html.dark .wr-quotelive{ background:#241f17; color:var(--ink); }
html.dark .wr-quotelive__card{ border-color:#000; }
html.dark .wr-quotelive__ph{ color:#b7b0a5; }
.cm-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; max-width: 760px; margin: 0 auto; background: var(--bg); }
.cm-top__back { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-top__t { font-family: var(--font-head); font-size: 1.1rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px calc(var(--bar-total) + 28px); }


/* ============================================================
   v19 — STORIES REDESIGN: masthead · pill tabs · cover-first
   cards · quote cards · people grid · notifications · badges
   ============================================================ */
.cm-head--v19 { display: block; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 6px; }
.cm-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cm-head--v19 .cm-head__t { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; letter-spacing: -.5px; text-transform: uppercase; position: relative; display: inline-block; }
.cm-head--v19 .cm-head__t::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 10px; background: var(--yellow); z-index: -1; transform: skew(-8deg); }
.cm-head--v19 .cm-head__s { margin-top: 8px; font-size: .68rem; color: #8f8a80; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.cm-bell { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.cm-bell:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cm-head__acts { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.cm-chipbtn { border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 800; font-size: .78rem; cursor: pointer; box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-chipbtn:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }
.cm-head__acts .cm-write { border-radius: 999px; }
/* pill tabs */
.cm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; max-width: 792px; margin: 0 auto; scrollbar-width: none; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs button { flex: none; border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 800; font-size: .78rem; cursor: pointer; box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-tabs button.on { background: var(--yellow); box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-tabs button:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }
/* cover-first cards */
.cm-card { border-radius: 20px; box-shadow: 4.5px 4.5px 0 var(--ink); overflow: hidden; }
.cm-card__cover { display: block; aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, var(--yellow) 0%, #ffe27a 55%, #fff6d6 100%); }
.cm-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-card__cover .cm-quote { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.2rem; color: var(--ink); opacity: .85; font-family: Georgia, serif; }
.cm-card__kind { position: absolute; top: 10px; left: 10px; background: var(--chip); color: var(--yellow); font-family: var(--font-head); font-size: .58rem; letter-spacing: 2px; padding: 5px 9px; border-radius: 8px; }
.cm-card__aud { position: absolute; top: 10px; right: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 800; }
.cm-card__title { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.2; text-transform: uppercase; letter-spacing: -.2px; }
/* quote cards — the yellow paper look */
.cm-card--quote { background: linear-gradient(160deg, #fff3c4 0%, var(--paper) 70%); }
.cm-card--quote .cm-card__cover { aspect-ratio: auto; padding: 26px 20px 6px; background: none; }
.cm-card--quote .cm-card__cover .cm-quote { position: static; font-size: 2.6rem; display: block; text-align: left; line-height: .6; }
.cm-card--quote .cm-card__title { font-family: Georgia, "Iowan Old Style", serif; text-transform: none; font-style: italic; font-size: 1.3rem; font-weight: 700; line-height: 1.35; }
html.dark .cm-card--quote { background: linear-gradient(160deg, #33290f 0%, #241f17 70%); }
/* people grid */
.cm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.cm-person { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.cm-person__top { display: flex; gap: 10px; align-items: center; width: 100%; }
.cm-person__acts { width: 100%; margin-left: 0; }
.cm-person__acts .cm-follow { margin-left: 0; flex: 1; padding: 8px 10px; }
.cm-person__acts .cm-dmbtn { width: 40px; height: 38px; }
/* notifications */
.nt-list { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.nt-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 11px 14px; text-decoration: none; color: var(--ink); position: relative; }
.nt-row.new { background: #fff8dd; }
.nt-row.new::before { content: "NEW"; position: absolute; top: -8px; right: 12px; background: #e5484d; color: #1a0000;   /* 5.1:1 */ font-size: .52rem; font-weight: 900; letter-spacing: 1px; padding: 2px 7px; border-radius: 6px; }
.nt-row__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-row__meta b { font-size: .84rem; }
.nt-row__meta b span { font-weight: 600; color: #55504a; }
.nt-row__meta em { font-style: normal; font-size: .76rem; color: #6b655c;   /* 5.7:1 — was 3.4:1 */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-row__meta .nt-body { font-style: italic; }
.nt-cta { font-size: .68rem; font-weight: 800; color: var(--ink); letter-spacing: .4px; }
.nt-ico { font-size: 1.15rem; flex: none; }
.nt-badge { background: #e5484d; color: #1a0000;   /* 5.1:1 — white was 3.9:1 */ border-radius: 999px; font-size: .6rem; font-weight: 900; padding: 2px 7px; }
html.dark .nt-row { background: #241f17; color: var(--ink); }
html.dark .nt-row.new { background: #33290f; }
html.dark .nt-row__meta b span, html.dark .nt-row__meta em { color: #b7b0a5; }
html.dark .nt-cta { color: var(--yellow); }
html.dark .cm-chipbtn, html.dark .cm-tabs button, html.dark .cm-bell { background: #241f17; color: var(--ink); }
html.dark .cm-tabs button.on { background: var(--yellow); color: var(--on-accent); }
/* public toggle */
#youPublicBtn.on { background: #00c48c; }

/* v19b — You window: progress + activity sections */
.acc__prog { padding: 2px 2px 4px; }
.acc__act { padding: 6px 2px 12px; }
.acc__seclbl { display: block; font-family: var(--font-head); font-size: .62rem; letter-spacing: 1.8px; color: #8f8a80; margin: 12px 0 8px; text-transform: uppercase; }
.acc__stats--3 { grid-template-columns: repeat(3, 1fr); }
.acc__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acc__quick a { display: inline-flex; align-items: center; gap: 6px; border: 2.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: .72rem; text-decoration: none; color: var(--ink); box-shadow: 2.5px 2.5px 0 var(--ink); }
.acc__quick a:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }
html.dark .acc__quick a { background: #241f17; color: var(--ink); }


/* v19c — merged level + reading progress card */
.acc__levelcard { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px 12px; margin: 4px 0 2px; }
.acc__seclbl--in { margin: 14px 0 6px; }
html.dark .acc__levelcard { background: #241f17; }

/* v19d — auto default covers */
.cm-card__cover .cm-quote { font-family: var(--font-head); font-size: 3.4rem; color: var(--ink); opacity: 1; display: grid; place-items: center; }
.cm-card--quote .cm-card__cover .cm-quote { background: none !important; font-family: Georgia, serif; font-size: 2.6rem; }


/* v19e — smooth section transitions */
@keyframes cmFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cm-feed > *, .nt-list > *, .dm-list > * { animation: cmFadeIn .22s ease both; }
.cm-wrap, .wr-wrap { animation: cmFadeIn .25s ease both; }
@media (prefers-reduced-motion: reduce) { .cm-feed > *, .nt-list > *, .dm-list > *, .cm-wrap, .wr-wrap { animation: none; } }


/* v19f — Subscribe (Substack-style) + share card CTA */
.cm-sub { width: 100%; border: 3px solid var(--ink); background: var(--yellow); color: var(--on-accent); border-radius: 14px; padding: 13px 18px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 3.5px 3.5px 0 var(--ink); }
.cm-sub.on { background: #00c48c; color: #04301f; }   /* 6.4:1 */
.cm-sub:active { transform: translate(2px, 2px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.cm-sharecard__cta { font-family: var(--font-head); font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: #55504a; text-align: center; }
html.dark .cm-sharecard__cta { color: #b7b0a5; }


/* ============================================================
   v20 — Instagram-grade story actions · live toasts · social lists
   ============================================================ */
/* big action row on story page */
.cm-bigacts { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; padding-top: 14px; border-top: 2.5px dashed rgba(127,127,127,.35); }
.cm-bigact { display: inline-flex; align-items: center; gap: 8px; border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.cm-bigact:active { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.cm-bigact__ico { font-size: 1.05rem; line-height: 1; display: inline-block; }
.cm-blike .cm-bigact__ico { color: #c9c4ba; transition: color .15s; }
.cm-blike.on .cm-bigact__ico { color: #e5484d; }
.cm-blike.pop .cm-bigact__ico { animation: igPop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes igPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 60% { transform: scale(.85); } 100% { transform: scale(1); } }
html.dark .cm-bigact { background: #241f17; color: var(--ink); }
/* double-tap heart burst */
.cm-bigheart { position: fixed; left: 50%; top: 42%; z-index: 90; transform: translate(-50%, -50%) scale(0); font-size: 6.5rem; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.45), 0 0 6px rgba(229,72,77,.9); pointer-events: none; animation: igBurst .95s cubic-bezier(.2, 1.2, .3, 1) forwards; }
@keyframes igBurst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 22% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 40% { transform: translate(-50%, -50%) scale(.95); } 55% { transform: translate(-50%, -50%) scale(1.05); } 100% { transform: translate(-50%, -58%) scale(1); opacity: 0; } }
/* comments v2 */
.cm-cmt--v2 { display: flex; gap: 10px; align-items: flex-start; }
.cm-cmt--v2 > div { flex: 1; min-width: 0; }
.cm-cmtname { color: var(--ink); text-decoration: none; }
.cm-cmtname:hover { text-decoration: underline; }
html.dark .cm-cmtname { color: var(--ink); }
/* live toasts */
#tsbToasts { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.tsb-ntoast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; text-decoration: none; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .3s; }
.tsb-ntoast.in { opacity: 1; transform: translateY(0); }
.tsb-ntoast.out { opacity: 0; transform: translateY(-14px); }
.tsb-ntoast b { font-weight: 800; }
.tsb-ntoast em { display: block; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #8f8a80; margin-top: 2px; }
html.dark .tsb-ntoast { background: #241f17; color: var(--ink); }
/* dm rows v2 */
.dm-row__ava, .dm-row__side { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.dm-row__meta { text-decoration: none; color: var(--ink); }
html.dark .dm-row__ava, html.dark .dm-row__side, html.dark .dm-row__meta { color: var(--ink); }
/* notifications rows v2 */
.nt-row .nt-name { color: var(--ink); text-decoration: none; }
.nt-row .nt-name:hover { text-decoration: underline; }
.nt-row .nt-cta, .nt-row .nt-ico { text-decoration: none; }
html.dark .nt-row .nt-name { color: var(--ink); }
/* social lists on profile */
.cm-social { margin-top: 22px; }
.cm-social h2 { font-family: var(--font-head); font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; }
.cm-socback { font-size: .72rem; color: #8f8a80; text-decoration: none; font-family: var(--font-body, inherit); }
.cm-stats a { color: inherit; text-decoration: none; }
.cm-stats a:hover b { text-decoration: underline; }
a.accstat { text-decoration: none; }


/* ============================================================
   v21 — compact mobile toasts · DM sheets · book picker · dots
   ============================================================ */
/* toasts: properly sized for phones */
#tsbToasts { top: calc(8px + env(safe-area-inset-top, 0px)); width: min(360px, calc(100vw - 20px)); gap: 6px; }
.tsb-ntoast { padding: 8px 12px; border-radius: 14px; font-size: .76rem; gap: 9px; box-shadow: 3px 3px 0 var(--ink); }
.tsb-ntoast .cm-ava { width: 30px; height: 30px; font-size: .74rem; }
.tsb-ntoast em { font-size: .56rem; margin-top: 1px; }
/* red dot */
.nt-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #e5484d; border: 2px solid var(--bg); }
.nt-dot--inline { position: static; display: inline-block; width: 9px; height: 9px; border: none; margin-left: 4px; vertical-align: middle; }
.cm-bell { position: relative; }
/* dm top action */
.cm-top__act { flex: none; width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 900; font-size: 1.1rem; cursor: pointer; box-shadow: 2.5px 2.5px 0 var(--ink); }
html.dark .cm-top__act { background: #241f17; color: var(--ink); }
/* dm plus */
.dm-plus { flex: none; width: 46px; height: 46px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--yellow); color: var(--on-accent); font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.dm-plus:active { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
/* bottom sheets */
.dm-sheet, .dm-picker { position: fixed; inset: 0; z-index: 100; background: rgba(20, 16, 10, .55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.dm-sheet.on, .dm-picker.on { opacity: 1; }
.dm-sheet__card, .dm-picker__card { width: min(480px, 100vw); background: var(--paper); border: 3px solid var(--ink); border-bottom: none; border-radius: 22px 22px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; transform: translateY(30px); transition: transform .22s; }
.dm-sheet.on .dm-sheet__card, .dm-picker.on .dm-picker__card { transform: translateY(0); }
.dm-sheet__card button { border: 2.5px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 13px; padding: 13px; font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
.dm-sheet__card button:active { background: var(--yellow); }
.dm-sheet__x { background: var(--paper) !important; text-align: center !important; color: #8f8a80 !important; }
html.dark .dm-sheet__card, html.dark .dm-picker__card { background: #241f17; color: var(--ink); }
html.dark .dm-sheet__card button { background: #1b1712; color: var(--ink); }
/* book picker */
.dm-picker__card { height: min(72dvh, 620px); }
.dm-picker__head { display: flex; align-items: center; justify-content: space-between; }
.dm-picker__head b { font-family: var(--font-head); font-size: .95rem; }
.dm-picker__head button { border: 2.5px solid var(--ink); background: var(--bg); border-radius: 10px; width: 34px; height: 34px; font-weight: 900; cursor: pointer; color: var(--ink); }
.dm-picker__list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pk-row { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 13px; background: var(--bg); padding: 7px 10px; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.pk-row img { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; border: 1.5px solid var(--ink); flex: none; }
.pk-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-row b { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-row span { font-size: .68rem; color: #8f8a80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-row:active { background: var(--yellow); }
html.dark .pk-row { background: #1b1712; color: var(--ink); }
/* book message card */
.dm-book { display: flex; gap: 10px; align-items: center; border: 2.5px solid var(--ink); border-radius: 13px; background: var(--paper); padding: 8px 10px; margin-bottom: 6px; text-decoration: none; color: var(--ink); box-shadow: 2.5px 2.5px 0 var(--ink); }
.dm-book img { width: 38px; height: 54px; object-fit: cover; border-radius: 6px; border: 2px solid var(--ink); flex: none; }
.dm-book div { display: flex; flex-direction: column; min-width: 0; }
.dm-book b { font-size: .82rem; line-height: 1.2; }
.dm-book span { font-size: .68rem; color: #8f8a80; }
.dm-book em { font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }
.dm-bub { cursor: pointer; }
#youPopBtn.on { background: #00c48c; }


/* ============================================================
   v22 — anchored popouts · flipping ⋯ · search pill · social lists
   ============================================================ */
.dm-pop { position: fixed; z-index: 110; width: 210px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: scale(.85); transform-origin: top right; transition: opacity .16s, transform .16s; }
.dm-pop.on { opacity: 1; transform: scale(1); }
.dm-pop button { border: none; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: .8rem; text-align: left; padding: 10px 10px; border-radius: 9px; cursor: pointer; }
.dm-pop button:hover, .dm-pop button:active { background: var(--yellow); }
.dm-pop button small { color: #8f8a80; font-weight: 600; }
html.dark .dm-pop { background: #241f17; }
html.dark .dm-pop button { color: var(--ink); }
/* flipping three-dot */
.cm-top__act { transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); line-height: 1; }
.cm-top__act.on { transform: rotate(90deg); background: var(--yellow); }
/* small search pill */
.pk-search { display: flex; align-items: center; gap: 8px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--bg); padding: 8px 14px; margin-top: 10px; }
.pk-search span { font-size: .8rem; }
.pk-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-weight: 600; font-size: .82rem; color: var(--ink); }
html.dark .pk-search input { color: var(--ink); }
/* social lists: no overlap, clean rows */
.cm-social .cm-people { gap: 8px; }
.cm-social .cm-person { padding: 10px 12px; gap: 10px; border-radius: 15px; }
.cm-social .cm-person__meta { gap: 1px; }
.cm-social .cm-name { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cm-socid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .64rem; letter-spacing: .3px; }
.cm-social .cm-person__acts .cm-follow { font-size: .68rem; padding: 7px 10px; white-space: nowrap; }


/* ============================================================
   v23 — video Bursts (max 2 min)
   ============================================================ */
.cm-card__cover video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.cm-card__kind--burst { background: var(--chip); color: var(--yellow); }
html.dark .cm-card__kind--burst { background: var(--yellow); color: var(--on-accent); }
.cm-postcard__cover.cm-postcard__cover { max-height: 70dvh; }
video.cm-postcard__cover { width: 100%; object-fit: contain; background: #111; border: 3px solid var(--ink); border-radius: 16px; }
.cm-reel__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
.cm-reel__vid + .cm-reel__grad { background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 45%); }
.cm-reel__body { z-index: 2; }
.cm-prev { max-height: 220px; width: 100%; object-fit: contain; background: #111; border-radius: 12px; }


/* ============================================================
   v24 — infinite Bursts viewer
   ============================================================ */
.cm-burstend { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; color: #b9b2a6; font-weight: 700; font-size: .82rem; padding: 24px 20px calc(var(--bar-total) + 24px); }
.cm-burstend small { color: #847e73; font-weight: 600; }
.cm-burstpill { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 63; border: 2.5px solid #fff; background: rgba(20, 16, 10, .78); color: #ffe27a; font: inherit; font-weight: 800; font-size: .78rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.cm-reel__q { font-family: Georgia, serif; font-size: 3.4rem; line-height: .6; color: var(--yellow); opacity: .95; }


/* ============================================================
   v25 — Find readers overlay · profile glow-up
   ============================================================ */
.cm-finder { position: fixed; inset: 0; z-index: 105; background: rgba(20, 16, 10, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cm-finder__card { width: min(520px, 100%); height: min(78dvh, 640px); background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
html.dark .cm-finder__card { background: #241f17; color: var(--ink); }
.cm-finder__list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.cm-finder__list .cm-person { border: 2.5px solid var(--ink); border-radius: 15px; padding: 10px 12px; background: var(--bg); }
html.dark .cm-finder__list .cm-person { background: #1b1712; }
/* profile v2 */
.cm-profhead--v2 { padding-top: 0; }
.cm-banner { height: 118px; border-radius: 0 0 22px 22px; border-bottom: 3px solid var(--ink); }
.cm-profcard { position: relative; margin: -58px 14px 0; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
html.dark .cm-profcard { background: #241f17; color: var(--ink); }
.cm-profcard__top { display: flex; align-items: flex-end; gap: 12px; }
.cm-ava--ring { border: 4px solid var(--paper); box-shadow: 3px 3px 0 var(--ink); margin-top: -46px; background: var(--paper); }
html.dark .cm-ava--ring { border-color: #241f17; background: #241f17; }
.cm-profmain { flex: 1; min-width: 0; padding-bottom: 2px; }
.cm-profmain h1 { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-profmain h1 i { font-style: normal; color: #8f8a80; font-size: .8rem; }
.cm-idchip { display: inline-block; margin-top: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .66rem; font-weight: 700; background: var(--bg); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
html.dark .cm-idchip { background: #1b1712; }
.cm-profcard .cm-bio { margin: 0; font-weight: 600; font-size: .84rem; }
.cm-statcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.cm-statcard { display: block; text-align: center; text-decoration: none; color: var(--ink); background: var(--bg); border: 2.5px solid var(--ink); border-radius: 14px; padding: 9px 6px; }
html.dark .cm-statcard { background: #1b1712; color: var(--ink); }
.cm-statcard b { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1; }
.cm-statcard span { display: block; margin-top: 4px; font-size: .6rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #8f8a80; }
.cm-progpill { align-self: flex-start; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .74rem; box-shadow: 2.5px 2.5px 0 var(--ink); }
.cm-profacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-dmbtn--big { font-size: .8rem; padding: 9px 14px; border-radius: 12px; }


/* ============================================================
   v26 — SVG icon system (replaces fragile emojis)
   ============================================================ */
.tsb-ic { width: 1.05em; height: 1.05em; vertical-align: -0.18em; flex: none; }
.dm-pop button .tsb-ic { margin-right: 7px; }
.cm-chipbtn .tsb-ic { margin-right: 5px; }
.cm-dmbtn .tsb-ic, .cm-follow .tsb-ic, .cm-sub .tsb-ic { margin-right: 4px; }
.cm-bigact__ico .tsb-ic { width: 1.2em; height: 1.2em; vertical-align: -0.25em; }

/* v26 — SVG icon spacing */
.tsb-ic { width: 1.05em; height: 1.05em; vertical-align: -0.18em; flex: none; }
.dm-pop button .tsb-ic { margin-right: 7px; }
.cm-chipbtn .tsb-ic, .cm-sect .tsb-ic, .cm-empty .tsb-ic { margin-right: 5px; }
.cm-dmbtn .tsb-ic, .cm-follow .tsb-ic, .cm-sub .tsb-ic, .cm-write .tsb-ic { margin-right: 4px; }
.cm-time .tsb-ic, .cm-progpill .tsb-ic, h2 .tsb-ic, .cm-top__t .tsb-ic,
.cm-sharecard__cta .tsb-ic, .cm-sharecard__brand .tsb-ic { margin-right: 5px; }
.cm-del .tsb-ic { width: 1em; height: 1em; }
.cm-bell .tsb-ic { width: 1.2em; height: 1.2em; }

/* v27 — visitor profile: card centred, one clean action area */
.cm-sharecard { gap: 12px; }
.cm-sharecard__who { justify-content: center; width: 100%; }
.cm-sharecard .cm-bio { max-width: 34em; }
.cm-sharerow { justify-content: center; flex-wrap: wrap; width: 100%; }
.cm-sharerow--main { margin-top: 10px; }
.cm-sharerow--sub { margin-top: -4px; }
.cm-sharerow--main .cm-follow { flex: 1 1 150px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.cm-sharerow--main .cm-dmbtn { flex: 1 1 150px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.cm-sharerow--sub .setbtn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }

/* ============================================================
   v28 — Instagram-style profile header + social sheet
   ============================================================ */
.cm-avawrap { position: relative; flex: none; }
.cm-avaplus {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px;
  border-radius: 50%; border: 2.5px solid var(--ink, #14100a); background: var(--yellow, #ffc800);
  color: var(--ink, #14100a); font-size: 19px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink, #14100a); padding: 0;
}
.cm-avaplus:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink, #14100a); }
.cm-statrow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 2px; }
.cm-statrow__n { display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: inherit; }
.cm-statrow__n b { font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.cm-statrow__n span { font-size: .78rem; color: #6b6b6b; letter-spacing: .02em; }
.cm-linksrow { display: flex; flex-wrap: wrap; gap: 7px; }
.cm-linkchip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  border: 2px solid var(--ink, #14100a); border-radius: 999px; background: var(--bg, #fffdf4);
  padding: 5px 11px; font-size: .78rem; font-weight: 700; color: inherit; text-decoration: none;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cm-profmain h1 {
  font-size: clamp(1.05rem, 4.6vw, 1.55rem); line-height: 1.18; margin: 0;
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
.cm-profmain { min-width: 0; }
.cm-bio { white-space: pre-line; overflow-wrap: anywhere; }
/* social sheet (followers / following), Instagram-style bottom sheet */
.cm-socsheet { position: fixed; inset: 0; z-index: 400; background: rgba(20, 16, 10, .38); display: flex; align-items: flex-end; justify-content: center; }
body.cm-soc-open { overflow: hidden; }
.cm-socsheet__card {
  width: min(560px, 100%); max-height: 82vh; display: flex; flex-direction: column;
  background: var(--bg, #fffdf4); border: 3px solid var(--ink, #14100a); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -6px 0 rgba(20, 16, 10, .12);
  animation: cm-socup .22s ease-out;
}
@keyframes cm-socup { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.cm-socsheet__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 2px solid var(--ink, #14100a); }
.cm-socsheet__back { border: 2px solid var(--ink, #14100a); background: var(--bg, #fffdf4); border-radius: 10px; width: 36px; height: 36px; font-size: 1rem; font-weight: 800; cursor: pointer; }
.cm-socsheet__tabs { display: flex; gap: 6px; flex: 1; justify-content: center; }
.cm-socsheet__tabs button { border: 2px solid transparent; background: transparent; font: inherit; font-weight: 800; font-size: .92rem; padding: 6px 12px; border-radius: 10px; cursor: pointer; color: inherit; }
.cm-socsheet__tabs button.on { border-color: var(--ink, #14100a); background: var(--yellow, #ffc800); }
.cm-socsheet__count { font-size: .8rem; color: #6b6b6b; min-width: 34px; text-align: right; }
.cm-socsheet__list { overflow-y: auto; padding: 10px 12px 16px; min-height: 120px; }
.cm-socsheet__list .cm-people { display: flex; flex-direction: column; gap: 8px; }

/* v29 — big names wrap cleanly beside the avatar (never off-screen) */
.cm-profcard__top { align-items: flex-start; }
.cm-profmain h1 { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }


/* --- 📲 Install-to-home-screen popup (v216) --- */
.instmodal { text-align: center; }
.instbody { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.insthero { position: relative; width: 92px; height: 92px; margin: 4px auto 8px; }
.insthero img { width: 92px; height: 92px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); object-fit: cover; }
.insthero span { position: absolute; right: -12px; bottom: -10px; font-size: 1.6rem; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.25)); }
.instp { color: var(--ink); opacity: .82; font-size: .92rem; line-height: 1.5; margin: 0 0 10px; }
.inststeps { width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.inststep { border: 2px solid var(--ink); background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: .88rem; text-align: left; box-shadow: 2px 2px 0 var(--ink); }
.instshare { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; padding: 1px 7px; background: var(--yellow); margin: 0 2px; }
.instfine { font-size: .75rem; opacity: .6; margin-top: 10px; }
.setbtn--big { font-size: 1rem; padding: 14px; background: var(--yellow); color: #111; box-shadow: 4px 4px 0 var(--ink); }
@media (display-mode: standalone) { [data-install], [data-installwrap] { display: none !important; } }

/* ================= v221 ================= */
/* --- DM read receipts --- */
.dm-tick { display: inline-block; font-weight: 900; color: #9a948a; letter-spacing: -1px; margin-left: 6px; font-size: .78rem; }
.dm-bub.me .dm-tick { align-self: flex-end; letter-spacing: -1.5px; }
.dm-tick.read { color: #1573ff; }
.dm-tick.pending { color: #c9c3b8; animation: tspend 1.1s ease-in-out infinite; }
.dm-tick--mini { font-size: .68rem; margin-left: 4px; letter-spacing: -1.5px; }
@keyframes tspend { 50% { opacity: .35; } }
.dm-bub--pend { opacity: .72; }
.dm-bub--fail { outline: 3px solid #e5484d; opacity: .5; }
.dm-row--unread { border-color: var(--accent, #ffc800); box-shadow: 3px 3px 0 var(--accent, #ffc800); }
.dm-unread { display: inline-block; margin-left: 8px; background: #e5484d; color: #1a0000; font-size: .62rem; font-weight: 900; border-radius: 99px; padding: 2px 7px; vertical-align: middle; }
/* --- pretty upload pickers (no native "No file chosen") --- */
.upbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); color: var(--on-chip); border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 13px; font-weight: 800; font-size: .82rem; cursor: pointer; box-shadow: 3px 3px 0 rgba(0,0,0,.18); transition: transform .08s ease; }
.upbtn:hover { transform: translateY(-1px); }
.upbtn:active { transform: translateY(1px); box-shadow: 1px 1px 0 rgba(0,0,0,.2); }
.upname { display: block; margin-top: 5px; font-size: .68rem; color: #8f8a80; font-weight: 700; }
.upname.has { color: #1d9a5b; }
.cm-lbl--file { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; }
.cm-lbl--file .upname { margin-top: 0; flex-basis: 100%; }
.cm-filelbl { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cm-filelbl .upname { margin-top: 0; }
html.dark .upbtn { background: var(--paper); color: var(--ink); border-color: #000; }
/* --- view-only media checkbox --- */
.cm-lbl--chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .85rem; }
.cm-lbl--chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent, #ffc800); }
.cm-lbl--chk span { font-weight: 600; color: #8f8a80; font-size: .74rem; display: block; }
/* --- Instagram-style video controls (no download, no save) --- */
video { -webkit-user-select: none; user-select: none; }
.tsb-vctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.tsb-vctrl.on { opacity: 1; pointer-events: auto; }
.tsb-vplay { background: rgba(255,255,255,.92); color: #111; border: 0; border-radius: 99px; min-width: 34px; height: 34px; font-size: .95rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tsb-vseek { flex: 1; height: 5px; background: rgba(255,255,255,.35); border-radius: 99px; cursor: pointer; position: relative; }
.tsb-vseek i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: #ffc800; border-radius: 99px; }
/* --- Install modal popup --- */
.instmodal { max-width: 380px; text-align: center; padding: 26px 22px 20px; }
.insthero { position: relative; display: inline-block; }
.insthero img { width: 84px; height: 84px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.insthero span { position: absolute; right: -14px; bottom: -10px; font-size: 1.5rem; }
.instp { color: #8f8a80; font-size: .86rem; line-height: 1.5; margin: 4px 0 14px; }
.instfine { font-size: .72rem; color: #8f8a80; margin: 10px 0 0; }
html.dark .instp, html.dark .instfine { color: #a8a195; }
html.dark .insthero img { border-color: #000; box-shadow: 4px 4px 0 var(--paper); }

/* ============================================================
   🎙️ VOICE TO TEXT — dictate (v229, professional)
   Top bar pill + live interim bar — no cheap popup
   ============================================================ */
.wr-dictate{
  display:inline-flex;align-items:center;gap:8px;
  border:2.5px solid var(--ink);background:var(--paper);color:var(--ink);
  border-radius:999px;padding:9px 14px;font-family:var(--font-body);
  font-weight:800;font-size:.78rem;letter-spacing:.3px;cursor:pointer;
  box-shadow:2.5px 2.5px 0 var(--ink);transition:transform .12s,box-shadow .12s,background .12s,color .12s;
  white-space:nowrap;
}
.wr-dictate:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.wr-dictate:active{transform:translate(1px,1px);box-shadow:1.5px 1.5px 0 var(--ink)}
.wr-dictate.on{background:#111;color:#ffc800;border-color:#111;box-shadow:3px 3px 0 #ffc800}
html.dark .wr-dictate.on{background:#000;color:#ffc800;border-color:#000;box-shadow:3px 3px 0 #ffc800}
.wr-dictate__dot{width:9px;height:9px;border-radius:50%;background:#00c48c;border:2px solid currentColor;flex:none;transition:background .15s}
.wr-dictate.on .wr-dictate__dot{background:#ff5252;animation:dictPulse 1.1s infinite}
.wr-dictate__dot.on{background:#ff5252;animation:dictPulse 1.1s infinite}
@keyframes dictPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.25);opacity:.7}}
.wr-dictate__dot.is-unsupported{background:#999}
.wr-dictate__lang{
  border:2px solid var(--ink);background:var(--paper);color:var(--ink);
  border-radius:999px;padding:7px 10px;font-family:var(--font-body);font-weight:700;font-size:.72rem;
  box-shadow:2px 2px 0 var(--ink);cursor:pointer;margin-left:6px;
}
html.dark .wr-dictate__lang{background:#1b1712;color:var(--ink);border-color:#000;box-shadow:2px 2px 0 #000}
.wr-dictate__live{
  background:var(--paper);border:2.5px solid var(--ink);border-radius:16px;
  box-shadow:4px 4px 0 var(--ink);padding:12px 14px;margin:10px 0 6px;
  animation:dictIn .22s ease;
}
@keyframes dictIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.wr-dictate__livehead{
  display:flex;align-items:center;gap:8px;font-size:.68rem;font-weight:800;letter-spacing:.6px;
  text-transform:uppercase;color:#8f8a80;margin-bottom:8px;line-height:1.3;
}
.wr-dictate__pulse{width:8px;height:8px;border-radius:50%;background:#ff5252;flex:none;animation:dictPulse 1.1s infinite}
.wr-dictate__interim{
  min-height:22px;font-size:.95rem;line-height:1.55;color:var(--ink);font-weight:600;
  background:var(--bg);border:2px dashed rgba(127,127,127,.35);border-radius:12px;padding:10px 12px;
  white-space:pre-wrap;word-break:break-word;
}
html.dark .wr-dictate__live{background:#241f17;color:var(--ink);border-color:#000;box-shadow:4px 4px 0 #000}
html.dark .wr-dictate__interim{background:#1b1712;color:var(--ink);border-color:rgba(242,234,216,.2)}
@media(max-width:560px){
  .wr-dictate{padding:8px 11px;font-size:.72rem;gap:6px}
  .wr-dictate__lang{padding:6px 8px;font-size:.68rem}
  .wr-top{gap:8px}
  .wr-top .wr-dictate,.wr-top .wr-dictate__lang{flex:none}
}

/* ============================================================
   DARK MODE — READABILITY HARDENING (v248)
   Safety net for text-entry controls + message bubbles where
   default text was unreadable on dark surfaces.
   ============================================================ */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="search"],
html.dark input[type="password"],
html.dark input[type="url"],
html.dark input[type="tel"],
html.dark input:not([type]),
html.dark textarea,
html.dark select {
  background:#1b1712; color:var(--ink); border-color:#000;
}
html.dark input::placeholder,
html.dark textarea::placeholder { color:#8a8170; }
/* own-message bubble: yellow background needs dark text even in dark mode */
html.dark .dm-bub.me { color:#111; }
html.dark .dm-bub.me em { color:#6a5a2a; }
/* generic dialogs/sheets that forgot a dark surface */
html.dark .dm-picker__card, html.dark .dm-sheet__card { color:var(--ink); }

/* ============================================================

/* ============================================================
   v248 — BOOK TOOLS: cheat-sheet, sponsor line, fuel modal
   (neo-brutalist: ink borders, hard offset shadows, Archivo Black)
   ============================================================ */
/* ============================================================
   v250 — BOOK PAGE: the cheat-sheet you can actually see,
   the sponsor sheet rebuilt, and a two-page PDF that stays two pages
   ============================================================ */

/* ---------- the reader's kit, sitting after the 5-step plan ----------
   Same 1100px container as .bookhero / .bigidea / .plan, so it lines up
   with the text column instead of sticking to the screen edges. */
.bookkit { max-width:1100px; margin:56px auto 0; padding:0 clamp(16px, 4vw, 48px); }
/* and the prev/next pair gets its own clearance, so the reader's kit never
   looks welded to the two coloured buttons below it */
.bookkit + .sponsorline, .bookkit + .booknav { margin-top:40px; }
@media (max-width:560px) { .bookkit + .sponsorline, .bookkit + .booknav { margin-top:30px; } }
.bookkit__card {
  border:3px solid var(--ink); border-radius:20px; padding:18px 18px 14px;
  background:var(--paper); box-shadow:6px 6px 0 var(--ink);
}
.bookkit__h { font-family:'Archivo Black','Arial Black',sans-serif; font-size:1.14rem; line-height:1.2; margin:0 0 7px; letter-spacing:.2px; }
.bookkit__h span { display:block; color:var(--muted); font-size:.9rem; letter-spacing:0; margin-top:3px; }
.bookkit__sub { margin:0 0 14px; font-size:.82rem; line-height:1.5; color:var(--muted); font-weight:600; max-width:62ch; }
.bookkit__row { display:grid; gap:10px; }
@media (min-width:760px) { .bookkit__row { grid-template-columns:1.15fr 1fr; } }
.bookkit__btn {
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  border:3px solid var(--ink); border-radius:16px; padding:12px 14px;
  font-family:'Space Grotesk',Arial,sans-serif; box-shadow:4px 4px 0 var(--ink);
  transition:transform .12s ease, box-shadow .12s ease;
}
.bookkit__btn:hover { transform:translate(-1px,-1px); box-shadow:5px 5px 0 var(--ink); }
.bookkit__btn:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
.bookkit__btn--cheat { background:var(--yellow); color:var(--on-accent); }
.bookkit__btn--fuel { background:var(--surface, #fff); color:var(--ink); }
.bookkit__ic { flex:none; font-size:1.5rem; line-height:1; }
.bookkit__tx { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bookkit__tx b { font-family:'Archivo Black','Arial Black',sans-serif; font-size:.95rem; letter-spacing:.2px; line-height:1.15; }
.bookkit__tx i { font-style:normal; font-size:.72rem; font-weight:600; opacity:.78; line-height:1.35; }
.bookkit__q { margin-top:12px; text-align:center; font-size:.72rem; font-weight:700; color:var(--muted); }
.sponsorline { margin:26px auto 0; max-width:1100px; padding:0 clamp(16px, 4vw, 48px); }
html.dark .bookkit__card { background:#241f17; }
html.dark .bookkit__btn--fuel { background:#17140f; }

/* ---------- FUEL: a sheet that belongs to this app ---------- */
.fuelmodal {
  position:fixed; inset:0; z-index:9995; display:flex; align-items:flex-end; justify-content:center;
  background:rgba(20,16,10,.62); padding:0; backdrop-filter:blur(3px);
}
@media (min-width:640px) { .fuelmodal { align-items:center; padding:20px; } }
.fuelmodal[hidden] { display:none; }
.fuelmodal__card {
  position:relative; width:min(520px,100%); max-height:92vh; overflow:auto;
  background:var(--paper); color:var(--ink); border:3.5px solid var(--ink);
  border-radius:22px 22px 0 0; box-shadow:0 -8px 0 rgba(0,0,0,.18);
  padding:16px 16px calc(18px + env(safe-area-inset-bottom));
  animation:fuelUp .22s ease-out;
}
@media (min-width:640px) { .fuelmodal__card { border-radius:22px; box-shadow:9px 9px 0 var(--ink); animation:none; } }
@keyframes fuelUp { from { transform:translateY(22px); opacity:.4; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion:reduce) { .fuelmodal__card { animation:none; } }
.fuelmodal__top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fuelmodal__badge {
  font-family:'Archivo Black','Arial Black',sans-serif; font-size:10.5px; letter-spacing:1.6px;
  background:var(--yellow); color:var(--on-accent); border:2.5px solid var(--ink);
  border-radius:999px; padding:5px 11px;
}
.fuelmodal__x {
  width:38px; height:38px; flex:none; border:2.5px solid var(--ink); background:var(--surface-2,#f6f1e5);
  color:var(--ink); border-radius:12px; font-size:1rem; font-weight:800; cursor:pointer;
}
.fuelmodal h2 { font-family:'Archivo Black','Arial Black',sans-serif; font-size:1.28rem; line-height:1.1; margin:12px 0 8px; }
.fuelmodal__book { font-size:.84rem; line-height:1.5; color:var(--muted); margin:0 0 14px; }
.fuelmodal__book b { color:var(--ink); }
.fuelmodal__blank { color:var(--accent,#c22b2b); text-decoration:underline dotted; font-weight:800; }
.fuelmodal__amts { display:flex; gap:8px; margin:0 0 12px; }
.fuelmodal__amts button {
  flex:1; padding:11px 6px; cursor:pointer; font-weight:800; font-size:.9rem;
  background:transparent; color:var(--ink); border:2.5px solid var(--ink); border-radius:12px;
  font-family:'Space Grotesk',Arial,sans-serif;
}
.fuelmodal__amts button.on { background:var(--ink); color:var(--paper); }
.fuelmodal__pay {
  display:block; text-align:center; text-decoration:none; margin:0 0 6px;
  background:var(--yellow); color:var(--on-accent); border:3px solid var(--ink); border-radius:15px;
  padding:15px 12px; font-family:'Archivo Black','Arial Black',sans-serif; font-size:1rem;
  box-shadow:4px 4px 0 var(--ink);
}
.fuelmodal__pay:active { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--ink); }
.fuelmodal__alt { font-size:.7rem; color:var(--muted); text-align:center; font-weight:600; }
.fuelmodal__upirow {
  display:flex; align-items:center; gap:8px; margin:12px 0; padding:9px 11px;
  border:2.5px solid var(--ink); border-radius:12px; background:var(--surface-2,#f6f1e5);
}
.fuelmodal__upi { flex:1; min-width:0; font-weight:800; font-size:.82rem; letter-spacing:.3px; overflow:hidden; text-overflow:ellipsis; }
.fuelmodal__copy {
  flex:none; cursor:pointer; border:2.5px solid var(--ink); background:var(--paper); color:var(--ink);
  border-radius:9px; padding:7px 10px; font-weight:800; font-size:.74rem;
}
.fuelmodal__wa {
  display:block; text-align:center; margin:6px 0 10px; padding:12px;
  border:2.5px dashed var(--ink); border-radius:13px; text-decoration:none;
  color:var(--ink); font-weight:800; font-size:.84rem;
}
.fuelmodal__note { font-size:.7rem; line-height:1.5; color:var(--muted); margin:0; text-align:center; }
html.dark .fuelmodal__x, html.dark .fuelmodal__upirow { background:#17140f; }
html.dark .fuelmodal__upirow { border-color:#3a352b; }
html.dark .fuelmodal__amts button.on { background:var(--yellow); color:var(--on-accent); border-color:var(--yellow); }

/* ============================================================
   THE CHEAT SHEET — colour, designed, and exactly two pages.
   Print-only: it never flashes on screen. Every page clips its
   own content, so a third page is structurally impossible.
   ============================================================ */
.cs2 { display:none; }
.cs2__page {
  position:relative; box-sizing:border-box; overflow:hidden; color:var(--ink-x,#14110c);
  width:210mm; height:290mm; padding:11mm 12mm 22mm;
  background:
    radial-gradient(115% 55% at 100% 0%, var(--c) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, #ffffff 0%, var(--b) 100%);
}
.cs2__page + .cs2__page { break-before:page; page-break-before:always; }
.cs2__body { height:100%; overflow:hidden; }
.cs2__head { display:flex; align-items:center; gap:9px; padding-bottom:9px; border-bottom:2.5px solid var(--ink-x); margin-bottom:11px; }
.cs2__brand { display:inline-flex; align-items:center; gap:7px; font-family:'Archivo Black','Arial Black',sans-serif; font-size:11px; letter-spacing:1.4px; }
.cs2__brand i { width:9px; height:9px; border-radius:50%; background:var(--a); border:2px solid var(--ink-x); display:block; }
.cs2__cat {
  font-family:'Space Grotesk',Arial,sans-serif; font-size:9.5px; font-weight:800; letter-spacing:.7px;
  text-transform:uppercase; border:2px solid var(--ink-x); border-radius:999px; padding:3px 9px;
}
.cs2__pg { margin-left:auto; font-size:10px; font-weight:800; letter-spacing:1px; opacity:.55; }
.cs2__hero { display:flex; gap:14px; align-items:flex-start; padding-bottom:10px; border-bottom:3px solid var(--ink-x); }
.cs2__cover {
  flex:none; width:92px; height:132px; object-fit:cover; border:3px solid var(--ink-x);
  border-radius:10px; box-shadow:4px 4px 0 var(--ink-x); background:#fff;
}
.cs2__cover--none { display:grid; place-items:center; font-size:1.6rem; background:var(--a); }
.cs2__hero h1 { font-family:'Archivo Black','Arial Black',sans-serif; font-size:26px; line-height:1.04; margin:0 0 3px; }
.cs2__by { font-size:12.2px; font-weight:800; letter-spacing:.2px; }
.cs2__tag { font-size:12px; line-height:1.45; margin-top:7px; opacity:.84; }
.cs2__gold { display:inline-block; margin-top:6px; font-size:9px; font-weight:800; letter-spacing:1px;
  background:var(--a); border:2px solid var(--ink-x); border-radius:999px; padding:3px 8px; }
.cs2__big {
  margin-top:14px; border:3px solid var(--ink-x); border-radius:15px; padding:15px 16px;
  background:#fff; box-shadow:4px 4px 0 var(--ink-x); position:relative;
}
.cs2__big::before { content:""; position:absolute; left:0; top:11px; bottom:11px; width:6px; border-radius:0 6px 6px 0; background:var(--a); }
.cs2__biglbl { display:block; font-family:'Archivo Black','Arial Black',sans-serif; font-size:10.2px; letter-spacing:1.3px; margin-bottom:4px; padding-left:6px; }
.cs2__big p { margin:0; font-size:13.8px; line-height:1.5; font-weight:600; padding-left:6px; }
.cs2__h2 {
  font-family:'Archivo Black','Arial Black',sans-serif; font-size:13.6px; letter-spacing:.4px;
  text-transform:uppercase; margin:11px 0 7px; display:flex; align-items:center; gap:7px;
}
.cs2__h2c { flex:none; display:inline-block; width:14px; height:3px; background:var(--a); border:1.5px solid var(--ink-x); border-radius:2px; }
.cs2__h2--tight { margin-top:11px; }
.cs2__ladder { list-style:none; margin:0; padding:0; position:relative; }
.cs2__ladder::before { content:""; position:absolute; left:16px; top:18px; bottom:18px; width:3px; background:var(--c); }
.cs2__step { display:flex; gap:12px; align-items:flex-start; padding:6px 0; position:relative; }
.cs2__num {
  flex:none; width:33px; height:33px; border-radius:50%; background:var(--a); color:var(--ink-x);
  border:2.5px solid var(--ink-x); display:grid; place-items:center;
  font-family:'Archivo Black','Arial Black',sans-serif; font-size:13.5px; position:relative; z-index:1;
}
.cs2__stx { flex:1; min-width:0; padding-top:1px; }
.cs2__stx b { display:block; font-family:'Archivo Black','Arial Black',sans-serif; font-size:13.4px; line-height:1.2; }
.cs2__stx span { display:block; font-size:11.7px; line-height:1.44; margin-top:3px; opacity:.87; }
/* fixed in mm, with preserveAspectRatio="meet" on the SVG, so a browser and a
   print engine lay it out identically instead of each guessing an intrinsic size */
.cs2__map { display:block; width:100%; height:32mm; margin:3px 0 0; }
.cs2__dos { list-style:none; margin:0; padding:0; }
.cs2__do {
  display:flex; gap:11px; align-items:center; padding:8px 13px; margin-bottom:5px;
  border:2.5px solid var(--ink-x); border-radius:12px; background:#fff;
}
.cs2__donum {
  flex:none; width:25px; height:25px; border-radius:8px; background:var(--ink-x); color:#fff;
  display:grid; place-items:center; font-size:12.5px; font-weight:800;
}
.cs2__do span:last-child { font-size:12.6px; line-height:1.42; font-weight:600; }
.cs2__watch { border:2.5px solid var(--ink-x); border-radius:13px; padding:8px 12px; background:#fff4f2; margin-top:8px; }
.cs2__watch b { display:block; font-family:'Archivo Black','Arial Black',sans-serif; font-size:9.5px; letter-spacing:1px; margin-bottom:4px; color:#a4160f; }
.cs2__watch p { margin:0; font-size:11.6px; line-height:1.5; }
.cs2__lead {
  margin:11px 0 0; padding:14px 18px 12px 44px; position:relative;
  border:3px solid var(--ink-x); border-left:12px solid var(--a);
  border-radius:16px; background:#fff; box-shadow:5px 5px 0 var(--ink-x);
}
.cs2__leadq { position:absolute; left:18px; top:12px; font-size:34px; line-height:1; color:var(--accent); }
.cs2__lead p { margin:0; font-size:15.6px; line-height:1.44; font-style:italic; font-weight:700; }
.cs2__lead figcaption { margin-top:6px; font-size:10px; font-weight:800; opacity:.66; }
.cs2__idbar { display:flex; align-items:center; gap:9px; margin:2px 0 0; }
.cs2__idcov { flex:none; width:36px; height:51px; object-fit:cover; border:2.5px solid var(--ink-x); border-radius:6px; background:var(--a); }
.cs2__idbar b { display:block; font-family:'Archivo Black','Arial Black',sans-serif; font-size:14.5px; line-height:1.15; }
.cs2__idbar i { font-style:normal; font-size:10px; font-weight:700; opacity:.66; }
.cs2__foot {
  position:absolute; left:12mm; right:12mm; bottom:7mm;
  display:flex; justify-content:space-between; gap:10px; align-items:center;
  border-top:2.5px solid var(--ink-x); padding-top:6px; font-size:9.4px; font-weight:700;
}
.cs2__url { font-family:'Archivo Black','Arial Black',sans-serif; font-size:9px; letter-spacing:.3px; }
.cs2__chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.cs2__chips span {
  font-size:10px; font-weight:800; letter-spacing:.2px; border:2px solid var(--ink-x);
  border-radius:999px; padding:3px 8px; background:rgba(255,255,255,.72);
}
.cs2__chips b { font-family:'Archivo Black','Arial Black',sans-serif; }
.cs2__morenum { font-family:'Space Grotesk',Arial,sans-serif; font-size:9.5px; font-weight:800; letter-spacing:.4px;
  text-transform:none; opacity:.6; margin-left:6px; }
.cs2__rest { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; }
.cs2__rest li { display:flex; gap:8px; align-items:baseline; padding:5.5px 0; border-bottom:1.5px dotted rgba(20,17,12,.22); }
.cs2__restn { flex:none; width:17px; font-size:9.5px; font-weight:800; opacity:.55; }
.cs2__rest b { display:block; font-size:11.5px; line-height:1.26; font-weight:800; }
.cs2__rest i { display:block; font-style:normal; font-size:10.2px; opacity:.6; margin-top:1px; }
.cs2__quotes { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cs2__quotes blockquote {
  margin:0; border-left:3px solid var(--a); background:var(--b); border-radius:0 10px 10px 0;
  padding:7px 11px; font-size:11.6px; line-height:1.46; font-style:italic;
}
.cs2__next { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.cs2__nb { display:flex; gap:9px; align-items:center; border:2.5px solid var(--ink-x); border-radius:12px; padding:9px; background:#fff; }
.cs2__nb img { flex:none; width:34px; height:49px; object-fit:cover; border:2px solid var(--ink-x); border-radius:5px; background:var(--c); }
.cs2__nb span { min-width:0; }
.cs2__nb b { display:block; font-size:11px; line-height:1.22; font-weight:800; }
.cs2__nb i { font-style:normal; font-size:10px; opacity:.62; }

/* ---------- the print pass: two sheets, never a third ---------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { margin:0 !important; padding:0 !important; background:#fff !important; }
  body.tsb-printing > *:not(#tsbCheat) { display:none !important; }
  body.tsb-printing #tsbCheat { display:block !important; position:static !important; }
  .cs2 { display:block !important; }
  .cs2__page {
    width:210mm; height:290mm;             /* 7mm of slack on a 297mm sheet:
                                              rounding can never invent page 3 */
    padding:11mm 12mm 14mm;               /* the bottom 14mm is the footer's, always */
  }
  .cs2__page + .cs2__page { break-before:page; page-break-before:always; }
  * { -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}

/* ============================================================
   v248 — DM: voice mic, read-together picker, audio, thread banner
   ============================================================ */
.dm-mic { flex:none; width:46px; height:46px; border:2.5px solid var(--ink); border-radius:14px; background:#fff; color:var(--ink); font-size:1.2rem; cursor:pointer; box-shadow:3px 3px 0 var(--ink); }
.dm-mic.on { background:var(--red); color:#fff; animation:pulse 1s infinite; }
@keyframes pulse { 0%,100%{box-shadow:3px 3px 0 var(--ink);} 50%{box-shadow:3px 3px 0 var(--red);} }
.pk-row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:var(--paper,#fffdf5); border:2.5px solid var(--ink); border-radius:14px; box-shadow:3px 3px 0 var(--ink); padding:8px 10px; cursor:pointer; }
.pk-row img { width:42px; height:60px; object-fit:cover; border:2px solid var(--ink); border-radius:6px; flex:none; }
.pk-row > div { flex:1; min-width:0; }
.pk-row b { display:block; font-size:.9rem; } .pk-row span { font-size:.74rem; color:#777; }
.pk-acts { display:flex; flex-direction:column; gap:5px; flex:none; }
.pk-rec, .pk-read { border:2.5px solid var(--ink); border-radius:10px; padding:6px 10px; font-family:"Archivo Black",sans-serif; font-size:.7rem; letter-spacing:.3px; cursor:pointer; box-shadow:2px 2px 0 var(--ink); }
.pk-rec { background:var(--yellow); color:var(--on-accent); }
.pk-read { background:#fff; color:var(--ink); }
.dm-audio { width:240px; max-width:72vw; margin:4px 0; display:block; border:2px solid var(--ink); border-radius:10px; box-shadow:2px 2px 0 var(--ink); }
.dm-threadbanner { margin:0 0 10px; padding:10px 14px; border:3px solid var(--ink); border-radius:12px; background:linear-gradient(135deg,#ffd94d,#ffc800); color:#111; font-weight:800; font-family:"Archivo Black",sans-serif; font-size:.82rem; box-shadow:4px 4px 0 var(--ink); }
.dm-threadbanner[hidden] { display:none; }

/* cheat-sheet cover thumbnail (premium touch) */
.tsb-cheat .cs-cover { flex:none; width:54px; height:78px; object-fit:cover; border:3px solid #111; border-radius:8px; box-shadow:3px 3px 0 #111; }

/* ============================================================
   v250 — DARK MODE CONTRAST AUDIT (authoritative, loaded last)
   ------------------------------------------------------------
   Every rule below was produced by measuring the resolved
   foreground/background pair of each selector under the dark
   palette and keeping only those that fell under WCAG AA.

   Three root causes, all now closed:
     1. `color: var(--paper)` inside an html.dark rule — --paper IS
        the dark surface (#241f17), so the text was 1.00:1: literally
        invisible. Fixed at source (38 rules) + re-asserted here.
     2. Bright accent surfaces (yellow/green/pink) paired with
        `color: var(--ink)` — --ink flips to cream in dark mode, so
        cream-on-yellow gave 1.30:1. Now routed through --on-accent.
     3. Hardcoded greys (#333/#444/#555/#666/#777/#6b6b6b/#55504a)
        and dark blues written for a light page and never overridden.

   Nothing here changes light mode: every selector is html.dark-scoped.
   ============================================================ */

/* --- 1 · surfaces that were white/near-white in light mode only --------- */
html.dark .aq-lib__search,
html.dark .pk-read,
html.dark .dm-mic,
html.dark .scanmodal__typehit,
html.dark .cs-act { background: #1b1712; color: var(--ink); }
html.dark .aq-lib__search { border-color: #000; }
html.dark .pk-read { border-color: #000; box-shadow: 2px 2px 0 #000; }
html.dark .scanmodal__typehit:hover { background: var(--yellow); color: var(--on-accent); }

/* --- 2 · the neo-brutalist action buttons (.abtn family) --------------- */
html.dark .abtn { background: #1b1712; color: var(--ink); }
html.dark .abtn--link .abtn__ico { color: #8fb0ff; }
html.dark .abtn--save.on { background: var(--red); color: #fff; }

/* --- 3 · Graveyard sealed-card chip (light bg + cream text = 1.02:1) --- */
html.dark .grave__seal { background: #efe7d4; color: #14110c; border-color: #000; }

/* --- 4 · feature tiles: --tile is always an inline BRIGHT colour, so the
       text must stay dark; when no tile is set fall back to a light card
       instead of the dark surface (which made #111 text vanish) --------- */
html.dark .feattile { background: var(--tile, #efe7d4); color: #14110c; border-color: #000; box-shadow: 4px 4px 0 #000; }

/* --- 5 · bright accent surfaces that must keep DARK text -------------- */
html.dark .cm-card__cover .cm-quote { color: var(--on-accent); }
html.dark .cm-avaplus { background: var(--yellow); color: var(--on-accent); border-color: #14100a; box-shadow: 2px 2px 0 #14100a; }
html.dark .cm-reel .cm-listen { background: var(--yellow); color: var(--on-accent); }
html.dark .aq-chip--3 { background: #2f5ae0; color: #fff; }
html.dark .aq-chip--4 { background: #7b4fe0; color: #fff; }
html.dark .cm-sub.on { background: #00d99b; color: #04301f; }   /* 7.9:1 */
html.dark .scanmodal__result--found .scanmodal__rbadge { background: #00916b; color: #fff; }
html.dark .tipjar__btns a:nth-child(3) { background: linear-gradient(135deg, #ff7a63, #e8342f); color: #fff; }
html.dark .dm-bub.me em { color: #4a3a00; }
html.dark .stat--red .stat__label { color: #2a0503; }   /* 5.9:1 — #ffe9e9 was 2.8:1 */
html.dark .stat--blue .stat__label { color: #08122e; }   /* 5.7:1 — #eaf1ff was 2.9:1 */

/* --- 6 · Ask / library copy written with light-page greys ------------- */
html.dark .aq-head__s { color: var(--muted); }
html.dark .aq-bookbig { color: #d8d1c3; }
html.dark .aq-src__blurb { color: var(--muted); }
html.dark .aq-src__go { color: #8fb0ff; }
html.dark .aq-lib__s { color: var(--muted); }
html.dark .aq-lib__empty { color: var(--muted); }
html.dark .fuelmodal__sub { color: #d8d1c3; }
html.dark .fuelmodal__alt { color: var(--muted); }

/* --- 7 · cheat-sheet card (#333/#444/#666 on a dark surface) ---------- */
html.dark .cs-one { color: #e6dfd1; }
html.dark .cs-ex { color: #d8d1c3; }
html.dark .cs-foot { color: var(--muted); border-top-color: rgba(242,234,216,.22); }

/* --- 8 · community meta text: names, counts, timestamps, empty states - */
html.dark .cm-statrow__n span { color: var(--muted); }
html.dark .cm-socsheet__count { color: var(--muted); }
html.dark .cm-burstend small { color: var(--muted-2); }
html.dark .pk-row span { color: var(--muted); }
html.dark .scanmodal__typehit small { color: var(--muted); }
html.dark .cm-empty { color: var(--muted); }
html.dark .storystats__val--y { color: var(--yellow); }

/* --- 9 · the red accent used as TEXT (4.18:1 -> 6.0:1) --------------- */
html.dark .cm-like.on,
html.dark .cm-heart,
html.dark .cm-recstate,
html.dark .cm-blike.on .cm-bigact__ico { color: #ff6b6b; }
html.dark .dm-tick.read { color: #6ea8ff; }
html.dark .cm-vtick { background: #2f5ae0; color: #fff; }

/* --- 10 · placeholders + form hints ---------------------------------- */
html.dark input::placeholder,
html.dark textarea::placeholder,
html.dark .wr-title::placeholder { color: #9a917d; opacity: 1; }
html.dark .search input::placeholder { color: #9a917d; }

/* --- 11 · notification rows: the "new" tint must not swallow the text - */
html.dark .nt-row.new { background: #33290f; }
html.dark .nt-row.new::before { background: #ff5252; color: #1a0000; }   /* 6.3:1 */
html.dark .nt-badge { background: #ff5252; color: #1a0000; }   /* 6.3:1 — white was 3.2:1 */
html.dark .nt-row__meta b span { color: #cfc7b8; }
html.dark .nt-row__meta em { color: var(--muted); }

/* --- 12 · DM surfaces ------------------------------------------------ */
html.dark .dm-threadbanner { background: linear-gradient(135deg,#ffd94d,#ffc800); color: #14110c; border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .dm-unread { background: #ff5252; color: #1a0000; }
html.dark .dm-pop { border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .dm-plus { background: var(--yellow); color: var(--on-accent); border-color: #000; box-shadow: 3px 3px 0 #000; }

/* Graveyard seal chips: the :hover rule out-specificifies the base one,
   so it needs its own dark override (cream text on a cream chip = 1.03:1). */
html.dark .grave:hover .grave__seal { color: #14110c; border-color: #000; }
html.dark .grave:hover .grave__seal--book { color: var(--yellow); border-color: var(--yellow); }   /* 10.5:1 — #7a4a00 was 2.2:1 */

/* ============================================================
   v250 — INLINE-STYLE DARK GUARD
   ------------------------------------------------------------
   241 places in the HTML (and in JS-built markup) paint a light
   or bright surface with an inline style="background:#fff" and let
   the TEXT colour inherit. In dark mode that inherited colour is
   var(--ink) = cream #f2ead8, so the label disappeared:
   cream text on a white card.

   An inline style beats any selector — but it does NOT beat
   !important. So we match the inline declaration itself and pin
   the text to a dark ink. The background is deliberately left
   alone: children that hardcode their own colour (#111, #6b7280 …)
   were written for that light surface and stay correct.
   ============================================================ */
html.dark [style*="background:#fff"],
html.dark [style*="background: #fff"],
html.dark [style*="background:#faf"],
html.dark [style*="background:#f2ede2"],
html.dark [style*="background:#eafff3"],
html.dark [style*="background:#ffc800"],
html.dark [style*="background: #ffc800"],
html.dark [style*="background:#ffd94d"],
html.dark [style*="background:#00c48c"],
html.dark [style*="background:#ff90e8"],
html.dark [style*="background:var(--yellow)"],
html.dark [style*="background:var(--green)"],
html.dark [style*="background:var(--pink)"],
html.dark [style*="background: var(--yellow)"],
html.dark [style*="background:linear-gradient(135deg,#fff"],
html.dark [style*="background:linear-gradient(135deg,#ffd94d"],
html.dark [style*="background:linear-gradient(135deg,#ffc800"],
html.dark [style*="background:conic-gradient(#ffc800"] {
  color: #14110c !important;
}
/* the pure-white cards are the harshest glare in a dark room — warm them
   to paper. Safe because the rule above already pinned their text dark. */
html.dark [style*="background:#fff;"],
html.dark [style*="background:#fff\""],
html.dark [style*="background:#fffdf5"],
html.dark [style*="background: #fff;"] {
  background-color: #f4efe3 !important;
}
/* children of a guarded light surface inherit the dark ink too */
html.dark [style*="background:#fff"] :not([style*="color:"]),
html.dark [style*="background:#fffdf5"] :not([style*="color:"]),
html.dark [style*="background:#ffc800"] :not([style*="color:"]),
html.dark [style*="background:var(--yellow)"] :not([style*="color:"]) { color: inherit; }

/* --- v250: the About row on the You page used an inline light gradient,
   which beat every dark rule and left cream text on cream. Now a class. */
.accrow--about { background: linear-gradient(135deg, #fffdf5 0%, #fff6d9 100%); border-style: solid; color: #14110c; }
.accrow--about i { color: #6b655c; }
html.dark .accrow--about { background: linear-gradient(135deg, #33290f 0%, #241f17 100%); color: var(--ink); border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .accrow--about i { color: var(--muted); }

/* ============================================================
   v250 — NOTIFICATION CENTRE
   Unread is flagged once, opening folds it into history, and the
   badges everywhere are painted from the same single count.
   ============================================================ */
.cm-sk--ava { width: 44px; height: 44px; border-radius: 50%; flex: none; margin: 0; }
.nt-row--skel { pointer-events: none; }
.nt-row--skel .cm-sk--line { margin: 3px 0; }

.nt-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin: 2px 0 12px;
}
.nt-filters { display: inline-flex; gap: 6px; }
.nt-filters button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: .74rem;
  letter-spacing: .3px; box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nt-filters button b {
  font-family: var(--font-head); font-size: .66rem; min-width: 18px;
  padding: 1px 5px; border-radius: 999px; background: rgba(127,127,127,.18);
}
.nt-filters button:active { transform: translate(1.5px,1.5px); box-shadow: 1px 1px 0 var(--ink); }
.nt-filters button.on { background: var(--yellow); color: var(--on-accent); }
.nt-filters button.on b { background: rgba(17,17,17,.16); color: var(--on-accent); }
.nt-markall {
  display: inline-flex; align-items: center; gap: 7px;
  border: 2.5px solid var(--ink); background: var(--green); color: #05321f;
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: .72rem;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nt-markall:active { transform: translate(1.5px,1.5px); box-shadow: 1px 1px 0 var(--ink); }
.nt-markall .tsb-ic { width: 15px; height: 15px; }

/* read rows keep their place in history but stop shouting */
.nt-row.read { opacity: .82; }
.nt-row.read .nt-ico { opacity: .55; }
.nt-row.new { border-width: 3px; }
.nt-row.new::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 99px; background: var(--red);
}
@media (max-width: 480px) {
  .nt-tools { gap: 8px; }
  .nt-filters button, .nt-markall { padding: 7px 11px; font-size: .7rem; }
}
html.dark .nt-filters button { background: #1b1712; color: var(--ink); border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }
html.dark .nt-filters button b { background: rgba(242,234,216,.14); }
html.dark .nt-filters button.on { background: var(--yellow); color: var(--on-accent); }
html.dark .nt-filters button.on b { background: rgba(17,17,17,.18); color: var(--on-accent); }
html.dark .nt-markall { background: #00d99b; color: #04301f; border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }   /* 7.9:1 */
html.dark .nt-row.read { opacity: .78; }

/* ============================================================
   v250 — 🎙️ VOICE: composer · recorder stage · player
   ============================================================ */

/* ---------- composer: one capsule, mic docked inside it ---------- */
.dm-send { position: sticky; bottom: calc(var(--bar-total, 84px) + 8px); display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; }
.dm-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 4px 5px 4px 15px; box-shadow: 3px 3px 0 var(--ink);
}
.dm-field .dm-input {
  flex: 1; min-width: 0; border: 0; background: none; box-shadow: none;
  border-radius: 0; padding: 10px 0; font: inherit; font-weight: 600; color: var(--ink); outline: none;
}
.dm-field .dm-input::placeholder { color: var(--muted); }   /* 5.7:1 */

/* the mic: a real SVG in a solid pill, with an idle halo that says
   "hold me" — no emoji, no lonely floating square */
.dm-micbtn {
  position: relative; flex: none; width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--yellow); color: var(--on-accent);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease, color .2s ease;
}
.dm-micbtn svg { width: 20px; height: 20px; display: block; pointer-events: none; }
.dm-micbtn .vsrc__send { display: none; }
.dm-micbtn:active { transform: translate(1.5px,1.5px); box-shadow: 1px 1px 0 var(--ink); }
/* idle invite: a soft ring breathing around the mic until you hold it */
.dm-micbtn::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--yellow); opacity: 0; pointer-events: none;
  animation: vHalo 2.8s ease-out infinite;
}
.dm-micbtn.is-send::before, .dm-micbtn.is-live::before { animation: none; opacity: 0; }
@keyframes vHalo {
  0%   { transform: scale(.82); opacity: 0; }
  22%  { opacity: .55; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
/* press ripple while holding */
.dm-micbtn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,.4); opacity: 0; transform: scale(.4); pointer-events: none;
}
.dm-micbtn.is-press::after { animation: vRipple .5s ease-out; }
@keyframes vRipple { 0% { opacity: .6; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
/* text present -> the mic becomes SEND */
.dm-micbtn.is-send { background: var(--green); color: #05321f; border-color: var(--ink); }
.dm-micbtn.is-send .vsrc__ico { display: none; }
.dm-micbtn.is-send .vsrc__send { display: block; }
/* recording -> red + heartbeat */
.dm-micbtn.is-live { background: var(--red); color: #fff; animation: vBeat 1.05s ease-in-out infinite; }
@keyframes vBeat { 0%,100% { box-shadow: 2.5px 2.5px 0 var(--ink); } 50% { box-shadow: 2.5px 2.5px 0 var(--ink), 0 0 0 7px rgba(255,82,82,.22); } }

/* ---------- recorder stage (bottom sheet) ---------- */
.vstage {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9400;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 10px calc(var(--bar-total, 84px) + 12px);
}
.vstage__card {
  pointer-events: auto; position: relative; overflow: hidden;
  width: min(560px, 100%);
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 15px 16px 16px;
  transform: translateY(150%); opacity: 0;
  transition: transform .28s cubic-bezier(.2,.9,.25,1), opacity .2s ease;
}
.vstage.on .vstage__card { transform: none; opacity: 1; }
/* the 2:00 cap, drawn as a hairline that fills along the top edge */
.vstage__card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px;
  width: calc(var(--vp, 0) * 100%);
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width .18s linear;
}
.vstage__top { display: flex; align-items: center; gap: 10px; }
.vstage__rec {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: .62rem; letter-spacing: 1.6px;
  background: var(--red); color: #1a0000; border: 2px solid var(--ink);   /* 6.2:1 */
  border-radius: 999px; padding: 4px 10px;
}
.vstage__rec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.vstage__time { font-family: var(--font-head); font-size: 1.32rem; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.vstage__max { font-size: .68rem; font-weight: 700; color: var(--muted); }
.vstage__wave {
  display: flex; align-items: center; gap: 3px; height: 62px;
  margin: 12px 0 10px; padding: 8px 10px;
  background: var(--surface-2, var(--bg));
  border: 2.5px solid var(--ink); border-radius: 14px;
}
.vstage__wave i {
  flex: 1; min-width: 2px; height: 8%; border-radius: 99px;
  background: rgba(127,127,127,.38);
  transition: height .07s linear, background .16s ease;
}
.vstage__wave i.live { background: var(--red); }
.vstage__wave i.hot { background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.vstage__hint {
  font-size: .64rem; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.vstage__acts { display: flex; gap: 10px; margin-top: 12px; }
.vstage__acts button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2.5px solid var(--ink); border-radius: 14px; padding: 13px 12px;
  font-family: var(--font-body); font-weight: 800; font-size: .84rem; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.vstage__acts button:active { transform: translate(1.5px,1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.vstage__acts button svg { width: 18px; height: 18px; }
.vstage__del { background: var(--paper); color: var(--red-ink); }   /* 5.6:1 */
.vstage__send { background: var(--yellow); color: var(--on-accent); }
.vstage__busy { display: flex; align-items: center; gap: 11px; margin-top: 12px; font-weight: 800; font-size: .84rem; }
.vstage__spin {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(127,127,127,.3); border-top-color: var(--yellow);
  animation: vSpin .7s linear infinite;
}
@keyframes vSpin { to { transform: rotate(360deg); } }
.vstage__err { margin-top: 12px; padding: 11px 12px; background: #3a1512; color: #ffd9d4; border: 2.5px solid var(--red); border-radius: 14px; }
.vstage__err b { display: block; font-size: .82rem; line-height: 1.45; }
.vstage__erracts { display: flex; gap: 8px; margin-top: 9px; }
.vstage__erracts button {
  border: 2px solid #ffd9d4; background: none; color: #ffd9d4; border-radius: 999px;
  padding: 6px 12px; font-family: var(--font-body); font-weight: 800; font-size: .72rem; cursor: pointer;
}
.vstage__erracts .vstage__retry { background: #ffd9d4; color: #3a1512; }
.vstage__erracts .vstage__drop {
  background: transparent; color: #ffd9d4; border-color: rgba(255,217,212,.45);
  box-shadow: none;
}
.vstage__erracts .vstage__drop:active { transform: translate(1.5px,1.5px); box-shadow: none; }
/* states */
.vstage.is-recording:not(.is-locked) .vstage__acts, .vstage.is-busy .vstage__acts { display: none; }
.vstage.is-busy .vstage__wave i { background: rgba(127,127,127,.28); }
.vstage.is-review .vstage__rec { background: var(--yellow); color: var(--on-accent); }
.vstage.is-review .vstage__rec i { background: var(--on-accent); animation: none; }

/* ---------- the player ---------- */
.vp { display: flex; align-items: center; gap: 10px; width: min(280px, 72vw); min-width: 208px; margin: 3px 0 2px; }
.vp__play {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--yellow); color: var(--on-accent);
  transition: transform .12s ease;
}
.vp__play:active { transform: scale(.93); }
.vp__ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.vp__ring-bg { fill: none; stroke: rgba(17,17,17,.2); stroke-width: 3; }
.vp__ring-fg { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .14s linear; }
.vp__ico { position: relative; width: 19px; height: 19px; display: block; }
.vp__ico svg { position: absolute; inset: 0; width: 19px; height: 19px; }
.vp__ico svg:last-child { opacity: 0; }
.vp.is-playing .vp__ico svg:first-child { opacity: 0; }
.vp.is-playing .vp__ico svg:last-child { opacity: 1; }
.vp__body { flex: 1; min-width: 0; }
.vp__wave { display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; touch-action: none; }
.vp__wave i {
  flex: 1; min-width: 2px; height: 10%; border-radius: 99px;
  background: rgba(127,127,127,.45);
  transition: background .18s ease;
}
.vp__wave i.on { background: var(--ink); }
.vp__meta {
  display: flex; align-items: center; gap: 7px; margin-top: 3px;
  font-size: .6rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.vp__cur, .vp__dur { flex: none; }
.vp__tag { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .85; }
.vp__tag svg { width: 12px; height: 12px; flex: none; }
.vp__rate {
  flex: none; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: .62rem; line-height: 1;
}
.vp__rate.on { background: var(--yellow); color: var(--on-accent); }
.vp audio { display: none; }
.vp.is-blocked .vp__play { animation: vBeat 1s ease-in-out 2; }
.vp.is-error .vp__wave i { background: rgba(255,82,82,.4); }

/* on MY yellow bubble the player must invert to stay legible */
.dm-bub.me .vp__play { background: #14110c; color: #ffc800; border-color: #14110c; }
.dm-bub.me .vp__ring-bg { stroke: rgba(17,17,17,.3); }
.dm-bub.me .vp__ring-fg { stroke: #14110c; }
.dm-bub.me .vp__wave i { background: rgba(17,17,17,.26); }
.dm-bub.me .vp__wave i.on { background: #14110c; }
.dm-bub.me .vp__meta { color: #4a3a00; }
.dm-bub.me .vp__rate { background: rgba(255,255,255,.55); color: #14110c; border-color: #14110c; }
.dm-bub.me .vp__rate.on { background: #14110c; color: #ffc800; }

/* ---------- dark theme ---------- */
html.dark .dm-field { background: #1b1712; border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .dm-field .dm-input { color: var(--ink); }
html.dark .dm-field .dm-input::placeholder { color: #9a917d; }
html.dark .dm-micbtn { background: var(--yellow); color: var(--on-accent); border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }
html.dark .dm-micbtn.is-send { background: #00d99b; color: #04301f; }   /* 7.9:1 */
html.dark .vstage__card { background: #241f17; color: var(--ink); border-color: #000; box-shadow: 6px 6px 0 #000; }
html.dark .vstage__wave { background: #1b1712; border-color: #000; }
html.dark .vstage__wave i { background: rgba(242,234,216,.22); }
html.dark .vstage__wave i.live { background: #ff6b6b; }
html.dark .vstage__wave i.hot { background: var(--yellow); box-shadow: 0 0 0 1.5px #000; }
html.dark .vstage__rec { border-color: #000; }
html.dark .vstage__acts button { border-color: #000; box-shadow: 3px 3px 0 #000; }
html.dark .vstage__del { background: #2a1a17; color: #ff8f8f; }
html.dark .vstage__send { background: var(--yellow); color: var(--on-accent); }
html.dark .vstage__hint, html.dark .vstage__max { color: var(--muted); }
html.dark .vp__play { background: var(--yellow); color: var(--on-accent); border-color: #000; }
html.dark .vp__ring-bg { stroke: rgba(242,234,216,.22); }
html.dark .vp__ring-fg { stroke: var(--yellow); }
html.dark .vp__wave i { background: rgba(242,234,216,.24); }
html.dark .vp__wave i.on { background: var(--ink); }
html.dark .vp__meta { color: var(--muted); }
html.dark .vp__rate { background: #1b1712; color: var(--ink); border-color: #000; }
html.dark .vp__rate.on { background: var(--yellow); color: var(--on-accent); }
html.dark .dm-bub.me .vp__wave i { background: rgba(17,17,17,.28); }
html.dark .dm-bub.me .vp__wave i.on { background: #14110c; }
html.dark .dm-bub.me .vp__meta { color: #4a3a00; }

/* small phones: keep the sheet clear of the bottom bar */
@media (max-width: 420px) {
  .vstage__wave { height: 54px; padding: 7px 8px; gap: 2px; }
  .vstage__time { font-size: 1.16rem; }
  .vstage__acts button { padding: 12px 10px; font-size: .8rem; }
  .vp { width: min(250px, 74vw); min-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-micbtn::before, .dm-micbtn.is-live, .vstage__spin, .vstage__rec i { animation: none; }
  .vstage__card { transition: opacity .15s ease; transform: none; }
  .vstage:not(.on) .vstage__card { opacity: 0; }
}

/* ---------- v250 voice: composer chrome, upload bubble, notes ---------- */
.dm-plus { display: grid; place-items: center; padding: 0; }
.dm-plus svg { width: 21px; height: 21px; display: block; }
.dm-bub--voice { padding: 9px 11px 8px; }
.dm-bub--voice em { margin-top: 2px; }

/* optimistic "uploading" note */
.dm-vup { display: flex; align-items: center; gap: 10px; width: min(250px, 68vw); padding: 4px 0 6px; }
.dm-vup__spin {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(17,17,17,.22); border-top-color: #14110c;
  animation: vSpin .7s linear infinite;
}
.dm-vup__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; min-width: 0; }
.dm-vup__wave i {
  flex: 1; min-width: 2px; border-radius: 99px; background: rgba(17,17,17,.3);
  animation: vUp 1s ease-in-out infinite;
}
.dm-vup__wave i:nth-child(2n)  { animation-delay: .12s; }
.dm-vup__wave i:nth-child(3n)  { animation-delay: .24s; }
.dm-vup__wave i:nth-child(5n)  { animation-delay: .36s; }
.dm-vup__wave i:nth-child(7n)  { animation-delay: .48s; }
@keyframes vUp { 0%,100% { height: 22%; opacity: .5; } 50% { height: 92%; opacity: 1; } }
.dm-vup b { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #4a3a00; margin-top: 4px; }
.dm-vup { flex-wrap: wrap; }

/* inline paper note (replaces alert() for voice).
   Fixed and centred above the composer + bottom bar, so it never depends on
   the scroll container and never covers what you are typing. */
.dm-note {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-total, 84px) + 76px);
  max-width: 520px; margin: 0 auto; padding: 10px 13px; z-index: 9300;
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
  font-size: .76rem; font-weight: 700; line-height: 1.45;
  opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .22s cubic-bezier(.2,.9,.25,1);
  pointer-events: none;
}
.dm-note.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dm-note--good { border-color: var(--green); box-shadow: 3px 3px 0 var(--green); }
.dm-note--bad  { border-color: var(--red);   box-shadow: 3px 3px 0 var(--red); color: var(--ink); }
html.dark .dm-note { background: #241f17; border-color: #000; box-shadow: 3px 3px 0 #000; color: var(--ink); }
html.dark .dm-note--good { border-color: #00916b; box-shadow: 3px 3px 0 #00916b; }
html.dark .dm-note--bad  { border-color: #ff6b6b; box-shadow: 3px 3px 0 #ff6b6b; }
html.dark .dm-bub em { color: var(--muted-2); }
html.dark .dm-vup__spin { border-color: rgba(17,17,17,.3); border-top-color: #14110c; }

/* while the recorder sheet is up, the page behind it stops scrolling */
html.vstage-open { overflow: hidden; }
html.vstage-open body { overflow: hidden; }

/* ---------- v250 people tab ---------- */
/* avatar: letter underneath, photo on top (a 404 photo can never leave a hole) */
.cm-ava--lg { position: relative; }
.cm-ava--lg img { position: absolute; inset: 0; }
.cm-sect--people { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .58rem; font-weight: 900;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--on-accent); background: var(--green);
  border: 2px solid var(--ink); border-radius: 999px; padding: 3px 8px 3px 7px;
}
.cm-live i { width: 6px; height: 6px; border-radius: 50%; background: #04301f; animation: pulse 1.4s ease-in-out infinite; }
.cm-time--live { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.cm-time--live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }
.cm-lock { font-size: .68rem; }
/* someone who only ever liked/followed/messaged: no profile row yet */
.cm-person--ghost { border-style: dashed; }
.cm-person--ghost .cm-name { color: var(--muted); }
html.dark .cm-live { background: #00d99b; color: #04301f; border-color: #000; }   /* 7.9:1 */
html.dark .cm-live i { background: #d9fff2; }

/* v250: "N unread" hint next to the You-window notifications link */
.nt-hint { font-size: .62rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
html.dark .nt-hint { color: var(--muted); }

/* ============================================================
   v250 — 💬 C.say(): the app's one inline voice (no more alert())
   ============================================================ */
.tsb-say {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  padding: 11px 14px; font-size: .8rem; font-weight: 600; line-height: 1.45;
  opacity: 0; transform: translateY(-14px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.25,1);
  cursor: pointer; word-break: break-word;
}
.tsb-say.in { opacity: 1; transform: translateY(0); }
.tsb-say.out { opacity: 0; transform: translateY(-14px); }
.tsb-say__ico { flex: none; width: 19px; height: 19px; display: grid; place-items: center; margin-top: 1px; }
.tsb-say__ico svg { width: 19px; height: 19px; }
.tsb-say--good { border-color: var(--green); box-shadow: 4px 4px 0 var(--green); }
.tsb-say--good .tsb-say__ico { color: var(--green); }
.tsb-say--bad { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.tsb-say--bad .tsb-say__ico { color: var(--red); }
html.dark .tsb-say { background: #241f17; color: var(--ink); border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .tsb-say--good { border-color: #00916b; box-shadow: 4px 4px 0 #00916b; }
html.dark .tsb-say--good .tsb-say__ico { color: #2ce8ae; }
html.dark .tsb-say--bad { border-color: #ff6b6b; box-shadow: 4px 4px 0 #ff6b6b; }
html.dark .tsb-say--bad .tsb-say__ico { color: #ff8f8f; }
@media (max-width: 480px) {
  .tsb-say { padding: 9px 12px; border-radius: 14px; font-size: .77rem; gap: 9px; box-shadow: 3px 3px 0 var(--ink); }
  .tsb-say__ico, .tsb-say__ico svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tsb-say { transition: opacity .15s ease; transform: none; }
  .tsb-say.out { opacity: 0; }
}

/* v250: explicit dark pairing for the People-tab bio (its base rule carries a
   light-theme grey, and a tie on specificity must never be left to chance) */
html.dark .cm-person__meta .cm-bio { color: var(--muted); }   /* 7.6:1 */


/* =====================================================================
   v250 · voice LOCK · unified composer · Quote Desk · last seen ·
          read receipts · store logo tiles · graveyard depth
   Everything below is additive. Nothing above it is redefined except
   where the comment says so (equal specificity + later = the winner).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1 · LOCKED recording — the note stays alive after you let go
   --------------------------------------------------------------------- */
.vstage.is-locked .vstage__card {
  box-shadow: 6px 6px 0 var(--green), 0 0 0 3px var(--ink), 0 0 30px rgba(0,217,155,.28);
}
html.dark .vstage.is-locked .vstage__card {
  box-shadow: 6px 6px 0 var(--green), 0 0 0 3px #000, 0 0 30px rgba(0,217,155,.22);
}
.vstage.is-locked .vstage__card::before { background: linear-gradient(90deg, var(--green), var(--yellow)); }
.vstage.is-locked .vstage__wave { border-color: var(--green); }
.vstage.is-locked .vstage__wave i.live { background: var(--green); }
.vstage.is-locked .vstage__rec { background: var(--green); color: #04301f; }   /* 7.9:1 */
.vstage.is-locked .vstage__rec i { background: #04301f; }
.vstage__lock {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: .58rem; letter-spacing: 1.5px;
  background: var(--green); color: #04301f; border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 9px; animation: lockPop .24s ease-out;
}
.vstage__lock svg { width: 13px; height: 13px; }
.vstage.is-locked .vstage__hint { color: var(--ink); }
@keyframes lockPop { from { transform: scale(.65); opacity: 0; } to { transform: none; opacity: 1; } }

/* the mic pill becomes a ✓ the moment a note is live (locked or hands-free) */
.dm-micbtn.is-lock {
  background: var(--green); color: #04301f; border-color: var(--ink);
  animation: none; box-shadow: 2.5px 2.5px 0 var(--ink);
}
html.dark .dm-micbtn.is-lock { background: #00d99b; color: #04301f; border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }
.dm-micbtn.is-lock .vsrc__ico { display: none; }
.dm-micbtn.is-lock .vsrc__send { display: block; }
.dm-micbtn.is-lock::before { animation: none; opacity: 0; }

/* ---------------------------------------------------------------------
   2 · ONE composer capsule — the + lives inside it, not beside it
   --------------------------------------------------------------------- */
.dm-send {
  align-items: center; gap: 6px;
  background: var(--paper); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 5px 5px 5px 8px;
  box-shadow: 3px 3px 0 var(--ink);
}
html.dark .dm-send { background: #1b1712; border-color: #000; box-shadow: 3px 3px 0 #000; }
/* the field is no longer its own capsule — it lives inside the big one */
.dm-field, html.dark .dm-field {
  background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 0 2px 0 8px; gap: 4px;
}
.dm-field .dm-input, html.dark .dm-field .dm-input { background: none; box-shadow: none; border: 0; }

/* the + : soft disc, rotates as it opens, presses into the paper */
.dm-plus {
  width: 38px; height: 38px; border-radius: 50%; flex: none; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 2.5px solid var(--ink); background: var(--surface-2, #f6f1e5); color: var(--ink);
  box-shadow: none; font-size: 0; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.dm-plus svg { width: 19px; height: 19px; display: block; }
.dm-plus:hover { background: var(--yellow); color: var(--on-accent); }
.dm-plus:active { transform: scale(.9) rotate(90deg); }
.dm-plus.is-picking { background: var(--yellow) !important; color: var(--on-accent) !important; transform: rotate(45deg); }
html.dark .dm-plus { background: #241f17; color: var(--ink); border-color: #000; box-shadow: none; }
html.dark .dm-plus:hover, html.dark .dm-plus.is-picking { background: var(--yellow); color: var(--on-accent); }

/* ---------------------------------------------------------------------
   3 · QUOTE DESK — choose · paste · search, why-line, preview
   --------------------------------------------------------------------- */
.qd-ov {
  position: fixed; inset: 0; z-index: 99990; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(12,10,7,.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 0; animation: qdFade .18s ease;
}
@keyframes qdFade { from { opacity: 0 } to { opacity: 1 } }
.qd-sheet {
  width: min(560px, 100%); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface, #fffdf5); color: var(--ink);
  border: 3.5px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 0 var(--ink); padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: qdUp .26s cubic-bezier(.2,.9,.25,1);
}
html.dark .qd-sheet { background: #1b1712; box-shadow: 0 -6px 0 #000; }
@keyframes qdUp { from { transform: translateY(6%); opacity: .4 } to { transform: none; opacity: 1 } }
.qd-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qd-top b { font-family: var(--font-head); font-size: .95rem; letter-spacing: .3px; }
.qd-top small { display: block; font-size: .64rem; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin-top: 2px; }
.qd-x {
  margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 50%; cursor: pointer;
  border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 900;
}
.qd-x:active { transform: translate(1px,1px); }
.qd-prevbox { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 4/5; max-height: 46dvh; transition: aspect-ratio .18s ease; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: linear-gradient(135deg,#fff6d9,#ffe27a 55%,#ffd94d); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.qd-prevbox.has-img { color: #fff; }
.qd-prevbox.has-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,calc(var(--scrim, .55) * .22)) 0%,
    rgba(0,0,0,var(--scrim, .55)) 100%)}
.qd-prev { position: relative; z-index: 1; width: 100%; text-align: center; }
.qd-prev__q { font-size: 1.16rem; line-height: 1.32; font-weight: 700; text-wrap: balance; }
.qd-prev__by { margin-top: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .4px; opacity: .9; }
.qd-prev__ph { font-size: .8rem; font-weight: 700; opacity: .7; }
.qd-lbl {
  font-family: var(--font-head); font-size: .6rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 7px; display: flex; align-items: center; gap: 7px;
}
.qd-kinds { display: grid; gap: 9px; }
/* v251 · the desk finds, Studio designs.
   The photo is searched and chosen ON this sheet, and the preview shows the
   true crop for the shape you picked — no second window anywhere. */
.qd-photo { display: grid; gap: 9px; }
.qd-search { display: flex; gap: 8px; align-items: stretch; }
.qd-search input {
  flex: 1; min-width: 0; border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 11px 12px; font: 700 13px "Space Grotesk", system-ui, sans-serif;
  background: var(--paper, #fffdf5); color: var(--ink);
}
.qd-search input::placeholder { color: #9a9186; font-weight: 600; }
.qd-search button {
  flex: none; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--yellow, #ffc800);
  color: var(--ink); font: 800 11px "Archivo Black", sans-serif; letter-spacing: .8px;
  padding: 0 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.qd-search button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.qd-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px;
  overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin;
}
.qd-ph {
  width: 74px; height: 74px; padding: 0; border: 2.5px solid var(--ink); border-radius: 12px;
  overflow: hidden; background: #e8e2d4; cursor: pointer; position: relative;
}
.qd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qd-ph.on { outline: 3px solid var(--yellow, #ffc800); outline-offset: 1px; }
.qd-ph.on::after {
  content: "✓"; position: absolute; right: 3px; top: 3px; background: var(--ink); color: var(--yellow, #ffc800);
  border-radius: 999px; width: 17px; height: 17px; display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.qd-chosen {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  font: 700 11px "Space Grotesk", system-ui, sans-serif; color: var(--muted, #6b6459);
}
.qd-chosen:empty { display: none; }
.qd-chosen__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-chosen__x {
  flex: none; border: 2px solid var(--ink); background: #fff; border-radius: 999px;
  padding: 4px 10px; font: 800 10px "Space Grotesk", sans-serif; cursor: pointer; color: var(--ink);
}
/* the shape row wraps into a tidy grid instead of the scrolling font strip it
   replaced — .qd-tune--ratio needs to out-rank the generic .qd-tune rules */
.qd-tune.qd-tune--ratio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 3px 0 2px; }
@media (min-width: 420px) { .qd-tune.qd-tune--ratio { grid-template-columns: repeat(4, 1fr); } }
.qd-tune.qd-tune--ratio button {
  flex: none; width: auto; min-width: 0; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff;
  color: var(--ink); padding: 9px 8px; font: 800 10.5px "Archivo Black", sans-serif;
  letter-spacing: .3px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qd-tune.qd-tune--ratio button.on { background: var(--yellow, #ffc800); }
.qd-tune.qd-tune--ratio button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
html.dark .qd-search input, html.dark .qd-tune.qd-tune--ratio button, html.dark .qd-chosen__x { background: #241f17; color: #f4efe4; }
html.dark .qd-ph { border-color: #6b6252; }
.qd-kind {
  display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 15px; padding: 11px 12px;
  background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body); transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.qd-kind:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.qd-kind__ic {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--yellow); color: var(--on-accent); border: 2.5px solid var(--ink); font-size: 1.05rem;
}
.qd-kind__t { flex: 1; min-width: 0; }
.qd-kind__t b { display: block; font-weight: 800; font-size: .86rem; }
.qd-kind__t span { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.qd-kind--on { background: var(--yellow); }
.qd-kind--on .qd-kind__t span { color: #4a3a00; }
.qd-kind--on .qd-kind__ic { background: var(--ink); color: var(--yellow); }
html.dark .qd-kind--on { background: var(--yellow); color: #14110c; }
html.dark .qd-kind--on .qd-kind__t span { color: #4a3a00; }
html.dark .qd-kind--on .qd-kind__ic { background: #14110c; color: var(--yellow); }

.qd-ta, .qd-in {
  width: 100%; border: 2.5px solid var(--ink); border-radius: 14px; padding: 11px 13px;
  font: inherit; font-weight: 600; background: var(--surface-2, #f6f1e5); color: var(--ink);
  outline: none; resize: vertical;
}
html.dark .qd-ta, html.dark .qd-in { background: #241f17; color: var(--ink); }
.qd-ta { min-height: 84px; line-height: 1.45; }
.qd-in { height: 46px; }
.qd-ta::placeholder, .qd-in::placeholder { color: var(--muted); font-weight: 600; }
.qd-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.qd-row .qd-in { flex: 1; }
.qd-alt {
  flex: none; border: 2.5px solid var(--ink); border-radius: 13px; padding: 0 13px; height: 46px;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: .78rem; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.qd-alt--on { background: var(--yellow); color: var(--on-accent); }
.qd-alt:active { transform: translate(1px,1px); }
.qd-search {
  display: flex; gap: 8px; align-items: center; border: 2.5px solid var(--ink); border-radius: 14px;
  background: var(--surface-2, #f6f1e5); padding: 0 6px 0 13px;
}
html.dark .qd-search { background: #241f17; }
.qd-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; outline: none; padding: 12px 0; }
.qd-search input::placeholder { color: var(--muted); }
.qd-search button {
  flex: none; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--yellow); color: var(--on-accent);
  font-family: var(--font-body); font-weight: 800; font-size: .74rem; padding: 9px 13px; cursor: pointer;
}
.qd-why { border: 2.5px solid var(--ink); border-radius: 14px; background: var(--surface-2, #f6f1e5); padding: 11px 13px; }
html.dark .qd-why { background: #241f17; }
.qd-why .qd-ta { background: none; border: 0; padding: 0; min-height: 58px; }
.qd-go {
  width: 100%; margin-top: 14px; border: 3px solid var(--ink); border-radius: 999px; padding: 14px;
  background: var(--yellow); color: var(--on-accent); cursor: pointer;
  font-family: var(--font-head); font-size: .92rem; letter-spacing: .8px; box-shadow: 4px 4px 0 var(--ink);
}
.qd-go:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.qd-go--green { background: var(--green); color: #04301f; }   /* 7.9:1 */
.qd-foot { display: flex; gap: 8px; margin-top: 10px; }
.qd-foot button {
  flex: 1; border: 2.5px solid var(--ink); border-radius: 13px; padding: 11px 8px; cursor: pointer;
  background: var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: .76rem;
}
.qd-foot button:active { transform: translate(1px,1px); }
.qd-hint { font-size: .66rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.5; margin-top: 9px; }
.qd-tune { display: flex; gap: 7px; overflow-x: auto; padding: 3px 0 2px; -webkit-overflow-scrolling: touch; }
.qd-tune::-webkit-scrollbar { display: none; }
.qd-tune button {
  flex: none; border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px 13px; cursor: pointer;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: .74rem; box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-body); white-space: nowrap;
}
.qd-tune button.on { background: var(--yellow); color: var(--on-accent); }
.qd-live { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 2px; }
.qd-live__c {
  flex: none; width: 74%; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper);
  padding: 11px 12px; text-align: left; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); color: var(--ink);
  font-family: var(--font-body);
}
.qd-live__c p { font-size: .80rem; font-weight: 700; line-height: 1.35; }
.qd-live__c em { display: block; margin-top: 6px; font-size: .64rem; font-weight: 800; color: var(--muted); font-style: normal; }
.qd-live__c:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.qd-empty { border: 2.5px dashed var(--ink); border-radius: 14px; padding: 16px; text-align: center; font-weight: 700; font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   4 · last seen · online dot · follow requests · read receipts
   --------------------------------------------------------------------- */
.cm-seen { display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .3px; color: var(--muted); }
.cm-seen--on { color: #04301f; }
html.dark .cm-seen--on { color: #04301f; }
.cm-seen__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); animation: pulse 1.6s ease-in-out infinite; }
.cm-seen--on { background: var(--green); border-radius: 999px; padding: 3px 8px; border: 1.5px solid var(--ink); }
.cm-seen--on .cm-seen__dot { animation: none; background: #04301f; border-color: #04301f; }
html.dark .cm-seen--on { color: #04301f; }

.cm-req { border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 3.5px 3.5px 0 var(--ink); padding: 12px; margin-bottom: 12px; }
.cm-req__t { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .8rem; letter-spacing: .4px; margin-bottom: 10px; }
.cm-req__n { background: var(--red); color: #1a0000; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px; font-size: .68rem; }  /* 6.3:1 */
.cm-req__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 2px dashed var(--line, #111); }
.cm-req__row:first-of-type { border-top: 0; }
.cm-req__meta { flex: 1; min-width: 0; }
.cm-req__btns { display: flex; gap: 7px; }
.cm-reqbtn {
  border: 2.5px solid var(--ink); border-radius: 11px; padding: 8px 12px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: .74rem; background: var(--paper); color: var(--ink);
}
.cm-reqbtn--ok { background: var(--green); color: #04301f; }   /* 7.9:1 */
.cm-reqbtn--no { background: var(--paper); color: var(--red-ink); }
.cm-reqbtn:active { transform: translate(1px,1px); }
.cm-follow.is-req { background: var(--surface-2, #f6f1e5); color: var(--ink); border-style: dashed; }

/* read receipts on a story */
.rr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--surface-2, #f6f1e5); padding: 10px 12px; margin-top: 14px; }
html.dark .rr { background: #241f17; }
.rr__t { font-family: var(--font-head); font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; }
.rr__pile { display: flex; }
.rr__pile span {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-size: .68rem; font-weight: 800; margin-left: -7px; overflow: hidden;
}
.rr__pile span:first-child { margin-left: 0; }
.rr__pile b { font-size: .7rem; font-weight: 800; color: var(--muted); margin-left: 7px; align-self: center; }
.rr--mine { margin-left: auto; font-size: .68rem; font-weight: 800; color: var(--muted); }

/* the privacy switches, in the You section */
.yset__row--wide .yset__ctl { flex-direction: column; align-items: flex-end; gap: 6px; }
.ysw { display: inline-flex; align-items: center; gap: 8px; }
.ysw__sw {
  position: relative; width: 46px; height: 26px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--surface-2, #f6f1e5); cursor: pointer; flex: none; padding: 0;
}
.ysw__sw i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); border: 2px solid var(--ink); transition: left .16s ease, background .16s ease; }
.ysw__sw.on { background: var(--green); }
.ysw__sw.on i { left: 23px; background: #fffdf5; }
html.dark .ysw__sw { background: #241f17; }
html.dark .ysw__sw.on { background: #00d99b; }
.ysw__lbl { font-size: .72rem; font-weight: 800; }

/* ---------------------------------------------------------------------
   5 · STORE logo tiles — real marks, honestly sized
   --------------------------------------------------------------------- */
.st-logo { border-radius: 16px; overflow: hidden; }
.st-logo img { padding: 9px; }
.st-logo img.is-full { padding: 0; object-fit: cover; border-radius: 13px; }
.st-logo--wide img { padding: 4px 6px; }
.st-logo--mid img { padding: 6px 8px; }
.st-ticker__item img { width: 30px; height: 30px; padding: 2px; border-radius: 9px; }
.st-card__top .st-logo { width: 56px; height: 56px; }

/* ---------------------------------------------------------------------
   6 · GRAVEYARD — depth, not decoration
   --------------------------------------------------------------------- */
:root { --stone-a: #9aa3b4; --stone-b: #565e6c; }
html.dark { --stone-a: #7c8494; --stone-b: #40474f; }
.grave__stone {
  background: linear-gradient(160deg, var(--stone-a), var(--stone-b));
  box-shadow: 4px 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -14px 22px rgba(0,0,0,.28);
  overflow: hidden;
}
.grave__stone::after {
  content: ""; position: absolute; inset: 6px 8px auto 8px; height: 60%;
  border-radius: 30px 30px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 70%);
  pointer-events: none;
}
.grave__head { transition: background .18s ease; }
.grave__head:hover { background: rgba(255,200,0,.07); }
.grave:active { transform: translate(1px,1px); box-shadow: 3px 3px 0 var(--ink); }
.grave__epitaph {
  font-family: var(--font-head); font-style: italic; color: var(--muted);
  padding-left: 10px; border-left: 3px solid var(--gcat, #999); margin-top: 6px;
}
html.dark .grave__epitaph { color: var(--muted); }
.grave::before { height: 6px; clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); }
.grave__loss { box-shadow: 2px 2px 0 var(--ink); }
.gravefeed { border-radius: 16px; }


/* ---------------------------------------------------------------------
   7 · write page: "why this line hit you" lives UNDER the card
   --------------------------------------------------------------------- */
.wr-whyprev {
  margin-top: 10px; border: 2.5px dashed var(--ink); border-radius: 14px;
  background: var(--surface-2, #f6f1e5); padding: 11px 13px;
  display: flex; flex-direction: column; gap: 5px;
}
html.dark .wr-whyprev { background: #241f17; }
.wr-whyprev__lbl {
  font-family: var(--font-head); font-size: .58rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
}
.wr-whyprev__t { font-size: .84rem; font-weight: 600; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.wr-inspire-embed--quote { flex-wrap: nowrap; }

/* the credit chip as it will appear in a DOWNLOAD (never in-app, never Gold) */
.stu-mark {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(18,15,11,.60); color: rgba(255,252,244,.97);
  border: 1px solid rgba(255,248,230,.42); border-radius: 999px;
  padding: 5px 10px; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.34);
}
.stu-mark i { width: 7px; height: 7px; border-radius: 50%; background: #ffc800; display: block; }


/* ============================================================
   v264 · ONBOARDING AS A FULL-SCREEN PAGE (not a pop-out)
   ============================================================ */
.obwrap { padding: 0; background: var(--paper); backdrop-filter: none; }
html.dark .obwrap { background: #171410; }
.ob { position: relative; width: 100%; max-width: none; max-height: none; height: 100dvh; height: 100dvh;
  border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; overflow: hidden; }
.ob__bg { position: absolute; z-index: 0; pointer-events: none; opacity: .5; }
.ob__bg--sq { width: 130px; height: 130px; border-radius: 26px; background: var(--yellow); top: -40px; right: -34px; transform: rotate(14deg); }
.ob__bg--circ { width: 110px; height: 110px; border-radius: 50%; background: var(--pink, #ff90e8); bottom: -36px; left: -30px; }
.ob__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 4px; }
.ob__prog { flex: 1; display: flex; gap: 7px; margin: 0; }
.ob__prog i { position: relative; flex: 1; height: 26px; border-radius: 999px; background: rgba(127,127,127,.16);
  display: grid; place-items: center; transition: background .25s, box-shadow .25s; }
.ob__prog i b { font: 800 11px 'Space Grotesk', sans-serif; color: #8f8a80; transition: color .2s; }
.ob__prog i.on { background: rgba(255,200,0,.28); }
.ob__prog i.now { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.ob__prog i.now b, .ob__prog i.on b { color: var(--ink); }
html.dark .ob__prog i.now b, html.dark .ob__prog i.on b { color: #111; }
.ob__back, .ob__x { position: static; width: 38px; height: 38px; flex: none; border: 2.5px solid var(--ink);
  border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
html.dark .ob__back, html.dark .ob__x { border-color: #000; box-shadow: 2px 2px 0 #000; background: #241f17; color: #f2ead8; }
.ob__count { position: relative; z-index: 2; display: block; padding: 2px 18px 0;
  font: 900 10px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 2px; color: #8f8a80; }
.ob__body { position: relative; z-index: 2; flex: 1; overflow-y: auto; padding: 8px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: 640px; margin: 0 auto; width: 100%; }
.ob--page .ob-step__center { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ob-hero { position: relative; text-align: center; padding: 26px 10px 8px; border-radius: 26px; }
.ob-hero__deco { position: absolute; pointer-events: none; }
.ob-hero__deco--sq { width: 54px; height: 54px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; top: 6px; left: 2%; transform: rotate(-12deg); }
.ob-hero__deco--circ { width: 44px; height: 44px; background: var(--pink, #ff90e8); border: 3px solid var(--ink); border-radius: 50%; top: 30px; right: 4%; }
.ob-hero__deco--ring { width: 34px; height: 34px; border: 6px solid var(--red); border-radius: 50%; bottom: 30px; right: 12%; opacity: .85; }
.ob-eyebrow { display: inline-block; margin: 12px auto 6px; background: #111; color: var(--yellow);
  font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 2.5px; padding: 6px 12px; border-radius: 999px; }
.ob-hero__t { font-size: 2rem !important; line-height: 1.05; margin: 4px 0 2px !important; }
.ob-btns--col { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 18px auto 0; width: 100%; }
.ob-cta--ghost { background: var(--paper); }
.ob-skipnow { background: none; border: 0; font: 700 13px 'Space Grotesk', sans-serif; color: #6b6656;
  text-decoration: underline; cursor: pointer; padding: 10px; }
.ob-fine { font: 600 10.5px 'Space Grotesk', sans-serif; color: #8f8a80; margin-top: 14px; }
html.dark .ob-skipnow { color: #b8b2a2; }
.ob-btns { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(transparent, var(--paper) 38%); }
html.dark .ob-btns { background: linear-gradient(transparent, #171410 38%); }
@media (prefers-reduced-motion: reduce) {
  .ob-step, .ob-step--enter, .ob-step--enterback { transition: none; transform: none; }
}

/* ============================================================
   v264 · THE YOU WINDOW — departments + rooms + MY ACTIVITY
   ============================================================ */
.yset__sub { font: 600 11.5px 'Space Grotesk', sans-serif; color: #8f8a80; margin: 2px 0 12px; }
.ydept { display: flex; flex-direction: column; gap: 10px; }
.ydept__row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
  padding: 13px 15px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ydept__row:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.ydept__row:active { transform: scale(.985); }
.ydept__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px;
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 13px; }
.ydept__row:nth-child(2) .ydept__ic { background: var(--pink, #ff90e8); }
.ydept__row:nth-child(3) .ydept__ic { background: var(--blue, #4d7cff); }
.ydept__row:nth-child(4) .ydept__ic { background: var(--green, #00c48c); }
.ydept__t { flex: 1; min-width: 0; font: 800 13.5px 'Space Grotesk', sans-serif; color: var(--ink); }
.ydept__t b { display: block; font: 600 10.5px 'Space Grotesk', sans-serif; font-weight: 600; color: #8f8a80; margin-top: 2px; }
.ydept__row i { flex: none; font-style: normal; font-weight: 800; color: var(--ink); }
html.dark .ydept__row { background: #241f17; border-color: #000; box-shadow: 4px 4px 0 #000; }
html.dark .ydept__t { color: #f2ead8; }
.yquick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.yquick .setbtn { flex: 1 1 46%; }

/* rooms */
.youview--sub .youwin > *:not(.accsub) { display: none; }
.accsub { animation: subin .22s ease; }
@keyframes subin { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.accsub__top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: var(--paper); padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
  border-bottom: 2.5px dashed rgba(127,127,127,.3); }
html.dark .accsub__top { background: #171410; }
.accsub__back { width: 38px; height: 38px; flex: none; border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
html.dark .accsub__back { background: #241f17; border-color: #000; box-shadow: 2px 2px 0 #000; color: #f2ead8; }
.accsub__t { flex: 1; font: 800 15px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }
.accsub__tag { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px;
  font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1px; padding: 6px 10px; color: #111; box-shadow: 2px 2px 0 var(--ink); }
.accsub__body { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(30px + env(safe-area-inset-bottom, 0px)); }
.accsub .yset__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 14px; margin-bottom: 10px; }
html.dark .accsub .yset__row { background: #241f17; border-color: #000; box-shadow: 3px 3px 0 #000; }
.accsub .yset__row > .yset__ctl:last-child { flex-basis: 100%; }

/* MY ACTIVITY — the ring, the counters, the bold cards */
.actlevel { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
  padding: 14px; margin-bottom: 14px; }
html.dark .actlevel { background: #241f17; border-color: #000; box-shadow: 4px 4px 0 #000; }
.actlevel__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.actlevel__name { font: 800 14px 'Space Grotesk', sans-serif; color: var(--ink); text-transform: uppercase; letter-spacing: .5px; }
.actlevel__next { font: 600 11px 'Space Grotesk', sans-serif; color: #8f8a80; }
.actdonut { display: flex; align-items: center; gap: 18px; background: #fff; border: 3px solid var(--ink);
  border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 16px; margin-bottom: 12px; }
html.dark .actdonut { background: #241f17; border-color: #000; box-shadow: 4px 4px 0 #000; }
.actdonut__ring { position: relative; flex: none; width: 132px; height: 132px; }
.actdonut__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.actdonut__bg { fill: none; stroke: rgba(127,127,127,.18); stroke-width: 15; }
.actdonut__fg { fill: none; stroke: var(--yellow); stroke-width: 15; stroke-linecap: round;
  transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1); }
.actdonut__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.actdonut__mid b { font: 800 26px 'Archivo Black', 'Space Grotesk', sans-serif; color: var(--ink); }
.actdonut__mid span { font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #8f8a80; }
.actdonut__side { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.actk { display: flex; align-items: baseline; gap: 9px; border-left: 4px solid var(--yellow); padding-left: 10px; }
.actk:nth-child(2) { border-color: var(--pink, #ff90e8); }
.actk:nth-child(3) { border-color: var(--blue, #4d7cff); }
.actk b { font: 800 21px 'Archivo Black', 'Space Grotesk', sans-serif; color: var(--ink); }
.actk span { font: 600 11px 'Space Grotesk', sans-serif; color: #6b6656; }
html.dark .actdonut__mid b, html.dark .actk b { color: #f2ead8; }
html.dark .actk span { color: #b8b2a2; }
.actcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.actcard { position: relative; overflow: hidden; background: #1c2447; color: #fff; border: 3px solid var(--ink);
  border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 13px 14px 11px; }
html.dark .actcard { border-color: #000; box-shadow: 4px 4px 0 #000; }
.actcard::after { content: ""; position: absolute; right: -26px; top: -26px; width: 74px; height: 74px; border-radius: 50%; }
.actcard--a::after { background: var(--yellow); }
.actcard--b::after { background: var(--pink, #ff90e8); }
.actcard--c::after { background: var(--blue, #4d7cff); }
.actcard:nth-child(3) { grid-column: 1 / -1; }
.actcard span { display: block; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; opacity: .85; }
.actcard b { display: block; font: 800 30px 'Archivo Black', 'Space Grotesk', sans-serif; line-height: 1.1; margin-top: 3px; }
.actcard small { font: 700 10px 'Space Grotesk', sans-serif; opacity: .8; }
.actpills { display: flex; gap: 9px; flex-wrap: wrap; }
.actpill { flex: 1 1 30%; text-align: center; text-decoration: none; background: var(--paper); border: 2.5px solid var(--ink);
  border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); padding: 10px 8px; font: 700 11px 'Space Grotesk', sans-serif; color: var(--ink); }
.actpill b { font: 800 14px 'Archivo Black', 'Space Grotesk', sans-serif; margin-right: 4px; }
html.dark .actpill { background: #241f17; border-color: #000; box-shadow: 3px 3px 0 #000; color: #f2ead8; }
.actfine { font: 600 10.5px 'Space Grotesk', sans-serif; color: #8f8a80; text-align: center; margin-top: 14px; }

/* ============================================================
   v264 · PROFILE v3 — the reference card: banner, centered hero,
   follower pills, three top buttons, ONE big subscribe
   ============================================================ */
.cm-profhead--v3 { position: relative; text-align: center; padding-bottom: 6px; }
.cm-profhead--v3 .cm-banner { position: relative; height: 148px; border-bottom: 3px solid var(--ink); overflow: hidden; }
.cm-banner__deco { position: absolute; pointer-events: none; opacity: .5; }
.cm-banner__deco--ring { width: 90px; height: 90px; border: 14px solid rgba(255,255,255,.5); border-radius: 50%; top: -30px; left: -24px; }
.cm-banner__deco--dot { width: 60px; height: 60px; background: rgba(255,255,255,.4); border-radius: 50%; bottom: -18px; right: 30px; }
.cm-banner__deco--tri { width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent;
  border-bottom: 38px solid rgba(255,255,255,.35); top: 12px; right: 18%; transform: rotate(18deg); }
.cm-topbtns { position: absolute; top: 10px; right: 12px; z-index: 6; display: flex; gap: 8px; }
.cm-topbtn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; text-decoration: none; }
.cm-topbtn:active { transform: scale(.94); }
html.dark .cm-topbtn { background: #241f17; border-color: #000; box-shadow: 2px 2px 0 #000; color: #f2ead8; }
.cm-profhead--v3 .cm-avawrap { margin: -52px auto 0; }
.cm-profhead--v3 .cm-profmain { padding: 6px 16px 0; }
.cm-profhead--v3 .cm-profmain h1 { justify-content: center; }
.cm-founding, .cm-goldtag { display: inline-block; margin-left: 6px; background: #ffc800; color: #111;
  border: 2px solid #111; border-radius: 999px; padding: 2px 8px; font-family: 'Archivo Black', sans-serif;
  font-size: .60rem; letter-spacing: .5px; vertical-align: middle; }
.cm-goldtag { background: linear-gradient(135deg, #ffd94d, #ffc800); }
.cm-lockpill { display: inline-block; margin: 8px auto 0; background: #fff; border: 2px solid var(--ink);
  border-radius: 999px; padding: 6px 12px; font: 700 10.5px 'Space Grotesk', sans-serif; color: var(--ink); }
.cm-statrow--pills { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin: 12px 0 4px; }
.cm-statrow--pills .cm-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--pink, #ff90e8);
  color: #111; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2.5px 2.5px 0 var(--ink);
  padding: 8px 14px; font: 700 11.5px 'Space Grotesk', sans-serif; text-decoration: none; }
.cm-statrow--pills .cm-pill b { font: 800 13px 'Archivo Black', 'Space Grotesk', sans-serif; }
.cm-statrow--pills .cm-pill:first-child { background: #fff; }
.cm-statrow--pills .cm-pill:last-child { background: var(--yellow); }
html.dark .cm-statrow--pills .cm-pill { border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }
.cm-idbox { margin: 10px auto 0; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  font: 500 10.5px 'Space Grotesk', sans-serif; color: var(--muted); word-break: break-all;
  background: rgba(0,0,0,.04); padding: 6px 10px; border-radius: 12px; border: 1.5px dashed rgba(0,0,0,.14); }
.cm-idcopy { margin-left: 4px; font: 700 10px 'Space Grotesk', sans-serif; padding: 3px 8px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--yellow); cursor: pointer; }
.cm-follow--big { width: 100%; justify-content: center; background: #111; color: var(--yellow);
  font-family: 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 1.2px; font-size: 13px;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--yellow); padding: 14px; }
.cm-follow--big.on { background: var(--green, #00c48c); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.cm-follow--big.is-req { background: var(--yellow); color: #111; box-shadow: 4px 4px 0 var(--ink); }
.cm-profhead--v3 .cm-sharerow--main { display: flex; gap: 10px; padding: 14px 16px 4px; }
.cm-profhead--v3 .cm-sharerow--main .cm-follow, .cm-profhead--v3 .cm-sharerow--main .cm-dmbtn { flex: 1; }
.cm-sharenote { text-align: center; font: 600 10.5px 'Space Grotesk', sans-serif; color: var(--muted); padding: 6px 0 2px; }
.cm-sect--bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.cm-sect--bar h2 { flex: 1; margin: 0; }
.cm-sect__n { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px;
  font: 800 11px 'Archivo Black', 'Space Grotesk', sans-serif; padding: 4px 10px; box-shadow: 2px 2px 0 var(--ink); }

/* ============================================================
   v264 · GRAVE IMAGES — every grave shows its face (free record)
   ============================================================ */
.autopsy__pic { position: relative; margin: 14px 0 0; border: 3px solid var(--ink); border-radius: 16px;
  overflow: hidden; background: #efe9dc; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.autopsy__pic img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.autopsy__pic figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(18,15,11,.82); color: #fff;
  border-radius: 999px; padding: 5px 10px; font: 700 9.5px 'Space Grotesk', sans-serif; letter-spacing: .4px; }
.autopsy__pic figcaption a { color: var(--yellow); text-decoration: none; }
.autopsy__pic--wait { height: 160px; }
.autopsy__pic--wait::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  animation: picshine 1.2s linear infinite; }
@keyframes picshine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.autopsy__gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.autopsy__gal figure { margin: 0; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #efe9dc; }
.autopsy__gal img { display: block; width: 100%; height: 92px; object-fit: cover; }
.autopsy__gal figcaption { font: 600 9.5px 'Space Grotesk', sans-serif; color: #6b6656; padding: 5px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.autopsy__credit { font: 600 10px 'Space Grotesk', sans-serif; color: #8f8a80; margin-top: 10px; }
.autopsy__credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .autopsy__pic--wait::before { animation: none; } }

/* ============================================================
   v265 · THE FREE TASTER — 15 minutes, two polite pop-ups, a gate
   ============================================================ */
.trialwrap { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 20px;
  background: rgba(12,10,6,.62); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s ease; }
.trialwrap.trial--on { opacity: 1; }
.trial { position: relative; width: min(430px, 100%); background: var(--paper, #fffdf5); color: #111;
  border: 3px solid #111; border-radius: 24px; box-shadow: 10px 10px 0 rgba(0,0,0,.45); padding: 26px 22px 20px;
  transform: translateY(16px) scale(.97); transition: transform .28s cubic-bezier(.2,.9,.25,1.2); overflow: hidden; }
.trial--on .trial { transform: none; }
.trial__deco { position: absolute; pointer-events: none; }
.trial__deco--sq { width: 46px; height: 46px; background: #ffc800; border: 3px solid #111; border-radius: 11px; top: -12px; right: 18px; transform: rotate(14deg); }
.trial__deco--ring { width: 26px; height: 26px; border: 6px solid #ff90e8; border-radius: 50%; bottom: 24px; right: -8px; opacity: .8; }
.trial__chip { width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px; background: #ffc800;
  border: 3px solid #111; border-radius: 15px; box-shadow: 4px 4px 0 #111; margin-bottom: 12px; }
.trial__eyebrow { display: inline-block; background: #111; color: #ffc800; font: 800 9.5px 'Space Grotesk', sans-serif;
  letter-spacing: 2.4px; padding: 6px 11px; border-radius: 999px; margin-bottom: 10px; }
.trial__t { margin: 0 0 8px; font: 900 21px/1.15 'Archivo Black', 'Space Grotesk', sans-serif; color: #111; }
.trial__s { margin: 0 0 14px; font: 500 13.5px/1.6 'Space Grotesk', sans-serif; color: #4a463c; }
.trial__s b { color: #111; }
.trial__list { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.trial__list li { font: 600 12.5px/1.5 'Space Grotesk', sans-serif; color: #111;
  background: #fff; border: 2.5px solid #111; border-radius: 12px; padding: 9px 12px; box-shadow: 3px 3px 0 #ffc800; }
.trial__acts { display: flex; flex-direction: column; gap: 9px; }
.trial__go { display: block; width: 100%; background: #111; color: #ffc800; border: 3px solid #111; border-radius: 16px;
  box-shadow: 5px 5px 0 #ffc800; padding: 15px; font: 900 13.5px 'Archivo Black', 'Space Grotesk', sans-serif;
  letter-spacing: 1.2px; cursor: pointer; text-align: center; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.trial__go:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 #ffc800; }
.trial__ghost { display: block; text-align: center; font: 700 12.5px 'Space Grotesk', sans-serif; color: #6b6656;
  text-decoration: underline; padding: 6px 0 2px; }
html.trial-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .trialwrap, .trial { transition: none; } }

/* ============================================================
   v265 · THE GRAVEYARD DESKS — audit + wire wear the graveyard:
   dark case-file boards, yellow evidence labels, zero office look
   ============================================================ */
.graveyard-page .acard--audit, .graveyard-page .acard--wire {
  background: #16130e; color: #e9e2d0; border-color: #000; box-shadow: 10px 10px 0 rgba(0,0,0,.4);
  background-image: radial-gradient(rgba(255,200,0,.05) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.graveyard-page .acard--audit .acard__h, .graveyard-page .acard--wire .acard__h { color: #ffc800; }
.graveyard-page .acard--audit .acard__s, .graveyard-page .acard--wire .acard__s { color: #cfc7b4; }
.graveyard-page .acard--audit .acard__s b, .graveyard-page .acard--wire .acard__s b { color: #ffc800; }
.graveyard-page .acard--audit .acard__lbl { color: #ffc800; }
.graveyard-page .acard--audit .ain, .graveyard-page .acard--audit textarea {
  background: #211c13; border-color: #000; color: #f2ead8; box-shadow: inset 0 2px 8px rgba(0,0,0,.5); }
.graveyard-page .acard--audit .ain::placeholder, .graveyard-page .acard--audit textarea::placeholder { color: #8f866f; }
.graveyard-page .acard--audit .ain:focus, .graveyard-page .acard--audit textarea:focus { outline: none; box-shadow: 4px 4px 0 #ffc800; }
.graveyard-page .acard--audit .achip { background: #211c13; border-color: #000; color: #e9e2d0; }
.graveyard-page .acard--audit .achip.on { background: #ffc800; color: #111; box-shadow: 3px 3px 0 #000; }
.graveyard-page .acard--audit .anext { background: #ffc800; color: #111; border-color: #000; box-shadow: 4px 4px 0 #000; }
.graveyard-page .acard--audit .amic { background: #ffc800; }
.graveyard-page .acard--audit .astatus, .graveyard-page .acard--wire .astatus { background: #211c13; border-color: #4a4033; }
.graveyard-page .acard--audit .astatus__line, .graveyard-page .acard--wire .astatus__line { color: #cfc7b4; }
.graveyard-page .acard--audit .ahist { border-color: #4a4033; }
.graveyard-page .acard--wire .arun--slim { background: #ffc800; color: #111; border-color: #000; box-shadow: 4px 4px 0 #000; }
.graveyard-page .acard--wire .awiregrid .awiki { background: #211c13; border-color: #000; color: #f2ead8; }
.graveyard-page .acard--wire .awiregrid .awiki i { color: #b8ae95; }
.graveyard-page .acard--wire .awire { background: #211c13; border-color: #000; color: #f2ead8; }
.graveyard-page .acard--wire .awire i { color: #b8ae95; }
.graveyard-page .acard--wire .awire span { background: #ffc800; color: #111; border-color: #000; }
.graveyard-page .acard--audit .areport, .graveyard-page .acard--wire .areport { color: #111; }

/* ============================================================
   v265 · LOGIN POLISH — nothing cut, nothing floating, motion in
   ============================================================ */
.youpage .yotab { white-space: nowrap; letter-spacing: .6px; padding: 12px 4px; }
.youpage .lgi .yoin { padding-right: 48px; }
.lgi__ic { top: 50%; transform: translateY(-50%); }
.youpage .yopass.lgi .yoeye { top: 50%; bottom: auto; transform: translateY(-50%); }
.youpage .youser__at { top: 50%; transform: translateY(-50%); }
.youpage .youser__state { top: 50%; transform: translateY(-50%); }
.youpage .yotick { position: relative; border-width: 3px; padding: 14px; }
.youpage .yotick__box { width: 26px; height: 26px; font-size: 15px; border-width: 3px; border-radius: 9px; }
.youpage .yotick__t { font-size: 12.5px; font-weight: 600; }
.youpage .yotick--nudge { animation: ticknudge .5s ease; }
@keyframes ticknudge { 0%,100% { transform: none; } 30% { transform: scale(1.02); } 60% { transform: scale(.99); } }
.youpage .yoin::placeholder { font-size: .86em; opacity: .62; }
.youpage .yoin:-webkit-autofill, .youpage .yoin:-webkit-autofill:focus {
  -webkit-text-fill-color: #111; -webkit-box-shadow: 0 0 0 60px #fff inset; caret-color: #111; }
html.dark .youpage .yoin:-webkit-autofill { -webkit-text-fill-color: #f2ead8; -webkit-box-shadow: 0 0 0 60px #211c13 inset; }
.lgcard { animation: lgcardin .5s cubic-bezier(.2,.9,.3,1.1); }
@keyframes lgcardin { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
.lghero__shape { animation: shapfloat 7s ease-in-out infinite; }
.lghero__shape--diamond { animation-duration: 5.4s; animation-delay: .8s; }
@keyframes shapfloat { 0%,100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-7px) rotate(45deg); } }
.lghero__shape--ring { animation-name: shapfloat2; }
@keyframes shapfloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .lgcard, .lghero__shape { animation: none; }
}

/* ============================================================
   v265 · ONBOARDING MOTION — the page breathes between questions
   ============================================================ */
.ob-hero__deco, .ob__bg { animation: obdrift 9s ease-in-out infinite; }
.ob-hero__deco--circ, .ob__bg--circ { animation-duration: 7s; animation-delay: .6s; }
.ob-hero__deco--ring { animation-duration: 8s; animation-delay: 1.1s; }
@keyframes obdrift { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(4deg); } }
.ob-hero__deco--sq { transform: rotate(-12deg); }
.ob-step h2 { font-size: 1.32rem; letter-spacing: .3px; }
.ob-row { transition: transform .14s ease, box-shadow .14s ease, background .2s ease, border-color .2s ease; }
.ob-row:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.ob-row.on { box-shadow: 3px 3px 0 var(--yellow); }
.ob-book { transition: transform .14s ease; }
.ob-book:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .ob-hero__deco, .ob__bg { animation: none; }
}

/* ============================================================
   v265 · PROFILE ALIGNMENT — one axis: everything centers
   ============================================================ */
.cm-profhead--v3 .cm-profcard { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.cm-profhead--v3 .cm-profmain { text-align: center; }
.cm-profhead--v3 .cm-profmain h1 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; }
.cm-profhead--v3 .cm-idchip { display: inline-block; margin: 6px auto 0; }
.cm-profhead--v3 .cm-bio { text-align: center; margin-left: auto; margin-right: auto; max-width: 46ch; }
.cm-profhead--v3 .cm-linksrow { justify-content: center; }
.cm-profhead--v3 .cm-lockpill { display: block; width: fit-content; margin: 8px auto 0; }
.cm-profhead--v3 .cm-avawrap { display: block; position: relative; width: fit-content; margin: -52px auto 0; }
.cm-profhead--v3 .cm-idbox { display: inline-flex; }
.cm-profhead--v3 .cm-progpill { margin-left: auto; margin-right: auto; }
.cm-profhead--v3 .cm-profedit { text-align: left; }
.cm-profhead--v3 .cm-sharecard { display: none; }

/* ============================================================
   v266 · THE IDEA AUTOPSY — banner + room, built for the YOU
   window from scratch. The graveyard's own interrogation room.
   ============================================================ */
.iaudban-wrap { max-width: 1080px; margin: 6px auto 4px; padding: 0 14px; }
.iaudban { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  background: linear-gradient(120deg, #ffc800 0%, #ffd94d 45%, #ff90e8 100%);
  border: 3px solid var(--ink, #111); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink, #111);
  padding: 17px 18px; cursor: pointer; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease;
  font-family: 'Space Grotesk', sans-serif; }
.iaudban:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink, #111); }
.iaudban:active { transform: scale(.985); }
.iaudban__deco { position: absolute; pointer-events: none; opacity: .55; animation: obdrift 9s ease-in-out infinite; }
.iaudban__deco--ring { width: 56px; height: 56px; border: 12px solid rgba(17,17,17,.28); border-radius: 50%; right: -12px; top: -16px; }
.iaudban__deco--sq { width: 34px; height: 34px; background: rgba(17,17,17,.22); border-radius: 9px; right: 52px; bottom: -10px; transform: rotate(16deg); }
.iaudban__deco--tri { width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(255,255,255,.5); right: 108px; top: 10px; transform: rotate(-12deg); }
.iaudban__chip { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px;
  background: #111; color: #ffc800; border-radius: 16px; box-shadow: 3px 3px 0 rgba(17,17,17,.35); }
.iaudban__main { flex: 1; min-width: 0; }
.iaudban__eyebrow { display: block; font: 800 9px 'Space Grotesk', sans-serif; letter-spacing: 2.2px; color: rgba(17,17,17,.72); }
.iaudban__t { display: block; font: 900 19px/1.05 'Archivo Black', 'Space Grotesk', sans-serif; color: #111; letter-spacing: .6px; margin: 3px 0 4px; }
.iaudit__sub { display: block; font: 600 11.5px/1.5 'Space Grotesk', sans-serif; color: rgba(17,17,17,.78); max-width: 52ch; }
.iaudban__go { flex: none; background: #111; color: #ffc800; border: 2.5px solid #111; border-radius: 999px;
  padding: 11px 14px; font: 800 10.5px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 1px;
  box-shadow: 3px 3px 0 rgba(17,17,17,.35); }
@media (max-width: 560px) {
  .iaudban { flex-wrap: wrap; }
  .iaudban__go { flex: 1 1 100%; text-align: center; }
  .iaudban__deco--tri { display: none; }
}

/* the room */
.iaudit { --iink: #16130e; }
.iaudit__intro { font: 600 12.5px/1.65 'Space Grotesk', sans-serif; color: #4a463c; margin: 0 0 14px; }
.iaudit__intro b { color: #111; }
.iaudit__steps { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.iaudit__dot { width: 30px; height: 30px; display: grid; place-items: center; border: 2.5px solid var(--iink);
  border-radius: 50%; font: 800 12px 'Space Grotesk', sans-serif; color: #8f8a80; background: #fff; }
.iaudit__dot.on { background: #ffc800; color: #111; }
.iaudit__dot.now { box-shadow: 3px 3px 0 var(--iink); }
.iaudit__slbl { margin-left: 8px; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; color: #8f8a80; }
.iaudit__lbl { display: block; margin: 13px 0 7px; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: 1.4px;
  text-transform: uppercase; color: #6b6656; }
.iaudit__lbl em { font-style: normal; text-transform: none; letter-spacing: .2px; font-weight: 600; opacity: .8; }
.iaudit__in { width: 100%; box-sizing: border-box; border: 3px solid var(--iink); border-radius: 14px; background: #fff;
  padding: 13px 14px; font: 600 14px/1.5 'Space Grotesk', sans-serif; color: #111; resize: vertical; }
.iaudit__in:focus { outline: none; box-shadow: 4px 4px 0 #ffc800; }
.iaudit__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iaudit__chip { border: 2.5px solid var(--iink); background: #fff; border-radius: 999px; padding: 10px 14px;
  font: 700 12px 'Space Grotesk', sans-serif; color: #111; cursor: pointer; transition: transform .12s ease; }
.iaudit__chip:active { transform: scale(.95); }
.iaudit__chip.on { background: #ffc800; box-shadow: 3px 3px 0 var(--iink); }
.iaudit__run { display: block; width: 100%; margin: 18px 0 4px; border: 3px solid var(--iink); background: #ff4d4d; color: #fff;
  border-radius: 14px; box-shadow: 5px 5px 0 var(--iink); padding: 15px; font: 900 14px 'Archivo Black', 'Space Grotesk', sans-serif;
  letter-spacing: 1.4px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.iaudit__run:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 var(--iink); }
.iaudit__back { display: block; width: 100%; margin-top: 8px; background: none; border: 0; color: #6b6656; cursor: pointer;
  font: 700 12px 'Space Grotesk', sans-serif; text-decoration: underline; padding: 8px 0; }
.iaudit--shake { animation: ticknudge .5s ease; }

/* the working overlay */
.iaudit__working { text-align: center; padding: 30px 10px; }
.iaudit__working__rip { display: inline-block; font-size: 34px; animation: obdrift 2.2s ease-in-out infinite; }
.iaudit__working b { display: block; font: 800 15px 'Space Grotesk', sans-serif; color: #111; margin-top: 8px; }
.iaudit__working p { font: 600 11px 'Space Grotesk', sans-serif; color: #8f8a80; margin: 5px 0 14px; }
.iaudit__workbar { height: 8px; border: 2.5px solid var(--iink); border-radius: 99px; overflow: hidden; background: #fff; }
.iaudit__workbar i { display: block; height: 100%; width: 40%; background: #ffc800; animation: workslide 1.1s ease-in-out infinite; }
@keyframes workslide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }

/* the report */
.iaudit__report { animation: subin .3s ease; }
.iaudit__score { display: flex; align-items: center; gap: 16px; background: #fff; border: 3px solid var(--iink);
  border-radius: 18px; box-shadow: 5px 5px 0 var(--iink); padding: 16px; margin-bottom: 12px; }
.iaudit__score__ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(#ffc800 calc(var(--p) * 1%), rgba(127,127,127,.18) 0);
  display: grid; place-items: center; position: relative; }
.iaudit__score__ring::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.iaudit__score__ring b, .iaudit__score__ring span { position: relative; z-index: 1; }
.iaudit__score__ring b { font: 800 30px 'Archivo Black', 'Space Grotesk', sans-serif; color: #111; }
.iaudit__score__ring span { position: absolute; bottom: 14px; font: 700 7.5px 'Space Grotesk', sans-serif; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8f8a80; }
.iaudit__verdict b { display: block; font: 900 15px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: .4px; }
.iaudit__verdict p { font: 600 12px/1.6 'Space Grotesk', sans-serif; color: #4a463c; margin: 6px 0 0; }
.iaudit__meters { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 3px solid var(--iink);
  border-radius: 18px; box-shadow: 5px 5px 0 var(--iink); padding: 15px; margin-bottom: 14px; }
.iaudit__meter__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.iaudit__meter__top span { font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1.6px; color: #4a463c; }
.iaudit__meter__top b { font: 800 15px 'Archivo Black', sans-serif; }
.iaudit__meter__bar { height: 12px; border: 2.5px solid var(--iink); border-radius: 99px; background: #fffdf5; overflow: hidden; }
.iaudit__meter__bar i { display: block; height: 100%; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.iaudit__h { font: 900 13px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 1px; color: #111;
  margin: 18px 0 9px; display: flex; align-items: center; gap: 8px; }
.iaudit__h::after { content: ""; flex: 1; border-top: 2.5px dashed rgba(127,127,127,.35); }
.iaudit__str { font: 600 12.5px/1.6 'Space Grotesk', sans-serif; color: #0b7a58; background: #eafaf3;
  border: 2.5px solid #0b7a58; border-radius: 12px; padding: 10px 12px; margin-bottom: 7px; }
.iaudit__str--none { color: #6b6656; background: #faf6e8; border-color: #b9b19c; }
.iaudit__fix { position: relative; background: #fff; border: 3px solid var(--iink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--iink); padding: 14px; margin-bottom: 10px; overflow: hidden; }
.iaudit__fix b { display: block; font: 800 13.5px 'Space Grotesk', sans-serif; color: #111; margin-bottom: 6px; }
.iaudit__fix p { font: 500 12.5px/1.6 'Space Grotesk', sans-serif; color: #4a463c; margin: 4px 0; }
.iaudit__fix p i { font-style: normal; font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 1.2px; color: #ffc800;
  background: #111; border-radius: 5px; padding: 2px 6px; margin-right: 5px; }
.iaudit__fix--blur p { filter: blur(5px); user-select: none; pointer-events: none; }
.iaudit__blurcap { position: absolute; right: 12px; bottom: 12px; background: #111; color: #ffc800;
  font: 800 9px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; border-radius: 999px; padding: 6px 10px; }
.iaudit__grave { display: inline-block; margin-top: 8px; font: 800 10.5px 'Space Grotesk', sans-serif; letter-spacing: .8px;
  color: #111; border-bottom: 2.5px solid #ffc800; text-decoration: none; padding-bottom: 2px; }

/* the lock + unlock card */
.iaudit__lockedwrap { position: relative; }
.iaudit__locked .iaudit__h { color: #8f8a80; }
.iaudit__lockcard { margin: 16px 0 6px; background: #16130e; color: #f2ead8; border: 3px solid #000; border-radius: 20px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.4); padding: 20px 18px; text-align: center; position: relative; overflow: hidden; }
.iaudit__lockcard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 96px; height: 96px;
  border-radius: 50%; background: rgba(255,200,0,.16); }
.iaudit__lockcard__eyebrow { display: inline-block; background: #ffc800; color: #111; font: 800 9px 'Space Grotesk', sans-serif;
  letter-spacing: 2.2px; border-radius: 999px; padding: 6px 11px; margin-bottom: 10px; }
.iaudit__lockcard b { display: block; font: 900 17px 'Archivo Black', 'Space Grotesk', sans-serif; color: #ffc800; margin-bottom: 8px; }
.iaudit__lockcard p { font: 500 12.5px/1.65 'Space Grotesk', sans-serif; color: #cfc7b4; margin: 0 0 14px; }
.iaudit__unlock { display: block; width: 100%; background: #ffc800; color: #111; border: 3px solid #000; border-radius: 14px;
  box-shadow: 4px 4px 0 #000; padding: 14px; font: 900 12.5px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: .8px;
  cursor: pointer; text-decoration: none; text-align: center; margin-bottom: 9px; transition: transform .12s ease, box-shadow .12s ease; }
.iaudit__unlock:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 #000; }
.iaudit__unlock--buy { background: #fff; }
.iaudit__fine { font: 600 10.5px 'Space Grotesk', sans-serif; color: #8f866f; margin: 4px 0 0; }
.iaudit__again { margin-top: 14px; }

/* plan steps, graves, osint */
.iaudit__stepsplan { display: flex; flex-direction: column; gap: 9px; }
.iaudit__stepn { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 3px solid var(--iink);
  border-radius: 14px; box-shadow: 3px 3px 0 var(--iink); padding: 12px; }
.iaudit__stepn b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: #ffc800;
  border: 2.5px solid var(--iink); border-radius: 9px; font: 800 13px 'Archivo Black', sans-serif; color: #111; }
.iaudit__stepn p { flex: 1; font: 600 12.5px/1.55 'Space Grotesk', sans-serif; color: #111; margin: 0; }
.iaudit__stepn__g { flex-basis: 100%; font: 700 9.5px 'Space Grotesk', sans-serif; letter-spacing: .8px; color: #8f8a80;
  text-decoration: none; text-transform: uppercase; }
.iaudit__stepn { flex-wrap: wrap; }
.iaudit__ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.iaudit__gcard { display: block; background: #16130e; color: #f2ead8; border: 3px solid #000; border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4); padding: 12px; text-decoration: none; transition: transform .14s ease; }
.iaudit__gcard:hover { transform: translateY(-3px); }
.iaudit__gcard__rip { font: 800 8px 'Archivo Black', sans-serif; letter-spacing: 2px; color: #ffc800; }
.iaudit__gcard b { display: block; font: 800 13px 'Space Grotesk', sans-serif; color: #fff; margin: 4px 0 2px; }
.iaudit__gcard i { display: block; font: 600 10px/1.4 'Space Grotesk', sans-serif; color: #b8ae95; font-style: normal; }
.iaudit__gcard__loss { display: block; font: 700 9.5px 'Space Grotesk', sans-serif; color: #ffc800; margin-top: 6px; }
.iaudit__osint { background: #fff; border: 3px solid var(--iink); border-radius: 16px; box-shadow: 4px 4px 0 var(--iink);
  padding: 14px; }
.iaudit__osint b { display: block; font: 800 11px 'Space Grotesk', sans-serif; letter-spacing: 1.2px; color: #111; margin: 8px 0 6px; }
.iaudit__osint-line { font: 600 12px/1.6 'Space Grotesk', sans-serif; color: #6b6656; margin: 4px 0; }
.iaudit__wiki, .iaudit__hns { display: flex; flex-direction: column; gap: 7px; }
.iaudit__wiki a, .iaudit__hns a { display: block; border: 2.5px solid var(--iink); border-radius: 12px; padding: 9px 11px;
  text-decoration: none; background: #fffdf5; }
.iaudit__wiki a b, .iaudit__hns a b { margin: 0; font: 700 12px 'Space Grotesk', sans-serif; color: #111; }
.iaudit__wiki a i, .iaudit__hns a i { display: block; font: 500 10.5px/1.5 'Space Grotesk', sans-serif; color: #6b6656; font-style: normal; margin-top: 2px; }
@media (max-width: 480px) {
  .iaudit__score { flex-direction: column; text-align: center; }
  .iaudit__verdict { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .iaudban, .iaudit__run, .iaudit__unlock { transition: none; }
  .iaudit__working__rip, .iaudban__deco { animation: none; }
  .iaudit__workbar i { animation: none; width: 100%; }
}

/* ============================================================
   v266 · ONBOARDING — THE CHAPTER BOOK (out-of-the-box question UI)
   ============================================================ */
.ob--page .ob__body { perspective: 1400px; }
.ob-step { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.35); padding: 22px 20px 16px; margin-top: 14px; overflow: hidden; }
.ob-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--yellow); border-right: 3px solid var(--ink); }
html.dark .ob-step { background: #241f17; border-color: #000; box-shadow: 8px 8px 0 #000; }
.ob-chrome { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px 8px; }
.ob-chrome__n { font: 900 44px/1 'Archivo Black', 'Space Grotesk', sans-serif; color: transparent;
  -webkit-text-stroke: 2px var(--ink); opacity: .28; letter-spacing: 2px; }
.ob-chrome__l { font: 800 9.5px 'Space Grotesk', sans-serif; letter-spacing: 2.6px; color: #8f8a80; text-transform: uppercase; }
.ob-step h2 { font-size: 1.42rem !important; line-height: 1.12; margin: 2px 0 6px 8px !important; position: relative; }
.ob-step h2::after { content: ""; display: block; width: 64px; height: 7px; background: var(--yellow);
  border: 2.5px solid var(--ink); border-radius: 99px; margin-top: 9px; box-shadow: 2px 2px 0 var(--ink); }
.ob-step .ob-sub { margin-left: 8px; }
.ob-step .ob-rows { margin: 16px 0 12px 4px; }
.ob-row { border-width: 3px; border-radius: 16px; padding: 13px 14px; position: relative; }
.ob-row::before { content: ""; position: absolute; left: -3px; top: 10px; bottom: 10px; width: 7px;
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 6px; opacity: 0; transition: opacity .15s ease; }
.ob-row.on::before { opacity: 1; }
.ob-row.on { background: #fffbe8; }
.ob-row .tick { margin-left: auto; flex: none; font-weight: 800; opacity: 0; transform: scale(.4) rotate(-30deg);
  width: 26px; height: 26px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--yellow); color: #111; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.9,.3,1.4); }
.ob-row.on .tick { opacity: 1; transform: none; }
.ob-step--enter { transform: perspective(1400px) rotateY(-10deg) translateX(46px); transform-origin: left center; }
.ob-step--out { transform: perspective(1400px) rotateY(8deg) translateX(-40px); transform-origin: right center; }
.ob-step--enterback { transform: perspective(1400px) rotateY(10deg) translateX(-46px); transform-origin: right center; }
.ob-step--outback { transform: perspective(1400px) rotateY(-8deg) translateX(40px); transform-origin: left center; }
.ob-step--out, .ob-step--outback { position: absolute; inset: 0; opacity: 0; }
.ob-seg { margin-left: 4px; }
.ob-langs { margin-left: 4px; }
.ob-shelf { margin-left: 4px; }
@media (prefers-reduced-motion: reduce) {
  .ob-step, .ob-step--enter, .ob-step--enterback, .ob-row .tick { transition: none; transform: none; }
}
/* v266 · mic + custom category inputs inside the autopsy room */
.iaudit__tw { position: relative; display: block; }
.iaudit__tw .iaudit__in { padding-bottom: 40px; }
.iaudit__mic { position: absolute; left: 10px; bottom: 10px; border: 2.5px solid #111; background: #ffc800;
  border-radius: 999px; padding: 7px 12px; font: 800 10px 'Space Grotesk', sans-serif; letter-spacing: 1px;
  cursor: pointer; box-shadow: 2px 2px 0 #111; }
.iaudit__mic.on { background: #ff4d4d; color: #fff; animation: micPulse 1.1s ease-in-out infinite; }

/* ============================================================
   v267 · IDEA AUTOPSY — evidence meters, AI read, history shelf
   ============================================================ */
.iaudit__sigwrap { background: #fffdf5; border: 3px dashed #b9b19c; border-radius: 16px; padding: 12px 13px; margin-bottom: 12px; }
.iaudit__sigwrap__lbl { display: block; font: 800 9px 'Space Grotesk', sans-serif; letter-spacing: 2px; color: #8f8a80; margin-bottom: 8px; }
.iaudit__sig { background: #fff; border: 2.5px solid #111; border-radius: 12px; padding: 9px 11px; margin-bottom: 7px; box-shadow: 2px 2px 0 #ffc800; }
.iaudit__sig b { display: block; font: 800 12px 'Space Grotesk', sans-serif; color: #111; }
.iaudit__sig p { font: 500 11.5px/1.55 'Space Grotesk', sans-serif; color: #4a463c; margin: 3px 0 0; }
.iaudit__ai { background: #16130e; color: #f2ead8; border: 3px solid #000; border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4); padding: 14px; margin-top: 12px; }
.iaudit__ai__lbl { display: block; font: 800 9px 'Space Grotesk', sans-serif; letter-spacing: 1.8px; color: #ffc800; margin-bottom: 7px; }
.iaudit__ai p { font: 500 12.5px/1.65 'Space Grotesk', sans-serif; color: #f2ead8; margin: 0; }
.iaudit__ai__fine { display: block; font: 600 9.5px/1.5 'Space Grotesk', sans-serif; color: #8f866f; margin-top: 8px; }
.iaudit__hist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.iaudit__hist__row { position: relative; display: block; width: 100%; text-align: left; background: #fff;
  border: 2.5px solid #111; border-radius: 13px; box-shadow: 3px 3px 0 #111; padding: 11px 38px 10px 12px;
  cursor: pointer; transition: transform .13s ease; }
.iaudit__hist__row:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #111; }
.iaudit__hist__row b { display: block; font: 800 12.5px 'Space Grotesk', sans-serif; color: #111; }
.iaudit__hist__row i { display: block; font: 600 10.5px 'Space Grotesk', sans-serif; color: #8f8a80; font-style: normal; margin-top: 2px; }
.iaudit__hist__x { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
  display: grid; place-items: center; border: 2px solid #111; border-radius: 50%; font-size: 10px; font-weight: 900; color: #6b6656; background: #fffdf5; }
.iaudit__hist__x:hover { background: #ff4d4d; color: #fff; }

/* v267 · rooms leave the way they arrive */
.accsub--out { animation: subout .19s ease forwards; }
@keyframes subout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(26px); } }
@media (prefers-reduced-motion: reduce) { .accsub--out { animation: none; } }

/* v267 · Look & feel — every option says what it is */
.yset__ctl .setopt { position: relative; }
.yset__ctl .setopt small { display: block; font: 700 8.5px 'Space Grotesk', sans-serif; letter-spacing: .4px;
  color: #6b6656; margin-top: 3px; text-transform: uppercase; }
.setopt--sm { min-width: 58px; text-align: center; }
html.dark .yset__ctl .setopt small { color: #b8b2a2; }

/* v267 · quote flow — one card, one door, one honest toggle */
.wr-quotelive__card { cursor: pointer; }
.wr-quotelive__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wr-qchip { flex: 1 1 46%; border: 2.5px solid #111; background: #fff; border-radius: 999px; padding: 11px 12px;
  font: 800 11px 'Space Grotesk', sans-serif; letter-spacing: .3px; cursor: pointer; box-shadow: 2.5px 2.5px 0 #111;
  transition: transform .12s ease, box-shadow .12s ease; }
.wr-qchip:active { transform: scale(.97); }
.wr-qchip--main { background: #ffc800; }
.wr-qchip.on { background: #111; color: #ffc800; box-shadow: 2.5px 2.5px 0 #ffc800; }
html.dark .wr-qchip { background: #241f17; color: #f2ead8; border-color: #000; box-shadow: 2.5px 2.5px 0 #000; }
html.dark .wr-qchip--main { background: #ffc800; color: #111; }
html.dark .wr-qchip.on { background: #000; color: #ffc800; }

/* v267 · fresh graves: the anchor pill + the turn-the-earth button */
.freshanchor { flex: none; border: 2.5px solid #111; background: #16130e; color: #ffc800; border-radius: 999px;
  padding: 8px 13px; font: 800 10px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 1px;
  cursor: pointer; box-shadow: 3px 3px 0 rgba(0,0,0,.35); transition: transform .12s ease; }
.freshanchor:active { transform: scale(.95); }
html.dark .freshanchor { border-color: #000; box-shadow: 3px 3px 0 #000; }
.freshhead { flex-wrap: wrap; }
.freshhead__btn { border: 2.5px solid #111; background: #ffc800; color: #111; border-radius: 999px;
  padding: 9px 14px; font: 800 10px 'Archivo Black', 'Space Grotesk', sans-serif; letter-spacing: 1px;
  cursor: pointer; box-shadow: 3px 3px 0 #111; transition: transform .12s ease; white-space: nowrap; }
.freshhead__btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #111; }
.freshhead__btn:disabled { opacity: .6; }
html.dark .freshhead__btn { border-color: #000; box-shadow: 3px 3px 0 #000; }

/* ============================================================
   THE WEEKLY PROMPT (house style)
   One official question every week, pinned on the shelf.
   ============================================================ */
.cm-weekly { position: relative; overflow: hidden; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 18px 18px 16px 22px; margin: 2px 2px 16px; }
.cm-weekly::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow); border-right: 3px solid var(--ink); }
.cm-weekly__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.cm-weekly__badge { font: 800 10px/1 var(--font-head); letter-spacing: 1.6px; background: var(--yellow); color: var(--on-accent); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 6px 9px; border-radius: 7px; display: inline-block; }
.cm-weekly__wk { font: 700 10.5px var(--font-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cm-weekly__q { font-family: var(--font-head); font-size: clamp(15px, 4vw, 20px); line-height: 1.25; letter-spacing: .2px; text-transform: uppercase; margin: 0 0 8px; color: var(--ink); }
.cm-weekly__s { font: 500 12.5px/1.6 var(--font-body); color: var(--muted); margin: 0 0 14px; }
.cm-weekly__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-weekly__cta { display: inline-block; text-decoration: none; font: 800 11px/1 var(--font-head); letter-spacing: 1px; text-transform: uppercase; background: var(--yellow); color: var(--on-accent); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px; border-radius: 10px; transition: transform .12s ease, box-shadow .12s ease; }
.cm-weekly__cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.cm-weekly__cta--ghost { background: var(--paper); color: var(--ink); }
.cm-weekly__done { font: 800 10px/1 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--on-accent); background: var(--green); border: 2px solid var(--ink); padding: 6px 9px; border-radius: 7px; display: inline-block; }
.cm-nudge { display: flex; gap: 8px; align-items: center; margin: 10px 14px 14px; padding: 10px 12px; background: var(--surface-2); border: 2px dashed var(--muted-2); border-radius: 12px; font: 600 12px/1.45 var(--font-body); color: var(--muted); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.cm-nudge:hover { border-color: var(--ink); color: var(--ink); }
.cm-nudge svg { width: 14px; height: 14px; flex: none; }
.wr-weekly { background: var(--yellow); color: var(--on-accent); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 11px 14px; margin-bottom: 12px; font: 500 13px/1.5 var(--font-body); }
.wr-weekly b { font: 800 10px/1 var(--font-head); letter-spacing: 1.5px; display: block; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .cm-weekly__cta:hover { transform: none; } }

/* v277: the STOP button is unmissable while a locked note records */
.vstage__stop { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border-color: var(--ink); }
.vstage__stop[hidden] { display: none !important; }
.vstage__stop svg { width: 16px; height: 16px; }
.vstage.is-locked .vstage__top { box-shadow: 0 0 0 3px rgba(255,77,77,.35); border-radius: 12px; }


/* ============================================================
   READING JOURNEYS (packs) — house style
   ============================================================ */
.pk-host { margin: 18px 14px 4px; }
.pk-lock { overflow: hidden; }
.pk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pk-head__t { font: 800 12px var(--font-head); letter-spacing: 1.5px; }
.pk-head__s { font: 600 10.5px var(--font-body); color: var(--muted); }
.pk-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.pk-strip::-webkit-scrollbar { display: none; }
.pk-chip { flex: none; display: flex; align-items: center; gap: 10px; max-width: 280px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; cursor: pointer; text-align: left; transition: transform .12s ease, box-shadow .12s ease; }
.pk-chip:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.pk-chip:active { transform: translate(1.5px,1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.pk-chip__emo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 20px; border: 2.5px solid var(--ink); border-radius: 10px; }
.pk-chip span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-chip b { font: 800 12px/1.2 var(--font-head); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-chip i { font: 600 10.5px var(--font-body); font-style: normal; color: var(--muted); white-space: nowrap; }
.pk-chip__go { font: 800 10px var(--font-head); letter-spacing: 1px; color: var(--muted); flex: none; }
.pk-chip--mine { border-color: var(--ink); background: var(--yellow); }
.pk-chip--mine i { color: #55504a; }

.pk-sheet { position: fixed; inset: 0; z-index: 99990; overflow-y: auto; background: var(--bg); opacity: 0; transform: translateY(14px); transition: opacity .28s ease, transform .28s ease; }
#tsbPackSheet.on .pk-sheet { opacity: 1; transform: none; }
.pk-sheet__top { position: sticky; top: 0; z-index: 2; padding: 20px 18px 16px; border-bottom: 3px solid var(--ink); }
.pk-sheet__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); font-size: 14px; cursor: pointer; }
.pk-sheet__emo { display: inline-grid; place-items: center; width: 52px; height: 52px; font-size: 26px; background: var(--paper); border: 3px solid var(--ink); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 10px; }
.pk-sheet__t { font: 800 clamp(20px, 5.4vw, 26px)/1.15 var(--font-head); letter-spacing: .3px; margin: 0 0 6px; color: #111; text-transform: uppercase; }
.pk-sheet__l { font: 500 13px/1.55 var(--font-body); color: #22201a; margin: 0 0 10px; max-width: 520px; }
.pk-sheet__meta { font: 800 10px var(--font-head); letter-spacing: 1.6px; background: #111; color: #ffc800; padding: 6px 9px; border-radius: 7px; }
.pk-sheet__acts { display: flex; gap: 10px; padding: 14px 18px 4px; }
.pk-save { flex: 1; font: 800 12px var(--font-head); letter-spacing: 1.2px; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(17,17,17,.35); padding: 14px 12px; cursor: pointer; }
.pk-save:active { transform: translate(1.5px,1.5px); box-shadow: 1.5px 1.5px 0 rgba(17,17,17,.35); }
.pk-unsave { flex: none; background: var(--paper); color: var(--muted); border: 2px dashed var(--muted-2, #8a8378); border-radius: 12px; padding: 12px 14px; font: 600 11px var(--font-body); cursor: pointer; }
.pk-shelfwrap { padding: 26px 18px 0; }
.pk-shelfrow { display: flex; align-items: flex-end; justify-content: safe center; gap: clamp(6px, 2vw, 12px); overflow-x: auto; padding: 10px 6px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pk-shelfrow::-webkit-scrollbar { display: none; }
.pk-vol { position: relative; flex: none; width: clamp(44px, 12.5vw, 64px); transition: transform .15s ease; scroll-snap-align: center; }
.pk-vol:hover { transform: translateY(-4px); }
.pk-vol img { width: 100%; aspect-ratio: 64 / 92; height: auto; object-fit: cover; border: 3px solid var(--ink); border-radius: 6px 9px 9px 6px; box-shadow: 4px 4px 0 var(--ink); display: block; background: var(--paper); }
.pk-vol i { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font: 800 8px var(--font-head); font-style: normal; letter-spacing: .6px; background: var(--ink); color: #ffc800; border-radius: 6px; padding: 3px 5px; white-space: nowrap; max-width: 130%; overflow: hidden; text-overflow: ellipsis; }
.pk-plank { display: block; height: 10px; margin: -2px 8px 0; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 5px 6px 0 var(--ink); }
.pk-days { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.pk-day { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.pk-day__n { flex: none; font: 800 9px var(--font-head); letter-spacing: 1px; color: #111; border: 2px solid var(--ink); border-radius: 7px; padding: 5px 7px; }
.pk-day__cov { flex: none; }
.pk-day__cov img { width: 42px; height: 60px; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 5px 7px 7px 5px; display: block; }
.pk-day__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pk-day__mid b { font: 700 13px/1.25 var(--font-body); }
.pk-day__mid i { font: 500 10.5px var(--font-body); font-style: normal; color: var(--muted); }
.pk-day__bar { height: 7px; background: var(--surface-2); border: 1.5px solid var(--line, #e0d9c7); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.pk-day__bar i { display: block; height: 100%; border-radius: 99px; }
.pk-day__tick { flex: none; font: 800 9px var(--font-head); letter-spacing: .8px; border: 2px solid var(--ink); border-radius: 7px; padding: 4.5px 7px; background: var(--surface-2); color: var(--muted); }
.pk-day__tick--go { background: var(--yellow); color: #111; }
.pk-day__tick.is-full { background: var(--green); color: var(--on-accent); }
.pk-note { font: 500 11.5px/1.6 var(--font-body); color: var(--muted); padding: 8px 20px 30px; }
.pk-homelead { margin: 18px 14px -4px; }
.pk-homelead__in { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(17,17,17,.3); padding: 12px 14px; cursor: pointer; }
.pk-homelead__emo { font-size: 22px; }
.pk-homelead__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pk-homelead__mid b { font: 800 11px var(--font-head); letter-spacing: 1px; color: var(--yellow); }
.pk-homelead__mid i { font: 600 11.5px var(--font-body); font-style: normal; color: #cfc8ba; }
.pk-homelead__go { flex: none; font: 800 10px var(--font-head); letter-spacing: 1px; color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .pk-chip:hover, .pk-vol:hover { transform: none; } }

/* ============================================================
   v278 · READING JOURNEYS: louder, tactile, impossible to miss
   ============================================================ */
.pk-head__t { font-size: 13px; letter-spacing: 2px; }
.pk-strip { padding: 4px 4px 12px; scroll-snap-type: x proximity; }
.pk-chip { scroll-snap-align: start; max-width: 300px; padding: 12px 14px; border-radius: 16px; gap: 12px; position: relative; overflow: hidden; }
.pk-chip::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); transition: left .45s ease; pointer-events: none; }
.pk-chip:hover::after { left: 130%; }
.pk-chip__emo { width: 46px; height: 46px; font-size: 23px; border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); transition: transform .16s ease; }
.pk-chip:hover .pk-chip__emo { transform: rotate(-7deg) scale(1.08); }
.pk-chip b { font-size: 12.5px; }
.pk-chip__go { background: var(--yellow); color: #111; border: 2px solid var(--ink); border-radius: 8px; padding: 5px 8px; box-shadow: 2px 2px 0 var(--ink); }
.pk-chip--mine .pk-chip__go { background: var(--paper); }
@keyframes pkNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.pk-chip .pk-chip__go { animation: pkNudge 1.6s ease-in-out infinite; }
.pk-chip:active { transform: translate(2px,2px) scale(.98); box-shadow: 1px 1px 0 var(--ink); }
.pk-chip:active .pk-chip__go { animation: none; }
@media (prefers-reduced-motion: reduce) { .pk-chip::after, .pk-chip .pk-chip__go, .pk-chip:hover .pk-chip__emo { animation: none; transition: none; } }
.pk-save { background: var(--yellow); color: #111; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 18px; font: 800 13px var(--font-head); letter-spacing: 1.5px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.pk-save:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.pk-save:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

/* v281 · cheat sheet: pen-first details */
.cs2__do { align-items: center; }
.cs2__tick { flex: none; width: 8.5mm; height: 8.5mm; border: 0.9mm solid var(--ink-x, #14110c); border-radius: 2mm; background: #fff; margin-left: auto; }
.cs2__dates { display: flex; align-items: flex-end; gap: 3mm; margin: 3mm 0 0; }
.cs2__dates span { font: 800 8px 'Archivo Black', 'Arial Black', sans-serif; letter-spacing: .5mm; color: var(--ink-x, #14110c); white-space: nowrap; }
.cs2__dates i { flex: 1; border-bottom: 0.6mm solid var(--ink-x, #14110c); height: 5mm; opacity: .8; }
.cs2__mine { margin-top: 4mm; border-top: 0.9mm solid var(--ink-x, #14110c); padding-top: 3.5mm; }
.cs2__mine b { display: block; font: 800 9.5px 'Archivo Black', 'Arial Black', sans-serif; letter-spacing: .8mm; color: var(--ink-x, #14110c); margin-bottom: 1.5mm; }
.cs2__mine span { display: block; height: 9mm; border-bottom: 0.5mm solid rgba(20,17,12,.45); }
