@font-face {
  font-display: swap;
  font-family: "Geist Sans";
  font-weight: 100 900;
  src: url("/public/assets/fonts/geist/Geist-Variable.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geist Mono";
  font-weight: 100 900;
  src: url("/public/assets/fonts/geist/GeistMono-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fafafa;
  --card: #ffffff;
  --card-soft: #fafafa;
  --line: #ebebeb;
  --line-strong: #d4d4d4;
  --text: #171717;
  --soft: #525252;
  --muted: #737373;
  --blue: #0070f3;
  --teal: #0a7f5a;
  --amber: #a35200;
  --red: #e5484d;
  --violet: #6e56cf;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
}

.page-slice[hidden] {
  display: none !important;
}

.auth-shell {
  align-items: center;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-brand {
  margin-bottom: 34px;
}

.auth-brand img {
  height: auto;
  width: 116px;
}

.auth-brand-full img {
  width: 168px;
}

.auth-brand-mark {
  padding: 8px;
}

.auth-brand-mark img {
  height: auto;
  width: 148px;
}

.auth-theme-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  margin: -14px 0 24px auto;
  padding: 7px 12px;
}

.auth-theme-toggle:hover,
.auth-theme-toggle:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  max-width: 440px;
  padding: 38px;
  width: 100%;
}

.auth-card > span {
  color: var(--muted);
  font-size: 13px;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 10px 0;
}

.auth-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 26px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label span {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.auth-consent {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

.auth-consent input {
  min-height: auto;
  margin: 3px 0 0;
  width: 16px;
}

.auth-consent a,
.auth-foot a,
.public-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.public-shell {
  justify-content: flex-start;
}

.public-card {
  max-width: 760px;
}

.public-card h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.public-card p {
  color: var(--soft);
  line-height: 1.65;
}

.public-back {
  border-top: 1px solid var(--line);
  margin-top: 32px !important;
  padding-top: 22px;
}

.auth-form input {
  background: #fff;
  border-color: var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  min-height: 42px;
  padding: 0 12px;
}

.auth-form select {
  background-color: #fff;
  border-color: var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  min-height: 42px;
}

.auth-form input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.auth-form button {
  background: #171717;
  border: 1px solid #171717;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  min-height: 42px;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-error {
  background: #fff0f0;
  border: 1px solid #ffc1c1;
  border-radius: 6px;
  color: #b42323 !important;
  font-size: 13px !important;
  margin: 0 !important;
  padding: 10px 12px;
}

.auth-notice {
  color: #8ed6a5;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.webhook-example {
  background: #080b10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #c9d7e8;
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 1rem;
  white-space: pre;
}

.platform-hero.single-column {
  grid-template-columns: 1fr;
}

.connectivity-state {
  margin: 0 auto 16px;
  max-width: 1480px;
}

.scalable-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-top: 20px;
}

.scalable-kpi {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.scalable-kpi.good { border-color: rgba(23, 201, 154, 0.38); }
.scalable-kpi.watch { border-color: rgba(245, 166, 35, 0.45); }

.scalable-kpi span,
.scalable-kpi em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.scalable-kpi strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.incident-actions.horizontal {
  align-items: center;
  flex-direction: row;
  margin-top: 20px;
}

.incident-actions.horizontal a {
  width: auto;
}

.incident-actions.hosted-webhook-actions {
  align-self: stretch;
  justify-content: flex-start;
  margin-top: 18px;
}

.incident-actions.hosted-webhook-actions button {
  margin: 0;
  min-height: 44px;
  width: auto;
}

.incident-actions.alert-setup-actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
}

.incident-actions.alert-setup-actions button {
  align-self: stretch;
  margin: 0;
  min-height: 44px;
  width: auto;
}

@media (max-width: 820px) {
  .incident-actions.alert-setup-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incident-actions.alert-setup-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .incident-actions.alert-setup-actions {
    grid-template-columns: 1fr;
  }
}

.empty-operational-state {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}

.empty-operational-state strong { color: var(--text); font-size: 20px; }
.empty-operational-state p { color: var(--soft); margin: 8px auto 18px; }
.empty-operational-state a { color: var(--blue); }

.auth-switch {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  display: block;
  font-size: 13px;
  margin: 22px auto 0;
}

.auth-foot {
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
  text-align: center;
}

.workspace-card {
  max-width: 500px;
}

.setup-progress {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.setup-progress span {
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 500;
}

.setup-progress span.complete {
  color: var(--teal);
}

.setup-progress span.active {
  color: var(--text);
}

.setup-progress i {
  background: var(--line-strong);
  flex: 1;
  height: 1px;
}

.slug-field {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.slug-field > span {
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding-left: 12px;
}

.slug-field input {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.slug-field:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.rail {
  align-items: center;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 22px rgba(31, 40, 68, 0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  inset: 0 auto 0 0;
  padding: 24px 16px;
  position: fixed;
  width: 96px;
  z-index: 20;
}

.rail nav {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  width: 100%;
}

.rail nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #68718d;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 54px;
  justify-content: center;
  transition: 160ms ease;
  width: 62px;
}

.rail nav a span {
  color: var(--muted);
  font-size: 10px;
}

.rail nav a b {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.rail nav a:hover,
.rail nav a.active {
  background: #fbfdff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--blue);
}

.shell {
  margin-left: 96px;
  padding: 26px 38px 48px;
}

.topbar {
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  min-height: 74px;
  overflow: visible;
}

.wordmark {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 12px;
  min-width: 188px;
  padding: 0 26px;
}

.wordmark img {
  height: auto;
  object-fit: contain;
  width: 120px;
}

.wordmark.app-mark {
  justify-content: center;
  min-width: 96px;
  padding: 0 18px;
}

.wordmark.app-mark img {
  width: 58px;
}

.wordmark span {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.top-tabs {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 30px;
  padding: 0 30px;
}

.top-tabs a {
  color: #444b66;
  font-size: 14px;
  font-weight: 520;
  position: relative;
  white-space: nowrap;
}

.top-tabs a:hover,
.top-tabs a.active {
  color: var(--blue);
}

.top-tabs a.active::after {
  background: var(--blue);
  border-radius: 999px;
  bottom: -25px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.top-actions {
  display: flex;
  position: relative;
}

.top-actions > * {
  border-left: 1px solid var(--line);
}

.settings-action {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: 112px;
  padding: 0 16px;
  white-space: nowrap;
}

.settings-action span {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.settings-action b {
  font-size: 13px;
  font-weight: 600;
}

.settings-action:hover,
.settings-action.active {
  background: var(--card-soft);
  color: var(--blue);
}

.round-action {
  align-items: center;
  color: var(--blue);
  display: grid;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 28px;
  justify-content: center;
  min-width: 70px;
}

.round-action.muted {
  color: #59617b;
  font-size: 25px;
}

.user-chip {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 14px;
  min-width: 210px;
  padding: 0 22px;
}

.live-pill {
  align-items: center;
  color: var(--teal);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-width: 84px;
}

.live-pill i {
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(23, 201, 154, 0.12);
  height: 8px;
  width: 8px;
}

.user-chip span {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.user-chip b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.account-menu[hidden] {
  display: none;
}

.account-menu {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  display: grid;
  min-width: 230px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.account-menu-identity {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.account-menu-identity strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.account-menu-identity span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-menu > a,
.account-menu > button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
}

.account-menu > a:hover,
.account-menu > button:hover,
.account-menu > a:focus-visible,
.account-menu > button:focus-visible {
  background: var(--card-soft);
  outline: none;
}

.account-menu > button {
  border-top: 1px solid var(--line);
  color: #ff7875;
}

.page-title {
  margin: 26px auto 14px;
  max-width: 1480px;
}

.page-title span,
.section-heading > span,
.hero-card > span,
.chart-head span,
.parent-kpi span,
.stat-card > span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.page-title h1,
.section-heading h2,
.chart-head h3,
.incident-card h3 {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.page-title h1 {
  font-size: clamp(25px, 2.35vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 4px;
}

.page-title p,
.section-heading p,
.hero-card p,
.chart-card p,
.incident-card p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 760px;
}

.page-links {
  display: flex;
  gap: 8px;
  margin: 0 auto 18px;
  max-width: 1480px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.page-links::-webkit-scrollbar {
  display: none;
}

.page-links a {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f5872;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 15px;
  transition: 160ms ease;
}

.page-links a:hover,
.page-links a.active {
  background: #ffffff;
  border-color: #d4dce8;
  box-shadow: var(--shadow-soft);
  color: var(--blue);
}

.hero-grid,
.home-hero,
.parent-section,
.detail-section,
.kpi-strip,
.chart-grid,
.analytics-grid,
.module-grid,
.content-grid,
.platform-section,
.platform-hero,
.capability-grid,
.marketplace-section,
.data-onboarding,
.data-section,
.settings-section {
  margin: 0 auto 16px;
  max-width: 1480px;
}

.home-hero {
  background:
    linear-gradient(135deg, rgba(31, 151, 230, 0.08), rgba(23, 201, 154, 0.06) 46%, rgba(255, 255, 255, 0.88)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.home-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  align-self: center;
  max-width: 590px;
}

.home-hero-copy > span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.home-hero-copy h2 {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.home-hero-copy p {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 560px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-actions a {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  padding: 11px 17px;
}

.home-hero-actions a:last-child {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}

.home-data-entry {
  align-self: stretch;
  background: var(--theme-card, rgba(10, 10, 10, 0.86));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  gap: 18px;
  padding: 26px;
}

.home-data-entry > div > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.home-data-entry h3 {
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  margin: 8px 0 0;
}

.home-data-entry > div > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.hero-kpi-form {
  display: grid;
  gap: 14px;
}

.hero-kpi-form label {
  display: grid;
  gap: 7px;
}

.hero-kpi-form label > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.hero-kpi-form input,
.hero-kpi-form select {
  background: #050505;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
}

.hero-kpi-form button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 7px;
  color: var(--theme-action-ink, #050505);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.hero-kpi-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.hero-config-form button {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .hero-config-form {
    grid-template-columns: 1fr;
  }

  .hero-config-form button {
    grid-column: auto;
  }
}

.platform-section,
.platform-hero,
.marketplace-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

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

.root-map-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.root-map-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.root-map-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 18px;
  transition: 160ms ease;
}

.root-map-card:hover,
.root-map-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.root-map-card b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.root-map-card span {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.root-map-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.root-map-card em {
  align-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  justify-self: start;
  padding: 6px 9px;
}

.root-map-meter {
  background: #e8edf5;
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
}

.root-map-meter i {
  background: var(--blue);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--w);
}

.root-map-card.connected .root-map-meter i {
  background: var(--teal);
}

.root-map-card.pending .root-map-meter i {
  background: #f5a623;
}

.root-map-card.missing .root-map-meter i {
  background: #525252;
}

.activation-path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  padding: 24px;
}

.activation-copy span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.activation-copy h2 {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.activation-copy p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 18px;
  max-width: 520px;
}

.activation-copy a {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--card);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  padding: 0 13px;
}

.activation-list {
  display: grid;
  gap: 10px;
}

.activation-list a {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.activation-list a div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.activation-list span,
.activation-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.activation-list strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.activation-list p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.platform-pillar {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 16px;
}

.platform-pillar:hover,
.platform-pillar:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.platform-pillar div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.platform-pillar span,
.platform-pillar em,
.capability-card span,
.marketplace-grid span,
.platform-metrics span,
.topology-board div {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.platform-pillar strong {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  min-height: 30px;
  padding: 0 10px;
}

.platform-pillar p,
.capability-card p,
.marketplace-grid p,
.platform-hero p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.platform-pillar em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  justify-self: start;
  padding: 6px 9px;
}

.platform-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
}

.platform-hero article {
  align-self: center;
}

.module-command {
  margin-bottom: 16px;
}

.module-command .platform-metrics div {
  min-height: 118px;
}

.module-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.module-command-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: 160ms ease;
}

.module-command-actions a:hover,
.module-command-actions a:focus-visible {
  border-color: var(--line-strong);
}

.platform-hero article > span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-hero h2 {
  color: var(--text);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 14px;
}

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

.platform-metrics div,
.topology-board div,
.capability-card,
.marketplace-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.marketplace-card {
  display: grid;
  gap: 10px;
  min-height: 174px;
}

.marketplace-card.connected {
  border-color: rgba(0, 208, 132, 0.3);
}

.marketplace-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.platform-metrics strong {
  color: var(--text);
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.platform-metrics em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.deploy-workflow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 auto 16px;
  max-width: 1480px;
  padding: 24px;
}

.deploy-status {
  background: #f3fbf7;
  border: 1px solid #bfead4;
  border-radius: 6px;
  color: #167a47;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 11px 12px;
}

.deploy-status.watch {
  background: #fff8ea;
  border-color: #f0d69c;
  color: #8a4b08;
}

.monitor-workflow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 auto 16px;
  max-width: 1480px;
  padding: 24px;
}

.monitor-status {
  background: #f3fbf7;
  border: 1px solid #bfead4;
  border-radius: 6px;
  color: #167a47;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 11px 12px;
}

.monitor-status.watch {
  background: #fff8ea;
  border-color: #f0d69c;
  color: #8a4b08;
}

.deploy-repo-grid,
.deploy-env-grid,
.deployment-card-grid,
.deploy-domain-grid,
.monitor-service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deploy-repo-card,
.deploy-env-card,
.deployment-card,
.deploy-domain-card,
.monitor-service-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.deploy-repo-card div,
.deploy-env-card div,
.deployment-card-head,
.deploy-domain-card div,
.monitor-service-card div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.deploy-repo-card span,
.deploy-env-card span,
.deployment-card span,
.deploy-domain-card span,
.monitor-service-card span,
.deploy-stage span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.deploy-repo-card em,
.deploy-env-card em,
.deployment-card em,
.deploy-domain-card em,
.monitor-service-card em,
.monitor-check-card em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 550;
  padding: 6px 9px;
}

.deploy-repo-card strong,
.deploy-env-card strong,
.deployment-card strong,
.deploy-domain-card strong,
.monitor-service-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.deploy-repo-card p,
.deploy-env-card p,
.deployment-card p,
.deploy-domain-card p,
.monitor-service-card p,
.monitor-check-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.deploy-repo-card button,
.deploy-env-card button,
.deployment-card button,
.deploy-domain-card a,
.integration-health-card a,
.monitor-service-card button,
.deploy-command-row button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  min-height: 38px;
  padding: 0 12px;
  width: fit-content;
}

.deployment-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.deployment-card.good {
  border-color: rgba(0, 208, 132, 0.3);
}

.deployment-card-foot {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.deployment-card-foot b {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.deploy-domain-grid {
  grid-template-columns: 1fr;
}

.deploy-domain-card {
  min-height: 138px;
}

.monitor-service-card.connected {
  border-color: #b7eadb;
}

.monitor-service-card.pending {
  border-color: #f4d9a4;
}

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

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

.integration-health-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 174px;
  padding: 16px;
}

.integration-health-card.good {
  border-color: rgba(0, 208, 132, 0.3);
}

.integration-health-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.integration-health-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.integration-health-head span,
.integration-health-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.integration-health-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.integration-health-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.integration-health-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 7px 10px;
  text-decoration: none;
}

.monitor-check-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.monitor-check-card.good {
  border-color: #b7eadb;
}

.monitor-check-card.watch {
  border-color: #f4d9a4;
}

.monitor-check-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.monitor-check-card strong {
  color: var(--text);
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 7px 0 4px;
}

.monitor-command-row {
  margin-top: 18px;
}

.deploy-pipeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
}

.deploy-stage {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  position: relative;
}

.deploy-stage i {
  background: #d8d8d8;
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.deploy-stage.passed i {
  background: #0a7f5a;
}

.deploy-stage.active {
  border-color: #bfead4;
}

.deploy-stage.active i {
  background: var(--blue);
}

.deploy-stage.queued i {
  background: var(--amber);
}

.deploy-stage strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.deploy-command-row {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}

.deploy-command-row button {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.deploy-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(520px, 1.3fr) minmax(360px, 0.7fr);
  margin: 0 auto 16px;
  max-width: 1480px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.capability-list span {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 11px;
}

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

.topology-board div {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 88px;
}

.capability-grid,
.marketplace-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.feature-card-grid.compact {
  grid-template-columns: 1fr;
}

.feature-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  min-width: 0;
}

.feature-card span {
  color: var(--blue);
  font-size: 11px;
}

.feature-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.feature-card p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.feature-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 6px 9px;
  text-decoration: none;
}

.capability-card strong,
.marketplace-grid strong {
  color: var(--text);
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.marketplace-grid em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 550;
  padding: 6px 9px;
}

.marketplace-card.connected em {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: #008a57;
}

.marketplace-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 7px 10px;
  text-decoration: none;
}

.marketplace-card-locked {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 6px 10px;
}

.home-hero-links {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-home {
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 58%, #f3fbf8 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: clamp(36px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
}

.welcome-copy > span,
.welcome-outcome > span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-copy h2 {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 520;
  line-height: 1.06;
  margin: 18px 0;
  max-width: 820px;
}

.welcome-copy p {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 700px;
}

.welcome-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 30px 0 18px;
}

.welcome-actions .primary-action {
  background: var(--text);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 22px;
}

.welcome-actions .text-action,
.welcome-note a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.welcome-copy small {
  color: var(--muted);
}

.welcome-outcome {
  align-self: center;
  background: #071522;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(7, 21, 34, 0.18);
  color: #fff;
  padding: 34px;
}

.welcome-outcome > span {
  color: #7dd3fc;
}

.welcome-outcome strong {
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 25px;
  font-weight: 520;
  line-height: 1.3;
  margin: 16px 0 26px;
}

.welcome-outcome ul {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.welcome-outcome li {
  align-items: center;
  color: #cbd5e1;
  display: flex;
  font-size: 13px;
  gap: 11px;
}

.welcome-outcome li i {
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(25, 184, 146, 0.13);
  height: 7px;
  width: 7px;
}

.setup-path {
  padding: 42px 0 18px;
}

.setup-path-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-path-grid a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 190px;
  padding: 24px;
  transition: 160ms ease;
}

.setup-path-grid a:hover {
  border-color: #cbd6e5;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.setup-path-grid b {
  color: var(--blue);
  display: block;
  font-size: 12px;
  margin-bottom: 28px;
}

.setup-path-grid span {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.setup-path-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}

.welcome-note {
  align-items: center;
  background: #eef5ff;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 22px 26px;
}

.welcome-note span {
  color: var(--text);
  font-weight: 800;
}

.welcome-note p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero-link {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 222, 234, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 44, 70, 0.055);
  min-height: 132px;
  padding: 20px;
  position: relative;
  transition: 160ms ease;
}

.hero-link::before {
  background: var(--blue);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 20px;
  position: absolute;
  right: 20px;
  top: 0;
}

.hero-link.teal::before {
  background: var(--teal);
}

.hero-link.amber::before {
  background: var(--amber);
}

.hero-link.red::before {
  background: var(--red);
}

.hero-link.violet::before {
  background: var(--violet);
}

.hero-link:hover {
  border-color: #ccd6e3;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hero-link span,
.hero-link em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.hero-link strong {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  margin: 14px 0 7px;
}

.hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 0.75fr) minmax(440px, 1.45fr) minmax(250px, 0.75fr);
}

.hero-card,
.panel,
.parent-kpi,
.stat-card,
.chart-card,
.module-card,
.detail-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-card {
  min-height: 258px;
  padding: 28px 32px;
}

.hero-card strong,
.stat-card strong,
.parent-kpi strong,
.detail-metric strong {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.rating-card strong {
  align-items: baseline;
  display: flex;
  gap: 6px;
  font-size: 56px;
  line-height: 1;
  margin-top: 20px;
}

.rating-card small {
  color: var(--muted);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.hero-card.wide {
  padding-bottom: 20px;
}

.hero-card-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero-card-head h2 {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 21px;
  font-weight: 560;
  margin: 3px 0 0;
}

.hero-card-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.hero-micro {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.hero-micro.centered {
  justify-content: center;
}

.hero-micro span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.hero-micro em {
  background: #ecfbf6;
  border-radius: 999px;
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 6px 9px;
}

.bar-analytics {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(8, 1fr);
  height: 154px;
  padding-top: 18px;
}

.bar-analytics a {
  background: var(--blue);
  border-radius: 6px 6px 0 0;
  height: var(--h);
  min-height: 28px;
  position: relative;
  transition: filter 160ms ease, transform 160ms ease;
}

.bar-analytics a:hover,
.bar-analytics a:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.bar-analytics b {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 11px;
  font-weight: 500;
  left: 50%;
  position: absolute;
  text-align: center;
  top: -20px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.bar-analytics a.good {
  background: var(--teal);
}

.bar-analytics a.watch {
  background: var(--amber);
}

.bar-analytics a.bad {
  background: var(--red);
}

.bar-analytics span {
  bottom: -30px;
  color: var(--muted);
  display: block;
  font-size: 9.5px;
  left: 50%;
  line-height: 1.2;
  max-width: 72px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

.sentiment-card {
  text-align: center;
}

.gauge {
  align-items: center;
  background:
    radial-gradient(circle, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--teal) 0 328deg, #e2e8f0 328deg 360deg);
  border-radius: 999px;
  display: grid;
  height: 156px;
  justify-content: center;
  margin: 20px auto 12px;
  width: 156px;
}

.gauge strong {
  font-size: 34px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 560;
}

.parent-section {
  padding-top: 12px;
}

.parent-kpi-grid,
.detail-grid,
.kpi-strip,
.analytics-grid,
.content-grid,
.settings-section,
.module-grid {
  display: grid;
  gap: 18px;
}

.parent-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parent-kpi {
  min-height: 232px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  transition: 160ms ease;
}

.kpi-accent {
  background: var(--blue);
  border-radius: 999px;
  height: 4px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 0;
}

.parent-kpi.good .kpi-accent {
  background: var(--teal);
}

.parent-kpi.bad .kpi-accent {
  background: var(--red);
}

.parent-kpi.watch .kpi-accent {
  background: var(--amber);
}

.parent-kpi:hover {
  border-color: #cfd8e6;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.kpi-card-head,
.kpi-card-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.kpi-card-head em,
.kpi-card-foot span:last-child {
  background: #eef7ff;
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 6px 10px;
}

.parent-kpi.good .kpi-card-head em {
  background: #eafaf5;
  color: var(--teal);
}

.parent-kpi.bad .kpi-card-head em {
  background: #fff1f2;
  color: var(--red);
}

.parent-kpi.watch .kpi-card-head em {
  background: #fff7e6;
  color: #b27700;
}

.parent-kpi strong {
  font-size: 36px;
  line-height: 1.05;
  margin-top: 22px;
}

.parent-kpi p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 14px;
}

.kpi-card-foot span:first-child {
  color: var(--teal);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 15px;
}

.formula-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
}

.formula-row span {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #66708b;
  font-size: 11px;
  font-weight: 750;
  padding: 6px 9px;
}

.formula-row .improving {
  background: #ecfbf6;
  border-color: #d3f4ea;
  color: var(--teal);
}

.formula-row .declining {
  background: #fff5e4;
  border-color: #fde7bb;
  color: #ac7412;
}

.detail-section {
  scroll-margin-top: 28px;
  padding: 26px;
}

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

.detail-metric {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.detail-metric span,
.detail-metric em,
.module-card span,
.module-card em,
dt,
th {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.detail-metric strong {
  font-size: 27px;
  margin: 10px 0 6px;
}

.detail-analytics {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
  margin-top: 22px;
  padding-top: 22px;
}

.detail-formula-card,
.detail-sources-card,
.detail-samples-card,
.detail-action-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.detail-formula-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.detail-formula-card.good {
  border-color: #b7eadb;
}

.detail-formula-card.watch {
  border-color: #f4d9a4;
}

.detail-formula-card.bad {
  border-color: #ffc1c1;
}

.detail-formula-card span,
.detail-sources-card > span,
.detail-samples-card > span,
.detail-action-card > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.detail-formula-card strong {
  color: var(--text);
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.detail-formula-card p,
.detail-action-card p,
.source-list p,
.sample-list p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.source-badge {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 10px;
  min-height: 26px;
  padding: 0 9px;
}

.source-badge.connected {
  border-color: #b7eadb;
  color: #067a55;
}

.source-badge.pending {
  border-color: #f4d9a4;
  color: #8a4b08;
}

.baseline-note {
  border-top: 1px solid var(--line);
  margin-top: 12px !important;
  padding-top: 10px;
}

.formula-score {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  height: 76px;
  justify-content: center;
  min-width: 76px;
}

.formula-score b {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.formula-score span {
  margin: 4px 0 0;
}

.source-list,
.sample-list {
  display: grid;
  gap: 10px;
}

.source-list div,
.sample-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.source-list div:first-child,
.sample-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-list strong,
.sample-list strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.source-list em,
.sample-list em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.detail-action-card a {
  background: var(--text);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 550;
  margin-top: 14px;
  min-height: 36px;
  padding: 9px 12px;
}

.kpi-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  color: inherit;
  display: block;
  min-height: 216px;
  overflow: hidden;
  padding: 22px;
  transition: 160ms ease;
}

.stat-card:hover,
.stat-card:focus-visible {
  border-color: #cfd8e6;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-card strong {
  font-size: 32px;
  margin: 14px 0 8px;
}

.stat-card > div:not(.formula-row) {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.stat-card .formula-row {
  margin: 12px 0 2px;
}

.stat-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
}

.stat-card small {
  color: var(--muted);
}

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

.chart-card {
  padding: 24px 24px 22px;
}

.chart-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.chart-head h3 {
  font-size: 19px;
  margin-top: 3px;
}

.chart-head strong {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 23px;
  font-weight: 400;
}

.sparkline {
  height: 74px;
  margin-top: 14px;
  overflow: visible;
  width: 100%;
}

.sparkline .spark-line,
.line-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .spark-line {
  stroke: var(--blue);
  stroke-width: 2.2;
}

.sparkline .spark-area {
  fill: rgba(34, 151, 232, 0.055);
}

.sparkline.good .spark-line,
.good .sparkline .spark-line {
  stroke: var(--teal);
}

.sparkline.bad .spark-line,
.bad .sparkline .spark-line {
  stroke: var(--red);
}

.sparkline.watch .spark-line,
.watch .sparkline .spark-line {
  stroke: var(--amber);
}

.spark-hit {
  cursor: crosshair;
  fill: transparent;
}

.spark-dot {
  fill: var(--card);
  stroke: currentColor;
  stroke-width: 1.8;
}

.sparkline.good,
.good .sparkline {
  color: var(--teal);
}

.sparkline.watch,
.watch .sparkline {
  color: var(--amber);
}

.sparkline.bad,
.bad .sparkline {
  color: var(--red);
}

.spark-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.spark-tooltip rect {
  fill: #0a0a0a;
  stroke: var(--line-strong);
}

.spark-tooltip text {
  fill: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.spark-point:hover .spark-dot,
.spark-point:focus .spark-dot {
  r: 4.4;
}

.spark-point:hover .spark-tooltip,
.spark-point:focus .spark-tooltip {
  opacity: 1;
}

.line-chart {
  height: auto;
  margin: 18px 0 10px;
  width: 100%;
}

.line-chart .grid line {
  stroke: #e8edf4;
  stroke-width: 1;
}

.line-chart .axis-y,
.line-chart .target-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.line-chart .grid .target {
  stroke: #cfd7e4;
  stroke-dasharray: 6 8;
}

.line-chart .primary-line {
  stroke: var(--blue);
  stroke-width: 2.4;
}

.line-chart .primary-area {
  fill: rgba(31, 151, 230, 0.09);
}

.line-chart .secondary-line {
  stroke: #cbd3df;
  stroke-width: 1.8;
}

.line-chart .hover-dot {
  fill: var(--card);
  stroke: var(--blue);
  stroke-width: 2;
  transition: r 140ms ease, stroke-width 140ms ease;
}

.line-chart .hit-dot {
  cursor: crosshair;
  fill: transparent;
  stroke: transparent;
}

.line-chart .secondary-point .hover-dot {
  stroke: #cbd3df;
}

.line-chart .chart-point:hover .hover-dot,
.line-chart .chart-point:focus .hover-dot {
  r: 6;
  stroke-width: 2.4;
}

.line-chart .point-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.line-chart .point-tooltip rect {
  fill: #ffffff;
  stroke: var(--line-strong);
}

.line-chart .point-tooltip text {
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
}

.line-chart .tooltip-label {
  fill: var(--muted);
  font-size: 10px;
}

.line-chart .tooltip-value {
  fill: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.line-chart .chart-point:hover .point-tooltip,
.line-chart .chart-point:focus .point-tooltip {
  opacity: 1;
}

.line-chart.emerald .primary-line,
.line-chart.emerald .primary-point .hover-dot {
  stroke: var(--teal);
}

.line-chart.emerald .primary-area {
  fill: rgba(23, 201, 154, 0.1);
}

.line-chart.cyan .primary-line,
.line-chart.cyan .primary-point .hover-dot {
  stroke: var(--blue);
}

.line-chart.cyan .primary-area {
  fill: rgba(31, 151, 230, 0.1);
}

.line-chart.amber .primary-line,
.line-chart.amber .primary-point .hover-dot {
  stroke: var(--amber);
}

.line-chart.amber .primary-area {
  fill: rgba(239, 184, 71, 0.12);
}

.line-chart.violet .primary-line,
.line-chart.violet .primary-point .hover-dot {
  stroke: var(--violet);
}

.line-chart.violet .primary-area {
  fill: rgba(117, 104, 232, 0.1);
}

.latest-badge rect {
  fill: #ffffff;
  filter: drop-shadow(0 8px 12px rgba(35, 44, 70, 0.12));
  stroke: var(--line-strong);
}

.latest-badge text {
  fill: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.chart-labels text {
  fill: var(--muted);
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}

.legend span {
  align-items: center;
  color: var(--soft);
  display: flex;
  font-size: 13px;
  gap: 7px;
}

.legend i {
  border: 2px solid var(--blue);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.legend span:last-child i {
  border-color: #cbd3df;
}

.analytics-grid,
.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel {
  min-width: 0;
  padding: 24px;
}

.span-2 {
  grid-column: span 2;
}

.lane-grid,
.mini-metrics,
.settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.response-policy-table {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
}

.response-policy-heading,
.response-policy-row {
  display: grid;
  grid-template-columns: minmax(90px, .55fr) repeat(2, minmax(180px, 1fr));
  gap: 16px;
  align-items: center;
}

.response-policy-heading {
  color: var(--muted);
  padding: 0 12px;
}

.response-policy-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.response-policy-row label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.response-policy-row input {
  min-width: 0;
}

.response-policy-row small {
  color: var(--muted);
}

@media (max-width: 720px) {
  .response-policy-heading {
    display: none;
  }

  .response-policy-row {
    grid-template-columns: 1fr;
  }
}

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

.webhook-endpoint-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.webhook-endpoint-row label {
  min-width: 0;
}

.webhook-endpoint-row input {
  cursor: copy;
  width: 100%;
}

.webhook-endpoint-row button {
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .webhook-endpoint-row {
    grid-template-columns: 1fr;
  }

  .webhook-endpoint-row button {
    width: 100%;
  }
}

.settings-summary-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 16px;
}

.settings-summary-card.good {
  border-color: rgba(0, 208, 132, 0.35);
}

.settings-summary-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.settings-summary-card.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.settings-summary-card span,
.settings-summary-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.settings-summary-card strong {
  color: var(--text);
  display: block;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lane-grid div,
.mini-metrics div {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.lane-grid span,
.mini-metrics span,
.progress-row span,
td {
  color: var(--soft);
  font-size: 13px;
}

.lane-grid strong,
.mini-metrics strong {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 8px 0 4px;
}

.lane-grid em,
.mini-metrics em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.progress-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-top: 18px;
}

.progress-row strong {
  color: var(--text);
  font-weight: 600;
}

.progress-row i {
  background: linear-gradient(90deg, var(--blue) var(--w), #e8edf4 var(--w));
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 9px;
}

.analytics-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.1fr) repeat(2, minmax(240px, 0.75fr));
}

.analytics-command-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
}

.analytics-command-card span,
.analytics-lane span,
.analytics-action-list span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.analytics-command-card strong {
  color: var(--text);
  display: block;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0;
}

.analytics-command-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.analytics-command-card a {
  align-items: center;
  align-self: end;
  background: var(--text);
  border-radius: 6px;
  color: var(--card);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
}

.analytics-pulse {
  align-self: end;
  background: #e8edf5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.analytics-pulse i {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  display: block;
  height: 100%;
  width: var(--w);
}

.dashboard-canvas {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

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

.dashboard-widget-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
}

.dashboard-widget-card.good {
  border-color: rgba(0, 208, 132, 0.28);
}

.dashboard-widget-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.dashboard-widget-card.bad {
  border-color: rgba(255, 77, 79, 0.38);
}

.dashboard-widget-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dashboard-widget-head span,
.dashboard-widget-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dashboard-widget-card strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.dashboard-widget-card b {
  color: var(--text);
  display: block;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

.dashboard-service-map div {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font-size: 13px;
  justify-content: center;
  min-height: 74px;
  position: relative;
}

.dashboard-service-map div::after {
  background: var(--line-strong);
  border-radius: 999px;
  content: "";
  height: 1px;
  position: absolute;
  right: -13px;
  top: 50%;
  width: 12px;
}

.dashboard-service-map div:nth-child(2n)::after,
.dashboard-service-map div:last-child::after {
  display: none;
}

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

.dashboard-report-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 16px;
}

.dashboard-report-card span {
  color: var(--blue);
  font-size: 12px;
}

.dashboard-report-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.dashboard-report-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.dashboard-report-card a {
  align-self: end;
  background: #ededed;
  border-radius: 999px;
  color: #000;
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 7px 10px;
  text-decoration: none;
}

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

.analytics-lane,
.analytics-action-list a {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.analytics-lane.good {
  border-color: rgba(0, 208, 132, 0.35);
}

.analytics-lane.watch {
  border-color: rgba(245, 166, 35, 0.35);
}

.analytics-lane.bad {
  border-color: rgba(255, 77, 79, 0.35);
}

.analytics-lane div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.analytics-lane em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.analytics-lane strong,
.analytics-action-list strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.analytics-lane p {
  color: var(--soft);
  font-size: 13px;
  margin: 0;
}

.analytics-action-list {
  display: grid;
  gap: 10px;
}

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

.module-card {
  padding: 20px;
}

.module-card div {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.module-card strong {
  color: var(--text);
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 30px;
  font-weight: 400;
}

.module-card p {
  color: var(--soft);
  margin: 20px 0;
}

.module-card footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.incident-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr) auto;
  overflow-anchor: none;
  padding: 22px 0;
}

.incident-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.incident-queue-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.incident-queue-controls button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  display: inline-flex;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
}

.incident-queue-controls button:hover,
.incident-queue-controls button:focus-visible,
.incident-queue-controls button.active {
  border-color: var(--blue);
  color: var(--text);
}

.incident-queue-controls button.active {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.incident-queue-controls strong {
  background: var(--card-soft);
  border-radius: 999px;
  color: inherit;
  font-size: 11px;
  min-width: 21px;
  padding: 3px 6px;
  text-align: center;
}

.incident-triage-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.25fr) minmax(160px, 0.3fr) auto auto;
  margin: -10px 0 24px;
}

.incident-triage-controls label {
  display: grid;
  gap: 6px;
}

.incident-triage-controls label span {
  color: var(--soft);
  font-size: 11px;
}

.incident-triage-controls input,
.incident-triage-controls select {
  min-height: 40px;
}

.incident-triage-controls button {
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .incident-triage-controls {
    grid-template-columns: 1fr 1fr;
  }

  .incident-triage-controls label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .incident-triage-controls {
    grid-template-columns: 1fr;
  }

  .incident-triage-controls label:first-child {
    grid-column: auto;
  }
}

.incident-topline,
.incident-systems,
.incident-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.incident-topline em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.incident-card h3 {
  font-size: 18px;
  margin-top: 10px;
}

.incident-systems {
  margin-top: 14px;
}

.incident-systems span {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  padding: 6px 8px;
}

.incident-actions {
  align-content: center;
  align-self: center;
  flex-direction: column;
}

.incident-detail {
  background: color-mix(in srgb, var(--card-soft) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  padding: 18px;
}

.incident-detail span,
.incident-detail time {
  color: var(--soft);
  font-size: 12px;
}

.incident-detail h4 {
  font-size: 16px;
  margin: 5px 0 0;
}

.incident-visualizers {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.incident-visual-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 15px;
}

.incident-visual-card h5 {
  font-size: 14px;
  margin: 4px 0 0;
}

.incident-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.incident-lifecycle-step {
  align-content: start;
  display: grid;
  gap: 5px;
  min-width: 0;
  position: relative;
}

.incident-lifecycle-step i {
  background: var(--card-soft);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  height: 12px;
  position: relative;
  width: 12px;
  z-index: 1;
}

.incident-lifecycle-step.complete i {
  background: var(--teal);
  border-color: var(--teal);
}

.incident-lifecycle-step.active i {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent);
}

.incident-lifecycle-step b {
  background: var(--line-strong);
  height: 2px;
  left: 12px;
  position: absolute;
  right: 0;
  top: 5px;
}

.incident-lifecycle-step.complete b {
  background: var(--teal);
}

.incident-lifecycle-step strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.incident-lifecycle-step span {
  font-size: 11px;
}

.incident-sla-grid {
  display: grid;
  gap: 13px;
}

.incident-sla-metric {
  display: grid;
  gap: 6px;
}

.incident-sla-metric > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.incident-sla-metric strong,
.incident-sla-metric small {
  font-size: 11px;
}

.incident-sla-track {
  background: var(--card-soft);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.incident-sla-track i {
  background: var(--teal);
  display: block;
  height: 100%;
}

.incident-sla-metric.breached .incident-sla-track i {
  background: var(--red);
}

.incident-sla-metric.breached small {
  color: var(--red);
}

.incident-activity-card {
  grid-template-rows: auto 1fr auto;
}

.incident-activity-chart {
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(8, 1fr);
  min-height: 90px;
}

.incident-activity-chart i {
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  display: flex;
  justify-content: center;
  min-height: 3px;
  transition: opacity 120ms ease;
}

.incident-activity-chart i:hover {
  opacity: 0.72;
}

.incident-activity-chart i span {
  color: var(--text);
  font-size: 10px;
  margin-top: -15px;
}

.incident-activity-axis {
  display: flex;
  justify-content: space-between;
}

.incident-detail ol {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
}

.incident-note-form {
  align-content: start;
  align-self: start;
  display: grid;
  gap: 9px;
  grid-column: 2;
  grid-template-rows: max-content max-content max-content;
}

.incident-note-form label {
  font-size: 13px;
  font-weight: 600;
}

.incident-note-form textarea {
  min-height: 82px;
  resize: vertical;
}

.incident-note-form button {
  align-items: center;
  align-self: start;
  display: inline-flex;
  font-size: 12px;
  inline-size: max-content;
  justify-content: center;
  justify-self: start;
  line-height: 1;
  max-width: 100%;
  min-height: 30px;
  min-width: 0;
  padding: 7px 10px;
  width: auto;
}

.incident-detail li {
  position: relative;
}

.incident-detail li::before {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: -22px;
  position: absolute;
  top: 5px;
  width: 7px;
}

.incident-detail p {
  margin-top: 3px;
}

.incident-actions a {
  align-items: center;
  background: var(--text);
  border-radius: 6px;
  color: var(--card);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
  width: 100%;
}

.incident-readiness-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.incident-readiness-card,
.incident-rule-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.incident-readiness-card {
  min-height: 118px;
}

.incident-readiness-card.good,
.incident-rule-card.good {
  border-color: rgba(0, 208, 132, 0.28);
}

.incident-readiness-card.watch,
.incident-rule-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.incident-readiness-card span,
.incident-readiness-card em,
.incident-rule-card span,
.incident-rule-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.incident-readiness-card strong,
.incident-rule-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.incident-rule-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.incident-rule-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.incident-rule-head strong,
.incident-rule-head a {
  display: block;
  line-height: 1.3;
}

.incident-rule-head a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 8px;
  text-decoration: none;
}

.incident-rule-head a:hover,
.incident-rule-head a:focus-visible {
  border-color: var(--text);
  outline: none;
}

.incident-rule-card em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  justify-self: start;
  padding: 6px 8px;
}

.incident-rule-list {
  display: grid;
  gap: 10px;
}

.sev {
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

.sev.sev1 {
  background: var(--red);
}

.sev.sev2 {
  background: var(--amber);
  color: #17120a;
}

.sev.sev3 {
  background: var(--blue);
}

.sev.sev4 {
  background: #586174;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dd {
  color: var(--text);
  font-size: 13px;
  margin: 4px 0 0;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list article {
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
}

.timeline-list time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.timeline-list p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 4px 0 0;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-row {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  padding: 14px;
}

.log-row-main {
  min-width: 0;
}

.log-row-main span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.log-row-main strong {
  color: var(--text);
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.log-row-main p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.log-row-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.log-row-meta code,
.log-row-meta em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-style: normal;
  padding: 6px 8px;
}

.log-row.info {
  border-color: rgba(50, 145, 255, 0.26);
}

.log-row.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.log-row.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.error-triage-list {
  display: grid;
  gap: 12px;
}

.error-coverage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.error-coverage-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.error-coverage-card.good {
  border-color: rgba(0, 208, 132, 0.28);
}

.error-coverage-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.error-coverage-card span,
.error-coverage-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.error-coverage-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
}

.error-triage-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.1fr) auto;
  padding: 16px;
}

.error-triage-card.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.error-triage-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.error-triage-main span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.error-triage-card.critical .error-triage-main span {
  color: #ff7875;
}

/* Final typography moderation for the Vercel-style dark UI. */
.welcome-copy > span,
.welcome-outcome > span,
.platform-hero article > span,
.module-command-actions a,
.setup-path-grid b,
.setup-path-grid span,
.top-tabs a,
.page-links a,
.rail nav a,
.live-pill,
.round-action,
.sev,
.connection-actions a,
.connection-actions button,
.deploy-command-row button,
.deploy-repo-card button,
.deploy-env-card button,
.deployment-card button,
.monitor-service-card button,
.customer-config-form button,
.data-entry-form button,
.secondary-action,
.auth-form button,
.feature-card a,
.analytics-command-card a,
.analytics-action-list a,
.incident-actions a,
.error-triage-card a {
  font-weight: 500;
  letter-spacing: 0;
}

.welcome-copy h2,
.home-hero-copy h2,
.platform-hero h2,
.page-title h1,
.section-heading h2,
.chart-head h3,
.auth-card h1 {
  font-weight: 500;
  letter-spacing: 0;
}

.error-triage-card.watch .error-triage-main span {
  color: #f5a623;
}

.error-triage-main strong {
  color: var(--text);
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.error-triage-main p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.error-triage-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.error-triage-card dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.error-triage-card dd {
  color: var(--text);
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

.error-triage-card a {
  align-items: center;
  align-self: center;
  background: var(--text);
  border-radius: 6px;
  color: var(--card);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  padding: 0 12px;
}

.endpoint-grid {
  display: grid;
  gap: 12px;
}

.api-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.api-summary-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.api-summary-card.good {
  border-color: rgba(0, 208, 132, 0.28);
}

.api-summary-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.api-summary-card span,
.api-summary-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.api-summary-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.endpoint-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.2fr) auto;
  padding: 16px;
}

.endpoint-card.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.endpoint-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.endpoint-card-head span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.endpoint-card.critical .endpoint-card-head span {
  color: #ff7875;
}

.endpoint-card.watch .endpoint-card-head span {
  color: #f5a623;
}

.endpoint-card.info .endpoint-card-head span {
  color: #60a5fa;
}

.endpoint-card-head strong {
  color: var(--text);
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.endpoint-metrics div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.endpoint-metrics span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}

.endpoint-metrics strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.endpoint-card > em {
  align-items: center;
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
}

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

.managed-service-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 16px;
}

.managed-service-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.managed-service-head span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.managed-service-card.watch .managed-service-head span {
  color: #f5a623;
}

.managed-service-card.info .managed-service-head span {
  color: #60a5fa;
}

.managed-service-head strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.managed-service-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.managed-service-foot {
  align-items: end;
  align-self: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.managed-service-foot em,
.managed-service-foot b {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  padding: 6px 8px;
}

.cloud-catalog-grid {
  display: grid;
  gap: 10px;
}

.cloud-catalog-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.cloud-catalog-card span {
  color: var(--muted);
  font-size: 11px;
}

.cloud-catalog-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.cloud-catalog-card p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.cloud-catalog-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 6px 9px;
  text-decoration: none;
}

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

.log-queue-grid {
  grid-template-columns: 1fr;
}

.queue-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.queue-card.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.queue-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.queue-card-head span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.queue-card.critical .queue-card-head span {
  color: #ff7875;
}

.queue-card.watch .queue-card-head span {
  color: #f5a623;
}

.queue-card.info .queue-card-head span {
  color: #60a5fa;
}

.queue-card-head strong {
  color: var(--text);
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
}

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

.queue-metrics div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.queue-metrics span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}

.queue-metrics strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.queue-card > em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  justify-self: start;
  padding: 6px 8px;
}

.mail-profile-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mail-profile-card.connected {
  border-color: rgba(0, 208, 132, 0.3);
}

.mail-profile-card.pending {
  border-color: rgba(245, 166, 35, 0.38);
}

.mail-profile-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mail-profile-head span,
.mail-profile-head em,
.mail-profile-grid span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mail-profile-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mail-profile-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.mail-profile-grid,
.mail-auth-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mail-profile-grid div,
.mail-auth-strip div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.mail-profile-grid b,
.mail-auth-strip strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 5px;
}

.mail-auth-strip {
  margin-top: 12px;
}

.mail-auth-strip span,
.mail-auth-strip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mail-profile-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 7px 10px;
  text-decoration: none;
}

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

.security-coverage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.security-coverage-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.security-coverage-card.good {
  border-color: rgba(0, 208, 132, 0.28);
}

.security-coverage-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.security-coverage-card span,
.security-coverage-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.security-coverage-card strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.security-event-card,
.security-route-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.security-event-card.watch,
.security-route-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.security-event-card span,
.security-route-card span {
  color: #60a5fa;
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.security-event-card.watch span,
.security-route-card.watch span {
  color: #f5a623;
}

.security-event-card strong,
.security-route-card strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.security-event-card p,
.security-route-card p,
.security-route-card em {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.security-event-foot {
  align-items: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.security-event-foot em,
.security-event-foot b,
.security-route-card em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-style: normal;
  font-weight: 500;
  padding: 6px 8px;
}

.security-route-list {
  display: grid;
  gap: 10px;
}

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

.ai-workflow-grid {
  display: grid;
  gap: 10px;
}

.ai-workflow-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.ai-workflow-card span {
  color: var(--blue);
  font-size: 11px;
}

.ai-workflow-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.ai-workflow-card p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.ai-workflow-card a {
  align-self: end;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  justify-self: start;
  padding: 6px 9px;
  text-decoration: none;
}

.ai-provider-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ai-provider-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.ai-provider-head span {
  color: #60a5fa;
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.ai-provider-card.watch .ai-provider-head span {
  color: #f5a623;
}

.ai-provider-head strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.ai-provider-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-provider-metrics div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

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

.automation-rule-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 16px;
}

.automation-rule-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.automation-rule-head span {
  color: #60a5fa;
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.automation-rule-card.watch .automation-rule-head span {
  color: #f5a623;
}

.automation-rule-head strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.automation-rule-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.automation-rule-foot {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.automation-rule-foot em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  padding: 6px 8px;
}

.automation-rule-foot a {
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

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

.collaboration-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 16px;
}

.collaboration-card.critical {
  border-color: rgba(255, 77, 79, 0.42);
}

.collaboration-card.watch {
  border-color: rgba(245, 166, 35, 0.38);
}

.collaboration-card-head span {
  color: #60a5fa;
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.collaboration-card.critical .collaboration-card-head span {
  color: #ff7875;
}

.collaboration-card.watch .collaboration-card-head span {
  color: #f5a623;
}

.collaboration-card-head strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.collaboration-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.collaboration-card-foot {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.collaboration-card-foot em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  padding: 6px 8px;
}

.collaboration-card-foot a {
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.ai-provider-metrics span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}

.ai-provider-metrics strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.log-list code {
  background: #f0f4f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #39405d;
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  overflow: auto;
  padding: 12px 14px;
}

.alert-delivery-ledger {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.delivery-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.delivery-summary span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.delivery-summary strong { color: var(--text); font-size: 18px; }
.delivery-history-list { display: grid; gap: 8px; }

.delivery-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.delivery-history-row.good { border-color: rgba(36, 193, 118, 0.45); }
.delivery-history-row.bad { border-color: rgba(255, 91, 91, 0.55); }
.delivery-history-row > div { display: grid; gap: 3px; min-width: 0; }
.delivery-history-row span,
.delivery-history-row small { color: var(--muted); overflow-wrap: anywhere; }
.delivery-history-row small { font-size: 12px; }
.delivery-history-row button { flex: 0 0 auto; }

@media (max-width: 720px) {
  .delivery-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-history-row { align-items: flex-start; flex-direction: column; }
  .delivery-history-row button { width: 100%; }
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 100%;
}

th {
  border-bottom: 1px solid var(--line);
  padding: 0 14px 12px 0;
  text-align: left;
}

td {
  border-bottom: 1px solid #eef2f7;
  padding: 14px 14px 14px 0;
  white-space: nowrap;
}

.settings-section {
  grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1.25fr);
}

.data-section {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
}

.data-onboarding {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(520px, 1.3fr) minmax(360px, 0.7fr);
}

.data-entry-hero {
  background:
    linear-gradient(135deg, rgba(50, 145, 255, 0.12), rgba(0, 208, 132, 0.05) 52%, rgba(0, 0, 0, 0.92)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  margin: 0 auto 24px;
  max-width: 1280px;
  padding: 32px;
}

.data-entry-hero-main,
.data-entry-hero-feed {
  min-width: 0;
}

.data-entry-hero-feed {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.data-entry-hero .data-entry-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1.15fr) minmax(150px, 0.8fr) minmax(180px, 1fr) auto;
}

@media (max-width: 1180px) {
  .data-entry-hero {
    grid-template-columns: 1fr;
  }

  .data-entry-hero-feed {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

  .data-entry-hero .data-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .data-entry-hero {
    padding: 20px;
  }

  .data-entry-hero .data-entry-form {
    grid-template-columns: 1fr;
  }
}

.customer-config-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.customer-setup-step {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.customer-setup-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.customer-setup-step header {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.customer-setup-step b {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 400;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.customer-setup-step header span {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.customer-setup-step header p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.customer-setup-step header em {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  padding: 6px 9px;
}

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

.customer-setup-step small {
  color: var(--muted);
  font-size: 12px;
}

.customer-webhook-generator {
  align-content: start;
  background: var(--card-soft);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: 18px;
}

.customer-webhook-generator > div:first-child,
.customer-webhook-generator > label:first-of-type,
.customer-webhook-generator > .auth-notice,
.customer-webhook-generator > .empty-state {
  grid-column: 1 / -1;
}

.customer-webhook-generator > div:first-child > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.customer-webhook-generator > div:first-child > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 6px 0 0;
}

.customer-webhook-generator input {
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.customer-webhook-generator > label {
  min-width: 0;
}

.customer-webhook-generator .hosted-webhook-actions {
  align-items: center;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin: 2px 0 0;
  width: 100%;
}

.customer-webhook-generator .hosted-webhook-actions button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  width: auto;
}

.customer-webhook-generator .hosted-webhook-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

@media (max-width: 760px) {
  .customer-webhook-generator {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .customer-webhook-generator > * {
    grid-column: 1;
  }

  .customer-webhook-generator .hosted-webhook-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-webhook-generator .hosted-webhook-actions button {
    width: 100%;
  }
}

.customer-config-form button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  width: fit-content;
}

.setup-summary {
  display: grid;
  gap: 12px;
}

.setup-summary article {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.setup-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 8px;
}

.setup-summary strong {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.data-entry-panel {
  min-height: 360px;
}

.data-entry-form {
  display: grid;
  gap: 16px;
}

.data-entry-form button,
.secondary-action {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  width: fit-content;
}

.secondary-action {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
  margin-top: 18px;
}

.data-note,
.empty-state {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.data-status {
  background: #f3fbf7;
  border: 1px solid #bfead4;
  border-radius: 6px;
  color: #167a47;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 11px 12px;
}

.data-status.watch {
  background: #fff8ea;
  border-color: #f0d69c;
  color: #8a4b08;
}

.data-status.bad {
  background: #fff1f1;
  border-color: #ffc1c1;
  color: #c93434;
}

.customer-config-form button:disabled,
.data-entry-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.entry-list {
  display: grid;
  gap: 12px;
}

.entry-list article {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.entry-list span,
.entry-list time {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.entry-list strong {
  color: var(--text);
  display: block;
  font-family: "Geist Sans", ui-sans-serif, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-top: 6px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  padding: 12px 14px;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
    var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  padding: 12px 36px 12px 14px;
}

/* CodeEye theme aligned with the public Geist design system. */
.shell {
  padding: 24px 32px 48px;
}

.topbar,
.page-title,
.page-links,
.hero-grid,
.home-hero,
.parent-section,
.detail-section,
.kpi-strip,
.chart-grid,
.analytics-grid,
.module-grid,
.content-grid,
.data-onboarding,
.connection-center,
.data-section,
.settings-section {
  max-width: 1280px;
}

.topbar,
.hero-card,
.panel,
.parent-kpi,
.stat-card,
.chart-card,
.module-card,
.detail-section {
  border-radius: 10px;
  box-shadow: none;
}

.topbar {
  min-height: 64px;
}

.wordmark {
  min-width: 164px;
  padding: 0 22px;
}

.wordmark img {
  width: 104px;
}

.wordmark.app-mark img {
  width: 58px;
}

.top-tabs {
  gap: 24px;
  padding: 0 24px;
}

.top-tabs a,
.user-chip span,
.live-pill {
  font-size: 13px;
  font-weight: 500;
}

.round-action {
  font-size: 22px;
  min-width: 58px;
}

.user-chip {
  min-width: 160px;
  padding: 0 18px;
}

.page-title {
  margin-bottom: 22px;
  margin-top: 38px;
}

.page-title h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-top: 7px;
}

.page-title p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.page-title h1,
.section-heading h2,
.chart-head h3,
.welcome-copy h2,
.welcome-outcome strong,
.setup-path-grid span,
.hero-card strong,
.stat-card strong,
.parent-kpi strong,
.detail-metric strong,
.setup-summary strong {
  font-family: "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.025em;
}

.page-title span,
.section-heading > span,
.chart-head span,
.parent-kpi span,
.stat-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading p,
.data-note,
.empty-state {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-links {
  border-bottom: 1px solid var(--line);
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.page-links a {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: -1px;
  padding: 10px 0 12px;
}

.page-links a:hover,
.page-links a.active {
  background: transparent;
  border-color: var(--text);
  box-shadow: none;
  color: var(--text);
}

.parent-kpi,
.stat-card {
  min-height: 0;
  padding: 24px;
}

.parent-kpi:hover,
.parent-kpi:focus-visible,
.stat-card:hover,
.stat-card:focus-visible,
.setup-path-grid a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: none;
}

.parent-kpi strong,
.stat-card strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.kpi-accent {
  border-radius: 10px 10px 0 0;
  height: 2px;
  left: 0;
  right: 0;
}

.formula-row span,
.kpi-card-head em,
.kpi-card-foot span:last-child,
.hero-micro em {
  background: #fafafa;
  border: 1px solid var(--line);
  color: var(--soft);
  font-weight: 550;
}

.formula-row .improving,
.parent-kpi.good .kpi-card-head em {
  background: #edfdf7;
  border-color: #b7eadb;
  color: #067a55;
}

.parent-kpi.bad .kpi-card-head em {
  background: #fff0f0;
  border-color: #ffc1c1;
  color: #c93434;
}

.parent-kpi.watch .kpi-card-head em {
  background: #fff7e8;
  border-color: #f4d9a4;
  color: #8a4b08;
}

.customer-setup-panel,
.customer-summary-panel,
.data-entry-panel {
  padding: 24px;
}

  .customer-config-form,
  .customer-step-fields,
  .data-entry-form {
    gap: 18px;
  }

.customer-config-form label > span,
.data-entry-form label > span,
.settings-grid label > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.customer-config-form input,
.customer-config-form select,
.data-entry-form input,
.data-entry-form select,
.settings-grid input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  color: var(--text);
  font-size: 14px;
  min-height: 40px;
  padding: 0 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.customer-config-form input:focus,
.customer-config-form select:focus,
.data-entry-form input:focus,
.data-entry-form select:focus,
.settings-grid input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
  outline: none;
}

.customer-config-form button,
.data-entry-form button,
.secondary-action,
.welcome-actions .primary-action {
  border-radius: 6px;
  min-height: 40px;
}

.secondary-action {
  background: #fff;
}

.setup-summary article,
.entry-list article {
  background: #fafafa;
  border-radius: 6px;
  padding: 14px;
}

.setup-summary span {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}

.setup-summary strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.data-onboarding {
  gap: 24px;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
}

.data-section {
  gap: 24px;
}

.connection-center {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.connection-review-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.connection-review {
  display: grid;
  gap: 18px;
}

.connection-review-head {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.connection-review-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}

.connection-review-head h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.connection-review-head p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 720px;
}

.connection-review-head a {
  align-items: center;
  background: var(--text);
  border-radius: 6px;
  color: var(--card);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  min-height: 38px;
  padding: 0 12px;
}

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

.connection-review-grid article {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.connection-review-grid article.connected {
  border-color: rgba(0, 208, 132, 0.35);
}

.connection-review-grid article.pending {
  border-color: rgba(245, 166, 35, 0.35);
}

.connection-review-grid div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.connection-review-grid span,
.connection-review-grid em,
.connection-review-grid p {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.connection-review-grid strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.connection-review-grid p {
  line-height: 1.4;
  margin: 0;
}

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

.customer-activation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-activation-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  min-height: 160px;
  padding: 14px;
  min-width: 0;
}

.customer-activation-card.good {
  border-color: rgba(0, 208, 132, 0.3);
}

.customer-activation-card.watch {
  border-color: rgba(245, 166, 35, 0.34);
}

.customer-activation-card.pending {
  border-color: var(--line);
}

.customer-activation-card div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.customer-activation-card span,
.customer-activation-card em,
.customer-activation-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.customer-activation-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.customer-activation-card p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.connection-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-height: 224px;
  padding: 18px;
}

.connection-card.connected {
  background: #fbfffd;
  border-color: #c8eadb;
}

.connection-card.pending {
  background: #fffdf8;
  border-color: #ecd6a8;
}

.connection-card-head,
.connection-meta,
.connection-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.connection-card-head span,
.connection-meta span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.connection-card-head strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.connection-card-head em {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  min-height: 32px;
  padding: 0 10px;
}

.connection-card p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  min-height: 38px;
  overflow-wrap: anywhere;
}

.connection-meter {
  background: #e8e8e8;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.connection-meter i {
  background: var(--text);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--w);
}

.connection-card.connected .connection-meter i {
  background: #0a7f5a;
}

.connection-card.pending .connection-meter i {
  background: #a35200;
}

.connection-meta {
  align-items: flex-start;
  gap: 14px;
}

.connection-meta span:last-child {
  color: var(--soft);
  text-align: right;
  white-space: nowrap;
}

.connection-actions {
  border-top: 1px solid var(--line);
  gap: 10px;
  padding-top: 14px;
}

.connection-actions a,
.connection-actions button {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  min-height: 36px;
  padding: 0 12px;
}

.connection-actions button {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.coverage-ring {
  align-items: center;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--text) calc(var(--p) * 1%), #ececec 0);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 148px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 148px;
}

.coverage-ring strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.coverage-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.connection-registry {
  display: grid;
  gap: 10px;
}

.connection-row {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(180px, 0.8fr);
  padding: 14px;
}

.connection-row.connected {
  border-color: #c8eadb;
}

.connection-row.pending {
  border-color: #ecd6a8;
}

.connection-row span,
.connection-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.connection-row strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.connection-row em {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 550;
  justify-self: start;
  padding: 6px 10px;
}

.connection-row.connected em {
  background: #edfdf7;
  border-color: #b7eadb;
  color: #067a55;
}

.connection-row.pending em {
  background: #fff7e8;
  border-color: #f4d9a4;
  color: #8a4b08;
}

/* Settings is a vertical workflow: profile first, configuration registry next. */
.settings-section {
  grid-template-columns: minmax(0, 1fr);
}

.settings-profile-panel,
.settings-registry-panel {
  grid-column: 1 / -1;
}

.settings-profile-panel .settings-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.settings-summary-card {
  color: inherit;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.settings-summary-card strong {
  overflow-wrap: normal;
  word-break: normal;
}

.settings-summary-card > b,
.scalable-kpi > b {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
}

.settings-summary-card > b span,
.scalable-kpi > b span {
  color: inherit;
  display: inline;
}

.settings-summary-card:hover,
.scalable-kpi:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.settings-summary-card:focus-visible,
.scalable-kpi:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.settings-profile-actions {
  margin-top: 4px;
}

.connection-row {
  color: inherit;
  cursor: pointer;
  grid-template-areas:
    "summary status"
    "impact action";
  grid-template-columns: minmax(0, 1fr) auto;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.connection-row > div {
  grid-area: summary;
  min-width: 0;
}

.connection-row > em {
  grid-area: status;
  justify-self: end;
}

.connection-row > small {
  grid-area: impact;
  min-width: 0;
}

.connection-row:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

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

.connection-row-action {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  grid-area: action;
  justify-self: end;
  white-space: nowrap;
}

.connection-row-action span {
  color: inherit;
  display: inline;
  margin-left: 4px;
}

.welcome-home {
  background: #fff;
  border-radius: 10px;
}

.welcome-copy h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.welcome-copy p {
  font-size: 15px;
  line-height: 1.6;
}

.welcome-outcome {
  background: #171717;
  border-radius: 10px;
  box-shadow: none;
}

.welcome-note {
  background: #f5f5f5;
  border: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .welcome-home {
    grid-template-columns: 1fr;
  }

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

  .home-hero,
  .platform-hero,
  .hero-grid,
  .analytics-command-grid,
  .dashboard-canvas,
  .chart-grid,
  .analytics-grid,
  .content-grid,
  .content-grid.two,
  .deploy-grid,
  .data-onboarding,
  .activation-path,
  .monitor-service-grid,
  .connection-grid,
  .connection-review-grid,
  .customer-activation-grid,
  .log-row,
  .error-triage-card,
  .incident-card,
  .endpoint-card,
  .data-section,
  .settings-section {
    grid-template-columns: 1fr;
  }

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

  .parent-kpi-grid,
  .platform-grid,
  .root-map-grid,
  .capability-grid,
  .marketplace-grid,
  .feature-card-grid,
  .platform-metrics,
  .topology-board,
  .managed-service-grid,
  .queue-grid,
  .security-event-grid,
  .security-coverage-grid,
  .incident-readiness-grid,
  .api-summary-grid,
  .error-coverage-grid,
  .customer-activation-grid,
  .ai-provider-grid,
  .automation-rule-grid,
  .collaboration-grid,
  .deploy-repo-grid,
  .deploy-env-grid,
  .deployment-card-grid,
  .integration-health-grid,
  .monitor-service-grid,
  .deploy-pipeline,
  .kpi-strip,
  .module-grid,
  .settings-summary-grid,
  .dashboard-widget-grid,
  .dashboard-report-grid,
  .detail-grid,
  .detail-analytics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 {
    grid-column: auto;
  }

  .top-tabs {
    gap: 18px;
    overflow-x: auto;
  }

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

@media (max-width: 760px) {
  .connection-row {
    grid-template-areas:
      "summary"
      "status"
      "impact"
      "action";
    grid-template-columns: minmax(0, 1fr);
  }

  .connection-row > em,
  .connection-row-action {
    justify-self: start;
  }

  .welcome-home {
    padding: 28px 22px;
  }

  .welcome-copy h2 {
    font-size: 36px;
  }

  .setup-path-grid {
    grid-template-columns: 1fr;
  }

  .welcome-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .rail {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    height: auto;
    inset: 0 0 auto 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 14px;
    width: auto;
  }

  .rail nav {
    flex-direction: row;
    gap: 6px;
  }

  .rail nav a {
    height: 48px;
    min-width: 56px;
  }

  .shell {
    margin-left: 0;
    padding: 90px 16px 28px;
  }

  .topbar {
    display: block;
  }

  .connection-card {
    min-height: 0;
  }

  .connection-actions,
  .connection-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-meta span:last-child {
    text-align: left;
  }

  .compact-summary {
    grid-template-columns: 1fr;
  }

  .wordmark,
  .top-tabs,
  .top-actions {
    border-right: 0;
    min-height: 64px;
  }

  .wordmark {
    border-bottom: 0;
  }

  .top-tabs,
  .top-actions {
    display: none;
  }

  .parent-kpi-grid,
  .platform-grid,
  .root-map-grid,
  .capability-grid,
  .marketplace-grid,
  .feature-card-grid,
  .platform-metrics,
  .topology-board,
  .managed-service-grid,
  .queue-grid,
  .security-event-grid,
  .security-coverage-grid,
  .incident-readiness-grid,
  .api-summary-grid,
  .error-coverage-grid,
  .customer-activation-grid,
  .ai-provider-grid,
  .automation-rule-grid,
  .collaboration-grid,
  .deploy-repo-grid,
  .deploy-env-grid,
  .deployment-card-grid,
  .deploy-domain-grid,
  .integration-health-grid,
  .monitor-service-grid,
  .monitor-check-grid,
  .deploy-pipeline,
  .kpi-strip,
  .module-grid,
  .settings-summary-grid,
  .dashboard-widget-grid,
  .dashboard-report-grid,
  .detail-grid,
  .detail-analytics,
  .customer-config-form,
  .customer-step-fields,
  .lane-grid,
  .mini-metrics,
  .analytics-lane-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .mail-profile-grid,
  .mail-auth-strip {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .home-hero,
  .panel,
  .chart-card,
  .detail-section {
    padding: 20px;
  }

  .incident-card,
  .incident-detail {
    grid-template-columns: 1fr;
  }

  .incident-visualizers {
    grid-template-columns: 1fr;
  }

  .incident-note-form {
    grid-column: 1;
  }

  .home-hero-links {
    grid-template-columns: 1fr;
  }
}

/* Vercel-inspired dark theme layer. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #050505;
  --card-soft: #0a0a0a;
  --line: #242424;
  --line-strong: #3a3a3a;
  --text: #ededed;
  --soft: #a1a1a1;
  --muted: #a1a1aa;
  --theme-muted: #a1a1aa;
  --blue: #3291ff;
  --teal: #00d084;
  --amber: #f5a623;
  --red: #ff4d4f;
  --violet: #8b5cf6;
  --shadow: none;
  --shadow-soft: none;
}

html,
body,
.auth-shell {
  background: var(--theme-canvas, #000);
}

.auth-card,
.topbar,
.platform-section,
.platform-hero,
.marketplace-section,
.deploy-workflow,
.monitor-workflow,
.welcome-home,
.hero-card,
.panel,
.parent-kpi,
.stat-card,
.chart-card,
.module-card,
.detail-section,
.welcome-note {
  background: var(--card);
  border-color: var(--line);
  box-shadow: none;
}

.rail {
  background: var(--theme-canvas, #000);
  border-color: var(--line);
  box-shadow: none;
}

.rail nav a {
  color: var(--muted);
}

.rail nav a:hover,
.rail nav a.active,
.page-links a:hover,
.page-links a.active {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line-strong);
  color: var(--text);
}

.wordmark img,
.auth-brand img {
  filter: none;
}

.top-tabs a {
  color: var(--muted);
}

.top-tabs a:hover,
.top-tabs a.active {
  color: var(--text);
}

.page-links {
  border-color: var(--line);
}

.page-links a,
.formula-row span,
.kpi-card-head em,
.kpi-card-foot span:last-child,
.hero-micro em,
.platform-pillar strong,
.platform-pillar em,
.deploy-repo-card em,
.deploy-env-card em,
.deployment-card em,
.deploy-domain-card em,
.monitor-service-card em,
.monitor-check-card em,
.connection-card-head em,
.connection-actions a,
.deploy-command-row button,
.deployment-card button,
.deploy-domain-card a,
.connection-row em {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--soft);
}

.home-hero {
  background:
    linear-gradient(135deg, rgba(50, 145, 255, 0.12), rgba(0, 208, 132, 0.05) 45%, rgba(0, 0, 0, 0.92)),
    var(--theme-canvas, #000);
  border-color: var(--line);
  box-shadow: none;
}

.home-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0));
}

.home-hero-actions a,
.auth-form button,
.deploy-repo-card button,
.deploy-env-card button,
.deployment-card button,
.deploy-domain-card a,
.monitor-service-card button,
.connection-actions button,
.customer-config-form button,
.data-entry-form button,
.detail-action-card a,
.welcome-actions .primary-action {
  background: var(--theme-action, #ededed);
  border-color: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.home-hero-actions a:last-child,
.secondary-action {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.platform-pillar,
.root-map-card,
.platform-metrics div,
.topology-board div,
.capability-card,
.marketplace-card,
.deploy-repo-card,
.deploy-env-card,
.monitor-service-card,
.monitor-check-card,
.deploy-stage,
.detail-formula-card,
.detail-sources-card,
.detail-samples-card,
.detail-action-card,
.lane-grid div,
.mini-metrics div,
.detail-metric,
.setup-summary article,
.entry-list article,
.connection-card,
.connection-row,
.welcome-note,
.slug-field {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
}

.root-map-section {
  background: var(--card);
  border-color: var(--line);
}

.root-map-card em {
  background: var(--theme-card, #050505);
  border-color: var(--line);
  color: var(--soft);
}

.root-map-meter {
  background: var(--theme-track, #262626);
}

.activation-path,
.activation-list a,
.connection-review-section,
.connection-review-grid article {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
}

.activation-copy a,
.connection-review-head a {
  background: var(--theme-action, #ededed);
  border-color: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.module-command-actions a {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--text);
}

.source-badge {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--soft);
}

.source-badge.connected {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--theme-positive, #4ade80);
}

.source-badge.pending {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--theme-warning, #f5a623);
}

.log-list code {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--theme-text, #d4d4d8);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Public marketing PWA --------------------------------------------------- */
.marketing-shell {
  --marketing-blue: #2563ff;
  --marketing-cyan: #00e5c2;
  --marketing-violet: #7c3aed;
  background:
    radial-gradient(circle at 75% 8%, rgba(37, 99, 255, 0.13), transparent 25%),
    radial-gradient(circle at 26% 35%, rgba(124, 58, 237, 0.07), transparent 24%),
    var(--theme-canvas, #000);
  color: var(--theme-text, #ededed);
  min-height: 100vh;
  overflow: hidden;
}

.marketing-shell * {
  box-sizing: border-box;
}

.marketing-shell a {
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.marketing-shell a:focus-visible,
.marketing-shell button:focus-visible,
.marketing-shell summary:focus-visible {
  outline: 2px solid var(--marketing-cyan);
  outline-offset: 4px;
}

.marketing-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 32px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 78px;
  padding: 0 42px;
  position: relative;
  z-index: 10;
}

.marketing-logo img {
  height: auto;
  width: 112px;
}

.marketing-header > nav {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.marketing-header > nav a,
.marketing-signin,
.marketing-install {
  color: var(--theme-secondary, #8b8b91);
  cursor: pointer;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.marketing-header > nav a {
  padding: 10px 2px;
}

.marketing-header > nav a:hover,
.marketing-signin:hover,
.marketing-install:hover {
  color: var(--theme-text, #fff);
}

.marketing-header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.developer-copy-row {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
}

.developer-copy-row code {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.developer-copy-row button { flex: 0 0 auto; }

@media (max-width: 680px) {
  .developer-copy-row { align-items: stretch; flex-direction: column; }
}

.marketing-install {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
}

.marketing-cta {
  align-items: center;
  background: var(--theme-action, #ededed);
  border: 1px solid var(--theme-action, #ededed);
  border-radius: 7px;
  color: var(--theme-action-ink, #050505);
  display: inline-flex;
  font-size: 14px;
  font-weight: 560;
  gap: 28px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.marketing-cta:hover {
  background: var(--theme-action-hover, #fff);
  border-color: var(--theme-action-hover, #fff);
  transform: translateY(-1px);
}

.marketing-cta.compact {
  font-size: 13px;
  min-height: 38px;
  padding: 0 15px;
}

.marketing-secondary {
  align-items: center;
  border: 1px solid var(--theme-border, #292929);
  border-radius: 7px;
  color: var(--theme-secondary, #b7b7bc);
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.marketing-secondary:hover {
  border-color: var(--theme-border, #555);
  color: var(--theme-text, #fff);
}

.marketing-hero {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(390px, 0.8fr) minmax(620px, 1.2fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 760px;
  padding: 110px 42px 90px;
}

.marketing-hero-copy {
  align-self: center;
  max-width: 630px;
}

.marketing-eyebrow,
.marketing-section-heading > p,
.workflow-copy > p,
.pilot-section > div > p {
  color: var(--theme-secondary, #9b9ba1);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.marketing-eyebrow {
  align-items: center;
  display: flex;
  gap: 10px;
}

.marketing-eyebrow i {
  background: var(--marketing-cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 229, 194, 0.65);
  height: 6px;
  width: 6px;
}

.marketing-hero h1 {
  font-size: clamp(54px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
}

.marketing-hero h1 span {
  background: linear-gradient(90deg, #7da7ff, #8d71ff 54%, #31e9d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-lede {
  color: var(--theme-secondary, #9999a1);
  font-size: 18px;
  line-height: 1.65;
  margin: 32px 0 0;
  max-width: 590px;
}

.marketing-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

.marketing-proof {
  border-top: 1px solid var(--theme-border, #222);
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 24px;
}

.marketing-proof span {
  color: var(--theme-muted, #67676d);
  font-size: 11px;
  line-height: 1.45;
}

.marketing-proof b {
  color: var(--theme-text, #d9d9dc);
  display: block;
  font-size: 15px;
  font-weight: 540;
}

.marketing-console {
  align-self: center;
  background: var(--theme-card, #070707);
  border: 1px solid var(--theme-border, #242424);
  border-radius: 14px;
  box-shadow: -24px 34px 90px rgba(0, 0, 0, 0.7), 0 0 110px rgba(37, 99, 255, 0.08);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.marketing-console::before {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 255, 0.8), rgba(0, 229, 194, 0.75), transparent);
  content: "";
  height: 1px;
  left: 12%;
  position: absolute;
  right: 12%;
  top: 0;
}

.console-topline {
  align-items: center;
  border-bottom: 1px solid var(--theme-border, #1c1c1c);
  color: var(--theme-muted, #707077);
  display: flex;
  font-size: 10px;
  height: 42px;
  justify-content: space-between;
  padding: 0 15px;
}

.console-topline > span {
  display: flex;
  gap: 6px;
}

.console-topline > span i {
  background: var(--theme-track, #303035);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.console-topline b {
  color: var(--theme-secondary, #85858c);
  font-weight: 450;
}

.console-topline em {
  color: var(--theme-positive, #44d4ad);
  font-style: normal;
}

.console-layout {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 490px;
}

.console-layout > aside {
  align-items: center;
  border-right: 1px solid var(--theme-border, #1b1b1b);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
}

.console-layout > aside img {
  filter: invert(1);
  height: 22px;
  margin-bottom: 12px;
  opacity: 0.7;
  width: 22px;
}

.console-layout > aside i {
  border: 1px solid var(--theme-border, #36363a);
  border-radius: 4px;
  height: 15px;
  position: relative;
  width: 15px;
}

.console-layout > aside i.active {
  background: rgba(37, 99, 255, 0.18);
  border-color: #4779ff;
}

.console-layout > aside i.active::before {
  background: #4e7cff;
  content: "";
  height: 20px;
  left: -20px;
  position: absolute;
  top: -4px;
  width: 2px;
}

.console-main {
  min-width: 0;
  padding: 26px;
}

.console-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.console-heading span,
.console-stats span,
.console-card-title span {
  color: var(--theme-muted, #66666e);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.console-heading h2 {
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.console-heading > b {
  background: rgba(255, 77, 79, 0.09);
  border: 1px solid rgba(255, 77, 79, 0.34);
  border-radius: 999px;
  color: var(--theme-negative, #ff7577);
  font-size: 9px;
  padding: 6px 9px;
}

.console-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 12px;
}

.console-stats article,
.console-timeline,
.console-signal {
  background: var(--theme-card, #0b0b0c);
  border: 1px solid var(--theme-border, #1f1f21);
  border-radius: 8px;
}

.console-stats article {
  display: flex;
  flex-direction: column;
  min-height: 94px;
  padding: 13px;
}

.console-stats strong {
  font-size: 18px;
  font-weight: 510;
  margin-top: 9px;
}

.console-stats em {
  color: var(--theme-negative, #e07d7e);
  font-size: 9px;
  font-style: normal;
  margin-top: auto;
}

.console-stats em.warning {
  color: var(--theme-warning, #e9a75d);
}

.console-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.45fr 0.85fr;
}

.console-timeline,
.console-signal {
  padding: 14px;
}

.console-card-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.console-card-title b {
  color: var(--theme-muted, #55555c);
  font-size: 9px;
  font-weight: 450;
}

.console-timeline ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.console-timeline li {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 35px 1fr;
  padding: 8px 0;
  position: relative;
}

.console-timeline li:not(:last-child)::after {
  background: var(--theme-track, #26262a);
  bottom: -4px;
  content: "";
  left: 44px;
  position: absolute;
  top: 21px;
  width: 1px;
}

.console-timeline time {
  color: var(--theme-muted, #515157);
  font-size: 8px;
  padding-top: 2px;
}

.console-timeline li div {
  padding-left: 12px;
  position: relative;
}

.console-timeline li div::before {
  background: #4f79ff;
  border-radius: 50%;
  content: "";
  height: 5px;
  left: -2px;
  position: absolute;
  top: 5px;
  width: 5px;
  z-index: 1;
}

.console-timeline li.critical div::before {
  background: #ff6265;
  box-shadow: 0 0 10px rgba(255, 98, 101, 0.8);
}

.console-timeline li b,
.console-timeline li span {
  display: block;
  font-size: 9px;
}

.console-timeline li b {
  color: var(--theme-text, #c9c9cd);
  font-weight: 500;
}

.console-timeline li span {
  color: var(--theme-muted, #5d5d64);
  margin-top: 3px;
}

.signal-chart {
  align-items: end;
  border-bottom: 1px solid var(--theme-border, #29292d);
  display: flex;
  gap: 5px;
  height: 86px;
  margin: 16px 0;
}

.signal-chart i {
  background: linear-gradient(#557fff, rgba(37, 99, 255, 0.12));
  border-radius: 2px 2px 0 0;
  flex: 1;
  height: 72%;
}

.signal-chart i:nth-child(2) { height: 58%; }
.signal-chart i:nth-child(3) { height: 82%; }
.signal-chart i:nth-child(4) { height: 44%; }
.signal-chart i:nth-child(5) { background: linear-gradient(#ff6568, rgba(255, 77, 79, 0.12)); height: 90%; }
.signal-chart i:nth-child(6) { background: linear-gradient(#ff6568, rgba(255, 77, 79, 0.12)); height: 96%; }
.signal-chart i:nth-child(7) { height: 76%; }
.signal-chart i:nth-child(8) { height: 62%; }

.console-signal dl,
.console-signal dl div {
  margin: 0;
}

.console-signal dl div {
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  padding: 4px 0;
}

.console-signal dt { color: var(--theme-muted, #606067); }
.console-signal dd { color: var(--theme-secondary, #b7b7bc); margin: 0; }

/* Animated incident story ------------------------------------------------ */
.incident-scene {
  background:
    radial-gradient(circle at 72% 48%, rgba(37, 99, 255, 0.12), transparent 34%),
    var(--theme-card, #070707);
  border: 1px solid transparent;
  isolation: isolate;
  overflow: hidden;
  background-clip: padding-box, padding-box, border-box;
  background-origin: padding-box, padding-box, border-box;
  background-image:
    radial-gradient(circle at 72% 48%, rgba(37, 99, 255, 0.12), transparent 34%),
    linear-gradient(var(--theme-card, #070707), var(--theme-card, #070707)),
    var(--theme-track, #252832);
  background-size: auto, auto, 100% 100%;
}

.incident-scene::before {
  animation: scene-edge-run 4.8s linear infinite;
  background: linear-gradient(90deg, transparent, #7c3aed 20%, #2563ff 52%, #00e5c2 82%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 8px #7c3aed, 0 0 16px #2563ff, 0 0 28px rgba(0, 229, 194, 0.8);
  content: "";
  height: 3px;
  left: -2px;
  pointer-events: none;
  position: absolute;
  top: -2px;
  width: 180px;
  z-index: 3;
}

.incident-scene::after {
  animation: scene-inner-scan 7s ease-in-out infinite;
  background: linear-gradient(115deg, transparent 30%, rgba(0, 229, 194, 0.06) 46%, rgba(37, 99, 255, 0.1) 50%, transparent 66%);
  content: "";
  inset: 1px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

@keyframes scene-edge-run {
  0% { left: -2px; top: -2px; height: 3px; width: 180px; }
  24.999% { left: calc(100% - 178px); top: -2px; height: 3px; width: 180px; }
  25% { left: calc(100% - 2px); top: -2px; height: 180px; width: 3px; }
  49.999% { left: calc(100% - 2px); top: calc(100% - 178px); height: 180px; width: 3px; }
  50% { left: calc(100% - 178px); top: calc(100% - 2px); height: 3px; width: 180px; }
  74.999% { left: -2px; top: calc(100% - 2px); height: 3px; width: 180px; }
  75% { left: -2px; top: calc(100% - 178px); height: 180px; width: 3px; }
  99.999% { left: -2px; top: -2px; height: 180px; width: 3px; }
  100% { left: -2px; top: -2px; height: 3px; width: 180px; }
}
@keyframes scene-inner-scan { 0%, 100% { opacity: 0; transform: translateX(-18%); } 40%, 60% { opacity: 1; } 80% { opacity: 0; transform: translateX(18%); } }

.incident-scene .console-topline em {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.incident-scene .console-topline,
.incident-scene .incident-scene-body {
  position: relative;
  z-index: 1;
}

.incident-scene .console-topline em i {
  background: #42e6bd;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(66, 230, 189, 0.85);
  height: 5px;
  width: 5px;
}

.incident-scene-body {
  display: grid;
  gap: 18px;
  grid-template-columns: 148px minmax(0, 1fr) 208px;
  min-height: 490px;
  padding: 28px;
}

.scene-label {
  color: var(--theme-muted, #65656d);
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-column {
  align-content: center;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
}

.signal-column > .scene-label {
  margin-bottom: 7px;
}

.signal-node {
  align-items: center;
  animation: incident-node-arrive 800ms both;
  background: rgba(17, 17, 20, 0.9);
  border: 1px solid var(--theme-border, #29292e);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 25px 1fr;
  min-height: 48px;
  padding: 7px 9px;
  position: relative;
  z-index: 1;
}

.signal-node b {
  align-items: center;
  background: var(--theme-raised, #17171c);
  border-radius: 5px;
  color: var(--theme-link, #bfc9ff);
  display: flex;
  font-size: 10px;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.signal-node span,
.signal-node em {
  display: block;
  font-size: 9px;
  font-style: normal;
}

.signal-node span { color: var(--theme-text, #c7c7cc); }
.signal-node em { color: var(--theme-muted, #62626a); margin-top: 3px; }
.signal-sentry { animation-delay: 120ms; }
.signal-monitor { animation-delay: 240ms; }
.signal-stripe { animation-delay: 360ms; }
.signal-sentry b { color: var(--theme-violet, #bf9cff); }
.signal-monitor b { color: var(--theme-negative, #ff787b); }
.signal-stripe b { color: var(--theme-positive, #54e1be); }

.signal-beam {
  animation: incident-beam-flow 1.8s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(79, 121, 255, 0.85), transparent);
  height: 1px;
  left: 129px;
  position: absolute;
  transform-origin: left center;
  width: 76px;
}

.beam-one { top: 82px; transform: rotate(-10deg); }
.beam-two { top: 142px; transform: rotate(-3deg); animation-delay: 150ms; }
.beam-three { top: 202px; transform: rotate(4deg); animation-delay: 300ms; }
.beam-four { top: 262px; transform: rotate(11deg); animation-delay: 450ms; }

.incident-core {
  animation: incident-panel-arrive 900ms 200ms both;
  min-width: 0;
  padding: 4px 0;
}

.incident-core-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.incident-core-heading h2 {
  color: var(--theme-text, #ededed);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 510;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}

.incident-severity {
  align-items: center;
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.45);
  border-radius: 999px;
  color: var(--theme-negative, #ff777a);
  display: inline-flex;
  font-size: 9px;
  gap: 6px;
  padding: 7px 9px;
  white-space: nowrap;
}

.incident-severity i {
  animation: incident-pulse 1.4s ease-in-out infinite;
  background: #ff6265;
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.incident-core-status {
  border-bottom: 1px solid var(--theme-border, #202024);
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding-bottom: 18px;
}

.incident-core-status span,
.incident-core-status em {
  color: var(--theme-muted, #77777f);
  font-size: 10px;
  font-style: normal;
}

.incident-core-status strong {
  color: var(--theme-text, #f0f0f2);
  font-size: 19px;
  font-weight: 500;
}

.incident-core-status em { color: var(--theme-negative, #ff777a); }

.incident-timeline {
  margin-top: 19px;
  position: relative;
}

.incident-timeline::before {
  background: linear-gradient(#4779ff, #7655ff 45%, #ff6265 68%, #42e6bd);
  content: "";
  left: 63px;
  opacity: 0.65;
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
}

.incident-timeline article {
  align-items: start;
  animation: incident-row-reveal 700ms both;
  display: grid;
  gap: 12px;
  grid-template-columns: 43px 9px minmax(0, 1fr);
  padding: 10px 0;
  position: relative;
}

.incident-timeline article:nth-child(2) { animation-delay: 250ms; }
.incident-timeline article:nth-child(3) { animation-delay: 500ms; }
.incident-timeline article:nth-child(4) { animation-delay: 750ms; }
.incident-timeline time { color: var(--theme-muted, #56565e); font-size: 9px; padding-top: 2px; }
.incident-timeline article > i { background: #4f79ff; border-radius: 50%; height: 7px; margin-top: 3px; position: relative; width: 7px; z-index: 1; }
.incident-timeline article > i.violet { background: #9b7cff; }
.incident-timeline article > i.red { background: #ff6265; box-shadow: 0 0 12px rgba(255, 98, 101, 0.8); }
.incident-timeline article > i.teal { background: #42e6bd; }
.incident-timeline b,
.incident-timeline span { display: block; font-size: 10px; }
.incident-timeline b { color: var(--theme-text, #d2d2d6); font-weight: 500; }
.incident-timeline span { color: var(--theme-muted, #65656d); margin-top: 4px; }

.response-card {
  align-self: center;
  animation: incident-panel-arrive 900ms 450ms both;
  background: rgba(13, 15, 21, 0.92);
  border: 1px solid var(--theme-border, #29313f);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(37, 99, 255, 0.08);
  padding: 18px;
}

.response-avatar {
  display: flex;
  margin: 22px 0 15px;
}

.response-avatar i {
  background: linear-gradient(135deg, #4779ff, #42e6bd);
  border: 2px solid var(--theme-border, #0d0f15);
  border-radius: 50%;
  height: 28px;
  margin-right: -7px;
  width: 28px;
}

.response-avatar i:nth-child(2) { background: linear-gradient(135deg, #9b7cff, #4779ff); }
.response-avatar i:nth-child(3) { background: linear-gradient(135deg, #ff777a, #9b7cff); }
.response-card > strong { color: var(--theme-text, #e8e8eb); display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.response-card > p { color: var(--theme-muted, #77777f); font-size: 10px; line-height: 1.55; margin: 9px 0 19px; }
.response-progress { align-items: center; display: flex; gap: 8px; }
.response-progress > span { background: var(--theme-track, #222a38); border-radius: 99px; display: block; height: 4px; overflow: hidden; width: 72px; }
.response-progress > span i { animation: incident-progress 2.6s ease-in-out infinite; background: #42e6bd; border-radius: inherit; display: block; height: 100%; width: 70%; }
.response-progress b { color: var(--theme-muted, #6f7785); font-size: 9px; font-weight: 450; }
.response-card a { color: var(--theme-link, #8fb0ff); display: inline-flex; font-size: 10px; gap: 8px; margin-top: 22px; }
.response-card a:hover { color: var(--theme-text, #fff); }

@keyframes incident-node-arrive { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes incident-panel-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes incident-row-reveal { from { opacity: 0.2; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes incident-beam-flow { from { opacity: 0.2; background-position: -80px 0; } 50% { opacity: 1; } to { opacity: 0.2; background-position: 80px 0; } }
@keyframes incident-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(255, 98, 101, 0); } 50% { box-shadow: 0 0 0 5px rgba(255, 98, 101, 0.14); } }
@keyframes incident-progress { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(40%); } }

@media (prefers-reduced-motion: reduce) {
  .incident-scene,
  .incident-scene::before,
  .incident-scene::after,
  .incident-scene * { animation: none !important; transition: none !important; }
}

.marketing-trust {
  align-items: center;
  border-bottom: 1px solid var(--theme-border, #1b1b1b);
  border-top: 1px solid var(--theme-border, #1b1b1b);
  display: flex;
  gap: clamp(20px, 4vw, 58px);
  justify-content: center;
  min-height: 94px;
  padding: 22px 32px;
}

.marketing-trust span {
  color: var(--theme-muted, #525258);
  font-size: 11px;
}

.marketing-trust b {
  color: var(--theme-secondary, #85858b);
  font-size: 13px;
  font-weight: 500;
}

.marketing-section {
  margin: 0 auto;
  max-width: 1360px;
  padding: 150px 42px;
  scroll-margin-top: 20px;
}

.marketing-section-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  margin-bottom: 64px;
}

.marketing-section-heading > p {
  grid-column: 1 / -1;
}

.marketing-section-heading h2,
.workflow-copy h2,
.pilot-section h2,
.marketing-final-cta h2 {
  font-size: clamp(40px, 4.2vw, 66px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
}

.marketing-section-heading > span,
.workflow-copy > span,
.pilot-section > div > span {
  align-self: end;
  color: var(--theme-secondary, #85858c);
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
}

.marketing-feature-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.marketing-feature-grid article {
  background: linear-gradient(145deg, var(--theme-card, #0b0b0c), var(--theme-card, #060607));
  border: 1px solid var(--theme-border, #222);
  min-height: 430px;
  padding: 32px;
  position: relative;
}

.marketing-feature-grid article:first-child { border-radius: 12px 0 0 12px; }
.marketing-feature-grid article:last-child { border-radius: 0 12px 12px 0; }

.marketing-feature-grid article::after {
  background: var(--feature-color, var(--marketing-blue));
  content: "";
  height: 1px;
  left: 30%;
  opacity: 0.7;
  position: absolute;
  right: 30%;
  top: -1px;
}

.marketing-feature-grid .feature-connect { --feature-color: var(--marketing-violet); }
.marketing-feature-grid .feature-respond { --feature-color: var(--marketing-cyan); }

.feature-number {
  color: var(--theme-muted, #434349);
  font: 10px "Geist Mono", monospace;
  position: absolute;
  right: 24px;
  top: 24px;
}

.feature-icon {
  align-items: center;
  background: rgba(37, 99, 255, 0.08);
  border: 1px solid rgba(37, 99, 255, 0.25);
  border-radius: 10px;
  color: var(--theme-link, #6f94ff);
  display: flex;
  font-size: 24px;
  height: 54px;
  justify-content: center;
  margin: 28px 0 60px;
  width: 54px;
}

.feature-connect .feature-icon { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.3); color: var(--theme-violet, #a98aff); }
.feature-respond .feature-icon { background: rgba(0, 229, 194, 0.07); border-color: rgba(0, 229, 194, 0.28); color: var(--theme-positive, #43e7ce); }

.marketing-feature-grid h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.marketing-feature-grid p {
  color: var(--theme-secondary, #7b7b82);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.marketing-feature-grid ul,
.pilot-section ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.marketing-feature-grid li,
.pilot-section li {
  border-top: 1px solid var(--theme-border, #202023);
  color: var(--theme-secondary, #9999a0);
  font-size: 12px;
  padding: 10px 0;
}

.marketing-feature-grid li::before,
.pilot-section li::before {
  color: var(--feature-color, var(--theme-link, #668aff));
  content: "✓";
  margin-right: 9px;
}

.marketing-workflow {
  background:
    linear-gradient(90deg, rgba(37, 99, 255, 0.04), transparent 42%),
    var(--theme-card, #050505);
  border-bottom: 1px solid var(--theme-border, #1f1f1f);
  border-top: 1px solid var(--theme-border, #1f1f1f);
  display: grid;
  gap: 100px;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 140px max(42px, calc((100vw - 1276px) / 2));
}

.workflow-copy {
  align-self: center;
}

.workflow-copy > span {
  display: block;
  margin-top: 30px;
}

.workflow-copy > a {
  color: var(--theme-link, #87a6ff);
  display: inline-block;
  font-size: 13px;
  margin-top: 30px;
}

.workflow-rail {
  border-left: 1px solid var(--theme-border, #252529);
  display: grid;
}

.workflow-rail article {
  align-items: center;
  border-bottom: 1px solid var(--theme-border, #1c1c1f);
  display: grid;
  gap: 18px;
  grid-template-columns: 48px 10px 1fr auto;
  min-height: 92px;
  padding-left: 24px;
}

.workflow-rail time,
.workflow-rail em {
  color: var(--theme-muted, #515157);
  font: 9px "Geist Mono", monospace;
}

.workflow-rail i {
  background: #4f79ff;
  border: 2px solid var(--theme-border, #050505);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #4f79ff;
  height: 7px;
  margin-left: -29px;
  width: 7px;
}

.workflow-rail i.violet { background: #9b75ff; box-shadow: 0 0 0 1px #9b75ff; }
.workflow-rail i.red { background: #ff5b5f; box-shadow: 0 0 0 1px #ff5b5f; }
.workflow-rail i.teal { background: #25d9bd; box-shadow: 0 0 0 1px #25d9bd; }
.workflow-rail b,
.workflow-rail span { display: block; }
.workflow-rail b { font-size: 13px; font-weight: 500; }
.workflow-rail span { color: var(--theme-muted, #68686f); font-size: 11px; margin-top: 5px; }
.workflow-rail em { font-style: normal; padding-right: 16px; }

.integrations-section {
  padding-bottom: 80px;
}

.integration-marquee {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.integration-marquee article {
  align-items: center;
  background: var(--theme-card, #080809);
  border: 1px solid var(--theme-border, #202024);
  border-radius: 8px;
  display: grid;
  gap: 13px;
  grid-template-columns: 42px 1fr auto;
  min-height: 82px;
  padding: 15px;
}

.integration-marquee i {
  align-items: center;
  background: var(--theme-raised, #111114);
  border: 1px solid var(--theme-border, #29292d);
  border-radius: 8px;
  color: var(--theme-secondary, #b7b7bd);
  display: flex;
  font: normal 13px "Geist Mono", monospace;
  height: 42px;
  justify-content: center;
}

.integration-marquee b,
.integration-marquee span { display: block; }
.integration-marquee b { font-size: 13px; font-weight: 500; }
.integration-marquee span { color: var(--theme-muted, #66666d); font-size: 10px; margin-top: 4px; }
.integration-marquee em { color: var(--theme-positive, #34cdaa); font-size: 9px; font-style: normal; }

.pilot-section {
  align-items: center;
  background: linear-gradient(135deg, #07142d, var(--theme-raised, #0b0820) 52%, var(--theme-raised, #031512));
  border: 1px solid #23304a;
  border-radius: 18px;
  display: grid;
  gap: 90px;
  grid-template-columns: 1fr 440px;
  margin: 80px auto 60px;
  max-width: 1276px;
  padding: 78px;
  scroll-margin-top: 20px;
}

.pilot-section > div > span {
  display: block;
  margin-top: 28px;
}

.pilot-section > article {
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 28px;
}

.pilot-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pilot-title span { font-size: 18px; font-weight: 520; }
.pilot-title b { background: rgba(0, 229, 194, 0.1); border: 1px solid rgba(0, 229, 194, 0.28); border-radius: 999px; color: var(--theme-positive, #54ddc5); font-size: 9px; padding: 6px 9px; text-transform: uppercase; }
.pilot-section ul { margin-bottom: 24px; }
.pilot-section li { color: var(--theme-text, #c3c3c8); }
.pilot-section .marketing-cta { width: 100%; }
.pilot-section small { color: var(--theme-muted, #55555d); display: block; font-size: 9px; line-height: 1.5; margin-top: 14px; text-align: center; }

.faq-section {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.8fr 1.2fr;
}

.faq-section .marketing-section-heading {
  display: block;
  margin: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--theme-border, #28282c);
}

.faq-list summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  list-style: none;
  min-height: 76px;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--theme-muted, #67676e); font-size: 22px; font-weight: 300; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--theme-muted, #77777e); font-size: 13px; line-height: 1.7; margin: -4px 42px 24px 0; }

.marketing-final-cta {
  align-items: center;
  background: radial-gradient(circle at center, rgba(37, 99, 255, 0.14), transparent 44%);
  border-top: 1px solid var(--theme-border, #1f1f22);
  display: flex;
  flex-direction: column;
  min-height: 580px;
  padding: 110px 24px;
  text-align: center;
}

.marketing-final-cta img {
  filter: none;
  height: 48px;
  margin-bottom: 26px;
  opacity: 0.86;
  width: 48px;
}

.marketing-final-cta > p { color: var(--theme-muted, #77777d); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; }
.marketing-final-cta h2 { margin: 14px 0 36px; }
.marketing-final-cta > div { display: flex; gap: 10px; }

.marketing-footer {
  align-items: center;
  border-top: 1px solid var(--theme-border, #1f1f22);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto auto;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 110px;
  padding: 24px 42px;
}

.marketing-footer p,
.marketing-footer span,
.marketing-footer nav a {
  color: var(--theme-muted, #55555b);
  font-size: 10px;
}

.marketing-footer nav { display: flex; gap: 20px; }
.marketing-footer nav a:hover { color: var(--theme-text, #bbb); }

@media (max-width: 1180px) {
  .marketing-header { padding-inline: 24px; }
  .marketing-header > nav { display: none; }
  .marketing-header { grid-template-columns: 1fr auto; }
  .marketing-hero { grid-template-columns: 1fr; padding-inline: 32px; }
  .marketing-hero-copy { max-width: 760px; }
  .marketing-console { width: 100%; }
  .marketing-workflow { gap: 60px; padding-inline: 42px; }
  .pilot-section { margin-inline: 32px; padding: 58px; }
}

@media (max-width: 860px) {
  .marketing-header-actions .marketing-install,
  .marketing-header-actions .marketing-signin { display: none; }
  .marketing-hero { min-height: auto; padding-block: 84px 64px; }
  .marketing-hero h1 { font-size: clamp(48px, 11vw, 70px); }
  .marketing-feature-grid { grid-template-columns: 1fr; }
  .marketing-feature-grid article { min-height: auto; }
  .marketing-feature-grid article:first-child { border-radius: 12px 12px 0 0; }
  .marketing-feature-grid article:last-child { border-radius: 0 0 12px 12px; }
  .marketing-section-heading { display: block; }
  .marketing-section-heading > span { display: block; margin-top: 24px; }
  .marketing-workflow { grid-template-columns: 1fr; }
  .pilot-section { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; }
  .marketing-footer { grid-template-columns: auto 1fr auto; }
  .marketing-footer p { display: none; }
  .incident-scene-body { grid-template-columns: 1fr; min-height: 0; }
  .signal-column { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
  .signal-column > .scene-label { grid-column: 1 / -1; }
  .signal-node { grid-template-columns: 25px 1fr; }
  .signal-beam { display: none; }
  .response-card { align-self: stretch; }
}

@media (max-width: 680px) {
  .marketing-header { min-height: 66px; padding-inline: 18px; }
  .marketing-logo img { width: 96px; }
  .marketing-header-actions { gap: 10px; }
  .marketing-cta.compact { min-height: 36px; }
  .marketing-hero { gap: 50px; padding: 66px 18px 54px; }
  .marketing-eyebrow { line-height: 1.5; }
  .marketing-hero h1 { font-size: 49px; }
  .marketing-lede { font-size: 16px; }
  .marketing-hero-actions { align-items: stretch; flex-direction: column; }
  .marketing-proof { gap: 15px; justify-content: space-between; }
  .marketing-console { border-radius: 10px; }
  .incident-scene-body { gap: 22px; padding: 18px; }
  .signal-node { align-items: start; grid-template-columns: 1fr; min-height: 76px; padding: 9px; }
  .signal-node b { margin-bottom: 4px; }
  .incident-core-heading { align-items: start; flex-direction: column; }
  .incident-core-status { margin-top: 20px; }
  .incident-timeline::before { left: 53px; }
  .incident-timeline article { grid-template-columns: 35px 9px minmax(0, 1fr); }
  .console-layout { grid-template-columns: 1fr; min-height: 0; }
  .console-layout > aside { display: none; }
  .console-main { padding: 17px; }
  .console-heading h2 { font-size: 18px; }
  .console-stats { grid-template-columns: 1fr 1fr; }
  .console-stats article:last-child { display: none; }
  .console-detail-grid { grid-template-columns: 1fr; }
  .console-signal { display: none; }
  .marketing-trust { flex-wrap: wrap; gap: 18px 26px; justify-content: flex-start; }
  .marketing-trust span { flex-basis: 100%; }
  .marketing-section { padding: 100px 18px; }
  .marketing-section-heading { margin-bottom: 42px; }
  .marketing-section-heading h2,
  .workflow-copy h2,
  .pilot-section h2,
  .marketing-final-cta h2 { font-size: 42px; }
  .marketing-feature-grid article { padding: 26px; }
  .feature-icon { margin-bottom: 42px; }
  .marketing-workflow { gap: 48px; padding: 95px 18px; }
  .workflow-rail article { gap: 10px; grid-template-columns: 40px 9px 1fr; padding-left: 18px; }
  .workflow-rail em { display: none; }
  .integration-marquee { grid-template-columns: 1fr; }
  .pilot-section { gap: 42px; margin: 30px 12px; padding: 40px 22px; }
  .faq-list summary { font-size: 14px; }
  .marketing-final-cta { min-height: 510px; }
  .marketing-final-cta > div { flex-direction: column; width: 100%; }
  .marketing-footer { grid-template-columns: 1fr auto; padding: 28px 18px; }
  .marketing-footer nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-shell *,
  .marketing-shell *::before,
  .marketing-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.deploy-foundation {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}

.deploy-foundation .span-2 { grid-column: auto; }
.deploy-foundation .span-3 { grid-column: 1 / -1; }

.deploy-capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.deploy-capability-strip > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.deploy-capability-strip .good { border-color: rgba(0, 208, 132, 0.4); }
.deploy-capability-strip .watch { border-color: rgba(245, 166, 35, 0.45); }
.deploy-capability-strip span,
.deploy-foundation-app span,
.deploy-foundation-app p,
.deploy-foundation-state span { color: var(--soft); }

.deploy-foundation-list,
.deploy-foundation-events { display: grid; gap: 10px; }

.node-enrollment-panel {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 22px;
  padding: 16px;
}

.node-enrollment-panel h3,
.node-enrollment-panel p { margin: 5px 0 0; }
.node-enrollment-panel p,
.node-enrollment-panel span,
.node-enrollment-panel em { color: var(--soft); }

.node-enrollment-secret {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  min-width: 0;
}

.node-enrollment-secret code {
  background: var(--theme-card, #0a0a0a);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--theme-text, #d4d4d8);
  overflow-wrap: anywhere;
  padding: 12px;
  user-select: all;
}

.deploy-foundation-app {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  padding: 16px;
}

.deploy-foundation-app h3,
.deploy-foundation-app p { margin: 4px 0 0; overflow-wrap: anywhere; }
.deploy-foundation-state { display: grid; gap: 5px; min-width: 0; }
.deploy-foundation-state strong { text-transform: capitalize; }
.deploy-foundation-app button { white-space: nowrap; }

.deploy-app-form { display: grid; gap: 14px; }
.deploy-app-form label { display: grid; gap: 7px; }
.deploy-app-form input,
.deploy-app-form select { width: 100%; }

.deploy-foundation-event {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 12px 0;
}

.deploy-foundation-event em { color: var(--theme-warning, #f5a623); font-style: normal; text-transform: capitalize; }

@media (max-width: 980px) {
  .deploy-foundation { grid-template-columns: 1fr; }
  .deploy-foundation-app { grid-template-columns: 1fr; }
  .deploy-foundation-app button { justify-self: start; }
  .node-enrollment-panel { grid-template-columns: 1fr; }
  .node-enrollment-panel button { justify-self: start; }
}

@media (max-width: 600px) {
  .deploy-capability-strip { grid-template-columns: 1fr; }
  .deploy-foundation-event { grid-template-columns: 1fr; gap: 5px; }
}

.line-chart .primary-line {
  stroke-width: 2.4;
}

.line-chart .secondary-line {
  stroke-width: 1.8;
}

.line-chart .point-tooltip rect {
  fill: var(--theme-card, #0a0a0a);
  stroke: var(--line-strong);
}

.line-chart .tooltip-label {
  fill: var(--soft);
}

.line-chart .tooltip-value {
  fill: var(--text);
}

.stat-card .sparkline {
  height: 58px;
  margin-top: 18px;
  opacity: 0.95;
}

.stat-card .spark-area {
  fill: rgba(50, 145, 255, 0.07);
}

.stat-card .spark-line {
  stroke-width: 2.1;
}

.log-row {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
}

.log-row-meta code,
.log-row-meta em {
  background: var(--theme-card, #050505);
  border-color: var(--line);
  color: var(--theme-text, #d4d4d8);
}

.log-row.info .log-row-main span {
  color: var(--theme-link, #60a5fa);
}

.log-row.watch .log-row-main span {
  color: var(--theme-warning, #f5a623);
}

.log-row.critical .log-row-main span {
  color: var(--theme-negative, #ff7875);
}

.capability-list span {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--text);
}

.monitor-service-card.connected,
.connection-card.connected,
.connection-row.connected,
.detail-formula-card.good,
.monitor-check-card.good {
  background: rgba(0, 208, 132, 0.05);
  border-color: rgba(0, 208, 132, 0.35);
}

.monitor-service-card.pending,
.connection-card.pending,
.connection-row.pending,
.detail-formula-card.watch,
.monitor-check-card.watch {
  background: rgba(245, 166, 35, 0.06);
  border-color: rgba(245, 166, 35, 0.35);
}

.parent-kpi.good .kpi-card-head em,
.formula-row .improving,
.connection-row.connected em {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--theme-positive, #4ade80);
}

.parent-kpi.watch .kpi-card-head em,
.formula-row .declining,
.connection-row.pending em {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--theme-warning, #f5a623);
}

.parent-kpi.bad .kpi-card-head em {
  background: rgba(255, 77, 79, 0.08);
  border-color: rgba(255, 77, 79, 0.35);
  color: var(--theme-negative, #ff7875);
}

input,
select,
.auth-form input,
.auth-form select,
.customer-config-form input,
.customer-config-form select,
.data-entry-form input,
.data-entry-form select,
.settings-grid input {
  background: var(--theme-canvas, #000);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}

input::placeholder {
  color: var(--theme-muted, #525252);
}

input:focus,
select:focus,
.auth-form input:focus,
.customer-config-form input:focus,
.customer-config-form select:focus,
.data-entry-form input:focus,
.data-entry-form select:focus,
.settings-grid input:focus {
  border-color: var(--theme-action, #ededed);
  box-shadow: 0 0 0 1px #ededed;
}

.customer-config-form select option {
  background: var(--theme-card, #0a0a0a);
  color: var(--theme-text, #ededed);
}

/* Safari can retain its light native select paint even when the surrounding
   form uses the dark color scheme. Keep this critical provider control
   explicit so its saved value is always legible. */
#alert-channels-form .email-provider-select {
  -webkit-appearance: none;
  -webkit-text-fill-color: var(--theme-text, #ededed);
  appearance: none;
  background-color: var(--theme-card, #0a0a0a) !important;
  border-color: var(--theme-border, #3a3a3a);
  color: var(--theme-text, #ededed) !important;
  color-scheme: dark;
  opacity: 1;
}

#alert-channels-form .email-provider-select option {
  -webkit-text-fill-color: var(--theme-text, #ededed);
  background-color: var(--theme-card, #0a0a0a);
  color: var(--theme-text, #ededed);
}

table,
td,
th {
  border-color: var(--line);
}

.line-chart .grid line {
  stroke: var(--theme-border, #262626);
}

.line-chart .grid .target,
.line-chart .secondary-line {
  stroke: var(--theme-border, #525252);
}

.latest-badge rect {
  fill: var(--theme-card, #0a0a0a);
  stroke: var(--line-strong);
  filter: none;
}

.latest-badge text,
.line-chart .axis-y,
.line-chart .target-label,
.chart-labels text {
  fill: var(--soft);
}

.sparkline .spark-area,
.line-chart .primary-area {
  fill: rgba(50, 145, 255, 0.1);
}

.coverage-ring {
  background:
    radial-gradient(circle at center, var(--theme-card, #050505) 0 58%, transparent 59%),
    conic-gradient(var(--theme-action, #ededed) calc(var(--p) * 1%), var(--theme-track, #262626) 0);
}

.gauge {
  background:
    radial-gradient(circle, var(--theme-card, #050505) 0 58%, transparent 59%),
    conic-gradient(var(--teal) 0 91%, var(--theme-track, #262626) 91% 100%);
}

.deploy-status,
.monitor-status,
.data-status {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--theme-positive, #4ade80);
}

.deploy-status.watch,
.monitor-status.watch,
.data-status.watch {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--theme-warning, #f5a623);
}

.data-status.bad,
.auth-error {
  background: rgba(255, 77, 79, 0.08);
  border-color: rgba(255, 77, 79, 0.35);
  color: var(--theme-negative, #ff7875) !important;
}

body[data-auth-theme="light"] .auth-shell {
  background: #f7f8fa;
  color: #171717;
}

body[data-auth-theme="light"] .auth-card {
  background: #fff;
  border-color: #dfe3e8;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body[data-auth-theme="light"] .auth-card h1,
body[data-auth-theme="light"] .auth-form label span {
  color: #171717;
}

body[data-auth-theme="light"] .auth-card > p,
body[data-auth-theme="light"] .auth-card > span,
body[data-auth-theme="light"] .auth-foot {
  color: #667085;
}

body[data-auth-theme="light"] .auth-form input,
body[data-auth-theme="light"] .auth-form select {
  background: #fff;
  border-color: #cfd5dd;
  color: #171717;
}

body[data-auth-theme="light"] .auth-form input::placeholder {
  color: #98a2b3;
}

body[data-auth-theme="light"] .auth-form button {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

body[data-auth-theme="light"] .auth-theme-toggle {
  border-color: #cfd5dd;
  color: #667085;
}

body[data-auth-theme="light"] .auth-theme-toggle:hover,
body[data-auth-theme="light"] .auth-theme-toggle:focus-visible {
  border-color: #171717;
  color: #171717;
}

/* Theme values are shared by every surface, including marketing and native
   controls. Dark fallbacks live beside each component declaration. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --card: #ffffff;
  --card-soft: #f1f4f8;
  --line: #dce2ea;
  --line-strong: #b9c3d1;
  --text: #171717;
  --soft: #475467;
  --muted: #596579;
  --blue: #175cd3;
  --teal: #087a62;
  --amber: #925400;
  --red: #c52d3a;
  --violet: #6938c8;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  --theme-canvas: var(--bg);
  --theme-card: var(--card);
  --theme-raised: var(--card-soft);
  --theme-track: #dce2ea;
  --theme-border: var(--line);
  --theme-text: var(--text);
  --theme-secondary: var(--soft);
  --theme-muted: var(--muted);
  --theme-action: #171717;
  --theme-action-hover: #303844;
  --theme-action-ink: #ffffff;
  --theme-link: var(--blue);
  --theme-positive: var(--teal);
  --theme-warning: var(--amber);
  --theme-negative: var(--red);
  --theme-violet: var(--violet);
  --surface-raised: var(--card-soft);
}

html[data-theme="light"] .marketing-shell {
  background:
    radial-gradient(circle at 75% 8%, rgba(37, 99, 255, 0.06), transparent 25%),
    var(--bg);
}

html[data-theme="light"] .home-hero {
  background: linear-gradient(135deg, #eef3ff, #f0faf7 65%, #ffffff);
}

html[data-theme="light"] .marketing-hero h1 span {
  background-image: linear-gradient(90deg, #175cd3, #6938c8 54%, #087a72);
}

html[data-theme="light"] .pilot-section {
  background: linear-gradient(135deg, #eef3ff, #f4efff 52%, #eaf8f4);
  border-color: var(--line-strong);
}

html[data-theme="light"] .pilot-section > article,
html[data-theme="light"] .response-card,
html[data-theme="light"] .signal-node {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme="light"] .marketing-console {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .response-avatar i { border-color: var(--card); }
html[data-theme="light"] .workflow-rail i { border-color: var(--bg); }

html[data-theme="light"] .marketing-final-cta > p { color: var(--soft); }
html[data-theme="light"] .sev.sev2 { color: #ffffff; }
html[data-theme="dark"] :is(.sev.sev1, .sev.sev3) { color: #171717; }

html[data-theme="light"] :is(input, select, textarea) {
  background: var(--card);
  color: var(--text);
  border-color: var(--line-strong);
}

html[data-theme="light"] :is(input, textarea)::placeholder { color: var(--muted); }
html[data-theme="light"] :is(input, select, textarea):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

html[data-theme="light"] #alert-channels-form .email-provider-select {
  color-scheme: light;
  -webkit-text-fill-color: var(--text);
}

html[data-theme="light"] .auth-error { color: var(--red) !important; }
html[data-theme="light"] .auth-form input::placeholder { color: var(--muted); }

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.marketing-theme-toggle { margin-right: 2px; }

/* Keep appearance and account controls reachable on compact app screens. */
@media (max-width: 760px) {
  .topbar { display: flex; justify-content: space-between; }
  .top-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding-right: 10px;
  }
  .top-actions > :is(.settings-action, .round-action, .live-pill) { display: none; }
  .top-actions .user-chip { min-width: 0; padding: 0 8px; }
  .top-actions .user-chip span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .theme-toggle { flex: 0 0 40px; height: 40px; width: 40px; }
}

/* Vercel-style typography tuning. */
body {
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  text-rendering: geometricPrecision;
}

.page-title span,
.section-heading > span,
.hero-card > span,
.chart-head span,
.parent-kpi span,
.stat-card > span,
.home-hero-copy > span,
.welcome-copy > span,
.welcome-outcome > span,
.auth-card > span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.page-title h1,
.section-heading h2,
.chart-head h3,
.incident-card h3,
.auth-card h1,
.home-hero-copy h2,
.platform-hero h2,
.dashboard-widget-card b,
.welcome-copy h2,
.welcome-outcome strong {
  font-weight: 500;
  letter-spacing: 0;
}

.welcome-copy h2 {
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: 1.04;
}

.home-hero-copy h2 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
}

.page-title p,
.section-heading p,
.hero-card p,
.chart-card p,
.incident-card p,
.welcome-copy p,
.home-hero-copy p,
.platform-hero p,
.auth-card > p,
.data-note,
.empty-state {
  font-weight: 400;
}

.top-tabs a,
.page-links a,
.rail nav a b,
.user-chip span,
.live-pill,
.round-action,
.home-hero-actions a,
.welcome-actions a,
.auth-form button,
.customer-config-form button,
.data-entry-form button,
.secondary-action,
.deploy-repo-card button,
.deploy-env-card button,
.monitor-service-card button,
.deploy-command-row button,
.connection-actions a,
.connection-actions button {
  font-weight: 500;
}

.page-links a {
  color: var(--muted);
}

.stat-card strong,
.parent-kpi strong,
.hero-card strong,
.root-map-card span,
.detail-metric strong,
.platform-metrics strong,
.monitor-check-card strong,
.deploy-repo-card strong,
.deploy-env-card strong,
.deployment-card strong,
.deploy-domain-card strong,
.integration-health-card strong,
.monitor-service-card strong,
.capability-card strong,
.feature-card strong,
.marketplace-card strong,
.connection-card-head strong,
.setup-summary strong,
.customer-activation-card strong,
.entry-list strong,
.setup-path-grid span {
  font-weight: 500;
  letter-spacing: 0;
}

.formula-row span,
.kpi-card-head em,
.kpi-card-foot span:last-child,
.platform-pillar em,
.marketplace-card em,
.deploy-repo-card em,
.deploy-env-card em,
.deployment-card em,
.deploy-domain-card em,
.monitor-service-card em,
.monitor-check-card em,
.connection-card-head em,
.connection-row em,
.customer-activation-card em,
.root-map-card b,
.root-map-card em {
  font-weight: 400;
}

/* Final dark readability audit. */
.formula-row span,
.kpi-card-head em,
.kpi-card-foot span:last-child,
.hero-micro em,
.platform-pillar strong,
.platform-pillar em,
.marketplace-card,
.marketplace-card em,
.deploy-repo-card em,
.deploy-env-card em,
.deployment-card,
.deployment-card em,
.deploy-domain-card,
.deploy-domain-card em,
.integration-health-card,
.monitor-service-card em,
.monitor-check-card em,
.connection-card-head em,
.connection-row em,
.customer-activation-card,
.source-badge,
.capability-list span,
.feature-card,
.incident-systems span,
.incident-readiness-card,
.incident-rule-card,
.incident-rule-card em,
.api-summary-card,
.error-coverage-card,
.endpoint-card,
.endpoint-metrics div,
.endpoint-card > em,
.managed-service-card,
.managed-service-foot em,
.managed-service-foot b,
.cloud-catalog-card,
.queue-card,
.queue-metrics div,
.queue-card > em,
.mail-profile-card,
.mail-profile-grid div,
.mail-auth-strip div,
.security-coverage-card,
.security-event-card,
.security-route-card,
.security-event-foot em,
.security-event-foot b,
.security-route-card em,
.ai-provider-card,
.ai-provider-metrics div,
.ai-workflow-card,
.automation-rule-card,
.automation-rule-foot em,
.collaboration-card,
.collaboration-card-foot em,
.settings-summary-card,
.dashboard-widget-card,
.dashboard-service-map div,
.dashboard-report-card,
.analytics-command-card,
.analytics-lane,
.analytics-action-list a,
.error-triage-card {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--theme-text, #d4d4d8);
}

.formula-row .improving,
.parent-kpi.good .kpi-card-head em,
.connection-row.connected em,
.source-badge.connected {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--theme-positive, #4ade80);
}

.formula-row .declining,
.parent-kpi.watch .kpi-card-head em,
.connection-row.pending em,
.source-badge.pending {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--theme-warning, #f5a623);
}

.parent-kpi.bad .kpi-card-head em {
  background: rgba(255, 77, 79, 0.08);
  border-color: rgba(255, 77, 79, 0.35);
  color: var(--theme-negative, #ff7875);
}

.formula-score,
.latest-badge rect {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line-strong);
}

.latest-badge rect {
  fill: var(--theme-card, #0a0a0a);
}

.formula-score b,
.formula-score span,
.latest-badge text,
.customer-activation-card strong,
.feature-card strong,
.incident-readiness-card strong,
.incident-rule-card strong,
.api-summary-card strong,
.error-coverage-card strong,
.error-triage-main strong,
.error-triage-card dd,
.endpoint-card-head strong,
.endpoint-metrics strong,
.managed-service-head strong,
.cloud-catalog-card strong,
.queue-card-head strong,
.queue-metrics strong,
.mail-profile-card strong,
.mail-profile-grid b,
.mail-auth-strip strong,
.security-coverage-card strong,
.security-event-card strong,
.security-route-card strong,
.ai-provider-head strong,
.ai-provider-metrics strong,
.ai-workflow-card strong,
.automation-rule-head strong,
.collaboration-card-head strong,
.settings-summary-card strong,
.dashboard-widget-card strong,
.dashboard-widget-card b,
.dashboard-report-card strong,
.deployment-card strong,
.deploy-domain-card strong,
.integration-health-card strong,
.analytics-command-card strong,
.analytics-lane strong,
.analytics-action-list strong {
  color: var(--text);
  fill: var(--text);
}

td,
th,
.timeline-list time,
.connection-review-grid em,
.connection-review-grid p,
.activation-list em,
.activation-list span,
.customer-activation-card span,
.customer-activation-card em,
.customer-activation-card p,
.customer-activation-card small,
.feature-card span,
.feature-card p,
.incident-readiness-card span,
.incident-readiness-card em,
.incident-rule-card span,
.incident-rule-card p,
.incident-rule-card em,
.api-summary-card span,
.api-summary-card em,
.error-coverage-card span,
.error-coverage-card em,
.error-triage-main p,
.error-triage-card dt,
.endpoint-metrics span,
.endpoint-card > em,
.managed-service-card p,
.managed-service-foot em,
.managed-service-foot b,
.cloud-catalog-card span,
.cloud-catalog-card p,
.queue-metrics span,
.queue-card > em,
.mail-profile-head span,
.mail-profile-head em,
.mail-profile-card p,
.mail-profile-grid span,
.mail-auth-strip span,
.mail-auth-strip em,
.security-coverage-card span,
.security-coverage-card em,
.security-event-card p,
.security-route-card p,
.security-event-foot em,
.security-event-foot b,
.security-route-card em,
.ai-provider-metrics span,
.ai-workflow-card span,
.ai-workflow-card p,
.automation-rule-card p,
.automation-rule-foot em,
.collaboration-card p,
.collaboration-card-foot em,
.settings-summary-card span,
.settings-summary-card em,
.dashboard-widget-head span,
.dashboard-widget-head em,
.dashboard-report-card p,
.deployment-card p,
.deployment-card-foot b,
.deploy-domain-card p,
.deployment-card em,
.deploy-domain-card em,
.integration-health-card p,
.integration-health-head span,
.integration-health-head em,
.analytics-command-card p,
.analytics-lane p,
.analytics-lane em,
.analytics-action-list span {
  color: var(--soft);
}

.analytics-command-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.automation-rule-foot a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.collaboration-card-foot a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.marketplace-card.connected em {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--theme-positive, #4ade80);
}

.marketplace-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.dashboard-report-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.deployment-card button,
.deploy-domain-card a,
.integration-health-card a {
  background: var(--theme-action, #ededed);
  border-color: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.cloud-catalog-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.mail-profile-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.ai-workflow-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.feature-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.analytics-pulse {
  background: var(--theme-track, #262626);
}

.error-triage-card a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.incident-actions a {
  background: var(--theme-action, #ededed);
  color: var(--theme-action-ink, #000);
}

.error-triage-card.info .error-triage-main span {
  color: var(--theme-link, #60a5fa);
}

.error-triage-card.watch .error-triage-main span {
  color: var(--theme-warning, #f5a623);
}

.error-triage-card.critical .error-triage-main span {
  color: var(--theme-negative, #ff7875);
}

.log-list code {
  background: var(--theme-card, #0a0a0a);
  border-color: var(--line);
  color: var(--theme-text, #d4d4d8);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
