/* Loaded last so the app shell, every view and dynamic dialogs share one theme. */
html[data-theme="light"] {
  --suno-dark-bg:var(--bg);
  --suno-card-bg:var(--panel);
  --suno-card-border:var(--line);
  --suno-subtle-btn:var(--surface);
  --suno-subtle-btn-hover:var(--line-soft);
  --suno-text-white:var(--text);
  --suno-text-gray:var(--muted);
  --suno-text-dim:var(--muted);
}

html[data-theme="light"] :is(.creator-panel,.suno-tab-bar,.mobile-mini-player) { background:var(--panel); border-color:var(--line); }
html[data-theme="light"] :is(.suno-capsule-btn,.suno-card-title-btn,.suno-card-body textarea,.suno-options-toggle,.suno-mode-btn,.suno-chevron,.suno-tab.is-active,.suno-tab-create-inner,.suno-tab-create-inner svg,.mini-player-meta b,.mini-player-controls button,.suno-account-header h1,.suno-profile-top b,.suno-profile-edit-btn,.suno-credits-amount,.suno-setting-label span,.suno-guest-info b,.suno-section-header h3,.suno-featured-banner h2,.suno-why-card b,.suno-genre-card b,.suno-search-field,.pricing-price,.pricing-features-list li) { color:var(--text); }
html[data-theme="light"] :is(.suno-tab,.suno-circle-btn,.suno-chevron-toggle,.suno-arrow-icon,.suno-chevron-sm,.suno-opt-row label,.suno-search-icon,.mini-player-meta small,.suno-setting-label svg) { color:var(--muted); }
html[data-theme="light"] :is(.suno-capsule-btn:hover,.suno-circle-btn:hover,.suno-tag-pill:hover,.suno-pill-check:hover,.suno-profile-card-clickable:hover,.suno-setting-row-btn:hover) { background:var(--surface); color:var(--text); }
html[data-theme="light"] .suno-profile-card-clickable:hover { background:var(--surface) !important; border-color:var(--line) !important; }
html[data-theme="light"] :is(.suno-card,.suno-profile-card,.suno-credits-card,.suno-guest-card,.suno-featured-banner,.mobile-mini-player) { border-color:var(--line); box-shadow:0 4px 16px #1919230a; }
html[data-theme="light"] :is(.suno-card:focus-within,.suno-search-bar-wrap:focus-within) { border-color:var(--muted); }
html[data-theme="light"] :is(.suno-options-content,.suno-setting-row,.suno-setting-row-btn) { border-color:var(--line-soft); }
html[data-theme="light"] .suno-capsule-divider { background:var(--line); }
html[data-theme="light"] :is(.suno-model-badge,.suno-tab-create-inner,.suno-tag-pill,.suno-pill-check,.suno-search-clear,.suno-quick-tag,.suno-filter-pill,.suno-sort-wrap button,.suno-setting-tag,.pricing-sub-badge,.pricing-songs-count,.pricing-reassurance) { background:var(--surface); border-color:var(--line); color:var(--text); }
html[data-theme="light"] :is(.suno-opt-row select,.suno-opt-row input,.suno-search-bar-wrap) { background:var(--panel); border-color:var(--line); color:var(--text); }
html[data-theme="light"] :is(.suno-opt-row select:focus,.suno-opt-row input:focus) { border-color:var(--muted); }
html[data-theme="light"] :is(.suno-quick-tag:hover,.suno-filter-pill:hover,.pricing-cta-btn:not(.emphasis):hover) { background:var(--line-soft); border-color:var(--line); color:var(--text); }
html[data-theme="light"] :is(.suno-quick-tag.is-active,.suno-filter-pill.is-active,.suno-pill-check.is-active,.suno-magic-btn,.suno-recharge-btn) { background:var(--text); border-color:var(--text); color:var(--panel); }
html[data-theme="light"] :is(.suno-magic-btn:hover,.suno-recharge-btn:hover) { background:#35353e; }
html[data-theme="light"] .suno-check-circle { background:var(--line); }
html[data-theme="light"] .suno-pill-check.is-active .suno-check-circle { background:var(--panel); }
html[data-theme="light"] .suno-pill-check.is-active .suno-check-circle svg { color:var(--text); }
html[data-theme="light"] .suno-create-btn { background:var(--text); border-color:var(--text); color:var(--panel); box-shadow:0 6px 24px #19192318; }
html[data-theme="light"] .suno-create-btn .suno-note-sparkle { color:var(--panel); }
html[data-theme="light"] :is(.suno-credits-card,.suno-guest-card) { background:var(--panel); }
html[data-theme="light"] .suno-credits-icon { background:#fff2d9; color:#8b5b00; }
html[data-theme="light"] .suno-badge-plan { color:#984112; }
html[data-theme="light"] :is(.suno-setting-right em,.suno-profile-cta) { color:#984112; }
html[data-theme="light"] .suno-setting-tag.active { color:#137847; background:#e4f4ea; }
html[data-theme="light"] .suno-danger-btn .suno-setting-label :is(svg,span) { color:var(--danger); }

/* Text cards use light surfaces; labels over photographs keep their contrast. */
html[data-theme="light"] .suno-featured-banner { background:linear-gradient(135deg,#f5eaf6,var(--panel)); }
html[data-theme="light"] :is(.suno-tag-accent,.genre-icon-wrap) { background:var(--surface); color:var(--text); }
html[data-theme="light"] .suno-genre-card { background:var(--panel); border-color:var(--line); }
html[data-theme="light"] .suno-why-card { border-color:var(--line); }

html[data-theme="light"] #song-list .song { background:transparent !important; border-color:var(--line-soft) !important; }
html[data-theme="light"] #song-list .song:is(:hover,.selected) { background:var(--surface) !important; }
html[data-theme="light"] #song-list .song-title { color:var(--text) !important; }
html[data-theme="light"] #song-list .song-menu { background:var(--surface) !important; color:var(--muted) !important; }
html[data-theme="light"] #song-list .song-menu:is(:hover,[aria-expanded="true"]) { background:var(--line-soft) !important; color:var(--text) !important; }
html[data-theme="light"] #song-list .song-play { background:var(--text) !important; color:var(--panel) !important; box-shadow:none; }
html[data-theme="light"] #song-list .status.complete { color:var(--success) !important; }
html[data-theme="light"] #song-list :is(.status.pending,.status.processing) { color:#984112 !important; }
html[data-theme="light"] #song-list .status.failed { color:var(--danger) !important; }
.song-action-popover .song-menu-title { color:var(--text); }
html[data-theme="light"] .song-action-popover :is(.song-menu-item:hover,.song-menu-item:focus-visible) { background:var(--surface); color:var(--text); }
html[data-theme="light"] .song-action-popover :is(.song-menu-item:hover,.song-menu-item:focus-visible) .song-menu-icon { color:var(--muted); }
html[data-theme="light"] .song-menu-item.danger :is(.song-menu-label,.song-menu-icon) { color:var(--danger); }
html[data-theme="light"] .mini-player-play { background:var(--text) !important; color:var(--panel) !important; }
html[data-theme="light"] .mini-player-cover { background:var(--surface); }
html[data-theme="light"] :is(.player-controls .play-control,.player-controls button.active,.volume.active) { color:var(--text); }

html[data-theme="light"] :is(dialog,.auth-dialog,.song-details-dialog,.app-toast) { background:var(--panel); color:var(--text); border-color:var(--line); box-shadow:0 18px 60px #19192326; }
html[data-theme="light"] :is(.auth-error,.form-error,.dialog-error) { color:#b9233e; }
html[data-theme="light"] :is(.dialog-hint.warning,.warning) { color:#984112; }
html[data-theme="light"] .stems-link { color:#00766c; }
html[data-theme="light"] .feature-dialog :is(input,select,textarea):focus-visible { border-color:var(--muted); }
html[data-theme="light"] :is(.pricing-toggle-pill.is-active,.currency-pill.is-active) { color:var(--text); box-shadow:none; }
html[data-theme="light"] .pricing-card:hover { border-color:var(--muted); }
html[data-theme="light"] .skeleton-pulse { background:linear-gradient(90deg,#e8e8ec 25%,#f5f5f7 50%,#e8e8ec 75%); }

@media (max-width:900px) {
  html[data-theme="light"] #song-list .song-menu { background:transparent !important; }
}
