/* High-visibility cue grid */
#cueModal .transport{background:#111b19}
#cueModal .waveform-stage,#cueModal .waveform-stage .waveform{height:106px}
#cueModal .waveform-stage{border:1px solid #435852;border-radius:4px;background:#101917;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
#cueModal .waveform{position:relative;z-index:1;gap:3px;padding:12px 0 13px;opacity:.42}
#cueModal .waveform i{background:#769087}
#cueModal .waveform i.active{background:#8ec3ad}

#cueModal .cue-beat-grid{z-index:4;inset:0;border-left:1px solid rgba(255,255,255,.15)}
#cueModal .cue-beat-grid::after{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(255,255,255,.1)}
#cueModal .cue-beat-grid>i{top:0;bottom:0;width:1px;background:rgba(235,244,241,.38)}
#cueModal .cue-beat-grid>i.bar{width:2px;background:#91c7b3;box-shadow:0 0 0 1px rgba(145,199,179,.08)}
#cueModal .cue-beat-grid>i.phrase{width:3px;background:#d8f04f;box-shadow:0 0 10px rgba(216,240,79,.22)}
#cueModal .cue-beat-grid>i span{top:6px;left:5px;color:#eff5f2;font-size:8px;font-weight:750;letter-spacing:.2px;text-shadow:0 1px 2px #0a1110}

#cueModal .cue-playhead{z-index:8!important;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.28),0 0 10px rgba(255,255,255,.38)}
#cueModal .cue-playhead .cue-playhead-handle{top:36px;width:22px;height:32px;border-radius:4px;background:#fff;color:#17201f;box-shadow:0 3px 10px rgba(0,0,0,.42)}
#cueModal .cue-playhead .cue-playhead-time{top:74px;min-width:42px;padding:4px 6px;background:#fff;color:#15201e;font-size:8px;font-weight:750;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.32)}
#cueModal .cue-marker{z-index:7}
#cueModal .cue-marker span{top:5px;min-width:22px;height:22px;border:2px solid rgba(255,255,255,.9);font-size:9px;font-weight:800;box-shadow:0 2px 7px rgba(0,0,0,.35)}

#cueModal .cue-grid-toolbar{height:40px;margin-top:3px;color:#c0cec9;font-size:8px}
#cueModal .cue-grid-context{display:flex;align-items:center;gap:16px;min-width:0}
#cueModal .cue-grid-context>strong{color:#eef4f1;font-size:8px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
#cueModal .cue-grid-legend{display:flex;align-items:center;gap:5px;color:#8fa29b;white-space:nowrap}
#cueModal .cue-grid-legend i{display:inline-block;width:2px;height:12px;margin-left:4px;background:rgba(235,244,241,.55)}
#cueModal .cue-grid-legend i.bar{background:#91c7b3}
#cueModal .cue-grid-legend i.phrase{width:3px;background:#d8f04f}
#cueModal .cue-grid-zoom{display:flex;align-items:center;gap:7px}
#cueModal .cue-grid-zoom small{color:#789089;font-size:7px;font-weight:750;letter-spacing:.8px}
#cueModal .cue-grid-toolbar button{width:26px;height:26px;border:1px solid #435751;border-radius:4px;background:#263733;color:#fff}
#cueModal .cue-grid-toolbar button:hover,#cueModal .cue-grid-toolbar button:focus-visible{border-color:#d8f04f;background:#314640;color:#d8f04f;outline:0}
#cueModal #gridZoomLabel{min-width:30px;color:#fff;font-size:10px;font-weight:750}

@media(max-width:780px){#cueModal .waveform-stage,#cueModal .waveform-stage .waveform{height:96px}#cueModal .cue-grid-legend{display:none}#cueModal .cue-grid-context{gap:8px}#cueModal .cue-grid-toolbar{height:38px}#cueModal .cue-playhead .cue-playhead-handle{top:31px}#cueModal .cue-playhead .cue-playhead-time{top:68px}}
@media(max-width:520px){#cueModal .cue-grid-zoom small{display:none}#cueModal .cue-grid-context>strong{max-width:135px;overflow:hidden;text-overflow:ellipsis}#cueModal .cue-grid-toolbar button{width:24px;height:24px}}

.library-section-tabs .tab-count{margin-left:6px;padding:1px 6px;border-radius:9px;background:var(--line);color:var(--ink);font-size:10px}
#prep .metrics{margin-bottom:24px}
