/* Shared theme controller, admin-only palette. Do not recolour media previews. */
.theme203{display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-height:38px}
.theme203 [data-theme-symbol]{font-size:1.2em;line-height:1}
.loginTheme203{position:absolute;inset:16px 16px auto auto}
.sectionNav button.tab{font-size:.875rem}
.sectionNav .navGroup>summary,.sectionTitle small,.stat .l,.navCount,th{font-size:.75rem}
.sectionTitle b,.panel h3{letter-spacing:normal}
.navGroup>summary .navCount{white-space:nowrap}
@media(max-width:680px){#app>header .theme203 [data-theme-label]{display:none}#app>header .theme203{min-width:40px}}

html[data-ui-theme=light]{
  color-scheme:light;--bg:#f2f3f6;--bg2:#fff;--surface:#fff;--surface2:#f5f5f9;--surface3:#eaeaf1;
  --text:#23212b;--muted:#555363;--muted2:#625f70;--primary:#75541a;--primary2:#67470d;
  --spark:#88571c;--ok:#246042;--err:#942e41;--warn:#805617;
  --card:#faf9fc;--border:#d7d4df;--border-strong:#b6a67f;--shadow:0 6px 22px #30273f12;
}
[data-ui-theme=light] body{color-scheme:light;color:var(--text);background:var(--bg)}
[data-ui-theme=light] #app>header{background:#fffffff5;border-color:var(--border);box-shadow:0 2px 12px #29243509}
[data-ui-theme=light] :is(.panel,.loginCard,.sectionNav,.workspaceEmpty,.dashboardSection,.dashboardSection[open],.modal,.toast,.securityDialog151,.cosmetics175-admin){
  color:var(--text);background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)
}
[data-ui-theme=light] .dashboardSectionBody{border-color:var(--border)}
[data-ui-theme=light] :is(.stat,.profileMetric,.profileSection,.attachmentCard,.securityCodes151 code,.support184-thread,.attachmentAudio,.attachmentThumb198,.profileTabs,.seg,.chatBox,.profileDetails,.bub.right){
  color:var(--text);background:var(--surface2);border-color:var(--border)
}
[data-ui-theme=light] :is(header .logo,.settingsDetails>summary,.navGroup>summary,.horoscope-admin-preview pre){color:var(--text)}
[data-ui-theme=light] :is(.navCount,.navChevron,.dashH,.sectionChevron,th,.horoscope-admin-editor label,.horoscope-admin-settings label,.horoscope-admin-row small,.pet-league-note,.cosmetics175-admin-price del){color:var(--muted)}
[data-ui-theme=light] :is(.brandMark,.loginEmblem,.securityEmblem151){color:var(--primary2);background:#faf1dd;border-color:#d4c6ac;box-shadow:none}
[data-ui-theme=light] .sectionNav{scrollbar-color:#b3afbf transparent}
[data-ui-theme=light] :is(button.tab,button.tab .icon,.navGroupIcon){color:#534f61}
[data-ui-theme=light] :is(button.tab:hover,.navGroup>summary:hover,.dashboardSection>summary:hover){background:#efedf3;color:#312a40}
[data-ui-theme=light] button.tab.active{color:#503b19;background:#f8f0de;border-color:#dbcaab}
[data-ui-theme=light] :is(input,textarea,select){background:#fff;color:var(--text);border-color:#aeaab9;box-shadow:none;accent-color:var(--primary)}
[data-ui-theme=light] :is(input,textarea)::placeholder{color:#6c6878}
[data-ui-theme=light] :is(button.ghost,.attachmentTabs button){background:#f6f5f9;color:#423d50;border-color:#cfcbda}
[data-ui-theme=light] :is(button.ghost:hover,.attachmentTabs button.active){color:#30233e;background:#eae5f2}
[data-ui-theme=light] :is(button.danger,.pill.ban){background:#f9e6e8;color:var(--err);border-color:#dbadb4}
[data-ui-theme=light] :is(button.ok,.pill.on,.ch164-state.ch164-on){background:#e5f3eb;color:var(--ok);border-color:#a8cdb6}
[data-ui-theme=light] :is(.pill.away,.pill.prem){background:#faf0d8;color:var(--warn);border-color:#dfc68e}
[data-ui-theme=light] .pill.off{background:#efedf3;color:var(--muted);border-color:var(--border)}
[data-ui-theme=light] :is(.cosmetics175-admin h3,.pet-league-manual-warning,.ch164-warning,.gift-pricing-badge.popular){color:var(--primary2)}
[data-ui-theme=light] :is(.ur162-status[role=alert],.pet-league-error,.ch164-remove,.ch164-error,.support184-feedback.error){color:var(--err)}
[data-ui-theme=light] :is(.ur162-confirmed,.ch164-sum){color:var(--ok)}
[data-ui-theme=light] :is(.ch164-rarity,.gift-pricing-badge[data-rarity]){color:#484055;background:#f1edf7}
[data-ui-theme=light] .ch164-rarity.ch164-mythic{color:#6c4a13;background:#fff1ca}
[data-ui-theme=light] :is(th,td,.horoscope-admin-row){border-color:var(--border)}
[data-ui-theme=light] th{background:#f5f4f8}
[data-ui-theme=light] tr.clk:hover,[data-ui-theme=light] .convo:hover{background:#efedf6}
[data-ui-theme=light] .support184-person{background:white;border-color:var(--border);color:var(--text)}
[data-ui-theme=light] .support184-person:hover,[data-ui-theme=light] .support184-person[aria-pressed=true]{background:#f6f0e4;border-color:var(--border-strong)}
[data-ui-theme=light] :is(.support184-person-preview,.support184-person small,.support184-message time,.support184-feedback){color:var(--muted)}
[data-ui-theme=light] :is(.support184-thread-head,.support184-composer,.support184-file){border-color:var(--border)}
[data-ui-theme=light] .support184-message{background:#fff;border-color:var(--border)}
[data-ui-theme=light] .support184-message.outgoing{background:#f7ecd5;border-color:#e2d0ac}
[data-ui-theme=light] .support184-message>strong{color:var(--primary2)}
[data-ui-theme=light] .lbAudio{background:var(--surface2)}
[data-ui-theme=light] :is(.archiveViewer198,.lbBar){--muted:#cfccd5}
.queueBadge203,.queueGroup203{
  display:inline-flex;align-items:center;justify-content:center;flex:none;margin-inline-start:auto;
  min-width:1.55rem;padding:.07rem .42rem;border-radius:999px;background:#f3c977;color:#31230c;
  line-height:1.4;font-size:.78rem;letter-spacing:normal;font-weight:700;font-variant-numeric:tabular-nums;
}
.queueBadge203:is([data-state=unknown],[data-state=inventory]),.queueGroup203:is([data-state=unknown],[data-state=inventory]){
  color:var(--muted);background:var(--surface2);border:1px solid var(--border);
}
.queueBadge203[hidden],.queueGroup203[hidden]{display:none}
.queueStrip203{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;padding:.8rem 1rem;margin:0 0 1rem;background:var(--surface);border:1px solid var(--border);border-inline-start:3px solid var(--primary);border-radius:10px}
.queueStrip203[hidden],.navCount[hidden]{display:none}
.queueStrip203>strong{color:var(--primary2);font-size:.9rem}
.queueLinks203{display:flex;gap:.4rem;flex-wrap:wrap}
[data-ui-theme=light] :is(.queueBadge203,.queueGroup203,.support184-badge,.support184-count):not([data-state=unknown],[data-state=inventory]){color:white;background:#794c15}
