/* ============ Bloom design system ============ */
:root {
  --bg: #f8f6f1;
  --bg-2: #efeae0;
  --card: #ffffff;
  --ink: #17241e;
  --ink-2: #52615a;
  --ink-3: #8a958f;
  --line: #e9e3d8;
  --leaf: #1b3b2b;
  --leaf-2: #2f6b4f;
  --leaf-soft: #eaf2ed;
  --coral: #c86d51;
  --coral-soft: #f9ede8;
  --sun: #d9a441;
  --sun-soft: #fbf4e4;
  --sky: #3d7ea6;
  --pink: #b8627a;
  --night: #12211a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 36, 30, .04), 0 8px 24px -12px rgba(23, 36, 30, .10);
  --shadow-lg: 0 20px 50px -20px rgba(18, 33, 26, .28);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; max-width: 100vw; overflow-x: hidden; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-family: var(--display); font-size: clamp(23px, 6.2vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.tiny { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.hidden { display: none !important; }

/* ---------- layout ---------- */
#app { max-width: 560px; width: 100%; margin: 0 auto; min-height: 100%; position: relative; overflow-x: hidden; }
.screen { padding: calc(16px + var(--safe-t)) 14px calc(104px + var(--safe-b)); display: none; animation: rise .35s ease both; width: 100%; max-width: 100%; overflow-x: hidden; }
.screen.active { display: block; }
.stack { display: grid; gap: 14px; min-width: 0; }
.stack > * { min-width: 0; max-width: 100%; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.card.tint-leaf { background: linear-gradient(160deg, hsl(140 45% 93%), hsl(150 40% 97%)); }
.card.tint-sun { background: linear-gradient(160deg, hsl(45 100% 92%), hsl(40 80% 97%)); }
.card.dark { background: linear-gradient(155deg, hsl(158 38% 20%), hsl(165 40% 12%)); color: hsl(45 40% 96%); }
.card.dark .muted { color: hsl(150 15% 75%); }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.level-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px;
}
.level-chip .lv { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; font-size: 13px; }

/* ---------- coach bubble ---------- */
.coach { display: flex; gap: 12px; align-items: flex-start; }
.coach-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--sun), var(--coral)); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 700;
  box-shadow: 0 6px 16px -6px hsl(12 80% 50% / .6);
}
.coach-name { font-weight: 600; font-size: 14px; }
.coach-msg { font-size: 15px; margin-top: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; font-weight: 600; font-size: 16px; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--leaf); color: #fff; box-shadow: 0 10px 22px -10px hsl(152 50% 25% / .8), 0 1px 0 hsl(0 0% 100% / .25) inset; }
.btn-primary:hover { background: hsl(152 46% 28%); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px hsl(12 80% 45% / .8); }
.btn-ghost { background: hsl(36 30% 90%); color: var(--ink); }
.btn-ghost:hover { background: hsl(36 30% 86%); }
.btn-light { background: hsl(0 0% 100% / .14); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: hsl(36 30% 90%); }
.link { color: var(--leaf); font-weight: 600; font-size: 14px; }

/* ---------- chips / segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border-radius: 999px; background: hsl(36 30% 91%); font-weight: 500; font-size: 14.5px;
  transition: background .2s, color .2s, transform .15s;
}
.chip:active { transform: scale(.95); }
.chip.on { background: var(--ink); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: hsl(36 30% 91%); border-radius: 14px; }
.seg button { padding: 10px 6px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.seg button.on { background: var(--card); box-shadow: var(--shadow); font-weight: 600; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: hsl(40 60% 99%); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--leaf-2); box-shadow: 0 0 0 4px hsl(146 44% 44% / .15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: hsl(36 20% 82%); border-radius: 99px; transition: .25s; }
.switch span::after { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 2px 4px rgb(0 0 0 / .2); }
.switch input:checked + span { background: var(--leaf-2); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- week strip ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.wday { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.wdot {
  width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 12px; display: grid; place-items: center;
  background: hsl(36 30% 91%); font-size: 15px; color: var(--ink-3); transition: transform .2s;
}
.wdot.planned { background: transparent; border: 2px dashed hsl(36 20% 78%); }
.wdot.done { background: var(--leaf); color: #fff; box-shadow: 0 6px 12px -6px hsl(152 50% 25% / .7); }
.wday.today { color: var(--ink); }
.wday.today .wdot { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- goal ring ---------- */
.ring-wrap { position: relative; width: 92px; height: 92px; flex: none; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring-label b { font-family: var(--display); font-size: 26px; }
.ring-label span { font-size: 11px; color: var(--ink-3); font-weight: 600; display: block; margin-top: 2px; }

/* ---------- studio workout hero card ---------- */
.session-hero {
  border-radius: var(--radius); padding: 20px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.session-hero h2 { font-family: var(--display); font-size: 25px; margin: 6px 0 4px; letter-spacing: -0.025em; color: var(--ink); }
.meta { display: flex; gap: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); flex-wrap: wrap; }
.primer-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.primer-row img { width: 46px; height: 34px; border-radius: 8px; object-fit: contain; background: #fbf7ef; flex: none; }
.primer-row b { display: block; font-size: 13.5px; color: var(--ink); }
.primer-row span { font-size: 12px; color: var(--ink-2); }

/* horizontal illustrated pose carousel */
.pose-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; margin: 4px -4px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pose-strip::-webkit-scrollbar { display: none; }
.pose-tile {
  flex: none; width: 112px; text-align: left; border-radius: 14px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); scroll-snap-align: start;
  display: grid; gap: 6px; transition: transform .15s, border-color .2s;
}
.pose-tile:active { transform: scale(.96); }
.pose-tile img { width: 100%; height: 72px; object-fit: contain; border-radius: 9px; background: #fbf7ef; display: block; }
.pose-tile .pose-ph { width: 100%; height: 72px; border-radius: 9px; background: var(--leaf-soft); display: grid; place-items: center; font-size: 22px; color: var(--leaf-2); }
.pose-tile b { font-size: 12px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pose-tile span { font-size: 11px; color: var(--ink-3); }

/* customizer move rows */
.cust-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card); text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
}
.cust-row.on { border-color: var(--leaf); background: var(--leaf-soft); }
.cust-row img { width: 48px; height: 36px; border-radius: 8px; object-fit: contain; background: #fbf7ef; flex: none; }
.cust-row .cust-chk { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; margin-left: auto; font-size: 13px; color: #fff; }
.cust-row.on .cust-chk { background: var(--leaf); border-color: var(--leaf); }

/* ---------- creators ---------- */
.creators { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creator {
  text-align: left; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 2px;
  transition: transform .15s, background .2s;
}
.creator:active { transform: scale(.97); }
.creator:hover { background: var(--bg-2); }
.creator b { font-size: 15px; }
.creator span { font-size: 12.5px; color: var(--ink-2); }
.creator i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-bottom: 6px; background: hsl(var(--h) 55% 48%); }

/* ---------- plan ---------- */
.plan-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-day { width: 42px; font-weight: 600; color: var(--ink-2); }
.plan-row.today .plan-day { color: var(--ink); }
.plan-select {
  flex: 1; min-height: 46px; border-radius: 12px; border: 0; padding: 0 12px; font-weight: 600; appearance: none;
  background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 28%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23556' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px; border-radius: 16px; background: hsl(0 0% 100% / .6); }
.card.dark .stat { background: hsl(0 0% 100% / .08); }
.stat b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.card.dark .stat span { color: hsl(150 15% 75%); }
.bullet { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 6px 0; }
.bullet::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--leaf-2); }

/* ---------- garden ---------- */
.garden { text-align: center; padding-top: 8px; }
.garden-sky {
  border-radius: var(--radius); padding: 18px 18px 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, hsl(200 70% 90%), hsl(160 50% 92%) 70%, hsl(40 50% 90%));
  box-shadow: var(--shadow);
}
.garden-sky::before { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: 24px; top: 20px; background: radial-gradient(circle, hsl(45 100% 70%), hsl(42 100% 60%)); box-shadow: 0 0 60px hsl(45 100% 70%); }
.plant-svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; position: relative; }
.sway { transform-origin: 100px 172px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.xp-bar { height: 12px; border-radius: 99px; background: hsl(36 30% 88%); overflow: hidden; }
.xp-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf-2), var(--sun)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 16px; background: hsl(36 30% 93%); }
.badge .ico { font-size: 28px; filter: grayscale(1); opacity: .35; }
.badge b { display: block; font-size: 12.5px; margin-top: 4px; }
.badge small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.25; margin-top: 2px; }
.badge.got { background: linear-gradient(160deg, var(--sun-soft), hsl(40 80% 97%)); }
.badge.got .ico { filter: none; opacity: 1; }
.chart { width: 100%; height: auto; display: block; }
.hist-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: 0; }
.hist-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: hsl(var(--h) 65% 52%); flex: none; font-size: 14px; }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 110px; }
.bar { display: grid; gap: 6px; justify-items: center; font-size: 11px; color: var(--ink-3); height: 100%; align-content: end; }
.bar i { width: 100%; border-radius: 8px 8px 4px 4px; background: hsl(36 25% 86%); min-height: 6px; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.bar.won i { background: linear-gradient(180deg, var(--leaf-2), var(--leaf)); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(8px + var(--safe-b));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.nav button { display: grid; justify-items: center; gap: 3px; padding: 7px 0; border-radius: 14px; color: var(--ink-3); font-size: 11px; font-weight: 500; transition: color .2s, background .2s; }
.nav button svg { width: 21px; height: 21px; }
.nav button.on { color: var(--leaf); font-weight: 700; background: var(--leaf-soft); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: hsl(160 30% 8% / .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 41; width: min(100%, 560px); max-height: 92vh; overflow-y: auto;
  transform: translate(-50%, 105%); transition: transform .38s cubic-bezier(.2, .9, .2, 1);
  background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
  box-shadow: var(--shadow-lg);
}
.sheet.on { transform: translate(-50%, 0); }
.grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.energy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.energy {
  text-align: left; padding: 16px; border-radius: 18px; background: hsl(36 30% 93%); display: grid; gap: 4px;
  transition: transform .15s, background .2s; border: 2px solid transparent;
}
.energy:active { transform: scale(.97); }
.energy .em { font-size: 28px; }
.energy b { font-size: 16px; }
.energy span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.energy.on { background: var(--leaf-soft); border-color: var(--leaf-2); }

/* ---------- player ---------- */
.player {
  position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; color: hsl(45 40% 96%);
  background: radial-gradient(900px 500px at 50% -10%, hsl(var(--h) 60% 30%), transparent 70%), var(--night);
  padding: calc(16px + var(--safe-t)) 20px calc(20px + var(--safe-b));
  transition: background .6s;
}
.player.on { display: flex; animation: rise .3s ease both; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-track { flex: 1; height: 6px; border-radius: 9px; background: hsl(0 0% 100% / .12); overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--sun); border-radius: inherit; transition: width .4s; }
.player-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; max-width: 520px; width: 100%; margin: 0 auto; }
.phase-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: hsl(0 0% 100% / .1); }
.player h2 { font-family: var(--display); font-size: clamp(28px, 8vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.big-ring { position: relative; width: min(64vw, 260px); aspect-ratio: 1; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring .t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(56px, 18vw, 80px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-ring .t small { display: block; font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: .7; margin-top: -6px; }
.cue { font-size: 16px; opacity: .85; max-width: 340px; }
.load-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 99px; background: var(--sun); color: var(--night); font-weight: 700; font-size: 14px; }
.next-up { font-size: 14px; opacity: .7; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 360px; width: 100%; margin: 0 auto; }
.ctrl { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: hsl(0 0% 100% / .1); justify-self: center; transition: transform .15s; }
.ctrl:active { transform: scale(.92); }
.ctrl.play { width: 84px; height: 84px; border-radius: 30px; background: var(--sun); color: var(--night); box-shadow: 0 16px 30px -12px hsl(42 96% 50% / .7); }
.player-sub { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.rep-count { font-family: var(--display); font-size: clamp(72px, 24vw, 110px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.rep-btns { display: flex; gap: 10px; }

/* ---------- celebration ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.drop { animation: drip 1.2s ease-in both; }
@keyframes drip { 0% { transform: translateY(-60px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(80px); opacity: 0; } }
.pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.xp-burst { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--leaf); }
.toast {
  position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translate(-50%, -150%); z-index: 80;
  padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow-lg); transition: transform .35s cubic-bezier(.2, .9, .2, 1); max-width: calc(100% - 32px);
}
.toast.on { transform: translate(-50%, 0); }

/* ---------- onboarding ---------- */
.onb { padding: calc(24px + var(--safe-t)) 20px calc(28px + var(--safe-b)); min-height: 100vh; display: flex; flex-direction: column; }
.onb-steps { display: flex; gap: 6px; margin-bottom: 26px; }
.onb-steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s; }
.onb-steps i.on { background: var(--leaf); }
.onb-body { flex: 1; display: grid; gap: 18px; align-content: start; animation: rise .35s ease both; }
.onb-foot { display: flex; gap: 10px; margin-top: 24px; }
.onb-foot .btn-primary { flex: 1; }
.hero-plant { width: 180px; margin: 0 auto -10px; }
.day-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-chips .chip { padding: 12px 0; text-align: center; border-radius: 14px; }

@media (min-width: 600px) {
  .screen { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- water glasses ---------- */
.water-glass {
  width: 38px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: hsl(205 60% 94%); color: hsl(205 40% 78%); transition: transform .15s, background .2s, color .2s;
}
.water-glass:active { transform: scale(.9); }
.water-glass.on { background: linear-gradient(160deg, hsl(200 85% 60%), var(--sky)); color: #fff; box-shadow: 0 6px 12px -6px hsl(205 70% 40% / .6); }

/* ---------- video rows ---------- */
.vid-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vid-row:last-child { border-bottom: 0; }
.vid-thumb {
  position: relative; width: 76px; height: 50px; border-radius: 12px; overflow: hidden; flex: none;
  background: linear-gradient(145deg, hsl(var(--h) 70% 56%), hsl(var(--h) 70% 42%)); display: grid; place-items: center; color: #fff;
}
.vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-thumb i { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: hsl(0 0% 0% / .45); font-style: normal; }
.vid-thumb i svg { width: 14px; height: 14px; }
.vid-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vid-info b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-info span { font-size: 12.5px; color: var(--ink-2); }
.done-btn { background: var(--leaf-soft); color: var(--leaf); }
.done-btn:hover { background: var(--leaf); color: #fff; }
.creator { text-decoration: none; }

/* ---------- phase timeline ---------- */
.phase-line { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 14px; }
.phase-line i { display: block; height: 7px; border-radius: 99px; background: hsl(0 0% 100% / .16); }
.phase-line i.past { background: var(--leaf-2); }
.phase-line i.now { background: var(--sun); box-shadow: 0 0 12px hsl(42 96% 58% / .7); }
.phase-line i.deload { opacity: .6; }

/* ---------- accordions & technique ---------- */
.acc { border-bottom: 1px solid var(--line); padding: 10px 0; }
.acc:last-child { border-bottom: 0; }
.acc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; color: var(--ink-3); font-weight: 400; }
.acc[open] summary::after { content: '−'; }
.acc > p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.tech { margin-top: 8px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tech ul { margin: 2px 0; padding-left: 18px; display: grid; gap: 4px; }
.tech b { color: var(--ink); }
.tech .warn { color: hsl(12 65% 42%); }

/* ---------- meals ---------- */
.meal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meal:last-child { border-bottom: 0; }
.meal > div:first-child { display: grid; gap: 2px; }
.meal b { font-size: 14.5px; font-weight: 500; }
.meal.total { border-top: 1.5px solid var(--ink); border-bottom: 0; margin-top: 4px; padding-top: 12px; }
.meal.total b { font-weight: 700; }
.meal-n { text-align: right; flex: none; }
.meal-n b { display: block; font-weight: 700; font-size: 15px; }
.meal-n span { font-size: 12px; color: var(--leaf); font-weight: 600; }

/* ---------- pose illustrations ---------- */
.pose-frame {
  border-radius: 16px; overflow: hidden; background: #fbf7ef; border: 1px solid var(--line);
  margin: 8px 0; display: grid; place-items: center;
}
.pose-frame img { width: 100%; max-height: 200px; object-fit: contain; display: block; }
.pose-frame.player-pose { max-width: 240px; width: 100%; background: #fbf7ef; border: 0; box-shadow: 0 12px 28px -12px rgb(0 0 0 / .45); margin: 2px auto; }
.pose-frame.player-pose img { max-height: 155px; }
.pose-frame.dark-frame { background: #fbf7ef; border: 0; margin: 8px 0; }
.pose-frame.dark-frame img { max-height: 160px; }
.big-ring.compact { width: min(44vw, 172px); }
.big-ring.compact .t { font-size: clamp(42px, 12vw, 56px); }

/* ---------- layered windowsill sanctuary & scenic trails ---------- */
.sanc-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.sanc-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #efe4d2; }
.sanc-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sanc-plant { position: absolute; left: 49%; bottom: 13%; width: 32%; transform: translateX(-50%); pointer-events: none; }
.sanc-plant-svg { width: 100%; max-width: none; }
.sanc-pet { position: absolute; left: 17%; bottom: 13%; width: 22%; pointer-events: none; }
.pet-svg { width: 100%; height: auto; display: block; }
.pet-svg.cheering { animation: hop 1.8s ease-in-out infinite; }
.pet-svg.sleepy { animation: breathePet 4s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathePet { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.97); } }
.sanc-lights { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; }
.sanc-item { position: absolute; pointer-events: none; }
.sanc-mat { right: 5%; bottom: 12%; width: 28%; }
.sanc-tea { right: 16%; bottom: 17%; width: 13%; }
.sanc-candle { left: 6%; bottom: 17%; width: 9%; }
.sanc-books { right: 32%; bottom: 14%; width: 16%; }
.sanc-caption { padding: 11px 16px; font-size: 13.5px; color: var(--ink-2); text-align: center; background: var(--card); }
.trail-svg { width: 100%; display: block; }

/* ---------- 1-tap gym player ---------- */
.gym-body { flex: 1; overflow-y: auto; max-width: 520px; width: 100%; margin: 10px auto 0; }
.gym-foot { max-width: 520px; width: 100%; margin: 12px auto 0; }
.gym-rest { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: hsl(152 46% 32% / .38); margin-bottom: 10px; font-size: 14.5px; }
.gym-sets { display: grid; gap: 8px; }
.gym-head, .gym-row { display: grid; grid-template-columns: 36px 1fr 1fr 52px; gap: 8px; align-items: center; }
.gym-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; text-align: center; }
.gym-row { padding: 8px; border-radius: 14px; background: hsl(0 0% 100% / .08); text-align: center; transition: background .2s; }
.gym-row.done { background: hsl(146 44% 44% / .25); }
.gym-in { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid hsl(0 0% 100% / .18); background: hsl(0 0% 100% / .1); color: #fff; text-align: center; font-weight: 600; font-size: 16px; }
.gym-tick { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(0 0% 100% / .14); color: #fff; justify-self: center; transition: background .2s, transform .15s; }
.gym-tick:active { transform: scale(.9); }
.gym-tick.on { background: var(--sun); color: var(--night); }

/* ---------- calming breath orb ---------- */
.breath-orb {
  width: 148px; height: 148px; border-radius: 50%; margin: 20px auto; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 35%, hsl(146 55% 74%), var(--leaf-2));
  color: #fff; font-family: var(--display); font-size: 20px; font-weight: 600;
  box-shadow: 0 0 0 14px hsl(146 44% 44% / .14), 0 16px 32px -12px hsl(152 50% 25% / .5);
  animation: breathOrb 16s ease-in-out infinite;
}
@keyframes breathOrb {
  0%, 100% { transform: scale(.84); }
  25%, 50% { transform: scale(1.12); }
  75% { transform: scale(.84); }
}

/* ---------- mobile safety & interactive sanctuary fun ---------- */
.session-hero { overflow: hidden; }
.grid2 > *, .grid3 > *, .seg > * { min-width: 0; }
.seg button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 9px 4px; font-size: 13px; }
.topbar { gap: 8px; flex-wrap: wrap; }
.sanc-pet { pointer-events: auto; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.8, .5, 1); }
.sanc-pet:active { transform: scale(1.12) translateY(-6px); }
.sanc-action-bar { display: flex; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); }
.sanc-action-bar .btn { flex: 1; min-height: 40px; font-size: 13.5px; padding: 0 10px; }
.float-heart { position: absolute; left: 26%; bottom: 48%; font-size: 22px; pointer-events: none; animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0) scale(.8); } to { opacity: 0; transform: translateY(-48px) scale(1.3); } }
.gift-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--sun-soft); color: #8c5e08; font-weight: 700; font-size: 13.5px; border: 1px solid #f0d798; animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } }
