.soundboard.sl-enhanced > .voice-row,.soundboard.sl-enhanced > .hud-side-title{display:none!important}
#soundLibrary{width:100%;min-width:0;color:#eef6fa;font-family:Arial,sans-serif;text-align:left}
#soundLibrary *{box-sizing:border-box}
#soundLibrary [hidden]{display:none!important}
#soundLibrary .sl-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#soundLibrary .sl-eyebrow{font:11px monospace;letter-spacing:1.4px;text-transform:uppercase;color:#a9bdcb}
#soundLibrary h2{font-size:20px;line-height:1.3;font-weight:500;margin:6px 0;overflow-wrap:anywhere}
#soundLibrary button{font-family:inherit;cursor:pointer;touch-action:manipulation}
#soundLibrary .sl-toggle,#soundLibrary .sl-done{min-height:44px;padding:10px 12px;border:1px solid #466270;border-radius:9px;background:#162c39;color:#64dbea;font-size:13px;white-space:nowrap}
#soundLibrary .sl-group{border-top:1px solid #344957;margin-top:18px;padding-top:16px}
#soundLibrary .sl-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#soundLibrary h3{margin:0;font-size:15px;line-height:1.4;font-weight:500}
#soundLibrary .sl-group-heading>span{font-size:12px;color:#a9bdcb;white-space:nowrap}
#soundLibrary .sl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#soundLibrary .sl-tile{display:flex;min-width:0;border:1px solid #3a4d5b;border-radius:10px;overflow:hidden;background:#152530}
#soundLibrary .sl-pick{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:62px;padding:10px;border:0;background:transparent;color:#e3edf3;text-align:left;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#soundLibrary .sl-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:15px;height:15px;border-radius:50%;border:1px solid #8ba1ae;font-size:11px}
#soundLibrary .sl-selected{background:#183742;border-color:#64dbea}
#soundLibrary .sl-selected .sl-pick{color:#64dbea}
#soundLibrary .sl-selected .sl-mark{background:#64dbea;border-color:#64dbea;color:#071620}
#soundLibrary .sl-star{flex:0 0 44px;min-height:44px;padding:0;border:0;border-left:1px solid #3a4d5b;border-radius:0;background:transparent;color:#b1c5d1;font-size:24px}
#soundLibrary .sl-star[aria-pressed=true]{color:#ffcf77;background:#302c25}
#soundLibrary .sl-empty{font-size:13px;line-height:1.5;color:#b0c3cf;background:#152530;padding:14px;margin:0;border-radius:9px}
#soundLibrary .sl-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:20px;color:#a9bdcb;font-size:12px}
#soundLibrary .sl-status{font-size:12px;line-height:1.5;color:#b0c3cf}
#soundLibrary .sl-status:empty{display:none}
/* Expanded library shares the HUD, never the audio or GPS update loop. */
body.sound-library-open .speed-hud{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:'brand brand' 'gauge rpm' 'sound sound'!important;max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain;align-items:center;gap:20px!important}
body.sound-library-open .speed-hud-secondary{display:contents!important}
body.sound-library-open .drive-center-stack{grid-area:gauge;justify-content:center}
body.sound-library-open .racing-signature{grid-area:brand}
body.sound-library-open .rpm-panel{grid-area:rpm}
body.sound-library-open .speed-hud .soundboard{grid-area:sound;width:100%!important;max-width:none!important;min-width:0!important;align-items:stretch}
@media(max-width:1000px){#soundLibrary .sl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px) and (orientation:portrait){body.sound-library-open .speed-hud{max-height:none;overflow:visible}#soundLibrary .sl-pick{font-size:13px;padding:10px 8px}#soundLibrary .sl-heading>div{flex:1 1 145px}#soundLibrary .sl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#soundLibrary .sl-grid{grid-template-columns:minmax(0,1fr)}#soundLibrary .sl-pick{font-size:14px;min-height:56px;overflow-wrap:normal}}
