/* Breathing exercise (TWH_BREATHING). Tokens from brand.css; light and dark follow them. The circle is sized by a custom property the script sets on the stage, so no
   inline style is needed (strict CSP: the script sets it through CSSOM style.setProperty, which the CSP allows). */
.breathe { max-width: 34rem; margin: 0 auto; padding: var(--space-4, 16px) 0 var(--space-6, 32px); }
.breathe h1 { margin: 0 0 var(--space-2, 8px); }
.br-group { margin: 0 0 var(--space-4, 16px); padding: 0; border: 0; min-width: 0; }
.br-group legend { padding: 0; margin: 0 0 6px; font-weight: 600; }
.br-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.br-opt { position: relative; display: inline-flex; }
.br-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.br-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 16px; box-sizing: border-box; border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px; background: var(--surface); color: inherit; font-size: var(--text-sm, .95rem); }
.br-opt input:checked + span { background: var(--accent-soft, transparent); border-color: var(--accent-fill, currentColor); color: var(--accent-ink, inherit); font-weight: 600; }
.br-opt input:checked + span::before { content: "\2713"; margin-right: 6px; }
.br-opt input:focus-visible + span, .br-check input:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }
.br-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.br-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent-fill, currentColor); }
.br-check input:disabled + span { opacity: .6; }
.br-go .btn { width: 100%; min-height: 52px; }
.br-run, .br-done { text-align: center; padding-top: var(--space-4, 16px); }
.br-stage { display: flex; align-items: center; justify-content: center; height: min(62vw, 18rem); margin: 0 auto var(--space-3, 12px); --br-scale: .45; }
.br-circle { width: min(60vw, 17rem); height: min(60vw, 17rem); border-radius: 50%; transform: scale(var(--br-scale)); transform-origin: center;
  background: radial-gradient(circle at 50% 40%, var(--accent-soft, rgba(120, 160, 200, .35)), var(--accent-fill, #4a7fb0)); box-shadow: 0 0 0 2px var(--accent-fill, #4a7fb0) inset, 0 0 40px var(--accent-soft, transparent); }
.br-cue { margin: 0; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.2; font-family: var(--font-display, inherit); min-height: 1.3em; }
.br-count { margin: 0; font-size: clamp(2.4rem, 12vw, 4rem); line-height: 1.1; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.br-bar { height: 6px; margin: var(--space-3, 12px) 0; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.br-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--br-progress, 0)); background: var(--accent, currentColor); }
.br-actions { display: flex; gap: 12px; justify-content: center; }
.br-actions .btn { min-width: 8rem; min-height: 48px; }
/* Reduced motion (or the page's own switch): no circle; the words and the count carry the pace. */
.breathe.br-still .br-stage { display: none; }
.breathe.br-still .br-cue { font-size: clamp(2rem, 9vw, 3rem); padding-top: var(--space-4, 16px); }
@media (prefers-reduced-motion: reduce) { .br-stage { display: none; } .br-cue { font-size: clamp(2rem, 9vw, 3rem); padding-top: var(--space-4, 16px); } }
@media (prefers-reduced-motion: no-preference) { .br-circle { transition: transform var(--br-dur, 1s) ease-in-out; } }
