/* Scoped additions: retain Missions navigation and home layout. */
.coach-screen [hidden],#workoutDialog [hidden]{display:none!important}
#workoutDialog .exercise-list.guided{max-height:none;overflow:visible}
#workoutDialog .workout-session-head{grid-template-columns:1fr 1fr auto}
#workoutDialog .workout-session-head button{grid-column:auto}
#workoutDialog .dialog-head{position:sticky;top:0;z-index:3;background:var(--card);padding:10px 0}
#workoutDialog .rest-timer{color:var(--text)}
#workoutDialog .gw-load input{width:90px;height:44px}
#workoutDialog .gw-set{background:var(--card);padding:14px}
.coach-screen{height:100dvh}.coach-screen .coach-head{flex-shrink:0;min-height:calc(72px + env(safe-area-inset-top));height:auto;padding-bottom:10px}.coach-screen .coach-body{min-height:0;padding-bottom:28px}.coach-screen .coach-chat{padding-bottom:12px}.coach-screen .coach-composer{position:static;flex-shrink:0}.coach-screen .chat-intro h1{font-size:clamp(28px,5vw,40px);letter-spacing:-1px}.coach-screen .chat-intro .eyebrow{font-size:11px;letter-spacing:2px;margin:6px}.coach-screen .chat-intro p{margin-bottom:18px}.coach-screen .vai-message{border:1px solid var(--line);box-shadow:none;line-height:1.65;overflow-wrap:anywhere}.coach-screen .user-message{line-height:1.6;overflow-wrap:anywhere}.coach-screen button:focus-visible,.workout-dialog button:focus-visible{outline:3px solid #a582ff;outline-offset:3px}
.vai-voice-bar{background:var(--card);border-top:1px solid var(--line);padding:12px max(16px,calc((100vw - 640px)/2));flex-shrink:0}.vai-voice-status{display:flex;align-items:center;gap:9px;font-size:13px;min-height:24px;color:var(--text)}#vaiPulse{width:9px;height:9px;border-radius:50%;background:#a4b0c0;flex-shrink:0}#vaiPulse[data-mode=listening]{background:#ef6c6c;animation:vaiGlow 1s infinite}#vaiPulse[data-mode=thinking]{background:#7b68ee;animation:vaiGlow 1.4s infinite}#vaiPulse[data-mode=speaking]{background:#0cba86;animation:vaiGlow .8s infinite}.vai-voice-actions{display:flex;gap:8px;margin:8px 0}.vai-voice-actions button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);font:inherit;font-weight:650;font-size:13px}.vai-voice-actions #vaiMic{background:var(--blue);color:#fff;border:0;flex:1}.vai-voice-bar small{font-size:10px;color:var(--muted);display:block}.vai-action-card{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:18px;padding:18px;display:grid;gap:10px}.vai-action-card label{display:grid;gap:5px;font-size:13px;color:var(--text)}.vai-action-card input,.vai-action-card select,.vai-action-card textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font:inherit;box-sizing:border-box}.vai-action-card .vai-memory-choice{grid-template-columns:22px 1fr;align-items:center}.vai-memory-choice input{width:18px;height:18px}.vai-card-actions{display:flex;gap:8px}.vai-card-actions button{flex:1;min-height:44px}.vai-action-card small{color:var(--muted);line-height:1.5}.vai-saved{color:var(--green);font-weight:700}.vai-error button{display:block;margin-top:12px;min-height:44px}.memory-fact button{min-width:40px;min-height:40px}.coach-screen button:disabled,.workout-dialog button:disabled{opacity:.45;cursor:not-allowed}
.workout-dialog{width:min(680px,calc(100% - 20px));max-height:92dvh;overflow:auto;padding:0!important}.workout-dialog #workoutForm{padding:20px}.workout-dialog .gw-track{display:flex;gap:5px;margin:16px 0}.gw-track span{height:5px;flex:1;background:var(--line);border-radius:4px}.gw-track span.done{background:var(--green)}.gw-track span.current{background:var(--blue)}.gw-stage{display:grid;gap:14px}.gw-stage h2{font-size:26px;line-height:1.2}.gw-visual{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;background:#fff;border-radius:16px;overflow:hidden}.gw-visual img{width:100%;height:180px;object-fit:contain}.gw-visual figcaption{grid-column:1/-1;padding:0 10px 10px;text-align:center;color:#586a7e;font-size:10px}.gw-visual svg{width:100%;height:180px;grid-column:1/-1}.gw-cues{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.6}.gw-set{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px;min-height:58px;background:var(--card);cursor:pointer}.gw-set:has(input:checked){border-color:var(--green);background:color-mix(in srgb,var(--green) 9%,var(--card))}.gw-set input{width:23px;height:23px;accent-color:var(--green)}.gw-set strong{flex:1}.gw-set small{color:var(--muted)}.gw-message{border-radius:14px;padding:13px;background:color-mix(in srgb,var(--blue) 9%,var(--card));color:var(--text);line-height:1.5}.gw-controls{display:flex;gap:8px}.gw-controls button{min-height:46px;flex:1}.gw-done{text-align:center;padding:24px 6px}.gw-done .gw-check{width:70px;height:70px;display:grid;place-items:center;margin:0 auto 20px;border-radius:50%;background:var(--green);color:white;font-size:38px}.gw-done h2{font-size:30px}.gw-done p{margin:14px 0;line-height:1.6;color:var(--muted)}.gw-feedback{display:flex;gap:8px;margin:16px 0}.gw-feedback button{flex:1;min-height:48px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:12px}.gw-feedback button[aria-pressed=true]{background:var(--blue);color:#fff}.gw-load{display:flex;align-items:center;gap:10px}.gw-load input{width:90px;background:var(--card);color:var(--text);border:1px solid var(--line);padding:8px;border-radius:9px}.gw-source{font-size:10px;color:var(--muted);line-height:1.5;margin:12px 0}.gw-source a{color:inherit}.gw-stage .eyebrow{color:var(--blue)}
@keyframes vaiGlow{50%{box-shadow:0 0 0 5px rgba(92,102,240,.14);opacity:.65}}
@media(max-width:420px){.vai-voice-actions{flex-wrap:wrap}.vai-voice-actions button{padding:8px}.gw-visual img{height:145px}.workout-dialog #workoutForm{padding:16px}.coach-screen .coach-body{padding:18px 14px}.coach-head strong{font-size:14px}.coach-screen .coach-head{gap:7px}.vai-message,.user-message{max-width:94%}}
@media(prefers-reduced-motion:reduce){#vaiPulse,.thinking span{animation:none!important}.coach-screen{transition:none}}
