/* Demonstrate Fitness — brand: blue #007ECD on black, white text, gray secondary (§17.0). */
:root {
  --blue: #007ECD; --blue-hi: #1a9bff; --blue-rest: #0d4a73; --blue-glow: rgba(0, 126, 205, .55); --blue-soft: rgba(0, 126, 205, .14);
  --bg: #04060a; --surface: #0c131d; --surface2: #152131; --line: #1d2b3d;
  --text: #ffffff; --muted: #8d99ab; --dim: #5d6879; --danger: #ff6b6b;
  --t-copper: #FF8A4C; --t-silver: #A9BDD1; --t-gold: #FFC21A; --t-platinum: #F4F0FF; --t-perfection: #1A9BFF;
  --r: 18px; --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.4; }
body { display: flex; justify-content: center; }
#app { width: 100%; max-width: 460px; height: 100%; position: relative; background: var(--bg); overflow: hidden; }
@media (min-width: 520px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 80px rgba(0, 126, 205, .08); } }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=time] { color-scheme: dark; }
textarea { resize: vertical; min-height: 48px; }
a { color: var(--blue-hi); }
h1, h2, h3 { margin: 0; }
p { margin: .4em 0; }
.ic { width: 22px; height: 22px; flex: none; }

/* layout */
.app { display: flex; flex-direction: column; height: 100%; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; padding-top: var(--safe-t); }
.scroll.pad { padding: 8px 18px 16px; }
.topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(var(--safe-t) + 8px) 10px 6px; min-height: 52px; }
.topbar + .scroll, .obprog + .scroll { padding-top: 4px; }
.tb-title { text-align: center; font-family: var(--head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 17px; }
.tb-title small { display: block; color: var(--blue-hi); font-size: 11px; letter-spacing: .2em; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.iconbtn:hover { background: var(--surface); }
.cta-bar { padding: 10px 18px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: grid; gap: 8px; }
.logo-foot { margin-top: auto; padding: 28px 0 14px; display: flex; justify-content: center; }
.df-logo { width: 74px; color: var(--blue); filter: drop-shadow(0 0 10px var(--blue-glow)); }
.df-logo.big { width: 150px; margin-bottom: 18px; }
.df-logo.tiny { width: 34px; flex: none; }
.df-logo.glow { filter: drop-shadow(0 0 16px var(--blue)); }
.tabbar { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: #070b11; padding: 6px 2px calc(6px + var(--safe-b)); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; padding: 6px 0; }
.tabbar button.on { color: var(--blue-hi); }
.tabbar button.on .ic { filter: drop-shadow(0 0 6px var(--blue-glow)); }

/* type */
.display { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 1.02; letter-spacing: .01em; margin: 4px 0 10px; }
.display.xl { font-size: 42px; }
.display span, .accent { color: var(--blue-hi); }
h2.display { font-size: 26px; }
.kicker { font-family: var(--head); font-weight: 700; color: var(--blue-hi); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; margin-bottom: 2px; }
.lead { font-size: 18px; color: #d9e1ec; }
.muted { color: var(--muted); } .small, small { font-size: 13.5px; } .center { text-align: center; }
.ok { color: #58c3ff; display: flex; gap: 6px; align-items: center; } .warn-t { color: #f0b35a; display: block; }
.tag { font-family: var(--head); letter-spacing: .4em; color: var(--muted); margin-top: 18px; }
.header-quote { font-style: italic; color: #cfe7ff; border-left: 3px solid var(--blue); padding-left: 12px; margin: 10px 0; }
.teach { color: #d4dce8; }
.wb-line { font-family: var(--head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-hi); font-size: 15px; margin: 14px 0 6px; }
.quote { display: block; font-size: 17px; line-height: 1.3; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-hi); letter-spacing: .04em; }
.sec-title { font-family: var(--head); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 2px; font-size: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 13px 22px; font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 16px; border: 1px solid var(--line); background: var(--surface); }
.btn.primary { background: linear-gradient(180deg, #1790e0, var(--blue)); border-color: transparent; box-shadow: 0 0 22px var(--blue-glow); }
.btn.primary:active { transform: scale(.98); }
.btn.ghost { background: transparent; border-color: var(--blue); color: var(--blue-hi); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.war { background: #0a1522; border: 1px solid var(--blue); color: #fff; box-shadow: inset 0 0 20px var(--blue-soft); margin-top: 6px; }
.linkbtn { color: var(--blue-hi); font-weight: 600; font-size: 14px; padding: 6px 0; display: inline-block; }
.linkbtn.danger { color: var(--danger); }
.row-end { display: flex; justify-content: flex-end; gap: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-inline { display: flex; gap: 12px; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grow { flex: 1; }

/* cards */
.cards { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: block; width: 100%; text-decoration: none; color: inherit; margin: 0; }
.scroll.pad > .card, .scroll.pad > .btn { margin-bottom: 12px; }
.card.row { display: flex; align-items: center; gap: 14px; }
.card.hl { border-color: rgba(0, 126, 205, .7); box-shadow: 0 0 18px rgba(0, 126, 205, .18); }
.card.glow { box-shadow: 0 0 22px rgba(0, 126, 205, .35); }
.card.warn { border-color: #6b4d1d; background: #151007; }
.card.note { background: #0a1320; border-color: var(--blue); }
.c-ic { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; flex: none; }
.c-ic .ic { width: 28px; height: 28px; }
.c-ic.q { color: var(--blue-hi); align-self: flex-start; }
.c-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-body b { font-size: 17px; font-weight: 500; }
.c-body small { color: var(--muted); }
.subcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: grid; gap: 8px; }
.list-row { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field > input + input { margin-top: 2px; }
.lbl { font-weight: 600; font-size: 15.5px; }
.hint { color: var(--muted); font-size: 13.5px; }
.why { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 12px; }
.why .ic { width: 15px; height: 15px; color: var(--blue-hi); margin-top: 2px; }
.ta-wrap { position: relative; }
.ta-wrap textarea { padding-right: 46px; }
.mic { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.mic.live { color: #fff; background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.mic .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chips.scroll-x .chip { white-space: nowrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-size: 14.5px; font-weight: 500; }
.chip.on { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.chips.big { flex-direction: column; }
.chips.big .chip { border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.checkrow, .mini-check { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 0; text-align: left; }
.checkrow { border-bottom: 1px solid var(--line); }
.checkrow b { font-weight: 500; display: block; } .checkrow small { color: var(--muted); display: block; }
.box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--dim); display: grid; place-items: center; flex: none; }
.box .ic { width: 16px; height: 16px; stroke-width: 3; }
.on > .box { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.mini-check { padding: 7px 0; font-size: 15px; }
.mini-check span small { display: block; color: var(--muted); font-size: 12.5px; }
.mini-check.on { color: #cfe4f7; }
.addrow { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.rule { grid-template-columns: auto 1fr; align-items: center; }
.ifthen { font-family: var(--head); font-weight: 800; color: var(--blue-hi); letter-spacing: .1em; }
.season { gap: 4px; } .season .field { margin: 4px 0; }
.group .field { margin: 8px 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.addrow input { flex: 1; }
.big-inline { font-family: var(--head); font-size: 30px; font-weight: 800; color: var(--blue-hi); margin: 0; }
.rhr-count { display: flex; gap: 12px; align-items: center; margin: -4px 0 8px; }

/* onboarding */
.ob .scroll.pad { padding-top: 10px; }
.obprog { padding: 0 18px 6px; } .obprog small { color: var(--muted); font-size: 12px; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; }
.hero-center .display { margin-top: 6px; }
.hero-ic { width: 70px; height: 70px; color: var(--blue-hi); filter: drop-shadow(0 0 12px var(--blue-glow)); }
.intro .dots { display: flex; gap: 6px; margin: 4px 0 18px; }
.intro .dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--surface2); }
.intro .dots i.on { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ranks div, .mode-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ranks b, .mode-mini b { display: block; font-family: var(--head); font-size: 18px; letter-spacing: .04em; }
.ranks small, .mode-mini small { color: var(--muted); }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.photo-pick { width: 150px; height: 150px; border-radius: 50%; margin: 10px auto 18px; overflow: hidden; border: 2px solid var(--blue); box-shadow: 0 0 24px var(--blue-glow); display: grid; place-items: center; background: #050a12; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .df-logo { width: 90px; }
.photo-pick.sm { width: 72px; height: 72px; margin: 0; flex: none; } .photo-pick.sm .df-logo { width: 44px; }
.plan { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.plan.on { border-color: var(--blue); background: #0b1a2c; box-shadow: 0 0 18px rgba(0, 126, 205, .3); }
.plan-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-h b { font-family: var(--head); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
.plan-h span { font-weight: 700; font-size: 14px; color: var(--blue-hi); text-align: right; }
.plan small { color: var(--muted); } .plan p { color: #cbd4e0; font-size: 14.5px; margin-top: 8px; }
.ticks { padding-left: 0; list-style: none; margin: 4px 0; }
.ticks li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }

/* dashboard */
.dash-head { position: relative; min-height: 214px; padding: 22px 18px 10px; overflow: hidden; }
.dh-photo { position: absolute; right: 0; top: 0; width: 46%; height: 250px; display: grid; place-items: center; cursor: pointer; }
.dash-head:has(img) .dh-photo { top: 0; right: 0; width: 50%; height: 230px; }
/* Mockup-style blend: the inner (left) and bottom edges fade into the dash; the face area stays fully opaque and sharp.
   No filters or overlays on the image. */
.dh-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect; }
.dh-photo .df-logo { width: 110px; opacity: .9; }
.dh-photo .cam { position: absolute; right: 14px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; z-index: 2; box-shadow: 0 0 14px var(--blue-glow); }
.dh-text { position: relative; z-index: 1; max-width: 80%; }
.dash-head:not(:has(img)) .dh-photo { width: 34%; height: 150px; align-items: start; padding-top: 26px; }
.dash-head:not(:has(img)) .dh-photo .df-logo { width: 88px; }
.dash-head:not(:has(img)) .cam { bottom: 0; }
.greet { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1; }
.greet span { display: inline-block; font-size: 50px; font-weight: 800; color: var(--blue-hi); text-shadow: 0 0 22px var(--blue-glow); letter-spacing: .01em; margin-top: 2px; }
.profile-line { font-family: var(--head); font-weight: 700; color: var(--blue-hi); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; margin-top: 10px; white-space: nowrap; }
.goal { font-style: italic; color: #e8eef6; margin-top: 6px; font-size: 15.5px; }
.cluster { display: grid; grid-template-columns: 1fr 1.7fr 1fr; align-items: end; padding: 0 8px; margin-top: -6px; }
.g-side, .g-main { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-side b { font-family: var(--head); color: var(--blue-hi); letter-spacing: .14em; font-size: 14px; margin-top: 2px; white-space: nowrap; }
.ring { width: 96px; }
.ring-big { font-family: var(--head); font-weight: 800; font-size: 24px; fill: #fff; }
.ring-small { font-size: 8.5px; fill: #cfd8e3; letter-spacing: .05em; }
.glowstroke { filter: drop-shadow(0 0 4px var(--blue)); }
.speedo { width: 100%; max-width: 230px; }
.speedo .band { opacity: .9; }
.speedo .band-copper { filter: drop-shadow(0 0 3px rgba(255, 138, 76, .75)); }
.speedo .band-silver { filter: drop-shadow(0 0 3px rgba(150, 185, 215, .65)); }
.speedo .band-gold { filter: drop-shadow(0 0 3px rgba(255, 194, 26, .8)); }
.speedo .band-platinum { filter: drop-shadow(0 0 3px rgba(235, 225, 255, .75)); }
.speedo .band-perfection { filter: drop-shadow(0 0 4px rgba(26, 155, 255, .9)); }
/* The tier you're in glows brightest. */
.speedo .band.cur { opacity: 1; stroke-width: 14; }
.speedo .band-copper.cur { filter: drop-shadow(0 0 8px rgba(255, 138, 76, 1)); }
.speedo .band-silver.cur { filter: drop-shadow(0 0 8px rgba(160, 195, 225, .95)); }
.speedo .band-gold.cur { filter: drop-shadow(0 0 8px rgba(255, 194, 26, 1)); }
.speedo .band-platinum.cur { filter: drop-shadow(0 0 8px rgba(235, 225, 255, 1)); }
.speedo .band-perfection.cur { filter: drop-shadow(0 0 9px rgba(26, 155, 255, 1)); }
.g-xp { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1; margin-top: -4px; }
.g-tier { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--blue-hi); letter-spacing: .06em; }
.g-target { font-family: var(--head); font-weight: 700; color: var(--blue-hi); letter-spacing: .14em; font-size: 13.5px; line-height: 1.35; }
.lights { margin: 16px 16px 12px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px; }
.light { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.light span { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #1f3550; display: grid; place-items: center; color: #5a7392; }
.light b { font-family: var(--head); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Due now: glowing blue with a gentle pulse until it's done. Done: a calm check. */
.light.due span { border-color: var(--blue-hi); color: var(--blue-hi); background: var(--blue-soft); box-shadow: 0 0 14px var(--blue-glow), inset 0 0 10px var(--blue-soft); animation: lightPulse 2.4s ease-in-out infinite; }
.light.due b { color: #fff; }
.light.done span { border-color: #3d5a78; color: #cfe3f7; background: rgba(255,255,255,.04); }
.light.done b { color: var(--muted); }
@keyframes lightPulse { 0%, 100% { box-shadow: 0 0 8px var(--blue-glow), inset 0 0 8px var(--blue-soft); } 50% { box-shadow: 0 0 22px var(--blue-glow), inset 0 0 12px var(--blue-soft); } }
@media (prefers-reduced-motion: reduce) { .light.due span { animation: none; } }
.counter { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.counter span { flex: 1; }
.counter .chip { padding: 5px 12px; font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.stat-row small { color: var(--muted); display: block; }
.num { font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--blue-hi); }
.big-num { font-family: var(--head); font-size: 72px; font-weight: 800; text-align: center; color: var(--blue-hi); line-height: 1; text-shadow: 0 0 20px var(--blue-glow); }
.big-num small { display: block; font-size: 16px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 8px; }
.heat i { aspect-ratio: 1; border-radius: 6px; background: var(--surface2); }
.heat i.on { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.heat i.pre { opacity: .3; }
.heat i, .heat-key i { display: grid; place-items: center; }
.heat i svg, .heat-key i svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.heat i.sh { color: #e8b84a; background: rgba(232, 184, 74, .14); }
.heat i.miss { color: #ff6b6b; background: rgba(255, 107, 107, .12); }
.heat-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.heat-key span { display: inline-flex; align-items: center; gap: 6px; }
.heat-key i { width: 16px; height: 16px; border-radius: 4px; background: var(--surface2); }
.heat-key i.on { background: var(--blue); } .heat-key i.sh { color: #e8b84a; background: rgba(232, 184, 74, .14); } .heat-key i.miss { color: #ff6b6b; background: rgba(255, 107, 107, .12); }

/* check-in / close-out */
.ai-greet { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #0b1828, #070c14); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 4px 0 12px; }
.ai-greet b { font-size: 18px; } .ai-greet p { color: #cad6e4; font-size: 15px; margin: 4px 0 0; }
.priority { font-size: 18px; font-weight: 500; margin: 0; }
.sa-grid { display: grid; gap: 2px; }
.sa-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sa-row div { display: flex; gap: 4px; flex: none; }
.sa { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.sa.on.yes { background: var(--blue); border-color: var(--blue); }
.sa.on.partly { background: #0d3b5e; border-color: var(--blue); }
.sa.on.no { background: var(--surface2); border-color: var(--dim); }
.quote-pick { display: grid; gap: 8px; }
.qopt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.qopt.on { border-color: var(--blue); background: #0b1a2c; }
.qopt i { display: block; font-size: 14.5px; } .qopt small { color: var(--muted); }
.mode-card { border-left: 3px solid var(--blue); margin-bottom: 10px; }
.card.res .c-ic { color: var(--blue-hi); }
.closing { font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.2; color: #dff0ff; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.war-screen .card { margin-bottom: 10px; }
/* Weekly recap on Stats: title on its own line, the buttons side by side under it (never overlapping) */
.recap-title { display: block; font-size: 18px; margin-bottom: 10px; }
.recap-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.recap-btns .btn { width: 100%; }
/* Swiping between tabs: the new tab slides in from the side you swiped toward */
.scroll.slide-left { animation: slideFromRight .22s ease-out; }
.scroll.slide-right { animation: slideFromLeft .22s ease-out; }
@keyframes slideFromRight { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slideFromLeft { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll.slide-left, .scroll.slide-right { animation: none; } }
.warn-text { color: #e3b341; }
.bo-audio { width: 100%; margin: 6px 0; }
/* This week on the Workout tab: one clean text line per day; the workout name is a link */
.week-list { display: flex; flex-direction: column; margin-top: 6px; }
.wl { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.wl:first-child { border-top: 0; }
.wl-day { color: var(--muted); font-weight: 600; font-size: 15px; }
.wl-name { background: none; border: 0; padding: 0; color: var(--blue-hi); font: inherit; font-size: 16px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-rest { color: var(--muted); font-size: 15px; }
.wl-mark { color: var(--muted); font-size: 13px; display: flex; align-items: center; }
.wl-mark svg { width: 18px; height: 18px; color: var(--blue-hi); }
.wl.today { background: var(--blue-soft); border-radius: 10px; border-top-color: transparent; }
.wl.today .wl-day { color: #fff; }
.wl.today + .wl { border-top-color: transparent; }
.wl.done .wl-name { color: inherit; text-decoration: none; opacity: .75; }
/* Season tag beside the WORKOUT title */
.tab-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.season-tag { border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; background: transparent; color: inherit; cursor: pointer;
  font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.season-tag.go_hard { border-color: var(--blue); color: var(--blue-hi); }
.season-tag.maintain { border-color: #3f8f6b; color: #6fd3a3; }
.season-tag.chill { border-color: #6b6f86; color: #c3c6d6; }
/* Season as one slim bordered line on the Workout tab */
.season-strip-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; margin: 0 0 12px;
  border: 2px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.season-strip-line b { font-family: var(--head); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.season-strip-line span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.season-strip-line.go_hard { border-color: var(--blue); } .season-strip-line.go_hard b { color: var(--blue-hi); }
.season-strip-line.maintain { border-color: #3f8f6b; } .season-strip-line.maintain b { color: #6fd3a3; }
.season-strip-line.chill { border-color: #6b6f86; }
/* Sign-up welcome (JW's greeting, js/onboarding.js) */
.hero-center.welcome { text-align: center; padding-top: 24px; }
.hero-center.welcome .lead { font-size: 19px; line-height: 1.5; max-width: 30ch; margin: 10px auto 18px; }
.welcome-list { display: inline-block; text-align: left; list-style: none; margin: 8px auto 6px; padding: 0; font-size: 19px; line-height: 1.45; }
.welcome-list li { position: relative; padding-left: 22px; margin: 0 0 10px; }
.welcome-list li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue); }
.chips:not(.scroll-x) .chip { max-width: 100%; text-align: left; line-height: 1.3; } /* long options wrap instead of running off a phone screen */
.ck-card p { margin: 6px 0 10px; }
.ck-mini { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ck-mini-t { font-size: 15px; } .ck-mini-t span { color: var(--muted); font-size: 14px; }
.ck-mini-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .ck-mini-row .btn { margin-left: auto; }
#ck-float { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; z-index: 9000; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--blue, #0a7ccf); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
#ck-float b { font-family: var(--head); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
#ck-float button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff; }
#ck-float button svg { width: 16px; height: 16px; }
.ck-card.running { position: sticky; top: 0; z-index: 5; } /* the countdown stays in view while they type */
.ck-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--blue); border-radius: 14px; background: var(--surface); }
.ck-bar .kicker { margin: 0; flex: 1; }
.ck-bar b { font-family: var(--head); font-size: 28px; font-weight: 800; line-height: 1; }
.ck-hello { text-align: center; margin: 4px 0 18px; }
.ck-hello h2 { margin: 0; font-size: 30px; }
.ck-hello p { margin: 4px 0 0; font-size: 18px; color: var(--muted); }
.ck-breath { margin: 0 0 16px; padding: 18px; font-size: 16px; }
.ck-breath-done { text-align: center; font-weight: 700; margin: 0 0 16px; }
.ck-timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-timer b { font-family: var(--head); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.week-rhythm { display: grid; gap: 10px; margin: 14px 0 6px; }
.wr-day { display: grid; grid-template-columns: 92px 1fr; gap: 4px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wr-day b { font-family: var(--head); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-hi); }
.wr-day span { font-size: 16px; line-height: 1.45; } .wr-day em { font-style: normal; font-weight: 700; }
.wr-note { grid-column: 1 / -1; margin: 8px 0 0; font-weight: 700; text-align: center; }
/* Coach hero (reel-inspired): huge blue name behind JW, badge, tagline, book bar. */
/* Coach hero v2 (JW, 2026-11-09): all black, JW slightly outlined, "JW" in blue top right. */
.coach-hero { position: relative; overflow: hidden; border-radius: 22px; background: #000; border: 1px solid var(--line); margin: 0 0 18px; aspect-ratio: 4 / 5; }
/* JW, 2026-11-09: big again, behind him, textured like carved stone, in the brand blue. A stone grain (SVG noise) is
   clipped into the letters, and layered shadows give the cut edges depth. */
.ch-name { position: absolute; inset: 3% 0 auto; z-index: 0; text-align: center; font-family: var(--head); font-weight: 800; font-size: min(68vw, 290px); line-height: .82; letter-spacing: -.01em; user-select: none;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(160deg, #3aa6e8 0%, #007ECD 38%, #005a93 70%, #003a60 100%);
  background-size: 220px 220px, 100% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(-2px -2px 0 rgba(255, 255, 255, .18)) drop-shadow(3px 4px 0 rgba(0, 0, 0, .85)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.ch-photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 90%; width: auto; max-width: none; z-index: 1;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)) drop-shadow(0 0 10px rgba(0, 126, 205, .4)); } /* the slight outline, in the brand blue */
.coach-hero.plain .ch-photo { height: 100%; width: 100%; object-fit: cover; filter: none; } /* before the background is taken out */
.coach-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 80%); z-index: 2; }
.ch-badge { position: absolute; left: 14px; top: 16px; z-index: 3; display: flex; flex-direction: column; padding: 6px 10px; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.ch-badge b { font-family: var(--head); font-size: 20px; line-height: 1; } .ch-badge small { font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.ch-tag { position: absolute; left: 16px; right: 16px; bottom: 74px; z-index: 3; margin: 0; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.ch-book { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: stretch; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; overflow: hidden; background: #0d0f14; color: #fff; text-align: left; }
.ch-book span { flex: 1; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 15px; }
.ch-book small { display: flex; align-items: center; padding: 0 12px; color: #aab2c2; font-size: 12px; }
.ch-book i { display: flex; align-items: center; justify-content: center; width: 52px; background: #007ECD; } .ch-book i svg { width: 20px; height: 20px; }
/* DF Office → Stats: simple labeled bars in the brand blue */
.bs-seg { margin: 0 0 12px; }
.bs-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.bs-bar span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-bar i { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; } .bs-bar em { display: block; height: 100%; border-radius: 6px; background: #007ECD; }
.bs-bar b { font-size: 13px; white-space: nowrap; }
.bs-risk { display: flex; align-items: center; gap: 8px; width: 100%; } .bs-risk span { flex: 1; text-align: left; }
.guide-list { margin: 10px 0 12px; padding-left: 22px; }
.guide-list li { margin: 0 0 6px; }
.disc-sum { margin: 6px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.disc-sum li { margin: 0 0 6px; }
.welcome-call { font-family: var(--head); font-size: 26px; font-weight: 800; line-height: 1.2; margin: 6px auto 14px; max-width: 18ch; }
.welcome-three { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 14px; }
.welcome-three span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue-soft); font-weight: 700; letter-spacing: .02em; }
.welcome-brand { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: .12em; color: var(--blue-hi); margin: 0 0 6px; }
.welcome-sign { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--blue-hi); margin: 4px 0 0; text-align: right; align-self: stretch; padding-right: 18%; } /* signed on the right, like a letter, in from the edge */
.welcome-logo { display: block; width: min(100%, 340px); height: auto; margin: -8px auto 6px; } /* JW's own logo file */
.welcome-sign::before { content: '— '; }
/* 1-on-1 Coaching on Stats: a bold, thick border so it stands out (it's the paid service). */
.card.promo { border: 3px solid var(--blue-hi); box-shadow: 0 0 22px var(--blue-glow), inset 0 0 0 1px rgba(255,255,255,.04); }
.card.promo b { font-size: 18px; }
/* Community board (js/community.js) */
.com-post.win { border-left: 3px solid var(--blue); }
.com-post.struggle { border-left: 3px solid #8a7ad6; }
.com-post.coach { border-left: 3px solid #e3b341; }
.com-post.pinned { box-shadow: 0 0 0 1px rgba(227, 179, 65, .35); }
.com-body { margin: 6px 0 10px; font-size: 16px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.com-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.com-actions .grow { flex: 1; }
.com-react { background: var(--surface2); border: 1px solid var(--line); color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 15px; min-height: 36px; cursor: pointer; }
.com-react.on { border-color: var(--blue); background: var(--blue-soft); }
.com-comment { padding: 10px 14px; }
.com-media { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; margin: 6px 0 10px; }
.com-pick { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.com-comment p { margin: 4px 0; }
/* Check-in zoom (js/app.js runZoom): a panel grows from the card to fill the screen, then fades into the screen it opens. */
.zoomer { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--blue); border-radius: 16px; box-shadow: 0 0 40px var(--blue-glow);
  transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), border-radius .45s, background .45s; pointer-events: none; }
.zoomer.go { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; background: var(--bg); }
.zoomer.out { opacity: 0; transition: opacity .3s; }
.zoom-focus { animation: zoomFocus 1.6s ease-in-out; position: relative; z-index: 2; }
@keyframes zoomFocus { 0% { transform: scale(1); } 30% { transform: scale(1.06); box-shadow: 0 0 34px var(--blue-glow); } 60% { transform: scale(1.03); box-shadow: 0 0 24px var(--blue-glow); } 100% { transform: scale(1); } }
.war-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.war-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); font-weight: 600; font-size: 15px; }
.war-grace { margin: 12px 0 0; color: var(--muted); font-style: italic; }

/* breathing */
.breath-wrap { position: relative; height: 300px; display: grid; place-items: center; margin: 12px 0; }
.bcircle { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 155, 255, .55), rgba(0, 126, 205, .15) 70%); border: 2px solid var(--blue-hi); box-shadow: 0 0 40px var(--blue-glow); transition: transform 4s ease-in-out; }
.bcircle.big { transform: scale(2.3); } .bcircle.small { transform: scale(1); }
.blabel { position: absolute; text-align: center; }
.blabel b { display: block; font-family: var(--head); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
.blabel span { font-family: var(--head); font-size: 40px; font-weight: 800; }

/* targets & reviews */
.tier-opt { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px; }
.tier-opt b { font-family: var(--head); font-size: 21px; letter-spacing: .18em; display: block; }
.tier-opt small { color: var(--muted); }
.tier-opt span { font-weight: 700; white-space: nowrap; }
.tier-opt.on { border: 2px solid var(--blue); background: #0e1f36; }
.badge-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.badge-big .ic { width: 48px; height: 48px; color: var(--blue-hi); }
.celebrate .hero-center { padding-top: 50px; }
.day-head { margin-bottom: 6px; }
.day-head .display { font-size: 34px; }
.wb-row, .map-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 11px 2px; border-bottom: 1px solid var(--line); text-align: left; }
.wb-row span, .map-row span { color: var(--blue-hi); font-family: var(--head); font-weight: 700; letter-spacing: .06em; }
.wb-row b, .map-row b { font-weight: 500; }
.wb-row.done .ic { color: var(--blue-hi); }
.map-row small { color: var(--muted); font-size: 12px; }

/* tab headers */
.tab-head { padding: calc(22px + var(--safe-t)) 18px 12px; }
.tab-head .display { font-size: 46px; margin: 0; }
.tab-head p { margin: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px; margin-bottom: 4px; }
.seg button { border-radius: 99px; padding: 9px 0; font-family: var(--head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.seg button.on { background: var(--blue); color: #fff; box-shadow: 0 0 14px var(--blue-glow); }

/* workout */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; text-align: center; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 10px; }
.wd small { font-size: 10.5px; color: var(--muted); line-height: 1.1; }
.wd span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); color: var(--muted); }
.wd span .ic { width: 16px; height: 16px; }
.wd.today { background: var(--blue-soft); }
.wd.done span { background: var(--blue); color: #fff; }
.ex-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ex-row b { display: block; font-weight: 500; } .ex-row small { color: var(--muted); }
.timer-screen { background: radial-gradient(circle at 50% 35%, #0a1a2c, var(--bg) 70%); }
.timer-screen[data-kind=rest] { background: radial-gradient(circle at 50% 35%, #121820, var(--bg) 70%); }
.timer-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; text-align: center; }
.t-phase { font-family: var(--head); font-weight: 800; letter-spacing: .4em; font-size: 22px; color: var(--blue-hi); }
.t-phase.rest { color: var(--muted); } .t-phase.ready { color: #fff; }
.t-count { font-family: var(--head); font-weight: 800; font-size: 150px; line-height: .9; text-shadow: 0 0 40px var(--blue-glow); }
.t-count.center { text-align: center; margin: 60px 0; }
.t-ex b { font-size: 26px; font-family: var(--head); font-weight: 700; display: block; } .t-ex small { color: var(--muted); }
.t-set { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
.t-demo { width: 100%; border: 1px dashed var(--line); border-radius: 14px; padding: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.t-next small { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; display: block; }
.t-prog { width: 100%; }
.t-controls { display: flex; justify-content: center; gap: 22px; align-items: center; padding: 18px 0 calc(24px + var(--safe-b)); }
.round { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.round.big { width: 80px; height: 80px; background: var(--blue); border: 0; box-shadow: 0 0 24px var(--blue-glow); }
.round.big .ic { width: 32px; height: 32px; }

/* stats */
.bar { height: 9px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); border-radius: 99px; box-shadow: 0 0 8px var(--blue-glow); }
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.body-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.body-stat small { color: var(--muted); }
.body-stat b { font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1; }
.body-stat b em { font-style: normal; font-size: 15px; }
.body-stat span { font-size: 12.5px; font-weight: 700; }
.spark { width: 100%; height: 30px; margin-top: 6px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 8px; font-size: 14.5px; }
.comp small { color: var(--muted); }
.chart { width: 100%; height: auto; margin-top: 6px; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.pillar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 8px 0; background: var(--surface2); }
.pillar .pf { background: var(--blue); } .pillar .pfr { background: #5fb8ff; } .pillar .pfo { background: #d7ecff; }
.ygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.ycell { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--c, var(--line)); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: var(--surface); }
.ycell small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ycell b { font-family: var(--head); font-size: 15px; color: var(--c); }
.ycell em { font-style: normal; font-size: 12px; color: var(--c); }
.ycell i { position: absolute; top: 4px; right: 7px; font-style: normal; font-size: 12px; color: #fff; }
.ycell.empty { opacity: .35; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--dim); }
.badge small { font-size: 11px; line-height: 1.15; }
.badge.on { color: #fff; border-color: var(--blue); } .badge.on .ic { color: var(--blue-hi); filter: drop-shadow(0 0 6px var(--blue-glow)); }

/* meals & tutorials */
.plan-card { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; }
.plan-card .c-body { padding: 12px 12px 12px 0; }
.cover { width: 96px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #0d2b47, #07111d); color: var(--blue-hi); }
.cover .ic { width: 36px; height: 36px; }
.cover[data-diet=low_carb] { background: linear-gradient(135deg, #122436, #080d14); }
.cover[data-diet=gluten_free] { background: linear-gradient(135deg, #0a3350, #061019); }
.cover[data-diet=vegetarian] { background: linear-gradient(135deg, #0f2f3f, #071017); }
.cover.big { width: 100%; height: 170px; border-radius: var(--r); margin-bottom: 12px; }
.plain { margin: 4px 0; padding-left: 20px; } .plain li { padding: 3px 0; }
.vthumb { width: 76px; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #0d2b47, #07111d); display: grid; place-items: center; color: var(--blue-hi); flex: none; }
.linkrow { display: flex; gap: 8px; align-items: center; padding: 8px 0; color: var(--blue-hi); font-weight: 600; width: 100%; }
.player { aspect-ratio: 1 / 1; border-radius: var(--r); background: radial-gradient(circle, #0d2b47, #05090f); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); margin-bottom: 12px; border: 1px solid var(--line); }
.player .ic { width: 52px; height: 52px; color: var(--blue-hi); }
.answer { border-left: 3px solid var(--blue); padding-left: 10px; color: #dbe8f6; }

/* settings / admin */
.profile-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-top b { font-size: 20px; display: block; } .profile-top small { display: block; }
.profile-top .linkbtn { margin-right: 14px; }
.greet-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.greet-row small { color: var(--muted); } .greet-row span { grid-column: 2; font-size: 14.5px; }
.greet-row .chip { grid-row: span 2; padding: 5px 12px; }

/* toast */
#toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px); background: #0e2236; border: 1px solid var(--blue); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 88vw; text-align: center; box-shadow: 0 0 20px var(--blue-glow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .greet { font-size: 28px; } .greet span { font-size: 42px; }
  .ring { width: 80px; } .g-xp { font-size: 28px; } .light span { width: 46px; height: 46px; }
  .tabbar button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .bcircle { transition: none; } #toast { transition: none; } }

/* disclaimer (one long page, two touch points) */
.disc { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.disc h3 { font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 4px; }
.disc p { color: #d4dce8; line-height: 1.55; }
.disc-ack { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; display: grid; gap: 14px; }
.disc-ack .checkrow { border: 1px solid var(--blue); border-radius: 14px; padding: 14px; }
.btn.disabled { opacity: .4; box-shadow: none; }
.hero-center.compact { padding: 6px 0 0; }
.hero-center.compact .df-logo.big { width: 110px; margin-bottom: 6px; }

/* trial access */
.trial-bar { margin: 0 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--blue-soft); border: 1px solid rgba(0, 126, 205, .5); }
.trial-bar b { font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--blue-hi); display: block; }
.trial-bar small { color: #cfe0f2; }
.day-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.day-grid button { aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: 16px; }
.day-grid button.done { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.day-grid button.now { border-color: var(--blue-hi); color: var(--blue-hi); }
.stage { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; text-align: left; }
.stage.on { border: 2px solid var(--blue); background: #0e1f36; }
.stage b { font-family: var(--head); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; display: block; }
.stage small { color: var(--muted); }
.logo-foot.tight { padding: 4px 0 10px; }
.logo-foot.tight .df-logo { width: 54px; }
.t-controls { padding-bottom: 10px; }
.g-month { font-family: var(--head); font-weight: 700; letter-spacing: .18em; font-size: 12px; color: var(--muted); margin-top: -2px; }
.num.sm { font-size: 24px; } .num em { font-style: normal; font-size: 13px; color: var(--muted); font-family: var(--body); }
.h-line { font-weight: 600; color: #cfe7ff; margin: 2px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.photo-grid figure { margin: 0; } .photo-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: 11px; color: var(--muted); margin-top: 3px; }
#alert { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -140%); width: min(440px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; background: #0b1a2c; border: 1px solid var(--blue); border-radius: 16px; padding: 12px 10px 12px 16px; box-shadow: 0 0 26px var(--blue-glow); z-index: 60; transition: transform .3s; }
#alert.show { transform: translate(-50%, 0); }
#alert > div { flex: 1; min-width: 0; } #alert b { display: block; font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); } #alert small { color: #d4dce8; }
#alert .al-ask { margin: 12px 0 8px; color: #fff; font-size: 14px; font-weight: 600; }
#alert .al-pulse { display: flex; gap: 8px; }
#alert .al-cta { margin-top: 10px; width: 100%; }
#alert .al-pulse button { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { #alert { transition: none; } }
.head-prio { display: block; margin-top: 12px; font-size: 18px; font-weight: 600; line-height: 1.25; color: #fff; text-align: left; }
.head-prio span { display: block; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 1px; }
.head-prio.empty { color: var(--muted); font-size: 15px; font-weight: 500; }
.dash-head .goal { font-size: 14px; color: var(--muted); }
/* Quote of the day in the header: italic tier gold (§17.1) */
.head-quote { display: block; margin-top: 8px; text-align: left; color: var(--t-gold); text-shadow: 0 0 10px rgba(255, 194, 26, .35); }
.head-quote i { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.3; }
.head-quote small { display: block; font-style: italic; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.quote-field input { margin-top: 2px; }
/* Sections in a scrolling page keep their natural height (never squeezed by the flex column). */
.scroll > * { flex-shrink: 0; }
/* Gauge cluster: gauges on one baseline, wording underneath */
.cluster { grid-template-rows: auto auto; align-items: end; row-gap: 2px; margin-top: 0; }
.cluster .g-side { align-self: end; }
.cluster .g-lbl { align-self: start; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cluster .g-lbl b { font-family: var(--head); color: var(--blue-hi); letter-spacing: .14em; font-size: 14px; white-space: nowrap; margin-top: 4px; }
.cluster .g-lbl.main .g-month { margin-top: 0; }
.cluster .g-lbl.main .g-xp { margin-top: 0; }
.prio-card .prio-text { display: block; font-size: 19px; font-weight: 600; margin: 2px 0 6px; }
.cluster .g-lbl.main .g-xp { font-size: 36px; }
.cluster .g-lbl.main .g-target { font-size: 15px; margin-top: 2px; }

/* Simplified dashboard: header → gauges (center gauge overlaps the photo's bottom-left) → lights → priority → quote */
.dash-head { min-height: 0; padding-bottom: 0; }
.dash-head:has(img) { min-height: 200px; }
.dash-head:has(img) .dh-photo { height: 236px; }
.dash-head + .cluster { position: relative; z-index: 2; margin-top: -58px; }
.dash-head:not(:has(img)) + .cluster { margin-top: 4px; }
.cluster .g-lbl.main .g-xp { font-size: 38px; line-height: 1; }
.cluster .g-lbl.main .g-xp.met { color: #fff; }
.cluster .g-lbl.main .g-target { letter-spacing: .16em; }
.dash-quote { display: block; width: 100%; text-align: left; padding: 6px 4px 4px; }
.dash-quote .kicker { color: var(--t-gold); opacity: .85; }
.dash-quote i { display: block; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--t-gold);
  text-shadow: 0 0 8px rgba(255, 194, 26, .55), 0 0 22px rgba(255, 170, 0, .35); }
.dash-quote small { display: block; margin-top: 4px; color: var(--t-gold); opacity: .8; font-style: italic; }
/* Countdown sits up inside the gauge bowl, just clear of the needle pivot */
.cluster .g-lbl.main { margin-top: -20px; position: relative; z-index: 1; }
/* Let the photo's faded bottom run under the gauges instead of being cut off */
.dash-head { overflow: visible; }
.dash-head .dh-photo { z-index: 0; }
.dash-head .dh-text { z-index: 1; }
.dash-head:has(img) .cam { top: 14px; bottom: auto; right: 14px; width: 38px; height: 38px; }
/* Quote of the day: centered, above the priority */
.dash-quote { text-align: center; padding: 4px 8px 2px; }
.dash-quote .kicker { text-align: center; }
/* Day Streak gauge: larger and raised to fill the space beside the photo */
.cluster .g-side:first-child { align-self: end; margin-bottom: 14px; }
.cluster .g-side:first-child .ring { width: 116px; }
.cluster .g-lbl:nth-child(4) { margin-top: -12px; }
/* Educational-use disclaimer (supplements, vitamins, meal plans) */
.edu-notice { border: 1px solid #6b4d1d; background: #151007; border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; }
.edu-notice b { display: block; font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: #f0b35a; margin-bottom: 4px; }
.edu-notice p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #e2d6c2; }
.edu-notice.compact p { font-size: 12.5px; }
.cover.drink.smoothie { background: linear-gradient(135deg, #0f3a2c, #07130f); color: #6fe3a8; }
.cover.drink.juice { background: linear-gradient(135deg, #3d1a12, #140806); color: #ff9a5a; }
/* Must-discuss-with-your-doctor items, in red */
.critical { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.critical li { display: flex; gap: 8px; align-items: flex-start; color: #ff6b6b; font-weight: 600; font-size: 14px; line-height: 1.4; }
.critical li .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #ff6b6b; }
.edu-notice.compact .critical li { font-size: 13px; }
.demo-hint { margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--blue-soft); color: #cfe7ff; font-size: 13.5px; }
/* Action buttons sit at the end of the page (never float over the form) */
.cta-inline { display: grid; gap: 8px; margin: 18px 0 4px; }
/* While typing, hide the tab bar so the keyboard has the screen */
body.typing .tabbar { display: none; }
.num em { font-size: 15px; }
/* App tour */
#tour { position: fixed; inset: 0; z-index: 80; }
#tour .tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(2, 6, 12, .78), 0 0 0 2px var(--blue-hi), 0 0 24px var(--blue-glow); transition: all .25s ease; pointer-events: none; }
#tour .tour-tip { position: fixed; background: #0b1a2c; border: 1px solid var(--blue); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); transition: top .25s ease, left .25s ease; }
#tour .tour-count { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
#tour .tour-title { display: block; font-family: var(--head); font-size: 21px; letter-spacing: .04em; margin: 2px 0 4px; color: var(--blue-hi); }
#tour .tour-text { margin: 0 0 12px; font-size: 15px; line-height: 1.4; color: #e3ebf5; }
#tour .tour-btns { display: flex; align-items: center; gap: 8px; }
#tour .tour-btns span { flex: 1; }
@media (prefers-reduced-motion: reduce) { #tour .tour-spot, #tour .tour-tip { transition: none; } }
.cover-photo { width: 96px; flex: none; object-fit: cover; align-self: stretch; }
.cover-photo.big { width: 100%; height: 200px; border-radius: var(--r); margin-bottom: 12px; }
.ex-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.card.locked { opacity: .7; }
/* 90-Day Course */
.course-card { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.course-title { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.anchor-lines { display: grid; gap: 4px; margin: 6px 0 12px; text-align: center; }
.anchor-lines b { font-family: var(--head); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); text-shadow: 0 0 12px var(--blue-glow); }
.says { font-style: italic; color: #d9e6f5; margin: 4px 0; }
.focus { font-size: 18px; font-weight: 600; margin: 2px 0 0; }
.week-row { text-align: left; margin-bottom: 8px; }
.week-row.locked { opacity: .55; }
.plan-card.locked, .card.locked { opacity: .55; }
.plan-card.locked .pill svg, .supp-col b svg { width: 12px; height: 12px; vertical-align: -1px; }
.locked-tease { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; opacity: .7; }
.card.locked { display: block; width: 100%; text-align: left; color: inherit; font: inherit; }
.blurred { filter: blur(5px); user-select: none; }
.week-row.locked .week-num svg { width: 16px; height: 16px; }
.week-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--head); font-weight: 800; font-size: 18px; border: 2px solid var(--line); color: var(--muted); }
.week-num.done { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 10px var(--blue-glow); }
.sec-title small { font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
/* Diet & supplement guide */
.diet-map { display: grid; gap: 8px; margin-top: 6px; }
.diet-map > div { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface2); }
.diet-map > div.on { background: #0e1f36; outline: 1px solid var(--blue); }
.diet-map span { color: var(--blue-hi); font-weight: 700; }
.diet-map small { color: #d2dce8; }
.supp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.supp-col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.supp-col.on { border-color: var(--blue); box-shadow: 0 0 14px rgba(0, 126, 205, .25); }
.supp-col b { font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); font-size: 15px; margin-bottom: 2px; }
.supp-col span { font-size: 14px; }
/* Program Overview */
.streamline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
.streamline span { padding: 5px 10px; border-radius: 99px; background: var(--blue-soft); color: #cfe7ff; font-weight: 600; font-size: 14px; }
.streamline i { font-style: normal; color: var(--blue-hi); font-weight: 700; }
.lvl-name { font-family: var(--head); font-size: 22px; letter-spacing: .02em; display: block; }
.lvl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.lvl-cols > div { min-width: 0; }
.lvl-warn { color: #f0b35a; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.lvl-go { color: var(--blue-hi); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.lvl-cols .plain { padding-left: 16px; margin: 4px 0 0; }
.seg button { letter-spacing: .08em; font-size: 14px; }
/* Video player: every video plays in the same frame and size */
.vplayer { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.vplayer video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.vplayer .vmissing { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--muted); background: radial-gradient(circle, #0d2b47, #05090f); }
.vplayer .vmissing .ic { width: 40px; height: 40px; color: var(--blue-hi); }
.vplayer.missing video { visibility: hidden; }
.vplayer.missing .vmissing { display: flex; }
.t-demo { padding: 0; border: 0; display: block; }
.t-demo .vplayer { margin: 0 auto; width: auto; height: 30vh; }
.t-nodemo { width: 100%; aspect-ratio: 1 / 1; max-height: 30vh; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.ex-row .linkbtn { display: inline-flex; gap: 6px; align-items: center; }
.ex-row .linkbtn .ic, .card .linkbtn .ic { width: 16px; height: 16px; }
/* Timer with demo video: fit everything on one phone screen */
.timer-body { gap: 6px; justify-content: flex-start; padding-top: 4px; min-height: 0; overflow-y: auto; }
.t-count { font-size: clamp(64px, 13vh, 120px); }
.t-ex b { font-size: 22px; }
.t-demo .vplayer, .t-demo .t-nodemo { height: 24vh; width: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
.t-controls { padding: 8px 0 6px; gap: 18px; }
.t-controls .round.big { width: 68px; height: 68px; }
.timer-screen .logo-foot.tight { padding: 0 0 4px; }
.timer-screen .logo-foot.tight .df-logo { width: 40px; }
.vplayer video { transform-origin: 50% 50%; transition: transform .2s ease; }
/* Player controls */
.vtap { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; }
.vbig { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 126, 205, .85); box-shadow: 0 0 24px var(--blue-glow); opacity: 0; transition: opacity .2s; }
.vbig .ic { width: 30px; height: 30px; margin-left: 4px; color: #fff; }
.vplayer.paused .vbig { opacity: 1; }
.vbar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; }
.vprog { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.vprog i { display: block; height: 100%; width: 0; background: var(--blue-hi); }
.vsound { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.vsound .ic { width: 18px; height: 18px; }
.vplayer.missing .vtap, .vplayer.missing .vbar { display: none; }
@media (prefers-reduced-motion: reduce) { .vbig, .vplayer video { transition: none; } }
/* Meal plan library (guides) */
.gcover { position: relative; overflow: hidden; background: #fff; color: var(--muted); }
.gcover { background: var(--surface2); }
.gthumb { display: block; width: 100%; aspect-ratio: 720 / 932; overflow: hidden; background: #fff; }
.gthumb img { display: block; width: 100%; height: auto; }
.guide-card .c-body small { line-height: 1.35; }
.guide-screen .scroll.pad { padding-left: 10px; padding-right: 10px; }
.gpages { display: flex; flex-direction: column; gap: 10px; }
.gstrip { width: 100%; height: auto; background: #fff; border-radius: 10px; display: block; box-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.gcount { position: sticky; top: 0; z-index: 3; align-self: center; margin: 0 auto 8px; padding: 6px 14px; border-radius: 99px; background: rgba(4, 6, 10, .85); border: 1px solid var(--line); font-size: 13px; font-weight: 600; width: fit-content; }
.t-demo[hidden] { display: none; }
/* A field that still needs an answer (set by needField) */
.invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 12px; animation: nudge .35s ease 2; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .invalid { animation: none; } }
/* Photo buttons: a label around a visually hidden file input (opens the phone's picker natively) */
.filepick { cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
label.btn.filepick { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
/* Every exercise video is an upright phone picture (9:16); most files carry it inside a wide 1920×1080 frame with
   black side bars. An upright 9:16 frame with object-fit: cover crops the bars away so the exercise fills the frame. */
.vplayer { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - 230px) * 9 / 16)); max-width: 100%; margin: 0 auto 12px; }
.vplayer video { object-fit: cover; transform: none !important; }
.t-demo .vplayer, .t-demo .t-nodemo { aspect-ratio: 9 / 16; height: min(36vh, calc(100svh - 470px)); min-height: 160px; width: auto; margin: 0 auto; }
/* Stats → Health & Fitness */
.stat-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.prog-photo { margin: 6px 0 12px; } .prog-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
.prog-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.prog-photo.empty { aspect-ratio: 3 / 4; max-height: 320px; width: 100%; border: 1px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--muted); }
.prog-photo.empty .ic { width: 36px; height: 36px; color: var(--blue-hi); }
.prog-row { display: block; width: 100%; text-align: left; }
.prog-row .row-between .ic { width: 18px; height: 18px; color: var(--muted); }
.prog-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.prog-cols small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.prog-cols b { font-family: var(--head); font-size: 24px; } .prog-cols b em { font-size: 13px; font-style: normal; color: var(--muted); }
.prog-row .spark { width: 100%; height: 34px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { margin: 0; } .compare img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.compare figcaption { font-size: 12.5px; color: var(--muted); margin-top: 5px; text-align: center; }
.lab-card { display: block; width: 100%; text-align: left; }
.lab-card .row-between .ic { width: 18px; height: 18px; color: var(--muted); }
.lab-row { display: grid; grid-template-columns: 1fr 64px 64px 62px; gap: 6px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lab-row.head { border-bottom: 0; padding-bottom: 0; } .lab-row.head small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.lab-row b, .lab-row span:nth-child(2) { text-align: right; } .lab-row.head small:nth-child(2), .lab-row.head small:nth-child(3) { text-align: right; }
.lab-row small.muted { font-size: 11px; }
/* Stats: four-way range switch, month / week stepper, plain day totals */
.seg.four button { font-size: 13px; padding-left: 4px; padding-right: 4px; }
.month-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.month-step > b, .month-step > div { flex: 1; text-align: center; font-family: var(--head); font-size: 18px; letter-spacing: .04em; }
.month-step > div small { display: block; font-family: var(--body, inherit); font-size: 12.5px; letter-spacing: 0; }
.iconbtn.flip .ic { transform: rotate(180deg); }
.iconbtn[disabled] { opacity: .3; pointer-events: none; }
.total-days { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.total-days .num { font-size: 38px; } .total-days span { color: var(--muted); }
.comp-grid.one { grid-template-columns: 1fr; }
.comp small b { color: var(--text); font-size: 14px; }
/* Stats → Your year (Seasons) */
.year-card { display: block; width: 100%; text-align: left; }
.year-card .row-between .ic { width: 18px; height: 18px; color: var(--muted); }
.season-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0 8px; }
.season-strip .ss { border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.season-strip .ss b { font-family: var(--head); font-size: 12.5px; line-height: 1.1; }
.season-strip .ss small { font-size: 10.5px; color: var(--muted); }
.season-strip .ss.go_hard { border-color: var(--blue); background: rgba(20, 120, 220, .12); }
.season-strip .ss.chill { opacity: .8; }
.own-btn { margin-top: 10px; }
/* Workout tab: this month's Season */
.season-card .season-line { display: block; font-family: var(--head); font-size: 22px; letter-spacing: .02em; margin: 2px 0 4px; }
.season-card.go_hard { border-color: var(--blue); box-shadow: 0 0 18px var(--blue-glow); }
.season-card.go_hard .season-line { color: var(--blue-hi); }
/* Plan your week: a priority for each day */
.prio-day { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.prio-day > span { font-family: var(--head); font-size: 16px; letter-spacing: .04em; display: flex; flex-direction: column; line-height: 1.1; }
.prio-day > span small { font-family: inherit; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.prio-day.passed { opacity: .55; }
.top-links { margin-bottom: 12px; } .top-links .btn { width: 100%; }
/* Meal Plans: "What are you regulating?" as an even two-column grid */
.chips.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips.grid2 .chip { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; min-height: 42px; padding: 8px 10px; }
.sa-row .sa { min-width: 48px; width: auto; padding: 0 10px; }
/* Hide the phone's built-in play button / placeholder on exercise videos (the app has its own controls). */
.vplayer video::-webkit-media-controls, .vplayer video::-webkit-media-controls-start-playback-button,
.vplayer video::-webkit-media-controls-overlay-play-button, .vplayer video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; opacity: 0; }
.vplayer video { background: #000 center / cover no-repeat; }

/* Day 8: the three modes, one line each */
.mode-line { margin: 0 0 8px; line-height: 1.4; }
.mode-line b { color: var(--blue-hi); }
/* Bullet hints under a question (Day 15 approach) */
.hint-list { margin: 2px 0 10px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hint-list li { margin: 2px 0; }
/* Short bullets under a Foundation day's intro */
.teach-list { color: #d4dce8; margin: -4px 0 14px; padding-left: 20px; line-height: 1.5; }
.teach-list li { margin: 3px 0; }
/* Foundation day: previous / next */
.day-flip { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px 0 10px; }
/* Education lessons: wide video with the phone's own controls; thumbnail in the list */
.lesson-player { margin: 0 0 12px; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 18px rgba(0,0,0,.4); }
.lesson-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vthumb.lesson { position: relative; overflow: hidden; }
.vthumb.lesson img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb.lesson svg { position: relative; filter: drop-shadow(0 0 4px rgba(0,0,0,.8)); color: #fff; }
.lesson-flip { margin: 0 0 12px; }
/* Reference charts in Basic Education (full width; pinch to zoom) */
.edu-chart { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 10px; }
/* ---------- Bigger text (JW trial, Oct 8): easier on 40–60-year-old eyes. Delete this block to go back. ---------- */
html, body { font-size: 17px; }
.small, small { font-size: 14.5px; }
.c-body small, .checkrow small, .mini-check span small { font-size: 14.5px; }
.tabbar button { font-size: 12.5px; }
.pill, .lvl-warn, .lvl-go { font-size: 12.5px; }
.wd small, .season-strip .ss small { font-size: 12px; }
.ycell small, .badge small, .photo-grid figcaption, .lab-row small.muted, .prio-day > span small, .t-next small, .tb-title small { font-size: 12.5px; }
.lab-row.head small, .prog-cols small, .obprog small, .map-row small, #tour .tour-count, .g-month, .head-prio span { font-size: 13px; }
.light b { font-size: 14.5px; }
.cluster .g-lbl b { font-size: 15px; }
.btn.small { font-size: 15px; }
.chart .axis { font-size: 11.5px; }
@media (max-width: 380px) { .tabbar button { font-size: 11.5px; } }
/* Supplements: the must-read line. */
.crisis-warn { color: var(--danger); font-weight: 800; font-size: 19px; line-height: 1.35; margin: 0 0 14px; }
.crisis-warn a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rx-warn { color: var(--danger); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin: 0 0 12px; font-size: 16px; line-height: 1.35; }
/* ---------- Timer v2 (Oct 8): countdown with the exercise beside it; the demo video fills the rest. ---------- */
.timer-screen .timer-body { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-start; gap: 10px; padding: 6px 16px 0; }
.t-head { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; text-align: left; }
.timer-screen .t-head .t-count { font-size: 104px; line-height: .82; min-width: 1.15em; text-align: right; flex: none; }
.timer-screen .t-head .t-count.long { font-size: 64px; min-width: 0; }
.t-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.timer-screen .t-info .t-phase { font-size: 18px; letter-spacing: .3em; }
.timer-screen .t-info .t-ex b { font-size: 24px; line-height: 1.1; }
.timer-screen .t-info .t-set { font-size: 15px; }
.timer-screen .t-demo { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; }
.timer-screen .t-demo .vplayer, .timer-screen .t-demo .t-nodemo { height: 100%; max-height: none; min-height: 0; width: auto; aspect-ratio: 9 / 16; margin: 0 auto; }
.timer-screen .t-next { display: flex; gap: 8px; align-items: baseline; justify-content: center; }
.timer-screen .t-next[hidden] { display: none; }
.timer-screen .t-controls { padding: 8px 0 8px; }
/* Rest (Oct 9): just the countdown, big and centered. No exercise name, no video. */
.timer-screen[data-kind=rest] .t-head { flex-direction: column-reverse; gap: 8px; margin: auto 0; text-align: center; }
.timer-screen[data-kind=rest] .t-head .t-count { font-size: clamp(140px, 30vh, 220px); min-width: 0; text-align: center; }
.timer-screen[data-kind=rest] .t-info { align-items: center; flex: none; }
.timer-screen[data-kind=rest] .t-info .t-phase { font-size: 26px; letter-spacing: .5em; }
.timer-screen[data-kind=rest] .t-demo { display: none; }
/* Timer v3 (JW, 2026-11-24): the video first and as big as the screen allows, the countdown under it, then what's next. */
.timer-screen .timer-body { gap: 8px; padding-top: 4px; }
.timer-screen .t-demo { min-height: 180px; }
.timer-screen .t-demo .vplayer { border-radius: 18px; position: relative; overflow: hidden; width: 100%; max-width: 460px; height: 100%; aspect-ratio: auto; }
.timer-screen .t-head .t-count { font-size: clamp(64px, 11vh, 96px); }
.t-up { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); text-align: left; flex: none; }
.t-up[hidden] { display: none; }
.t-up img, .t-up .t-up-ic { width: 48px; height: 64px; object-fit: cover; border-radius: 9px; flex: none; background: #0b1420; }
.t-up .t-up-ic { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.t-up small { display: block; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.t-up b { display: block; font-family: var(--head); font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-up div { min-width: 0; }
/* Rest: no video, so the countdown sits in the middle and "next" gets a bigger picture to get ready by. */
.timer-screen[data-kind=rest] .t-up { padding: 10px 14px 10px 10px; }
.timer-screen[data-kind=rest] .t-up img, .timer-screen[data-kind=rest] .t-up .t-up-ic { width: 72px; height: 96px; }
.timer-screen[data-kind=rest] .t-up b { font-size: 22px; white-space: normal; }
/* One row: what's next, then pause and skip (JW, 2026-11-24). */
.t-dock { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; flex: none; }
.t-dock .t-up { flex: 1; min-width: 0; max-width: none; }
.t-dock .round { flex: none; width: 54px; height: 54px; }
.t-dock .round.big { width: 64px; height: 64px; }
.timer-screen .timer-body { padding-bottom: 10px; }
/* Frank's review (2026-11-24) */
/* Walk/run has no video: the count-up sits big in the middle, like rest. */
.timer-screen[data-kind=walk] .t-demo { display: none; }
.timer-screen[data-kind=walk] .t-head { flex-direction: column-reverse; gap: 8px; margin: auto 0; text-align: center; }
.timer-screen[data-kind=walk] .t-head .t-count, .timer-screen[data-kind=walk] .t-head .t-count.long { font-size: min(26vw, 20vh, 150px); min-width: 0; text-align: center; }
.timer-screen[data-kind=walk] .t-info { align-items: center; flex: none; }
/* Next card: long names get two lines instead of "Leg Swings, Lat…". */
.t-up b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 17px; }
.timer-screen[data-kind=rest] .t-up b { font-size: 20px; }
.timer-screen .topbar .iconbtn { width: 44px; height: 44px; }
/* Pre-workout: Start stays at the bottom of the screen while scrolling the list. */
.pre-sticky .cta-inline { position: sticky; bottom: 0; z-index: 3; margin: 0 -2px; padding: 14px 2px 10px; background: linear-gradient(to top, var(--bg) 72%, transparent); }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex-play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-hi); border: 1px solid var(--line); background: var(--surface); }
.ex-play .ic { width: 18px; height: 18px; }
/* Tap targets at least 44px. */
.pre-sticky .set-rows .stepper button, .pre-sticky .row2 .stepper button { width: 44px; height: 44px; }
.today-opts .btn.small { min-height: 44px; }
.seg button { min-height: 44px; }
.pre-sticky .chips .chip { min-height: 44px; padding-left: 18px; padding-right: 18px; }
/* Pick-all-that-apply lists (JW, 2026-11-26): even rows, same width, a check circle, easy to read. */
.picklist { display: grid; gap: 8px; }
.picklist.two { grid-template-columns: 1fr 1fr; }
.pick-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15.5px; line-height: 1.3; transition: border-color .15s, background .15s; }
.pick-row.on { border-color: var(--blue); background: rgba(26, 155, 255, .12); }
.pick-row[disabled] { opacity: 1; }
.pick-box { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--dim); display: grid; place-items: center; color: #fff; }
.pick-row.on .pick-box { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.pick-box .ic { width: 14px; height: 14px; }
.pick-t { flex: 1; min-width: 0; }
.today-done { margin-bottom: 8px; }
@media (max-height: 640px) { .timer-screen .t-demo { min-height: 140px; } .t-up img, .t-up .t-up-ic { width: 36px; height: 48px; } .t-up b { font-size: 16px; } }
#sw.done { color: var(--blue-hi); }
/* Course overview (sign-up step 2 and the Program Guide) */
.overview-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.overview-list li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #0b1420); }
.overview-list b { font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); }
.overview-close { font-weight: 700; font-size: 18px; line-height: 1.35; margin: 6px 2px 0; }
.overview-open { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.overview-list li em { font-style: normal; font-weight: 700; color: #fff; }
details.how { margin: 14px 2px 0; }
details.how summary { color: var(--blue-hi); font-weight: 600; cursor: pointer; list-style: none; }
details.how summary::-webkit-details-marker { display: none; }
details.how p { margin: 8px 0 0; }
/* DF Office (office.html): just the back office, no client tab bar */
body.office .tabbar { display: none; }

/* Daily Experience journal */
.jr-entry .jr-text { white-space: pre-wrap; margin: 6px 0; }
.jr-star { color: var(--muted); padding: 4px; }
.jr-star svg { width: 22px; height: 22px; }
.jr-star.on { color: var(--t-gold); }
.jr-star.on svg { fill: currentColor; }
/* DF Office: delete a client */
.danger-btn { color: var(--danger); border-color: var(--danger); margin-top: 18px; }
/* DF Office: the five sections pinned under the title */
/* One row that slides left and right (JW, 2026-11-10: no second row of tabs). */
.bo-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line); background: var(--bg); }
.bo-tabs::-webkit-scrollbar { display: none; }
.bo-tabs button { flex: 0 0 auto; min-width: 76px; padding-left: 10px !important; padding-right: 10px !important; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px; color: var(--muted); font-size: 11.5px; font-weight: 600; border-bottom: 2px solid transparent; }
.bo-tabs button svg { width: 22px; height: 22px; }
.bo-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.bo-badge { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; line-height: 17px; text-align: center; }
/* Dashboard cards that are themselves the link */
.link-card { width: 100%; text-align: left; }
.link-card > svg:last-child { width: 20px; height: 20px; color: var(--muted); flex: none; }
.link-card.done .c-ic { color: var(--blue); }
/* Workout music tile (js/music.js): compact player */
.music-tile { padding-top: 12px; padding-bottom: 12px; }
.mt-head { margin-bottom: 10px; }
.mt-head .kicker { margin: 0; }
.mt-src { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.mt-src button { padding: 5px 14px; border-radius: 99px; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mt-src button.on { background: var(--blue); color: #fff; }
.mt-now { display: flex; align-items: center; gap: 12px; }
.mt-art { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-hi, #5cb8ff); background: linear-gradient(135deg, var(--surface2), var(--bg)); border: 1px solid var(--line); }
.mt-art svg { width: 24px; height: 24px; }
.mt-art.on { border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.mt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; box-shadow: 0 0 14px var(--blue-glow); display: grid; place-items: center; cursor: pointer; }
.music-play svg { width: 24px; height: 24px; }
.mt-ctrl { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; }
.mt-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text, #e8eef6); }
.mt-btn svg { width: 20px; height: 20px; }
.mt-btn.on { color: var(--blue-hi, #5cb8ff); background: var(--blue-soft); }
.music-vol { flex: 1; min-width: 0; margin-left: 8px; accent-color: var(--blue); }
.mt-lists { margin-top: 10px; align-items: center; }
.mt-lists .chip { padding: 6px 13px; font-size: 13.5px; }
.mt-div { flex: none; margin: 0 2px 0 6px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.music-apps .btn { text-decoration: none; white-space: nowrap; }
.music-apps { margin-top: 8px; }
.mt-lists { scrollbar-width: none; padding-bottom: 0; }
.mt-lists::-webkit-scrollbar { display: none; }
/* Community: donations, a small line at the bottom of the board */
.donate-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.donate-row span { flex: 1; color: var(--muted); font-size: 13px; }
.donate-row .btn.small { padding: 6px 14px; min-height: 0; font-size: 12px; }
/* Dashboard: My Plan (Vision → Target → Goal → Priority) */
.ladder .kicker { margin-bottom: 4px; }
.rung { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; text-align: left; border-top: 1px solid var(--line); }
.ladder .kicker + .rung { border-top: 0; }
.rung > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.rung-lbl { flex: none; width: 66px; display: flex; flex-direction: column; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
.rung-lbl small { font-family: inherit; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.rung-text { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rung-text.empty { color: var(--muted); font-weight: 500; }
.season-pill { flex: none; border: 1.5px solid var(--line); border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.season-pill.go_hard { border-color: var(--blue); color: var(--blue-hi); }
.season-pill.maintain { border-color: #3f8f6b; color: #6fd3a3; }
.season-pill.chill { border-color: #6b6f86; color: #c3c6d6; }
.rung-steps { padding: 0 0 2px 78px; }
/* Vision and Target shown above the week's Goal / the month's Target */
.plan-ctx-wrap { display: grid; gap: 8px; margin-bottom: 6px; }
.plan-ctx { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14.5px; }
.plan-ctx small { display: block; font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 2px; }
.plan-ctx i { color: var(--muted); }
/* Today's Notes: a Situation's action steps */
.jr-step { display: block; width: 100%; margin-top: 8px; }
.jr-mode { display: inline-block; margin: 2px 0 4px; font-family: var(--head); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
/* Workout tab: today's card, compact */
.today-card { padding-top: 12px; padding-bottom: 12px; }
.today-row { display: flex; align-items: center; gap: 12px; }
.today-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.today-main .kicker { margin: 0 0 2px; }
.today-title { font-family: var(--head); font-size: 21px; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.today-row .btn.small { flex: none; padding: 10px 20px; }
.today-links { display: flex; gap: 16px; margin-top: 6px; }
.today-links .linkbtn { font-size: 13px; }
/* Dashboard: today's Priority and the week's Goal */
.dash-line { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; flex-wrap: wrap; }
.dash-line .kicker { width: 100%; margin: 0 0 2px; }
.dash-line .rung-text { flex: 1; }
.dash-line > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.dash-plan .mini-check { padding: 6px 0; }
.plan-subs { margin-top: 10px; border-top: 1px solid var(--line); }
.plan-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; width: 100%; text-align: left; padding: 9px 0 0; }
.plan-sub small { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-sub span { grid-column: 1; font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-sub span.empty { color: var(--muted); }
.plan-sub > svg { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--muted); }
.season-dot { font-style: normal; margin-left: 6px; letter-spacing: .04em; }
.season-dot.go_hard { color: var(--blue-hi); }
.season-dot.maintain { color: #6fd3a3; }
.season-dot.chill { color: #c3c6d6; }
.plan-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.plan-links button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
/* Foundation day: scripture, the Day 6 sort, and the line after the action */
.day-verse { margin: 14px 0 16px; padding: 12px 14px; border-left: 3px solid var(--t-gold); background: var(--surface); border-radius: 0 12px 12px 0; font-style: italic; line-height: 1.5; }
.day-verse cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-gold); }
.day-after { font-weight: 700; margin: 14px 0 2px; }
.sort-row { padding: 10px 0; border-top: 1px solid var(--line); }
.sort-row > span { display: block; font-weight: 600; margin-bottom: 8px; }
.sort-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sort-bins button { padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.sort-bins button.on { color: #fff; border-color: transparent; }
.sort-bins button.on.fighter { background: var(--blue); }
.sort-bins button.on.friend { background: #3f8f6b; }
.sort-bins button.on.founder { background: #8a6d1f; }
/* Foundation day, plain and easy (2026-11-03): small day line, the verse, a bold title, what to do, the boxes */
.fd { padding-top: 4px; }
.fd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fd-day { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fd-day svg { width: 16px; height: 16px; color: var(--blue-hi); }
.fd-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--muted); border: 1px solid var(--line); }
span.fd-arrow { border: 0; }
.fd-verse { margin: 0 0 22px; padding: 18px 18px 16px; border-radius: 16px; background: var(--surface); text-align: center; font-size: 18px; line-height: 1.55; font-style: italic; }
.fd-verse cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--t-gold); }
.fd-title { font-size: 30px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.fd-do { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.fd-list { margin: 0 0 18px; }
.fd-list p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.mlog { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.5; margin: 0; max-height: 60vh; overflow: auto; }
.fd-modes { display: grid; gap: 12px; margin: 0 0 22px; }
.fd-mode { text-align: center; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; }
.fd-mode b { display: inline-block; font-size: 20px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); padding: 0 0 6px; }
.fd-mode p { margin: 0; font-size: 15px; line-height: 1.45; }
.fd-path { font-size: 14px; font-weight: 700; color: var(--blue-hi); margin: 0 0 14px; }
.fd-levels { display: grid; gap: 12px; margin: 0 0 20px; }
.fd-level { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.fd-level p { margin: 4px 0 10px; font-size: 15px; line-height: 1.45; }
.fd-lvl-name { font-size: 17px; }
.fd-stuck { color: var(--muted); }
.fd-level .plain { margin: 4px 0 10px; }
.fd-after { font-size: 17px; font-weight: 700; margin: 18px 0 4px; }
.fd-small { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.fd .field .lbl { font-size: 17px; }
.jr-entry > .linkbtn { display: block; margin-top: 8px; }
.jr-mode svg { width: 13px; height: 13px; vertical-align: -2px; }
/* Today's Notes list: just the date and a title (2026-11-04) */
.jr-list { padding: 4px 16px; }
.jr-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 0; text-align: left; border-top: 1px solid var(--line); }
.jr-row:first-child { border-top: 0; }
.jr-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jr-row-main small { color: var(--muted); font-size: 12.5px; }
.jr-row-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.jr-row-star svg { width: 16px; height: 16px; color: var(--t-gold); fill: currentColor; }
/* One entry, in full */
.jr-sec { margin-bottom: 18px; }
.jr-sec small { display: block; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 4px; }
.jr-sec p { font-size: 17px; line-height: 1.5; white-space: pre-wrap; margin: 0; }
.jr-actions { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
/* XP earned: a gold number floats up from the middle of the screen and fades */
.xp-pop { position: fixed; left: 50%; top: 42%; z-index: 9999; pointer-events: none; transform: translate(-50%, 0) scale(.6); font-family: var(--head); font-weight: 800; font-size: 46px; color: var(--t-gold); text-shadow: 0 0 18px rgba(255, 194, 26, .75), 0 2px 0 rgba(0, 0, 0, .4); animation: xpPop 1.6s cubic-bezier(.2, .9, .3, 1.2) forwards; white-space: nowrap; }
.xp-pop small { font-size: 22px; margin-left: 6px; letter-spacing: .1em; }
@keyframes xpPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 30% { transform: translate(-50%, -6px) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90px) scale(.95); } }
/* Dashboard gauges, rearranged (2026-11-04): XP goal left (under the name), day streak middle, today's XP as a rising bar */
.xbar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 6px; }
.xbar-n { font-family: var(--head); font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 0; line-height: 1; }
.xbar-track { position: relative; width: 22px; height: 96px; border-radius: 11px; background: var(--surface2); overflow: hidden; }
.xbar-track i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 11px; background: linear-gradient(to top, var(--blue), var(--blue-hi)); box-shadow: 0 0 14px var(--blue-glow); transform-origin: bottom; animation: xbarRise .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes xbarRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .xbar-track i { animation: none; } }
/* v3: each gauge + its label is one column. With a photo, the streak and today's bar sit on the photo's bottom edge. */
.cluster.v3 { display: grid; grid-template-columns: 1.55fr 1fr .62fr; grid-template-rows: auto; align-items: start; column-gap: 6px; padding: 0 8px; }
.cluster.v3 .gcol { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cluster.v3 .speedo { width: 100%; max-width: 190px; }
.cluster.v3 .g-lbl { margin-top: 2px; }
.cluster.v3 .g-lbl.main { margin-top: -16px; }
.cluster.v3 .g-lbl.main .g-xp { font-size: 30px; }
.cluster.v3 .g-lbl.main .g-target { font-size: 12.5px; letter-spacing: .12em; }
.cluster.v3 .g-lbl b { font-size: 13px; }
.cluster.v3 .g-streak .ring { width: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(4, 6, 10, .82) 62%, transparent 64%); }
.cluster.v3 .g-today .xbar { background: rgba(4, 6, 10, .72); border-radius: 14px; padding: 8px 8px 8px; }
.cluster.v3 .g-streak, .cluster.v3 .g-today { align-self: end; }
.dash-head:has(img) + .cluster.v3 .g-streak { align-self: start; margin-top: 46px; }
.dash-head:has(img) + .cluster.v3 .g-today { align-self: start; margin-top: 28px; }
.cluster.v3 .g-lbl { align-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cluster.v3 .g-lbl.main { margin-top: -4px; }
.dash-head:not(:has(img)) .cam { top: 4px; bottom: auto; right: 2px; width: 36px; height: 36px; }
/* Workout tab, Today (2026-11-04): "TODAY · Stretching" and three choices */
.today-card { padding: 12px 14px; }
.today-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.today-head .kicker { margin: 0; }
.today-head .today-title { font-size: 19px; }
.today-opts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.today-opts .btn.small { padding: 10px 4px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.today-done { display: flex; align-items: center; justify-content: space-between; }
/* Music: small player + Library button */
.mt-ctrl .mt-gap { flex: 1; }
.mt-lib { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; }
.mt-lib svg { width: 16px; height: 16px; }
/* Music library and DF Office album pages: clean rows */
.card.lib { padding: 2px 14px; }
.lib-row, .song-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; border-top: 1px solid var(--line); background: var(--surface); }
.card.lib > :first-child { border-top: 0; }
.lib-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--blue-hi); }
.lib-ic svg { width: 20px; height: 20px; }
.lib-t, .song-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-t b, .song-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-t small, .song-t small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.song-n { flex: none; width: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.song-n svg { width: 16px; height: 16px; color: var(--blue-hi); }
.song-row.on b, .song-row.on .song-n { color: var(--blue-hi); }
.song-d { flex: none; color: var(--muted); font-size: 13px; }
.song-row.pick.on .song-n { color: #fff; background: var(--blue); border-radius: 50%; width: 24px; height: 24px; line-height: 24px; font-size: 12px; }
.song-row.pick .song-n svg { width: 16px; height: 16px; vertical-align: -3px; }
/* DF Office: drag to reorder */
.drag-row { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s ease; position: relative; }
.drag-row.dragging { transition: none; z-index: 5; background: var(--surface2); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); border-radius: 10px; }
.drag-handle { flex: none; width: 28px; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; }
.drag-handle svg { width: 20px; height: 20px; }
.mini-btn { flex: none; min-width: 36px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.danger { color: var(--danger); }
.hidden-song .song-t { opacity: .5; }
/* DF Office → Coaching calendar */
.card.cal { padding: 12px 10px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 17px; }
.cal-head .iconbtn.flip svg { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid small { color: var(--muted); font-size: 12px; font-weight: 600; padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 10px; font-size: 15px; font-weight: 600; display: grid; place-items: center; background: var(--surface2); }
.cal-day.off { background: transparent; color: var(--dim); }
.cal-day.past { opacity: .55; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--blue-hi); }
.cal-day.sel { background: var(--blue); color: #fff; opacity: 1; }
.cal-day i { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--t-gold); color: #000; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 16px; }
/* Workout setup: − / + counters for sets and times */
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 24px; line-height: 1; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; } /* − and + dead center */
.stepper input { flex: 1; min-width: 0; text-align: center; font-family: var(--head); font-size: 26px; font-weight: 800; padding: 8px 4px; }
.stepper span { color: var(--muted); font-weight: 600; margin-left: -4px; }
/* Workout setup (JW, 2026-11-07): one compact sets row per part, then each part as its own block with a centered title. */
.set-rows { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.set-rows .field { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 0; }
.set-rows .field + .field { border-top: 1px solid var(--line); }
.set-rows .field .lbl { margin: 0; font-size: 15px; }
.set-rows .stepper { gap: 6px; flex: none; }
.set-rows .stepper button { width: 38px; height: 38px; font-size: 20px; }
.set-rows .stepper input { flex: none; width: 52px; font-size: 22px; padding: 4px; }
.ws-sec { margin: 22px 0 6px; padding: 14px 14px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ws-head { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
.ws-head::before, .ws-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ws-sub { text-align: center; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.ws-sec .ex-row:last-child { border-bottom: 0; }
.row2 .stepper { gap: 4px; }
.row2 .stepper button { width: 36px; height: 36px; font-size: 20px; }
.row2 .stepper input { font-size: 22px; padding: 6px 2px; }
.row2 .stepper span { margin: 0 2px 0 -2px; font-size: 13px; }
/* Messages from JW: bubbles in the app and on a client's page in DF Office */
.msg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.msg { align-self: flex-start; max-width: 88%; background: var(--surface2); border-radius: 16px 16px 16px 4px; padding: 10px 13px; }
.msg.mine { align-self: flex-end; background: var(--blue-soft); border: 1px solid rgba(0, 126, 205, .35); border-radius: 16px 16px 4px 16px; }
.msg.new { box-shadow: inset 0 0 0 1.5px var(--blue-hi); }
.msg p { margin: 0 0 4px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.msg small { color: var(--muted); font-size: 12px; }
.msg small .linkbtn { font-size: 12px; margin-left: 6px; }
.msg-alert { border-color: var(--blue); box-shadow: 0 0 14px var(--blue-glow); }
/* Music: repeat button (repeat all / repeat one / off) */
.mt-btn, .grp-rep { position: relative; }
.mt-btn:not(.on) { opacity: .85; }
.rep1 { position: absolute; top: 4px; right: 3px; min-width: 13px; height: 13px; border-radius: 99px; background: var(--blue); color: #fff; font-style: normal; font-size: 9px; font-weight: 800; line-height: 13px; text-align: center; }
.grp-btns { display: grid; grid-template-columns: 1fr 52px 52px 52px; gap: 8px; margin-bottom: 12px; }
.grp-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.grp-btns .btn svg { width: 18px; height: 18px; }
.grp-rep { padding: 0; color: var(--muted); }
.grp-rep.on { color: var(--blue-hi); border-color: var(--blue); }
.grp-rep .rep1 { top: 6px; right: 8px; }
/* Profile photo framer: the slot's shape (4:5); drag and zoom inside it */
.pc-frame { position: relative; width: min(78vw, 300px); aspect-ratio: 4 / 5; margin: 8px auto 12px; border-radius: 18px; overflow: hidden; background: var(--surface2); touch-action: none; cursor: grab; box-shadow: 0 0 0 2px var(--blue), 0 0 22px var(--blue-glow); }
.pc-frame img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.pc-zoom { display: block; width: min(78vw, 300px); margin: 6px auto 0; accent-color: var(--blue); }
.dash-head:has(img) .dh-photo img { object-position: center; } /* the framed photo is already cropped: show it as framed */
/* Promotion: takes over the screen, sparks burst around the logo, then the words rise in */
.promo-screen .tabbar { display: none; }
.promo-burst { position: relative; display: grid; place-items: center; margin-bottom: 14px; animation: promoReveal .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.promo-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--t-gold); box-shadow: 0 0 10px var(--t-gold); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: promoSpark 1.4s ease-out var(--d) 2 both; }
.promo-burst i:nth-child(odd) { background: var(--blue-hi); box-shadow: 0 0 10px var(--blue-hi); }
.promo-title { animation: promoRise .7s ease-out .35s both; }
.promo-screen .lead, .promo-screen .muted, .promo-screen .kicker { animation: promoRise .7s ease-out .55s both; }
@keyframes promoReveal { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes promoSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px) scale(.2); } }
@keyframes promoRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-burst, .promo-burst i, .promo-title, .promo-screen .lead, .promo-screen .muted, .promo-screen .kicker { animation: none; opacity: 1; } .promo-burst i { display: none; } }
/* Action step checked: the box pops, sparks burst, the step is crossed off */
.mini-check.on > span:not(.box), .mini-check.on { text-decoration-color: var(--muted); }
.mini-check.on { color: var(--muted); text-decoration: line-through; }
.mini-check.on .box { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); color: #fff; }
.mini-check.just .box { animation: boxPop .45s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes boxPop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.burst { position: fixed; z-index: 9998; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--t-gold); box-shadow: 0 0 8px var(--t-gold); animation: burstOut .8s ease-out forwards; }
.burst i:nth-child(3n) { background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
@keyframes burstOut { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) scale(.3); } }
@media (prefers-reduced-motion: reduce) { .mini-check.just .box { animation: none; } }
.burst.big i { width: 9px; height: 9px; margin: -4.5px; animation-duration: 1.2s; }
/* Dashboard: no photo yet → an invitation in the slot (no camera button once there's a photo) */
.add-photo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 0 14px var(--blue-glow); cursor: pointer; animation: addPulse 2.4s ease-in-out infinite; }
.add-photo svg { width: 16px; height: 16px; }
.dash-head:not(:has(img)) .dh-photo { display: flex; flex-direction: column; align-items: center; }
@keyframes addPulse { 0%, 100% { box-shadow: 0 0 10px var(--blue-glow); } 50% { box-shadow: 0 0 22px var(--blue-glow); } }
@media (prefers-reduced-motion: reduce) { .add-photo { animation: none; } }
/* DF Office: client rows with a face */
.bo-client { display: block; width: 100%; text-align: left; padding: 12px 14px; }
.bo-c-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bo-c-top b { font-size: 17px; }
.bo-c-day { color: var(--blue-hi); font-weight: 700; font-size: 14px; }
.bo-c-top .pill { margin-left: auto; }
.bo-c-bot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bo-c-bot small { flex: 1; }
.bo-c-bot > svg { width: 18px; height: 18px; color: var(--muted); }
.av { flex: none; display: grid; place-items: center; object-fit: cover; background: var(--surface2); color: var(--blue-hi); font-weight: 800; border: 1.5px solid var(--line); }
.av.sm { width: 38px; height: 38px; border-radius: 50%; font-size: 13px; }
.av.lg { width: 112px; height: 140px; border-radius: 16px; font-size: 32px; }
.bo-face { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 14px; }
.refund-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.refund-row span { font-size: 22px; font-weight: 700; color: var(--muted); }
.refund-row input { flex: 1; font-size: 20px; font-weight: 700; }
/* Seven things God hates: "No" (kept clear) lights blue, "Yes" (did it) lights a soft red */
.sa.on.kept { background: var(--blue); border-color: var(--blue); color: #fff; }
.sa.on.slip { background: rgba(255, 107, 107, .18); border-color: var(--danger); color: var(--danger); }
/* Formatting pass (2026-11-04) */
/* The three gauge labels: same size, same line height, so they sit level */
.cluster.v3 .g-lbl b, .cluster.v3 .g-lbl.main .g-target { font-size: 13px; line-height: 18px; letter-spacing: .12em; }
/* Small buttons and filters stay on one line (big choice cards may still wrap) */
.chips:not(.big) .chip, .pill, .btn.small, .seg button { white-space: nowrap; }
.chips:not(.scroll-x) .chip { white-space: normal; } /* after the rule above on purpose: a long option wraps, short ones still fit on one line */
.chips:not(.big) { row-gap: 8px; }
/* "Add photo" invitation: one line, centered under the logo */
.add-photo { white-space: nowrap; padding: 6px 12px; font-size: 12px; }
.cluster.v3 .g-lbl.main { transform: translateY(2px); }
/* Music progress bar: thin blue line that fills as the song plays; tap or drag to move through it (--p = filled %) */
.mbar { margin: 10px 0 0; }
.mbar-in { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 0; padding: 0; background: transparent; touch-action: none; cursor: pointer; }
.mbar-in::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--blue) var(--p, 0%), var(--line) var(--p, 0%)); }
.mbar-in::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--blue) var(--p, 0%), var(--line) var(--p, 0%)); }
.mbar-in::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--blue-hi); border: 0; box-shadow: 0 0 0 4px var(--blue-soft); }
.mbar-in::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blue-hi); border: 0; box-shadow: 0 0 0 4px var(--blue-soft); }
.mbar-in:focus { outline: none; }
.mbar-t { display: flex; justify-content: space-between; margin-top: -2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mbar-t small { font-size: 11px; }
.mbar-card { margin-bottom: 12px; }
.mbar-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress bar: sign-up steps and the app tour (JW, 2026-11-11). */
.prog-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 6px 0 12px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: #007ECD; border-radius: 4px; transition: width .3s ease; }
.tour-tip .prog-bar { margin: 4px 0 8px; }

/* Lights: a line from Check-in → Workout → Close-out (JW, 2026-11-11). It glows while the light on its left is due. */
.light { position: relative; --ls: 54px; }
.lline { position: absolute; top: calc(var(--ls) / 2 - 1px); left: calc(50% + var(--ls) / 2 + 2px); width: calc(100% - var(--ls) - 4px); height: 2px; background: #1f3550; border-radius: 2px; pointer-events: none; }
.lline.on { background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-glow); animation: lightPulse 2.4s ease-in-out infinite; }
@media (max-width: 380px) { .light { --ls: 46px; } }

/* Tab bar: icons only; the name pops up above the icon for a moment when pressed. */
.tabbar button { padding: 10px 0; }
.tabbar button .ic { width: 26px; height: 26px; }
#tab-tip { position: fixed; z-index: 90; transform: translate(-50%, -100%); background: var(--surface); border: 1px solid var(--blue); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
#tab-tip.show { opacity: 1; }
.sx-big { color: var(--blue-hi); text-shadow: 0 0 24px var(--blue-glow); }

/* Gold stars beside the rank (JW, 2026-11-11) */
.star-row { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: -3px; padding: 0; }
.gstar { position: relative; display: inline-grid; width: 16px; height: 16px; }
.gstar svg { width: 100%; height: 100%; fill: none; stroke: rgba(255, 194, 26, .55); stroke-width: 1.6; stroke-linejoin: round; }
.gstar.on svg { fill: var(--t-gold); stroke: var(--t-gold); filter: drop-shadow(0 0 4px rgba(255, 194, 26, .6)); }
.gstar.new svg { animation: starFill 1.1s cubic-bezier(.2, .9, .3, 1.4) both; }
.gstar.new i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--t-gold); box-shadow: 0 0 8px var(--t-gold); opacity: 0; transform: rotate(var(--a)); animation: starSpark 1.2s ease-out .25s 2 both; }
@keyframes starFill { 0% { transform: scale(.3); fill: transparent; } 55% { transform: scale(2.1); } 100% { transform: scale(1); } }
@keyframes starSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-26px); } }
.gstar.big { width: 34px; height: 34px; flex: none; }
.star-item { display: flex; align-items: center; gap: 14px; }
@media (prefers-reduced-motion: reduce) { .gstar.new svg, .gstar.new i { animation: none; } .gstar.new i { display: none; } }
.star-mini { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; }

/* Tab bar liquid ball (JW, 2026-11-11): behind the open tab; glides and stretches to the next tab. */
.tabbar { position: relative; }
.tabbar button { position: relative; z-index: 1; }
.tab-blob { position: absolute; z-index: 0; top: 7px; width: 42px; height: 42px; border-radius: 50%;
  left: calc(2px + (100% - 4px) / 6 * var(--i) + ((100% - 4px) / 6 - 42px) / 2);
  background: radial-gradient(circle at 40% 35%, rgba(26, 155, 255, .55), rgba(0, 126, 205, .28) 55%, rgba(0, 126, 205, .08) 75%);
  box-shadow: 0 0 16px var(--blue-glow); transition: left .5s cubic-bezier(.55, -0.15, .3, 1.25); pointer-events: none; }
.tab-blob.move { animation: blobStretch .5s ease-in-out; }
@keyframes blobStretch { 0% { transform: scale(1, 1); } 35% { transform: scale(1.9, .7); border-radius: 45%; } 70% { transform: scale(.85, 1.12); } 100% { transform: scale(1, 1); } }
@media (prefers-reduced-motion: reduce) { .tab-blob { transition: none; } .tab-blob.move { animation: none; } }

/* Section tabs (Education's Walkthrough / Basic Education…, the All · Albums · Playlists switches, DF Office tabs):
   the open one gets the tab bar's translucent blue glow instead of a solid fill (JW, 2026-11-11). */
.chips.scroll-x .chip.on, .seg button.on, .bo-tabs button.on {
  background: radial-gradient(ellipse at 50% 40%, rgba(26, 155, 255, .42), rgba(0, 126, 205, .2) 60%, rgba(0, 126, 205, .08) 100%);
  border-color: rgba(26, 155, 255, .55); color: #fff; box-shadow: 0 0 16px var(--blue-glow), inset 0 0 10px rgba(26, 155, 255, .25); }
.bo-tabs button.on { border-radius: 10px 10px 0 0; border-bottom-color: var(--blue-hi); }

/* Drop-down picker (Meal Plans → What are you regulating?), in the same translucent blue glow. */
.pick-select { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; color: #fff; padding: 13px 40px 13px 14px; border-radius: 12px;
  border: 1px solid rgba(26, 155, 255, .55); box-shadow: 0 0 14px var(--blue-glow), inset 0 0 10px rgba(26, 155, 255, .2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a9bff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px,
    radial-gradient(ellipse at 50% 40%, rgba(26, 155, 255, .3), rgba(0, 126, 205, .12) 70%); }
.pick-select option { background: #0b1220; color: #fff; }
.fd-out { margin-top: 6px; font-size: 14px; color: var(--muted); }
.fd-out span { color: #ff8a8a; font-weight: 600; }

/* Large open/close buttons (Meal Plans → Guides: Tips, Detox diet, Maintaining your diet). */
.big-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 18px; border-radius: 16px;
  font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  border: 1px solid rgba(26, 155, 255, .35); background: var(--surface); }
.big-toggle .ic { transition: transform .25s; color: var(--blue-hi); }
.big-toggle.on { background: radial-gradient(ellipse at 50% 40%, rgba(26, 155, 255, .42), rgba(0, 126, 205, .2) 60%, rgba(0, 126, 205, .08) 100%);
  border-color: rgba(26, 155, 255, .55); box-shadow: 0 0 16px var(--blue-glow), inset 0 0 10px rgba(26, 155, 255, .25); }
.big-toggle.on .ic { transform: rotate(90deg); }
.big-toggle-body { display: grid; gap: 10px; margin-top: -4px; }
.welcome-quit { margin: 10px 0 4px; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; text-align: left; font-size: 15px; }
.welcome-quit b { color: var(--blue-hi); }

/* ---------- Liquid glass (JW 2026-11-11): on for everyone, app and DF Office (ui.js adds html.glass). ----------
   Clearer, glassier sections: a faint sheen, a brighter edge, a soft top highlight, and a little blue light behind the
   page so the glass has something to catch. Letters go brighter so they pop. */
html.glass body, html.glass .app { background:
  radial-gradient(60% 40% at 15% 10%, rgba(0, 126, 205, .16), transparent 70%),
  radial-gradient(50% 35% at 90% 55%, rgba(26, 155, 255, .10), transparent 70%),
  radial-gradient(60% 40% at 30% 95%, rgba(0, 126, 205, .12), transparent 70%), var(--bg); }
html.glass .card, html.glass .lights, html.glass .plan-card, html.glass .big-toggle, html.glass .seg, html.glass .lib-row, html.glass .dash-plan {
  background: linear-gradient(150deg, rgba(255, 255, 255, .085) 0%, rgba(120, 190, 255, .045) 38%, rgba(255, 255, 255, .02) 70%, rgba(26, 155, 255, .06) 100%);
  border: 1px solid rgba(150, 205, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 126, 205, .18), 0 8px 24px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
html.glass .card.hl, html.glass .big-toggle.on { border-color: rgba(26, 155, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 22px rgba(0, 126, 205, .3), 0 8px 24px rgba(0, 0, 0, .35); }
html.glass .card b, html.glass .plan-card b, html.glass .light b, html.glass .comp span { color: #fff; }
html.glass .muted, html.glass small.muted { color: #9fb6cf; }
html.glass .tabbar { background: linear-gradient(180deg, rgba(12, 20, 30, .72), rgba(4, 6, 10, .9)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-top-color: rgba(150, 205, 255, .2); }
/* Liquid glass, turned up a notch (JW, 2026-11-11): stronger sheen, brighter edge, more blue light behind. */
html.glass body, html.glass .app { background:
  radial-gradient(60% 40% at 15% 10%, rgba(0, 126, 205, .26), transparent 70%),
  radial-gradient(55% 38% at 92% 50%, rgba(26, 155, 255, .18), transparent 70%),
  radial-gradient(65% 45% at 25% 95%, rgba(0, 126, 205, .2), transparent 70%), var(--bg); }
html.glass .card, html.glass .lights, html.glass .plan-card, html.glass .big-toggle, html.glass .seg, html.glass .lib-row, html.glass .dash-plan {
  background: linear-gradient(150deg, rgba(255, 255, 255, .14) 0%, rgba(140, 200, 255, .07) 32%, rgba(255, 255, 255, .025) 62%, rgba(26, 155, 255, .11) 100%);
  border: 1px solid rgba(170, 215, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 18px rgba(26, 155, 255, .1), inset 0 -1px 0 rgba(26, 155, 255, .3), 0 0 14px rgba(0, 126, 205, .14), 0 8px 24px rgba(0, 0, 0, .4); }
html.glass .card.hl, html.glass .big-toggle.on { border-color: rgba(60, 170, 255, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 20px rgba(26, 155, 255, .16), 0 0 26px rgba(0, 126, 205, .4), 0 8px 24px rgba(0, 0, 0, .4); }
/* Liquid glass, glow eased back (JW, 2026-11-11): keep the clear glass, drop the boxes' own glow so the things that are
   meant to glow (lights, the open tab, buttons) stand out again. */
html.glass body, html.glass .app { background:
  radial-gradient(60% 40% at 15% 10%, rgba(0, 126, 205, .17), transparent 70%),
  radial-gradient(55% 38% at 92% 50%, rgba(26, 155, 255, .11), transparent 70%),
  radial-gradient(65% 45% at 25% 95%, rgba(0, 126, 205, .13), transparent 70%), var(--bg); }
html.glass .card, html.glass .lights, html.glass .plan-card, html.glass .big-toggle, html.glass .seg, html.glass .lib-row, html.glass .dash-plan {
  border-color: rgba(170, 215, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(26, 155, 255, .18), 0 8px 24px rgba(0, 0, 0, .4); }
html.glass .card.hl, html.glass .big-toggle.on { border-color: rgba(60, 170, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 14px rgba(0, 126, 205, .22), 0 8px 24px rgba(0, 0, 0, .4); }
/* Liquid glass, final (JW, 2026-11-11): an extremely black page with no blue light behind it, and no glow on the
   sections. Just clear, liquid glass: the sheen, the thin bright top edge and a crisp outline. */
html.glass body, html.glass .app { background: #000; }
html.glass .card, html.glass .lights, html.glass .plan-card, html.glass .big-toggle, html.glass .seg, html.glass .lib-row, html.glass .dash-plan {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .05); }
html.glass .card.hl, html.glass .big-toggle.on { border-color: rgba(60, 170, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(255, 255, 255, .05); }
html.glass .tabbar { background: rgba(0, 0, 0, .85); }
/* Tap ripple: see ui.js */
.ripple-box { position: fixed; z-index: 95; overflow: hidden; pointer-events: none; }
.ripple-box i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(26, 155, 255, .45) 0%, rgba(0, 126, 205, .22) 35%, rgba(0, 126, 205, 0) 65%);
  transform: scale(0); animation: rippleGo .6s ease-out forwards; }
@keyframes rippleGo { 0% { transform: scale(0); opacity: 1; } 70% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* Floating music player (JW, 2026-11-11): top-right over every screen once a song starts. Black glass pill. */
#music-float { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; z-index: 8990; display: flex; align-items: center; gap: 6px;
  max-width: min(62vw, 260px); padding: 5px 5px 5px 12px; border-radius: 999px; color: #fff;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(140, 200, 255, .06) 45%, rgba(0, 0, 0, .7)), rgba(0, 0, 0, .78);
  border: 1px solid rgba(170, 215, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 6px 18px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); transition: top .25s; }
#music-float { touch-action: none; user-select: none; -webkit-user-select: none; }
#music-float.drag { opacity: .85; transform: scale(1.04); transition: none; }
#music-float.low { top: calc(env(safe-area-inset-top, 0px) + 58px); }
#music-float button.mf-t { flex: 1; min-width: 0; width: auto; height: 32px; display: block; text-align: left; padding: 0 4px; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#music-float button.mf-x { width: 26px; height: 26px; font-size: 18px; line-height: 1; background: none; color: rgba(255, 255, 255, .6); }
#music-float button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); }
#music-float button svg { width: 17px; height: 17px; }
#music-float .mf-play { background: var(--blue); }
body.office #music-float { display: none; }
.gear-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.gear-row + .gear-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.gear-row svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.gear-row small { display: block; }
.overview-goal { margin: 10px 0 0; color: var(--blue-hi); font-weight: 600; }

/* Library mini player (2026-11-17): stays at the top while they scroll; the floating player hides here (no double). */
.mini-player { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; margin-bottom: 10px; background: rgba(8, 14, 22, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mini-player .mp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-player .mp-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player .mp-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player .music-play { width: 42px; height: 42px; }
.mini-player .music-play svg { width: 20px; height: 20px; }
body:has(#mini-player:not([hidden])) #music-float { display: none; }
#all-songs [hidden] { display: none; }