﻿/* Shared styles for every StrengthlyAI page.
   Theme: dark "beach club" look over a video background (sky blue, white, charcoal),
   tall condensed capitals (Oswald) for headings and buttons, Roboto for reading. */
:root{
  --bg:#0E1114; --solid:#15191E; --ink:#FFFFFF; --steel:#B4BCC5; --line:rgba(255,255,255,.2);
  --card:rgba(16,20,25,.8);
  --blue:#5FA8E8; --blue-2:#7FBAEE; --blue-3:#A9D2F5; --on-blue:#0E1114;
  --red:#FF6B6B; --yellow:#5FA8E8; --green:#5FA8E8;
  --display:"Oswald","Arial Narrow","Roboto Condensed",system-ui,sans-serif;
  --body:"Roboto",system-ui,-apple-system,"Segoe UI","Noto Sans",sans-serif;
  color-scheme:dark;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:inherit}
/* Netlify's floating "Powered by Netlify" badge covers the bottom menu on phones */
#nl-badge-frame{display:none!important}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--body);
  font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
.wrap{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:20px clamp(20px,5vw,64px) 48px}
/* Header and landing use the full width; everything you read sits in a comfortable column. */
#quiz,#email,#results,#login,#plan,#loading,.wrap>footer{max-width:720px;margin-inline:auto}
.wrap:has(#landing:not([hidden]))>footer{max-width:none}
header.top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 0 18px}
.lang{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--steel)}
.lang select{font:inherit;font-size:15px;font-weight:500;color:var(--ink);background:rgba(16,20,25,.7);
  border:1px solid var(--line);border-radius:0;padding:8px 10px;min-height:42px}
h1,h2,h3,.page-h,.sec-h,.btn,.tile b,.price,.label{font-family:var(--display)}
h1{font-size:clamp(38px,7.5vw,72px);line-height:1;font-weight:700;text-transform:uppercase;letter-spacing:.01em;margin:28px 0 18px}
h2{font-size:clamp(25px,5vw,36px);line-height:1.1;font-weight:600;text-transform:uppercase;letter-spacing:.01em;margin:8px 0 18px}
h3{font-size:20px;font-weight:500;letter-spacing:.01em;margin:0 0 6px}
p{max-width:60ch;margin:0 0 14px}
.lede{font-size:19px;color:var(--steel)}
/* Buttons: white outline like Blue Marlin's "Book now"; .cta is the sky-blue main action. */
.btn{appearance:none;background:transparent;color:var(--ink);border:2px solid var(--ink);border-radius:0;
  font-weight:500;font-size:19px;text-transform:uppercase;letter-spacing:.05em;padding:11px 24px;cursor:pointer;min-height:50px;
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s,border-color .15s}
.btn:hover{background:var(--ink);color:var(--bg)}
.btn.cta{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.btn.cta:hover{background:var(--ink);border-color:var(--ink)}
.btn:disabled,.linkbtn:disabled{opacity:.55;cursor:wait}
.linkbtn{appearance:none;border:0;background:none;padding:4px 0;font:inherit;font-size:15px;font-weight:500;color:var(--blue);text-decoration:underline;cursor:pointer}
a{color:inherit}
.btn.ghost{color:var(--steel);border-color:var(--line)}
.btn.ghost:hover{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.btn:focus-visible,.opt:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.ai{margin:26px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ai small{display:block;color:var(--steel);font-size:15px}
.how{margin-top:30px}
.how ol{padding-inline-start:22px;margin:0}
.how li{margin-bottom:8px}
.bar-wrap{margin:6px 0 22px}
.bar-wrap svg{width:100%;height:auto;display:block}
.step-count{font-size:14px;color:var(--steel);margin-top:4px}
.opts{display:grid;gap:10px;margin:8px 0 22px}
.opt{appearance:none;text-align:start;font:inherit;font-weight:600;color:var(--ink);
  background:var(--card);border:2px solid var(--line);border-radius:6px;padding:15px 16px;cursor:pointer;min-height:54px}
.opt:hover{border-color:var(--steel)}
.opt[aria-pressed="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.opt small{display:block;font-weight:400;color:var(--steel);font-size:14px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.nav{display:flex;justify-content:space-between;gap:10px}
input[type=number]{font:inherit;font-size:22px;font-weight:700;width:150px;padding:12px 14px;border-radius:6px;
  border:2px solid var(--line);background:var(--card);color:var(--ink)}
.seg{display:inline-flex;border:2px solid var(--line);border-radius:6px;overflow:hidden;direction:ltr}
.seg button{appearance:none;border:0;background:var(--card);color:var(--ink);font:inherit;font-weight:700;padding:12px 16px;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.hint{font-size:15px;color:var(--steel)}
.error{color:var(--red);font-size:15px;min-height:22px}
.summary{font-size:15px;color:var(--steel);margin-bottom:22px}
.note{border-inline-start:4px solid var(--yellow);padding:10px 14px;background:var(--card);margin:0 0 20px;font-size:15px}
.note.warn{border-color:var(--red)}
.day{background:var(--card);border:1px solid var(--line);border-radius:6px;margin-bottom:12px;padding:16px}
.day header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.day .focus{font-size:14px;color:var(--steel)}
.extras-h{margin:22px 0 2px}
.day.extra{border-style:dashed}
.day.extra .hint{margin:0 0 6px}
.day.extra .ex .sr{white-space:normal}
.day.extra .ex.has-img b,.day.extra .ex.has-img .sr,.day.extra .ex.has-img .how-to{grid-column:2/-1}
.day.extra .ex.has-img .ex-pic{grid-row:1/4}
.ex{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:9px 0;border-top:1px solid var(--line)}
.ex:first-of-type{border-top:0}
.ex.has-img{grid-template-columns:96px 1fr auto;align-items:start}
.ex.has-img b{grid-column:2}
.ex.has-img .sr{grid-column:3}
.ex.has-img .how-to{grid-column:2/-1}
.ex-pic{grid-column:1;grid-row:1/3;position:relative;width:96px;aspect-ratio:4/3;padding:0;margin:0;border:1px solid var(--line);background:rgba(255,255,255,.06);cursor:zoom-in;overflow:hidden}
.ex-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ex-pic img.b{animation:exflip 2.6s infinite}
@keyframes exflip{0%,42%{opacity:0}50%,92%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.ex-pic img.b{animation:none;opacity:0}}
.ex.zoom{grid-template-columns:0 1fr auto;column-gap:0}
.ex.zoom .sr{margin-inline-start:12px}
.ex.zoom .ex-pic{grid-column:1/-1;grid-row:3;width:100%;max-width:480px;margin-top:6px;cursor:zoom-out}
.ex .sr{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr}
.ex .how-to{grid-column:1/-1;font-size:14px;color:var(--steel)}
.checks{display:grid;gap:8px;margin:8px 0 22px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.checkopt{display:flex;gap:10px;align-items:center;background:var(--card);border:2px solid var(--line);border-radius:6px;padding:10px 12px;cursor:pointer;font-weight:600;min-height:52px;line-height:1.25;font-size:16px}
.checkopt:has(input:checked){border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.checkopt input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--blue)}
.hbox .checks{margin:8px 0 14px}
.hgrp{margin:6px 0 -2px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,rgba(255,255,255,.65))}
.hother textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:10px 12px;margin:6px 0 22px;background:rgba(255,255,255,.06);border:1px solid var(--line);color:var(--ink);resize:vertical}
.hother textarea::placeholder{color:rgba(255,255,255,.4)}
.sec{border-top:2px solid var(--line);margin:0}
.sec:last-of-type{border-bottom:2px solid var(--line)}
.sec>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:18px 2px;min-height:56px}
.sec>summary::-webkit-details-marker{display:none}
.sec>summary::after{content:"";flex:none;width:11px;height:11px;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg);margin:-6px 6px 0}
.sec[open]>summary::after{transform:rotate(-135deg);margin-top:6px}
.sec>summary:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.sec-t{flex:1;min-width:0;display:grid;gap:2px}
.sec-h{font-size:clamp(21px,4.6vw,27px);line-height:1.15;font-weight:800;font-stretch:108%}
.sec-sub{font-size:14px;color:var(--steel);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sec[open]>summary .sec-sub{white-space:normal}
.sec[open]>summary .sec-sub:not(.keep){display:none}
.sec-body{padding:0 0 18px}
.page-h{font-size:clamp(28px,6vw,40px);line-height:1.08;font-weight:900;font-stretch:112%;letter-spacing:-.01em;margin:18px 0 14px}
.profilebox{background:var(--card);border:2px solid var(--blue);border-radius:8px;padding:18px 16px 20px;margin:0 0 20px}
.profilebox h2{margin:0 0 6px}
.profilebox h3{margin:18px 0 6px}
.profilebox select{font:inherit;font-size:16px;font-weight:600;color:var(--ink);background:var(--card);border:2px solid var(--line);border-radius:6px;padding:10px;min-height:46px;width:100%;max-width:420px}
.profilebox label.q{display:block;font-weight:700;margin:16px 0 6px}
.profilebox .checks{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.profilebox .checkopt{font-size:15px;padding:10px}
.weeknav{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin:8px 0 14px}
.weeknav .page-h{text-align:center;margin:0}
.weeknav .btn{font-size:15px;padding:10px 14px;min-height:44px}
.weeknav .arrow{font-size:26px;line-height:1;padding:6px 16px;min-width:52px}
[dir="rtl"] .weeknav .arrow{transform:scaleX(-1)}
.toplink{font-size:15px;font-weight:700;color:var(--blue);text-decoration:none;white-space:nowrap}
.mealday{border:1px solid var(--line);border-radius:6px;background:var(--bg);margin:0 0 10px}
.mealday>summary{cursor:pointer;padding:12px 14px;font-weight:800;display:grid;gap:2px;list-style:none}
.mealday>summary::-webkit-details-marker{display:none}
.mealday>summary .mline{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mealday[open]>summary .mline{display:none}
.mealday[open]{padding:0 10px 4px}
.mealday[open]>summary{padding:12px 4px}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 8px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:12px 10px;text-align:center}
.tile b{display:block;font-size:26px;font-weight:900;font-stretch:110%;line-height:1.1;font-variant-numeric:tabular-nums}
.tile span{font-size:13px;color:var(--steel)}
.tile small{display:block;font-size:14px;font-weight:700;margin-top:2px}
@media (max-width:480px){.tiles{grid-template-columns:repeat(2,1fr)}}
.meal header{flex-direction:column;gap:2px}
.mline{font-size:14px;color:var(--steel);font-variant-numeric:tabular-nums}
.ing{list-style:none;margin:6px 0 8px;padding:0}
.ing li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line)}
.ing li:first-child{border-top:0}
.ing b{white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr}
.meal .how-to{font-size:15px;color:var(--steel);margin:0}
.meal ol.how-to{padding-inline-start:22px}.meal ol.how-to li{margin:0 0 6px;padding-inline-start:4px}
.meal ol.how-to li::marker{color:var(--blue);font-weight:700}
.cookguide{margin:10px 0 0;border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--solid)}
.cookguide summary{cursor:pointer;font-weight:600;color:var(--blue)}
.cookguide ul{margin:6px 0 0;padding-inline-start:18px;font-size:14px;color:var(--steel)}.cookguide li{margin:0 0 6px}
.cookguide .hint{font-size:13px;margin:8px 0 4px}
.setguide{margin:0 0 12px}
.ex details.exhow summary{cursor:pointer;color:var(--blue);font-weight:600;font-size:14px}
.ex details.exhow ol{margin:6px 0 0;padding-inline-start:20px}.ex details.exhow li{margin:0 0 5px}
.ex details.exhow li::marker{color:var(--blue);font-weight:700}
.daytotal{margin:4px 0 16px}
.shop{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:6px 16px 12px;margin-bottom:12px}
.shop h3{font-size:16px;margin:14px 0 4px}
.shopitem{display:flex;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line);cursor:pointer}
.shopitem input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--blue)}
.shopitem span{flex:1}
.shopitem b{white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr}
.shopitem:has(input:checked) span,.shopitem:has(input:checked) b{text-decoration:line-through;color:var(--steel)}
.locked{margin-top:28px;border:2px dashed var(--line);border-radius:6px;padding:20px}
.locked ul{margin:10px 0 18px;padding-inline-start:20px}
.locked li{margin-bottom:6px}
.price{font-size:30px;font-weight:900;font-stretch:110%}
.price small{font-size:15px;font-weight:500;color:var(--steel)}
footer{margin-top:40px;font-size:13px;color:var(--steel);border-top:1px solid var(--line);padding-top:14px}
dialog{border:0;border-radius:8px;padding:22px;max-width:420px;background:var(--card);color:var(--ink)}
dialog::backdrop{background:rgba(0,0,0,.5)}
.field{display:grid;gap:6px;margin:10px 0 14px;font-weight:600}
.field input{font:inherit;font-size:18px;padding:13px 14px;border:2px solid var(--line);border-radius:6px;background:var(--card);color:var(--ink);width:100%;max-width:420px;direction:ltr}
#codeIn{letter-spacing:.3em;font-size:24px;font-weight:800;max-width:220px;font-variant-numeric:tabular-nums}
.check{display:flex;gap:10px;align-items:flex-start;margin:6px 0 10px;font-size:15px;cursor:pointer;max-width:60ch}
.check input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:var(--blue)}
.small{font-size:13px;color:var(--steel)}
[hidden]{display:none!important}
@media (prefers-reduced-motion:no-preference){
  .plate-new{animation:drop .28s ease-out}
  @keyframes drop{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
}

/* ---------- Theme: video background, logo, landing ---------- */
/* Background film: clips cut on a steady beat behind everything, under a dark tint.
   The landing page uses a lighter tint; other screens a heavier one so text stays easy to read. */
.bgv{position:fixed;inset:0;z-index:0;overflow:hidden;background:var(--bg);--tint:.4}
.bgv video,.bgv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .16s linear}
.bgv video.on,.bgv img.on{opacity:1}
.bgv::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,10,13,.55),rgba(8,10,13,0) 70%),rgba(8,10,13,var(--tint))}
body.deep .bgv{--tint:.8}
[dir="rtl"] .bgv::after{background:linear-gradient(270deg,rgba(8,10,13,.55),rgba(8,10,13,0) 70%),rgba(8,10,13,var(--tint))}

/* Logo: F2 badge + stacked name with a dotted line (like Blue Marlin's). */
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);direction:ltr}
.brand .badge{width:58px;height:58px;flex:none}
.wordmark{display:grid;font-family:"Oswald","Arial Narrow",sans-serif;text-transform:uppercase;line-height:.9;font-size:25px;letter-spacing:.02em}
.wordmark b:first-child{color:var(--blue);font-weight:700}
.wordmark b:last-of-type{font-weight:700;letter-spacing:.06em;color:var(--ink)}
.wordmark .dots{height:6px;margin-top:6px;background:radial-gradient(circle,var(--blue) 2.4px,transparent 2.9px) 0 0/10px 6px repeat-x}
@media (max-width:480px){.brand .badge{width:44px;height:44px}.wordmark{font-size:19px}.lang>span{display:none}}

/* Top-right "My plan": small outlined button. */
.toplink{font-family:var(--display);font-size:15px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:var(--ink);
  text-decoration:none;white-space:nowrap;border:2px solid var(--ink);padding:7px 14px;min-height:42px;display:inline-flex;align-items:center}
.toplink:hover{background:var(--ink);color:var(--bg)}
header.top .row{align-items:center}

/* Blue Marlin-style section label: small bold capitals over a thin white line. */
.label,.ai b,.how h3{display:block;font-family:var(--display);text-transform:uppercase;font-weight:600;font-size:16px;letter-spacing:.05em;
  border-bottom:2px solid var(--ink);padding-bottom:4px;margin:0 0 10px;max-width:560px}
#landing{min-height:calc(100svh - 150px);display:flex;flex-direction:column;justify-content:center;padding:10px 0 20px}
#landing h1{max-width:13ch;text-shadow:0 2px 24px rgba(0,0,0,.35)}
#landing .lede{color:#E6EBF0;max-width:46ch}
.ai{border:0;padding:0;margin:34px 0 0;max-width:560px}
.ai small{font-size:16px;color:#E6EBF0}
.how{margin-top:26px;max-width:560px}
.how li{font-size:17px;color:#E6EBF0}

/* Cards and inputs sit on see-through dark panels over the film. */
.day,.tile,.shop,.opt,.checkopt,.note,.profilebox,.locked,.seg button,.field input,input[type=number],.profilebox select{
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.field input,input[type=number],.profilebox select{background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:0;color:var(--ink)}
input::placeholder{color:rgba(255,255,255,.4)}
.seg{border:1px solid var(--line);border-radius:0}
.seg button{background:rgba(16,20,25,.7)}
.opt,.checkopt{border-width:1px;border-radius:0}
.opt[aria-pressed="true"],.checkopt:has(input:checked){border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.day,.tile,.shop,.mealday{border-radius:2px}
.profilebox{border-radius:2px}
.note{background:var(--card)}
.sec{border-top-color:var(--line)}
.sec:last-of-type{border-bottom-color:var(--line)}
.sec-h{font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.page-h{font-weight:600;text-transform:uppercase}
.tile b{font-weight:600}
.price{font-weight:600}
dialog{background:var(--solid);border:1px solid var(--line)}
footer{position:relative;z-index:1}

/* ---------- Legal pages (terms, refunds, privacy) ---------- */
.legal{max-width:800px}
.legal h1{font-size:clamp(34px,6vw,52px);margin:18px 0 6px}
.legal h2{font-size:22px;margin:32px 0 10px;border-bottom:1px solid var(--line);padding-bottom:6px}
.legal p,.legal li{color:#E6EBF0;max-width:72ch}
.legal li{margin-bottom:8px}
.legal a{color:var(--blue)}
.legal-home{font-family:"Oswald",sans-serif;text-transform:uppercase;font-size:22px;text-decoration:none;color:var(--ink)!important;letter-spacing:.03em}
.legal-home b:first-child{color:var(--blue)}
.legal-table{width:100%;border-collapse:collapse;font-size:15px;margin:6px 0 14px}
.legal-table th,.legal-table td{text-align:start;vertical-align:top;padding:10px 8px;border-bottom:1px solid var(--line)}
.legal-table th{font-family:var(--display);text-transform:uppercase;font-weight:500;letter-spacing:.04em;color:var(--steel)}
@media (max-width:600px){.legal-table,.legal-table tbody,.legal-table tr,.legal-table td{display:block}.legal-table tr:first-child{display:none}
  .legal-table tr{border-bottom:1px solid var(--line);padding:8px 0}.legal-table td{border:0;padding:3px 0}.legal-table td:first-child{font-weight:700;color:var(--ink)}}
.legal footer a{color:var(--steel)}

/* ---------- Other scripts: matching fonts (loaded by fonts.mjs) ---------- */
:root:lang(ar){--display:"Cairo","Noto Kufi Arabic","Segoe UI",sans-serif;--body:"Cairo","Noto Sans Arabic","Segoe UI",sans-serif}
:root:lang(hi){--display:"Teko","Oswald","Noto Sans Devanagari",sans-serif;--body:"Hind","Noto Sans Devanagari",sans-serif}
:root:lang(zh){--display:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;--body:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif}
:root:lang(ja){--display:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;--body:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif}
/* Letter spacing breaks joined Arabic letters. */
:lang(ar) *{letter-spacing:0!important}
/* Arabic and Hindi have marks above and below the line: give headings room. */
:lang(ar) h1,:lang(hi) h1{line-height:1.25}
:lang(ar) :is(h2,h3,.page-h,.sec-h,.label,.ai b,.how h3),:lang(hi) :is(h2,h3,.page-h,.sec-h,.label,.ai b,.how h3){line-height:1.35}
:lang(ar) h1{font-weight:800}
/* Teko is narrower than Oswald, so set it a little larger. */
:lang(hi) h1{font-size:clamp(44px,8.4vw,84px)}
:lang(hi) h2,:lang(hi) .page-h{font-size:clamp(30px,6vw,42px)}
:lang(hi) .sec-h{font-size:clamp(25px,5.2vw,31px)}
:lang(hi) :is(.btn,.toplink){font-size:21px}
:lang(hi) :is(.label,.ai b,.how h3){font-size:19px}
/* Chinese and Japanese: extra-bold headings, slightly smaller since the characters are wide. */
:lang(zh) :is(h1,h2,.page-h,.sec-h),:lang(ja) :is(h1,h2,.page-h,.sec-h){font-weight:900;letter-spacing:.02em}
:lang(zh) h1,:lang(ja) h1{font-size:clamp(32px,6.2vw,62px);line-height:1.2}

/* Free vs Premium: comparison table, "what's in your free plan" box, locked premium previews */
.compare{margin:24px 0 18px;max-width:640px}
.compare h3{font-size:16px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin:0 0 8px}
.compare table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);font-size:15px}
.compare th,.compare td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.compare thead th{font-family:var(--display);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:14px}
.compare tbody th{font-weight:500}
.compare td{color:var(--steel);width:28%}
.compare .prem{background:rgba(95,168,232,.12);color:var(--ink)}
.compare thead .prem{color:var(--blue)}
.compare .yes{color:var(--blue);font-weight:700;font-size:17px}
.compare .no{color:var(--steel)}
.compare tr:last-child>*{border-bottom:0}
#landing .compare{margin-top:30px}
@media (max-width:480px){.compare table{font-size:14px}.compare th,.compare td{padding:8px 6px}}
.freebox{border-inline-start:4px solid var(--blue);background:var(--card);padding:12px 16px;margin:0 0 22px}
.freebox h3{font-size:16px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin:0 0 6px}
.freebox ul{margin:0;padding:0;list-style:none}
.freebox li{padding-inline-start:24px;position:relative;margin:4px 0}
.freebox li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--blue);font-weight:700}
.lockedrow{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0 0}
.lockcard{border:2px dashed var(--line);padding:12px;display:flex;flex-direction:column;gap:6px;font-size:15px;opacity:.85}
.lockcard .lock{font-size:18px}
.lockcard small{font-family:var(--display);text-transform:uppercase;letter-spacing:.05em;color:var(--blue);font-size:13px;margin-top:auto}
@media (max-width:600px){.lockedrow{grid-template-columns:1fr}}

/* Bottom navigation bar on My plan (website and app) */
.appnav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,1fr);
  background:rgba(14,17,20,.96);border-top:1px solid var(--line);padding:6px max(8px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom,0px));
  backdrop-filter:blur(8px)}
.appnav button{appearance:none;background:none;border:0;color:var(--steel);font:inherit;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;min-width:0}
.appnav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.appnav span{font-family:var(--display);text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:500;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.appnav button[aria-current="page"]{color:var(--blue)}
.appnav button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
body.hasnav{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
@media (min-width:760px){.appnav{left:50%;right:auto;transform:translateX(-50%);width:min(560px,100%);border:1px solid var(--line);border-bottom:0}}
/* Workouts / Meals in the bottom bar show just that part of the week's plan */
#sections[data-only="workouts"] details.sec:not(#secWorkouts),#sections[data-only="meals"] #secWorkouts{display:none}
/* Free accounts: Workouts / Meals show what the trial unlocks */
#sections[data-only="locked"] details.sec,#sections[data-only="locked"] .compare{display:none}

/* Monthly / yearly chooser above "Get premium" */
.planpick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 16px}
.planpick button{appearance:none;font:inherit;color:var(--ink);background:rgba(16,20,25,.7);border:2px solid var(--line);
  padding:14px;text-align:start;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.planpick button[aria-pressed="true"]{border-color:var(--blue);background:rgba(95,168,232,.12)}
.planpick b{font-family:var(--display);text-transform:uppercase;letter-spacing:.05em;font-weight:600;font-size:16px}
.planpick span{font-family:var(--display);font-size:24px;font-weight:600}
.planpick small{color:var(--steel);font-size:14px}
.planpick button[data-plan="year"] small{color:var(--blue)}
@media (max-width:420px){.planpick{grid-template-columns:1fr}}

/* Premium dashboard (My plan → Today) */
.tabs{display:flex;gap:4px;margin:4px 0 18px;border-bottom:2px solid var(--line)}
.tabs button{font:inherit;font-family:var(--display);text-transform:uppercase;letter-spacing:.05em;font-weight:600;font-size:17px;
  background:none;border:0;color:var(--steel);padding:10px 16px;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px}
.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--blue)}
@media (max-width:420px){.tabs button{padding:10px 10px;font-size:15px}}
/* Muscle library */
.libctl{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 10px}
.libctl .seg button{font-size:14px;padding:8px 12px}
.maps{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:520px;margin:0 auto}
.bodymap{margin:0;text-align:center}
.bodymap svg{width:100%;height:auto;max-height:440px;overflow:visible}
.bodymap figcaption{font-family:var(--display);text-transform:uppercase;letter-spacing:.06em;color:var(--steel);font-size:14px}
.bodymap .sil-line{fill:none;stroke:rgba(255,255,255,.3);stroke-width:3}
.bodymap .sil{fill:#23272d;stroke:#23272d;stroke-width:1.4}
.bodymap .hair{fill:#3a3f47}
.mus{cursor:pointer;outline:none}
.mus path{fill:rgba(95,168,232,.22);stroke:rgba(95,168,232,.65);stroke-width:1;transition:fill .15s}
.mus:hover path,.mus:focus-visible path{fill:rgba(95,168,232,.5)}
.mus.on path{fill:var(--blue);stroke:#fff}
.libpick{text-align:center;margin-top:4px}
.dsec{margin:0 0 26px}
/* Homepage first screen (app.mjs homeExtras): headline + goal buttons + trust points, phone screenshot */
.hero2{display:grid;gap:22px;align-items:center;margin:6px 0 30px}
.hero2 h1{margin:0 0 12px}.hero2 .lede{margin:0 0 18px}
.hq{font-family:var(--display);text-transform:uppercase;letter-spacing:.05em;font-size:18px;margin:0 0 10px;color:var(--blue)}
.goalbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:460px}
.goalbtn{appearance:none;min-height:58px;padding:10px 12px;border:2px solid var(--blue);border-radius:14px;background:rgba(95,168,232,.12);color:var(--ink);
  font-family:var(--display);font-size:18px;letter-spacing:.03em;text-transform:uppercase;cursor:pointer;transition:background .15s,transform .1s}
.goalbtn:hover{background:var(--blue);color:var(--on-blue)}.goalbtn:active{transform:scale(.98)}.goalbtn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.hskip{margin:10px 0 0}.hskip .linkbtn{font-size:15px}
.trust{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;padding:0;margin:16px 0 0;font-size:14px;color:var(--steel)}
.trust li::before{content:"✓ ";color:var(--blue);font-weight:700}
.phone{margin:0;justify-self:center;width:min(300px,78vw);border-radius:34px;padding:8px;background:#0B0D10;border:1px solid var(--line);
  box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 0 6px rgba(95,168,232,.08)}
.phone img{display:block;width:100%;height:auto;border-radius:27px}
@media (min-width:860px){.hero2{grid-template-columns:1.15fr .85fr}.phone{width:300px}}
.demo{margin:0 auto 30px;width:min(320px,80vw);border-radius:26px;overflow:hidden;border:1px solid var(--line);box-shadow:0 18px 50px rgba(0,0,0,.55)}
.demo video{display:block;width:100%;height:auto;background:#0c0f13}
.feats,.whynum{margin:0 0 30px}
.feats ul{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.feats li{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(22,26,32,.85)}
.feats .fi{font-size:24px}.feats b{font-family:var(--display);font-size:17px;letter-spacing:.02em}.feats li span:last-child{font-size:14px;color:var(--steel);line-height:1.4}
@media (min-width:860px){.feats ul{grid-template-columns:repeat(3,1fr)}}
.whynum{padding:18px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(135deg,rgba(61,220,132,.10),rgba(95,168,232,.10))}
.whynum h2{margin:0 0 6px}.whynum ul{list-style:none;padding:0;margin:12px 0}
.whynum li{padding:10px 0 10px 16px;border-left:4px solid var(--g1);margin:0 0 8px;line-height:1.45}
.whynum li.w1{border-color:var(--blue)}.whynum li.w2{border-color:var(--g2)}.whynum b{font-family:var(--display);font-size:18px;letter-spacing:.02em}
/* Today: 2x2 cards (dash.mjs tiles), in the style of a fitness-watch app */
:root{--g1:#3DDC84;--g2:#9BE564;--g3:#16A06A;--over:#FF5A5A}
.tgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 26px}
.tile{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:200px;padding:14px;text-align:start;font:inherit;color:var(--ink);
  background:rgba(22,26,32,.92);border:1px solid var(--line);border-radius:20px;cursor:pointer;overflow:hidden;min-width:0}
button.tile:hover,.tfood .tmain:hover{border-color:var(--blue)}
.tile:focus-visible,.tmain:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.tfood{cursor:default;padding:0}.tfood .tmain{appearance:none;flex:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 14px 6px;
  background:none;border:0;border-radius:20px 20px 0 0;color:inherit;font:inherit;text-align:start;cursor:pointer}
.tlab{font-family:var(--display);text-transform:uppercase;letter-spacing:.05em;font-size:13px;color:var(--steel)}
.tsub{font-size:13px;color:var(--blue);font-weight:700}
.tbig{font-family:var(--display);font-size:21px;line-height:1.15;overflow-wrap:anywhere}
.tile small{font-size:12.5px;color:var(--steel);line-height:1.35}
.tmore{margin-top:auto;font-size:12px;color:var(--blue)}
.tacts{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 12px}.tacts .chip{font-size:13px;padding:6px 10px}
.mrings{width:100%;max-width:130px;align-self:center;margin:2px 0}
.mr-bg{fill:none;stroke:rgba(255,255,255,.08)}.mr{fill:none;stroke-linecap:round}
.mr.rk{stroke:var(--g1)}.mr.rp{stroke:var(--blue)}.mr.rc{stroke:var(--g2)}.mr.rf{stroke:var(--g3)}.mr.mr-over{stroke:var(--over)}
.mleg{display:flex;flex-direction:column;gap:2px;font-size:11.5px;color:var(--steel);width:100%}
.ml{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml i{flex:none;width:8px;height:8px;border-radius:50%}
.ml.rk i{background:var(--g1)}.ml.rp i{background:var(--blue)}.ml.rc i{background:var(--g2)}.ml.rf i{background:var(--g3)}.ml.over{color:var(--over)}.ml.over i{background:var(--over)}
.tscore{cursor:default;align-items:center;text-align:center}.tscore .tlab{align-self:flex-start}
.dial{width:100%;max-width:140px}.dial-bg,.dial-fg{fill:none;stroke-width:10;stroke-linecap:round}.dial-bg{stroke:rgba(255,255,255,.1)}.dial-fg{stroke:var(--blue)}
.dial-v{font-family:var(--display);font-size:34px;fill:var(--ink)}
.tgrade{font-family:var(--display);font-size:17px;margin-top:-10px}.tgrade.g4{color:var(--blue)}.tgrade.g3{color:var(--g1)}.tgrade.g2{color:#F5C451}.tgrade.g1{color:var(--steel)}
@media (min-width:760px){.tgrid{grid-template-columns:repeat(4,1fr)}}
/* Library: Workouts | Meals switch, and recipes by meal in sections that open and close */
.libswitch{display:flex;width:100%;max-width:420px;margin:0 0 16px}.libswitch button{flex:1;font-family:var(--display);text-transform:uppercase;letter-spacing:.04em;font-size:16px}
.recsec{margin:0 0 10px;border:1px solid var(--line);border-radius:16px;background:rgba(22,26,32,.85);overflow:hidden}
.recsec summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;cursor:pointer;list-style:none;
  font-family:var(--display);font-size:20px;text-transform:uppercase;letter-spacing:.03em}
.recsec summary::-webkit-details-marker{display:none}
.recsec summary::after{content:"▾";color:var(--blue);transition:transform .2s}.recsec[open] summary::after{transform:rotate(180deg)}
.recsec summary small{margin-left:auto;font-family:var(--body);font-size:13px;color:var(--steel);text-transform:none}
.recsec .cards{list-style:none;padding:0 12px 12px;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.recsec .cards a{display:flex;flex-direction:column;gap:4px;height:100%;padding:8px;background:var(--solid);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;font-size:14px;line-height:1.3}
.recsec .cards a:hover{border-color:var(--blue)}.recsec .cards img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:var(--line)}
.recsec .cards small{color:var(--steel);font-size:12px}.recsec .swap{font-style:normal;font-size:11px;color:var(--blue)}
/* Month calendars */
.monthview h2{margin:10px 0 4px}
.cal-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.cal-nav b{font-family:var(--display);font-size:20px}
.cal-nav .btn{min-height:40px;padding:4px 16px;margin:0}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-h{text-align:center;font-size:12px;color:var(--steel);padding-bottom:4px}
.cal-d{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:58px;padding:4px 2px;border-radius:12px;background:rgba(22,26,32,.85);border:1px solid transparent}
.cal-d b{font-size:12px;font-weight:600;color:var(--steel)}.cal-d.today{border-color:var(--blue)}.cal-d.today b{color:var(--blue)}.cal-d.future{opacity:.4}
.cal-d .mrings.mini{max-width:40px;margin:0}
.sring{width:100%;max-width:40px}.sr-bg{fill:none;stroke:rgba(255,255,255,.1);stroke-width:7}.sr{fill:none;stroke:var(--blue);stroke-width:7;stroke-linecap:round}
.sring.full .sr{stroke:var(--g1)}.sr-v{font-size:15px;font-weight:700;fill:var(--ink)}.sring.full .sr-v{fill:var(--g1);font-size:20px}
.mleg.row{flex-direction:row;flex-wrap:wrap;gap:4px 12px;font-size:13px;margin:6px 0}
.dsec>h2{font-size:22px;margin:0 0 6px}
.dsec>.hint{margin:0 0 10px;font-size:14px}
.nextgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:640px){.nextgrid{grid-template-columns:1fr}}
.nextcard{background:var(--card);border:1px solid var(--line);border-top:3px solid var(--blue);padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.nextcard .label{color:var(--blue);font-size:14px}
.tipcard{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--blue);padding:12px 16px;margin:0 0 16px}
.tipcard .label{color:var(--blue);font-size:14px;letter-spacing:.04em;text-transform:uppercase}
.tipcard p{margin:4px 0 0;line-height:1.5}
.nextcard h3{margin:2px 0;font-size:22px}
.cardlink{all:unset;cursor:pointer;color:inherit;font:inherit}.cardlink span{color:var(--blue)}
.cardlink:hover,.cardlink:focus-visible{text-decoration:underline;text-decoration-color:var(--blue);outline:none}
.nextcard .hint{font-size:14px;margin:2px 0 8px}
.nextcard .row{margin-top:auto;gap:8px;flex-wrap:wrap}
.nextcard .btn{padding:10px 14px;font-size:15px}
.rings{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
@media (max-width:480px){.rings{grid-template-columns:repeat(2,1fr)}}
.ring{margin:0;background:var(--card);border:1px solid var(--line);padding:8px 6px 10px;text-align:center}
.ring svg{width:100%;max-width:110px;display:block;margin:0 auto}
.ring-bg{fill:none;stroke:var(--line);stroke-width:8}
.ring-fg{fill:none;stroke:var(--blue);stroke-width:8;stroke-linecap:round;transition:stroke-dasharray .4s}
.ring.over .ring-fg{stroke:#F2B84B}
.ring-v{fill:var(--ink);font-family:var(--display);font-size:19px;font-weight:600}
.ring-t{fill:var(--steel);font-size:10px}
.ring figcaption{font-size:14px;font-weight:700;margin-top:2px}
.loglist{display:flex;flex-direction:column;gap:6px;flex:1}
.logrow{display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1px solid var(--line);padding:10px 12px;cursor:pointer}
.logrow input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--blue);flex:none}
.logrow span{display:flex;flex-direction:column}
.logrow small{color:var(--steel);font-size:13px}
.logrow.done b{text-decoration:line-through;text-decoration-color:var(--blue);opacity:.75}
.logline{display:flex;align-items:center;gap:10px}.logline .logrow{flex:1}
.logrow.skipped{opacity:.6}
.wsum{display:flex;gap:10px;align-items:flex-start}
.wsum .ring{flex:none;width:130px}
@media (max-width:480px){.wsum{flex-direction:column}.wsum .ring{width:100%}}
.weekchart{width:100%;max-width:560px;display:block;background:var(--card);border:1px solid var(--line)}
.weekchart .bar{fill:var(--blue-3);opacity:.75}
.weekchart .today .bar{fill:var(--blue);opacity:1}
.weekchart .axis{fill:var(--steel);font-size:11px}
.weekchart .today .axis{fill:var(--ink);font-weight:700}
.weekchart .target{stroke:var(--ink);stroke-width:1.5;stroke-dasharray:5 4;opacity:.8}
.weekchart .wdot{fill:#7FD99A}
/* Food diary on Today (foodlog.mjs) */
.fd .fdbtns{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.fd .fdbtns .btn{margin:0;padding:10px 14px;font-size:15px}
.fdpanel{background:var(--solid);border:1px solid var(--line);border-radius:8px;padding:12px;margin:0 0 10px}
.fdpanel input{font:inherit;font-size:16px;color:var(--ink);background:var(--bg);border:2px solid var(--line);border-radius:6px;padding:10px;width:100%;box-sizing:border-box}
.fdpanel input:focus{outline:none;border-color:var(--blue)}
.fdpanel video{width:100%;max-height:260px;object-fit:cover;border-radius:6px;background:#000;display:block}
.fdpanel label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--steel)}
.fdrow{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:8px 0}
.fdrow input{width:auto;flex:1;min-width:120px}
.fdrow .btn{margin:0}
.fdquick .fdrow label{flex:1;min-width:110px}
.fdamount #fdG,.fdamount #fdN{width:110px;flex:none}
.fdamount #fdEach{max-width:160px}
.fdamount .fdmode{margin:4px 0 10px}.fdamount .fdmode button{padding:8px 14px;font-size:15px}
.fdamount .chip[aria-pressed="true"]{border-color:var(--blue);color:var(--blue);font-weight:700}
.fdresults{display:flex;flex-direction:column;gap:4px;margin:8px 0;max-height:340px;overflow:auto}
.fdres{display:flex;gap:10px;align-items:center;text-align:left;width:100%;background:none;border:1px solid transparent;border-radius:6px;padding:6px;color:var(--ink);font:inherit;cursor:pointer}
.fdres:hover,.fdres:focus-visible{border-color:var(--blue);background:var(--card);outline:none}
.fdres img,.fdres .fdimg{width:40px;height:40px;object-fit:cover;border-radius:6px;background:var(--line);flex:none}
.fdres b{display:block;font-weight:600;font-size:15px;line-height:1.25}.fdres small{color:var(--steel);font-size:12px}
.fdlive{font-weight:600;margin:4px 0}
.chip{background:var(--card);border:1px solid var(--line);color:var(--ink);border-radius:999px;padding:7px 12px;font:inherit;font-size:14px;cursor:pointer}
.chip:hover{border-color:var(--blue)}
.fdlist{list-style:none;padding:0;margin:6px 0 0}
.fdlist li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.fdlist li>span:first-child{flex:1}.fdlist b{display:block;font-weight:600}.fdlist small{color:var(--steel);font-size:12px}
.fdk{font-weight:600;white-space:nowrap}
.fdtotal{margin:4px 0}
.fdbars{display:grid;gap:8px;margin:8px 0}
.fdbar{position:relative;background:var(--solid);border:1px solid var(--line);border-radius:6px;padding:7px 10px;overflow:hidden}
.fdbar span{position:relative;z-index:1;font-size:14px}.fdbar i{position:absolute;inset:0 auto 0 0;background:rgba(95,168,232,.28)}
.fdagain{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 0}.fdagain span{font-size:13px;color:var(--steel)}
/* Ask your coach (coach.mjs): a button in the bottom-right corner that opens a chat over the page */
.cfab{position:fixed;z-index:55;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));
  display:inline-flex;align-items:center;gap:8px;appearance:none;border:0;border-radius:999px;cursor:pointer;
  background:var(--blue);color:var(--on-blue);padding:12px 18px;font-family:var(--display);font-size:15px;font-weight:500;
  text-transform:uppercase;letter-spacing:.05em;box-shadow:0 6px 22px rgba(0,0,0,.45);transition:transform .15s}
.cfab:hover{transform:translateY(-2px)}.cfab:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.cfab svg,.clockt svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.clockt{display:flex;align-items:center;gap:6px}.clockt svg{width:16px;height:16px;color:var(--blue)}
.cfab.locked{background:#2A3038;color:var(--steel);border:1px solid var(--line);box-shadow:0 4px 14px rgba(0,0,0,.35)}
.ctag{font-family:var(--display);font-size:11px;letter-spacing:.06em;text-transform:uppercase;border:1px solid currentColor;border-radius:999px;padding:1px 7px;vertical-align:middle}
.chead .ctag{color:var(--blue);font-size:12px;margin-inline-start:6px}
body.hasnav .cfab{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body.hasnav:has(#coachBox:not([hidden])){padding-bottom:calc(144px + env(safe-area-inset-bottom,0px))}   /* room so the button never hides the last thing on the page */
body.coach-open{overflow:hidden}
.cback{position:fixed;inset:0;z-index:70;background:rgba(6,8,10,.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);animation:cfade .2s ease}
.cpanel{position:fixed;z-index:71;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));
  width:min(420px,calc(100vw - 32px));height:min(640px,calc(100dvh - 32px - env(safe-area-inset-top,0px)));
  display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:20px;
  background:rgba(18,22,27,.74);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 18px 50px rgba(0,0,0,.55);animation:cup .22s ease}
@media (max-width:600px){.cpanel{left:8px;right:8px;width:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 72px - env(safe-area-inset-top,0px))}}
@keyframes cup{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cfade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.cpanel,.cback{animation:none}.cfab{transition:none}}
.chead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 12px 18px;border-bottom:1px solid var(--line)}
.chead h2{margin:0;font-size:20px;line-height:1.2}
.cclose{appearance:none;flex:none;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.08);
  color:var(--ink);font-size:18px;line-height:1;cursor:pointer}
.cclose:hover{background:rgba(255,255,255,.18)}.cclose:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.cpanel .clog{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:16px 14px;overscroll-behavior:contain}
.cmsg{max-width:85%;padding:10px 14px;border-radius:18px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.cmsg p{margin:0 0 6px}.cmsg p:last-child{margin:0}.cmsg ul{margin:4px 0 6px;padding-inline-start:20px}.cmsg li{margin:0 0 3px}
.cmsg.me{align-self:flex-end;background:var(--blue);color:var(--on-blue);border-bottom-right-radius:6px}
.cmsg.ai{align-self:flex-start;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-bottom-left-radius:6px}
.cmsg.typing{color:var(--steel);font-style:italic}
.cmsg.dim{opacity:.45}
.cmsg b{all:unset;font-weight:700}
.cchips{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin-top:4px}.cchips .chip{text-align:start;max-width:85%}
.cbottom{padding:8px 12px 12px;border-top:1px solid var(--line)}
.cform{display:flex;gap:8px;align-items:flex-end}
.cform textarea{flex:1;font:inherit;font-size:16px;line-height:1.4;color:var(--ink);background:rgba(0,0,0,.35);border:1px solid var(--line);border-radius:22px;
  padding:11px 16px;resize:none;min-height:46px;max-height:140px;box-sizing:border-box;overflow-y:hidden}
.cform textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cform textarea:focus{outline:none;border-color:var(--blue)}
.cform textarea:disabled{opacity:.5;cursor:not-allowed}
.cform .csend{margin:0;min-height:46px;padding:8px 18px;font-size:16px;border-radius:22px;border-color:var(--blue);background:var(--blue);color:var(--on-blue)}
.cform .csend:hover{background:var(--blue-2);border-color:var(--blue-2)}
.cpanel.locked .csend{background:transparent;color:var(--steel);border-color:var(--line);cursor:not-allowed}
.coach .cfoot{margin:0 4px 6px;font-size:13px}.coach .cfoot:empty{display:none}
.coach .small{font-size:12px;margin:8px 4px 0;line-height:1.4}
/* Food photo estimate (foodlog.mjs) */
.fdpanel label.fdpick{display:flex;flex-direction:row;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:15px;font-weight:600;color:var(--ink)}
.fdpanel label.fdpick input[type=number]{width:84px;padding:8px}
.fdphoto .fdpick input[type=checkbox]{width:20px;height:20px;flex:none}
.fdphoto .fdpick span{flex:1}.fdphoto .fdpick small{display:block;color:var(--steel);font-size:12px}
.fdphoto .fdpick input[type=number]{width:80px;flex:none}
.fdphoto img.fdprev{max-width:100%;max-height:220px;border-radius:8px;display:block;margin:0 0 8px}
.fdmeals .fdlist li .btn{margin:0;padding:6px 14px;font-size:14px}.fdmeals .fdlist{margin:0}
.fdsavemeal p{margin:0 0 6px}
.fdpanel label.fdtick{flex-direction:row;align-items:center;gap:10px;font-size:15px;font-weight:400;color:var(--ink);padding:6px 0}
.fdtick input{width:20px;height:20px;flex:none;margin:0}.fdtick small{color:var(--steel)}
.fdsavemeal>label:not(.fdtick){margin-top:8px}
.fdmsg:empty{display:none}.fdcredit{font-size:12px;margin-top:10px}
/* Your progress (Me tab, progress.mjs) and the streak badge on Today */
.pgtitle{font-size:26px;margin:0 0 14px}
.pgtiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 8px}
.pgtile{background:var(--solid);border:1px solid var(--line);border-radius:6px;padding:12px 8px;text-align:center}
.pgtile b{display:block;font-family:var(--display);font-size:24px;color:var(--blue-2)}
.pgtile span{font-size:12px;color:var(--steel)}
.pgsum{display:flex;flex-wrap:wrap;gap:6px 18px;margin:2px 0 10px}
.pgchart{width:100%;max-width:560px;display:block;background:var(--solid);border:1px solid var(--line);margin:0 0 12px}
.pgchart .line{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linejoin:round}
.pgchart circle{fill:var(--blue-3)}.pgchart circle.last{fill:var(--blue);stroke:#fff;stroke-width:1.5}
.pgchart .base{stroke:var(--line)}.pgchart .axis{fill:var(--steel);font-size:11px}
.pgform{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:8px 0}
.pgform label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--steel)}
.pgform input{font:inherit;font-size:16px;color:var(--ink);background:var(--solid);border:2px solid var(--line);border-radius:6px;padding:9px 10px;width:130px}
.pgform input[type=date]{width:160px;color-scheme:dark}
.pgform .btn{margin:0}
.pglist{list-style:none;padding:0;margin:8px 0 0;max-width:420px}
.pglist li{display:flex;align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}
.pglist li span{flex:1;color:var(--steel)}
.pgtable{border-collapse:collapse;font-size:14px;margin-top:8px;min-width:100%}
.pgtable th,.pgtable td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.pgtable th{color:var(--steel);font-weight:600}
.pgtable small{display:block;color:var(--blue-2);font-size:11px}
.pgmeasure summary{cursor:pointer;list-style:none}.pgmeasure summary::-webkit-details-marker{display:none}
.pgmeasure summary h2{display:inline;font-size:22px}.pgmeasure summary::after{content:" ▾";color:var(--steel)}
.pgmeasure[open] summary::after{content:" ▴"}
.streakbadge{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 16px;padding:10px 14px;background:var(--card);border:1px solid var(--blue);border-radius:999px}
.streakbadge b{font-family:var(--display);font-size:18px;letter-spacing:.02em}.streakbadge span{font-size:14px;color:var(--steel)}
.legend{font-size:13px;color:var(--steel);display:flex;gap:6px 14px;flex-wrap:wrap;align-items:center;margin:8px 0 0}
.legend .k{display:inline-block;width:14px;height:10px;margin-inline-end:4px;vertical-align:middle}
.legend .k.bar{background:var(--blue)} .legend .k.target{border-top:2px dashed var(--ink);height:0}
.legend .k.wdot{width:10px;border-radius:50%;background:#7FD99A}

/* Small label, e.g. the 'Premium' lock on the weekly budget. */
.tag{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border-radius:999px;background:#5FA8E8;color:#15181C;font:600 11px/1.4 Roboto,Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase}
/* Estimated price next to a shopping-list amount (premium). */
.shopitem .price{display:block;font-weight:400;font-size:12px;color:var(--steel);text-align:right}
/* Household: one row per person with a Customise (dietary requirements) button. */
.hhperson{gap:8px;margin:6px 0;align-items:center;flex-wrap:wrap}
.btn.small{padding:6px 12px;font-size:13px;min-height:0}
#hhDietDlg{max-width:520px;width:calc(100% - 32px);max-height:85vh;overflow:auto}
.kidtip{font-style:italic;margin-top:6px}

/* Home menu: links in the header on wide screens, a ☰ button on phones and tablets. */
header.top{position:relative}
/* Search recipes and exercises (public/js/search.mjs), under the header on My plan */
.plan-search{margin:-6px 0 16px}
.search{position:relative}
.search input{width:100%;box-sizing:border-box;background:#1e242b;color:#f4f6f8;border:1px solid #2c343d;border-radius:999px;padding:10px 14px 10px 36px;font:16px Roboto,system-ui,sans-serif;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a7b0ba' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:13px center}
[dir=rtl] .search input{padding:10px 36px 10px 14px;background-position:calc(100% - 13px) center}
.search input:focus{outline:none;border-color:var(--blue)}
.search-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;list-style:none;margin:0;padding:6px;background:#1e242b;border:1px solid #2c343d;border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.5);max-height:60vh;overflow:auto}
.search-list li a{display:flex;gap:10px;align-items:center;padding:6px 8px;border-radius:8px;color:#f4f6f8;text-decoration:none}
.search-list li[aria-selected=true] a{background:#2a3440}
.search-list img,.search-list .noimg{width:48px;height:36px;object-fit:cover;border-radius:6px;flex:none;background:#2c343d}
.search-list b{display:block;font-weight:500;font-size:15px;line-height:1.25}
.search-list small{display:block;color:#a7b0ba;font-size:12px}
.search-list .none{padding:10px;color:#a7b0ba;font-size:14px}
.homenav{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 auto 0 28px}
.homenav a{font-family:var(--display);font-size:15px;text-transform:uppercase;letter-spacing:.05em;color:#E6EBF0;text-decoration:none;white-space:nowrap}
.homenav a:hover{color:var(--blue)}
.menu-btn{display:none;cursor:pointer;width:42px;height:42px;border:2px solid var(--line);background:rgba(16,20,25,.7);padding:0;
  flex-direction:column;justify-content:center;align-items:center;gap:4px}
.menu-btn span{display:block;width:18px;height:2px;background:var(--ink)}
@media (max-width:1000px){
  .menu-btn{display:flex}
  .homenav{display:none}
  .menu-open .homenav{display:flex;position:absolute;z-index:20;left:0;right:0;top:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;
    background:rgba(14,17,20,.97);border:1px solid var(--line);padding:4px 16px}
  .menu-open .homenav a{padding:14px 2px;font-size:17px;border-bottom:1px solid var(--line)}
  .menu-open .homenav a:last-child{border-bottom:0}
}
@media (max-width:420px){header.top .row{gap:8px!important}.toplink{padding:7px 10px}}

/* "Built around you": what changes with your answers. */
.built{margin-top:30px;max-width:760px}
.built h3{display:block;font-family:var(--display);text-transform:uppercase;font-weight:600;font-size:16px;letter-spacing:.05em;
  border-bottom:2px solid var(--ink);padding-bottom:4px;margin:0 0 6px;max-width:560px}
.built-sub{color:#E6EBF0;margin:0 0 14px}
.built ul{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.built li{background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--blue);padding:12px 14px}
.built li b{display:block;font-family:var(--display);font-size:18px;font-weight:600;margin-bottom:2px}
.built li span{font-size:15px;color:#E6EBF0}

/* My plan workouts: swap / log / remove on each exercise, "+ Add exercise", your own plan, and the pop-up. */
.ex-ed{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:2px}
.ex.has-img .ex-ed{grid-column:2/-1}
.ex.zoom .ex-ed{grid-column:2/-1}
.ex-note{flex-basis:100%;color:var(--blue);font-size:13px;font-weight:600}
.ex-act{display:flex;flex-wrap:wrap;gap:6px}
.ex-act .btn{padding:5px 10px;font-size:13px;min-height:32px}
.addex{margin-top:10px}
.ownplan{margin-top:26px;padding-top:6px;border-top:2px solid var(--line)}
.ownplan>.btn{margin-top:4px}
.day.own header{flex-wrap:nowrap;align-items:center}
.ownname{flex:1;min-width:0;font:inherit;font-family:var(--display);font-size:20px;font-weight:600;color:var(--ink);background:transparent;
  border:0;border-bottom:2px dashed var(--line);padding:4px 2px}
.ownname:focus{border-bottom-color:var(--blue);outline:0}
dialog.wkdlg{width:min(560px,calc(100vw - 24px));max-width:none;max-height:min(88vh,900px);overflow:auto;padding:0}
.wkhead{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px 12px;background:var(--solid,#14181d);border-bottom:1px solid var(--line)}
.wkhead h2{margin:0;font-size:22px}
.wkx{appearance:none;background:transparent;border:1px solid var(--line);color:var(--ink);font-size:18px;width:40px;height:40px;cursor:pointer;flex:none}
.wkbody{padding:12px 18px 18px}
.wkgrp{font-size:15px;text-transform:uppercase;letter-spacing:.05em;color:var(--steel);margin:16px 0 8px}
.picklist{display:flex;flex-direction:column;gap:6px}
.pickrow{appearance:none;display:grid;grid-template-columns:80px 1fr auto;gap:12px;align-items:center;width:100%;text-align:start;
  background:var(--card);border:1px solid var(--line);color:var(--ink);font:inherit;padding:6px 12px 6px 6px;cursor:pointer}
.pickrow:hover:not(:disabled){border-color:var(--blue)}
.pickrow img{width:80px;height:60px;object-fit:cover;background:rgba(255,255,255,.06)}
.pickrow span{display:flex;flex-direction:column}
.pickrow small{color:var(--steel);font-size:13px}
.pickrow i{font-style:normal;font-size:22px;font-weight:800;color:var(--blue);width:28px;text-align:center}
.pickrow.on{border-color:var(--blue)}
.pickrow:disabled{cursor:default;opacity:.8}
.setrow{display:grid;grid-template-columns:64px 1fr 1fr;gap:8px;align-items:center;margin-bottom:6px}
.setrow input{width:100%;font:inherit;font-size:18px;padding:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);direction:ltr}
.setrow input::placeholder{color:var(--steel);opacity:.7}
.sethead span{font-size:13px;color:var(--steel);font-weight:700}
.wkbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.wkerr{color:#ff9b9b;min-height:1em;margin:8px 0 0}
/* "Last time" on an exercise and at the top of the log pop-up. */
.ex-last,.lastcard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex-basis:100%;text-align:start;font:inherit;color:var(--ink);
  background:rgba(95,168,232,.12);border:1px solid rgba(95,168,232,.55);border-inline-start:4px solid var(--blue);padding:8px 12px}
.ex-last{appearance:none;cursor:pointer}
.ex-last:hover{background:rgba(95,168,232,.2)}
.ex-last .label,.lastcard .label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);font-weight:700}
.ex-last b,.lastcard b{font-size:16px;font-variant-numeric:tabular-nums}
.ex-last small,.lastcard small{color:#E6EBF0;font-size:13px}
.lastcard{margin-bottom:8px}
.lastcard .btn{margin-top:6px}



/* Header logo: just the name in the site's own font (no dumbbell, no background). */
.slatelogo{display:flex;align-items:center;direction:ltr;
  font-family:Oswald,'Arial Narrow',sans-serif;font-weight:700;font-size:22px;line-height:1;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.94);text-shadow:0 0 1px rgba(255,255,255,.55),0 0 5px rgba(255,255,255,.1)}
.slatelogo b{font-weight:700;color:var(--blue)}
@media (max-width:480px){.slatelogo{font-size:18px}}

/* Keep the logo and menu level with the first row of buttons, even when the language box wraps underneath (phones, small laptops). */
header.top .brand,header.top .homenav{align-self:flex-start;min-height:42px}

/* Meal and exercise names in the plan link to their recipe / how-to page (opens in a new tab). */
.pagelink{color:inherit;text-decoration:underline;text-decoration-color:rgba(95,168,232,.85);text-decoration-thickness:1px;text-underline-offset:3px}
.pagelink::after{content:"\2197";display:inline-block;margin-left:.3em;font-size:.75em;color:var(--blue);opacity:.8;text-decoration:none}
.pagelink:hover,.pagelink:focus-visible{color:var(--blue-2);text-decoration-color:var(--blue-2)}

/* No-card free trial: the "your plan is ready" reveal after the quiz, and the days-left banner in My plan */
.reveal{background:var(--card);border:2px solid var(--yellow);border-radius:14px;padding:18px;margin:0 0 20px;text-align:center}
.reveal h3{margin:0 0 6px;font-size:22px}
.reveal p{margin:0 0 14px}
.reveal .btn{display:inline-block;text-decoration:none}
.trialbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.trialbar .btn{margin-inline-start:auto;color:#111}

/* Guided workout: full screen, one exercise at a time, rest timer */
body.noscroll{overflow:hidden}
.day header .gstart{margin-inline-start:auto}
.guided{position:fixed;inset:0;z-index:60;background:var(--bg);color:var(--ink);overflow-y:auto;padding:max(12px,env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom))}
.guided .ghead{display:flex;align-items:center;gap:12px;max-width:560px;margin:0 auto;font-weight:600;color:var(--steel)}
.guided .gx{background:none;border:0;color:var(--ink);font-size:22px;width:44px;height:44px;cursor:pointer}
.guided .gbar{max-width:560px;margin:6px auto 14px;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.guided .gbar i{display:block;height:100%;background:var(--yellow);transition:width .3s}
.guided .gbody{max-width:560px;margin:0 auto;text-align:center}
.guided .gimg{width:100%;max-width:320px;height:auto;border-radius:12px;background:#fff}
.guided h2{margin:12px 0 4px}
.guided .gsr{color:var(--steel);margin:0 0 12px}
.guided .lastcard{text-align:start;margin:0 0 12px}
.guided .gchips{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.guided .gchips li{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:13px}
.guided .gset{margin:6px 0 10px}
.guided .ginputs{display:flex;gap:12px;justify-content:center}
.guided .ginputs label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--steel);flex:1;max-width:160px}
.guided .ginputs input{font-size:28px;text-align:center;padding:10px;border-radius:10px;border:2px solid var(--line);background:var(--card);color:var(--ink);width:100%;box-sizing:border-box}
.guided .gmain{width:100%;max-width:360px;margin:16px auto 0;font-size:18px;padding:16px}
.guided .grest{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}
.guided .gring{width:170px;height:170px;transform:rotate(-90deg)}
.guided .gring circle{fill:none;stroke:var(--line);stroke-width:10}
.guided .gring circle.on{stroke:var(--yellow);stroke-dasharray:339.3;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.guided .gtime{position:absolute;top:84px;font-size:40px;font-variant-numeric:tabular-nums}
.guided .grest .row{gap:8px;justify-content:center;margin-top:6px}
.guided .gall{font-weight:600}
.guided .gfoot{margin-top:18px}
.guided .gdone .gbig{font-size:64px;color:var(--yellow);margin-top:30px}

/* Reminders under Me */
.remgrid{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.remrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.remrow select{width:auto;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink)}
.remrow span{color:var(--steel);font-size:14px}
.remdays{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 4px 26px}
.remdays button{min-width:44px;padding:8px 6px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;font:inherit;font-size:13px}
.remdays button[aria-pressed="true"]{background:var(--yellow);border-color:var(--yellow);color:#111;font-weight:600}

/* Your lifts under Me */
.lifts{list-style:none;padding:0;margin:8px 0 16px;display:flex;flex-direction:column;gap:8px}
.lrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:10px}
.lrow small{display:block;color:var(--steel);font-size:13px}
.lnew{display:inline-block;margin-top:4px;font-size:12px;font-weight:700;color:#111;background:var(--yellow);border-radius:999px;padding:2px 8px}
.lspark{width:120px;height:40px;flex:none}
.lspark polyline{fill:none;stroke:var(--yellow);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.lspark circle{fill:var(--yellow)}
.lvol{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:6px}
.lvol li{display:grid;grid-template-columns:110px 1fr 28px;align-items:center;gap:8px;font-size:14px}
.lvol i{height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.lvol b{display:block;height:100%;background:var(--steel)}
.lvol b.ok{background:#3BB273}
.lvol em{font-style:normal;text-align:end;font-variant-numeric:tabular-nums}

/* Meal swap / favourite / don't suggest */
.mealbtns{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.mealbtns .on{border-color:#E0457B;color:#E0457B}

/* Progress photos under Me */
.phadd{display:inline-block;cursor:pointer}
.phcmp{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 14px}
.phcmp figure,.phgrid figure{margin:0}
.phcmp img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:var(--line)}
.phcmp select{width:100%;margin-top:6px}
.phgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:8px}
.phgrid img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px;background:var(--line)}
.phgrid figcaption{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--steel)}
.phdel{background:none;border:0;color:var(--steel);cursor:pointer;font-size:14px;min-width:32px;min-height:32px}

/* Shopping list: a search link at their supermarket on each item */
.shoprow{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line)}
.shoprow .shopitem{flex:1;border-top:0}
.shopgo{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;text-decoration:none;font-size:18px}
.shopgo:hover{background:var(--line)}

/* Fasting timer on Today */
.fastbox{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:0 0 16px}
.fastbox summary{cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none}
.fastbox summary::-webkit-details-marker{display:none}
.fbadge{font-size:12px;font-weight:700;background:var(--yellow);color:#111;border-radius:999px;padding:2px 8px}
.fastbox .seg{margin:12px 0 6px}
.fastrun{position:relative;display:flex;flex-direction:column;align-items:center;margin:10px 0}
.fastrun .gring{width:150px;height:150px;transform:rotate(-90deg)}
.fastrun .gring circle{fill:none;stroke:var(--line);stroke-width:10}
.fastrun .gring circle.on{stroke:var(--yellow);stroke-dasharray:339.3;stroke-linecap:round}
.fastrun .gring circle.on.done{stroke:#3BB273}
.fastrun .ftime{position:absolute;top:50px;font-size:32px;font-variant-numeric:tabular-nums}
.fastrun .fleft{color:var(--steel);margin-top:4px}
.fastbox .row{gap:8px;align-items:center}

/* Achievements under Me */
.bgch{list-style:none;padding:0;margin:8px 0 16px;display:flex;flex-direction:column;gap:8px}
.bgch li{display:grid;grid-template-columns:1fr 90px 44px;align-items:center;gap:8px;font-size:14px}
.bgch li.got span{color:#3BB273;font-weight:600}
.bgch em{font-style:normal;text-align:end;font-variant-numeric:tabular-nums;color:var(--steel)}
.bgbar{display:block;height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.bgbar b{display:block;height:100%;background:var(--yellow)}
.bggrid{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.badge{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px;opacity:.55}
.badge.got{opacity:1;border-color:var(--yellow)}
.badge .bgicon{font-size:26px;filter:grayscale(1)}
.badge.got .bgicon{filter:none}
.badge small{color:var(--steel);font-size:12px}
.badge .lnew{align-self:flex-start}

/* Boxes waiting for their data show a spinner instead of an empty outline */
.profilebox:empty{min-height:72px;display:flex;align-items:center;justify-content:center}
.profilebox:empty::before{content:"";width:26px;height:26px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--blue);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.profilebox:empty::before{animation-duration:2.4s}}

/* The app tour sits in the hero, in place of the phone picture */
.herodemo{margin:0;justify-self:center;width:min(300px,78vw)}
@media (min-width:860px){.herodemo{width:300px}}
.herodemo video{aspect-ratio:9/16}

/* Coach voice: microphone button (red while listening) and "stop speaking" */
.cform .cmic{flex:none;width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.35);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cform .cmic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cform .cmic.on{background:#D23A2B;border-color:#D23A2B;color:#fff;animation:micpulse 1.2s ease-in-out infinite}
.cform .cmic.on svg{fill:currentColor;stroke:none}
.cform .cmic:disabled{opacity:.5;cursor:not-allowed}
@keyframes micpulse{0%,100%{box-shadow:0 0 0 0 rgba(210,58,43,.55)}50%{box-shadow:0 0 0 8px rgba(210,58,43,0)}}
@media (prefers-reduced-motion:reduce){.cform .cmic.on{animation:none}}
.clisten{color:#ff7a6e}
.cstopv{display:inline-flex;align-items:center;gap:6px}
.cstopv svg{width:14px;height:14px;fill:currentColor}

/* "See recipe" from Today: the recipe it opens is highlighted for a moment, and "‹ Today" leads back */
.backtoday{display:inline-flex;align-items:center;gap:4px;margin:0 0 12px;padding:8px 14px;border-radius:999px;border:1px solid var(--blue);background:rgba(95,168,232,.12);color:var(--blue);font:600 15px var(--display,Oswald),sans-serif;text-transform:uppercase;letter-spacing:.04em;cursor:pointer}
.day.flash{animation:flash 2.2s ease-out}
@keyframes flash{0%,35%{box-shadow:0 0 0 3px var(--blue);background:rgba(95,168,232,.14)}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.day.flash{animation:none;box-shadow:0 0 0 3px var(--blue)}}

/* Bottom bar: stands out from the page, and the current tab is obvious */
.appnav{background:#0B0E12;border-top:2px solid var(--blue);box-shadow:0 -10px 28px rgba(0,0,0,.55)}
.appnav button{position:relative;border-radius:12px;margin:0 2px}
.appnav button[aria-current="page"]{color:#fff;background:rgba(95,168,232,.18)}
.appnav button[aria-current="page"]::before{content:"";position:absolute;top:-8px;left:28%;right:28%;height:3px;border-radius:0 0 3px 3px;background:var(--blue)}
.appnav button[aria-current="page"] svg{stroke:var(--blue)}
.appnav button[aria-current="page"] span{font-weight:700}
.appnav button:not([aria-current="page"]){color:#b9c1ca}
.backtoday{position:sticky;top:10px;z-index:6;background:#10263a;box-shadow:0 6px 18px rgba(0,0,0,.5)}
#sections .day,#sections .mealday{scroll-margin-top:64px}   /* room for the pinned "‹ Today" button */
