.practice-panel[hidden],.practice-panel [hidden]{display:none!important}
.practice-panel{position:fixed;inset:0;z-index:10000;display:flex;justify-content:flex-end;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;color:#f5e8d0;font-family:'Quicksand',sans-serif;isolation:isolate;pointer-events:none}
.practice-panel *{box-sizing:border-box}
.practice-panel__shell{width:min(400px,100%);height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(150px,1fr) auto auto;overflow:visible;pointer-events:none;text-shadow:0 2px 4px #160d09,0 0 12px #160d09}
.practice-panel__header{display:flex;align-items:flex-start;gap:12px;padding:24px 24px 8px}
.practice-panel__heading{flex:1;min-width:0;text-align:center;padding-left:55px}
.practice-panel__eyebrow{display:block;color:#c9a66f;font-size:10px;font-weight:750;letter-spacing:.16em}
.practice-panel__title{margin:8px 0 2px;font-family:Georgia,serif;font-size:clamp(25px,4vw,34px);font-weight:600;color:#f5d48e;line-height:1.16}
.practice-panel__subtitle{margin:0;color:#d9c9a8;font-size:13px;line-height:1.4}
.practice-panel__close{pointer-events:auto;flex:0 0 auto;min-width:55px;min-height:44px;border:1px solid #876d48;border-radius:10px;background:#3d2b1b;color:#f5e8d0;font:600 13px 'Quicksand',sans-serif;cursor:pointer}
.practice-panel__stage{position:relative;min-height:0;overflow:hidden}
.practice-panel__canvas,.practice-panel__breathing{position:absolute;inset:0}
.practice-panel__canvas{touch-action:none;cursor:pointer;pointer-events:auto}
.practice-panel__canvas canvas{display:block;width:100%;height:100%;touch-action:none}
.practice-panel__breathing{display:grid;place-items:center}
.practice-panel__breath-circle{width:min(53vw,230px,65%);aspect-ratio:1;border:2px solid #92fff0;border-radius:50%;display:grid;place-items:center;transform:scale(var(--breath-scale,1));background:radial-gradient(circle,#082f38c9 0%,#062b3380 56%,#0e62662b 72%);box-shadow:0 0 0 12px #48eac411,0 0 0 27px #48eac40a,0 0 26px #53ffe4a0,inset 0 0 28px #53ffe43b;transition:transform .12s linear}
.practice-panel__breath-word{font-family:Georgia,serif;font-size:clamp(22px,4vw,30px);font-weight:600;color:#effffb;text-shadow:0 2px 4px #031c25,0 0 10px #53ffe4}
.practice-panel__status{text-align:center;padding:4px 24px 0}
.practice-panel__count-block{display:flex;align-items:baseline;justify-content:center;gap:8px;white-space:nowrap}
.practice-panel__count{font-size:clamp(36px,8vw,54px);font-weight:750;line-height:1;font-variant-numeric:tabular-nums;color:#f7d27d}
.practice-panel__count-unit{font-size:15px;color:#d9c9a8}
.practice-panel__rounds{display:block;margin-top:7px;color:#e6d0a8;font-size:13px;font-variant-numeric:tabular-nums}
.practice-panel__progress{height:7px;margin:13px auto 0;max-width:340px;overflow:hidden;border-radius:100px;background:#f9e8c325}
.practice-panel__progress-fill{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c48336,#f2c96b);box-shadow:0 0 12px #f2c96b70;transition:width .3s ease}
.practice-panel__footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:20px 20px max(22px,env(safe-area-inset-bottom))}
.practice-panel__footer button{pointer-events:auto;min-height:48px;min-width:138px;padding:10px 18px;border-radius:12px;font:750 16px 'Quicksand',sans-serif;cursor:pointer}
.practice-panel__primary{border:1px solid #ffe2a4;background:linear-gradient(#f4d180,#dca74e);color:#291a0b;box-shadow:0 5px 18px #d4974038}
.practice-panel__secondary{border:1px solid #94764e;background:#49331e;color:#f6e4be}
.practice-panel__hint{flex-basis:100%;margin:1px 0 0;text-align:center;color:#bea98d;font-size:12px;line-height:1.35}
.practice-panel button:hover:not(:disabled){filter:brightness(1.12)}
.practice-panel button:focus-visible{outline:3px solid #fff1bb;outline-offset:3px}
.practice-panel button:disabled{opacity:.5;cursor:default}
.practice-panel--paused .practice-panel__breath-circle{transition:none}
@media(max-width:600px){.practice-panel{padding:0}.practice-panel__shell{width:100%;height:100%;max-height:none}.practice-panel__stage{width:min(78vw,300px);justify-self:center;min-width:0}.practice-panel__header{padding:max(18px,env(safe-area-inset-top)) 16px 6px}.practice-panel__heading{padding-left:50px}.practice-panel__footer{padding:15px 15px max(18px,env(safe-area-inset-bottom))}.practice-panel__footer button{flex:1;min-width:0}.practice-panel__status{padding-inline:16px}}
@media(max-height:610px){.practice-panel__shell{grid-template-rows:auto minmax(100px,1fr) auto auto}.practice-panel__header{padding-top:10px}.practice-panel__title{margin-top:3px}.practice-panel__footer{padding-top:10px}.practice-panel__count{font-size:34px}.practice-panel__progress{margin-top:7px}}
@media(prefers-reduced-motion:reduce){.practice-panel__breath-circle,.practice-panel__progress-fill{transition:none}}
.practice-panel__header{background:radial-gradient(ellipse at top,#09232b80,transparent 75%)}
.practice-panel__status{background:radial-gradient(ellipse,#08232b8c,transparent 75%);padding-block:10px}
.practice-panel__title,.practice-panel__count{color:#e7fff8;text-shadow:0 2px 4px #09202b,0 0 14px #09202b,0 0 22px #38ffd980}
.practice-panel__subtitle,.practice-panel__count-unit,.practice-panel__rounds,.practice-panel__hint{color:#ecfff9;text-shadow:0 2px 3px #051a23,0 0 8px #051a23,0 0 14px #051a23}
.practice-panel__progress-fill{background:linear-gradient(90deg,#26cdb0,#affff0);box-shadow:0 0 12px #53ffe4}
.practice-panel__progress{background:#082d39b3}
.practice-panel__breathing{transform:translateY(-5%)}
.practice-notice{position:fixed;z-index:11000;left:50%;top:calc(env(safe-area-inset-top) + 18px);transform:translateX(-50%);display:flex;align-items:center;gap:9px;width:max-content;max-width:min(420px,calc(100vw - 28px));box-sizing:border-box;padding:9px 15px 9px 10px;border:1px solid #70f4dba6;border-radius:16px;background:#092b31ed;box-shadow:0 0 18px #4af5d535;color:#eafff8;pointer-events:none;font:600 12px/1.4 'Quicksand',sans-serif}
.practice-notice[hidden]{display:none}.practice-notice svg{width:34px;height:34px;flex-shrink:0;fill:#6bffdd16;stroke:#86ffe4;stroke-width:1.5;filter:drop-shadow(0 0 4px #54ffdf)}.practice-notice div{min-width:0}.practice-notice small{display:block;font-size:8px;letter-spacing:.1em;color:#8affdf;margin-bottom:2px}.practice-notice span{display:block;overflow-wrap:anywhere}
.practice-active .practice-notice{top:calc(env(safe-area-inset-top) + 108px)}
