/* B484 · Gym by CultureAI. Built to Figma page 41 (Culture Brand Library). CultureAI blue is the only accent. */
@font-face{font-family:Rubik;src:url(/fonts/rubik-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Rubik;src:url(/fonts/rubik-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Rubik;src:url(/fonts/rubik-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Rubik;src:url(/fonts/rubik-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Rubik;src:url(/fonts/rubik-latin-800-normal.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
:root{/* L26: one token set, from the Longevity brand guide in Figma. */--blue:#1559F5;--blue-bright:#2F6BFF;--blue-deep:#0F46C9;--ink:#0A1633;--body:#4A5570;--mute:#566074;--paper:#FFFFFF;--paper2:#F6F8FC;--mist:#F6F8FC;--line:#E8ECF5;--wash:#EAF0FF;--navy:#0B1B4A;--tint:rgba(21,89,245,.10);--live:#16A34A;--ember:#DC5A28;--move:#1559F5;--fuel:#16A34A;--rest:#6D5BD0;--years:#DC5A28;--grad:linear-gradient(135deg,#2F6BFF 0%,#1340C8 55%,#0B1B4A 100%);--ease:cubic-bezier(.2,.8,.2,1);
  --r:20px;--pad:20px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:Rubik,system-ui,sans-serif;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
main{max-width:480px;margin:0 auto;min-height:100dvh;padding:calc(18px + var(--safe-t)) var(--pad) calc(110px + var(--safe-b));display:flex;flex-direction:column;gap:16px}
.boot{flex:1;display:grid;place-items:center;min-height:80dvh}
.boot img{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.4;transform:translateY(-4px)}}
.top{display:flex;justify-content:space-between;align-items:center;min-height:28px}
.top img{height:22px;width:auto}
.kick{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:500;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin:0}
h1{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.01em;margin:4px 0 0}
.hd{display:flex;flex-direction:column}
.card{border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px}
.card.coach{background:var(--navy);color:#fff}
.card.soft{background:var(--paper2)}
.card.line{background:var(--paper);border:1px solid var(--line)}
.coachhead{display:flex;gap:8px;align-items:center;font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;color:var(--blue)}
.coach .coachhead{color:#fff}
.coachhead i{width:8px;height:8px;border-radius:50%;background:var(--live);display:inline-block}
.coach p{margin:0;font-size:17px;line-height:1.45}
.card p{margin:0}
.small{font-size:14px;line-height:1.45}
.mute{color:var(--mute)}
.shimmer{height:14px;border-radius:7px;background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.28),rgba(255,255,255,.12));background-size:200% 100%;animation:sh 1.2s linear infinite}
@keyframes sh{to{background-position:-200% 0}}
.list{display:flex;flex-direction:column;gap:8px}
.ex{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);text-align:left;width:100%;min-height:60px}
.num{width:32px;height:32px;flex:none;border-radius:10px;background:var(--tint);color:var(--blue);font-weight:600;font-size:13px;display:grid;place-items:center}
.ex.done .num{background:var(--blue);color:#fff}
.ex .col{flex:1;min-width:0}
.ex b{display:block;font-weight:600;font-size:16px}
.ex span{display:block;font-size:13px;color:var(--mute)}
.ex .up{color:var(--blue);font-weight:600}
.chev{flex:none;color:#8A8F98}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;border-radius:16px;font-weight:600;font-size:17px;background:var(--blue);color:#fff}
.btn.sec{background:var(--tint);color:var(--blue)}
.btn:disabled{opacity:.5}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:8px 12px;border-radius:999px;background:var(--paper2);font-weight:600;font-size:13px;min-height:36px;display:inline-flex;align-items:center;gap:6px}
.chip.on{background:var(--tint);color:var(--blue)}
.set{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border:1px solid var(--line);border-radius:14px;min-height:60px}
.set.cur{border:1.5px solid var(--blue);background:rgba(21,89,245,.06)}
.set .lab{font-size:13px;color:var(--mute);width:44px;flex:none}
.set input{width:78px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font-size:18px;font-weight:700;text-align:right;background:#fff}
.set input:focus{outline:2px solid var(--blue);border-color:transparent}
.set .x{color:var(--mute);font-size:13px}
.set .reps{width:56px}
.set .unit{font-size:13px;color:var(--mute)}
.tick{margin-left:auto;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none}
.tick svg{width:26px;height:26px}
.timer{align-items:center;text-align:center;padding:20px}
.timer .t{font-size:60px;font-weight:800;line-height:1;letter-spacing:-.02em}
.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + var(--safe-b));width:min(440px,calc(100% - 40px));display:flex;justify-content:space-between;padding:8px 22px;background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 24px rgba(13,26,64,.08);z-index:5}
.tabs button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:13px;color:var(--mute);min-width:64px;min-height:48px;justify-content:center}
.tabs button[aria-current=page]{color:var(--blue)}
.thread{display:flex;flex-direction:column;gap:10px}
.msg{max-width:84%;padding:12px 14px;border-radius:18px;font-size:15px;line-height:1.45;white-space:pre-wrap}
.msg.me{align-self:flex-end;background:var(--blue);color:#fff}
.msg.co{align-self:flex-start;background:var(--paper2)}
.pill{display:inline-flex;align-items:center;gap:6px;margin-top:8px;background:#fff;color:var(--blue);border-radius:999px;padding:6px 10px;font-size:13px;font-weight:500}
.ask{display:flex;gap:10px;align-items:center;background:var(--paper2);border-radius:999px;padding:6px 6px 6px 16px}
.ask input{flex:1;border:0;background:none;font-size:16px;min-height:44px;outline:none}
.ask button{width:44px;height:44px;border-radius:50%;background:var(--blue);display:grid;place-items:center;flex:none}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-weight:600;font-size:14px;min-height:44px}
.vid{border-radius:20px;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;text-decoration:none;background:linear-gradient(135deg,#0A1A45,#1440B8)}
.vid .play{width:56px;height:56px;border-radius:50%;background:#fff;display:grid;place-items:center}
.cues{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.cues li{display:flex;gap:12px;font-size:15px}
.cues li i{font-style:normal;width:26px;height:26px;flex:none;border-radius:50%;background:var(--tint);color:var(--blue);font-size:13px;font-weight:600;display:grid;place-items:center}
.big{font-size:60px;font-weight:800;line-height:1;letter-spacing:-.02em}
.days{display:flex;gap:8px}
.days span{flex:1;text-align:center;padding:10px 4px;border-radius:12px;font-size:13px;border:1px solid var(--line);color:var(--mute)}
.days span.on{background:var(--blue);border-color:var(--blue);color:#fff}
.lift{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bars{display:flex;gap:6px;align-items:flex-end;height:40px}
.bars i{width:10px;border-radius:3px;background:rgba(21,89,245,.25)}
.bars i:last-child{background:var(--blue)}
.gate{flex:1;display:flex;flex-direction:column;justify-content:center;gap:16px;min-height:80dvh}
.gate input{width:100%;min-height:56px;border:1px solid var(--line);border-radius:16px;padding:0 16px;font-size:18px}
.err{color:#B42318;font-size:14px;margin:0}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + var(--safe-b));background:var(--navy);color:#fff;border-radius:14px;padding:12px 16px;font-size:14px;max-width:min(440px,calc(100% - 40px));z-index:6;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.row{display:flex;gap:8px}
.row .btn{flex:1}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.gatelogo{height:24px;width:auto;align-self:flex-start}
.pu{flex:1;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:16px;min-width:0}
.btn.inline{width:auto;padding:0 18px;min-height:48px}
.ex.done{background:var(--paper2)}
/* B485: the morning timeline, readiness, connections */
.kick.sec{margin:6px 0 -6px}
.mlist{display:flex;flex-direction:column}
.mrow{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.mrow:first-child{border-top:0}
.mrow .mat{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--mute);width:40px;flex:none}
.mrow .col{flex:1;min-width:0}
.mrow b{display:block;font-weight:600;font-size:15px}
.mrow span{font-size:13px;color:var(--mute)}
.mrow.on b{color:var(--mute);text-decoration:line-through;text-decoration-color:rgba(107,114,128,.5)}
.ready{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.06em;color:#BFD0FF}
a.chip{text-decoration:none;color:inherit}
a.chip.on{color:var(--blue)}
.card .lift + .lift{padding-top:10px;border-top:1px solid var(--line)}
main p{margin:0 0 10px}
/* B486: food */
.bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden;margin-top:6px}
.bar i{display:block;height:100%;background:var(--blue);border-radius:4px}
.fitems{margin-top:8px;display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--line);padding-top:8px}
.fi{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.tabs{padding:8px 12px}
.tabs button{min-width:56px}

/* B487: the trainer */
.feel{margin-top:10px}
.chip.talk{flex:none;min-width:64px;justify-content:center}
.chip.talk.rec{background:#E5484D;color:#fff;border-color:#E5484D}
.ask .chip.talk{width:auto;height:36px;border-radius:999px;padding:0 14px;background:var(--blue);color:#fff;font-weight:600;margin-left:-10px}
.ask .chip.talk.rec{background:#E5484D}
.linkish{background:none;border:0;padding:0;text-align:left;flex:1;color:inherit;font:inherit;cursor:pointer}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.badge{font-size:12px;font-weight:600;padding:6px 10px;border-radius:999px;background:rgba(21,89,245,.1);color:var(--blue)}
.badge.body{background:rgba(20,160,110,.12);color:#0E7A55}
.badge.consistency{background:rgba(240,150,20,.14);color:#9A5A00}
.celebrate{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(8,12,24,.55);backdrop-filter:blur(6px);animation:celfade .25s ease-out}
.cel-in{background:linear-gradient(160deg,#1559F5,#0B2E8A);color:#fff;border-radius:24px;padding:28px 24px;width:min(340px,86vw);text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35);animation:celpop .35s cubic-bezier(.2,1.4,.4,1)}
.cel-in .kick{color:#BFD0FF}
.cel-in h2{font-size:26px;margin:8px 0}
.cel-in .btn{margin-top:16px;background:#fff;color:#1559F5}
@keyframes celfade{from{opacity:0}to{opacity:1}}
@keyframes celpop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.celebrate,.cel-in{animation:none}}
[hidden]{display:none!important}
.ask input{min-width:0}
.ask{max-width:100%;box-sizing:border-box}
a.btn{text-decoration:none;display:flex;align-items:center;justify-content:center}

/* B489: the Longevity mark (direction C: pulse tile + wordmark) */
.lgv{display:flex;align-items:center;gap:8px}
.lgv img{height:26px;width:26px}
.lgv span{font-weight:700;font-size:21px;letter-spacing:-.02em;color:var(--ink)}
.lgv.gatelogo{justify-content:center;gap:12px}
.lgv.gatelogo img{height:52px;width:52px}
.lgv.gatelogo span{font-size:40px}
.lgv.gatelogo{height:auto;align-self:center}

/* ===== B490 · MetaLab pass (Figma page 41, L1-L6). Culture blue + navy; rings, gradients, generous type. ===== */

html,body{background:var(--paper2)}
.card.line{border-radius:24px;padding:20px;border-color:var(--line)}
.ringwrap{position:relative;flex:none;display:grid;place-items:center}
.ringwrap svg{position:absolute;inset:0}
.ringin{position:relative;display:flex;flex-direction:column;align-items:center;line-height:1}
.ringin b{font-weight:700;letter-spacing:-.03em}
.hero{background:var(--grad);color:#fff;border-radius:30px;padding:22px 20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 18px 40px -18px rgba(11,27,74,.55)}
.hero .kick{color:rgba(255,255,255,.7)}
.herorow{display:flex;gap:18px;align-items:center}
.hero .ringin b{font-size:34px}
.hero .ringin .kick{font-size:9px;margin-top:4px}
.herotx{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.herotx h2{margin:0;font-size:22px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.herotx .small{color:rgba(255,255,255,.78)}
.stats{display:flex;gap:8px}
.stats div{flex:1;background:rgba(255,255,255,.1);border-radius:16px;padding:10px 12px;display:flex;flex-direction:column}
.stats b{font-size:17px;font-weight:600}
.stats span{font-size:11px;color:rgba(255,255,255,.65)}
.hero.pc{gap:10px}
.kick.live::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#34D399;margin-right:8px;vertical-align:1px}
.pctext{margin:0;font-weight:500;font-size:16px;line-height:1.4}
.chip.light{background:#fff;color:var(--blue)}
.chip.ghost{background:rgba(255,255,255,.14);color:#fff}
.chip.solid{background:var(--blue);color:#fff}
.chip.outline{background:#fff;border:1px solid var(--line);color:var(--ink)}
.chips.scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--pad));padding:0 var(--pad)}
.chips.scroll::-webkit-scrollbar{display:none}
.chips.scroll .chip{flex:none}
/* trainer: full-bleed dark */
body.dark{background:linear-gradient(180deg,#0B1B4A 0%,#1A4FE0 100%) fixed;color:#fff}
body.dark .back{color:rgba(255,255,255,.85)}
body.dark .kick{color:rgba(255,255,255,.6)}
body.dark h1{color:#fff;font-size:36px;letter-spacing:-.03em}
body.dark .chip{background:rgba(255,255,255,.12);color:#fff}
body.dark .chip.on{background:#fff;color:var(--blue)}
body.dark .card.line,body.dark .card.soft{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.14);color:#fff}
body.dark .coachhead{color:#fff}
body.dark .small.mute,body.dark .mute{color:rgba(255,255,255,.65)}
body.dark .set{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14)}
body.dark .set.cur{background:#fff;border-color:#fff;color:var(--ink)}
body.dark .set .lab,body.dark .set .unit,body.dark .set .x{color:rgba(255,255,255,.7)}
body.dark .set.cur .lab,body.dark .set.cur .unit,body.dark .set.cur .x{color:var(--mute)}
body.dark .set input{background:rgba(255,255,255,.95);color:var(--ink);border-color:transparent}
body.dark .btn{background:#fff;color:var(--blue)}
body.dark .btn.sec{background:rgba(255,255,255,.14);color:#fff}
body.dark .ask{background:#fff}
body.dark .timer .t{color:#fff}
.bigset{display:flex;justify-content:center;padding:6px 0}
.bigset .ringin b{font-size:68px;color:var(--ink)}
.bigset .ringin .u{font-size:18px;font-weight:500;color:var(--mute);margin-top:6px}
.bigset .ringin .kick{margin-top:8px}
/* food */
.foodtop{display:flex;gap:18px;align-items:center}
.foodtop .ringin b{font-size:28px;color:var(--ink)}
.foodnums{flex:1;display:flex;flex-direction:column;gap:6px}
.foodnums .fi{font-size:14px}
.foodnums b.blue{color:var(--blue)}
/* milestones as medals */
.badges{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.medal{background:var(--paper2);border-radius:18px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.medal i{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#2F6BFF,#0F46C9);box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.medal.body i{background:linear-gradient(135deg,#10B981,#047857)}
.medal.consistency i{background:linear-gradient(135deg,#F59E0B,#B45309)}
.medal span{font-size:11px;font-weight:600;line-height:1.25}
/* library */
.libgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.libtile{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;text-align:left;display:flex;flex-direction:column}
.libtile .thumb{height:104px;position:relative;background:linear-gradient(135deg,#2F6BFF,#0B1B4A)}
.libtile .thumb::before{content:"";position:absolute;left:14px;top:22px;width:56px;height:56px;border-radius:50%;border:3px solid rgba(255,255,255,.35)}
.libtile .play,.vid .play{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.95);display:grid;place-items:center}
.libtile .meta{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px}
.libtile .meta b{font-size:14px;font-weight:600}
.libtile .meta span{font-size:12px;color:var(--mute);text-transform:capitalize}
.g-pull .thumb,.vid.g-pull{background:linear-gradient(135deg,#B45309,#0B1B4A)}
.g-legs .thumb,.vid.g-legs{background:linear-gradient(135deg,#0F766E,#0B1B4A)}
.g-core .thumb,.vid.g-core{background:linear-gradient(135deg,#6D28D9,#0B1B4A)}
.g-mobility .thumb,.vid.g-mobility{background:linear-gradient(135deg,#0891B2,#0B1B4A)}
.vid.g-push{background:linear-gradient(135deg,#2F6BFF,#0B1B4A)}
.vid{position:relative;color:#fff}
.herotx h2{font-size:19px;line-height:1.2}
.hero.body{gap:10px}
.bodyw{display:flex;align-items:baseline;gap:6px}
.bodyw b{font-size:52px;font-weight:700;letter-spacing:-.04em;line-height:1}
.bodyw span{font-size:18px;color:rgba(255,255,255,.7)}
.hbar{height:10px;border-radius:5px;background:rgba(255,255,255,.16);overflow:hidden}
.hbar i{display:block;height:100%;background:#fff;border-radius:5px}
.hero .fi{font-size:12px;color:rgba(255,255,255,.7)}
.hero .fi b{color:#fff;font-weight:500}
.hero .chip{align-self:flex-start}

/* B491: in-app form video */
.vbox{border-radius:24px;overflow:hidden;background:linear-gradient(135deg,#2F6BFF,#0B1B4A);color:#fff;box-shadow:0 18px 40px -20px rgba(11,27,74,.6)}
.vbox.g-pull{background:linear-gradient(135deg,#B45309,#0B1B4A)}.vbox.g-legs{background:linear-gradient(135deg,#0F766E,#0B1B4A)}.vbox.g-core{background:linear-gradient(135deg,#6D28D9,#0B1B4A)}.vbox.g-mobility{background:linear-gradient(135deg,#0891B2,#0B1B4A)}
.vload{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;text-decoration:none;position:relative}
.vload .play{position:static;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.95);display:grid;place-items:center}
.vframe{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.vframe iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vcap{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;font-size:13px;color:rgba(255,255,255,.85)}
.vcap span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vcap .chip{background:rgba(255,255,255,.14);color:#fff;flex:none}
/* B492: ease of use */
body.dark{background:#1A4FE0 linear-gradient(180deg,#0B1B4A 0%,#1A4FE0 100%) no-repeat;background-size:100% 100%;min-height:100dvh}
html:has(body.dark){background:#1A4FE0}
.btn.light{background:#fff;color:var(--blue);gap:8px;min-height:54px;font-size:17px}
.btn.light:disabled{opacity:.7}
.hero .btn.light{box-shadow:0 8px 20px -10px rgba(0,0,0,.35)}
.qlog{display:flex;flex-direction:column;gap:6px}
.qlog .ask{background:var(--paper);border:1px solid var(--line)}
.qout{color:var(--mute);padding:0 6px;margin:0}
details.fold{gap:0;padding:0}
details.fold>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;min-height:60px}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
details.fold>summary b{font-size:16px;font-weight:600}
details.fold>summary span{font-size:13px;color:var(--mute)}
details.fold>summary .chev{transition:transform .2s;color:var(--mute)}
details.fold[open]>summary .chev{transform:rotate(90deg)}
details.fold[open]{padding-bottom:16px}
details.fold>:not(summary){margin:0 20px}
details.fold>.chip{align-self:flex-start;margin-top:10px}
.dock{position:sticky;bottom:0;margin:4px calc(-1 * var(--pad)) calc(-110px - var(--safe-b));padding:12px var(--pad) calc(16px + var(--safe-b));background:linear-gradient(180deg,rgba(26,79,224,0) 0%,#1A4FE0 35%);z-index:4}
.btn.big{min-height:64px;font-size:18px;border-radius:20px;background:#fff;color:#0B1B4A;font-weight:700;box-shadow:0 12px 30px -12px rgba(0,0,0,.45)}
.skip{align-self:center;font-size:15px;color:rgba(255,255,255,.8);min-height:44px;padding:0 12px;text-decoration:underline;text-underline-offset:3px}
body.dark .set{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
body.dark .set .lab,body.dark .set .unit,body.dark .set .x{color:rgba(255,255,255,.7)}
body.dark .set.cur{background:#fff;border-color:#fff}
body.dark .set.cur .lab,body.dark .set.cur .unit,body.dark .set.cur .x{color:var(--mute)}
body.dark .ask{background:rgba(255,255,255,.12)}
body.dark .ask input{color:#fff}
body.dark .ask input::placeholder{color:rgba(255,255,255,.6)}
.comp{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.comp .small{color:rgba(255,255,255,.85);margin:0}
.comp .dim{color:rgba(255,255,255,.6)}
.comp .stats b{font-size:18px}
.hrow{display:flex;align-items:center;gap:8px}
.hrow input{width:64px;min-height:44px;border-radius:12px;border:0;padding:0 10px;font-size:17px;font-weight:600;text-align:center}
.hrow span{color:rgba(255,255,255,.75);font-size:14px}
.hrow .chip{margin-left:auto}
.bfscale{position:relative;padding-top:4px}
.bfscale .segs{display:flex;height:10px;border-radius:6px;overflow:hidden;gap:2px}
.bfscale .segs i{display:block;background:rgba(255,255,255,.18)}
.bfscale .segs i.on{background:rgba(255,255,255,.5)}
.bfscale .goalz{position:absolute;top:4px;height:10px;background:#3DDC97;border-radius:3px;opacity:.9}
.bfscale .mark{position:absolute;top:-1px;width:4px;height:20px;margin-left:-2px;background:#fff;border-radius:2px;box-shadow:0 0 0 2px rgba(11,27,74,.4)}
.bfscale .labs{display:flex;margin-top:8px}
.bfscale .labs span{font-size:10px;color:rgba(255,255,255,.65);text-align:center;overflow:hidden;white-space:nowrap}
/* B492: sign-in, MetaLab pass */
body.gatebg{background:radial-gradient(120% 70% at 85% 0%,#2F6BFF 0%,rgba(47,107,255,0) 60%) no-repeat,linear-gradient(180deg,#123BB8 0%,#0B1B4A 70%) no-repeat #0B1B4A;min-height:100dvh;color:#fff}
html:has(body.gatebg){background:#0B1B4A}
body.gatebg .gate{min-height:calc(100dvh - 40px - var(--safe-t) - var(--safe-b));justify-content:space-between;gap:0;position:relative}
.gtop{display:flex;align-items:center;gap:10px}
.gtop img{width:34px;height:34px;border-radius:9px;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.gtop span{font-weight:700;font-size:22px;letter-spacing:-.02em}
.gwave{width:calc(100% + 2 * var(--pad));margin:0 calc(-1 * var(--pad));height:120px;opacity:.9}
.gwave path{stroke-dasharray:800;stroke-dashoffset:800;animation:gdraw 2.4s cubic-bezier(.6,0,.2,1) .2s forwards;filter:drop-shadow(0 0 8px rgba(120,170,255,.9))}
@keyframes gdraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.gwave path{animation:none;stroke-dashoffset:0}}
.gmid{display:flex;flex-direction:column;gap:18px}
.gmid h1{font-size:40px;line-height:1.04;letter-spacing:-.035em;font-weight:800;margin:0;color:#fff}
.gpills{display:flex;gap:8px;flex-wrap:wrap}
.gpills span{font-size:13px;font-weight:600;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16)}
.gpanel{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);margin-top:28px}
body.gatebg .gate input{background:rgba(255,255,255,.95);border:0;color:#0B1B4A;font-weight:600;letter-spacing:.04em}
body.gatebg .gate .err{color:#FFB4B6;margin:0;min-height:0}
body.gatebg .gate .err:empty{display:none}
.gfoot{display:flex;align-items:center;justify-content:center;gap:8px;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin:22px auto 0;text-decoration:none}
.gfoot img{height:28px;width:auto;display:block;opacity:.92}
/* B492: tighter plan-change card, folds without double padding */
.hero.pc{padding:16px 18px;border-radius:22px;gap:6px}
.hero.pc .pctext{font-size:16px;font-weight:600;margin:0}
.hero.pc .small{margin:0}
details.fold.card{padding:0}
details.fold.card[open]{padding-bottom:16px}
body.gatebg .gate input:focus{outline:3px solid rgba(120,170,255,.6);outline-offset:0}
/* B492: add to the stack */
.addst{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding:14px;border-radius:18px;background:var(--paper2)}
.addst input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font-size:16px;background:#fff;box-sizing:border-box}
.addrow{display:flex;gap:10px}
.addrow input:first-child{flex:1.4}
.addrow input:last-child{flex:1}
.addrow .btn{flex:1;min-height:48px}
.seg{display:flex;background:#fff;border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px}
.seg button{flex:1;min-height:40px;border-radius:9px;font-size:14px;font-weight:600;color:var(--mute)}
.seg button.on{background:var(--blue);color:#fff}
.chip.del{background:#FDECEC;color:#B42318;border-color:transparent}
details.fold>.chips{margin-top:12px}
.addst .ask{background:#fff;border:1px solid var(--line)}
.addst p{margin:0}
.skip.dark{color:var(--mute)}
.addst .ask input{border:0;min-height:44px;padding:0;background:none}
/* B493: Labs, MetaLab pass */
.labsin{flex-direction:row;align-items:center;gap:14px;text-align:left;width:100%}
.labsin .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.labsin .col b{font-size:16px;font-weight:600}
.labsin .col span{font-size:13px;color:var(--mute)}
.labsin .chev{color:var(--mute)}
.lbadge{width:44px;height:44px;border-radius:14px;background:var(--tint);display:grid;place-items:center;flex:none}
.lbadge.big{width:56px;height:56px;border-radius:18px;background:rgba(255,255,255,.14)}
.watch{font-size:12px;font-weight:700;color:#B42318;background:#FDECEC;border-radius:999px;padding:5px 10px;white-space:nowrap}
.okp{font-size:12px;font-weight:700;color:#067647;background:#E7F8EF;border-radius:999px;padding:5px 10px;white-space:nowrap}
.labhero h2{margin:0;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.labhero .small{color:rgba(255,255,255,.82);margin:0}
.labadd textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font:inherit;font-size:16px;resize:vertical;min-height:120px;background:#fff}
.labadd .addrow label.btn{display:flex;align-items:center;justify-content:center;cursor:pointer}
.vh{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.seg.wide{background:var(--paper2);border:0;padding:4px;border-radius:14px}
.seg.wide button{min-height:40px}
.seg.wide button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(13,26,64,.12)}
.mkgroup{gap:0}
.mkgroup .kick{margin-bottom:4px}
.mk{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-top:1px solid var(--line)}
.mkgroup .kick + .mk{border-top:0;padding-top:6px}
.mkt{display:flex;align-items:flex-start;gap:12px}
.mkt .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mkt .col b{font-size:15px;font-weight:600}
.mkt .col span{font-size:12px;color:var(--mute)}
.mkv{display:flex;align-items:baseline;gap:4px;text-align:right}
.mkv b{font-size:22px;font-weight:700;letter-spacing:-.02em}
.mkv span{font-size:12px;color:var(--mute)}
.mk.off .mkv b{color:#B42318}
.mkb{display:flex;align-items:center;gap:10px}
.mkb>div:first-child{flex:1}
.rbar{position:relative;height:8px;border-radius:5px;background:var(--paper2)}
.rbar .band{position:absolute;top:0;bottom:0;background:#CFE0FF;border-radius:5px}
.rbar .dot{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 3px #fff}
.rbar.off .dot{background:#E5484D}
.dl{font-size:12px;font-weight:600;color:var(--mute);min-width:36px;text-align:right}
.spark{color:var(--blue);flex:none}
.mk.off .spark{color:#E5484D}
.flag{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.02em;color:#B42318;background:#FDECEC;border-radius:999px;padding:3px 9px}
.trow{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line);font-size:15px}
.card.soft .kick + .trow{border-top:0}
.lrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 0;border-top:1px solid var(--line);min-height:56px}
.card .lift + .lrow{border-top:0}
.lrow .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lrow b{font-size:15px;font-weight:600}
.lrow span{font-size:13px;color:var(--mute)}
.labadd textarea:focus{outline:2px solid var(--blue);border-color:transparent}
.card.soft .big{font-size:34px;line-height:1;letter-spacing:-.03em}
/* B494: Food and Coach, MetaLab pass */
body.hasdock main{padding-bottom:calc(230px + var(--safe-b))}
.composer{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + var(--safe-b));width:min(440px,calc(100% - 40px));display:flex;flex-direction:column;gap:8px;z-index:5}
.composer::before{content:"";position:absolute;inset:-28px -20px -90px;background:linear-gradient(180deg,rgba(245,247,252,0) 0%,var(--paper2,#F5F7FC) 38%);z-index:-1;pointer-events:none}
.composer .chips.scroll{margin:0;padding:0}
.composer .ask{background:var(--paper);border:1px solid var(--line);box-shadow:0 8px 24px -12px rgba(13,26,64,.25)}
.composer .chip{background:var(--paper);border:1px solid var(--line)}
.composer .chip.on{background:var(--tint);border-color:transparent}
.composer .chip.talk{border:0}
.foodhero .ringin b{font-size:32px}
.foodhero .herotx h2{font-size:26px}
.meals{display:flex;flex-direction:column;gap:10px}
.meal{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.mealtop{display:flex;align-items:flex-start;gap:12px}
.mealtop .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mealtop b{font-size:16px;font-weight:600;text-transform:none}
.mealtop .col span{font-size:13px;color:var(--mute)}
.pp{font-size:13px;font-weight:700;color:var(--blue);background:var(--tint);border-radius:999px;padding:5px 10px;white-space:nowrap}
.mitems{display:flex;flex-direction:column;gap:4px;padding-top:6px;border-top:1px solid var(--line)}
.mitems div{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.mitems div span:last-child{color:var(--mute);white-space:nowrap}
.mnote{font-size:13px;color:var(--mute);margin:0;line-height:1.45}
.empty{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:28px 16px;border:1.5px dashed var(--line);border-radius:20px}
.empty b{font-size:16px}
.empty span{font-size:14px;color:var(--mute)}
.top .hd{gap:2px}
.top .hd h1{margin:0}
.msg.co{background:var(--paper);border:1px solid var(--line);border-bottom-left-radius:6px}
.msg.me{border-bottom-right-radius:6px}
.composer .chip.talk{background:var(--blue);color:#fff}
.composer .chip.talk.rec{background:#E5484D}
/* B495: Library, move, History, Music */
.libtile .thumb::before{display:none}
.libtile .scheme{position:absolute;left:14px;top:14px;color:#fff;font-size:26px;font-weight:800;letter-spacing:-.03em}
.libtile .kind{position:absolute;left:14px;top:48px;color:rgba(255,255,255,.7);font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.libtile .inplan{position:absolute;left:12px;bottom:12px;font-size:11px;font-weight:700;color:#fff;background:rgba(255,255,255,.18);border-radius:999px;padding:4px 9px}
.lsearch{width:100%;box-sizing:border-box;min-height:48px;border:1px solid var(--line);border-radius:14px;padding:0 16px;font-size:16px;background:var(--paper)}
.lsearch:focus{outline:2px solid var(--blue);border-color:transparent}
.inplanrow{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#067647;background:#E7F8EF;border-radius:14px;padding:12px 14px}
.card .seg.wide{margin:2px 0 4px}
.sess .sx{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line)}
.sess summary + .sx{border-top:0}
.sess .sx b{font-size:14px;font-weight:600}
.sess .sets{display:flex;flex-wrap:wrap;gap:6px}
.sess .sets span{font-size:13px;font-weight:600;background:var(--paper2);border-radius:999px;padding:4px 10px}
.sess .sets span.hard{background:#FDECEC;color:#B42318}
.sess .sets span.easy{background:#E7F8EF;color:#067647}
.musichero{background:radial-gradient(120% 90% at 100% 0%,#1ED76055 0%,rgba(30,215,96,0) 55%),var(--grad)}
.musichero h2{margin:0;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.musichero .small{color:rgba(255,255,255,.8);margin:0}
.ctl{display:flex;gap:10px;justify-content:center;align-items:center;margin:4px 0}
.rb{min-height:48px;padding:0 18px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:15px}
.rb.main{background:#fff;color:#0B1B4A;min-width:96px}
.musichero + .ask{border:1px solid var(--line);background:var(--paper)}
/* B496: recovery and listening history */
.rec .tiles{display:flex;gap:8px}
.rec .tiles div{flex:1;background:var(--paper2);border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:1px}
.rec .tiles b{font-size:22px;font-weight:700;letter-spacing:-.02em}
.rec .tiles span{font-size:11px;color:var(--mute)}
.rec .tiles em{font-style:normal;font-size:11px;color:var(--blue);font-weight:600}
.rbars{display:flex;align-items:flex-end;gap:3px;height:60px;margin-top:6px}
.rbars i{flex:1;background:#BFD3FF;border-radius:3px 3px 1px 1px;min-width:3px}
.rbars i.high{background:var(--blue)}
.rbars i.low{background:#F2A1A3}
.rbars i.none{background:var(--paper2)}
.mhist{display:flex;flex-direction:column;gap:12px}
a.trow{color:inherit;text-decoration:none;align-items:center;gap:12px}
a.trow>span:first-child{display:flex;flex-direction:column;min-width:0}
.pt{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.okt{color:#067647;font-weight:700}
/* B498: photos */
.cam{width:40px;height:40px;border-radius:50%;background:var(--tint);display:grid;place-items:center;flex:none}
.ask .cam{background:var(--tint)}
.composer .ask .cam,.qlog .ask .cam,.addst .ask .cam{width:40px;height:40px}
.mthumb{width:52px;height:52px;border-radius:12px;object-fit:cover;flex:none}
.mphoto{width:36px;height:36px;border-radius:10px;background:var(--tint);display:grid;place-items:center;flex:none}
.labadd .addrow .btn{gap:6px}
.hero .brow{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.gtop img.gcai{margin-left:auto;height:40px;width:auto;padding:8px 14px;box-sizing:border-box;border-radius:999px;background:#fff;box-shadow:0 6px 20px rgba(4,12,48,.28)}

/* B500: screen transitions (View Transitions), the tab bar stays put */
.tabs{view-transition-name:tabs}
::view-transition-old(root),::view-transition-new(root){animation-duration:.32s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
html[data-vt=fade]::view-transition-old(root){animation-name:vt-out;animation-duration:.16s}
html[data-vt=fade]::view-transition-new(root){animation-name:vt-in}
html[data-vt=fwd]::view-transition-old(root){animation-name:vt-left-out}
html[data-vt=fwd]::view-transition-new(root){animation-name:vt-right-in}
html[data-vt=back]::view-transition-old(root){animation-name:vt-right-out}
html[data-vt=back]::view-transition-new(root){animation-name:vt-left-in}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(8px)}}
@keyframes vt-left-out{to{opacity:.4;transform:translateX(-22%)}}
@keyframes vt-right-in{from{transform:translateX(100%)}}
@keyframes vt-right-out{to{transform:translateX(100%)}}
@keyframes vt-left-in{from{opacity:.4;transform:translateX(-22%)}}
html[data-vt=back]::view-transition-old(root){z-index:2}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}
.offbar{position:fixed;right:16px;top:calc(var(--safe-t) + 14px);z-index:60;display:flex;align-items:center;gap:7px;background:#fff;color:#0B1B4A;font-size:12px;font-weight:700;border-radius:999px;padding:7px 12px;box-shadow:0 6px 18px rgba(4,12,48,.22)}
.offbar i{width:8px;height:8px;border-radius:50%;background:#F5A524;box-shadow:0 0 0 3px rgba(245,165,36,.25)}
/* B507: profile, people, the plan and first-run setup */
.navbar{display:flex;align-items:center;min-height:44px}
.avbtn{border-radius:50%;padding:0;line-height:0;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line)}
.av{border-radius:50%;object-fit:cover;display:inline-block;flex:none}
.av.ini{display:inline-grid;place-items:center;background:var(--grad);color:#fff;font-weight:700;letter-spacing:.02em}
.phead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:6px 0 4px}
.phead h1{margin:10px 0 0;font-size:28px;letter-spacing:-.02em}
.avedit{position:relative;border-radius:50%;padding:0;line-height:0}
.avedit i{position:absolute;right:2px;bottom:2px;width:30px;height:30px;border-radius:50%;background:var(--blue);display:grid;place-items:center;box-shadow:0 0 0 3px #fff}
.avedit.big i{width:36px;height:36px}
.pstats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pst{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
.pst b{font-size:17px;font-weight:700;color:var(--ink);white-space:nowrap}
.pst span{font-size:11px;color:var(--mute);font-family:"IBM Plex Mono",monospace;letter-spacing:.06em;text-transform:uppercase}
.pgoal{font-size:20px;font-weight:700;color:var(--ink);margin:4px 0}
.conn{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.conn > div{display:flex;flex-direction:column;gap:2px}
.conn b{font-size:15px}
.pill.ok{background:#E7F8EF;color:#067647;font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px}
.btn.ghostd{background:transparent;color:var(--mute);min-height:48px}
.plist{display:flex;flex-direction:column}
.prow{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.prow b{flex:1;font-size:15px}
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld > span{font-size:13px;font-weight:600;color:var(--ink)}
.fld small{font-size:12px;color:var(--mute)}
.fld input,.fld textarea{width:100%;box-sizing:border-box;min-height:50px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.fld textarea{min-height:92px;resize:vertical;line-height:1.4}
.fld input:focus,.fld textarea:focus{outline:2px solid var(--blue);border-color:transparent}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.two.tight{gap:8px}
.pform,.sbody{display:flex;flex-direction:column;gap:16px}
.setup{display:flex;flex-direction:column;gap:22px;min-height:calc(100dvh - 140px)}
.stop{display:flex;align-items:center;justify-content:space-between}
.sdots{display:flex;gap:6px}
.sdots i{width:22px;height:5px;border-radius:3px;background:var(--line);transition:background .3s}
.sdots i.on{background:var(--blue)}
.shd h1{margin:0 0 8px;font-size:30px;line-height:1.08;letter-spacing:-.025em}
.shd p{margin:0;font-size:16px;line-height:1.45}
.scon{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;color:var(--ink);text-decoration:none;background:#fff}
.scon > div{display:flex;flex-direction:column;gap:3px}
.scon b{font-size:16px}
.center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.pday ul{list-style:none;margin:8px 0 0;padding:0}
.pday li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:15px}
.ginv{display:inline-block;margin:0 0 12px;background:rgba(255,255,255,.16);color:#fff;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border-radius:999px;padding:6px 12px;font-family:"IBM Plex Mono",monospace}
.dock .btn.ghostd{margin-top:4px}
/* light screens get a light dock with the blue button; the dark exercise screen keeps its own */
body:not(.dark) .dock{background:linear-gradient(180deg,rgba(245,247,252,0) 0%,var(--paper2) 28%)}
body:not(.dark) .dock .btn.big{background:var(--blue);color:#fff;box-shadow:0 10px 24px rgba(21,89,245,.28)}
.fld .seg.wide{background:#fff;border:1px solid var(--line);padding:4px}
.fld .seg.wide button{min-height:42px}
.fld .seg.wide button.on{background:var(--blue);color:#fff;box-shadow:none}
.setup{min-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 48px)}
.setup .sbody{flex:1}
.setup .dock{margin:auto calc(-1 * var(--pad)) calc(-1 * var(--safe-b) - 20px)}
.cacts{margin-top:10px}
.scon.ask2{width:100%;text-align:left;background:var(--tint);border-color:transparent}
/* B509: the iPhone install guide */
.install{display:flex;flex-direction:column;gap:18px}
.ihero{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:8px}
.ihero img{border-radius:18px;box-shadow:0 10px 30px rgba(21,89,245,.28)}
.ihero h1{margin:6px 0 0;font-size:30px;line-height:1.08;letter-spacing:-.025em}
.ihero p{margin:0;color:var(--mute);font-size:16px;line-height:1.45}
.icode{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left;border-radius:20px;padding:16px 18px;background:var(--grad);color:#fff}
.icode .kick{color:rgba(255,255,255,.7)}
.icode b{font-size:28px;letter-spacing:.08em;font-family:"IBM Plex Mono",monospace}
.icode .small{color:rgba(255,255,255,.75)}
.isteps{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;padding:4px 16px}
.istep{display:flex;gap:14px;padding:14px 0;border-top:1px solid var(--line)}
.istep:first-child{border-top:0}
.inum{flex:none;width:28px;height:28px;border-radius:50%;background:var(--tint);color:var(--blue);font-weight:700;font-size:14px;display:grid;place-items:center}
.istep b{display:flex;align-items:center;gap:8px;font-size:16px}
.istep p{margin:3px 0 0}
.iglyph{display:inline-grid;place-items:center;color:var(--blue);background:var(--tint);border-radius:8px;width:28px;height:28px}
.ihealth{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px 16px}
.ihealth ol{padding-left:18px;margin:10px 0;display:flex;flex-direction:column;gap:8px;line-height:1.45}
/* B510: switches */
.switch{appearance:none;-webkit-appearance:none;flex:none;width:50px;height:30px;border-radius:999px;background:var(--line);position:relative;transition:background .2s;cursor:pointer;margin:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(13,26,64,.25);transition:transform .2s}
.switch:checked{background:var(--live,#22C55E)}
.switch:checked::after{transform:translateX(20px)}
.switch:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* B511: email sign-in */
body.gatebg .gate .gpanel{gap:10px}
.glink{background:none;color:rgba(255,255,255,.85);font-weight:600;font-size:14px;min-height:40px;text-decoration:underline;text-underline-offset:3px}
.gnote{margin:0;text-align:center;color:rgba(255,255,255,.7);font-size:13px;line-height:1.4}
.pwho{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.pwho .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gate-in{padding-top:8px}
/* B511: Denzel's daily */
.card.daily{background:#fff;border:1px solid var(--line)}
.dline{font-size:20px;line-height:1.3;font-weight:700;letter-spacing:-.01em;color:var(--ink);margin:6px 0 8px}
.dtip{margin:0;font-size:15px;line-height:1.45;color:var(--body)}
.dplay{display:inline-flex;align-items:center;gap:6px;background:var(--blue);color:#fff;border-radius:999px;padding:7px 14px 7px 10px;font-size:13px;font-weight:700;min-height:36px}
.skel{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.skel i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,var(--paper2) 0%,#E9EEF7 50%,var(--paper2) 100%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite}
.skel i.short{width:60%}
@keyframes skel{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.skel i{animation:none}}
/* B511: capture */
.tabs{align-items:center}
.capbtn{min-width:0!important;padding:0!important}
.capbtn span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--blue);box-shadow:0 10px 24px rgba(21,89,245,.38),0 0 0 4px #fff;margin-top:-26px;transition:transform .15s}
.capbtn:active span{transform:scale(.94)}
.csheet-wrap{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;justify-content:flex-end}
.cscrim{position:absolute;inset:0;background:rgba(6,14,40,.42);animation:fadein .2s ease}
.csheet{position:relative;background:var(--paper2);border-radius:28px 28px 0 0;padding:10px 20px calc(22px + var(--safe-b));display:flex;flex-direction:column;gap:14px;max-width:520px;width:100%;margin:0 auto;animation:sheetup .28s cubic-bezier(.2,.8,.2,1);box-shadow:0 -10px 40px rgba(6,14,40,.2)}
.csheet-wrap.out .csheet{transform:translateY(100%);transition:transform .2s ease-in}
.csheet-wrap.out .cscrim{opacity:0;transition:opacity .2s}
.cgrab{width:38px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 4px}
.csheet h2{margin:2px 0 0;font-size:26px;letter-spacing:-.02em}
.cx{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;border:1px solid var(--line)}
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cbig{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:16px;border-radius:22px;background:#fff;border:1px solid var(--line);min-height:150px}
.cbig b{font-size:18px;color:var(--ink)}
.cbig span:last-child{font-size:13px;color:var(--mute);line-height:1.35}
.cic{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--grad);margin-bottom:6px}
.cbig.talk.rec .cic{background:#E5484D}
.cout{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.creply{margin:0;font-size:16px;line-height:1.45;color:var(--ink)}
.cthink{display:flex;gap:6px}
.cthink i{width:8px;height:8px;border-radius:50%;background:var(--blue);animation:dot 1s ease-in-out infinite}
.cthink i:nth-child(2){animation-delay:.15s}.cthink i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@keyframes sheetup{from{transform:translateY(100%)}}
@keyframes fadein{from{opacity:0}}
.ginv{align-self:flex-start;width:auto}
.csheet .ask{background:#fff;border:1px solid var(--line)}
body.gatebg .gate input[type=email]{letter-spacing:0}
/* B511: Powered by CultureAI on every screen */
.pfoot{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px auto 4px;padding:6px 10px;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);text-decoration:none;opacity:.9}
.lver{margin:22px 0 0;text-align:center;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.pfoot img{height:22px;width:auto;display:block}
.pfoot .on-dark{display:none}
body.dark .pfoot{color:rgba(255,255,255,.6)}
body.dark .pfoot .on-light{display:none}
body.dark .pfoot .on-dark{display:block}
body.gatebg .pfoot,.setup ~ .pfoot{display:none}
/* B511: Denzel's mark */
.dzm{display:inline-block;border-radius:50%;flex:none}
.coachhead .dzm{margin-right:2px}
.coachhead i{display:none}
.tabs button .dzm{opacity:.55;filter:grayscale(1)}
.tabs button[aria-current=page] .dzm{opacity:1;filter:none}
.dzh{display:flex;align-items:center;gap:12px}
/* B511: Nutrition */
.nmicro{margin:8px 0 0;color:rgba(255,255,255,.75)}
.card.hyd{background:#fff;border:1px solid var(--line)}
.hydrow{display:flex;align-items:baseline;gap:8px;margin:4px 0 8px}
.hydrow b{font-size:34px;font-weight:800;letter-spacing:-.03em;color:var(--ink)}
.hydrow span{color:var(--mute);font-size:15px}
.hydrow .pill{margin-left:auto}
.hbar2{height:10px;border-radius:5px;background:#E6F1FE;overflow:hidden;margin-bottom:12px}
.hbar2 i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#38BDF8,#1559F5);transition:width .4s cubic-bezier(.2,.8,.2,1)}
.glink2{background:none;color:var(--blue);font-weight:600;font-size:13px;min-height:32px}
/* B512: calendar */
.calcard{display:flex;flex-direction:column;gap:12px}
.calsec{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.calsec > b{font-size:16px}
.calsec .fld input{min-height:46px}
.calist{display:flex;flex-direction:column}
.calrow{display:grid;grid-template-columns:1fr;gap:1px;padding:9px 0;border-top:1px solid var(--line)}
.calrow:first-child{border-top:0}
.calsec ul{padding-left:18px;margin:8px 0 0;display:flex;flex-direction:column;gap:6px;line-height:1.45}
.calsec .ask{background:#fff;border:1px solid var(--line)}
.calrow{grid-template-columns:1fr auto!important;align-items:center}
.calrow > div{display:flex;flex-direction:column;gap:1px}
.calrow.missed b{color:var(--mute)}
.pill.miss{background:#FEF3F2;color:#B42318;font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px}
.calweek{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:4px 8px}
.calweek b{font-size:24px;font-weight:800;letter-spacing:-.02em}
.calweek span{color:var(--mute);font-size:14px}
.calweek .hbar2{grid-column:1 / -1;margin:2px 0 4px}

/* L3: Spotify strip on Today */
.mstrip .mnow{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.mstrip .mnow b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}
.mstrip .lift{align-items:center;gap:12px}
.mstrip .mchips{margin:4px 0 0;padding:0 0 2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.mstrip .mchips .chip{white-space:nowrap;flex:none;display:inline-flex;align-items:center;gap:5px}
/* L4: how to measure body fat */
.mstep .lift{justify-content:flex-start;gap:12px;align-items:center}
.mstep .inum{flex:none}
.mrow{display:flex;gap:14px;align-items:flex-start}
.mrow ol{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.mfig{width:96px;height:auto;flex:none}
.mlink{margin-top:10px;align-self:flex-start}
.mrow ol b{display:inline}
.mfig{width:112px}
/* L5: healthy years */
.ycard{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;gap:14px}
.ycard .big{font-size:34px;font-weight:800;letter-spacing:-.5px;line-height:1.1;margin-top:4px}
.ylist{display:flex;flex-direction:column}
.yrow{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.yrow .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.yrow .col span{font-size:13px;color:var(--mute);line-height:1.35}
.ydot{width:10px;height:10px;border-radius:50%;flex:none;background:#C9D2E6}
.ydot.on{background:#16A34A}.ydot.off{background:#F59E0B}
.ytag{font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;white-space:nowrap;background:#EEF1F7;color:var(--mute)}
.ytag.on{background:#E7F7EE;color:#15803D}.ytag.off{background:#FFF4E0;color:#B45309}
.y80{display:flex;flex-direction:column;gap:6px;background:var(--tint);border-radius:18px;padding:14px 16px;text-align:left;border:0}
.y80 ul{margin:0;padding-left:18px;font-size:15px;line-height:1.5}
.y80 .chip{align-self:flex-start}
.y80.empty b{font-size:16px;color:var(--ink,#0B1630)}.y80.empty span{font-size:13px;color:var(--mute)}
.pemail{margin-bottom:8px}
.pemail input{width:100%}

/* L7: Today, simpler and more fluid. Motivation first. */
.mhero{position:relative;overflow:hidden;border-radius:28px;padding:22px 22px 20px;margin:4px 0 14px;color:#fff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 55%),linear-gradient(160deg,#3A74FF 0%,#1446D9 45%,#0B1E5B 100%);
  box-shadow:0 18px 40px -18px rgba(20,70,217,.55);animation:mrise .5s cubic-bezier(.2,.8,.2,1) both}
.mtop{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mwho{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.mday{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.mline{margin:18px 0 0;font-size:27px;line-height:1.18;font-weight:700;letter-spacing:-.4px;min-height:64px}
.mskel{display:block;height:22px;border-radius:8px;background:rgba(255,255,255,.18);margin:6px 0}.mskel.short{width:60%}
.mact{display:flex;align-items:center;gap:12px;margin-top:18px}
.mplay{width:52px;height:52px;border-radius:50%;background:#fff;display:grid;place-items:center;border:0;box-shadow:0 8px 20px -8px rgba(0,0,0,.4);transition:transform .2s}
.mplay:active{transform:scale(.94)}.mplay.on{box-shadow:0 0 0 8px rgba(255,255,255,.18)}
.mlbl{font-weight:600;font-size:15px;color:rgba(255,255,255,.9)}
.mtip{margin:16px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.18);font-size:15px;line-height:1.45;color:rgba(255,255,255,.88)}
.mtip b{font-weight:600;color:#fff}
.tcard{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;margin:0 0 14px;display:flex;flex-direction:column;gap:8px;animation:mrise .5s .06s cubic-bezier(.2,.8,.2,1) both}
.tcard h2{margin:0;font-size:24px;letter-spacing:-.3px}
.tcard .btn{margin-top:8px}
.tline{display:flex;justify-content:space-between;align-items:center}
.tpill{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:#E7F7EE;color:#15803D}.tpill.low{background:#FFF4E0;color:#B45309}
.tmore{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;align-self:center;margin-top:6px;font-size:14px;font-weight:600;color:var(--blue)}
.tmore svg{transform:rotate(90deg);transition:transform .2s}
.tmore[aria-expanded="true"] svg{transform:rotate(-90deg)}
.tlift{margin-top:6px}
.tday{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
@keyframes mrise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mhero,.tcard{animation:none}}
.tcard .btn.light{background:var(--blue);color:#fff;border:0;box-shadow:0 10px 24px -12px rgba(21,89,245,.7);justify-content:center}
.tcard .btn.light svg,.tcard .btn.light svg *{fill:#fff;stroke:#fff}
.tcard .btn.light[disabled]{background:#E7F7EE;color:#15803D;box-shadow:none}
/* L7: the player and playlist tiles */
.music{margin:0 0 14px}
.mhead{display:flex;justify-content:space-between;align-items:baseline;margin:0 4px 8px}
.player{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:12px 14px 16px;border-radius:24px;color:#fff;overflow:hidden;
  background:radial-gradient(90% 120% at 0% 0%,rgba(255,255,255,.14),rgba(255,255,255,0) 60%),linear-gradient(150deg,#0F1B3D 0%,#0B1022 100%);box-shadow:0 16px 36px -20px rgba(11,16,34,.8)}
.player.empty{grid-template-columns:auto 1fr auto;text-decoration:none}
.pnow{all:unset;cursor:pointer;display:flex;align-items:center;gap:12px;min-width:0}
.part{width:56px;height:56px;border-radius:14px;overflow:hidden;flex:none;display:grid;place-items:center;background:linear-gradient(135deg,#1DB954,#0E7A37)}
.part img{width:100%;height:100%;object-fit:cover;display:block}
.pmeta{display:flex;flex-direction:column;gap:2px;min-width:0}
.pmeta b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmeta span{font-size:13px;color:rgba(255,255,255,.65);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pctl{display:flex;align-items:center;gap:4px}
.pbtn{width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:rgba(255,255,255,.85);display:grid;place-items:center;transition:transform .15s}
.pbtn:active{transform:scale(.9)}
.pbtn.main{width:48px;height:48px;background:#fff;color:#0B1022}
.pbar{position:absolute;left:14px;right:14px;bottom:8px;height:3px;border-radius:3px;background:rgba(255,255,255,.16);overflow:hidden}
.pbar i{display:block;height:100%;width:0;background:#1DB954;border-radius:3px;transition:width 1s linear}
.ptiles{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 4px 4px;margin:0 -4px;scrollbar-width:none}
.ptiles::-webkit-scrollbar{display:none}
.ptile{all:unset;cursor:pointer;flex:none;width:112px;scroll-snap-align:start;display:flex;flex-direction:column;gap:4px}
.pcover{width:112px;height:112px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#E9EEFB,#D6E1FF);display:grid;place-items:center;color:var(--blue);font-size:34px;font-weight:800;box-shadow:0 10px 22px -14px rgba(11,22,51,.45);transition:transform .2s}
.ptile:active .pcover{transform:scale(.96)}
.pcover img{width:100%;height:100%;object-fit:cover;display:block}
.ptile b{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ptile span{font-size:12px;color:var(--mute)}
.ptile.more .pcover{background:#fff;border:1px dashed #C9D4F2;box-shadow:none}
/* L9: say the set, always at hand on a lift (hands-free) */
.ssdock{display:flex;flex-direction:column;gap:10px}
.sayset{display:flex;align-items:center;gap:12px;background:#0A1633;border-radius:999px;padding:8px 8px 8px 8px;box-shadow:0 12px 30px rgba(5,12,40,.35)}
.ssorb{width:56px;height:56px;border-radius:50%;flex:none;position:relative;background:radial-gradient(circle at 40% 35%,#CFE0FF 0%,#3A74FF 45%,#0B1E5B 100%);box-shadow:0 0 0 0 rgba(91,140,255,.0)}
.ssorb i{position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(91,140,255,.0)}
.sayset[data-s="ready"] .ssorb i{border-color:rgba(91,140,255,.55);animation:sspulse 1.8s ease-out infinite}
.sayset[data-s="hearing"] .ssorb{box-shadow:0 0 0 8px rgba(91,140,255,.35),0 0 28px rgba(58,116,255,.9);transform:scale(1.06);transition:transform .15s}
.sayset[data-s="thinking"] .ssorb{opacity:.75;animation:ssthink 1s ease-in-out infinite alternate}
@keyframes sspulse{0%{transform:scale(.9);opacity:1}100%{transform:scale(1.35);opacity:0}}
@keyframes ssthink{from{transform:scale(.96)}to{transform:scale(1.03)}}
.ssmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.sstext{color:#fff;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sshint{color:rgba(255,255,255,.55);font-size:12px}
.sshf{flex:none;font-size:12px;font-weight:600;color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 12px;margin-right:6px;background:none}
.sshf.on{background:#fff;color:#0A1633;border-color:#fff}
@media (prefers-reduced-motion:reduce){.sayset .ssorb,.sayset .ssorb i{animation:none!important}}
/* L10: name a set, add a set, take one out */
.set .lab{background:none;border:0;padding:6px 0;text-align:left;width:64px;font:inherit;font-size:13px;color:var(--mute);cursor:pointer;text-decoration:underline dotted rgba(127,127,127,.5);text-underline-offset:4px}
.set .lab.tagged{font-weight:700;color:var(--blue);text-decoration:none}
body.dark .set .lab.tagged{color:#9CC0FF}
.set.warm{opacity:.78}
.setmenu{flex-wrap:wrap;margin:-2px 0 4px;padding:0 4px}
.setmenu .chip.del{color:#E5484D;border-color:rgba(229,72,77,.45)}
body.dark .setmenu .chip.del{color:#FF8A8D}
.addset{width:100%;min-height:52px;border:1.5px dashed var(--line);border-radius:14px;background:none;font:inherit;font-size:15px;font-weight:600;color:var(--blue);margin-top:8px}
body.dark .addset{border-color:rgba(255,255,255,.3);color:#fff}

/* L12: the bottom bar steps aside while typing */
body.typing .ssdock{display:none}
/* L12: mini player on every screen while Spotify plays */
.mini{position:fixed;left:50%;transform:translateX(-50%);bottom:96px;width:min(440px,calc(100% - 40px));z-index:6;display:flex;align-items:center;gap:4px;padding:8px 8px 8px 8px;background:rgba(10,22,51,.94);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:18px;box-shadow:0 12px 30px rgba(5,12,40,.35);overflow:hidden;color:#fff}
.mini[hidden]{display:none}
.mnow{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;text-align:left;padding:0;font:inherit}
.mart{width:40px;height:40px;border-radius:9px;overflow:hidden;flex:none;background:linear-gradient(135deg,#3A74FF,#0B1E5B);display:grid;place-items:center}
.mart img{width:100%;height:100%;object-fit:cover;display:block}
.mmeta{min-width:0;display:flex;flex-direction:column}
.mmeta b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmeta span{font-size:12px;color:rgba(255,255,255,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mbtn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:none;border:0;color:#fff;flex:none}
.mbtn.main{background:#fff;color:#0A1633}
.mbar{position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:2px;background:rgba(255,255,255,.15)}
.mbar i{display:block;height:100%;border-radius:2px;background:#fff}
body.hasmini main{padding-bottom:calc(300px + var(--safe-b))}
body.typing .mini{display:none}

/* L14: back to the lift from any screen mid-workout */
.backlift{position:sticky;top:calc(8px + var(--safe-t, 0px));z-index:7;display:flex;align-items:center;gap:12px;width:100%;margin:0 0 14px;padding:12px 16px;border:0;border-radius:18px;background:linear-gradient(135deg,#3A74FF,#1446D9 55%,#0B1E5B);color:#fff;text-align:left;font:inherit;box-shadow:0 10px 24px rgba(20,70,217,.35)}
.backlift span{display:flex;flex-direction:column;gap:1px}
.backlift b{font-size:16px;font-weight:700}
.backlift i{font-style:normal;font-size:12px;opacity:.75}

/* L15: the tab bar on every screen, the lift screen included */
body.hastabs main{padding-bottom:calc(120px + var(--safe-b))}
body.dark.hastabs .dock{bottom:calc(92px + var(--safe-b));margin-bottom:0;padding-bottom:12px}
body.dark.hastabs main{padding-bottom:calc(110px + var(--safe-b))}
body.dark .tabs{background:rgba(10,22,51,.92);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-color:rgba(255,255,255,.12);box-shadow:0 10px 30px rgba(0,0,0,.35)}
body.dark .tabs button{color:rgba(255,255,255,.65)}
body.dark .tabs button[aria-current=page]{color:#fff}
body.typing .tabs{display:none}

/* L16: edit the morning */
.medit{display:flex;flex-direction:column;gap:10px}
.merow{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.merow input[type=time]{width:122px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:0 8px;font:inherit;font-size:15px;font-weight:600;background:#fff}
.merow .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.merow input[type=text]{width:100%;min-height:38px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;font-size:15px;background:#fff}
.merow input[type=text]:first-child{font-weight:600}
.mebtns{display:flex;flex-direction:column;gap:4px}
.mebtns button{width:34px;height:30px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:15px;color:var(--ink,#0A1633)}
.mebtns .del{color:#E5484D;border-color:rgba(229,72,77,.4)}
.seg{display:flex;background:var(--paper2);border-radius:14px;padding:4px}
.seg button{flex:1;min-height:42px;border:0;border-radius:11px;background:none;font:inherit;font-weight:600;color:var(--mute)}
.seg button.on{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(13,26,64,.08)}
.addmorn{display:flex;flex-direction:column;gap:2px;text-align:left;width:100%;font:inherit}

/* L17: everything you did today */
.mrow.extra .col span{color:var(--blue)}
.addact .csheet input[type=text]{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font:inherit;font-size:16px;background:#fff}
.addact .aarow{display:flex;align-items:center;gap:10px}
.addact .aarow input{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 10px;font:inherit;font-size:16px;background:#fff}
.addact .aarow input[type=time]{width:132px}.addact .aarow input[type=number]{width:84px}
.addact{background:rgba(5,12,40,.45)}
.addact .chip{background:#fff;border:1px solid var(--line)}
.addact .btn.big{background:var(--blue);color:#fff;box-shadow:0 10px 24px rgba(21,89,245,.28)}
.addact .skip{color:var(--mute)}

/* L19: the full Spotify player. Dark, calm, one big cover, controls a thumb can hit mid-set. */
body.dark .np-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 10px}
.np-topr{display:flex;align-items:center;gap:8px}
.np-dev{display:inline-flex;align-items:center;gap:6px;max-width:170px;height:32px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#1ED760;font:600 12px/1 var(--sans,system-ui)}
.np-dev span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np{display:flex;flex-direction:column;gap:18px;padding:4px 0 22px}
.np-empty{align-items:center;text-align:center}
.np-art{width:100%;aspect-ratio:1;border-radius:20px;overflow:hidden;background:#1a1a1a;box-shadow:0 24px 60px rgba(0,0,0,.55);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.np-art.paused{transform:scale(.92)}
.np-art img{width:100%;height:100%;object-fit:cover;display:block}
.np-ph{width:100%;height:100%;display:grid;place-items:center;color:rgba(255,255,255,.35)}
.np-meta{display:flex;align-items:center;gap:12px}
.np-mt{flex:1;min-width:0}
.np-t{margin:0;font:700 22px/1.2 var(--sans,system-ui);color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.01em}
.np-by{margin:4px 0 0;font:500 14px/1.3 var(--sans,system-ui);color:rgba(255,255,255,.62);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-ic{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:rgba(255,255,255,.72);position:relative;-webkit-tap-highlight-color:transparent}
.np-ic:active{transform:scale(.9)}
.np-ic.on{color:#1ED760}
.np-ic.on::after{content:"";position:absolute;bottom:4px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#1ED760}
.np-ic.one::before{content:"1";position:absolute;top:8px;right:6px;font:700 9px/1 var(--sans,system-ui)}
.np-ic.big{width:56px;height:56px;color:#fff}
.np-ic.sm{width:36px;height:36px}
.np-pp{display:grid;place-items:center;width:72px;height:72px;border:0;border-radius:50%;background:#fff;color:#000;box-shadow:0 8px 24px rgba(0,0,0,.4);transition:transform .15s}
.np-pp:active{transform:scale(.94)}
.np-ctl{display:flex;align-items:center;justify-content:space-between}
.np-seekw{display:flex;flex-direction:column;gap:6px}
.np-times{display:flex;justify-content:space-between;font:500 11px/1 var(--mono,ui-monospace);color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.np-seek,.np-vol{--p:0%;-webkit-appearance:none;appearance:none;width:100%;height:28px;background:transparent;margin:0}
.np-seek::-webkit-slider-runnable-track,.np-vol::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#fff var(--p),rgba(255,255,255,.18) var(--p))}
.np-seek::-webkit-slider-thumb,.np-vol::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.np-seek::-moz-range-track,.np-vol::-moz-range-track{height:4px;border-radius:4px;background:rgba(255,255,255,.18)}
.np-seek::-moz-range-progress,.np-vol::-moz-range-progress{height:4px;border-radius:4px;background:#fff}
.np-volrow{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.55)}
.np-volrow[hidden]{display:none}
.np-note{align-self:center;font:600 13px/1 var(--sans,system-ui);color:#1ED760;text-decoration:none;padding:8px 0}
.np-segs{position:sticky;top:0;z-index:2;display:flex;gap:6px;padding:10px 0;background:transparent;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.np-segs button{flex:1;height:34px;border:0;border-radius:999px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.7);font:600 13px/1 var(--sans,system-ui)}
.np-segs button.on{background:#fff;color:#000}
.np-list{display:flex;flex-direction:column;padding-bottom:120px}
.np-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px 0;border:0;background:transparent;color:#fff;text-align:left;font:inherit}
.np-rmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:0;font:inherit}
.np-row.on .np-rt b{color:#1ED760}
.np-rart{flex:none;width:48px;height:48px;border-radius:8px;overflow:hidden;background:#1c1c1c;display:grid;place-items:center;color:rgba(255,255,255,.4)}
.np-rart img{width:100%;height:100%;object-fit:cover}
.np-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.np-rt b{font:600 15px/1.2 var(--sans,system-ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-rt span{font:500 13px/1.2 var(--sans,system-ui);color:rgba(255,255,255,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-row>svg{color:rgba(255,255,255,.35);flex:none}
.np-sub{margin:14px 0 4px;font:700 11px/1 var(--mono,ui-monospace);letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.45)}
.np-mute{color:rgba(255,255,255,.5);font:500 14px/1.4 var(--sans,system-ui);padding:14px 0}
.np-chead{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 0 10px}
.np-chead>b{flex:1;min-width:0;font:700 18px/1.2 var(--sans,system-ui);color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-cact{display:flex;gap:8px;width:100%}
.np-back{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:rgba(255,255,255,.7);font:600 13px/1 var(--sans,system-ui);padding:6px 0}
.np-pill{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;font:600 13px/1 var(--sans,system-ui);text-decoration:none}
.np-pill.main{background:#1ED760;border-color:#1ED760;color:#000}
.np-search input{width:100%;height:44px;border-radius:12px;border:0;padding:0 14px;background:rgba(255,255,255,.08);color:#fff;font:500 16px/1 var(--sans,system-ui)}
.np-search input::placeholder{color:rgba(255,255,255,.4)}
.np-sheetw{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.5);display:flex;align-items:flex-end}
.np-sheet{width:100%;max-height:70vh;overflow:auto;background:#161616;color:#fff;border-radius:20px 20px 0 0;padding:18px 20px calc(20px + env(safe-area-inset-bottom))}
.np-sheet .np-rart.dev{color:#1ED760}
.np-close{width:100%;height:44px;margin-top:10px;border:0;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font:600 15px/1 var(--sans,system-ui)}
@media (min-width:640px){.np-art{max-width:420px;align-self:center}}

/* L19: the Home Screen bar. Sits above the tab bar, only in Safari/Chrome, never in the installed app. */
.inudge{position:fixed;left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:18px;background:rgba(17,17,17,.94);color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);animation:inudge .4s cubic-bezier(.2,.8,.2,1)}
@keyframes inudge{from{transform:translateY(16px);opacity:0}}
.inudge img{border-radius:9px;flex:none}
.inudge-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.inudge-t b{font:600 14px/1.2 var(--sans,system-ui)}
.inudge-t span{font:500 12px/1.2 var(--sans,system-ui);color:rgba(255,255,255,.6)}
.inudge-go{flex:none;height:34px;padding:0 14px;border:0;border-radius:999px;background:#fff;color:#000;font:600 13px/1 var(--sans,system-ui)}
.inudge-x{flex:none;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:rgba(255,255,255,.55);font:400 22px/1 var(--sans,system-ui)}
body.hasmini .inudge{bottom:calc(164px + env(safe-area-inset-bottom))}

/* L22: Longevity design system v1 (Figma page 45) on the website app, so the web and the phone apps read as one product.
   Calm, warm, physical: mist background, white cards at 20, one blue accent, Rubik words, Plex Mono labels. */

html,body{background:var(--paper2);color:var(--ink)}
h1{font-size:34px;line-height:38px;font-weight:600;letter-spacing:-.015em}
.kick,.coachhead{font-size:11px;letter-spacing:.08em}
.card{border-radius:20px}
.card.line{border-radius:20px;padding:20px;background:#fff;border-color:var(--line)}
.card.soft{background:#fff}
.small{color:var(--body)}
.btn,.np-pill,.chip{border-radius:999px}
.btn{min-height:48px;font-weight:600;transition:transform .12s ease}
.btn:active,.np-pp:active,.chip:active{transform:scale(.97)}

/* L24: Steven, Nov 8: "it needs to be more fluid not in the way". The player fits above the tab bar on a phone (cover
   sized to the screen height), lists clear the bar, and screens settle in with a short, physical rise. */
.np-art{width:min(100%,36vh);align-self:center}
.np{gap:14px}
.np-segs{margin-top:4px}
.np-list{padding-bottom:calc(140px + var(--safe-b))}
main>*{animation:rise .32s cubic-bezier(.2,.8,.2,1) both}
main>*:nth-child(2){animation-delay:.03s}main>*:nth-child(3){animation-delay:.06s}main>*:nth-child(4){animation-delay:.09s}
@keyframes rise{from{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){main>*{animation:none}}

/* L25: the Workout OKR */
.okr .okhead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.okr .okhead h2{margin-top:4px}
.okr .krs{display:grid;gap:14px;margin:16px 0 14px}
.krow .kline{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
.krow .kline b{font-weight:600;font-size:15px;color:var(--ink,#0A1633)}
.krow .kline span{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--mute,#4A5570);white-space:nowrap}
.kbar{position:relative;height:8px;border-radius:999px;background:var(--line,#E8ECF5);overflow:visible}
.kbar i{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#1559F5;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.krow.done .kbar i{background:#16A34A}
.krow.off .kbar i{background:#DC5A28}
.krow.missing .kbar i{width:0!important}
.kbar em{position:absolute;top:-3px;width:2px;height:14px;border-radius:2px;background:#0A1633;opacity:.35}
.okacts{display:flex;gap:10px;align-items:center}
.okacts .btn{flex:1}
.okedit{display:grid;gap:10px;margin:10px 0}
.okrow{display:grid;grid-template-columns:1fr 92px 40px;gap:8px;align-items:center}
.okrow select,.okrow input,.okr-obj{width:100%;min-height:46px;border:1px solid var(--line,#E8ECF5);border-radius:14px;padding:0 12px;font:inherit;font-size:16px;background:#fff;color:#0A1633}
.okrow input.num{text-align:right;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.kbar i{transition:none}}

/* L26 · MetaLab pass. Progress fills in instead of appearing; numbers settle; taps answer. */
.ringwrap svg circle+circle{animation:rfill 1s var(--ease) both}
@keyframes rfill{from{stroke-dasharray:0 1000}}
.kbar i{animation:kfill .9s var(--ease) both;animation-delay:.12s}
@keyframes kfill{from{width:0}}
.btn,.chip,.ex,.tmore,.tabs a,.tabs button{transition:transform .12s var(--ease),opacity .12s}
.btn:active,.chip:active,.ex:active,.tmore:active,.tabs a:active,.tabs button:active{transform:scale(.97);opacity:.9}
@media (prefers-reduced-motion:reduce){.ringwrap svg circle+circle,.kbar i{animation:none}.btn:active,.chip:active,.ex:active{transform:none}}
.hero .small,.hero p.small{color:#D6E0FF}

/* Nov 9 · music in your own app */
.mapps{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.mapps a{text-decoration:none}
.player.mlinks{flex-wrap:wrap}
.player.mlinks .mapps{width:100%;margin-top:6px}
.mchip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-weight:600;font-size:14px}
.np-empty .mapps{justify-content:center;margin-top:18px}
.np-empty .np-by{white-space:normal;overflow:visible;text-overflow:clip;max-width:300px;margin:8px auto 0;line-height:1.45;text-align:center;animation:none;transform:none}
.np-empty .np-art{width:168px;height:168px;margin:12px auto 20px}
.mrow{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}

/* L28 · Healthy Years on Today */
.card.ytile,button.card.ytile{display:flex;flex-direction:row;align-items:center;gap:16px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;cursor:pointer}
.ytile .col{flex:1;display:flex;flex-direction:column;gap:2px}
.ytile .col b{color:var(--ink);font-size:16px}
.ytile .ringwrap b{font-size:20px;color:var(--ink)}

/* Nov 9 · the week on Today and the Week screen */
.wkcard .lift{margin-bottom:6px}
.wkrow{display:flex;align-items:center;gap:14px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;text-align:left;cursor:pointer;color:inherit;font:inherit}
.wkrow:first-of-type{border-top:0}
.wkrow .col{flex:1;display:flex;flex-direction:column}
.wkrow b{color:var(--ink);font-size:16px}
.wkdot{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:14px;font-weight:700;color:#fff;flex:none}
.wkrow.done .wkdot{background:var(--fuel);border-color:var(--fuel)}
.wkrow.now .wkdot{border-color:var(--blue);box-shadow:inset 0 0 0 5px #fff;background:var(--blue)}
.wkrow.now b{color:var(--blue)}
.wkday.now{border:2px solid var(--blue)}
.wkday.done{opacity:.75}
.wklist{margin:12px 0 14px;padding:0;list-style:none;counter-reset:w}
.wklist li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);counter-increment:w}
.wklist li:first-child{border-top:0}
.wklist li a{color:var(--ink);text-decoration:none;font-weight:500}
.wklist li a::before{content:counter(w) ". ";color:var(--mute);font-weight:400}
.wkday .lift .col{display:flex;flex-direction:column;gap:2px}
.wkcard{background:#fff;border:1px solid var(--line)}
/* L32: Longevity by CultureAI lockup A: CultureAI under the wordmark, right-aligned */
.lgw{display:inline-flex;flex-direction:column;align-items:flex-end;line-height:1}
.lgw > span:first-child{font-weight:700;font-size:21px;letter-spacing:-.02em;color:var(--ink)}
.lgby{display:inline-flex;align-items:center;gap:4px;margin-top:2px}
.lgby i{font-style:normal;font-weight:500;font-size:10px;color:var(--mute)}
.lgby img{height:14px;width:auto;display:block}
.lgby .on-dark{display:none}
body.dark .lgby .on-light{display:none}
body.dark .lgby .on-dark{display:block}
.lgv .lgw img{height:14px;width:auto}
.lgv.gatelogo .lgw > span:first-child{font-size:40px}
.lgv.gatelogo .lgby img{height:22px}
.lgv.gatelogo .lgby i{font-size:14px}
.gtop .lgw > span:first-child{font-weight:700;font-size:22px;letter-spacing:-.02em;color:#fff}
.gtop .lgby i{color:rgba(255,255,255,.7)}
.gtop .lgby img{width:auto;height:14px;border-radius:0;box-shadow:none}
body.dark .lgw > span:first-child{color:#fff}
body.dark .lgby i{color:rgba(255,255,255,.7)}

/* L34: devices through Junction */
.devcode{margin:10px 0 4px;padding:14px 16px;border-radius:14px;background:rgba(21,89,245,.06)}
.devcode ol{margin:6px 0 10px 18px;padding:0}
.devbig{font:600 30px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;margin:4px 0;color:#1559F5}
.placepick .gattr{flex-basis:100%;font-size:11px;margin-top:2px}

/* L37: connect your own calendar (Google, Outlook, iCloud) */
.calcon{border-top:0;padding-top:4px}
.calpicks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.calpick{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;font-weight:600;font-size:15px;background:var(--card,transparent);transition:border-color .15s,transform .15s}
.calpick:hover{border-color:currentColor}.calpick:active{transform:scale(.98)}
.calpick svg{opacity:.45;flex:none}
@media (max-width:420px){.calpicks{grid-template-columns:1fr}}

/* L38: Privacy · Terms under every screen */
.pfootwrap{display:flex;flex-direction:column;align-items:center;gap:2px}
.plegal{margin:0 0 6px;font-size:12px;line-height:1.4;text-align:center;opacity:.6}
.plegal a{color:inherit;text-decoration:none}.plegal a:hover{text-decoration:underline}
body.dark .plegal{color:#fff}

/* L42: steppers for the open set and the Undo toast (light lift screen) */
.stepbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 4px}
.stepg{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line,#E2E0D9);border-radius:16px;padding:6px}
.stepg span{font-size:13px;font-weight:600;color:var(--mute)}
.stepb{width:48px;height:48px;border-radius:12px;border:0;background:#EEF2FE;color:var(--blue,#1559F5);font-size:26px;font-weight:600;line-height:1}
.stepb:active{transform:scale(.96)}
.utoast{display:flex;align-items:center;gap:14px;justify-content:space-between}
.tundo{background:none;border:0;color:#86ADFF;font-weight:700;font-size:15px;padding:6px 4px}

/* L43: Last night (recovery from devices) */
.reco .recogrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 10px;margin-top:12px}
.reco .recogrid div{display:flex;flex-direction:column;gap:2px}
.reco .recogrid b{font-size:24px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.reco .recogrid b small{font-size:13px;font-weight:500;color:var(--mute);margin-left:2px}
.reco .recogrid span{font-size:12px;color:var(--mute)}
/* L47: the buy-links fold sits inside the devices card, so it drops the card padding and shows a chevron; device row buttons stay on one line */
details.fold.devbuy{margin-top:10px;border-top:1px solid var(--line)}
details.fold.devbuy>summary{padding:14px 0 4px;min-height:0;font-size:14px;font-weight:600;color:var(--blue,#1559F5);justify-content:space-between}
details.fold.devbuy>summary::after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-right:4px}
details.fold.devbuy[open]>summary::after{transform:rotate(-135deg)}
details.fold.devbuy .chips{padding-top:8px}
.card .lift>.chip{white-space:nowrap;flex-shrink:0}
details.fold.devbuy>:not(summary){margin-left:0;margin-right:0;padding-left:0;padding-right:0}
details.fold.devbuy>p{margin-top:10px}
/* L49: the Works with line on the sign-in screen */
.gate .gwith{margin:14px 0 0;font-size:13px;line-height:1.5;color:rgba(255,255,255,.78);letter-spacing:.01em}
.gate .gwith span{color:#fff;font-weight:600}

/* L52: a device that stopped sharing */
.small.warn{color:#B4441C;font-weight:600}
.dtrend .lift .col{display:flex;flex-direction:column;gap:2px;min-width:0}
.dtrend .lift .spark{flex-shrink:0;color:var(--blue,#1559F5)}

/* ---- L53 · v3 "soft light" (Figma: Longevity file, page 03 Mobile, L01–L22). Geist; warm paper; white cards without borders;
   pill buttons; one blue. Applies across the app; Today is rebuilt to L05. */
@font-face{font-family:Geist;src:url(/fonts/Geist-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Geist;src:url(/fonts/Geist-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Geist;src:url(/fonts/Geist-SemiBold.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Geist;src:url(/fonts/Geist-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
:root{--ink:#111114;--body:#45464D;--mute:#5F6068;--paper:#F6F5F1;--paper2:#ECEBE6;--line:#E6E4DD;--tint:#E8EEFE}
html,body{background:var(--paper);font-family:Geist,system-ui,sans-serif}
body.dark{background:#0A0A0B}
.card.line,.tcard,.ex,.set{background:#fff;border-color:transparent}
.card.line{border:0;border-radius:24px;padding:18px}
.card.soft{background:#fff;border-radius:24px}
.tcard{border:0;border-radius:24px}
.ex{border:0;border-radius:18px}
.card .lift + .lift{border-top-color:var(--line)}
h1{font-weight:600;letter-spacing:-.03em}
.v3glow{position:fixed;left:-115px;top:-300px;width:620px;height:620px;border-radius:50%;background:radial-gradient(closest-side,rgba(59,117,255,.22),rgba(59,117,255,.08) 55%,rgba(246,245,241,0));pointer-events:none;z-index:0}
main > *{position:relative;z-index:1}
.v3top{display:flex;justify-content:space-between;align-items:center;min-height:32px}
.v3date{font-size:15px;font-weight:500;color:var(--body)}
.v3top .avbtn{box-shadow:none}
.v3brief{display:flex;flex-direction:column;gap:16px;margin:14px 0 4px;align-items:flex-start}
.v3who{display:flex;align-items:center;gap:10px}
.v3orb{width:32px;height:32px;border-radius:50%;background:rgba(59,117,255,.14);display:grid;place-items:center}
.v3orb img{width:22px;height:22px}
.v3name{font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--body)}
.v3chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:#fff;font-size:15px;font-weight:500;color:var(--ink)}
.v3chip i{width:8px;height:8px;border-radius:50%;background:#0A7444}
.v3chip i.mid{background:#965800}.v3chip i.low{background:#B4441C}
.v3chev{color:#5F6068;font-size:17px;line-height:1}
.v3line{margin:0;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.03em;color:var(--ink);text-wrap:pretty}
.v3line .mskel{display:block;height:20px;border-radius:10px;margin:4px 0;background:linear-gradient(90deg,#ECEBE6,#F6F5F1,#ECEBE6);background-size:200% 100%;animation:sh 1.2s linear infinite}
.v3line .mskel.short{width:60%}
.v3hear{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 16px 0 10px;border-radius:999px;background:#fff;font-size:15px;font-weight:500;color:var(--ink)}
.v3play{width:28px;height:28px;border-radius:50%;background:var(--blue);display:grid;place-items:center}
.v3hear.on .v3play{animation:pulse 1s ease-in-out infinite}
.v3sess{background:#fff;border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:4px}
.v3sess h2{margin:0;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.03em}
.v3meta{margin:0;font-size:15px;line-height:20px;font-weight:500;color:var(--body)}
.v3sess .tmore{margin-top:8px}
.v3sess .list{margin-top:8px}
.v3sess .ex{background:var(--paper)}
.v3heads{background:#fff;border-radius:18px;padding:14px;display:flex;align-items:center;gap:12px}
.v3heads > i{width:8px;height:8px;border-radius:50%;background:#965800;flex:none}
.v3heads p{margin:0;flex:1;font-size:15px;line-height:20px;font-weight:500;color:var(--body)}
.v3ghost{height:48px;padding:0 16px;border-radius:999px;background:var(--paper2);color:#1450E0;font-size:15px;font-weight:500;flex:none}
.v3start{width:100%;height:60px;border-radius:999px;background:var(--blue);color:#fff;font-size:17px;font-weight:600;letter-spacing:-.01em;box-shadow:0 14px 30px -16px rgba(21,89,245,.8)}
.v3start.done{background:#E7F7EE;color:#15803D;box-shadow:none}
.v3start:active{transform:scale(.99)}
.tabs.v3{border:0;border-radius:32px;padding:10px 20px;background:#fff;box-shadow:0 10px 30px rgba(17,17,20,.08);align-items:center}
.tabs.v3 button{font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--body);gap:4px;min-width:56px}
.tabs.v3 button .tdot{width:4px;height:4px;border-radius:50%;background:transparent}
.tabs.v3 button[aria-current=page]{color:var(--ink)}
.tabs.v3 button[aria-current=page] .tdot{background:var(--blue)}
.tabs.v3 .capbtn span{width:64px;height:64px;margin-top:-20px;box-shadow:0 12px 26px rgba(21,89,245,.35);border:0}
.tabs.v3 .capbtn span i{width:14px;height:14px;border-radius:50%;background:#fff;display:block}

/* ---- L54 · v3 sign-up (Figma L01–L04) */
body.v3full .tabs,body.v3full .pfootwrap{display:none}
.v3setup{min-height:calc(100dvh - 140px);display:flex;flex-direction:column;gap:16px;padding-top:40px}
.v3orbbig{position:relative;width:140px;height:140px;margin:60px auto 28px;display:grid;place-items:center}
.v3orbbig i{position:absolute;inset:0;border-radius:50%;background:rgba(59,117,255,.12);animation:v3breathe 3.2s ease-in-out infinite}
.v3orbbig i:nth-child(2){inset:14px;background:rgba(59,117,255,.16);animation-delay:.4s}
.v3orbbig i:nth-child(3){inset:28px;background:rgba(59,117,255,.22);animation-delay:.8s}
.v3orbbig span{position:relative;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#4D86FF,#1559F5 70%);display:grid;place-items:center;box-shadow:0 12px 30px rgba(21,89,245,.35)}
.v3orbbig span img{width:44px;height:44px;filter:brightness(0) invert(1)}
@keyframes v3breathe{50%{transform:scale(1.06);opacity:.8}}
@media (prefers-reduced-motion:reduce){.v3orbbig i{animation:none}}
.v3orbsm{width:56px;height:56px;border-radius:50%;margin:8px auto 4px;background:radial-gradient(circle at 35% 30%,#4D86FF,#1559F5 70%);display:grid;place-items:center;box-shadow:0 0 0 10px rgba(59,117,255,.12),0 0 0 20px rgba(59,117,255,.07)}
.v3orbsm img{filter:brightness(0) invert(1)}
.v3hello{text-align:center;font-size:36px;line-height:40px;font-weight:600;letter-spacing:-.04em;margin:0}
.v3h{font-size:28px;line-height:32px;font-weight:600;letter-spacing:-.035em;margin:8px 0 0}
.v3sub{text-align:center;margin:0;font-size:16px;line-height:23px;color:var(--body);padding:0 6px}
.v3sub.left{text-align:left;padding:0}
.v3dock{margin-top:auto;display:flex;flex-direction:column;gap:10px;align-items:stretch;padding-bottom:12px}
.v3link{align-self:center;font-size:15px;font-weight:500;color:var(--body);padding:10px}
.v3start.talkbtn{display:flex;align-items:center;justify-content:center;gap:10px;touch-action:none;user-select:none;-webkit-user-select:none}
.v3start.talkbtn i{width:10px;height:10px;border-radius:50%;background:#fff}
.v3start.talkbtn.rec{background:#0F46C9}
.v3start.talkbtn.rec i{animation:pulse .9s ease-in-out infinite}
.v3typed{display:flex;flex-direction:column;gap:10px}
.v3say{width:100%;border:0;border-radius:20px;background:#fff;padding:16px;font-size:16px;line-height:22px;resize:none;font-family:inherit}
.v3quote{margin:6px 0 0;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.03em}
.v3kick{margin:6px 0 0;font-size:13px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
.v3heard{display:flex;flex-wrap:wrap;gap:8px}
.v3heard span{display:inline-flex;align-items:center;gap:6px;background:var(--paper2);border-radius:999px;padding:10px 14px;font-size:15px;font-weight:500}
.v3heard i{width:6px;height:6px;border-radius:50%;background:var(--blue)}
.v3heard em{font-style:normal;color:var(--mute);font-size:13px}
.v3ask{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.v3q{display:flex;gap:12px;align-items:center;background:#fff;border-radius:18px;padding:16px}
.v3q i{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#4D86FF,#1559F5);flex:none}
.v3q b{font-size:16px;line-height:21px;font-weight:600}
.v3opts{display:flex;flex-wrap:wrap;gap:8px}
.v3opt{background:#fff;border-radius:999px;padding:12px 16px;font-size:15px;font-weight:500;color:var(--ink);text-decoration:none}
.v3opt.on{background:var(--blue);color:#fff}
.v3in{width:100%;height:48px;border:0;border-radius:999px;background:#fff;padding:0 16px;font-size:15px}
.v3cons{background:#fff;border-radius:22px;padding:6px 16px}
.v3con{display:flex;align-items:center;gap:12px;padding:12px 0}
.v3con + .v3con{border-top:1px solid var(--line)}
.v3let{width:36px;height:36px;border-radius:10px;background:var(--paper2);display:grid;place-items:center;font-weight:600;flex:none}
.v3con .col{flex:1;min-width:0;display:flex;flex-direction:column}
.v3con b{font-size:16px;font-weight:600}
.v3con .col span{font-size:13px;color:var(--body)}
.v3sw{width:44px;height:28px;border-radius:999px;background:#E2E0D9;position:relative;flex:none;transition:background .2s}
.v3sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#3A3B40;transition:transform .2s,background .2s}
.v3sw.on{background:var(--blue)}
.v3sw.on i{transform:translateX(16px);background:#fff}
.v3code{background:#fff;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.v3code .devbig{margin:0}
.v3more .v3opts{margin-top:4px}
.v3week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.v3week span{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border-radius:12px;padding:10px 2px;font-size:12px;font-weight:600;color:var(--mute)}
.v3week span.on{background:var(--paper2);color:var(--ink)}
.v3week span em{font-style:normal;font-weight:500;font-size:12px;color:var(--mute)}
.v3week span i{width:6px;height:6px;border-radius:50%;background:#D5D3CC}
.v3week span.on i{background:var(--blue)}
.v3week span.sk{height:72px;background:linear-gradient(90deg,#ECEBE6,#F6F5F1,#ECEBE6);background-size:200% 100%;animation:sh 1.2s linear infinite}
.v3why{background:#fff;border-radius:18px;padding:14px 16px}
.v3why ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:20px;color:var(--ink)}
.v3why li::marker{color:var(--blue)}
.v3legal{margin:0;text-align:center;font-size:13px;line-height:18px;color:var(--body)}
.v3legal a{color:var(--ink)}
.v3orbbig span,.v3orbsm{color:#fff;font-weight:600;font-size:34px;letter-spacing:-.02em}
.v3orbsm{font-size:24px}

/* ---- L55 · live Denzel */
.clive{display:flex;align-items:center;gap:14px;width:100%;background:#fff;border-radius:22px;padding:14px 16px;text-align:left;margin:4px 0 10px;box-shadow:0 8px 24px -16px rgba(21,89,245,.6)}
.clive b{display:block;font-size:16px;font-weight:600}
.clive span:not(.clorb){font-size:13px;color:var(--body)}
.clorb{width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-weight:600;font-size:18px;background:radial-gradient(circle at 35% 30%,#4D86FF,#1559F5 70%);box-shadow:0 0 0 6px rgba(59,117,255,.14)}
.live-wrap{position:fixed;inset:0;z-index:60;background:var(--paper);display:flex;justify-content:center;animation:mrise .25s ease both}
.live-wrap.out{opacity:0;transition:opacity .2s}
.lbody{position:relative;z-index:1;width:min(480px,100%);display:flex;flex-direction:column;align-items:center;gap:14px;padding:calc(48px + var(--safe-t)) 20px calc(24px + var(--safe-b))}
.lorb{position:relative;width:180px;height:180px;margin:24px 0 8px;display:grid;place-items:center}
.lorb i{position:absolute;inset:0;border-radius:50%;background:rgba(59,117,255,.12);animation:v3breathe 3.2s ease-in-out infinite}
.lorb i:nth-child(2){inset:20px;background:rgba(59,117,255,.16);animation-delay:.4s}
.lorb i:nth-child(3){inset:40px;background:rgba(59,117,255,.22);animation-delay:.8s}
.lorb.talking i{animation-duration:.9s}
.lorb span{position:relative;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:40px;font-weight:600;background:radial-gradient(circle at 35% 30%,#4D86FF,#1559F5 70%);box-shadow:0 14px 34px rgba(21,89,245,.35)}
.lorb.off i{animation:none;opacity:.4}
.lstatus{margin:0;font-size:17px;font-weight:600;color:var(--ink)}
.llog{flex:1;width:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;overflow:hidden;min-height:120px}
.ll{margin:0;font-size:15px;line-height:20px;padding:10px 14px;border-radius:16px;max-width:88%}
.ll.dz{background:#fff;align-self:flex-start}
.ll.me{background:var(--paper2);align-self:flex-end}
.ll.note{align-self:center;font-size:13px;color:#0A7444;background:#E7F7EE}
.lend{margin-top:auto}

/* ---- L57 · more from Oura */
.omore{display:flex;flex-direction:column;gap:2px;margin:12px 0 4px}
.orow{display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:9px 0;border-top:1px solid rgba(17,17,20,.06)}
.orow span{font-size:14px;color:var(--body)}
.orow b{font-size:14px;font-weight:600;text-align:right}
.orow em{grid-column:1/-1;font-style:normal;font-size:12.5px;color:var(--body);margin-top:2px}

/* ---- L60 · use my own plan */
.planway{margin:0 0 16px}
.v3pick{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:4px}
.v3ownplan{display:flex;flex-direction:column;gap:12px;width:100%}
.v3ownplan .v3say{min-height:150px}
.opthumb{display:flex;align-items:center;gap:12px}
.opthumb img{width:64px;height:64px;object-fit:cover;border-radius:14px}
.v3opt.on{background:var(--ink);color:#fff}
.dock.dock2{display:flex;flex-direction:column;gap:8px}

/* ---- L61 · the whole week, with places */
.pplace{display:grid;grid-template-columns:16px 1fr;column-gap:6px;row-gap:2px;align-items:start;margin:6px 0 2px}
.pplace svg{margin-top:2px}
.pplace.mute{display:block}
.pplace em{font-style:normal;color:var(--body)}
.pplace a{grid-column:2;justify-self:start;font-size:12px;color:var(--body);text-decoration:underline}
.pacts .pact{padding:12px 0;border-top:1px solid rgba(17,17,20,.06)}
.pacts .pact:first-of-type{border-top:0}
.v3meta.ok{color:#0A7444}
.pform.ownp .dock{margin-bottom:0}   /* a short form: the footer sits under the button, not behind it */
/* L62: Apple Music player controls */
.np-ctl{display:flex;align-items:center;justify-content:center;gap:28px;margin:18px 0 8px}
/* L64: Find a food (fatsecret) and the barcode scanner */
.ffind .fsearch{display:flex;align-items:center;gap:8px;background:var(--paper2);border:1px solid var(--line);border-radius:14px;padding:4px 6px 4px 12px}
.ffind .fsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);padding:10px 0;outline:none}
.ffind .fsi{display:grid;place-items:center}
.ffind .fattr{text-decoration:none}
.fres{display:flex;flex-direction:column;gap:2px}
.frow{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 2px;font:inherit;color:var(--ink);cursor:pointer}
.frow:last-child{border-bottom:0}
.frow .col{display:flex;flex-direction:column;gap:2px;min-width:0}
.frow .col b{font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frow .col span{font-size:13px;color:var(--mute)}
.frow .fk{display:flex;flex-direction:column;align-items:flex-end;font-weight:600;font-size:14px;flex:none}
.frow .fk small{font-weight:400;font-size:12px;color:var(--mute)}
.fpick{display:flex;flex-direction:column;gap:12px}
.fpick:empty{display:none}
.fhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.fhead .col{display:flex;flex-direction:column;gap:2px}.fhead .col b{font-size:17px;font-weight:600}.fhead .col span{font-size:13px;color:var(--mute)}
.frowctl{display:flex;gap:10px;align-items:center}
.frowctl select{flex:1;min-width:0;font:inherit;font-size:15px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.fstep{display:flex;align-items:center;gap:6px}.fstep .famt{min-width:34px;text-align:center;font-size:16px}
.pill.warn{background:#FFF1E8;color:var(--ember)}
.scanov{position:fixed;inset:0;z-index:1000;background:#000;display:flex;flex-direction:column}
.scanov video{flex:1;width:100%;object-fit:cover}
.scanov .scanbox{position:absolute;left:12%;right:12%;top:34%;height:22%;border:2px solid rgba(255,255,255,.9);border-radius:18px;box-shadow:0 0 0 2000px rgba(0,0,0,.35)}
.scanov .scanbar{position:absolute;left:0;right:0;bottom:0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;color:#fff;background:linear-gradient(180deg,transparent,rgba(0,0,0,.7))}
