/* BILT. — one committed dark theme.
   Borrowed signatures (keep these when editing):
   · ref 1  warm olive→peach frosted glass, serif display title, pill checklist rows, ↗ circle button
   · ref 2  bold italic editorial headline, ghost pill button
   · ref 3  heavy wide caps + giant outlined background word + hairline geometry
   · ref 4  neon-blue glowing glass glyphs on near-black */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-2: #111114;
  --ink: #f4f0ea;
  --ink-2: rgba(244, 240, 234, .78);
  --ink-3: rgba(244, 240, 234, .56);
  --ink-4: rgba(244, 240, 234, .22);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .085);
  --glass-3: rgba(255, 255, 255, .13);

  --olive: #76825a;
  --sage: #a8b08a;
  --peach: #dc9a70;
  --clay: #a8643f;
  --sand: #e9dcc8;

  --neon: #3b78ff;
  --neon-hi: #9cc0ff;
  --neon-glow: 0 0 24px rgba(59, 120, 255, .55), 0 0 64px rgba(59, 120, 255, .25);

  --good: #3ee08a;
  --ok: #ffa83f;
  --bad: #ff4f62;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background-color: #050506;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* ───────────── Stage (desktop shows the phone like the references) ───────────── */
.stage {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(59, 120, 255, .16), transparent 70%),
    radial-gradient(50% 50% at 20% 85%, rgba(220, 154, 112, .14), transparent 70%),
    linear-gradient(180deg, #0c0c0f, #050506);
}
.stage-word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(180px, 30vw, 520px); letter-spacing: -.04em; line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.stage-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.stage-meta {
  position: absolute; bottom: 28px; font: 500 12px/1 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.stage-meta.l { left: 36px; } .stage-meta.r { right: 36px; }
.stage-brand {
  position: absolute; top: 28px; left: 36px; display: flex; align-items: center; gap: 10px;
  font: 800 15px/1 var(--display); font-stretch: 120%; letter-spacing: .02em;
}
.stage-brand i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #000; font-style: normal; font-size: 11px; }

.phone {
  position: relative;
  width: 402px; height: 860px; max-height: calc(100vh - 48px);
  border-radius: 62px;
  padding: 11px;
  background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2d 70%, #0d0d0f);
  box-shadow:
    0 0 0 1.5px #4a4a50 inset,
    0 50px 120px -20px rgba(0, 0, 0, .9),
    0 30px 60px -30px rgba(59, 120, 255, .25);
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 190px; width: 4px; height: 92px;
  border-radius: 0 3px 3px 0; background: #2b2b2f;
}
.phone::after {
  content: ""; position: absolute; left: -3px; top: 160px; width: 4px; height: 56px;
  border-radius: 3px 0 0 3px; background: #2b2b2f;
  box-shadow: 0 76px 0 #2b2b2f, 0 -50px 0 -1px #2b2b2f;
}
.screen-glass {
  position: relative; width: 100%; height: 100%;
  border-radius: 52px; overflow: hidden; background: var(--bg);
  isolation: isolate;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 60;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 34px 0 40px; font: 600 15px/1 var(--sans); letter-spacing: -.01em;
  pointer-events: none;
}
.statusbar .sb-r { display: flex; gap: 6px; align-items: center; }

@media (max-width: 520px) {
  .stage { display: block; background: var(--bg); }
  .stage-word, .stage-lines, .stage-meta, .stage-brand { display: none; }
  .phone { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .phone::before, .phone::after, .island, .statusbar { display: none; }
  .screen-glass { border-radius: 0; }
  :root { --top-pad: calc(var(--safe-top) + 14px); }
}
:root { --top-pad: 62px; }
@media (max-width: 520px) { :root { --top-pad: calc(var(--safe-top) + 16px); } }

/* ───────────── Ambient background (ref 1 wash) ───────────── */
.ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient b {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32;
  animation: drift 26s var(--ease) infinite alternate;
}
.ambient .a1 { width: 360px; height: 360px; left: -120px; top: -80px; background: radial-gradient(circle, var(--olive), transparent 70%); }
.ambient .a2 { width: 380px; height: 380px; right: -170px; top: 160px; background: radial-gradient(circle, var(--clay), transparent 70%); opacity: .45; animation-delay: -8s; }
.ambient .a3 { width: 300px; height: 300px; left: 10%; bottom: -140px; background: radial-gradient(circle, rgba(59, 120, 255, .9), transparent 70%); opacity: .28; animation-delay: -14s; }
.ambient .grain {
  position: absolute; inset: 0; opacity: .025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
  100% { transform: translate(-20px, 60px) scale(.95); }
}

/* ───────────── Views ───────────── */
.views { position: absolute; inset: 0; z-index: 1; }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: var(--top-pad) 22px calc(124px + var(--safe-bot));
  scrollbar-width: none;
  animation: viewIn .45s var(--ease) both;
}
.view::-webkit-scrollbar { display: none; }
.view.push { z-index: 20; background: var(--bg); animation: pushIn .42s var(--ease) both; padding-bottom: calc(40px + var(--safe-bot)); }
.view.push.closing { animation: pushOut .3s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushOut { to { transform: translateX(100%); } }

/* ───────────── Type ───────────── */
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.display { font-family: var(--display); font-weight: 900; font-stretch: 118%; letter-spacing: -.035em; text-transform: uppercase; line-height: .9; }
.ed { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 82%; letter-spacing: -.01em; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.num { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ───────────── Header ───────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.logo { font: 900 22px/1 var(--display); font-stretch: 125%; letter-spacing: -.04em; }
.logo span { color: var(--neon); text-shadow: var(--neon-glow); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.light { background: var(--ink); color: #0a0a0a; border: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; }

.hello { margin: 4px 0 22px; }
.hello h1 { font: 400 44px/1 var(--serif); margin: 6px 0 0; letter-spacing: -.02em; }
.hello h1 em { font-style: italic; color: var(--sand); }

/* ───────────── Glass card ───────────── */
.card {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025) 60%);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  padding: 22px;
  margin-bottom: 16px;
  overflow: hidden;
}
.card.warm { background: linear-gradient(155deg, rgba(168, 176, 138, .30), rgba(220, 154, 112, .22) 55%, rgba(255, 255, 255, .03)); }
.card.flat { background: var(--glass); }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { margin: 4px 0 0; font: 400 28px/1 var(--serif); letter-spacing: -.01em; }
.card-h h3.sm { font-size: 22px; }
.section-h { display: flex; justify-content: space-between; align-items: center; margin: 32px 2px 14px; }
.section-h h2 { margin: 0; font: 400 28px/1 var(--serif); }
.section-h a, .link { font: 600 13px/1 var(--sans); color: var(--neon-hi); cursor: pointer; }

/* ───────────── Score hero ───────────── */
.score-hero { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: center; }
.rings { position: relative; width: 172px; height: 172px; cursor: pointer; }
.rings svg { position: absolute; inset: 0; }
.rings .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.rings .center .num { font-size: 44px; line-height: 1; }
.rings .center .eyebrow { font-size: 9.5px; margin-top: 4px; }
.ring-prog { transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; animation: ringIn 1.4s var(--ease) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.score-legend { display: grid; gap: 12px; }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend-row .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; flex: none; }
.legend-row .lbl { font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; font-weight: 600; }
.legend-row .val { font: 800 26px/1 var(--display); letter-spacing: -.03em; }
.legend-row .val small { font: 500 12px var(--sans); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.band-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .04em; background: var(--glass-2); border: 1px solid var(--line); }
.band-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wd { display: grid; justify-items: center; gap: 6px; font: 600 10px/1 var(--sans); color: var(--ink-3); letter-spacing: .08em; }
.wd.today { color: var(--ink); }
.wd .mini { position: relative; width: 36px; height: 36px; }
.wd .mini span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10.5px/1 var(--display); color: var(--ink); }
.wd.future .mini span { color: var(--ink-4); }

/* ───────────── Workout hero card ───────────── */
.session-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 14px;
  padding: 22px; min-height: 236px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 60%),
              linear-gradient(170deg, #17171b, #0d0d10);
  border: 1px solid var(--line);
}
.session-card .ghost-word { position: absolute; right: -14px; bottom: -18px; }
.ghost-word {
  font: 900 112px/.8 var(--display); font-stretch: 125%; letter-spacing: -.05em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .055); pointer-events: none; white-space: nowrap;
}
.session-card .glyph { position: absolute; right: 18px; top: 50px; width: 108px; height: 108px; }
.session-card .ttl { font: 900 34px/.92 var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: -.035em; max-width: 64%; margin: 10px 0 0; }
.session-card .ttl em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-stretch: 100%; }
.session-meta { display: flex; gap: 14px; color: var(--ink-2); font-size: 14px; margin-top: 12px; flex-wrap: wrap; }
.session-meta span { display: inline-flex; gap: 6px; align-items: center; }
.session-meta svg { width: 14px; height: 14px; opacity: .7; }
.session-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; position: relative; z-index: 2; }
.done-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--good); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; }
.btn.neon { background: linear-gradient(180deg, #5b8fff, #2b62f0); color: #fff; box-shadow: 0 0 0 1px rgba(156, 192, 255, .5) inset, var(--neon-glow); }
.btn.light { background: var(--ink); color: #0a0a0a; }
.btn.ghost { background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn.danger { background: rgba(255, 79, 98, .14); color: var(--bad); border: 1px solid rgba(255, 79, 98, .3); }

/* ───────────── Checklist (ref 1) ───────────── */
.checklist { display: grid; gap: 8px; }
.check-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 16px 13px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .07);
  transition: background .25s, transform .2s var(--ease);
  cursor: pointer; text-align: left; width: 100%;
}
.check-row:active { transform: scale(.98); }
.check-row .tick {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-3);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.check-row .tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); color: #0a0a0a; }
.check-row.on .tick { background: var(--ink); border-color: var(--ink); }
.check-row.on .tick svg { opacity: 1; transform: none; }
.check-row.on .lbl { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.check-row .lbl { font-size: 15.5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.check-row .lbl small { font-size: 13px; color: var(--ink-3); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.check-row .meta { font: 500 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.check-row .bar { height: 3px; border-radius: 3px; background: var(--ink-4); overflow: hidden; width: 100%; max-width: 140px; }
.check-row .bar i { display: block; height: 100%; background: var(--sand); border-radius: 3px; }
.auto-tag { font: 600 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--neon-hi); padding: 3px 6px; border-radius: 6px; background: rgba(59, 120, 255, .15); }

/* ───────────── Stat tiles ───────────── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile .eyebrow { display: flex; align-items: center; gap: 6px; }
.tile .eyebrow svg { width: 13px; height: 13px; }
.tile .v { font: 800 30px/1 var(--display); letter-spacing: -.03em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.tile .v small { font: 500 13px var(--sans); color: var(--ink-3); letter-spacing: 0; margin-left: 3px; }
.tile .sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.tile .spark { position: absolute; right: 14px; bottom: 16px; width: 58px; height: 24px; opacity: .9; }
.tile.wide { grid-column: span 2; }

/* Recovery gauge */
.gauge-row { display: flex; align-items: center; gap: 16px; }
.gauge { position: relative; width: 92px; height: 92px; flex: none; }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; }
.gauge .center .num { font-size: 24px; }

/* ───────────── Plans ───────────── */
.plans-hero { margin: 6px 0 20px; position: relative; }
.plans-hero h1 { margin: 0; font-size: 58px; }
.plans-hero h1 .amp { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: .72em; letter-spacing: 0; color: var(--sand); vertical-align: .08em; }
.plans-hero p { margin: 12px 0 0; color: var(--ink-2); max-width: 300px; font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -22px 22px; padding: 2px 22px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass); border: 1px solid var(--line); font: 500 13px/1 var(--sans); color: var(--ink-2);
  transition: all .2s;
}
.chip.on { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.chip svg { width: 14px; height: 14px; }

.plan-card {
  position: relative; display: block; width: 100%; text-align: left;
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 12px; padding: 20px; min-height: 196px;
  background:
    radial-gradient(90% 100% at 85% 30%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 62%),
    linear-gradient(165deg, #18181c, #0c0c0f);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease);
}
.plan-card:active { transform: scale(.985); }
.plan-card .ghost-word { position: absolute; left: -6px; bottom: -14px; font-size: 96px; }
.plan-card .glyph { position: absolute; right: 16px; top: 22px; width: 96px; height: 96px; }
.plan-card .cat { display: inline-flex; gap: 6px; align-items: center; }
.plan-card .cat i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.plan-card h3 { margin: 12px 0 0; font: 900 27px/.94 var(--display); font-stretch: 112%; letter-spacing: -.03em; text-transform: uppercase; max-width: 62%; }
.plan-card .desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); max-width: 64%; }
.plan-card .pmeta { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; position: relative; }
.tag { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font: 600 12.5px/1 var(--sans); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--ink-2); backdrop-filter: blur(10px); }
.tag.on { color: var(--good); border-color: rgba(62, 224, 138, .35); background: rgba(62, 224, 138, .1); }

.plan-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px; width: 100%; text-align: left; }
.plan-row .g { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tint) 30%, transparent), rgba(255, 255, 255, .03)); border: 1px solid var(--line); }
.plan-row .g svg { width: 34px; height: 34px; }
.plan-row b { font: 700 16px/1.2 var(--sans); }
.plan-row small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }

/* Plan detail */
.detail-hero {
  position: relative; margin: calc(-1 * var(--top-pad)) -22px 0; padding: calc(var(--top-pad) + 4px) 22px 26px; min-height: 420px;
  background:
    radial-gradient(80% 60% at 70% 34%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 65%),
    linear-gradient(180deg, #141418, var(--bg));
  overflow: hidden;
}
.detail-hero .ghost-word { position: absolute; left: -10px; top: 120px; font-size: 150px; }
.detail-hero .glyph { position: absolute; right: 50%; transform: translateX(50%); top: 110px; width: 170px; height: 170px; }
.detail-hero .lines { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.detail-hero h1 { position: relative; margin: 210px 0 0; font-size: 46px; }
.detail-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-stretch: 100%; color: var(--sand); }
.detail-hero p { position: relative; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; max-width: 330px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.kv div { padding: 14px 12px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.kv b { display: block; font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.kv span { font-size: 11px; color: var(--ink-3); letter-spacing: .05em; }
.week-acc { border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px; overflow: hidden; }
.week-acc summary { list-style: none; padding: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.week-acc summary::-webkit-details-marker { display: none; }
.week-acc summary b { font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.week-acc summary small { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.week-acc summary svg { width: 16px; height: 16px; transition: transform .25s; color: var(--ink-3); }
.week-acc[open] summary svg { transform: rotate(90deg); }
.sess-line { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.sess-line .d { font: 700 10px/1 var(--sans); color: var(--ink-3); letter-spacing: .1em; }
.sess-line b { font-size: 15px; font-weight: 600; display: block; }
.sess-line small { color: var(--ink-3); font-size: 13.5px; }
.sess-line .int { font: 700 12px/1 var(--display); color: var(--neon-hi); }
.sticky-cta { position: sticky; bottom: calc(14px + var(--safe-bot)); margin-top: 20px; z-index: 5; display: flex; gap: 10px; }

/* ───────────── Tab bar ───────────── */
.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: calc(14px + var(--safe-bot)); z-index: 40;
  height: 70px; border-radius: 36px; display: grid; grid-template-columns: 1fr 1fr 82px 1fr 1fr; align-items: center;
  background: rgba(22, 22, 26, .62); border: 1px solid var(--line-2);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease), opacity .3s;
}
.tabbar.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tab { display: grid; justify-items: center; gap: 5px; color: var(--ink-3); font: 600 11px/1 var(--sans); letter-spacing: .02em; transition: color .2s; height: 100%; align-content: center; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--ink); }
.tab.on svg { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); }
.tab-go { justify-self: center; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, #6b9bff, #2559e8 70%); box-shadow: 0 0 0 1px rgba(156, 192, 255, .6) inset, 0 0 0 5px rgba(59, 120, 255, .14), var(--neon-glow);
  transition: transform .2s var(--ease);
}
.tab-go:active { transform: scale(.92); }
.tab-go svg { width: 24px; height: 24px; margin-left: 3px; }

/* ───────────── Sheet ───────────── */
.scrim { position: absolute; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 88%;
  overflow-y: auto; scrollbar-width: none;
  border-radius: 32px 32px 0 0; padding: 10px 20px calc(26px + var(--safe-bot));
  background: linear-gradient(180deg, rgba(34, 34, 38, .94), rgba(18, 18, 21, .97));
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  animation: sheetIn .42s var(--ease) both;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-4); margin: 0 auto 16px; }
.sheet h2 { font: 400 32px/1 var(--serif); margin: 0 0 6px; }
.closing .sheet { animation: sheetOut .28s var(--ease) both; }
.closing.scrim, .scrim.closing { animation: fadeOut .28s both; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ───────────── Player ───────────── */
.player { position: absolute; inset: 0; z-index: 50; background: #060608; overflow-y: auto; scrollbar-width: none; animation: fade .35s both; padding: var(--top-pad) 22px calc(30px + var(--safe-bot)); }
.player::-webkit-scrollbar { display: none; }
.player .bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 45% at 50% 30%, color-mix(in srgb, var(--zone, #3b78ff) 30%, transparent), transparent 70%); transition: background 1.2s; }
.player-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font: 600 12px/1 var(--sans); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.player h1 { position: relative; margin: 22px 0 0; font: 400 34px/1 var(--serif); }
.player .clock { position: relative; font: 800 84px/1 var(--display); font-stretch: 100%; letter-spacing: -.05em; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.player .clock small { font-size: 18px; color: var(--ink-3); letter-spacing: 0; font-weight: 500; font-family: var(--sans); margin-left: 6px; }
.hr-live { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 22px 0 8px; padding: 18px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); }
.hr-live .bpm { font: 800 50px/1 var(--display); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 6px; }
.hr-live .bpm small { font: 600 12px var(--sans); color: var(--ink-3); letter-spacing: .06em; }
.heart { width: 22px; height: 22px; color: var(--bad); animation: beat .8s infinite; filter: drop-shadow(0 0 8px rgba(255, 79, 98, .7)); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.zones-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.zones-bar i { height: 6px; border-radius: 3px; background: var(--ink-4); transition: all .4s; }
.zones-bar i.on { box-shadow: 0 0 12px currentColor; background: currentColor; }
.zone-lbl { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; color: var(--ink-2); }
.hr-trace { width: 100%; height: 60px; grid-column: span 2; }
.block-list { position: relative; margin-top: 14px; display: grid; gap: 8px; }
.pblock {
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
}
.pblock.done { opacity: .5; }
.pblock b { font-weight: 600; font-size: 15px; }
.pblock small { color: var(--ink-3); font-size: 12px; display: block; margin-top: 3px; }
.sets { display: flex; gap: 6px; }
.set-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font: 700 11px/1 var(--display); color: var(--ink-3); transition: all .2s var(--ease); }
.set-dot.on { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.player-ctrls { position: sticky; bottom: calc(10px + var(--safe-bot)); display: grid; grid-template-columns: 56px 1fr; gap: 10px; margin-top: 20px; z-index: 4; }
.player-ctrls .icon-btn { width: 56px; height: 50px; border-radius: 999px; }
.speed { height: 32px; padding: 0 12px; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .06em; background: rgba(59, 120, 255, .18); color: var(--neon-hi); border: 1px solid rgba(59, 120, 255, .4); }

/* Syncing overlay */
.syncing { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 5, 7, .9); backdrop-filter: blur(10px); animation: fade .3s both; text-align: center; }
.syncing .orb { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; position: relative; }
.syncing .orb::before, .syncing .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--neon); box-shadow: var(--neon-glow); animation: pulseRing 1.6s var(--ease) infinite; }
.syncing .orb::after { animation-delay: .8s; }
.syncing .orb svg { position: absolute; inset: 34px; width: 52px; height: 52px; color: var(--neon-hi); filter: drop-shadow(0 0 10px var(--neon)); }
@keyframes pulseRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ───────────── Summary ───────────── */
.sum-hero { text-align: center; margin: 4px 0 18px; }
.sum-hero h1 { font: 400 40px/1 var(--serif); margin: 10px 0 4px; }
.sum-hero h1 em { color: var(--sand); }
.score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.score-pair .card { margin: 0; text-align: center; padding: 18px 12px; }
.score-pair .gauge { margin: 12px auto 8px; width: 120px; height: 120px; }
.score-pair .gauge .num { font-size: 36px; }
.score-pair .gauge .center small { display: block; font: 500 11px var(--sans); color: var(--ink-3); letter-spacing: .05em; margin-top: 2px; }
.score-pair p { margin: 0; font-size: 12px; color: var(--ink-2); }
.zone-rows { display: grid; gap: 9px; }
.zone-row { display: grid; grid-template-columns: 26px 1fr 48px; gap: 10px; align-items: center; font-size: 12px; }
.zone-row b { font: 700 11px/1 var(--display); color: var(--ink-3); }
.zone-row .track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.zone-row .track i { display: block; height: 100%; border-radius: 4px; box-shadow: 0 0 10px currentColor; background: currentColor; animation: grow 1.1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.zone-row span { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hr-chart { width: 100%; height: 140px; }
.explain { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.explain b { color: var(--ink); font-weight: 600; }
.formula { font: 500 12px/1.6 ui-monospace, "SF Mono", Consolas, monospace; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; color: var(--sand); margin: 10px 0; overflow-x: auto; }
.delta { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--sans); }

/* ───────────── Community ───────────── */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { height: 40px; border-radius: 999px; font: 600 14px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); transition: all .25s var(--ease); }
.seg button.on { background: var(--ink); color: #0a0a0a; }
.seg.sm button { height: 34px; font-size: 13px; }
.seg button svg { width: 15px; height: 15px; }
.board {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px;
}
.board .g { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tint) 32%, transparent), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.board .g svg { width: 32px; height: 32px; }
.board b { font-size: 16px; font-weight: 600; }
.board p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.board .r { display: grid; justify-items: end; gap: 6px; font-size: 11px; color: var(--ink-3); }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--neon); color: #fff; font: 700 11px/20px var(--sans); text-align: center; box-shadow: 0 0 12px rgba(59, 120, 255, .7); }
.feature-board { padding: 22px; min-height: 170px; }
.feature-board .ghost-word { position: absolute; right: -10px; bottom: -14px; font-size: 90px; }
.avatars { display: flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--display); color: #0a0a0a; flex: none; border: 2px solid var(--bg); }
.avatars .avatar { margin-left: -9px; } .avatars .avatar:first-child { margin-left: 0; }

.thread { display: grid; gap: 14px; padding-bottom: 90px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.msg .bubble { padding: 11px 14px; border-radius: 6px 20px 20px 20px; background: var(--glass-2); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.msg .who { font: 600 12px/1 var(--sans); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.msg .who small { color: var(--ink-3); font-weight: 500; }
.msg .badge { font: 700 9px/1 var(--sans); letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; text-transform: uppercase; }
.msg.me { grid-template-columns: 1fr; justify-items: end; }
.msg.me .bubble { background: linear-gradient(180deg, #4d84ff, #2b62f0); border: 0; border-radius: 20px 6px 20px 20px; max-width: 82%; box-shadow: 0 8px 24px -8px rgba(59, 120, 255, .6); }
.msg .reacts { display: flex; gap: 6px; margin-top: 6px; }
.msg .reacts button { height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }
.msg .reacts button.on { border-color: rgba(59, 120, 255, .5); color: var(--neon-hi); background: rgba(59, 120, 255, .12); }
.workout-share { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.workout-share b { color: var(--ink); font: 800 15px/1 var(--display); display: block; }
.composer {
  position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bot)); z-index: 30;
  display: grid; grid-template-columns: 1fr 46px; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(26, 26, 30, .8); border: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.composer input { background: none; border: 0; outline: none; padding: 0 14px; font-size: 15px; }
.composer input::placeholder { color: var(--ink-3); }
.composer button { width: 46px; height: 46px; border-radius: 50%; background: var(--neon); display: grid; place-items: center; box-shadow: var(--neon-glow); }
.composer button svg { width: 18px; height: 18px; }
.board-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.board-head h2 { margin: 0; font: 400 26px/1 var(--serif); }
.board-head small { color: var(--ink-3); font-size: 12px; }
.pinned { padding: 14px 16px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); margin-bottom: 18px; display: flex; gap: 10px; }
.pinned svg { width: 16px; height: 16px; flex: none; color: var(--sand); margin-top: 1px; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 10px 0 18px; }
.pod { text-align: center; }
.pod .ring-av { position: relative; width: 78px; height: 78px; margin: 0 auto; }
.pod .ring-av .avatar { position: absolute; inset: 9px; width: auto; height: auto; font-size: 18px; border: 0; }
.pod.first .ring-av { width: 96px; height: 96px; }
.pod.first .ring-av .avatar { font-size: 22px; }
.pod b { display: block; font-size: 13px; margin-top: 8px; }
.pod .num { font-size: 22px; display: block; margin-top: 4px; }
.pod .plinth { margin-top: 10px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-bottom: 0; display: grid; place-items: center; font: 900 30px/1 var(--display); font-stretch: 125%; color: var(--ink-4); }
.pod.first .plinth { height: 92px; color: var(--sand); }
.pod.second .plinth { height: 66px; }
.pod.third .plinth { height: 50px; }
.lb-row { display: grid; grid-template-columns: 26px 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 6px; background: var(--glass); border: 1px solid var(--line); }
.lb-row .rk { font: 800 13px/1 var(--display); color: var(--ink-3); }
.lb-row .avatar { width: 38px; height: 38px; border: 0; }
.lb-row b { font-size: 15.5px; font-weight: 600; }
.lb-row small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.lb-row .sc { display: flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); }
.lb-row.me { background: linear-gradient(90deg, rgba(59, 120, 255, .22), rgba(59, 120, 255, .05)); border-color: rgba(59, 120, 255, .45); }

/* ───────────── You ───────────── */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 4px 0 20px; }
.profile-head .avatar { width: 74px; height: 74px; font-size: 26px; border: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--good); }
.profile-head h1 { margin: 0; font: 400 34px/1 var(--serif); }
.profile-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.dev-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.dev-row:first-of-type { border-top: 0; }
.dev-row .dev-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 13px/1 var(--display); background: var(--glass-2); border: 1px solid var(--line); }
.dev-row b { font-size: 15px; font-weight: 600; }
.dev-row small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.toggle { width: 50px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .14); position: relative; transition: background .25s; flex: none; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.toggle.on { background: var(--good); }
.toggle.on::after { transform: translateX(20px); }
.list-card { padding: 4px 0; }
.list-btn { display: grid; grid-template-columns: 22px 1fr 16px; gap: 14px; align-items: center; padding: 15px 18px; width: 100%; text-align: left; border-top: 1px solid var(--line); font-size: 15px; }
.list-btn:first-child { border-top: 0; }
.list-btn svg { width: 18px; height: 18px; color: var(--ink-2); }
.list-btn .chev { width: 14px; height: 14px; color: var(--ink-3); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 2px; }
.cal .h { font: 600 10px/1 var(--sans); color: var(--ink-3); text-align: center; letter-spacing: .1em; }
.cal .c { position: relative; width: 38px; height: 38px; margin: 0 auto; }
.cal .c span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--display); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; display: grid; justify-items: center; gap: 6px; align-content: end; height: 100%; }
.bars .b i { width: 100%; max-width: 34px; border-radius: 10px 10px 4px 4px; box-shadow: 0 0 14px -2px currentColor; background: linear-gradient(180deg, currentColor, color-mix(in srgb, currentColor 30%, transparent)); animation: growY 1s var(--ease) both; transform-origin: bottom; }
.bars .b span { font: 700 11px/1 var(--display); }
.bars .b small { font-size: 10px; color: var(--ink-3); }
@keyframes growY { from { transform: scaleY(0); } }
.band-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.band-key span { display: inline-flex; align-items: center; gap: 6px; }
.band-key i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* Toast */
.toast {
  position: absolute; left: 50%; top: calc(var(--top-pad) - 4px); z-index: 90; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; background: rgba(30, 30, 34, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); font: 600 13px/1 var(--sans); white-space: nowrap; display: flex; gap: 8px; align-items: center;
  animation: toastIn .4s var(--ease) both, fadeOut .3s 2.4s both; box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .7);
}
.toast svg { width: 16px; height: 16px; color: var(--good); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } }

.glyph-svg path, .glyph-svg circle, .glyph-svg rect, .glyph-svg line, .glyph-svg polyline, .glyph-svg ellipse { vector-effect: non-scaling-stroke; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.detail-hero .glyph.float { animation: floatC 6s ease-in-out infinite; }
@keyframes floatC { 50% { transform: translateX(50%) translateY(-8px); } }

.spacer { height: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.note { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.note b { color: var(--ink-2); }
.live-pill svg { width: 14px; height: 14px; }
.live-pill span { white-space: nowrap; }
.delta svg { width: 13px; height: 13px; }
.done-chip { white-space: nowrap; }
.done-chip svg { width: 16px; height: 16px; }
.sticky-cta { margin-left: -22px; margin-right: -22px; padding: 26px 22px 0; background: linear-gradient(180deg, transparent, var(--bg) 45%); bottom: 0; padding-bottom: calc(14px + var(--safe-bot)); }
.bars .b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bars .b i { flex: none; }
.statusbar::before { content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 11, .92) 55%, rgba(9, 9, 11, 0)); }

/* ───────────── Readability: tone down decoration ───────────── */
.session-card .ghost-word, .plan-card .ghost-word { opacity: .7; }
.card-h h3 { font-size: 30px; }
.btn svg { flex: none; }

/* ───────────── Social ───────────── */
.dot-badge { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); display: inline-block; }
.req-card { padding: 18px; }
.person-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.person-row:first-of-type { border-top: 0; }
.req-card .person-row:first-of-type { border-top: 1px solid var(--line); }
.person-row > div[data-act] { cursor: pointer; min-width: 0; }
.person-row .avatar { border: 0; }
.person-row b { font-size: 16px; font-weight: 600; display: block; }
.person-row small { color: var(--ink-3); font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.person-row small svg, .profile-head p svg, .feed-h small svg { width: 13px; height: 13px; }
.icon-btn.sm { width: 38px; height: 38px; }
.icon-btn.sm svg { width: 15px; height: 15px; }

.friends-strip { display: flex; gap: 14px; overflow-x: auto; margin: 4px -22px 0; padding: 4px 22px; scrollbar-width: none; }
.friends-strip::-webkit-scrollbar { display: none; }
.friends-strip > button { display: grid; justify-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); flex: none; }
.friends-strip .avatar { border: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--good); }
.fs-add span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--ink-2); }
.fs-add svg { width: 22px; height: 22px; }

.feed-card { border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; }
.feed-h { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 16px 18px 0; }
.feed-h[data-act] { cursor: pointer; }
.feed-h .avatar { border: 0; }
.feed-h b { font-size: 16px; font-weight: 600; display: block; }
.feed-h small { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.feed-body { display: grid; grid-template-columns: 1fr 74px; gap: 12px; padding: 16px 18px; align-items: center; }
.feed-body[data-act] { cursor: pointer; }
.feed-glyph { order: 2; width: 74px; height: 74px; }
.feed-body h4 { margin: 6px 0 12px; font: 400 26px/1.05 var(--serif); }
.feed-stats { display: flex; gap: 20px; }
.feed-stats span { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.feed-stats b { font: 800 20px/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.feed-f { display: flex; gap: 8px; padding: 0 18px 16px; }
.feed-f button { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1 var(--sans); background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.feed-f button svg { width: 15px; height: 15px; }
.feed-f button.on { color: var(--ok); background: rgba(255, 168, 63, .12); }

.person-head { text-align: center; margin: 4px 0 8px; }
.person-head .avatar { margin: 0 auto; border: 0; }
.person-head h1 { font: 400 38px/1 var(--serif); margin: 14px 0 6px; }
.person-head p { margin: 0 auto; color: var(--ink-2); font-size: 15px; max-width: 290px; }
.person-counts { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.person-counts > * { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); text-align: center; }
.person-counts b { font: 800 22px/1 var(--display); color: var(--ink); }
.person-counts.left { justify-content: flex-start; gap: 24px; margin: 0 0 6px; align-items: center; }
.person-counts .req-pill { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(59, 120, 255, .18); color: var(--neon-hi); font: 600 13px/32px var(--sans); display: block; }
.locked { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; }
.locked > svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.locked b { font-size: 16px; }

.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); margin: 14px 0 8px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); }
.search input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; }

/* Profile */
.profile-head { align-items: flex-start; }
.profile-head p { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-3); margin: 6px 0 0; }
.profile-head p.bio { color: var(--ink-2); font-size: 15px; display: block; }
.profile-head .link { margin-top: 8px; display: inline-block; }
.avatar-edit { position: relative; }
.avatar-edit .avatar { border: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--good); }
.avatar-edit span { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #0a0a0a; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar-edit span svg { width: 13px; height: 13px; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field > span { font: 600 13px/1 var(--sans); color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 52px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line-2); padding: 14px 16px; font-size: 17px; outline: none; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--neon); }
.input-unit { position: relative; }
.input-unit em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 15px; }
.input-unit.pre em { left: 16px; right: auto; }
.input-unit.pre input { padding-left: 34px; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .avatar { border: 0; }
.photo-pick label { cursor: pointer; }
.pref-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.pref-row b { display: block; font-size: 15px; }
.pref-row small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* Body / weight */
.weight-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.weight-top .v { font: 800 40px/1 var(--display); letter-spacing: -.03em; margin: 8px 0 8px; }
.weight-top .v small { font: 500 15px var(--sans); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.wstats { display: grid; gap: 12px; text-align: right; }
.wstats b { display: block; font: 700 18px/1 var(--display); margin-top: 6px; }
.wstats small { font-size: 12px; color: var(--ink-3); }
.wchart { width: 100%; height: 150px; margin: 6px 0 14px; }
.checkin-card { display: grid; grid-template-columns: 46px 1fr 16px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-lg); margin-top: 2px;
  background: linear-gradient(110deg, rgba(59, 120, 255, .22), rgba(59, 120, 255, .06)); border: 1px solid rgba(59, 120, 255, .4); }
.checkin-card .ci-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(59, 120, 255, .25); display: grid; place-items: center; color: var(--neon-hi); }
.checkin-card .ci-ic svg { width: 22px; height: 22px; }
.checkin-card b { display: block; font-size: 16px; }
.checkin-card small { color: var(--ink-2); font-size: 13.5px; }
.checkin-card .chev { width: 16px; height: 16px; color: var(--ink-3); }

/* Share */
.share-preview { width: 190px; aspect-ratio: 9 / 16; margin: 0 auto 18px; border-radius: 18px; overflow: hidden; background: #111; border: 1px solid var(--line-2); display: grid; place-items: center; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.share-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-loading { font-size: 13px; color: var(--ink-3); }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.share-t { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.share-t span { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; }
.share-t svg { width: 26px; height: 26px; }

/* Private body data */
.private-tag { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--sans); color: var(--ink-2); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.private-tag svg { width: 12px; height: 12px; }
.private-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.private-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--sand); }

/* Checklist editor */
.pick-list { display: grid; gap: 8px; margin: 12px 0 20px; }
.pick-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.pick-row.on { background: rgba(255, 255, 255, .085); border-color: var(--line-2); }
.pick-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.pick-ic svg { width: 19px; height: 19px; }
.pick-row b { display: block; font-size: 15px; font-weight: 600; }
.pick-row small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.pick-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--ink-2); transition: all .2s var(--ease); }
.pick-btn svg { width: 16px; height: 16px; }
.pick-row.on .pick-btn { background: var(--ink); border-color: var(--ink); color: #0a0a0a; }
.custom-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.custom-form input { grid-column: span 2; height: 48px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); padding: 0 14px; font-size: 16px; outline: none; }
.custom-form input[name=time] { grid-column: span 1; }
.custom-form input:focus { border-color: var(--neon); }
.custom-form .btn { height: 48px; border-radius: 14px; }

/* Blue / silver glass — Today rings panel */
.card.ice {
  background:
    radial-gradient(130% 80% at 0% 0%, rgba(255, 255, 255, .26), transparent 55%),
    radial-gradient(95% 95% at 100% 100%, rgba(70, 125, 255, .38), transparent 68%),
    linear-gradient(160deg, rgba(225, 233, 248, .24) 0%, rgba(170, 190, 228, .17) 38%, rgba(110, 145, 220, .17) 68%, rgba(50, 95, 210, .26) 100%),
    rgba(20, 27, 44, .62);
  border: 1px solid rgba(215, 228, 255, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(120, 160, 255, .22),
    inset 1px 0 0 rgba(255, 255, 255, .08),
    0 24px 60px -24px rgba(59, 120, 255, .55);
  backdrop-filter: blur(34px) saturate(170%); -webkit-backdrop-filter: blur(34px) saturate(170%);
}
.card.ice::before { /* diagonal silver sheen */
  content: ""; position: absolute; inset: -40% -10% auto -30%; height: 70%; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .16) 44%, rgba(255, 255, 255, .04) 56%, transparent 66%);
  transform: rotate(-8deg);
}
.card.ice > * { position: relative; }
.card.ice .week-strip { border-top-color: rgba(205, 222, 255, .16); }
.card.ice .band-pill { background: rgba(10, 14, 26, .45); border-color: rgba(205, 222, 255, .18); }
.card.ice .legend-row .lbl { color: rgba(225, 233, 250, .78); }
.legend-row .lbl { white-space: nowrap; }

/* Black glass — Today rings panel */
.card.onyx {
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .10), transparent 55%),
    linear-gradient(175deg, rgba(40, 40, 46, .72) 0%, rgba(12, 12, 15, .86) 45%, rgba(4, 4, 6, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 0 1px rgba(0, 0, 0, .4),
    0 30px 60px -25px rgba(0, 0, 0, .9);
  backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
}
.card.onyx::before { /* glossy reflection across the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0));
}
.card.onyx::after { /* thin diagonal sheen */
  content: ""; position: absolute; inset: -30% -20% auto -40%; height: 60%; pointer-events: none; transform: rotate(-10deg);
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .06) 48%, transparent 58%);
}
.card.onyx > * { position: relative; z-index: 1; }
.card.onyx .week-strip { border-top-color: rgba(255, 255, 255, .08); }
.card.onyx .band-pill { background: rgba(255, 255, 255, .05); }



/* ───────────── Primary buttons: flat, neon-blue ring only ───────────── */
.btn.neon {
  background: rgba(59, 120, 255, .10);
  color: #fff; font-weight: 600;
  border: 1.5px solid #4d86ff;
  box-shadow: 0 0 14px rgba(59, 120, 255, .55), inset 0 0 10px rgba(59, 120, 255, .18);
  text-shadow: none;
}
.btn.neon:active { transform: scale(.97); background: rgba(59, 120, 255, .18); }
.btn.go svg { width: 15px; height: 15px; }

.tab-go {
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: #0d1220;
  border: 1.5px solid #4d86ff;
  box-shadow: 0 0 16px rgba(59, 120, 255, .6), inset 0 0 12px rgba(59, 120, 255, .2);
}
.tab-go svg { width: 21px; height: 21px; margin-left: 0; transform: translateX(-.5px); }
.tab-go:active { transform: scale(.93); }

/* ───────────── Spacing & layout pass ───────────── */
.hello { margin: 6px 0 26px; }
.topbar { margin-bottom: 22px; }
.card { padding: 24px; margin-bottom: 18px; }
.section-h { margin: 38px 2px 16px; }
.section-h h2 { font-size: 30px; }

/* Score panel: rings centred, scores underneath */
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card.ice .rings { width: 196px; height: 196px; margin: 6px auto 22px; }
.card.ice .rings .center .num { font-size: 52px; }
.card.ice .rings .center .eyebrow { font-size: 11px; margin-top: 6px; }
.score-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-stats > div { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: rgba(8, 12, 24, .35); border: 1px solid rgba(205, 222, 255, .12); }
.score-stats .lbl { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: rgba(225, 233, 250, .82); }
.score-stats .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; }
.score-stats .val { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.score-stats .val small { font: 500 13px var(--sans); color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.score-stats .sub { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.card.ice .week-strip { margin-top: 22px; padding-top: 18px; gap: 2px; }

/* Session card: give the title room, keep the glyph out of it */
.session-card { padding: 24px; min-height: 0; margin-bottom: 18px; }
.session-card .glyph { width: 76px; height: 76px; top: 20px; right: 20px; }
.session-card .eyebrow { display: block; max-width: calc(100% - 90px); line-height: 1.35; }
.session-card .ttl { font-size: 30px; font-stretch: 100%; max-width: calc(100% - 20px); margin-top: 26px; }
.session-meta { gap: 18px; margin-top: 14px; }
.session-foot { margin-top: 24px; }

/* Checklist: a little more air */
.checklist { gap: 10px; }
.card-h { margin-bottom: 18px; }

/* Recovery tiles: sparkline sits beside the label, not under the number */
.tiles { gap: 12px; }
.tile { padding: 18px; }
.tile .spark { top: 16px; right: 16px; bottom: auto; width: 44px; height: 18px; }
.tile .v { margin-top: 14px; }
.tile .sub { margin-top: 8px; }

/* Readiness card */
.gauge-row { gap: 20px; }

/* Bar charts */
.bars { gap: 12px; padding-top: 14px; }
.bars .b { gap: 8px; }
.bars .b span { font-size: 12px; }

/* You */
.profile-head { gap: 18px; margin: 6px 0 22px; }
.person-counts.left { gap: 26px; margin: 0 0 4px; flex-wrap: wrap; row-gap: 14px; }
.dev-row { padding: 14px 16px; }
.dev-row.add { grid-template-columns: 44px 1fr 16px; }
.dev-row.add .dev-ic { color: var(--neon-hi); border-style: dashed; }
.dev-row.add .chev { width: 16px; height: 16px; color: var(--ink-3); }
.weight-top { margin-bottom: 10px; }

/* Community / feeds */
.seg { margin-bottom: 22px; }
.feed-card { margin-bottom: 14px; }
.feed-body { padding: 18px 20px; }
.feed-h { padding: 18px 20px 0; }
.feed-f { padding: 0 20px 18px; }
.board { padding: 16px; margin-bottom: 10px; }
.plan-card { padding: 24px; margin-bottom: 14px; }
.plan-row { margin-bottom: 10px; padding: 14px; }
.lb-row { margin-bottom: 8px; padding: 12px 16px; }

/* Tab bar sits a touch higher with room around it */
.tabbar { left: 16px; right: 16px; bottom: calc(16px + var(--safe-bot)); }

.dev-ic svg { width: 20px; height: 20px; }
.req-card .person-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Rings section — no panel, sits on the page */
.score-plain { position: relative; margin: 4px 0 18px; cursor: pointer; }
.score-plain .rings { width: 196px; height: 196px; margin: 4px auto 24px; }
.score-plain .rings .center .num { font-size: 52px; }
.score-plain .rings .center .eyebrow { font-size: 11px; margin-top: 6px; }
.score-plain .score-stats > div { background: var(--glass); border-color: var(--line); }
.score-plain .score-stats .lbl { color: var(--ink-2); }
.score-plain .week-strip { margin-top: 22px; padding-top: 18px; gap: 2px; border-top-color: var(--line); }
/* Weekly check-in — no panel, plain row */
.checkin-card { background: none; border: 0; border-radius: 0; padding: 6px 0; margin: 0 0 4px; }
.checkin-card .ci-ic { background: none; border: 1.5px solid #4d86ff; box-shadow: 0 0 12px rgba(59, 120, 255, .45); }
.checkin-card { margin-top: 14px; }

/* ───────────── Today tab: no panels — content sits on the page, split by hairlines ───────────── */
.today .card, .today .session-card, .today .tile, .today .score-stats > div {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.today .card, .today .session-card { padding: 0; margin-bottom: 8px; overflow: visible; }
.today .card::before, .today .card::after { display: none; }

/* session: keep the neon glyph, drop the tinted backdrop and outlined word */
.today .session-card .ghost-word { display: none; }
.today .session-card .glyph { top: 0; right: 0; }
.today .session-card .ttl { margin-top: 22px; }

/* checklist + readiness: just a heading and content */
.today .card-h { margin-bottom: 16px; }

/* score tiles & recovery tiles become a divided grid */
.today .score-stats { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today .score-stats > div { padding: 16px 4px; }
.today .score-stats > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.today .tiles { gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.today .tile { padding: 18px 4px; border-bottom: 1px solid var(--line); overflow: visible; }
.today .tile:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
.today .tile .spark { right: 4px; }
.today .session-card .ttl { max-width: calc(100% - 96px); }
.today .session-card { margin-bottom: 34px; }
.today .card { margin-bottom: 30px; }
.today .check-row { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 2px; }
.today .checklist { gap: 0; border-top: 1px solid var(--line); }
.today .gauge-row { padding-bottom: 6px; }
/* Today: spacers between sections */
.today .section-sep { height: 1px; margin: 34px -22px 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, .14) 82%, transparent); }
.today .section-sep + .section-h { margin-top: 30px; }
.today .section-sep + .card { margin-top: 30px; }
.today .score-plain, .today .session-card, .today .card { margin-bottom: 0; }

.today .section-sep { margin-top: 40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 14%, rgba(255, 255, 255, .22) 86%, transparent); }
.today .section-sep + .section-h, .today .section-sep + .card { margin-top: 36px; }


/* ═════════════ All tabs: no glass panels, hairline lists, spacers between sections ═════════════ */
.view .card, .view .tile, .view .feed-card, .view .board, .view .plan-row, .view .lb-row,
.view .week-acc, .view .kv > div, .view .plan-card, .view .pinned, .view .dev-row .dev-ic {
  background: none !important; border: 0; border-radius: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.view .card::before, .view .card::after { display: none; }
.view .card { padding: 0; margin-bottom: 0; overflow: visible; }
.view .card + .card { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }

/* spacer above every section heading (Today has its own explicit ones) */
.view > .section-h { position: relative; margin-top: 40px; padding-top: 36px; }
.view > .section-h::before {
  content: ""; position: absolute; top: 0; left: -22px; right: -22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 14%, rgba(255, 255, 255, .22) 86%, transparent);
}

/* list rows: separated by hairlines */
.view .board, .view .plan-row, .view .lb-row, .view .feed-card { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.view .board, .view .plan-row { padding: 16px 0; }
.view .lb-row { padding: 14px 2px; }
.view .lb-row.me { box-shadow: inset 3px 0 0 #4d86ff; padding-left: 14px; }
.view .lb-row.me b { color: var(--neon-hi); }
.view .feed-card { overflow: visible; padding: 4px 0 6px; }
.view .feed-h, .view .feed-body, .view .feed-f { padding-left: 0; padding-right: 0; }
.view .board .g, .view .plan-row .g { background: none; }

/* plan cards: no backdrop, glyph + type on the page */
.view .plan-card { padding: 26px 0; min-height: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.view .plan-card .ghost-word { display: none; }
.view .plan-card .glyph { right: 0; top: 26px; width: 84px; height: 84px; }
.view .plan-card .tag { background: none; }
.view .chips + .plan-card { border-top: 1px solid var(--line); }

/* community */
.view .feature-board { padding: 6px 0 4px; min-height: 0; }
.view .feature-board .ghost-word { display: none; }
.view .req-card { padding: 0; }
.view .pinned { border-left: 2px solid var(--sand); padding: 2px 0 2px 14px; }

/* tiles & key values: divided grids */
.view .tiles { gap: 0; border-top: 1px solid var(--line); }
.view .tile { padding: 18px 4px; border-bottom: 1px solid var(--line); overflow: visible; }
.view .tile:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
.view .tile.wide { border-left: 0; padding-left: 4px; }
.view .tile .spark { right: 4px; }
.view .kv { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.view .kv > div { padding: 16px 4px; }
.view .kv > div + div { border-left: 1px solid var(--line); padding-left: 16px; }

/* plan detail schedule */
.view .week-acc { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.view .week-acc summary { padding: 16px 2px; }
.view .sess-line { padding: 12px 2px; }

/* You: devices & menus */
.view .list-card .list-btn { padding-left: 2px; padding-right: 2px; }
.view .dev-row { padding: 14px 0; }
.view .dev-row .dev-ic { border: 1px solid var(--line-2) !important; border-radius: 14px; }

/* workout summary score pair */
.view .score-pair { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.view .score-pair .card { padding: 18px 8px; }
.view .score-pair .card + .card { margin-top: 0; padding-top: 18px; border-top: 0; border-left: 1px solid var(--line); }


/* ═════════════ Sleek glass — used sparingly on key panels ═════════════ */
.view .sleek {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 22px !important; margin: 0 0 14px !important;
  border: 0 !important; border-radius: 26px !important;
  background:
    radial-gradient(80% 90% at 92% 8%, color-mix(in srgb, var(--tint, #3b78ff) 13%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)) !important;
  backdrop-filter: blur(26px) saturate(140%) !important; -webkit-backdrop-filter: blur(26px) saturate(140%) !important;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .9) !important;
}
/* hairline edge: bright at the top, fading down the sides */
.view .sleek::after {
  content: "" !important; display: block !important; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(170deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .03) 70%, rgba(255, 255, 255, .09));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.view .sleek::before { display: none !important; }
.view .sleek + .sleek { border-top: 0 !important; }

/* placement inside each panel */
.view .session-card.sleek { margin-bottom: 0 !important; }
.view .session-card.sleek .glyph { top: 20px; right: 20px; }
.view .session-card.sleek .ttl { margin-top: 24px; }
.view .plan-card.sleek { padding: 24px !important; }
.view .plan-card.sleek .glyph { right: 20px; top: 22px; }
.view .chips + .plan-card { border-top: 0; }
.view .feed-card.sleek { padding: 4px 20px 4px !important; }
.view .feed-card.sleek .feed-h { padding-top: 16px; }
.view .feed-card.sleek .feed-f { padding-bottom: 16px; }
.view .feature-board.sleek { padding: 22px !important; }
.view .card.sleek + .tiles { margin-top: 8px; }
.today .card.sleek { margin-bottom: 0 !important; }


/* You: workout history summary */
.history-sum { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.history-sum > div { display: grid; gap: 6px; padding: 14px 4px; font-size: 12.5px; color: var(--ink-3); }
.history-sum > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.history-sum b { font: 800 22px/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.history-sum b small { font: 500 12px var(--sans); color: var(--ink-3); margin: 0 2px 0 1px; }

/* four stats on workout cards */
.feed-stats { gap: 16px; flex-wrap: wrap; }
.feed-stats b { font-size: 19px; }


/* ═════════════ Food log ═════════════ */
.fuel-top { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.fuel .gauge { width: 104px; height: 104px; }
.fuel .gauge .center small, .food-sum .center small { display: block; font: 500 11px/1.2 var(--sans); color: var(--ink-3); margin-top: 3px; text-align: center; }
.macro-bars { display: grid; gap: 12px; }
.mbar .row { font-size: 13px; color: var(--ink-2); }
.mbar .row b { color: var(--ink); font-weight: 700; }
.mbar .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.mbar .track i { display: block; height: 100%; border-radius: 3px; transition: width .8s var(--ease); }
.fuel-actions { display: flex; gap: 10px; margin-top: 20px; position: relative; z-index: 3; }
.fuel-actions .btn { flex: 1; }
.fuel-actions .icon-btn { width: 50px; height: 50px; }

.day-nav { display: flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); }
.day-nav button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.day-nav button:disabled { opacity: .25; }
.day-nav svg { width: 16px; height: 16px; }
.food-sum { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.food-sum .gauge.big { width: 150px; height: 150px; position: relative; }
.food-sum .gauge.big .num { font-size: 34px; }
.food-sum-r { display: grid; gap: 12px; }
.left-big b { display: block; font: 800 28px/1 var(--display); letter-spacing: -.03em; }
.left-big span { font-size: 12.5px; color: var(--ink-3); }

.add-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 4px; }
.add-row.in-sheet { grid-template-columns: repeat(3, 1fr); margin: 14px 0 6px; }
.add-row button { display: grid; justify-items: center; gap: 8px; padding: 14px 4px; border-radius: 18px; border: 1.5px solid rgba(77, 134, 255, .55); background: rgba(59, 120, 255, .08); box-shadow: 0 0 12px rgba(59, 120, 255, .2); font: 600 12px/1.1 var(--sans); color: var(--ink); }
.add-row button svg { width: 22px; height: 22px; color: var(--neon-hi); }
.add-row button:active { transform: scale(.96); }

.food-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
#foodResults .food-row { grid-template-columns: 1fr auto; }
.fr-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); }
.fr-ic svg { width: 18px; height: 18px; }
.fr-main { min-width: 0; }
.fr-main b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-main small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-kcal { font: 800 17px/1 var(--display); text-align: right; }
.fr-kcal small { display: block; font: 500 11px var(--sans); color: var(--ink-3); margin-top: 3px; }
.food-add-line { display: flex; align-items: center; gap: 8px; padding: 12px 0 2px; font: 600 14px/1 var(--sans); color: var(--neon-hi); }
.food-add-line svg { width: 16px; height: 16px; }
.meal-seg { margin: 4px 0 0; }

.amount { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; }
.amount .icon-btn { width: 56px; height: 56px; font-size: 24px; }
.amount label { position: relative; }
.amount input { width: 100%; height: 56px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line-2); text-align: center; font: 800 26px var(--display); outline: none; }
.amount em { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); }
.amt-quick { display: flex; gap: 8px; margin-top: 10px; }
.amt-quick button { flex: 1; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 12.5px var(--sans); color: var(--ink-2); }
.amt-macros { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.amt-macros div { display: grid; gap: 4px; padding: 14px 4px; font-size: 12px; color: var(--ink-3); text-align: center; }
.amt-macros div + div { border-left: 1px solid var(--line); }
.amt-macros b { font: 800 20px/1 var(--display); color: var(--ink); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa-grid.three { grid-template-columns: repeat(3, 1fr); }

.scan-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; margin-top: 10px; }
.scan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: #4d86ff; box-shadow: 0 0 18px 4px rgba(59, 120, 255, .7); animation: scanY 1.8s ease-in-out infinite alternate; }
@keyframes scanY { from { top: 4%; } to { top: 94%; } }
.scan-head { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; margin: 6px 0 10px; }
.scan-head img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.scan-item { display: grid; grid-template-columns: 34px 1fr 82px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scan-item.off { opacity: .45; }
.tick-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: grid; place-items: center; }
.tick-btn svg { width: 14px; height: 14px; opacity: 0; color: #0a0a0a; }
.tick-btn.on { background: var(--ink); border-color: var(--ink); }
.tick-btn.on svg { opacity: 1; }
.si-main b { display: block; font-size: 15px; font-weight: 600; }
.si-main small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.si-g { position: relative; }
.si-g input { width: 100%; height: 40px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line-2); padding: 0 24px 0 10px; font: 700 15px var(--sans); outline: none; }
.si-g em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 13px; }
.btn:disabled { opacity: .4; }

.barcode-ov { position: absolute; inset: 0; z-index: 85; background: #000; animation: fade .25s both; }
.barcode-ov video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-frame { position: absolute; left: 12%; right: 12%; top: 34%; height: 22%; border: 2px solid #4d86ff; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55), 0 0 20px rgba(59, 120, 255, .6); }
.bc-frame i { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff4f62; box-shadow: 0 0 10px #ff4f62; }
.bc-top { position: absolute; left: 0; right: 0; top: var(--top-pad); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font: 600 15px var(--sans); }
.bc-manual { position: absolute; left: 20px; right: 20px; bottom: calc(30px + var(--safe-bot)); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bc-manual input { height: 46px; border-radius: 14px; background: rgba(20, 20, 24, .85); border: 1px solid var(--line-2); padding: 0 14px; font-size: 16px; outline: none; }
.bc-manual .btn { height: 46px; }


/* Tab bar: Today · Plans | play | Fuel · Social · You — the orb stays centred */
.tabbar { grid-template-columns: 1fr 70px 1fr; }
.tb-side { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 100%; align-items: center; }
.tb-side .tab { height: 100%; }
.tab-go { justify-self: center; }

/* Fuel tab header: title left, day switcher right */
.fuel-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.fuel-hello .day-nav { margin-bottom: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }


/* ═════════════ Inbox & chat ═════════════ */
.tab-ic { position: relative; display: inline-grid; }
.tab-badge { position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--neon); color: #fff; font: 700 9.5px/16px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 8px rgba(59, 120, 255, .7); }
.tabbar .tab { font-size: 10.5px; }

.chat-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.chat-row.pinned-coach { border-bottom: 0; }
.av-wrap { position: relative; display: inline-block; }
.av-wrap .avatar { border: 0; }
.online { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2.5px solid var(--bg); }
.cr-main { min-width: 0; }
.cr-main b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.cr-main small { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-main small.unread-text { color: var(--ink); font-weight: 600; }
.cr-main small i { color: var(--neon-hi); font-style: normal; }
.coach-badge { font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: var(--neon-hi); background: rgba(59, 120, 255, .16); }
.cr-r { display: grid; justify-items: end; gap: 6px; font-size: 12px; color: var(--ink-3); }
.joint-mini { display: grid; grid-template-columns: 44px 1fr 16px; gap: 12px; align-items: center; width: 100%; text-align: left; }
.joint-mini b { display: block; font-size: 15px; }
.joint-mini small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.joint-mini .chev { width: 16px; height: 16px; color: var(--ink-3); }

.chat-head { position: sticky; top: calc(-1 * var(--top-pad)); z-index: 6; display: grid; grid-template-columns: 42px 1fr 42px; gap: 10px; align-items: center;
  margin: calc(-1 * var(--top-pad)) -22px 0; padding: var(--top-pad) 22px 14px; background: linear-gradient(180deg, var(--bg) 70%, rgba(9, 9, 11, 0)); }
.ch-who { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.ch-who b { display: block; font-size: 16px; }
.ch-who small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.icon-btn.neon-ring { border: 1.5px solid #4d86ff; box-shadow: 0 0 12px rgba(59, 120, 255, .45); background: none; color: var(--neon-hi); }
.thread.dm { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 96px; }
.day-sep { text-align: center; margin: 14px 0 6px; }
.day-sep span { font: 600 11.5px/1 var(--sans); color: var(--ink-3); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.msg-in, .msg-out { display: flex; flex-direction: column; max-width: 80%; }
.msg-in { align-self: flex-start; align-items: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-in .bubble, .msg-out .bubble { padding: 11px 15px; font-size: 15.5px; line-height: 1.42; border-radius: 20px; word-wrap: break-word; }
.msg-in .bubble { background: rgba(255, 255, 255, .09); border-bottom-left-radius: 6px; }
.msg-out .bubble { background: #2f66f0; color: #fff; border-bottom-right-radius: 6px; }
.mt { font-size: 10.5px; color: var(--ink-3); margin: 4px 6px 4px; }
.sticker { width: 124px; height: 124px; display: block; }
.gif-img { max-width: 200px; border-radius: 18px; display: block; }
.photo-msg img { max-width: 230px; max-height: 300px; border-radius: 18px; display: block; object-fit: cover; }
.dm-card { width: 270px; padding: 16px !important; margin: 0 !important; border-radius: 22px !important; }
.dm-card[data-act] { cursor: pointer; }
.dmc-top { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.dmc-g { width: 46px; height: 46px; }
.dmc-top b { display: block; font: 400 22px/1.05 var(--serif); margin-top: 3px; }
.dmc-top small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.dm-card .feed-stats { gap: 12px; }
.dm-card .feed-stats b { font-size: 16px; }
.j-people { display: flex; align-items: center; margin-bottom: 12px; }
.j-people .avatar { border: 2px solid var(--bg); margin-right: -8px; }
.j-people span { margin-left: 16px; font-size: 13px; color: var(--ink-2); }
.j-status { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: var(--ink-3); }
.j-status.done { color: var(--good); }
.j-status svg { width: 15px; height: 15px; }
.jr-title { display: block; font: 400 24px/1.1 var(--serif); margin: 4px 0 12px; }
.jr-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; margin: 8px 0 12px; }
.jr-grid > div { display: grid; justify-items: center; gap: 5px; }
.jr-grid .avatar { border: 0; }
.jr-grid b { font: 800 26px/1 var(--display); }
.jr-grid small { font-size: 12px; color: var(--ink-3); }
.jr-grid .vs { font: 400 italic 20px var(--serif); color: var(--ink-3); }
.typing { display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .09); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer.dm { grid-template-columns: 46px 1fr 46px; }
.composer .attach { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: none; display: grid; place-items: center; }
.composer .attach svg { width: 20px; height: 20px; }

.attach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.attach-grid button { display: grid; justify-items: center; gap: 8px; font: 600 12.5px var(--sans); color: var(--ink-2); }
.attach-grid span { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; border: 1.5px solid rgba(77, 134, 255, .55); background: rgba(59, 120, 255, .08); color: var(--neon-hi); font: 800 15px var(--display); }
.attach-grid svg { width: 24px; height: 24px; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gif-grid button { border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; }
.gif-grid .sticker { width: 92px; height: 92px; }
.photo-view { position: absolute; inset: 0; z-index: 95; background: rgba(0, 0, 0, .94); display: grid; place-items: center; animation: fade .2s both; }
.photo-view img { max-width: 100%; max-height: 86%; }
.photo-view .icon-btn { position: absolute; top: var(--top-pad); right: 20px; }

.partner-live { position: relative; display: grid; grid-template-columns: 38px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; margin: 0 0 8px; border-radius: 20px; border: 1.5px solid rgba(77, 134, 255, .5); box-shadow: 0 0 14px rgba(59, 120, 255, .2); }
.partner-live .avatar { border: 0; }
.partner-live b { display: block; font-size: 14px; }
.partner-live small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pl-bpm, .pl-int { text-align: right; }
.pl-bpm span, .pl-int span { font: 800 22px/1 var(--display); }
.pl-bpm small, .pl-int small { font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.trained-with .jr-grid { margin-bottom: 0; }

/* message boxes stick to the bottom of the screen while the thread scrolls */
.view .composer { position: sticky; left: auto; right: auto; bottom: calc(12px + var(--safe-bot)); margin-top: 6px; }
.view .thread { padding-bottom: 12px; }
.view .thread.dm { padding-bottom: 8px; min-height: calc(100% - 140px); justify-content: flex-end; }

/* player controls: solid backing so the list never shows through the flat buttons */
.player-ctrls { margin: 20px -22px 0; padding: 22px 22px calc(12px + var(--safe-bot)); bottom: 0; background: linear-gradient(180deg, rgba(6, 6, 8, 0), #060608 38%); }
.player-ctrls .btn.neon { background: #0d1220; }
.player-ctrls .icon-btn { background: #15161b; }
.sticky-cta .btn.neon { background: #0d1220; }


/* ═════════════ Accounts, notifications, comments ═════════════ */
.auth { position: absolute; inset: 0; z-index: 120; overflow-y: auto; background: radial-gradient(70% 40% at 80% 0%, rgba(59, 120, 255, .22), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(168, 100, 63, .2), transparent 70%), var(--bg); animation: fade .3s both; }
.auth-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top-pad) + 10px) 26px calc(30px + var(--safe-bot)); }
.auth-logo { font-size: 30px; margin-bottom: 26px; }
.auth-title { font-size: 54px; margin: 0 0 12px; }
.auth-title .amp { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: .72em; letter-spacing: 0; color: var(--sand); }
.auth-sub { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
.auth .seg { margin-bottom: 18px; }
.auth-err { min-height: 18px; margin: 0; font-size: 13.5px; color: var(--bad); }
.loading-note { padding: 18px 0; text-align: center; }
.empty { display: grid; justify-items: start; gap: 12px; padding: 6px 0 4px; }

.icon-btn.bell { position: relative; }
.bell-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4f62; color: #fff; font: 700 10px/18px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.notif { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif.is-new .nt-main span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); margin-right: 7px; vertical-align: middle; }
.nt-av .avatar { border: 0; }
.nt-main { text-align: left; min-width: 0; }
.nt-main span { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.nt-main b { color: var(--ink); font-weight: 600; }
.nt-main small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.nt-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ok); }
.nt-ic svg { width: 16px; height: 16px; }

.comment { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { border: 0; }
.comment b { font-size: 14px; font-weight: 600; }
.comment small { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.comment p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.mention { color: var(--neon-hi); font-weight: 600; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0 2px; background: linear-gradient(180deg, rgba(18, 18, 21, 0), rgba(18, 18, 21, .97) 30%); }
.comment-form input { height: 44px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); padding: 0 14px; font-size: 15px; outline: none; }
.comment-form .btn { height: 44px; }

.online.big { width: 18px; height: 18px; right: 4px; bottom: 4px; border-width: 3px; }
.giphy-grid { columns: 2; column-gap: 8px; margin-top: 10px; }
.giphy-grid button { display: block; width: 100%; margin: 0 0 8px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); break-inside: avoid; }
.giphy-grid img { display: block; width: 100%; height: auto; }
.giphy-attr { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: right; margin: 2px 0 0; }
.gif-results { min-height: 80px; }
.msg button { border: 0; padding: 0; background: none; }
.pod[data-act], .lb-row[data-act] { cursor: pointer; }

.auth { z-index: 54; }
