:root {
  --bg: #f7f6f3;
  --bg-grad: linear-gradient(180deg, #e8f2f1 0%, #f3f5f3 45%, #faf4ee 100%);
  --surface: #ffffff;
  --ink: #1d2f42;
  --ink-2: #3d4f63;
  --muted: #5f6f80;
  --line: #e2e6e4;
  --brand-1: #2a7c84;
  --brand-2: #3a6db0;
  --accent: #357177;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ef;
  --data: #4b8f96;
  --warm: #fbf0e6;
  --lavender: #ebeaf6;
  --lavender-ink: #4a4d82;
  --calm: #e6f2ee;
  --calm-ink: #2d5e57;
  --good: #2f7356;
  --good-soft: #e3f1e9;
  --warn: #8f5d1e;
  --danger: #ad423e;
  --bar-track: #e9edec;
  --glow: rgb(53 113 119 / 0.18);
  --radius: 20px;
  --shadow: 0 1px 2px rgb(29 47 66 / 0.04), 0 6px 20px rgb(29 47 66 / 0.05);
  color-scheme: light dark;
}

/* Theme: "auto" follows the phone; Settings can force light or dark via data-theme. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  --bg: #0b1c33;
  --bg-grad: linear-gradient(180deg, #0f2540 0%, #0c1f38 50%, #0d1b30 100%);
  --surface: #102a45;
  --ink: #e4edf3;
  --ink-2: #adbfcf;
  --muted: #93a8bb;
  --line: #1f3b58;
  --brand-1: #74d6c4;
  --brand-2: #6aa9dc;
  --accent: #8fd6ca;
  --accent-ink: #071a33;
  --accent-soft: #163a4c;
  --data: #6fbfb3;
  --warm: #262640;
  --lavender: #1c2c4e;
  --lavender-ink: #c3cdf0;
  --calm: #143440;
  --calm-ink: #b2e2d8;
  --good: #8fd6b2;
  --good-soft: #15352e;
  --warn: #e8b679;
  --danger: #f29a9a;
  --bar-track: #1d3954;
  --glow: rgb(116 214 196 / 0.16);
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1c33;
    --bg-grad: linear-gradient(180deg, #0f2540 0%, #0c1f38 50%, #0d1b30 100%);
    --surface: #102a45;
    --ink: #e4edf3;
    --ink-2: #adbfcf;
    --muted: #93a8bb;
    --line: #1f3b58;
    --brand-1: #74d6c4;
    --brand-2: #6aa9dc;
    --accent: #8fd6ca;
    --accent-ink: #071a33;
    --accent-soft: #163a4c;
    --data: #6fbfb3;
    --warm: #262640;
    --lavender: #1c2c4e;
    --lavender-ink: #c3cdf0;
    --calm: #143440;
    --calm-ink: #b2e2d8;
    --good: #8fd6b2;
    --good-soft: #15352e;
    --warn: #e8b679;
    --danger: #f29a9a;
    --bar-track: #1d3954;
    --glow: rgb(116 214 196 / 0.16);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  min-height: 100%;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
html { min-height: 100vh; min-height: 100dvh; background: var(--bg-grad), var(--bg); }
body { background: transparent; }

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.view { display: flex; flex-direction: column; gap: 14px; }
[hidden] { display: none !important; }

.app-header h1 { margin: 4px 0 0; font-size: 1.6rem; letter-spacing: -0.01em; }
.app-header .sub { margin: 2px 0 0; color: var(--ink-2); }
.app-header.with-back { display: flex; flex-direction: column; align-items: flex-start; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card.calm { background: var(--calm); color: var(--calm-ink); border-color: transparent; display: flex; gap: 12px; align-items: flex-start; }
.card.calm p { margin: 0; }
.card.calm.small { font-size: 0.95rem; }
.calm-icon { font-size: 1.5rem; line-height: 1; }

.card.encourage { background: var(--good-soft); border-color: transparent; }
.card.encourage h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--good); }
.card.encourage p { margin: 0; }
.card.encourage.tone-start h2 { color: var(--accent); }
.card.encourage.tone-start { background: var(--accent-soft); }
.card.encourage.tone-gentle h2, .card.encourage.tone-steady h2 { color: var(--lavender-ink); }
.card.encourage.tone-gentle, .card.encourage.tone-steady { background: var(--lavender); }

.label { margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; display: block; }
.muted { color: var(--muted); }
.small-print { font-size: 0.85rem; margin: 8px 0 0; }
.center { text-align: center; }

.score-row { display: flex; align-items: baseline; gap: 10px; }
.score-big { font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score-of { color: var(--muted); }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--muted); }

.compare { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.chip.up { background: var(--good-soft); color: var(--good); font-weight: 600; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 3px 12px var(--glow); }
.btn.big { padding: 16px; font-size: 1.1rem; }
.btn.danger { color: var(--danger); }
.btn + .btn { margin-top: 8px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-grid .btn + .btn { margin-top: 0; }

.link { appearance: none; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; padding: 6px 0; cursor: pointer; }

.disclaimer { font-size: 0.8rem; color: var(--muted); margin: 6px 4px 0; }

input[type="date"], input[type="time"], textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 8px;
}
textarea { resize: vertical; }

/* Check-in */
.checkin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps li { width: 28px; height: 6px; border-radius: 3px; background: var(--bar-track); }
.steps li.done { background: var(--data); }
.steps li.current { background: var(--data); opacity: 0.5; }

.camera-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 58vh;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.camera-wrap video, .camera-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* selfie mirror */
}
.guide-oval {
  position: absolute; left: 50%; top: 47%;
  width: 62%; aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  border: 3px dashed rgb(255 255 255 / 0.55);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 0.2s;
}
.camera-wrap.ok .guide-oval { border-color: rgb(143 214 202 / 0.95); border-style: solid; box-shadow: 0 0 16px rgb(143 214 202 / 0.35); }
.countdown {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / 0.5);
}
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; padding: 20px; text-align: center; }

.pose-box h2 { margin: 0; font-size: 1.3rem; }
.pose-box p { margin: 4px 0 0; color: var(--ink-2); }
.pose-box .hint { font-weight: 600; color: var(--warn); min-height: 1.5em; margin-bottom: 10px; }
.pose-box .hint.ok { color: var(--good); }

/* Pose bars */
.pose-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pose-row:last-child { border-bottom: 0; }
.pose-head { display: flex; justify-content: space-between; font-weight: 600; }
.pose-head .val { font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--bar-track); border-radius: 4px; margin: 6px 0 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--data); border-radius: 4px; }
.pose-sub { font-size: 0.85rem; color: var(--muted); margin: 0; }

.wins { margin: 10px 0 0; padding-left: 20px; color: var(--good); }
.wins:empty { display: none; }

/* History */
.history-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; margin-bottom: 10px; cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit;
}
.history-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bar-track); }
.history-item .meta { flex: 1; min-width: 0; }
.history-item .date { font-weight: 600; }
.history-item .note { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .score { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.history-item .score small { display: block; font-size: 0.8rem; font-weight: 600; }

.compare-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-photos figure, .photo-grid figure { margin: 0; }
.compare-photos img, .photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; background: var(--bar-track); }
figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 4px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Chart */
#chart { position: relative; }
#chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--bg);
  padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; white-space: nowrap; transform: translate(-50%, -110%);
}

/* Breathe */
.breathe-stage { display: grid; place-items: center; padding: 30px 0; }
.breathe-circle {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft) 0%, var(--lavender) 75%);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 60px color-mix(in srgb, var(--lavender-ink) 25%, transparent);
  display: grid; place-items: center; color: var(--lavender-ink); font-weight: 600; font-size: 1.1rem;
  transform: scale(0.7); cursor: pointer; user-select: none;
  transition: transform 4s ease-in-out;
}

.prose h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 8px; color: var(--ink-2); }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 10;
  max-width: calc(100% - 32px);
}

@media (prefers-reduced-motion: reduce) {
  .breathe-circle { transition-duration: 0.01s; }
}

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bar-track); padding: 4px; border-radius: 12px; }
.segmented button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600;
  padding: 10px 6px; border-radius: 9px; cursor: pointer; min-height: 44px;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* First-run welcome */
.welcome-step { display: flex; flex-direction: column; gap: 14px; }
.welcome-step h1 { margin: 4px 0 0; font-size: 1.6rem; }
.welcome-step .lead { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.welcome-step .btn + .btn { margin-top: 0; }
.welcome-hero { font-size: 3rem; line-height: 1; margin-top: 12px; }
.welcome-steps { align-self: center; margin-top: 4px; }
.prose ul { padding-left: 4px; list-style: none; }
.prose li { margin: 4px 0; }
.baseline-tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }

/* Mandatory setup + sleep */
.card.why { background: var(--accent-soft); border-color: transparent; }
.card.why p:not(.label) { margin: 0; }
.card.why .small-print { margin-top: 8px; }
.welcome-step .link { align-self: center; }
.sleep-step { display: flex; flex-direction: column; gap: 14px; }
.sleep-step h1 { margin: 0; font-size: 1.6rem; }
.sleep-step .lead { margin: 0; color: var(--ink-2); }
.camera-step { display: flex; flex-direction: column; gap: 14px; }
.sleep-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sleep-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.sleep-inputs select {
  font: inherit; font-size: 1.6rem; font-weight: 700; text-align: center; text-align-last: center;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-variant-numeric: tabular-nums; appearance: none;
}
.sleep-card { display: flex; gap: 12px; align-items: flex-start; background: var(--lavender); color: var(--lavender-ink); border-color: transparent; }
.sleep-card p { margin: 0; }
.history-item .sleep { color: var(--muted); font-size: 0.8rem; }

/* Relax before photos */
.relax-step { display: flex; flex-direction: column; gap: 12px; }
.relax-step h1 { margin: 0; font-size: 1.6rem; }
.relax-step .lead { margin: 0; color: var(--ink-2); }
.relax-step p { margin: 0; }
.breathe-stage.small { padding: 18px 0; }
.relax-step .btn + .btn { margin-top: 0; }

/* Brand logo */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); }
.welcome-logo { width: 84px; height: 84px; border-radius: 22px; margin-top: 12px; box-shadow: var(--shadow); }

/* Exercises */
.exercise-card, .unlock-card {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  font: inherit; color: inherit; cursor: pointer;
}
.exercise-card .ex-icon, .unlock-icon { font-size: 1.6rem; line-height: 1; }
.exercise-card .ex-body { flex: 1; min-width: 0; }
.exercise-card .ex-title { font-weight: 700; display: block; }
.exercise-card .ex-sub { color: var(--ink-2); font-size: 0.9rem; display: block; }
.exercise-card.locked { background: var(--bar-track); border-color: transparent; box-shadow: none; }
.exercise-card.locked .ex-sub { color: var(--muted); }
.exercise-card .chev { color: var(--accent); font-size: 1.4rem; }
.unlock-card { background: var(--good-soft); border-color: transparent; color: var(--ink); }
.unlock-card strong { color: var(--good); }
.unlock-bar { height: 10px; margin: 12px 0 0; }
#view-exercises .lead { margin: 0; color: var(--ink-2); }
#ex-content { display: flex; flex-direction: column; gap: 12px; }
.card.timing { border-color: transparent; }
.card.timing.early { background: var(--accent-soft); color: var(--ink); }
.card.timing.ready { background: var(--good-soft); }
.card.timing p { margin: 0; }
.card.timing .timing-title { font-weight: 700; margin-bottom: 4px; }
.card.timing.ready .timing-title { color: var(--good); }
.card.safety { background: var(--lavender); border-color: transparent; color: var(--lavender-ink); }
.card.safety ul { margin: 0; padding-left: 18px; }
.card.safety li { margin: 4px 0; }
.section-title { font-size: 1.1rem; margin: 8px 0 0; }
.exercise {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.exercise summary {
  list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center;
}
.exercise summary::-webkit-details-marker { display: none; }
.exercise summary .ex-icon { font-size: 1.5rem; }
.exercise summary .ex-name { font-weight: 700; display: block; }
.exercise summary .ex-dose { color: var(--muted); font-size: 0.85rem; display: block; }
.exercise summary::after { content: '+'; margin-left: auto; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.exercise[open] summary::after { content: '–'; }
.exercise .ex-detail { padding: 0 16px 14px; }
.exercise ol { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); }
.exercise li { margin: 4px 0; }
.exercise .ex-tip { margin: 0; font-size: 0.9rem; color: var(--calm-ink); background: var(--calm); padding: 8px 10px; border-radius: 10px; }

/* Celebrations */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 20; }
.card.encourage .journey { margin-top: 10px; font-size: 0.92rem; color: var(--ink-2); font-style: italic; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.toggle-row .small-print { display: block; margin: 2px 0 0; }
.switch {
  appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--bar-track);
  position: relative; cursor: pointer; transition: background 0.2s; margin: 0; border: 1px solid var(--line);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.2s;
}
.switch:checked { background: var(--data); border-color: transparent; }
.switch:checked::after { transform: translateX(20px); }

/* Theme-matched logo: light artwork by default, dark artwork in dark mode. */
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: inline-block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: inline-block !important; }
}

/* Home: last 7 days */
.week-card { cursor: pointer; }
.week-card.up { background: linear-gradient(160deg, var(--good-soft), var(--surface) 70%); }
.week-card p { margin: 0; }
.week-title { font-weight: 700; font-size: 1.1rem; }
.week-card.up .week-title { color: var(--good); }
.week-sub { color: var(--ink-2); font-size: 0.92rem; margin-top: 2px !important; }
.week-chart { margin-top: 8px; }
.week-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.week-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-align: right; margin-top: 4px !important; }

/* Home: positive thought */
.thought-card { background: linear-gradient(150deg, var(--accent-soft), var(--warm)); border-color: transparent; }
.thought-head { display: flex; justify-content: space-between; align-items: center; }
.thought-head .label { margin: 0; }
.link.small { font-size: 0.85rem; padding: 0; }
.thought { margin: 8px 0 0; font-size: 1.15rem; line-height: 1.45; font-weight: 600; color: var(--ink); }
.thought::before { content: '“'; color: var(--accent); font-size: 1.4em; line-height: 0; margin-right: 2px; }
.thought::after { content: '”'; color: var(--accent); font-size: 1.4em; line-height: 0; margin-left: 2px; }

/* Home: stats tiles */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0;
}
.stat-icon { font-size: 1.2rem; line-height: 1; }
.stat-value { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat.up .stat-value { color: var(--good); }
.stat-label { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }

/* Home: wins by movement */
.wins-summary { margin: 0 0 6px; font-weight: 600; }
.win-row { padding: 8px 0; border-top: 1px solid var(--line); }
.win-row:first-child { border-top: 0; }
.win-head { display: flex; justify-content: space-between; font-weight: 600; }
.win-change { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.win-change.up { color: var(--good); }
.win-bar { position: relative; height: 8px; background: var(--bar-track); border-radius: 4px; margin: 6px 0 4px; }
.win-fill { position: absolute; inset: 0 auto 0 0; background: var(--data); border-radius: 4px; }
.win-base { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink-2); border-radius: 1px; transform: translateX(-1px); }
.win-sub { margin: 0; font-size: 0.8rem; color: var(--muted); }
.win-sub strong { color: var(--ink); }

/* Home: recovery journey */
.journey-headline { margin: 0 0 10px; }
.journey-track { position: relative; height: 74px; margin: 0 6px; }
.jt-line { position: absolute; top: 22px; left: 0; right: 0; height: 6px; background: var(--bar-track); border-radius: 3px; }
.jt-done { display: block; height: 100%; background: var(--data); border-radius: 3px; }
.jt-stop { position: absolute; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--bar-track); transform: translateX(-50%); }
.jt-stop.reached { border-color: var(--data); background: var(--data); }
.jt-label { position: absolute; top: 38px; transform: translateX(-50%); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.jt-you { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.jt-you span { font-size: 0.68rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 999px;  }
.jt-you::after { content: ''; width: 2px; height: 10px; background: var(--data); margin-top: 1px; }
.jt-label.first { transform: none; }
.jt-label.last { transform: translateX(-100%); }

/* Condition picker */
.condition-picker { display: grid; gap: 8px; margin-bottom: 8px; }
.condition-picker button {
  appearance: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.condition-picker button[aria-checked="true"] {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.condition-picker button[aria-checked="true"]::after { content: ' ✓'; color: var(--accent); }
.jt-beyond { position: absolute; top: 0; right: 0; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 4px, var(--surface) 4px 8px); opacity: 0.85; }
#journey-condition { text-transform: none; letter-spacing: 0; font-weight: 600; }
.jt-label.row2 { top: 52px; }
button.breathe-circle { border: 0; padding: 0; font-family: inherit; }
.breathe-circle:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.chip.partial { background: var(--lavender); color: var(--lavender-ink); }

/* Accuracy reminder */
.accuracy-note {
  margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 10px;
  background: var(--lavender); color: var(--lavender-ink); font-size: 0.85rem; line-height: 1.4;
}
