@layer components {
  .theme-control{display:flex;align-items:center;gap:6px;color:#ad9bdb;border:1px solid #343650;border-radius:7px;padding:7px 9px;background:#151a2d}
  .theme-control>.icon{width:15px;height:15px}.theme-control select{border:0;background:transparent;color:#d8d2ed;font-size:11px;cursor:pointer;max-width:95px;outline-offset:4px}
  .theme-control option{background:#151a2d}.theme-control:focus-within{outline:2px solid #ac98ff;outline-offset:2px}
  .theme-sun{display:none}html[data-theme=light] .theme-sun{display:block}html[data-theme=light] .theme-moon{display:none}
  .topbar-controls{flex-wrap:wrap;justify-content:flex-end}.topbar{height:auto;min-height:76px;padding-top:12px;padding-bottom:12px}
}
@layer responsive {
  @media(max-width:1000px){.topbar{height:auto;min-height:67px}}
  @media(max-width:760px){.theme-control{padding:6px}.theme-control select{font-size:10px;max-width:85px}}
  @media(max-width:480px){.topbar{height:auto;min-height:61px;padding-top:10px;padding-bottom:10px}.topbar-controls{justify-content:flex-start}.theme-control,.language-control{flex:1;justify-content:center}.theme-control select{font-size:11px}.topbar #session-actions{flex:1 1 100%;justify-content:flex-end}}
}

/* A complete light palette, keeping the same layout and purple brand accents. */
html[data-theme=light]{color-scheme:light;background:#f4f6fb;color:#24314a;--border:#d7dfec;--muted:#596b85;--purple:#6840c8;--green:#14734f}
html[data-theme=light] body{background:radial-gradient(ellipse at 75% 0,#e9e6ff80,transparent 45%),#f4f6fb}
html[data-theme=light] :is(button,a,summary,input,select,textarea):focus-visible{outline-color:#7550c9}
html[data-theme=light] .sidebar{background:linear-gradient(140deg,#fff,#eef1fa);border-color:#d7dfec}
html[data-theme=light] .brand{color:#202744}
html[data-theme=light] :is(.brand small,.sidebar-label,.sidebar-foot,.sidebar-foot small){color:#66718c}
html[data-theme=light] .nav-item{color:#4e5f79}
html[data-theme=light] .nav-item:hover{background:#e7e9f6}
html[data-theme=light] .nav-item.active{background:linear-gradient(110deg,#e8dfff,#efebff);color:#5832ae;border-color:#c6b5eb;box-shadow:inset 3px 0 #8560d3}
html[data-theme=light] .nav-number{color:#6944ad;background:#ddd1f5}
html[data-theme=light] .nav-divider{background:#d7dfec}
html[data-theme=light] .community-art strong{color:#7446c6}
html[data-theme=light] :is(.topbar,footer){border-color:#d7dfec}
html[data-theme=light] :is(.breadcrumb,.session-name,footer,footer button){color:#586a83}
html[data-theme=light] .breadcrumb strong{color:#263752}
html[data-theme=light] :is(.breadcrumb .tiny-shield,.eyebrow){color:#7150ad}
html[data-theme=light] :is(.language-control,.theme-control){background:#fff;border-color:#cbd4e5;color:#7550b3}
html[data-theme=light] :is(.language-control select,.theme-control select){color:#354765}
html[data-theme=light] :is(.language-control option,.theme-control option){background:#fff;color:#354765}
html[data-theme=light] .hero{background:radial-gradient(ellipse at 90% 20%,#d8c8ff70,transparent 52%),linear-gradient(120deg,#fff,#eeedfb);border-color:#d4c8e9}
html[data-theme=light] .hero:after{border-color:#bca8df66}
html[data-theme=light] .hero h1 span{color:#6c3eb3}
html[data-theme=light] :is(.hero p,.hero-aside .hero-mini){color:#5e6684}
html[data-theme=light] .hero-aside .hero-mini{border-color:#d2c6e6}
html[data-theme=light] .hero-mini strong{color:#3f365a}
html[data-theme=light] :is(.stat,.panel){background:#fff;border-color:#d6dfed;box-shadow:0 3px 13px #34476e05}
html[data-theme=light] .stat>span{background:#fceaf0;border-color:#eccbd7;color:#b54a6b}
html[data-theme=light] .stat:nth-child(2)>span{background:#eee7fc;border-color:#d8c9ef;color:#7147b1}
html[data-theme=light] .stat:nth-child(3)>span{background:#e5f5ed;border-color:#b8dfcb;color:#217751}
html[data-theme=light] :is(.stat p,.admin-heading p,.loading,.empty,.info-bar,.bottom-card p,.audit-row p,.audit-row time){color:#5b6f8b}
html[data-theme=light] :is(.empty h2,.empty h3){color:#35415e}
html[data-theme=light] :is(.search,.searchbar select,.platform-toggle){background:#fff;border-color:#c7d2e4;color:#465976}
html[data-theme=light] .search input{color:#273c5a}
html[data-theme=light] :is(.search input::placeholder,.field input::placeholder,.field textarea::placeholder,.game-row input::placeholder){color:#677a92}
html[data-theme=light] .search>.icon{color:#7a74a0}
html[data-theme=light] .search:focus-within{border-color:#8e6bd0}
html[data-theme=light] .button{background:#f8f9fd;border-color:#c4cfe1;color:#3f5271}
html[data-theme=light] .button:hover{background:#eef0f9;border-color:#a397c4}
html[data-theme=light] .button.primary{background:linear-gradient(120deg,#7950dd,#5b3ac7);border-color:#6844bb;color:#fff}
html[data-theme=light] .button.primary:hover{background:#7045c9}
html[data-theme=light] .button.danger{background:#fff0f3;border-color:#d7a7b5;color:#a82e4f}
html[data-theme=light] .button.success{background:#e7f6ee;border-color:#99c9b0;color:#17633f}
html[data-theme=light] .ghost{color:#666187}
html[data-theme=light] .ghost:hover{color:#6338a3}
html[data-theme=light] .badge{background:#f1f5eb;border-color:#c4d1b7;color:#526441}
html[data-theme=light] :is(.badge.confirmed,.badge.approved){background:#fce9ee;border-color:#e5bac7;color:#a33152}
html[data-theme=light] :is(.badge.pending,.badge.draft){background:#fff3d6;border-color:#e2c994;color:#795210}
html[data-theme=light] :is(.badge.archived,.badge.rejected,.badge.neutral){background:#eef1f7;border-color:#cbd4e4;color:#52647e}
html[data-theme=light] .badge.safe{background:#e4f5ec;border-color:#acd6c0;color:#1b6b48}
html[data-theme=light] .badge.demo{background:#eee6fa;border-color:#cfbfe6;color:#7348a4}
html[data-theme=light] .result{color:#2e3e58;border-bottom-color:#e1e6f0}
html[data-theme=light] .result:hover{background:#f3f4fb}
html[data-theme=light] .result.selected{background:linear-gradient(100deg,#eee6ff,#f8f5ff);border-color:#a88ace}
html[data-theme=light] .result .handle{color:#71638a}
html[data-theme=light] :is(.result .reason,.record-header p,.record-id,.result-footer,.record-footer){color:#64728a}
html[data-theme=light] :is(.result-footer,.record-footer,.review-actions,.bottom-card,.audit-row,.tabs){border-color:#dae1ec}
html[data-theme=light] .avatar{background:radial-gradient(circle at 10% 0,#eee7fa,#d8e0f1);border-color:#aebed8;color:#554076}
html[data-theme=light] .avatar.large{border-color:#b3a2ca}
html[data-theme=light] .detail-section{background:#f8fafd;border-color:#d6dfed}
html[data-theme=light] .identity-section{background:linear-gradient(90deg,#f5f0fc,#f9faff);border-color:#d9cdea}
html[data-theme=light] .section-title{color:#455271}
html[data-theme=light] .section-title .icon{color:#8057b5}
html[data-theme=light] .section-title em{color:#80689a}
html[data-theme=light] :is(.account,.game){background:#fff;border-color:#d5dfed}
html[data-theme=light] :is(.account small,.game small){color:#617795}
html[data-theme=light] :is(.account a,.history a){color:#2663a8}
html[data-theme=light] .verified{color:#287565}
html[data-theme=light] .alias-section .section-title{color:#646282}
html[data-theme=light] .tag{background:#edf0f8;border-color:#ccd5e4;color:#50627b}
html[data-theme=light] :is(.summary-section .section-title,.summary-section .section-title .icon){color:#b34b60}
html[data-theme=light] :is(.summary-section p,.summary-section .reason-description){color:#526681}
html[data-theme=light] .reason-tag{background:#f8e9ee;border-color:#dfb9c3;color:#a54a60}
html[data-theme=light] :is(.gaming-section .section-title,.gaming-section .section-title .icon){color:#227557}
html[data-theme=light] :is(.history,.game-icon){color:#526f8c;border-color:#bdcbe0}
html[data-theme=light] .account-empty{background:#f3f6fb;border-color:#dce3ee}
html[data-theme=light] .account-empty strong{color:#63748c}
html[data-theme=light] .account-empty .brand-icon{opacity:.8}
html[data-theme=light] .brand-icon{background:#e4eaf5;color:#4f637c}
html[data-theme=light] .brand-facebook{background:#e0edff;color:#2466c0}
html[data-theme=light] .brand-discord{background:#eae5ff;color:#6952c0}
html[data-theme=light] :is(.brand-epicgames,.brand-playstation,.brand-tiktok){background:#e4e9f2;color:#23314a}
html[data-theme=light] .brand-paypal{background:#e0effa;color:#1670a4}
html[data-theme=light] .brand-xbox{background:#e3f2df;color:#337c21}
html[data-theme=light] .brand-steam{background:#e3edf5;color:#39627b}
html[data-theme=light] .brand-nvidia{background:#ebf2d8;color:#537918}
html[data-theme=light] .brand-all{background:#ebe4fa;color:#7752b4}
html[data-theme=light] :is(.platform-toggle:hover,.platform-toggle[aria-expanded=true]){background:#f6f2ff;border-color:#a487cd}
html[data-theme=light] .platform-options{background:#fff;border-color:#c6cfe3;box-shadow:0 12px 30px #26395a26}
html[data-theme=light] .platform-options [role=option]{color:#425675}
html[data-theme=light] :is(.platform-options [role=option]:hover,.platform-options [role=option].active){background:#f0edf8;border-color:#d0c4e5}
html[data-theme=light] .platform-options [aria-selected=true]{background:#eee5fc;color:#673ea5}
html[data-theme=light] .platform-check{color:#7146b2}
html[data-theme=light] .reason-overview{background:#fff;border-color:#d3ddeb}
html[data-theme=light] .reason-overview>summary{color:#536582}
html[data-theme=light] .reason-overview>summary>span{background:#ede7f7;color:#78589a}
html[data-theme=light] .reason-bar{color:#4f607b}
html[data-theme=light] .reason-bar:hover{background:#f1edf9}
html[data-theme=light] .reason-bar strong{color:#7648ab}
html[data-theme=light] .reason-bar meter{background:#e5e9f2}
html[data-theme=light] .reason-bar meter::-webkit-meter-bar{background:#e5e9f2}
html[data-theme=light] .reason-bar meter::-webkit-meter-optimum-value{background:#9470ce}
html[data-theme=light] .reason-bar meter::-moz-meter-bar{background:#9470ce}
html[data-theme=light] .reason-overview>p{color:#66768f}
html[data-theme=light] .tab{color:#63738b}
html[data-theme=light] .tab.active{color:#7043ab;border-bottom-color:#9165cf}
html[data-theme=light] :is(.private-block,.team-permissions article){background:linear-gradient(120deg,#f4eefb,#faf7fd);border-color:#d7c6e6}
html[data-theme=light] .private-block h3{color:#795091}
html[data-theme=light] :is(.private-block p,.team-permissions p){color:#73627e}
html[data-theme=light] :is(.file-link,.evidence-card){background:#f3f6fc;border-color:#c2cee2;color:#506985}
html[data-theme=light] .file-preview{background:#ebe8f4;color:#806297}
html[data-theme=light] .evidence-card>img{background:#eaf0f7}
html[data-theme=light] .evidence-card>span:last-child{color:#475d79}
html[data-theme=light] .evidence-card small{color:#64758b}
html[data-theme=light] :is(.team-member,.team-list){border-color:#d7dfec}
html[data-theme=light] :is(.team-id,.team-identity small,.team-empty){color:#5f6f89}
html[data-theme=light] .team-empty h3{color:#374a67}
html[data-theme=light] .team-help a{color:#7945b2}
html[data-theme=light] .login-panel{background:radial-gradient(circle at 50% 0,#e7ddf7,#fff 70%);border-color:#d5c5e5}
html[data-theme=light] .login-panel>p{color:#68728b}
html[data-theme=light] .login-note{color:#66788e!important}
html[data-theme=light] :is(.login-info,.form-note){background:#edf5f8;border-color:#c6dce5;color:#486d7e}
html[data-theme=light] :is(.error-banner,.form-error){background:#fdecf0;border-color:#e3b3c1;color:#a43d59}
html[data-theme=light] dialog{background:#fff;color:#2d405d;border-color:#c9d3e6;box-shadow:0 20px 80px #23324b33}
html[data-theme=light] dialog::backdrop{background:#22324d75}
html[data-theme=light] .modal-head{border-color:#d9e0ec}
html[data-theme=light] .modal-body>p{color:#61738e}
html[data-theme=light] .modal-actions{background:#f5f7fb;border-color:#d9e0ec}
html[data-theme=light] .field{color:#475e7b}
html[data-theme=light] :is(.field input,.field select,.field textarea,.game-row input,.game-row select){background:#f8fafd;border-color:#c4d0e2;color:#273f5f}
html[data-theme=light] .field small{color:#667b94}
html[data-theme=light] .field-title{border-color:#dce2ee;color:#7e539d}
html[data-theme=light] .check{color:#526784}
html[data-theme=light] .reason-fields{border-color:#d7cbe6}
html[data-theme=light] .reason-fields legend{color:#75548f}
html[data-theme=light] .reason-fields p{color:#63768f}
html[data-theme=light] .reason-fields label{background:#f5f7fc;border-color:#ccd4e4;color:#526582}
html[data-theme=light] .reason-fields label:has(input:checked){background:#eee3fc;border-color:#ae8dcf;color:#673d8f}
html[data-theme=light] .form-step span{color:#708098;border-color:#d6deed}
html[data-theme=light] .form-step span.active{color:#70459c;border-color:#9a73bf}
html[data-theme=light] .attachment-input{background:#f6f1fc;border-color:#baa1d2}
html[data-theme=light] .attachment-input p{color:#736584}
html[data-theme=light] .attachment-preview span{border-color:#c9b8df;color:#775b92}
html[data-theme=light] .success-ring{background:#e6f6ed;border-color:#aad2ba;color:#278156}
html[data-theme=light] :is(.success-panel p,.confirm-grid dt,.receipt-label){color:#63758e}
html[data-theme=light] .receipt{color:#735297;border-color:#c5aedb}
html[data-theme=light] .confirm-grid{border-color:#cbd6e7}
html[data-theme=light] .toast{background:#eee4fc;border-color:#b797d9;color:#623d88;box-shadow:0 8px 28px #47306022}
html[data-theme=light] .prose{color:#576c89}
html[data-theme=light] .prose h3{color:#374d6b}
html[data-theme=light] .demo-strip{background:#f2eafb;border-color:#d9c8e9;color:#775891}
html[data-theme=light] .skip{color:#fff}

html[data-theme=light] .identity-account a{color:#2663a8}
