/* Play-along scoring: the Score switch, the result card in the dock and the
   set-up sheets. Colours sit on the practice tokens so dark and light both
   read; verdict colours are their own, chosen for 4.5:1 on the sunk panel. */
.practice-shell .song-workspace{--score-ok:#8fd694;--score-early:#f0c674;--score-late:#7fb8ff;--score-wrong:#ff8a80;--score-missed:#6d7480}
.practice-shell .score-card{border-top:1px solid var(--red-line);padding:8px 0 4px;display:flex;flex-direction:column;gap:6px}
.practice-shell .score-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--red-muted)}
.practice-shell .score-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.practice-shell .score-head button{flex:none;min-height:36px;padding:2px 10px;border:1px solid var(--red-line);border-radius:999px;background:var(--red-sunk);color:var(--red-text);font-weight:700;font-size:12px;display:flex;flex-direction:column;align-items:center;line-height:1.1}
.practice-shell .score-head button small{font-weight:400;font-size:9px;color:var(--red-muted)}
.practice-shell .score-hint{margin:0;font-size:13px;color:var(--red-muted)}
.practice-shell .score-result{display:flex;flex-direction:column;gap:6px}
.practice-shell .score-numbers{display:flex;gap:10px;align-items:stretch}
.practice-shell .score-numbers>div{display:flex;flex-direction:column;align-items:flex-start;min-width:56px}
.practice-shell .score-numbers strong{font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.practice-shell .score-numbers small{font-size:11px;color:var(--red-muted)}
.practice-shell .score-numbers .score-verdict{flex:1;min-width:0;border-left:1px solid var(--red-line);padding-left:10px}
.practice-shell .score-numbers .score-verdict strong{font-size:18px;color:var(--score-wrong)}
.practice-shell .score-result.is-pass .score-verdict strong{color:var(--score-ok)}
.practice-shell .score-numbers .score-verdict small{white-space:normal;line-height:1.25}
.practice-shell .score-notes{display:flex;gap:2px;flex-wrap:wrap}
.practice-shell .score-notes i,.practice-shell .score-legend i{display:inline-block;width:14px;height:14px;border-radius:3px;background:var(--score-ok)}
.practice-shell .score-legend i{width:10px;height:10px;margin:0 3px 0 8px;vertical-align:middle}
.practice-shell .score-legend i:first-child{margin-left:0}
.practice-shell .score-notes i.is-early,.practice-shell .score-legend i.is-early{background:var(--score-early)}
.practice-shell .score-notes i.is-late,.practice-shell .score-legend i.is-late{background:var(--score-late)}
.practice-shell .score-notes i.is-wrong,.practice-shell .score-legend i.is-wrong{background:var(--score-wrong)}
.practice-shell .score-notes i.is-missed,.practice-shell .score-legend i.is-missed{background:transparent;box-shadow:inset 0 0 0 2px var(--score-missed)}
.practice-shell .score-legend{font-size:10px;color:var(--red-muted)}
.practice-shell .score-suggest{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;padding:6px 0 2px}
.practice-shell .score-suggest button{min-height:40px;padding:4px 12px;border:1px solid var(--red-line);border-radius:10px;background:var(--red-sunk);color:var(--red-text)}
.practice-shell .score-suggest button[data-score-nail]{background:var(--red-accent);color:#15181e;border-color:var(--red-accent);font-weight:700}
/* When scoring is on the app decides clean or not, so the self-rating buttons stay away. */
.practice-shell .song-workspace.is-scoring [data-verdict-row]{display:none}
/* Sheets */
.practice-shell .practice-action-sheet[data-sheet^="calibrat"] p,.practice-shell .practice-action-sheet[data-sheet="headphones"] p,.practice-shell .practice-action-sheet[data-sheet="threshold"] p{font-size:15px;line-height:1.4;margin:0 0 10px}
.practice-shell .score-cal-progress{min-height:22px;font-weight:700;font-size:18px}
.practice-shell .score-warn{color:var(--score-early)}
.practice-shell .score-threshold-row{display:flex;align-items:center;gap:12px}
.practice-shell .score-threshold-row output{font-size:28px;font-weight:700;min-width:64px;font-variant-numeric:tabular-nums}
.practice-shell .score-threshold-row input{flex:1;accent-color:var(--red-accent);height:32px}
.practice-shell .practice-action-sheet footer button.is-primary{background:var(--red-accent);color:#15181e;border-color:var(--red-accent);font-weight:700}
@media(max-width:375px){.practice-shell .score-numbers strong{font-size:22px}}
/* Four dock switches: Loop, Call & response, Count-in, Score. */
.practice-shell .song-workspace .practice-dock-toggles{grid-template-columns:1fr 1.3fr 1fr 1fr}
@media(max-width:375px){.practice-shell .song-workspace .practice-dock-toggles{gap:4px}.practice-shell .song-workspace .practice-dock-toggles button{padding:5px 2px}}
.practice-shell dialog.song-sheet[data-sheet^="calibrat"] footer button:not(.is-primary),.practice-shell dialog.song-sheet[data-sheet="headphones"] footer button:not(.is-primary),.practice-shell dialog.song-sheet[data-sheet="mic-failed"] footer button:not(.is-primary){background:var(--red-sunk);color:var(--red-text);border:1px solid var(--red-line)}
