/* Shared display controls. The original light palette remains the default. */
:root{color-scheme:light;--theme-outline:#598d68;--theme-card:#fffefa;--theme-hint:#66765c}
:root[data-theme=dark]{color-scheme:dark;--paper:#131d19;--surface:#1b2821;--ink:#dfebe0;--green:#add4a2;--muted:#a7b5a6;--line:#37473a;--lime:#dce8b2;--soft:#26382c;--danger:#edae9e;--theme-outline:#bed5a7;--theme-card:#202e25;--theme-hint:#b2c0af;--secondary-text:#bac8b7;--subtle-text:#a5b5a0;--sidebar-bg:#17231c;--player-bg:#19251e;--selected-bg:#2d4332;--hover-bg:#23352a;--primary-bg:#b9d6a6;--primary-ink:#17271a;--primary-hover:#cee4be;--hero-start:#283f30;--hero-end:#304a35;--field-bg:#202f25;--danger-bg:#49302b;--success-bg:#2b4330;--warning-bg:#443b26;--warning-text:#e1ce91;--notice-bg:#2a4030;--record-start:#2b3d30;--record-end:#202f25;--backdrop:#07100bbf}
:root[data-theme=eye]{color-scheme:light;--paper:#e9e4d5;--surface:#f0ecdf;--ink:#35483b;--green:#4d684b;--muted:#56624c;--line:#cdcdbc;--lime:#dbe3bb;--soft:#dedfcb;--danger:#944b38;--theme-outline:#526c48;--theme-card:#ebe7d8;--theme-hint:#56624c;--secondary-text:#536048;--subtle-text:#58634e;--sidebar-bg:#e1dfce;--player-bg:#e5e1d1;--selected-bg:#d3dbc0;--hover-bg:#dedfcb;--primary-bg:#40583e;--primary-ink:#f4f0df;--primary-hover:#536c4a;--hero-start:#d8ddbd;--hero-end:#c8d1af;--field-bg:#e5e2d1;--danger-bg:#e6d5c6;--success-bg:#d4dfc0;--warning-bg:#e4dcc2;--warning-text:#7a642d;--notice-bg:#dce2c8;--record-start:#e0e1ca;--record-end:#ccd3b7;--backdrop:#26342166}
.topbar-actions{display:flex;align-items:center;gap:14px}.theme-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:20px;color:var(--ink);background:var(--soft);font-size:11px;white-space:nowrap}.theme-trigger svg{width:16px;height:16px}.theme-trigger:hover{border-color:var(--theme-outline)}.theme-trigger:focus-visible{outline:2px solid var(--theme-outline);outline-offset:3px}.auth-theme{position:absolute;top:25px;right:28px}.login-form-wrap{position:relative}.theme-dialog{width:min(470px,calc(100% - 32px))}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:0;margin:23px 0 18px;min-width:0}.theme-option{position:relative;display:flex;gap:10px;align-items:flex-start;min-width:0;border:1px solid var(--line);background:var(--theme-card);border-radius:12px;padding:16px 12px;cursor:pointer}.theme-option:has(input:checked){border-color:var(--theme-outline);box-shadow:inset 0 0 0 1px var(--theme-outline)}.theme-option input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--green);flex-shrink:0}.theme-option b{display:block;font-size:13px;font-weight:600}.theme-option small{display:block;font-size:11px;line-height:1.7;margin-top:6px;color:var(--theme-hint)}.theme-status{font-size:11px;color:var(--theme-hint);line-height:1.8;min-height:20px}.theme-dialog .dialog-actions{margin-top:20px}.theme-dialog .dialog-heading{margin-bottom:12px}
/* Cover every surface, including forms, player overlays and the admin area. */
:root:is([data-theme=dark],[data-theme=eye]) :is(.icon-button,.text-button,.nav-label,.nav-item,.breadcrumb,.breadcrumb b,.cloud-status,.hero .eyebrow,.hero-copy p,.track-table td,.track-copy small,.empty-state p,.now-info p,.now-meta span,.now-queue,.now-queue span:nth-last-child(2),.lyric-line,.lyrics-placeholder,.mini-track small,.playback-buttons .icon-button,.login-form>p:not(.form-error),.login-form label,.field-label,.dialog-message,.queue-copy small,.playlist-choice small,.detail-grid dd,.online-heading .eyebrow,.online-heading p,.online-source,.online-status,.online-empty,.online-pagination span,.import-history-row>span:last-child,.auth-links,.admin-header>div,.admin-intro p,.admin-summary small,.admin-summary em,.admin-tabs button,.admin-contact,.admin-usage,.admin-usage b,.admin-audit p,.profile-contact){color:var(--secondary-text)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.brand small,.sidebar-hint,.storage-label,.account small,.breadcrumb span,.hero-badge,.library-title-row .eyebrow,.library-title-row h2 span,.search-box,.list-toolbar>span,.track-table th,.row-play,.collection-footer,.now-panel-top .eyebrow,.now-tabs button,.record-speed,.record-caption,.now-note,.timeline time,.quality-badge,.login-art>.eyebrow,.login-caption,.login-form .eyebrow,.login-note,.dialog-heading .eyebrow,.queue-row>span,.settings-storage small,.drop-overlay p,.online-footnote,.admin-intro .eyebrow,.admin-summary span,.admin-user-name>small,.admin-contact small,.admin-pagination span,.admin-footnote,.admin-empty,.admin-audit time,.admin-audit small,.profile-contact small){color:var(--subtle-text)}
:root:is([data-theme=dark],[data-theme=eye]) input::placeholder{color:var(--subtle-text);opacity:1}
:root:is([data-theme=dark],[data-theme=eye]) :is(.track-copy b,.now-tabs .active,.lyric-line.active,.icon-button.liked,.icon-button:hover,.track-copy:hover b,.upload-result.success){color:var(--green)}
:root:is([data-theme=dark],[data-theme=eye]) .sidebar{background:var(--sidebar-bg)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.now-panel,.player-bar){background:var(--player-bg)}
:root:is([data-theme=dark],[data-theme=eye]) .now-panel.mobile-open{background:var(--paper)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.nav-item.active,.track-table tr.current,.queue-row.current){background:var(--selected-bg)}
:root:is([data-theme=dark],[data-theme=eye]) .nav-item.active{color:var(--green)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.nav-item:hover:not(.active),.track-table tbody tr:hover,.row-play:hover,.admin-user-actions button:hover,.admin-summary button:hover){background:var(--hover-bg)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.avatar,.library-title-row h2 span,.search-box,.mini-art,.online-empty-icon,.admin-user-actions button){background:var(--soft)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.primary,.playback-buttons .main-play){background:var(--primary-bg);color:var(--primary-ink)}
:root:is([data-theme=dark],[data-theme=eye]) .primary:hover{background:var(--primary-hover)}
:root:is([data-theme=dark],[data-theme=eye]) .brand-mark{background:var(--selected-bg);color:var(--green)}
:root:is([data-theme=dark],[data-theme=eye]) .hero{background:linear-gradient(112deg,var(--hero-start),var(--hero-end))}
:root:is([data-theme=dark],[data-theme=eye]) :is(.online-heading,.login-art){background:linear-gradient(135deg,var(--hero-start),var(--hero-end))}
:root:is([data-theme=dark],[data-theme=eye]) .login-form-wrap{background:none}
:root:is([data-theme=dark],[data-theme=eye]) :is(.login-form input,.field-input){background:var(--field-bg);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=eye]) :is(dialog,.track-table td,.now-meta span,.now-queue,.quality-badge){border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=eye]) .record-frame{background:linear-gradient(140deg,var(--record-start),var(--record-end));border-color:var(--line);box-shadow:none}
:root:is([data-theme=dark],[data-theme=eye]) :is(.record-label,.empty-record .record-label){color:#244638}
:root:is([data-theme=dark],[data-theme=eye]) .landscape>span{color:#f6f5da}
:root:is([data-theme=dark],[data-theme=eye]) .account-status{background:var(--soft);color:var(--secondary-text)}
:root:is([data-theme=dark],[data-theme=eye]) .account-status.active{background:var(--success-bg);color:var(--green)}
:root:is([data-theme=dark],[data-theme=eye]) .account-status.pending{background:var(--warning-bg);color:var(--warning-text)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.account-status.deleted,.account-status.rejected,.admin-user-actions .danger){background:var(--danger-bg);color:var(--danger)}
:root:is([data-theme=dark],[data-theme=eye]) .primary.danger{background:var(--danger);color:var(--paper)}
:root:is([data-theme=dark],[data-theme=eye]) .import-warning{color:var(--warning-text)}
:root:is([data-theme=dark],[data-theme=eye]) .auth-notice{background:var(--notice-bg)}
:root:is([data-theme=dark],[data-theme=eye]) .drop-overlay{background:var(--paper);border-color:var(--green)}
:root:is([data-theme=dark],[data-theme=eye]) dialog::backdrop{background:var(--backdrop)}
:root:is([data-theme=dark],[data-theme=eye]) :is(.main-scroll,dialog,.lyrics-view){scrollbar-color:var(--line) transparent}
:root:is([data-theme=dark],[data-theme=eye]) :is(.admin-tabs .active,.mobile-tabs .active){color:var(--ink)}
@media(max-width:760px){.topbar-actions{gap:8px}.topbar-actions .theme-trigger{width:34px;height:34px;min-height:34px;padding:7px}.topbar-actions .theme-trigger span{display:none}.auth-theme{right:20px;top:20px}.auth-theme span{display:none}.auth-theme{width:35px;height:35px;padding:8px}.admin-header .theme-trigger{width:32px;height:32px;min-height:32px;padding:7px}.admin-header .theme-trigger span{display:none}.admin-header>div{gap:7px}.theme-options{gap:9px}.theme-option{padding:14px 10px;gap:8px}.theme-dialog{padding:23px}.theme-dialog .dialog-heading h2{font-size:21px}}
.dialog-actions{flex-wrap:wrap}
:root:is([data-theme=dark],[data-theme=eye]) .play-all svg{color:var(--primary-ink)}
@media(max-width:420px){.topbar-actions .cloud-status{display:none}.topbar-actions #mobile-account{margin-left:0}}
:root:is([data-theme=dark],[data-theme=eye]) .online-new{color:var(--primary-ink)}
:root:is([data-theme=dark],[data-theme=eye]) .online-status.form-error{color:var(--danger)}
