@font-face {
  font-family: "Geist";
  src: url("/central-fonts/geist-sans") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/central-fonts/geist-mono") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #050505;
  --panel: #090909;
  --panel-strong: #111111;
  --panel-raised: #0d0d0d;
  --paper: #ededed;
  --ink: #ededed;
  --muted: #8a8a8a;
  --muted-strong: #b8b8b8;
  --line: rgba(255, 255, 255, 0.115);
  --line-strong: rgba(255, 255, 255, 0.2);
  --primary: #e5484d;
  --primary-dark: #7f1d1d;
  --success: #00c853;
  --warning: #f5a524;
  --danger: #ff4d4f;
  --focus: #ffffff;
  --shadow: none;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  display: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: #070707;
  padding: 10px 12px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.console-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr) 308px;
  gap: 14px;
  padding: 14px;
}

.console-rail,
.console-main,
.ops-rail,
.agent-panel,
.detail-panel,
.ops-panel,
.service-card,
.workspace-strip {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.console-rail {
  min-width: 0;
  height: calc(100vh - 28px);
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 8px;
  padding: 14px;
}

.brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 560;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.15;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.rail-nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.rail-nav a {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted-strong);
  padding: 9px 10px;
  text-decoration: none;
  transition:
    background 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-standard);
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--ink);
}

.rail-nav a:hover {
  transform: none;
}

.rail-nav span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.rail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 12px;
}

.system-card {
  margin-top: auto;
}

.rail-card-label,
.eyebrow,
.ops-panel-header span,
.service-details dt,
.detail-grid dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.system-card strong {
  display: block;
  margin-top: 8px;
  color: var(--success);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 560;
  line-height: 1;
}

.system-card > span:not(.rail-card-label):not(.sparkline) {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.sparkline {
  height: 24px;
  display: block;
  margin-top: 10px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 13%, rgba(255, 255, 255, 0.18) 14% 17%, transparent 18% 32%, rgba(255, 255, 255, 0.14) 33% 36%, transparent 37% 51%, rgba(255, 255, 255, 0.18) 52% 56%, transparent 57% 70%, rgba(255, 255, 255, 0.14) 71% 75%, transparent 76%),
    var(--bg-soft);
}

.account-pill {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.account-pill img,
.account-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: #070707;
  font-size: 12px;
  font-weight: 500;
}

.account-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-pill a {
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.account-pill.is-authed a {
  flex: 0 0 auto;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.console-main {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.console-topbar {
  display: grid;
  grid-template-columns: minmax(185px, 0.46fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.console-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 560;
}

.eyebrow {
  margin: 0 0 6px;
}

.command-bar {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 0 12px;
}

.command-bar svg {
  color: var(--muted);
}

.command-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.command-bar input::placeholder {
  color: #6f6f76;
}

kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 4px 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.hub-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.console-title,
.status-banner,
.service-group-head,
.agent-panel-header {
  min-width: 0;
}

.summary-chip,
.icon-button,
.primary-action,
.secondary-action,
.danger-action {
  border-radius: 8px;
}

.summary-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.summary-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.summary-chip.is-ok::before {
  background: var(--success);
  box-shadow: none;
}

.summary-chip.is-checking::before {
  background: var(--warning);
}

.summary-chip.is-down::before {
  background: var(--danger);
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-standard),
    opacity 180ms var(--ease-standard);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  transform: none;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.icon-button.is-busy svg {
  animation: spin 750ms linear infinite;
}

.workspace-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  margin-bottom: 16px;
}

.status-banner,
.metric {
  background: var(--panel);
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}

.status-banner strong,
.status-banner small {
  display: block;
}

.status-banner strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.status-banner small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.status-pulse,
.service-dot,
.ops-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  box-shadow: none;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.metric span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 560;
  line-height: 1;
}

.metric small {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.2;
}

.section-heading time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.service-stack {
  display: grid;
  gap: 14px;
}

.service-stack:not(.is-loading) .service-group,
.service-stack:not(.is-loading) .service-card,
.ops-row,
.incident-row,
.agent-key-row,
.agent-key-secret,
.inline-alert,
.empty-state {
  animation: surface-enter 240ms var(--ease-out) both;
  animation-delay: calc(var(--enter-index, 0) * 28ms);
}

.is-refreshing .service-card,
.is-refreshing .ops-row,
.is-refreshing .incident-row {
  opacity: 0.72;
}

.service-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
}

.service-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.service-group-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
}

.service-group-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 5px 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.service-group-description {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-group {
  pointer-events: none;
}

.skeleton-group .service-group-head {
  margin-bottom: 10px;
}

.skeleton-line,
.skeleton-pill,
.is-loading-text::after {
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 72%),
    var(--panel-strong);
  background-size: 240% 100%;
  animation: skeleton-sweep 1450ms var(--ease-standard) infinite;
}

.skeleton-line {
  width: min(100%, var(--skeleton-width, 12rem));
  height: 10px;
}

.skeleton-label {
  width: 82px;
  height: 9px;
  margin-bottom: 9px;
}

.skeleton-title {
  width: 168px;
  height: 15px;
}

.skeleton-copy {
  width: min(72%, 280px);
  height: 11px;
  margin-bottom: 13px;
}

.skeleton-short {
  width: 62px;
}

.skeleton-code {
  width: 34px;
}

.skeleton-pill {
  width: 72px;
  height: 22px;
  color: transparent;
  overflow: hidden;
}

.is-loading-text {
  color: transparent !important;
  position: relative;
}

.is-loading-text::after {
  content: "";
  width: var(--skeleton-width, 8ch);
  height: 1em;
  min-height: 10px;
}

.service-card {
  min-width: 0;
  min-height: 232px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  transition:
    border-color 180ms var(--ease-standard),
    background 180ms var(--ease-standard),
    box-shadow 180ms var(--ease-standard),
    opacity 180ms var(--ease-standard);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line-strong);
  opacity: 0.55;
}

.service-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  box-shadow: none;
}

.service-card[data-status="down"]::before {
  background: var(--line-strong);
}

.service-card[data-status="checking"]::before {
  background: var(--line-strong);
}

.service-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.service-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted-strong);
}

.service-card[data-status="down"] .service-icon {
  border-color: var(--line);
  color: var(--muted-strong);
}

.service-card[data-status="checking"] .service-icon {
  border-color: var(--line);
  color: var(--muted-strong);
}

.service-title-area {
  min-width: 0;
  flex: 1 1 auto;
}

.service-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
}

.service-auth {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted-strong);
  padding: 3px 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.service-auth.is-public {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--muted-strong);
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.service-card[data-status="down"] .service-dot,
.service-status[data-status="down"] .service-dot,
.ops-row[data-status="down"] .ops-dot {
  background: var(--danger);
  box-shadow: none;
}

.service-card[data-status="checking"] .service-dot,
.service-status[data-status="checking"] .service-dot,
.ops-row[data-status="checking"] .ops-dot {
  background: var(--warning);
  box-shadow: none;
}

.service-description {
  min-height: 38px;
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.service-details,
.detail-grid {
  display: grid;
  gap: 7px;
  margin: 0;
}

.service-details div,
.detail-grid div {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.service-details dd,
.detail-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.service-actions,
.detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
}

.service-link,
.primary-action,
.secondary-action,
.danger-action,
.quick-action-list button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-standard),
    opacity 180ms var(--ease-standard);
}

.service-link,
.primary-action {
  background: var(--paper);
  color: #070707;
}

.service-link:hover,
.primary-action:hover {
  background: #ffffff;
  transform: none;
}

.secondary-action {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--ink);
}

.secondary-action:hover,
.secondary-action.is-copied {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--ink);
}

.danger-action {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--muted-strong);
}

.danger-action:hover {
  border-color: rgba(255, 77, 79, 0.5);
  background: rgba(255, 77, 79, 0.08);
  color: #ffd0d0;
}

.ops-rail {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ops-panel {
  min-width: 0;
  border-radius: 8px;
  padding: 13px;
}

.ops-panel-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.ops-panel-header strong,
.ops-panel-header a,
.ops-panel-header small {
  color: var(--muted-strong);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
}

.ops-list,
.incident-list,
.quick-action-list {
  display: grid;
  gap: 7px;
}

.ops-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 8px;
}

.ops-row strong,
.ops-row span,
.ops-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-row strong {
  font-size: 12px;
  font-weight: 500;
}

.ops-row span,
.ops-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
}

.incident-row {
  min-width: 0;
  border-left: 2px solid var(--line-strong);
  background: var(--bg-soft);
  padding: 8px 10px;
}

.incident-row.is-resolved {
  border-left-color: var(--success);
}

.incident-row.is-alert {
  border-left-color: var(--danger);
}

.incident-row span,
.incident-row strong,
.incident-row small {
  display: block;
}

.incident-row span,
.incident-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
}

.incident-row strong {
  margin: 3px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.quick-action-list button {
  width: 100%;
  justify-content: flex-start;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}

.quick-action-list button:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.agent-panel {
  border-radius: 8px;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  transform: translateY(-8px);
  transition:
    max-height 220ms var(--ease-out),
    margin-bottom 220ms var(--ease-out),
    opacity 180ms var(--ease-out),
    padding 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.agent-panel.is-open {
  max-height: min(900px, 80vh);
  margin-bottom: 16px;
  overflow: auto;
  opacity: 1;
  padding: 16px;
  transform: translateY(0);
}

.agent-panel.is-closing {
  transition-timing-function: var(--ease-in);
}

.agent-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 560;
  line-height: 1.15;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.agent-key-form {
  display: grid;
  gap: 12px;
}

.field span,
.scope-fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.field input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.field input[type="text"]:focus {
  border-color: var(--line-strong);
}

.scope-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.scope-fieldset label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted-strong);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.scope-fieldset input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.agent-list-area,
.agent-key-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.agent-list-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.agent-list-header strong,
.agent-list-header small {
  display: block;
}

.agent-list-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.agent-list-header code,
.agent-key-secret code,
.scope-list span {
  font-family: var(--mono);
}

.agent-list-header code {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted-strong);
  padding: 6px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.agent-key-secret {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 12px;
}

.agent-key-secret div {
  grid-column: 1 / -1;
}

.agent-key-secret strong,
.agent-key-secret p {
  margin: 0;
}

.agent-key-secret p {
  margin-top: 3px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 400;
}

.agent-key-secret code {
  min-width: 0;
  color: var(--paper);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.agent-key-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(150px, 1fr) minmax(100px, 0.75fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 10px;
}

.agent-key-main,
.agent-key-usage {
  min-width: 0;
}

.agent-key-main strong,
.agent-key-main small,
.agent-key-usage small,
.agent-key-usage span {
  display: block;
}

.agent-key-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-key-main small,
.agent-key-usage small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.agent-key-usage span {
  margin-top: 3px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 400;
}

.scope-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.scope-list span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted-strong);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.list-state,
.empty-state,
.inline-alert {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 14px;
  font-weight: 500;
}

.empty-state {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.empty-state strong,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  font-weight: 400;
}

.inline-alert {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
  color: #ffb3b3;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease-out),
    backdrop-filter 180ms var(--ease-out);
}

.detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-backdrop.is-closing {
  opacity: 0;
  transition-timing-function: var(--ease-in);
}

.detail-panel {
  width: min(520px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  margin: 14px;
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  opacity: 0;
  transform: translateX(18px) scale(0.995);
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.detail-backdrop.is-open .detail-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.detail-backdrop.is-closing .detail-panel {
  opacity: 0;
  transform: translateX(14px) scale(0.995);
  transition-timing-function: var(--ease-in);
}

.detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.detail-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 560;
  line-height: 1.1;
}

.detail-description {
  margin: 18px 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.detail-grid {
  margin-bottom: 16px;
}

.detail-grid div {
  grid-template-columns: 88px minmax(0, 1fr);
}

.detail-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.skeleton-card {
  min-height: 232px;
  overflow: hidden;
  pointer-events: none;
}

.skeleton-card::before {
  background: var(--line);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 72%) 0 0 / 240% 100% no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 0 0 / 42px 42px no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 58px 3px / 150px 15px no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 58px 30px / 88px 10px no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 0 78px / 90% 11px no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 0 104px / 72% 11px no-repeat,
    linear-gradient(var(--panel-strong), var(--panel-strong)) 0 176px / 100% 38px no-repeat;
  animation: skeleton-sweep 1450ms var(--ease-standard) infinite;
}

.skeleton-row .skeleton-line,
.skeleton-incident .skeleton-line,
.skeleton-agent-row .skeleton-line {
  margin: 0;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(430px, 100%);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.08;
}

.auth-card p:not(.eyebrow) {
  color: var(--muted-strong);
  line-height: 1.55;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeleton-sweep {
  from {
    background-position: 180% 0, 0 0, 58px 3px, 58px 30px, 0 78px, 0 104px, 0 176px;
  }

  to {
    background-position: -80% 0, 0 0, 58px 3px, 58px 30px, 0 78px, 0 104px, 0 176px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

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

  .detail-panel,
  .agent-panel,
  .service-stack:not(.is-loading) .service-group,
  .service-stack:not(.is-loading) .service-card,
  .ops-row,
  .incident-row,
  .agent-key-row {
    transform: none !important;
  }
}

@media (max-width: 1260px) {
  .console-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .ops-rail {
    grid-column: 2;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .console-shell {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 10px;
  }

  .console-rail,
  .ops-rail {
    position: static;
  }

  .console-rail {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.42fr);
    align-items: start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .brand-lockup {
    width: 100%;
  }

  .rail-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .rail-nav a {
    min-height: 36px;
    padding: 8px;
  }

  .system-card {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .system-card strong {
    font-size: 20px;
  }

  .sparkline {
    height: 18px;
  }

  .account-pill {
    grid-column: 1 / -1;
  }

  .console-main,
  .ops-rail {
    width: 100%;
    max-width: 100%;
  }

  .console-topbar,
  .workspace-strip,
  .agent-layout,
  .ops-rail {
    grid-template-columns: 1fr;
  }

  .hub-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .metric-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .agent-key-row {
    grid-template-columns: 1fr;
  }

  .agent-key-row .danger-action {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .console-rail {
    grid-template-columns: 1fr;
  }

  .system-card {
    grid-column: auto;
    grid-row: auto;
  }

  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .scope-fieldset,
  .service-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:last-child {
    grid-column: 1 / -1;
  }

  .metric {
    min-height: 62px;
  }

  .service-card {
    min-height: 220px;
  }

  .command-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .command-bar kbd {
    display: none;
  }

  .summary-chip {
    flex: 1 1 auto;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 13px;
  }

  .console-shell {
    padding: 8px;
  }

  .console-title h1 {
    font-size: 24px;
  }

  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-details div,
  .detail-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px;
    padding: 14px;
  }
}

/*
 * Workspace refresh
 * The structure follows the calm, task-first hierarchy of the Better Stack
 * reference: one persistent navigation rail, a spacious operations canvas,
 * and quiet status information instead of a wall of competing cards.
 */
:root {
  color-scheme: dark;
  --bg: #202530;
  --bg-soft: #252b38;
  --panel: #282e3b;
  --panel-strong: #303746;
  --panel-raised: #343c4c;
  --paper: #f2f5fb;
  --ink: #eef2f8;
  --muted: #8995a9;
  --muted-strong: #c1cad9;
  --line: rgba(202, 213, 232, 0.1);
  --line-strong: rgba(202, 213, 232, 0.18);
  --primary: #8fa4ff;
  --primary-dark: #5d70cf;
  --success: #5ed9a5;
  --warning: #efb56b;
  --danger: #f2787d;
  --focus: #afbdff;
  --shadow: 0 18px 42px rgba(6, 9, 15, 0.16);
}

html,
body {
  background:
    radial-gradient(circle at 82% -12%, rgba(103, 129, 225, 0.12), transparent 30rem),
    var(--bg);
}

body {
  color: var(--ink);
}

.console-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.console-rail,
.console-main,
.ops-rail,
.agent-panel,
.detail-panel,
.ops-panel,
.service-card,
.workspace-strip {
  border-color: var(--line);
}

.console-rail {
  height: 100vh;
  position: sticky;
  top: 0;
  gap: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(28, 33, 44, 0.72);
  box-shadow: none;
  padding: 24px 16px 16px;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  gap: 10px;
  padding: 0 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(207, 217, 238, 0.14);
  border-radius: 9px;
  background: linear-gradient(145deg, #3a4355, #2c3341);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
}

.brand-lockup strong {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.brand-lockup small {
  color: var(--muted);
}

.rail-nav {
  gap: 2px;
  margin-top: 9px;
}

.rail-nav a {
  min-height: 36px;
  gap: 9px;
  border-color: transparent;
  border-radius: 7px;
  color: #aab4c4;
  padding: 8px 10px;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  border-color: transparent;
  background: rgba(143, 164, 255, 0.13);
  color: #f4f6fb;
}

.rail-nav a[aria-current="page"] svg {
  color: #aebdff;
}

.rail-nav span {
  font-size: 12px;
  font-weight: 520;
}

.rail-card {
  border-color: rgba(207, 217, 238, 0.1);
  border-radius: 10px;
  background: rgba(42, 48, 62, 0.72);
  padding: 13px;
}

.system-card {
  position: relative;
  overflow: hidden;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--success);
  opacity: 0.8;
}

.system-card.is-attention::before {
  background: var(--danger);
}

.system-card.is-attention strong {
  color: #ff9ca1;
}

.system-card.is-pending::before {
  background: var(--warning);
}

.system-card.is-pending strong {
  color: #ffd29a;
}

.rail-card-label,
.eyebrow,
.ops-panel-header span,
.service-details dt,
.detail-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.system-card strong {
  color: var(--success);
  font-size: 23px;
  letter-spacing: -0.04em;
}

.sparkline {
  opacity: 0.64;
  background:
    linear-gradient(135deg, transparent 0 13%, rgba(175, 189, 255, 0.55) 14% 17%, transparent 18% 32%, rgba(94, 217, 165, 0.5) 33% 36%, transparent 37% 51%, rgba(175, 189, 255, 0.55) 52% 56%, transparent 57% 70%, rgba(94, 217, 165, 0.5) 71% 75%, transparent 76%),
    transparent;
}

.account-pill {
  min-height: 40px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  padding: 7px 9px;
}

.account-pill:hover {
  background: rgba(255, 255, 255, 0.04);
}

.account-avatar {
  background: #aab8ff;
  color: #1f2635;
}

.account-pill a {
  color: #d9e0ee;
}

.account-pill.is-authed a {
  border-left-color: var(--line);
}

.console-main {
  grid-column: 2;
  border: 0;
  background: transparent;
  padding: 42px 48px 28px;
}

.console-topbar {
  min-height: 74px;
  grid-template-columns: minmax(210px, 0.72fr) minmax(310px, 1.45fr) auto;
  align-items: end;
  gap: 24px;
  border: 0;
  background: transparent;
  padding: 0 0 28px;
}

.console-title .eyebrow {
  margin-bottom: 8px;
}

.console-title h1 {
  margin: 0;
  color: #f4f6fb;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.workspace-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.command-bar {
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: rgba(207, 217, 238, 0.11);
  border-radius: 9px;
  background: rgba(42, 48, 62, 0.78);
  color: var(--muted);
  padding: 0 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.command-bar:focus-within {
  border-color: rgba(175, 189, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(143, 164, 255, 0.12);
}

.command-bar input {
  color: var(--ink);
}

.command-bar input::placeholder {
  color: #7c879a;
}

.command-bar kbd {
  border-color: rgba(207, 217, 238, 0.13);
  border-radius: 5px;
  background: rgba(14, 18, 27, 0.24);
  color: #a8b2c4;
}

.hub-actions {
  gap: 8px;
}

.summary-chip {
  min-height: 36px;
  border-color: rgba(94, 217, 165, 0.2);
  border-radius: 999px;
  background: rgba(94, 217, 165, 0.11);
  color: #a8efd0;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.summary-chip::before {
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(94, 217, 165, 0.1);
}

.summary-chip.is-down {
  border-color: rgba(242, 120, 125, 0.22);
  background: rgba(242, 120, 125, 0.1);
  color: #ffb4b7;
}

.summary-chip.is-checking {
  border-color: rgba(239, 181, 107, 0.22);
  background: rgba(239, 181, 107, 0.1);
  color: #ffd198;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-color: rgba(207, 217, 238, 0.11);
  border-radius: 9px;
  background: rgba(42, 48, 62, 0.78);
  color: #c3ccdc;
}

.icon-button:hover {
  border-color: rgba(175, 189, 255, 0.36);
  background: rgba(143, 164, 255, 0.13);
  color: #f4f6fb;
}

.workspace-strip {
  min-height: 96px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  border-color: rgba(207, 217, 238, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(100deg, rgba(143, 164, 255, 0.075), transparent 37%),
    rgba(42, 48, 62, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  padding: 18px 20px;
}

.status-banner {
  gap: 12px;
}

.status-banner strong {
  color: #eef6f2;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.015em;
}

.status-banner small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(94, 217, 165, 0.09);
}

.workspace-strip.is-attention .status-pulse {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(242, 120, 125, 0.1);
}

.workspace-strip.is-pending .status-pulse {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(239, 181, 107, 0.1);
}

.metric-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.metric {
  min-width: 64px;
  min-height: 50px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 2px 13px;
}

.metric:first-child {
  border-left: 0;
}

.metric span {
  color: #f3f6fb;
  font-size: 19px;
  font-weight: 570;
  letter-spacing: -0.04em;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.section-heading {
  align-items: end;
  margin: 44px 0 16px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  color: #eff3fa;
  font-size: 21px;
  font-weight: 580;
  letter-spacing: -0.032em;
}

.section-heading time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.service-stack {
  display: grid;
  gap: 30px;
}

.service-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.service-group-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 12px;
}

.service-group-head .eyebrow {
  margin-bottom: 6px;
}

.service-group-head h3 {
  color: #e8edf6;
  font-size: 15px;
  font-weight: 570;
  letter-spacing: -0.016em;
}

.service-group-head > span {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #aeb9cb;
  padding: 5px 9px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
}

.service-group-description {
  margin: 9px 2px 12px;
  color: var(--muted);
  font-size: 12px;
}

.service-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.service-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(155px, 0.72fr) minmax(250px, 1.2fr) minmax(160px, 0.62fr);
  align-items: center;
  gap: 20px;
  border-color: rgba(207, 217, 238, 0.09);
  border-radius: 10px;
  background: rgba(42, 48, 62, 0.7);
  padding: 15px 17px;
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.service-card::before {
  inset: 0 auto 0 0;
  width: 3px;
  height: auto;
  border-radius: 10px 0 0 10px;
  background: var(--accent, var(--primary));
  opacity: 0.76;
}

.service-card:hover {
  border-color: rgba(175, 189, 255, 0.25);
  background: rgba(49, 57, 72, 0.92);
  box-shadow: 0 10px 22px rgba(8, 12, 19, 0.14);
}

.service-card[data-status="down"]::before {
  background: var(--danger);
}

.service-card[data-status="checking"]::before {
  background: var(--warning);
}

.service-card-head {
  align-items: center;
  gap: 11px;
}

.service-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(207, 217, 238, 0.11);
  border-radius: 9px;
  background: rgba(18, 23, 33, 0.22);
  color: var(--accent, #b8c4f9);
}

.service-name-line {
  justify-content: flex-start;
  gap: 7px;
}

.service-card h3 {
  color: #eef2f8;
  font-size: 13px;
  font-weight: 590;
}

.service-auth {
  border-color: rgba(207, 217, 238, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb9cb;
  padding: 3px 6px;
  font-size: 9px;
}

.service-auth.is-public {
  border-color: rgba(143, 164, 255, 0.17);
  background: rgba(143, 164, 255, 0.09);
  color: #c0cbff;
}

.service-status {
  gap: 6px;
  margin-top: 5px;
  color: #95a3b8;
  font-size: 10px;
}

.service-dot,
.ops-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(94, 217, 165, 0.08);
}

.service-description {
  min-height: 0;
  margin: 0;
  color: #a5b0c1;
  font-size: 11px;
  line-height: 1.45;
}

.service-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-details div,
.detail-grid div {
  display: block;
  border-top: 0;
  padding-top: 0;
}

.service-details dt,
.detail-grid dt {
  margin-bottom: 5px;
  font-size: 9px;
}

.service-details dd,
.detail-grid dd {
  color: #c3cce0;
  font-size: 10px;
}

@media (min-width: 641px) {
  .service-details dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.service-actions {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.service-link,
.primary-action,
.secondary-action,
.danger-action,
.quick-action-list button {
  min-height: 34px;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 570;
}

.service-link,
.primary-action {
  background: #e9eef8;
  color: #263044;
}

.service-link:hover,
.primary-action:hover {
  background: #ffffff;
  color: #20293a;
}

.secondary-action {
  border-color: rgba(207, 217, 238, 0.11);
  background: rgba(18, 23, 33, 0.2);
  color: #d0d8e7;
}

.secondary-action:hover,
.secondary-action.is-copied {
  border-color: rgba(175, 189, 255, 0.33);
  background: rgba(143, 164, 255, 0.13);
  color: #eef2fa;
}

.service-detail-button {
  width: 34px;
  height: 34px;
}

.ops-rail {
  grid-column: 2;
  align-self: auto;
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(220px, 0.75fr);
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 0 48px 46px;
}

.ops-panel {
  min-width: 0;
  border-color: rgba(207, 217, 238, 0.09);
  border-radius: 10px;
  background: rgba(42, 48, 62, 0.62);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ops-panel-header {
  margin-bottom: 12px;
}

.ops-panel-header strong,
.ops-panel-header a,
.ops-panel-header small {
  color: #b9c4d5;
  font-size: 10px;
}

.ops-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  border-color: transparent;
  border-radius: 7px;
  background: rgba(18, 23, 33, 0.18);
  padding: 8px;
}

.ops-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.ops-row strong {
  color: #dfe5ef;
  font-size: 11px;
}

.ops-row span,
.ops-row small {
  color: #92a0b5;
  font-size: 9px;
}

.incident-row {
  border-left-color: rgba(175, 189, 255, 0.6);
  background: rgba(18, 23, 33, 0.18);
  padding: 9px 10px;
}

.incident-row.is-resolved {
  border-left-color: var(--success);
}

.incident-row span,
.incident-row small {
  color: #96a3b7;
  font-size: 9px;
}

.incident-row strong {
  color: #dce4ef;
  font-size: 11px;
}

.quick-action-list {
  gap: 6px;
}

.quick-action-list button {
  justify-content: flex-start;
  border-color: transparent;
  background: rgba(18, 23, 33, 0.18);
  color: #d8e0ec;
}

.quick-action-list button:hover {
  border-color: transparent;
  background: rgba(143, 164, 255, 0.12);
  color: #f0f3fa;
}

.agent-panel {
  border-color: rgba(143, 164, 255, 0.22);
  border-radius: 12px;
  background: rgba(42, 48, 62, 0.72);
}

.agent-panel.is-open {
  margin-bottom: 20px;
}

.field input[type="text"],
.scope-fieldset,
.scope-fieldset label,
.agent-key-row,
.agent-key-secret,
.list-state,
.empty-state {
  border-color: rgba(207, 217, 238, 0.1);
  background: rgba(18, 23, 33, 0.18);
}

.field input[type="text"] {
  color: var(--ink);
}

.scope-fieldset input {
  accent-color: #9daeff;
}

.scope-list span,
.agent-list-header code {
  border-color: rgba(207, 217, 238, 0.1);
  background: rgba(18, 23, 33, 0.2);
  color: #c7d1e3;
}

.detail-backdrop {
  background: rgba(11, 14, 21, 0.6);
}

.detail-panel {
  border-color: rgba(207, 217, 238, 0.12);
  border-radius: 12px;
  background: #292f3c;
  box-shadow: var(--shadow);
}

.detail-head h2 {
  color: #f0f4fa;
}

.detail-description {
  color: #aeb9ca;
}

.skeleton-line,
.skeleton-pill,
.skeleton-card::after {
  background-color: rgba(255, 255, 255, 0.055);
}

:focus-visible {
  outline-color: var(--focus);
}

@media (max-width: 1280px) {
  .console-main {
    padding-right: 30px;
    padding-left: 30px;
  }

  .ops-rail {
    padding-right: 30px;
    padding-left: 30px;
  }

  .service-card {
    grid-template-columns: minmax(180px, 0.92fr) minmax(140px, 0.65fr) minmax(210px, 1fr) minmax(152px, 0.58fr);
    gap: 14px;
  }
}

@media (max-width: 1100px) {
  .console-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .console-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .command-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .service-card {
    grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1.2fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 18px;
  }

  .service-card-head {
    grid-column: 1;
    grid-row: 1;
  }

  .service-name-line {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .service-description {
    grid-column: 1;
    grid-row: 2;
  }

  .service-details {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .service-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .ops-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-rail .ops-panel:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .console-shell {
    display: block;
  }

  .console-rail {
    width: 100%;
    height: auto;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .rail-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
  }

  .system-card {
    grid-column: 2;
    grid-row: 1;
    width: 160px;
    margin: 0;
  }

  .account-pill {
    grid-column: 1 / -1;
  }

  .console-main,
  .ops-rail {
    width: 100%;
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  .console-main {
    padding-top: 28px;
  }

  .ops-rail {
    padding-bottom: 30px;
  }

  .workspace-strip {
    grid-template-columns: 1fr;
  }

  .metric-row {
    justify-content: space-between;
  }

  .metric {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .console-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .command-bar {
    grid-column: auto;
    grid-row: auto;
  }

  .hub-actions {
    justify-content: flex-start;
  }

  .service-card {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .service-description {
    max-width: 48ch;
  }

  .service-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .service-actions {
    width: 100%;
  }

  .ops-rail {
    grid-template-columns: 1fr;
  }

  .ops-rail .ops-panel:last-child {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .console-rail {
    grid-template-columns: 1fr;
  }

  .system-card {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }

  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-main,
  .ops-rail {
    padding-right: 14px;
    padding-left: 14px;
  }

  .workspace-strip {
    padding: 16px;
  }

  .metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .metric,
  .metric:first-child {
    min-width: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(18, 23, 33, 0.18);
    padding: 8px;
  }

  .service-details {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .service-details div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }

  .service-details dt {
    margin: 0;
  }
}

/* Vercel-inspired control surface: neutral, compact, and data-first. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --panel: #ffffff;
  --panel-strong: #f7f7f7;
  --panel-raised: #f2f2f2;
  --paper: #111111;
  --ink: #1d1d1f;
  --muted: #777777;
  --muted-strong: #4b4b4b;
  --line: #ebebeb;
  --line-strong: #d9d9d9;
  --primary: #111111;
  --primary-dark: #000000;
  --success: #0a8f66;
  --warning: #a85f00;
  --danger: #d93036;
  --focus: #111111;
  --shadow: none;
}

html,
body {
  background: #ffffff;
}

body {
  color: var(--ink);
}

.console-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  background: #ffffff;
}

.console-rail {
  border-right: 1px solid var(--line);
  background: #fafafa;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-lockup {
  color: #111111;
}

.brand-mark {
  border-color: #111111;
  border-radius: 6px;
  background: #111111;
  box-shadow: none;
  color: #ffffff;
}

.brand-lockup strong {
  color: #111111;
  font-weight: 600;
}

.brand-lockup small {
  color: #737373;
}

.rail-nav a {
  color: #646464;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  border-color: transparent;
  background: #eeeeee;
  color: #111111;
}

.rail-nav a[aria-current="page"] svg {
  color: #111111;
}

.rail-card {
  border-color: var(--line);
  background: #ffffff;
}

.system-card::before {
  background: #111111;
}

.system-card strong {
  color: #111111;
}

.system-card.is-attention::before {
  background: var(--danger);
}

.system-card.is-attention strong {
  color: var(--danger);
}

.system-card.is-pending::before {
  background: var(--warning);
}

.system-card.is-pending strong {
  color: var(--warning);
}

.sparkline {
  opacity: 0.62;
  background:
    linear-gradient(135deg, transparent 0 13%, #c9c9c9 14% 17%, transparent 18% 32%, #c9c9c9 33% 36%, transparent 37% 51%, #c9c9c9 52% 56%, transparent 57% 70%, #c9c9c9 71% 75%, transparent 76%),
    transparent;
}

.account-pill,
.account-pill:hover {
  background: transparent;
  color: #444444;
}

.account-avatar {
  background: #111111;
  color: #ffffff;
}

.account-pill a {
  color: #111111;
}

.account-pill.is-authed a {
  border-left-color: var(--line);
}

.console-main {
  background: #ffffff;
}

.console-topbar {
  border-bottom: 1px solid var(--line);
}

.console-title .eyebrow,
.section-heading .eyebrow,
.service-group-head .eyebrow,
.ops-panel-header span,
.rail-card-label,
.service-details dt,
.detail-grid dt {
  color: #737373;
}

.console-title h1 {
  color: #111111;
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.command-bar {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
  color: #737373;
}

.command-bar:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111;
}

.command-bar input {
  color: #111111;
}

.command-bar input::placeholder {
  color: #858585;
}

.command-bar kbd {
  border-color: #e5e5e5;
  background: #fafafa;
  color: #737373;
}

.summary-chip,
.summary-chip.is-ok,
.summary-chip.is-down,
.summary-chip.is-checking {
  border-color: var(--line);
  background: #ffffff;
  color: #444444;
}

.summary-chip.is-ok {
  color: #087a5b;
}

.summary-chip.is-down {
  color: var(--danger);
}

.summary-chip.is-checking {
  color: var(--warning);
}

.summary-chip::before {
  box-shadow: none;
}

.icon-button {
  border-color: var(--line);
  background: #ffffff;
  color: #4b4b4b;
}

.icon-button:hover {
  border-color: #c7c7c7;
  background: #f7f7f7;
  color: #111111;
}

.workspace-strip {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
}

.status-banner strong {
  color: #111111;
  font-weight: 560;
}

.status-banner small {
  color: #737373;
}

.status-pulse {
  background: var(--success);
  box-shadow: none;
}

.workspace-strip.is-attention .status-pulse {
  background: var(--danger);
  box-shadow: none;
}

.workspace-strip.is-pending .status-pulse {
  background: var(--warning);
  box-shadow: none;
}

.metric {
  border-left-color: var(--line);
}

.metric span {
  color: #111111;
  font-size: 18px;
}

.metric small {
  color: #737373;
}

.section-heading h2 {
  color: #111111;
  font-size: 20px;
  font-weight: 560;
}

.section-heading time {
  color: #737373;
}

.service-stack {
  gap: 22px;
}

.service-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.service-group-head {
  border-bottom: 0;
  background: #fafafa;
  padding: 14px 16px 8px;
}

.service-group-head h3 {
  color: #111111;
  font-size: 14px;
  font-weight: 560;
}

.service-group-head > span {
  background: #eeeeee;
  color: #666666;
}

.service-group-description {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: #737373;
  padding: 0 16px 13px;
}

.service-grid {
  gap: 0;
}

.service-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.service-card:first-child {
  border-top: 0;
}

.service-card::before {
  display: none;
}

.service-card:hover {
  border-color: var(--line);
  background: #fafafa;
  box-shadow: none;
}

.service-icon {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #555555;
}

.service-card h3 {
  color: #111111;
  font-weight: 560;
}

.service-auth,
.service-auth.is-public {
  border-color: #e5e5e5;
  background: #f7f7f7;
  color: #666666;
}

.service-status {
  color: #737373;
}

.service-dot,
.ops-dot {
  background: var(--success);
  box-shadow: none;
}

.service-card[data-status="down"] .service-dot,
.service-status[data-status="down"] .service-dot,
.ops-row[data-status="down"] .ops-dot {
  background: var(--danger);
}

.service-card[data-status="checking"] .service-dot,
.service-status[data-status="checking"] .service-dot,
.ops-row[data-status="checking"] .ops-dot {
  background: var(--warning);
}

.service-description {
  color: #666666;
}

.service-details dd,
.detail-grid dd {
  color: #444444;
}

.service-link,
.primary-action {
  background: #111111;
  color: #ffffff;
}

.service-link:hover,
.primary-action:hover {
  background: #333333;
  color: #ffffff;
}

.secondary-action {
  border-color: #dedede;
  background: #ffffff;
  color: #333333;
}

.secondary-action:hover,
.secondary-action.is-copied {
  border-color: #aaaaaa;
  background: #f7f7f7;
  color: #111111;
}

.ops-rail {
  background: #ffffff;
}

.ops-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
}

.ops-panel-header strong,
.ops-panel-header a,
.ops-panel-header small {
  color: #666666;
}

.ops-row {
  border-color: transparent;
  background: #fafafa;
}

.ops-row:hover {
  background: #f3f3f3;
}

.ops-row strong {
  color: #333333;
}

.ops-row span,
.ops-row small,
.incident-row span,
.incident-row small {
  color: #737373;
}

.incident-row {
  border-left-color: #bdbdbd;
  background: #fafafa;
}

.incident-row.is-resolved {
  border-left-color: var(--success);
}

.incident-row.is-alert {
  border-left-color: var(--danger);
}

.incident-row strong {
  color: #333333;
}

.quick-action-list button {
  border-color: #e5e5e5;
  background: #ffffff;
  color: #333333;
}

.quick-action-list button:hover {
  border-color: #c7c7c7;
  background: #fafafa;
  color: #111111;
}

.agent-panel {
  border-color: var(--line);
  background: #ffffff;
}

.field input[type="text"],
.scope-fieldset,
.scope-fieldset label,
.agent-key-row,
.agent-key-secret,
.list-state,
.empty-state {
  border-color: var(--line);
  background: #ffffff;
}

.field input[type="text"] {
  color: #111111;
}

.scope-fieldset input {
  accent-color: #111111;
}

.scope-list span,
.agent-list-header code {
  border-color: #e5e5e5;
  background: #fafafa;
  color: #555555;
}

.detail-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.detail-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
}

.detail-head h2 {
  color: #111111;
}

.detail-description {
  color: #555555;
}

.skeleton-line,
.skeleton-pill,
.skeleton-card::after {
  background-color: #f0f0f0;
}

.inline-alert {
  border-color: #f3c9ca;
  background: #fff7f7;
  color: #b42327;
}

:focus-visible {
  outline-color: #111111;
}

@media (max-width: 820px) {
  .console-rail {
    border-bottom-color: var(--line);
    background: #fafafa;
  }
}

@media (max-width: 460px) {
  .metric,
  .metric:first-child {
    background: #fafafa;
  }
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #0a0a0a;
  --panel-strong: #171717;
  --panel-raised: #202020;
  --paper: #ededed;
  --ink: #ededed;
  --muted: #a3a3a3;
  --muted-strong: #c7c7c7;
  --line: #292929;
  --line-strong: #404040;
  --primary: #ededed;
  --primary-dark: #ffffff;
  --success: #00b37e;
  --warning: #e59a27;
  --danger: #ff5c5c;
  --focus: #ffffff;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #000000;
}

html[data-theme="dark"] body {
  color: #ededed;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] .console-shell,
html[data-theme="dark"] .console-main,
html[data-theme="dark"] .ops-rail {
  background: #000000;
}

html[data-theme="dark"] .console-rail {
  border-right-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .brand-lockup,
html[data-theme="dark"] .brand-lockup strong {
  color: #ffffff;
}

html[data-theme="dark"] .brand-lockup small {
  color: #a3a3a3;
}

html[data-theme="dark"] .brand-mark {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

html[data-theme="dark"] .rail-nav a {
  color: #a3a3a3;
}

html[data-theme="dark"] .rail-nav a:hover,
html[data-theme="dark"] .rail-nav a[aria-current="page"] {
  background: #1a1a1a;
  color: #ffffff;
}

html[data-theme="dark"] .rail-nav a[aria-current="page"] svg {
  color: #ffffff;
}

html[data-theme="dark"] .rail-card,
html[data-theme="dark"] .account-pill,
html[data-theme="dark"] .account-pill:hover {
  border-color: var(--line);
  background: #0a0a0a;
  color: #c7c7c7;
}

html[data-theme="dark"] .system-card::before {
  background: #ededed;
}

html[data-theme="dark"] .system-card strong {
  color: #ffffff;
}

html[data-theme="dark"] .system-card.is-attention::before {
  background: var(--danger);
}

html[data-theme="dark"] .system-card.is-attention strong {
  color: #ff8a8a;
}

html[data-theme="dark"] .system-card.is-pending::before {
  background: var(--warning);
}

html[data-theme="dark"] .system-card.is-pending strong {
  color: #f6c26a;
}

html[data-theme="dark"] .sparkline {
  background:
    linear-gradient(135deg, transparent 0 13%, #4a4a4a 14% 17%, transparent 18% 32%, #4a4a4a 33% 36%, transparent 37% 51%, #4a4a4a 52% 56%, transparent 57% 70%, #4a4a4a 71% 75%, transparent 76%),
    transparent;
}

html[data-theme="dark"] .account-avatar {
  background: #ededed;
  color: #000000;
}

html[data-theme="dark"] .account-pill a {
  color: #ffffff;
}

html[data-theme="dark"] .account-pill.is-authed a {
  border-left-color: var(--line);
}

html[data-theme="dark"] .console-topbar {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .console-title .eyebrow,
html[data-theme="dark"] .section-heading .eyebrow,
html[data-theme="dark"] .service-group-head .eyebrow,
html[data-theme="dark"] .ops-panel-header span,
html[data-theme="dark"] .rail-card-label,
html[data-theme="dark"] .service-details dt,
html[data-theme="dark"] .detail-grid dt {
  color: #a3a3a3;
}

html[data-theme="dark"] .console-title h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .service-group-head h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .status-banner strong,
html[data-theme="dark"] .detail-head h2 {
  color: #ffffff;
}

html[data-theme="dark"] .command-bar {
  border-color: var(--line);
  background: #0a0a0a;
  color: #a3a3a3;
}

html[data-theme="dark"] .command-bar:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

html[data-theme="dark"] .command-bar input {
  color: #ffffff;
}

html[data-theme="dark"] .command-bar input::placeholder,
html[data-theme="dark"] .status-banner small,
html[data-theme="dark"] .metric small,
html[data-theme="dark"] .section-heading time {
  color: #a3a3a3;
}

html[data-theme="dark"] .command-bar kbd {
  border-color: #333333;
  background: #171717;
  color: #a3a3a3;
}

html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .summary-chip.is-ok,
html[data-theme="dark"] .summary-chip.is-down,
html[data-theme="dark"] .summary-chip.is-checking,
html[data-theme="dark"] .icon-button {
  border-color: var(--line);
  background: #0a0a0a;
  color: #c7c7c7;
}

html[data-theme="dark"] .summary-chip.is-ok {
  color: #39d19f;
}

html[data-theme="dark"] .summary-chip.is-down {
  color: #ff8585;
}

html[data-theme="dark"] .summary-chip.is-checking {
  color: #f4ba5c;
}

html[data-theme="dark"] .icon-button:hover {
  border-color: #4a4a4a;
  background: #171717;
  color: #ffffff;
}

html[data-theme="dark"] .workspace-strip {
  border-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .status-pulse {
  background: var(--success);
}

html[data-theme="dark"] .workspace-strip.is-attention .status-pulse {
  background: var(--danger);
}

html[data-theme="dark"] .workspace-strip.is-pending .status-pulse {
  background: var(--warning);
}

html[data-theme="dark"] .metric {
  border-left-color: var(--line);
}

html[data-theme="dark"] .metric span {
  color: #ffffff;
}

html[data-theme="dark"] .service-group {
  border-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .service-group-head,
html[data-theme="dark"] .service-group-description {
  border-bottom-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .service-group-head > span {
  background: #1a1a1a;
  color: #a3a3a3;
}

html[data-theme="dark"] .service-group-description,
html[data-theme="dark"] .service-description,
html[data-theme="dark"] .detail-description {
  color: #a3a3a3;
}

html[data-theme="dark"] .service-card {
  border-top-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .service-card:hover {
  border-color: var(--line);
  background: #111111;
}

html[data-theme="dark"] .service-icon {
  border-color: #333333;
  background: #0a0a0a;
  color: #bdbdbd;
}

html[data-theme="dark"] .service-auth,
html[data-theme="dark"] .service-auth.is-public {
  border-color: #333333;
  background: #171717;
  color: #bdbdbd;
}

html[data-theme="dark"] .service-status {
  color: #a3a3a3;
}

html[data-theme="dark"] .service-details dd,
html[data-theme="dark"] .detail-grid dd {
  color: #d4d4d4;
}

html[data-theme="dark"] .service-link,
html[data-theme="dark"] .primary-action {
  background: #ededed;
  color: #000000;
}

html[data-theme="dark"] .service-link:hover,
html[data-theme="dark"] .primary-action:hover {
  background: #ffffff;
  color: #000000;
}

html[data-theme="dark"] .secondary-action {
  border-color: #333333;
  background: #0a0a0a;
  color: #ededed;
}

html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .secondary-action.is-copied {
  border-color: #525252;
  background: #171717;
  color: #ffffff;
}

html[data-theme="dark"] .ops-panel,
html[data-theme="dark"] .agent-panel {
  border-color: var(--line);
  background: #0a0a0a;
}

html[data-theme="dark"] .ops-panel-header strong,
html[data-theme="dark"] .ops-panel-header a,
html[data-theme="dark"] .ops-panel-header small {
  color: #bdbdbd;
}

html[data-theme="dark"] .ops-row,
html[data-theme="dark"] .incident-row {
  background: #111111;
}

html[data-theme="dark"] .ops-row:hover {
  background: #171717;
}

html[data-theme="dark"] .ops-row strong,
html[data-theme="dark"] .incident-row strong {
  color: #ededed;
}

html[data-theme="dark"] .ops-row span,
html[data-theme="dark"] .ops-row small,
html[data-theme="dark"] .incident-row span,
html[data-theme="dark"] .incident-row small {
  color: #a3a3a3;
}

html[data-theme="dark"] .quick-action-list button {
  border-color: #333333;
  background: #0a0a0a;
  color: #ededed;
}

html[data-theme="dark"] .quick-action-list button:hover {
  border-color: #525252;
  background: #171717;
  color: #ffffff;
}

html[data-theme="dark"] .field input[type="text"],
html[data-theme="dark"] .scope-fieldset,
html[data-theme="dark"] .scope-fieldset label,
html[data-theme="dark"] .agent-key-row,
html[data-theme="dark"] .agent-key-secret,
html[data-theme="dark"] .list-state,
html[data-theme="dark"] .empty-state {
  border-color: var(--line);
  background: #0a0a0a;
  color: #ededed;
}

html[data-theme="dark"] .field input[type="text"] {
  color: #ffffff;
}

html[data-theme="dark"] .scope-fieldset input {
  accent-color: #ffffff;
}

html[data-theme="dark"] .scope-list span,
html[data-theme="dark"] .agent-list-header code {
  border-color: #333333;
  background: #171717;
  color: #d4d4d4;
}

html[data-theme="dark"] .detail-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .detail-panel {
  border-color: #333333;
  background: #0a0a0a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .skeleton-line,
html[data-theme="dark"] .skeleton-pill,
html[data-theme="dark"] .skeleton-card::after {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .inline-alert {
  border-color: rgba(255, 92, 92, 0.36);
  background: rgba(217, 48, 54, 0.14);
  color: #ffb2b2;
}

html[data-theme="dark"] :focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 820px) {
  html[data-theme="dark"] .console-rail {
    border-bottom-color: var(--line);
    background: #0a0a0a;
  }
}

@media (max-width: 460px) {
  html[data-theme="dark"] .metric,
  html[data-theme="dark"] .metric:first-child {
    background: #171717;
  }
}
