/* Scoped mobile reliability layer. Existing art, colours and native insets remain unchanged. */
#proModal .modal-content,.help-overlay .help-card,.support-overlay .support-card,.steps-overlay .steps-card,.wanway-tools-content{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
#proModal,.help-overlay,.support-overlay,.steps-overlay{padding:12px;box-sizing:border-box}
#durationOptions{flex-wrap:wrap}
#exerciseRemaining{display:block;text-align:center;font-size:20px;font-variant-numeric:tabular-nums;line-height:1.5;margin:8px 0 0;color:inherit}
#exerciseRemainingLabel{font-size:12px;color:#8892a8;margin-right:8px}
.stretch-notice{font-size:13px;line-height:1.5;color:#dcbf87;text-align:center;overflow-wrap:anywhere}
.stretch-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.icon-controls button,.lang-btn{position:relative;margin:7px;isolation:isolate}
.icon-controls button::after,.lang-btn::after{content:'';position:absolute;inset:-6px}
.ctrl-btn,.opt-btn,.figure-btn,.close-btn,.steps-close,#wanwayToolsClose,.wanway-tool-button{min-height:44px;min-width:44px}
button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #8fc7ff;outline-offset:3px}
.stretch-choice{box-sizing:border-box;max-width:min(460px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;border:1px solid #647187;border-radius:22px;background:#1a1a2e;color:#eef2f7;padding:24px}
.stretch-choice::backdrop{background:#0009}.stretch-choice h2{font-size:21px}.stretch-choice p{line-height:1.6;margin:12px 0 18px}.stretch-choice button{display:block;width:100%;max-width:none;margin-top:10px;white-space:normal}
@media(prefers-reduced-motion:reduce){.help-overlay,.support-overlay,.steps-overlay,.modal,.timer-fill{transition:none!important}}

#proModal[hidden],#helpOverlay[hidden],#supportOverlay[hidden],#stepsOverlay[hidden],#wanwayToolsModal[hidden]{display:none!important}
/* Long translated headings must wrap at large Android text sizes. */
.exercise-title,.exercise-desc{overflow-wrap:anywhere}
.mode-btn,.ctrl-btn,.figure-btn{min-width:0;overflow-wrap:anywhere}
.figure-switcher,.figure-options{flex-wrap:wrap}

/* Existing settings/history composition; readable secondary explanations. */
.stretch-setting-hint{font-size:13px;line-height:1.5;color:inherit;opacity:.85;margin-top:8px}.exercise-desc{line-height:1.5;overflow-wrap:anywhere}#betweenPauseToggle{white-space:normal;min-height:44px}
