/* Phone Practice: only the central song lanes and open sheets scroll. */
.practice-shell .practice-workspace.song-workspace{display:flex;flex-direction:column;overflow:hidden;--transport-height:124px;max-width:760px}
.practice-shell .song-workspace [data-practice-debug-title]{display:flex;align-items:center;min-height:44px;min-width:0}
.practice-shell .song-workspace [data-learn-song]{font-size:11px;line-height:1.35;padding:6px 9px;max-width:180px;border-radius:12px;min-height:44px}
.practice-shell .song-workspace [data-learn-song].is-running{max-width:176px;width:42vw;font-size:10px;color:var(--accent)}
.practice-shell .song-workspace [data-map-overflow]{font-size:15px;padding:0;width:44px}
.practice-shell .song-workspace .practice-wave-layer{display:grid;flex:none;padding:0 12px}
.practice-shell .song-workspace .wave-editor{margin:0;padding:5px 0 0;border-radius:12px}
.practice-shell .song-workspace .wave-stage{height:94px;margin:0 8px}
.practice-shell .song-workspace .wave-times{margin:4px 8px;min-height:15px;font-size:10px}
.practice-shell .song-workspace .wave-simple .wave-handle{height:24px;min-height:24px;width:24px;min-width:24px;bottom:auto;top:0;padding:0;border:1px solid var(--accent);border-radius:4px;background:var(--paper);font:700 11px/22px system-ui;z-index:2;align-items:center}
.practice-shell .song-workspace .wave-simple .wave-handle::before{display:none}
.practice-shell .song-workspace .wave-simple .wave-handle[data-edge=start]{border-bottom-right-radius:0}
.practice-shell .song-workspace .wave-simple .wave-handle[data-edge=end]{border-bottom-left-radius:0}
.practice-shell .song-workspace .practice-load{align-self:center;padding:9px;font-size:12px;margin:4px 8px;background:var(--paper);border-radius:9px}
.practice-shell .song-workspace .practice-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 12px var(--transport-height);scroll-padding-block:8px var(--transport-height)}
.practice-shell .song-workspace [data-song-map]{display:flex;flex-direction:column;gap:9px;min-width:0}
.practice-shell .song-workspace .practice-part-chips{display:flex;gap:7px;overflow-x:auto;flex:none;padding:2px 0 5px;scrollbar-width:thin}
.practice-shell .song-workspace .practice-part-chip{display:flex;flex:none;align-items:stretch;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--sunk)}
.practice-shell .song-workspace .practice-part-chip button{border:0;border-radius:0;min-height:44px;font-size:12px;line-height:1.2;padding:7px 10px;white-space:nowrap;background:transparent}
.practice-shell .song-workspace [data-part-speaker]{display:inline-block;margin-right:6px;font-size:12px}
.practice-shell .song-workspace .practice-part-chip [data-part-solo]{min-width:44px;width:44px;border-left:1px solid var(--line);padding:0}
.practice-shell .song-workspace .practice-part-chip [aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
.practice-shell .song-workspace .practice-part-chip.is-silent{opacity:.5}
.practice-shell .song-workspace .practice-part-status{margin:0;min-height:34px;font-size:12px;line-height:1.4;color:var(--text);display:flex;align-items:center}
.practice-shell .song-workspace .practice-part-status.flash{animation:part-flash .8s ease-out}
@keyframes part-flash{from{background:var(--accent);color:var(--on-accent)}to{background:transparent;color:var(--text)}}
@media(prefers-reduced-motion:reduce){.practice-shell .song-workspace .practice-part-status.flash{animation:none}}
.practice-shell .song-workspace [data-analysis-status]{font-size:12px;margin:0;color:var(--muted)}
.practice-shell .song-workspace [data-analysis-status]:empty{display:none}
.practice-shell .song-workspace .phrase-empty{font-size:12px;line-height:1.4;margin:6px 0;color:var(--muted)}
.practice-shell .song-workspace .learn-transport{position:static;flex:none;display:flex;flex-direction:column;height:auto;margin:0;padding:8px 12px;background:var(--paper);border-top:1px solid var(--line);box-shadow:none;gap:6px}
.practice-shell .song-workspace .practice-status{font-size:11px;line-height:1.3;margin:0;padding:0;min-height:0;max-height:32px;overflow:auto}
.practice-shell .song-workspace .practice-status:empty{display:none}
.practice-shell .song-workspace [data-clean]{min-height:44px;width:100%;padding:7px;font-size:12px}
.practice-shell dialog.song-sheet{box-sizing:border-box;inset:auto 0 0;max-height:90dvh;width:min(540px,calc(100vw - 16px));max-width:calc(100vw - 16px);margin:0 auto;padding:0;border:1px solid var(--line);border-radius:18px 18px 0 0;background:var(--paper);color:var(--text);overflow:hidden}
.practice-shell dialog.song-sheet[open]{display:flex;flex-direction:column}
.practice-shell dialog.song-sheet header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);flex:none}
.practice-shell dialog.song-sheet h2{font-size:19px;line-height:1.2;margin:0}
.practice-shell dialog.song-sheet button{min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:10px;padding:8px 11px;background:var(--sunk);color:var(--text);font-size:13px;line-height:1.3}
.practice-shell dialog.song-sheet .song-sheet-body,.practice-shell dialog.song-sheet .practice-scroll{position:static;display:block;overflow:auto;min-height:0;flex:1;padding:14px;max-height:none}
.practice-shell dialog.song-sheet footer{flex:none;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.practice-shell dialog.song-sheet footer button{width:100%;background:var(--accent);color:var(--on-accent);font-weight:700}
.practice-shell dialog.song-sheet p{font-size:13px;line-height:1.5;margin:0 0 12px}
.practice-shell dialog.song-sheet label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin:0 0 12px}
.practice-shell dialog.song-sheet input,.practice-shell dialog.song-sheet select{box-sizing:border-box;width:100%;min-height:44px;padding:8px;font-size:14px;position:static}
.practice-shell dialog.song-sheet .practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.practice-shell dialog.song-sheet .plan-time-chips,.practice-shell dialog.song-sheet .speed-presets{display:flex;gap:5px;margin:8px 0 16px}
.practice-shell dialog.song-sheet .plan-time-chips button,.practice-shell dialog.song-sheet .speed-presets button{flex:1;min-width:0;padding:6px 3px;font-size:12px}
.practice-shell dialog.song-sheet [aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
.practice-shell dialog.song-sheet .song-boundaries{display:grid;grid-template-columns:20px repeat(2,minmax(0,1fr));gap:7px;align-items:center;margin-bottom:12px}
.practice-shell dialog.song-sheet .practice-menu-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px;overflow:auto}
.practice-shell dialog.song-sheet .practice-log-actions{display:flex;gap:6px;padding:12px 14px;border-top:1px solid var(--line)}
.practice-shell dialog.song-sheet .practice-log-actions button{flex:1;min-width:0;font-size:11px;padding:7px 4px}
.practice-shell dialog.song-sheet [data-pane][hidden]{display:none}
.practice-shell .song-workspace button:not(.wave-handle),.practice-shell .song-workspace select,.practice-shell .song-workspace input:not(.wave-seek){min-height:48px}
/* Keep choices in the phone's vertical reading flow. */
.practice-shell .song-workspace .practice-part-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px}
.practice-shell .song-workspace .practice-part-chip{min-width:0;width:auto}
.practice-shell .song-workspace .practice-part-chip [data-part]{flex:1;min-width:0;white-space:normal;text-align:left;padding:7px 6px;font-size:11px}
.practice-shell .song-workspace .practice-part-chip [data-part-solo]{width:44px;min-width:44px;flex:none}

/* Keep the exit visible while the session chip grows. */

.practice-shell .practice-part-icon{width:48px;height:48px;border-radius:12px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-size:24px;flex:none}
.practice-shell .practice-part-option{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 10px;margin-bottom:8px;border-radius:12px;border:1px solid var(--line);background:var(--sunk);color:var(--text);text-align:left}.practice-shell .practice-part-option.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.practice-shell .practice-part-option .practice-part-icon{width:40px;height:40px;font-size:20px}.practice-shell .practice-part-option span:nth-child(2){display:flex;flex:1;flex-direction:column}.practice-shell .practice-part-option small{color:var(--muted)}.practice-shell .part-tick{margin-left:auto;color:var(--accent)}
