:root{color-scheme:light;--bg:#f6f5f0;--surface:#fffefa;--surface-2:#eeefe8;--surface-3:#e7eae1;--text:#1d302b;--muted:#65736d;--subtle:#7b8580;--border:#dce2d8;--accent:#315d48;--accent-soft:#e8eee3;--gold:#86642d;--gold-soft:#f3e9d1;--cash:#3c7560;--shadow:0 10px 36px #263d2a06;--header:#fffefae8;--nav-active:#1e4034;--nav-text:#f9faf5;--focus:#658c54;--art-bg:#e8e9db;--art-ink:#54684d}
:root[data-theme=dark]{color-scheme:dark;--bg:#111615;--surface:#1a211f;--surface-2:#202926;--surface-3:#28332e;--text:#eef0e6;--muted:#a5b2a9;--subtle:#8a9b8f;--border:#303c35;--accent:#c8dba9;--accent-soft:#29372b;--gold:#dcc395;--gold-soft:#393427;--cash:#9dccb6;--shadow:0 10px 36px #00000012;--header:#141b18ed;--nav-active:#d0ddae;--nav-text:#1a3024;--focus:#c5d89d;--art-bg:#28342b;--art-ink:#c1cda3}
.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;flex-shrink:0}
.theme-switch button{display:flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:var(--muted);border:0;border-radius:999px;min-height:31px;padding:5px 11px;margin:0;font:600 11px/1.4 system-ui,'Malgun Gothic',sans-serif;cursor:pointer}
.theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 2px 7px #0000000a}
.theme-switch svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
:where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:4px}
body[data-shared-theme]{background:var(--bg);color:var(--text);font-family:'Segoe UI','Malgun Gothic',system-ui,sans-serif}
body[data-shared-theme] header{border-color:var(--border);gap:15px;flex-wrap:wrap}
body[data-shared-theme] :is(section,.my-info-grid article,.extra-card,.admin-extra,#nickname-change,body[data-admin-page] #v-admin,.record,.legal-content){background:var(--surface);border-color:var(--border);border-radius:15px;box-shadow:var(--shadow)}
body[data-shared-theme] :is(a,.kicker,.my-info-grid small,.my-profile-head small,.record h3,.admin-extra summary,#nickname-change summary,.my-links a){color:var(--accent)}
body[data-shared-theme] :is(p,.help,.applicant small,.my-info-grid p,.extra-card p,.admin-heading p,.my-dates dt,.my-info-grid small,#verify-account small){color:var(--muted)}
body[data-shared-theme] :is(h1,h2,h3,strong,.verify-brand){color:var(--text)}
body[data-shared-theme] :is(input,select,textarea){background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:9px}
body[data-shared-theme] button{background:var(--nav-active);color:var(--nav-text);border-color:transparent;border-radius:9px;font-weight:600}
body[data-shared-theme] :is(.admin-tabs button){background:var(--surface-2);color:var(--muted);border-color:var(--border)}
body[data-shared-theme] .admin-tabs button[aria-selected=true]{background:var(--nav-active);color:var(--nav-text)}
body[data-shared-theme] :is(#v-status,.pending-xbox,.admin-tabs,.my-profile-head,#v-editor){border-color:var(--border)}
body[data-shared-theme] #v-status{background:var(--accent-soft);color:var(--text);border-left-color:var(--accent);border-radius:9px}
body[data-shared-theme] .theme-switch button{background:transparent;color:var(--muted);border:0;border-radius:999px}
body[data-shared-theme] .theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--text)}
@media(max-width:600px){.theme-switch button{padding:5px 8px}.theme-switch button span{display:none}body[data-shared-theme] header .theme-switch{margin-left:auto}}
@media(prefers-reduced-motion:no-preference){body,header,.wallet,.item,.theme-switch button{transition:background-color .18s,color .18s,border-color .18s}}

body[data-shared-theme] #my-badge[data-state=verified]{color:var(--cash)}body[data-shared-theme] :is(.legal-nav,.legal-toc,.legal-content,.legal-hero,.legal-note){background:var(--surface);color:var(--text);border-color:var(--border)}body[data-shared-theme] .legal-hero{background:var(--accent-soft)}body[data-shared-theme] .legal-content :is(p,li,small){color:var(--muted)}
