/* Auto tab drawer: alphaTab render inside the practice tokens. */
.practice-shell .tab-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.practice-shell .tab-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px}
.practice-shell .tab-title b{font-weight:700}
.practice-shell .tab-badge{font-size:10px;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:999px;border:1px solid var(--red-line,#3a3f47);color:var(--red-muted,#bfc6cf)}
.practice-shell .tab-confidence{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--red-sunk,#1b1f26);color:var(--red-text,#fff);border:1px solid var(--red-line,#3a3f47)}
.practice-shell .tab-confidence[data-level="high"]{border-color:#8fd694;color:#8fd694}
.practice-shell .tab-confidence[data-level="medium"]{border-color:#f0c674;color:#f0c674}
.practice-shell .tab-confidence[data-level="low"]{border-color:#ff8a80;color:#ff8a80}
.practice-shell .tab-scope{display:flex;border:1px solid var(--red-line,#3a3f47);border-radius:10px;overflow:hidden}
.practice-shell .tab-scope button{min-height:40px;padding:4px 12px;border:0;background:var(--red-sunk,#1b1f26);color:var(--red-text,#fff);font-size:13px}
.practice-shell .tab-scope button[aria-pressed="true"]{background:var(--red-accent,#e8bd7a);color:#15181e;font-weight:700}
.practice-shell .tab-status{margin:4px 0 8px;font-size:13px;color:var(--red-muted,#bfc6cf);line-height:1.35}
.practice-shell .tab-stage{background:#f7f3ea;color:#1c1a17;border-radius:12px;padding:6px 2px;overflow:auto;max-height:52vh;-webkit-overflow-scrolling:touch}
.practice-shell .tab-render{min-height:80px}
.practice-shell .tab-render .at-cursor-bar{background:rgba(232,189,122,.18)}
.practice-shell .tab-render .at-cursor-beat{background:#c46d2b;width:3px}
.practice-shell .tab-render .at-highlight *{fill:#c46d2b;stroke:#c46d2b}
.practice-shell .tab-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.practice-shell .tab-actions button,.practice-shell .tab-actions a{min-height:44px;padding:6px 12px;border:1px solid var(--red-line,#3a3f47);border-radius:10px;background:var(--red-sunk,#1b1f26);color:var(--red-text,#fff);font-size:13px;text-decoration:none;display:inline-flex;align-items:center}
.practice-shell .tab-actions [data-tab-make]{background:var(--red-accent,#e8bd7a);color:#15181e;border-color:var(--red-accent,#e8bd7a);font-weight:700}
.practice-shell .tab-alt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:8px}
.practice-shell .tab-alt-list button{min-height:52px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:6px 10px;border:1px solid var(--red-line,#3a3f47);border-radius:10px;background:var(--red-sunk,#1b1f26);color:var(--red-text,#fff)}
.practice-shell .tab-alt-list small{color:var(--red-muted,#bfc6cf)}
.practice-shell dialog.tab-note-sheet footer button.is-danger{background:#3a1f1f;color:#ff8a80;border:1px solid #6b2f2f}
/* Attached tab file: part pill, notation toggle, meta row, track picker, mapping sheet. */
.practice-shell .tab-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.practice-shell .tab-part-pill{min-height:36px;padding:4px 12px;border-radius:999px;border:1px solid var(--red-accent,#e8bd7a);background:var(--red-accent,#e8bd7a);color:#15181e;font-weight:700;font-size:13px}
.practice-shell .tab-meta{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 8px;font-size:13px;color:var(--red-muted,#bfc6cf)}
.practice-shell .tab-meta span:empty{display:none}
.practice-shell .tab-meta-gen{color:#f0a35e}
.practice-shell label.tab-track-pick,.practice-shell dialog.song-sheet label.tab-track-pick{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0 0 8px;font-size:13px;color:var(--red-muted,#bfc6cf)}
.practice-shell label.tab-track-pick>span,.practice-shell dialog.song-sheet label.tab-track-pick>span{flex:none;white-space:nowrap}
.practice-shell .tab-track-pick select{flex:1;min-height:36px;padding:4px 10px}
.practice-shell .tab-stage.is-horizontal{overflow-x:auto;overflow-y:hidden;max-height:none;padding:6px 0}
.practice-shell .tab-stage.is-horizontal .tab-render{min-height:140px}
dialog.tab-map-sheet .tab-map-file{margin:0 0 10px;color:var(--red-muted,#bfc6cf);font-size:13px}
dialog.tab-map-sheet .tab-map-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
dialog.tab-map-sheet .tab-map-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--red-line,#3a3f47);border-radius:12px;background:var(--red-sunk,#1b1f26)}
dialog.tab-map-sheet .tab-map-track b{display:block}
dialog.tab-map-sheet .tab-map-track small{color:var(--red-muted,#bfc6cf)}
dialog.tab-map-sheet .tab-map-pick{display:flex;align-items:center;gap:6px;font-size:13px}
dialog.tab-map-sheet .tab-map-pick select{min-height:36px;padding:4px 8px;max-width:150px}
@media (min-width:1024px){.practice-shell .tab-stage{max-height:70vh}}
/* Fix timing: link in the meta row, sheet with tap / nudge / section anchors. */
.practice-shell .tab-meta-fix{margin-left:auto;min-height:32px;padding:2px 10px;border:1px solid var(--red-line,#3a3f47);border-radius:999px;background:none;color:var(--red-text,#fff);font-size:12px}
dialog.tab-timing-sheet .tab-timing-summary{margin:0 0 12px;color:var(--red-muted,#bfc6cf);font-size:13px}
dialog.tab-timing-sheet .tab-timing-group{display:grid;gap:8px;padding:12px;margin:0 0 10px;border:1px solid var(--red-line,#3a3f47);border-radius:12px;background:var(--red-sunk,#1b1f26)}
dialog.tab-timing-sheet .tab-timing-group p{margin:0;font-size:13px;color:var(--red-muted,#bfc6cf)}
dialog.tab-timing-sheet .tab-timing-group button{min-height:44px;padding:6px 12px;border:1px solid var(--red-line,#3a3f47);border-radius:10px;background:var(--red-panel,#242932);color:var(--red-text,#fff)}
dialog.tab-timing-sheet .tab-timing-group button.is-primary{background:var(--red-accent,#e8bd7a);color:#15181e;border-color:var(--red-accent,#e8bd7a);font-weight:700}
dialog.tab-timing-sheet .tab-timing-nudges,dialog.tab-timing-sheet .tab-timing-sections{display:flex;flex-wrap:wrap;gap:8px}
dialog.tab-timing-sheet .tab-timing-armed{min-height:1.4em;margin:6px 0;font-size:14px;color:var(--red-accent,#e8bd7a)}
dialog.tab-timing-sheet .tab-timing-now{width:100%;min-height:72px;font-size:22px;font-weight:700;border-radius:16px;border:0;background:var(--red-accent,#e8bd7a);color:#15181e}
/* Songsterr link-out and the More sheet. */
.practice-shell .tab-actions a[data-tab-songsterr]{text-decoration:none;display:inline-flex;align-items:center}
.practice-shell .tab-actions [data-tab-more]{min-width:44px;padding:6px 10px;font-size:18px;line-height:1}
dialog.tab-more-sheet .learn-button{display:block;text-align:center;margin-top:8px}
