:root {
  --surface: #ffffff;
  --surface-muted: #f4f7fa;
  --ink: #152238;
  --ink-muted: #657188;
  --line: #dfe6ee;
  --brand: #0f6b78;
  --brand-dark: #0b3e4a;
  --healthy: #087f5b;
  --healthy-bg: #e9f8f1;
  --unknown: #657188;
  --unknown-bg: #eef2f6;
}

html {
  min-height: 100%;
  font-size: 16px;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--brand);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.app-header {
  margin-bottom: 2.5rem;
  padding: 0.9rem 0;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 0.4rem 1.5rem rgb(13 42 51 / 12%);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.app-brand,
.app-nav__link {
  color: #fff;
  text-decoration: none;
}

.app-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-brand span {
  margin-left: 0.35rem;
  color: #9edbe2;
  font-weight: 600;
}

.app-nav__link {
  opacity: 0.86;
}

.app-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logout-form {
  margin: 0;
}

.app-nav__button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  opacity: 0.86;
}

.app-nav__link:hover,
.app-nav__link:focus,
.app-nav__button:hover,
.app-nav__button:focus {
  color: #fff;
  opacity: 1;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.lead {
  max-width: 44rem;
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
}

.environment-badge {
  flex: none;
  padding: 0.5rem 0.8rem;
  border: 1px solid #b8dce1;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e7f6f8;
  font-size: 0.82rem;
  font-weight: 750;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-card {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-top: 0.25rem solid var(--unknown);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 0.5rem 1.5rem rgb(33 50 74 / 5%);
}

.status-card--healthy {
  border-top-color: var(--healthy);
}

.status-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 780;
}

.status-card p {
  margin: 1rem 0 1.35rem;
  color: var(--ink-muted);
}

.status-pill {
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill--healthy {
  color: var(--healthy);
  background: var(--healthy-bg);
}

.status-pill--unknown {
  color: var(--unknown);
  background: var(--unknown-bg);
}

.next-step {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) 1.3fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.6rem;
  border-radius: 0.9rem;
  color: #eaf7f8;
  background: linear-gradient(130deg, var(--brand-dark), #155f69);
}

.next-step .eyebrow {
  color: #9edbe2;
}

.next-step h2,
.next-step p {
  margin: 0;
}

.next-step h2 {
  font-size: 1.35rem;
}

.next-step > p {
  align-self: center;
  color: #c7e4e7;
}

.error-page {
  max-width: 48rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.request-id {
  margin-top: 2rem;
  color: var(--ink-muted);
}

.auth-shell {
  display: grid;
  min-height: 34rem;
  place-items: start center;
}

.auth-shell--wide .auth-card {
  max-width: 44rem;
}

.auth-card {
  width: 100%;
  max-width: 32rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 0.25rem solid var(--brand);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 0.5rem 1.5rem rgb(33 50 74 / 5%);
}

.auth-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.auth-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

.auth-form label {
  margin-top: 0.65rem;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b9c5d3;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--brand);
  outline: 0.2rem solid rgb(15 107 120 / 16%);
}

.button-primary {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary:hover,
.button-primary:focus {
  color: #fff;
  background: var(--brand-dark);
}

.button-link {
  display: inline-block;
  text-decoration: none;
}

.validation-summary,
.field-validation {
  color: #a61b1b;
}

.validation-summary:empty,
.field-validation:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-alternative {
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
}

.setup-steps {
  padding-left: 1.35rem;
  color: var(--ink-muted);
}

.setup-steps li + li {
  margin-top: 0.5rem;
}

.secret-display,
.auth-uri,
.recovery-codes {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface-muted);
}

.secret-display span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.secret-display code,
.auth-uri code {
  overflow-wrap: anywhere;
}

.auth-uri summary {
  cursor: pointer;
  font-weight: 700;
}

.auth-uri code {
  display: block;
  margin-top: 0.8rem;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.recovery-codes code {
  padding: 0.45rem;
  border-radius: 0.35rem;
  background: #fff;
  text-align: center;
}

.footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

@media (max-width: 767px) {
  .app-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .app-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-heading,
  .next-step {
    display: block;
  }

  .environment-badge {
    display: inline-block;
    margin-top: 1rem;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .next-step > p {
    margin-top: 1rem;
  }

  .recovery-codes {
    grid-template-columns: 1fr;
  }
}

/* Authenticated application shell follows docs/mockups/control-center-mockup.html. */
.ercc-body {
  min-height: 100vh;
  padding: 16px;
  background: light-dark(#e8edf3, #080d12);
}

.ercc-app {
  --ercc-shell: light-dark(#edf2f6, #0b1016);
  --ercc-sidebar: light-dark(#142438, #111b27);
  --ercc-sidebar-2: light-dark(#1c314a, #172536);
  --ercc-surface: light-dark(#fff, #131c27);
  --ercc-surface-2: light-dark(#f5f8fb, #192430);
  --ercc-line: light-dark(#dce4eb, #2a3a4b);
  --ercc-text: light-dark(#172334, #edf4fb);
  --ercc-muted: light-dark(#647386, #9aabbd);
  --ercc-sidebar-text: #f5f8fc;
  --ercc-sidebar-muted: #aebdcd;
  --ercc-blue: light-dark(#1967d2, #65a7ff);
  --ercc-blue-soft: light-dark(#e8f1ff, #173052);
  --ercc-green: light-dark(#18794e, #57d99a);
  --ercc-green-soft: light-dark(#e5f6ee, #133c31);
  --ercc-amber: light-dark(#9a6700, #f2c15f);
  --ercc-amber-soft: light-dark(#fff3d1, #453516);
  --ercc-red: light-dark(#c0362c, #ff8a82);
  --ercc-red-soft: light-dark(#ffebe9, #49211f);
  width: min(100%, 1480px);
  min-height: calc(100vh - 32px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ercc-line);
  border-radius: 16px;
  color: var(--ercc-text);
  background: var(--ercc-shell);
  color-scheme: light dark;
}

.ercc-app *,
.ercc-app *::before,
.ercc-app *::after {
  box-sizing: border-box;
}

.ercc-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: calc(100vh - 34px);
}

.ercc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px;
  color: var(--ercc-sidebar-text);
  background: linear-gradient(180deg, var(--ercc-sidebar), var(--ercc-sidebar-2));
}

.ercc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--ercc-sidebar-text);
  text-decoration: none;
}

.ercc-brand:hover {
  color: var(--ercc-sidebar-text);
}

.ercc-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #0d2b1d;
  background: #61c690;
  font-size: 13px;
  font-weight: 600;
  place-items: center;
}

.ercc-brand-copy,
.ercc-brand-name,
.ercc-brand-sub {
  display: block;
  min-width: 0;
}

.ercc-brand-name {
  color: var(--ercc-sidebar-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ercc-brand-sub {
  color: var(--ercc-sidebar-muted);
  font-size: 12px;
  font-weight: 400;
}

.ercc-demo {
  margin: 0 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ercc-sidebar-muted);
  background: rgb(255 255 255 / 8%);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ercc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ercc-nav a,
.ercc-nav-disabled {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ercc-sidebar-muted);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.ercc-nav a:hover {
  color: var(--ercc-sidebar-text);
  background: rgb(255 255 255 / 7%);
}

.ercc-nav a[aria-current="page"] {
  color: var(--ercc-sidebar-text);
  background: rgb(255 255 255 / 13%);
}

.ercc-nav-disabled {
  cursor: default;
  opacity: 0.52;
}

.ercc-nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
  font-size: 11px;
  place-items: center;
}

.ercc-side-foot {
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--ercc-sidebar-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ercc-side-foot strong {
  color: var(--ercc-sidebar-text);
  font-weight: 500;
}

.ercc-logout-form {
  margin: 10px 0 0;
}

.ercc-logout-form button {
  padding: 0;
  border: 0;
  color: var(--ercc-sidebar-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0.82;
}

.ercc-logout-form button:hover {
  opacity: 1;
}

.ercc-main {
  min-width: 0;
}

.ercc-topbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ercc-line);
  background: var(--ercc-surface);
}

.ercc-env,
.ercc-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ercc-muted);
  font-size: 12px;
}

.ercc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ercc-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ercc-green) 16%, transparent);
}

.ercc-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ercc-blue);
  background: var(--ercc-blue-soft);
  font-weight: 500;
  place-items: center;
}

.ercc-content {
  padding: 18px;
}

.ercc-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ercc-page-head h1 {
  margin: 0 0 4px;
  color: var(--ercc-text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.ercc-page-head p {
  margin: 0;
  color: var(--ercc-muted);
  font-size: 12px;
}

.ercc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ercc-action {
  padding: 8px 11px;
  border: 1px solid var(--ercc-line);
  border-radius: 8px;
  color: var(--ercc-text);
  background: var(--ercc-surface);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.ercc-action:hover {
  border-color: var(--ercc-blue);
  color: var(--ercc-text);
}

.ercc-action-primary,
.ercc-action-primary:hover {
  border-color: var(--ercc-blue);
  color: #fff;
  background: var(--ercc-blue);
}

.ercc-runbar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ercc-blue);
  background: var(--ercc-blue-soft);
  font-size: 12px;
}

.ercc-runbar.is-visible {
  display: flex;
}

.ercc-runbar--ok {
  color: var(--ercc-green);
  background: var(--ercc-green-soft);
}

.ercc-runbar--warn {
  color: var(--ercc-amber);
  background: var(--ercc-amber-soft);
}

.ercc-runbar--bad {
  color: var(--ercc-red);
  background: var(--ercc-red-soft);
}

.ercc-runbar-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentcolor;
}

.ercc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ercc-metric,
.ercc-panel,
.ercc-chart-panel {
  min-width: 0;
  border: 1px solid var(--ercc-line);
  border-radius: 10px;
  background: var(--ercc-surface);
}

.ercc-metric {
  padding: 12px;
}

.ercc-metric-label {
  margin-bottom: 7px;
  color: var(--ercc-muted);
  font-size: 11px;
}

.ercc-metric-value {
  color: var(--ercc-text);
  font-size: 20px;
  font-weight: 500;
}

.ercc-metric-note {
  margin-top: 4px;
  color: var(--ercc-muted);
  font-size: 11px;
}

.ercc-value-ok {
  color: var(--ercc-green);
}

.ercc-value-warn {
  color: var(--ercc-amber);
}

.ercc-value-bad {
  color: var(--ercc-red);
}

.ercc-value-muted,
.ercc-muted {
  color: var(--ercc-muted);
}

.ercc-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 12px;
  margin-bottom: 12px;
}

.ercc-system {
  padding: 11px 0;
  border-top: 1px solid var(--ercc-line);
}

.ercc-system:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.ercc-system:last-child {
  padding-bottom: 0;
}

.ercc-system.ercc-system--healthy,
.ercc-system.ercc-system--warning,
.ercc-system.ercc-system--critical,
.ercc-system.ercc-system--neutral {
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--ercc-line);
  border-radius: 9px;
}

.ercc-system.ercc-system--healthy {
  border-color: var(--ercc-green);
  background: var(--ercc-green-soft);
}

.ercc-system.ercc-system--warning {
  border-color: var(--ercc-amber);
  background: var(--ercc-amber-soft);
}

.ercc-system.ercc-system--critical {
  border-color: var(--ercc-red);
  background: var(--ercc-red-soft);
}

.ercc-system.ercc-system--neutral {
  background: var(--ercc-blue-soft);
}

.ercc-system.ercc-system--healthy:last-child,
.ercc-system.ercc-system--warning:last-child,
.ercc-system.ercc-system--critical:last-child,
.ercc-system.ercc-system--neutral:last-child {
  margin-bottom: 0;
}

.ercc-system-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ercc-system-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ercc-system-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ercc-system-detail {
  color: var(--ercc-blue);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
}

.ercc-system-detail:hover {
  text-decoration: underline;
}

.ercc-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ercc-mini {
  padding: 8px;
  border-radius: 8px;
  background: var(--ercc-surface-2);
}

.ercc-mini b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.ercc-mini span {
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-alert-list,
.ercc-checks {
  display: grid;
  gap: 8px;
}

.ercc-alert {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
}

.ercc-alert-bar {
  border-radius: 5px;
  background: var(--ercc-amber);
}

.ercc-alert-bar.ercc-alert-red {
  background: var(--ercc-red);
}

.ercc-alert-body {
  padding: 7px 0;
}

.ercc-alert-title {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 500;
}

.ercc-alert-meta {
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--ercc-line);
}

.ercc-check:first-child {
  border-top: 0;
}

.ercc-check-icon {
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--ercc-green);
  background: var(--ercc-green-soft);
  font-size: 11px;
  place-items: center;
}

.ercc-check-icon.ercc-icon-warn {
  color: var(--ercc-amber);
  background: var(--ercc-amber-soft);
}

.ercc-check-name {
  font-size: 12px;
}

.ercc-check-sub {
  margin-top: 2px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-check-time {
  color: var(--ercc-muted);
  font-size: 10px;
  white-space: nowrap;
}

.ercc-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ercc-line);
  border-radius: 9px;
  background: var(--ercc-surface);
}

.ercc-source-main,
.ercc-source-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ercc-source-main {
  min-width: 0;
}

.ercc-source-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ercc-source-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--ercc-green);
  background: var(--ercc-green-soft);
  font-size: 11px;
  font-weight: 500;
  place-items: center;
}

.ercc-source-title {
  font-size: 12px;
  font-weight: 500;
}

.ercc-source-sub {
  margin-top: 2px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-select {
  padding: 6px 26px 6px 8px;
  border: 1px solid var(--ercc-line);
  border-radius: 7px;
  color: var(--ercc-text);
  background: var(--ercc-surface-2);
}

.ercc-range {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--ercc-line);
  border-radius: 7px;
}

.ercc-range button,
.ercc-range a {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  border-left: 1px solid var(--ercc-line);
  color: var(--ercc-muted);
  background: var(--ercc-surface-2);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
}

.ercc-range button:first-child,
.ercc-range a:first-child {
  border-left: 0;
}

.ercc-range button[aria-pressed="true"],
.ercc-range a[aria-pressed="true"] {
  color: #fff;
  background: var(--ercc-blue);
}

.ercc-range button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ercc-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ercc-chat-events {
  margin-bottom: 12px;
}

.ercc-chart-panel {
  padding: 12px;
}

.ercc-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ercc-chart-title {
  font-size: 12px;
  font-weight: 500;
}

.ercc-chart-sub {
  margin-top: 2px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-chart-now {
  font-size: 17px;
  font-weight: 500;
  text-align: right;
}

.ercc-chart-now small {
  display: block;
  margin-top: 1px;
  color: var(--ercc-muted);
  font-size: 9px;
  font-weight: 400;
}

.ercc-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}

.ercc-chart-stats div {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--ercc-line);
  border-radius: 6px;
  background: var(--ercc-surface-2);
}

.ercc-chart-stats dt {
  color: var(--ercc-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.ercc-chart-stats dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ercc-text);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ercc-chart-threshold-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 8px 59px;
  color: var(--ercc-muted);
  font-size: 9px;
}

.ercc-chart-threshold-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ercc-chart-threshold-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.ercc-chart-layout {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
}

.ercc-chart-y-axis {
  position: relative;
  height: 132px;
  color: var(--ercc-muted);
  font-size: 8px;
  text-align: right;
}

.ercc-chart-y-axis span {
  position: absolute;
  right: 0;
  max-width: 52px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.ercc-chart-canvas {
  position: relative;
  min-width: 0;
}

.ercc-chart-svg {
  display: block;
  width: 100%;
  height: 132px;
  overflow: visible;
  cursor: crosshair;
}

.ercc-chart-gridline {
  stroke: var(--ercc-line);
  stroke-width: 1;
}

.ercc-chart-band {
  pointer-events: none;
}

.ercc-chart-band--healthy {
  fill: color-mix(in srgb, var(--ercc-green) 9%, transparent);
  background: color-mix(in srgb, var(--ercc-green) 24%, transparent);
}

.ercc-chart-band--warning {
  fill: color-mix(in srgb, var(--ercc-amber) 11%, transparent);
  background: color-mix(in srgb, var(--ercc-amber) 28%, transparent);
}

.ercc-chart-band--critical {
  fill: color-mix(in srgb, var(--ercc-red) 10%, transparent);
  background: color-mix(in srgb, var(--ercc-red) 26%, transparent);
}

.ercc-chart-area {
  fill: color-mix(in srgb, var(--ercc-blue) 14%, transparent);
}

.ercc-chart-line {
  fill: none;
  stroke: var(--ercc-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ercc-chart-end {
  fill: var(--ercc-blue);
  stroke: var(--ercc-surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ercc-chart-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  vector-effect: non-scaling-stroke;
}

.ercc-chart-hit:focus {
  stroke: color-mix(in srgb, var(--ercc-blue) 45%, transparent);
  stroke-width: 2;
  outline: none;
}

.ercc-chart-crosshair {
  stroke: color-mix(in srgb, var(--ercc-muted) 70%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.ercc-chart-focus {
  fill: var(--ercc-surface);
  stroke: var(--ercc-blue);
  stroke-width: 2.5;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.ercc-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 108px;
  max-width: 180px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--ercc-blue) 35%, var(--ercc-line));
  border-radius: 7px;
  box-shadow: 0 5px 16px color-mix(in srgb, #000 18%, transparent);
  color: var(--ercc-text);
  background: var(--ercc-surface);
  font-size: 9px;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(8px, calc(-100% - 7px));
}

.ercc-chart-tooltip.is-right {
  transform: translate(calc(-100% - 8px), calc(-100% - 7px));
}

.ercc-chart-tooltip.is-low {
  transform: translate(8px, 7px);
}

.ercc-chart-tooltip.is-right.is-low {
  transform: translate(calc(-100% - 8px), 7px);
}

.ercc-chart-tooltip span,
.ercc-chart-tooltip strong {
  display: block;
}

.ercc-chart-tooltip span {
  color: var(--ercc-muted);
}

.ercc-chart-tooltip strong {
  margin-top: 2px;
  font-size: 11px;
}

.ercc-chart-x-axis {
  position: relative;
  height: 26px;
  color: var(--ercc-muted);
  font-size: 8px;
}

.ercc-chart-x-axis span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ercc-chart-x-axis span:first-child {
  transform: none;
}

.ercc-chart-x-axis span:last-child {
  transform: translateX(-100%);
}

.ercc-event-list {
  display: grid;
}

.ercc-event {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--ercc-line);
}

.ercc-event:first-child {
  padding-top: 0;
  border-top: 0;
}

.ercc-event-time,
.ercc-event-sub {
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-event-title {
  font-size: 11px;
  font-weight: 500;
}

.ercc-event-sub {
  margin-top: 4px;
}

.ercc-infra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 12px;
}

.ercc-panel {
  padding: 14px;
}

.ercc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ercc-panel-head h2 {
  margin: 0;
  color: var(--ercc-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.ercc-panel-head > span {
  color: var(--ercc-muted);
  font-size: 11px;
}

.ercc-host-list {
  display: grid;
}

.ercc-host {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) repeat(3, minmax(58px, 0.55fr)) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--ercc-line);
}

.ercc-host:first-child {
  padding-top: 0;
  border-top: 0;
}

.ercc-host:last-child {
  padding-bottom: 0;
}

.ercc-host-name {
  font-size: 11px;
  font-weight: 500;
}

.ercc-host-role,
.ercc-host-stat {
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-host-stat b {
  display: block;
  color: var(--ercc-text);
  font-size: 11px;
  font-weight: 500;
}

.ercc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.ercc-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.ercc-ok {
  color: var(--ercc-green);
  background: var(--ercc-green-soft);
}

.ercc-warn {
  color: var(--ercc-amber);
  background: var(--ercc-amber-soft);
}

.ercc-bad {
  color: var(--ercc-red);
  background: var(--ercc-red-soft);
}

.ercc-info {
  color: var(--ercc-blue);
  background: var(--ercc-blue-soft);
}

.ercc-empty-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.ercc-empty-state__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ercc-blue);
  background: var(--ercc-blue-soft);
  font-size: 12px;
  place-items: center;
}

.ercc-empty-state strong {
  font-size: 11px;
  font-weight: 500;
}

.ercc-empty-state p {
  margin: 3px 0 0;
  color: var(--ercc-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ercc-services-panel {
  margin-top: 12px;
}

.ercc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ercc-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.ercc-table th {
  padding: 8px;
  border-bottom: 1px solid var(--ercc-line);
  color: var(--ercc-muted);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}

.ercc-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--ercc-line);
  color: var(--ercc-text);
  font-size: 11px;
  vertical-align: top;
}

.ercc-table tr:last-child td {
  border-bottom: 0;
}

.ercc-jobs-table {
  min-width: 980px;
}

.ercc-job-performance-source {
  margin-top: 12px;
}

.ercc-job-performance-panel {
  margin-top: 12px;
}

.ercc-job-performance-table {
  min-width: 1080px;
}

.ercc-table-head-note {
  font-size: 9px;
  font-weight: 400;
}

.ercc-job-performance-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ercc-line);
  color: var(--ercc-muted);
  font-size: 10px;
  line-height: 1.5;
}

.ercc-job-performance-note strong {
  color: var(--ercc-text);
  font-weight: 500;
}

.ercc-endpoint-table {
  min-width: 1280px;
}

.ercc-security-table {
  min-width: 1080px;
}

.ercc-ai-usage-table {
  min-width: 980px;
}

.ercc-ai-usage-source {
  margin-top: 18px;
}

.ercc-ai-usage-charts {
  margin-top: 12px;
}

.ercc-ai-usage-reasons {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ercc-text);
  font-size: 11px;
  line-height: 1.55;
}

.ercc-ai-usage-reasons li + li {
  margin-top: 5px;
}

.ercc-ai-usage-coverage-ok {
  margin-top: 12px;
}

.ercc-row-critical td {
  background: var(--ercc-red-soft);
}

.ercc-row-warning td {
  background: var(--ercc-amber-soft);
}

.ercc-row-neutral td {
  background: var(--ercc-blue-soft);
}

.ercc-evidence {
  color: var(--ercc-muted) !important;
  font-size: 10px !important;
}

.ercc-job-critical td {
  background: var(--ercc-red-soft);
}

.ercc-job-warning td {
  background: var(--ercc-amber-soft);
}

.ercc-jobs-secondary {
  margin-top: 12px;
}

.ercc-job-queue-value {
  color: var(--ercc-text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

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

.ercc-test-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ercc-line);
  border-radius: 9px;
  background: var(--ercc-surface-2);
}

.ercc-test-box h2 {
  margin: 10px 0 6px;
  color: var(--ercc-text);
  font-size: 13px;
  font-weight: 500;
}

.ercc-test-box p {
  margin: 0;
  color: var(--ercc-muted);
  font-size: 10px;
  line-height: 1.5;
}

.ercc-secondary-panel {
  margin-top: 12px;
}

.ercc-service-name {
  font-weight: 500;
}

.ercc-service-flags {
  display: block;
  margin-top: 3px;
  color: var(--ercc-amber);
  font-size: 9px;
}

.ercc-performance-list {
  display: flex;
  max-width: 32rem;
  flex-wrap: wrap;
  gap: 4px;
}

.ercc-performance-list span {
  padding: 3px 5px;
  border-radius: 5px;
  color: var(--ercc-muted);
  background: var(--ercc-surface-2);
  font-size: 9px;
}

.ercc-performance-list b {
  color: var(--ercc-text);
  font-weight: 500;
}

.ercc-unavailable-panel {
  min-height: 220px;
  text-align: center;
}

.ercc-unavailable-panel h2 {
  margin: 24px 0 8px;
  color: var(--ercc-text);
  font-size: 18px;
  font-weight: 500;
}

.ercc-unavailable-panel p {
  color: var(--ercc-muted);
  font-size: 12px;
}

.ercc-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--ercc-blue);
  border-radius: 7px;
  color: var(--ercc-text);
  background: var(--ercc-blue-soft);
  font-size: 11px;
}

.ercc-release-time {
  font-size: 15px;
  line-height: 1.35;
}

.ercc-release-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ercc-line);
}

.ercc-release-version,
.ercc-release-title {
  color: var(--ercc-text);
  font-size: 12px;
  font-weight: 500;
}

.ercc-release-meta {
  margin-top: 4px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-release-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.ercc-release-details > div {
  min-width: 0;
  padding: 12px 12px 0 0;
}

.ercc-release-details dt {
  margin-bottom: 4px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-release-details dd {
  margin: 0;
  color: var(--ercc-text);
  font-size: 11px;
  line-height: 1.45;
}

.ercc-release-details code {
  overflow-wrap: anywhere;
}

.ercc-deployment-grid {
  margin-top: 12px;
}

.ercc-release-scope {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ercc-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ercc-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
}

.ercc-settings-grid + .ercc-settings-grid {
  margin-top: 12px;
}

.ercc-panel-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ercc-line);
}

.ercc-panel-head h2 {
  margin: 0;
  color: var(--ercc-text);
  font-size: 13px;
  font-weight: 500;
}

.ercc-panel-head > span {
  color: var(--ercc-muted);
  font-size: 10px;
  text-align: right;
}

.ercc-settings-form {
  padding: 14px;
}

.ercc-settings-form .validation-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ercc-red);
  background: var(--ercc-red-soft);
  font-size: 11px;
}

.ercc-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--ercc-line);
  border-radius: 9px;
  background: var(--ercc-surface-2);
  cursor: pointer;
}

.ercc-toggle-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--ercc-blue);
}

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

.ercc-toggle-row strong {
  color: var(--ercc-text);
  font-size: 12px;
  font-weight: 500;
}

.ercc-toggle-row small,
.ercc-form-field small {
  margin-top: 3px;
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ercc-form-field {
  display: block;
  min-width: 0;
  color: var(--ercc-text);
  font-size: 11px;
}

.ercc-form-field--wide {
  grid-column: 1 / -1;
}

.ercc-form-field > span:first-child {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.ercc-form-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--ercc-line);
  border-radius: 8px;
  color: var(--ercc-text);
  background: var(--ercc-surface);
  font: inherit;
  outline: none;
}

.ercc-form-field input:focus {
  border-color: var(--ercc-blue);
  box-shadow: 0 0 0 3px var(--ercc-blue-soft);
}

.ercc-form-field .field-validation {
  display: block;
  margin-top: 4px;
  color: var(--ercc-red);
  font-size: 10px;
}

.ercc-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.ercc-notification-intro {
  padding: 14px;
}

.ercc-notification-intro p {
  margin: 0 0 14px;
  color: var(--ercc-muted);
  font-size: 11px;
  line-height: 1.55;
}

.ercc-browser-status {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ercc-green) 30%, var(--ercc-line));
  border-radius: 8px;
  color: var(--ercc-green);
  background: var(--ercc-green-soft);
  font-size: 11px;
}

.ercc-browser-status.is-error {
  border-color: color-mix(in srgb, var(--ercc-red) 30%, var(--ercc-line));
  color: var(--ercc-red);
  background: var(--ercc-red-soft);
}

.ercc-notification-preferences {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ercc-notification-preferences legend {
  margin-bottom: 8px;
  color: var(--ercc-text);
  font-size: 11px;
  font-weight: 500;
}

.ercc-notification-preferences .ercc-toggle-row {
  margin-bottom: 8px;
}

.ercc-notification-actions {
  margin-top: 14px;
}

.ercc-settings-info ul {
  margin: 0;
  padding: 14px 28px 6px;
  color: var(--ercc-muted);
  font-size: 11px;
  line-height: 1.55;
}

.ercc-settings-info li + li {
  margin-top: 7px;
}

.ercc-settings-info code {
  color: var(--ercc-text);
}

.ercc-settings-updated {
  margin: 8px 14px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--ercc-line);
  color: var(--ercc-muted);
  font-size: 10px;
}

.ercc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .ercc-metrics,
  .ercc-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ercc-infra-grid {
    grid-template-columns: 1fr;
  }

  .ercc-grid-2 {
    grid-template-columns: 1fr;
  }

  .ercc-settings-grid {
    grid-template-columns: 1fr;
  }

  .ercc-test-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ercc-body {
    padding: 0;
  }

  .ercc-app {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .ercc-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ercc-sidebar {
    gap: 10px;
    padding: 12px;
  }

  .ercc-demo,
  .ercc-side-foot {
    display: none;
  }

  .ercc-nav {
    flex-flow: row wrap;
  }

  .ercc-nav a,
  .ercc-nav-disabled {
    width: auto;
    padding: 7px 9px;
  }

  .ercc-content {
    padding: 14px;
  }

  .ercc-page-head,
  .ercc-source-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ercc-actions,
  .ercc-source-controls,
  .ercc-settings-actions {
    justify-content: flex-start;
  }

  .ercc-release-row {
    grid-template-columns: 1fr auto;
  }

  .ercc-release-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ercc-release-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .ercc-metrics,
  .ercc-chart-grid,
  .ercc-mini-grid {
    grid-template-columns: 1fr;
  }

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

  .ercc-chart-threshold-legend {
    margin-left: 0;
  }

  .ercc-user > span:first-child {
    display: none;
  }

  .ercc-host {
    grid-template-columns: minmax(120px, 1fr) auto;
  }

  .ercc-host > :nth-child(2),
  .ercc-host > :nth-child(3),
  .ercc-host > :nth-child(4) {
    display: none;
  }

  .ercc-form-grid {
    grid-template-columns: 1fr;
  }

  .ercc-form-field--wide {
    grid-column: auto;
  }
}
