:root,
html[data-theme="dark"]{
  color-scheme:dark;
  --site-bg:#08101d;
  --site-panel:#101b2d;
  --site-panel-2:#0d1726;
  --site-line:#26364d;
  --site-text:#eef5ff;
  --site-muted:#91a5bf;
  --site-accent:#1687ff;
  --site-accent-2:#16b8e8;
  --site-input:#091422;
  --site-shadow:0 10px 28px rgba(0,0,0,.18);
}
html[data-theme="light"]{
  color-scheme:light;
  --site-bg:#f4f8fc;
  --site-panel:#ffffff;
  --site-panel-2:#f8fbff;
  --site-line:#d8e2ee;
  --site-text:#10223a;
  --site-muted:#61748d;
  --site-accent:#087af0;
  --site-accent-2:#0d9bc4;
  --site-input:#ffffff;
  --site-shadow:0 10px 28px rgba(29,54,84,.09);
}
html,body{background:var(--site-bg)!important;color:var(--site-text)!important}
body,.shell,.page,.app{transition:background-color .18s ease,color .18s ease}
.panel,.stat,.top,.card,.box,.collapse-content,.compact-card,.patch-form,.auth-card,.portal-card{background:var(--site-panel)!important;color:var(--site-text)!important;border-color:var(--site-line)!important}
input,select,textarea{background:var(--site-input)!important;color:var(--site-text)!important;border-color:var(--site-line)!important}
small,.muted,.subtitle,.help,.hint{color:var(--site-muted)!important}
a{transition:filter .16s ease,transform .16s ease,background-color .16s ease,box-shadow .16s ease}
button,[role="button"],.button,.btn,.actions a,.actions button{transition:filter .16s ease,transform .16s ease,background-color .16s ease,box-shadow .16s ease,border-color .16s ease}
button:not(:disabled):hover,[role="button"]:hover,.button:hover,.btn:hover,.actions a:hover,.actions button:not(:disabled):hover{filter:brightness(1.16);transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.18)}
button:disabled{opacity:.55;cursor:not-allowed}
#globalThemeToggle{position:fixed;top:14px;right:14px;z-index:9999;width:38px;height:38px;border-radius:10px;border:1px solid var(--site-line);background:var(--site-panel);color:var(--site-text);box-shadow:var(--site-shadow);cursor:pointer;font-size:17px;display:grid;place-items:center}
#globalThemeToggle:hover{filter:brightness(1.12);transform:translateY(-1px)}
html[data-dashboard="1"] #globalThemeToggle{top:13px;right:72px}
@media(max-width:720px){#globalThemeToggle{top:10px;right:10px}html[data-dashboard="1"] #globalThemeToggle{right:12px}}
html[data-theme="light"] .identity-panel,
html[data-theme="light"] .manual-identity,
html[data-theme="light"] .identity-grid>div,
html[data-theme="light"] .request-state,
html[data-theme="light"] .report-panel,
html[data-theme="light"] .notes,
html[data-theme="light"] .history-detail-card,
html[data-theme="light"] .fs-v2-empty{background:var(--site-panel-2)!important;color:var(--site-text)!important;border-color:var(--site-line)!important}
html[data-theme="light"] .secondary-button{background:#e7f0fa!important;color:#173a5e!important}
html[data-theme="light"] .outline-button{background:#fff!important;color:#087af0!important;border-color:#8ec2f6!important}
html[data-theme="light"] .problem-button{background:#fff7f8!important;color:#c43c54!important;border-color:#e7a0aa!important}
html[data-theme="light"] .safe-notice{background:#ecfbf6!important;color:#146348!important}
html[data-theme="light"] .safe-notice.warning{background:#fff8e8!important;color:#805b12!important}
