@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

 :root {
  --bg: #fbfbfd;
  --bg-soft: #fff0f5;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #10233f;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #e6e8ee;
  --primary: #e4005a;
  --primary-2: #b80049;
  --primary-soft: #fff0f5;
  --navy: #10233f;
  --navy-2: #1f3558;
  --success: #079455;
  --warning: #dc6803;
  --danger: #d92d20;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .07);
  --shadow-md: 0 14px 34px rgba(16, 35, 63, .10);
  --shadow-lg: 0 28px 70px rgba(16, 35, 63, .14);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(228, 0, 90, .10), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(16, 35, 63, .08), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #f8fafc 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(16, 35, 63, .10);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "Afya";
  width: auto;
  height: auto;
  display: inline-block;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.08em;
}
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a {
  color: #344054;
  font-weight: 650;
  padding: 10px 13px;
  border-radius: 12px;
}
.topbar nav a:hover { background: var(--primary-soft); color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 34px 22px 56px; }

.hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 430px;
  gap: 30px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: .96;
  letter-spacing: -.06em;
  margin: 12px 0 18px;
  max-width: 820px;
}
.hero p { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 690px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-office-column { display: grid; gap: 16px; }
.claw-mini-office {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 0%, rgba(245,158,11,.24), transparent 16rem),
    #070b12;
  color: white;
  box-shadow: 0 30px 70px rgba(7,11,18,.25);
}
.mini-office-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mini-office-top strong {
  color: #f5c56b;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(245,197,107,.28);
}
.mini-office-top span {
  border-radius: 999px;
  background: rgba(18,183,106,.16);
  border: 1px solid rgba(18,183,106,.36);
  color: #86efac;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}
.mini-office-floor {
  position: relative;
  min-height: 170px;
  border-radius: 22px;
  background:
    linear-gradient(30deg, rgba(120,74,36,.08) 12%, transparent 12.5%, transparent 87%, rgba(120,74,36,.08) 87.5%) 0 0/42px 42px,
    linear-gradient(135deg, #f5ead9, #d9bea0);
  transform: perspective(760px) rotateX(58deg) rotateZ(-36deg);
  box-shadow: 24px 30px 0 rgba(0,0,0,.18);
}
.mini-central,
.mini-desk {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 950;
  transform: rotate(36deg) rotateX(-58deg);
  box-shadow: 8px 10px 0 rgba(16,35,63,.18);
}
.mini-central {
  left: 38%;
  top: 38%;
  width: 96px;
  height: 44px;
  background: #5b371d;
  color: white;
  font-size: 13px;
}
.mini-desk {
  width: 48px;
  height: 42px;
  background: #13243f;
  color: #dbeafe;
  font-size: 12px;
}
.mini-desk.active { background: #027a48; color: white; }
.mini-desk.waiting { background: var(--primary); color: white; }
.mini-desk:nth-of-type(2) { left: 16%; top: 18%; }
.mini-desk:nth-of-type(3) { right: 18%; top: 18%; }
.mini-desk:nth-of-type(4) { left: 22%; bottom: 18%; }
.mini-desk:nth-of-type(5) { right: 20%; bottom: 18%; }
.claw-mini-office > small {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}
.hero > div:first-child {
  position: relative;
}
.hero > div:first-child::after {
  content: "";
  position: absolute;
  inset: auto 8% -70px auto;
  width: 220px;
  height: 120px;
  opacity: .28;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 9px, rgba(228,0,90,.42) 10px 12px, transparent 13px 20px);
  border-radius: 999px;
  pointer-events: none;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
}

.card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(228, 231, 236, .95);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: 0 12px 38px rgba(16,24,40,.07); }
.card h2 { margin: 0 0 14px; letter-spacing: -.03em; }
.card p, .card li { color: var(--muted); line-height: 1.6; }
.start-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(49, 87, 213, .12);
}
.start-card::before {
  content: "Nova demanda";
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 7px 10px;
  border-radius: 999px;
}

label { font-weight: 700; font-size: 13px; color: #344054; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(228, 0, 90, .55);
  box-shadow: 0 0 0 4px rgba(228, 0, 90, .10);
}
textarea { resize: vertical; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #c6004f);
  color: #fff;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(228, 0, 90, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover, .button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(228,0,90,.30); }
button:active, .button:active { transform: translateY(0); filter: brightness(.96); }
.secondary { background: #eef2ff; color: var(--primary); box-shadow: none; }
.secondary:hover { background: #e0e7ff; color: var(--primary-2); box-shadow: none; }

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

.page-title { margin-bottom: 24px; }
.page-title h1 { margin: 4px 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; }
.page-title p:not(.eyebrow) { color: var(--muted); margin: 0; line-height: 1.6; }
.split-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.title-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice { margin: -8px 0 22px; padding: 14px 16px; border-radius: 16px; font-weight: 700; }
.notice.success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

/* Chat workspace */
.workspace-shell {
  display: grid;
  gap: 16px;
  height: calc(100vh - 112px);
  min-height: 640px;
}
.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(228,0,90,.09), rgba(255,255,255,.96));
  border: 1px solid rgba(228,0,90,.14);
  border-radius: 24px;
  padding: 16px 20px;
}
.workspace-header h1 {
  margin: 2px 0 4px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.05em;
}
.workspace-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions form { margin: 0; }
.header-actions .secondary { box-shadow: none; }
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  min-height: 0;
  flex: 1;
}
.chat-panel {
  min-height: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--primary), #ff4f93);
  box-shadow: 0 10px 20px rgba(228,0,90,.22);
}
.chat-panel-header strong { display: block; letter-spacing: -.02em; }
.chat-panel-header small { display: block; margin-top: 3px; color: var(--muted); }
.status {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  text-transform: capitalize;
}
.messages {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  background:
    linear-gradient(rgba(248,250,252,.94), rgba(248,250,252,.94)),
    radial-gradient(circle at 15% 10%, rgba(228,0,90,.09), transparent 22rem);
}
.message-row { display: flex; }
.message-row.agent, .message-row.system { justify-content: flex-start; }
.message-row.user { justify-content: flex-end; }
.bubble {
  max-width: min(74%, 680px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.bubble p { margin: 0 0 6px; line-height: 1.55; }
.bubble small { color: var(--muted-2); font-size: 11px; }
.bubble.agent, .bubble.system {
  background: #fff;
  border: 1px solid var(--border);
  border-top-left-radius: 7px;
}
.bubble.user {
  background: var(--primary);
  color: #fff;
  border-top-right-radius: 7px;
}
.bubble.user small { color: rgba(255,255,255,.72); }
.composer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.composer input[type="text"], .composer input:not([type]) {
  border-radius: 14px;
  background: #f8fafc;
}
.composer button { min-width: 104px; }
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  min-height: 46px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
}
.file-button input { display: none; }
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(49,87,213,.10);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.bubble.user .attachment-chip {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.knowledge-context {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(16,35,63,.05);
  color: var(--muted);
  font-size: 12px;
}
.knowledge-context summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}
.knowledge-context ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.knowledge-context li {
  margin-bottom: 6px;
  line-height: 1.45;
}
.bubble.user .knowledge-context {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
}
.bubble.user .knowledge-context summary { color: #fff; }
.summary-panel { position: sticky; top: 94px; align-self: start; max-height: 100%; overflow: auto; }
.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.summary-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.summary-card-header h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -.04em;
}
.mini-link {
  font-size: 13px;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 11px;
}
.summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.summary-list dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.summary-list dd {
  margin: -8px 0 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.document-card { margin-top: 16px; }
.document-preview {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px;
  resize: vertical;
}
.document-preview.large { min-height: 520px; font-size: 13px; }
.po-summary-review {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-height: min(62vh, 680px);
  overflow: auto;
  margin: 0;
  padding: 0 6px 0 0;
}
.po-summary-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(228, 0, 90, .18);
  border-radius: 8px;
  background: #fff7fb;
}
.po-summary-progress strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}
.po-summary-progress span {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}
.po-summary-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.po-summary-section + .po-summary-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.po-summary-section h3 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}
.po-summary-item {
  display: grid;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-left: 3px solid #d0d5dd;
  background: #f8fafc;
  padding: 10px 11px;
}
.po-summary-item.filled { border-left-color: var(--primary); background: #fff; }
.po-summary-item.pending { border-left-color: #f79009; background: #fffcf5; }
.po-summary-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}
.po-summary-value {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.po-summary-item.pending .po-summary-value { color: #93370d; }
.po-summary-actions, .po-summary-approved {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .05));
}
.po-summary-actions p, .po-summary-approved p { margin: 0 0 12px; color: #475467; line-height: 1.45; }
.po-summary-approved { border-color: rgba(5, 150, 105, .25); background: linear-gradient(135deg, rgba(5, 150, 105, .09), rgba(16, 185, 129, .05)); }

/* Details */
dl { display: grid; grid-template-columns: minmax(190px, 34%) minmax(0, 1fr); gap: 12px 18px; margin: 0; align-items: start; }
dt { font-weight: 800; color: #344054; font-size: 13px; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
dd { margin: 0; color: #475467; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.gate-action {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gate-action strong { color: var(--primary); font-size: 14px; }
.gate-action p { margin: 4px 0 0; color: #475467; line-height: 1.5; }
.gate-action form { flex: 0 0 auto; }
.flow-diagram {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(130px, 1fr) auto minmax(140px, 1fr) auto minmax(150px, 1fr);
  grid-auto-rows: minmax(78px, auto);
  gap: 14px;
  align-items: center;
  margin: 18px 0 20px;
}
.flow-node {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 18px 16px;
  min-height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.flow-node small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.flow-node.human { background: linear-gradient(135deg, #fdf2f8, #fff); color: #be185d; }
.flow-node.agent { background: linear-gradient(135deg, #eff6ff, #fff); color: #1d4ed8; }
.flow-node.gate { background: linear-gradient(135deg, #ecfdf5, #fff); color: #047857; }
.flow-arrow {
  font-size: 28px;
  color: #98a2b3;
  font-weight: 900;
  text-align: center;
}
.flow-arrow.down { font-size: 24px; }
.step-po { grid-column: 1; grid-row: 1; }
.arrow-po-a1 { grid-column: 2; grid-row: 1; }
.step-a1 { grid-column: 3; grid-row: 1; }
.arrow-a1-po-ok { grid-column: 4; grid-row: 1; }
.step-po-ok { grid-column: 5; grid-row: 1; }
.arrow-po-ok-g1 { grid-column: 6; grid-row: 1; }
.step-g1 { grid-column: 7; grid-row: 1; }
.arrow-g1-a2 { grid-column: 7; grid-row: 2; }
.step-a2 { grid-column: 7; grid-row: 3; }
.arrow-a2-g2 { grid-column: 6; grid-row: 3; }
.step-g2 { grid-column: 5; grid-row: 3; }
.arrow-g2-a3 { grid-column: 5; grid-row: 4; }
.step-a3 { grid-column: 5; grid-row: 5; }
.flow-notes { margin-top: 10px; color: #475467; line-height: 1.6; }
.simple-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.simple-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  min-height: 112px;
  box-shadow: var(--shadow-soft);
}
.simple-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 38px;
  color: #98a2b3;
  font-weight: 900;
  z-index: 1;
}
.simple-step strong { display: block; color: var(--primary); margin-bottom: 8px; }
.simple-step span { display: block; color: #475467; font-size: 13px; line-height: 1.45; }
.simple-step.final { background: linear-gradient(135deg, rgba(5, 150, 105, .09), #fff); }
.agent-workflow {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto minmax(160px, 1fr) auto minmax(160px, 1fr) auto minmax(160px, 1fr) auto minmax(150px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: 18px 0;
}
.work-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #d0d5dd;
}
.work-card.done::before { background: linear-gradient(90deg, #059669, #10b981); }
.work-card.working::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.work-card.waiting { opacity: .72; background: #f8fafc; }
.work-card.human { background: linear-gradient(135deg, #fdf2f8, #fff); }
.work-card.agent { background: linear-gradient(135deg, #eff6ff, #fff); }
.work-card.final { background: linear-gradient(135deg, #ecfdf5, #fff); }
.work-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.work-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .09);
  font-size: 28px;
  box-shadow: inset 0 -8px 18px rgba(15, 23, 42, .06), 0 10px 20px rgba(15, 23, 42, .08);
}
.human-avatar { background: linear-gradient(135deg, #fce7f3, #fff); }
.agent-avatar-mini { background: linear-gradient(135deg, #dbeafe, #fff); }
.qualifier-avatar { background: linear-gradient(135deg, #ede9fe, #fff); }
.discovery-avatar { background: linear-gradient(135deg, #ccfbf1, #fff); }
.final-avatar { background: linear-gradient(135deg, #dcfce7, #fff); }
.work-status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px !important;
  font-weight: 900;
  text-transform: uppercase;
  color: #667085 !important;
  background: #f2f4f7;
  white-space: nowrap;
}
.work-card.done .work-status { color: #047857 !important; background: rgba(5, 150, 105, .1); }
.work-card.working .work-status { color: #1d4ed8 !important; background: rgba(37, 99, 235, .1); }
.work-body { display: grid; gap: 5px; }
.work-card strong { display: block; color: var(--text); font-size: 15px; line-height: 1.25; }
.work-card span { display: block; color: #475467; font-size: 13px; line-height: 1.35; }
.work-card small { display: block; color: #667085; font-size: 11px; font-weight: 800; margin-top: 4px; }
.work-card.working .work-avatar { animation: workPulse 1.4s ease-in-out infinite; }
@keyframes workPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.work-connector {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-weight: 900;
  font-size: 24px;
}
.deliveries-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.delivery-chip {
  border: 1px solid var(--border);
  color: #667085;
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
.delivery-chip.done {
  border-color: rgba(5, 150, 105, .22);
  color: #047857;
  background: rgba(5, 150, 105, .08);
}

/* Tables */
.table-card { padding: 8px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: #667085; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; }
tbody tr:hover { background: #f8fbff; }
.pill { background: var(--primary-soft); color: var(--primary); padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.muted-text { color: var(--muted); font-weight: 700; font-size: 13px; }

.decision-form, .kb-form { display: grid; gap: 16px; }
.history { display: grid; gap: 10px; }
.history div { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px; color: #475467; }
.file-list { display: grid; gap: 10px; }
.file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.file-item:hover { border-color: rgba(228,0,90,.35); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.file-item span, .hint { color: var(--muted); font-size: 13px; }
.knowledge-form { display: grid; gap: 14px; }
.code-editor {
  min-height: 62vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
  white-space: pre;
  background: #0b1220;
  color: #dbeafe;
  border-color: #1e293b;
}
.form-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

@media (max-width: 980px) {
  .hero, .two, .chat-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .side { position: static; }
  .agent-workflow { grid-template-columns: 1fr; }
  .work-connector { transform: rotate(90deg); min-height: 20px; }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; height: auto; padding: 16px; flex-direction: column; gap: 12px; }
  .topbar nav { flex-wrap: wrap; }
  .container { padding: 24px 14px 42px; }
  .card { padding: 18px; }
  .split-title { flex-direction: column; }
  dl { grid-template-columns: 1fr; }
  .workspace-shell { height: auto; min-height: 0; }
  .chat-panel { height: 72vh; min-height: 520px; }
  .po-summary-item { grid-template-columns: 1fr; gap: 4px; }
  .messages { padding: 16px; }
  .bubble { max-width: 90%; }
  .composer { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 12px 10px; }
}

/* OpenClaw bridge */
.actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.inline-form { margin: 0; }
.inline-form button { white-space: nowrap; }
.openclaw-explainer code {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 800;
}
.openclaw-chat-card {
  display: grid;
  gap: 18px;
}
.openclaw-history {
  display: grid;
  gap: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}
.openclaw-message {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}
.openclaw-message.user {
  background: var(--primary-soft);
  border-color: rgba(228, 0, 90, .18);
}
.openclaw-message.assistant {
  background: #f8fafc;
}
.openclaw-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}
.openclaw-message .message-text {
  white-space: pre-wrap;
  color: #344054;
  line-height: 1.6;
}
.openclaw-message small {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
}
.openclaw-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.empty-state {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.bubble.pending p::after {
  content: ' •';
  animation: pulse-dot 1s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}
.composer button:disabled {
  opacity: .6;
  cursor: wait;
}

/* Mission Control */
.mission-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy), #182a5a 55%, var(--primary));
  color: white;
  box-shadow: var(--shadow);
}
.mission-hero h1,
.mission-hero p { color: white; }
.mission-hero .eyebrow { color: rgba(255,255,255,.72); }
.mission-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.metric-card span {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--primary);
  font-weight: 900;
}
.metric-card small { color: var(--muted); font-weight: 700; }
.office-showcase { margin: 8px 0 24px; }
.claw-office-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  padding: 16px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 0%, rgba(245,158,11,.18), transparent 26rem),
    radial-gradient(circle at 80% 30%, rgba(34,211,238,.13), transparent 24rem),
    #070b12;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(7,11,18,.25);
}
.claw-office-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(15,23,42,.82);
}
.claw-office-nav span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: white;
  font-size: 18px;
}
.claw-office-nav span.active { background: rgba(245,158,11,.22); box-shadow: inset 0 0 0 1px rgba(245,158,11,.42); }
.claw-office-stage { min-width: 0; }
.claw-office-stage.full-width { grid-column: 1; }
.claw-office-logo {
  margin: 4px 0 12px;
  text-align: center;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: .08em;
  color: #f5c56b;
  text-shadow: 0 5px 0 rgba(0,0,0,.25), 0 0 24px rgba(245,197,107,.22);
}
.claw-office-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(15,23,42,.88);
  color: white;
}
.claw-office-panel .eyebrow { color: #f5c56b; }
.claw-office-panel h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.04em; }
.panel-card {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.panel-card strong { color: white; }
.panel-card span { color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.35; }
.status-legend {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}
.status-legend span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}
.status-legend span.green { background: var(--success); }
.status-legend span.pink { background: var(--primary); }
.agent-office { margin-bottom: 22px; overflow: hidden; }
.office-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #067647;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.office-live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(7,148,85,.12);
}
.office-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}
.office-floor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(16,35,63,.08);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(16,35,63,.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(16,35,63,.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(135deg, #fff, #f8fafc 62%, #fff0f5);
}
.office-floor-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(120, 74, 36, .16);
  border-radius: 30px;
  perspective: 900px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 26%, transparent 74%, rgba(16,35,63,.10)),
    radial-gradient(circle at 18% 14%, rgba(228,0,90,.12), transparent 24rem),
    linear-gradient(135deg, #f5ead9 0%, #ead7bd 48%, #d9bea0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), var(--shadow-md);
}
.ops-map > * { position: relative; z-index: 2; }
.ops-map::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 70px;
  bottom: 58px;
  z-index: 1;
  border-radius: 28px;
  transform: rotateX(58deg) rotateZ(-35deg) translateY(34px);
  transform-origin: 50% 60%;
  background:
    linear-gradient(30deg, rgba(120,74,36,.12) 12%, transparent 12.5%, transparent 87%, rgba(120,74,36,.12) 87.5%, rgba(120,74,36,.12)) 0 0/62px 62px,
    linear-gradient(150deg, rgba(120,74,36,.10) 12%, transparent 12.5%, transparent 87%, rgba(120,74,36,.10) 87.5%, rgba(120,74,36,.10)) 0 0/62px 62px,
    linear-gradient(135deg, #f7e6c8, #d0a977);
  box-shadow: 36px 42px 0 rgba(70,43,22,.18), inset 0 0 0 2px rgba(255,255,255,.5);
}
.ops-map::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 76px;
  height: 170px;
  border-radius: 26px 26px 0 0;
  background:
    linear-gradient(90deg, rgba(16,35,63,.14) 1px, transparent 1px) 0 0/54px 54px,
    linear-gradient(#fff9ef, #f1dfc3);
  transform: skewX(-20deg);
  box-shadow: 18px 16px 0 rgba(70,43,22,.10);
}
.compact-map { min-height: 430px; }
.agent-map { min-height: 620px; }
.ops-live-panel {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #13243f;
  color: white;
  box-shadow: 0 18px 34px rgba(16,35,63,.22);
}
.ops-live-panel strong { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; }
.ops-live-panel strong span { width: 9px; height: 9px; border-radius: 999px; background: #12b76a; box-shadow: 0 0 0 6px rgba(18,183,106,.18); }
.ops-live-panel small { color: rgba(255,255,255,.72); font-weight: 700; }
.ops-central {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-8deg) skew(-10deg);
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6b4423, #3b2415);
  color: white;
  box-shadow: 16px 22px 0 rgba(63,39,20,.18), 0 24px 44px rgba(63,39,20,.26);
}
.ops-central::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -18px;
  height: 26px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(135deg, #9c6a38, #5b371d);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.12);
}
.ops-central strong, .ops-central small { transform: skew(10deg); }
.ops-central strong { font-size: 20px; letter-spacing: -.03em; }
.ops-central small { color: rgba(255,255,255,.72); font-weight: 700; }
.ops-station {
  position: absolute;
  z-index: 6;
  width: 190px;
  min-height: 170px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(101,62,30,.16);
  box-shadow: 16px 22px 0 rgba(101,62,30,.12), 0 20px 42px rgba(16,35,63,.12);
  transform: rotate(-7deg) skew(-7deg) translateZ(0);
}
.ops-station > * { transform: skew(7deg); }
.ops-station strong { display: block; margin-top: 8px; color: var(--navy); font-size: 15px; }
.ops-station small { display: block; color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ops-station p { margin: 8px 0 0; color: #475467; font-size: 12px; line-height: 1.35; }
.agent-chip {
  position: absolute;
  top: -14px;
  left: 14px;
  z-index: 5;
  padding: 7px 10px;
  border-radius: 999px;
  background: #13243f;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(16,35,63,.20);
}
.ops-station.active .agent-chip { background: #027a48; }
.ops-station.waiting .agent-chip { background: var(--primary); }
.station-desk {
  position: relative;
  height: 64px;
  margin-top: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2b3f66, #10233f);
  box-shadow: inset 0 -10px 0 rgba(255,255,255,.07), 0 10px 0 rgba(16,35,63,.13);
}
.station-desk::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -18px;
  width: 54px;
  height: 36px;
  border-radius: 8px;
  background: #ecfeff;
  border: 6px solid #10233f;
  box-shadow: 42px 14px 0 -8px rgba(255,255,255,.55);
}
.station-desk span {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 20px;
  border-radius: 6px;
  background: #22d3ee;
  box-shadow: 0 26px 0 -4px rgba(34,211,238,.35);
}
.agent-figure {
  position: absolute;
  right: 18px;
  top: 28px;
  width: 30px;
  height: 54px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #e4005a 0 52%, #111827 52%);
  box-shadow: 0 10px 0 rgba(16,35,63,.12);
}
.agent-figure::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -17px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f7c59f;
}
.ops-station.active { border-color: rgba(7,148,85,.35); }
.ops-station.active .agent-figure { animation: agentBounce 1.4s ease-in-out infinite; }
.ops-station:not(.active) .agent-figure { animation: none; }
.ops-station.active .station-desk { background: linear-gradient(135deg, #087443, #10233f); }
.ops-station.waiting { border-color: rgba(228,0,90,.32); }
.ops-station.waiting .station-desk { background: linear-gradient(135deg, #b42318, #10233f); }
.station-a, .station-1 { left: 7%; top: 18%; }
.station-b, .station-2 { left: 36%; top: 10%; }
.station-c, .station-3 { right: 8%; top: 24%; }
.station-d, .station-4 { left: 12%; bottom: 12%; }
.station-e, .station-5 { left: 43%; bottom: 8%; }
.station-f, .station-6 { right: 10%; bottom: 15%; }

.office-path {
  position: absolute;
  z-index: 3;
  height: 2px;
  border-top: 3px dashed rgba(16,35,63,.18);
  transform-origin: left center;
  pointer-events: none;
}
.path-a { left: 25%; top: 47%; width: 47%; transform: rotate(-18deg); }
.path-b { left: 31%; top: 63%; width: 38%; transform: rotate(22deg); }

.office-walker {
  position: absolute;
  z-index: 8;
  width: 28px;
  height: 46px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #e4005a 0 50%, #13243f 50%);
  box-shadow: 0 12px 0 rgba(16,35,63,.14), 0 18px 26px rgba(16,35,63,.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.office-walker.waiting,
.office-walker.idle {
  filter: grayscale(.25) saturate(.75);
  opacity: .86;
}
.office-walker.idle {
  opacity: .68;
}
.office-walker::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -17px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f7c59f;
  box-shadow: 3px 3px 0 rgba(16,35,63,.12);
}
.office-walker::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -8px;
  width: 7px;
  height: 13px;
  border-radius: 8px;
  background: #13243f;
  box-shadow: 13px 0 0 #13243f;
}
.office-walker span {
  position: absolute;
  left: -5px;
  top: 17px;
  width: 38px;
  height: 8px;
}
.office-walker span::before,
.office-walker span::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 5px;
  border-radius: 999px;
  background: #f7c59f;
}
.office-walker span::before { left: 0; }
.office-walker span::after { right: 0; }
.office-walker.working::after { animation: walkingFeet .55s ease-in-out infinite; }
.office-walker.working span::before,
.office-walker.working span::after { animation: walkingArms .7s ease-in-out infinite; }
.office-walker.working span::after { animation-delay: -.35s; }
.walker-or { left: 27%; top: 34%; background: linear-gradient(180deg, #12b76a 0 50%, #13243f 50%); }
.walker-or.working { animation: walkOrbitA 9s linear infinite; }
.walker-qd { left: 70%; top: 42%; }
.walker-qd.working { animation: walkOrbitB 10s linear infinite; animation-delay: -3s; }
.walker-dp { left: 48%; top: 68%; background: linear-gradient(180deg, #22d3ee 0 50%, #13243f 50%); }
.walker-dp.working { animation: walkOrbitC 11s linear infinite; animation-delay: -6s; }
.office-walker.waiting::before {
  box-shadow: 3px 3px 0 rgba(16,35,63,.12), 0 0 0 5px rgba(228,0,90,.12);
}
.office-walker.idle::before {
  box-shadow: 3px 3px 0 rgba(16,35,63,.12), 0 0 0 5px rgba(148,163,184,.12);
}

@keyframes agentBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@keyframes walkingFeet {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
}
@keyframes walkingArms {
  0%, 100% { transform: translateY(-2px) rotate(-18deg); }
  50% { transform: translateY(2px) rotate(18deg); }
}
@keyframes walkOrbitA {
  0% { left: 27%; top: 34%; transform: translate(-50%, -50%) scale(.92) rotate(-8deg); }
  25% { left: 52%; top: 43%; transform: translate(-50%, -50%) scale(1) rotate(14deg); }
  50% { left: 71%; top: 35%; transform: translate(-50%, -50%) scale(.92) rotate(36deg); }
  75% { left: 49%; top: 62%; transform: translate(-50%, -50%) scale(1.05) rotate(-16deg); }
  100% { left: 27%; top: 34%; transform: translate(-50%, -50%) scale(.92) rotate(-8deg); }
}
@keyframes walkOrbitB {
  0% { left: 70%; top: 42%; transform: translate(-50%, -50%) scale(.94) rotate(18deg); }
  28% { left: 51%; top: 56%; transform: translate(-50%, -50%) scale(1.06) rotate(-12deg); }
  56% { left: 31%; top: 48%; transform: translate(-50%, -50%) scale(1) rotate(-28deg); }
  78% { left: 45%; top: 35%; transform: translate(-50%, -50%) scale(.92) rotate(8deg); }
  100% { left: 70%; top: 42%; transform: translate(-50%, -50%) scale(.94) rotate(18deg); }
}
@keyframes walkOrbitC {
  0% { left: 48%; top: 68%; transform: translate(-50%, -50%) scale(1.08) rotate(-18deg); }
  32% { left: 33%; top: 51%; transform: translate(-50%, -50%) scale(1) rotate(-34deg); }
  62% { left: 55%; top: 38%; transform: translate(-50%, -50%) scale(.93) rotate(12deg); }
  82% { left: 73%; top: 49%; transform: translate(-50%, -50%) scale(1) rotate(28deg); }
  100% { left: 48%; top: 68%; transform: translate(-50%, -50%) scale(1.08) rotate(-18deg); }
}
.office-floor.compact-office { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.office-desk {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(16,35,63,.08);
}
.office-desk::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(16,35,63,.08);
}
.desk-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(228,0,90,.20);
}
.desk-screen {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(16,35,63,.10);
  border-radius: 16px;
  background: #0f172a;
  color: white;
}
.desk-screen strong { color: white; font-size: 14px; line-height: 1.25; }
.desk-screen small { color: rgba(255,255,255,.68); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.screen-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 14px 0 0 #475569, 28px 0 0 #475569;
  margin-bottom: 2px;
}
.office-desk.is-working .screen-dot { background: var(--warning); box-shadow: 14px 0 0 var(--warning), 28px 0 0 rgba(220,104,3,.35); }
.office-desk.is-done .screen-dot { background: var(--success); box-shadow: 14px 0 0 var(--success), 28px 0 0 rgba(7,148,85,.35); }
.office-desk.is-waiting .screen-dot { background: var(--primary); box-shadow: 14px 0 0 rgba(228,0,90,.42), 28px 0 0 rgba(228,0,90,.22); }
.office-desk p { margin: 0 0 14px; color: #475467; line-height: 1.45; font-size: 14px; }
.desk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-bottom: 10px; }
.desk-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--navy);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}
.mission-board { display: grid; gap: 18px; }
.mission-demand-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.mission-demand-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.mission-demand-header h2 { margin: 0 0 8px; }
.mission-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.agent-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}
.agent-card.concluido { background: #f0fdf4; border-color: #bbf7d0; }
.agent-card.em_execucao { background: #fff7ed; border-color: #fed7aa; }
.agent-card.bloqueado { background: #fef2f2; border-color: #fecaca; }
.agent-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.agent-card strong { color: var(--navy); }
.agent-card p { margin: 0; color: #475467; line-height: 1.45; }
.agent-card small { color: var(--muted); line-height: 1.4; }
.agent-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}
.agent-card details summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.agent-card ul { margin: 8px 0 0; padding-left: 18px; color: #475467; }
@media (max-width: 920px) {
  .mission-hero,
  .mission-demand-header { flex-direction: column; }
  .claw-office-shell { grid-template-columns: 1fr; }
  .claw-office-nav { flex-direction: row; justify-content: center; }
  .mission-metrics,
  .office-floor,
  .office-floor.compact-office,
  .agent-grid,
  .agent-grid.compact { grid-template-columns: 1fr; }
}

.agents-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.agent-profile-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.agent-profile-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 22px;
}
.agent-profile-card h2 { margin: 0 0 8px; }
.agent-profile-card p { color: #475467; line-height: 1.5; }
.agent-profile-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.agent-profile-stats span {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 920px) {
  .agents-directory { grid-template-columns: 1fr; }
}

/* Enterprise Mission Control redesign overrides — less cartoon, more OpenClaw-style ops UI */
.claw-mini-office {
  background:
    linear-gradient(135deg, rgba(12,18,32,.94), rgba(16,35,63,.96)),
    radial-gradient(circle at 20% 0%, rgba(228,0,90,.28), transparent 18rem);
  border: 1px solid rgba(255,255,255,.10);
}
.mini-office-top strong {
  color: #f8fafc;
  letter-spacing: .12em;
  font-size: 12px;
}
.mini-office-floor {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(135deg, #1e293b, #0f172a 68%, #020617);
  box-shadow: 22px 28px 0 rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.10);
}
.mini-central {
  background: linear-gradient(135deg, #e4005a, #10233f);
  border: 1px solid rgba(255,255,255,.16);
}
.mini-desk {
  background: #1f3558;
  border: 1px solid rgba(255,255,255,.14);
}
.mini-desk:nth-of-type(2) { left: 18%; top: 22%; }
.mini-desk:nth-of-type(3) { right: 18%; top: 24%; }
.mini-desk:nth-of-type(4) { left: 39%; bottom: 15%; }

.claw-office-shell {
  background:
    radial-gradient(circle at 18% 0%, rgba(228,0,90,.20), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(34,211,238,.12), transparent 28rem),
    linear-gradient(145deg, #050914 0%, #0b1220 48%, #111827 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 34px 90px rgba(2,6,23,.34);
}
.claw-office-nav {
  background: rgba(2,6,23,.72);
  border-color: rgba(148,163,184,.18);
}
.claw-office-nav span {
  width: 46px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #cbd5e1;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.18);
}
.claw-office-nav span.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 12px 26px rgba(228,0,90,.28);
}
.claw-office-logo {
  color: #f8fafc;
  text-shadow: 0 0 30px rgba(228,0,90,.20);
  letter-spacing: .16em;
  font-size: clamp(20px, 3vw, 34px);
}
.claw-office-panel {
  background: rgba(2,6,23,.72);
  border-color: rgba(148,163,184,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.panel-card {
  background: rgba(15,23,42,.78);
  border-color: rgba(148,163,184,.16);
}
.ops-map {
  background:
    radial-gradient(circle at 26% 18%, rgba(228,0,90,.12), transparent 26rem),
    linear-gradient(145deg, #111827, #172033 48%, #0b1220);
  border-color: rgba(148,163,184,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 28px 70px rgba(2,6,23,.28);
}
.ops-map::before {
  background:
    linear-gradient(90deg, rgba(148,163,184,.14) 1px, transparent 1px) 0 0/44px 44px,
    linear-gradient(rgba(148,163,184,.14) 1px, transparent 1px) 0 0/44px 44px,
    linear-gradient(135deg, #1e293b, #0f172a 72%, #020617);
  box-shadow: 34px 40px 0 rgba(0,0,0,.28), inset 0 0 0 2px rgba(148,163,184,.15);
}
.ops-map::after {
  background:
    linear-gradient(90deg, rgba(148,163,184,.18) 1px, transparent 1px) 0 0/62px 62px,
    linear-gradient(135deg, rgba(30,41,59,.96), rgba(15,23,42,.90));
  border: 1px solid rgba(148,163,184,.12);
  box-shadow: 18px 16px 0 rgba(0,0,0,.18);
}
.ops-live-panel {
  background: rgba(2,6,23,.86);
  border: 1px solid rgba(34,197,94,.26);
  box-shadow: 0 18px 34px rgba(2,6,23,.26);
}
.ops-central {
  background: linear-gradient(135deg, rgba(228,0,90,.92), rgba(16,35,63,.96));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 14px 20px 0 rgba(0,0,0,.22), 0 24px 44px rgba(2,6,23,.34);
}
.ops-central::before {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}
.ops-station {
  background: rgba(248,250,252,.94);
  border-color: rgba(148,163,184,.20);
  box-shadow: 14px 18px 0 rgba(0,0,0,.20), 0 18px 38px rgba(2,6,23,.24);
  backdrop-filter: blur(8px);
}
.ops-station strong { color: #0f172a; }
.ops-station small { color: #475569; }
.agent-chip {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.14);
}
.station-desk {
  height: 70px;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 12px 0 rgba(255,255,255,.06), 0 12px 0 rgba(2,6,23,.22);
}
.station-desk::before {
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  border-color: #0f172a;
  box-shadow: 40px 14px 0 -8px rgba(226,232,240,.65), 0 0 18px rgba(34,211,238,.18);
}
.station-desk span { background: #38bdf8; box-shadow: 0 26px 0 -4px rgba(56,189,248,.30); }
.agent-figure,
.office-walker {
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, #0f172a 0 18%, #334155 18% 55%, #111827 55%);
  box-shadow: 0 12px 0 rgba(2,6,23,.22), 0 18px 24px rgba(2,6,23,.18);
}
.agent-figure::before,
.office-walker::before {
  background: linear-gradient(180deg, #f1c6a8, #d89a73);
  box-shadow: 0 0 0 3px #0f172a, 3px 3px 0 rgba(2,6,23,.18);
}
.walker-or { background: linear-gradient(180deg, #0f172a 0 18%, #087443 18% 55%, #111827 55%); }
.walker-dp { background: linear-gradient(180deg, #0f172a 0 18%, #0369a1 18% 55%, #111827 55%); }
.office-path { border-top-color: rgba(148,163,184,.26); }
.station-a, .station-1 { left: 8%; top: 19%; }
.station-c, .station-3 { right: 8%; top: 26%; }
.station-e, .station-5 { left: 40%; bottom: 9%; }

/* Replace wandering avatars with professional station activity indicators */
.office-walker,
.office-path {
  display: none !important;
}
.office-activity {
  position: absolute;
  z-index: 9;
  min-width: 150px;
  padding: 8px 10px 8px 28px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(2,6,23,.78);
  border: 1px solid rgba(148,163,184,.20);
  box-shadow: 0 14px 28px rgba(2,6,23,.22);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  pointer-events: none;
}
.office-activity::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #94a3b8;
}
.office-activity.working::before {
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34,197,94,.12);
  animation: activityPulse 1.25s ease-in-out infinite;
}
.office-activity.waiting::before {
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(228,0,90,.12);
}
.office-activity.idle { opacity: .72; }
.activity-or { left: 13%; top: 52%; }
.activity-qd { right: 10%; top: 56%; }
.activity-dp { left: 43%; bottom: 34%; }
@keyframes activityPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.35); opacity: .72; }
}

/* Process flow drawing */
.flow-card { overflow: hidden; }
.flow-badge {
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(37, 99, 235, .08);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}
.process-flow {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 48px minmax(170px, 1fr) 48px minmax(170px, 1fr) 48px minmax(170px, 1fr) 48px minmax(170px, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 24px 0 18px;
  position: relative;
}
.flow-step {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
  padding: 18px 14px 16px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}
.flow-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #d0d5dd;
}
.flow-step.done::before { background: linear-gradient(90deg, #059669, #10b981); }
.flow-step.active::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.flow-step.waiting { opacity: .72; }
.flow-step.waiting::before { background: #cbd5e1; }
.flow-node {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
  color: #fff;
  background: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
}
.flow-step.done .flow-node { background: #059669; }
.flow-step.active .flow-node { background: #2563eb; }
.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 14px auto 4px;
  background: #eef4ff;
  font-size: 30px;
  box-shadow: inset 0 -10px 18px rgba(15, 23, 42, .06), 0 12px 24px rgba(15, 23, 42, .08);
}
.flow-step.done .flow-icon { background: #ecfdf3; }
.flow-step.active .flow-icon { background: #eff6ff; animation: workPulse 1.4s ease-in-out infinite; }
.flow-step.waiting .flow-icon { background: #f1f5f9; filter: grayscale(.15); }
.flow-step h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}
.flow-step strong {
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.25;
}
.flow-step p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
}
.flow-step small {
  justify-self: center;
  align-self: end;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.flow-step.done small { background: rgba(5, 150, 105, .1); color: #047857; }
.flow-step.active small { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.flow-arrow {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 230px;
}
.flow-arrow span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  position: relative;
}
.flow-arrow span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #94a3b8;
  border-right: 3px solid #94a3b8;
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
}
.approval-step { border-color: rgba(5, 150, 105, .2); }
.flow-return {
  margin-top: 4px;
  border: 1px dashed rgba(37, 99, 235, .28);
  border-radius: 14px;
  background: rgba(37, 99, 235, .06);
  color: #1d4ed8;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}
.legend-dot.done { background: #059669; }
.legend-dot.active { background: #2563eb; }
.legend-dot.waiting { background: #94a3b8; }
@media (max-width: 1180px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-arrow {
    min-height: 34px;
  }
  .flow-arrow span {
    width: 3px;
    height: 34px;
  }
  .flow-arrow span::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }
  .flow-step { min-height: auto; }
}

/* Explicit SVG flow drawing */
.flow-drawing-wrap {
  margin: 18px 0 22px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}
.flow-drawing {
  display: block;
  width: 100%;
  min-width: 980px;
  height: auto;
}
@media (max-width: 760px) {
  .flow-drawing-wrap::before {
    content: "Arraste para o lado para ver o fluxo completo →";
    display: block;
    margin: 0 0 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
  }
}

/* Professional Agents page redesign */
.agents-executive-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 8px 0 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}
.agents-executive-hero h1 {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}
.agents-executive-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #475467;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.professional-pill {
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
}
.agents-mini-flow {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 32px minmax(150px, 1fr) 32px minmax(150px, 1fr) 32px minmax(150px, 1fr) 32px minmax(150px, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 18px;
}
.mini-flow-step {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 15px;
  min-height: 112px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}
.mini-flow-step span {
  width: 34px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 950;
}
.mini-flow-step strong { color: var(--text); font-size: 15px; line-height: 1.25; }
.mini-flow-step small { color: #667085; font-weight: 800; line-height: 1.25; }
.mini-flow-step.human span { background: #fdf2f8; color: #be185d; }
.mini-flow-step.approval { border-color: rgba(5, 150, 105, .24); background: #fbfefc; }
.mini-flow-step.approval span { background: rgba(5, 150, 105, .1); color: #047857; }
.mini-flow-arrow {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 22px;
  font-weight: 950;
}
.agents-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.agent-kpi-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.agent-kpi-card > strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  margin: 4px 0 14px;
  line-height: 1.25;
}
.agent-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.agent-kpi-row span {
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px 8px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.agent-kpi-row b { color: var(--text); font-size: 20px; }
.agent-kpi-row small { color: #667085; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.agents-governance-card { margin-top: 4px; }
.agents-responsibility-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.agent-responsibility-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.agent-order {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}
.agent-responsibility-main { display: grid; gap: 14px; }
.agent-responsibility-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.agent-responsibility-head h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 20px;
}
.agent-responsibility-main > p {
  margin: 0;
  color: #475467;
  line-height: 1.55;
}
.status-badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  text-transform: uppercase;
  background: #f2f4f7;
  color: #667085;
}
.status-badge.working { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.status-badge.waiting { background: rgba(234, 88, 12, .1); color: #c2410c; }
.status-badge.done { background: rgba(5, 150, 105, .1); color: #047857; }
.agent-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.agent-delivery-grid div {
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.agent-delivery-grid small {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.agent-delivery-grid strong {
  color: #344054;
  line-height: 1.35;
  font-size: 13px;
}
.agents-note-card {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.agents-note-card h2 { margin: 4px 0 8px; }
.agents-note-card p:not(.eyebrow) { color: #475467; margin: 0; max-width: 780px; line-height: 1.55; }
@media (max-width: 1180px) {
  .agents-executive-hero,
  .agents-note-card { align-items: flex-start; flex-direction: column; }
  .agents-mini-flow,
  .agents-kpi-grid,
  .agent-delivery-grid { grid-template-columns: 1fr; }
  .mini-flow-arrow { transform: rotate(90deg); min-height: 28px; }
}
@media (max-width: 720px) {
  .agent-responsibility-row { grid-template-columns: 1fr; }
  .agent-responsibility-head { flex-direction: column; }
  .agent-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* Professional office stations */
.agent-office-professional { margin: 22px 0; }
.office-floor-professional {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.office-agent-station {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  min-height: 270px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}
.station-status-line {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #94a3b8;
}
.office-agent-station.working .station-status-line { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.office-agent-station.waiting .station-status-line { background: linear-gradient(90deg, #f97316, #facc15); }
.office-agent-station.free .station-status-line { background: linear-gradient(90deg, #059669, #10b981); }
.station-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.station-number {
  width: 38px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.station-state {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  background: #f2f4f7;
  color: #667085;
}
.office-agent-station.working .station-state { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.office-agent-station.waiting .station-state { background: rgba(249, 115, 22, .12); color: #c2410c; }
.office-agent-station.free .station-state { background: rgba(5, 150, 105, .1); color: #047857; }
.station-visual {
  min-height: 118px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(248,250,252,.92)),
    repeating-linear-gradient(90deg, rgba(148,163,184,.12) 0 1px, transparent 1px 34px);
  border: 1px solid #eef2f7;
  display: grid;
  place-items: center;
  position: relative;
}
.agent-desk {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 150px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(135deg, #334155, #0f172a);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}
.agent-desk i {
  position: absolute;
  left: 18px;
  top: -24px;
  width: 46px;
  height: 30px;
  border-radius: 8px;
  background: #dbeafe;
  border: 3px solid #475569;
}
.agent-desk b {
  position: absolute;
  right: 18px;
  top: -18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e2e8f0;
}
.agent-silhouette {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 62px;
  height: 76px;
  transform: translateX(-50%);
}
.agent-silhouette::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.agent-silhouette span {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 52px;
  height: 44px;
  transform: translateX(-50%);
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
}
.office-agent-station.working .agent-silhouette { animation: workPulse 1.35s ease-in-out infinite; }
.office-agent-station.waiting .agent-silhouette::before { background: #f97316; box-shadow: 0 8px 18px rgba(249,115,22,.22); }
.office-agent-station.waiting .agent-silhouette span { background: linear-gradient(135deg, #fdba74, #ea580c); }
.office-agent-station.free .agent-silhouette::before { background: #059669; box-shadow: 0 8px 18px rgba(5,150,105,.22); }
.office-agent-station.free .agent-silhouette span { background: linear-gradient(135deg, #34d399, #047857); }
.station-info { display: grid; gap: 6px; }
.station-info strong { color: var(--text); font-size: 16px; line-height: 1.25; }
.station-info small { color: #667085; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.station-info p { color: #475467; margin: 0; font-size: 13px; line-height: 1.4; }
@media (max-width: 1040px) { .office-floor-professional { grid-template-columns: 1fr; } }
