/* 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:root[data-app-theme=baylor]{--app-bg:#08140f;--app-panel:#10271e;--app-panel-deep:#0b1d16;--app-border:#66744c;--app-accent:#FFB81C;--app-text:#fff;--app-muted:#d8e5d8;--theme-brand:#154734;--theme-glow:#173b2e;--theme-band:#1d352b;--theme-focus:#FFB81C}
html:root[data-app-theme=texastech]{--app-bg:#100b0c;--app-panel:#251719;--app-panel-deep:#190f11;--app-border:#74555a;--app-accent:#ffffff;--app-text:#fff;--app-muted:#e4d1d4;--theme-brand:#CC0000;--theme-glow:#4b171d;--theme-band:#382126;--theme-focus:#ffffff}
html:root[data-app-theme=unt]{--app-bg:#07150e;--app-panel:#10291d;--app-panel-deep:#0a1e15;--app-border:#4f765f;--app-accent:#C4D600;--app-text:#fff;--app-muted:#d4e6da;--theme-brand:#00853E;--theme-glow:#0e492b;--theme-band:#183b29;--theme-focus:#C4D600}
html:root[data-app-theme=daylight]{color-scheme:light;--app-bg:#dfe7eb;--app-panel:#f8fafb;--app-panel-deep:#e8eef1;--app-border:#657680;--app-accent:#165d6f;--app-text:#17252c;--app-muted:#40515a;--theme-brand:#315f73;--theme-glow:#cbd9df;--theme-band:#d5e1e6;--theme-button-text:#ffffff;--theme-focus:#0d687d}
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-accessibility-toggle{display:flex!important;align-items:center;gap:8px;margin-top:5px;cursor:pointer}.app-accessibility-toggle input{width:20px!important;height:20px!important;min-height:20px!important;margin:0;accent-color:var(--theme-brand)}.app-admin-sound-note{padding-top:5px;border-top:1px solid var(--app-border)}
.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:var(--app-bg,#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}
@media (min-width:769px) and (hover:hover) and (pointer:fine){.app-launch-overlay .app-launch-art-desktop{top:50%;left:50%;width:min(62vw,720px)!important;height:min(70vh,720px)!important;transform:translate(-50%,-54%);object-fit:contain;object-position:center center}}
@media (max-width:768px) and (hover:hover) and (pointer:fine){.app-launch-overlay .app-launch-art-desktop{top:50%;left:50%;width:min(78vw,520px)!important;height:min(68vh,520px)!important;transform:translate(-50%,-54%);object-fit:contain;object-position:center center}}
.app-launch-overlay #app-launch-skip,.app-launch-overlay #app-launch-skip:hover,.app-launch-overlay #app-launch-skip:focus,.app-launch-overlay #app-launch-skip:active{transform:translateX(-50%)!important;background:#17181ce6!important;color:#e8bd76!important;border-color:#666055!important;box-shadow:none!important;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.app-launch-overlay #app-launch-skip:hover{background:#242126f2!important;border-color:#e8bd76!important;box-shadow:0 0 0 2px #e8bd7638!important}
.app-launch-overlay #app-launch-skip:focus-visible{outline:2px solid #e8bd76!important;outline-offset:3px;box-shadow:none!important}
.app-launch-overlay #app-launch-skip:active{background:#111216f2!important}
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),html[data-app-theme=baylor] body.polished-app :is(.app-brand small,.btn-calendar-tile .label),html[data-app-theme=unt] 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}

/* Easy Read keeps the structure intact while replacing dark-only assumptions. */
html[data-app-theme=daylight] body.polished-app :is(.app-home-link,.app-menu-toggle,.app-header-home){color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app :is(h1,h2,h3,h4,h5,p,label,.app-help,.rules,.header-title,.artist-header-text,.header-title-text){color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app :is(.app-brand small,.songbook-stats,.app-show-status,.browse-hero-sub,.app-theme-control label,.app-theme-control span){color:var(--app-muted)!important}
html[data-app-theme=daylight] body.polished-app :is(.app-nav a[aria-current=page],.browse-tab.active,.fav-tab-btn.active,.alpha-btn.active,.sort-chip.active){color:#fff!important}
html[data-app-theme=daylight] #pwaInstallBanner{color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app :is(.songbook-stats,.app-show-status,.app-show-status span,.app-show-full,.app-show-compact){color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app .btn-browse-hero{background:linear-gradient(135deg,var(--theme-brand),#477d91)!important;border-color:var(--theme-brand)!important;color:#fff!important}
html[data-app-theme=daylight] body.polished-app .btn-browse-hero :is(.browse-hero-title,.browse-hero-icon,.browse-hero-arrow){color:#fff!important}
html[data-app-theme=daylight] body.polished-app .btn-browse-hero .browse-hero-sub{color:#e8f2f5!important}
html[data-app-theme=daylight] body.polished-app .app-more-menu>summary{color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app :is(.close-match-label,.no-results,.empty-songs){color:var(--app-text)!important}
html[data-app-theme=daylight] body.polished-app .legend-box{background:#263f4b!important;color:#fff!important;border-color:#315f73!important}
html[data-app-theme=daylight] body.polished-app .legend-box strong{color:#fff!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:last-child{color:#dce7eb!important}

/* Optional device-local readability mode. It never syncs to another device. */
html[data-app-text=large] body.polished-app{font-size:18px!important}
html[data-app-text=large] body.polished-app :is(.app-nav a,.app-extra-nav a,.btn,.nav-btn,.request-btn,.browse-tab,.sort-chip,.fav-tab-btn,.alpha-btn,button,input,select,textarea,label){font-size:17px!important}
html[data-app-text=large] body.polished-app :is(.song-item,.artist-item,.fav-song-item,.detail-song-item,.chat-message,.notification-card,th,td){font-size:16px!important;line-height:1.5!important}
html[data-app-text=large] body.polished-app :is(.songbook-stats,.app-show-status,.app-help,.rules,.browse-hero-sub,.app-theme-control span){font-size:14px!important;line-height:1.45!important}
html[data-app-text=large] body.polished-app :is(.header-title,.artist-header-text,.header-title-text){font-size:17px!important}
