/* Claude Design installation: one reading column, fixed transport, scrollable song. */
.practice-shell .practice-workspace.song-workspace{--red-bg:#15181e;--red-card:#232830;--red-sunk:#1b1f26;--red-line:#3a3f47;--red-accent:#e8bd7a;--red-text:#fff;--red-muted:#bfc6cf;--red-olive:#c7d2bc;background:var(--red-bg);color:var(--red-text);max-width:760px}
.practice-shell .song-workspace .practice-body{padding:12px 12px calc(var(--transport-height) + 24px);background:var(--red-bg);overflow-x:hidden;scrollbar-width:none}
.practice-shell .song-workspace .practice-body::-webkit-scrollbar,.practice-shell dialog.song-sheet .song-sheet-body::-webkit-scrollbar{display:none}
.practice-shell .song-workspace [data-song-map]{display:flex;flex-direction:column;gap:12px}
.practice-shell .song-workspace .learn-transport{background:var(--red-sunk);border-top:1px solid var(--red-line);padding:9px 12px calc(10px + env(safe-area-inset-bottom));gap:7px}
.practice-shell .song-workspace [data-practice-play]{background:var(--red-accent);color:#15181e;font-weight:800;border-radius:12px}
.practice-shell dialog.song-sheet{background:var(--red-card);color:var(--red-text);max-height:calc(100dvh - var(--transport-height,100px) - 12px);bottom:var(--transport-height,100px)}
.practice-shell dialog.song-sheet::backdrop{background:rgba(10,12,15,.6)}
.practice-shell dialog.song-sheet .song-sheet-body{scrollbar-width:none}
.practice-shell dialog.song-sheet footer{background:var(--red-card);z-index:1}
.practice-shell dialog.song-sheet footer button{min-height:52px;background:var(--red-accent);color:#15181e}
.practice-shell dialog.song-sheet .redesign-part-list{display:flex;flex-direction:column;gap:7px}
.practice-shell dialog.song-sheet .practice-part-option{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;padding:7px 10px;text-align:left;background:#171b21!important;color:#fff!important;border:1px solid #3a3f47!important;border-radius:12px}
.practice-shell dialog.song-sheet .practice-part-option.on{background:#3d3326!important;border-color:var(--red-accent)!important}
.practice-shell dialog.song-sheet .practice-part-option>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.practice-shell dialog.song-sheet .practice-part-option strong{font-size:15px;color:#fff}.practice-shell dialog.song-sheet .practice-part-option small{font-size:11px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .practice-part-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:#2b313c;font-size:20px}
.practice-shell dialog.song-sheet .practice-part-option.on .practice-part-icon{background:var(--red-accent);color:#15181e}.practice-shell dialog.song-sheet .part-tick{color:var(--red-accent)}
.practice-shell dialog.song-sheet .redesign-part-row{display:flex;gap:6px;border:1px solid var(--red-line);border-radius:12px;padding:3px}
.practice-shell dialog.song-sheet .redesign-part-row[data-selected=true]{border-color:var(--red-accent);background:rgba(232,189,122,.12)}
.practice-shell dialog.song-sheet .redesign-part-row [data-part]{flex:1;min-height:52px;text-align:left;border:0;background:transparent;display:flex;flex-direction:column;align-items:start;justify-content:center;gap:3px}
.practice-shell dialog.song-sheet .redesign-part-row strong{font-size:14px}.practice-shell dialog.song-sheet .redesign-part-row small{font-size:11px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-part-row [data-part-solo]{width:88px;min-width:88px;padding:6px;font-size:11px;font-weight:700}
.practice-shell dialog.song-sheet .redesign-part-row [data-part-solo][aria-pressed=true]{background:#46d8df;color:#15181e}
.practice-shell .song-workspace button:not(.wave-handle),.practice-shell .song-workspace select,.practice-shell .song-workspace input:not(.wave-seek){min-height:48px}
@media(prefers-reduced-motion:reduce){.practice-shell .song-workspace *{scroll-behavior:auto!important}}
/* The song layer keeps a legible dark palette even when the main app is light. */
.practice-shell .song-workspace .practice-load{background:var(--red-card);color:var(--red-text);border:1px solid var(--red-line)}
.practice-shell dialog.song-sheet .song-sheet-body,.practice-shell dialog.song-sheet p,.practice-shell dialog.song-sheet strong{color:var(--red-text)}
.practice-shell{--red-bg:#15181e;--red-card:#232830;--red-sunk:#1b1f26;--red-line:#3a3f47;--red-accent:#e8bd7a;--red-text:#fff;--red-muted:#bfc6cf;--red-olive:#c7d2bc}
.practice-shell dialog.song-sheet{background:#232830;color:#fff;border-color:#3a3f47;position:fixed;inset:auto 0 0;max-height:min(76dvh,680px);width:100vw;box-sizing:border-box;z-index:10020;border-radius:16px 16px 0 0}
.practice-shell dialog.song-sheet header,.practice-shell dialog.song-sheet footer{background:#232830;color:#fff}
.practice-shell dialog.song-sheet .song-sheet-body{background:#232830;color:#fff}
.practice-shell dialog.song-sheet .redesign-part-row{background:#1b1f26;color:#fff}
.practice-shell dialog.song-sheet .redesign-part-row[data-selected=true]{background:#3d3326}
.practice-shell dialog.song-sheet .redesign-part-row [data-part],.practice-shell dialog.song-sheet .redesign-part-row [data-part-solo]{color:#fff!important;background:transparent!important}
.practice-shell .song-workspace [data-clean]{background:rgba(86,114,89,.18);border:1px solid #567259;border-radius:12px;color:#fff;font-size:13px;font-weight:700}
.practice-shell .song-workspace [data-clean]:disabled{opacity:.55}
.practice-shell .song-workspace .wave-handle{background:var(--red-sunk);color:#fff;border-color:var(--red-accent)}
/* Legacy drawer content uses the host app's light paper token. Keep it readable in the dark sheet. */
.practice-shell dialog.practice-tool-drawer{--paper:#232830;--text:#fff;--sunk:#1b1f26;--line:#3a3f47;--accent:#e8bd7a;--on-accent:#15181e}
.practice-shell dialog.practice-tool-drawer .practice-scroll>[data-pane]{background:#232830;color:#fff;border-color:#3a3f47}
.practice-shell dialog.practice-tool-drawer p,.practice-shell dialog.practice-tool-drawer label{color:#bfc6cf}
.practice-shell dialog.practice-tool-drawer h3{color:#fff}
.practice-shell dialog.practice-tool-drawer input:not([type=checkbox]),.practice-shell dialog.practice-tool-drawer select,.practice-shell dialog.practice-tool-drawer textarea{background:#1b1f26;color:#fff;border-color:#59616d}
.practice-shell dialog.song-sheet .redesign-part-row [data-part]{flex-direction:row;align-items:center;gap:9px;padding:6px 8px}
.practice-shell dialog.song-sheet .redesign-part-row .redesign-part-glyph{width:18px;flex:none;text-align:center;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-part-row .redesign-part-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.practice-shell dialog.song-sheet .redesign-part-row em{font:700 10px/1 system-ui;letter-spacing:.06em;color:var(--red-accent);font-style:normal}
.practice-shell dialog.song-sheet .redesign-plan-row{display:flex;align-items:center;gap:9px;background:var(--red-sunk);border-radius:12px;padding:8px 10px;min-height:52px;box-sizing:border-box}
.practice-shell dialog.song-sheet .redesign-plan-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-plan-row[data-status=learning] .redesign-plan-dot{background:var(--red-accent)}
.practice-shell dialog.song-sheet .redesign-plan-row[data-status=nailed] .redesign-plan-dot{background:var(--red-olive)}
.practice-shell dialog.song-sheet .redesign-plan-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.practice-shell dialog.song-sheet .redesign-plan-copy small{font-size:12px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-plan-minutes{font:12px ui-monospace,monospace;white-space:nowrap}
.practice-shell dialog.song-sheet .redesign-plan-row button[data-plan-drop]{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:18px;background:transparent;color:var(--red-muted);border-color:var(--red-line)}
.practice-shell dialog.song-sheet .redesign-plan-explainer{font-size:12px;color:var(--red-muted)}
.practice-shell dialog.practice-menu .practice-menu-items button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:64px;text-align:left;background:var(--red-sunk);border-color:var(--red-line)}
.practice-shell dialog.practice-menu .practice-menu-items button strong{font-size:14px;color:#fff}
.practice-shell dialog.practice-menu .practice-menu-items button small{font-size:11px;color:var(--red-muted)}
.practice-shell dialog.practice-menu .practice-advanced{margin:0 14px 14px}
.practice-shell dialog.practice-menu .practice-advanced summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;border:1px solid var(--red-line);border-radius:12px;color:var(--red-muted);font-size:13px;cursor:pointer;list-style:none}
.practice-shell dialog.practice-menu .practice-advanced summary::after{content:'▾'}
.practice-shell dialog.practice-menu .practice-advanced[open] summary::after{content:'▴'}
.practice-shell dialog.practice-menu .practice-advanced-items{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px}
.practice-shell dialog.practice-menu .practice-advanced-items button{font-size:12px;min-height:44px}
.practice-shell dialog.practice-tool-drawer header{gap:8px}
.practice-shell dialog.practice-tool-drawer header h2{flex:1}
.practice-shell dialog.practice-tool-drawer [data-drawer-back]{font-size:12px;white-space:nowrap;min-width:72px}
.practice-shell dialog.practice-tool-drawer .note-review,.practice-shell dialog.practice-tool-drawer .chord-chart-bar{background:var(--red-sunk);color:#fff;border-color:var(--red-line)}
.practice-shell dialog.practice-tool-drawer .chord-bar-number,.practice-shell dialog.practice-tool-drawer .chord-cell{background:var(--red-sunk)!important;color:#fff}
.practice-shell dialog.practice-tool-drawer .note-review p,.practice-shell dialog.practice-tool-drawer .solo-challenges p{color:var(--red-muted)}
@media(max-width:760px){.practice-shell .practice-workspace.song-workspace{inset:0;left:0;right:0;top:0;bottom:0;max-width:none;margin:0;border-radius:0}}
.practice-shell dialog.song-sheet{max-height:min(76dvh,680px)}
.practice-shell dialog.song-sheet [data-song-sheet-close],.practice-shell dialog.practice-menu [data-menu-close],.practice-shell dialog.practice-tool-drawer [data-drawer-close]{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;font-size:18px}
.practice-shell .song-workspace [data-speed-label]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.practice-shell .song-workspace [data-speed-label] strong{font-size:14px;line-height:1}
.practice-shell .song-workspace [data-speed-label] small{font-size:10px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-speed-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.practice-shell dialog.song-sheet .redesign-speed-heading output{font:500 40px/1 Georgia,serif;color:var(--red-accent)}
.practice-shell dialog.song-sheet .redesign-speed-heading span{font-size:12px;color:var(--red-muted);text-align:right}
.practice-shell dialog.song-sheet [data-practice-speed]{accent-color:var(--red-accent)}
.practice-shell dialog.song-sheet .redesign-trainer-heading{display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid var(--red-line)}
.practice-shell dialog.song-sheet .redesign-trainer-heading>span{flex:1;display:flex;flex-direction:column;gap:2px}
.practice-shell dialog.song-sheet .redesign-trainer-heading strong{font-size:14px}
.practice-shell dialog.song-sheet .redesign-trainer-heading small{font-size:11px;color:var(--red-muted)}
.practice-shell dialog.song-sheet [data-trainer-toggle]{width:52px;min-width:52px;height:32px;min-height:32px;border:0;border-radius:999px;background:#59616d!important;padding:3px;display:flex;align-items:center}
.practice-shell dialog.song-sheet [data-trainer-toggle][aria-checked=true]{background:var(--red-accent)!important;justify-content:flex-end}
.practice-shell dialog.song-sheet [data-trainer-toggle] i{display:block;width:26px;height:26px;border-radius:50%;background:#fff}
.practice-shell dialog.song-sheet .redesign-summary-head{font:500 24px/1.2 Georgia,serif;margin:0;color:#fff}
.practice-shell dialog.song-sheet .redesign-summary-rows{display:flex;flex-direction:column;gap:6px}
.practice-shell dialog.song-sheet .redesign-summary-row{display:flex;align-items:center;gap:8px;background:var(--red-sunk);border-radius:12px;padding:10px 12px;min-height:52px}
.practice-shell dialog.song-sheet .redesign-summary-row[data-result=skipped],.practice-shell dialog.song-sheet .redesign-summary-row[data-result=not-reached]{opacity:.55}
.practice-shell dialog.song-sheet .redesign-summary-row span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.practice-shell dialog.song-sheet .redesign-summary-row small{font-size:11px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-summary-row b{font-size:11px;color:var(--red-accent);text-align:right}
.practice-shell dialog.song-sheet [data-summary-plan]{min-height:44px;width:100%}
.practice-shell dialog.song-sheet .redesign-edit-boundaries{display:grid;gap:8px}
.practice-shell dialog.song-sheet .redesign-edit-boundaries>div{display:grid;grid-template-columns:minmax(72px,1fr) repeat(2,minmax(84px,1fr));align-items:center;gap:7px}
.practice-shell dialog.song-sheet .redesign-edit-boundaries b{font-size:12px;color:var(--red-muted)}
.practice-shell dialog.song-sheet .redesign-edit-boundaries button{min-height:44px}
.practice-shell dialog.song-sheet [data-block-form]>button{width:100%;min-height:44px;margin-top:6px}
.practice-shell dialog.song-sheet [data-block-form]>button[type=submit]{background:rgba(232,189,122,.15);border-color:#997221;color:var(--red-accent)}
.practice-shell dialog.song-sheet [data-block-delete]{color:#ffb4a7!important;border-color:#a86445!important}
.practice-shell dialog.song-sheet[data-sheet=summary] footer{display:grid;gap:6px}
.practice-shell dialog.song-sheet[data-sheet=summary] footer [data-summary-plan]{background:#1b1f26;color:#e8bd7a;min-height:44px}
.practice-shell dialog.song-sheet [data-block-form]{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.practice-shell dialog.song-sheet [data-block-form] label{display:flex;flex-direction:column;gap:4px;background:#1b1f26;border:1px solid #3a3f47;border-radius:12px;padding:8px 10px;font-size:12px;color:#bfc6cf}
.practice-shell dialog.song-sheet [data-block-form] label input,.practice-shell dialog.song-sheet [data-block-form] label select{min-width:0;width:100%;background:#1b1f26;color:#fff;border:0;padding:4px 0;font-size:14px}
.practice-shell dialog.song-sheet [data-block-form] .redesign-edit-boundaries,.practice-shell dialog.song-sheet [data-block-form] [data-loop-range]{grid-column:1/-1}
.practice-shell dialog.song-sheet [data-block-form]>button{margin:0}
.practice-shell dialog.song-sheet [data-block-form]>button[type=submit]{color:#f5d9a6!important}
/* Practice v4 phone controls: final cascade authority. */
.practice-shell .song-workspace button:not(.wave-handle),.practice-shell .song-workspace select,.practice-shell .song-workspace input:not(.wave-seek){min-height:48px!important}
/* Practice v5 dock target: final cascade authority. */
.practice-shell .practice-workspace.song-workspace{display:flex;overflow:hidden}
.practice-shell .song-workspace .practice-head-part{display:flex;align-items:center;gap:5px;width:100%;min-height:48px!important;padding:5px 2px 0;border:0;background:transparent;color:var(--red-muted);text-align:left;font-size:12px}
.practice-shell .song-workspace .practice-head-part strong{font:700 14px/1.2 system-ui;color:var(--red-text);white-space:nowrap;overflow:visible}.practice-shell .song-workspace .practice-head-part b{color:var(--red-accent)}.practice-shell .song-workspace .practice-head-part i{font-style:normal;white-space:normal}
.practice-shell .song-workspace .practice-body{flex:1;min-height:0;overflow-y:auto;padding:12px 12px calc(var(--transport-height) + 18px)}
.practice-shell .song-workspace .learn-transport{flex:none;position:absolute;inset:auto 0 0;z-index:10;display:flex;flex-direction:column;gap:7px;background:var(--red-sunk);padding:8px 10px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px #0007}
.practice-shell .song-workspace .practice-status{position:absolute;left:10px;right:10px;bottom:100%;background:var(--red-card);padding:7px 10px;border-radius:8px 8px 0 0}
.practice-shell .song-workspace .practice-verdict{display:grid;grid-template-columns:1fr 1fr;gap:7px}.practice-shell .song-workspace .practice-verdict button{min-height:48px;border:1px solid #59616d;background:var(--red-card);color:var(--red-text);border-radius:10px;font-weight:700}.practice-shell .song-workspace .practice-verdict [data-clean]{border-color:var(--red-accent);background:rgba(232,189,122,.15);color:#fff}
/* Practice v6: the part card is the single headline control. */
.practice-shell .practice-part-option{background:var(--red-sunk);color:var(--red-text);border-color:var(--red-line)}.practice-shell .practice-part-option small{color:var(--red-muted)}.practice-shell .practice-part-option.on{border-color:var(--red-accent);background:rgba(232,189,122,.12)}
.song-coach{display:grid;gap:14px}.song-coach-quick{display:grid;gap:8px}.song-coach-quick button,.song-coach [data-coach-ask],.song-coach [data-coach-retry]{min-height:48px;text-align:left}.song-coach textarea{width:100%;box-sizing:border-box;margin-top:6px}.song-coach-answer{white-space:pre-wrap;line-height:1.5;padding:14px;border:1px solid var(--line,#3b3b3b);border-radius:12px;background:rgba(255,255,255,.04)}
