:root {
  color-scheme: light;
  --ink: #101820;
  --ink-2: #30404e;
  --muted: #687684;
  --line: #d9e1e6;
  --paper: #f4f7f8;
  --white: #ffffff;
  --night: #071018;
  --night-2: #111e28;
  --teal: #168c80;
  --teal-2: #65d8ca;
  --blue: #2f6f9e;
  --amber: #bd7f28;
  --red: #b94d49;
  --green: #4e8f58;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(13, 25, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.5;
}

body.agent-page {
  color: var(--white);
  background: var(--night);
}

body.pilot-page {
  background: #eef3f4;
}

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

button {
  color: inherit;
  font: inherit;
}

.product-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: 286px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  margin: 0;
  align-items: start;
}

.product-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(99, 216, 202, 0.08), rgba(255, 255, 255, 0) 34%),
    var(--night);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-brand {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.side-nav {
  display: grid;
  gap: 7px;
}

.nav-group {
  margin: 12px 0 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.side-link {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
}

.side-link:hover,
.side-link:focus-visible,
.side-link.is-active {
  color: var(--white);
  border-color: rgba(99, 216, 202, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.side-link::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 50;
  width: 250px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(7, 16, 24, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.38;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.side-link:hover::after,
.side-link:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.side-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--teal-2);
  background: rgba(255, 255, 255, 0.05);
}

.side-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar-assurance {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(99, 216, 202, 0.18);
  border-radius: 8px;
  background: rgba(99, 216, 202, 0.07);
}

.sidebar-assurance span {
  color: var(--teal-2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-assurance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.product-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 2;
  grid-row: 1;
  gap: 18px;
  align-items: center;
  align-self: start;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: rgba(7, 16, 24, 0.94);
  backdrop-filter: blur(18px);
}

main,
.product-footer {
  grid-column: 2;
}

main {
  grid-row: 2;
}

.product-footer {
  grid-row: 3;
}

.product-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-symbol span {
  align-self: end;
  border-radius: 2px;
  background: var(--teal-2);
}

.brand-symbol span:nth-child(1) {
  height: 54%;
}

.brand-symbol span:nth-child(2) {
  height: 100%;
}

.brand-symbol span:nth-child(3) {
  height: 38%;
  background: #f0b253;
}

.product-brand strong,
.product-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-brand strong {
  font-size: 0.98rem;
  line-height: 1.05;
}

.product-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 600;
}

.workspace-title {
  min-width: 0;
}

.workspace-title span,
.workspace-title small,
.workspace-title strong {
  display: block;
}

.workspace-title span {
  color: var(--teal-2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-title strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.1;
}

.workspace-title small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.bar-actions,
.decision-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  padding: 12px 16px;
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #11786d;
}

.button-light {
  padding: 12px 14px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button-danger {
  padding: 12px 14px;
  color: var(--white);
  background: var(--red);
}

main {
  padding: clamp(14px, 2vw, 28px);
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.58fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
}

.hero-copy,
.demo-operator {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(13, 25, 35, 0.06);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(24px, 4vw, 48px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.98), rgba(7, 16, 24, 0.82) 54%, rgba(7, 16, 24, 0.42)),
    url("assets/revenue-recovery-command-centre.png") center right / cover;
}

.kicker,
.panel-head span,
.demo-operator span,
.metric-row span,
.integration-strip small,
.case-card small,
.case-header span,
.workflow-step span,
.evidence-grid span,
.agent-grid span,
.draft-box span,
.safety-box span,
.agent-fleet-head span,
.agent-trust span,
.agent-hero span,
.agent-panel-head span,
.agent-response span,
.agent-command-form label {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy .kicker,
.demo-operator .operator-top span {
  color: var(--teal-2);
}

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

h1 {
  max-width: 880px;
  margin: 16px 0 22px;
  font-size: clamp(2.9rem, 6.2vw, 6.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.demo-operator {
  display: grid;
  min-height: 330px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--night), #143b42);
}

.operator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.operator-top strong {
  color: var(--white);
  font-size: 0.9rem;
}

.operator-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.operator-main strong {
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 3.3rem);
  line-height: 0.95;
}

.operator-main p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.operator-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 20px;
}

.operator-progress span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.operator-progress span.is-active {
  background: var(--teal-2);
  box-shadow: 0 0 0 4px rgba(101, 216, 202, 0.12);
}

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

.metric-row article,
.integration-strip,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(13, 25, 35, 0.05);
}

.metric-row article {
  min-height: 132px;
  padding: 18px;
}

.metric-row strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.metric-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.integration-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--line);
}

.integration-strip div {
  position: relative;
  min-height: 86px;
  padding: 17px 16px 15px 42px;
  background: var(--white);
}

.integration-strip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92rem;
}

.integration-strip small {
  color: var(--muted);
  text-transform: none;
}

.tool-dot {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.tool-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(78, 143, 88, 0.11);
}

.tool-dot.is-warning {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(189, 127, 40, 0.12);
}

.agent-command {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--night);
  box-shadow: var(--shadow);
}

.standalone-agent {
  min-height: calc(100vh - 71px);
  margin-bottom: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body.agent-page .product-shell {
  width: 100%;
}

body.agent-page main {
  padding: 0;
}

.agent-fleet {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.standalone-agent .agent-fleet {
  min-height: calc(100vh - 71px);
}

.agent-fleet-head strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 1.02rem;
}

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

.agent-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
}

.agent-card:hover,
.agent-card:focus-visible,
.agent-card.is-active {
  color: var(--white);
  border-color: rgba(101, 216, 202, 0.42);
  background: rgba(101, 216, 202, 0.1);
}

.agent-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(101, 216, 202, 0.3);
  border-radius: 8px;
  color: var(--teal-2);
  background: rgba(101, 216, 202, 0.08);
  font-weight: 900;
}

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

.agent-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
}

.agent-live-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #6f817c;
}

.agent-live-dot.is-live {
  background: var(--teal-2);
  box-shadow: 0 0 0 5px rgba(101, 216, 202, 0.12);
}

.agent-live-dot.is-watch {
  background: #f0b253;
  box-shadow: 0 0 0 5px rgba(240, 178, 83, 0.11);
}

.agent-trust {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-trust p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.agent-detail {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 42px);
}

.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.agent-hero h2 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 5.8rem);
}

.agent-hero p {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.agent-status {
  padding: 10px 14px;
  border: 1px solid rgba(240, 178, 83, 0.46);
  border-radius: 999px;
  color: #ffc15b;
  background: rgba(240, 178, 83, 0.1);
  font-size: 0.9rem;
}

.agent-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 14px;
}

.agent-progress,
.agent-inspector,
.agent-interaction {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-panel-head strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
}

.agent-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 18px 18px;
  list-style: none;
}

.agent-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
}

.agent-step-dot {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 900;
}

.agent-steps li.is-done .agent-step-dot,
.agent-steps li.is-active .agent-step-dot {
  color: var(--night);
  border-color: var(--teal-2);
  background: var(--teal-2);
}

.agent-steps strong {
  display: block;
  color: var(--white);
}

.agent-steps p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.56);
}

.agent-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.agent-tab {
  min-height: 50px;
  border: 0;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
}

.agent-tab:hover,
.agent-tab:focus-visible,
.agent-tab.is-active {
  color: var(--white);
  background: rgba(101, 216, 202, 0.12);
}

.agent-tab-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.evidence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.evidence-item strong,
.evidence-item small {
  display: block;
}

.evidence-item strong {
  color: var(--white);
}

.evidence-item small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
}

.evidence-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal-2);
  background: rgba(101, 216, 202, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.agent-interaction {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.52fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.agent-response,
.agent-command-form {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-response p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.agent-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-action-button {
  min-height: 44px;
  border: 1px solid rgba(101, 216, 202, 0.28);
  border-radius: 7px;
  color: var(--white);
  background: rgba(101, 216, 202, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.agent-action-button:hover,
.agent-action-button:focus-visible {
  background: rgba(101, 216, 202, 0.16);
}

.agent-command-form {
  grid-column: 1 / -1;
}

.agent-command-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 9px;
}

.agent-command-form input {
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.agent-command-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.agent-command-form input:focus {
  border-color: var(--teal-2);
  outline: 3px solid rgba(101, 216, 202, 0.14);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.28fr) minmax(320px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}

.panel {
  overflow: hidden;
}

.queue-panel,
.workbench,
.decision-panel {
  align-self: stretch;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

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

.panel-head strong {
  display: block;
  margin-top: 3px;
}

.queue-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.queue-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-search input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #c8d3da;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
}

.queue-search input::placeholder {
  color: #82909e;
  font-weight: 600;
}

.queue-search input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 140, 128, 0.16);
}

.case-list {
  display: grid;
  align-content: start;
  flex: 1;
  min-height: 0;
}

.case-card {
  display: grid;
  width: 100%;
  min-height: 128px;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.case-card:last-child {
  border-bottom: 0;
}

.case-card:hover,
.case-card:focus-visible,
.case-card.is-active {
  background: #eff8f7;
}

.case-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.case-card strong {
  display: block;
  line-height: 1.12;
}

.case-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
}

.queue-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.queue-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.case-header {
  display: flex;
  min-height: 110px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.case-header span {
  margin-bottom: 10px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--night);
  font-size: 0.76rem;
  font-weight: 900;
}

.workflow-canvas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.workflow-step {
  position: relative;
  min-height: 178px;
  padding: 18px;
  border-top: 4px solid transparent;
  background: #fbfcfc;
}

.workflow-step::after {
  display: none;
}

.workflow-step.is-active {
  border-top-color: var(--teal);
  background: #e9f8f6;
}

.workflow-step span {
  color: var(--muted);
}

.workflow-step strong {
  display: block;
  margin: 42px 0 8px;
  font-size: 1rem;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.evidence-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  border-bottom: 0;
  align-items: stretch;
  flex: 1;
}

.evidence-grid article,
.agent-grid article {
  min-height: 136px;
  padding: 18px;
  background: var(--white);
}

.agent-grid article {
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.evidence-grid p {
  margin: 14px 0 0;
  color: var(--ink-2);
}

.agent-grid strong {
  display: block;
  margin-top: 24px;
  line-height: 1.16;
}

.decision-panel {
  display: flex;
  flex-direction: column;
}

.draft-box,
.safety-box {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.draft-box {
  min-height: 210px;
}

.draft-box p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.safety-box ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.safety-box li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.91rem;
}

.safety-box li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.decision-actions {
  display: grid;
  margin-top: auto;
  padding: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: 12px;
  margin-top: 12px;
}

.activity-list {
  display: grid;
  max-height: 330px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-list time {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.activity-list strong {
  display: block;
  margin-bottom: 4px;
}

.activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capacity-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 220px;
  padding: 22px 22px 12px;
  align-items: end;
}

.capacity-meter div {
  display: grid;
  height: 180px;
  align-items: end;
  gap: 10px;
}

.capacity-meter span {
  display: block;
  min-height: 18px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #d56c66, var(--red));
  transition: height 240ms ease;
}

.capacity-meter div:nth-child(2) span {
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
}

.capacity-meter small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.capacity-panel p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-2);
}

.pilot-shell {
  display: grid;
  gap: 14px;
}

.pilot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.42fr);
  gap: 14px;
  align-items: stretch;
}

.pilot-hero > div,
.pilot-result-card,
.pilot-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(13, 25, 35, 0.06);
}

.pilot-hero > div {
  min-height: 260px;
  padding: clamp(24px, 4vw, 46px);
}

.pilot-hero h1 {
  max-width: 960px;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
}

.pilot-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.pilot-result-card {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--night), #123a40);
}

.pilot-result-card > span,
.pilot-panel-head span,
.field span,
.result-columns span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-result-card > span {
  color: var(--teal-2);
}

.pilot-result-card strong {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 0.95;
}

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

.pilot-metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.pilot-metrics span,
.pilot-metrics small {
  display: block;
}

.pilot-metrics span {
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 900;
}

.pilot-metrics small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pilot-panel {
  overflow: hidden;
}

.pilot-inputs,
.pilot-output {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.pilot-audit {
  grid-column: 1 / -1;
}

.pilot-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pilot-panel-head.compact {
  padding-bottom: 10px;
}

.pilot-panel-head strong {
  color: var(--ink);
}

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

.scenario-loader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(22, 140, 128, 0.16);
  border-radius: 8px;
  background: #f7fbfb;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.file-upload {
  padding: 14px;
  border: 1px dashed rgba(22, 140, 128, 0.42);
  border-radius: 8px;
  background: rgba(22, 140, 128, 0.06);
}

.file-upload input[type="file"] {
  min-height: 0;
  padding: 10px;
  border-style: dashed;
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 140, 128, 0.12);
}

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

.check-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfb;
  font-weight: 800;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.custom-requirement {
  display: grid;
  gap: 8px;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.inline-field input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.inline-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 140, 128, 0.12);
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.result-columns article {
  min-height: 164px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.result-columns ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.result-columns li strong,
.result-columns li small {
  display: block;
}

.result-columns li strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.result-columns li small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.pilot-safety {
  border-color: var(--line);
  background: #f8fbfb;
}

.pilot-audit .activity-list {
  min-height: 160px;
  max-height: 300px;
  overflow: auto;
  padding: 14px 18px 18px;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 3vw, 34px) 30px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.product-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-footer a {
  color: var(--teal-2);
  font-size: 0.86rem;
  font-weight: 900;
}

@media (max-width: 1240px) {
  .product-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .product-bar,
  .command-hero,
  .pilot-hero,
  .pilot-grid,
  .workflow-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .bar-actions {
    justify-content: stretch;
  }

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

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

@media (max-width: 760px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-sidebar,
  .product-bar,
  main,
  .product-footer {
    grid-column: 1;
  }

  .product-sidebar {
    position: relative;
    grid-row: auto;
    height: auto;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .nav-group,
  .sidebar-brand,
  .sidebar-assurance {
    grid-column: 1 / -1;
  }

  .side-link::after {
    display: none;
  }

  main {
    padding: 12px;
  }

  .product-bar {
    position: relative;
    padding: 14px;
  }

  .bar-actions,
  .decision-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .product-brand small {
    white-space: normal;
  }

  .hero-copy,
  .demo-operator {
    min-height: 0;
  }

  .demo-operator {
    order: -1;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.25rem);
    line-height: 0.95;
  }

  .operator-main strong {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  .metric-row,
  .integration-strip,
  .field-grid,
  .scenario-loader,
  .inline-field,
  .result-columns,
  .agent-command,
  .agent-workspace,
  .agent-interaction,
  .agent-command-form div,
  .workflow-canvas,
  .evidence-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-fleet {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .standalone-agent .agent-fleet {
    min-height: 0;
  }

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

  .agent-hero h2 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .case-header,
  .panel-head {
    align-items: start;
    flex-direction: column;
  }

  .workflow-step {
    min-height: 132px;
  }

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

  .workflow-step strong {
    margin-top: 24px;
  }

  .activity-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
