/* Shared palette for repertoire, reader, accounts, requests and OBS management. */
.theme-toolbar { box-sizing:border-box; width:min(1580px,100%); display:flex; justify-content:flex-end; margin:0 auto; padding:12px 24px 0; }
.theme-toggle { appearance:none; display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 15px; border:1px solid #8a958b; border-radius:4px; background:#f8faf5; color:#2e3933; font:700 14px/1.4 Arial,sans-serif; letter-spacing:.04em; cursor:pointer; }
.theme-toggle:hover { border-color:#43855c; background:#e1f0e2; }
.theme-toggle:focus-visible { outline:3px solid #71cc98; outline-offset:3px; }
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#191a1b; --panel:#222426; --pale:#2b322e; --line:#3d4340;
  --text:#f0f2ef; --muted:#b4bcb5; --accent:#71cc98; --accent2:#99dfb2;
  --ink:#f0f2ef; --red:#ff929a;
  --paper:#191a1b; --white:#222426; --green:#71cc98; --deep:#99dfb2; --error:#ff929a;
  --account-paper:#191a1b; --account-ink:#f0f2ef; --account-accent:#71cc98; --account-line:#3d4340;
  background:#191a1b;
}
html[data-theme="dark"] body { background:#191a1b !important; background-image:none !important; color:#f0f2ef !important; }
html[data-theme="dark"] .theme-toggle { color:#f0f2ef; background:#282b2c; border-color:#58605a; }
html[data-theme="dark"] .theme-toggle:hover { background:#343a36; border-color:#71cc98; }
html[data-theme="dark"] :is(.sidebar,.song,.artist-group,.artist-group .song,.artist-group summary,.modal,.song-page-content,.sheet-editor .verse-row,.control-card,.font-choice,.request-card,.queue-card,.selected-song,.quota-card,.settings-form,.share-box,.login-card,.empty,.status-badge,.help,#chordPalette,#chordsPreview) {
  background:#222426 !important; color:#f0f2ef; border-color:#3d4340 !important; box-shadow:none;
}
html[data-theme="dark"] :is(.sidebar,.request-card,.quota-card,.settings-form,.share-box,#chordPalette) { background:#25282a !important; }
html[data-theme="dark"] :is(input:not([type="range"]):not([type="checkbox"]):not([type="color"]),textarea,select,#lyricsInput,#chordsInput,.search) {
  background-color:#202223 !important; color:#f0f2ef !important; border-color:#555f57 !important;
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color:#abb4ad !important; opacity:1; }
html[data-theme="dark"] :is(input,select,textarea) { accent-color:#71cc98; }
html[data-theme="dark"] :is(.btn,.button,.sidebar .btn:not(.primary),.repertoire-choice,.tab,.palette-chip,.palette-group) {
  background:#2c302e !important; color:#f0f2ef !important; border-color:#58635b !important; box-shadow:1px 2px 0 #0b0d0c;
}
html[data-theme="dark"] :is(.btn,.button,.repertoire-choice,.tab,.artist-side-item,.song-row):hover { background:#343c36 !important; color:#f0f2ef; }
html[data-theme="dark"] :is(.btn.primary,.button.primary,.repertoire-choice.active,.tab.active,.artist-side-item.active,.count-badge,.song-controls .btn[data-action="fav"]:has(.star),.sheet-tools .btn[aria-pressed="true"],.song-page-tools .btn[aria-pressed="true"]) {
  background:#71cc98 !important; color:#14261b !important; border-color:#71cc98 !important;
}
html[data-theme="dark"] .top-actions #addBtn { background:#71cc98 !important; color:#14261b !important; }
html[data-theme="dark"] :is(.tabs,.frame-surround,.account-message,.admin-songs pre,.palette-group,.status-badge.rejected) { background:#2a302c !important; color:#e4eae4; border-color:#465149; }
html[data-theme="dark"] :is(.song-row.is-selected,.artist-group[open] summary,.sheet-editor .placed-chord) { background:#293e31 !important; color:#c9f2d7 !important; border-color:#659c76 !important; }
html[data-theme="dark"] :is(.artist-side-item,.side-label,.side-bottom,.verse-words,.song-back,.login-card input,.help strong) { color:#edf2ed !important; }
html[data-theme="dark"] :is(.eyebrow,.song-note,.song-page-title p,.side-label,.placed-chord,.palette-chip,.form-status,.page-notice,.obs-status,.preview-status,.account-brand span) { color:#99dfb2 !important; }
html[data-theme="dark"] :is(.song-artist,.artist-count,.ready-chords small,.lyrics-help,.artist-side-item small) { color:#b4bcb5; }
html[data-theme="dark"] .artist-side-item small { background:#ffffff12; }
html[data-theme="dark"] :is(#chordsPreview,.song-page-content) { color:#f0f2ef !important; }
html[data-theme="dark"] :is(#chordsPreview,.song-page-content) .verse-words { color:#f0f2ef !important; }
html[data-theme="dark"] :is(#chordsPreview,.song-page-content) .placed-chord { color:#ff858f !important; }
html[data-theme="dark"] .chord-track { background:none; border-color:#56655a; }
html[data-theme="dark"] .remove-chord { background:#343a36; color:#ff929a; }
html[data-theme="dark"] .account-shell form button { color:#14261b; }
html[data-theme="dark"] .login-card h1 { color:#b9f0cf; }
html[data-theme="dark"] .login-card .account-message { color:#e4eae4; }
html[data-theme="dark"] .sync-status { background:#403b24; color:#fff0bd; }
html[data-theme="dark"] .is-error { color:#ff929a !important; }
html[data-theme="dark"] dialog::backdrop { background:#000b; }
html[data-theme="dark"] :focus-visible { outline-color:#99dfb2; }
html[data-theme="dark"] ::selection { background:#71cc98; color:#14261b; }
html[data-theme="dark"] select { background-image:linear-gradient(45deg,transparent 50%,#e1ebe3 50%),linear-gradient(135deg,#e1ebe3 50%,transparent 50%); background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%; background-size:5px 5px; background-repeat:no-repeat; }
.login-page { grid-template-rows:auto 1fr; align-content:start; }
.login-page>.theme-toolbar { align-self:start; }
html[data-theme="light"] { color-scheme:light; }
html[data-theme="light"] .login-page { background:#f7f8f0; }
html[data-theme="light"] .login-card { background:#fffffb; color:#25382f; border-color:#bccac1; }
html[data-theme="light"] .login-card h1 { color:#287d57; }
@media(max-width:600px) { .theme-toolbar { padding:10px 16px 0; } .theme-toggle { min-height:38px; padding:7px 12px; } }
