/* Meditation timer (TWH_TIMER_MEDITATION). Tokens from brand.css; dark and light follow them. */
.timer { max-width: 34rem; margin: 0 auto; padding: var(--space-4, 16px) 0 var(--space-6, 32px); }
.timer h1 { margin: 0 0 var(--space-2, 8px); }
.timer-group { margin: 0 0 var(--space-4, 16px); padding: 0; border: 0; min-width: 0; }
.timer-group legend { padding: 0; margin: 0 0 6px; font-weight: 600; }
.timer-len { margin: 0 0 4px; font-size: var(--text-xl, 1.75rem); font-family: var(--font-display, inherit); }
.timer-len output { font: inherit; }
#timer-len { width: 100%; min-height: 44px; accent-color: var(--accent-fill, currentColor); }
.timer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.timer-chip, .timer-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: inherit; font-size: var(--text-sm, .95rem); cursor: pointer; }
.timer-chip[aria-pressed="true"], .timer-opt input:checked + span { background: var(--accent-soft, transparent); border-color: var(--accent-fill, currentColor); color: var(--accent-ink, inherit); font-weight: 600; }
.timer-opt input:checked + span::before { content: "\2713"; margin-right: 6px; }
.timer-opt { position: relative; display: inline-flex; }
.timer-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.timer-opt input:focus-visible + span, .timer-chip:focus-visible, #timer-bg:focus-visible, #timer-len:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }
#timer-bg { width: 100%; min-height: 48px; padding: 6px 12px; font: inherit; font-size: 1rem; color: inherit; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; }
.timer-go .btn { width: 100%; min-height: 52px; }
.timer-run, .timer-done { text-align: center; padding-top: var(--space-5, 24px); }
.timer-left { margin: 0; font-size: clamp(3rem, 18vw, 6rem); line-height: 1.1; font-family: var(--font-display, inherit); font-variant-numeric: tabular-nums; }
.timer-bar { height: 6px; margin: var(--space-3, 12px) 0; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: var(--timer-progress, 0%); background: var(--accent, currentColor); }
.timer-actions { display: flex; gap: 12px; justify-content: center; }
.timer-actions .btn { min-width: 8rem; min-height: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) { .timer-bar i { transition: width .5s linear; } }
