/* styles.css — the look of the app (dark, sporty, big tap targets). */

:root {
  --bg: #07090d;
  --surface: #10151d;
  --surface-2: #171e29;
  --surface-3: #222b38;
  --line: #232c3a;
  --line-2: #2f3a4b;
  --text: #f2f5f9;
  --text-2: #b4bfcd;
  --muted: #7d8a9c;

  --gym: #ff7a1a;
  --home: #1fc9b5;
  --good: #22c55e;
  --warn: #fbbf24;
  --danger: #f05252;

  /* chart / nutrition colors */
  --cal: #d95926;
  --pro: #3987e5;
  --carb: #d9a21b;
  --fat: #a07be8;
  --water: #38bdf8;
  --grid: #1f2733;

  --accent: var(--gym);
  --accent-ink: #1a0b00;
  --accent-soft: rgba(255, 122, 26, 0.15);

  --radius: 18px;
  color-scheme: dark;
}

/* Gym = orange, Home = teal. The whole app recolors so you always know which mode you're in. */
body[data-mode="gym"] { --accent: var(--gym); --accent-ink: #1a0b00; --accent-soft: rgba(255, 122, 26, 0.15); }
body[data-mode="home"] { --accent: var(--home); --accent-ink: #00211d; --accent-soft: rgba(31, 201, 181, 0.15); }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;           /* no double-tap zoom */
  background: var(--bg);
}
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}
input, textarea, select { font: inherit; font-size: 17px; color: var(--text); -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-touch-callout: none; }
a { color: var(--accent); }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- App shell ---------- */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
}
#statusbar { flex: none; height: env(safe-area-inset-top); background: var(--bg); }
#view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  outline: none;
}
.page { padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.boot { padding: 40vh 0 0; text-align: center; color: var(--muted); }

#tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(11, 14, 20, 0.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 58px; background: none; border: 0; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0; position: relative; min-width: 0;
}
@media (max-width: 360px) { .tab { font-size: 10px; } .tab .i { width: 24px; height: 24px; } }
@media (max-width: 340px) { .tab { font-size: 9.5px; letter-spacing: -0.01em; } .tab .i { width: 23px; height: 23px; } }
#tabbar[hidden] { display: none; }
.tab .i { width: 26px; height: 26px; }
.tab.on { color: var(--accent); }
.tab .live {
  position: absolute; top: 8px; left: calc(50% + 10px);
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---------- Icons ---------- */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.fill { fill: currentColor; stroke: none; }
.i.sm { width: 18px; height: 18px; }
.i.lg { width: 28px; height: 28px; }

/* ---------- Text ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day-title { font-size: 28px; line-height: 1.02; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.bold { font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.section-title { margin: 8px 4px -4px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 4px -4px; }
.section-row .section-title { margin: 0; }

/* ---------- Layout helpers ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.grid2 > .btn, .sheet-actions > .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.hero {
  background: linear-gradient(155deg, var(--accent-soft), transparent 55%), var(--surface);
  border-color: var(--line-2);
  display: flex; flex-direction: column; gap: 12px;
}
.card-title { font-size: 17px; font-weight: 800; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.solid { background: var(--accent); color: var(--accent-ink); }
.badge.good { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge .i { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); filter: brightness(1.12); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-danger { background: rgba(240, 82, 82, 0.14); color: #ff8f8f; }
.btn-good { background: var(--good); color: #04210f; }
.btn-xl { width: 100%; min-height: 62px; border-radius: 18px; font-size: 18px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.btn-icon.sm { width: 38px; min-height: 38px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 8px 4px; min-height: 40px; }
.btn-link.inline-link { display: inline; min-height: 0; padding: 0; font-size: inherit; }

/* ---------- Segmented controls ---------- */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px;
}
.seg button {
  min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button.on { background: var(--surface-3); color: var(--text); }
.mode-seg { border-radius: 16px; }
.mode-seg button { min-height: 50px; font-size: 15px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 12px; }
.mode-seg button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 14px;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Banners ---------- */
.banner {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; line-height: 1.35;
}
.banner.warn { background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.35); }
.banner .i { color: var(--accent); }
.banner.warn .i { color: var(--warn); }

/* ---------- Today ---------- */
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.preview-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.preview-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.preview-list div span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.countdown { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 15px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.wd-dot {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.wd-dot .i { width: 18px; height: 18px; stroke-width: 3; }
.wd.rest .wd-dot { border-style: dotted; }
.wd.today { color: var(--text); }
.wd.today .wd-dot { border-color: var(--accent); }
.wd.done .wd-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Meters (calories / protein) ---------- */
.macro { display: flex; flex-direction: column; gap: 8px; }
.macro + .macro { margin-top: 14px; }
.macro-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.macro-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.macro-val { font-size: 26px; font-weight: 800; }
.macro-val small { font-size: 15px; color: var(--muted); font-weight: 700; }
.macro-left { font-size: 13px; color: var(--muted); font-weight: 600; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.key.cal { background: var(--cal); }
.key.pro { background: var(--pro); }
.key.carb { background: var(--carb); }
.key.fat { background: var(--fat); }
.key.water { background: var(--water); }
.meter.water { background: rgba(56, 189, 248, 0.18); }
.meter.water > span { background: var(--water); }
.water-card { display: flex; flex-direction: column; gap: 8px; }
.water-btns { display: flex; gap: 8px; margin-top: 4px; }
.water-btns .btn { flex: 1; padding: 0 6px; gap: 4px; }
.water-btns .btn .i { color: var(--water); width: 15px; height: 15px; }
.water-btns .btn-icon { flex: none; }
.banner.as-btn { width: 100%; text-align: left; color: inherit; font: inherit; font-size: 14px; }
.goal-nudge { margin-bottom: 16px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 14px; background: var(--surface-2); border-radius: 12px; font-size: 15px; }
.log-row b { font-variant-numeric: tabular-nums; }
.macro-extra { display: flex; gap: 18px; margin-top: 14px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.macro-extra span { display: inline-flex; align-items: center; gap: 7px; }
.macro-extra b { color: var(--text); font-variant-numeric: tabular-nums; }
.split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--surface-3); }
.split span { display: block; height: 100%; }
.split .pro { background: var(--pro); }
.split .carb { background: var(--carb); }
.split .fat { background: var(--fat); }
.split-key { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { height: 12px; border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.meter.cal { background: rgba(217, 89, 38, 0.2); }
.meter.cal > span { background: var(--cal); }
.meter.pro { background: rgba(57, 135, 229, 0.2); }
.meter.pro > span { background: var(--pro); }

/* ---------- Workout in progress ---------- */
.wo-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 9, 13, 0.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 10px 16px 12px; border-bottom: 1px solid var(--line);
}
.wo-title { font-size: 19px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.wo-clock { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.wo-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.wo-bar span { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
.wo-list { padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 10px; }

.wo-ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.wo-ex.open { border-color: var(--line-2); }
.wo-ex-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; background: none; border: 0; text-align: left; }
.wo-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.wo-ex.complete .wo-num { background: var(--good); color: #04210f; }
.wo-ex.complete .wo-name { color: var(--text-2); }
.wo-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.wo-sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wo-count { font-size: 14px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wo-ex-body { display: none; padding: 0 16px 16px; flex-direction: column; gap: 12px; }
.wo-ex.open .wo-ex-body { display: flex; }
.wo-cues { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.wo-last { font-size: 13px; color: var(--muted); font-weight: 600; }
.wo-last b { color: var(--text-2); }
.wo-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.set-grid { display: flex; flex-direction: column; gap: 8px; }
.set-row, .set-labels { display: grid; grid-template-columns: 30px 1fr 1fr 60px; gap: 8px; align-items: center; }
.set-row.one, .set-labels.one { grid-template-columns: 30px 1fr 60px; }
.set-labels { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.set-num { font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.set-in {
  width: 100%; height: 54px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); text-align: center; font-size: 21px; font-weight: 800;
  font-variant-numeric: tabular-nums; padding: 0 6px;
}
.set-in::placeholder { color: #566275; font-weight: 700; }
.set-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.set-static { height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 15px; }
.set-check {
  height: 54px; border-radius: 12px; border: 0; background: var(--surface-3); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.set-check .i { width: 26px; height: 26px; stroke-width: 3; }
.set-row.done .set-check { background: var(--good); color: #04210f; }
.set-row.done .set-in, .set-row.done .set-static { background: rgba(34, 197, 94, 0.1); border-color: transparent; color: var(--text-2); }
.set-row.pr .set-num { color: var(--warn); }

/* Coaching tips inside an exercise */
.wo-tip, .wo-warm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.wo-tip { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--text-2); }
.wo-tip > .i { color: #4ade80; }
.wo-tip b, .wo-warm b { color: var(--text); font-variant-numeric: tabular-nums; }
.wo-warm { background: var(--surface-2); color: var(--muted); }
.wo-warm .btn-link { min-height: 32px; padding: 4px; }

/* Plate calculator */
.plates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.plate {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: var(--h, 60px); padding: 0 6px;
  border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}

/* Exercise how-to details */
.ex-info { display: flex; flex-direction: column; gap: 12px; }
.ex-info .tile .small { margin-top: 4px; color: var(--text-2); line-height: 1.35; }
.chip[disabled] { opacity: 0.45; }

/* Baseball tests + arm care */
.test-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; text-align: left; }
.test-row:first-of-type { border-top: 0; padding-top: 4px; }
.test-row .grow { display: flex; flex-direction: column; gap: 2px; }
.test-row .up { color: #4ade80; }
.test-row .down { color: #fca5a5; }
.chart .bar.throw { fill: var(--accent); }
.feel, .choice { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.choice { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.feel-opt { position: relative; }
.feel-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.feel-opt span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.feel-opt input:checked + span { background: var(--accent); color: var(--accent-ink); }
.feel-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Daily check-in */
.ready-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 99px; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.ready-dot.good { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.ready-dot.ok { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.ready-dot.low { background: rgba(240, 82, 82, 0.16); color: #ff8f8f; }

/* Training calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal b { font-size: 11px; color: var(--muted); font-weight: 800; padding-bottom: 2px; }
.cal-day {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-2); background: none; border: 1px solid transparent; padding: 0; font-variant-numeric: tabular-nums;
}
.cal-day.future { color: #3b4655; }
.cal-day.today { border-color: var(--accent); }
.cal-day.has { background: var(--surface-3); color: var(--text); }
.cal-day i, .cal-key i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--accent); }
.cal-day i { position: absolute; bottom: 4px; left: calc(50% - 3px); }
i.t-agility { background: var(--warn); }
i.t-mobility { background: var(--home); }
i.t-rest { background: var(--muted); }
.cal-key { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badge-tile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); opacity: 0.5; }
.badge-tile .i { color: var(--muted); }
.badge-tile b { font-size: 14px; }
.badge-tile small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.badge-tile.got { opacity: 1; background: var(--accent-soft); }
.badge-tile.got .i { color: var(--accent); }

/* Pitch counter + stopwatch */
.pc-total { text-align: center; font-size: 72px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-total small { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.pc-total.near { color: var(--warn); }
.pc-total.over { color: #ff8f8f; }
.meter.pc { background: var(--surface-3); }
.meter.pc > span { background: var(--good); }
.meter.pc.near > span { background: var(--warn); }
.meter.pc.over > span { background: var(--danger); }
.pc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-btn { min-height: 110px; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 18px; }
.pc-btn b { font-size: 30px; font-variant-numeric: tabular-nums; }
.pc-btn.strike { background: rgba(34, 197, 94, 0.16); color: #4ade80; border-color: rgba(34, 197, 94, 0.4); }
.pc-btn.ball { background: rgba(57, 135, 229, 0.16); color: #7cb4f5; border-color: rgba(57, 135, 229, 0.4); }
.sw-time { text-align: center; font-size: 84px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Exercise library */
.lib-list { display: flex; flex-direction: column; }
.lib-list .section-title { margin: 14px 4px 6px; }
.lib-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 4px; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; text-align: left; }
.lib-row b { display: block; font-size: 15px; }
.lib-row small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.lib-row .i { color: var(--muted); }

/* Game-day timeline */
.timeline { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.timeline .field { margin-bottom: 8px; }
.tl-row { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.tl-time { flex: none; width: 72px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-row b { color: var(--text); }
.tl-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Shopping list */
.shop-recipe { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.shop-item { min-height: 36px; font-weight: 600; font-size: 15px; color: var(--text-2); align-items: flex-start; gap: 10px; padding-top: 6px; }
.shop-item input { margin-top: 1px; flex: none; }
.shop-item input:checked + span { text-decoration: line-through; opacity: 0.5; }

/* What's new */
.new-item { display: flex; gap: 14px; align-items: flex-start; }
.new-item > .i { color: var(--accent); margin-top: 2px; }
.new-item b { display: block; margin-bottom: 2px; }

/* Games & season stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.field.mini > span { font-size: 11px; letter-spacing: 0.06em; text-align: center; }
.field.mini input { min-height: 44px; padding: 6px 4px; text-align: center; font-weight: 800; }
.log-row.as-btn { width: 100%; border: 0; text-align: left; color: inherit; font: inherit; padding: 10px 14px; }
.log-row.as-btn > .i { color: var(--muted); }

/* Programs sheet */
.program.current { border-color: var(--accent); }

/* Effort rating */
.rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rpe-btn {
  min-height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-2); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.rpe-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.effort-label { font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- Rest timer bar ---------- */
#timer {
  flex: none; display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "label label label" "time bar btns";
  gap: 4px 12px; align-items: center;
  padding: 8px 14px 10px; background: var(--surface-2); border-top: 1px solid var(--line-2);
}
#timer[hidden] { display: none; }
.tm-label { grid-area: label; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-time { grid-area: time; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 88px; line-height: 1; }
.tm-btns { grid-area: btns; }
.tm-bar { grid-area: bar; height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.tm-bar span { display: block; height: 100%; background: var(--accent); }
.tm-btns { display: flex; gap: 6px; }
.tm-btns .btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
#timer.done { background: var(--good); color: #04210f; }
#timer.done .tm-label { color: #04210f; }
#timer.done .tm-bar { background: rgba(4, 33, 15, 0.2); }
#timer.done .tm-bar span { background: #04210f; }
#timer.done .btn { background: rgba(4, 33, 15, 0.15); color: #04210f; }

/* ---------- Plan ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day-chip {
  min-height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 800; font-size: 14px; color: var(--text-2); padding: 0;
}
.day-chip small { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.day-chip.today { border-color: var(--accent); }
.day-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-chip.on small { color: var(--accent-ink); opacity: 0.75; }

.ex-card {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; width: 100%;
}
.ex-card .wo-num { width: 30px; height: 30px; font-size: 13px; }
.ex-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.ex-meta { color: var(--text-2); font-size: 14px; margin-top: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-cues { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-side { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 800; color: var(--text-2); letter-spacing: 0.02em; }
.field small, .hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-size: 17px; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8a9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 6px; }
.stepper input { text-align: center; font-weight: 800; padding: 0 4px; }
.stepper .btn { min-height: 50px; padding: 0; }
.check-line { display: flex; align-items: center; gap: 12px; font-weight: 700; min-height: 44px; }
.check-line input { width: 24px; height: 24px; accent-color: var(--accent); }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; transition: background 0.2s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Settings list ---------- */
.set-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.set-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 60px; border-bottom: 1px solid var(--line); }
.set-item:last-child { border-bottom: 0; }
.set-item .grow > div:first-child { font-weight: 700; }
.set-item .input { width: 120px; min-height: 44px; padding: 8px 10px; text-align: center; }
.set-item input[type="time"] { width: 130px; }
.set-item.as-btn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: inherit; font-size: 16px; }
.set-item.as-btn:last-child { border-bottom: 0; }
.set-item.as-btn .i { color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }

/* ---------- Diet ---------- */
.date-nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; }
.date-nav button.label { background: none; border: 0; text-align: center; font-weight: 800; font-size: 17px; min-height: 44px; }
.date-nav .label small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.fav-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fav-row::-webkit-scrollbar { display: none; }
.fav {
  flex: none; width: 156px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.fav-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-meta { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.fav .btn { min-height: 38px; }
.meal-group { display: flex; flex-direction: column; }
.meal-group-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 4px 2px 6px; }
.add-mini { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--accent); padding: 0; }
.add-mini .i { width: 16px; height: 16px; }
.meal {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; margin-bottom: 6px;
}
.meal-name { font-weight: 700; font-size: 16px; }
.meal-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.meal-nums { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.meal-nums small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }

/* Food search results in the Log food sheet */
.food-results { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.food-results:empty { display: none; }
.food-hit {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; color: inherit;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px;
}
.food-hit-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.food-hit-name .i { width: 14px; height: 14px; color: var(--warn); }
.food-hit-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.serving-note { font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Meal plan, recipes and eating tips (Meals view) */
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; }
.plan-meal { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 10px 10px 12px; background: var(--surface-2); border-radius: 14px; }
.plan-meal-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; background: none; border: 0; text-align: left; color: inherit; }
.plan-slot { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.plan-slot .i { width: 14px; height: 14px; stroke-width: 3; }
.plan-meal.done .plan-slot { color: #4ade80; }
.plan-meal.done .meal-name { color: var(--text-2); }
.plan-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.plan-total b { color: var(--text); }
.next-meal { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border: 0; border-radius: 14px; text-align: left; color: inherit; }
.next-meal .grow { display: flex; flex-direction: column; gap: 2px; }
.next-meal > .i { color: var(--muted); }
.meal-link { display: block; margin: 6px auto -8px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tiles.four .tile { padding: 10px 8px; }
.tiles.four .tile-value { font-size: 19px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide details { border-bottom: 1px solid var(--line); }
.guide details:last-child { border-bottom: 0; }
.guide summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.guide details[open] summary::after { content: "−"; }
.guide .steps { padding: 0 16px 14px 36px; }
.hint .i { width: 14px; height: 14px; vertical-align: -2px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.card .tile { background: var(--surface-2); border-color: transparent; }
.tile-label { font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.25; }
.tile-value { font-size: 22px; font-weight: 800; margin-top: 4px; line-height: 1.15; }
.tile-value small { font-size: 13px; color: var(--muted); font-weight: 700; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 6px 4px; }
.table th:first-child, .table td:first-child { text-align: left; }
.table td { padding: 10px 4px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table td.hit { color: #4ade80; }
.table tr.today td { color: var(--text); font-weight: 800; }

/* ---------- Charts ---------- */
.chart { position: relative; touch-action: pan-y; margin-top: 4px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: #3a4454; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .goal { stroke: var(--text-2); stroke-width: 1.5; }
.chart .goal-label { fill: var(--text-2); font-size: 11px; font-weight: 700; }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 800; }
.chart .cross { stroke: var(--text-2); stroke-width: 1; opacity: 0; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: 0.1; }
.chart .dot, .chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .bar.cal { fill: var(--cal); }
.chart .bar.pro { fill: var(--pro); }
.chart .bar-hit { fill: transparent; }
.chart .bar.dim { opacity: 0.55; }
.table-toggle summary { color: var(--accent); font-weight: 700; font-size: 15px; padding: 6px 2px; cursor: pointer; list-style: none; }
.table-toggle summary::-webkit-details-marker { display: none; }
.table-toggle[open] summary { margin-bottom: 6px; }
.chart-tip {
  position: absolute; top: -6px; pointer-events: none; z-index: 2;
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 6px 10px; font-size: 12px; color: var(--text-2); white-space: nowrap;
  transform: translate(-50%, -100%); opacity: 0; transition: opacity 0.12s;
}
.chart-tip b { display: block; color: var(--text); font-size: 15px; }
.chart-tip.show { opacity: 1; }
.chart-empty { padding: 34px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- History ---------- */
.hist {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: left; width: 100%;
}
.hist-title { font-weight: 800; font-size: 16px; }
.hist-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.hist-right { text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.hist-right small { display: block; color: var(--muted); font-weight: 700; }
.hist-right .i { color: var(--accent); }
.hist[disabled] { opacity: 0.45; }
.pr-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.pr-row:first-of-type { border-top: 0; }
.pr-row b { font-variant-numeric: tabular-nums; }
.detail-ex { padding: 12px 0; border-top: 1px solid var(--line); }
.detail-ex:first-child { border-top: 0; }
.detail-sets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.detail-sets span { background: var(--surface-2); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.detail-sets span.skip { opacity: 0.4; text-decoration: line-through; }

/* ---------- Bottom sheet ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#sheet-root.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 0.22s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  max-height: calc(100% - env(safe-area-inset-top) - 20px);
  background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column; transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
#sheet-root.show .sheet-backdrop { opacity: 1; }
#sheet-root.show .sheet { transform: none; }
.sheet:focus { outline: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 18px; flex: none; }
.sheet-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
/* Long sheets scroll instead of squashing their contents (videos and meters would otherwise shrink to 0) */
.sheet-body > *, .sheet-body .form > * { flex-shrink: 0; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions.one { grid-template-columns: 1fr; }

/* Tutorial video previews (tap to play inside the app) */
.yt-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; width: 100%;
  padding: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; text-align: left; color: inherit;
}
.yt-card:active { transform: scale(0.99); }
.yt-thumb { position: relative; display: block; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-thumb img, .yt-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.18); }
.yt-play .i { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.yt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yt-text b { font-size: 15px; }
.yt-text small { color: var(--muted); font-size: 12px; font-weight: 600; }
.yt-mini { position: relative; width: 72px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; }
.yt-mini .yt-play .i { width: 22px; height: 22px; }
.no-thumb img { display: none; }
.no-thumb .yt-thumb, .yt-mini.no-thumb { background: var(--surface-3); }

.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder-box { border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); z-index: 200;
  transform: translate(-50%, -180%); transition: transform 0.25s ease;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  padding: 10px 12px 10px 16px; border-radius: 14px; font-weight: 700; font-size: 15px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  max-width: calc(100% - 32px); width: max-content;
}
#toast.show { transform: translate(-50%, 0); }
#toast .btn { min-height: 34px; padding: 0 12px; font-size: 14px; }

.empty { text-align: center; color: var(--muted); padding: 26px 12px; font-size: 15px; line-height: 1.45; }

/* ---------- Sign-in screen ---------- */
.auth { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 16px 40px; max-width: 460px; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.auth-brand .day-title { font-size: 34px; }
.auth-logo { width: 56px; height: 56px; border-radius: 14px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-error { color: #ff8f8f; font-weight: 700; font-size: 14px; }
.auth-error:empty { display: none; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

@media (min-width: 700px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Light theme (Settings → Appearance) — easier to read outdoors in the sun ---------- */
.wo-head-btns { gap: 6px; flex-shrink: 0; }
.wo-meta { gap: 4px 10px; flex-wrap: wrap; }
.wo-meta .wo-clock { white-space: nowrap; }

/* ---------- Baseball tab: drills ---------- */
.seg-count { font-size: 11px; font-weight: 800; color: var(--muted); margin-left: 2px; }
.seg button.on .seg-count { color: inherit; opacity: 0.7; }
.plan-star { color: var(--warn); display: inline-flex; }
.plan-star .i { color: var(--warn); }

/* ---------- Light / Moderate / Heavy ---------- */
.level-seg button { flex-direction: column; gap: 1px; min-height: 50px; font-weight: 900; font-size: 15px; line-height: 1.1; }
.level-seg button small { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.level-seg button.on.lv-light { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.level-seg button.on.lv-moderate { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.level-seg button.on.lv-heavy { background: var(--accent-soft); color: var(--accent); }
.level-seg button.on small { color: inherit; opacity: 0.8; }
.lvl-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.5;
}
.lvl-tag.lv-light { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.lvl-tag.lv-moderate { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.day-chip.light-chip { grid-column: 1 / -1; flex-direction: row; gap: 10px; min-height: 44px; }
.day-chip.light-chip small { letter-spacing: 0.04em; }

/* Swing lab */
.sw-back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-weight: 700; }
.sw-score { display: flex; align-items: center; gap: 16px; }
.sw-ring { flex: none; width: 92px; height: 92px; position: relative; }
.sw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sw-ring .bg { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.sw-ring .fg { fill: none; stroke: var(--good); stroke-width: 9; stroke-linecap: round; }
.sw-ring.ok .fg { stroke: var(--warn); }
.sw-ring.work .fg { stroke: var(--danger); }
.sw-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sw-frames { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sw-frames figure { margin: 0; flex: none; scroll-snap-align: start; }
.sw-frames img { display: block; height: 230px; width: auto; max-width: 78vw; object-fit: cover; border-radius: 12px; background: #000; }
.sw-frames figcaption { font-size: 12px; font-weight: 800; color: var(--text-2); margin-top: 5px; text-align: center; }
.sw-chip { flex: none; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.sw-chip.good { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.sw-chip.ok { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.sw-chip.work { background: rgba(240, 82, 82, 0.16); color: #ff8f8f; }
.sw-fault { background: var(--surface-2); border-radius: 14px; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 6px; }
.sw-fault p { margin: 0; line-height: 1.4; }
.sw-fault .lib-row:first-child { margin-top: 2px; }
.sw-cat { display: grid; grid-template-columns: minmax(0, 1fr) 96px 30px; gap: 10px; align-items: center; font-size: 14px; }
.sw-cat b { text-align: right; font-variant-numeric: tabular-nums; }
.sw-metric { border-top: 1px solid var(--line); }
.sw-metric summary { display: flex; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; list-style: none; font-size: 14px; }
.sw-metric summary::-webkit-details-marker { display: none; }
.sw-metric summary small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.sw-metric summary > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-metric p { margin: 0 2px 10px; line-height: 1.4; }
.sw-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.sw-chart .gridline { stroke: var(--grid); stroke-width: 1; }
.sw-chart .tick { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.sw-chart .sw-head-svg { width: min(100%, 260px); margin: 0 auto; overflow: hidden; }
.sw-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sw-line.hip { stroke: var(--pro); }
.sw-line.sh { stroke: var(--gym); }
.sw-line.hand { stroke: var(--fat); }
.sw-line.head { stroke: var(--water); }
.sw-line.after { stroke: var(--muted); stroke-dasharray: 3 4; stroke-width: 1.5; }
.sw-sep { fill: rgba(57, 135, 229, 0.16); stroke: none; }
.sw-mark { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.sw-zone { fill: rgba(34, 197, 94, 0.08); stroke: rgba(34, 197, 94, 0.55); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sw-dot { stroke: var(--surface); stroke-width: 1.5; }
.sw-dot.hip { fill: var(--pro); }
.sw-dot.sh { fill: var(--gym); }
.sw-dot.hand { fill: var(--fat); }
.sw-dot.start { fill: var(--text-2); }
.sw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); font-weight: 700; }
.sw-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.sw-legend i.hip { background: var(--pro); }
.sw-legend i.sh { background: var(--gym); }
.sw-legend i.hand { background: var(--fat); }
.sw-legend i.sep { background: rgba(57, 135, 229, 0.35); height: 10px; }
.sw-replay canvas { display: block; width: 100%; height: 260px; background: var(--surface-2); border-radius: 12px; }
.sw-live { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.sw-live .sw-video { display: block; width: 100%; max-height: 34vh; object-fit: contain; }
.sw-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sw-controls { display: flex; align-items: center; gap: 10px; }
.sw-controls input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.sw-controls .btn { flex: none; }
.sw-row img, .sw-noimg { flex: none; width: 44px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.sw-noimg { display: flex; align-items: center; justify-content: center; }
.sw-row .ready-dot { flex: none; }
.text-good { color: #4ade80; }
.text-bad { color: #ff8f8f; }

/* ---------- Coach (AI chat) ---------- */
.coach-page { min-height: 100%; }
.coach-log { display: flex; flex-direction: column; gap: 12px; }
.coach-log:empty { display: none; }
.coach-msg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coach-msg.me { align-items: flex-end; }
.coach-msg .bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 15px; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.coach-msg.me .bubble { max-width: 85%; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; font-weight: 600; }
.coach-msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.coach-msg.bot .bubble:empty { display: none; }
.md p { margin: 0 0 8px; }
.md > :last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md li::marker { color: var(--muted); }
.md .md-h { font-weight: 800; margin: 12px 0 4px; }
.md .md-h:first-child { margin-top: 0; }
.md code { font-size: 0.9em; background: var(--surface-3); padding: 1px 5px; border-radius: 6px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.md a { color: var(--accent); }
.md-table { overflow-x: auto; margin: 0 0 8px; -webkit-overflow-scrolling: touch; }
.md table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.md th, .md td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; min-width: 3.5em; }
.md th { font-weight: 800; color: var(--text-2); }
.coach-looked { display: flex; align-items: center; gap: 5px; padding-left: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.coach-looked[hidden] { display: none; }
.coach-looked .i { width: 14px; height: 14px; color: var(--good); }
.coach-offers { display: flex; flex-direction: column; gap: 6px; }
.coach-offers:empty { display: none; }
.coach-offer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
.coach-offer .grow { min-width: 0; }
.coach-offer b { display: block; font-size: 14px; }
.coach-offer small { display: block; margin-top: 1px; font-size: 12px; font-weight: 600; color: var(--muted); }
.coach-offer .btn { flex: none; }
.coach-done { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #4ade80; }
.coach-fail { padding-left: 4px; font-size: 13px; font-weight: 600; color: #ff8f8f; }
.coach-typing { display: inline-flex; gap: 4px; padding: 5px 0; }
.coach-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: coach-dot 1.2s infinite ease-in-out; }
.coach-typing i:nth-child(2) { animation-delay: 0.15s; }
.coach-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes coach-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.coach-hello { display: flex; flex-direction: column; gap: 10px; }
.coach-hello .row .i { color: var(--accent); }
.coach-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-sugg .chip { min-height: 36px; padding: 8px 12px; border-radius: 16px; text-align: left; line-height: 1.3; }
.coach-bar { position: sticky; bottom: 0; z-index: 2; margin: auto -16px -32px; padding: 10px 16px 12px; display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg); border-top: 1px solid var(--line); }
.coach-bar textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 11px 14px; resize: none; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.35; }
.coach-bar textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.coach-send { flex: none; width: 44px; min-height: 44px; border-radius: 50%; }

/* ---------- Diet → Pantry ---------- */
.pan-shelf { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.pan-kitchen > .grid2 { margin-top: 10px; }
.pan-kitchen > .hint { margin: 10px 0 0; }
@media (max-width: 359px) { .pan-actions { grid-template-columns: minmax(0, 1fr); } }
#pan-ideas { scroll-margin-top: 12px; }
.nowrap { white-space: nowrap; }
.pan-shelf + .pan-shelf { border-top: 1px solid var(--line); }
.card > .pan-shelf:first-child { padding-top: 0; }
.pan-shelf-name { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pan-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.pan-chip small { font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip .i { width: 14px; height: 14px; vertical-align: -2px; }
.plan-slot.need { color: var(--warn); }
.pan-found { display: flex; flex-direction: column; }
.pan-found .check-line { border-top: 1px solid var(--line); padding: 6px 0; font-weight: 600; align-items: center; }
.pan-found .check-line b { display: block; font-size: 15px; }
.pan-found .check-line small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.pan-pick { position: relative; display: inline-flex; }
.pan-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.pan-pick span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 14px; }
.pan-pick input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pan-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pan-shop-row { display: flex; align-items: center; gap: 6px; }
.pan-shop-row .check-line { flex: 1; min-width: 0; }
.pan-shop-row .check-line span { overflow-wrap: anywhere; }
.pan-shop-add { display: flex; gap: 8px; }
.pan-shop-add .input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; }
.pan-ai { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; font: inherit; }
.pan-ai > .i:first-child { color: var(--accent); flex: none; }
.pan-ai b { display: block; font-size: 15px; }
.pan-ai small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.meter.busy > span { width: 35%; animation: pan-busy 1.3s ease-in-out infinite; }
@keyframes pan-busy { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .meter.busy > span { width: 100%; opacity: 0.45; } }

/* ---------- Build my plan, presets & my workouts ---------- */
.plan-tools .btn { min-height: 44px; font-size: 14px; padding: 0 10px; }
.choice.wrap2, .choice.wrap3 { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice.wrap3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice.wrap2 .feel-opt span, .choice.wrap3 .feel-opt span { padding: 4px 6px; text-align: center; line-height: 1.2; }
.choice.days { gap: 2px; padding: 3px; }
.choice.days .feel-opt span { font-size: 12px; min-height: 40px; }
.pick-rows { display: flex; flex-direction: column; gap: 6px; }
.pick-row { position: relative; display: block; }
.pick-row input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick-row span { display: block; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.pick-row b { display: block; font-size: 15px; }
.pick-row small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; line-height: 1.35; }
.pick-row input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pick-row input:checked + span b { color: var(--accent); }
.pick-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wk-day { border-bottom: 1px solid var(--line); }
.wk-day:last-child { border-bottom: 0; }
.wk-day summary, .wk-day.rest { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 14px; cursor: pointer; list-style: none; font-size: 15px; }
.wk-day summary::-webkit-details-marker { display: none; }
.wk-day b { flex: none; width: 42px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wk-day .grow { font-weight: 700; min-width: 0; }
.wk-day small { flex: none; color: var(--muted); font-weight: 700; font-size: 13px; }
.wk-day summary .i { flex: none; color: var(--muted); transition: transform 0.2s; }
.wk-day[open] summary .i { transform: rotate(180deg); }
.wk-day.rest { cursor: default; color: var(--muted); }
.wk-day.rest .grow { font-weight: 600; }
.wk-day.light summary b { color: var(--accent); }
.wk-day .preview-list { margin: 0 14px 10px; }
.wk-day .preview-list div { font-size: 14px; padding: 7px 0; }
.wo-row[hidden], .wo-none[hidden] { display: none; }
.wo-put summary { list-style: none; }
.wo-put summary::-webkit-details-marker { display: none; }
.wo-put[open] summary { margin-bottom: 12px; }
.tune-row { display: flex; flex-wrap: wrap; gap: 8px; }

:root[data-theme="light"] {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eef1f5; --surface-3: #e1e6ed;
  --line: #dde3ea; --line-2: #c9d1dc; --text: #0f1720; --text-2: #394556; --muted: #687385; --grid: #e7ebf0;
  --gym: #d9480f; --home: #0b8a7c; --warn: #b45309; --danger: #d64545;
  --cal: #d9480f; --pro: #2563eb; --carb: #b7791f; --fat: #7c4ddb; --water: #0284c7;
  color-scheme: light;
}
:root[data-theme="light"] body[data-mode="gym"] { --accent: var(--gym); --accent-ink: #ffffff; --accent-soft: rgba(217, 72, 15, 0.1); }
:root[data-theme="light"] body[data-mode="home"] { --accent: var(--home); --accent-ink: #ffffff; --accent-soft: rgba(11, 138, 124, 0.1); }
:root[data-theme="light"] #tabbar { background: rgba(255, 255, 255, 0.97); }
:root[data-theme="light"] .wo-head { background: rgba(243, 245, 248, 0.95); }
:root[data-theme="light"] .set-in::placeholder { color: #9aa4b2; }
:root[data-theme="light"] .cal-day.future { color: #b3bcc8; }
:root[data-theme="light"] .chart .baseline { stroke: #b8c1cc; }
:root[data-theme="light"] .badge.good, :root[data-theme="light"] .table td.hit, :root[data-theme="light"] .wo-tip > .i,
:root[data-theme="light"] .plan-meal.done .plan-slot, :root[data-theme="light"] .test-row .up,
:root[data-theme="light"] .pc-btn.strike, :root[data-theme="light"] .ready-dot.good { color: #15803d; }
:root[data-theme="light"] .btn-danger, :root[data-theme="light"] .auth-error, :root[data-theme="light"] .test-row .down,
:root[data-theme="light"] .pc-total.over, :root[data-theme="light"] .ready-dot.low { color: #c53030; }
:root[data-theme="light"] .pc-btn.ball { color: #1d4ed8; }
:root[data-theme="light"] .ready-dot.ok { color: var(--warn); }
:root[data-theme="light"] .set-row.done .set-check, :root[data-theme="light"] .wo-ex.complete .wo-num { color: #ffffff; }
:root[data-theme="light"] .food-hit-name .i { color: #b45309; }
:root[data-theme="light"] .sheet-backdrop { background: rgba(15, 23, 32, 0.45); }
:root[data-theme="light"] #toast { box-shadow: 0 12px 32px rgba(15, 23, 32, 0.18); }
:root[data-theme="light"] .card, :root[data-theme="light"] .set-list, :root[data-theme="light"] .wo-ex { box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04); }
:root[data-theme="light"] .level-seg button.on.lv-light, :root[data-theme="light"] .lvl-tag.lv-light { color: #15803d; }
:root[data-theme="light"] .sw-chip.good, :root[data-theme="light"] .text-good, :root[data-theme="light"] .coach-done { color: #15803d; }
:root[data-theme="light"] .coach-fail { color: #c53030; }
:root[data-theme="light"] .sw-chip.work, :root[data-theme="light"] .text-bad { color: #c53030; }
:root[data-theme="light"] .sw-replay canvas { background: #1b2330; }

/* Plan tab: plans built for you (2.6) */
.plan-pick { flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 10px 12px; text-align: left; white-space: normal; }
.plan-pick span { display: flex; flex-direction: column; gap: 2px; }
.plan-pick small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Recommended ingredients (Diet → Meals) */
.ing-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ing-row + .ing-row { border-top: 1px solid var(--line); }
.ing-row b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.ing-row small { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ing-row .badge { flex: none; }
.ing-row { align-items: flex-start; }
.ing-row .ing-buy { font-weight: 700; color: var(--text); }
.ing-btns { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ing-more summary { font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; margin-top: 4px; list-style: none; }
.ing-more summary::-webkit-details-marker { display: none; }
.ing-more small { margin-top: 4px; }

/* Your day (Today → Your day) */
.routine-tl .tl-row { align-items: flex-start; border-radius: 10px; padding: 8px 6px; margin: 0 -6px; }
.routine-tl .tl-time small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 1px; }
.routine-tl .tl-row b { display: flex; align-items: center; gap: 6px; }
.routine-tl .tl-row b .i { width: 14px; height: 14px; color: var(--muted); flex: none; }
.routine-tl .tl-row .btn { flex: none; align-self: center; }
.routine-tl .rt-now { background: var(--accent-soft); }
.routine-tl .rt-past { opacity: 0.5; }
.routine-tl .rt-free b, .routine-tl .rt-travel b { color: var(--text-2); font-weight: 600; }
.routine-tl .rt-sleep .tl-time, .routine-tl .rt-sleep b { color: var(--accent); }
