:root {
  color-scheme: light;
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-secondary: #f1f4f8;
  --color-text: #172033;
  --color-text-muted: #58677d;
  --color-border: #d9e0e9;
  --color-border-strong: #8290a5;
  --color-link: #2457c5;
  --color-link-hover: #183f97;
  --color-hover: #eaf0ff;
  --color-input-bg: #ffffff;
  --color-header: #111c33;
  --color-header-text: #e6edff;
  --color-header-muted: #bdcbe5;
  --color-header-control: #23324d;
  --color-header-border: #71849f;
  --color-sidebar: #ffffff;
  --color-nav-text: #43516a;
  --color-table-header: #f1f4f8;
  --color-button: #2457c5;
  --color-button-text: #ffffff;
  --color-button-hover: #183f97;
  --color-focus: #3868d7;
  --color-header-focus: #a0bfff;
  --color-metric-accent: #94a4bc;
  --color-neutral-bg: #edf2f8;
  --color-neutral-text: #43516a;
  --color-neutral-border: #c7d0dc;
  --color-success-bg: #e9f7f1;
  --color-success-text: #08654d;
  --color-success-border: #b9e2d3;
  --color-warning-bg: #fff6dc;
  --color-warning-text: #805000;
  --color-warning-border: #ead18c;
  --color-error-bg: #fff0ee;
  --color-error-text: #b42318;
  --color-error-border: #f0c3be;
  --color-info-bg: #eaf0ff;
  --color-info-text: #2457c5;
  --color-info-border: #bfd0f2;
  --color-shadow: 0 1px 2px #10182806;
  --color-menu-shadow: 0 8px 28px #111c3326;
  --navy: var(--color-header); --blue: var(--color-link); --line: var(--color-border); --muted: var(--color-text-muted); --ink: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--color-bg); font-size: 14px; line-height: 1.5;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #101722;
  --color-surface: #182233;
  --color-surface-secondary: #202d42;
  --color-text: #edf2fa;
  --color-text-muted: #afbdd0;
  --color-border: #34445b;
  --color-border-strong: #71849f;
  --color-link: #a0bfff;
  --color-link-hover: #c5d8ff;
  --color-hover: #253753;
  --color-input-bg: #111c2c;
  --color-header: #0c1322;
  --color-header-text: #e6edff;
  --color-header-muted: #bdcbe5;
  --color-header-control: #23324d;
  --color-header-border: #71849f;
  --color-sidebar: #141e2e;
  --color-nav-text: #bfcbde;
  --color-table-header: #202d42;
  --color-button: #a0bfff;
  --color-button-text: #111c33;
  --color-button-hover: #c5d8ff;
  --color-focus: #a0bfff;
  --color-header-focus: #a0bfff;
  --color-metric-accent: #7187a8;
  --color-neutral-bg: #26344a;
  --color-neutral-text: #c8d2e2;
  --color-neutral-border: #52647f;
  --color-success-bg: #103d32;
  --color-success-text: #a3ecd0;
  --color-success-border: #28765e;
  --color-warning-bg: #42351b;
  --color-warning-text: #f7d589;
  --color-warning-border: #8b713b;
  --color-error-bg: #49272d;
  --color-error-text: #ffb7b1;
  --color-error-border: #aa6464;
  --color-info-bg: #203956;
  --color-info-text: #aacaff;
  --color-info-border: #4c709c;
  --color-shadow: 0 1px 3px #00000026;
  --color-menu-shadow: 0 12px 32px #00000066;
}
/* No-JS fallback. Keep this token block identical to explicit dark mode. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  --color-bg: #101722;
  --color-surface: #182233;
  --color-surface-secondary: #202d42;
  --color-text: #edf2fa;
  --color-text-muted: #afbdd0;
  --color-border: #34445b;
  --color-border-strong: #71849f;
  --color-link: #a0bfff;
  --color-link-hover: #c5d8ff;
  --color-hover: #253753;
  --color-input-bg: #111c2c;
  --color-header: #0c1322;
  --color-header-text: #e6edff;
  --color-header-muted: #bdcbe5;
  --color-header-control: #23324d;
  --color-header-border: #71849f;
  --color-sidebar: #141e2e;
  --color-nav-text: #bfcbde;
  --color-table-header: #202d42;
  --color-button: #a0bfff;
  --color-button-text: #111c33;
  --color-button-hover: #c5d8ff;
  --color-focus: #a0bfff;
  --color-header-focus: #a0bfff;
  --color-metric-accent: #7187a8;
  --color-neutral-bg: #26344a;
  --color-neutral-text: #c8d2e2;
  --color-neutral-border: #52647f;
  --color-success-bg: #103d32;
  --color-success-text: #a3ecd0;
  --color-success-border: #28765e;
  --color-warning-bg: #42351b;
  --color-warning-text: #f7d589;
  --color-warning-border: #8b713b;
  --color-error-bg: #49272d;
  --color-error-text: #ffb7b1;
  --color-error-border: #aa6464;
  --color-info-bg: #203956;
  --color-info-text: #aacaff;
  --color-info-border: #4c709c;
  --color-shadow: 0 1px 3px #00000026;
  --color-menu-shadow: 0 12px 32px #00000066;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 30; padding: 12px; background: var(--color-surface); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; background: var(--navy); color: var(--color-header-text); }
.site-header a, .site-header .link-button { color: var(--color-header-text); }
.site-header nav[aria-label="Account"] { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.site-header form { margin: 0; }
.brand { display: flex; gap: 12px; text-decoration: none; font-size: 16px; font-weight: 700; }
.brand-company { color: var(--color-header-muted); }
.company-switcher { position: relative; }
.company-switcher summary { cursor: pointer; font-size: 16px; font-weight: 650; padding: 5px 0; }
.company-switcher nav { position: absolute; top: 42px; left: 0; z-index: 10; min-width: 285px; padding: 8px; background: var(--color-surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--color-menu-shadow); }
.company-switcher nav a { display: flex; justify-content: space-between; gap: 20px; padding: 10px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.company-switcher nav a:hover, .company-switcher nav a.current { background: var(--color-hover); color: var(--blue); }
.company-switcher nav span { font-size: 11px; align-self: center; }
.app-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { background: var(--color-sidebar); border-right: 1px solid var(--line); padding: 24px 14px; }
.navigation > summary { display: none; cursor: pointer; font-weight: 650; }
.navigation nav a { display: block; padding: 8px 12px; border-radius: 5px; color: var(--color-nav-text); text-decoration: none; }
.navigation nav a:hover, .navigation nav a[aria-current] { color: var(--blue); background: var(--color-hover); }
.nav-label { margin: 25px 12px 7px; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
main { min-width: 0; width: 100%; max-width: 1600px; margin-inline: auto; padding: 32px clamp(20px, 3vw, 44px) 60px; }
.public-layout main { max-width: 720px; padding-top: 70px; }
h1 { margin: 4px 0 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
h2 { margin: 4px 0 12px; font-size: 21px; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 16px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede, .muted { color: var(--muted); }
.lede { margin: 0; }
.page-heading { margin-bottom: 32px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading .muted { font-size: 12px; }
.section-tabs { display: flex; gap: 22px; padding: 0 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.inventory-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 102px; padding: 16px; background: var(--color-surface); border: 1px solid var(--line); border-top: 3px solid var(--color-metric-accent); border-radius: 7px; text-decoration: none; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { color: var(--ink); font-size: 28px; line-height: 1; font-weight: 650; }
a.metric:hover { border-color: var(--blue); }
.card, .login-card { background: var(--color-surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: var(--color-shadow); }
.login-card { max-width: 470px; margin: 0 auto; padding: 30px; }
.login-card h1 { font-size: 28px; }
.login-card p { color: var(--muted); }
.attention ul { list-style: none; padding: 0; margin: 18px 0 0; }
.attention li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 9px 0; color: var(--color-nav-text); }
.attention strong { min-width: 28px; text-align: center; background: var(--color-neutral-bg); border-radius: 4px; }
.operations { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.snapshot-panel { display: flex; align-items: center; gap: 15px; background: var(--color-surface); border: 1px solid var(--line); border-radius: 7px; padding: 12px 16px; margin: 16px 0; }
.snapshot-panel small { color: var(--muted); }
.status { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; background: var(--color-neutral-bg); white-space: nowrap; }
.status-good { background: var(--color-success-bg); color: var(--color-success-text); border: 1px solid var(--color-success-border); }
.status-bad { background: var(--color-error-bg); color: var(--color-error-text); border: 1px solid var(--color-error-border); }
.status-warning { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid var(--color-warning-border); }
.notice { padding: 12px 15px; background: var(--color-warning-bg); color: var(--color-warning-text); border-radius: 5px; font-size: 13px; }
.server-grid, .detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 20px 0; }
.server-grid .muted { font-size: 12px; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0 0; }
.facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.compact { grid-template-columns: repeat(4,1fr); }
.facts.compact dd { font-size: 22px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: var(--color-surface); border: 1px solid var(--line); padding: 16px; border-radius: 7px; margin: 20px 0; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--color-nav-text); }
input, select, textarea { max-width: 100%; border: 1px solid var(--color-border-strong); padding: 8px 10px; border-radius: 5px; font: inherit; background: var(--color-input-bg); color: var(--ink); }
.login-card label { margin: 16px 0; }
.primary-button { display: inline-block; padding: 9px 16px; background: var(--color-button); color: var(--color-button-text); border: 0; border-radius: 5px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
a.primary-button:hover, button.primary-button:hover { color: var(--color-button-text); background: var(--color-button-hover); }
.login-card .primary-button { width: 100%; text-align: center; margin-top: 16px; }
.link-button { padding: 0; border: 0; font: inherit; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; }
.table-wrap { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 12px 16px; background: var(--color-table-header); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; max-width: 320px; overflow-wrap: anywhere; }
td small { display: block; margin-top: 5px; color: var(--muted); }
.empty-state { padding: 30px; color: var(--muted); background: var(--color-surface); }
.pagination { display: flex; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.form-error { color: var(--color-error-text); background: var(--color-error-bg); padding: 10px; }
@media(max-width: 1200px) { .metrics, .inventory-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .server-grid { grid-template-columns: 1fr; } }
@media(max-width: 800px) { .app-layout { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 20px; } .navigation > summary { display: list-item; } .navigation nav { padding-top: 15px; } .site-header { padding: 12px 20px; flex-wrap: wrap; gap: 10px; } .site-header nav[aria-label="Account"] { gap: 12px; font-size: 12px; } .detail-grid { grid-template-columns: 1fr; } .section-heading { flex-wrap: wrap; } main { padding: 24px 18px 40px; } }
@media(max-width: 480px) { .metrics, .inventory-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .facts { grid-template-columns: 1fr; } .facts.compact { grid-template-columns: repeat(2,1fr); } .snapshot-panel { align-items: flex-start; } .filters label { width: 100%; } }

/* Shared controls and semantic surfaces, including pages without specialized classes. */
.server-observations { margin-top: 32px; }
.operational-server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.operational-server-card { min-width: 0; overflow-wrap: anywhere; }
.server-card-facts { margin: 12px 0; }
.server-card-facts > div { margin-bottom: 10px; }
.server-card-facts dt { color: var(--muted); font-size: 12px; }
.server-card-facts dd { margin: 3px 0 0; }
.root-usage { display: flex; align-items: center; gap: 12px; }
.usage-dial { width: 80px; height: 80px; flex: 0 0 80px; }
.usage-dial circle { fill: none; stroke-width: 4; }
.usage-track { stroke: var(--line); }
.usage-fill { stroke: var(--ink); }
[hidden] { display: none !important; }
.theme-control { flex-direction: row; align-items: center; gap: 8px; color: var(--color-header-muted); white-space: nowrap; }
.theme-control select { width: 94px; min-height: 36px; padding: 6px 8px; background: var(--color-header-control); border-color: var(--color-header-border); color: var(--color-header-text); color-scheme: dark; cursor: pointer; }
.site-header :focus-visible { outline-color: var(--color-header-focus); }
.site-header nav[aria-label="Account"] > span { overflow-wrap: anywhere; }
.company-switcher nav { min-width: min(285px, calc(100vw - 40px)); }
.navigation nav a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 var(--blue); }
tbody tr:hover { background: var(--color-hover); }
textarea { min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; color: var(--muted); background: var(--color-surface-secondary); }
.status { color: var(--color-neutral-text); border: 1px solid var(--color-neutral-border); }
.status-good { color: var(--color-success-text); border-color: var(--color-success-border); }
.status-warning { color: var(--color-warning-text); border-color: var(--color-warning-border); }
.status-bad { color: var(--color-error-text); border-color: var(--color-error-border); }
.status-info { color: var(--color-info-text); background: var(--color-info-bg); border-color: var(--color-info-border); }
.notice { border: 1px solid var(--color-warning-border); }
.form-error, .errorlist { color: var(--color-error-text); background: var(--color-error-bg); border: 1px solid var(--color-error-border); border-radius: 5px; }
.login-card .form-error { color: var(--color-error-text); }
.errorlist { padding: 12px 12px 12px 30px; }
code, pre { background: var(--color-surface-secondary); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
code { padding: 2px 5px; overflow-wrap: anywhere; }
pre { padding: 14px; overflow-x: auto; }
pre code { padding: 0; border: 0; background: transparent; }
fieldset { border: 1px solid var(--line); border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; }
.pagination { flex-wrap: wrap; align-items: center; }
.pagination a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--color-surface); }
.pagination a:hover { background: var(--color-hover); }
@media(max-width: 480px) {
  .site-header nav[aria-label="Account"] { width: 100%; gap: 10px 14px; }
  .theme-control { margin-right: auto; }
  .brand { flex-wrap: wrap; }
  .snapshot-panel { flex-wrap: wrap; }
  .section-tabs { flex-wrap: wrap; gap: 12px; }
}
