:root {
  --bg: #060812;
  --bg-elevated: #0c101a;
  --bg-panel: #12151f;
  --bg-panel-strong: #171b26;
  --bg-panel-soft: #0d1119;
  --bg-input: #0f1320;
  --surface-light: #10141d;
  --surface-white: #171b26;
  --text: #c9d0e4;
  --text-strong: #f6f8ff;
  --text-muted: #97a3bf;
  --text-soft: #5e6a86;
  --line: rgba(48, 57, 82, 0.9);
  --line-strong: rgba(27, 232, 205, 0.26);
  --accent: #13e7c3;
  --accent-strong: #2cf4ff;
  --accent-soft: rgba(19, 231, 195, 0.12);
  --ai-accent: #a987ff;
  --data-accent: #14e4ff;
  --success: #18d28f;
  --warning: #ffc524;
  --danger: #ff4f9a;
  --danger-soft: rgba(255, 79, 154, 0.16);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.52);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body[data-theme="light"] {
  --bg: #f6f5ff;
  --bg-elevated: #eceffd;
  --bg-panel: rgba(255, 255, 255, 0.92);
  --bg-panel-strong: rgba(255, 255, 255, 0.98);
  --bg-panel-soft: #eef2ff;
  --bg-input: rgba(255, 255, 255, 0.94);
  --surface-light: #edf3ff;
  --surface-white: rgba(255, 255, 255, 0.98);
  --text: #1a2340;
  --text-strong: #0f172a;
  --text-muted: #667391;
  --text-soft: #9aa8c5;
  --line: rgba(92, 111, 173, 0.14);
  --line-strong: rgba(96, 165, 250, 0.22);
  --accent: #2563eb;
  --accent-strong: #06b6d4;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --ai-accent: #7c3aed;
  --data-accent: #0ea5e9;
  --success: #06b6a6;
  --warning: #f59e0b;
  --danger: #e54872;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --shadow-lg: 0 34px 90px rgba(84, 91, 181, 0.12);
  --shadow-md: 0 18px 48px rgba(84, 91, 181, 0.1);
  --shadow-sm: 0 10px 28px rgba(84, 91, 181, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 228, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(169, 135, 255, 0.14), transparent 22%),
    radial-gradient(circle at 76% 70%, rgba(255, 79, 154, 0.08), transparent 18%),
    linear-gradient(180deg, #070912 0%, #070a11 56%, #05070d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.42;
}

body::before {
  top: 110px;
  right: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(20, 228, 255, 0.24), transparent 68%);
}

body::after {
  bottom: 8%;
  left: 18%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(169, 135, 255, 0.18), transparent 70%);
}

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

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

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-brand-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(96, 222, 255, 0.2));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.brand-mark-full {
  display: grid;
  width: 172px;
  height: 72px;
}

.brand-mark-compact {
  display: none;
  width: 54px;
  height: 54px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(103, 232, 249, 0.18));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.muted {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.marketing-body {
  background:
    radial-gradient(circle at top, rgba(235, 103, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #0b0f1d 0%, #09101f 55%, #060814 100%);
}

.marketing-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.marketing-header h1,
.landing-hero h2,
.feature-panel h3,
.proof-strip h3,
.auth-card h2,
.sidebar h1,
.topbar h2,
.card h3,
.metric h3 {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.03em;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
}

.nav-cta,
.primary-link,
.secondary-link,
.text-link,
.button-primary,
.button-secondary,
.button-ghost {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.nav-cta,
.primary-link {
  color: inherit;
}

.secondary-link {
  color: inherit;
}

.text-link {
  color: var(--accent-strong);
  background: transparent;
  padding: 0;
}

.landing-main {
  display: grid;
  gap: 22px;
}

.landing-hero,
.feature-panel,
.proof-strip,
.auth-card,
.auth-aside {
  background: rgba(12, 18, 34, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 28px;
}

.landing-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  max-width: 12ch;
}

.hero-lead {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-product-shot {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: #08101f;
  border: 1px solid var(--line);
}

.shot-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.shot-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.shot-main {
  padding: 18px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(17, 24, 43, 0.92) 0%, rgba(10, 15, 28, 0.98) 100%);
}

.shot-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.shot-card,
.feature-panel,
.proof-strip {
  padding: 22px;
}

.shot-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

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

.proof-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.proof-actions {
  display: flex;
  gap: 12px;
}

.auth-body {
  background:
    radial-gradient(circle at top, rgba(226, 88, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #0b0f1d 0%, #091120 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  gap: 24px;
  align-items: stretch;
}

.auth-aside,
.auth-card {
  padding: 28px;
}

.auth-aside {
  display: grid;
  align-content: space-between;
  background: linear-gradient(180deg, rgba(14, 21, 39, 0.92) 0%, rgba(9, 15, 28, 0.98) 100%);
}

.auth-aside h1 {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.auth-card {
  background: rgba(15, 22, 41, 0.92);
}

.auth-form,
.stack,
.module-list,
.sidebar-top,
.sidebar-stack,
.nav-group {
  display: grid;
  gap: 14px;
}

.sidebar-top {
  gap: 10px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-ui="v2"] .sidebar-brand-row {
  position: relative;
  justify-content: center;
  min-height: 92px;
  padding: 8px 0 8px;
  overflow: visible;
}

body[data-ui="v2"] .brand-lockup {
  flex: 1 1 auto;
  justify-content: center;
}

body[data-ui="v2"] .sidebar-toggle {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(65, 85, 127, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  flex: 0 0 auto;
}

.sidebar-toggle:hover {
  color: var(--text-strong);
  border-color: rgba(96, 165, 250, 0.28);
}

.sidebar-toggle-closed {
  display: none;
}

.nav-group {
  gap: 6px;
}

.console-body {
  min-height: 100vh;
  background: #020617;
}

.console-body[data-theme="light"] {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 54%, #eef2f7 100%);
}

body[data-ui="v2"] {
  --obs-accent: #2cf4ff;
  --gateway-accent: #13e7c3;
  --guardrail-accent: #a987ff;
  --rag-accent: #28e0a9;
  --incident-accent: #ffc524;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 228, 255, 0.09), transparent 24%),
    radial-gradient(circle at 78% 7%, rgba(169, 135, 255, 0.11), transparent 20%),
    radial-gradient(circle at 86% 68%, rgba(255, 79, 154, 0.05), transparent 16%),
    linear-gradient(180deg, #070a12 0%, #080b14 52%, #070911 100%);
}

body[data-ui="v2"][data-theme="light"] {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 46%, #eef2f7 100%);
}

.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 0;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

body[data-ui="v2"] .shell {
  grid-template-columns: 220px 1fr;
}

body[data-sidebar="collapsed"] .shell {
  grid-template-columns: 88px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #0b1220 0%, #020617 100%);
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  min-height: 100vh;
  color: #d8e2ff;
  overflow: hidden;
}

body[data-sidebar="collapsed"] .sidebar-toggle-open {
  display: none;
}

body[data-sidebar="collapsed"] .sidebar-toggle-closed {
  display: inline;
}

body[data-sidebar="collapsed"] .sidebar {
  padding-inline: 10px;
}

body[data-sidebar="collapsed"] .sidebar-story,
body[data-sidebar="collapsed"] .sidebar .eyebrow,
body[data-sidebar="collapsed"] .sidebar h1,
body[data-sidebar="collapsed"] .nav-label,
body[data-sidebar="collapsed"] .sub-nav,
body[data-sidebar="collapsed"] .v2-side-nav .eyebrow {
  display: none;
}

body[data-sidebar="collapsed"] .brand-lockup {
  justify-content: center;
}

body[data-sidebar="collapsed"] .brand-mark-full {
  display: none;
}

body[data-sidebar="collapsed"] .brand-mark-compact {
  display: grid;
}

body[data-sidebar="collapsed"] .brand-mark {
  width: 42px;
  height: 42px;
}

body[data-sidebar="collapsed"] .sidebar-brand-row {
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

body[data-sidebar="collapsed"] .sidebar-top {
  justify-items: center;
}

body[data-sidebar="collapsed"] .v2-side-nav {
  justify-items: center;
}

body[data-sidebar="collapsed"] .nav-group,
body[data-sidebar="collapsed"] .nav-cluster {
  width: 100%;
}

body[data-sidebar="collapsed"] .nav-item {
  justify-content: center;
  padding-inline: 0;
}

body[data-sidebar="collapsed"] .nav-glyph {
  margin-right: 0;
}

body[data-ui="v2"] .sidebar {
  gap: 12px;
  padding: 18px 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 228, 255, 0.09), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(169, 135, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.98) 0%, rgba(6, 8, 15, 0.99) 100%);
  border-right: 1px solid rgba(44, 244, 255, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
}

body[data-ui="v2"] .sidebar::-webkit-scrollbar {
  width: 8px;
}

body[data-ui="v2"] .sidebar::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.18);
  border-radius: 999px;
}

body[data-ui="v2"] .sidebar::before,
body[data-ui="v2"] .sidebar::after,
body[data-ui="v2"] .card::after,
body[data-ui="v2"] .metric::after,
body[data-ui="v2"] .metrics-featured::before {
  display: none;
}

body[data-ui="v2"] .brand-lockup {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body[data-ui="v2"] .sidebar-story {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(44, 244, 255, 0.08);
  box-shadow: none;
}

.v2-side-nav {
  display: none;
}

body[data-ui="v2"] .v2-side-nav {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

body[data-ui="v2"] .v2-side-nav .nav-group {
  gap: 6px;
}

body[data-ui="v2"] .v2-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 6px 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

body[data-ui="v2"] .v2-nav-toggle::after {
  display: none;
}

body[data-ui="v2"] .v2-nav-toggle:hover,
body[data-ui="v2"] .v2-nav-toggle:focus-visible {
  background: rgba(20, 228, 255, 0.06);
  outline: none;
}

body[data-ui="v2"] .v2-nav-toggle.active {
  background: rgba(20, 228, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(44, 244, 255, 0.14);
}

body[data-ui="v2"] .v2-nav-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #95a3c2;
  text-shadow: 0 0 14px rgba(20, 228, 255, 0.06);
}

body[data-ui="v2"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title {
  color: #2cf4ff;
  text-shadow: 0 0 18px rgba(44, 244, 255, 0.16);
}

body[data-ui="v2"] .v2-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #92a0bc;
  font-size: 1.02rem;
  line-height: 1;
  opacity: 0.92;
  text-shadow: none;
}

body[data-ui="v2"] .v2-side-nav .nav-cluster {
  display: none;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(44, 244, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.014);
}

body[data-ui="v2"] .v2-side-nav .nav-cluster.is-open {
  display: grid;
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(44, 244, 255, 0.06);
}

body[data-ui="v2"] .v2-side-nav .nav-item {
  min-height: 36px;
}

body[data-ui="v2"] .v2-side-nav .nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 72%);
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -30px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 72%);
  pointer-events: none;
}

.sidebar h1 {
  font-size: 1.06rem;
  line-height: 1.15;
  color: #ffffff;
}

.sidebar .eyebrow {
  color: #7f92c4;
}

.sidebar-story {
  padding: 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 14px 30px rgba(9, 19, 48, 0.2);
}

.sidebar-kicker {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
  color: #c4d3fb;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px 1fr 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #cfd9f8;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  position: relative;
  overflow: hidden;
}

body[data-ui="v2"] .nav-item {
  grid-template-columns: 28px 1fr 10px;
  gap: 8px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 11px;
}

body[data-ui="v2"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.14), rgba(168, 85, 247, 0.1)),
    rgba(37, 99, 235, 0.12);
  border-color: rgba(103, 232, 249, 0.28);
}

.nav-item::after {
  content: "";
  display: block;
  color: #92a6db;
  font-size: 0.72rem;
  line-height: 1;
  text-align: center;
  transform: none;
  transition: color 140ms ease;
}

.nav-item:hover {
  background:
    linear-gradient(90deg, rgba(77, 228, 255, 0.06), rgba(177, 108, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(143, 170, 231, 0.2);
  color: #ffffff;
}

.nav-item.active {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.1)),
    rgba(37, 99, 235, 0.1);
  border-color: rgba(77, 228, 255, 0.26);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.16), 0 0 22px rgba(34, 211, 238, 0.08);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.98), rgba(59, 130, 246, 0.95), rgba(168, 85, 247, 0.92));
}

body[data-ui="v2"] .nav-item.active .nav-label {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.12);
}

body[data-ui="v2"] .nav-item.active .nav-glyph {
  color: #67e8f9;
}

.nav-cluster.active .nav-item::after {
  color: var(--data-accent);
}

.nav-cluster {
  display: grid;
  gap: 4px;
}

.sub-nav {
  display: grid;
  gap: 1px;
  padding-left: 14px;
  max-height: 220px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, margin 180ms ease, padding 180ms ease;
}

.nav-cluster:not(.active) .sub-nav {
  max-height: 0;
  opacity: 0;
  margin-top: -6px;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.sub-nav-item {
  padding: 6px 8px 6px 10px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #b8c7ef;
  text-align: left;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 600;
}

body[data-ui="v2"] .sub-nav {
  gap: 3px;
  padding-left: 8px;
}

body[data-ui="v2"] .sub-nav-item {
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.sub-nav-item.active {
  position: relative;
}

.sub-nav-item.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.9), rgba(37, 99, 235, 0.9));
}

.sub-nav-item:hover {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(77, 228, 255, 0.04), rgba(177, 108, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.sub-nav-item.active {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.09), rgba(124, 58, 237, 0.06)),
    rgba(37, 99, 235, 0.06);
  border-color: rgba(103, 232, 249, 0.12);
  box-shadow: inset 4px 0 0 var(--data-accent), 0 8px 16px rgba(2, 8, 23, 0.12);
}

.nav-glyph {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 170, 231, 0.12);
  color: #b8c7ef;
  font-size: 0.62rem;
  font-weight: 700;
}

body[data-ui="v2"] .nav-glyph {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(124, 58, 237, 0.04)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(103, 232, 249, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-glyph-symbol {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body[data-ui="v2"] .nav-glyph-symbol {
  font-size: 0.96rem;
}

.nav-item.active .nav-glyph {
  color: #71f2ff;
  border-color: rgba(103, 232, 249, 0.34);
  background:
    linear-gradient(180deg, rgba(77, 228, 255, 0.14), rgba(177, 108, 255, 0.08)),
    rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 18px rgba(77, 228, 255, 0.18);
}

.nav-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

body[data-ui="v2"] .nav-label {
  font-size: 0.92rem;
  line-height: 1.15;
}

.sidebar-stack {
  margin-top: 8px;
}

.main {
  display: grid;
  gap: 0;
  padding: 0 24px 28px;
  min-width: 0;
  color: var(--text);
  position: relative;
  z-index: 1;
}

body[data-ui="v2"] .main {
  padding: 0 28px 36px;
}

.sidebar-card,
.card,
.metric {
  border-radius: 14px;
  border: 1px solid rgba(65, 85, 127, 0.12);
  background: var(--bg-panel);
  box-shadow: 0 1px 3px rgba(22, 34, 66, 0.06);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

body[data-ui="v2"] .card,
body[data-ui="v2"] .metric,
body[data-ui="v2"] .sidebar-card {
  border-radius: 18px;
  border-color: rgba(96, 165, 250, 0.1);
  background:
    linear-gradient(180deg, rgba(13, 22, 39, 0.94), rgba(8, 15, 28, 0.92)),
    rgba(10, 18, 32, 0.86);
  box-shadow: 0 12px 34px rgba(2, 8, 23, 0.16);
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .sidebar-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1);
}

body[data-ui="v2"] .sidebar-card::before,
body[data-ui="v2"] .card::before,
body[data-ui="v2"] .metric::before {
  opacity: 0.72;
}

.sidebar-card::before,
.card::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.8), rgba(124, 58, 237, 0.72));
  opacity: 0.75;
}

.card::after,
.metric::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 68%);
  pointer-events: none;
}

.card,
.metric,
.sidebar-card,
.resource-table,
.activity-table,
.status-list,
.permission-grid,
.composer-form,
.ops-card,
.module-card,
.table-row,
.status-row,
.permission-row {
  color: var(--text);
}

.clickable-card {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.clickable-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(3, 8, 25, 0.28), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

body[data-ui="v2"] .clickable-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(2, 8, 23, 0.16);
}

.metrics-featured {
  position: relative;
}

.metrics-featured::before {
  content: "";
  position: absolute;
  inset: -14px -10px auto;
  height: 120px;
  background: radial-gradient(circle at 8% 25%, rgba(6, 182, 212, 0.1), transparent 24%),
    radial-gradient(circle at 44% 0%, rgba(37, 99, 235, 0.14), transparent 26%),
    radial-gradient(circle at 88% 30%, rgba(124, 58, 237, 0.12), transparent 22%);
  pointer-events: none;
  z-index: 0;
}

.metrics-featured > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -24px 0;
  padding: 18px 24px;
  border-radius: 0;
  border: 0;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body[data-ui="v2"] .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 -28px 16px;
  padding: 24px 28px 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 228, 255, 0.14), transparent 24%),
    radial-gradient(circle at 62% 0%, rgba(19, 231, 195, 0.12), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(169, 135, 255, 0.12), transparent 20%),
    rgba(7, 10, 18, 0.9);
  border-bottom: 1px solid rgba(44, 244, 255, 0.1);
  backdrop-filter: blur(14px);
  overflow: visible;
}

body[data-ui="v2"][data-theme="light"] .topbar {
  background: rgba(248, 250, 252, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

body[data-ui="v2"] .status-pill {
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(20, 228, 255, 0.08), rgba(169, 135, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(44, 244, 255, 0.14);
}

body[data-ui="v2"] #incident-pill {
  min-width: 76px;
  height: 44px;
  padding: 0 16px;
  gap: 8px;
  overflow: visible;
}

body[data-ui="v2"] #incident-pill .incident-pill-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body[data-ui="v2"] #incident-pill .incident-pill-count {
  line-height: 1;
}

body[data-ui="v2"][data-theme="light"] .status-pill {
  background: rgba(255, 255, 255, 0.88);
}

body[data-ui="v2"][data-theme="light"] #incident-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.98));
  border-color: rgba(203, 213, 225, 0.84);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.1);
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] #incident-pill .incident-pill-icon {
  border-color: currentColor;
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] #incident-pill .incident-pill-count {
  color: #475569;
}

body[data-ui="v2"][data-theme="light"] #incident-pill.status-pill-warning {
  background: linear-gradient(180deg, #eff6ff, #e0f2fe);
  border-color: rgba(56, 189, 248, 0.34);
  color: #0369a1;
}

body[data-ui="v2"][data-theme="light"] #incident-pill.status-pill-danger {
  background: linear-gradient(180deg, #fff1f2, #ffe6ea);
  border-color: rgba(244, 63, 94, 0.22);
  color: #be123c;
}

body[data-ui="v2"][data-theme="light"] #incident-pill.status-pill-neutral {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.98));
  border-color: rgba(203, 213, 225, 0.84);
  color: #64748b;
}

body[data-ui="v2"] .user-menu-trigger {
  border-radius: 999px;
  padding-right: 14px;
}

.topbar-context {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.global-scope-bar {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.global-scope-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px 6px 3px 9px;
  border: 1px solid rgba(44, 244, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.72);
  color: var(--text-soft);
  white-space: nowrap;
}

.global-scope-bar label span {
  color: #2cf4ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-scope-bar select {
  width: auto;
  min-width: 116px;
  max-width: 168px;
  min-height: 24px;
  padding: 0 22px 0 6px;
  border: 0;
  background-color: transparent;
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.command-palette-shell {
  position: relative;
  min-width: 280px;
  flex: 1 1 360px;
  max-width: 680px;
}

.command-palette-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(44, 244, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(20, 228, 255, 0.11), rgba(169, 135, 255, 0.08)),
    rgba(7, 11, 20, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 30px rgba(20, 228, 255, 0.08);
}

.command-palette-input:focus-within {
  border-color: rgba(44, 244, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(44, 244, 255, 0.08),
    0 0 32px rgba(20, 228, 255, 0.12);
}

.command-palette-input span {
  color: #2cf4ff;
  font-size: 1rem;
}

.command-palette-input input {
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 750;
  outline: none;
}

.command-palette-input input::placeholder {
  color: rgba(148, 163, 184, 0.76);
}

.command-palette-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 6px;
  width: min(520px, 88vw);
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(44, 244, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 228, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(15, 20, 34, 0.98), rgba(7, 10, 19, 0.98));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.48), 0 0 44px rgba(20, 228, 255, 0.12);
}

.command-palette-results[hidden] {
  display: none;
}

.command-palette-results button {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-strong);
  text-align: left;
}

.command-palette-results button:hover {
  border-color: rgba(44, 244, 255, 0.34);
  background: rgba(15, 26, 48, 0.88);
}

.command-palette-results span {
  color: #2cf4ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-palette-results strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-palette-results small,
.command-palette-empty {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.command-palette-empty {
  padding: 14px;
}

body[data-ui="v2"] .button-primary,
body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost {
  border-radius: 12px;
}

body[data-ui="v2"] .button-primary {
  background: linear-gradient(135deg, #16dfc5 0%, #25d6ff 48%, #9d79ff 100%);
  border-color: rgba(44, 244, 255, 0.28);
  box-shadow: 0 12px 24px rgba(20, 228, 255, 0.12), 0 0 24px rgba(169, 135, 255, 0.12);
  color: #071017;
}

body[data-ui="v2"] .button-primary:hover {
  filter: brightness(1.04);
}

body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost {
  background:
    linear-gradient(135deg, rgba(20, 228, 255, 0.05), rgba(169, 135, 255, 0.04)),
    rgba(255, 255, 255, 0.025);
  border-color: rgba(44, 244, 255, 0.12);
}

body[data-ui="v2"][data-theme="light"] .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.98));
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.68);
  color: #223454;
}

body[data-ui="v2"][data-theme="light"] .sidebar-story {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle:hover,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle:focus-visible {
  background: rgba(37, 99, 235, 0.05);
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.06));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.14), 0 10px 20px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .v2-nav-title {
  color: #5f6d89;
  text-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title {
  color: #5f12ea;
  text-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-icon {
  color: #5a6881;
  text-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-icon {
  color: #5f12ea;
}

body[data-ui="v2"][data-theme="light"] .v2-side-nav .nav-cluster {
  border-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 248, 252, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-ui="v2"][data-theme="light"] .nav-item {
  color: #55657f;
}

body[data-ui="v2"][data-theme="light"] .nav-item:hover {
  background: rgba(37, 99, 235, 0.05);
}

body[data-ui="v2"][data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.06));
  border-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-label,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-glyph {
  color: #1d4ed8;
}

body[data-ui="v2"][data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 249, 252, 0.94));
  border-bottom-color: rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(20px);
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar label {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #60708c;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.06);
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar label span {
  color: #0f84ff;
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar select {
  color: #0f1b31;
}

body[data-ui="v2"][data-theme="light"] .command-palette-input {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 6px 18px rgba(148, 163, 184, 0.06);
}

body[data-ui="v2"][data-theme="light"] .command-palette-input:focus-within {
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.08),
    0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .command-palette-input span {
  color: #0ea5e9;
}

body[data-ui="v2"][data-theme="light"] .command-palette-input input::placeholder {
  color: #7b8aa5;
}

body[data-ui="v2"][data-theme="light"] .command-palette-results {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 44px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .command-palette-results button {
  background: rgba(248, 250, 252, 0.92);
  color: #172338;
}

body[data-ui="v2"][data-theme="light"] .command-palette-results button:hover {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(240, 247, 255, 0.98);
}

body[data-ui="v2"][data-theme="light"] .command-palette-results span {
  color: #0f84ff;
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .sidebar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-ui="v2"][data-theme="light"] .button-secondary,
body[data-ui="v2"][data-theme="light"] .button-ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.98));
  border-color: rgba(129, 140, 248, 0.13);
  color: #344764;
  box-shadow: 0 8px 18px rgba(129, 140, 248, 0.05);
}

body[data-ui="v2"][data-theme="light"] .button-secondary:hover,
body[data-ui="v2"][data-theme="light"] .button-ghost:hover {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(243, 240, 255, 0.98));
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 12px 24px rgba(129, 140, 248, 0.08);
}

body[data-ui="v2"][data-theme="light"] .status-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 255, 0.94));
  border-color: rgba(129, 140, 248, 0.1);
  color: #55667f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-ui="v2"] .metrics.metrics-featured,
body[data-ui="v2"] .metrics.metrics-inline,
body[data-ui="v2"] .ops-grid,
body[data-ui="v2"] .grid {
  gap: 14px;
}

body[data-ui="v2"] [data-panel="overview"] [data-section-panel="summary"] > :not(#overview-v2-observability) {
  display: none;
}

body[data-ui="v2"] .overview-v2-shell {
  display: grid;
  gap: 18px;
  padding: 20px;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

body[data-ui="v2"] .overview-v2-head,
body[data-ui="v2"] .overview-v2-stream-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body[data-ui="v2"] .overview-v2-workspace-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(87, 108, 164, 0.12);
}

body[data-ui="v2"] .overview-v2-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

body[data-ui="v2"] .overview-v2-search,
body[data-ui="v2"] .overview-v2-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(87, 108, 164, 0.12);
  color: var(--text-muted);
}

body[data-ui="v2"] .overview-v2-search {
  flex: 1 1 320px;
  min-width: 280px;
}

body[data-ui="v2"] .overview-v2-filter {
  flex: 0 1 200px;
  min-width: 180px;
}

body[data-ui="v2"] .overview-v2-filter.overview-v2-datetime {
  flex-basis: 248px;
  min-width: 248px;
}

body[data-ui="v2"] .overview-v2-search input,
body[data-ui="v2"] .overview-v2-filter select,
body[data-ui="v2"] .overview-v2-filter input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  min-width: 0;
  font-size: 0.95rem;
}

body[data-ui="v2"] .overview-v2-filter input::-webkit-calendar-picker-indicator {
  opacity: 0.75;
}

body[data-ui="v2"] .overview-v2-apply-range {
  flex: 0 0 auto;
  min-width: 136px;
  min-height: 48px;
  border-radius: 16px;
}

body[data-ui="v2"] .overview-v2-workspace-links .button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  box-shadow: none;
}

body[data-ui="v2"] .overview-v2-workspace-links .button-ghost.active,
body[data-ui="v2"] .overview-v2-workspace-links .button-ghost:hover {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.1));
  border-color: rgba(59, 130, 246, 0.28);
  color: var(--text-strong);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-search,
body[data-ui="v2"][data-theme="light"] .overview-v2-filter {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
  color: #64748b;
  box-shadow: 0 4px 14px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-search input,
body[data-ui="v2"][data-theme="light"] .overview-v2-filter select,
body[data-ui="v2"][data-theme="light"] .overview-v2-filter input {
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-filter input::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: none;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.08));
  border-color: rgba(59, 130, 246, 0.22);
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-tab-icon {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.98));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.1);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links {
  background: rgba(247, 249, 253, 0.9);
  border-color: rgba(148, 163, 184, 0.16);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat,
body[data-ui="v2"][data-theme="light"] .overview-v2-scorecard,
body[data-ui="v2"][data-theme="light"] .overview-v2-kpi,
body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-chart-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-insight-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-health-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-primary-metric {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 1));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-primary-metric strong {
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-primary-metric small,
body[data-ui="v2"][data-theme="light"] .overview-v2-score-copy p,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat small,
body[data-ui="v2"][data-theme="light"] .overview-v2-kpi small,
body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card small {
  color: #66758f;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-score-ring {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 55%, transparent 56%),
    conic-gradient(from 180deg, #3b82f6 calc(var(--progress) * 1%), rgba(226, 232, 240, 0.95) 0);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-score-ring-inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.16);
}

body[data-ui="v2"][data-theme="light"] .overview-v2-score-ring-inner strong,
body[data-ui="v2"][data-theme="light"] .overview-v2-score-copy h4,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat strong,
body[data-ui="v2"][data-theme="light"] .overview-v2-kpi strong,
body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card strong {
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-score-ring-inner small {
  color: #71829c;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-score-meta span {
  background: #f5f7fc;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #475569;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-sparkline polyline {
  filter: none;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card.tone-cost .overview-v2-sparkline polyline {
  stroke: #22c55e;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card.tone-latency .overview-v2-sparkline polyline {
  stroke: #f59e0b;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card.tone-tokens .overview-v2-sparkline polyline {
  stroke: #8b5cf6;
}

body[data-ui="v2"] .overview-v2-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: inherit;
  font-size: 0.78rem;
  line-height: 1;
}

body[data-ui="v2"] [data-overview-v2-mode][hidden] {
  display: none !important;
}

body[data-ui="v2"] .overview-v2-layout {
  display: block;
  min-height: 0;
  flex: 1;
}

body[data-ui="v2"] .logs-v2-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
  max-width: 1520px;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-shell {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"] .logs-v2-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-ui="v2"] .logs-v2-time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body[data-ui="v2"] .logs-v2-date-filter {
  min-width: 220px;
}

body[data-ui="v2"] .logs-v2-date-filter input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  outline: none;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-date-filter input {
  color: #172338;
}

body[data-ui="v2"] .logs-v2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-ui="v2"] .logs-v2-list {
  display: grid;
  gap: 10px;
}

body[data-ui="v2"] .logs-v2-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-ui="v2"] .logs-v2-page-size {
  min-width: 160px;
}

body[data-ui="v2"] .logs-v2-table-head,
body[data-ui="v2"] .logs-v2-row {
  grid-template-columns: 132px minmax(220px, 1.35fr) 120px 146px 104px 92px;
}

body[data-ui="v2"] .logs-v2-table-head {
  max-width: 1460px;
}

body[data-ui="v2"] .logs-v2-row {
  max-width: 1460px;
  padding: 15px 16px 15px 18px;
}

body[data-ui="v2"] .logs-v2-summary-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body[data-ui="v2"] .logs-v2-summary-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1;
  color: #36d6e7;
}

body[data-ui="v2"] .logs-v2-summary-card .muted {
  display: block;
}

body[data-ui="v2"] .logs-v2-summary-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(54, 214, 231, 0.26);
  color: #36d6e7;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-summary-card:hover,
body[data-ui="v2"] .logs-v2-summary-card:focus-visible,
body[data-ui="v2"] .logs-v2-summary-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(54, 214, 231, 0.55);
  box-shadow: 0 16px 34px rgba(18, 201, 222, 0.12);
  outline: none;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-summary-card {
  background: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-summary-card strong {
  color: #5f12ea;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-summary-action {
  border-color: rgba(95, 18, 234, 0.2);
  color: #5f12ea;
  background: #f3edff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-summary-card:hover,
body[data-ui="v2"][data-theme="light"] .logs-v2-summary-card:focus-visible,
body[data-ui="v2"][data-theme="light"] .logs-v2-summary-card.is-active {
  border-color: rgba(95, 18, 234, 0.42);
  box-shadow: 0 16px 36px rgba(95, 18, 234, 0.11);
}

body[data-ui="v2"] .logs-v2-row {
  cursor: pointer;
  position: relative;
}

body[data-ui="v2"] .logs-v2-row::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

body[data-ui="v2"] .logs-v2-row:hover,
body[data-ui="v2"] .logs-v2-row:focus-visible {
  border-color: rgba(54, 214, 231, 0.4);
  outline: none;
}

body[data-ui="v2"] .logs-v2-row:hover::before,
body[data-ui="v2"] .logs-v2-row:focus-visible::before {
  background: #36d6e7;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-row:hover,
body[data-ui="v2"][data-theme="light"] .logs-v2-row:focus-visible {
  background: #f8fbff;
  border-color: rgba(95, 18, 234, 0.22);
  box-shadow: 0 12px 26px rgba(31, 45, 75, 0.08);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-row:hover::before,
body[data-ui="v2"][data-theme="light"] .logs-v2-row:focus-visible::before {
  background: #5f12ea;
}

body[data-ui="v2"] .logs-v2-subtle-link {
  appearance: none;
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

body[data-ui="v2"] .logs-v2-subtle-link:hover,
body[data-ui="v2"] .logs-v2-subtle-link:focus-visible {
  color: #36d6e7;
  outline: none;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-subtle-link {
  color: #607089;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-subtle-link:hover,
body[data-ui="v2"][data-theme="light"] .logs-v2-subtle-link:focus-visible {
  color: #5f12ea;
}

body[data-ui="v2"] .logs-v2-active-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(54, 214, 231, 0.24);
  border-radius: 999px;
  background: rgba(54, 214, 231, 0.08);
  color: #bff8ff;
  padding: 7px 11px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

body[data-ui="v2"] .logs-v2-active-filter:hover,
body[data-ui="v2"] .logs-v2-active-filter:focus-visible {
  border-color: rgba(54, 214, 231, 0.55);
  outline: none;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-active-filter {
  border-color: rgba(95, 18, 234, 0.18);
  background: #f3edff;
  color: #4820a3;
}

body[data-ui="v2"][data-theme="light"] .logs-filter-pill[data-logs-v2-token-filter] {
  border-color: rgba(95, 18, 234, 0.18);
  background: #edf8ff;
  color: #115e8c;
}

body[data-ui="v2"][data-theme="light"] .logs-filter-pill[data-logs-v2-token-filter]:hover,
body[data-ui="v2"][data-theme="light"] .logs-filter-pill[data-logs-v2-token-filter]:focus-visible {
  border-color: rgba(95, 18, 234, 0.38);
  background: #f3edff;
  color: #5f12ea;
  outline: none;
}

body[data-ui="v2"] .logs-v2-payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

body[data-ui="v2"] .logs-v2-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

body[data-ui="v2"] .logs-v2-guardrail-headline {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(87, 108, 164, 0.16);
  background: rgba(15, 23, 42, 0.68);
}

body[data-ui="v2"] .logs-v2-guardrail-headline-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-guardrail-headline strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

body[data-ui="v2"] .logs-v2-guardrail-headline small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

body[data-ui="v2"] .logs-v2-guardrail-headline.is-danger {
  border-color: rgba(248, 113, 113, 0.22);
  background: linear-gradient(180deg, rgba(68, 18, 30, 0.68), rgba(22, 12, 24, 0.82));
}

body[data-ui="v2"] .logs-v2-guardrail-headline.is-danger .logs-v2-guardrail-headline-label {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
}

body[data-ui="v2"] .logs-v2-guardrail-headline.is-success {
  border-color: rgba(45, 212, 191, 0.2);
  background: linear-gradient(180deg, rgba(11, 54, 56, 0.58), rgba(12, 22, 34, 0.82));
}

body[data-ui="v2"] .logs-v2-guardrail-headline.is-success .logs-v2-guardrail-headline-label {
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.34);
}

body[data-ui="v2"] .logs-v2-guardrail-headline.is-info .logs-v2-guardrail-headline-label {
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.24);
}

body[data-ui="v2"] .logs-v2-inline-tags .panel-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

body[data-ui="v2"] .logs-v2-payload-card {
  border: 1px solid rgba(87, 108, 164, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
  padding: 12px;
}

body[data-ui="v2"] .logs-v2-conversation-card {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(87, 108, 164, 0.14);
  border-radius: 18px;
  background-color: rgba(15, 23, 42, 0.5);
}

body[data-ui="v2"] .logs-v2-conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-ui="v2"] .logs-v2-conversation-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

body[data-ui="v2"] .logs-v2-conversation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body[data-ui="v2"] .logs-v2-conversation-list {
  display: grid;
  gap: 8px;
}

body[data-ui="v2"] .logs-v2-conversation-turn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(87, 108, 164, 0.14);
  background-color: rgba(9, 16, 32, 0.78);
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

body[data-ui="v2"] .logs-v2-conversation-turn:hover,
body[data-ui="v2"] .logs-v2-conversation-turn:focus-visible {
  border-color: rgba(95, 18, 234, 0.34);
  background-color: rgba(18, 28, 52, 0.9);
  transform: translateY(-1px);
}

body[data-ui="v2"] .logs-v2-conversation-turn.is-current {
  border-color: rgba(95, 18, 234, 0.42);
  box-shadow: inset 0 0 0 1px rgba(95, 18, 234, 0.14);
}

body[data-ui="v2"] .logs-v2-conversation-turn-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(95, 18, 234, 0.28);
  color: #c9b4ff;
  font-weight: 800;
}

body[data-ui="v2"] .logs-v2-conversation-turn-copy,
body[data-ui="v2"] .logs-v2-conversation-turn-meta {
  display: grid;
  gap: 4px;
}

body[data-ui="v2"] .logs-v2-conversation-turn-copy strong,
body[data-ui="v2"] .logs-v2-conversation-turn-meta span:first-child {
  color: var(--text);
}

body[data-ui="v2"] .logs-v2-conversation-turn-copy small,
body[data-ui="v2"] .logs-v2-conversation-turn-meta span:last-child {
  color: var(--text-soft);
}

body[data-ui="v2"] .logs-v2-investigation-panel {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(54, 214, 231, 0.22);
  border-radius: 20px;
  background-color: rgba(9, 16, 32, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: logsInvestigationEnter 260ms ease-out both;
}

body[data-ui="v2"] .logs-v2-investigation-panel.is-danger {
  border-color: rgba(255, 68, 119, 0.42);
}

body[data-ui="v2"] .logs-v2-investigation-panel.is-success {
  border-color: rgba(37, 211, 187, 0.42);
}

body[data-ui="v2"] .logs-v2-investigation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body[data-ui="v2"] .logs-v2-investigation-header h4 {
  margin: 4px 0 4px;
  color: var(--text);
  font-size: 1.08rem;
}

body[data-ui="v2"] .logs-v2-investigation-header p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

body[data-ui="v2"] .logs-v2-investigation-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body[data-ui="v2"] .logs-v2-investigation-badges span,
body[data-ui="v2"] .logs-v2-flow-node small,
body[data-ui="v2"] .logs-v2-detection-row small {
  color: var(--text-soft);
}

body[data-ui="v2"] .logs-v2-investigation-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(54, 214, 231, 0.22);
  border-radius: 999px;
  background-color: rgba(54, 214, 231, 0.08);
  color: #bff8ff;
  font-size: 0.72rem;
  font-weight: 800;
}

body[data-ui="v2"] .logs-v2-flow-map {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(48px, 0.28fr) minmax(120px, 1fr) minmax(48px, 0.28fr) minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(87, 108, 164, 0.18);
  border-radius: 18px;
  background-color: rgba(15, 23, 42, 0.56);
}

body[data-ui="v2"] .logs-v2-flow-node {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 13px 14px 13px 46px;
  border: 1px solid rgba(87, 108, 164, 0.18);
  border-radius: 16px;
  background-color: rgba(3, 7, 18, 0.38);
}

body[data-ui="v2"] .logs-v2-flow-node strong {
  color: var(--text);
  font-size: 0.92rem;
}

body[data-ui="v2"] .logs-v2-flow-node-guardrail {
  border-color: rgba(95, 18, 234, 0.34);
  background-color: rgba(95, 18, 234, 0.12);
}

body[data-ui="v2"] .logs-v2-flow-dot {
  position: absolute;
  top: 18px;
  left: 15px;
  width: 18px;
  height: 18px;
  border: 2px solid #36d6e7;
  border-radius: 999px;
  background-color: #0f172a;
  box-shadow: 0 0 0 5px rgba(54, 214, 231, 0.12);
  animation: logsFlowPulse 1.7s ease-in-out infinite;
}

body[data-ui="v2"] .logs-v2-flow-map.is-danger .logs-v2-flow-dot {
  border-color: #ff4477;
  box-shadow: 0 0 0 5px rgba(255, 68, 119, 0.14);
}

body[data-ui="v2"] .logs-v2-flow-map.is-success .logs-v2-flow-dot {
  border-color: #25d3bb;
  box-shadow: 0 0 0 5px rgba(37, 211, 187, 0.14);
}

body[data-ui="v2"] .logs-v2-flow-line {
  height: 3px;
  border-radius: 999px;
  background-color: rgba(87, 108, 164, 0.24);
  overflow: hidden;
}

body[data-ui="v2"] .logs-v2-flow-line span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background-color: #36d6e7;
  animation: logsFlowTravel 1.55s ease-in-out infinite;
}

body[data-ui="v2"] .logs-v2-flow-map.is-danger .logs-v2-flow-line span {
  background-color: #ff4477;
}

body[data-ui="v2"] .logs-v2-flow-map.is-success .logs-v2-flow-line span {
  background-color: #25d3bb;
}

body[data-ui="v2"] .logs-v2-investigation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 12px;
}

body[data-ui="v2"] .logs-v2-investigation-section,
body[data-ui="v2"] .logs-v2-before-after-card {
  min-width: 0;
  border: 1px solid rgba(87, 108, 164, 0.16);
  border-radius: 18px;
  background-color: rgba(15, 23, 42, 0.5);
  padding: 12px;
}

body[data-ui="v2"] .logs-v2-section-title,
body[data-ui="v2"] .logs-v2-before-after-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body[data-ui="v2"] .logs-v2-section-title span {
  color: var(--text);
  font-weight: 850;
}

body[data-ui="v2"] .logs-v2-section-title small {
  color: var(--text-soft);
}

body[data-ui="v2"] .logs-v2-detection-table {
  display: grid;
  gap: 7px;
}

body[data-ui="v2"] .logs-v2-detection-head,
body[data-ui="v2"] .logs-v2-detection-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(120px, 0.75fr) minmax(160px, 1fr) minmax(100px, 0.62fr);
  gap: 10px;
  align-items: center;
}

body[data-ui="v2"] .logs-v2-detection-head {
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-detection-row {
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(87, 108, 164, 0.15);
  border-radius: 13px;
  background-color: rgba(3, 7, 18, 0.26);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

body[data-ui="v2"] .logs-v2-detection-row:hover,
body[data-ui="v2"] .logs-v2-detection-row:focus-visible {
  border-color: rgba(54, 214, 231, 0.48);
  background-color: rgba(54, 214, 231, 0.08);
  outline: none;
  transform: translateY(-1px);
}

body[data-ui="v2"] .logs-v2-detection-row span {
  min-width: 0;
}

body[data-ui="v2"] .logs-v2-detection-row strong,
body[data-ui="v2"] .logs-v2-detection-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-ui="v2"] .logs-v2-detected-value {
  font-family: var(--mono-font, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: #bff8ff;
}

body[data-ui="v2"] .logs-v2-before-after-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body[data-ui="v2"] .logs-v2-before-after-pane {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(87, 108, 164, 0.16);
  border-radius: 14px;
  background-color: rgba(3, 7, 18, 0.28);
  padding: 10px;
}

body[data-ui="v2"] .logs-v2-before-after-pane span {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-before-after-pane pre {
  margin: 0;
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

body[data-ui="v2"] .logs-v2-before-after-pane.is-original {
  border-color: rgba(255, 68, 119, 0.2);
}

body[data-ui="v2"] .logs-v2-before-after-pane.is-sanitized {
  border-color: rgba(37, 211, 187, 0.22);
}

body[data-ui="v2"] .logs-v2-before-after-arrow {
  display: grid;
  place-items: center;
  color: #36d6e7;
  font-size: 1.35rem;
  font-weight: 900;
  animation: logsArrowNudge 1.8s ease-in-out infinite;
}

body[data-ui="v2"] .logs-v2-investigation-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(87, 108, 164, 0.28);
  border-radius: 14px;
  color: var(--text-soft);
}

body[data-ui="v2"] .logs-v2-investigation-empty strong {
  color: var(--text);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-panel {
  border-color: rgba(37, 99, 235, 0.28);
  background-color: #ffffff;
  box-shadow: 0 22px 48px rgba(44, 62, 99, 0.1);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-panel.is-danger {
  border-color: rgba(244, 63, 94, 0.38);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-panel.is-success {
  border-color: rgba(20, 184, 166, 0.42);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-header h4,
body[data-ui="v2"][data-theme="light"] .logs-v2-section-title span,
body[data-ui="v2"][data-theme="light"] .logs-v2-flow-node strong,
body[data-ui="v2"][data-theme="light"] .logs-v2-detection-row,
body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-empty strong {
  color: #121a2f;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-header p,
body[data-ui="v2"][data-theme="light"] .logs-v2-flow-node small,
body[data-ui="v2"][data-theme="light"] .logs-v2-detection-row small,
body[data-ui="v2"][data-theme="light"] .logs-v2-section-title small,
body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-empty {
  color: #5f6f8c;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-badges span {
  border-color: rgba(37, 99, 235, 0.18);
  background-color: #eef6ff;
  color: #255fcb;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-flow-map,
body[data-ui="v2"][data-theme="light"] .logs-v2-investigation-section,
body[data-ui="v2"][data-theme="light"] .logs-v2-before-after-card {
  border-color: rgba(207, 218, 235, 0.94);
  background-color: #f8fbff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-flow-node,
body[data-ui="v2"][data-theme="light"] .logs-v2-before-after-pane,
body[data-ui="v2"][data-theme="light"] .logs-v2-detection-row {
  border-color: rgba(207, 218, 235, 0.94);
  background-color: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-flow-node-guardrail {
  border-color: rgba(95, 18, 234, 0.3);
  background-color: #f5efff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-flow-dot {
  background-color: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-detection-row:hover,
body[data-ui="v2"][data-theme="light"] .logs-v2-detection-row:focus-visible {
  border-color: rgba(95, 18, 234, 0.38);
  background-color: #f5efff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-detected-value {
  color: #5f12ea;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-before-after-pane pre {
  color: #17213a;
}

@keyframes logsInvestigationEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logsFlowPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes logsFlowTravel {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(240%);
  }
}

@keyframes logsArrowNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-ui="v2"] .logs-v2-investigation-panel,
  body[data-ui="v2"] .logs-v2-flow-dot,
  body[data-ui="v2"] .logs-v2-flow-line span,
  body[data-ui="v2"] .logs-v2-before-after-arrow {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  body[data-ui="v2"] .logs-v2-investigation-grid,
  body[data-ui="v2"] .logs-v2-before-after-grid {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .logs-v2-before-after-arrow {
    transform: rotate(90deg);
  }

  body[data-ui="v2"] .logs-v2-flow-map {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .logs-v2-flow-line {
    height: 28px;
    width: 3px;
    justify-self: center;
  }

  body[data-ui="v2"] .logs-v2-flow-line span {
    width: 100%;
    height: 46%;
    animation-name: logsFlowTravelVertical;
  }
}

@keyframes logsFlowTravelVertical {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(240%);
  }
}

body[data-ui="v2"] .logs-v2-guardrail-summary {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: linear-gradient(180deg, rgba(18, 33, 63, 0.72), rgba(12, 20, 38, 0.78));
}

body[data-ui="v2"] .logs-v2-guardrail-summary-row {
  display: grid;
  gap: 4px;
}

body[data-ui="v2"] .logs-v2-guardrail-summary-row span {
  color: var(--text-soft);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-guardrail-summary-row strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
}

body[data-ui="v2"] .logs-v2-diff-shell {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body[data-ui="v2"] .logs-v2-diff-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background-color: rgba(15, 23, 42, 0.7);
}

body[data-ui="v2"] .logs-v2-diff-summary span {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-diff-summary strong {
  color: var(--text);
  font-size: 0.82rem;
}

body[data-ui="v2"] .logs-v2-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-ui="v2"] .logs-v2-diff-card {
  border: 1px solid rgba(87, 108, 164, 0.14);
  border-radius: 14px;
  background-color: rgba(15, 23, 42, 0.58);
  padding: 12px;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline {
  border-color: rgba(203, 213, 225, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline small {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-danger {
  border-color: rgba(248, 113, 113, 0.24);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 247, 247, 0.98));
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-danger .logs-v2-guardrail-headline-label {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.96);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-success {
  border-color: rgba(45, 212, 191, 0.24);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(244, 252, 251, 0.98));
}

body[data-ui="v2"][data-theme="light"] .logs-v2-diff-summary {
  border-color: rgba(56, 189, 248, 0.2);
  background-color: #f8fbff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-diff-summary span {
  color: #5b6b88;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-diff-summary strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-diff-card {
  border-color: rgba(191, 219, 254, 0.92);
  background-color: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-success .logs-v2-guardrail-headline-label {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.96);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-info {
  border-color: rgba(56, 189, 248, 0.2);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(247, 251, 255, 0.98));
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-headline.is-info .logs-v2-guardrail-headline-label {
  color: #0284c7;
  background: rgba(224, 242, 254, 0.96);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-summary {
  border-color: rgba(203, 213, 225, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-summary-row span {
  color: #7a879c;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-guardrail-summary-row strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-payload-card {
  border-color: rgba(203, 213, 225, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-card {
  border-color: rgba(191, 219, 254, 0.9);
  background-color: #f8fbff;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-head h3,
body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn-copy strong,
body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn-meta span:first-child {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn-copy small,
body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn-meta span:last-child {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn {
  border-color: rgba(191, 219, 254, 0.9);
  background-color: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn:hover,
body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn:focus-visible {
  border-color: rgba(95, 18, 234, 0.34);
  background-color: #f6f0ff;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-conversation-turn-index {
  color: #5f12ea;
  border-color: rgba(95, 18, 234, 0.22);
  background-color: #f5efff;
}

body[data-ui="v2"] .logs-v2-payload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

body[data-ui="v2"] .logs-v2-payload-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
  max-height: 240px;
  overflow: auto;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-table-head {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-row {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-payload-card {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-payload-block {
  color: #0f172a;
}

body[data-ui="v2"] .logs-v2-expanded {
  grid-template-columns: 1fr;
}

body[data-ui="v2"] .logs-v2-json {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(87, 108, 164, 0.12);
  color: var(--text-soft, #cbd5e1);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow: auto;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-json {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
  color: #334155;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-chip-row .chip-option {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  color: #475569;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-chip-row .chip-option:hover {
  background: rgba(241, 245, 249, 0.98);
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-chip-row .chip-option.selected {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-paging .button-ghost {
  color: #475569;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-paging .button-ghost:hover {
  color: #0f172a;
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(59, 130, 246, 0.16);
}

body[data-ui="v2"][data-theme="light"] .logs-v2-paging .button-ghost:disabled {
  opacity: 0.55;
  background: rgba(248, 250, 252, 0.92);
  color: #94a3b8;
}

body[data-ui="v2"][data-theme="light"] .panel-tag-dark {
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 1440px) {
  body[data-ui="v2"] .logs-v2-table-head,
  body[data-ui="v2"] .logs-v2-row {
    grid-template-columns: 120px minmax(190px, 1.2fr) 108px 132px 96px 84px;
  }

  body[data-ui="v2"] .logs-v2-payload-grid {
    grid-template-columns: 1fr;
  }
}

body[data-ui="v2"] .overview-v2-analytics {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: visible;
  padding-right: 4px;
  align-content: start;
}

body[data-ui="v2"] .overview-v2-top-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body[data-ui="v2"] .overview-v2-top-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(87, 108, 164, 0.14);
}

body[data-ui="v2"] .overview-v2-top-stat small {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-ui="v2"] .overview-v2-top-stat strong {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

body[data-ui="v2"] .overview-v2-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

body[data-ui="v2"] .overview-v2-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-ui="v2"] .overview-v2-scorecard,
body[data-ui="v2"] .overview-v2-kpi,
body[data-ui="v2"] .overview-v2-pulse-card,
body[data-ui="v2"] .overview-v2-chart-card,
body[data-ui="v2"] .overview-v2-insight-card,
body[data-ui="v2"] .overview-v2-health-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 16, 30, 0.96));
  border: 1px solid rgba(87, 108, 164, 0.16);
  border-radius: 20px;
}

body[data-ui="v2"] .overview-v2-scorecard {
  padding: 14px;
  display: grid;
  gap: 12px;
}

body[data-ui="v2"] .overview-v2-scorecard-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

body[data-ui="v2"] .overview-v2-primary-metric {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 29, 52, 0.96), rgba(11, 18, 34, 0.94)),
    radial-gradient(circle at top left, rgba(39, 211, 255, 0.14), transparent 52%);
  border: 1px solid rgba(87, 108, 164, 0.16);
}

body[data-ui="v2"] .overview-v2-primary-metric small {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

body[data-ui="v2"] .overview-v2-primary-metric strong {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

body[data-ui="v2"] .overview-v2-score-copy-wide {
  align-content: start;
}

body[data-ui="v2"] .overview-v2-score-ring {
  --progress: 0;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(8, 15, 29, 0.96) 55%, transparent 56%),
    conic-gradient(from 180deg, #27d3ff calc(var(--progress) * 1%), rgba(255,255,255,0.06) 0);
  box-shadow: inset 0 0 0 1px rgba(87, 108, 164, 0.18);
}

body[data-ui="v2"] .overview-v2-score-ring-inner {
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  border-radius: 999px;
  background: rgba(7, 12, 23, 0.92);
  border: 1px solid rgba(87, 108, 164, 0.16);
}

body[data-ui="v2"] .overview-v2-score-ring-inner strong {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

body[data-ui="v2"] .overview-v2-score-ring-inner small {
  margin-top: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

body[data-ui="v2"] .overview-v2-score-copy {
  display: grid;
  gap: 8px;
}

body[data-ui="v2"] .overview-v2-score-copy h4 {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

body[data-ui="v2"] .overview-v2-score-copy p {
  margin: 0;
  color: var(--text-muted);
}

body[data-ui="v2"] .overview-v2-score-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-ui="v2"] .overview-v2-score-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-ui="v2"] .overview-v2-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-ui="v2"] .overview-v2-pulse-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  gap: 14px;
  padding: 14px;
}

body[data-ui="v2"] .overview-v2-pulse-card strong {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

body[data-ui="v2"] .overview-v2-pulse-card small {
  color: var(--text-muted);
}

body[data-ui="v2"] .overview-v2-sparkline {
  width: 100%;
  height: 42px;
}

body[data-ui="v2"] .overview-v2-sparkline polyline {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #27d3ff;
  filter: drop-shadow(0 2px 8px rgba(39, 211, 255, 0.28));
}

body[data-ui="v2"] .overview-v2-pulse-card.tone-cost .overview-v2-sparkline polyline {
  stroke: #22c55e;
}

body[data-ui="v2"] .overview-v2-pulse-card.tone-latency .overview-v2-sparkline polyline {
  stroke: #f59e0b;
}

body[data-ui="v2"] .overview-v2-pulse-card.tone-tokens .overview-v2-sparkline polyline {
  stroke: #a78bfa;
}

body[data-ui="v2"] .overview-v2-kpi {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

body[data-ui="v2"] .overview-v2-kpi strong {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

body[data-ui="v2"] .overview-v2-kpi small,
body[data-ui="v2"] .overview-v2-event small {
  color: var(--text-muted);
}

body[data-ui="v2"] .overview-v2-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-ui="v2"] .overview-v2-insight-grid,
body[data-ui="v2"] .overview-v2-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-ui="v2"] .overview-v2-chart-card,
body[data-ui="v2"] .overview-v2-insight-card,
body[data-ui="v2"] .overview-v2-health-card {
  padding: 14px;
}

body[data-ui="v2"] .trend-chart-host .trend-chart {
  min-height: 196px;
}

body[data-ui="v2"] .overview-v2-health-card .status-list {
  gap: 10px;
}

body[data-ui="v2"] .overview-v2-insight-card .mini-chart {
  min-height: 168px;
}

@media (max-width: 1280px) {
  body[data-ui="v2"] .overview-v2-toolbar {
    display: flex;
  }

  body[data-ui="v2"] .overview-v2-top-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-ui="v2"] .overview-v2-hero,
  body[data-ui="v2"] .overview-v2-kpis,
  body[data-ui="v2"] .overview-v2-chart-grid,
  body[data-ui="v2"] .overview-v2-insight-grid,
  body[data-ui="v2"] .overview-v2-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body[data-ui="v2"] .overview-v2-top-stats,
  body[data-ui="v2"] .overview-v2-kpis,
  body[data-ui="v2"] .overview-v2-hero,
  body[data-ui="v2"] .overview-v2-chart-grid,
  body[data-ui="v2"] .overview-v2-insight-grid,
  body[data-ui="v2"] .overview-v2-signal-grid {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .overview-v2-toolbar {
    display: flex;
  }

  body[data-ui="v2"] .overview-v2-scorecard-body,
  body[data-ui="v2"] .overview-v2-pulse-card {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .overview-v2-head,
  body[data-ui="v2"] .overview-v2-stream-head {
    flex-direction: column;
  }
}

body[data-ui="v2"] .panel-head {
  margin-bottom: 14px;
}

body[data-ui="v2"] .eyebrow {
  letter-spacing: 0.1em;
}

.topbar::before {
  content: none;
}

.topbar h2 {
  font-size: 1.28rem;
  line-height: 1.15;
  color: #ffffff;
}

.topbar-copy .eyebrow {
  color: #91a3d3;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.topbar-actions > * {
  flex-shrink: 0;
}

.topbar-actions .command-palette-shell {
  flex-shrink: 1;
}

.status-pill {
  white-space: nowrap;
}

.user-menu-trigger {
  max-width: 320px;
}

.user-menu-copy strong,
.user-menu-copy small {
  white-space: nowrap;
}

.user-menu-shell {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
}

.user-menu-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-menu-copy strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.user-menu-copy small {
  font-size: 0.73rem;
  color: var(--muted);
}

.user-menu-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(37, 99, 235, 0.3));
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #f8fbff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.user-menu-avatar-large {
  width: 42px;
  height: 42px;
  font-size: 0.84rem;
}

.user-menu-caret {
  color: var(--muted);
  font-size: 0.82rem;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 16, 29, 0.98), rgba(7, 11, 21, 0.98));
  box-shadow:
    0 18px 48px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  z-index: 40;
  overflow: hidden;
}

.user-menu-shell.open .user-menu-panel {
  display: block;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.user-menu-list {
  display: grid;
  gap: 6px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.user-menu-item-danger {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.12);
}

.user-menu-item-danger:hover,
.user-menu-item-danger:focus-visible {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(127, 29, 29, 0.2);
}

.theme-toggle {
  min-width: 104px;
  padding-inline: 12px;
}

.theme-toggle-icon {
  min-width: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  max-width: 100%;
  padding: 0 12px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

body[data-theme="light"] .search-shell {
  background: rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .user-menu-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.98));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .user-menu-avatar {
  color: #0f172a;
}

.search-shell input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-shell input:focus {
  box-shadow: none;
}

.search-glyph {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #dcfcef;
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-pill-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #d6e2ff;
  border-color: rgba(138, 159, 215, 0.16);
}

.status-pill-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fff1d6;
  border-color: rgba(245, 158, 11, 0.24);
}

.status-pill-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #ffe0e0;
  border-color: rgba(239, 68, 68, 0.24);
}

#health-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.12));
}

#incident-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(30, 41, 59, 0.74));
  overflow: visible;
  z-index: 3;
}

#incident-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 80;
}

#incident-pill:hover::after,
#incident-pill:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.incident-pill-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.incident-pill-count {
  min-width: 1ch;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

body[data-theme="light"] .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 253, 0.98)),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.05), transparent 30%);
  border-right: 1px solid rgba(129, 140, 248, 0.1);
}

body[data-theme="light"] .sidebar-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 252, 0.96));
  border-color: rgba(129, 140, 248, 0.08);
}

body[data-theme="light"] .nav-item:hover,
body[data-theme="light"] .sub-nav-item:hover {
  background: rgba(37, 99, 235, 0.05);
}

body[data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  border-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.08);
}

body[data-theme="light"] .sub-nav-item.active {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(96, 165, 250, 0.12);
}

body[data-theme="light"] .status-pill {
  color: #0d6a4b;
  background: #eaf8f2;
  border-color: rgba(21, 155, 105, 0.18);
}

body[data-theme="light"] #incident-pill::after {
  background: rgba(31, 41, 55, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

body[data-theme="light"] .status-pill-warning {
  color: #8a5a00;
  background: #fff5e8;
  border-color: rgba(209, 138, 28, 0.2);
}

body[data-theme="light"] .status-pill-danger {
  color: #9c244a;
  background: #fff0f4;
  border-color: rgba(216, 75, 112, 0.2);
}

body[data-theme="light"] .panel-tag,
body[data-theme="light"] .badge,
body[data-theme="light"] .nav-cta,
body[data-theme="light"] .primary-link,
body[data-theme="light"] .button-secondary.active,
body[data-theme="light"] .button-secondary[aria-pressed="true"] {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.18);
  background: rgba(29, 78, 216, 0.08);
}

body[data-theme="light"] .text-link,
body[data-theme="light"] .nav-item.active .nav-glyph {
  color: #0a4e9f;
}

body[data-theme="light"] .panel-icon {
  background: linear-gradient(180deg, rgba(15, 132, 255, 0.12) 0%, rgba(15, 132, 255, 0.08) 100%);
  border-color: rgba(15, 132, 255, 0.18);
  color: #0a4e9f;
}

body[data-theme="light"] .panel-icon-subtle {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #5b6472;
}

body[data-theme="light"] .composer-form {
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.035), transparent 30%),
    #fbfcfe;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(148, 163, 184, 0.12);
}

body[data-theme="light"] .resource-table .table-row:not(.table-head):hover,
body[data-theme="light"] .activity-table .table-row:not(.table-head):hover {
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.045), transparent 84%),
    rgba(15, 132, 255, 0.035);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}


body[data-theme="light"] .danger-button {
  color: #a1264e;
  background: #fff0f4;
  border-color: rgba(216, 75, 112, 0.16);
}

body[data-theme="light"] .notice-bar {
  color: var(--text-strong);
}

body[data-theme="light"] .inline-guidance {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.26);
}

body[data-theme="light"] .inline-guidance strong {
  color: #0f172a;
}

body[data-theme="light"] .inline-guidance p {
  color: #475569;
}

body[data-theme="light"] .inline-guidance-info {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(29, 78, 216, 0.05));
  border-color: rgba(8, 145, 178, 0.22);
}

body[data-theme="light"] .inline-guidance-warning {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(220, 38, 38, 0.04));
  border-color: rgba(217, 119, 6, 0.22);
}

body[data-theme="light"] .inline-guidance-success {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(8, 145, 178, 0.04));
  border-color: rgba(5, 150, 105, 0.2);
}

body[data-theme="light"] .inline-guidance-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(217, 119, 6, 0.04));
  border-color: rgba(220, 38, 38, 0.2);
}

body[data-theme="light"] .code-surface,
body[data-theme="light"] pre,
body[data-theme="light"] code {
  color: #22304a;
}

body[data-theme="light"] .sidebar-card,
body[data-theme="light"] .card,
body[data-theme="light"] .metric,
body[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.98));
}

body[data-theme="light"] .main {
  --bg-panel: rgba(255, 255, 255, 0.96);
  --bg-panel-strong: rgba(255, 255, 255, 0.99);
  --bg-panel-soft: #f5f7fc;
  --bg-input: rgba(255, 255, 255, 0.98);
  --text: #1a2340;
  --text-strong: #0f1b31;
  --text-muted: #677490;
  --text-soft: #92a0b9;
  --line: rgba(94, 114, 172, 0.12);
  --line-strong: rgba(94, 114, 172, 0.2);
  --accent: #2563eb;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.08);
}

body[data-theme="light"] .table-row,
body[data-theme="light"] .status-row,
body[data-theme="light"] .permission-row,
body[data-theme="light"] .composer-form,
body[data-theme="light"] .chip-selector,
body[data-theme="light"] .builder-panel,
body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  color: #172338;
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 253, 0.98));
  border-color: rgba(94, 114, 172, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(148, 163, 184, 0.12);
}

body[data-theme="light"] input:focus,
body[data-theme="light"] select:focus,
body[data-theme="light"] textarea:focus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 1));
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.1),
    0 12px 28px rgba(99, 102, 241, 0.12);
}

body[data-theme="light"] .chip-selector {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.98));
  border-color: rgba(94, 114, 172, 0.12);
}

body[data-theme="light"] .chip-option {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(94, 114, 172, 0.12);
  color: #55637c;
}

body[data-theme="light"] .chip-option:hover {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(243, 247, 255, 0.98));
  color: #172338;
}

body[data-theme="light"] .chip-option.selected {
  color: #eff6ff;
}

body[data-theme="light"] .builder-panel {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.99));
  border-color: rgba(94, 114, 172, 0.14);
}

body[data-theme="light"] .nav-item,
body[data-theme="light"] .sub-nav-item,
body[data-theme="light"] .sidebar .eyebrow,
body[data-theme="light"] .sidebar-kicker,
body[data-theme="light"] .nav-glyph {
  color: #5a6881;
}

body[data-theme="light"] .nav-item.active,
body[data-theme="light"] .sub-nav-item.active {
  color: #1d4ed8;
}

body[data-theme="light"] .metric h3,
body[data-theme="light"] .metric strong,
body[data-theme="light"] .card h3,
body[data-theme="light"] .panel-card h3,
body[data-theme="light"] .ops-card strong,
body[data-theme="light"] .module-card strong,
body[data-theme="light"] .table-row strong,
body[data-theme="light"] .status-row strong,
body[data-theme="light"] .permission-row strong {
  color: #13233d;
}

body[data-theme="light"] .muted,
body[data-theme="light"] .table-row small,
body[data-theme="light"] .mini-chart-copy small,
body[data-theme="light"] .mini-chart-value {
  color: #5b6d8c;
}

body[data-theme="light"] .eyebrow,
body[data-theme="light"] .panel-copy .eyebrow,
body[data-theme="light"] .metric .eyebrow {
  color: #4f6286;
}

body[data-theme="light"] .ops-card,
body[data-theme="light"] .module-card,
body[data-theme="light"] .status-row,
body[data-theme="light"] .permission-row,
body[data-theme="light"] .table-row:not(.table-head) {
  color: #172338;
}

.dashboard {
  display: grid;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(25, 194, 255, 0.18);
  background: linear-gradient(90deg, rgba(112, 88, 255, 0.14) 0%, rgba(25, 194, 255, 0.08) 100%);
  color: var(--text);
}

.error-state-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  align-content: start;
}

.error-state-copy {
  padding: 0 4px 4px;
}

.error-state-copy p {
  margin: 0;
  max-width: 720px;
}

.inline-guidance {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.42);
}

.inline-guidance strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.inline-guidance p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.inline-guidance-info {
  border-color: rgba(6, 182, 212, 0.28);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.08));
}

.inline-guidance-warning {
  border-color: rgba(94, 166, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(76, 112, 255, 0.14), rgba(34, 211, 238, 0.06)),
    rgba(12, 20, 36, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(173, 216, 255, 0.08),
    0 0 0 1px rgba(94, 166, 255, 0.04);
}

.inline-guidance-warning strong {
  color: rgba(234, 245, 255, 0.98);
}

.inline-guidance-warning p {
  color: rgba(188, 204, 228, 0.9);
}

.inline-guidance-success {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(6, 182, 212, 0.05));
}

.inline-guidance-danger {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.05));
}

.table-row-guidance {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.table-row-guidance-copy {
  display: block;
}

.table-row-live-delta {
  position: relative;
  border-color: rgba(45, 212, 191, 0.26);
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.1), rgba(59, 130, 246, 0.06)),
    rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08), 0 0 0 1px rgba(45, 212, 191, 0.06);
  animation: table-row-live-flash 4.5s ease-out 1;
}

.table-row-live-delta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dd4bf, #3b82f6);
}

@keyframes table-row-live-flash {
  0% {
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18), 0 0 0 1px rgba(45, 212, 191, 0.12), 0 0 22px rgba(45, 212, 191, 0.18);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08), 0 0 0 1px rgba(45, 212, 191, 0.06);
    transform: translateY(0);
  }
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255, 184, 77, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

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

.metric {
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 54%),
    var(--bg-panel);
}

.metric h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.15;
  word-break: break-word;
}

.metrics-featured .metric:nth-child(1) {
  border-color: rgba(37, 99, 235, 0.22);
}

.metrics-featured .metric:nth-child(2) {
  border-color: rgba(6, 182, 212, 0.22);
}

.metrics-featured .metric:nth-child(3) {
  border-color: rgba(124, 58, 237, 0.22);
}

.metrics-featured .metric:nth-child(4) {
  border-color: rgba(16, 185, 129, 0.2);
}

.metrics-featured .metric:nth-child(5) {
  border-color: rgba(245, 158, 11, 0.22);
}

.metric-compact {
  min-height: auto;
  padding: 14px 15px;
}

.metric-compact h3 {
  font-size: 0.9rem;
  line-height: 1.28;
  margin-top: 6px;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.metric-compact .eyebrow {
  font-size: 0.66rem;
}

.metric-compact .muted {
  font-size: 0.8rem;
  line-height: 1.35;
}

.metric-inline-action {
  margin-top: 10px;
}

.metric-inline-action .button-secondary,
.metric-inline-action .button-primary,
.metric-inline-action .button-ghost {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.view-panel[data-panel="getting-started"] .metrics.metrics-inline {
  gap: 10px;
  margin-bottom: 12px;
}

.view-panel[data-panel="getting-started"] .metric.metric-compact {
  min-height: 0;
  padding: 12px 13px;
  border-radius: 16px;
}

.view-panel[data-panel="getting-started"] .metric.metric-compact h3 {
  margin-top: 4px;
  margin-bottom: 3px;
  font-size: 0.86rem;
  line-height: 1.22;
}

.view-panel[data-panel="getting-started"] .metric.metric-compact .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.view-panel[data-panel="getting-started"] .metric.metric-compact .muted {
  font-size: 0.74rem;
  line-height: 1.28;
}

.onboarding-metric-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.onboarding-metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.24);
}

.onboarding-metric-card.active {
  border-color: rgba(103, 232, 249, 0.32);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.06)),
    rgba(10, 18, 32, 0.9);
  box-shadow: inset 2px 0 0 rgba(103, 232, 249, 0.72), 0 0 0 1px rgba(103, 232, 249, 0.08);
}

.onboarding-step-row {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.onboarding-step-row.active {
  border-color: rgba(103, 232, 249, 0.3);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.05)),
    rgba(15, 23, 42, 0.68);
  box-shadow: inset 3px 0 0 rgba(103, 232, 249, 0.72);
}

.onboarding-step-pending strong {
  color: #ecfeff;
}

.grid {
  display: grid;
  gap: 16px;
}

.overview-grid {
  grid-template-columns: 1.3fr 1fr;
}

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

@media (min-width: 1181px) {
  .view-panel[data-panel="getting-started"] .section-panel.active {
    min-height: calc(100vh - 112px);
  }

  .onboarding-surface {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    align-content: start;
  }

  .onboarding-metrics {
    gap: 10px;
    margin-bottom: 0;
  }

  .onboarding-metrics .metric {
    min-height: 96px;
    padding: 14px 16px;
  }

  .onboarding-metrics .metric h3 {
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .onboarding-grid {
    height: 100%;
    gap: 12px;
    align-content: stretch;
  }

  .onboarding-grid > .card,
  .onboarding-grid > .panel-card {
    min-height: 0;
    padding: 16px;
  }

  .onboarding-surface .panel-head {
    margin-bottom: 12px;
    gap: 12px;
  }

  .onboarding-surface .compact-panel-head {
    margin-bottom: 10px;
  }

  .onboarding-surface .muted {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .onboarding-surface .card-actions {
    gap: 8px;
  }

  .onboarding-surface-checklist {
    gap: 10px;
  }

  .onboarding-surface-checklist .onboarding-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .onboarding-surface-checklist .onboarding-metrics .metric {
    min-height: 82px;
    padding: 12px 14px;
  }

  .onboarding-surface-checklist .onboarding-metrics .metric .eyebrow {
    font-size: 0.68rem;
  }

  .onboarding-surface-checklist .onboarding-metrics .metric h3 {
    margin-top: 4px;
    margin-bottom: 3px;
    font-size: 0.94rem;
  }

  .onboarding-surface-checklist .onboarding-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.82fr);
    grid-template-rows: 1fr;
  }

  .onboarding-surface-checklist .onboarding-grid > .card,
  .onboarding-surface-checklist .onboarding-grid > .panel-card {
    padding: 14px;
  }

  .onboarding-surface-checklist .onboarding-grid > .card:last-child,
  .onboarding-surface-checklist .onboarding-grid > .panel-card:last-child {
    align-self: start;
  }

  .onboarding-surface-checklist .panel-head {
    margin-bottom: 10px;
  }

  .onboarding-surface-checklist #getting-started-checklist {
    gap: 6px;
    overflow: visible;
  }

  .onboarding-surface-checklist #getting-started-checklist .status-row {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
  }

  .onboarding-surface-checklist #getting-started-checklist .status-row span,
  .onboarding-surface-checklist #getting-started-checklist .status-row strong {
    font-size: 0.8rem;
    line-height: 1.22;
  }

  .onboarding-surface-checklist #getting-started-checklist .status-row small {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .onboarding-surface-checklist #getting-started-next-copy {
    font-size: 0.81rem;
    line-height: 1.38;
    margin-bottom: 10px;
  }

  .onboarding-surface-checklist #getting-started-next-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .onboarding-surface-checklist .card-actions .button-primary,
  .onboarding-surface-checklist .card-actions .button-secondary,
  .onboarding-surface-checklist .card-actions .button-ghost {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .onboarding-surface-checklist .panel-tag {
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .onboarding-surface-diagnostics .onboarding-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    grid-template-rows: auto 1fr;
  }

  .onboarding-surface-diagnostics .onboarding-grid > .panel-span-2:first-child .metrics-inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
  }

  .onboarding-surface-diagnostics #go-live-checks,
  .onboarding-surface-diagnostics #go-live-notes {
    overflow: auto;
    padding-right: 4px;
  }

  .onboarding-surface-integration .onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
  }

  .onboarding-surface-integration .code-block {
    min-height: 0;
    max-height: 100%;
    font-size: 0.77rem;
    line-height: 1.35;
    padding: 14px;
  }
}

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

.panel-card {
  margin-bottom: 0;
}

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

.panel-head > div > .eyebrow,
.metric > .eyebrow,
.ops-card > .eyebrow,
.module-card > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-head > div > .eyebrow::before,
.metric > .eyebrow::before,
.ops-card > .eyebrow::before,
.module-card > .eyebrow::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-strong);
  font-size: 0.52rem;
  line-height: 1;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.18);
}

.panel-head > div {
  min-width: 0;
}

.panel-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panel-copy {
  min-width: 0;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.28);
}

.panel-icon-subtle {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(37, 99, 235, 0.1));
  border-color: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.logs-toolbar-compact {
  grid-template-columns: minmax(240px, 1.8fr) repeat(2, minmax(140px, 1fr));
}

.logs-search-shell {
  min-width: 0;
}

.logs-toolbar select {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.logs-toolbar select:focus {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body[data-theme="light"] .logs-toolbar select {
  background: rgba(255, 255, 255, 0.96);
}

.logs-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.logs-quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logs-column-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.logs-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  margin-top: 4px;
  min-height: 1.7rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  line-height: 1.1;
  cursor: pointer;
}

.logs-filter-pill:hover {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(37, 99, 235, 0.18);
}

.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(65, 85, 127, 0.14);
  background: rgba(15, 23, 42, 0.72);
}

body[data-theme="light"] .live-toggle {
  background: rgba(255, 255, 255, 0.9);
}

.panel-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25, 194, 255, 0.1);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  border: 1px solid rgba(25, 194, 255, 0.16);
  max-width: 100%;
  white-space: normal;
}

.panel-tag-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--line);
}

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

.overview-grid > .clickable-card .panel-head h3,
.overview-grid > .panel-card .panel-head h3 {
  letter-spacing: -0.02em;
}

.ops-card,
.module-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.ops-card::after,
.module-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.7), rgba(124, 58, 237, 0.72), transparent 82%);
}

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

.guide-link-button {
  justify-content: flex-start;
  width: 100%;
}

.composer-shell[hidden] {
  display: none;
}

.composer-shell {
  margin-top: 12px;
}

.rag-dropzone {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-strong);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.rag-dropzone small {
  color: var(--text-soft);
}

.rag-dropzone.is-dragging,
.rag-dropzone:hover {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.26);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.rag-upload-preview {
  margin-top: 14px;
}

.rag-preview-summary-row {
  margin-top: 8px;
}

.rag-preview-chunks {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rag-preview-chunk {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(15, 23, 42, 0.54);
  display: grid;
  gap: 6px;
}

.rag-preview-chunk p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-icon-prefix {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  flex: 0 0 auto;
  opacity: 0.9;
}

.panel-tag-success {
  background: rgba(65, 211, 156, 0.12);
  color: var(--success);
  border-color: rgba(65, 211, 156, 0.18);
}

.panel-tag-warning {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.24);
}

.panel-tag-warn {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.24);
}

.panel-tag-info {
  background: rgba(18, 201, 222, 0.14);
  color: #047c8a;
  border-color: rgba(18, 201, 222, 0.28);
}

.panel-tag-danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.24);
}

.go-live-check-row {
  align-items: flex-start;
}

.go-live-check-row .card-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.diagnostics-shell {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.diagnostics-hero-card,
.diagnostics-checks-card,
.diagnostics-decision-card,
.diagnostics-services-card,
.diagnostics-notes-card {
  background:
    linear-gradient(180deg, rgba(12, 19, 37, 0.94), rgba(11, 18, 34, 0.98)),
    rgba(9, 14, 28, 0.92);
  border-color: rgba(96, 165, 250, 0.08);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
}

.diagnostics-hero-surface {
  min-height: 0;
}

.diagnostics-side-stack {
  display: grid;
  gap: 18px;
  min-height: 100%;
  max-width: 460px;
  justify-self: end;
}

.diagnostics-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.diagnostics-score-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(56, 189, 248, 0.12), transparent 32%),
    radial-gradient(circle at 72% 76%, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(16, 24, 45, 0.94), rgba(11, 18, 34, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.diagnostics-score-panel::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.08);
  box-shadow:
    0 0 0 14px rgba(96, 165, 250, 0.03),
    0 0 0 36px rgba(96, 165, 250, 0.02);
  opacity: 0.9;
}

.diagnostics-tone-success {
  border-color: rgba(74, 222, 128, 0.14);
}

.diagnostics-tone-warning {
  border-color: rgba(251, 191, 36, 0.16);
}

.diagnostics-tone-danger {
  border-color: rgba(248, 113, 113, 0.16);
}

.diagnostics-score-copy,
.diagnostics-score-meta {
  position: relative;
  z-index: 1;
}

.diagnostics-score-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.diagnostics-score-row h2 {
  margin: 0;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.diagnostics-score-copy .muted {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
}

.diagnostics-score-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.diagnostics-meta-chip {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.45);
}

.diagnostics-meta-chip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diagnostics-meta-chip strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

.diagnostics-signal-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostics-signal-card {
  min-height: 132px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(18, 26, 48, 0.9), rgba(12, 19, 36, 0.96));
}

.diagnostics-signal-card h4 {
  margin: 10px 0 8px;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.diagnostics-signal-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.diagnostics-signal-success {
  border-color: rgba(74, 222, 128, 0.14);
}

.diagnostics-signal-warning {
  border-color: rgba(251, 191, 36, 0.16);
}

.diagnostics-signal-danger {
  border-color: rgba(248, 113, 113, 0.16);
}

.diagnostics-checks-card #go-live-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnostics-checks-card,
.diagnostics-side-stack {
  min-height: 100%;
}

.go-live-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 15, 28, 0.42);
}

.go-live-check-main {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.go-live-check-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
}

.go-live-check-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(15, 23, 42, 0.52);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.go-live-check-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.go-live-check-copy strong {
  font-size: 1rem;
}

.go-live-check-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.go-live-check-state {
  flex: 0 0 auto;
  min-width: 108px;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}

.go-live-check-row-success {
  border-color: rgba(74, 222, 128, 0.12);
}

.go-live-check-row-warning {
  border-color: rgba(251, 191, 36, 0.14);
}

.go-live-check-row-danger {
  border-color: rgba(248, 113, 113, 0.14);
}

.diagnostics-checks-card .guide-link-button {
  width: auto;
  width: 188px;
  min-width: 188px;
  flex: 0 0 auto;
  justify-content: center;
  align-self: center;
  padding-inline: 14px;
}

.diagnostics-decision-card .muted {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.diagnostics-decision-card .card-actions {
  justify-content: flex-start;
}

.diagnostics-decision-card .button-primary {
  width: 188px;
  min-width: 188px;
  justify-content: center;
}

.diagnostics-services-card #go-live-services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagnostics-service-row {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(10, 16, 29, 0.42);
}

.diagnostics-service-success {
  border-color: rgba(74, 222, 128, 0.12);
}

.diagnostics-service-warning {
  border-color: rgba(251, 191, 36, 0.14);
}

.diagnostics-service-danger {
  border-color: rgba(248, 113, 113, 0.14);
}

.diagnostics-service-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.diagnostics-service-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.diagnostics-service-copy strong {
  font-size: 0.95rem;
}

.diagnostics-service-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.diagnostics-service-meta {
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagnostics-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.diagnostics-service-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagnostics-service-stats .guide-link-button {
  min-width: 0;
  width: auto;
  padding-inline: 12px;
  white-space: nowrap;
}

.diagnostics-notes-card #go-live-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnostics-notes-card #go-live-notes .status-row {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(10, 16, 29, 0.42);
}

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

  .diagnostics-score-meta,
  .diagnostics-signal-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostics-shell {
    grid-template-columns: 1fr;
  }

  .diagnostics-side-stack {
    max-width: none;
    justify-self: stretch;
  }

  .diagnostics-service-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .go-live-check-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .go-live-check-lead {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .diagnostics-score-panel {
    padding: 22px;
    min-height: 0;
  }

  .diagnostics-score-row h2 {
    font-size: 3.4rem;
  }

  .diagnostics-score-meta,
  .diagnostics-signal-rail {
    grid-template-columns: 1fr;
  }

  .go-live-check-row {
    flex-direction: column;
    align-items: stretch;
  }

  .diagnostics-checks-card .guide-link-button,
  .diagnostics-decision-card .button-primary {
    width: 100%;
    min-width: 0;
  }
}

.traffic-map-surface {
  display: grid;
  gap: 10px;
}

.usage-view-toolbar-card {
  padding-block: 12px;
}

.usage-view-toggle {
  display: inline-flex;
  gap: 8px;
}

.usage-view-toggle .button-secondary.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.94), rgba(34, 211, 238, 0.88));
  color: #fff;
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 10px 22px rgba(34, 211, 238, 0.18);
}

.section-panel[data-section-panel="usage"][data-usage-view="visual"] [data-usage-mode="text"],
.section-panel[data-section-panel="usage"][data-usage-view="text"] [data-usage-mode="visual"] {
  display: none;
}

.section-panel[data-section-panel="usage"][data-usage-view="text"] .activity-table,
.section-panel[data-section-panel="usage"][data-usage-view="text"] .status-list {
  gap: 8px;
}

.section-panel[data-section-panel="usage"][data-usage-view="visual"] .panel-card[data-usage-mode="visual"],
.section-panel[data-section-panel="usage"][data-usage-view="visual"] .panel-card[data-usage-mode="both"] {
  min-height: 0;
}

.section-panel[data-section-panel="runtime-policies"] .guardrail-view-section {
  display: none;
}

.guardrail-subnav {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.guardrail-subnav-button {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(78, 101, 149, 0.28);
  background: rgba(10, 17, 33, 0.76);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 160ms ease;
}

.guardrail-subnav-button:hover {
  border-color: rgba(103, 232, 249, 0.3);
  color: var(--text-strong);
}

.guardrail-subnav-button.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(34, 211, 238, 0.8));
  color: #fff;
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.16);
}

.guardrail-overview-hero {
  display: grid;
  gap: 14px;
}

.guardrail-overview-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.guardrail-hero-card {
  position: relative;
  min-height: 200px;
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(82, 107, 156, 0.24);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.98), rgba(10, 16, 30, 0.96));
}

.guardrail-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.2));
}

.guardrail-hero-card-alert::before {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.85), rgba(244, 114, 182, 0.18));
}

.guardrail-hero-card.is-clear::before {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.85), rgba(16, 185, 129, 0.16));
}

.guardrail-hero-card-kicker {
  margin-bottom: 14px;
  color: rgba(130, 225, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guardrail-hero-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.guardrail-hero-card-body h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.05;
}

.guardrail-hero-card-body p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.guardrail-hero-card-score {
  min-width: 120px;
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.guardrail-hero-card-score strong {
  color: #2563eb;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.guardrail-hero-card-score strong small {
  margin-left: 6px;
  color: var(--text-dim);
  font-size: 0.44em;
}

.guardrail-hero-card-score span {
  color: #4ade80;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guardrail-hero-card-actions {
  display: grid;
  justify-items: end;
}

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

.guardrail-security-catalog-management {
  margin-top: 18px;
}

.guardrail-catalog-empty {
  padding: 6px 0 2px;
}

.guardrail-policy-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 248px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(82, 107, 156, 0.22);
  background: linear-gradient(180deg, rgba(20, 27, 42, 0.96), rgba(14, 19, 33, 0.92));
  overflow: hidden;
}

.guardrail-policy-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.88), rgba(37, 99, 235, 0.24));
}

.guardrail-policy-card.tone-danger .guardrail-policy-card-accent {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.86), rgba(34, 197, 94, 0.18));
}

.guardrail-policy-card.tone-info .guardrail-policy-card-accent {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.18));
}

.guardrail-policy-card.tone-success .guardrail-policy-card-accent {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.86), rgba(16, 185, 129, 0.18));
}

.guardrail-policy-card.tone-muted .guardrail-policy-card-accent {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.72), rgba(71, 85, 105, 0.16));
}

.guardrail-policy-card.is-inactive {
  opacity: 0.88;
}

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

.guardrail-policy-card-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(82, 208, 255, 0.24);
  border-radius: 14px;
  background: rgba(16, 28, 48, 0.9);
  color: #57f08b;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.08);
}

.guardrail-policy-card-copy {
  display: grid;
  gap: 5px;
}

.guardrail-policy-card-copy strong {
  color: var(--text-strong);
  font-size: 1.4rem;
  line-height: 1.1;
}

.guardrail-policy-card-copy small {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.guardrail-policy-card-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.guardrail-policy-card-severity.tone-danger {
  background: rgba(220, 38, 38, 0.88);
  color: #fff;
}

.guardrail-policy-card-severity.tone-info {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.guardrail-policy-card-severity.tone-success {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.guardrail-policy-card-severity.tone-muted {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.guardrail-policy-card-description {
  min-height: 72px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.56;
}

.guardrail-policy-card-meta,
.guardrail-policy-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guardrail-policy-card-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guardrail-policy-card-meta span,
.guardrail-policy-card-stats span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(12, 19, 34, 0.72);
  color: var(--text-dim);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.guardrail-policy-card-stats span strong {
  color: var(--text-strong);
  font-size: 1rem;
}

.guardrail-policy-card-stats span small {
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guardrail-policy-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guardrail-policy-card-actions .button-ghost,
.guardrail-policy-card-actions .danger-button {
  min-height: 38px;
}

.guardrail-policy-card-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 0 0 4px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.guardrail-policy-card-toggle small {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
}

.guardrail-policy-card-toggle-track {
  width: 54px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(82, 107, 156, 0.28);
  background: rgba(15, 23, 42, 0.76);
  transition: 160ms ease;
}

.guardrail-policy-card-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, background 160ms ease;
}

.guardrail-policy-card-toggle.is-on .guardrail-policy-card-toggle-track {
  background: rgba(34, 197, 94, 0.26);
  border-color: rgba(74, 222, 128, 0.38);
}

.guardrail-policy-card-toggle.is-on .guardrail-policy-card-toggle-thumb {
  transform: translateX(26px);
  background: #4ade80;
}

.guardrail-category-builder {
  padding: 18px;
  border: 1px solid rgba(83, 115, 173, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 19, 37, 0.92), rgba(9, 15, 31, 0.9));
  margin: 14px 0 18px;
}

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

.guardrail-step-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(76, 97, 148, 0.22);
  background: rgba(10, 17, 31, 0.74);
  color: var(--text-soft);
  text-align: left;
  transition: 160ms ease;
}

.guardrail-step-chip[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.guardrail-step-chip:not([disabled]) {
  cursor: pointer;
}

.guardrail-step-chip:hover:not([disabled]) {
  border-color: rgba(103, 232, 249, 0.34);
  transform: translateY(-1px);
}

.guardrail-step-chip.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(139, 92, 246, 0.16)), rgba(10, 17, 31, 0.82);
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.12);
}

.guardrail-step-chip.complete .guardrail-step-chip-index {
  border-color: rgba(74, 222, 128, 0.32);
  color: #9df0c0;
}

.guardrail-step-chip-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(76, 97, 148, 0.24);
  background: rgba(10, 17, 31, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(110, 231, 255, 0.9);
  flex-shrink: 0;
}

.guardrail-step-chip strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-strong);
}

.guardrail-step-chip small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-dim);
}

.guardrail-category-builder-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.guardrail-category-groups {
  display: grid;
  gap: 14px;
}

.guardrail-builder-review {
  display: grid;
  gap: 12px;
}

.guardrail-builder-review-table {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(80, 104, 156, 0.18);
  background: rgba(10, 17, 31, 0.68);
}

.guardrail-builder-review-head,
.guardrail-builder-review-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.guardrail-builder-review-head {
  padding: 0 4px 4px;
  color: var(--text-dim);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guardrail-builder-review-row {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(78, 101, 149, 0.16);
  background: rgba(11, 18, 34, 0.42);
}

.guardrail-builder-review-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-strong);
}

.guardrail-builder-review-row small {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.guardrail-category-builder-footer {
  align-items: center;
}

.guardrail-category-group {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(78, 101, 149, 0.2);
  background: rgba(11, 18, 34, 0.72);
}

.guardrail-category-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guardrail-category-group-head h4 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.guardrail-category-group-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.guardrail-category-group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guardrail-category-group-toggle {
  white-space: nowrap;
}

.guardrail-category-group-collapse {
  white-space: nowrap;
}

.guardrail-category-group-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(78, 101, 149, 0.2);
  background: rgba(8, 14, 27, 0.56);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.guardrail-category-table {
  display: grid;
  gap: 10px;
}

.guardrail-category-table-head,
.guardrail-category-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(320px, 1.8fr) minmax(180px, 0.8fr) minmax(140px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.guardrail-category-table-head {
  padding: 0 6px 6px;
  color: var(--text-dim);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guardrail-category-row {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(78, 101, 149, 0.16);
  background: rgba(11, 18, 34, 0.4);
}

.guardrail-category-row.active {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.04)), rgba(11, 18, 34, 0.48);
}

.guardrail-category-row-cell {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.guardrail-category-row-cell strong {
  color: var(--text-strong);
  font-size: 0.85rem;
}

.guardrail-category-row-cell small {
  color: var(--text-dim);
  line-height: 1.35;
}

.guardrail-category-chip {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(78, 101, 149, 0.24);
  background: rgba(12, 20, 38, 0.72);
  color: var(--text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.guardrail-category-chip strong {
  font-size: 0.95rem;
  color: var(--text-strong);
}

.guardrail-category-chip small {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-dim);
}

.guardrail-category-chip span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(110, 231, 255, 0.88);
}

.guardrail-category-chip:hover {
  border-color: rgba(103, 232, 249, 0.34);
  transform: translateY(-1px);
}

.guardrail-category-chip.active {
  border-color: rgba(56, 189, 248, 0.45);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(139, 92, 246, 0.18)),
    rgba(11, 18, 34, 0.84);
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.12);
}

.guardrail-subcategory-shell {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(86, 116, 175, 0.18);
  background: rgba(9, 15, 30, 0.78);
}

.guardrail-subcategory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guardrail-subcategory-head strong {
  font-size: 0.84rem;
  color: var(--text-strong);
}

.guardrail-subcategory-head small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.guardrail-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.guardrail-subcategory-table {
  display: grid;
  gap: 8px;
}

.guardrail-subcategory-row {
  display: grid;
  gap: 8px;
}

.guardrail-subcategory-row.active {
  padding: 8px;
  border-radius: 14px;
  background: rgba(8, 15, 31, 0.52);
}

.guardrail-subcategory-chip {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(78, 101, 149, 0.2);
  background: rgba(10, 17, 31, 0.74);
  color: var(--text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.guardrail-subcategory-chip strong {
  font-size: 0.82rem;
  color: var(--text-strong);
}

.guardrail-subcategory-chip small {
  font-size: 0.71rem;
  line-height: 1.35;
  color: var(--text-dim);
}

.guardrail-subcategory-chip:hover {
  border-color: rgba(103, 232, 249, 0.3);
}

.guardrail-subcategory-chip.active {
  border-color: rgba(110, 231, 255, 0.44);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.26), rgba(59, 130, 246, 0.18));
  box-shadow: 0 10px 22px rgba(34, 211, 238, 0.14);
}

.guardrail-object-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.guardrail-object-chip {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(78, 101, 149, 0.18);
  background: rgba(9, 15, 27, 0.76);
  color: var(--text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.guardrail-object-chip strong {
  font-size: 0.8rem;
  color: var(--text-strong);
}

.guardrail-object-chip small {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.guardrail-object-chip:hover {
  border-color: rgba(129, 140, 248, 0.3);
}

.guardrail-object-chip.active {
  border-color: rgba(167, 139, 250, 0.46);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(34, 211, 238, 0.12));
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.14);
}

@media (max-width: 1100px) {
  .guardrail-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardrail-overview-hero-grid,
  .guardrail-security-catalog {
    grid-template-columns: 1fr;
  }

  .guardrail-policy-card-meta,
  .guardrail-policy-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardrail-category-builder-tools {
    grid-template-columns: 1fr;
  }

  .guardrail-builder-review-head,
  .guardrail-builder-review-row,
  .guardrail-category-table-head,
  .guardrail-category-row {
    grid-template-columns: 1fr;
  }

  .guardrail-category-table-head {
    display: none;
  }
}

.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="overview"] [data-guardrail-view="overview"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="policies"] [data-guardrail-view="policysets"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="policies"] [data-guardrail-view="rules"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="policysets"] [data-guardrail-view="policysets"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="rules"] [data-guardrail-view="rules"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="test"] [data-guardrail-view="simulation"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="test"] [data-guardrail-view="live"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="simulation"] [data-guardrail-view="simulation"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="activity"] [data-guardrail-view="executions"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="activity"] [data-guardrail-view="risk"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="activity"] [data-guardrail-view="approvals"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="executions"] [data-guardrail-view="executions"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="risk"] [data-guardrail-view="risk"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="approvals"] [data-guardrail-view="approvals"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="live"] [data-guardrail-view="live"] {
  display: block;
}

.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="overview"] .metrics.guardrail-view-section,
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="overview"] .grid.guardrail-view-section {
  display: grid;
}

.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="policies"] [data-guardrail-subnav="policies"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="policysets"] [data-guardrail-subnav="policies"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="rules"] [data-guardrail-subnav="policies"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="test"] [data-guardrail-subnav="test"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="simulation"] [data-guardrail-subnav="test"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="live"] [data-guardrail-subnav="test"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="activity"] [data-guardrail-subnav="activity"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="executions"] [data-guardrail-subnav="activity"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="risk"] [data-guardrail-subnav="activity"],
.section-panel[data-section-panel="runtime-policies"][data-guardrail-view="approvals"] [data-guardrail-subnav="activity"] {
  display: flex;
}

.section-panel[data-section-panel="runtime-policies"] [data-guardrail-view="executions"] {
  min-width: 0;
  overflow: hidden;
}

.section-panel[data-section-panel="runtime-policies"] [data-guardrail-view="executions"] .panel-head,
.section-panel[data-section-panel="runtime-policies"] [data-guardrail-view="executions"] .panel-head > div {
  min-width: 0;
}

.section-panel[data-section-panel="runtime-policies"] [data-guardrail-view="executions"] .panel-head h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#guardrail-executions-list {
  min-width: 0;
  overflow-x: auto;
}

#guardrail-executions-list .table-row {
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(88px, 0.6fr) minmax(96px, 0.6fr);
  min-width: 0;
}

#guardrail-execution-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  min-width: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guardrail-execution-inline-detail {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.06), transparent 70%),
    rgba(8, 15, 30, 0.84);
}

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

.guardrail-execution-inline-head strong {
  min-width: 0;
  color: var(--text-strong);
}

.guardrail-execution-inline-code {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guardrail-type-inline-detail {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.07), transparent 70%),
    rgba(8, 15, 30, 0.88);
}

.guardrail-type-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guardrail-type-inline-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guardrail-type-inline-head strong,
.guardrail-type-inline-grid strong {
  color: var(--text-strong);
}

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

.guardrail-type-inline-grid span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.guardrail-type-inline-grid small,
.guardrail-type-inline-head small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.guardrail-type-inline-code {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: 260px;
  margin: 12px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guardrail-library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin: 0 0 14px;
}

.guardrail-type-preset-shell {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.35);
}

.guardrail-type-presets {
  display: grid;
  gap: 12px;
}

.guardrail-brand-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.guardrail-brand-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px 6px 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.guardrail-brand-filter:hover,
.guardrail-brand-filter.selected {
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(8, 47, 73, 0.54);
  color: var(--text-strong);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.1);
}

.guardrail-brand-filter span:not(.guardrail-brand-icon) {
  font-size: 0.78rem;
  font-weight: 900;
}

.guardrail-brand-filter small {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.guardrail-brand-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.13);
  color: #67e8f9;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.guardrail-brand-icon[data-brand="aws"] {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 53, 15, 0.26);
  color: #fbbf24;
}

.guardrail-brand-icon[data-brand="azure"],
.guardrail-brand-icon[data-brand="google"] {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 64, 175, 0.22);
  color: #93c5fd;
}

.guardrail-brand-icon[data-brand="github"],
.guardrail-brand-icon[data-brand="gitlab"],
.guardrail-brand-icon[data-brand="docker"],
.guardrail-brand-icon[data-brand="npm"] {
  border-color: rgba(226, 232, 240, 0.3);
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
}

.guardrail-brand-icon[data-brand="slack"],
.guardrail-brand-icon[data-brand="stripe"],
.guardrail-brand-icon[data-brand="openai"],
.guardrail-brand-icon[data-brand="anthropic"],
.guardrail-brand-icon[data-brand="huggingface"] {
  border-color: rgba(216, 180, 254, 0.34);
  background: rgba(88, 28, 135, 0.24);
  color: #d8b4fe;
}

.guardrail-preset-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.guardrail-preset-count strong {
  color: var(--accent-cyan);
  font-size: 1rem;
}

.guardrail-preset-count small {
  margin-left: auto;
  color: var(--muted);
}

.guardrail-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.guardrail-type-preset {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.09), rgba(168, 85, 247, 0.06)),
    rgba(8, 15, 30, 0.76);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.guardrail-type-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.guardrail-type-preset span {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.guardrail-type-preset strong {
  color: var(--text-strong);
  line-height: 1.25;
}

.guardrail-type-preset small {
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.guardrail-type-preset em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .guardrail-hero-card,
  .guardrail-policy-card {
    padding: 18px;
  }

  .guardrail-hero-card-body,
  .guardrail-policy-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .guardrail-hero-card-score,
  .guardrail-hero-card-actions {
    justify-items: start;
    text-align: left;
  }

  .guardrail-policy-card-actions {
    align-items: stretch;
  }

  .guardrail-policy-card-toggle {
    margin-left: 0;
  }

  .guardrail-policy-card-meta,
  .guardrail-policy-card-stats {
    grid-template-columns: 1fr;
  }

  .guardrail-library-tools,
  .guardrail-type-inline-grid {
    grid-template-columns: 1fr;
  }
}

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

.traffic-topology-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(87, 112, 170, 0.18);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(8, 15, 28, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.traffic-topology-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted, #8b93a7);
}

.traffic-topology-stat strong {
  font-size: 28px;
  line-height: 1;
  color: var(--text-strong, #f8fafc);
}

.traffic-topology-stat small {
  color: var(--text-soft, #cbd5e1);
}

.traffic-intensity-band {
  display: grid;
  gap: 10px;
}

.traffic-intensity-lane {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, var(--lane-share, 100%));
  min-width: 58%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(87, 112, 170, 0.18);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.16) 50%, rgba(124, 58, 237, 0.16)),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(8, 15, 28, 0.94));
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
  text-align: left;
}

.traffic-intensity-lane:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.28);
}

.traffic-intensity-route,
.traffic-intensity-provider,
.traffic-intensity-model {
  color: var(--text-strong, #f8fafc);
  font-weight: 600;
}

.traffic-intensity-provider,
.traffic-intensity-model {
  color: var(--text-soft, #cbd5e1);
  font-weight: 500;
}

.traffic-intensity-pill {
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.88));
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.18);
}

.traffic-intensity-pill-1 {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.94), rgba(59, 130, 246, 0.88));
}

.traffic-intensity-pill-2 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.94), rgba(234, 179, 8, 0.88));
}

.traffic-intensity-pill-3 {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.88));
}

.traffic-map-grid {
  display: grid;
  gap: 10px;
}

.traffic-flow-card {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(65, 85, 127, 0.16);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 76%),
    var(--bg-panel);
}

.traffic-flow-card-expanded {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
}

.traffic-flow-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.traffic-flow-node {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-panel-soft);
}

.traffic-flow-node strong {
  color: var(--text-strong);
  line-height: 1.2;
}

.traffic-flow-node small {
  color: var(--text-soft);
  margin: 0;
}

.traffic-flow-node-route {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.08);
}

.traffic-flow-node-provider {
  border-color: rgba(6, 182, 212, 0.26);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.08);
}

.traffic-flow-node-model {
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.08);
}

.traffic-flow-link {
  position: relative;
  width: 36px;
  height: 8px;
}

.traffic-flow-link span {
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.82), rgba(6, 182, 212, 0.92));
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.18);
}

.traffic-flow-link-ai span {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.82), rgba(124, 58, 237, 0.92));
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.18);
}

.traffic-flow-actions {
  display: flex;
  justify-content: flex-end;
}

.traffic-flow-details {
  display: grid;
  gap: 10px;
}

.traffic-request-list {
  gap: 8px;
}

.traffic-request-row {
  grid-template-columns: 1.6fr 0.8fr 0.7fr 0.9fr;
}

.traffic-topology-table {
  gap: 0;
}

.traffic-topology-table-row {
  grid-template-columns: 0.8fr 1.2fr 0.5fr 0.55fr 0.75fr 0.55fr;
}

.traffic-topology-table-row span small {
  display: block;
  color: var(--text-muted, #8b93a7);
}

.traffic-text-details {
  display: grid;
  gap: 10px;
  padding: 0 10px 12px;
}

.gateway-enterprise-command {
  overflow: hidden;
}

.gateway-command-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2fr);
  gap: 14px;
  align-items: stretch;
}

.gateway-command-score {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background:
    radial-gradient(circle at 18% 16%, rgba(103, 232, 249, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(10, 24, 48, 0.92), rgba(6, 12, 27, 0.72));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
}

.gateway-command-score-value {
  color: #67e8f9;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.38);
}

.gateway-command-score p {
  margin: 0;
  color: var(--text-soft);
}

.gateway-command-score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-command-score-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(8, 14, 30, 0.56);
  color: var(--text-soft);
  font-size: 0.72rem;
}

.gateway-command-score-success {
  border-color: rgba(34, 197, 94, 0.32);
}

.gateway-command-score-warning {
  border-color: rgba(250, 204, 21, 0.32);
}

.gateway-command-score-danger {
  border-color: rgba(248, 113, 113, 0.34);
}

.gateway-command-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gateway-command-lane,
.gateway-command-action {
  border: 1px solid rgba(80, 105, 168, 0.2);
  background: rgba(12, 21, 42, 0.72);
  color: var(--text-strong);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gateway-command-lane {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border-radius: 17px;
}

.gateway-command-lane:hover,
.gateway-command-action:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.54);
  background: rgba(14, 28, 56, 0.82);
  box-shadow: 0 12px 36px rgba(8, 145, 178, 0.13);
}

.gateway-command-lane.active {
  border-color: rgba(103, 232, 249, 0.78);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(168, 85, 247, 0.1)),
    rgba(14, 28, 56, 0.9);
  box-shadow: 0 16px 46px rgba(14, 165, 233, 0.16), inset 3px 0 0 rgba(103, 232, 249, 0.68);
}

.gateway-command-lane span,
.gateway-command-action span {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-command-lane strong {
  font-size: 1.34rem;
  letter-spacing: -0.04em;
}

.gateway-command-lane small,
.gateway-command-action small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.gateway-command-lane em {
  align-self: end;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-command-lane-success,
.gateway-command-action-success {
  border-color: rgba(34, 197, 94, 0.28);
}

.gateway-command-lane-warning,
.gateway-command-action-warning {
  border-color: rgba(250, 204, 21, 0.3);
}

.gateway-command-lane-danger,
.gateway-command-action-danger {
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.48);
}

.gateway-command-lane-neutral {
  border-color: rgba(148, 163, 184, 0.2);
  opacity: 0.86;
}

.gateway-command-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) minmax(220px, 0.7fr);
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.16), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.14), transparent 24%),
    rgba(8, 14, 30, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 20px 60px rgba(2, 6, 23, 0.18);
}

.gateway-command-detail[hidden] {
  display: none;
}

.gateway-command-detail h3 {
  margin: 4px 0 6px;
  color: var(--text-strong);
}

.gateway-command-blockers {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.gateway-command-blockers strong {
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-command-blockers ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.gateway-command-blockers p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.gateway-command-workflow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  background: rgba(8, 14, 30, 0.42);
}

.gateway-command-workflow-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
}

.gateway-command-workflow-head span {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-command-workflow-head small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.gateway-command-workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.gateway-command-step {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(80, 105, 168, 0.2);
  background: rgba(12, 21, 42, 0.62);
  color: var(--text-strong);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.gateway-command-step:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(14, 28, 56, 0.78);
}

.gateway-command-step span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.1);
  color: #67e8f9;
  font-size: 0.7rem;
  font-weight: 800;
}

.gateway-command-step strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.gateway-command-step small {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-command-step-success {
  border-color: rgba(34, 197, 94, 0.28);
}

.gateway-command-step-warning {
  border-color: rgba(250, 204, 21, 0.3);
}

.gateway-command-step-danger {
  border-color: rgba(248, 113, 113, 0.34);
}

.gateway-command-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gateway-command-actions-label {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
}

.gateway-command-actions-label span {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-command-actions-label small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.gateway-command-action {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 16px;
}

.gateway-flow-map-surface {
  display: grid;
  gap: 16px;
}

.gateway-flow-shell {
  display: grid;
  gap: 14px;
}

.gateway-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-flow-legend-item {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(80, 105, 168, 0.18);
  background: rgba(13, 22, 44, 0.54);
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1;
}

.gateway-flow-lanes {
  display: grid;
  gap: 12px;
}

.gateway-flow-lane {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) auto minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(180px, 0.95fr);
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(80, 105, 168, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 28%),
    rgba(10, 17, 35, 0.58);
}

.gateway-flow-stage {
  display: grid;
  gap: 8px;
}

.gateway-flow-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gateway-flow-stage-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-flow-node-stack,
.gateway-flow-node-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-flow-node,
.gateway-flow-chip,
.gateway-flow-sidecard {
  border: 1px solid rgba(80, 105, 168, 0.18);
  background: rgba(14, 24, 48, 0.72);
  color: var(--text-strong);
}

.gateway-flow-node,
.gateway-flow-sidecard {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  text-align: left;
}

.gateway-flow-node-primary {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.gateway-flow-node strong,
.gateway-flow-chip strong,
.gateway-flow-sidecard strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.gateway-flow-node small,
.gateway-flow-chip small,
.gateway-flow-sidecard small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.gateway-flow-chip {
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
}

.gateway-flow-mini-node {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 20, 39, 0.7);
  border: 1px solid rgba(80, 105, 168, 0.18);
  color: var(--text-soft);
  font-size: 0.72rem;
}

.gateway-flow-status-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.gateway-flow-node-edit {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-flow-node-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(9, 14, 28, 0.74);
  border: 1px solid rgba(61, 88, 150, 0.28);
  box-shadow: inset 0 1px 0 rgba(120, 150, 255, 0.06);
}

.gateway-flow-node-editor label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.gateway-flow-node-editor input,
.gateway-flow-node-editor select {
  min-height: 38px;
}

.gateway-flow-chip-selector {
  min-height: 52px;
}

.gateway-flow-draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.18));
  color: rgba(234, 179, 255, 0.96);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-flow-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-flow-checkboxes {
  display: grid;
  gap: 8px;
}

.gateway-flow-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 0.82rem;
}

.gateway-flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 1rem;
  opacity: 0.9;
}

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

.gateway-flow-sidecard {
  cursor: pointer;
}

.gateway-flow-empty {
  padding: 12px;
  border-radius: 12px;
  background: rgba(14, 24, 48, 0.54);
  color: var(--text-soft);
  font-size: 0.76rem;
}

.flow-builder-workspace {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(circle at 9% 0%, rgba(34, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at 96% 8%, rgba(244, 114, 182, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.97));
}

.flow-builder-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.08), transparent 30%, transparent 70%, rgba(168, 85, 247, 0.08)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.026) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94), transparent 78%);
}

.flow-builder-fullscreen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 119;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(10px);
}

.flow-builder-workspace > * {
  position: relative;
  z-index: 1;
}

.flow-builder-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  min-width: 108px;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
}

body.flow-builder-fullscreen-open {
  overflow: hidden;
}

.flow-builder-workspace.flow-builder-fullscreen {
  position: fixed;
  inset: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px;
  border-radius: 28px;
  border-color: rgba(103, 232, 249, 0.26);
  box-shadow: 0 32px 120px rgba(2, 6, 23, 0.48), 0 0 40px rgba(103, 232, 249, 0.1);
  overflow: auto;
}

.flow-builder-workspace.flow-builder-fullscreen .flow-builder-head-actions {
  padding-right: 122px;
}

.flow-builder-workspace.flow-builder-fullscreen .flow-builder-layout {
  flex: 1;
  min-height: 0;
  align-items: start;
}

.flow-builder-workspace.flow-builder-fullscreen .flow-builder-canvas-shell {
  min-height: 0;
  align-self: start;
}

.flow-builder-workspace.flow-builder-fullscreen .flow-builder-canvas {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  height: min(68vh, 760px);
  max-height: min(68vh, 760px);
  overflow: auto;
}

.flow-builder-workspace.flow-builder-fullscreen .flow-builder-palette-shell,
.flow-builder-workspace.flow-builder-fullscreen .flow-builder-details {
  max-height: 100%;
  overflow: auto;
}

.flow-builder-head {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.flow-builder-head .panel-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  margin-bottom: 4px;
}

.flow-builder-panel-icon {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(244, 114, 182, 0.16)),
    rgba(15, 23, 42, 0.9);
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flow-builder-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.flow-builder-head-actions #flow-builder-zoom-out,
.flow-builder-head-actions #flow-builder-zoom-in {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
  font-size: 1.05rem;
}

.flow-builder-scope {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(240px, 1.1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(8, 14, 30, 0.5);
}

.flow-builder-scope label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-builder-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(168, 85, 247, 0.08));
  color: var(--text-soft);
}

.flow-builder-status strong {
  color: #67e8f9;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-builder-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}

.flow-builder-palette-shell,
.flow-builder-canvas-shell,
.flow-builder-details {
  min-width: 0;
  border: 1px solid rgba(80, 105, 168, 0.18);
  border-radius: 22px;
  background: rgba(8, 14, 30, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flow-builder-palette-shell,
.flow-builder-details {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.flow-builder-canvas-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  min-height: 760px;
}

.flow-builder-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.flow-builder-section-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.flow-builder-canvas-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-builder-canvas-tools select {
  min-width: 150px;
}

.flow-builder-drop-hint {
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(103, 232, 249, 0.28);
  color: #67e8f9;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-builder-palette {
  display: grid;
  gap: 10px;
}

.flow-builder-canvas {
  display: block;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: min(100%, 760px);
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(103, 232, 249, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.36)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.08), transparent 44%);
  cursor: grab;
  user-select: none;
}

.flow-builder-canvas.is-panning {
  cursor: grabbing;
}

.flow-builder-palette-item,
.flow-builder-step {
  border: 1px solid rgba(80, 105, 168, 0.2);
  background: rgba(12, 21, 42, 0.72);
  color: var(--text-strong);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.flow-builder-palette-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  cursor: grab;
}

.flow-builder-palette-item:hover,
.flow-builder-step:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.52);
  background: rgba(14, 28, 56, 0.82);
  box-shadow: 0 14px 36px rgba(8, 145, 178, 0.14);
}

.flow-builder-step.is-moving {
  cursor: grabbing;
  border-color: rgba(244, 114, 182, 0.7);
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.22), 0 0 32px rgba(244, 114, 182, 0.18);
}

.flow-builder-step-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.flow-builder-palette-item strong,
.flow-builder-step strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}

.flow-builder-palette-item small,
.flow-builder-step small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.flow-builder-step {
  position: absolute;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "index index"
    "icon copy"
    "button button";
  gap: 10px 12px;
  align-content: start;
  min-width: 190px;
  max-width: 190px;
  min-height: 170px;
  padding: 14px;
  border-radius: 22px;
  cursor: grab;
  z-index: 2;
}

.flow-builder-step.active {
  border-color: rgba(103, 232, 249, 0.74);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.1)),
    rgba(14, 28, 56, 0.88);
  box-shadow: inset 3px 0 0 rgba(103, 232, 249, 0.72), 0 18px 46px rgba(8, 145, 178, 0.14);
}

.flow-builder-step-pending {
  border-color: rgba(250, 204, 21, 0.22);
}

.flow-builder-step-index {
  grid-area: index;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flow-builder-step .flow-builder-step-icon {
  grid-area: icon;
}

.flow-builder-step-copy {
  grid-area: copy;
  min-width: 0;
}

.flow-builder-step-copy em {
  display: block;
  margin-top: 8px;
  color: #67e8f9;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-builder-step-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.12), rgba(244, 114, 182, 0.55));
}

.flow-builder-step-open {
  grid-area: button;
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
}

.flow-builder-map-surface {
  position: relative;
  transform-origin: 0 0;
  transition: transform 60ms linear;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(103, 232, 249, 0.12) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
}

.flow-builder-anchor-node {
  position: absolute;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  min-width: 170px;
  max-width: 170px;
  min-height: 146px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(103, 232, 249, 0.26);
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.2), transparent 36%),
    rgba(10, 17, 35, 0.82);
  color: var(--text-strong);
  box-shadow: 0 16px 44px rgba(8, 145, 178, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.flow-builder-finish-node {
  border-color: rgba(244, 114, 182, 0.36);
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 114, 182, 0.2), transparent 36%),
    rgba(10, 17, 35, 0.82);
  box-shadow: 0 16px 44px rgba(168, 85, 247, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flow-builder-anchor-node strong {
  font-size: 0.95rem;
}

.flow-builder-anchor-node small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.flow-builder-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.flow-builder-wires path {
  fill: none;
  stroke: #16c7e8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.34));
}

.flow-builder-node-port {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.86);
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.54);
  transform: translateY(-50%);
}

.flow-builder-node-port-in {
  left: -5px;
}

.flow-builder-node-port-out {
  right: -5px;
}

.flow-builder-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(103, 232, 249, 0.28);
  background: rgba(8, 14, 30, 0.38);
  color: var(--text-soft);
  text-align: center;
}

.flow-builder-empty strong {
  color: var(--text-strong);
  font-size: 1.18rem;
}

.flow-builder-empty p {
  max-width: 520px;
  margin: 0;
}

.flow-builder-details .status-list {
  margin-top: 2px;
}

.flow-builder-inspector-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(80, 105, 168, 0.16);
  background: rgba(10, 18, 36, 0.54);
}

.flow-builder-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.flow-builder-inspector-actions .button-primary,
.flow-builder-inspector-actions .danger-button {
  grid-column: 1 / -1;
}

.flow-builder-manager-title {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-builder-manager-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.flow-builder-manager-strip-head .flow-builder-manager-title {
  margin-top: 0;
}

.flow-builder-manager-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(8, 14, 30, 0.58);
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.flow-builder-manager-list {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.flow-builder-manager-empty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(103, 232, 249, 0.18);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.flow-builder-manager-chip {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 168px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(80, 105, 168, 0.18);
  background: rgba(8, 14, 30, 0.46);
  color: var(--text);
  text-align: left;
}

.flow-builder-manager-chip.active {
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: inset 2px 0 0 rgba(103, 232, 249, 0.72);
  background: rgba(10, 22, 42, 0.72);
}

.flow-builder-manager-chip-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.flow-builder-manager-chip-copy strong,
.flow-builder-manager-chip-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-builder-manager-chip-copy strong {
  color: var(--text-strong);
  font-size: 0.8rem;
}

.flow-builder-manager-chip-copy small {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.flow-builder-manager-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  color: #67e8f9;
  font-size: 0.7rem;
  font-weight: 900;
}

.flow-builder-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.flow-builder-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 1180px) {
  body[data-ui="v2"] .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-context {
    display: grid;
    gap: 10px;
  }

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

  .command-palette-shell {
    min-width: min(100%, 560px);
  }

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

  .traffic-intensity-lane {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .gateway-flow-lane {
    grid-template-columns: 1fr;
  }

  .gateway-flow-arrow {
    transform: rotate(90deg);
  }

  .gateway-flow-sidecars {
    grid-template-columns: 1fr;
  }

  .gateway-command-layout,
  .gateway-command-actions {
    grid-template-columns: 1fr;
  }

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

  .gateway-command-detail {
    grid-template-columns: 1fr;
  }

  .gateway-command-workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-builder-layout,
  .flow-builder-scope {
    grid-template-columns: 1fr;
  }

  .flow-builder-canvas-shell {
    min-height: 0;
  }

  .flow-builder-canvas {
    min-height: 420px;
    height: auto;
  }

  .flow-builder-edit-grid,
  .flow-builder-inspector-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-context {
    display: grid;
  }

  .global-scope-bar,
  .topbar-actions {
    display: grid;
    width: 100%;
  }

  .global-scope-bar label,
  .command-palette-shell {
    width: 100%;
  }

  .command-palette-results {
    left: 0;
    right: auto;
    width: 100%;
  }

  .command-palette-results button {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gateway-command-lanes {
    grid-template-columns: 1fr;
  }

  .gateway-command-workflow-head,
  .gateway-command-actions-label {
    display: grid;
  }

  .gateway-command-workflow-steps {
    grid-template-columns: 1fr;
  }
}

.panel-head-actions select {
  min-height: 32px;
  min-width: 140px;
}

.benchmark-row {
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.9fr 0.9fr;
}

.provider-history-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 42px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.provider-history-bar {
  flex: 1 1 0;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.94), rgba(124, 58, 237, 0.82));
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.14);
}

.anomaly-row {
  align-items: flex-start;
}

.anomaly-row-warning {
  border-color: rgba(245, 158, 11, 0.26);
}

.anomaly-row-critical {
  border-color: rgba(239, 68, 68, 0.26);
}

.triage-row {
  grid-template-columns: 0.6fr 1.8fr 0.9fr;
}

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

.scorecard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(65, 85, 127, 0.16);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 74%),
    var(--bg-panel);
}

.scorecard-success {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 74%),
    var(--bg-panel);
}

.scorecard-warning {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 74%),
    var(--bg-panel);
}

.scorecard-danger {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 74%),
    var(--bg-panel);
}

.scorecard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.scorecard-head small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
}

.scorecard-hero {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.scorecard-ring {
  --score-angle: calc(var(--score, 0) * 3.6deg);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(9, 15, 28, 0.96) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(56, 189, 248, 0.95) 0deg var(--score-angle), rgba(78, 92, 122, 0.22) var(--score-angle) 360deg);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.24);
}

.scorecard-ring strong {
  font-size: 22px;
  line-height: 1;
  color: var(--text-strong);
}

.scorecard-ring small {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.scorecard-ring-success {
  background:
    radial-gradient(circle at center, rgba(9, 15, 28, 0.96) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(16, 185, 129, 0.95) 0deg var(--score-angle), rgba(78, 92, 122, 0.22) var(--score-angle) 360deg);
}

.scorecard-ring-warning {
  background:
    radial-gradient(circle at center, rgba(9, 15, 28, 0.96) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(245, 158, 11, 0.95) 0deg var(--score-angle), rgba(78, 92, 122, 0.22) var(--score-angle) 360deg);
}

.scorecard-ring-danger {
  background:
    radial-gradient(circle at center, rgba(9, 15, 28, 0.96) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(239, 68, 68, 0.95) 0deg var(--score-angle), rgba(78, 92, 122, 0.22) var(--score-angle) 360deg);
}

.scorecard-metrics {
  display: grid;
  gap: 10px;
}

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

.scorecard-metric-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scorecard-metric-copy span {
  color: var(--text-soft);
  font-size: 12px;
}

.scorecard-metric-copy strong {
  color: var(--text-strong);
}

.scorecard-metric-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.scorecard-metric-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.88));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

.scorecard-metric-bar-danger {
  background: rgba(239, 68, 68, 0.12);
}

.scorecard-metric-bar-danger span {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.95), rgba(239, 68, 68, 0.88));
}

.scorecard-metric-bar-amber {
  background: rgba(245, 158, 11, 0.12);
}

.scorecard-metric-bar-amber span {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(245, 158, 11, 0.88));
}

.scorecard-metric-bar-cyan {
  background: rgba(34, 211, 238, 0.12);
}

.scorecard-metric-bar-cyan span {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), rgba(34, 211, 238, 0.88));
}

.scorecard-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.scorecard-history {
  display: grid;
  gap: 8px;
}

.scorecard-history-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.scorecard-foot-copy {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.scorecard-foot-copy span {
  color: var(--text-muted);
  font-size: 11px;
}

.scorecard-foot-copy strong {
  color: var(--text-strong);
}

.change-row {
  grid-template-columns: 1fr 1.2fr 1fr 0.8fr;
}

.subtle-card .panel-head {
  margin-bottom: 14px;
}

.subtle-card .panel-copy h3,
.panel-card .panel-copy h3 {
  letter-spacing: -0.01em;
}

.section-guide-card {
  margin-bottom: 12px;
}

.section-guide-block {
  display: grid;
  gap: 8px;
}

.section-guide-card .muted {
  margin: 0 0 10px;
}

.section-guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
}

.section-guide-list li {
  line-height: 1.45;
}

.section-guide-list-plain {
  list-style: disc;
}

.wizard-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.wizard-shell.open {
  display: flex;
}

.wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.wizard-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  padding: 0;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(65, 85, 127, 0.24);
  background: var(--bg-panel);
  box-shadow: 0 32px 96px rgba(2, 6, 23, 0.5);
}

.wizard-panel .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(65, 85, 127, 0.16);
  background: inherit;
}

.wizard-panel .panel-copy h3 {
  margin-bottom: 4px;
}

.wizard-progress,
.wizard-panel > #wizard-guidance,
.wizard-panel > #wizard-body,
.wizard-panel > #wizard-message,
.wizard-panel > .wizard-actions {
  padding-left: 24px;
  padding-right: 24px;
}

.wizard-progress {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(65, 85, 127, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

.wizard-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
}

.wizard-progress-copy strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.wizard-progress-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(65, 85, 127, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.wizard-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(65, 85, 127, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.wizard-step-pill-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.wizard-step-pill.active {
  color: var(--text);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.14);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.wizard-step-pill.active .wizard-step-pill-index {
  background: rgba(6, 182, 212, 0.22);
  color: var(--accent-strong);
}

.wizard-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.wizard-panel > #wizard-guidance {
  padding-top: 18px;
}

.wizard-panel > #wizard-guidance .inline-guidance {
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: 16px;
}

.wizard-panel > #wizard-body > .inline-guidance {
  padding: 16px 18px;
  border-radius: 16px;
}

.wizard-panel .wizard-form-grid,
.wizard-panel .wizard-choice-grid,
.wizard-panel .wizard-summary {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(65, 85, 127, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.wizard-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wizard-choice-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(65, 85, 127, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.wizard-choice-button strong {
  font-size: 0.94rem;
}

.wizard-choice-button small {
  color: var(--text-soft);
  line-height: 1.4;
}

.wizard-choice-button.active {
  border-color: rgba(6, 182, 212, 0.34);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08);
  transform: translateY(-1px);
}

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

.wizard-form-grid .form-span-2 {
  grid-column: 1 / -1;
}

.wizard-summary {
  display: grid;
  gap: 10px;
}

.wizard-model-discovery {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.wizard-model-discovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wizard-choice-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-summary-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(65, 85, 127, 0.12);
}

.wizard-summary-row span {
  color: var(--text-muted);
}

.wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(65, 85, 127, 0.12);
  background: inherit;
}

body[data-theme="light"] .wizard-backdrop {
  background: rgba(241, 245, 249, 0.88);
  backdrop-filter: none;
}

body[data-theme="light"] .wizard-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.18);
}

body[data-theme="light"] .wizard-panel .panel-head,
body[data-theme="light"] .wizard-actions {
  background: #ffffff;
}

body[data-theme="light"] .wizard-progress {
  background: #f8fafc;
}

body[data-theme="light"] .wizard-progress-copy strong {
  color: #0f172a;
}

body[data-theme="light"] .wizard-progress-copy span {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.24);
  color: #64748b;
}

body[data-theme="light"] .wizard-step-pill {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.22);
  color: #64748b;
}

body[data-theme="light"] .wizard-step-pill-index {
  background: #eef4ff;
}

body[data-theme="light"] .wizard-step-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .wizard-step-pill.active .wizard-step-pill-index {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body[data-theme="light"] .wizard-choice-button {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="light"] .wizard-choice-button.active {
  background: rgba(8, 145, 178, 0.1);
}

body[data-theme="light"] .wizard-panel > #wizard-guidance .inline-guidance,
body[data-theme="light"] .wizard-panel > #wizard-body > .inline-guidance,
body[data-theme="light"] .wizard-panel .wizard-form-grid,
body[data-theme="light"] .wizard-panel .wizard-choice-grid,
body[data-theme="light"] .wizard-panel .wizard-summary {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 24px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .wizard-panel > #wizard-guidance .inline-guidance-info,
body[data-theme="light"] .wizard-panel > #wizard-body > .inline-guidance-info {
  background: #eff6ff;
  border-color: rgba(8, 145, 178, 0.24);
}

@media (max-width: 720px) {
  .wizard-shell {
    align-items: flex-start;
    padding: 12px;
  }

  .wizard-panel {
    width: min(100vw - 24px, 760px);
    max-height: calc(100vh - 24px);
  }

  .wizard-panel .panel-head,
  .wizard-progress,
  .wizard-panel > #wizard-guidance,
  .wizard-panel > #wizard-body,
  .wizard-panel > #wizard-message,
  .wizard-panel > .wizard-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wizard-panel .panel-head {
    padding-top: 16px;
  }

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

  .wizard-summary-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.empty-state-inline {
  min-height: 0;
  padding: 14px 16px;
  text-align: left;
}

.empty-state-inline p {
  margin: 6px 0 0;
}

.ops-card strong,
.module-card strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.3;
}

.activity-table,
.resource-table,
.status-list,
.permission-grid {
  display: grid;
  gap: 8px;
}

.table-row,
.status-row,
.permission-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(65, 85, 127, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 74%),
    var(--bg-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 1px 0 rgba(2, 6, 23, 0.1);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.resource-table .table-row:not(.table-head):hover,
.activity-table .table-row:not(.table-head):hover {
  border-color: rgba(6, 182, 212, 0.24);
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.045), transparent 82%),
    var(--bg-panel-soft);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(2, 6, 23, 0.16),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

.table-row {
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr 0.8fr;
}

.table-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.table-row span,
.status-row span,
.permission-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row strong,
.status-row strong {
  color: var(--text-strong);
  line-height: 1.25;
}

.card h3,
.metric h3,
.ops-card strong,
.module-card strong,
.panel-copy h3,
.table-row strong,
.status-row strong,
.permission-row strong {
  color: var(--text-strong);
}

.main .card h3,
.main .metric h3,
.main .panel-copy h3 {
  color: #eaf2ff;
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.16);
}

.main .ops-card strong,
.main .module-card strong {
  color: #dff7ff;
  text-shadow: 0 0 16px rgba(6, 182, 212, 0.14);
}

.main .table-row strong,
.main .status-row strong,
.main .permission-row strong {
  color: #f2f6ff;
}

.card .muted,
.metric .muted,
.ops-card .muted,
.module-card .muted,
.table-row small,
.mini-chart-copy small,
.mini-chart-value {
  color: var(--text-muted);
}

.card .eyebrow,
.metric .eyebrow,
.panel-copy .eyebrow,
.ops-card .eyebrow,
.module-card .eyebrow {
  color: var(--text-soft);
}

.main .card .eyebrow,
.main .metric .eyebrow,
.main .panel-copy .eyebrow,
.main .ops-card .eyebrow,
.main .module-card .eyebrow {
  color: #6ee7ff;
  text-shadow: 0 0 14px rgba(6, 182, 212, 0.18);
}

.main .form-message {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.14);
}

.main .mini-chart-value {
  color: #c4b5fd;
  text-shadow: 0 0 14px rgba(124, 58, 237, 0.16);
}

body[data-theme="light"] .main .card h3,
body[data-theme="light"] .main .metric h3,
body[data-theme="light"] .main .panel-copy h3,
body[data-theme="light"] .main .ops-card strong,
body[data-theme="light"] .main .module-card strong,
body[data-theme="light"] .main .table-row strong,
body[data-theme="light"] .main .status-row strong,
body[data-theme="light"] .main .permission-row strong {
  text-shadow: none;
}

body[data-theme="light"] .main .card .eyebrow,
body[data-theme="light"] .main .metric .eyebrow,
body[data-theme="light"] .main .panel-copy .eyebrow,
body[data-theme="light"] .main .ops-card .eyebrow,
body[data-theme="light"] .main .module-card .eyebrow,
body[data-theme="light"] .main .form-message,
body[data-theme="light"] .main .mini-chart-value {
  text-shadow: none;
}

.table-row small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.3;
  word-break: break-word;
}

.provider-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.provider-row-copy {
  min-width: 0;
}

.provider-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: 0 0 auto;
  overflow: hidden;
}

.provider-brand-mark img,
.provider-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-row-model {
  grid-template-columns: 1.3fr 1fr 1.5fr 0.8fr;
}

.table-row-provider-validation {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1.4fr 0.6fr;
}

.table-row-provider-validation-expanded {
  border-top: 0;
  margin-top: -0.2rem;
}

.table-row-provider-expanded-detail {
  grid-template-columns: 1fr 0 0 0 0 0;
  padding-top: 0;
}

.table-row-provider-expanded-detail > span:first-child {
  grid-column: 1 / -1;
}

.compact-status-list {
  margin-top: 0.45rem;
}

.compact-status-list .status-row {
  padding-inline: 0;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.inline-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-soft);
  font-size: 0.73rem;
  line-height: 1.2;
}

.resource-table .table-row:has([data-service-key-toggle]) {
  grid-template-columns: 1.1fr 0.8fr 1fr 1.2fr 0.9fr 1.2fr;
}

#service-keys-list {
  overflow-x: auto;
}

#service-keys-list .service-key-row {
  grid-template-columns:
    70px
    minmax(160px, 1.05fr)
    minmax(92px, 0.56fr)
    minmax(170px, 0.92fr)
    minmax(150px, 0.74fr)
    minmax(156px, 0.82fr)
    minmax(250px, 1fr);
  min-width: 1040px;
  column-gap: 10px;
}

#service-keys-list .table-head.service-key-row {
  align-items: center;
  padding: 7px 12px;
  min-height: 46px;
}

#service-keys-list .table-head.service-key-row > span {
  min-width: 0;
  overflow: hidden;
}

#service-keys-list .service-key-row:not(.table-head) {
  min-height: 74px;
  padding: 10px 12px;
}

#service-keys-list .service-key-row > span {
  align-self: center;
}

#service-keys-list .service-key-row small {
  margin-top: 2px;
}

.table-head-button,
.table-head-static {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #67e8f9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
  white-space: nowrap;
}

.table-head-button {
  cursor: pointer;
}

.table-head-button span,
.table-head-button small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.table-head-button small {
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

.table-head-button em {
  color: rgba(103, 232, 249, 0.72);
  font-style: normal;
}

.table-head-button:hover,
.table-head-button.is-active {
  color: #ecfeff;
}

.table-head-button:hover small,
.table-head-button.is-active small {
  border-color: rgba(103, 232, 249, 0.28);
  color: #cffafe;
}

.table-head-button-select {
  grid-template-columns: auto;
  justify-content: start;
}

.table-head-button-select span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

#service-keys-list .service-key-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: max-content;
}

#service-keys-list .service-key-actions .button-secondary,
#service-keys-list .service-key-actions .button-ghost,
#service-keys-list .service-key-actions .danger-button {
  min-height: 28px;
  padding: 0.28rem 0.46rem;
  border-radius: 9px;
  font-size: 0.68rem;
  white-space: nowrap;
}

#service-keys-list .service-key-detail-row {
  min-height: auto;
}

#service-keys-list .service-key-detail-row > span:first-child {
  grid-column: 1 / -1;
}

body[data-theme="light"] .table-head-button,
body[data-theme="light"] .table-head-static {
  color: #0891b2;
  text-shadow: none;
}

.table-head,
.permission-head {
  color: var(--text-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.015);
  border-style: solid;
}

.table-head span,
.permission-head span {
  line-height: 1.3;
}

.table-actions,
.card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

#settings-overview-note {
  margin-bottom: 12px;
}

.settings-modal-shell {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.settings-modal-dialog {
  width: 100%;
  max-height: none;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.settings-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.settings-modal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-modal-nav-item {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.settings-modal-nav-item.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-strong);
}

.settings-modal-content {
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.settings-modal-content .section-panel {
  display: none;
}

.settings-modal-content .section-panel.active {
  display: block;
}

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

.identity-provider-kind-choice {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.identity-provider-kind-choice.active {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.identity-provider-kind-title {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1rem;
}

.identity-provider-kind-shell {
  display: none;
  gap: 16px;
}

.identity-provider-kind-shell.active {
  display: grid;
}

.identity-provider-inline-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.guide-center-toolbar {
  display: grid;
  gap: 14px;
  margin: 18px 0 20px;
}

.topbar-help-button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.guide-center-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.guide-center-search input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-center-search input:focus {
  box-shadow: none;
}

.guide-center-search-icon {
  color: var(--accent-strong);
  font-size: 0.9rem;
  line-height: 1;
}

.guide-center-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-center-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.guide-center-category.active {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-strong);
}

.guide-center-group {
  overflow: visible;
}

.guide-center-group-title,
.guide-center-card-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-center-group-icon,
.guide-center-card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--text-strong);
  flex: 0 0 auto;
}

.guide-center-card {
  height: 100%;
}

.playbooks-drawer-panel {
  width: min(560px, 100%);
}

.playbooks-drawer-toolbar {
  margin-top: 16px;
}

body[data-theme="light"] .guide-center-search {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
}

body[data-theme="light"] .settings-modal-shell,
body[data-theme="light"] .settings-modal-dialog {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#settings-quick-actions,
#settings-license-actions {
  justify-content: flex-start;
}

.table-actions {
  align-items: center;
  gap: 5px;
}

.table-actions button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.table-actions .button-with-icon {
  gap: 6px;
}

.table-actions .button-icon-prefix {
  width: 12px;
  height: 12px;
  font-size: 0.68rem;
}

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

.filter-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.section-panel[data-section-panel="incidents"] .filter-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.section-panel[data-section-panel="incidents"] .filter-row > label {
  min-width: 0;
}

#incident-provider-list .table-row {
  grid-template-columns: minmax(240px, 1.3fr) minmax(120px, 0.68fr) minmax(110px, 0.62fr) minmax(320px, 1.35fr);
}

#incident-provider-list .table-row > span:last-child,
#incident-timeline-list .table-row > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#incident-timeline-list .table-row {
  grid-template-columns: minmax(320px, 1.7fr) minmax(140px, 0.78fr) minmax(140px, 0.78fr) minmax(260px, 1fr);
}

.bulk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-preset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.provider-preset-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  border-color: rgba(65, 85, 127, 0.18);
}

.provider-preset-button::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.82), rgba(124, 58, 237, 0.88), rgba(37, 99, 235, 0.82));
  opacity: 0.9;
}

.provider-preset-button:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 16px 28px rgba(9, 20, 46, 0.24), 0 0 24px rgba(37, 99, 235, 0.16);
}

.providers-shell {
  display: grid;
  gap: 12px;
  align-items: start;
}

.providers-toolbar-surface {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
}

.providers-toolbar-copy {
  display: grid;
  gap: 4px;
  max-width: 560px;
}

.providers-toolbar-copy h3 {
  margin: 0;
}

.providers-empty-state[hidden] {
  display: none;
}

.providers-empty-state {
  display: block;
}

.providers-empty-shell {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 10px auto 0;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(80, 105, 168, 0.18);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(8, 16, 36, 0.18));
}

.providers-empty-shell h3 {
  margin: 0;
}

.providers-main,
.providers-rail,
.providers-secondary {
  min-width: 0;
}

.providers-connected-surface,
.providers-models-surface {
  display: grid;
  gap: 10px;
}

.models-workspace {
  position: relative;
  overflow: hidden;
  gap: 16px;
  border-color: rgba(168, 85, 247, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.16), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
}

.models-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.08), transparent 30%, transparent 68%, rgba(20, 184, 166, 0.08)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.026) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 72%);
}

.models-workspace > * {
  position: relative;
  z-index: 1;
}

.models-workspace-head {
  align-items: flex-start;
  gap: 18px;
}

.models-workspace-head .panel-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  margin-bottom: 4px;
}

.models-panel-icon {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(20, 184, 166, 0.16)),
    rgba(15, 23, 42, 0.9);
  color: #c4b5fd;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 0 24px rgba(168, 85, 247, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.models-decision-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.42), rgba(15, 23, 42, 0.72)),
    rgba(2, 6, 23, 0.34);
}

.models-decision-bar span {
  position: relative;
  min-width: 0;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.58);
}

.models-decision-bar span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4b5fd, #67e8f9);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.38);
}

.models-decision-bar strong,
.models-decision-bar small {
  display: block;
}

.models-decision-bar strong {
  color: #f5f3ff;
  font-size: 0.92rem;
}

.models-decision-bar small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.models-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.models-primary,
.models-rail {
  min-width: 0;
}

.models-rail {
  display: grid;
  gap: 14px;
}

.models-primary {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    rgba(2, 6, 23, 0.24);
}

.models-table-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.models-table-headline h3 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.models-table-headline > p {
  max-width: 460px;
  margin: 0;
  text-align: right;
}

.models-resource-table {
  overflow-x: auto;
}

.models-resource-table .model-capability-row {
  min-width: 1040px;
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(170px, 0.95fr)
    64px
    64px
    64px
    64px
    64px
    minmax(95px, 0.65fr)
    minmax(90px, 0.65fr)
    minmax(250px, 1.15fr);
}

.models-resource-table .table-head {
  color: #c4b5fd;
  letter-spacing: 0.12em;
}

.models-resource-table .table-row-model {
  border-color: rgba(168, 85, 247, 0.12);
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.055), transparent 38%),
    rgba(15, 23, 42, 0.54);
}

.models-resource-table .table-row-model:hover {
  border-color: rgba(45, 212, 191, 0.26);
  box-shadow:
    0 16px 32px rgba(2, 6, 23, 0.18),
    0 0 0 1px rgba(168, 85, 247, 0.08);
}

.models-resource-table .table-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.capability-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.capability-dot-on {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.26), transparent 56%),
    rgba(8, 47, 73, 0.58);
  color: #99f6e4;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.08),
    0 0 16px rgba(45, 212, 191, 0.18);
}

.model-control-summary {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr minmax(180px, 0.84fr);
  gap: 10px;
}

.model-summary-card,
.model-control-summary-actions {
  position: relative;
  overflow: hidden;
}

.model-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.16), transparent 42%);
}

.model-summary-card-primary::before {
  background: radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.2), transparent 42%);
}

.models-side-card,
.models-composer-shell {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.06), transparent 42%),
    rgba(15, 23, 42, 0.62);
}

.models-composer-shell[hidden] {
  display: none !important;
}

.models-side-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.models-side-card-head h3 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.025em;
}

.models-side-card .status-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  background: rgba(15, 23, 42, 0.52);
}

body[data-theme="light"] .models-workspace {
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.12), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.1), transparent 32%),
    #ffffff;
}

body[data-theme="light"] .models-primary,
body[data-theme="light"] .models-side-card,
body[data-theme="light"] .models-composer-shell,
body[data-theme="light"] .models-decision-bar span,
body[data-theme="light"] .models-resource-table .table-row-model {
  background: rgba(255, 255, 255, 0.76);
}

body[data-theme="light"] .models-decision-bar strong,
body[data-theme="light"] .models-table-headline h3,
body[data-theme="light"] .models-side-card-head h3 {
  color: #0f172a;
}

.providers-models-surface[hidden] {
  display: none !important;
}

.providers-aux-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.providers-support-hidden[hidden] {
  display: none !important;
}

.providers-summary-strip {
  margin-bottom: 0;
}

.providers-summary-strip.metrics-inline {
  gap: 10px;
}

.providers-summary-strip .metric {
  min-height: 96px;
  padding: 14px;
}

.providers-summary-strip .metric h3 {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1rem;
}

.providers-connected-surface .resource-table,
.providers-models-surface .resource-table {
  margin-top: 0;
}

.model-control-summary article {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  background: rgba(8, 14, 30, 0.44);
}

.model-control-summary span {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-control-summary strong {
  color: var(--text-strong);
  font-size: 1.2rem;
  line-height: 1.1;
}

.model-control-summary small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.model-control-summary-actions {
  align-content: center;
}

.model-control-summary-actions .button-secondary {
  justify-content: center;
  width: 100%;
}

.providers-connected-surface .resource-table {
  overflow-x: auto;
}

.providers-rail .llm-integrations-surface,
.providers-rail .subtle-card,
.providers-secondary .subtle-card {
  margin-bottom: 0;
}

.provider-quick-connect-card {
  display: grid;
  gap: 16px;
}

.provider-quick-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-quick-connect-actions .button-primary,
.provider-quick-connect-actions .button-secondary,
.provider-quick-connect-actions .button-ghost {
  min-height: 40px;
}

.providers-connected-surface .table-row {
  align-items: start;
}

.providers-connected-surface .table-actions {
  justify-content: flex-start;
}

.providers-connected-surface .table-row {
  grid-template-columns: minmax(232px, 1.34fr) minmax(124px, 0.72fr) minmax(184px, 0.88fr) 64px minmax(312px, 1.08fr);
  column-gap: 14px;
  min-width: 980px;
}

.providers-connected-surface .panel-head {
  gap: 8px;
}

.providers-connected-surface .panel-head .muted,
.providers-toolbar-copy .muted {
  font-size: 0.82rem;
  line-height: 1.45;
}

.providers-connected-surface .table-row {
  padding: 12px 16px;
}

.providers-connected-surface .table-row[data-provider-row] {
  cursor: pointer;
}

.providers-connected-surface .table-row[data-provider-row]:hover {
  border-color: rgba(34, 211, 238, 0.2);
}

.providers-connected-surface .table-row > span:first-child {
  padding-left: 0;
  justify-self: start;
}

.providers-connected-surface .table-row > span:nth-child(2),
.providers-connected-surface .table-row > span:nth-child(3),
.providers-connected-surface .table-row > span:nth-child(4) {
  margin-left: -36px;
}

.providers-connected-surface .table-row > span:last-child {
  padding-right: 0;
  justify-self: start;
  min-width: 0;
  overflow: visible;
}

.providers-connected-surface .table-head {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.68rem;
  white-space: nowrap;
  color: #67e8f9;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.24), 0 0 18px rgba(6, 182, 212, 0.14);
  letter-spacing: 0.14em;
}

.providers-connected-surface .table-head > span {
  width: auto;
  justify-self: start;
  text-align: left;
}

.providers-connected-surface .table-head > span:first-child {
  padding-left: 0;
}

.providers-connected-surface .table-head > span:nth-child(2),
.providers-connected-surface .table-head > span:nth-child(3),
.providers-connected-surface .table-head > span:nth-child(4) {
  margin-left: -36px;
}

.providers-connected-surface .table-head > span:last-child {
  padding-left: 8px;
  padding-right: 0;
}

.providers-connected-surface .table-actions {
  gap: 4px;
  flex-wrap: nowrap;
  overflow: visible;
}

.providers-connected-surface .button-primary,
.providers-connected-surface .button-secondary,
.providers-connected-surface .button-ghost,
.providers-toolbar-surface .button-primary,
.providers-toolbar-surface .button-secondary,
.providers-toolbar-surface .button-ghost {
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 10px;
  font-size: 0.78rem;
}

.providers-connected-surface .badge {
  min-height: 1.45rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
}

.providers-connected-surface .provider-row-main {
  gap: 8px;
  padding-right: 8px;
}

.providers-connected-surface .provider-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.providers-connected-surface .provider-row-copy strong {
  font-size: 0.86rem;
}

.providers-connected-surface .table-row small {
  margin-top: 2px;
  font-size: 0.68rem;
}

.provider-signals {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.provider-signal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.provider-signal svg {
  width: 12px;
  height: 12px;
  display: block;
}

.provider-signal::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #eaf2ff;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 5;
}

.provider-signal:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.provider-signal.is-active {
  border-color: rgba(217, 70, 239, 0.34);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.16));
  color: #f5d0fe;
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.08), 0 0 12px rgba(192, 38, 211, 0.34);
}

.provider-signal.is-danger {
  border-color: rgba(248, 113, 113, 0.12);
}

.provider-signal.is-danger.is-active {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.08), 0 0 12px rgba(248, 113, 113, 0.28);
}

.provider-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  padding-left: 8px;
  min-width: max-content;
  overflow: visible;
}

.provider-action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(148, 163, 184, 0.08);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.03);
}

.provider-action-button svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 1.9;
}

.provider-action-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #eaf2ff;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 40;
}

.provider-action-button:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.provider-action-button:hover {
  border-color: rgba(217, 70, 239, 0.34);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.16));
  color: #f5d0fe;
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.08), 0 0 10px rgba(192, 38, 211, 0.28);
}

.provider-action-button.is-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.16);
}

.provider-action-button.is-danger:hover {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.08), 0 0 10px rgba(248, 113, 113, 0.24);
}

.llm-integrations-surface {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(80, 105, 168, 0.18);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(8, 16, 36, 0.22));
}

.llm-integrations-toolbar {
  display: grid;
  gap: 10px;
}

.llm-integrations-search {
  display: grid;
  gap: 6px;
}

.llm-integrations-search span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
}

.llm-integrations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.llm-integrations-filters .button-secondary.active {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

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

.llm-integration-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(80, 105, 168, 0.16);
  background: rgba(10, 17, 35, 0.54);
}

.llm-integration-card.is-connected {
  border-color: rgba(16, 185, 129, 0.24);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.llm-integration-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.llm-integration-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(91, 124, 201, 0.22);
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
}

.llm-integration-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(7, 13, 28, 0.18));
}

.llm-integration-icon[data-fallback]::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.llm-integration-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.llm-integration-copy strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.llm-integration-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.llm-integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.llm-integration-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.llm-integration-status {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.35;
}

.llm-integration-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.llm-integration-connect {
  min-width: 104px;
}

@media (max-width: 1040px) {
  .providers-toolbar-surface {
    align-items: flex-start;
    flex-direction: column;
  }

  .providers-aux-grid {
    grid-template-columns: 1fr;
  }

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

  .models-layout {
    grid-template-columns: 1fr;
  }

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

  .llm-integrations-grid {
    grid-template-columns: 1fr;
  }

  .llm-integration-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .providers-shell {
    gap: 16px;
  }

  .llm-integration-action-group {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .model-control-summary {
    grid-template-columns: 1fr;
  }

  .models-workspace-head,
  .models-table-headline {
    display: grid;
  }

  .models-decision-bar {
    grid-template-columns: 1fr;
  }

  .models-primary,
  .models-side-card,
  .models-composer-shell {
    padding: 12px;
  }

  .models-table-headline > p {
    text-align: left;
  }
}

.provider-brand-mark {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.provider-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.provider-brand-copy strong {
  display: block;
  line-height: 1.2;
  font-size: 0.84rem;
}

.provider-brand-copy small {
  display: block;
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1.25;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.label-inline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.label-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(65, 85, 127, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 72%),
    var(--bg-input);
  color: var(--text);
  line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 1px 0 rgba(15, 23, 42, 0.12);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.48);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 78%),
    var(--bg-input);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.14),
    0 12px 28px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  background: var(--bg-panel);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(65, 85, 127, 0.14);
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

button:hover {
  background: var(--bg-panel-soft);
  border-color: rgba(15, 132, 255, 0.2);
  filter: none;
  transform: translateY(-1px);
}

.button-primary,
.nav-cta,
.primary-link {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

body[data-theme="light"] .button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(37, 99, 235, 0.22);
}

body[data-theme="light"] .card::after,
body[data-theme="light"] .metric::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06), transparent 72%);
}

body[data-theme="light"] .panel-head > div > .eyebrow::before,
body[data-theme="light"] .metric > .eyebrow::before,
body[data-theme="light"] .ops-card > .eyebrow::before,
body[data-theme="light"] .module-card > .eyebrow::before {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  box-shadow: none;
}

body[data-theme="light"] .empty-state {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.035), transparent 60%),
    var(--bg-panel-soft);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body[data-theme="light"] .empty-state::before {
  background: rgba(109, 40, 217, 0.08);
  color: #6d28d9;
  box-shadow: none;
}

body[data-theme="light"] .drawer-panel {
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.03), transparent 24%),
    #ffffff;
  box-shadow:
    -20px 0 42px rgba(148, 163, 184, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .card::before,
body[data-theme="light"] .metric::before,
body[data-theme="light"] .sidebar-card::before {
  opacity: 0.24;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), rgba(14, 165, 233, 0.3), rgba(255, 255, 255, 0));
}

body[data-theme="light"] .metrics-featured::before {
  opacity: 0.26;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08), transparent 20%),
    radial-gradient(circle at 46% 0%, rgba(59, 130, 246, 0.08), transparent 22%),
    radial-gradient(circle at 88% 26%, rgba(168, 85, 247, 0.05), transparent 18%);
}

body[data-theme="light"] .clickable-card:hover {
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 12px 26px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(96, 165, 250, 0.06);
}

body[data-theme="light"] .panel-icon {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.06));
  border-color: rgba(96, 165, 250, 0.14);
  color: #2563eb;
}

body[data-theme="light"] .panel-icon-subtle {
  background: #f4f7fb;
  border-color: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

body[data-theme="light"] .table-row,
body[data-theme="light"] .status-row,
body[data-theme="light"] .permission-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 0 rgba(148, 163, 184, 0.08);
}

body[data-theme="light"] .resource-table .table-row:not(.table-head):hover,
body[data-theme="light"] .activity-table .table-row:not(.table-head):hover {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(243, 247, 252, 1));
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.1);
}

body[data-theme="light"] .composer-form,
body[data-theme="light"] .ops-card,
body[data-theme="light"] .module-card,
body[data-theme="light"] .resource-table,
body[data-theme="light"] .activity-table {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 248, 252, 0.99));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-theme="light"] .empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 1));
  border-color: rgba(148, 163, 184, 0.14);
}

body[data-theme="light"] .empty-state::before {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}

body[data-theme="light"] .code-surface,
body[data-theme="light"] pre,
body[data-theme="light"] code {
  background: #f6f8fc;
  border-color: rgba(148, 163, 184, 0.14);
}

body[data-theme="light"] .wizard-panel {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.18);
}

body[data-theme="light"] .notice-bar,
body[data-theme="light"] .inline-guidance,
body[data-theme="light"] .compare-card,
body[data-theme="light"] .accent-panel {
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.06);
}

body[data-theme="light"] .topbar h2 {
  color: #0f172a;
}

body[data-theme="light"] .topbar-copy .eyebrow {
  color: #64748b;
}

body[data-theme="light"] .badge {
  color: #155e75;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(37, 99, 235, 0.06));
}

body[data-theme="light"] .provider-preset-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
}

body[data-theme="light"] .compare-card {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .accent-panel {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 34%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.035), transparent 48%),
    var(--bg-panel);
}

.button-primary:hover,
.nav-cta:hover,
.primary-link:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.button-secondary,
.secondary-link {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--bg-panel);
  color: var(--text);
  border: 1px solid rgba(65, 85, 127, 0.14);
}

.button-secondary:hover,
.secondary-link:hover {
  background: var(--bg-panel-soft);
  border-color: rgba(15, 132, 255, 0.2);
}

.button-secondary.active,
.button-secondary[aria-pressed="true"] {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.button-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

body[data-theme="light"] .button-ghost {
  color: #d6e2ff;
}

body[data-theme="light"] .button-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(138, 159, 215, 0.16);
}

.button-ghost:hover {
  background: var(--bg-panel-soft);
  color: var(--text);
  border-color: rgba(65, 85, 127, 0.14);
}

.route-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(65, 85, 127, 0.12);
  background: var(--bg-panel-soft);
}

.route-switch {
  min-width: 140px;
  border-radius: 8px;
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.route-switch.active,
.route-switch[aria-selected="true"] {
  background: var(--bg-panel);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--accent);
}

.routes-workspace {
  position: relative;
  overflow: hidden;
  border-color: rgba(56, 189, 248, 0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at 94% 6%, rgba(236, 72, 153, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
}

.routes-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 28%, transparent 70%, rgba(124, 58, 237, 0.08)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.03) 0 1px, transparent 1px 110px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 72%);
}

.routes-workspace > * {
  position: relative;
  z-index: 1;
}

.routes-workspace-head {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.routes-workspace-head .panel-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  margin-bottom: 4px;
}

.routes-panel-icon {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(236, 72, 153, 0.14)),
    rgba(15, 23, 42, 0.9);
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.routes-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.routes-decision-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.42), rgba(15, 23, 42, 0.72)),
    rgba(2, 6, 23, 0.34);
}

.routes-decision-bar span {
  position: relative;
  min-width: 0;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.58);
}

.routes-decision-bar span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #67e8f9, #a78bfa 58%, #f472b6);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.42);
}

.routes-decision-bar strong,
.routes-decision-bar small {
  display: block;
}

.routes-decision-bar strong {
  color: #ecfeff;
  font-size: 0.92rem;
}

.routes-decision-bar small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.routes-summary-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.route-summary-card {
  min-height: 126px;
  border-color: rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(124, 58, 237, 0.05) 44%, rgba(2, 6, 23, 0.35)),
    rgba(15, 23, 42, 0.72);
}

.route-summary-card-ready {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(16, 185, 129, 0.08);
}

.route-summary-topline,
.route-summary-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-summary-topline {
  justify-content: space-between;
}

.route-status-pill,
.route-summary-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(8, 47, 73, 0.32);
  color: #cffafe;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-summary-card-empty .route-status-pill {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(124, 45, 18, 0.26);
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.routes-primary,
.routes-rail {
  min-width: 0;
}

.routes-primary {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    rgba(2, 6, 23, 0.24);
}

.routes-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.routes-controls-grid > label {
  min-width: 0;
}

.routes-composer {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.46);
}

.routes-section-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.routes-section-label span,
.routes-section-label small {
  display: block;
}

.routes-section-label span {
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.routes-section-label small {
  max-width: 440px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
}

.routes-side-card {
  border-color: rgba(56, 189, 248, 0.14);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.055), transparent 42%),
    rgba(15, 23, 42, 0.62);
}

.routes-ops-card {
  padding: 12px;
}

.routes-ops-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.38);
}

.route-ops-tab {
  min-width: 110px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.route-ops-tab.active,
.route-ops-tab[aria-selected="true"] {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.76);
  color: #67e8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(56, 189, 248, 0.12);
}

.routes-ops-panel[hidden] {
  display: none;
}

.routes-ops-panel.active {
  display: block;
}

.routes-simulator-card {
  border-color: rgba(244, 114, 182, 0.18);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.22);
}

.routes-workspace .route-switcher {
  width: 100%;
  padding: 6px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
}

.routes-workspace .route-switch {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
}

.routes-workspace .route-switch.active,
.routes-workspace .route-switch[aria-selected="true"] {
  color: #67e8f9;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.14)),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.routes-workspace .preset-row {
  gap: 8px;
  flex-wrap: wrap;
}

.routes-workspace #routing-preview-results .table-row {
  grid-template-columns: 0.55fr 1fr 1.15fr 0.7fr 0.8fr 0.7fr;
}

.routes-workspace #route-drafts-list .table-row {
  grid-template-columns: minmax(250px, 1.35fr) minmax(92px, 0.62fr) minmax(168px, 0.86fr) minmax(230px, 1fr);
}

.routes-workspace #route-drafts-list .table-row > span {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.routes-workspace #route-drafts-list .table-head > span {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.routes-workspace #route-drafts-list .table-row strong,
.routes-workspace #route-drafts-list .table-row small {
  overflow-wrap: normal;
  word-break: normal;
}

.routes-workspace #route-drafts-list .table-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.routes-workspace #route-drafts-list .table-actions button {
  white-space: nowrap;
}

.routes-workspace #route-drafts-list {
  display: grid;
  gap: 12px;
}

.route-draft-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 72%),
    rgba(15, 23, 42, 0.56);
}

.route-draft-card-expanded {
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.route-draft-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-draft-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-draft-card-copy strong {
  color: #f4f7ff;
  font-size: 0.98rem;
  line-height: 1.25;
}

.route-draft-card-copy small,
.route-draft-card-note {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.route-draft-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.route-draft-status-draft {
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.24);
}

.route-draft-status-approved {
  color: #fef08a;
  border-color: rgba(250, 204, 21, 0.24);
}

.route-draft-status-applied {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.24);
}

.route-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-draft-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-soft);
  font-size: 0.7rem;
  white-space: nowrap;
}

.route-draft-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-draft-card-detail {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.routes-workspace #routing-context-panel .status-row,
.routes-workspace #recommendation-audit-trail .table-row {
  background: rgba(15, 23, 42, 0.52);
}

.route-simulator-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.routes-rail .route-simulator-summary {
  grid-template-columns: 1fr;
}

.route-simulator-summary article {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 78%),
    rgba(2, 6, 23, 0.26);
}

.route-simulator-summary span,
.route-simulator-summary strong,
.route-simulator-summary small {
  display: block;
  min-width: 0;
}

.route-simulator-summary span {
  color: #67e8f9;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-simulator-summary strong {
  margin-top: 5px;
  color: var(--text-strong);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.route-simulator-summary small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.promotion-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.promotion-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promotion-flow span.complete {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(6, 78, 59, 0.36);
  color: #bbf7d0;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.12);
}

body[data-theme="light"] .routes-workspace {
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
    radial-gradient(circle at 94% 6%, rgba(217, 70, 239, 0.08), transparent 32%),
    #ffffff;
}

body[data-theme="light"] .routes-primary,
body[data-theme="light"] .routes-side-card,
body[data-theme="light"] .routes-composer,
body[data-theme="light"] .routes-decision-bar span,
body[data-theme="light"] .route-simulator-summary article {
  background: rgba(255, 255, 255, 0.74);
}

body[data-theme="light"] .routes-decision-bar strong,
body[data-theme="light"] .route-summary-card h3 {
  color: #0f172a;
}

@media (max-width: 1180px) {
  .routes-layout {
    grid-template-columns: 1fr;
  }

  .routes-summary-strip,
  .routes-decision-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .routes-workspace-head,
  .routes-section-label {
    display: grid;
  }

  .routes-head-actions {
    justify-content: stretch;
    margin-left: 0;
  }

  .routes-head-actions > * {
    flex: 1;
  }

  .routes-summary-strip,
  .routes-decision-bar,
  .route-simulator-summary {
    grid-template-columns: 1fr;
  }

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

  .routes-primary,
  .routes-composer {
    padding: 12px;
  }

  .routes-section-label small {
    text-align: left;
  }

  .routes-workspace #routing-preview-results,
  .routes-workspace #route-drafts-list {
    overflow-x: auto;
  }

  .routes-workspace #routing-preview-results .table-row,
  .routes-workspace #route-drafts-list .table-row {
    min-width: 860px;
  }
}

.danger-button {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.08));
  color: #ffb0b0;
  border: 1px solid rgba(239, 68, 68, 0.24);
  box-shadow: 0 10px 18px rgba(127, 29, 29, 0.16);
}

.danger-button:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #ffc1c1;
  border-color: rgba(239, 68, 68, 0.34);
}

.danger-button .button-icon-prefix {
  color: inherit;
}

body[data-theme="light"] .danger-button {
  background: #fff1f2;
  color: #b42318;
  border-color: rgba(220, 38, 38, 0.16);
}

body[data-theme="light"] .danger-button:hover {
  background: #ffe4e6;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.22);
}

.form-message {
  min-height: 22px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-message strong,
.form-message small {
  display: block;
}

.form-message small {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-message-info {
  color: #38bdf8;
}

.form-message-success {
  color: #10b981;
}

.form-message-warning {
  color: #f59e0b;
}

.form-message-error {
  color: #ef4444;
}

.admin-form {
  margin-bottom: 16px;
}

.composer-form {
  position: relative;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(65, 85, 127, 0.14);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 30%),
    var(--bg-panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(2, 6, 23, 0.14);
}

.composer-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.12));
  pointer-events: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(65, 85, 127, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 72%),
    var(--bg-input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chip-option {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(65, 85, 127, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 72%),
    var(--bg-panel);
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip-option:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.24);
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.07), transparent 80%),
    var(--bg-panel);
  color: var(--text);
}

.chip-option.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.18));
  border-color: rgba(37, 99, 235, 0.32);
  color: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1), 0 0 18px rgba(37, 99, 235, 0.18);
}

.builder-panel {
  display: none;
  padding: 13px;
  border-radius: 12px;
  border: 1px dashed rgba(65, 85, 127, 0.22);
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.045), transparent 38%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent 54%),
    var(--bg-panel-soft);
}

.builder-panel.visible {
  display: block;
}

.drawer-shell[hidden] {
  display: none;
}

.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.52);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(500px, 100%);
  height: 100%;
  padding: 18px;
  overflow-y: auto;
  border-left: 1px solid rgba(65, 85, 127, 0.12);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 24%),
    var(--bg-panel);
  box-shadow:
    -22px 0 54px rgba(2, 6, 23, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.03);
}

.drawer-panel .provider-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.drawer-open {
  overflow: hidden;
}

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

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.1));
  color: #7dd3fc;
  border: 1px solid rgba(6, 182, 212, 0.16);
  font-size: 0.66rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-block {
  margin: 0;
  min-height: 220px;
  padding: 14px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(65, 85, 127, 0.12);
  background: #0f172a;
  color: #e5eefc;
}

.code-block-soft {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.05)),
    #0a1120;
}

.accent-panel {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 48%),
    var(--bg-panel);
}

.accent-panel::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.11), transparent 68%);
}

.accent-panel .panel-head h3 {
  color: #f3f7ff;
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.18);
}

.accent-panel .eyebrow::before {
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.18);
}

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

.permission-row {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.auth-sso-block {
  margin-top: 8px;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: var(--text-muted, #8b93a7);
  font-size: 12px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(125, 137, 168, 0.18);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: var(--panel-bg, #0f1420);
}

.auth-sso-button {
  width: 100%;
  justify-content: center;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.compare-grid {
  align-items: start;
}

.compare-card {
  border: 1px solid rgba(125, 137, 168, 0.18);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 42%),
    rgba(10, 14, 24, 0.56);
  position: relative;
  overflow: hidden;
}

.compare-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.88), rgba(37, 99, 235, 0.82), rgba(6, 182, 212, 0.76));
}

.compact-panel-head {
  margin-bottom: 10px;
}

.compare-block {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

.empty-state {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px 16px;
  border: 1px dashed rgba(125, 137, 168, 0.2);
  border-radius: 14px;
  color: var(--text-muted, #8b93a7);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.055), transparent 46%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.035), transparent 52%),
    var(--bg-panel-soft);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(2, 6, 23, 0.08);
}

.empty-state::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
  font-size: 0.72rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.18);
}

.empty-state strong {
  display: block;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.empty-state p {
  margin: 0;
  max-width: 42ch;
  color: var(--text-soft);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mini-chart {
  display: grid;
  gap: 10px;
}

.mini-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(20, 29, 48, 0.94), rgba(12, 18, 32, 0.9)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 54%);
  border: 1px solid rgba(87, 112, 170, 0.18);
}

.mini-chart-copy {
  display: grid;
  gap: 2px;
}

.mini-chart-copy small {
  color: var(--text-muted, #8b93a7);
}

.mini-chart-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(125, 137, 168, 0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
  position: relative;
}

.mini-chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116, 138, 255, 0.9), rgba(94, 208, 188, 0.9));
  box-shadow: 0 0 18px rgba(56, 189, 248, calc(0.12 + var(--fill-intensity, 0.5) * 0.3));
  position: relative;
}

.mini-chart-fill::after {
  content: "";
  position: absolute;
  inset: 1px auto 1px 2px;
  width: calc(100% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03));
}

.mini-chart-fill-1 {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), rgba(59, 130, 246, 0.9));
}

.mini-chart-fill-2 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.9));
}

.mini-chart-fill-3 {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.92), rgba(168, 85, 247, 0.92));
}

.mini-chart-value {
  color: var(--text-muted, #8b93a7);
  font-size: 12px;
}

.trend-chart {
  display: grid;
  gap: 14px;
}

.trend-chart-canvas {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 21, 38, 0.96), rgba(9, 15, 28, 0.94)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 44%);
  border: 1px solid rgba(87, 112, 170, 0.18);
  overflow: hidden;
}

.trend-chart-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 20%),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 28px,
      rgba(148, 163, 184, 0.06) 28px,
      rgba(148, 163, 184, 0.06) 29px
    );
  pointer-events: none;
}

.trend-chart-svg {
  display: block;
  width: 100%;
  height: 138px;
  overflow: visible;
}

.trend-chart-svg.is-interactive {
  cursor: crosshair;
}

.trend-chart-line {
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(33, 212, 253, 0.18));
}

.trend-chart-area {
  filter: drop-shadow(0 18px 24px rgba(59, 130, 246, 0.08));
}

.trend-chart-dot {
  fill: #f8fafc;
  stroke: rgba(33, 212, 253, 0.9);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(33, 212, 253, 0.2));
  transition: transform 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.trend-chart-dot.is-selected {
  fill: #21d4fd;
  stroke: #f8fafc;
  transform: scale(1.16);
}

.trend-chart-hit {
  fill: transparent;
  pointer-events: all;
}

.trend-chart-selection {
  fill: rgba(33, 212, 253, 0.12);
  stroke: rgba(33, 212, 253, 0.66);
  stroke-width: 1.2;
}

.trend-chart-highlight {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 18, 32, 0.78);
  border: 1px solid rgba(87, 112, 170, 0.22);
  box-shadow: 0 14px 32px rgba(3, 8, 20, 0.35);
}

.trend-chart-highlight strong {
  font-size: 12px;
}

.trend-chart-highlight span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong, #f8fafc);
}

.trend-chart-highlight small {
  color: var(--text-muted, #8b93a7);
}

.trend-chart-highlight small + small {
  margin-top: 2px;
}

.trend-chart-axis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
}

.trend-chart-axis-point {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(87, 112, 170, 0.14);
}

.trend-chart-axis-point strong {
  font-size: 11px;
  color: var(--text-soft, #cbd5e1);
}

.trend-chart-axis-point small {
  color: var(--text-muted, #8b93a7);
}

body[data-ui="v2"][data-theme="light"] .mini-chart-row {
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(245, 247, 251, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.06);
}

body[data-ui="v2"][data-theme="light"] .mini-chart-copy strong,
body[data-ui="v2"][data-theme="light"] .mini-chart-copy span,
body[data-ui="v2"][data-theme="light"] .mini-chart-value {
  color: #334155;
}

body[data-ui="v2"][data-theme="light"] .mini-chart-copy small {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .mini-chart-track {
  background: #e8edf5;
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.14);
}

body[data-ui="v2"][data-theme="light"] .mini-chart-fill {
  box-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-canvas {
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(245, 247, 251, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

body[data-ui="v2"][data-theme="light"] .trend-chart-canvas::before {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55), transparent 18%),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 28px,
      rgba(203, 213, 225, 0.32) 28px,
      rgba(203, 213, 225, 0.32) 29px
    );
}

body[data-ui="v2"][data-theme="light"] .trend-chart-line,
body[data-ui="v2"][data-theme="light"] .trend-chart-area {
  filter: none;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-dot {
  fill: #ffffff;
  stroke: #38bdf8;
  filter: none;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-dot.is-selected {
  fill: #38bdf8;
  stroke: #ffffff;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-selection {
  fill: rgba(56, 189, 248, 0.1);
  stroke: rgba(56, 189, 248, 0.5);
}

body[data-ui="v2"][data-theme="light"] .trend-chart-highlight {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .trend-chart-highlight strong,
body[data-ui="v2"][data-theme="light"] .trend-chart-highlight span {
  color: #0f172a;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-highlight small {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-axis-point {
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .trend-chart-axis-point strong {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .trend-chart-axis-point small {
  color: #94a3b8;
}

body[data-ui="v2"][data-theme="light"] .status-row {
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(245, 247, 251, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 1180px) {
  .shell,
  .auth-shell,
  .landing-hero,
  .feature-band,
  .overview-grid,
  .console-grid,
  .grid-split {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 860px) {
  .main,
  .marketing-shell,
  .auth-shell,
  .shell {
    padding: 16px;
  }

  .shell {
    gap: 12px;
  }

  .sidebar {
    padding: 14px;
  }

  .proof-strip,
  .marketing-header,
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .search-shell {
    width: 100%;
  }

  .form-grid,
  .filter-row,
  .logs-toolbar,
  .bulk-row,
  .table-row,
  .table-row-model,
  .permission-row,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .section-panel[data-section-panel="incidents"] .filter-row {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .proof-actions,
  .marketing-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .metrics,
  .metrics-inline {
    grid-template-columns: 1fr;
  }
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .gateway-flow-lane,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node-editor,
body[data-ui="v2"][data-theme="light"] .gateway-flow-empty,
body[data-ui="v2"][data-theme="light"] .diagnostics-hero-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-checks-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-decision-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-services-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-notes-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-panel,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card,
body[data-ui="v2"][data-theme="light"] .go-live-check-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-notes-card #go-live-notes .status-row,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .guardrail-category-builder,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-table,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-collapsed,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 252, 0.985));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score {
  background:
    radial-gradient(circle at 16% 16%, rgba(56, 189, 248, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 252, 0.985));
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-value,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-score strong {
  color: #0ea5e9;
  text-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score .eyebrow,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane span,
body[data-ui="v2"][data-theme="light"] .gateway-command-action span,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head span,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label span {
  color: #0f6cbd;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score .eyebrow {
  letter-spacing: 0.12em;
  font-weight: 800;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score p,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label small,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head small,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane small,
body[data-ui="v2"][data-theme="light"] .gateway-command-action small,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane em,
body[data-ui="v2"][data-theme="light"] .gateway-command-step small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-stage-label,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-status-row,
body[data-ui="v2"][data-theme="light"] .gateway-flow-empty,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-copy .muted,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card p:last-child,
body[data-ui="v2"][data-theme="light"] .go-live-check-copy small,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-copy small,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-meta,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-stats,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-body p,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-copy small,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-description,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span small,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip small,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-meta,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row-cell small,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip small,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-head small {
  color: #6b7a92;
}

body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-kicker,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip span {
  color: #0f6cbd;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-step strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail h3,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node strong,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip strong,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-row h2,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card h4,
body[data-ui="v2"][data-theme="light"] .go-live-check-copy strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-copy strong,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-body h3,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-copy strong,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span strong,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip strong,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row strong,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row-cell strong,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip strong,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-head strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-step strong {
  color: #14213d;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score p,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane small,
body[data-ui="v2"][data-theme="light"] .gateway-command-action small,
body[data-ui="v2"][data-theme="light"] .gateway-command-step small {
  color: #5d6f8b;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-meta span {
  color: #34506f;
  font-weight: 700;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane:hover,
body[data-ui="v2"][data-theme="light"] .gateway-command-action:hover,
body[data-ui="v2"][data-theme="light"] .gateway-command-step:hover,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip:hover:not([disabled]),
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip:hover {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 246, 251, 1));
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.1);
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane.active,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip.active,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row.active,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip.active {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(245, 243, 255, 0.98));
  box-shadow: 0 14px 26px rgba(148, 163, 184, 0.1);
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-meta span,
body[data-ui="v2"][data-theme="light"] .gateway-flow-mini-node,
body[data-ui="v2"][data-theme="light"] .gateway-flow-legend-item,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle-track,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-collapsed {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.98);
  color: #5f6f88;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-blockers {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.98));
}

body[data-ui="v2"][data-theme="light"] .gateway-command-blockers strong {
  color: #b45309;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-blockers ul,
body[data-ui="v2"][data-theme="light"] .gateway-command-blockers p {
  color: #6b7a92;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-step span,
body[data-ui="v2"][data-theme="light"] .go-live-check-icon,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip-index,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-icon {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(96, 165, 250, 0.18);
  color: #0284c7;
  box-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .gateway-flow-arrow {
  color: #60a5fa;
}

body[data-ui="v2"][data-theme="light"] .gateway-flow-draft-badge {
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.98), rgba(245, 243, 255, 0.98));
  color: #7c3aed;
}

body[data-ui="v2"][data-theme="light"] .gateway-flow-node-primary {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

body[data-ui="v2"][data-theme="light"] .diagnostics-score-panel::after {
  border-color: rgba(148, 163, 184, 0.08);
  box-shadow:
    0 0 0 14px rgba(148, 163, 184, 0.04),
    0 0 0 36px rgba(148, 163, 184, 0.025);
}

body[data-ui="v2"][data-theme="light"] .go-live-check-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-notes-card #go-live-notes .status-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-severity.tone-info {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-severity.tone-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-severity.tone-muted {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle small {
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle-thumb {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.18);
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle.is-on .guardrail-policy-card-toggle-track {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.26);
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle.is-on .guardrail-policy-card-toggle-thumb {
  background: #22c55e;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-scope,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-details,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector-panel,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 252, 0.985));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-panel-icon,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-icon {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(96, 165, 250, 0.18);
  color: #0284c7;
  box-shadow: none;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-status,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(148, 163, 184, 0.16);
  color: #6b7a92;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-status strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-drop-hint,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-index,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-copy em {
  color: #0ea5e9;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-scope label,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-title,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item small,
body[data-ui="v2"][data-theme="light"] .flow-builder-step small,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node small,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip-copy small {
  color: #6b7a92;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-step strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip-copy strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-canvas {
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(244, 247, 252, 0.98)),
    radial-gradient(circle at center, rgba(56, 189, 248, 0.05), transparent 42%);
  border-color: rgba(148, 163, 184, 0.16);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-map-surface {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(96, 165, 250, 0.16) 1px, transparent 1px);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-wires path {
  filter: none;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-node-port {
  background: #ffffff;
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.08);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-fullscreen-backdrop {
  background: rgba(226, 232, 240, 0.48);
  backdrop-filter: blur(10px);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-workspace.flow-builder-fullscreen {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 80px rgba(148, 163, 184, 0.22);
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group,
body[data-ui="v2"][data-theme="light"] .route-tabs,
body[data-ui="v2"][data-theme="light"] .routes-simulator-card,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 248, 252, 0.985));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .route-summary-card,
body[data-ui="v2"][data-theme="light"] .routes-primary,
body[data-ui="v2"][data-theme="light"] .routes-side-card,
body[data-ui="v2"][data-theme="light"] .routes-composer,
body[data-ui="v2"][data-theme="light"] .route-draft-card,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 249, 253, 0.985));
  border-color: rgba(203, 213, 225, 0.72);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .route-summary-card {
  min-height: 126px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 249, 253, 0.985));
}

body[data-ui="v2"][data-theme="light"] .route-summary-card h3,
body[data-ui="v2"][data-theme="light"] .route-summary-card strong,
body[data-ui="v2"][data-theme="light"] .route-draft-card-copy strong,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary strong,
body[data-ui="v2"][data-theme="light"] .routes-section-label span {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .route-summary-card small,
body[data-ui="v2"][data-theme="light"] .route-draft-card-copy small,
body[data-ui="v2"][data-theme="light"] .route-draft-card-note,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary small,
body[data-ui="v2"][data-theme="light"] .routes-section-label small {
  color: #62748e;
}

body[data-ui="v2"][data-theme="light"] .route-status-pill,
body[data-ui="v2"][data-theme="light"] .route-summary-facts span,
body[data-ui="v2"][data-theme="light"] .route-draft-meta span {
  background: #eef6ff;
  border-color: rgba(147, 197, 253, 0.64);
  color: #245b9e;
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switcher,
body[data-ui="v2"][data-theme="light"] .routes-ops-tabs {
  background: #f2f6fb;
  border-color: rgba(203, 213, 225, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch,
body[data-ui="v2"][data-theme="light"] .route-ops-tab {
  color: #667892;
  background: transparent;
  border-color: transparent;
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch[aria-selected="true"],
body[data-ui="v2"][data-theme="light"] .route-ops-tab.active,
body[data-ui="v2"][data-theme="light"] .route-ops-tab[aria-selected="true"] {
  color: #5f12ea;
  border-color: rgba(147, 197, 253, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .route-status-pill {
  font-weight: 800;
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost {
  background: transparent;
  color: #64748b;
}

body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost.active {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(245, 243, 255, 0.98));
  border-color: rgba(96, 165, 250, 0.24);
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-head .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-row .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-expanded .eyebrow,
body[data-ui="v2"][data-theme="light"] .status-row .eyebrow {
  color: #45607f;
}

body[data-ui="v2"][data-theme="light"] .button-ghost,
body[data-theme="light"] .button-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98));
  border-color: rgba(203, 213, 225, 0.88);
  color: #31445f;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .button-ghost:hover,
body[data-theme="light"] .button-ghost:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 244, 251, 1));
  border-color: rgba(96, 165, 250, 0.26);
  color: #14213d;
}

body[data-ui="v2"][data-theme="light"] .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .button-ghost[aria-pressed="true"],
body[data-ui="v2"][data-theme="light"] .button-ghost[aria-selected="true"],
body[data-theme="light"] .button-ghost.active,
body[data-theme="light"] .button-ghost[aria-pressed="true"],
body[data-theme="light"] .button-ghost[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.98), rgba(241, 242, 255, 0.98));
  border-color: rgba(96, 165, 250, 0.32);
  color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.12);
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .gateway-flow-lane,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node-editor,
body[data-ui="v2"][data-theme="light"] .gateway-flow-empty,
body[data-ui="v2"][data-theme="light"] .diagnostics-hero-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-checks-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-decision-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-services-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-notes-card,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-panel,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card,
body[data-ui="v2"][data-theme="light"] .go-live-check-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-row,
body[data-ui="v2"][data-theme="light"] .diagnostics-notes-card #go-live-notes .status-row,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .guardrail-category-builder,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-table,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-collapsed,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-scope,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-details,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector-panel,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip,
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group,
body[data-ui="v2"][data-theme="light"] .route-tabs,
body[data-ui="v2"][data-theme="light"] .routes-simulator-card,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary article,
body[data-ui="v2"][data-theme="light"] .route-summary-card,
body[data-ui="v2"][data-theme="light"] .routes-primary,
body[data-ui="v2"][data-theme="light"] .routes-side-card,
body[data-ui="v2"][data-theme="light"] .routes-composer,
body[data-ui="v2"][data-theme="light"] .route-draft-card,
body[data-ui="v2"][data-theme="light"] .models-primary,
body[data-ui="v2"][data-theme="light"] .models-side-card,
body[data-ui="v2"][data-theme="light"] .models-composer-shell,
body[data-ui="v2"][data-theme="light"] .models-decision-bar span,
body[data-ui="v2"][data-theme="light"] .models-resource-table .table-row-model,
body[data-ui="v2"][data-theme="light"] .model-control-summary article {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.82);
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .route-summary-card:first-child {
  background:
    radial-gradient(circle at 12% 14%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 255, 1));
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-value,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-score strong,
body[data-ui="v2"][data-theme="light"] .metric strong,
body[data-ui="v2"][data-theme="light"] .model-summary-card strong {
  color: #0f5bd7;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score .eyebrow,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane span,
body[data-ui="v2"][data-theme="light"] .gateway-command-action span,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head span,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label span,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-kicker,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip span,
body[data-ui="v2"][data-theme="light"] .flow-builder-status strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-drop-hint,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-index,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-copy em,
body[data-ui="v2"][data-theme="light"] .route-summary-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .status-list .eyebrow {
  color: #0f6cbd;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score p,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions-label small,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow-head small,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane small,
body[data-ui="v2"][data-theme="light"] .gateway-command-action small,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane em,
body[data-ui="v2"][data-theme="light"] .gateway-command-step small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-stage-label,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard small,
body[data-ui="v2"][data-theme="light"] .gateway-flow-status-row,
body[data-ui="v2"][data-theme="light"] .gateway-flow-empty,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-copy .muted,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card p:last-child,
body[data-ui="v2"][data-theme="light"] .go-live-check-copy small,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-copy small,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-meta,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-stats,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-body p,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-copy small,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-description,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span small,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip small,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-meta,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row-cell small,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip small,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-head small,
body[data-ui="v2"][data-theme="light"] .route-summary-card small,
body[data-ui="v2"][data-theme="light"] .route-draft-card-copy small,
body[data-ui="v2"][data-theme="light"] .route-draft-card-note,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary small,
body[data-ui="v2"][data-theme="light"] .routes-section-label small,
body[data-ui="v2"][data-theme="light"] .model-control-summary small,
body[data-ui="v2"][data-theme="light"] .models-decision-bar small {
  color: #5b6b84;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-step strong,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail h3,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node strong,
body[data-ui="v2"][data-theme="light"] .gateway-flow-chip strong,
body[data-ui="v2"][data-theme="light"] .gateway-flow-sidecard strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-score-row h2,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-signal-card h4,
body[data-ui="v2"][data-theme="light"] .go-live-check-copy strong,
body[data-ui="v2"][data-theme="light"] .diagnostics-service-copy strong,
body[data-ui="v2"][data-theme="light"] .guardrail-hero-card-body h3,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-copy strong,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span strong,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip strong,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row strong,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row-cell strong,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip strong,
body[data-ui="v2"][data-theme="light"] .guardrail-subcategory-head strong,
body[data-ui="v2"][data-theme="light"] .route-summary-card h3,
body[data-ui="v2"][data-theme="light"] .route-summary-card strong,
body[data-ui="v2"][data-theme="light"] .route-draft-card-copy strong,
body[data-ui="v2"][data-theme="light"] .route-simulator-summary strong,
body[data-ui="v2"][data-theme="light"] .routes-section-label span,
body[data-ui="v2"][data-theme="light"] .models-decision-bar strong,
body[data-ui="v2"][data-theme="light"] .models-table-headline h3,
body[data-ui="v2"][data-theme="light"] .models-side-card-head h3,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-step strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip-copy strong,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty strong {
  color: #162338;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-meta span,
body[data-ui="v2"][data-theme="light"] .gateway-flow-mini-node,
body[data-ui="v2"][data-theme="light"] .gateway-flow-legend-item,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-toggle-track,
body[data-ui="v2"][data-theme="light"] .guardrail-builder-review-row,
body[data-ui="v2"][data-theme="light"] .guardrail-category-group-collapsed,
body[data-ui="v2"][data-theme="light"] .route-status-pill,
body[data-ui="v2"][data-theme="light"] .route-summary-facts span,
body[data-ui="v2"][data-theme="light"] .route-draft-meta span,
body[data-ui="v2"][data-theme="light"] .gateway-command-score-meta span {
  background: #f8fbff;
  border-color: rgba(191, 219, 254, 0.88);
  color: #335b88;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane:hover,
body[data-ui="v2"][data-theme="light"] .gateway-command-action:hover,
body[data-ui="v2"][data-theme="light"] .gateway-command-step:hover,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip:hover:not([disabled]),
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip:hover,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item:hover,
body[data-ui="v2"][data-theme="light"] .flow-builder-step:hover,
body[data-ui="v2"][data-theme="light"] .route-draft-card:hover,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 1));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
}

body[data-ui="v2"][data-theme="light"] .gateway-command-lane.active,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip.active,
body[data-ui="v2"][data-theme="light"] .guardrail-category-row.active,
body[data-ui="v2"][data-theme="light"] .guardrail-category-chip.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch[aria-selected=\"true\"],
body[data-ui="v2"][data-theme="light"] .route-ops-tab.active,
body[data-ui="v2"][data-theme="light"] .route-ops-tab[aria-selected=\"true\"] {
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(243, 241, 255, 1));
  border-color: rgba(96, 165, 250, 0.32);
  color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.12);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-canvas {
  background:
    linear-gradient(180deg, rgba(253, 254, 255, 1), rgba(247, 250, 254, 1)),
    radial-gradient(circle at center, rgba(56, 189, 248, 0.04), transparent 42%);
  border-color: rgba(203, 213, 225, 0.82);
}

body[data-ui="v2"][data-theme="light"] .flow-builder-map-surface {
  background-image:
    linear-gradient(rgba(203, 213, 225, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 225, 0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(96, 165, 250, 0.18) 1px, transparent 1px);
}

body[data-ui="v2"][data-theme="light"] .provider-action-button {
  border-color: rgba(203, 213, 225, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
  color: #5b6b84;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] .provider-action-button svg {
  stroke: currentColor;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(243, 241, 255, 1));
  color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.12);
}

body[data-ui="v2"][data-theme="light"] .provider-action-button.is-danger {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 247, 247, 0.98));
  border-color: rgba(248, 113, 113, 0.3);
  color: #dc2626;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button.is-danger:hover {
  background: linear-gradient(180deg, rgba(254, 226, 226, 1), rgba(255, 241, 242, 1));
  border-color: rgba(220, 38, 38, 0.34);
  color: #b91c1c;
}

body[data-theme="light"] .main .card,
body[data-theme="light"] .main .metric,
body[data-theme="light"] .main .ops-card,
body[data-theme="light"] .main .module-card,
body[data-theme="light"] .main .panel-copy,
body[data-theme="light"] .main .gateway-enterprise-command,
body[data-theme="light"] .main .gateway-command-score,
body[data-theme="light"] .main .gateway-command-lane,
body[data-theme="light"] .main .gateway-command-action,
body[data-theme="light"] .main .gateway-command-step,
body[data-theme="light"] .main .gateway-command-detail,
body[data-theme="light"] .main .gateway-command-workflow,
body[data-theme="light"] .main .gateway-flow-shell,
body[data-theme="light"] .main .gateway-flow-lane,
body[data-theme="light"] .main .gateway-flow-node,
body[data-theme="light"] .main .gateway-flow-chip,
body[data-theme="light"] .main .gateway-flow-sidecard,
body[data-theme="light"] .main .gateway-flow-empty,
body[data-theme="light"] .main .diagnostics-hero-card,
body[data-theme="light"] .main .diagnostics-checks-card,
body[data-theme="light"] .main .diagnostics-decision-card,
body[data-theme="light"] .main .diagnostics-services-card,
body[data-theme="light"] .main .diagnostics-notes-card,
body[data-theme="light"] .main .diagnostics-score-panel,
body[data-theme="light"] .main .diagnostics-signal-card,
body[data-theme="light"] .main .go-live-check-row,
body[data-theme="light"] .main .diagnostics-service-row,
body[data-theme="light"] .main .route-draft-card,
body[data-theme="light"] .main .routes-simulator-card,
body[data-theme="light"] .main .route-simulator-summary article,
body[data-theme="light"] .main .guardrail-policy-card,
body[data-theme="light"] .main .guardrail-overview-hero,
body[data-theme="light"] .main .guardrail-overview-hero-grid > *,
body[data-theme="light"] .main .flow-builder-scope,
body[data-theme="light"] .main .flow-builder-palette-shell,
body[data-theme="light"] .main .flow-builder-canvas-shell,
body[data-theme="light"] .main .flow-builder-details,
body[data-theme="light"] .main .flow-builder-inspector-panel,
body[data-theme="light"] .main .flow-builder-palette-item,
body[data-theme="light"] .main .flow-builder-step,
body[data-theme="light"] .main .flow-builder-anchor-node,
body[data-theme="light"] .main .flow-builder-empty,
body[data-theme="light"] .main .flow-builder-manager-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.985)) !important;
  border-color: rgba(203, 213, 225, 0.72) !important;
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.1) !important;
}

body[data-theme="light"] .main .card h3,
body[data-theme="light"] .main .metric h3,
body[data-theme="light"] .main .panel-copy h3,
body[data-theme="light"] .main .ops-card strong,
body[data-theme="light"] .main .module-card strong,
body[data-theme="light"] .main .gateway-command-lane strong,
body[data-theme="light"] .main .gateway-command-step strong,
body[data-theme="light"] .main .gateway-command-detail h3,
body[data-theme="light"] .main .gateway-flow-node strong,
body[data-theme="light"] .main .gateway-flow-chip strong,
body[data-theme="light"] .main .gateway-flow-sidecard strong,
body[data-theme="light"] .main .diagnostics-score-row h2,
body[data-theme="light"] .main .diagnostics-meta-chip strong,
body[data-theme="light"] .main .diagnostics-signal-card h4,
body[data-theme="light"] .main .go-live-check-copy strong,
body[data-theme="light"] .main .diagnostics-service-copy strong,
body[data-theme="light"] .main .route-draft-card-copy strong,
body[data-theme="light"] .main .guardrail-policy-card-copy strong,
body[data-theme="light"] .main .guardrail-policy-card-stats span strong,
body[data-theme="light"] .main .flow-builder-manager-chip-copy strong,
body[data-theme="light"] .main .flow-builder-empty strong,
body[data-theme="light"] .main .flow-builder-anchor-node strong,
body[data-theme="light"] .main .flow-builder-step strong {
  color: #162338 !important;
}

body[data-theme="light"] .main .card .eyebrow,
body[data-theme="light"] .main .metric .eyebrow,
body[data-theme="light"] .main .panel-copy .eyebrow,
body[data-theme="light"] .main .ops-card .eyebrow,
body[data-theme="light"] .main .module-card .eyebrow,
body[data-theme="light"] .main .gateway-command-lane span,
body[data-theme="light"] .main .gateway-command-action span,
body[data-theme="light"] .main .gateway-command-workflow-head span,
body[data-theme="light"] .main .gateway-command-actions-label span,
body[data-theme="light"] .main .gateway-flow-stage-label,
body[data-theme="light"] .main .diagnostics-signal-card .eyebrow,
body[data-theme="light"] .main .flow-builder-manager-title,
body[data-theme="light"] .main .flow-builder-scope label,
body[data-theme="light"] .main .route-simulator-summary span {
  color: #64748b !important;
  text-shadow: none !important;
}

body[data-theme="light"] .main .muted,
body[data-theme="light"] .main .card .muted,
body[data-theme="light"] .main .metric .muted,
body[data-theme="light"] .main .gateway-command-score p,
body[data-theme="light"] .main .gateway-command-lane small,
body[data-theme="light"] .main .gateway-command-action small,
body[data-theme="light"] .main .gateway-command-step small,
body[data-theme="light"] .main .gateway-flow-node small,
body[data-theme="light"] .main .gateway-flow-chip small,
body[data-theme="light"] .main .gateway-flow-sidecard small,
body[data-theme="light"] .main .diagnostics-score-copy .muted,
body[data-theme="light"] .main .go-live-check-copy small,
body[data-theme="light"] .main .diagnostics-service-copy small,
body[data-theme="light"] .main .diagnostics-service-meta,
body[data-theme="light"] .main .route-draft-card-note,
body[data-theme="light"] .main .route-draft-card-copy small,
body[data-theme="light"] .main .guardrail-policy-card-description,
body[data-theme="light"] .main .guardrail-policy-card-meta span,
body[data-theme="light"] .main .guardrail-policy-card-stats span,
body[data-theme="light"] .main .guardrail-policy-card-stats span small,
body[data-theme="light"] .main .flow-builder-palette-item small,
body[data-theme="light"] .main .flow-builder-step small,
body[data-theme="light"] .main .flow-builder-manager-chip-copy small,
body[data-theme="light"] .main .flow-builder-empty p {
  color: #6b7280 !important;
}

body[data-theme="light"] .main .gateway-command-score-value,
body[data-theme="light"] .main .mini-chart-value {
  color: #0ea5e9 !important;
}

body[data-theme="light"] .main .gateway-command-score-meta span,
body[data-theme="light"] .main .gateway-flow-mini-node,
body[data-theme="light"] .main .gateway-flow-legend-item,
body[data-theme="light"] .main .diagnostics-meta-chip,
body[data-theme="light"] .main .route-draft-meta span,
body[data-theme="light"] .main .guardrail-policy-card-meta span,
body[data-theme="light"] .main .guardrail-policy-card-stats span,
body[data-theme="light"] .main .flow-builder-status,
body[data-theme="light"] .main .flow-builder-manager-count {
  background: #f8fafc !important;
  border-color: rgba(203, 213, 225, 0.7) !important;
  color: #64748b !important;
}

body[data-theme="light"] .main .gateway-flow-map-surface,
body[data-theme="light"] .main .flow-builder-canvas,
body[data-theme="light"] .main .routes-workspace .route-switcher,
body[data-theme="light"] .main .route-tabs,
body[data-theme="light"] .main .routes-workspace .button-group {
  background: #f8fafc !important;
  border-color: rgba(203, 213, 225, 0.74) !important;
}

body[data-theme="light"] .main .routes-workspace .route-switch.active,
body[data-theme="light"] .main .routes-workspace .route-switch[aria-selected="true"],
body[data-theme="light"] .main .routes-workspace .button-group .button-ghost.active,
body[data-theme="light"] .main .route-tabs .button-ghost.active {
  color: #1d4ed8 !important;
  background: linear-gradient(135deg, rgba(239, 246, 255, 1), rgba(245, 243, 255, 1)) !important;
  border-color: rgba(147, 197, 253, 0.9) !important;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.12) !important;
}

body[data-theme="light"] .main .routes-workspace .button-group .button-ghost,
body[data-theme="light"] .main .route-tabs .button-ghost,
body[data-theme="light"] .main .routes-workspace .route-switch {
  color: #64748b !important;
  background: transparent !important;
}

body[data-theme="light"] .main .card .eyebrow,
body[data-theme="light"] .main .metric .eyebrow,
body[data-theme="light"] .main .panel-copy .eyebrow,
body[data-theme="light"] .main .ops-card .eyebrow,
body[data-theme="light"] .main .module-card .eyebrow,
body[data-theme="light"] .main .gateway-command-lane span,
body[data-theme="light"] .main .gateway-command-action span,
body[data-theme="light"] .main .gateway-command-workflow-head span,
body[data-theme="light"] .main .gateway-command-actions-label span,
body[data-theme="light"] .main .gateway-flow-stage-label,
body[data-theme="light"] .main .diagnostics-signal-card .eyebrow,
body[data-theme="light"] .main .flow-builder-manager-title,
body[data-theme="light"] .main .flow-builder-scope label,
body[data-theme="light"] .main .route-simulator-summary span {
  color: #48627f !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip,
body[data-theme="light"] .main .guardrail-step-chip {
  background: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.88) !important;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip.active,
body[data-theme="light"] .main .guardrail-step-chip.active {
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(243, 241, 255, 1)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 12px 24px rgba(96, 165, 250, 0.12) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip strong,
body[data-theme="light"] .main .guardrail-step-chip strong {
  color: #23344d !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip small,
body[data-theme="light"] .main .guardrail-step-chip small {
  color: #6a7b93 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset-shell,
body[data-theme="light"] .main .guardrail-type-preset-shell,
body[data-ui="v2"][data-theme="light"] .llm-integrations-surface,
body[data-theme="light"] .main .llm-integrations-surface {
  background: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.82) !important;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter,
body[data-theme="light"] .main .guardrail-brand-filter {
  background: #f8fbff !important;
  border-color: rgba(191, 219, 254, 0.76) !important;
  color: #3a5472 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter:hover,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter.selected,
body[data-theme="light"] .main .guardrail-brand-filter:hover,
body[data-theme="light"] .main .guardrail-brand-filter.selected {
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(243, 241, 255, 1)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  color: #1d4ed8 !important;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.12) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter small,
body[data-theme="light"] .main .guardrail-brand-filter small {
  background: rgba(191, 219, 254, 0.38) !important;
  color: #48627f !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-icon,
body[data-theme="light"] .main .guardrail-brand-icon {
  background: #eef6ff !important;
  border-color: rgba(147, 197, 253, 0.58) !important;
  box-shadow: none !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-preset-count,
body[data-ui="v2"][data-theme="light"] .guardrail-preset-count small,
body[data-theme="light"] .main .guardrail-preset-count,
body[data-theme="light"] .main .guardrail-preset-count small {
  color: #667892 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-preset-count strong,
body[data-theme="light"] .main .guardrail-preset-count strong {
  color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset,
body[data-theme="light"] .main .guardrail-type-preset,
body[data-ui="v2"][data-theme="light"] .llm-integration-card,
body[data-theme="light"] .main .llm-integration-card {
  background: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.82) !important;
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset:hover,
body[data-theme="light"] .main .guardrail-type-preset:hover,
body[data-ui="v2"][data-theme="light"] .llm-integration-card:hover,
body[data-theme="light"] .main .llm-integration-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 1)) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  box-shadow: 0 12px 24px rgba(96, 165, 250, 0.1) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset strong,
body[data-ui="v2"][data-theme="light"] .llm-integration-copy strong,
body[data-theme="light"] .main .guardrail-type-preset strong,
body[data-theme="light"] .main .llm-integration-copy strong {
  color: #1f314a !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset small,
body[data-ui="v2"][data-theme="light"] .llm-integration-copy p,
body[data-theme="light"] .main .guardrail-type-preset small,
body[data-theme="light"] .main .llm-integration-copy p {
  color: #667892 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset em,
body[data-theme="light"] .main .guardrail-type-preset em {
  background: #eef6ff !important;
  color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary,
body[data-theme="light"] .button-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98)) !important;
  border-color: rgba(203, 213, 225, 0.88) !important;
  color: #31445f !important;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary:hover,
body[data-theme="light"] .button-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 1)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #14213d !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary.active,
body[data-ui="v2"][data-theme="light"] .button-secondary[aria-selected="true"],
body[data-theme="light"] .button-secondary.active,
body[data-theme="light"] .button-secondary[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(243, 241, 255, 1)) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
  color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button,
body[data-theme="light"] .main .provider-action-button {
  width: 44px;
  height: 44px;
}

/* Gradient-free platform override */
body[data-ui="v2"] {
  background: #080b14 !important;
}

body[data-ui="v2"][data-theme="light"] {
  background: #f5f7fb !important;
}

body[data-ui="v2"]::before,
body[data-ui="v2"]::after,
body[data-ui="v2"] .sidebar::before,
body[data-ui="v2"] .sidebar::after,
body[data-ui="v2"] .card::before,
body[data-ui="v2"] .card::after,
body[data-ui="v2"] .metric::before,
body[data-ui="v2"] .metric::after,
body[data-ui="v2"] .metrics-featured::before {
  display: none !important;
  background: none !important;
}

body[data-ui="v2"] :where(
  .sidebar,
  .topbar,
  .sidebar-story,
  .status-pill,
  .command-palette-input,
  .command-palette-results,
  .button-primary,
  .button-secondary,
  .button-ghost,
  .v2-side-nav .nav-cluster,
  .v2-nav-toggle.active,
  .nav-item.active,
  .nav-item:hover,
  .card,
  .metric,
  .sidebar-card,
  .route-tabs,
  .routes-workspace .button-group,
  .routes-workspace .route-switcher,
  .guardrail-step-chip,
  .guardrail-type-preset-shell,
  .guardrail-type-preset,
  .guardrail-brand-filter,
  .llm-integrations-surface,
  .llm-integration-card,
  [class*="gateway-command-"],
  [class*="gateway-flow-"],
  [class*="diagnostics-"],
  [class*="go-live-"],
  [class*="guardrail-policy"],
  [class*="flow-builder-"],
  [class*="route-draft"],
  [class*="overview-v2-"]
) {
  background-image: none !important;
}

body[data-ui="v2"] .sidebar {
  background-color: #090d16 !important;
  border-right-color: rgba(44, 244, 255, 0.08) !important;
}

body[data-ui="v2"] .topbar {
  background-color: rgba(8, 11, 20, 0.92) !important;
  border-bottom-color: rgba(44, 244, 255, 0.08) !important;
}

body[data-ui="v2"] .sidebar-story,
body[data-ui="v2"] .v2-side-nav .nav-cluster,
body[data-ui="v2"] .status-pill,
body[data-ui="v2"] .command-palette-input,
body[data-ui="v2"] .command-palette-results,
body[data-ui="v2"] .card,
body[data-ui="v2"] .metric,
body[data-ui="v2"] .sidebar-card,
body[data-ui="v2"] .route-tabs,
body[data-ui="v2"] .routes-workspace .button-group,
body[data-ui="v2"] .routes-workspace .route-switcher,
body[data-ui="v2"] .guardrail-step-chip,
body[data-ui="v2"] .guardrail-type-preset-shell,
body[data-ui="v2"] .guardrail-type-preset,
body[data-ui="v2"] .guardrail-brand-filter,
body[data-ui="v2"] .llm-integrations-surface,
body[data-ui="v2"] .llm-integration-card,
body[data-ui="v2"] [class*="gateway-command-"],
body[data-ui="v2"] [class*="gateway-flow-"],
body[data-ui="v2"] [class*="diagnostics-"],
body[data-ui="v2"] [class*="go-live-"],
body[data-ui="v2"] [class*="guardrail-policy"],
body[data-ui="v2"] [class*="flow-builder-"],
body[data-ui="v2"] [class*="route-draft"],
body[data-ui="v2"] [class*="overview-v2-"] {
  background-color: #141822 !important;
}

body[data-ui="v2"] .button-primary {
  background-color: #24e0d6 !important;
  border-color: rgba(36, 224, 214, 0.42) !important;
  box-shadow: 0 10px 24px rgba(36, 224, 214, 0.16) !important;
  color: #071017 !important;
}

body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(44, 244, 255, 0.12) !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar,
body[data-theme="light"] .main .sidebar {
  background-color: #f7f9fc !important;
  border-right-color: rgba(203, 213, 225, 0.82) !important;
  box-shadow: none !important;
}

body[data-ui="v2"][data-theme="light"] .topbar,
body[data-theme="light"] .main .topbar {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(203, 213, 225, 0.72) !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar-story,
body[data-ui="v2"][data-theme="light"] .status-pill,
body[data-ui="v2"][data-theme="light"] .command-palette-input,
body[data-ui="v2"][data-theme="light"] .command-palette-results,
body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .sidebar-card,
body[data-ui="v2"][data-theme="light"] .route-tabs,
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switcher,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset-shell,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter,
body[data-ui="v2"][data-theme="light"] .llm-integrations-surface,
body[data-ui="v2"][data-theme="light"] .llm-integration-card,
body[data-ui="v2"][data-theme="light"] [class*="gateway-command-"],
body[data-ui="v2"][data-theme="light"] [class*="gateway-flow-"],
body[data-ui="v2"][data-theme="light"] [class*="diagnostics-"],
body[data-ui="v2"][data-theme="light"] [class*="go-live-"],
body[data-ui="v2"][data-theme="light"] [class*="guardrail-policy"],
body[data-ui="v2"][data-theme="light"] [class*="flow-builder-"],
body[data-ui="v2"][data-theme="light"] [class*="route-draft"],
body[data-ui="v2"][data-theme="light"] [class*="overview-v2-"],
body[data-theme="light"] .main .route-tabs,
body[data-theme="light"] .main .routes-workspace .button-group,
body[data-theme="light"] .main .routes-workspace .route-switcher,
body[data-theme="light"] .main .guardrail-step-chip,
body[data-theme="light"] .main .guardrail-type-preset-shell,
body[data-theme="light"] .main .guardrail-type-preset,
body[data-theme="light"] .main .guardrail-brand-filter,
body[data-theme="light"] .main .llm-integrations-surface,
body[data-theme="light"] .main .llm-integration-card,
body[data-theme="light"] .main [class*="gateway-command-"],
body[data-theme="light"] .main [class*="gateway-flow-"],
body[data-theme="light"] .main [class*="diagnostics-"],
body[data-theme="light"] .main [class*="go-live-"],
body[data-theme="light"] .main [class*="guardrail-policy"],
body[data-theme="light"] .main [class*="flow-builder-"],
body[data-theme="light"] .main [class*="route-draft"],
body[data-theme="light"] .main [class*="overview-v2-"] {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary,
body[data-theme="light"] .button-primary {
  background-color: #1fd4d9 !important;
  border-color: rgba(31, 212, 217, 0.38) !important;
  box-shadow: 0 10px 24px rgba(31, 212, 217, 0.12) !important;
  color: #062030 !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary,
body[data-ui="v2"][data-theme="light"] .button-ghost,
body[data-theme="light"] .button-secondary,
body[data-theme="light"] .button-ghost {
  background-color: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.88) !important;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.06) !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary.active,
body[data-ui="v2"][data-theme="light"] .button-secondary[aria-selected="true"],
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch[aria-selected="true"],
body[data-theme="light"] .button-secondary.active,
body[data-theme="light"] .button-secondary[aria-selected="true"] {
  background-color: #eef7ff !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  color: #1d4ed8 !important;
}

/* Daylight color system: flat but lively */
body[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elevated: #eef3f8;
  --bg-panel: rgba(255, 255, 255, 0.96);
  --bg-panel-strong: #ffffff;
  --bg-panel-soft: #f6f9fd;
  --bg-input: #ffffff;
  --surface-light: #f3f7fc;
  --surface-white: #ffffff;
  --text: #24324a;
  --text-strong: #14213d;
  --text-muted: #5d6e8c;
  --text-soft: #7e90ae;
  --line: rgba(191, 201, 219, 0.76);
  --line-strong: rgba(31, 212, 217, 0.34);
  --accent: #1fd4d9;
  --accent-strong: #12b4ff;
  --accent-soft: rgba(31, 212, 217, 0.12);
  --ai-accent: #8b6cff;
  --data-accent: #14b8ff;
  --success: #22c58b;
  --warning: #f4b01a;
  --danger: #ef5b8a;
  --danger-soft: rgba(239, 91, 138, 0.12);
  --shadow-lg: 0 24px 64px rgba(148, 163, 184, 0.12);
  --shadow-md: 0 14px 34px rgba(148, 163, 184, 0.1);
  --shadow-sm: 0 8px 18px rgba(148, 163, 184, 0.08);
}

body[data-ui="v2"][data-theme="light"] {
  --obs-accent: #14b8ff;
  --gateway-accent: #1fd4d9;
  --guardrail-accent: #8b6cff;
  --rag-accent: #22c58b;
  --incident-accent: #f4b01a;
  background: #f4f7fb !important;
}

body[data-ui="v2"][data-theme="light"] .main {
  background: transparent !important;
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .sidebar-card,
body[data-ui="v2"][data-theme="light"] .route-tabs,
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switcher,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset-shell,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter,
body[data-ui="v2"][data-theme="light"] .llm-integrations-surface,
body[data-ui="v2"][data-theme="light"] .llm-integration-card,
body[data-ui="v2"][data-theme="light"] [class*="gateway-command-"],
body[data-ui="v2"][data-theme="light"] [class*="gateway-flow-"],
body[data-ui="v2"][data-theme="light"] [class*="diagnostics-"],
body[data-ui="v2"][data-theme="light"] [class*="go-live-"],
body[data-ui="v2"][data-theme="light"] [class*="guardrail-policy"],
body[data-ui="v2"][data-theme="light"] [class*="flow-builder-"],
body[data-ui="v2"][data-theme="light"] [class*="route-draft"],
body[data-ui="v2"][data-theme="light"] [class*="overview-v2-"] {
  border-color: rgba(198, 208, 224, 0.72) !important;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar {
  color: #233250 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-label {
  color: #5d6e8c !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-label,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-glyph {
  color: #0f6fff !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active,
body[data-ui="v2"][data-theme="light"] .nav-item.active {
  background-color: #eef7ff !important;
  border-color: rgba(18, 180, 255, 0.22) !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .route-draft-meta span,
body[data-ui="v2"][data-theme="light"] .flow-builder-status,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count {
  background-color: #f6fafe !important;
  border-color: rgba(191, 219, 254, 0.76) !important;
  color: #55708f !important;
}

body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .ops-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .module-card .eyebrow {
  color: #1686d9 !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-value,
body[data-ui="v2"][data-theme="light"] .mini-chart-value {
  color: #0ea5e9 !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary {
  background-color: #1fd4d9 !important;
  color: #082334 !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary:hover {
  background-color: #18c3cf !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary.active,
body[data-ui="v2"][data-theme="light"] .button-secondary[aria-selected="true"],
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch[aria-selected="true"] {
  background-color: #eef7ff !important;
  color: #0f6fff !important;
  border-color: rgba(18, 180, 255, 0.34) !important;
}

body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost:hover {
  background-color: #eef7ff !important;
  border-color: rgba(18, 180, 255, 0.28) !important;
  color: #0f6fff !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter.selected,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter:hover {
  background-color: #f0fbff !important;
  border-color: rgba(31, 212, 217, 0.32) !important;
  color: #0f6fff !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-type-preset em {
  background-color: #eef7ff !important;
  color: #0f6fff !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-success {
  background-color: #ecfdf5 !important;
  border-color: rgba(34, 197, 94, 0.26) !important;
  color: #15803d !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-warning {
  background-color: #fff7e8 !important;
  border-color: rgba(244, 176, 26, 0.28) !important;
  color: #a16207 !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-danger {
  background-color: #fff1f5 !important;
  border-color: rgba(239, 91, 138, 0.24) !important;
  color: #be185d !important;
}

/* Daylight palette refinement: soft lilac/cyan, no gradients */
body[data-theme="light"] {
  --bg: #f7f8fe;
  --bg-elevated: #f1f3fb;
  --bg-panel: rgba(255, 255, 255, 0.97);
  --bg-panel-strong: #ffffff;
  --bg-panel-soft: #f5f4ff;
  --bg-input: #ffffff;
  --surface-light: #f3f5fd;
  --surface-white: #ffffff;
  --text: #334155;
  --text-strong: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --line: rgba(214, 219, 235, 0.92);
  --line-strong: rgba(111, 109, 244, 0.22);
  --accent: #6f6df4;
  --accent-strong: #57d9d1;
  --accent-soft: rgba(111, 109, 244, 0.09);
  --ai-accent: #9b8cff;
  --data-accent: #57d9d1;
  --success: #53d6c9;
  --warning: #f6c36a;
  --danger: #ef7d9c;
  --danger-soft: rgba(239, 125, 156, 0.12);
  --shadow-lg: 0 24px 60px rgba(148, 163, 184, 0.1);
  --shadow-md: 0 14px 30px rgba(148, 163, 184, 0.08);
  --shadow-sm: 0 8px 18px rgba(148, 163, 184, 0.06);
}

body[data-ui="v2"][data-theme="light"] {
  --obs-accent: #57d9d1;
  --gateway-accent: #6f6df4;
  --guardrail-accent: #9b8cff;
  --rag-accent: #53d6c9;
  --incident-accent: #f6c36a;
  background: #f7f8fe !important;
}

body[data-ui="v2"][data-theme="light"] .topbar,
body[data-theme="light"] .main .topbar {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.06) !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar,
body[data-theme="light"] .main .sidebar {
  background-color: #fcfcff !important;
  box-shadow: none !important;
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .sidebar-card,
body[data-ui="v2"][data-theme="light"] .route-tabs,
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switcher,
body[data-ui="v2"][data-theme="light"] .guardrail-step-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset-shell,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter,
body[data-ui="v2"][data-theme="light"] .llm-integrations-surface,
body[data-ui="v2"][data-theme="light"] .llm-integration-card,
body[data-ui="v2"][data-theme="light"] [class*="gateway-command-"],
body[data-ui="v2"][data-theme="light"] [class*="gateway-flow-"],
body[data-ui="v2"][data-theme="light"] [class*="diagnostics-"],
body[data-ui="v2"][data-theme="light"] [class*="go-live-"],
body[data-ui="v2"][data-theme="light"] [class*="guardrail-policy"],
body[data-ui="v2"][data-theme="light"] [class*="flow-builder-"],
body[data-ui="v2"][data-theme="light"] [class*="route-draft"],
body[data-ui="v2"][data-theme="light"] [class*="overview-v2-"] {
  border-color: rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.06) !important;
}

body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .ops-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .module-card .eyebrow {
  color: #7c86a5 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-label {
  color: #5f6b85 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-glyph {
  color: #7c86a5 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active,
body[data-ui="v2"][data-theme="light"] .nav-item.active,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle:hover,
body[data-ui="v2"][data-theme="light"] .nav-item:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-label,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-glyph {
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle,
body[data-ui="v2"][data-theme="light"] .nav-item {
  border: 0 !important;
  background: transparent !important;
}

body[data-ui="v2"][data-theme="light"] .v2-side-nav .nav-cluster,
body[data-ui="v2"][data-theme="light"] .sidebar-story {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-ui="v2"][data-theme="light"] .nav-item.active {
  position: relative;
}

body[data-ui="v2"][data-theme="light"] .nav-item.active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: #57d9d1;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-glyph {
  color: #7a84a0 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-glyph {
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar label,
body[data-ui="v2"][data-theme="light"] .command-palette-input,
body[data-ui="v2"][data-theme="light"] .status-pill,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .route-draft-meta span,
body[data-ui="v2"][data-theme="light"] .flow-builder-status,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count {
  background-color: #fbfbff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  color: #64748b !important;
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar label span,
body[data-ui="v2"][data-theme="light"] .command-palette-input span {
  color: #57d9d1 !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary,
body[data-theme="light"] .button-primary {
  background-color: #6f6df4 !important;
  border-color: rgba(111, 109, 244, 0.34) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(111, 109, 244, 0.16) !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary:hover,
body[data-theme="light"] .button-primary:hover {
  background-color: #615fe8 !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary,
body[data-ui="v2"][data-theme="light"] .button-ghost,
body[data-theme="light"] .button-secondary,
body[data-theme="light"] .button-ghost {
  background-color: #ffffff !important;
  border-color: rgba(214, 219, 235, 0.96) !important;
  color: #334155 !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary.active,
body[data-ui="v2"][data-theme="light"] .button-secondary[aria-selected="true"],
body[data-ui="v2"][data-theme="light"] .routes-workspace .button-group .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .route-tabs .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch.active,
body[data-ui="v2"][data-theme="light"] .routes-workspace .route-switch[aria-selected="true"],
body[data-theme="light"] .button-secondary.active,
body[data-theme="light"] .button-secondary[aria-selected="true"] {
  background-color: #f3f1ff !important;
  border-color: rgba(111, 109, 244, 0.3) !important;
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter.selected,
body[data-ui="v2"][data-theme="light"] .guardrail-brand-filter:hover,
body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost.active,
body[data-ui="v2"][data-theme="light"] .overview-v2-workspace-links .button-ghost:hover {
  background-color: #eefdfa !important;
  border-color: rgba(87, 217, 209, 0.28) !important;
  color: #159d97 !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-brand-icon,
body[data-ui="v2"][data-theme="light"] .guardrail-type-preset em {
  background-color: #f3f1ff !important;
  border-color: rgba(111, 109, 244, 0.22) !important;
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-success {
  background-color: #ecfdf8 !important;
  border-color: rgba(83, 214, 201, 0.26) !important;
  color: #0f9f8c !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-warning {
  background-color: #fff8ea !important;
  border-color: rgba(246, 195, 106, 0.3) !important;
  color: #b7791f !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-danger {
  background-color: #fff1f5 !important;
  border-color: rgba(239, 125, 156, 0.24) !important;
  color: #d94675 !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions {
  background-color: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.05) !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-value {
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score-meta span {
  background-color: #f3f1ff !important;
  border-color: rgba(111, 109, 244, 0.18) !important;
  color: #5f6b85 !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-step.is-active,
body[data-ui="v2"][data-theme="light"] .gateway-command-action.is-active {
  border-color: rgba(87, 217, 209, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(87, 217, 209, 0.12) !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector,
body[data-ui="v2"][data-theme="light"] .flow-builder-toolbar,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip,
body[data-ui="v2"][data-theme="light"] .flow-builder-selected-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-strip {
  background-color: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.05) !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-canvas,
body[data-ui="v2"][data-theme="light"] .gateway-flow-map-surface {
  background-color: #f8f9fe !important;
  border-color: rgba(218, 226, 241, 0.9) !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-node,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node {
  background-color: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.05) !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-node.is-selected,
body[data-ui="v2"][data-theme="light"] .gateway-flow-node.is-selected {
  border-color: rgba(87, 217, 209, 0.34) !important;
  box-shadow: 0 0 0 1px rgba(87, 217, 209, 0.14), 0 10px 20px rgba(148, 163, 184, 0.06) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .guardrail-overview-card,
body[data-ui="v2"][data-theme="light"] .guardrail-library-card,
body[data-ui="v2"][data-theme="light"] .guardrail-risk-card,
body[data-ui="v2"][data-theme="light"] .guardrail-activity-card {
  background-color: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.05) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span {
  background-color: #fbfbff !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip.active {
  background-color: #f3f1ff !important;
  border-color: rgba(111, 109, 244, 0.24) !important;
  box-shadow: 0 8px 18px rgba(111, 109, 244, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .guardrail-step-chip.active strong {
  color: #5b57f2 !important;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button {
  background-color: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  color: #64748b !important;
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.05) !important;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button:hover {
  background-color: #f8f9fe !important;
  border-color: rgba(111, 109, 244, 0.24) !important;
  color: #5b57f2 !important;
}

/* Daylight final cleanup: no gradients, stronger copy on white */
body[data-ui="v2"][data-theme="light"] .global-scope-bar label,
body[data-ui="v2"][data-theme="light"] .command-palette-input,
body[data-ui="v2"][data-theme="light"] .status-pill,
body[data-ui="v2"][data-theme="light"] .diagnostics-meta-chip,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-meta span,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-stats span,
body[data-ui="v2"][data-theme="light"] .route-draft-meta span,
body[data-ui="v2"][data-theme="light"] .flow-builder-status,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-count,
body[data-theme="light"] .main .global-scope-bar label,
body[data-theme="light"] .main .command-palette-input,
body[data-theme="light"] .main .status-pill,
body[data-theme="light"] .main .diagnostics-meta-chip {
  background-image: none !important;
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .global-scope-bar label span,
body[data-ui="v2"][data-theme="light"] .command-palette-input span,
body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .ops-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .module-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-head .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-row .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-expanded .eyebrow,
body[data-ui="v2"][data-theme="light"] .status-row .eyebrow,
body[data-theme="light"] .main .global-scope-bar label span,
body[data-theme="light"] .main .card .eyebrow,
body[data-theme="light"] .main .metric .eyebrow,
body[data-theme="light"] .main .panel-copy .eyebrow,
body[data-theme="light"] .main .ops-card .eyebrow,
body[data-theme="light"] .main .module-card .eyebrow,
body[data-theme="light"] .main .diagnostics-signal-card .eyebrow,
body[data-theme="light"] .main .flow-builder-manager-title,
body[data-theme="light"] .main .flow-builder-scope label {
  color: #63708c !important;
}

body[data-ui="v2"][data-theme="light"] [class*="gateway-command-"],
body[data-ui="v2"][data-theme="light"] [class*="guardrail-policy"],
body[data-ui="v2"][data-theme="light"] [class*="flow-builder-"],
body[data-ui="v2"][data-theme="light"] [class*="route-draft"],
body[data-ui="v2"][data-theme="light"] [class*="overview-v2-"],
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .sidebar-card,
body[data-ui="v2"][data-theme="light"] .ops-card,
body[data-ui="v2"][data-theme="light"] .module-card,
body[data-theme="light"] .main [class*="gateway-command-"],
body[data-theme="light"] .main [class*="guardrail-policy"],
body[data-theme="light"] .main [class*="flow-builder-"],
body[data-theme="light"] .main [class*="route-draft"],
body[data-theme="light"] .main [class*="overview-v2-"],
body[data-theme="light"] .main .metric,
body[data-theme="light"] .main .card,
body[data-theme="light"] .main .ops-card,
body[data-theme="light"] .main .module-card {
  background-image: none !important;
}

body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .gateway-command-actions,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .guardrail-overview-card,
body[data-ui="v2"][data-theme="light"] .guardrail-library-card,
body[data-ui="v2"][data-theme="light"] .guardrail-risk-card,
body[data-ui="v2"][data-theme="light"] .guardrail-activity-card,
body[data-ui="v2"][data-theme="light"] .flow-builder-scope,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-details,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector-panel,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip,
body[data-ui="v2"][data-theme="light"] .route-draft-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-shell,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat,
body[data-ui="v2"][data-theme="light"] .overview-v2-scorecard,
body[data-ui="v2"][data-theme="light"] .overview-v2-kpi,
body[data-ui="v2"][data-theme="light"] .overview-v2-pulse-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-chart-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-insight-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-health-card,
body[data-theme="light"] .main .gateway-command-score,
body[data-theme="light"] .main .gateway-command-lane,
body[data-theme="light"] .main .gateway-command-action,
body[data-theme="light"] .main .gateway-command-step,
body[data-theme="light"] .main .gateway-command-detail,
body[data-theme="light"] .main .gateway-command-workflow,
body[data-theme="light"] .main .route-draft-card,
body[data-theme="light"] .main .guardrail-policy-card,
body[data-theme="light"] .main .flow-builder-scope,
body[data-theme="light"] .main .flow-builder-palette-shell,
body[data-theme="light"] .main .flow-builder-canvas-shell,
body[data-theme="light"] .main .flow-builder-details,
body[data-theme="light"] .main .flow-builder-inspector-panel,
body[data-theme="light"] .main .flow-builder-palette-item,
body[data-theme="light"] .main .flow-builder-step,
body[data-theme="light"] .main .flow-builder-anchor-node,
body[data-theme="light"] .main .flow-builder-empty,
body[data-theme="light"] .main .flow-builder-manager-chip {
  background-color: #ffffff !important;
  background-image: none !important;
}

body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .route-summary-card,
body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .route-draft-card,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector-panel,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty,
body[data-ui="v2"][data-theme="light"] .flow-builder-manager-chip,
body[data-theme="light"] .main .metric,
body[data-theme="light"] .main .route-summary-card,
body[data-theme="light"] .main .gateway-command-score,
body[data-theme="light"] .main .gateway-command-lane,
body[data-theme="light"] .main .gateway-command-action,
body[data-theme="light"] .main .gateway-command-step,
body[data-theme="light"] .main .gateway-command-detail,
body[data-theme="light"] .main .gateway-command-workflow,
body[data-theme="light"] .main .guardrail-policy-card,
body[data-theme="light"] .main .route-draft-card,
body[data-theme="light"] .main .flow-builder-palette-shell,
body[data-theme="light"] .main .flow-builder-canvas-shell,
body[data-theme="light"] .main .flow-builder-inspector-panel,
body[data-theme="light"] .main .flow-builder-palette-item,
body[data-theme="light"] .main .flow-builder-step,
body[data-theme="light"] .main .flow-builder-anchor-node,
body[data-theme="light"] .main .flow-builder-empty,
body[data-theme="light"] .main .flow-builder-manager-chip {
  background-color: #fcfdff !important;
  background-image: none !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 1),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 1),
body[data-theme="light"] .main .metric:nth-child(4n + 1) {
  background-color: #f3fbff !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 2),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 2),
body[data-theme="light"] .main .metric:nth-child(4n + 2) {
  background-color: #f6f5ff !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 3),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 3),
body[data-theme="light"] .main .metric:nth-child(4n + 3) {
  background-color: #f8fffb !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 4),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 4),
body[data-theme="light"] .main .metric:nth-child(4n + 4) {
  background-color: #fffaf3 !important;
}

body[data-ui="v2"][data-theme="light"] .panel-icon,
body[data-ui="v2"][data-theme="light"] .panel-icon-subtle,
body[data-ui="v2"][data-theme="light"] .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-glyph,
body[data-ui="v2"][data-theme="light"] .provider-action-button svg,
body[data-ui="v2"][data-theme="light"] .table-actions .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .flow-builder-panel-icon,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-icon,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-icon,
body[data-ui="v2"][data-theme="light"] .go-live-check-icon,
body[data-theme="light"] .main .panel-icon,
body[data-theme="light"] .main .panel-icon-subtle,
body[data-theme="light"] .main .button-icon-prefix,
body[data-theme="light"] .main .provider-action-button svg,
body[data-theme="light"] .main .table-actions .button-icon-prefix {
  color: #4f46e5 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body[data-ui="v2"][data-theme="light"] .button-ghost .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .button-secondary .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .button-ghost svg,
body[data-ui="v2"][data-theme="light"] .button-secondary svg,
body[data-theme="light"] .button-ghost .button-icon-prefix,
body[data-theme="light"] .button-secondary .button-icon-prefix,
body[data-theme="light"] .button-ghost svg,
body[data-theme="light"] .button-secondary svg {
  color: #22c7df !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body[data-ui="v2"][data-theme="light"] .danger-button .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .danger-button svg,
body[data-theme="light"] .danger-button .button-icon-prefix,
body[data-theme="light"] .danger-button svg {
  color: #ef4444 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Daylight accents: flat and strong, no tinted washes */
body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 1),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 1),
body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 2),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 2),
body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 3),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 3),
body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 4),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 4),
body[data-theme="light"] .main .metric:nth-child(4n + 1),
body[data-theme="light"] .main .metric:nth-child(4n + 2),
body[data-theme="light"] .main .metric:nth-child(4n + 3),
body[data-theme="light"] .main .metric:nth-child(4n + 4) {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat,
body[data-theme="light"] .main .metric {
  border-top-width: 3px !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 1),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 1),
body[data-theme="light"] .main .metric:nth-child(4n + 1) {
  border-top-color: #22c7df !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 2),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 2),
body[data-theme="light"] .main .metric:nth-child(4n + 2) {
  border-top-color: #6d5efc !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 3),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 3),
body[data-theme="light"] .main .metric:nth-child(4n + 3) {
  border-top-color: #2dd4bf !important;
}

body[data-ui="v2"][data-theme="light"] .metric:nth-child(4n + 4),
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat:nth-child(4n + 4),
body[data-theme="light"] .main .metric:nth-child(4n + 4) {
  border-top-color: #f59e0b !important;
}

body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat .eyebrow,
body[data-ui="v2"][data-theme="light"] .route-summary-card .eyebrow,
body[data-theme="light"] .main .metric .eyebrow {
  color: #4f46e5 !important;
}

body[data-ui="v2"][data-theme="light"] .metric strong,
body[data-ui="v2"][data-theme="light"] .metric h3,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat strong,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat h3,
body[data-ui="v2"][data-theme="light"] .route-summary-card strong,
body[data-ui="v2"][data-theme="light"] .route-summary-card h3,
body[data-theme="light"] .main .metric strong,
body[data-theme="light"] .main .metric h3 {
  color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-secondary,
body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-ghost,
body[data-theme="light"] .main .model-control-summary-actions .button-secondary,
body[data-theme="light"] .main .model-control-summary-actions .button-ghost {
  background-color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.95) !important;
  color: #334155 !important;
}

body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-secondary .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-ghost .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-secondary svg,
body[data-ui="v2"][data-theme="light"] .model-control-summary-actions .button-ghost svg,
body[data-theme="light"] .main .model-control-summary-actions .button-secondary .button-icon-prefix,
body[data-theme="light"] .main .model-control-summary-actions .button-ghost .button-icon-prefix,
body[data-theme="light"] .main .model-control-summary-actions .button-secondary svg,
body[data-theme="light"] .main .model-control-summary-actions .button-ghost svg {
  color: #22c7df !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body[data-ui="v2"][data-theme="light"] .provider-action-button.is-danger,
body[data-ui="v2"][data-theme="light"] .provider-action-button.danger {
  background-color: #fff5f7 !important;
  border-color: rgba(239, 125, 156, 0.26) !important;
  color: #d94675 !important;
}

/* Startup polish pass: brighter flat accents without gradients */
body[data-ui="v2"] {
  --startup-cyan: #00d4ff;
  --startup-mint: #15d6a3;
  --startup-blue: #3b82f6;
  --startup-violet: #8b5cf6;
  --startup-pink: #ec4899;
  --startup-amber: #f6b73c;
}

body[data-ui="v2"] .button-primary,
body[data-ui="v2"] .primary-link,
body[data-ui="v2"] .nav-cta {
  background-color: var(--startup-cyan) !important;
  background-image: none !important;
  border-color: rgba(0, 212, 255, 0.55) !important;
  color: #06111f !important;
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.18) !important;
}

body[data-ui="v2"] .button-primary:hover,
body[data-ui="v2"] .primary-link:hover,
body[data-ui="v2"] .nav-cta:hover {
  background-color: #22e2ff !important;
  border-color: rgba(34, 226, 255, 0.72) !important;
}

body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost,
body[data-ui="v2"] .chip-option,
body[data-ui="v2"] .status-pill {
  border-color: rgba(0, 212, 255, 0.24) !important;
}

body[data-ui="v2"] .button-secondary:hover,
body[data-ui="v2"] .button-ghost:hover,
body[data-ui="v2"] .chip-option:hover {
  border-color: rgba(0, 212, 255, 0.48) !important;
  color: var(--startup-cyan) !important;
}

body[data-ui="v2"] .eyebrow,
body[data-ui="v2"] .card .eyebrow,
body[data-ui="v2"] .metric .eyebrow,
body[data-ui="v2"] .panel-copy .eyebrow,
body[data-ui="v2"] .module-card .eyebrow,
body[data-ui="v2"] .ops-card .eyebrow {
  color: var(--startup-cyan) !important;
}

body[data-ui="v2"] .panel-icon,
body[data-ui="v2"] .panel-icon-subtle,
body[data-ui="v2"] .button-icon-prefix,
body[data-ui="v2"] .provider-action-button svg,
body[data-ui="v2"] .table-actions .button-icon-prefix,
body[data-ui="v2"] .flow-builder-panel-icon,
body[data-ui="v2"] .flow-builder-step-icon,
body[data-ui="v2"] .guardrail-policy-card-icon,
body[data-ui="v2"] .go-live-check-icon {
  color: var(--startup-cyan) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body[data-ui="v2"] .metric,
body[data-ui="v2"] .card,
body[data-ui="v2"] .route-summary-card,
body[data-ui="v2"] .gateway-command-lane,
body[data-ui="v2"] .guardrail-policy-card,
body[data-ui="v2"] .flow-builder-step,
body[data-ui="v2"] .overview-v2-top-stat {
  border-top-width: 3px !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 1),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 1),
body[data-ui="v2"] .card:nth-child(4n + 1) {
  border-top-color: var(--startup-cyan) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 2),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 2),
body[data-ui="v2"] .card:nth-child(4n + 2) {
  border-top-color: var(--startup-violet) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 3),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 3),
body[data-ui="v2"] .card:nth-child(4n + 3) {
  border-top-color: var(--startup-mint) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 4),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 4),
body[data-ui="v2"] .card:nth-child(4n + 4) {
  border-top-color: var(--startup-amber) !important;
}

body[data-ui="v2"] .status-pill-warning,
body[data-ui="v2"] #incident-pill.status-pill-warning {
  background-color: rgba(246, 183, 60, 0.13) !important;
  border-color: rgba(246, 183, 60, 0.42) !important;
  color: #f59e0b !important;
}

body[data-ui="v2"] .status-pill-danger,
body[data-ui="v2"] #incident-pill.status-pill-danger,
body[data-ui="v2"] .danger-button {
  background-color: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
  color: #f472b6 !important;
}

body[data-ui="v2"] .status-pill-success,
body[data-ui="v2"] .status-pill-healthy,
body[data-ui="v2"] .status-pill-active {
  background-color: rgba(21, 214, 163, 0.13) !important;
  border-color: rgba(21, 214, 163, 0.42) !important;
  color: #19d39f !important;
}

body[data-ui="v2"] .v2-nav-icon,
body[data-ui="v2"] .nav-glyph {
  color: var(--startup-cyan) !important;
}

body[data-ui="v2"] .v2-nav-toggle.active,
body[data-ui="v2"] .v2-nav-toggle[aria-expanded="true"],
body[data-ui="v2"] .nav-item.active {
  border-color: rgba(0, 212, 255, 0.38) !important;
}

body[data-ui="v2"][data-theme="light"] {
  --bg: #f7f9fd;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f4f8ff;
  --text: #24324a;
  --text-strong: #101b33;
  --text-muted: #566987;
  --text-soft: #72829d;
  --accent: #06b6d4;
  --accent-strong: #2563eb;
  --line: rgba(199, 210, 226, 0.8);
}

body[data-ui="v2"][data-theme="light"] .console-body,
body[data-ui="v2"][data-theme="light"].console-body {
  background-color: #f7f9fd !important;
  background-image: none !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(199, 210, 226, 0.86) !important;
}

body[data-ui="v2"][data-theme="light"] .main,
body[data-ui="v2"][data-theme="light"] .topbar {
  background-color: #f7f9fd !important;
  background-image: none !important;
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .module-card,
body[data-ui="v2"][data-theme="light"] .ops-card,
body[data-ui="v2"][data-theme="light"] .route-summary-card,
body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-inspector-panel,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .overview-v2-shell,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(199, 210, 226, 0.82) !important;
  color: #101b33 !important;
  box-shadow: 0 14px 30px rgba(56, 75, 108, 0.08) !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"],
body[data-ui="v2"][data-theme="light"] .nav-item.active {
  background-color: #eef8ff !important;
  background-image: none !important;
  color: #0369a1 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-label,
body[data-ui="v2"][data-theme="light"] .sub-nav-item {
  color: #566987 !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-label,
body[data-ui="v2"][data-theme="light"] .sub-nav-item.active {
  color: #2563eb !important;
}

body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .module-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .ops-card .eyebrow {
  color: #0891b2 !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary,
body[data-ui="v2"][data-theme="light"] .primary-link,
body[data-ui="v2"][data-theme="light"] .nav-cta {
  background-color: #17c3e8 !important;
  color: #071827 !important;
  box-shadow: 0 10px 22px rgba(23, 195, 232, 0.22) !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary,
body[data-ui="v2"][data-theme="light"] .button-ghost,
body[data-ui="v2"][data-theme="light"] .chip-option,
body[data-ui="v2"][data-theme="light"] .status-pill {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(147, 197, 253, 0.78) !important;
  color: #31415c !important;
}

body[data-ui="v2"][data-theme="light"] .button-secondary:hover,
body[data-ui="v2"][data-theme="light"] .button-ghost:hover,
body[data-ui="v2"][data-theme="light"] .chip-option:hover {
  background-color: #eff8ff !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}

body[data-ui="v2"][data-theme="light"] .panel-icon,
body[data-ui="v2"][data-theme="light"] .panel-icon-subtle,
body[data-ui="v2"][data-theme="light"] .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .provider-action-button svg,
body[data-ui="v2"][data-theme="light"] .table-actions .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .flow-builder-panel-icon,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-icon,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-icon,
body[data-ui="v2"][data-theme="light"] .go-live-check-icon,
body[data-ui="v2"][data-theme="light"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-glyph {
  color: #2563eb !important;
}

body[data-ui="v2"][data-theme="light"] .topbar,
body[data-ui="v2"] .topbar {
  padding-top: 24px !important;
  overflow: visible !important;
}

body[data-ui="v2"][data-theme="light"] .topbar-actions,
body[data-ui="v2"] .topbar-actions {
  align-items: center !important;
  overflow: visible !important;
}

body[data-ui="v2"][data-theme="light"] #incident-pill,
body[data-ui="v2"] #incident-pill {
  min-width: 76px !important;
  height: 44px !important;
  padding: 0 16px !important;
  overflow: visible !important;
}

/* V2 final product pass: flatter, clearer, and less crowded. */
body[data-ui="v2"] {
  --v2-flat-cyan: #16c7e8;
  --v2-flat-blue: #2563eb;
  --v2-flat-violet: #6d5efc;
  --v2-flat-mint: #14b8a6;
  --v2-flat-pink: #e14d8f;
  --v2-flat-amber: #f59e0b;
}

body[data-ui="v2"] .console-body,
body[data-ui="v2"] .main,
body[data-ui="v2"] .topbar,
body[data-ui="v2"] .sidebar,
body[data-ui="v2"] .card,
body[data-ui="v2"] .metric,
body[data-ui="v2"] .button-primary,
body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost,
body[data-ui="v2"] .status-pill,
body[data-ui="v2"] .chip-option,
body[data-ui="v2"] .global-scope-bar label,
body[data-ui="v2"] .command-palette-input,
body[data-ui="v2"] .route-summary-card,
body[data-ui="v2"] .gateway-command-score,
body[data-ui="v2"] .gateway-command-lane,
body[data-ui="v2"] .gateway-command-action,
body[data-ui="v2"] .gateway-command-step,
body[data-ui="v2"] .gateway-command-detail,
body[data-ui="v2"] .gateway-command-workflow,
body[data-ui="v2"] .guardrail-policy-card,
body[data-ui="v2"] .guardrail-overview-card,
body[data-ui="v2"] .guardrail-library-card,
body[data-ui="v2"] .guardrail-risk-card,
body[data-ui="v2"] .guardrail-activity-card,
body[data-ui="v2"] .overview-v2-shell,
body[data-ui="v2"] .overview-v2-top-stat,
body[data-ui="v2"] .overview-v2-scorecard,
body[data-ui="v2"] .overview-v2-kpi,
body[data-ui="v2"] .overview-v2-pulse-card,
body[data-ui="v2"] .overview-v2-chart-card,
body[data-ui="v2"] .overview-v2-insight-card,
body[data-ui="v2"] .overview-v2-health-card,
body[data-ui="v2"] .flow-builder-scope,
body[data-ui="v2"] .flow-builder-status,
body[data-ui="v2"] .flow-builder-palette-shell,
body[data-ui="v2"] .flow-builder-canvas-shell,
body[data-ui="v2"] .flow-builder-details,
body[data-ui="v2"] .flow-builder-palette-item,
body[data-ui="v2"] .flow-builder-step,
body[data-ui="v2"] .flow-builder-anchor-node,
body[data-ui="v2"] .flow-builder-empty,
body[data-ui="v2"] .flow-builder-manager-chip,
body[data-ui="v2"] .user-menu-panel,
body[data-ui="v2"] .user-menu-item,
body[data-ui="v2"] .logs-v2-row,
body[data-ui="v2"] .logs-v2-expanded,
body[data-ui="v2"] .logs-v2-more-filters summary,
body[data-ui="v2"] .overview-v2-filter,
body[data-ui="v2"] .overview-v2-search {
  background-image: none !important;
}

body[data-ui="v2"] .trend-chart-line {
  stroke: var(--v2-flat-cyan) !important;
}

body[data-ui="v2"] .trend-chart-area {
  fill: rgba(22, 199, 232, 0.18) !important;
}

body[data-ui="v2"] .flow-builder-wires path {
  stroke: var(--v2-flat-cyan) !important;
}

body[data-ui="v2"] .flow-builder-step-line {
  background: var(--v2-flat-cyan) !important;
}

body[data-ui="v2"] .flow-builder-map-surface {
  background-color: rgba(8, 14, 30, 0.55) !important;
  background-image: none !important;
  border-radius: 18px;
}

body[data-ui="v2"] .flow-builder-canvas {
  width: 100% !important;
  max-height: 620px !important;
  min-height: 560px !important;
  aspect-ratio: auto !important;
  overflow: auto !important;
}

body[data-ui="v2"] .flow-builder-canvas-shell {
  min-height: 660px !important;
}

body[data-ui="v2"] .flow-builder-palette-shell,
body[data-ui="v2"] .flow-builder-details {
  max-height: 660px !important;
  overflow: auto !important;
}

body[data-ui="v2"] .flow-builder-step {
  min-width: 176px !important;
  max-width: 176px !important;
  min-height: 142px !important;
}

body[data-ui="v2"] .flow-builder-anchor-node {
  min-width: 156px !important;
  max-width: 156px !important;
  min-height: 124px !important;
  background-color: rgba(13, 24, 47, 0.92) !important;
}

body[data-ui="v2"] .flow-builder-finish-node {
  border-color: rgba(225, 77, 143, 0.5) !important;
}

body[data-ui="v2"] .user-menu-panel {
  background-color: rgba(9, 14, 26, 0.98) !important;
}

body[data-ui="v2"] .user-menu-item {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body[data-ui="v2"] .user-menu-item:hover,
body[data-ui="v2"] .user-menu-item:focus-visible {
  background-color: rgba(37, 99, 235, 0.14) !important;
}

body[data-ui="v2"] .user-menu-item-danger {
  background-color: rgba(127, 29, 29, 0.14) !important;
}

body[data-ui="v2"] .user-menu-item-danger:hover,
body[data-ui="v2"] .user-menu-item-danger:focus-visible {
  background-color: rgba(127, 29, 29, 0.22) !important;
}

body[data-ui="v2"] .logs-v2-toolbar {
  display: grid !important;
  grid-template-columns: minmax(300px, 1.6fr) repeat(3, minmax(160px, 0.75fr)) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

body[data-ui="v2"] .logs-v2-more-filters {
  position: relative;
  min-width: 130px;
}

body[data-ui="v2"] .logs-v2-more-filters summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(80, 105, 168, 0.24);
  border-radius: 18px;
  color: var(--text-strong);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

body[data-ui="v2"] .logs-v2-more-filters summary::-webkit-details-marker {
  display: none;
}

body[data-ui="v2"] .logs-v2-more-filter-grid {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(720px, calc(100vw - 48px));
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(80, 105, 168, 0.24);
  border-radius: 20px;
  background: var(--bg-panel);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.24);
}

body[data-ui="v2"] .logs-v2-time-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(240px, 1fr)) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

body[data-ui="v2"][data-theme="light"] {
  --bg: #f6f8fc;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f7f9ff;
  --text: #26364f;
  --text-strong: #111c32;
  --text-muted: #56677f;
  --text-soft: #71819a;
  --accent: var(--v2-flat-cyan);
  --accent-strong: var(--v2-flat-blue);
  --line: rgba(207, 216, 232, 0.86);
}

body[data-ui="v2"][data-theme="light"] .console-body,
body[data-ui="v2"][data-theme="light"].console-body,
body[data-ui="v2"][data-theme="light"] .main,
body[data-ui="v2"][data-theme="light"] .topbar {
  background-color: #f6f8fc !important;
}

body[data-ui="v2"][data-theme="light"] .sidebar {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .card,
body[data-ui="v2"][data-theme="light"] .metric,
body[data-ui="v2"][data-theme="light"] .module-card,
body[data-ui="v2"][data-theme="light"] .ops-card,
body[data-ui="v2"][data-theme="light"] .route-summary-card,
body[data-ui="v2"][data-theme="light"] .overview-v2-shell,
body[data-ui="v2"][data-theme="light"] .overview-v2-top-stat,
body[data-ui="v2"][data-theme="light"] .gateway-command-score,
body[data-ui="v2"][data-theme="light"] .gateway-command-lane,
body[data-ui="v2"][data-theme="light"] .gateway-command-action,
body[data-ui="v2"][data-theme="light"] .gateway-command-step,
body[data-ui="v2"][data-theme="light"] .gateway-command-detail,
body[data-ui="v2"][data-theme="light"] .gateway-command-workflow,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-canvas-shell,
body[data-ui="v2"][data-theme="light"] .flow-builder-details,
body[data-ui="v2"][data-theme="light"] .flow-builder-palette-item,
body[data-ui="v2"][data-theme="light"] .flow-builder-step,
body[data-ui="v2"][data-theme="light"] .flow-builder-empty,
body[data-ui="v2"][data-theme="light"] .user-menu-panel,
body[data-ui="v2"][data-theme="light"] .user-menu-item,
body[data-ui="v2"][data-theme="light"] .logs-v2-row,
body[data-ui="v2"][data-theme="light"] .logs-v2-expanded {
  background-color: #ffffff !important;
  border-color: rgba(207, 216, 232, 0.92) !important;
  color: #111c32 !important;
  box-shadow: 0 12px 26px rgba(45, 65, 104, 0.07) !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-canvas,
body[data-ui="v2"][data-theme="light"] .flow-builder-map-surface {
  background-color: #f7f9ff !important;
}

body[data-ui="v2"][data-theme="light"] .flow-builder-anchor-node {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .user-menu-panel {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .user-menu-item {
  background-color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .user-menu-item:hover,
body[data-ui="v2"][data-theme="light"] .user-menu-item:focus-visible {
  background-color: #eff6ff !important;
}

body[data-ui="v2"][data-theme="light"] .user-menu-item-danger {
  background-color: #fff1f2 !important;
}

body[data-ui="v2"][data-theme="light"] .user-menu-item-danger:hover,
body[data-ui="v2"][data-theme="light"] .user-menu-item-danger:focus-visible {
  background-color: #ffe4e6 !important;
}

body[data-ui="v2"][data-theme="light"] .logs-v2-more-filter-grid {
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(45, 65, 104, 0.14);
}

body[data-ui="v2"][data-theme="light"] .eyebrow,
body[data-ui="v2"][data-theme="light"] .card .eyebrow,
body[data-ui="v2"][data-theme="light"] .metric .eyebrow,
body[data-ui="v2"][data-theme="light"] .panel-copy .eyebrow,
body[data-ui="v2"][data-theme="light"] .module-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .ops-card .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-row .eyebrow,
body[data-ui="v2"][data-theme="light"] .logs-v2-expanded .eyebrow {
  color: #2563eb !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary,
body[data-ui="v2"][data-theme="light"] .primary-link,
body[data-ui="v2"][data-theme="light"] .nav-cta {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body[data-ui="v2"][data-theme="light"] .button-primary:hover,
body[data-ui="v2"][data-theme="light"] .primary-link:hover,
body[data-ui="v2"][data-theme="light"] .nav-cta:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .panel-icon,
body[data-ui="v2"][data-theme="light"] .panel-icon-subtle,
body[data-ui="v2"][data-theme="light"] .button-icon-prefix,
body[data-ui="v2"][data-theme="light"] .flow-builder-panel-icon,
body[data-ui="v2"][data-theme="light"] .flow-builder-step-icon,
body[data-ui="v2"][data-theme="light"] .guardrail-policy-card-icon,
body[data-ui="v2"][data-theme="light"] .go-live-check-icon,
body[data-ui="v2"][data-theme="light"] .v2-nav-icon,
body[data-ui="v2"][data-theme="light"] .nav-glyph {
  color: #2563eb !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-label,
body[data-ui="v2"][data-theme="light"] .sub-nav-item {
  color: #4b5f7c !important;
}

body[data-ui="v2"][data-theme="light"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title,
body[data-ui="v2"][data-theme="light"] .nav-item.active .nav-label,
body[data-ui="v2"][data-theme="light"] .sub-nav-item.active {
  color: #1d4ed8 !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-warning,
body[data-ui="v2"][data-theme="light"] #incident-pill.status-pill-warning {
  background-color: #fff7ed !important;
  border-color: rgba(245, 158, 11, 0.36) !important;
  color: #b45309 !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-danger,
body[data-ui="v2"][data-theme="light"] #incident-pill.status-pill-danger,
body[data-ui="v2"][data-theme="light"] .danger-button {
  background-color: #fff1f2 !important;
  border-color: rgba(225, 77, 143, 0.34) !important;
  color: #be185d !important;
}

body[data-ui="v2"][data-theme="light"] .status-pill-success,
body[data-ui="v2"][data-theme="light"] .status-pill-healthy,
body[data-ui="v2"][data-theme="light"] .status-pill-active {
  background-color: #ecfdf5 !important;
  border-color: rgba(20, 184, 166, 0.34) !important;
  color: #047857 !important;
}

body[data-ui="v2"] *,
body[data-ui="v2"] *::before,
body[data-ui="v2"] *::after {
  background-image: none !important;
}

@media (max-width: 1180px) {
  body[data-ui="v2"] .logs-v2-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }

  body[data-ui="v2"] .logs-v2-time-row {
    grid-template-columns: 1fr !important;
  }

  body[data-ui="v2"] .logs-v2-more-filter-grid {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }
}

/* V2 UX refinement pass: calmer density, flat color roles, stronger hierarchy. */
body[data-ui="v2"] {
  --ux-bg: #070b14;
  --ux-surface: #0d1422;
  --ux-surface-raised: #111a2b;
  --ux-surface-soft: #0a1120;
  --ux-border: rgba(118, 143, 185, 0.18);
  --ux-border-strong: rgba(32, 214, 224, 0.34);
  --ux-text: #d8e1f2;
  --ux-text-strong: #f8fbff;
  --ux-muted: #91a0bb;
  --ux-blue: #37a4ff;
  --ux-purple: #5f12ea;
  --ux-cyan: #12c9de;
  --ux-mint: #18b981;
  --ux-amber: #f2a81d;
  --ux-rose: #e74f89;
  --ux-shadow: 0 14px 34px rgba(1, 6, 18, 0.28);
  --ux-shadow-soft: 0 8px 22px rgba(1, 6, 18, 0.18);
}

body[data-ui="v2"][data-theme="light"] {
  --ux-bg: #f7f9fc;
  --ux-surface: #ffffff;
  --ux-surface-raised: #ffffff;
  --ux-surface-soft: #f1f6fd;
  --ux-border: rgba(151, 166, 195, 0.28);
  --ux-border-strong: rgba(95, 18, 234, 0.24);
  --ux-text: #2d3c55;
  --ux-text-strong: #111827;
  --ux-muted: #66748a;
  --ux-blue: #1167d8;
  --ux-purple: #5f12ea;
  --ux-cyan: #0795ad;
  --ux-mint: #0f916f;
  --ux-amber: #b77905;
  --ux-rose: #c83268;
  --ux-shadow: 0 14px 30px rgba(42, 62, 95, 0.09);
  --ux-shadow-soft: 0 8px 18px rgba(42, 62, 95, 0.07);
}

body[data-ui="v2"].console-body,
body[data-ui="v2"] .main,
body[data-ui="v2"] .topbar {
  background-color: var(--ux-bg) !important;
  color: var(--ux-text) !important;
}

body[data-ui="v2"] .main {
  padding: 0 24px 32px !important;
}

body[data-ui="v2"] .topbar {
  margin: 0 -24px 18px !important;
  padding: 18px 24px 12px !important;
  border-bottom: 1px solid var(--ux-border) !important;
  box-shadow: none !important;
}

body[data-ui="v2"] .card,
body[data-ui="v2"] .metric,
body[data-ui="v2"] .sidebar-card,
body[data-ui="v2"] .module-card,
body[data-ui="v2"] .ops-card,
body[data-ui="v2"] .route-summary-card,
body[data-ui="v2"] .gateway-command-score,
body[data-ui="v2"] .gateway-command-lane,
body[data-ui="v2"] .gateway-command-action,
body[data-ui="v2"] .gateway-command-step,
body[data-ui="v2"] .gateway-command-detail,
body[data-ui="v2"] .gateway-command-workflow,
body[data-ui="v2"] .guardrail-policy-card,
body[data-ui="v2"] .guardrail-overview-card,
body[data-ui="v2"] .guardrail-library-card,
body[data-ui="v2"] .guardrail-risk-card,
body[data-ui="v2"] .guardrail-activity-card,
body[data-ui="v2"] .overview-v2-shell,
body[data-ui="v2"] .overview-v2-top-stat,
body[data-ui="v2"] .overview-v2-scorecard,
body[data-ui="v2"] .overview-v2-kpi,
body[data-ui="v2"] .overview-v2-pulse-card,
body[data-ui="v2"] .overview-v2-chart-card,
body[data-ui="v2"] .overview-v2-insight-card,
body[data-ui="v2"] .overview-v2-health-card,
body[data-ui="v2"] .flow-builder-palette-shell,
body[data-ui="v2"] .flow-builder-canvas-shell,
body[data-ui="v2"] .flow-builder-details,
body[data-ui="v2"] .flow-builder-palette-item,
body[data-ui="v2"] .flow-builder-step,
body[data-ui="v2"] .flow-builder-empty,
body[data-ui="v2"] .logs-v2-row,
body[data-ui="v2"] .logs-v2-expanded,
body[data-ui="v2"] .subtle-card {
  background-color: var(--ux-surface) !important;
  border: 1px solid var(--ux-border) !important;
  border-top-width: 1px !important;
  border-radius: 18px !important;
  color: var(--ux-text) !important;
  box-shadow: var(--ux-shadow-soft) !important;
}

body[data-ui="v2"] .card::before,
body[data-ui="v2"] .metric::before,
body[data-ui="v2"] .sidebar-card::before,
body[data-ui="v2"] .card::after,
body[data-ui="v2"] .metric::after,
body[data-ui="v2"] .metrics-featured::before {
  display: none !important;
}

body[data-ui="v2"] .card:hover,
body[data-ui="v2"] .metric:hover,
body[data-ui="v2"] .clickable-card:hover,
body[data-ui="v2"] .route-summary-card:hover,
body[data-ui="v2"] .guardrail-policy-card:hover {
  border-color: var(--ux-border-strong) !important;
  box-shadow: var(--ux-shadow) !important;
  transform: translateY(-1px);
}

body[data-ui="v2"] .metrics,
body[data-ui="v2"] .metrics.metrics-featured,
body[data-ui="v2"] .metrics.metrics-inline,
body[data-ui="v2"] .grid,
body[data-ui="v2"] .ops-grid,
body[data-ui="v2"] .overview-grid {
  gap: 14px !important;
}

body[data-ui="v2"] .card,
body[data-ui="v2"] .panel-card {
  padding: 18px !important;
}

body[data-ui="v2"] .metric {
  min-height: auto !important;
  padding: 16px !important;
}

body[data-ui="v2"] .metric h3,
body[data-ui="v2"] .metric strong,
body[data-ui="v2"] .panel-card h3,
body[data-ui="v2"] .panel-head h3,
body[data-ui="v2"] .route-summary-card h3,
body[data-ui="v2"] .overview-v2-top-stat strong {
  color: var(--ux-text-strong) !important;
}

body[data-ui="v2"] .muted,
body[data-ui="v2"] .metric .muted,
body[data-ui="v2"] .panel-copy p,
body[data-ui="v2"] .table-row small,
body[data-ui="v2"] .status-row span,
body[data-ui="v2"] .logs-v2-row small {
  color: var(--ux-muted) !important;
}

body[data-ui="v2"] .eyebrow,
body[data-ui="v2"] .card .eyebrow,
body[data-ui="v2"] .metric .eyebrow,
body[data-ui="v2"] .panel-copy .eyebrow,
body[data-ui="v2"] .module-card .eyebrow,
body[data-ui="v2"] .ops-card .eyebrow,
body[data-ui="v2"] .logs-v2-row .eyebrow,
body[data-ui="v2"] .logs-v2-expanded .eyebrow {
  color: var(--ux-purple) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 1),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 1),
body[data-ui="v2"] .card:nth-child(4n + 1) {
  border-left: 3px solid var(--ux-cyan) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 2),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 2),
body[data-ui="v2"] .card:nth-child(4n + 2) {
  border-left: 3px solid var(--ux-purple) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 3),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 3),
body[data-ui="v2"] .card:nth-child(4n + 3) {
  border-left: 3px solid var(--ux-mint) !important;
}

body[data-ui="v2"] .metric:nth-child(4n + 4),
body[data-ui="v2"] .overview-v2-top-stat:nth-child(4n + 4),
body[data-ui="v2"] .card:nth-child(4n + 4) {
  border-left: 3px solid var(--ux-amber) !important;
}

body[data-ui="v2"] .panel-icon,
body[data-ui="v2"] .panel-icon-subtle,
body[data-ui="v2"] .button-icon-prefix,
body[data-ui="v2"] .flow-builder-panel-icon,
body[data-ui="v2"] .flow-builder-step-icon,
body[data-ui="v2"] .guardrail-policy-card-icon,
body[data-ui="v2"] .go-live-check-icon,
body[data-ui="v2"] .v2-nav-icon,
body[data-ui="v2"] .nav-glyph,
body[data-ui="v2"] .provider-action-button svg,
body[data-ui="v2"] .table-actions .button-icon-prefix {
  color: var(--ux-purple) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body[data-ui="v2"] .panel-icon,
body[data-ui="v2"] .panel-icon-subtle,
body[data-ui="v2"] .nav-glyph,
body[data-ui="v2"] .v2-nav-icon {
  background-color: color-mix(in srgb, var(--ux-purple) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ux-purple) 28%, transparent) !important;
}

body[data-ui="v2"] .button-primary,
body[data-ui="v2"] .primary-link,
body[data-ui="v2"] .nav-cta {
  background-color: var(--ux-purple) !important;
  border-color: var(--ux-purple) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--ux-purple) 20%, transparent) !important;
}

body[data-ui="v2"] .button-primary:hover,
body[data-ui="v2"] .primary-link:hover,
body[data-ui="v2"] .nav-cta:hover {
  background-color: #4d0fc0 !important;
  border-color: #4d0fc0 !important;
}

body[data-ui="v2"] .button-secondary,
body[data-ui="v2"] .button-ghost,
body[data-ui="v2"] .chip-option,
body[data-ui="v2"] .status-pill,
body[data-ui="v2"] .global-scope-bar label,
body[data-ui="v2"] .command-palette-input,
body[data-ui="v2"] .overview-v2-filter,
body[data-ui="v2"] .overview-v2-search,
body[data-ui="v2"] .logs-v2-more-filters summary {
  background-color: var(--ux-surface-raised) !important;
  border-color: var(--ux-border) !important;
  color: var(--ux-text-strong) !important;
  box-shadow: none !important;
}

body[data-ui="v2"] .button-secondary:hover,
body[data-ui="v2"] .button-ghost:hover,
body[data-ui="v2"] .chip-option:hover,
body[data-ui="v2"] .overview-v2-filter:hover,
body[data-ui="v2"] .overview-v2-search:focus-within,
body[data-ui="v2"] .command-palette-input:focus-within {
  background-color: var(--ux-surface-soft) !important;
  border-color: var(--ux-border-strong) !important;
  color: var(--ux-purple) !important;
}

body[data-ui="v2"] .status-pill-warning,
body[data-ui="v2"] #incident-pill.status-pill-warning {
  background-color: color-mix(in srgb, var(--ux-amber) 12%, var(--ux-surface-raised)) !important;
  border-color: color-mix(in srgb, var(--ux-amber) 34%, transparent) !important;
  color: var(--ux-amber) !important;
}

body[data-ui="v2"] .status-pill-danger,
body[data-ui="v2"] #incident-pill.status-pill-danger,
body[data-ui="v2"] .danger-button {
  background-color: color-mix(in srgb, var(--ux-rose) 12%, var(--ux-surface-raised)) !important;
  border-color: color-mix(in srgb, var(--ux-rose) 34%, transparent) !important;
  color: var(--ux-rose) !important;
}

body[data-ui="v2"] .status-pill-success,
body[data-ui="v2"] .status-pill-healthy,
body[data-ui="v2"] .status-pill-active {
  background-color: color-mix(in srgb, var(--ux-mint) 12%, var(--ux-surface-raised)) !important;
  border-color: color-mix(in srgb, var(--ux-mint) 34%, transparent) !important;
  color: var(--ux-mint) !important;
}

body[data-ui="v2"] .v2-nav-toggle,
body[data-ui="v2"] .nav-item,
body[data-ui="v2"] .sub-nav-item {
  border-radius: 14px !important;
}

body[data-ui="v2"] .v2-nav-title,
body[data-ui="v2"] .nav-label,
body[data-ui="v2"] .sub-nav-item {
  color: var(--ux-muted) !important;
}

body[data-ui="v2"] .v2-nav-toggle.active,
body[data-ui="v2"] .v2-nav-toggle[aria-expanded="true"],
body[data-ui="v2"] .nav-item.active,
body[data-ui="v2"] .sub-nav-item.active {
  background-color: color-mix(in srgb, var(--ux-purple) 10%, var(--ux-surface-raised)) !important;
  border-color: color-mix(in srgb, var(--ux-purple) 30%, transparent) !important;
}

body[data-ui="v2"] .v2-nav-toggle.active .v2-nav-title,
body[data-ui="v2"] .v2-nav-toggle[aria-expanded="true"] .v2-nav-title,
body[data-ui="v2"] .nav-item.active .nav-label,
body[data-ui="v2"] .sub-nav-item.active {
  color: var(--ux-text-strong) !important;
}

body[data-ui="v2"] .resource-table,
body[data-ui="v2"] .activity-table,
body[data-ui="v2"] .status-list {
  gap: 8px !important;
}

body[data-ui="v2"] .table-row,
body[data-ui="v2"] .status-row,
body[data-ui="v2"] .logs-v2-row {
  background-color: var(--ux-surface-raised) !important;
  border: 1px solid var(--ux-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body[data-ui="v2"] .table-row:not(.table-head),
body[data-ui="v2"] .status-row {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body[data-ui="v2"] .table-head,
body[data-ui="v2"] .logs-v2-table-head {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--ux-muted) !important;
  box-shadow: none !important;
}

body[data-ui="v2"] .panel-head {
  gap: 14px !important;
  margin-bottom: 14px !important;
}

body[data-ui="v2"] .panel-head-actions,
body[data-ui="v2"] .card-actions,
body[data-ui="v2"] .table-actions {
  gap: 8px !important;
}

body[data-ui="v2"] .logs-v2-toolbar {
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.72fr)) auto !important;
}

body[data-ui="v2"] .logs-v2-time-row {
  grid-template-columns: repeat(2, minmax(210px, 1fr)) auto !important;
}

body[data-ui="v2"] .flow-builder-canvas,
body[data-ui="v2"] .flow-builder-map-surface {
  background-color: var(--ux-surface-soft) !important;
  border-color: var(--ux-border) !important;
}

body[data-ui="v2"] .flow-builder-step {
  background-color: var(--ux-surface-raised) !important;
}

@media (max-width: 1280px) {
  body[data-ui="v2"] .main {
    padding-inline: 18px !important;
  }

  body[data-ui="v2"] .topbar {
    margin-inline: -18px !important;
    padding-inline: 18px !important;
  }
}

/* Logs refinement and sidebar icon repair */
body[data-ui="v2"] .sidebar .v2-nav-icon,
body[data-ui="v2"] .sidebar .nav-glyph {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #5f12ea !important;
  box-shadow: none !important;
  fill: initial !important;
  stroke: initial !important;
  font-size: 1rem !important;
}

body[data-ui="v2"] .sidebar .nav-item .nav-glyph {
  background: #f0f7ff !important;
  border: 1px solid #d9e9ff !important;
  color: #2362e8 !important;
}

body[data-ui="v2"] .sidebar .nav-item.active .nav-glyph {
  background: #eef7ff !important;
  border-color: #9fd5ff !important;
  color: #5f12ea !important;
}

body[data-ui="v2"] .sidebar .v2-nav-toggle.active .v2-nav-icon,
body[data-ui="v2"] .sidebar .v2-nav-toggle[aria-expanded="true"] .v2-nav-icon {
  background: transparent !important;
  color: #5f12ea !important;
}

body[data-ui="v2"] .logs-v2-shell {
  gap: 14px !important;
  padding: 18px 22px !important;
}

body[data-ui="v2"] .logs-v2-toolbar {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) auto !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body[data-ui="v2"] .logs-v2-time-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body[data-ui="v2"] .logs-v2-toolbar .overview-v2-search,
body[data-ui="v2"] .logs-v2-toolbar .button-ghost {
  min-height: 46px !important;
  border-radius: 18px !important;
  padding: 10px 14px !important;
}

body[data-ui="v2"] .logs-v2-toolbar select,
body[data-ui="v2"] .logs-v2-toolbar input,
body[data-ui="v2"] .logs-v2-time-row input {
  min-width: 0 !important;
  text-overflow: ellipsis !important;
}

body[data-ui="v2"] #logs-v2-summary.metrics.metrics-inline {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-ui="v2"] .logs-v2-summary-card {
  min-height: 128px !important;
  padding: 18px 18px 16px !important;
  border-left-width: 0 !important;
  border-top: 4px solid #12c9de !important;
}

body[data-ui="v2"] .logs-v2-summary-card:nth-child(2) {
  border-top-color: #ef4365 !important;
}

body[data-ui="v2"] .logs-v2-summary-card:nth-child(3) {
  border-top-color: #5f12ea !important;
}

body[data-ui="v2"] .logs-v2-summary-card:nth-child(4) {
  border-top-color: #f59e0b !important;
}

body[data-ui="v2"] .logs-v2-summary-card strong {
  margin: 6px 0 4px !important;
  font-size: clamp(1.9rem, 2.1vw, 2.35rem) !important;
}

body[data-ui="v2"] .logs-v2-summary-action {
  margin-top: 10px !important;
  padding: 4px 9px !important;
  font-size: 0.68rem !important;
  background: transparent !important;
}

body[data-ui="v2"] .logs-v2-paging {
  margin-top: 2px !important;
}

body[data-ui="v2"] .logs-v2-table-head,
body[data-ui="v2"] .logs-v2-row {
  grid-template-columns: minmax(230px, 0.82fr) minmax(260px, 1.22fr) minmax(170px, 0.68fr) minmax(170px, 0.68fr) minmax(150px, 0.58fr) 104px !important;
  max-width: none !important;
}

body[data-ui="v2"] .logs-v2-table-head {
  align-items: start !important;
  padding: 14px 16px !important;
  border: 1px solid var(--ux-border, rgba(151, 166, 195, 0.28)) !important;
  border-radius: 20px !important;
  background-color: var(--ux-surface, #ffffff) !important;
}

body[data-ui="v2"] .logs-v2-row {
  padding: 14px 16px !important;
}

body[data-ui="v2"] .logs-v2-row > span:first-child {
  display: grid !important;
  gap: 2px !important;
}

body[data-ui="v2"] .logs-v2-head-filter {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

body[data-ui="v2"] .logs-v2-head-filter span {
  color: var(--ux-muted, #64748b);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-head-filter select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 28px 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ux-text-strong, #0f172a);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  outline: none;
  text-overflow: ellipsis;
}

body[data-ui="v2"] .logs-v2-head-filter select:hover,
body[data-ui="v2"] .logs-v2-head-filter select:focus-visible {
  border-color: rgba(95, 18, 234, 0.26);
  background: #f3edff;
  color: #5f12ea;
}

body[data-ui="v2"] .logs-v2-head-filter-time {
  gap: 8px;
}

body[data-ui="v2"] .logs-v2-head-filter-time.has-custom-range {
  min-width: min(100%, 420px);
}

body[data-ui="v2"] .logs-v2-head-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

body[data-ui="v2"] .logs-v2-head-range label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-ui="v2"] .logs-v2-head-range small {
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-ui="v2"] .logs-v2-head-range input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #172338;
  font-size: 0.76rem;
  font-weight: 750;
  outline: none;
}

body[data-ui="v2"] .logs-v2-head-range input:hover,
body[data-ui="v2"] .logs-v2-head-range input:focus-visible {
  border-color: rgba(95, 18, 234, 0.34);
  background: #f8fbff;
}

body[data-ui="v2"] .logs-v2-action-head {
  align-self: start;
  justify-self: end;
  padding-top: 1px;
  color: var(--ux-muted, #64748b);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-shell {
  display: grid;
  gap: 18px;
  border-top: 4px solid #12c9de;
}

body[data-ui="v2"] .live-traffic-head,
body[data-ui="v2"] .live-traffic-toolbar,
body[data-ui="v2"] .live-traffic-canvas-head,
body[data-ui="v2"] .live-traffic-rail-head,
body[data-ui="v2"] .live-traffic-inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-ui="v2"] .live-traffic-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body[data-ui="v2"] .live-traffic-title h2 {
  margin: 0;
  color: #101b33;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1;
}

body[data-ui="v2"] .live-traffic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body[data-ui="v2"] .compact-segmented {
  padding: 5px;
  border: 1px solid #dbe7f7;
  border-radius: 18px;
  background: #f8fbff;
}

body[data-ui="v2"] .compact-segmented button {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #51617b;
  font-weight: 900;
}

body[data-ui="v2"] .compact-segmented button.active {
  background: #5f12ea;
  color: #ffffff;
}

body[data-ui="v2"] .live-traffic-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(190px, 0.9fr) repeat(2, minmax(220px, 1fr)) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce8f6;
  border-radius: 24px;
  background: #ffffff;
}

body[data-ui="v2"] .live-traffic-filter {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-ui="v2"] .live-traffic-filter span {
  color: #5f12ea;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-filter select,
body[data-ui="v2"] .live-traffic-filter input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7e4f5;
  border-radius: 14px;
  background: #f8fbff;
  color: #101b33;
  font-weight: 850;
  outline: none;
}

body[data-ui="v2"] .live-traffic-filter select:focus-visible,
body[data-ui="v2"] .live-traffic-filter input:focus-visible {
  border-color: #5f12ea;
  box-shadow: 0 0 0 3px rgba(95, 18, 234, 0.12);
}

body[data-ui="v2"] .live-traffic-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

body[data-ui="v2"] .live-traffic-stat {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dce8f6;
  border-left: 5px solid #2b6fe8;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

body[data-ui="v2"] .live-traffic-stat span {
  color: #63718b;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-stat strong {
  color: #2458d8;
  font-size: 2rem;
  line-height: 1;
}

body[data-ui="v2"] .live-traffic-stat small {
  color: #5b6880;
  font-weight: 800;
}

body[data-ui="v2"] .live-traffic-stat.is-passed {
  border-left-color: #10b981;
}

body[data-ui="v2"] .live-traffic-stat.is-sanitized {
  border-left-color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-stat.is-blocked {
  border-left-color: #ec4899;
}

body[data-ui="v2"] .live-traffic-stat.is-error {
  border-left-color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-stat-clock {
  border-left-color: #5f12ea;
}

body[data-ui="v2"] .live-traffic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.55fr);
  gap: 16px;
}

body[data-ui="v2"] .live-traffic-canvas-card,
body[data-ui="v2"] .live-traffic-inspector,
body[data-ui="v2"] .live-traffic-rail-wrap {
  border: 1px solid #dce8f6;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

body[data-ui="v2"] .live-traffic-canvas-card,
body[data-ui="v2"] .live-traffic-rail-wrap {
  padding: 18px;
}

body[data-ui="v2"] .live-traffic-map {
  min-height: 620px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d4e5f7;
  border-radius: 24px;
  background-color: #f8fbff;
}

body[data-ui="v2"] .live-traffic-map-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 620px;
}

body[data-ui="v2"] .live-traffic-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
}

body[data-ui="v2"] .live-traffic-map-timeline {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid #dce8f6;
  background: #ffffff;
}

body[data-ui="v2"] .live-traffic-map-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-ui="v2"] .live-traffic-map-timeline-head h4 {
  margin: 4px 0 0;
  color: #101b33;
  font-size: 0.98rem;
}

body[data-ui="v2"] .live-traffic-map-timeline-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

body[data-ui="v2"] .live-traffic-map-timeline-meta span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-ui="v2"] .live-traffic-map-timeline-meta strong {
  color: #101b33;
  font-size: 0.86rem;
}

body[data-ui="v2"] .live-traffic-map-timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 8px;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  background: #ffffff;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker.is-response {
  color: #2458d8;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker.is-sanitized {
  color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker.is-blocked {
  color: #ec4899;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker.is-error {
  color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-map-timeline-marker.is-selected {
  border-color: #5f12ea;
  background: #f3edff;
  box-shadow: inset 0 0 0 1px rgba(95, 18, 234, 0.12);
}

body[data-ui="v2"] .live-traffic-map-timeline-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-ui="v2"] .live-traffic-map-timeline-slider span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-map-timeline-note {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

body[data-ui="v2"] .live-traffic-fiber {
  position: absolute;
  left: 11%;
  right: 11%;
  height: 3px;
  border-radius: 999px;
  background: #d4e5f7;
}

body[data-ui="v2"] .live-traffic-fiber-a {
  top: 28%;
  background: #12c9de;
}

body[data-ui="v2"] .live-traffic-fiber-b {
  top: 50%;
  background: #5f12ea;
}

body[data-ui="v2"] .live-traffic-fiber-c {
  top: 72%;
  background: #10b981;
}

body[data-ui="v2"] .live-traffic-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  width: 170px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #cfe0f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

body[data-ui="v2"] .live-traffic-node span {
  color: #2458d8;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-node strong {
  color: #101b33;
  font-size: 0.95rem;
  line-height: 1.2;
}

body[data-ui="v2"] .live-traffic-node-source {
  left: 5%;
  top: 42%;
}

body[data-ui="v2"] .live-traffic-node-gateway {
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
  border-color: #b8a5ff;
}

body[data-ui="v2"] .live-traffic-node-target {
  right: 5%;
  top: 42%;
  border-color: #9bd7c7;
}

body[data-ui="v2"] .live-traffic-packet {
  position: absolute;
  z-index: 3;
  top: var(--packet-y);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #ffffff;
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  animation-duration: var(--packet-duration);
  animation-delay: var(--packet-delay);
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.42, 0, 0.18, 1);
}

body[data-ui="v2"] .live-traffic-packet span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

body[data-ui="v2"] .live-traffic-packet small {
  color: currentColor;
  font-size: inherit;
}

body[data-ui="v2"] .live-traffic-packet.is-request {
  animation-name: liveTrafficForward;
}

body[data-ui="v2"] .live-traffic-packet.is-response {
  animation-name: liveTrafficBack;
  color: #2458d8;
}

body[data-ui="v2"] .live-traffic-packet.is-sanitized {
  color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-packet.is-blocked {
  color: #ec4899;
}

body[data-ui="v2"] .live-traffic-packet.is-error {
  color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-packet.is-selected {
  background: #101b33;
  color: #ffffff;
  outline: 4px solid rgba(95, 18, 234, 0.18);
}

body[data-ui="v2"] .live-traffic-stage.is-paused .live-traffic-packet {
  animation-play-state: paused;
}

body[data-ui="v2"] .live-traffic-inspector {
  min-height: 520px;
  padding: 18px;
}

body[data-ui="v2"] .live-traffic-inspector-card,
body[data-ui="v2"] .live-traffic-inspector-empty {
  display: grid;
  gap: 14px;
}

body[data-ui="v2"] .live-traffic-inspector-card {
  border-top: 4px solid #10b981;
}

body[data-ui="v2"] .live-traffic-inspector-card.is-sanitized {
  border-top-color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-inspector-card.is-blocked {
  border-top-color: #ec4899;
}

body[data-ui="v2"] .live-traffic-inspector-card.is-error {
  border-top-color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-payload-preview {
  display: grid;
  gap: 6px;
}

body[data-ui="v2"] .live-traffic-payload-preview pre {
  max-height: 128px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #dce8f6;
  border-radius: 16px;
  background: #f8fbff;
  color: #101b33;
  font: 800 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

body[data-ui="v2"] .live-traffic-guardrails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-ui="v2"] .live-traffic-capture-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8b6ff;
  border-radius: 14px;
  background: #f3edff;
  color: #5f12ea;
  font-weight: 850;
}

body[data-ui="v2"] .live-traffic-rail {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

body[data-ui="v2"] .live-traffic-timeline-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce8f6;
  border-radius: 22px;
  background: #f8fbff;
}

body[data-ui="v2"] .live-traffic-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-ui="v2"] .live-traffic-timeline-head h4 {
  margin: 4px 0 0;
  color: #101b33;
}

body[data-ui="v2"] .live-traffic-timeline-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

body[data-ui="v2"] .live-traffic-timeline-meta span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-ui="v2"] .live-traffic-timeline-meta strong {
  color: #101b33;
  font-size: 0.86rem;
}

body[data-ui="v2"] .live-traffic-timeline-markers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 8px;
}

body[data-ui="v2"] .live-traffic-timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #cfe0f4;
  border-radius: 12px;
  background: #ffffff;
  color: #10b981;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
}

body[data-ui="v2"] .live-traffic-timeline-marker.is-response {
  color: #2458d8;
}

body[data-ui="v2"] .live-traffic-timeline-marker.is-sanitized {
  color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-timeline-marker.is-blocked {
  color: #ec4899;
}

body[data-ui="v2"] .live-traffic-timeline-marker.is-error {
  color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-timeline-marker.is-selected {
  border-color: #5f12ea;
  background: #f3edff;
  box-shadow: inset 0 0 0 1px rgba(95, 18, 234, 0.12);
}

body[data-ui="v2"] .live-traffic-timeline-slider-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-ui="v2"] .live-traffic-timeline-slider-row span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-ui="v2"] .live-traffic-timeline-input {
  width: 100%;
  accent-color: #5f12ea;
}

body[data-ui="v2"] .live-traffic-rail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-ui="v2"] .live-traffic-rail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce8f6;
  border-left: 4px solid #10b981;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

body[data-ui="v2"] .live-traffic-rail-item.is-sanitized {
  border-left-color: #06b6d4;
}

body[data-ui="v2"] .live-traffic-rail-item.is-blocked {
  border-left-color: #ec4899;
}

body[data-ui="v2"] .live-traffic-rail-item.is-error {
  border-left-color: #f59e0b;
}

body[data-ui="v2"] .live-traffic-rail-item.is-selected {
  border-color: #5f12ea;
  background: #f3edff;
}

body[data-ui="v2"] .live-traffic-rail-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: #ffffff;
  color: #10b981;
  font-size: 0.88rem;
  font-weight: 950;
}

body[data-ui="v2"] .live-traffic-rail-dot.is-response {
  color: #2458d8;
}

body[data-ui="v2"] .live-traffic-rail-item strong {
  display: block;
  color: #101b33;
}

body[data-ui="v2"] .live-traffic-rail-item small,
body[data-ui="v2"] .live-traffic-rail-item time {
  color: #64748b;
  font-weight: 800;
}

@keyframes liveTrafficForward {
  0% {
    left: 9%;
    transform: translate(-20%, -50%) scale(0.94);
  }
  48% {
    left: 50%;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    left: 87%;
    transform: translate(-80%, -50%) scale(0.94);
  }
}

@keyframes liveTrafficBack {
  0% {
    left: 87%;
    transform: translate(-80%, -50%) scale(0.94);
  }
  52% {
    left: 50%;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    left: 9%;
    transform: translate(-20%, -50%) scale(0.94);
  }
}

body[data-ui="v2"] input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-grid !important;
  place-content: center !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  overflow: visible !important;
  vertical-align: middle !important;
  border: 1.5px solid #64748b !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.08) !important;
  cursor: pointer !important;
  transform: translateY(0) !important;
}

body[data-ui="v2"] input[type="checkbox"]::before {
  content: "" !important;
  width: 9px !important;
  height: 9px !important;
  transform: scale(0) !important;
  transition: transform 120ms ease !important;
  clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 18%, 84% 4%, 37% 66%) !important;
  background: #ffffff !important;
}

body[data-ui="v2"] input[type="checkbox"]:checked {
  border-color: #ec4899 !important;
  background: #ec4899 !important;
}

body[data-ui="v2"] input[type="checkbox"]:checked::before {
  transform: scale(1) !important;
}

body[data-ui="v2"] input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(95, 18, 234, 0.18) !important;
  outline-offset: 2px !important;
}

body[data-ui="v2"] .checkbox-label {
  align-items: center !important;
  line-height: 1.2 !important;
}

@media (max-width: 1420px) {
  body[data-ui="v2"] .logs-v2-toolbar {
    grid-template-columns: 1fr !important;
  }

  body[data-ui="v2"] #logs-v2-summary.metrics.metrics-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-ui="v2"] .logs-v2-table-head,
  body[data-ui="v2"] .logs-v2-row {
    grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 1.2fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) 116px 88px !important;
  }

  body[data-ui="v2"] .live-traffic-toolbar,
  body[data-ui="v2"] .live-traffic-stats,
  body[data-ui="v2"] .live-traffic-rail,
  body[data-ui="v2"] .live-traffic-rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-ui="v2"] .live-traffic-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-ui="v2"] .logs-v2-toolbar,
  body[data-ui="v2"] .logs-v2-time-row,
  body[data-ui="v2"] #logs-v2-summary.metrics.metrics-inline {
    grid-template-columns: 1fr !important;
  }

  body[data-ui="v2"] .live-traffic-head,
  body[data-ui="v2"] .live-traffic-actions,
  body[data-ui="v2"] .live-traffic-canvas-head,
  body[data-ui="v2"] .live-traffic-rail-head {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-ui="v2"] .live-traffic-toolbar,
  body[data-ui="v2"] .live-traffic-stats,
  body[data-ui="v2"] .live-traffic-rail,
  body[data-ui="v2"] .live-traffic-rail-list {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .live-traffic-timeline-head {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-ui="v2"] .live-traffic-timeline-meta {
    justify-items: start;
  }

  body[data-ui="v2"] .live-traffic-timeline-slider-row {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .live-traffic-map,
  body[data-ui="v2"] .live-traffic-stage,
  body[data-ui="v2"] .live-traffic-inspector {
    min-height: 420px;
  }

  body[data-ui="v2"] .live-traffic-map-shell {
    min-height: 420px;
  }

  body[data-ui="v2"] .live-traffic-map-timeline-head {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-ui="v2"] .live-traffic-map-timeline-meta {
    justify-items: start;
  }

  body[data-ui="v2"] .live-traffic-map-timeline-slider {
    grid-template-columns: 1fr;
  }

  body[data-ui="v2"] .live-traffic-node {
    width: 138px;
    padding: 12px;
  }

  body[data-ui="v2"] .live-traffic-packet {
    min-width: 74px;
  }
}
