/* Administrative monochrome theme. Existing success, failure and warning colors remain semantic. */
:root{--side-w:272px}
.sidebar{background:linear-gradient(170deg,#f8f8fa 0%,#f8f8fa 75%,#f8f8fa 100%)!important;border-right:1px solid #e1e2e6!important;color:#25262b!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.side-logo{padding:28px 22px 26px;gap:12px;color:#25262b!important;font-size:22px;letter-spacing:-.5px;white-space:nowrap}
.side-logo .logo-mark{background:linear-gradient(145deg,#aeaeae,#919191)!important;border-radius:12px;color:#fff!important;width:40px;height:44px;box-shadow:0 5px 12px #93939320!important}
.side-logo .logo-mark .ic{width:28px;height:28px}.side-logo .ver{background:none;color:#6e7079!important;padding:0;margin-left:4px;font-size:11px;font-weight:500}
.side-nav{padding:4px 14px 18px;scrollbar-width:thin;scrollbar-color:#6e7079 transparent}.side-acc{margin:0 0 8px}
.side-group{padding:15px 14px!important;min-height:54px;gap:14px;border-radius:12px;font-size:15px;font-weight:600;letter-spacing:0;color:#25262b!important;transition:background .2s,color .2s}
.side-group .ic{width:22px;height:22px;flex-shrink:0;stroke-width:1.7}.side-group:after{width:7px;height:7px;opacity:1;transform:rotate(225deg);margin-right:4px}.side-acc.closed .side-group:after{transform:rotate(-45deg)}
.side-acc.closed .side-group{color:#25262b!important;background:transparent}.side-acc:not(.closed)>.side-group{color:#6e7079!important;background:#f8f8fa}.side-group:hover{background:#f8f8fa!important;color:#6e7079!important}
.side-items{padding:4px 0 0}.side-nav .side-items a{position:relative;min-height:46px;box-sizing:border-box;margin:3px 0;padding:12px 12px 12px 25px;gap:13px;color:#4c4e57!important;background:transparent;font-size:13px;line-height:1.5;border-radius:11px;white-space:normal;box-shadow:none!important}
.side-nav .side-items a .ic{width:19px;height:19px;flex-shrink:0}.side-nav .side-items a:hover{background:#f8f8fa!important;color:#6e7079!important}.side-nav .side-items a.active{background:linear-gradient(100deg,#f8f8fa,#f8f8fa)!important;color:#4c4e57!important;font-weight:600;box-shadow:none!important}
.side-nav a.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:#929292;border-radius:0 4px 4px 0}.side-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 14px!important;margin:0 14px;border-top:1px solid #e1e2e6!important;background:transparent;color:#6e7079!important}
.sidebar-account{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:#25262b}.sidebar-avatar{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(145deg,#f0f1f4,#f0f1f4);color:#6e7079;flex-shrink:0;overflow:hidden}.sidebar-avatar img{width:100%;height:100%;object-fit:cover}.sidebar-avatar .ic{width:25px;height:25px}.sidebar-account-text strong{display:block;font-size:14px;color:#25262b;font-weight:600;max-width:105px;overflow:hidden;text-overflow:ellipsis}.sidebar-account-text small{display:block;font-size:11px;color:#6e7079;margin-top:3px}
.sidebar-collapse{display:flex;align-items:center;gap:4px;border:0;border-left:1px solid #e1e2e6;background:transparent;color:#4c4e57;padding:5px 0 5px 10px;cursor:pointer;white-space:nowrap;font-size:12px}.sidebar-collapse svg{width:20px;height:20px}.sidebar-collapse:hover{color:#6e7079}
@media(min-width:901px){body.sidebar-compact{--side-w:76px}body.sidebar-compact .sidebar{width:76px}body.sidebar-compact .side-logo{padding:26px 18px}body.sidebar-compact .side-logo>span:last-child,body.sidebar-compact .side-group>span,body.sidebar-compact .side-group:after,body.sidebar-compact .side-items,body.sidebar-compact .sidebar-account,body.sidebar-compact .sidebar-collapse>span{display:none}body.sidebar-compact .side-nav{padding:4px 10px}body.sidebar-compact .side-group{padding:16px!important;justify-content:center}body.sidebar-compact .side-foot{justify-content:center;margin:0 8px;padding:18px 0!important}body.sidebar-compact .sidebar-collapse{border:0;padding:5px}body.sidebar-compact .sidebar-collapse svg{transform:rotate(180deg)}}
@media(max-width:900px){:root{--side-w:260px}.sidebar-collapse{display:none}.side-logo{padding-top:24px}}
html[data-theme="dark"] .sidebar{background:#25262b!important;border-color:#25262b!important}html[data-theme="dark"] .side-logo,html[data-theme="dark"] .side-acc.closed .side-group{color:#f3f3f3!important}html[data-theme="dark"] .side-acc:not(.closed)>.side-group{background:#25262b;color:#6e7079!important}html[data-theme="dark"] .side-nav .side-items a{color:#6e7079!important}html[data-theme="dark"] .side-nav .side-items a.active{background:#25262b!important;color:#6e7079!important}html[data-theme="dark"] .sidebar-account-text strong{color:#f3f3f3}

.topbar{min-height:74px!important;padding:0 28px!important;background:linear-gradient(110deg,#f8f8fa 0%,#f8f8fa 100%)!important;border-bottom:1px solid #e1e2e6!important;box-shadow:0 3px 16px rgba(45,94,160,.035)!important;gap:18px!important}.topbar .topbar-brand{display:flex!important;align-items:center;gap:12px;font-size:19px!important;font-weight:700!important;color:#25262b!important;min-width:0;flex:1;margin:0!important;line-height:1.4}.topbar-brand>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-brand-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#f8f8fa,#f0f1f4);color:#6e7079}.topbar-brand-mark .ic{width:21px;height:21px}.topbar-brand small{flex:none;font-size:11px;font-weight:500;color:#6e7079;border-left:1px solid #e1e2e6;padding-left:13px}.topbar .chip{background:#f8f8fa!important;border:1px solid #e1e2e6!important;color:#4c4e57!important;border-radius:20px!important;font-size:12px;padding:7px 12px;white-space:nowrap}.topbar .theme-toggle{border:1px solid #e1e2e6!important;background:#f8f8fa!important;border-radius:11px!important;color:#6e7079!important;width:36px;height:36px}.topbar .user-btn{background:transparent!important;border:none!important;gap:10px;padding:8px!important}.topbar .avatar{background:linear-gradient(135deg,#9c9c9c,#868686)!important;color:#fff!important;width:36px;height:36px;border-radius:12px!important;box-shadow:0 3px 8px #93939320}.topbar .uname{color:#25262b!important;font-size:13px}.topbar .user-id .muted{color:#6e7079!important;font-size:11px}.topbar .user-dd{border:1px solid #e1e2e6;border-radius:12px;box-shadow:0 12px 30px #50505018;background:#f8f8fa}.topbar .side-toggle{border:1px solid #e1e2e6;background:#f8f8fa;color:#4c4e57;border-radius:9px}@media(max-width:1000px){.topbar-brand small{display:none}.topbar{padding:0 18px!important;gap:10px!important}}@media(max-width:650px){.topbar{padding:0 12px!important;min-height:64px!important}.topbar .topbar-brand{font-size:16px!important;gap:8px}.topbar .chip,.topbar .user-id{display:none!important}.topbar-brand-mark{width:30px;height:30px}.topbar .theme-toggle{flex-shrink:0}}

.topbar .topbar-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:36px;padding:0 13px;box-sizing:border-box;border:1px solid #e1e2e6;border-radius:11px;background:#f8f8fa;color:#4c4e57;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}.topbar .topbar-home .ic{width:16px;height:16px}.topbar .topbar-home:hover{background:#f8f8fa;border-color:#e1e2e6;color:#6e7079}.topbar .topbar-home:focus-visible{outline:2px solid #939393;outline-offset:3px}@media(max-width:650px){.topbar .topbar-home{width:34px;padding:0}.topbar .topbar-home span{display:none}}

/* Shared commercial blue-white appearance for every admin screen. */
:root{--primary:#939393;--primary-hover:#828282;--primary-light:#f6f6f6;--bg:#f9f9f9;--card:#fff;--text:#444444;--muted:#9a9a9a;--border:#e1e2e6;--accent:#939393;color-scheme:light}
body{background:#f8f8fa!important;color:#25262b;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
body .content{background:#f8f8fa!important;color:#25262b}
body .content :is(.card,.ai-panel,.op-panel,.act-panel,.mini-card,.style-panel,.banner-panel){background:#f8f8fa!important;border:1px solid #e1e2e6!important;border-radius:15px!important;box-shadow:0 5px 20px rgba(47,91,151,.025)!important}
body .content :is(h1,h2,h3){color:#25262b}
body .content :is(.card-h,.card-header){background:#f8f8fa!important;border-bottom-color:#e1e2e6!important}
body .content :is(.muted,.ai-note,.op-note,.act-sub,.act-note,.help-text,.form-hint){color:#6e7079!important}
body .content :is(.btn-primary,.ai-primary,.op-button:not(.secondary),.act-submit){background:#939393!important;color:#fff!important;border:1px solid #e1e2e6!important;border-radius:9px!important;box-shadow:none!important}
body .content :is(.btn-primary,.ai-primary,.op-button:not(.secondary),.act-submit):hover{background:#828282!important;border-color:#e1e2e6!important}
body .content :is(.btn:not(.btn-primary):not(.btn-danger),.ai-btn,.op-button.secondary){background:#f8f8fa!important;color:#4c4e57!important;border:1px solid #e1e2e6!important;border-radius:8px!important;box-shadow:none!important}
body .content :is(.btn-danger,[data-action*=delete],[data-table-delete],.danger){color:#cf6675!important;background:#fff2f4!important;border-color:#f7dfe5!important}
body .content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){background:#f8f8fa!important;color:#25262b!important;border:1px solid #e1e2e6!important;border-radius:9px!important;box-shadow:none!important;max-width:100%;box-sizing:border-box}
body .content :is(input,select,textarea):focus{outline:2px solid #e0e0e0!important;outline-offset:1px;border-color:#e1e2e6!important}
body .content :is(input[type=checkbox],input[type=radio]){accent-color:#25262b}
body .content input[type=file]{background:#f8f8fa;border:1px dashed #e1e2e6;border-radius:10px;padding:12px;max-width:100%;box-sizing:border-box}
body .content input[type=file]::file-selector-button{background:#f8f8fa;color:#6e7079;border:1px solid #e1e2e6;border-radius:7px;padding:8px 12px;margin-right:12px;cursor:pointer}
body .content :is(table,.ai-table-wrap){border-color:#e1e2e6!important;background:#f8f8fa!important}
body .content table th{background:#f8f8fa!important;color:#6e7079!important;border-color:#e1e2e6!important;font-weight:500}
body .content table td{color:#4c4e57;border-color:#e1e2e6!important}
body .content table tbody tr{background:#f8f8fa!important}body .content table tbody tr:hover{background:#f8f8fa!important}
body .content :is(.badge,.chip,.ai-badge,.review-total){background:#f8f8fa;color:#4c4e57;border-color:#e1e2e6}
body .content :is(.tabs,.model-provider-tabs,.search-bar){border-color:#e1e2e6!important}
body .content :is(.tabs,.model-provider-tabs) :is(a.active,button.active){background:#f8f8fa!important;color:#6e7079!important;border-color:#e1e2e6!important}
body dialog{color:#25262b;background:#f8f8fa!important;border:1px solid #e1e2e6!important;border-radius:18px!important;box-shadow:0 22px 80px #4848482b!important;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px)}
body dialog::backdrop{background:rgba(26,49,81,.28)!important;backdrop-filter:blur(3px)}
body dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f8f8fa!important;color:#25262b!important;border:1px solid #e1e2e6!important;border-radius:9px!important;max-width:100%;box-sizing:border-box}
body dialog :is(.ai-primary,.btn-primary){background:#939393!important;border-color:#e1e2e6!important;color:#fff!important;border-radius:9px!important}
body dialog :is(.ai-btn,.btn:not(.btn-primary)){background:#f8f8fa!important;border:1px solid #e1e2e6!important;color:#4c4e57!important;border-radius:8px!important}
body .content :is(.alert-info,.alert-success){background:#f8f8fa!important;color:#4c4e57!important;border:1px solid #e1e2e6!important}
body .content button:disabled{opacity:.55;cursor:not-allowed}
body .login-wrap{color:#25262b}.login-wrap :is(.login-form,.login-panel,.login-right){background:#f8f8fa!important}.login-wrap input{background:#f8f8fa!important;border-color:#e1e2e6!important;color:#25262b!important}.login-wrap :is(.btn-primary,button[type=submit]){background:linear-gradient(110deg,#808080,#939393)!important;border-color:#e1e2e6!important;color:#fff!important}
@media(max-width:800px){body .content{padding:16px!important}body .content :is(.card,.ai-panel,.op-panel,.act-panel){border-radius:12px!important}body .content table{min-width:600px}body .content :is(.table-wrap,.ai-table-wrap){overflow-x:auto}}

:root{--primary:#202124;--primary-hover:#38393c;--primary-2:#35363a;--primary-rgb:32,33,36;--primary-2-rgb:53,54,58;--primary-light:#f0f0f1;--accent:#202124;--grad:linear-gradient(135deg,#202124,#35363a);--bg:#f4f4f5;--card:#fff;--text:#292a2e;--muted:#7a7c83;--line:#e5e5e7;--border:#e1e2e6}
body,body .content{background:#f8f8fa!important;color:#25262b!important}
body .sidebar,body .topbar{background:#f8f8fa!important;border-color:#e1e2e6!important;box-shadow:none!important}
body .side-logo,body .side-group,body .topbar .topbar-brand,body .topbar .uname{color:#25262b!important}
body .side-logo .logo-mark,body .topbar .avatar{background:#25262b!important;box-shadow:none!important;color:#fff!important}
body .topbar .topbar-brand-mark{background:#f0f1f4!important;color:#25262b!important}
body .side-nav a.active,body .side-nav .side-link.active,body .side-nav a[aria-current=page]{background:#25262b!important;color:#fff!important;box-shadow:none!important;border-color:#25262b!important}
body .side-nav a.active svg,body .side-nav a.active .ic{color:inherit!important}
body .side-nav a:not(.active):hover,body .side-group:hover{background:#f0f1f4!important;color:#25262b!important}
body .content :is(.btn-primary,.ai-primary,.op-button:not(.secondary),.act-submit),body dialog :is(.btn-primary,.ai-primary),body .login-wrap :is(.btn-primary,button[type=submit]){background:#25262b!important;border-color:#25262b!important;color:#fff!important;box-shadow:none!important}
body .content :is(.btn-primary,.ai-primary,.op-button:not(.secondary),.act-submit):hover,body dialog :is(.btn-primary,.ai-primary):hover{background:#25262b!important;border-color:#25262b!important}
body .content :is(.tabs,.model-provider-tabs,.ai-tabs,.op-tabs) :is(a.active,button.active),body .content .service-tabs .active{background:#25262b!important;color:#fff!important;border-color:#25262b!important}
body .content :is(input,select,textarea):focus,body dialog :is(input,select,textarea):focus{outline:2px solid #b6b7bd!important;outline-offset:2px;border-color:#e1e2e6!important}
body .content :is(input[type=checkbox],input[type=radio]),body dialog :is(input[type=checkbox],input[type=radio]){accent-color:#25262b!important}
body .content :is(.op-page,.ir-page,.ex-page,.ai-page,.mini-service-page){color:#25262b!important}
body .content :is(.op-kpi,.ir-kpis>div,.ir-panel,.ex-info,.service-tip,.op-health-foot){background:#f8f8fa!important;border-color:#e1e2e6!important}
body .content :is(.op-kpi strong,.ir-kpis strong,.op-donut-center strong,.op-storage-summary strong,.blue){color:#25262b!important}
body .content :is(.op-kpi-icon,.topbar-brand-mark,.service-label,.service-tip-icon){background:#f0f1f4!important;color:#4c4e57!important}
body .content :is(.ir-rule,.service-tip,.op-health-foot,.ex-info){background:#f8f8fa!important;color:#4c4e57!important;border-color:#e1e2e6!important}
body .content :is(.ir-heading p,.ir-caption,.op-heading p,.op-sub,.op-kpi span,.ir-kpis span,.op-note,.op-metric small,.op-result-counts small,.op-result,.op-health-foot,.ir-filters label){color:#4c4e57!important}
body .content table th{background:#f8f8fa!important;color:#4c4e57!important;border-color:#e1e2e6!important}
body .content table td{color:#4c4e57!important;border-color:#e1e2e6!important}
body .content table tbody tr:hover{background:#f8f8fa!important}
body .content .op-bar{background:#f0f1f4!important}body .content .op-bar i{background:#55575f!important}
body .content .op-rate.low{color:#d58a34!important}body .content .op-rate.low .op-bar i{background:#e3a04e!important}
body .content :is(.alert-success,.ir-success){background:#eff9f4!important;color:#218b65!important;border:1px solid #d5ebdf!important}
body .content :is(.alert-danger,.alert-error,.ir-alert,.op-alert){background:#fff2f3!important;color:#c45465!important;border-color:#f1d7dc!important}
body .content :is(.alert-warning,.warning){background:#fff8ed!important;color:#b77a2d!important;border-color:#f0e1c9!important}
body .content :is(.green,.success,.status-enabled,.topup-status.enabled){color:#23956e!important}
body .content :is(.red,.error){color:#ce5869!important}
body .content .ir-badge.awarded{background:#edf8f2!important;color:#278a67!important}
body .content .ir-badge.pending{background:#f0f1f4!important;color:#4c4e57!important}
body .content .ir-badge:is(.review,.inactive,.orphan){background:#fff5e8!important;color:#bb863b!important}
body .content :is(.btn-danger,[data-action*=delete],[data-table-delete],.danger){color:#c65c6b!important;background:#fff2f4!important;border-color:#efd8de!important}
html[data-theme=dark] body,html[data-theme=dark] body .content{background:#25262b!important;color:#6e7079!important}
html[data-theme=dark] body :is(.sidebar,.topbar),html[data-theme=dark] body .content :is(.card,.op-panel,.op-kpi,.ir-panel,.ir-kpis>div),html[data-theme=dark] body dialog{background:#25262b!important;color:#6e7079!important;border-color:#25262b!important}
html[data-theme=dark] body .content :is(h1,h2,h3),html[data-theme=dark] body :is(.side-logo,.side-group),html[data-theme=dark] body .topbar :is(.topbar-brand,.uname){color:#6e7079!important}
body .sidebar .side-nav .side-items a.active,html[data-theme=dark] body .sidebar .side-nav .side-items a.active{background:#25262b!important;color:#fff!important;border-color:#25262b!important;box-shadow:none!important}
body .sidebar .side-nav a.active:before{background:#25262b!important}
body .content .op-chart svg [stroke="#2878ff"]{stroke:#25262b}body .content .op-chart svg [fill="#2878ff"]{fill:#25262b}

/* Unified canvas for every administrative page, including independent modules. */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) body>.layout,
html:not([data-theme="dark"]) body>.layout>.main,
html:not([data-theme="dark"]) body>.layout>.main>main.content,
html:not([data-theme="dark"]) body>.login-wrap{background:#f8f8fa!important;background-image:none!important}
html:not([data-theme="dark"]) body>.layout>.main>main.content>:is(.ai-admin,.op-page,.ex-page,.ir-page){background:transparent!important}

/* Reward and quota settings share a neutral visual hierarchy. */
body .content :is(.points-page,.limits-page,.rights-page) .points-rule h2,
body .content :is(.points-page,.limits-page,.rights-page) .points-footer h2{color:#25262b!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-rule>p,
body .content :is(.points-page,.limits-page,.rights-page) .points-rule>label,
body .content :is(.points-page,.limits-page,.rights-page) .points-rule>small,
body .content :is(.points-page,.limits-page,.rights-page) .points-input-wrap>span{color:#4c4e57!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-rule-icon{background:#f0f1f4!important;color:#4c4e57!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-input-wrap{background:#f8f8fa!important;border-color:#e1e2e6!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-input-wrap input{background:transparent!important;color:#25262b!important;border:0!important;box-shadow:none!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-info{background:#f0f1f4!important;color:#4c4e57!important;border:1px solid #e1e2e6!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-info strong{color:#4c4e57!important}
body .content :is(.points-page,.limits-page,.rights-page) .points-config-tag{background:#f0f1f4!important;color:#4c4e57!important}
html[data-theme=dark] body .content :is(.points-page,.limits-page,.rights-page) :is(.points-rule h2,.points-footer h2,.points-input-wrap input){color:#6e7079!important}
html[data-theme=dark] body .content :is(.points-page,.limits-page,.rights-page) :is(.points-rule-icon,.points-input-wrap,.points-info){background:#25262b!important;border-color:#25262b!important;color:#6e7079!important}

