:root{--eh-surface:#0c1725;--eh-input:#142235;--eh-border:#34475a;--eh-ink:#edf3fa;--eh-muted:#a9bbcd;--eh-code:#acbfd1;--eh-warning:#d4b57d;--eh-danger-bg:#452430;--eh-danger:#ff9bb0}
:root[data-theme="dark"]{color-scheme:dark}:root[data-theme="light"]{color-scheme:light;--bg:#f4f6fa;--panel:#fff;--panel2:#f4f7fb;--border:#d9e2ed;--ink:#182638;--muted:#566b80;--green:#11734e;--yellow:#8b5a0c;--red:#c82b48;--blue:#245fc0;--eh-surface:#f5f8fc;--eh-input:#fff;--eh-border:#cbd7e4;--eh-ink:#182638;--eh-muted:#526a80;--eh-code:#405b72;--eh-warning:#8a5a16;--eh-danger-bg:#fff0f3;--eh-danger:#b91f40}
.theme-switch{white-space:nowrap;min-height:44px;border:1px solid var(--border)!important;border-radius:999px!important;padding:0 16px!important;font-size:14px!important;font-weight:700!important}.monitor-nav-link{font-size:13px;font-weight:700;white-space:nowrap}.error-history-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.error-page{max-width:1500px;margin:0 auto;padding:28px}.error-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.error-page-heading{display:flex;flex-direction:column;gap:2px}.error-page-heading h1,.error-page-heading p{margin:0}.error-page-heading h1{font-size:28px;line-height:1.3}.error-page-heading p{color:var(--muted);font-size:13px;line-height:1.6}.error-page-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.error-back{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 18px;border:1px solid var(--border);border-radius:999px;font-size:14px;font-weight:700}.error-host-tag{display:inline-flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:14px}.error-host-dot{width:7px;height:7px;background:var(--green);border-radius:50%}.error-page .error-history-panel{margin-bottom:0}.error-page .error-intro{display:none}.error-page .error-history-form{margin-top:22px}.error-page .table-scroll{max-height:68vh;overflow:auto}.error-page .error-history-table thead{position:sticky;top:0;z-index:2}.error-page-foot{margin:18px 0;font-size:12px;color:var(--muted);line-height:1.6}
:root[data-theme="light"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="light"] .topbar{background:#fff;border-color:var(--border)}
:root[data-theme="light"] :is(.panel,.metric,.resource-card,.rds-metrics>article){background:#fff;border-color:var(--border);box-shadow:0 3px 14px #1c3a5a05}
:root[data-theme="light"] :is(.metric-icon,.resource-caption,.table-sub,.subtle,.readonly,.metric-sub,.metric-detail,.probe-time,.rds-freshness){color:var(--muted)}
:root[data-theme="light"] :is(.metric-number,.chart-value,.probe-name,h1,h2,h3){color:var(--ink)}
:root[data-theme="light"] :is(.environment,.tag,.readonly,.resource-meta>span,.resource-explanation,.rds-source-note,.rds-history,.rds-history>summary,.traffic-history details details>summary){background:#f1f5fb;color:#38536d;border-color:var(--border)}
:root[data-theme="light"] :is(.health.good,.health.healthy){background:#edf8f1;color:#14613b;border-color:#b7dcc8}
:root[data-theme="light"] .health.unknown{background:#eff3f8;color:#526a80;border-color:var(--border)}
:root[data-theme="light"] :is(.meter,.chart-track){background:#e3ebf3}
:root[data-theme="light"] :is(th,.operation-form input,.operation-form select,.history-form input,.history-form select,.login-panel input){background:#f5f8fc;color:var(--ink);border-color:var(--border)}
:root[data-theme="light"] td{border-color:var(--border)}
:root[data-theme="light"] tbody tr:hover{background:#f3f7fd}
:root[data-theme="light"] :is(.pill,.range-control,.resource-meta>span){background:#edf2f8;color:#38536d;border-color:var(--border)}
:root[data-theme="light"] :is(.pill.warn,.notice,.control-warning){background:#fff8e9;color:#815511;border-color:#ecd9af}
:root[data-theme="light"] :is(.pill.blocked,.form-error){background:#fff0f2;color:#af2240;border-color:#efbdc8}
:root[data-theme="light"] .range-control button{color:#526a80}
:root[data-theme="light"] .range-control button.active{background:#e0f1e8;color:#116644;border-color:#b7dcc8}
:root[data-theme="light"] :is(.capacity-facts,.capacity-facts>div,.rds-facts>div,.facts>div,.detail-heading,.resource-explanation,.resource-card .meter,.rds-sync,.operations>details,.operations>.panel-head:nth-of-type(2),.trend-foot){border-color:var(--border)}
:root[data-theme="light"] .resource-explanation p{color:#526a80}
:root[data-theme="light"] .primary{background:#11734e;color:#fff}
:root[data-theme="light"] .login-wrap{background:var(--bg)}
:root[data-theme="light"] .login-visual{filter:brightness(.8)}
@media(max-width:700px){.error-page{padding:20px 16px}.error-page-head{align-items:flex-start;flex-direction:column;gap:14px}.error-page-actions{width:100%;justify-content:space-between}.error-page-heading h1{font-size:24px}.theme-switch{padding:0 12px!important}.top-meta{gap:10px}.top-meta .monitor-nav-link{display:none}.error-page .table-scroll{max-height:none}.error-page .error-history-form{margin-top:16px}.error-back{padding:0 16px}}

:root[data-theme="light"] .health:not(.unknown):not(.warn):not(.bad){background:#edf8f1;border-color:#b7dcc8;color:#14613b}:root[data-theme="light"] .health.warn{background:#fff8e8;border-color:#e5cd9e;color:#815511}:root[data-theme="light"] .health.bad{background:#fff0f3;border-color:#efbdc8;color:#b91f40}
:root[data-theme="light"] :is(.quiet,.range-control button):hover{background:#eaf0f8;border-color:#b7c9df;color:#182638}:root[data-theme="light"] .primary:hover{background:#0d603e;color:#fff}
:root[data-theme="light"] :is(.operation-form input,.operation-form select,.history-form input,.history-form select){color-scheme:light}
:root[data-theme="light"] .operation-form .scope-check{background:#f1f5fa;border-color:#cbd7e4;color:#405b72}
:root[data-theme="light"] .ip-region{background:#edf4fc;border-color:#c8daef;color:#315e8c}:root[data-theme="light"] .geoip-note a{color:#245fc0}
:root[data-theme="light"] .chart-svg text{fill:#526a80}:root[data-theme="light"] .chart-svg .gridline{stroke:#d5dfeb}:root[data-theme="light"] .chart-svg .cursor{stroke:#637a94}
:root[data-theme="light"] .chart-row:nth-child(1) .series{stroke:#11734e}:root[data-theme="light"] .chart-row:nth-child(2) .series{stroke:#245fc0}:root[data-theme="light"] .chart-row:nth-child(3) .series{stroke:#93600e}
:root[data-theme="light"] .brand-mark{background:#d6f4e6;color:#0e5a3b}:root[data-theme="light"] .signal{background:#f1f8f5;color:#316450;border-color:#b7dcc8}

.login-theme{position:absolute;top:16px;right:24px;z-index:3}@media(max-width:700px){.topbar .brand-light{display:none}.login-theme{right:16px}}
