/* preset: record-wave — recorder card. The record dot uses the brand destructive token (recording = live audio),
   the pulse is a typed number painted from t; bars scale on Y only (one composited transform each).
   © Dudoxx UG / Acceleate Consulting - Walid Boudabbous <walid@acceleate.com> */
.preset-record-wave { align-items: center; gap: 3cqw; }
.preset-record-wave .col-text { flex: 0 0 28cqw; }
.rw-card { position: relative; flex: 1 1 auto; max-width: 56cqw; display: grid; gap: 1.1cqw; padding: 1.6cqw 1.8cqw; border-radius: 1.2cqw;
  background: var(--card); box-shadow: var(--lift); --rw-pulse: 0; }
.rw-head { display: flex; align-items: center; gap: 1cqw; }
.rw-rec { position: relative; display: grid; place-items: center; width: 3.2cqw; aspect-ratio: 1; border-radius: 50%; background: var(--recess); }
.rw-dot { width: 1.4cqw; aspect-ratio: 1; border-radius: 50%; background: var(--muted); }
.rw-card[data-phase="rec"] .rw-dot { background: var(--brand-color-destructive, var(--signal)); scale: calc(0.85 + var(--rw-pulse) * 0.25); }
.rw-card[data-phase="rec"] .rw-rec { box-shadow: 0 0 0 calc(0.2cqw + var(--rw-pulse) * 0.5cqw) color-mix(in oklch, var(--brand-color-destructive, var(--signal)) 22%, transparent); }
.rw-state { font-family: var(--face-head); font-weight: 650; font-size: var(--fs-label); color: var(--ink); }
.rw-patient { padding: 0.2cqw 0.9cqw; border-radius: 99cqw; background: var(--recess); color: var(--muted); font-size: var(--fs-label); }
.rw-timer { margin-inline-start: auto; font-family: var(--face-mono); font-size: var(--fs-body); color: var(--ink); }
.rw-stop { width: 2.4cqw; aspect-ratio: 1; border-radius: 0.5cqw; background: var(--recess); position: relative; }
.rw-stop::after { content: ''; position: absolute; inset: 0.75cqw; border-radius: 0.15cqw; background: var(--muted); }
.rw-wave { display: flex; align-items: center; gap: 0.18cqw; height: 6cqw; padding: 0 0.4cqw; border-radius: 0.8cqw; background: var(--recess); }
.rw-wave > i { flex: 1 1 0; height: 86%; border-radius: 99cqw; background: var(--accent); transform-origin: 50% 50%; transform: scaleY(0.08); }
.rw-card:not([data-phase="rec"]) .rw-wave > i { background: var(--rule); }
.rw-feed { display: grid; gap: 0.5cqw; min-height: 10cqw; align-content: start; }
.rw-line { display: grid; grid-template-columns: max-content 1fr; gap: 1cqw; margin: 0; font-size: var(--fs-label); color: var(--ink); line-height: 1.35; opacity: 0; }
.rw-who { min-width: 7cqw; white-space: nowrap; color: var(--accent); font-family: var(--face-head); font-weight: 650; }
.rw-progress { display: none; align-items: center; gap: 1cqw; font-size: var(--fs-label); color: var(--muted); }
.rw-card[data-phase="trans"] .rw-progress, .rw-card[data-phase="done"] .rw-progress { display: flex; }
.rw-pbar { flex: 1 1 auto; height: 0.5cqw; border-radius: 1cqw; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.rw-results { display: flex; flex-wrap: wrap; gap: 0.8cqw; }
.rw-result { padding: 0.4cqw 1.1cqw; border-radius: 99cqw; background: color-mix(in oklch, var(--brand-color-success) 16%, var(--card));
  color: var(--ink); font-size: var(--fs-label); font-weight: 600; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .rw-line, .rw-result { opacity: 1; } }
