/* ADSTA PWA 0.5.2 — Spiced Cherry & Cream
   Prototype styling. Type: Poppins if installed, graceful system fallback. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --inferno: #AA0003;
  --pink: #FF6B6B;
  --papaya: #FFEDD5;
  --cherry: #6E0002;
  --charcoal: #2B2728;
  --grey: #6B6667;
  --light: #DCD7D5;
  --white: #FFFFFF;

  --bg: #F8F4F2;
  --card: #FFFFFF;
  --line: #EDE6E2;
  --muted: #8A8384;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --tab-h: 72px;
  --shadow: 0 1px 2px rgba(43, 39, 40, .04), 0 10px 26px rgba(43, 39, 40, .06);
  --shadow-lift: 0 10px 24px rgba(170, 0, 3, .22);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, #F1EBE8 42%, #E5DCD8 100%);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- app shell ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .app {
    height: 884px;
    max-height: 92vh;
    border-radius: 40px;
    box-shadow: 0 0 0 11px #1b191a, 0 0 0 13px #3a3436, 0 40px 90px rgba(43, 39, 40, .28);
  }
}

/* ---------- top bar ---------- */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 10px;
  background: linear-gradient(180deg, rgba(248, 244, 242, .98), rgba(248, 244, 242, .82));
  backdrop-filter: blur(8px);
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 9px; }

.monogram-sm {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, #C81014, var(--inferno) 55%, var(--cherry));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(170, 0, 3, .28);
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cherry);
}
.wordmark sup { font-size: 7px; letter-spacing: 0; top: -.7em; position: relative; opacity: .75; }

.balance {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.balance:active { transform: scale(.97); }
.balance-num { font-size: 14px; font-weight: 700; color: var(--inferno); font-variant-numeric: tabular-nums; }
.balance-unit { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- screens ---------- */
.screens {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 30px);
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }

.screen { animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
h1 { font-size: 26px; line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 16px; margin: 0 0 2px; letter-spacing: -.01em; font-weight: 600; }
h3 { font-size: 15px; margin: 0; font-weight: 600; }
p { margin: 0; font-size: 13.5px; line-height: 1.55; }

.eyebrow {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.5; }
.fine {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}
.lead { font-size: 13px; color: var(--grey); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 2px 10px;
}
.section-head h2 { font-size: 14px; letter-spacing: .01em; }
.section-head .link { font-size: 11.5px; }

.greet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 14px;
}
.streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.card.tight { padding: 13px 14px; }
.card.flat { box-shadow: none; }
.card.dashed { border-style: dashed; background: #FFFCFA; }

.hero { padding: 16px 16px 14px; }
.hero-top { display: flex; gap: 14px; align-items: center; }
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-line { font-size: 12px; color: var(--grey); margin: 2px 0 8px; line-height: 1.45; }

/* score ring */
.ring { flex: 0 0 auto; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #F3EBE7; stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--inferno); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring-num {
  transform: rotate(90deg); transform-origin: 50% 50%;
  font-size: 23px; font-weight: 700; fill: var(--cherry); text-anchor: middle;
}
.ring-sub {
  transform: rotate(90deg); transform-origin: 50% 50%;
  font-size: 7px; letter-spacing: .1em; fill: var(--muted); text-anchor: middle; text-transform: uppercase;
}

/* integrity ladder */
.ladder { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 11px; display: grid; gap: 7px; }
.ladder-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: var(--grey);
}
.bar { height: 5px; border-radius: 999px; background: #F4EDE9; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--inferno); }
.bar > i.mid { background: var(--pink); }
.bar > i.low { background: var(--light); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.chip-verified { background: var(--papaya); color: var(--cherry); }
.chip-vision { background: #FFE9E9; color: var(--inferno); }
.chip-self { background: #F1EDEB; color: var(--grey); }
.chip-wallet { background: #EFE9F7; color: #5A3E82; }
.chip-neutral { background: #F4EDE9; color: var(--grey); }
.chip-live { background: var(--inferno); color: #fff; }
.chip-outline { border: 1px dashed var(--light); color: var(--muted); background: transparent; }

/* ---------- buttons ---------- */
button { font-family: inherit; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--inferno);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(170, 0, 3, .35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  background: linear-gradient(150deg, #C81014, var(--inferno) 60%, #8C0002);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-ghost { background: #FBF7F5; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 11px; font-size: 11px; border-radius: 10px; }

/* ---------- week strip ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.day { text-align: center; }
.day .dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #F6EFEB;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}
.day .dot.on { background: var(--papaya); color: var(--cherry); }
.day .dot.today { background: var(--inferno); color: #fff; box-shadow: 0 4px 10px rgba(170, 0, 3, .3); }
.day .dot.future { background: repeating-linear-gradient(135deg, #FAF5F2, #FAF5F2 3px, #F3EAE5 3px, #F3EAE5 6px); color: var(--muted); }
.day small { display: block; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.banked { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--cherry); font-variant-numeric: tabular-nums; line-height: 1; }
.big-num span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 5px; }

/* ---------- feed ---------- */
.feed-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px 4px;
}
.feed-rail::-webkit-scrollbar { display: none; }

.post {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-media {
  height: 132px;
  background: linear-gradient(135deg, #FFEDD5, #FFD9C4 45%, #FFC9C9);
  position: relative;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.post-media .chip { position: absolute; left: 10px; bottom: 10px; }
.post-body { padding: 12px 14px 14px; }
.post-who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--papaya), #FFD3C3);
  color: var(--cherry);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  border: 1px solid #F6E4D6;
  flex: 0 0 auto;
}
.who-txt { display: grid; line-height: 1.25; min-width: 0; }
.who-txt strong { font-size: 12px; font-weight: 600; }
.who-txt small { font-size: 9.5px; color: var(--muted); }
.post-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.post-actions { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.post-actions .grow { flex: 1 1 auto; }
.iconbtn {
  border: 1px solid var(--line);
  background: #FBF7F5;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.iconbtn:active { transform: scale(.96); }
.caught-up {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border: 1px dashed var(--light);
  border-radius: var(--r-lg);
  padding: 26px 18px;
  text-align: center;
  background: #FDFAF8;
}
.caught-up .tick {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--papaya); color: var(--inferno);
  display: grid; place-items: center; margin: 0 auto 10px;
  font-size: 15px;
}

/* ---------- shop / services ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile .thumb {
  height: 56px; border-radius: 9px;
  background: linear-gradient(135deg, #FFF4E6, #FFE0D4);
  display: grid; place-items: center;
  font-size: 22px;
}
.tile h3 { font-size: 12.5px; line-height: 1.3; }
.tile .meta { font-size: 10px; color: var(--muted); line-height: 1.4; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.price { font-size: 13px; font-weight: 700; color: var(--cherry); }
.price small { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.outlet { display: grid; gap: 10px; }
.outlet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot {
  border: 1px solid var(--line);
  background: #FBF7F5;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}
.slot:active { border-color: var(--pink); }
.slot.sel { background: var(--inferno); border-color: transparent; color: #fff; }
.booked {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--papaya); border-radius: var(--r-md); padding: 11px 12px;
}

/* ---------- progress ---------- */
.prog { height: 8px; border-radius: 999px; background: #F4EDE9; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--inferno)); transition: width .5s ease; }
.prog-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; }

/* ---------- history ---------- */
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 10px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 18px; letter-spacing: -.02em; color: var(--cherry); font-variant-numeric: tabular-nums; }
.stat small { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); line-height: 1.35; display: block; margin-top: 3px; }

.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.heat i {
  aspect-ratio: 1; border-radius: 4px; display: block;
  background: #F6EFEB;
}
.heat i.l1 { background: #FFE3C9; }
.heat i.l2 { background: #FFC9A8; }
.heat i.l3 { background: #FF9A86; }
.heat i.l4 { background: var(--inferno); }

.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
  cursor: pointer;
}
.fchip.on { background: var(--charcoal); border-color: transparent; color: #fff; }

/* ---- 0.9.1 Services: discipline bands with named facilitator groups ---- */
.svc-band { margin: 0 0 16px; }
.svc-head {
  border-radius: var(--r-md); padding: 16px 14px; margin-bottom: 8px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 74px;
}
.svc-head h2 { margin: 0; font-size: 15px; color: #fff; text-shadow: 0 1px 8px rgba(18,3,4,.55); }
.svc-head span { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 2px; }
.fac-group { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.fac-group:last-child { border-bottom: 0; }
.fac-group .logrow { padding-left: 2px; }
.fac-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--inferno, #AA0003); background: #F6E7E5;
  border: 1px solid #E7C9C6; border-radius: 999px; padding: 4px 10px; margin: 2px 0 4px;
}

.logrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.logrow:last-child { border-bottom: 0; }
.logrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--inferno); flex: 0 0 auto;
}
.logrow .dot.v { background: var(--pink); }
.logrow .dot.s { background: var(--light); }
.logrow .dot.w { background: #7B5AA6; }
.logrow .txt { flex: 1 1 auto; min-width: 0; }
.logrow .txt strong { display: block; font-size: 12px; font-weight: 600; }
.logrow .txt small { font-size: 9.5px; color: var(--muted); }
.logrow .amt { font-size: 12px; font-weight: 700; color: var(--inferno); font-variant-numeric: tabular-nums; }
.logrow .amt.neg { color: var(--grey); }

/* ---------- profile ---------- */
.wallet-hero {
  background: linear-gradient(145deg, #C81014, var(--inferno) 45%, #6E0002);
  border-radius: var(--r-lg);
  padding: 18px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(170, 0, 3, .26);
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 237, 213, .3), transparent 65%);
}
.wallet-hero .eyebrow { color: rgba(255, 255, 255, .7); }
.wallet-hero .big-num { color: #fff; font-size: 36px; }
.wallet-hero .big-num span { color: rgba(255, 255, 255, .72); }
.wallet-hero .prog { background: rgba(255, 255, 255, .22); }
.wallet-hero .prog > i { background: linear-gradient(90deg, #FFEDD5, #FFC9C9); }
.wallet-hero .prog-meta { color: rgba(255, 255, 255, .78); }
.wallet-split { display: flex; gap: 14px; margin-top: 12px; font-size: 10.5px; color: rgba(255, 255, 255, .82); }
.wallet-split b { color: #fff; font-weight: 600; }

.setting {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.setting:last-of-type { border-bottom: 0; }
.setting .txt { flex: 1 1 auto; min-width: 0; }
.setting .txt strong { display: block; font-size: 12.5px; font-weight: 600; }
.setting .txt small { font-size: 10px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.switch {
  width: 40px; height: 23px; border-radius: 999px;
  background: #E6DDD8; border: 0; padding: 2px;
  cursor: pointer; flex: 0 0 auto; transition: background .2s ease;
}
.switch > i { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.switch.on { background: var(--inferno); }
.switch.on > i { transform: translateX(17px); }
.switch.locked { background: var(--papaya); cursor: not-allowed; }
.switch.locked > i { transform: translateX(17px); }

.note {
  background: #FBF7F5;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 12px;
  font-size: 10.5px;
  color: var(--grey);
  line-height: 1.55;
}
.note strong { color: var(--charcoal); }

/* ---------- team ---------- */
.dept { display: grid; gap: 9px; margin-top: 10px; }
.deptrow { display: grid; grid-template-columns: 84px 1fr 28px; align-items: center; gap: 8px; font-size: 11px; color: var(--grey); }
.deptrow b { font-size: 11.5px; color: var(--charcoal); font-variant-numeric: tabular-nums; text-align: right; }
.deptrow.mine { color: var(--cherry); font-weight: 600; }
.guard { display: grid; gap: 7px; margin-top: 4px; }
.guard li { font-size: 11px; color: var(--grey); line-height: 1.5; }

/* ---------- tab bar ---------- */
.tabbar {
  flex: 0 0 auto;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.tab {
  border: 0; background: none; cursor: pointer;
  display: grid; justify-items: center; gap: 3px;
  padding: 6px 0 4px;
  color: #A9A1A2;
  font-size: 8.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .18s ease;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.7; }
.tab.on { color: var(--inferno); }
.tab.on svg { stroke-width: 2.1; }

/* ---------- AD AI button ---------- */
.ai-btn {
  position: absolute;
  right: 16px;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(150deg, #C81014, var(--inferno) 55%, #6E0002);
  color: #fff;
  cursor: pointer;
  z-index: 22;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(170, 0, 3, .36), 0 0 0 5px rgba(255, 237, 213, .55);
  transition: width .24s cubic-bezier(.3, .7, .3, 1), height .24s cubic-bezier(.3, .7, .3, 1),
              opacity .24s ease, transform .15s ease, box-shadow .24s ease;
}
.ai-btn:active { transform: scale(.94); }
.ai-btn .ad-mark { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.ai-btn .mic-badge {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  color: var(--inferno);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(43, 39, 40, .22);
  transition: opacity .2s ease, transform .2s ease;
}
.ai-btn.small {
  width: 40px; height: 40px;
  box-shadow: 0 6px 14px rgba(170, 0, 3, .26), 0 0 0 3px rgba(255, 237, 213, .5);
  opacity: .82;
}
.ai-btn.small .ad-mark { font-size: 11px; }
.ai-btn.small .mic-badge { width: 14px; height: 14px; right: -2px; bottom: -2px; }
.ai-btn.small .mic-badge svg { width: 9px; height: 9px; }

/* ---------- pulse ---------- */
.pulse {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translate(-50%, -14px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(43, 39, 40, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.3, .7, .3, 1);
  max-width: calc(100% - 32px);
}
.pulse.show { opacity: 1; transform: translate(-50%, 0); }
.pulse .p-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: 0 0 auto; }
.pulse .p-sub { color: rgba(255, 255, 255, .62); font-size: 10px; }
.pulse .p-badge {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #FFEDD5;
  white-space: nowrap;
}

/* ---------- sheet ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; }
.sheet-wrap[hidden] { display: none; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(43, 39, 40, .38);
  backdrop-filter: blur(2px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #FFFDFC;
  border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  max-height: 86%;
  overflow-y: auto;
  box-shadow: 0 -14px 40px rgba(43, 39, 40, .22);
  animation: up .28s cubic-bezier(.28, .8, .3, 1) both;
}
@keyframes up { from { transform: translateY(26px); opacity: .6; } to { transform: none; opacity: 1; } }

.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h3 { font-size: 15.5px; }
.sheet-head p { font-size: 11px; color: var(--muted); }
.sheet-head .icon-btn {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FBF7F5;
  color: var(--grey);
  font-size: 12px;
  cursor: pointer;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.ad-mini {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, #C81014, var(--inferno) 55%, var(--cherry));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
}

.quick-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.chip-btn {
  border: 1px solid var(--line);
  background: #FBF7F5;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10.5px;
  color: var(--grey);
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}
.chip-btn:active { border-color: var(--pink); }

.ai-reply { display: grid; gap: 8px; margin: 4px 0 10px; }
.reply-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: rise .24s ease both;
}
.reply-card .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.reply-card .rc-head strong { font-size: 12.5px; }

.ai-input {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 12px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.ai-input input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12.5px;
  background: transparent;
  color: var(--charcoal);
  min-width: 0;
  padding: 6px 0;
}
.ai-input .mic, .ai-input .send {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--inferno);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
}
.ai-input .mic { background: var(--papaya); color: var(--inferno); padding: 8px; }
.ai-input .mic.rec { background: var(--inferno); color: #fff; animation: pulseMic 1.1s infinite; }
@keyframes pulseMic { 0%, 100% { box-shadow: 0 0 0 0 rgba(170, 0, 3, .35); } 50% { box-shadow: 0 0 0 6px rgba(170, 0, 3, 0); } }

.aud {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  padding: 11px 12px;
  margin-bottom: 7px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.aud:active { border-color: var(--pink); }
.aud .audic {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--papaya); color: var(--inferno);
  display: grid; place-items: center; font-size: 12px; flex: 0 0 auto;
}
.aud .txt { flex: 1 1 auto; }
.aud .txt strong { display: block; font-size: 12.5px; }
.aud .txt small { font-size: 10px; color: var(--muted); }
.aud .arrow { color: var(--light); font-size: 14px; }

.empty { text-align: center; padding: 22px 10px; color: var(--muted); font-size: 12px; }

/* small screens */
@media (max-width: 360px) {
  h1 { font-size: 23px; }
  .deptrow { grid-template-columns: 72px 1fr 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Input layer (0.3.3) — forms, fields, validation states
   ========================================================= */
.form { display: grid; gap: 12px; }

.field { display: grid; gap: 5px; }

.field .lab {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field .lab em {
  font-style: normal;
  color: var(--pink);
  letter-spacing: .06em;
  font-size: 8px;
  margin-left: 4px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 13px;
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 54px; line-height: 1.5; }

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8384' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  padding-right: 34px;
}

.field input::placeholder,
.field textarea::placeholder { color: #B6AEAE; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .16);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--inferno);
  background: #FFF8F8;
}
.field.invalid input:focus,
.field.invalid select:focus,
.field.invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(170, 0, 3, .14);
}

.field .hint { font-size: 10px; color: var(--muted); line-height: 1.4; }

.field .err {
  font-size: 10.5px;
  color: var(--inferno);
  font-weight: 500;
  line-height: 1.35;
  min-height: 0;
}
.field .err:empty { display: none; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { padding-right: 46px; }
.input-wrap .unit {
  position: absolute;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* range (1–5 energy) */
.range-wrap { display: flex; align-items: center; gap: 12px; }
.range-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  height: 22px;
  background: transparent;
  padding: 0;
  border: 0;
}
.range-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--papaya), #FFC9A8 55%, var(--inferno));
}
.range-wrap input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--papaya), #FFC9A8 55%, var(--inferno));
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--inferno);
  box-shadow: 0 2px 6px rgba(170, 0, 3, .3);
  cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--inferno);
  box-shadow: 0 2px 6px rgba(170, 0, 3, .3);
  cursor: pointer;
}
.range-out {
  flex: 0 0 auto;
  min-width: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--cherry);
  font-variant-numeric: tabular-nums;
}

/* file input */
.file-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--light);
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  background: #FDFAF8;
  transition: border-color .16s ease, background .16s ease;
}
.file-drop:active { border-color: var(--pink); background: #FFF7F3; }
.file-drop input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.file-drop .fd-ic {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--papaya);
  color: var(--inferno);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  flex: 0 0 auto;
}
.file-drop .fd-txt { display: grid; font-size: 12px; font-weight: 600; line-height: 1.3; }
.file-drop .fd-txt span { font-size: 9.5px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.file-prev img {
  width: 100%;
  max-height: 118px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  margin-top: 7px;
}

/* form footer / actions */
.form-error {
  font-size: 11px;
  color: var(--inferno);
  font-weight: 600;
  line-height: 1.4;
}
.form-error:empty { display: none; }

.btn-row { display: flex; gap: 8px; margin-top: 2px; }
.btn-row .btn { flex: 1 1 auto; padding: 12px 14px; font-size: 12.5px; }
.btn-row .btn-ghost { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.btn.danger { color: var(--inferno); border-color: #F2D6D4; background: #FFF7F6; }

/* stat / row tap affordance */
.logrow .iconbtn { flex: 0 0 auto; }

/* ================= 0.4.0 additions ================= */
/* header: auth buttons + score chip */
.top-right { display: flex; align-items: center; gap: 8px; }
.btn-auth { border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 999px; }
.btn-auth.primary { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.btn-auth:active { transform: scale(.96); }
.score-chip { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 999px; padding: 4px 10px 4px 5px; }
.score-chip:active { transform: scale(.97); }
.sc-ring { position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(var(--cherry) calc(var(--p, 0) * 1%), #F4EDE9 0);
  display: grid; place-items: center; }
.sc-ring i { font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: var(--cherry); }
.sc-txt { display: grid; line-height: 1.15; text-align: left; }
.sc-txt strong { font-size: 11.5px; color: var(--ink); }
.sc-txt small { font-size: 9px; color: var(--muted); }

/* TikTok-style feed */
.feed-rail { height: calc(100dvh - 210px); overflow-y: auto; scroll-snap-type: y mandatory;
  scrollbar-width: none; border-radius: 16px; }
.feed-rail::-webkit-scrollbar { display: none; }
.tt-card { position: relative; scroll-snap-align: start; scroll-snap-stop: always;
  height: 100%; min-height: 420px; border-radius: 16px; overflow: hidden; background: #1c1416; }
.tt-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.62) 100%); }
.tt-tag { position: absolute; top: 12px; left: 12px; }
.tt-side { position: absolute; right: 8px; bottom: 84px; display: grid; gap: 14px; justify-items: center; }
.tt-act { display: grid; justify-items: center; gap: 2px; background: none; border: 0;
  color: #fff; font-size: 10.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tt-ic { font-size: 24px; line-height: 1; }
.tt-meta { position: absolute; left: 12px; right: 66px; bottom: 14px; color: #fff;
  display: grid; gap: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.tt-meta strong { font-size: 13.5px; }
.tt-meta small { font-size: 11px; opacity: .92; }
.tt-end { display: grid; place-items: center; }
.tt-endbox { display: grid; justify-items: center; gap: 6px; text-align: center;
  color: #fff; padding: 24px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tt-endbox .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ok);
  display: grid; place-items: center; font-size: 20px; }

/* ================= 0.5.1 additions ================= */
/* header icon bubbles (Check-in / Meal photo / Self-report) */
.qic { width: 26px; height: 26px; border-radius: 50%; background: #FBE9E9; color: var(--cherry);
  display: grid; place-items: center; flex: 0 0 auto; }
.qic.qic-v { background: #FFE9E9; }
.qic.qic-s { background: #F1EDEB; color: var(--grey); }

/* header auth buttons — small enough for one line */
.btn-auth { font-size: 10.5px; padding: 6px 10px; white-space: nowrap; }
.sc-txt strong { font-size: 10.5px; white-space: nowrap; }
.sc-txt small { white-space: nowrap; }


/* =========================================================
   0.5.2 — logged-out landing, header actions, full-bleed feed
   ========================================================= */
[hidden] { display: none !important; }

/* header: second row with the three logging icons (signed in only) */
.topbar { flex-wrap: wrap; row-gap: 8px; }
.top-actions { flex: 1 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ta-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0;
  padding: 5px 8px 5px 5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(43, 39, 40, .05); color: var(--charcoal); cursor: pointer;
  transition: transform .12s ease, border-color .2s ease; }
.ta-btn:active { transform: scale(.96); border-color: var(--pink); }
.ta-lab { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- logged-out landing ---------- */
.landing { padding-top: 6px; }
.lp-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 20px 20px; color: #fff; margin-bottom: 14px;
  background: radial-gradient(120% 90% at 90% -10%, rgba(255, 107, 107, .6), transparent 55%),
              linear-gradient(155deg, #C81014 0%, var(--inferno) 48%, #4a0002 100%);
  box-shadow: 0 16px 34px rgba(170, 0, 3, .3); animation: rise .45s ease both; }
.lp-hero::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 237, 213, .28), transparent 66%); }
.lp-mono { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 15px; font-weight: 700;
  letter-spacing: .04em; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32); margin-bottom: 14px; }
.lp-brand { font-size: 30px; font-weight: 700; letter-spacing: .26em; line-height: 1.1; margin: 0 0 8px; }
.lp-sub { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 30ch; }
.lp-actions { display: flex; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.btn-light { background: #fff; color: var(--cherry); border-color: transparent; padding: 11px 18px; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); padding: 11px 18px; }

.lp-card { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3; margin-bottom: 14px;
  background: #2a0003; box-shadow: var(--shadow); animation: rise .55s ease both; }
.lp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 0, 2, 0) 36%, rgba(20, 0, 2, .86) 100%); }
.lp-text { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.lp-eyebrow { display: inline-block; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px); }
.lp-text h2 { font-size: 20px; line-height: 1.24; letter-spacing: -.012em; font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }

.lp-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lp-strip::-webkit-scrollbar { display: none; }
.lp-photo { position: relative; flex: 0 0 150px; height: 190px; margin: 0; border-radius: 18px; overflow: hidden; background: #2a0003;
  scroll-snap-align: start; box-shadow: var(--shadow); }
.lp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 11px 10px; color: #fff; font-size: 11.5px; font-weight: 600;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); }
.lp-cta { margin-top: 4px; }

/* ---------- logged-in home: full-bleed vertical feed ---------- */
.screens { position: relative; }
.screens.feed-mode { padding: 0; overflow: hidden; }
.screen-feed { position: absolute; inset: 0; animation: none; }
.feed-rail { display: block; position: absolute; inset: 0; height: auto; margin: 0; padding: 0; border-radius: 0;
  overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.feed-rail .tt-card { display: block; height: 100%; min-height: 0; border-radius: 0; flex: none; }
.tt-tag { top: 14px; left: 14px; }
.tt-side { right: 10px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 78px); gap: 12px; }
.tt-meta { left: 16px; right: 76px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 18px); }
.tt-meta strong { font-size: 15px; }
.tt-fallback { background: linear-gradient(150deg, #FFEDD5, #FFC9C9 45%, var(--inferno)); }
.tt-scrim-deep { background: linear-gradient(180deg, rgba(20, 0, 2, .45), rgba(20, 0, 2, .8)); }
.tt-empty .tt-endbox { position: absolute; inset: 0; align-content: center; padding: 24px 28px calc(var(--tab-h) + 24px); }
.tt-empty .tt-endbox h3 { font-size: 19px; line-height: 1.25; }
.tt-empty .tt-endbox .small { max-width: 28ch; opacity: .92; margin-bottom: 6px; }
.tt-summary { min-height: 100%; scroll-snap-align: start; background: var(--bg);
  padding: 16px 16px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 36px); }
.tick-sm { width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--papaya); color: var(--inferno);
  display: grid; place-items: center; font-size: 14px; }

@media (max-width: 360px) {
  .ta-lab { font-size: 9.5px; }
  .lp-text h2 { font-size: 18px; }
}

/* the toast sits below the header's second row when the three log icons are showing */
.app:has(.top-actions:not([hidden])) .pulse { top: 112px; }

/* ---------- 0.5.3: header auth toggle, demo accounts, admin hand-off steps ---------- */
.btn-auth.primary { font-weight: 700; }
.btn-auth.logout { background: transparent; color: var(--cherry); border-color: rgba(110, 0, 2, .28); font-weight: 600; }
.btn-auth.logout:active { background: #FBE9E9; }
@media (max-width: 430px) {
  .top-right { gap: 6px; }
  .top-right .sc-txt { display: none; }          /* keep Log out reachable on a phone */
  .btn-auth { font-size: 10px; padding: 6px 8px; }
}
.demo-box { margin: 4px 0 12px; border: 1px dashed var(--line); border-radius: 14px; padding: 9px 11px; background: #FFFBF8; }
.demo-box .demo-hd { font-size: 11.5px; font-weight: 700; color: var(--cherry); letter-spacing: .01em; margin: 0; }
.demo-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%;
  margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); text-align: left; cursor: pointer; }
.demo-row b { font-size: 11.5px; color: var(--ink); }
.demo-row small { font-size: 10.5px; color: var(--muted); }
.demo-row:active { transform: scale(.99); background: #FDF3F1; }
.demo-box .fine { margin-top: 9px; }
.demo-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; background: #F4EDE9; padding: 1px 4px; border-radius: 4px; }
.steps { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 12px; }
.step { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 12px;
  background: #FBF7F5; border: 1px solid var(--line); font-size: 11.5px; color: var(--ink); }
.step b { flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #F0E4E0; color: var(--cherry); font-size: 10px; }
.step.on { border-color: rgba(170, 0, 3, .35); background: #FDF3F1; }
.step.on b { background: var(--cherry); color: #fff; }

/* ── 0.7.1 · home refresh ───────────────────────────────────────────────
   Wordmark-only header, Ranking chip in the top strip, and Activity
   Check-in cards: the Home feed is pictures only, TikTok-style. */
.rank-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .1); background: #fff;
  font-size: 12px; font-weight: 800; color: #1a1a1a;
}
.act-cta {
  position: absolute; left: 12px; right: 76px; bottom: 58px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.act-cta strong { color: #fff; font-size: 14.5px; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.act-cta small { color: rgba(255, 255, 255, .85); font-size: 11px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.act-cta .btn { margin-top: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }

/* 0.9.1 — chip labels in Title Case, never ALL CAPS */
.x-stat-l{text-transform:none !important;letter-spacing:.01em !important;}

/* the demo account just filled into the log-in boxes */
.demo-row.on { border-color: var(--cherry, #AA0003); background: #FFF4F2; }
