/* Color changes only: established spacing and mobile scrolling stay intact. */
html:root[data-app-theme]{--app-bg:#111216;--app-panel:#202126;--app-panel-deep:#17181c;--app-border:#666055;--app-accent:#eac789;--app-text:#fffaf0;--app-muted:#d1cec5;--theme-brand:#45413a;--theme-glow:#303036;--theme-band:#2c2d32;--theme-button-text:#fff;--theme-focus:#f4dba9}
html:root[data-app-theme=purple]{--app-bg:#151020;--app-panel:#21172f;--app-panel-deep:#191221;--app-border:#61477d;--app-accent:#cba7ff;--app-text:#fff;--app-muted:#d5c5e6;--theme-brand:#4F2D7F;--theme-glow:#352148;--theme-band:#30203f;--theme-focus:#dec4ff}
html:root[data-app-theme=jackets]{--app-bg:#080f20;--app-panel:#111f39;--app-panel-deep:#0b162b;--app-border:#40557a;--app-accent:#FEDD00;--app-text:#fff;--app-muted:#d2ddf0;--theme-brand:#00205B;--theme-glow:#173467;--theme-band:#192c4a;--theme-focus:#FEDD00}
html:root[data-app-theme=packers]{--app-bg:#0c1713;--app-panel:#162a22;--app-panel-deep:#102019;--app-border:#617449;--app-accent:#FFC20E;--app-text:#fff;--app-muted:#d9e5d3;--theme-brand:#2A433A;--theme-glow:#294b3a;--theme-band:#223b2e;--theme-focus:#FFC20E}
html:root[data-app-theme=aggies]{--app-bg:#180d10;--app-panel:#2c171c;--app-panel-deep:#211115;--app-border:#79545c;--app-accent:#ffffff;--app-text:#fff;--app-muted:#e4ced2;--theme-brand:#500000;--theme-glow:#501c28;--theme-band:#3b2229;--theme-focus:#ffffff}
html:root[data-app-theme=longhorns]{--app-bg:#171310;--app-panel:#29211b;--app-panel-deep:#211912;--app-border:#96633e;--app-accent:#ffd7b3;--app-text:#fff;--app-muted:#e4d0c0;--theme-brand:#BF5700;--theme-glow:#583019;--theme-band:#3b2b1f;--theme-focus:#ffd7b3}
html:root[data-app-theme=tcu]{--app-bg:#140d20;--app-panel:#241431;--app-panel-deep:#1c1028;--app-border:#795b91;--app-accent:#ffffff;--app-text:#fff;--app-muted:#dfd1e9;--theme-brand:#4D1979;--theme-glow:#401a61;--theme-band:#351e47;--theme-focus:#ffffff}
html:root[data-app-theme=dublin]{--app-bg:#0a160f;--app-panel:#12281b;--app-panel-deep:#102018;--app-border:#607544;--app-accent:#f4d34c;--app-text:#fff;--app-muted:#d7e8c9;--theme-brand:#087c2e;--theme-glow:#165731;--theme-band:#203c29;--theme-focus:#f4d34c}
html:root[data-app-theme=glenrose]{--app-bg:#180e10;--app-panel:#2c171a;--app-panel-deep:#221114;--app-border:#8b505b;--app-accent:#ffffff;--app-text:#fff;--app-muted:#ead2d6;--theme-brand:#B31B2B;--theme-glow:#571d29;--theme-band:#3e2228;--theme-focus:#ffffff}
html:root[data-app-theme=granbury]{--app-bg:#170f23;--app-panel:#281a38;--app-panel-deep:#20142d;--app-border:#85613d;--app-accent:#efc530;--app-text:#fff;--app-muted:#e3d4e9;--theme-brand:#582C83;--theme-glow:#492568;--theme-band:#39234b;--theme-focus:#efc530}
html[data-app-theme] body.polished-app{background:radial-gradient(ellipse at top left,var(--theme-glow),transparent 48rem),var(--app-bg)!important;color:var(--app-text)!important}
html[data-app-theme] body.polished-app .app-header{background:linear-gradient(135deg,var(--theme-glow),var(--app-panel-deep))!important}
html[data-app-theme] body.polished-app :is(.app-nav,.app-menu-panel,.app-more-menu,.legend-box,.tip-message-box,.pwa-tip-box,.tip-message,.chat-box,.artist-list-header,.static-header,.chat-header-row,.app-detail-panel){background:var(--app-panel-deep)!important;border-color:var(--app-border)!important}
html[data-app-theme] body.polished-app :is(.btn,.nav-btn,.request-btn,.btn-calendar-tile,.sort-chip,.fav-tab-btn,.browse-tab,.alpha-btn,.icon-btn){background:var(--theme-brand)!important;color:var(--theme-button-text)!important;border-color:var(--app-border)!important}
html[data-app-theme] body.polished-app :is(.browse-tab.active,.fav-tab-btn.active,.alpha-btn.active,.sort-chip.active,.app-nav a[aria-current=page]){background:var(--app-accent)!important;color:var(--app-bg)!important;border-color:var(--app-accent)!important}
html[data-app-theme] body.polished-app :is(input:not([type=button]):not([type=submit]):not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--app-panel-deep)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}
html[data-app-theme] body.polished-app :is(input,textarea)::placeholder{color:var(--app-muted)!important}
html[data-app-theme] body.polished-app :focus-visible{outline-color:var(--theme-focus)!important}
html[data-app-theme] body.polished-app :is(.song-item,.artist-item,.fav-song-item,.detail-song-item,.kamikaze-table tbody tr,.calendar-table tbody tr){background:var(--app-panel-deep)!important;border-color:var(--app-border)!important}
html[data-app-theme] body.polished-app :is(.song-item,.artist-item,.fav-song-item,.detail-song-item,.kamikaze-table tbody tr,.calendar-table tbody tr):nth-child(even){background:var(--theme-band)!important}
html[data-app-theme] body.polished-app :is(.calendar-table thead,.calendar-table th,.kamikaze-table th){background:var(--theme-brand)!important;color:#fff!important}
html[data-app-theme] body.polished-app :is(.calendar-table td,.kamikaze-table td){background:transparent!important}
html[data-app-theme] body.polished-app :is(.app-menu-panel a,.app-nav a,.app-brand,.alpha-scroll-arrow){color:var(--app-text)!important}
html[data-app-theme] body.polished-app :is(.app-menu-panel a,.app-nav a):hover{background:var(--theme-band)!important}
html[data-app-theme] body.polished-app :is(.app-home-link,.app-menu-toggle){background:transparent!important;color:#fff!important}
html[data-app-theme] body.polished-app :is(.chat-message,.notification-card){background:var(--theme-band)!important;border-color:var(--app-border)!important}
html[data-app-theme] body.polished-app :is(.scrollable-list-container,.scrollable-artist-container,.scrollable-fav-container){scrollbar-color:var(--app-border) var(--app-panel-deep)}
html[data-app-theme] body.polished-app .app-header-home{background:transparent!important;color:#fff!important}
html[data-app-theme] body.polished-app .app-alpha-arrow{background:var(--theme-brand)!important;color:#fff!important}
html[data-app-theme] .app-alpha-viewport::before{background:linear-gradient(to right,var(--app-panel),transparent)}
html[data-app-theme] .app-alpha-viewport::after{background:linear-gradient(to left,var(--app-panel),transparent)}
html[data-app-theme] .app-portrait-notice:not([hidden]){background:var(--app-bg)}
html[data-app-theme] body.polished-app :is(.app-detail-header,.header-title,.artist-header-text,.header-title-text){color:var(--app-muted)!important}
html[data-app-theme=jackets] body.polished-app :is(.app-brand small,.btn-calendar-tile .label){color:var(--app-accent)!important}
html[data-app-theme=jackets] body.polished-app :is(.btn,.btn-calendar-tile,.browse-tab){border-color:#867923!important}

.app-theme-control{display:grid;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid var(--app-border);text-align:left}.app-theme-control label{font-size:12px;font-weight:700;color:var(--app-muted)}.app-theme-control select{width:100%;max-width:320px!important;font-size:13px!important}.app-theme-control span{font-size:11px;color:var(--app-muted)}
.app-launch-overlay[hidden]{display:none!important}html[data-app-launch=show] .app-launch-overlay{position:fixed;inset:0;z-index:20000;display:block!important;background:#111216;color:#e8bd76;padding:0;font-family:system-ui,-apple-system,sans-serif;text-align:center;overflow:hidden}.app-launch-overlay .app-launch-art{position:absolute;top:0;left:0;display:block;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain;margin:0;padding:0}.app-launch-overlay button{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 20px);left:50%;transform:translateX(-50%);min-height:44px;padding:8px 20px;color:#e8bd76;border:1px solid #666055;border-radius:24px;background:#17181ccc;font:inherit;font-size:12px;cursor:pointer}
html[data-app-theme=packers] body.polished-app :is(.app-brand small,.btn-calendar-tile .label),html[data-app-theme=dublin] body.polished-app :is(.app-brand small,.btn-calendar-tile .label),html[data-app-theme=granbury] body.polished-app :is(.app-brand small,.btn-calendar-tile .label){color:var(--app-accent)!important}
@media(max-width:768px){html[data-app-theme] body.polished-app{padding-top:calc(env(safe-area-inset-top,0px) + 6px)!important}}@media(max-width:768px) and (display-mode:standalone){html[data-app-theme] body.polished-app{padding-top:calc(env(safe-area-inset-top,0px) + 17px)!important}}

/* Dallas Cowboys: team-inspired colors. */
html:root[data-app-theme=cowboys]{--app-bg:#090f17;--app-panel:#101c2c;--app-panel-deep:#0d1721;--app-border:#536879;--app-accent:#c7ccd1;--app-text:#fff;--app-muted:#d5e0e9;--theme-brand:#003594;--theme-glow:#101c2c;--theme-band:color-mix(in srgb,#003594 35%,#20242a);--theme-focus:#c7ccd1}

/* Dallas Mavericks: team-inspired colors. */
html:root[data-app-theme=mavericks]{--app-bg:#090f17;--app-panel:#102337;--app-panel-deep:#0d1721;--app-border:#536879;--app-accent:#8ac9f4;--app-text:#fff;--app-muted:#d5e0e9;--theme-brand:#00538c;--theme-glow:#102337;--theme-band:color-mix(in srgb,#00538c 35%,#20242a);--theme-focus:#8ac9f4}

/* Dallas Stars: team-inspired colors. */
html:root[data-app-theme=stars]{--app-bg:#090f17;--app-panel:#10251d;--app-panel-deep:#0d1721;--app-border:#536879;--app-accent:#c8d3cd;--app-text:#fff;--app-muted:#d5e0e9;--theme-brand:#006847;--theme-glow:#10251d;--theme-band:color-mix(in srgb,#006847 35%,#20242a);--theme-focus:#c8d3cd}

/* Texas Rangers: team-inspired colors. */
html:root[data-app-theme=rangers]{--app-bg:#090f17;--app-panel:#142344;--app-panel-deep:#0d1721;--app-border:#536879;--app-accent:#ff9298;--app-text:#fff;--app-muted:#d5e0e9;--theme-brand:#003278;--theme-glow:#142344;--theme-band:color-mix(in srgb,#003278 35%,#20242a);--theme-focus:#ff9298}

/* Houston Astros: team-inspired colors. */
html:root[data-app-theme=astros]{--app-bg:#090f17;--app-panel:#142238;--app-panel-deep:#0d1721;--app-border:#536879;--app-accent:#ffab64;--app-text:#fff;--app-muted:#d5e0e9;--theme-brand:#002d62;--theme-glow:#142238;--theme-band:color-mix(in srgb,#002d62 35%,#20242a);--theme-focus:#ffab64}
