.synthetic-copilot {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.synthetic-copilot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.synthetic-copilot-head > div { display: grid; gap: 3px; }
.synthetic-copilot-head h3 { margin: 0; font-size: var(--fs-md); }
.synthetic-copilot-head p {
  max-width: 72ch;
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
}

.synthetic-copilot-consent {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--warn-bg);
}

.synthetic-copilot-booking-consent {
  align-items: flex-start;
  background: var(--ok-bg);
  border-block: 1px solid var(--ok);
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--sp-4) * -1);
  padding: 12px var(--sp-4);
}

.synthetic-copilot-booking-consent > span:last-child {
  display: grid;
  gap: 3px;
}

.synthetic-copilot-booking-consent small {
  color: var(--text-2);
  line-height: 1.45;
}

.synthetic-copilot-consent label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: flex-start;
  cursor: pointer;
}

.synthetic-copilot-consent input { margin-top: 3px; }
.synthetic-copilot-consent label > span { display: grid; gap: 2px; }
.synthetic-copilot-consent strong { font-size: var(--fs-xs); }
.synthetic-copilot-consent small {
  color: var(--text-2);
  font-size: var(--fs-2xs);
  line-height: var(--lh-body);
}

.synthetic-copilot-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.synthetic-copilot-status {
  flex: 1 1 220px;
  color: var(--text-2);
  font-size: var(--fs-xs);
}

.synthetic-copilot-status.is-error { color: var(--danger); }

.synthetic-copilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-3);
}

.synthetic-copilot-grid > section {
  min-width: 0;
  padding: 0 var(--sp-3) 0 0;
}

.synthetic-copilot-grid > section + section {
  padding: 0 0 0 var(--sp-3);
  border-left: 1px solid var(--border-faint);
}

.synthetic-copilot-grid h4 {
  margin: 0 0 var(--sp-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.synthetic-copilot-empty {
  margin: 0;
  color: var(--text-4);
  font-size: var(--fs-xs);
}

.synthetic-copilot-transcript {
  display: grid;
  gap: var(--sp-2);
  max-height: 280px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.synthetic-copilot-transcript li {
  display: grid;
  gap: 2px;
  padding: var(--sp-2);
  border-left: 1px solid var(--series-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.synthetic-copilot-transcript li.is-consultant { border-left-color: var(--series-1); }
.synthetic-copilot-transcript span {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
}

.synthetic-copilot-transcript p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
}

.synthetic-copilot-cue {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent-bg);
}

.synthetic-copilot-cue.is-guardrail {
  border-color: var(--warn);
  background: var(--warn-bg);
}

.synthetic-copilot-cue-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.synthetic-copilot-cue-head strong { font-size: var(--fs-sm); }
.synthetic-copilot-cue p { margin: 0; font-size: var(--fs-xs); line-height: var(--lh-body); }
.synthetic-copilot-cue p > span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.synthetic-copilot-avoid { color: var(--text-2); }
.synthetic-copilot-audit {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-faint);
}

.synthetic-copilot-audit summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 650;
}

.synthetic-copilot-audit > p {
  margin: var(--sp-2) 0;
  color: var(--text-4);
  font-size: var(--fs-2xs);
}

.synthetic-copilot-audit ol {
  display: grid;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.synthetic-copilot-audit li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-2xs);
}

.synthetic-copilot-audit time { color: var(--text-4); font-family: var(--font-mono); }
.synthetic-copilot-audit li > span { display: grid; }
.synthetic-copilot-audit small { color: var(--text-4); }

@media (max-width: 760px) {
  .synthetic-copilot-head,
  .synthetic-copilot-actions { align-items: stretch; flex-direction: column; }
  .synthetic-copilot-head .badge { align-self: flex-start; }
  .synthetic-copilot-actions .btn { width: 100%; }
  .synthetic-copilot-status { flex-basis: auto; }
  .synthetic-copilot-grid { grid-template-columns: minmax(0, 1fr); }
  .synthetic-copilot-grid > section,
  .synthetic-copilot-grid > section + section { padding: 0; border-left: 0; }
  .synthetic-copilot-grid > section + section {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-faint);
  }
}
