/*
 * Agent SaaS interface layer.
 * Original CRO Pilot visual system inspired by premium AI SaaS patterns.
 * Brand chrome and operational workspace intentionally use different surfaces.
 */

:root {
  --agent-ink: #100d27;
  --agent-ink-raised: #191530;
  --agent-ink-soft: #231d42;
  --agent-accent: #7665e8;
  --agent-accent-hover: #6958d7;
  --agent-accent-soft: #ece9ff;
  --agent-canvas: #f5f5f8;
  --agent-surface: #ffffff;
  --agent-text: #202028;
  --agent-muted: #6d6b79;
  --agent-line: #e4e3e9;
  --agent-radius: 14px;
  --agent-ease: cubic-bezier(.16, 1, .3, 1);
  --cro-brand-primary: var(--agent-accent);
  --cro-brand-primary-hover: var(--agent-accent-hover);
  --cro-brand-soft: var(--agent-accent-soft);
  --cro-bg-canvas: var(--agent-canvas);
  --cro-bg-surface: var(--agent-surface);
  --cro-bg-subtle: #fafafd;
  --cro-text: var(--agent-text);
  --cro-text-muted: var(--agent-muted);
  --cro-border: var(--agent-line);
  --cro-radius-sm: 9px;
  --cro-radius-md: var(--agent-radius);
  --cro-radius-lg: 18px;
  --cro-focus-outer: var(--agent-accent);
  --cro-font-display: "Helvetica Neue", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
  --cro-font-body: "Helvetica Neue", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
}

html,
body {
  background: var(--agent-canvas);
}

body {
  background-image: radial-gradient(circle at 72% -10%, rgb(118 101 232 / 9%), transparent 32rem);
  background-repeat: no-repeat;
}

.sidebar {
  background: var(--agent-ink);
  box-shadow: none;
}

.brand-mark {
  border-radius: 10px;
  background: var(--agent-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
}

.nav-item {
  color: rgb(244 242 250 / 68%);
}

.nav-item:hover {
  background: rgb(255 255 255 / 7%);
  color: #f6f4fb;
}

.nav-item[aria-current="page"] {
  background: #f4f2fb;
  color: var(--agent-ink);
}

.topbar {
  border-color: var(--agent-line);
  background: rgb(245 245 248 / 91%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.button {
  border-radius: 9px;
  transition: transform 220ms var(--agent-ease), background 220ms var(--agent-ease), box-shadow 220ms var(--agent-ease);
}

.button--primary {
  background: var(--agent-accent);
  box-shadow: 0 12px 30px rgb(74 57 170 / 24%);
  color: #fff;
}

.button--primary:hover {
  background: var(--agent-accent-hover);
  box-shadow: 0 14px 34px rgb(74 57 170 / 30%);
}

.topbar__help {
  margin-left: auto;
  white-space: nowrap;
}

.is-onboarding-target {
  position: relative;
  z-index: 1002 !important;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--agent-accent), 0 18px 48px rgb(23 18 58 / 24%) !important;
}

.onboarding-backdrop {
  position: fixed;
  z-index: 1000;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 28px;
  background: rgb(16 13 39 / 38%);
  inset: 0;
  pointer-events: none;
}

.onboarding-card {
  position: relative;
  z-index: 1004;
  width: min(430px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(18 13 49 / 28%);
  pointer-events: auto;
}

.onboarding-card > header,
.onboarding-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-card > header span,
.onboarding-count {
  color: var(--agent-accent-hover);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.onboarding-card > header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--cro-bg-subtle);
  color: var(--cro-text-muted);
  font-size: 1.2rem;
}

.onboarding-progress {
  height: 4px;
  margin: 15px 0 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--agent-line);
}

.onboarding-progress i {
  display: block;
  width: var(--tour-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--agent-accent);
  transition: width 260ms var(--agent-ease);
}

.onboarding-count { margin-bottom: 7px; }
.onboarding-card h2 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.onboarding-card > p:not(.onboarding-count) { margin-bottom: 14px; color: var(--cro-text); font-size: .9rem; }
.onboarding-card aside { padding: 12px 14px; border-left: 3px solid var(--agent-accent); border-radius: 0 9px 9px 0; background: var(--agent-accent-soft); color: #403675; font-size: .78rem; line-height: 1.5; }
.onboarding-card > footer { margin-top: 18px; }
.onboarding-card > footer .button { white-space: nowrap; }

@media (max-width: 720px) {
  .topbar__help { display: none; }
  .onboarding-backdrop { align-items: end; padding: 12px; }
  .onboarding-card { width: 100%; padding: 18px; border-radius: 14px; }
  .is-onboarding-target { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--agent-accent) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-progress i { transition: none; }
}

/* Decision-first CRO analytics */
.report-metric-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  margin: -4px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--agent-line);
  border-radius: 11px;
  background: rgb(255 255 255 / 78%);
}

.report-metric-switch > span {
  padding: 0 9px;
  color: var(--agent-muted);
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-metric-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--agent-muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.report-metric-switch button:hover { color: var(--agent-text); }
.report-metric-switch button[aria-pressed="true"] {
  background: var(--agent-ink);
  box-shadow: 0 5px 14px rgb(16 13 39 / 16%);
  color: #fff;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--agent-line);
  border-radius: 13px;
  background: #fff;
}

.analytics-kpis article {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--agent-line);
}

.analytics-kpis article:last-child { border-right: 0; }
.analytics-kpis__wide { grid-column: span 2; }
.analytics-kpis span,
.analytics-kpis small,
.analytics-kpis strong { display: block; }
.analytics-kpis span { min-height: 30px; color: var(--agent-muted); font-size: .65rem; font-weight: 750; line-height: 1.35; }
.analytics-kpis strong { margin: 4px 0; overflow: hidden; color: var(--agent-text); font-size: clamp(1.2rem, 1.65vw, 1.72rem); font-weight: 680; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.analytics-kpis strong i { color: #aaa7b2; font-style: normal; font-weight: 450; }
.analytics-kpis small { color: var(--agent-muted); font-size: .61rem; line-height: 1.35; }

.analytics-trend {
  padding: 18px 20px 12px;
  border-radius: 13px;
  box-shadow: none;
}

.analytics-trend > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.analytics-trend h2 { margin: 2px 0 3px; }
.analytics-trend header p:last-child { margin: 0; color: var(--agent-muted); font-size: .7rem; }
.analytics-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: var(--agent-muted); font-size: .63rem; font-weight: 700; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 5px; }
.analytics-legend i { width: 8px; height: 8px; border-radius: 50%; background: #c2becb; }
.analytics-legend .is-win { background: #1c9b69; }
.analytics-legend .is-tie { background: #d8a52d; }
.analytics-legend .is-loss { background: #d76363; }
.analytics-legend .is-running { background: var(--agent-accent); }

.analytics-chart {
  position: relative;
  height: 236px;
  padding: 18px 0 32px 74px;
}
.analytics-chart svg { width: 100%; height: 166px; overflow: visible; }
.analytics-chart line { stroke: var(--agent-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.analytics-chart polyline { fill: none; stroke: var(--agent-accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.analytics-chart__point circle { fill: #aaa6b4; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.analytics-chart__point--winner circle { fill: #1c9b69; }
.analytics-chart__point--tie circle { fill: #d8a52d; }
.analytics-chart__point--loss circle { fill: #d76363; }
.analytics-chart__point--running circle { fill: var(--agent-accent); }
.analytics-chart__axis { position: absolute; top: 13px; bottom: 49px; left: 0; display: flex; width: 68px; flex-direction: column; justify-content: space-between; color: var(--agent-muted); font-size: .58rem; text-align: right; }
.analytics-chart__labels { position: absolute; right: 0; bottom: 9px; left: 74px; height: 18px; color: var(--agent-muted); font-size: .59rem; }
.analytics-chart__labels span { position: absolute; left: var(--chart-x); transform: translateX(-50%); white-space: nowrap; }
.analytics-chart--empty { display: grid; height: 210px; place-items: center; align-content: center; padding: 20px; color: var(--agent-muted); text-align: center; }
.analytics-chart--empty strong { color: var(--agent-text); }
.analytics-chart--empty p { margin: 5px 0 0; font-size: .72rem; }
.analytics-journal { margin-top: 16px; }
.analytics-journal .journal-table th:nth-child(1) { width: 42%; }

@media (max-width: 1180px) {
  .analytics-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .analytics-kpis article:nth-child(4) { border-right: 0; }
  .analytics-kpis article:nth-child(n+5) { border-top: 1px solid var(--agent-line); }
}

@media (max-width: 720px) {
  .report-metric-switch { width: 100%; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-kpis__wide { grid-column: span 2; }
  .analytics-kpis article:nth-child(2n) { border-right: 0; }
  .analytics-kpis article:nth-child(n+3) { border-top: 1px solid var(--agent-line); }
  .analytics-trend { padding: 15px 14px 8px; }
  .analytics-trend > header { display: block; }
  .analytics-legend { justify-content: flex-start; margin-top: 12px; }
  .analytics-chart { height: 220px; padding-left: 54px; }
  .analytics-chart__axis { width: 48px; }
  .analytics-chart__labels { left: 54px; }
}

.period-switcher button[aria-pressed="true"] {
  background: var(--agent-accent-soft);
  color: #4f3ec1;
}

.page-heading {
  margin-top: 4px;
}

.page-heading h1,
.page-heading--compact h1 {
  font-weight: 680;
  letter-spacing: -.048em;
}

.data-badge {
  border-color: #e9d8aa;
  background: #fff6dc;
  color: #725112;
}

.agent-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 108%, rgb(118 101 232 / 34%), transparent 34%),
    radial-gradient(circle at 4% -22%, rgb(83 177 231 / 16%), transparent 36%),
    var(--agent-ink);
  box-shadow: 0 28px 80px rgb(31 25 70 / 18%);
  color: #f6f4fb;
}

.agent-stage::after {
  position: absolute;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgb(150 131 255 / 16%);
  border-radius: 50%;
  content: "";
  inset: auto -22rem -28rem auto;
  box-shadow: 0 0 0 56px rgb(118 101 232 / 4%), 0 0 0 112px rgb(118 101 232 / 3%);
  pointer-events: none;
}

.agent-stage .eyebrow {
  color: #bdb3ff;
}

.agent-stage__copy {
  min-height: 360px;
  padding: clamp(32px, 4vw, 54px);
  border: 0;
  background: transparent;
}

.agent-stage__copy h2 {
  max-width: 680px;
  margin: 10px 0 14px;
  color: #f7f5fb;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 560;
  letter-spacing: -.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.agent-stage__subject {
  max-width: 46ch;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-left: 3px solid #9d8cff;
  background: rgb(255 255 255 / 6%);
  color: #f6f4fb !important;
  font-size: .9rem !important;
  font-weight: 650;
  line-height: 1.4;
}

.agent-stage__copy > p:not(.eyebrow) {
  max-width: 56ch;
  margin-bottom: 28px;
  color: rgb(240 236 250 / 66%);
  font-size: .93rem;
}

.agent-stage__copy .button--primary {
  background: #f5f3fa;
  box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
  color: var(--agent-ink);
}

.agent-stage__copy .button--primary:hover {
  background: #fff;
}

.agent-stage__live {
  align-self: center;
  padding: 16px;
  margin: 24px 24px 24px 0;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  background: rgb(255 255 255 / 7%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.agent-stage__live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 13px;
  color: rgb(244 242 250 / 58%);
  font-size: .72rem;
}

.agent-stage__live-header strong {
  color: #d4cdfb;
  font-size: .7rem;
  font-weight: 650;
}

.agent-loop {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.agent-loop li {
  position: relative;
  display: grid;
  min-height: 51px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgb(244 242 250 / 46%);
}

.agent-loop li[data-step-state="complete"] {
  color: rgb(244 242 250 / 72%);
}

.agent-loop li[data-step-state="active"] {
  border-color: rgb(190 179 255 / 22%);
  background: rgb(159 140 255 / 12%);
  color: #fff;
  box-shadow: inset 3px 0 0 #9d8cff;
}

.agent-loop__index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 8px;
  color: inherit;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.agent-loop li > span:last-child,
.agent-loop strong,
.agent-loop small {
  display: block;
}

.agent-loop strong {
  color: inherit;
  font-size: .8rem;
  font-weight: 650;
}

.agent-loop small {
  margin-top: 2px;
  color: rgb(244 242 250 / 43%);
  font-size: .66rem;
}

.agent-loop li[data-step-state="active"] small {
  color: rgb(244 242 250 / 67%);
}

.agent-stage .overview-focus__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
}

.agent-stage .overview-focus__metrics > span {
  min-height: 66px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 11px;
  border: 0;
  background: rgb(16 13 39 / 68%);
}

.agent-stage .overview-focus__metrics small {
  color: rgb(244 242 250 / 47%);
  font-size: .61rem;
}

.agent-stage .overview-focus__metrics strong {
  color: #f8f6fc;
  font-size: 1rem;
}

.agent-stage .overview-focus__metrics [data-state="unknown"] strong {
  color: rgb(244 242 250 / 48%);
}

.agent-stage .overview-focus__progress {
  grid-column: 1 / -1;
  padding: 14px 24px 17px;
  border-top: 1px solid rgb(255 255 255 / 9%);
  background: rgb(9 7 25 / 34%);
}

.agent-stage .overview-focus__progress span {
  color: rgb(244 242 250 / 48%);
}

.agent-stage .overview-focus__progress strong {
  color: #f7f5fb;
}

.agent-stage .overview-focus__progress progress {
  height: 4px;
  background: rgb(255 255 255 / 10%);
  accent-color: #a191ff;
}

.agent-stage .overview-focus__progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
}

.agent-stage .overview-focus__progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: #a191ff;
}

.dynamic-schedule,
.secondary-disclosure,
.expert-disclosure,
.journal-card {
  border-color: var(--agent-line);
  box-shadow: 0 1px 0 rgb(255 255 255 / 70%), 0 12px 30px rgb(34 29 64 / 4%);
}

.schedule-item,
.schedule-item--running,
.schedule-item--next {
  border-color: var(--agent-line);
}

.text-action {
  color: #5b49cc;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #ead9a8;
  border-radius: 10px;
  background: #fff8e6;
  color: #634a12;
  font-size: .76rem;
}

.demo-notice span {
  color: #7b6638;
}

.experiment-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--agent-line);
  border-radius: 12px;
  background: var(--agent-surface);
}

.experiment-overview > span {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-right: 1px solid var(--agent-line);
}

.experiment-overview > span:last-child {
  border-right: 0;
}

.experiment-overview small {
  color: var(--agent-muted);
  font-size: .7rem;
}

.experiment-overview strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.owner-verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #e7d6aa;
  border-radius: 12px;
  background: #fff8e8;
}

.owner-verdict--ready {
  border-color: #cfe5d7;
  background: #eef8f1;
}

.owner-verdict span {
  color: #80611a;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.owner-verdict--ready span {
  color: var(--cro-success);
}

.owner-verdict h2 {
  margin: 4px 0 3px;
  font-size: 1rem;
}

.owner-verdict p {
  margin: 0;
  font-size: .74rem;
}

.owner-verdict > strong {
  flex: 0 0 auto;
  color: #80611a;
  font-size: .75rem;
}

.owner-verdict--ready > strong {
  color: var(--cro-success);
}

.business-details {
  margin-bottom: 16px;
}

.business-details .cod-dashboard {
  margin: 0;
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}

.agent-focus__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.agent-focus__step {
  color: var(--cro-text-muted);
  font-size: .66rem;
  font-weight: 700;
}

.agent-focus__meta .agent-focus__state {
  margin-bottom: 0;
}

.agent-focus__score {
  width: 180px;
}

.agent-focus__score strong {
  font-size: 1.65rem;
}

.preflight-check {
  padding: 0;
}

.preflight-check__summary {
  min-height: 64px;
  margin: 0;
}

.preflight-check__editor {
  padding: 0 0 14px 22px;
}

.preflight-check__editor > summary {
  width: fit-content;
  padding: 4px 0;
  color: #5b49cc;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
  list-style: none;
}

.preflight-check__editor > summary::-webkit-details-marker {
  display: none;
}

.preflight-check__editor > summary::after {
  margin-left: 6px;
  content: '+';
}

.preflight-check__editor[open] > summary::after {
  content: '−';
}

.preflight-check__editor .preflight-check__fields {
  padding: 10px 0 0;
}

.preflight-check--unknown .preflight-check__evidence {
  display: none;
}

.plan-card strong {
  max-width: 580px;
  white-space: normal;
}

.risk-badge {
  max-width: 150px;
  text-align: right;
}

@media (min-width: 961px) {
  .sidebar {
    height: 64px;
    min-height: 64px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    background: var(--agent-ink);
  }

  .sidebar__brand,
  .sidebar__brand strong {
    color: #f7f5fb;
  }

  .sidebar__brand div > span {
    color: rgb(244 242 250 / 48%);
  }

  .nav-item {
    color: rgb(244 242 250 / 64%);
  }

  .nav-item:hover {
    background: rgb(255 255 255 / 7%);
    color: #fff;
  }

  .nav-item[aria-current="page"] {
    background: #f5f3fa;
    color: var(--agent-ink);
  }

  .sidebar__status {
    border-color: rgb(255 255 255 / 11%);
  }

  .connection-state {
    color: #74dbaa;
  }

  .topbar {
    top: 64px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .agent-stage {
    animation: agent-stage-enter 650ms var(--agent-ease) both;
  }

  .agent-loop li[data-step-state="active"] {
    animation: agent-step-breathe 2600ms var(--agent-ease) infinite;
  }

  .agent-stage__copy .button--primary:hover {
    transform: translateY(-2px);
  }

  @keyframes agent-stage-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes agent-step-breathe {
    0%, 100% { transform: translateX(0); opacity: .88; }
    50% { transform: translateX(3px); opacity: 1; }
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: var(--agent-canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .agent-stage__live {
    background: var(--agent-ink-raised);
  }
}

@media (max-width: 960px) {
  .sidebar {
    background: var(--agent-ink);
  }

  .sidebar__brand,
  .sidebar__brand strong,
  .connection-state {
    color: #f6f4fb;
  }

  .sidebar__brand div > span,
  .sidebar__goal,
  .sidebar__note {
    color: rgb(244 242 250 / 52%);
  }

  .nav-item {
    color: rgb(244 242 250 / 68%);
  }

  .nav-item:hover,
  .nav-item[aria-current="page"] {
    background: rgb(255 255 255 / 9%);
    color: #fff;
  }

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

  .agent-stage__copy {
    min-height: 0;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
  }

  .agent-stage__live {
    margin: 20px;
  }
}

@media (max-width: 640px) {
  .agent-stage {
    border-radius: 16px;
  }

  .agent-stage__copy {
    padding: 28px 22px;
  }

  .agent-stage__copy h2 {
    font-size: 1.85rem;
  }

  .agent-stage__live {
    padding: 12px;
    margin: 14px;
  }

  .agent-stage .overview-focus__metrics {
    grid-template-columns: 1fr;
  }

  .agent-stage .overview-focus__metrics > span {
    min-height: 54px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .demo-notice,
  .owner-verdict {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .experiment-overview > span:nth-child(2) {
    border-right: 0;
  }

  .experiment-overview > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--agent-line);
  }
}
