:root {
  --bg: #faf7f2; --card: #ffffff; --text: #14202b; --muted: #64707d; --line: #e8e2d8;
  --accent: #0077b6; --accent-soft: #e2f3fb; --danger: #c0392b; --sun: #ffc93c; --sea2: #00b4d8;
  --m-body: #d9dce2; --m-idle: #c3c7cf; --m-primary: #e5484d; --m-secondary: #f4a76f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1520; --card: #16212f; --text: #eef3f7; --muted: #9aa8b6; --line: #253244;
          --accent: #4fc3f7; --accent-soft: #0f2b3d; --danger: #f87171; --sun: #ffd166; --sea2: #48cae4;
          --m-body: #2b2f37; --m-idle: #3a3f49; --m-primary: #ff5a5f; --m-secondary: #d9894f; color-scheme: dark; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, "SF Hebrew", "Segoe UI", Arial, sans-serif; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }

.screen { max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px); }
.screen.tab { padding-bottom: calc(env(safe-area-inset-bottom) + 88px); }
.top h1 { margin: 8px 0 0; font-size: 28px; }
.sub { margin: 2px 0 16px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.card h2 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 4px 0 8px; }
.card h2 ~ h2 { margin-top: 14px; }
.seg { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 4px; border-radius: 9px; font-weight: 600; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.15); color: var(--accent); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px; }
.checks input, .switch-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.primary { width: 100%; border: 0; background: var(--accent); color: #fff; padding: 16px; border-radius: 14px;
  font-size: 19px; font-weight: 700; margin: 6px 0; }
.primary:disabled { opacity: .6; }
.secondary-btn { width: 100%; border: 2px solid var(--accent); color: var(--accent); background: transparent; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 17px; }
.ghost { border: 1px solid var(--line); background: transparent; padding: 8px 14px; border-radius: 10px; }
.ghost.wide { width: 100%; padding: 12px; }
.danger { background: var(--danger); color: #fff; border: 0; padding: 8px 14px; border-radius: 10px; }
.danger-text { color: var(--danger); }
.muted { color: var(--muted); font-size: 14px; text-align: center; margin: 6px 0; }
.small { font-size: 13px; }
.left { text-align: start; }
.error { color: var(--danger); background: var(--card); border: 1px solid var(--danger); border-radius: 12px; padding: 10px 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row.center { justify-content: center; }
.badge { font-size: 11px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 6px; }
.history { margin: 0; padding: 0 18px 0 0; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.history li:last-child { border-bottom: 0; }

/* lists */
.day-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ex-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ex-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ex-list li:last-child { border-bottom: 0; }
.ex-list .nm { font-weight: 600; }
.ex-list .mu { font-size: 13px; color: var(--muted); }
.ex-list .dose { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-card .day-title { display: flex; justify-content: space-between; align-items: baseline; }
.day-card .day-title small { font-size: 14px; color: var(--muted); font-weight: 400; }

/* tabs */
.tabs { position: fixed; bottom: 0; inset-inline: 0; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); z-index: 5; }
.tabs button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); padding: 4px; }
.tabs button span { font-size: 20px; }
.tabs button.on { color: var(--accent); font-weight: 700; }

/* exercise sheet */
.sheet { padding-top: calc(env(safe-area-inset-top) + 8px); }
.back { border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 8px 0; }
.sheet h1 { margin: 4px 0 0; font-size: 26px; }
.muscle-map { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.m-body { fill: var(--m-body); }
.m-idle { fill: var(--m-idle); }
.m-primary { fill: var(--m-primary); }
.m-secondary { fill: var(--m-secondary); }
.m-label { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.legend { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-inline-start: 8px; }
.dot-p { background: var(--m-primary); } .dot-s { background: var(--m-secondary); }
.steps { margin: 0; padding: 0 20px 0 0; }
.steps li { margin: 4px 0; }

/* guided */
#guided { display: flex; flex-direction: column; min-height: 100dvh; }
.g-top { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
#gClock { font-variant-numeric: tabular-nums; }
.g-progress { height: 6px; background: var(--line); border-radius: 3px; margin: 8px 0 12px; overflow: hidden; }
#gBar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.g-main { flex: 1; text-align: center; }
.g-phase { color: var(--accent); font-weight: 700; font-size: 15px; min-height: 1.4em; }
.g-main h1 { margin: 2px 0; font-size: 30px; }
.g-work { font-size: 22px; font-weight: 600; }
.g-timer { font-size: 84px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-next { color: var(--muted); min-height: 1.4em; }
.g-map .muscle-map { max-width: 260px; }
.g-heard { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.g-actions { padding-top: 8px; }
.g-actions .primary { font-size: 22px; padding: 20px; }

/* camera */
.cam { position: fixed; inset: 0; background: #000; color: #fff; z-index: 10; overflow: hidden; }
#video, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mirror { transform: scaleX(-1); }
.hud-top { position: absolute; top: 0; inset-inline: 0; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(rgba(0,0,0,.65), transparent); font-size: 17px; }
.hud-count { position: absolute; top: calc(env(safe-area-inset-top) + 48px); inset-inline-start: 16px;
  font-size: 84px; font-weight: 800; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.hud-count small { font-size: 30px; opacity: .8; }
.chip { position: absolute; top: calc(env(safe-area-inset-top) + 56px); inset-inline-end: 16px;
  background: rgba(0,0,0,.6); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.chip.ok { color: #7ef0ae; } .chip.bad { color: #ffb36b; }
#camPartials { top: calc(env(safe-area-inset-top) + 96px); }
.coach-msg { position: absolute; inset-inline: 12px; bottom: calc(env(safe-area-inset-bottom) + 96px);
  background: rgba(15,17,21,.85); border-radius: 14px; padding: 12px 16px; font-size: 21px; font-weight: 600; text-align: center; }
.hud-bottom { position: absolute; bottom: 0; inset-inline: 0; display: flex; justify-content: center; gap: 22px;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 26px; }
.round.danger { background: #d92d20; }
.big-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); gap: 6px; font-size: 24px; font-weight: 600; text-align: center; padding: 16px; }
#camBigNum { font-size: 120px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* 3D coach */
.avatar-box { position: relative; background: linear-gradient(#ffffff, #e9ecf1); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
@media (prefers-color-scheme: dark) { .avatar-box { background: linear-gradient(#2a2f38, #171a20); } }
.avatar-box canvas { display: block; width: 100%; height: 380px; touch-action: none; }
.g-avatar canvas { height: 46vh; }
.avatar-hint { position: absolute; bottom: 6px; inset-inline: 0; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }

/* training gates */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-grid button { border: 2px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 8px; font-weight: 600; text-align: center; }
.mode-grid button span { display: block; font-size: 24px; }
.mode-grid button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* reminders + music */
.remind-banner { position: fixed; top: 0; inset-inline: 0; z-index: 20; background: var(--accent); color: #fff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.25); text-align: center; }
.rb-text { font-size: 20px; font-weight: 700; }
.rb-go { background: #fff; color: var(--accent); font-weight: 700; }
.rb-light { color: #fff; border-color: rgba(255,255,255,.6); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.time-input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.sheet-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sheet-card { background: var(--card); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); }
.music-grid { display: grid; gap: 8px; margin: 10px 0; }
.music-btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; }
.music-btn.spotify { background: #1db954; } .music-btn.apple { background: #fa2d48; } .music-btn.ytm { background: #ff0000; }
.switch-row input.time-input { width: auto; height: auto; font-size: 18px; }

.rb-who { font-size: 13px; opacity: .85; }
.rb-text { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 4px 0 8px; }
.week-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.week-days { display: flex; gap: 6px; margin: 10px 0 6px; }
.week-days span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; background: var(--bg); color: var(--muted); font-weight: 600; }
.week-days span.plan { background: var(--accent-soft); color: var(--accent); }
.week-days span.done { background: var(--accent); color: #fff; }
.week-days span.today { outline: 2px solid var(--accent); }

.g-rate { background: var(--accent-soft); border-radius: 14px; padding: 10px; margin: 8px 0; }
.g-rate .small { font-weight: 700; color: var(--accent); }
.g-rate button.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== design refresh: today / welcome / splash / progress / tab bar ===== */
:root { --cta: #ff6b2c; --cta-text: #fff; --shadow: 0 2px 14px rgba(20, 30, 40, .07); }
@media (prefers-color-scheme: dark) { :root { --cta: #ff7a3d; --shadow: none; } }
.card { border-radius: 20px; box-shadow: var(--shadow); border-color: transparent; }
@media (prefers-color-scheme: dark) { .card { border-color: var(--line); } }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.today-head { padding: 6px 2px 10px; }
.today-head h1 { margin: 2px 0 0; font-size: 32px; line-height: 1.15; }
.card.today { padding: 18px; }
.card.today .day-title { font-size: 22px; margin: 4px 0 2px; }
.meta { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.primary.cta { background: var(--cta); color: var(--cta-text); border-radius: 16px; box-shadow: 0 6px 16px rgba(255, 107, 44, .28); }
.linkish { display: block; width: 100%; border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 8px; }
.small-row { margin-top: 2px; }
.section-title { font-size: 18px; margin: 18px 4px 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; border-radius: 18px; padding: 16px 14px; text-align: start; font-weight: 700; font-size: 16px; color: #1b1b1b; min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; }
.tile small { font-weight: 500; font-size: 12px; opacity: .75; }
.tile:nth-child(4n+1) { background: #ffe1d6; } .tile:nth-child(4n+2) { background: #ffeec7; }
.tile:nth-child(4n+3) { background: #d9ecff; } .tile:nth-child(4n+4) { background: #dcf3e4; }
.text-input { width: 100%; font: inherit; font-size: 18px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.text-input.search { margin-bottom: 10px; font-size: 16px; }

/* splash */
.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #00b4d8, #0077b6 55%, #023e8a); color: #fff; transition: opacity .45s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash .logo { width: 92px; height: 92px; color: #ff6b2c; animation: pop .7s ease-out; }
.splash-name { font-size: 34px; font-weight: 800; }
.splash-tag { opacity: .85; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* welcome */
.welcome .hero { text-align: center; padding: 20px 6px 8px; }
.welcome .hero .logo { width: 72px; height: 72px; color: var(--accent); }
.welcome .hero h1 { font-size: 28px; margin: 10px 0 6px; }

/* progress */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; direction: ltr; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--muted); }
.bars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); min-height: 3px; }
.bars div.goal i { background: var(--cta); }

/* me */
.profile-card { display: flex; align-items: center; gap: 14px; }
.avatar-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex: none; }

/* tab bar: floating pill */
.tabs { inset-inline: 10px; bottom: calc(env(safe-area-inset-bottom) + 8px); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12); padding: 6px 4px; max-width: 540px; margin: 0 auto; }
.tabs button { font-size: 11px; gap: 2px; border-radius: 14px; }
.tabs button svg { width: 22px; height: 22px; fill: currentColor; }
.tabs button.on { background: var(--accent-soft); }
.screen.tab { padding-bottom: calc(env(safe-area-inset-bottom) + 100px); }

/* ===== splash v2 ===== */
.splash { background: radial-gradient(120% 90% at 50% 20%, #48cae4 0%, #0096c7 40%, #023e8a 100%); }
.splash .logo { box-shadow: 0 10px 40px rgba(255, 107, 44, .45); border-radius: 22px; animation: pop .7s ease-out, pulse 1.6s ease-in-out .7s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.splash-bar { width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 18px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 2px; animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(160%); } to { transform: translateX(-260%); } }

/* ===== intro carousel ===== */
.intro { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; background: linear-gradient(180deg, #dff3fb 0%, #fff4e0 35%, var(--bg) 60%); }
@media (prefers-color-scheme: dark) { .intro { background: linear-gradient(180deg, #0f2b3d 0%, var(--bg) 55%); } }
.intro-skip { position: absolute; top: calc(env(safe-area-inset-top) + 12px); inset-inline-end: 16px; border: 0; background: transparent; color: var(--muted); font-weight: 600; z-index: 2; }
.intro-art { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-top: calc(env(safe-area-inset-top) + 40px); }
.intro-art img { max-height: 46vh; max-width: 86%; border-radius: 28px; box-shadow: 0 18px 50px rgba(0, 60, 110, .18); background: #fff; }
.intro-art.in img { animation: slidein .45s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateX(-24px) scale(.97); } to { opacity: 1; transform: none; } }
.intro-copy { padding: 22px 24px calc(env(safe-area-inset-bottom) + 22px); text-align: center; max-width: 560px; margin: 0 auto; width: 100%; }
.intro-copy h1 { font-size: 28px; margin: 6px 0 8px; line-height: 1.2; }
.intro-copy p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.intro-privacy { font-size: 12px !important; margin-top: 10px !important; }
.dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s; }
.dots i.on { width: 22px; background: var(--cta); }

/* ===== wizard ===== */
.wizard { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; background: var(--bg); }
.wz-head { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 12px) 16px 8px; max-width: 560px; width: 100%; margin: 0 auto; }
.wz-back { border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 50%; font-size: 20px; box-shadow: var(--shadow); flex: none; }
.wz-progress { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.wz-progress div { height: 100%; background: var(--cta); border-radius: 3px; transition: width .35s ease; }
.wz-step { font-size: 12px; color: var(--muted); flex: none; min-width: 52px; text-align: end; }
.wz-body { flex: 1; overflow-y: auto; padding: 14px 20px 20px; max-width: 560px; width: 100%; margin: 0 auto; }
.wz-body.in { animation: slidein .35s ease-out; }
.wz-q { font-size: 28px; line-height: 1.2; margin: 10px 0 6px; }
.wz-sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.wz-note { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.wz-foot { padding: 10px 20px calc(env(safe-area-inset-bottom) + 16px); max-width: 560px; width: 100%; margin: 0 auto; }
.text-input.big { font-size: 24px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; }
.text-input.big:focus { outline: none; border-color: var(--cta); }
.choice-grid { display: grid; gap: 10px; }
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; border: 2px solid transparent; background: var(--card);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform .12s, border-color .15s; }
.choice:active { transform: scale(.98); }
.choice .ic { font-size: 28px; width: 40px; text-align: center; flex: none; }
.choice .tx { display: flex; flex-direction: column; gap: 2px; }
.choice .tx b { font-size: 17px; }
.choice .tx small { color: var(--muted); font-size: 13px; }
.choice .ck { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%) scale(0); width: 24px; height: 24px; border-radius: 50%;
  background: var(--cta); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform .15s; }
.choice.on { border-color: var(--cta); }
.choice.on .ck { transform: translateY(-50%) scale(1); }
.cols-2 .choice { flex-direction: column; text-align: center; padding: 12px; }
.cols-2 .choice .ck { top: 12px; transform: scale(0); } .cols-2 .choice.on .ck { transform: scale(1); }
.choice img { width: 100%; border-radius: 12px; aspect-ratio: 5 / 6; object-fit: cover; background: #fff; }
.day-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; direction: rtl; }
.day-pick button, .day-pick span { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 10px 0; display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow); }
.day-pick b { font-size: 18px; } .day-pick small { font-size: 10px; color: var(--muted); }
.day-pick .on { background: var(--cta); color: #fff; } .day-pick .on small { color: #ffe5d9; }
.day-pick.small span { padding: 6px 0; }
.time-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-weight: 700; font-size: 18px; }
.time-input.big { font-size: 26px; padding: 8px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); width: auto; height: auto; }
.building { text-align: center; padding-top: 10vh; }
.ring { --p: 0%; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--cta) var(--p), var(--line) 0); transition: --p .5s; position: relative; }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.ring span { position: relative; z-index: 1; font-size: 26px; font-weight: 800; }
.build-list { list-style: none; padding: 0; margin: 18px auto; max-width: 320px; text-align: start; }
.build-list li { padding: 8px 0; color: var(--muted); opacity: .5; transition: all .3s; }
.build-list li::before { content: "○ "; }
.build-list li.done { color: var(--text); opacity: 1; }
.build-list li.done::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.reveal { text-align: center; padding-top: 4vh; }
.reveal .card { text-align: start; margin-top: 16px; }
.reveal .ex-list li { cursor: default; padding: 8px 0; }
.confetti { font-size: 56px; animation: pop .6s ease-out; }

/* cloud account */
.cloud-nudge { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); }
.cloud-nudge .cloud-ico { font-size: 28px; line-height: 1; }
.cloud-nudge p { margin: 4px 0 8px; }
.error-text { color: var(--danger); }
#accountCard .wide + .wide { margin-top: 8px; }

/* weights */
.dose .kg { display: block; color: var(--accent); font-weight: 700; font-size: 12px; }
.ex-load { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.g-load { display: inline-flex; align-items: center; gap: 14px; margin: 6px auto 2px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px; font-weight: 800; font-size: 18px; }
.g-load button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--accent); font-size: 22px; font-weight: 800; box-shadow: var(--shadow); }
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.body-field { display: flex; flex-direction: column; gap: 4px; text-align: center; font-weight: 600; }
.body-field input.num { text-align: center; padding-inline: 4px; min-width: 0; }
.body-field small { color: var(--muted); font-weight: 400; }

/* nutrition */
.tabs button { min-width: 0; }
#nuSetup .choice { border-color: var(--line); }
.nu-today { display: flex; gap: 16px; align-items: center; }
.nu-ring { --p: 0%; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) var(--p), var(--accent-soft) 0); }
.nu-ring > div { width: 88px; height: 88px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.nu-ring b { font-size: 15px; line-height: 1.2; }
.nu-ring small { color: var(--muted); font-size: 11px; }
.nu-macros { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.nu-macros .eyebrow { margin: 0; }
.nu-bar { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.nu-bar > div { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.nu-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.nu-bar b { font-size: 12px; white-space: nowrap; }
.coach-note { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.nu-meal.eaten { opacity: .7; }
.nu-meal-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nu-time { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 8px; padding: 1px 7px; font-size: 13px; }
.nu-kcal { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.nu-meal-name { font-weight: 700; margin: 6px 0 4px; }
.nu-items { list-style: none; padding: 0; margin: 0 0 8px; }
.nu-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nu-items li:last-child { border-bottom: 0; }
.nu-items small { color: var(--muted); white-space: nowrap; }
.nu-weigh { gap: 8px; }
.nu-weigh input { flex: 1; min-width: 0; }
.nu-chart svg { width: 100%; height: auto; margin-top: 8px; }
.nu-times .switch-row { justify-content: space-between; }
.nu-home { display: flex; gap: 12px; align-items: center; width: 100%; text-align: start; border: 0; cursor: pointer; font: inherit; color: inherit; }
.nu-home .nu-home-ic { font-size: 26px; }
.nu-home div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nu-home small { color: var(--muted); }
.nu-meal .ate { background: var(--accent); color: #fff; border-color: var(--accent); }

/* safety */
.consent-list { padding-inline-start: 20px; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.consent-check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.wz-note.warn, .warn-text { color: var(--danger); font-weight: 600; }
.g-warn { color: var(--danger); text-align: center; margin-top: 6px; }
.info-card { max-height: 85vh; overflow-y: auto; }
.info-card h3 { font-size: 16px; margin: 14px 0 4px; }
.info-card ul { padding-inline-start: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
#nuSetupGoals .choice[hidden] { display: none; }

/* who is signed in */
.who-chip { margin-top: 6px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.who-chip.off { background: var(--card); color: var(--muted); }
.intro-login { margin-top: 8px; }
.choice .tx { padding-inline-end: 30px; }

/* food log */
.nu-add { margin: 4px 0 10px; }
.nu-advice { background: var(--accent-soft); font-weight: 600; }
.food-card { max-height: 88vh; overflow-y: auto; }
.fs-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fs-quick .fs-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; }
.fs-results { list-style: none; padding: 0; margin: 0; }
.fs-results li { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fs-results li small { color: var(--muted); }
.fs-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fs-row { gap: 8px; }
.fs-row select { flex: 1; min-width: 0; }
.fs-qty { width: 84px; flex: none; text-align: center; }
.fs-calc { font-weight: 700; margin: 0; }
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.fs-field input { min-width: 0; }
.ghost.tiny { padding: 0 8px; min-height: 0; font-size: 12px; margin-inline-start: 4px; }
.install-card { background: var(--accent-soft); }
.install-card p { margin: 6px 0 8px; }

/* swap an exercise */
.ex-list li.swappable { gap: 8px; }
.swap-btn { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 50%; width: 34px; height: 34px; font-size: 15px; display: grid; place-items: center; }
.swap-card { max-height: 85vh; overflow-y: auto; }
