/* Scoped to the breathing page: never disable motion or alter controls elsewhere in CRM. */
.breath-page{--breath-ink:#243b43;--breath-muted:#526873;--breath-bg:#f7fbfa;--breath-card:#fff;--breath-border:#dcebe7;color:var(--breath-ink);background:var(--breath-bg);max-width:600px;margin:0 auto;padding:20px 12px 32px;border-radius:24px;font-size:15px;line-height:1.6}
.breath-page *{box-sizing:border-box}
.breath-intro{margin:0 0 18px}.breath-intro p{margin:4px 0;color:var(--breath-muted)}
.breath-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#137d70}
.breath-card{padding:24px;border:1px solid var(--breath-border);border-radius:28px;background:var(--breath-card);box-shadow:0 18px 55px #1d574f12;text-align:center}
.breath-card h1{font-size:28px;margin:12px 0 6px;line-height:1.3}.breath-card p{color:var(--breath-muted);margin:8px 0 16px}
.breath-tag{display:inline-block;padding:5px 12px;border-radius:24px;color:#137d70;background:#eef9f6;font-size:12px;font-weight:700}
.breath-character{position:relative;width:220px;height:220px;margin:12px auto;transform-origin:center;will-change:transform}.breath-character svg{position:relative;width:100%;height:100%}.breath-halo{position:absolute;inset:18px;border-radius:50%;background:linear-gradient(135deg,#fff,#d9f4ef);box-shadow:0 15px 40px #1fae9b25}
.breath-cue{min-height:92px}.breath-cue h2{font-size:25px;line-height:1.3;margin:12px 0 4px}.breath-cue p{font-size:14px}
[data-breath-phase=inhale] .breath-cue h2{color:#137d70}[data-breath-phase=exhale] .breath-cue h2{color:#2868ac}
.breath-timeline{border:1px solid var(--breath-border);border-radius:18px;padding:16px;text-align:left}.breath-timeline p{font-size:12px;margin:3px 0 12px}
.breath-track{display:flex;border-radius:12px;overflow:hidden;height:48px}.breath-track>div{position:relative;display:grid;place-items:center;overflow:hidden}.breath-in{width:40%;background:#d9f4ef;color:#123c34}.breath-out{width:60%;background:#e1edfc;color:#123d67}.breath-track i{position:absolute;inset:0 auto 0 0;width:0;background:#55c6b1}.breath-out i{background:#91bced}.breath-track span{position:relative;font-size:12px;font-weight:700}
.breath-timer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:16px 0;background:var(--breath-bg);border-radius:16px}.breath-timer [role=timer]{font:700 26px/1.4 monospace;font-variant-numeric:tabular-nums}
.breath-controls{display:flex;gap:12px;flex-wrap:wrap}.breath-page button{font:inherit;font-weight:700;min-height:48px;border:1px solid #bdceca;background:var(--breath-card);color:var(--breath-ink);border-radius:16px;padding:12px 16px;cursor:pointer}.breath-controls button{flex:1}.breath-page button[hidden]{display:none!important}.breath-page button:focus-visible{outline:3px solid #288bda;outline-offset:3px}.breath-page button:hover{filter:brightness(.96)}.breath-page .breath-primary{color:#fff;background:#137d70;border-color:#137d70}.breath-page .breath-emergency{width:100%;margin:14px 0;background:#fff1f1;color:#a82929;border-color:#eac0c0}
.breath-card .breath-note{background:#f3f8ff;border-radius:14px;text-align:left;padding:14px;font-size:14px;color:#425466}.breath-safety{border:1px solid #e4c777;border-radius:18px;background:#fff8e7;color:#674814;text-align:left;padding:16px}.breath-safety h2{font-size:17px;margin:0 0 8px}.breath-safety ul{padding-left:20px;margin:0}.breath-safety li{margin:6px 0;font-size:14px}.breath-card .breath-private{font-size:12px;margin:16px 0 0}
@media(max-width:420px){.breath-page{padding:12px 0}.breath-card{padding:18px 14px}.breath-character{width:200px;height:200px}.breath-cue h2{font-size:23px}}
@media(prefers-color-scheme:dark){.breath-page{--breath-ink:#e6f0ef;--breath-muted:#b6cbc8;--breath-bg:#17292c;--breath-card:#20373a;--breath-border:#42615e}.breath-tag{background:#174d45;color:#acf0de}.breath-eyebrow,[data-breath-phase=inhale] .breath-cue h2{color:#9fe1d3}[data-breath-phase=exhale] .breath-cue h2{color:#a3caff}.breath-card .breath-note{background:#243d55;color:#d1e4f4}.breath-safety{background:#40351e;color:#f3dfaf}.breath-page .breath-emergency{background:#4a292c;color:#ffd0d0}}
@media(prefers-reduced-motion:reduce){.breath-page .breath-character{transform:none!important;will-change:auto}.breath-page .breath-track i{transition:none;animation:none}}

.breath-countdown{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--breath-ink);margin:10px 0}.breath-track i{display:block;min-height:48px;border-right:3px solid #137d70}.breath-out i{border-right-color:#2868ac}.breath-track i[style*="width: 0%"]{border-right:0}
.duration-label{display:flex;justify-content:space-between;align-items:center;font-weight:700;gap:16px}select{font:inherit;padding:10px 18px;border:1px solid #bdceca;border-radius:12px;background:var(--breath-card);color:var(--breath-ink)}.wh-track{position:relative;height:20px;overflow:hidden;border-radius:10px;background:#dceee9;margin:16px 0}.wh-track i{display:block;height:100%;width:0;background:#137d70;transition:width .25s linear}.wh-steps{display:flex;gap:6px;justify-content:space-between;font-size:11px}.wh-steps span{padding:5px;border-radius:8px}.wh-steps .active{background:#dbf4ec;color:#135b4b;font-weight:800}[data-running=true][data-phase=hold] .wh-track{background:repeating-linear-gradient(90deg,#b5dfd1 0 12px,#e5f4ed 12px 24px);animation:wh-flow 4s linear infinite}[data-running=true][data-phase=breaths] .breath-halo{animation:wh-pulse 4s ease-in-out infinite}@keyframes wh-flow{to{background-position:96px 0}}@keyframes wh-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.wh-track i{transition:none}[data-running=true] .wh-track,[data-running=true] .breath-halo{animation:none!important}}.breath-safety p{font-size:13px;color:inherit;text-align:left}.breath-private a{color:inherit;text-decoration:underline}

.duration-choice{border:0;padding:0;margin:12px 0 0;text-align:left;min-width:0}.duration-choice legend{font-weight:750;padding:0;margin-bottom:10px}.duration-buttons{display:flex;gap:10px}.breath-page .duration-buttons button{flex:1;min-width:0;min-height:48px;padding:12px 8px;border:2px solid var(--breath-border);border-radius:14px}.breath-page .duration-buttons button[aria-pressed=true]{background:#137d70;color:#fff;border-color:#137d70;box-shadow:0 0 0 2px #a0dacf}.breath-page .duration-buttons button:disabled{cursor:not-allowed;opacity:.65}.breath-page .duration-buttons button:disabled:hover{filter:none}

[data-running=true][data-phase=breaths][data-breath-direction=in] .breath-character{transform:scale(1.045)}[data-running=true][data-phase=breaths][data-breath-direction=out] .breath-character{transform:scale(.97)}.breath-character{transition:transform 1.5s ease-in-out}[data-breath-direction=out] [data-b=fill]{background:#3986b3}.wh-track i{transition:none}.breath-card [data-b=cue]{font-size:27px;color:#137d70}@media(prefers-reduced-motion:reduce){.breath-character{transition:none;transform:none!important}}

.wh-portrait{margin:24px 0 12px}.wh-portrait .breath-character{width:220px;height:220px;transform:none!important;transition:none}.wh-portrait img{position:relative;display:block;width:100%;height:auto}.wh-portrait .breath-halo{inset:-12px;border:4px solid #55bca8;background:transparent;box-shadow:none;opacity:.7;transition:transform 2s ease-in-out;animation:none!important}[data-running=true][data-phase=breaths][data-breath-direction=in] .wh-portrait .breath-halo{transform:scale(1.07)}[data-running=true][data-phase=breaths][data-breath-direction=out] .wh-portrait .breath-halo{transform:scale(.98)}.wh-portrait figcaption{font-size:12px;margin-top:18px;color:var(--breath-muted)}.photo-credit{text-align:left;font-size:11px;color:var(--breath-muted);margin-top:18px}.photo-credit a{color:inherit}.photo-credit summary{cursor:pointer;min-height:36px}@media(prefers-reduced-motion:reduce){.wh-portrait .breath-halo{transition:none;transform:none!important}}

.wh-portrait .breath-halo{border-radius:22px}.wh-portrait figcaption a{color:inherit}

.breath-card [data-b=cue]{font-size:clamp(32px,7vw,48px);line-height:1.12;font-weight:850;letter-spacing:-.025em;margin:24px 0 14px;overflow-wrap:anywhere}[data-running=true][data-phase=breaths] .breath-card [data-b=cue]{font-size:clamp(52px,12vw,80px);letter-spacing:-.035em;white-space:nowrap}[data-breath-direction=out] .breath-card [data-b=cue]{color:#2868ac}.breath-timeline .wh-track{height:32px;border-radius:16px}

.breath-page .guide-link{border:0;background:transparent;color:#137d70;text-decoration:underline;padding:8px 12px;min-height:44px}.breath-card .safety-short{font-size:12px;line-height:1.5;margin:6px 0 16px}.guide-dialog{box-sizing:border-box;max-width:720px;width:calc(100% - 24px);max-height:90dvh;border:0;border-radius:20px;padding:18px;color:#243b43;background:#fff;overflow:auto;text-align:left}.guide-dialog::backdrop{background:#0c262fcc}.guide-header{display:flex;gap:12px;align-items:center;justify-content:space-between;position:sticky;top:-18px;padding:10px 0;background:#fff;z-index:1}.guide-header h2{font-size:22px;line-height:1.25;margin:0}.guide-header button{flex-shrink:0;background:#fff!important;color:#243b43!important}.guide-image{display:block;width:100%;height:auto}.guide-text{margin:18px 0;font-size:14px}.guide-text summary{cursor:pointer;font-weight:700;min-height:44px}.guide-text p,.guide-dialog .guide-note{color:#243b43;font-size:14px}.guide-read{display:flex;align-items:center;gap:12px;padding:16px;background:#e6f6ef;border:2px solid #137d70;border-radius:12px;font-weight:750;cursor:pointer;margin-top:16px;min-height:48px}.guide-read input{width:24px;height:24px;flex-shrink:0;accent-color:#137d70}.guide-dialog .guide-footnote{font-size:12px;color:#526873}.guide-dialog :focus-visible{outline:3px solid #288bda;outline-offset:3px}@media(max-width:420px){.guide-dialog{padding:12px}.guide-header{top:-12px}.guide-header h2{font-size:19px}}

.breath-page .full-round-choice{width:100%;margin-bottom:10px}.breath-page .full-round-choice[aria-pressed=true]{background:#137d70;color:white;border-color:#137d70}.breath-page .full-round-choice:disabled{opacity:.65;cursor:not-allowed}.wh-steps{flex-wrap:wrap}.guide-note{background:#fff7e5;padding:14px;border-radius:12px}.guide-text li{margin:10px 0}

.mode-picker{max-width:576px;margin:20px auto 0;padding:0 12px}.mode-buttons{display:flex;gap:8px}.mode-buttons button{font:700 14px/1.4 system-ui;min-height:48px;flex:1;padding:12px;border:1px solid #b7d9ce;border-radius:14px;color:#234b42;background:#fff;cursor:pointer}.mode-buttons button[aria-pressed=true]{background:#137d70;color:#fff;border-color:#137d70}.mode-buttons button:focus-visible{outline:3px solid #288bda;outline-offset:3px}.mode-picker p{font:13px system-ui;color:#526873;margin:10px 0 0}#gentle-panel[hidden],#wim-panel[hidden]{display:none!important}.gentle-mascot{margin:20px auto;width:200px;height:200px;transform:scale(.95);transition:transform 3s ease-in-out}.gentle-mascot img{display:block;width:100%;height:100%;object-fit:contain}[data-gentle-running=true][data-direction=in] .gentle-mascot{transform:scale(1.05)}[data-gentle-running=true][data-direction=out] .gentle-mascot{transform:scale(.95)}.breath-card .gentle-guidance{font-size:14px;margin:20px 0}.gentle-cue{min-height:145px}.breath-card .gentle-cue h2{font-size:clamp(32px,7vw,48px);line-height:1.1;font-weight:850;letter-spacing:-.035em;color:#137d70;margin:24px 0 12px}[data-gentle-running=true] .gentle-cue h2{font-size:clamp(52px,12vw,80px);white-space:nowrap}[data-direction=out] .gentle-cue h2{color:#2868ac}.gentle-track{height:32px;border-radius:16px}[data-direction=out] [data-g=fill]{background:#3986b3}.breath-card .gentle-guide-label{font-size:12px;margin:8px 0 18px}@media(prefers-color-scheme:dark){.mode-picker p{color:#b6cbc8}.mode-buttons button{background:#20373a;color:#e6f0ef}}@media(prefers-reduced-motion:reduce){.gentle-mascot{transform:none!important;transition:none}}
#ambient-panel{max-width:576px;margin:12px auto;padding:0 12px;box-sizing:border-box}.ambient-controls{padding:14px 18px;background:#e2f2eb;border:1px solid #bad8cd;border-radius:18px;color:#254c42;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.ambient-controls button{font:inherit;font-weight:700;background:#fff;border:1px solid #719f8d;color:#174e3c;border-radius:12px;padding:12px;min-height:44px}.ambient-controls button[aria-pressed=true]{background:#185d49;color:#fff}.ambient-controls label{display:flex;align-items:center;gap:8px;font-size:14px}.ambient-controls input{width:120px;min-height:44px;accent-color:#17644c}.ambient-controls p{margin:0;flex-basis:100%;font-size:12px}.ambient-controls :focus-visible{outline:3px solid #a96a00;outline-offset:3px}
.ambient-controls .sound-choice{flex-basis:100%;flex-wrap:wrap}.sound-choice select{font:inherit;max-width:100%;min-height:44px;padding:8px;border-radius:10px;background:#fff;color:#174e3c;border:1px solid #719f8d}
/* Compact single-row player, including narrow phones. */
.ambient-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(46px,80px) 36px;gap:6px;padding:8px}.ambient-controls>select{min-width:0;width:100%;height:44px;border-radius:10px;border:1px solid #719f8d;background:#fff;color:#174e3c;font:inherit;font-size:13px;padding:4px}.ambient-controls>button{padding:0;width:100%;height:44px;min-width:0}.ambient-controls>input{min-width:0;width:100%;margin:0}.audio-status:empty{display:none}.audio-status,.audio-credits{font-size:12px;color:#365c54}.audio-credits{padding:10px;background:#edf6f1;border-radius:12px}.audio-credits a{color:#185b47}

