/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --border: #e3e1d8;
  --text: #17191c;
  --text-2: #4d5159;
  --muted: #6b6f78;
  --primary: #0f766e;
  --primary-hover: #0c5f58;
  --primary-soft: #dff3ef;
  --on-primary: #ffffff;
  --accent: #e8553d;
  --accent-soft: #fde8e3;
  --warn-bg: #fff5da;
  --warn-text: #7a5200;
  --danger: #c2322b;
  --mark: #ffe28a;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #e7e5de;
  --shadow: 0 1px 2px rgb(20 20 20 / 0.05), 0 6px 24px rgb(20 20 20 / 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111315;
    --surface: #1a1d20;
    --surface-2: #23272b;
    --border: #30353a;
    --text: #f2f3f4;
    --text-2: #c5c9ce;
    --muted: #979ca4;
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-soft: #133a36;
    --on-primary: #06201d;
    --accent: #ff7a63;
    --accent-soft: #3a1f1a;
    --warn-bg: #3a2f10;
    --warn-text: #ffd97a;
    --danger: #ff6b62;
    --mark: #6b5510;
    --series-1: #3987e5;
    --series-2: #d95926;
    --grid: #2a2e33;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.25);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315;
  --surface: #1a1d20;
  --surface-2: #23272b;
  --border: #30353a;
  --text: #f2f3f4;
  --text-2: #c5c9ce;
  --muted: #979ca4;
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-soft: #133a36;
  --on-primary: #06201d;
  --accent: #ff7a63;
  --accent-soft: #3a1f1a;
  --warn-bg: #3a2f10;
  --warn-text: #ffd97a;
  --danger: #ff6b62;
  --mark: #6b5510;
  --series-1: #3987e5;
  --series-2: #d95926;
  --grid: #2a2e33;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.25);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1:focus, h2:focus { outline: none; }
img, video, svg { max-width: 100%; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
.container > section, .container > .card, .container > .grid-2 { margin-bottom: 28px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.alt { color: var(--muted); font-size: .85rem; display: block; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 60ch; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); display: inline-block; margin-bottom: 6px; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.center { justify-content: center; text-align: center; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); font-size: 1.05rem; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; gap: 6px; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; min-width: 40px; height: 40px; padding: 0 10px; cursor: pointer; font-weight: 700; }
.icon-btn:hover { background: var(--surface-2); }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px 16px 32px; border-top: 1px solid var(--border); }
.site-footer p { margin: 0; }

body.in-session .nav, body.in-session .lang-btn, body.in-session .site-footer { display: none; }

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
}

/* ---------- buttons, chips, cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .1s, border-color .15s;
  min-height: 44px;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; min-height: 52px; }
.btn-sm { padding: 6px 14px; font-size: .9rem; min-height: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; color: var(--text-2); }
.chip.sm { padding: 2px 10px; font-size: .78rem; }
.chip.level-1 { background: var(--primary-soft); color: var(--primary); }
.chip.level-3 { background: var(--accent-soft); color: var(--accent); }
.done-pill { color: var(--primary); font-weight: 700; font-size: .9rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.page-head { margin: 8px 0 24px; }
.notice { background: var(--primary-soft); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; margin: 16px 0 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin: 12px 0 36px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.daily { border-top: 4px solid var(--accent); }
.daily-text { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 12px 0 4px; }
.streak { font-weight: 600; color: var(--text-2); white-space: nowrap; }
.streak strong { font-size: 1.4rem; color: var(--accent); }
.tip-text { font-size: 1.15rem; font-weight: 600; line-height: 1.45; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.mode-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s;
  position: relative;
}
.mode-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.mode-card .muted { font-size: .9rem; }
.mode-icon { font-size: 1.7rem; }
.mode-card.selectable input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card.selectable:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mode-card.selectable:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.steps li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }

/* Courage Path */
.path { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 480px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path-step { padding: 10px 4px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; border: 2px solid transparent; font-size: .85rem; }
.path-step.done { background: var(--primary-soft); }
.path-step.done .path-time { color: var(--primary); }
.path-step.current { border-color: var(--accent); background: var(--surface); }
.path-time { display: block; font-weight: 700; font-size: .92rem; }
.path-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.path-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.path-dots i.on { background: var(--primary); }
.path-step.current .path-dots i.on { background: var(--accent); }

/* ---------- practice setup ---------- */
.setup fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.setup legend, .legend, .field-label { font-weight: 700; margin-bottom: 10px; display: block; padding: 0; }
.field { display: block; margin-bottom: 26px; }
select, textarea, .search {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); max-width: 520px;
}
textarea { max-width: none; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--surface); font-weight: 600; cursor: pointer;
}
.chip-option:hover span { border-color: var(--primary); }
.chip-option:has(input:checked) span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-option:has(input:focus-visible) span { outline: 3px solid var(--primary); outline-offset: 2px; }

.toggles { display: grid; gap: 10px; }
.toggle { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.toggle.disabled { opacity: .6; cursor: default; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; margin-top: 2px; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.toggle:has(input:checked) .switch { background: var(--primary); }
.toggle:has(input:checked) .switch::after { transform: translateX(18px); }
.toggle:has(input:focus-visible) .switch { outline: 3px solid var(--primary); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; }

/* ---------- session ---------- */
.session { max-width: 900px; margin: 0 auto; }
.session.stage { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; }
.session-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 16px; }
.phase-label { font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.phase-label.live { color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stage-title { font-size: clamp(1.5rem, 3.5vw, 2rem); max-width: 22ch; }

.anx-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 560px; }
.anx { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px; border: 2px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; font-size: .82rem; font-weight: 600; }
.anx:hover { border-color: var(--primary); }
.anx.selected { border-color: var(--primary); background: var(--primary-soft); }
.anx-face { font-size: 1.9rem; line-height: 1; }

.breath-wrap { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.breath-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--primary-soft), color-mix(in srgb, var(--primary) 45%, transparent));
  transition-property: transform; transition-timing-function: ease-in-out;
}
.breath-label { position: relative; font-size: 1.3rem; font-weight: 800; }

.prompt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); text-align: center; margin-bottom: 20px; }
.prompt-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; }
.prompt-text { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; line-height: 1.3; margin: 0; }
.prompt-card.big { padding: 32px 24px; }
.prompt-card.big .prompt-text { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.prompt-sub { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.side { color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.side.flipped { color: var(--accent); }

.session-grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .session-grid { grid-template-columns: 1fr; } }
.timer-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.side-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.keys { margin: 0; }
@media (hover: none) { .keys { display: none; } }

.ring { position: relative; width: 220px; height: 220px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .1s linear, stroke .3s; }
.ring-fg.warn { stroke: var(--accent); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.meter { width: 100%; max-width: 220px; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-fill { height: 100%; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(.02); transition: transform .1s linear; }
.status { margin: 0; font-weight: 600; color: var(--muted); min-height: 1.5em; }
.status.on { color: var(--primary); }

.structure h3 { margin-bottom: 8px; }
.structure ol { margin: 0; padding-left: 20px; }
.structure li { margin-bottom: 4px; }

.mirror { width: 100%; border-radius: var(--radius); transform: scaleX(-1); background: #000; aspect-ratio: 4 / 3; object-fit: cover; }

.nudge {
  min-height: 0; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  padding: 14px 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--text);
  font-size: 1.2rem; font-weight: 700; text-align: center;
}
.nudge:empty { padding: 0; }
.nudge.show { opacity: 1; transform: none; }
.nudge.strong { background: var(--accent-soft); color: var(--accent); }

.transcript-live p { margin: 0; max-height: 180px; overflow-y: auto; color: var(--text-2); }
.interim { color: var(--muted); font-style: italic; }

.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--primary); animation: spin 0.8s linear infinite; margin-top: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- results ---------- */
.results > * { margin-bottom: 24px; }
.results-head { text-align: center; padding-top: 8px; }
.big-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.prompt-recap { font-size: 1.2rem; font-weight: 600; color: var(--text-2); max-width: 50ch; margin: 0 auto 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.tile-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.tile-value { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.feedback { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feedback li { display: flex; gap: 10px; align-items: flex-start; }
.playback { width: 100%; margin-bottom: 10px; border-radius: var(--radius-sm); }
video.playback { background: #000; }
.transcript { color: var(--text-2); line-height: 1.8; }
mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 3px; }

.reflect .anx-scale { max-width: none; margin-bottom: 20px; }
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.star { background: none; border: 0; font-size: 2rem; color: var(--border); cursor: pointer; padding: 0 2px; line-height: 1; }
.star.on { color: #f5b301; }
.saved-msg { color: var(--primary); font-weight: 700; }

.badge-unlock { border: 2px solid var(--accent); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.badge-icon { font-size: 2rem; }
.badge.locked { opacity: .45; }
.badge.locked .badge-icon { filter: grayscale(1); }

/* ---------- topics ---------- */
.search { margin-top: 8px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.topic-card { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.topic-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.topic-icon { font-size: 2rem; margin-bottom: 6px; }
.topic-icon.big { font-size: 3rem; }
.topic-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.topic-head { display: flex; gap: 16px; align-items: center; }
.topic-head h1 { margin-bottom: 4px; }
.back { display: inline-block; margin-bottom: 8px; }

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.word-chip { text-align: left; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; }
.word-chip:hover { border-color: var(--primary); background: var(--primary-soft); }

.prompt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prompt-row-text { min-width: 0; font-weight: 600; }
.prompt-row .btn { flex: none; }

/* ---------- progress ---------- */
.history { list-style: none; padding: 0; margin: 0; }
.history-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; color: var(--text); }
.history-main:hover strong { color: var(--primary); }
.history-icon { font-size: 1.4rem; }
.history-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.history-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-anx { white-space: nowrap; font-size: 1.1rem; }

/* chart */
.chart { position: relative; }
.legend { display: flex; gap: 16px; margin-bottom: 8px; font-size: .88rem; color: var(--text-2); font-weight: 600; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.swatch.s1 { background: var(--series-1); }
.swatch.s2 { background: var(--series-2); }
.chart-plot { position: relative; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s1 { stroke: var(--series-1); }
.chart .line.s2 { stroke: var(--series-2); }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot.s1 { fill: var(--series-1); }
.chart .dot.s2 { fill: var(--series-2); }
.chart .direct-label { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tooltip {
  position: absolute; top: 0; pointer-events: none; min-width: 170px; max-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: .88rem;
}
.tooltip[hidden] { display: none; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row b { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .breath-circle { transition: none !important; }
}
