@font-face {
  font-family: "DM Sans";
  src: url("/admin/assets/dm-sans-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-950: #041326;
  --navy-900: #071d3a;
  --navy-850: #0a2447;
  --navy-800: #102e55;
  --ink: #071d3a;
  --muted: #71829c;
  --muted-strong: #536783;
  --page: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #dbe4ee;
  --line-strong: #cbd8e6;
  --orange: #ff6500;
  --orange-dark: #d94f00;
  --orange-soft: #fff1e8;
  --green: #12a660;
  --green-soft: #eaf8f1;
  --amber: #d99100;
  --amber-soft: #fff8e6;
  --red: #d33c30;
  --red-soft: #fff0ee;
  --shadow: 0 12px 35px rgba(7, 29, 58, 0.06);
  --sidebar-width: 218px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(255, 101, 0, 0.3);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.sidebar {
  background: var(--navy-950);
  color: #dbe8f5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 20px 12px 16px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
  z-index: 50;
}

.brand {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 68px;
  padding: 0 8px 15px;
  text-decoration: none;
}

.brand img { height: 52px; object-fit: contain; width: 52px; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-size: 20px; font-weight: 760; letter-spacing: -.5px; }
.brand-name strong { color: var(--orange); }
.brand-product { color: #9ec3ec; font-size: 10px; font-weight: 750; letter-spacing: .28em; }

.nav-list { display: grid; gap: 6px; margin-top: 20px; }

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #bed0e3;
  cursor: pointer;
  display: flex;
  font-weight: 620;
  gap: 13px;
  min-height: 46px;
  padding: 0 14px;
  position: relative;
  text-align: left;
  transition: background .18s ease, color .18s ease;
  width: 100%;
}

.nav-item i { font-size: 21px; }
.nav-item:hover { background: rgba(255,255,255,.065); color: #fff; }
.nav-item.is-active { background: #123357; color: #fff; }
.nav-item.is-active::before {
  background: var(--orange);
  border-radius: 0 4px 4px 0;
  content: "";
  height: 28px;
  left: -12px;
  position: absolute;
  width: 4px;
}

.operator-card {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  margin-top: auto;
  padding: 16px 6px 0;
}

.operator-avatar {
  align-items: center;
  background: var(--orange);
  border-radius: 10px;
  color: var(--navy-950);
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.operator-copy { display: grid; min-width: 0; }
.operator-copy b { color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-copy small { color: #82a0c1; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sidebar-signout { color: #dceafb; }
.sidebar-signout:hover { background: rgba(255,255,255,.08); }

.main-shell { margin-left: var(--sidebar-width); min-height: 100vh; }

.topbar {
  align-items: center;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  height: 86px;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.page-heading { align-items: center; display: flex; gap: 12px; }
.page-heading h1 { font-size: 25px; letter-spacing: -.8px; line-height: 1.05; margin: 0; }
.page-heading p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.mobile-menu { display: none; }

.topbar-actions { align-items: center; display: flex; gap: 18px; }
.environment-control {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: default;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  height: 43px;
  padding: 0 15px;
}
.environment-control i { font-size: 18px; }

.health-lockup {
  align-items: center;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-width: 188px;
  padding-left: 18px;
}
.health-lockup > span:last-child, .clock-lockup { display: grid; }
.health-lockup b { font-size: 13px; }
.health-lockup small, .clock-lockup small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.status-dot {
  background: #95a5b7;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}
.status-dot.is-healthy { background: var(--green); box-shadow: 0 0 0 3px rgba(18,166,96,.12); }
.status-dot.is-warning { background: var(--amber); box-shadow: 0 0 0 3px rgba(217,145,0,.12); }
.status-dot.is-danger { background: var(--red); box-shadow: 0 0 0 3px rgba(211,60,48,.12); }
.status-dot.is-loading { animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: .35; transform: scale(.78); } }

.primary-button {
  align-items: center;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 9px;
  height: 44px;
  justify-content: center;
  padding: 0 18px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.primary-button:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.primary-button i { font-size: 19px; }

.clock-lockup { border-left: 1px solid var(--line); min-width: 100px; padding-left: 18px; }
.clock-lockup b { font-size: 12px; }

.content { margin: 0 auto; max-width: 1500px; padding: 20px 28px 36px; }

.loading-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 65vh;
}
.spinner {
  animation: spin .75s linear infinite;
  border: 3px solid var(--line);
  border-radius: 50%;
  border-top-color: var(--orange);
  height: 28px;
  width: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.metrics-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  min-height: 108px;
  padding: 18px 0;
}

.metric {
  align-items: center;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 0 18px;
}
.metric:last-child { border-right: 0; }
.metric-icon {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-strong);
  display: inline-flex;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.metric-copy { display: grid; min-width: 0; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-value { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-note { color: var(--muted); font-size: 11px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-note .warning-text { color: var(--orange-dark); font-weight: 700; }

.overview-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); }

.attention-list { display: grid; }
.attention-item {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-height: 62px;
  padding: 10px 18px;
  text-align: left;
  width: 100%;
}
.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: var(--surface-soft); }
.attention-item > i:first-child { align-items: center; background: var(--amber-soft); border-radius: 8px; color: var(--amber); display: inline-flex; font-size: 18px; height: 34px; justify-content: center; width: 34px; }
.attention-item.is-danger > i:first-child { background: var(--red-soft); color: var(--red); }
.attention-item > span { display: grid; gap: 2px; min-width: 0; }
.attention-item b { font-size: 11px; }
.attention-item small { color: var(--muted); font-size: 10px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-item > i:last-child { color: var(--muted); }
.attention-clear, .performance-empty { align-items: center; display: flex; gap: 12px; min-height: 145px; padding: 24px; }
.attention-clear > i, .performance-empty > i { color: var(--green); font-size: 30px; }
.attention-clear > span, .performance-empty > span { display: grid; gap: 4px; }
.attention-clear small, .performance-empty small { color: var(--muted); font-size: 11px; }
.performance-empty > i { color: var(--muted); }

.performance-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 18px 8px; }
.performance-summary > span { border-right: 1px solid var(--line); display: grid; gap: 3px; padding: 0 14px; }
.performance-summary > span:first-child { padding-left: 0; }
.performance-summary > span:last-child { border-right: 0; }
.performance-summary small { color: var(--muted); font-size: 9px; }
.performance-summary b { font-size: 16px; }
.traffic-chart { align-items: end; display: flex; gap: 5px; height: 72px; padding: 8px 18px 0; }
.traffic-column { align-items: end; display: flex; flex: 1 1 0; height: 100%; }
.traffic-column > i { background: #82aee1; border-radius: 3px 3px 0 0; display: block; min-height: 5px; transition: height .2s ease; width: 100%; }
.traffic-column.has-errors > i { background: var(--orange); }
.traffic-column.is-empty > i { background: #e7edf4; min-height: 2px; }
.chart-legend { color: var(--muted); display: flex; font-size: 9px; gap: 14px; padding: 8px 18px 14px; }
.chart-legend span { align-items: center; display: flex; gap: 5px; }
.legend-dot { background: #82aee1; border-radius: 50%; height: 7px; width: 7px; }
.legend-dot.is-error { background: var(--orange); }

.capacity-header, .capacity-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(150px, 1fr) 108px minmax(190px, 1.25fr) minmax(190px, 1.25fr) minmax(145px, .9fr);
  min-width: 920px;
  padding: 0 18px;
}
.capacity-header, .app-capacity-header { color: var(--muted); font-size: 10px; font-weight: 750; height: 43px; text-transform: uppercase; }
.capacity-row { border-top: 1px solid var(--line); min-height: 76px; }
.capacity-row .provider-identity > span:last-child, .app-capacity-row .application-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
.capacity-row .provider-identity small, .app-capacity-row .application-identity small { color: var(--muted); font-size: 9px; font-weight: 550; }
.capacity-cell, .capacity-unknown, .performance-cell { display: grid; gap: 5px; min-width: 0; }
.capacity-cell > span:first-child, .capacity-unknown, .performance-cell { gap: 2px; }
.capacity-cell b, .capacity-unknown b, .performance-cell b { font-size: 11px; }
.capacity-cell small, .capacity-unknown small, .performance-cell small { color: var(--muted); display: block; font-size: 9px; line-height: 1.35; }
.capacity-track { background: #e9eff6; border-radius: 99px; display: block; height: 5px; overflow: hidden; width: 100%; }
.capacity-track > i { background: var(--muted); display: block; height: 100%; }
.capacity-track > i.is-healthy { background: var(--green); }
.capacity-track > i.is-warning { background: var(--amber); }
.capacity-track > i.is-danger { background: var(--red); }
.capacity-unknown b { color: var(--muted-strong); }

.app-capacity-table { max-height: 306px; overflow-y: auto; }
.app-capacity-header, .app-capacity-row { align-items: center; display: grid; gap: 15px; grid-template-columns: minmax(135px, .9fr) minmax(145px, 1fr) minmax(145px, 1fr); min-width: 480px; padding: 0 16px; }
.app-capacity-row { border-top: 1px solid var(--line); min-height: 65px; }
.app-capacity-row .application-identity { overflow: hidden; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel.is-full { grid-column: 1 / -1; }
.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 69px;
  padding: 14px 18px;
}
.panel-title h2 { font-size: 16px; letter-spacing: -.25px; margin: 0; }
.panel-title p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }

.secondary-button {
  align-items: center;
  background: #fff;
  border: 1px solid #ff9c62;
  border-radius: 7px;
  color: var(--orange-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 7px;
  height: 35px;
  padding: 0 12px;
}
.secondary-button:hover { background: var(--orange-soft); }
.secondary-button.is-neutral { border-color: var(--line-strong); color: var(--ink); }

.route-table-header, .route-row {
  align-items: center;
  display: grid;
  grid-template-columns: 100px minmax(115px, 1fr) 66px minmax(130px, 1.05fr) 94px;
  min-width: 540px;
  padding: 0 18px;
}
.route-table-header { color: var(--muted); font-size: 10px; font-weight: 700; height: 43px; }
.route-row { border-top: 1px solid var(--line); min-height: 91px; }
.route-row:first-child { border-top: 0; }
.route-alias {
  background: #edf2f8;
  border-radius: 7px;
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  padding: 9px 8px;
  width: 78px;
}
.route-policy, .provider-model, .route-status { display: grid; gap: 2px; }
.route-policy b, .provider-model b { font-size: 12px; }
.route-policy small, .provider-model small, .route-status small { color: var(--muted); font-size: 11px; }
.route-flow {
  align-items: center;
  color: var(--orange);
  display: flex;
  min-width: 76px;
}
.route-flow::before { background: var(--orange); content: ""; height: 2px; width: 56px; }
.route-flow i { font-size: 17px; margin-left: -2px; }
.provider-model {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
}
.provider-name { align-items: center; display: flex; gap: 8px; }
.provider-monogram {
  align-items: center;
  background: var(--navy-900);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  text-transform: uppercase;
  width: 24px;
}
.route-status > span { align-items: center; color: var(--green); display: flex; font-size: 11px; font-weight: 700; gap: 7px; }
.route-status.is-warning > span { color: var(--amber); }

.provider-table-header, .provider-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(105px, 1.2fr) minmax(86px, .85fr) 68px 78px 18px;
  min-width: 390px;
  padding: 0 12px;
}
.provider-table-header { color: var(--muted); font-size: 10px; font-weight: 700; height: 43px; }
.provider-row { border-top: 1px solid var(--line); min-height: 70px; }
.provider-row:first-child { border-top: 0; }
.provider-identity { align-items: center; display: flex; font-size: 12px; font-weight: 750; gap: 9px; min-width: 0; }
.provider-status { align-items: center; display: flex; font-size: 11px; font-weight: 700; gap: 7px; }
.provider-status.is-healthy { color: var(--green); }
.provider-status.is-warning { color: var(--amber); }
.provider-status.is-muted { color: var(--muted); }
.provider-meta { color: var(--muted-strong); font-size: 11px; }
.provider-alert {
  align-items: center;
  background: var(--orange-soft);
  border: 1px solid #ffc39e;
  border-radius: 8px;
  color: var(--orange-dark);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 12px;
  min-height: 56px;
  padding: 10px 12px;
}
.provider-alert > div { align-items: center; display: flex; gap: 9px; }
.provider-alert i { font-size: 20px; }
.provider-alert span { display: grid; }
.provider-alert b { font-size: 11px; }
.provider-alert small { color: #986142; font-size: 10px; }
.provider-alert.is-success { background: var(--green-soft); border-color: #bdebd3; color: #087d47; }
.provider-alert.is-success small { color: #4f7563; }

.data-table { overflow-x: auto; }
.activity-header, .activity-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 164px 116px 112px minmax(180px, 1.3fr) 105px 88px 82px 20px;
  min-width: 920px;
  padding: 0 18px;
}
.activity-header { color: var(--muted); font-size: 10px; font-weight: 700; height: 45px; }
.activity-row { border-top: 1px solid var(--line); min-height: 45px; }
.activity-row > span { color: var(--muted-strong); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .success { align-items: center; color: var(--green); display: flex; font-weight: 700; gap: 7px; }
.activity-row .failed { align-items: center; color: var(--red); display: flex; font-weight: 700; gap: 7px; }
.activity-row .table-route { background: #edf2f8; border-radius: 5px; color: var(--ink); font-family: ui-monospace, monospace; font-weight: 700; padding: 4px 7px; width: fit-content; }

.empty-state { color: var(--muted); padding: 42px 22px; text-align: center; }
.empty-state i { color: #aab8c9; display: block; font-size: 28px; margin-bottom: 9px; }
.empty-state b { color: var(--ink); display: block; margin-bottom: 4px; }
.empty-state p { font-size: 12px; margin: 0 auto; max-width: 420px; }

.view-intro {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 4px 0 18px;
}
.view-intro .eyebrow, .auth-card .eyebrow { color: var(--orange); font-size: 10px; font-weight: 850; letter-spacing: .18em; margin: 0 0 8px; }
.view-intro h2 { font-size: 25px; letter-spacing: -.6px; margin: 0; }
.view-intro p { color: var(--muted); margin: 5px 0 0; }

.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.detail-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; min-height: 60px; padding: 12px 16px; }
.search-field { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); display: flex; gap: 8px; max-width: 310px; padding: 0 12px; width: 100%; }
.search-field input { background: transparent; border: 0; height: 36px; min-width: 0; outline: 0; width: 100%; }

.generic-header, .generic-row { align-items: center; display: grid; gap: 14px; min-width: 760px; padding: 0 18px; }
.generic-header { color: var(--muted); font-size: 10px; font-weight: 750; height: 44px; text-transform: uppercase; }
.generic-row { border-top: 1px solid var(--line); min-height: 64px; }
.generic-row > * { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.routes-grid { grid-template-columns: 130px 130px 130px minmax(250px, 1fr) 110px; }
.providers-grid { grid-template-columns: 160px 110px minmax(220px, 1fr) 160px 120px 80px; }
.provider-config-grid { grid-template-columns: 120px 100px minmax(135px, 1.05fr) minmax(105px, .75fr) 75px 82px 105px 92px; min-width: 1040px; }
.provider-config-grid code { color: var(--navy-900); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.provider-key-link { align-items: center; color: var(--orange); display: inline-flex; font-size: 11px; font-weight: 750; gap: 5px; text-decoration: none; }
.provider-key-link:hover { text-decoration: underline; }
.provider-local-label { color: var(--muted); font-size: 11px; }
.provider-actions { align-items: flex-start; display: flex; flex-direction: column; gap: 6px; }
.provider-secret-button { background: transparent; border: 0; color: var(--navy-800); cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; padding: 0; text-decoration: underline; text-decoration-color: #cad5e2; text-underline-offset: 3px; }
.provider-secret-button:hover { color: var(--orange); text-decoration-color: var(--orange); }
.provider-secret-button:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.form-error.is-success { color: var(--green); }
.provider-setup-note { align-items: flex-start; background: #fff8f1; border: 1px solid #ffd5b6; border-radius: 12px; display: flex; gap: 12px; margin-bottom: 14px; padding: 14px 16px; }
.provider-setup-note > i { color: var(--orange); font-size: 22px; margin-top: 1px; }
.provider-setup-note strong { color: var(--navy); display: block; font-size: 12px; margin-bottom: 3px; }
.provider-setup-note p { color: var(--muted-strong); font-size: 11px; line-height: 1.55; margin: 0; }
.provider-setup-note code { background: rgba(255, 101, 0, .08); border-radius: 4px; color: #a74400; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; padding: 1px 4px; }
.apps-grid { grid-template-columns: minmax(155px, 1.1fr) 90px 100px minmax(180px, 1.35fr) 124px 124px minmax(220px, 1.35fr); min-width: 1100px; }
.application-identity { align-items: center; display: flex; gap: 10px; }
.application-identity > span:last-child { display: grid; min-width: 0; }
.application-identity small { color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 2px; }
.application-status { align-items: center; display: flex; gap: 7px; }
.application-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; overflow: visible !important; white-space: normal !important; }
.table-action { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--navy-800); cursor: pointer; font-size: 10px; font-weight: 750; min-height: 30px; padding: 0 9px; }
.table-action:hover { background: var(--surface-soft); border-color: #9cb1c9; }
.table-action.is-warning { border-color: #f0c271; color: #956000; }
.table-action.is-danger { border-color: #efb7b2; color: var(--red); }
.key-summary { color: var(--muted-strong); font-size: 10px; margin-left: 4px; }
.logs-grid { grid-template-columns: 165px 120px 100px 110px minmax(180px, 1fr) 90px 90px; }
.status-pill { border-radius: 999px; display: inline-flex; font-size: 10px !important; font-weight: 800; justify-content: center; padding: 5px 9px; width: fit-content; }
.status-pill.healthy { background: var(--green-soft); color: #087d47; }
.status-pill.warning { background: var(--amber-soft); color: #9e6800; }
.status-pill.muted { background: #edf2f7; color: var(--muted-strong); }
.status-pill.danger { background: var(--red-soft); color: var(--red); }

.usage-layout { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usage-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 18px; }
.usage-card small { color: var(--muted); font-weight: 650; }
.usage-card strong { display: block; font-size: 28px; letter-spacing: -.8px; margin-top: 8px; }
.usage-card p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.usage-breakdown { grid-column: 1 / -1; }

.settings-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.settings-section { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 20px; }
.settings-section h3 { font-size: 16px; margin: 0 0 5px; }
.settings-section > p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.definition-list { margin: 0; }
.definition-row { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 150px minmax(0, 1fr); padding: 13px 0; }
.definition-row:first-child { border-top: 0; }
.definition-row dt { color: var(--muted); font-size: 11px; }
.definition-row dd { font-size: 12px; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.security-note { align-items: flex-start; background: var(--green-soft); border: 1px solid #bdebd3; border-radius: 8px; color: #17623f; display: flex; gap: 10px; padding: 13px; }
.security-note i { font-size: 20px; }
.security-note p { font-size: 11px; line-height: 1.55; margin: 0; }

.auth-dialog {
  background: transparent;
  border: 0;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100%;
}
.auth-dialog::backdrop { background: rgba(4,19,38,.72); backdrop-filter: blur(5px); }
.auth-dialog[open] { align-items: center; display: flex; justify-content: center; }
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 24px 70px rgba(2, 16, 34, .28);
  display: flex;
  flex-direction: column;
  margin: 24px;
  max-width: 440px;
  padding: 34px;
  width: 100%;
}
.auth-card img { align-self: flex-start; height: 62px; margin-bottom: 20px; object-fit: contain; width: 62px; }
.auth-card h2 { font-size: 27px; letter-spacing: -.7px; margin: 0; }
.auth-card > p:not(.eyebrow):not(.form-error) { color: var(--muted); line-height: 1.55; margin: 8px 0 22px; }
.auth-card label { font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.key-field { align-items: center; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; display: grid; gap: 8px; grid-template-columns: 20px minmax(0,1fr) 34px; padding: 0 10px; }
.key-field > i { color: var(--muted); }
.key-field input { background: transparent; border: 0; height: 45px; min-width: 0; outline: 0; }
.key-field button { background: transparent; border: 0; color: var(--muted); cursor: pointer; height: 32px; }
.form-error { color: var(--red); font-size: 11px; min-height: 18px; margin: 8px 0 2px; }
.auth-submit { justify-content: space-between; width: 100%; }
.auth-note { align-items: center; color: var(--muted); display: flex; gap: 6px; justify-content: center; margin-top: 14px; }

.secret-dialog { background: transparent; border: 0; margin: auto; max-width: 520px; padding: 0; width: calc(100% - 32px); }
.secret-dialog::backdrop { background: rgba(4,19,38,.72); backdrop-filter: blur(5px); }
.secret-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 24px 70px rgba(2,16,34,.28); display: flex; flex-direction: column; padding: 28px; }
.secret-card-header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.secret-card-header h2 { font-size: 23px; letter-spacing: -.5px; margin: 2px 0 0; }
.secret-card > p:not(.eyebrow):not(.form-error) { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 20px; }
.secret-card > label { font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.secret-card-actions { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.danger-button { align-items: center; background: var(--red-soft); border: 1px solid #f3c1bc; border-radius: 8px; color: var(--red); cursor: pointer; display: inline-flex; font: inherit; font-size: 11px; font-weight: 750; gap: 7px; min-height: 40px; padding: 0 13px; }
.danger-button[hidden] { display: none; }

.application-dialog { max-width: 780px; }
.application-form { max-height: calc(100vh - 36px); overflow-y: auto; }
.application-form-grid, .budget-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { display: grid; gap: 7px; }
.form-field > span, .policy-options legend, .route-selector legend, .budget-grid legend { color: var(--ink); font-size: 12px; font-weight: 750; }
.form-field input, .form-field select { background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); height: 43px; min-width: 0; padding: 0 11px; width: 100%; }
.form-field input:disabled { color: var(--muted); cursor: not-allowed; }
.form-field small { color: var(--muted); font-size: 10px; }
.policy-options, .route-selector, .budget-grid { border: 1px solid var(--line); border-radius: 9px; margin: 16px 0 0; padding: 13px; }
.policy-options { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.policy-options legend, .route-selector legend, .budget-grid legend { padding: 0 6px; }
.budget-grid legend small { color: var(--muted); font-weight: 500; margin-left: 5px; }
.switch-row { align-items: flex-start; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; gap: 9px; padding: 10px; }
.switch-row input { accent-color: var(--orange); margin-top: 2px; }
.switch-row span { display: grid; gap: 2px; }
.switch-row b { font-size: 11px; }
.switch-row small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.route-selector > p { color: var(--muted); font-size: 10px; margin: 0 0 10px; }
.route-checkboxes { display: flex; flex-wrap: wrap; gap: 7px; }
.route-checkbox { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; display: inline-flex; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; gap: 5px; padding: 6px 9px; }
.route-checkbox input { accent-color: var(--orange); margin: 0; }
.key-label-field { margin-top: 16px; max-width: 360px; }
.application-form-actions { justify-content: flex-end; }
.client-key-card > label { font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.generated-key-row { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 16px; }
.generated-key-row input { background: #f2f5f9; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--navy-900); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; height: 44px; min-width: 0; padding: 0 11px; }
.client-key-done { margin-top: 16px; width: 100%; }

.toast-region { bottom: 20px; display: grid; gap: 8px; position: fixed; right: 20px; z-index: 100; }
.toast { align-items: center; animation: toast-in .2s ease-out; background: var(--navy-900); border-radius: 8px; box-shadow: 0 12px 34px rgba(7,29,58,.24); color: #fff; display: flex; gap: 9px; max-width: 340px; padding: 12px 14px; }
.toast.is-error { background: #7c201a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .clock-lockup { display: none; }
  .topbar-actions { gap: 12px; }
  .metrics-strip { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 15px; }
  .overview-grid { grid-template-columns: 1fr; }
  .provider-panel { grid-column: 1 / -1; }
  .attention-panel, .performance-panel, .app-capacity-panel { grid-column: 1 / -1; }
  .usage-layout { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 190px; }
  .health-lockup { display: none; }
  .content { padding-left: 18px; padding-right: 18px; }
  .topbar { padding: 0 18px; }
  .topbar .primary-button span { display: none; }
  .topbar .primary-button { padding: 0 13px; }
  .settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sidebar { box-shadow: 14px 0 35px rgba(2,16,34,.18); transform: translateX(-105%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 74px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading p, .environment-control { display: none; }
  .content { padding: 14px 12px 28px; }
  .metrics-strip { grid-template-columns: 1fr 1fr; padding: 0; }
  .metric { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100px; padding: 14px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 0; padding-top: 14px; }
  .metric:last-child { border-bottom: 0; }
  .metric-value { font-size: 19px; }
  .performance-summary { grid-template-columns: 1fr; gap: 10px; }
  .performance-summary > span { border-bottom: 1px solid var(--line); border-right: 0; padding: 0 0 8px; }
  .performance-summary > span:last-child { border-bottom: 0; }
  .attention-item small { white-space: normal; }
  .panel-header { align-items: flex-start; gap: 12px; }
  .panel-header .secondary-button span { display: none; }
  .view-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .usage-layout { grid-template-columns: 1fr; }
  .usage-breakdown { grid-column: 1; }
  .auth-card { padding: 26px 22px; }
  .application-form-grid, .budget-grid, .policy-options { grid-template-columns: 1fr; }
  .secret-card-actions { align-items: stretch; flex-direction: column-reverse; }
  .secret-card-actions > button { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* ─────────────────────────────────────────────────────────────
   Overview dashboard v2
   Enterprise control-plane layout
   ───────────────────────────────────────────────────────────── */

.metrics-strip {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 0;
  padding: 0;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(7, 29, 58, .045);
  min-height: 92px;
  padding: 14px;
}

.metric:last-child { border-right: 1px solid var(--line); }
.metric-icon { border: 0; }
.metric.is-green .metric-icon { background: #e7f8ef; color: #0aa45d; }
.metric.is-blue .metric-icon { background: #eaf2ff; color: #3478df; }
.metric.is-violet .metric-icon { background: #f0edff; color: #7367e8; }
.metric.is-orange .metric-icon { background: #fff0e5; color: var(--orange); }
.metric.is-navy .metric-icon { background: #eef3f8; color: var(--navy-800); }
.metric.is-cyan .metric-icon { background: #e7f7fb; color: #169ac0; }
.metric-label { letter-spacing: .01em; }
.metric-note { line-height: 1.35; overflow: visible; text-overflow: clip; white-space: normal; }

.overview-grid {
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.operational-panel,
.performance-panel,
.provider-performance-panel,
.app-capacity-panel,
.route-readiness-panel {
  min-width: 0;
}

.operational-summary {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 17px 18px 12px;
}

.operational-summary > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operational-summary b { font-size: 14px; }
.operational-summary small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.operational-orb {
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(217, 145, 0, .1);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.operational-orb.is-healthy {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(18, 166, 96, .1);
}

.ops-tiles {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px 18px 18px;
}

.ops-tile {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 30px minmax(0, 1fr) 17px;
  min-height: 69px;
  padding: 9px;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.ops-tile:hover {
  background: #fff;
  border-color: #bdccdc;
  transform: translateY(-1px);
}

.ops-tile-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  font-size: 16px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.ops-tile > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ops-tile b { font-size: 10px; }
.ops-tile small { color: var(--muted); font-size: 8.5px; line-height: 1.35; }
.ops-state { font-size: 16px; }
.ops-state.is-healthy { color: var(--green); }
.ops-state.is-warning { color: var(--amber); }

.range-tabs {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  padding: 2px;
}

.range-tabs span {
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  padding: 5px 8px;
}

.range-tabs span:not(.is-active) { cursor: not-allowed; opacity: .62; }
.range-tabs .is-active { background: var(--navy-900); color: #fff; }

.performance-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  min-height: 184px;
}

.combo-chart {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 12px 16px 10px;
}

.combo-legend {
  color: var(--muted);
  display: flex;
  font-size: 9px;
  gap: 14px;
  margin-bottom: 8px;
}

.combo-legend span { align-items: center; display: flex; gap: 5px; }
.legend-line { background: var(--orange); height: 2px; position: relative; width: 12px; }
.legend-line::after {
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 50%;
  content: "";
  height: 4px;
  position: absolute;
  right: -1px;
  top: -3px;
  width: 4px;
}

.combo-plot {
  height: 112px;
  position: relative;
}

.combo-plot::before,
.combo-plot::after {
  border-top: 1px dashed #dfe7f0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  z-index: 0;
}

.combo-plot::before { top: 33%; }
.combo-plot::after { top: 66%; }

.combo-bars {
  align-items: end;
  bottom: 0;
  display: flex;
  gap: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.combo-bars .traffic-column > i {
  background: #78a9e7;
  opacity: .84;
}

.combo-bars .traffic-column.has-errors > i { background: #e99362; }
.combo-bars .traffic-column.is-empty > i { background: #eaf0f6; }

.latency-line {
  bottom: 0;
  height: 100%;
  left: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 2;
}

.latency-line polyline {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.combo-axis {
  color: var(--muted);
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  margin-top: 6px;
}

.performance-rail {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.performance-rail > span {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 10px 12px;
}

.performance-rail > span:last-child { border-bottom: 0; }
.performance-rail > span > i {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 7px;
  color: #3478df;
  display: inline-flex;
  font-size: 15px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.performance-rail > span > span { display: grid; }
.performance-rail b { font-size: 14px; }
.performance-rail small { color: var(--muted); font-size: 8.5px; }

.provider-performance-panel .capacity-header,
.provider-performance-panel .capacity-row {
  gap: 10px;
  grid-template-columns: minmax(118px, 1.05fr) 88px minmax(116px, 1fr) minmax(116px, 1fr) minmax(108px, .9fr);
  min-width: 600px;
  padding: 0 14px;
}

.provider-performance-panel .capacity-header { height: 39px; }
.provider-performance-panel .capacity-row { min-height: 67px; }
.provider-performance-panel .capacity-row .provider-identity b { font-size: 10.5px; }
.provider-performance-panel .status-pill { font-size: 9px !important; padding: 4px 7px; }
.provider-performance-panel .capacity-cell b,
.provider-performance-panel .capacity-unknown b,
.provider-performance-panel .performance-cell b { font-size: 9.5px; }
.provider-performance-panel .capacity-cell small,
.provider-performance-panel .capacity-unknown small,
.provider-performance-panel .performance-cell small { font-size: 8px; }

.performance-meter {
  background: #e8eef5;
  border-radius: 99px;
  display: block;
  height: 4px;
  margin-top: 3px;
  overflow: hidden;
}

.performance-meter i {
  background: var(--green);
  display: block;
  height: 100%;
}

.app-capacity-table { max-height: 300px; }

.app-capacity-header,
.app-capacity-row {
  gap: 12px;
  grid-template-columns: minmax(145px, 1.15fr) minmax(120px, 1fr) minmax(120px, 1fr) 90px;
  min-width: 560px;
  padding: 0 14px;
}

.app-capacity-header { height: 39px; }
.app-capacity-row { min-height: 58px; }
.app-capacity-row .application-identity b { font-size: 10.5px; }
.app-capacity-row .capacity-cell b,
.app-capacity-row .capacity-unknown b { font-size: 9.5px; }
.app-capacity-row .capacity-cell small,
.app-capacity-row .capacity-unknown small { font-size: 8px; }

.usage-cell {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(38px, 1fr) 28px;
}

.usage-cell b {
  font-size: 9px;
  text-align: right;
}

.usage-track {
  background: #e7edf4;
  border-radius: 99px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.usage-track i { background: var(--green); display: block; height: 100%; }
.usage-track i.is-warning { background: var(--amber); }
.usage-track i.is-danger { background: var(--red); }
.usage-cell.is-uncapped b { color: var(--muted); }

.route-readiness-panel .route-table-header,
.route-readiness-panel .route-row {
  grid-template-columns: 110px minmax(150px, .85fr) 80px minmax(240px, 1.45fr) 130px;
  min-width: 760px;
}

.route-readiness-panel .route-row { min-height: 68px; }
.route-readiness-panel .provider-model { padding: 8px 10px; }
.route-readiness-panel .route-flow::before { width: 64px; }

.overview-grid > .is-full { grid-column: 1 / -1; }

@media (max-width: 1260px) {
  .metrics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid > .panel { grid-column: 1; }
  .ops-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 94px; }
  .ops-tiles { grid-template-columns: 1fr; }
  .performance-body { grid-template-columns: 1fr; }
  .combo-chart { border-bottom: 1px solid var(--line); border-right: 0; }
  .performance-rail { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .performance-rail > span { border-bottom: 0; border-right: 1px solid var(--line); grid-template-columns: 1fr; text-align: center; }
  .performance-rail > span:last-child { border-right: 0; }
  .performance-rail > span > i { margin: 0 auto; }
}

@media (max-width: 520px) {
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { border-right: 1px solid var(--line) !important; }
}

/* Reuse the dashboard's forms and surfaces for billing-isolated key pools. */
.credential-dialog { width: calc(100vw - 32px); max-width: 850px; max-height: 90vh; overflow: auto; }
.credential-dialog .secret-card { width: 100%; }
.credential-pool { padding: 12px 0; border-bottom: 1px solid var(--line); }
.credential-pool h3 { margin: 0 0 8px; }
.credential-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.credential-row small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.credential-row .provider-actions { flex-direction: row; flex-wrap: wrap; }
#credential-form { margin-top: 20px; }
@media (max-width: 600px) { .credential-row { flex-direction: column; } }
/* Compact operations overview. Dedicated inventory views keep their full tables. */
:root { --sidebar-width: 196px; }
.topbar { height: 72px; padding: 0 24px; }
.page-heading h1 { font-size: 21px; }
.page-heading p { font-size: 12px; }
.content { max-width: 1640px; padding: 22px 24px 32px; }
.ops-overview { --muted: #60728b; }
.overview-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.overview-heading .eyebrow { font-size:10px; letter-spacing:.14em; margin:0 0 6px; color:var(--muted); }
.overview-heading h2 { font-size:24px; letter-spacing:-.7px; margin:0; }
.overview-refresh { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:12px; }
.overview-refresh .secondary-button { height:34px; padding:0 12px; }
.overview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; background:white; }
.overview-metrics .metric { border:0; border-radius:0; box-shadow:none; padding:17px 18px; min-width:0; background:transparent; }
.overview-metrics .metric + .metric { border-left:1px solid var(--line); }
.overview-metrics .metric-value { font-size:26px; letter-spacing:-.7px; margin:5px 0 2px; }
.overview-metrics .metric-label { font-size:12px; }
.overview-metrics .metric-note { font-size:11px; }
.overview-metrics .metric-icon { width:34px; height:34px; flex:0 0 34px; }
.overview-pulse { display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; padding:14px 2px 18px; font-size:11px; color:var(--muted); }
.overview-pulse > span b { color:var(--ink); font-size:12px; margin-right:3px; }
.overview-pulse > button { margin-left:auto; display:flex; align-items:center; flex-wrap:wrap; gap:6px; border:0; background:none; padding:0; cursor:pointer; }
.pool-count { border:1px solid var(--line); background:white; border-radius:5px; padding:4px 6px; font-size:10px; color:var(--muted-strong); }
.pool-count.free { color:#087944; background:var(--green-soft); border-color:#cfebdd; }
.pool-count.paid { color:#89501e; background:var(--orange-soft); border-color:#f1dac6; }
.pool-count.unclassified { color:#916200; background:var(--amber-soft); border-color:#f2dfad; }
.overview-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; align-items:start; }
.ops-overview .panel { box-shadow:0 2px 6px rgba(7,29,58,.025); border-radius:9px; min-width:0; overflow:hidden; }
.ops-overview .panel-header { min-height:62px; padding:14px 16px; gap:10px; }
.ops-overview .panel-title h2 { font-size:14px; letter-spacing:-.2px; }
.ops-overview .panel-title p { font-size:10px; line-height:1.45; margin:4px 0 0; }
.ops-overview .panel-header .table-action { white-space:nowrap; font-size:11px; color:var(--orange-dark); }
.ops-overview .panel-header .table-action i { font-size:13px; vertical-align:middle; }
.ops-overview .performance-body { min-height:172px; }
.ops-overview .combo-chart { padding:12px 16px; }
.ops-overview .combo-plot { height:108px; }
.ops-overview .combo-legend { margin-bottom:8px; font-size:10px; }
.ops-overview .chart-scale { margin-left:auto; color:var(--muted); }
.ops-overview .performance-rail { display:none; }
.ops-overview .performance-body { grid-template-columns:minmax(0,1fr); }
.ops-overview .performance-empty { min-height:172px; padding:24px; }
.attention-list { padding:2px 16px; }
.attention-action { display:flex; align-items:center; text-align:left; gap:10px; padding:12px 0; width:100%; background:none; border:0; cursor:pointer; }
.attention-action + .attention-action { border-top:1px solid var(--line); }
.attention-symbol { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; border-radius:7px; background:var(--amber-soft); color:#986600; font-size:17px; }
.attention-symbol.danger { background:var(--red-soft); color:var(--red); }
.attention-action > span:nth-child(2) { flex:1; min-width:0; }
.attention-action b { font-size:12px; display:block; }
.attention-action small { color:var(--muted); display:block; margin-top:3px; font-size:11px; line-height:1.4; }
.attention-action > i { color:var(--muted); }
.more-issues { border-top:1px solid var(--line); font-size:11px; }
.more-issues summary { padding:10px 16px; cursor:pointer; color:var(--muted-strong); }
.more-issues button { display:block; width:100%; text-align:left; padding:10px 16px; border:0; border-top:1px solid var(--line); background:none; cursor:pointer; font-size:12px; }
.overview-clear { min-height:166px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); font-size:11px; }
.overview-clear i { color:var(--green); font-size:28px; }
.overview-clear b { color:var(--ink); font-size:13px; }
.compact-table-wrap { overflow-x:auto; }
.compact-table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
.compact-table th { font-size:10px; color:var(--muted); font-weight:600; background:#fafbfd; padding:9px 16px; white-space:nowrap; border-bottom:1px solid var(--line); }
.compact-table td { padding:11px 16px; border-bottom:1px solid #edf1f5; height:45px; }
.compact-table tr:last-child td { border-bottom:0; }
.compact-table tbody tr:hover { background:#fafcfe; }
.compact-table td small { display:block; color:var(--muted); font-size:10px; line-height:1.5; margin-top:2px; }
.compact-table .numeric { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.compact-table code, .panel-footnote code { font-size:11px; color:var(--navy-800); background:#eff4f9; border-radius:4px; padding:4px 6px; white-space:nowrap; }
.compact-table .status-pill { font-size:10px; padding:4px 7px; line-height:1.25; }
.provider-chip { display:inline-block; font-size:11px; color:var(--muted-strong); margin-right:8px; }
.muted-copy { font-size:11px; color:var(--muted); }
.panel-footnote { display:flex; align-items:center; gap:10px; padding:10px 16px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); line-height:1.5; }
.provider-shortcut, .app-shortcut { display:inline-flex; align-items:center; gap:7px; padding:0; border:0; background:none; font-size:12px; font-weight:650; text-align:left; cursor:pointer; }
.provider-shortcut:hover, .app-shortcut:hover { color:var(--orange-dark); }
.provider-shortcut .provider-monogram { height:23px; width:23px; border-radius:5px; font-size:9px; }
.provider-shortcut:disabled { cursor:default; }
.table-empty { color:var(--muted); padding:30px 16px !important; text-align:center; }
@media(min-width:1200px) { .overview-layout > .performance-panel, .overview-layout > .attention-panel { min-height:238px; } }
@media(max-width:1199px) { .overview-layout { grid-template-columns:minmax(0,1fr); } .overview-pulse > button { margin-left:0; } .overview-metrics .metric { padding:14px 12px; } }
@media(max-width:850px) { .overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .overview-metrics .metric:nth-child(3) { border-left:0; } .overview-metrics .metric:nth-child(n+3) { border-top:1px solid var(--line); } .clock-lockup { display:none; } }
@media(max-width:600px) { .topbar { padding:0 12px; height:66px; } .content { padding:16px 12px; } .overview-heading h2 { font-size:21px; } .overview-heading { align-items:flex-start; } .overview-refresh > span { display:none; } .overview-pulse { gap:9px 14px; padding:12px 0; } .overview-layout { gap:12px; } .compact-table th, .compact-table td { padding:10px; } .overview-metrics .metric-icon { display:none; } .overview-metrics .metric-value { font-size:24px; } .ops-overview .panel-header { padding:12px; } .page-heading h1 { font-size:18px; } .ops-overview .panel-title p { max-width:230px; } }
/* Keep the overview readable without recreating the inventory's page length. */
.overview-heading { margin-bottom:12px; }
.overview-heading .eyebrow { display:none; }
.overview-heading h2 { font-size:21px; }
.overview-metrics .metric { padding:12px 16px; }
.overview-pulse { padding:11px 2px 14px; }
.ops-overview .panel-header { min-height:54px; padding:11px 14px; }
.ops-overview .panel-title p { margin-top:3px; }
.ops-overview .performance-body { min-height:150px; }
.ops-overview .combo-plot { height:90px; }
.ops-overview .performance-empty { min-height:150px; }
.attention-action { padding:10px 0; }
.attention-action small { font-size:10px; }
.compact-table th { padding:8px 14px; }
.compact-table td { padding:8px 14px; height:38px; }
.panel-footnote { padding:9px 14px; }
@media(min-width:1200px) { .overview-layout > .performance-panel, .overview-layout > .attention-panel { min-height:208px; } }
@media(max-width:600px) { .compact-table th, .compact-table td { padding:9px; } }
.combo-legend .legend-dot.has-errors { background:#e7a77c; }
.overview-metrics .metric { grid-template-columns:34px minmax(0,1fr); gap:10px; }
@media(max-width:600px) { .overview-metrics .metric { grid-template-columns:minmax(0,1fr); gap:0; min-height:98px; } .overview-metrics .metric-copy { width:100%; } .overview-heading h2 { font-size:19px; } }

/* Provider directory: configuration and observed checks are separate signals. */
.providers-page { background: #fff; }
.providers-page .topbar #probe-button, .providers-page .page-heading > div { display: none; }
.providers-page .content { padding: 34px 38px; }
.provider-directory .view-intro { align-items: center; margin: 0 0 28px; }
.provider-directory .view-intro .eyebrow { display: none; }
.provider-directory .view-intro h2 { font-size: 36px; letter-spacing: -1.2px; }
.provider-directory .view-intro p { font-size: 16px; margin-top: 4px; }
.provider-directory .primary-button { min-height: 48px; padding: 0 23px; font-size: 14px; border-radius: 8px; }
.provider-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.provider-tabs button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted-strong); font-size: 15px; font-weight: 650; padding: 0 2px 16px; cursor: pointer; }
.provider-tabs button[aria-selected="true"] { border-bottom-color: var(--orange); color: var(--ink); }
.provider-tabs button > span { background: #edf2f7; border-radius: 6px; font-size: 12px; padding: 3px 7px; }
.provider-tabs button[aria-selected="true"] > span { color: #b44800; background: var(--orange-soft); }
.provider-privacy-note { display: flex; align-items: center; gap: 14px; background: #fff9f3; border: 1px solid #ffe1c6; border-radius: 8px; padding: 16px 20px; margin-bottom: 22px; color: var(--muted-strong); }
.provider-privacy-note i { color: var(--orange); font-size: 23px; }
.provider-privacy-note p { margin: 0; font-size: 13px; }
.provider-directory-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.provider-directory-toolbar .search-field { max-width: 510px; background: #f8fafc; border-radius: 8px; gap: 12px; padding: 0 16px; }
.provider-directory-toolbar .search-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.provider-directory-toolbar .search-field i { font-size: 21px; }
.provider-directory-toolbar input { height: 44px; font-size: 14px; }
.provider-directory-toolbar select { height: 46px; padding: 0 32px 0 16px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.provider-sort-note { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.provider-table-scroll { border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; }
.provider-directory-table { border-collapse: collapse; width: 100%; text-align: left; min-width: 870px; }
.provider-directory-table thead { background: #f1f5f9; }
.provider-directory-table th, .provider-directory-table td { padding: 16px 18px; }
.provider-directory-table thead th { font-size: 10px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; color: var(--muted-strong); white-space: nowrap; }
.provider-directory-table tbody th { width: 22%; font-size: 14px; font-weight: 750; }
.provider-directory-table td { font-size: 12px; color: var(--muted-strong); }
.provider-directory-table tbody tr + tr { border-top: 1px solid #e8eef5; }
.provider-directory-table tbody tr:hover { background: #fcfdff; }
.provider-directory-name { display: flex; align-items: center; gap: 14px; }
.provider-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #dce6f1; border-radius: 9px; background: #edf3fa; color: #244c78; font-size: 11px; letter-spacing: -.3px; }
.configuration-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; background: #eef2f6; color: #60728b; font-size: 11px; font-weight: 650; white-space: nowrap; }
.configuration-badge > span { height: 7px; width: 7px; border-radius: 50%; background: #8290a6; }
.configuration-badge.is-configured { background: #e5faef; color: #078349; }
.configuration-badge.is-configured > span { background: #079550; }
.probe-result { white-space: nowrap; }
.probe-result.healthy { color: #078349; }
.probe-result.warning { color: #a4660b; }
.probe-result.muted, .provider-key-summary { color: var(--muted); }
.probe-latency { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.provider-row-controls { display: flex; align-items: center; gap: 5px; }
.provider-row-controls > .table-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 35px; min-width: 117px; padding: 0 12px; font-size: 11px; white-space: nowrap; }
.provider-row-controls > .table-action:disabled { color: var(--muted); cursor: not-allowed; }
.provider-options summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: center; width: 25px; height: 32px; border-radius: 5px; }
.provider-options summary::-webkit-details-marker { display: none; }
.provider-options summary:hover { background: #edf2f7; }
.provider-options summary i { font-size: 21px; }
.provider-options-menu { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 8px; }
.provider-options[open] { min-width: 155px; }
.provider-options-menu a, .provider-options-menu button { text-align: left; background: none; border: 0; padding: 0; font: inherit; font-size: 11px; color: var(--muted-strong); text-decoration: none; cursor: pointer; }
.provider-options-menu a:hover, .provider-options-menu button:hover { color: var(--orange); }
.provider-options-menu button:disabled { opacity: .5; cursor: not-allowed; }
.provider-pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; gap: 12px; color: var(--muted-strong); font-size: 12px; }
.provider-pagination nav { display: flex; gap: 8px; }
.provider-pagination button { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; }
.provider-pagination button[aria-current="page"] { border-color: var(--orange); color: var(--orange); background: #fffaf6; }
.provider-pagination button:disabled { color: #b7c3d2; cursor: not-allowed; background: #f8fafc; }
@media (max-width: 1100px) { .providers-page .content { padding: 26px 22px; } .provider-directory-table th, .provider-directory-table td { padding: 15px 13px; } }
@media (max-width: 720px) {
  .providers-page .content { padding: 22px 14px; }
  .provider-directory .view-intro { align-items: flex-start; gap: 18px; }
  .provider-directory .view-intro h2 { font-size: 30px; }
  .provider-directory .view-intro p { font-size: 14px; }
  .provider-directory-toolbar { flex-wrap: wrap; gap: 10px; }
  .provider-directory-toolbar .search-field { max-width: none; }
  .provider-tabs { gap: 22px; }
  .provider-tabs button { font-size: 14px; }
  .provider-privacy-note { padding: 14px; align-items: flex-start; }
  .provider-pagination { font-size: 11px; }
  .provider-pagination nav { gap: 5px; }
}

.provider-directory-table { min-width: 1180px; }
.provider-directory-table tbody th { width: 18%; }
.provider-directory-table th, .provider-directory-table td { padding-left: 12px; padding-right: 12px; }
.provider-row-controls > .probe-single { min-width: 70px; gap: 5px; justify-content: center; }
.provider-usage { min-width: 120px; }
.provider-usage strong { color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.provider-usage small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; white-space: nowrap; }
.provider-usage-empty { color: var(--muted); font-size: 11px; }
.column-window { text-transform: none; font-size: 10px; font-weight: 500; }
.provider-measurement-note { color: var(--muted); font-size: 11px; margin: -7px 0 16px; }
