:root {
  --bg: #f3f6f4;
  --panel: #fff;
  --ink: #15201d;
  --muted: #62706c;
  --line: #d9e1de;
  --green: #0e7359;
  --green-dark: #085542;
  --green-soft: #dff1ea;
  --good: #087a55;
  --good-soft: #e4f5ee;
  --warning: #b55f00;
  --warning-soft: #fff1d8;
  --critical: #b52d35;
  --critical-soft: #fde8e9;
  --unknown: #697773;
  --unknown-soft: #edf1ef;
  --offline: #53627a;
  --offline-soft: #e9edf3;
  --nav: #12251f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
aside { position: fixed; inset: 0 auto 0 0; width: 235px; padding: 28px 18px; color: #eef8f4; background: var(--nav); display: flex; flex-direction: column; }
.brand { margin: 0 10px 38px; color: white; font-size: 27px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand small { display: block; margin-top: 2px; color: #74c8ad; font-size: 10px; letter-spacing: .18em; }
nav { display: grid; gap: 7px; }
nav a { padding: 12px; border-radius: 8px; color: #c9d8d3; text-decoration: none; font-weight: 650; }
nav a:hover { background: #203a32; color: white; }
.aside-bottom { margin-top: auto; padding: 12px 10px; color: #aebfba; font-size: 13px; line-height: 1.5; }
.aside-bottom strong { color: white; }
.aside-bottom button { margin-top: 12px; padding: 0; border: 0; color: #93d5bf; background: none; cursor: pointer; }
main { margin-left: 235px; padding: 46px clamp(28px, 5vw, 72px); }
header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h1 { margin: 5px 0 7px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.05; }
p { color: var(--muted); }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 7px; background: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { border-color: var(--green); color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats article, .summary-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.summary-card { position: relative; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.summary-card:hover { transform: translateY(-2px); border-color: #98aaa4; box-shadow: 0 8px 18px rgba(22, 43, 36, .08); }
.summary-card.active { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor, 0 7px 18px rgba(22, 43, 36, .08); }
.stats small, td small { display: block; color: var(--muted); }
.stats strong { display: block; margin-top: 9px; font-size: 30px; }
.health-summary .summary-running { border-color: #b8dccf; background: var(--good-soft); }
.health-summary .summary-running strong { color: var(--good); }
.health-summary .summary-offline { border-color: #cbd3df; background: var(--offline-soft); }
.health-summary .summary-offline strong { color: var(--offline); }
.health-summary .summary-critical { border-color: #efc3c6; background: var(--critical-soft); }
.health-summary .summary-critical strong { color: var(--critical); }
.health-summary .summary-warning { border-color: #ecd3a7; background: var(--warning-soft); }
.health-summary .summary-warning strong { color: var(--warning); }
.health-summary .summary-unknown { background: var(--unknown-soft); }
.health-summary .summary-unknown strong { color: var(--unknown); }
.filterbar { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.filterbar label { flex: 1; }
.filterbar label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filterbar input, .filterbar select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #aebbb7; border-radius: 7px; background: white; font: inherit; }
.search-status { min-width: 88px; align-self: center; color: var(--muted); font-size: 12px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 10px 30px rgba(22, 43, 36, .04); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f8faf9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; color: #096047; background: var(--green-soft); font-size: 12px; font-weight: 750; }
.badge.neutral { color: #52605c; background: #edf1ef; }
.status { margin-bottom: 5px; font-size: 13px; }
.status.ok { color: #08734f; }
.status.warning { color: #a35b00; font-weight: 700; }
.server-link { text-decoration: none; }
.server-link:hover strong { color: var(--green); }
.server-overview table { min-width: 870px; }
.server-overview th, .server-overview td { padding: 14px 12px; }
.server-overview th:nth-child(1) { width: 28%; }
.server-overview th:nth-child(2) { width: 11%; }
.server-overview th:nth-child(3) { width: 17%; }
.server-overview th:nth-child(4) { width: 44%; }
.server-row td { transition: background .15s ease; }
.server-row:hover td { background: #fafcfb; }
.server-row td:first-child { border-left: 4px solid var(--unknown); }
.server-row.health-healthy td:first-child { border-left-color: var(--good); }
.server-row.health-warning td:first-child { border-left-color: var(--warning); }
.server-row.health-critical td:first-child { border-left-color: var(--critical); }
.server-row.health-offline td:first-child { border-left-color: var(--offline); }
.server-identity strong { display: block; font-size: 15px; }
.server-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.copy-ip { min-height: 0; padding: 0; gap: 4px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; line-height: 1.3; }
.copy-ip:hover, .copy-ip:focus-visible { color: var(--green); background: transparent; text-decoration: underline; }
.copy-ip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.copy-ip.copied { color: var(--good); }
.copy-toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 11px 15px; border-radius: 8px; color: white; background: #183a30; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.copy-toast.visible { opacity: 1; transform: translateY(0); }
.server-overview.is-loading { opacity: .55; transition: opacity .15s ease; }
.provider-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.provider-state svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.provider-running { color: var(--good); }
.provider-shutoff, .provider-stopped, .provider-paused { color: var(--offline); }
.provider-blocked { color: var(--critical); }
.overall-health { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.overall-health b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: white; font-size: 12px; }
.signal-healthy { --signal-color: var(--good); color: var(--good); background: var(--good-soft); }
.signal-warning { --signal-color: var(--warning); color: var(--warning); background: var(--warning-soft); }
.signal-critical { --signal-color: var(--critical); color: var(--critical); background: var(--critical-soft); }
.signal-unknown { --signal-color: var(--unknown); color: var(--unknown); background: var(--unknown-soft); }
.signal-offline { --signal-color: var(--offline); color: var(--offline); background: var(--offline-soft); }
.overall-health.signal-healthy b { background: var(--good); }
.overall-health.signal-warning b { background: var(--warning); }
.overall-health.signal-critical b { background: var(--critical); }
.overall-health.signal-unknown b { background: var(--unknown); }
.overall-health.signal-offline b { background: var(--offline); }
.checked-at { display: block; margin-top: 7px; color: var(--muted); }
.health-signals { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 6px; }
.health-signal { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 7px; border-radius: 8px; }
.health-signal > span:last-child { min-width: 0; }
.health-signal strong, .health-signal small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-signal strong { color: var(--ink); font-size: 12px; }
.health-signal small { margin-top: 2px; color: currentColor; font-size: 10px; }
.signal-icon { position: relative; flex: 0 0 auto; width: 24px; height: 24px; }
.signal-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.signal-icon b { position: absolute; right: -4px; bottom: -3px; display: grid; width: 14px; height: 14px; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: var(--signal-color); font-size: 9px; line-height: 1; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs a { padding: 11px 14px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tabs a.active { border-color: var(--green); color: var(--green); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.detail-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.detail-card small, .health-grid small { display: block; color: var(--muted); font-weight: 700; }
.detail-card strong, .health-grid strong { display: block; margin-top: 8px; font-size: 22px; }
.detail-card p, .health-grid p { margin-bottom: 0; }
.detail-panel { padding: 22px; }
.detail-panel h2 { margin: 0 0 18px; font-size: 20px; }
.detail-panel h3 { margin: 26px 0 12px; font-size: 16px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; }
.compact-grid { margin: 20px 0 26px; }
.compact-grid .detail-card { background: #f8faf9; }
.action-panel { margin-bottom: 18px; }
.action-row, .table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.action-row form, .table-actions form { margin: 0; }
.warning-action { border-color: #d69a42; color: #814700; background: var(--warning-soft); }
.warning-action:hover { border-color: var(--warning); }
.danger-action { border-color: #e6a8ac; color: var(--critical); background: var(--critical-soft); }
.danger-action:hover { border-color: var(--critical); }
.text-danger { color: var(--critical); }
.subpanel { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; }
.network-usage { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.compact-table th, .compact-table td { padding: 10px 12px; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form input { width: min(270px, 100%); min-height: 36px; padding: 7px 9px; border: 1px solid #aebbb7; border-radius: 6px; font: inherit; }
.inline-form button { min-height: 36px; padding: 7px 10px; }
.state-badge { padding: 5px 9px; border-radius: 999px; color: var(--warning); background: var(--warning-soft); font-size: 12px; font-weight: 800; }
.state-badge.critical { color: var(--critical); background: var(--critical-soft); }
.structured-form { display: grid; gap: 12px; }
.snapshot-form { grid-template-columns: 1fr 2fr auto auto; align-items: end; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.structured-form label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.structured-form input:not([type="checkbox"]), .structured-form select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #aebbb7; border-radius: 7px; background: white; font: inherit; }
.checkbox-line { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
.checkbox-line input { width: 17px; height: 17px; }
.structured-form fieldset { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.structured-form legend { padding: 0 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.emergency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.state-line { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 12px; border-radius: 8px; background: #f4f7f6; }
.provider-firewall { margin-top: 18px; }
.activity-state { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--unknown-soft); font-size: 12px; font-weight: 800; }
.activity-state.state-succeeded { color: var(--good); background: var(--good-soft); }
.activity-state.state-running, .activity-state.state-queued { color: #155e9a; background: #e7f1fa; }
.activity-state.state-failed, .activity-state.state-needs_reconciliation { color: var(--critical); background: var(--critical-soft); }
.activity-state.state-cancelled { color: var(--offline); background: var(--offline-soft); }
.provider-metrics { margin-top: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.metric-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.metric-title small { color: var(--muted); }
.metric-chart svg { display: block; width: 100%; height: 150px; }
.metric-gridline { stroke: #dfe7e4; stroke-width: 1; }
.metric-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.metric-legend span { display: inline-flex; align-items: center; gap: 5px; }
.metric-legend i { width: 9px; height: 9px; border-radius: 50%; }
.empty-chart { display: grid; min-height: 150px; place-items: center; color: var(--muted); text-align: center; }
.metric-empty { grid-column: 1 / -1; }
.system-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.system-columns h3 { margin: 0 0 10px; }
.system-columns table { border: 1px solid var(--line); }
.monospace { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 700; }
.empty { padding: 40px; color: var(--muted); text-align: center; }
.notice, .message { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #b9dfd2; border-radius: 8px; color: #145f4a; background: #e8f7f1; }
.message.error { border-color: #e3b7b7; color: #8a2525; background: #fff0f0; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--muted); }
.inventory-tools { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.inventory-tools label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.inventory-tools select { min-width: 260px; padding: 10px 36px 10px 12px; border: 1px solid #aebbb7; border-radius: 7px; background: white; font: inherit; }
.provision-toolbar { margin-bottom: 16px; }
.provision-toolbar .inventory-tools { margin-bottom: 0; }
.catalog-age { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.provision-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.provision-tabs a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; text-decoration: none; }
.provision-tabs a:hover { border-color: #9caaa5; }
.provision-tabs a.active { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-soft); }
.provision-tabs strong, .provision-tabs small { display: block; }
.provision-tabs small { margin-top: 4px; color: var(--muted); }
.provision-form { overflow: visible; }
.provision-section { display: grid; grid-template-columns: 38px minmax(180px, 270px) minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-bottom: 1px solid var(--line); }
.provision-section h2 { margin: 2px 0 6px; font-size: 18px; }
.provision-section p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.step-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.provision-fields { display: grid; gap: 14px; align-items: start; }
.provision-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.provision-fields.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.provision-fields label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.provision-fields input:not([type="checkbox"]), .provision-fields select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #aebbb7; border-radius: 7px; background: white; font: inherit; }
.provision-fields label small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.provision-section > .wide { grid-column: 3; margin-top: -4px; }
.provision-fields .checkbox-line { min-height: 42px; align-self: end; }
.provision-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.provision-submit span { color: var(--muted); font-size: 13px; }
.provision-submit button:disabled { cursor: not-allowed; opacity: .45; }
.clone-warning { margin: 22px 24px 0; padding: 16px 18px; border: 1px solid #ecd3a7; border-radius: 8px; color: #704500; background: var(--warning-soft); }
.clone-warning p { margin: 5px 0 0; line-height: 1.5; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 14px; }
.access-layout > :last-child { grid-column: 1 / -1; }
.rollout-form { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.rollout-form small { display: block; margin-top: 5px; color: var(--muted); }
.rollout-form button { justify-self: start; }
.install-steps { margin-top: 18px; color: var(--muted); font-size: 13px; }
.install-steps ol { margin: 8px 0 0; padding-left: 20px; }
.install-steps li { margin: 7px 0; }
.install-steps code { padding: 2px 5px; border-radius: 4px; color: var(--ink); background: #edf2f0; }
.credential-card + .credential-card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.credential-card form { margin-top: 12px; }
.agent-rollout .clone-warning { margin: 0 0 18px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.login { display: grid; place-items: center; padding: 24px; background: #e9efec; }
.login-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 60px rgba(22, 43, 36, .11); }
.login-card h1 { font-size: 38px; }
.login-card label { display: block; margin-bottom: 6px; font-weight: 700; }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid #aebbb7; border-radius: 6px; font: inherit; }
.login-card button { width: 100%; margin-top: 12px; }
.error { margin-bottom: 12px; color: #9f2f2f; }
@media (max-width: 800px) {
  aside { position: static; width: auto; min-height: auto; }
  .brand { margin-bottom: 18px; }
  .aside-bottom { display: none; }
  main { margin-left: 0; padding: 28px 16px; }
  header { align-items: start; flex-direction: column; }
  .filterbar { align-items: stretch; flex-direction: column; }
  .filterbar label:nth-child(2) { max-width: none; }
  .detail-grid, .health-grid, .metric-grid, .system-columns, .snapshot-form, .emergency-grid, .provision-tabs, .provision-section, .provision-fields.two-columns, .provision-fields.three-columns, .access-layout { grid-template-columns: 1fr; }
  .access-layout > :last-child { grid-column: 1; }
  .provision-section > .wide { grid-column: 1; }
  .provision-submit { align-items: stretch; flex-direction: column; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .panel { overflow-x: auto; }
  table { min-width: 760px; }
}
