/* Final cockpit polish: keep the 3-column architecture, reduce chrome and make
   the right rail a control panel rather than a chat transcript. */
body.export-agent-mission-open .agent-intro,
body.export-agent-mission-open .projects-shell { display: none; }
body.export-agent-mission-open .agent-page { margin-top: 16px; }
body.export-agent-mission-open .workspace-shell { margin-top: 0; padding-top: 18px; }
body.export-agent-mission-open .workspace-heading {
  min-height: 52px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
body.export-agent-mission-open .workspace-heading .eyebrow { display: none; }
body.export-agent-mission-open .workspace-heading h2 { margin: 0; font-size: 20px; }
body.export-agent-mission-open .workspace-heading p { margin: 3px 0 0; font-size: 13px; }
body.export-agent-mission-open .readiness { padding: 7px 10px; }
body.export-agent-mission-open .readiness strong { font-size: 20px; }

body.export-agent-mission-open .workspace-shell { row-gap: 0; }
body.export-agent-mission-open .workspace-shell > :not(.workspace-heading):not(.mission-nav):not(.agent-chat) {
  width: min(100%, 980px);
}
body.export-agent-mission-open .workspace-actions {
  margin: 4px 0 12px;
}
body.export-agent-mission-open .mission-nav {
  top: 12px;
  gap: 3px;
  padding: 8px;
}

.agent-knowledge,
.next-best-action,
.operational-plan,
.priority-targets { border-radius: 8px; }
.agent-knowledge { padding: 14px 16px; }
.agent-knowledge h3 { display: none; }
.agent-knowledge .eyebrow { margin-bottom: 4px; }
.agent-knowledge p:last-child { margin-bottom: 0; font-size: 13px; }
.next-best-action { padding: 20px; }
.next-best-action h3 { font-size: 21px; }
.next-best-action-decision { max-width: 760px; }
.operational-plan { padding: 16px 18px; }
.operational-plan-list { margin-top: 10px; }
.priority-targets { padding: 16px 18px; }
.priority-targets-list { gap: 8px; }
.priority-targets-list article { padding: 11px 12px; }

/* The main next-action title already names the buyer/action. The review card
   should immediately expose the products instead of repeating the same title. */
[data-workflow-controller-review] > h4 { display: none; }

.export-manager-control { display: grid; gap: 9px; margin: 14px 0 12px; }
.export-manager-control article {
  padding: 10px 11px;
  border: 1px solid #d7e7eb;
  border-radius: 7px;
  background: #fff;
}
.export-manager-control span {
  display: block;
  margin-bottom: 3px;
  color: #61718a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.export-manager-control strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.agent-chat-messages {
  max-height: 190px;
  padding-top: 10px;
  border-top: 1px solid #dce9ed;
}
.agent-chat-messages::before {
  content: attr(data-history-label);
  display: block;
  color: #61718a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.agent-chat-message { max-width: 100%; padding: 9px 10px; font-size: 13px; }
.agent-chat-form textarea { min-height: 68px; }
.agent-chat-form .button { width: 100%; justify-self: stretch; }

.legacy-decision-warning {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #f0ca83;
  border-radius: 7px;
  background: #fff8e9;
  color: #764b08;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  body.export-agent-mission-open .agent-intro { display: none; }
  .export-manager-control { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .export-manager-control { grid-template-columns: 1fr; }
}

.next-best-action .immediate-offer-button.hidden { display: none; }

@media (min-width: 1121px) {
  body.export-agent-mission-open .workspace-actions,
  body.export-agent-mission-open .agent-knowledge,
  body.export-agent-mission-open .operational-plan,
  body.export-agent-mission-open .next-best-action,
  body.export-agent-mission-open .priority-targets {
    grid-column: 2;
  }
  body.export-agent-mission-open .agent-knowledge,
  body.export-agent-mission-open .operational-plan,
  body.export-agent-mission-open .next-best-action,
  body.export-agent-mission-open .priority-targets {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  body.export-agent-mission-open .agent-knowledge {
    margin-top: 0;
  }
  body.export-agent-mission-open .next-best-action {
    border-width: 1px;
    background: #fff;
    box-shadow: none;
  }
}
