/* One bounded scroll surface beneath the fixed audio header. */
#app .interface #audioPanel{align-self:stretch!important;height:100%;max-height:100%;min-height:0;overflow:hidden!important}
#app .interface #audioPanel>.panel-head{position:relative;flex:0 0 auto}
#app .interface #audioPanel>.audio-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:12px;scroll-padding-block:12px}
#app #audioPanel .audio-settings{overflow:visible;min-height:auto;display:grid;gap:10px;padding:0}
.audio-scroll .audio-library{padding:0 0 16px;display:grid;gap:12px;font-size:14px}
.vale-player{display:grid;justify-items:center;gap:9px;text-align:center;padding:18px 12px;border:1px solid #ccb081;border-radius:16px;background:#f3e6c9;color:#51402b}
.player-eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;color:#81603b}
.vale-player #currentTrack{font-size:19px;line-height:1.3;min-height:25px}.vale-player #playerState{font-size:13px;color:#786448}
.player-controls{display:flex;align-items:center;gap:16px;margin-top:4px}.audio-library .player-controls button{width:48px;min-height:48px;padding:0;font-size:23px;background:#fff8e7;color:#5e482e;border-radius:50%;box-shadow:0 2px 0 #c6ae80}
.audio-library .player-controls #playTrack{width:58px;min-height:58px;background:#638536;color:#fff8e7;border-color:#4f712a}
.music-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.audio-library .music-modes button{padding:9px 4px;font-size:13px;min-height:44px;line-height:1.25;border-radius:10px;background:#f2e4c5;color:#5a4429}.audio-library .music-modes button[aria-pressed=true]{background:#e1ebcc;color:#385123;border-color:#65863f;box-shadow:inset 3px 0 #65863f}
.audio-library details{border:1px solid #d3bb92;border-radius:12px;padding:0 10px;background:#fffaf0}.audio-library details>summary{font-weight:700;padding:12px 0;min-height:20px;color:#5a452d}.audio-library .track-choice{flex-wrap:nowrap;gap:8px}.audio-library .track-choice label{display:flex!important;flex-wrap:nowrap;flex:1;min-width:0;gap:8px;font-size:14px;line-height:1.4}.audio-library .track-choice input{flex:0 0 20px;width:20px!important;height:20px;min-width:20px}.audio-library .track-choice button{flex:0 0 44px;width:44px;min-height:44px;padding:0}.music-credits p{font-size:12px;line-height:1.5}.music-credits a{color:#45662e}
#startAudio .audio-scroll{overflow:visible;padding:0}#startAudio .audio-settings{overflow:visible;padding:0}#startAudio #audioPanel{max-height:none;height:auto}

/* Compact controls, a fixed header and exactly one touch scroll surface. */
#app .interface #audioPanel>.audio-scroll{padding:9px;scroll-padding-block:9px;touch-action:pan-y;flex-shrink:1}
#app #audioPanel .audio-library{gap:7px;padding-bottom:9px}
#app #audioPanel .vale-player{gap:4px;padding:10px;border-radius:12px}
#app #audioPanel #currentTrack{font-size:16px;min-height:21px;line-height:1.25}
#app #audioPanel #playerState{font-size:12px;line-height:1.25}
#app #audioPanel .player-controls{gap:10px;margin-top:4px}
#app #audioPanel .player-controls button{width:44px;min-height:44px;height:44px;font-size:20px;border-radius:12px;box-shadow:none}
#app #audioPanel .player-controls #playTrack{width:48px;min-height:44px}
#app #audioPanel .music-modes button{min-height:44px;padding:5px 3px;font-size:12px}
#app #audioPanel .audio-library details>summary{padding:10px 0;min-height:44px;box-sizing:border-box;font-size:13px}
#app #audioPanel .audio-settings{gap:5px}
#app #audioPanel .audio-master,#app #audioPanel .audio-settings>label{padding:7px 9px;gap:3px 8px;border-radius:10px}
#app #audioPanel .audio-settings strong{font-size:13px}
#app #audioPanel .audio-settings label>span>small,#app #audioPanel .audio-master>span>small{display:none}
#app #audioPanel .audio-settings input[type=range]{height:30px;margin:0}
#app #audioPanel .audio-master button{min-height:44px;padding:4px 10px;font-size:13px}
#app #audioPanel .audio-status{font-size:12px;padding:6px 8px}
#generalPanel .music-credits summary{cursor:pointer;padding:12px 0;min-height:44px;box-sizing:border-box;font-size:14px}
#app .interface #audioPanel>.audio-scroll{scrollbar-width:thin;scrollbar-color:#bba47c #f8efdd}
#app .interface #audioPanel>.audio-scroll::-webkit-scrollbar{width:6px}
#app .interface #audioPanel>.audio-scroll::-webkit-scrollbar-thumb{background:#bba47c;border-radius:6px}
#app .interface #audioPanel>.audio-scroll::-webkit-scrollbar-track{background:#f8efdd}
