/* Persistent utility controls. Safe-area space keeps the last action reachable. */
body{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
#utilityBar{position:fixed;z-index:50;left:50%;bottom:max(14px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #58414c;border-radius:16px;background:#151419f5;box-shadow:0 8px 30px #0008;max-width:calc(100% - 24px)}
#utilityBar[hidden]{display:none!important}
#utilityBar button,#utilityBar a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;min-width:46px;margin:0;padding:10px 13px;border:1px solid #674252;border-radius:9px;background:#21191f;color:#fbd3dd;text-decoration:none;font-size:14px;line-height:1.2}
#themeToggle span{font-size:24px;line-height:1}#connectionStatus{white-space:normal!important;min-width:154px!important}
.connection-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#aca5af}
#utilityBar #connectionStatus[data-state=online]{background:#172b23;border-color:#3d8a67;color:#b8f1d5}
#utilityBar #connectionStatus[data-state=online] .connection-dot{background:#71dfa8}
#utilityBar #connectionStatus[data-state=offline]{background:#3a1822;border-color:#c15369;color:#ffd1da}
#utilityBar #connectionStatus[data-state=offline] .connection-dot{background:#ff748e}
html[lang=en] .next-phase::after{content:"NEXT STEP"}
html[lang=en] .today-show::before{content:"TODAY"}
@media(max-width:520px){#utilityBar{width:calc(100% - 24px);gap:6px;padding:6px;bottom:max(8px,env(safe-area-inset-bottom,0px))}#utilityBar button,#utilityBar a{padding:9px;flex-shrink:0}#utilityBar #connectionStatus{flex:1;min-width:0!important;font-size:12px;padding:9px 6px}.utility-tiktok-word{display:none}}

/* Light mode keeps the original red brand and the blue PayPal action. */
html[data-theme=light]{color-scheme:light;--bg:#f5f2f3;--card:#fff;--border:#d8cbd1;--edge:#d8cbd1;--muted:#61555e;--red:#c9183b}
html[data-theme=light] body{background:#f5f2f3;color:#211b20}
html[data-theme=light] :is(.card,#home,.show-entry,#shows .overview-show,#playedPanel,dialog,#submissionPanel,#playlistPanel){background:#fff!important;border-color:#d8cbd1!important;color:#211b20;box-shadow:0 4px 22px #3f183008}
html[data-theme=light] :is(h1,h2,h3,h4,strong,legend,td,th){color:inherit}
html[data-theme=light] :is(p,small,label,summary,.overline,.songinfo small,.song-time,.song-duration,#detailHeading>p,#shows .capacity,.queue-hint,.submission-note){color:#62545f}
html[data-theme=light] :is(button,.song-actions a,.page-return):not(.primary):not(.danger):not(.submission-cta){background:#f5edf1!important;border-color:#bb99aa!important;color:#651e3a!important;box-shadow:none}
html[data-theme=light] :is(input,select,textarea,#submissionPanel #songForm input:not([type=checkbox])){background:#fff!important;border-color:#b19da9!important;color:#211b20!important}
html[data-theme=light] :is(.primary,#shows .submission-cta){color:#fff!important;background:linear-gradient(130deg,#d92043,#a5092b)!important;border-color:#c8183b!important}
html[data-theme=light] .danger,html[data-theme=light] #shows .danger{color:#a31435!important;background:#ffedf1!important;border-color:#bb556c!important}
html[data-theme=light] :is(.show-facts .pill,.pill,#ownSongStatus,.empty-current,.profile-picture-editor,.phase-navigation,.feature){background:#f7eff3!important;border-color:#cfb6c2!important;color:#68223f!important}
html[data-theme=light] #overviewAccount{background:none!important;box-shadow:none}
html[data-theme=light] #overviewIdentity{background:#fff!important;border-color:#c89fae!important}
html[data-theme=light] :is(.song,#queue .song,#playedSongs .song){background:#fcf9fb!important;border-color:#ccb9c4!important;color:#211b20}
html[data-theme=light] :is(#queue .own-song,#queue .current-song){background:#fff0f4!important;border-color:#d32348!important}
html[data-theme=light] :is(.song-position,.own-badge,.profile-avatar){background:#f3dce5!important;color:#922347!important;border-color:#bc6380}
html[data-theme=light] #liveDisplay,html[data-theme=light] #liveDisplay::after{background:#fff2f5!important;color:#211b20}
html[data-theme=light] #liveDisplay #liveArtist{color:#62545f}
html[data-theme=light] :is(.personal-voting,.vote-badge,.vote-button.voted,#inlineAvailability:not(:empty),.capacity-notice.full){background:#fff0f4!important;border-color:#bd6078!important;color:#8e193a!important}
html[data-theme=light] :is(#profileError,#accountError,#showFormError,#songFormError,#notice){color:#a41337}
html[data-theme=light] :is(#profileStatus,.vote-status,.playback-time){color:#715461!important}
html[data-theme=light] input::file-selector-button{color:#651e3a;background:#f5edf1;border-color:#bb99aa}
html[data-theme=light] .next-phase::after{color:#9b1640}
html[data-theme=light] #utilityBar{background:#fffafdf5;border-color:#c3aab7;box-shadow:0 5px 25px #3f183022}
html[data-theme=light] #utilityBar #connectionStatus[data-state=online]{background:#e2f6ea!important;border-color:#71a98a!important;color:#165138!important}
html[data-theme=light] #utilityBar #connectionStatus[data-state=offline]{background:#ffe8ee!important;color:#9c1939!important}
html[data-theme=light] #utilityBar #connectionStatus[data-state=online] .connection-dot{background:#247649}
html[data-theme=light] #utilityBar #connectionStatus[data-state=offline] .connection-dot{background:#bf2145}
html[data-theme=light] footer{border-color:#d8cbd1;color:#61555e}
html[data-theme=light] .paypal-button{color:#fff}

html[data-theme=light] :is(.empty-shows,.dialog-footer){background:#f7eff3!important;border-color:#cfb6c2!important;color:#62545f!important}
html[data-theme=light] :is(.brand span,#overviewIdentity small){color:#733246!important}
html[data-theme=light] a:not(.paypal-button):not(.primary){color:#962347}
html[data-theme=light] #liveLink{color:#a41337}
