:root {
  --paper: #fffbea;
  --paper-deep: #fff2b8;
  --paper-soft: #fffdf2;
  --ink: #171717;
  --muted: #5f5a4b;
  --line: #171717;
  --mint: #74f2c2;
  --mint-soft: #c9ffe8;
  --pink: #ff5e7e;
  --pink-soft: #ffd8e1;
  --yellow: #fff06d;
  --blue: #7bd3ff;
  --blue-soft: #d8f3ff;
  --shadow: 6px 7px 0 #171717;
  --shadow-soft: 4px 5px 0 #171717;
  color-scheme: light;
}

/* Customer service: real conversation inbox layout. */
.enterprise-app .customer-service-page .cs-chat-panel {
  display: block;
  padding: 0;
  overflow: hidden;
}

.enterprise-app .customer-service-page .cs-chat-layout {
  display: grid;
  grid-template-columns: clamp(168px, 23%, 230px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.enterprise-app .customer-service-page .cs-conversation-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border-right: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(248, 251, 255, 0.72);
}

.enterprise-app .customer-service-page .cs-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.enterprise-app .customer-service-page .cs-conversation-head strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 820;
}

.enterprise-app .customer-service-page .cs-conversation-head span {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-conversation-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: none;
}

.enterprise-app .customer-service-page .cs-conversation-list::-webkit-scrollbar {
  display: none;
}

.enterprise-app .customer-service-page .cs-conversation-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.enterprise-app .customer-service-page .cs-conversation-item:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.enterprise-app .customer-service-page .cs-conversation-item.active {
  border-color: #6ea0ff;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.enterprise-app .customer-service-page .cs-conversation-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-0,
.enterprise-app .customer-service-page .cs-avatar.tone-0 {
  background: #eaf2ff;
  color: #2563eb;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-1,
.enterprise-app .customer-service-page .cs-avatar.tone-1 {
  background: #ecfdf5;
  color: #047857;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-2,
.enterprise-app .customer-service-page .cs-avatar.tone-2 {
  background: #fff7ed;
  color: #c2410c;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-3,
.enterprise-app .customer-service-page .cs-avatar.tone-3 {
  background: #f5f3ff;
  color: #6d28d9;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-4,
.enterprise-app .customer-service-page .cs-avatar.tone-4 {
  background: #f0fdfa;
  color: #0f766e;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.tone-5,
.enterprise-app .customer-service-page .cs-avatar.tone-5 {
  background: #fdf2f8;
  color: #be185d;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.image,
.enterprise-app .customer-service-page .cs-avatar.image {
  overflow: hidden;
  padding: 0;
  background: #e2e8f0;
}

.enterprise-app .customer-service-page .cs-conversation-avatar.image img,
.enterprise-app .customer-service-page .cs-avatar.image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.enterprise-app .customer-service-page .cs-conversation-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-conversation-copy strong,
.enterprise-app .customer-service-page .cs-conversation-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-conversation-copy strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 780;
}

.enterprise-app .customer-service-page .cs-conversation-copy span {
  color: #64748b;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-conversation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.enterprise-app .customer-service-page .cs-conversation-meta em {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
}

.enterprise-app .customer-service-page .cs-conversation-meta em.high {
  color: #e11d48;
}

.enterprise-app .customer-service-page .cs-conversation-empty {
  display: grid;
  gap: 5px;
  padding: 14px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
}

.enterprise-app .customer-service-page .cs-conversation-empty strong {
  color: #0f172a;
  font-size: 12px;
}

.enterprise-app .customer-service-page .cs-conversation-empty span {
  font-size: 11px;
  line-height: 1.55;
}

.enterprise-app .customer-service-page .cs-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.enterprise-app .customer-service-page .cs-chat-main .cs-chat-head,
.enterprise-app .customer-service-page .cs-chat-main .cs-escalation-banner,
.enterprise-app .customer-service-page .cs-chat-main .cs-composer {
  flex: 0 0 auto;
}

.enterprise-app .customer-service-page .cs-chat-main .cs-chat-stream {
  flex: 1 1 auto;
  min-height: 0;
}

.enterprise-app .customer-service-page .cs-message p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.enterprise-app .customer-service-page .cs-message-row.customer .cs-message {
  min-width: 180px;
  max-width: min(72%, 520px);
}

@media (max-width: 1500px) {
  .enterprise-app .customer-service-page .cs-chat-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .enterprise-app .customer-service-page .cs-conversation-panel {
    padding: 10px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image:
    radial-gradient(#ded4a3 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 234, 0.9));
  background-size: 12px 12px, 100% 100%;
  color: var(--ink);
  font-family:
    ui-rounded, "Nunito", "Arial Rounded MT Bold", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 16px;
}

.boot-logo {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.14));
}

.boot-mark,
.brand-mark {
  display: grid;
  width: 48px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  font-weight: 950;
}

.layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100vh;
  gap: 8px;
  padding: 6px;
}

.layout.sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 6px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 12px);
  padding: 8px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 251, 234, 0.94)),
    var(--paper-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: padding 180ms ease;
}

.sidebar-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sidebar-toggle:hover {
  background: var(--mint);
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(1px, 1px);
}

.sidebar.collapsed {
  padding: 46px 8px 12px;
}

.sidebar.collapsed .brand {
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.sidebar.collapsed .brand > div:last-child,
.sidebar.collapsed .side-note,
.sidebar.collapsed .nav button span {
  display: none;
}

.sidebar.collapsed .brand-mark {
  width: 42px;
  height: 34px;
}

.sidebar.collapsed .nav button {
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
}

.sidebar.collapsed .nav button small {
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}

.brand h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  overflow-y: hidden;
  padding: 2px 2px 4px 0;
}

.nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 31px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--muted);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav button:nth-child(2n) {
  transform: rotate(-0.45deg);
}

.nav button:nth-child(2n + 1) {
  transform: rotate(0.45deg);
}

.nav button:hover,
.nav button.active {
  background: var(--yellow);
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.nav button span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.nav button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-note {
  position: static;
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  box-shadow: var(--shadow-soft);
  transform: rotate(-0.6deg);
}

.side-note p {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.side-note strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.main {
  min-width: 0;
  padding: 0 0 14px;
}

.main-content {
  min-width: 0;
  min-height: 0;
}

.topbar {
  position: sticky;
  top: 6px;
  z-index: 35;
  display: block;
  margin-bottom: 8px;
  padding: 11px 18px 11px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(#ded4a3 1px, transparent 1px),
    linear-gradient(180deg, #fffef4, #fff5c5);
  background-size: 12px 12px, 100% 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar::before {
  content: "LAMBOO WORKSPACE";
  position: absolute;
  top: 12px;
  left: 63%;
  padding: 4px 12px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  transform: translateX(-50%) rotate(-2deg);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 36px;
  height: 10px;
  border: 2px solid var(--line);
  background: var(--mint);
  box-shadow: 2px 3px 0 var(--ink);
}

.canvas-mode-button {
  position: absolute;
  right: 82px;
  bottom: 12px;
  z-index: 2;
  min-height: 34px;
  padding: 0 12px;
}

.canvas-mode-button.active {
  background: var(--yellow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 23px;
  margin: 10px 0 6px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.topbar h2 {
  display: inline-block;
  max-width: calc(100% - 300px);
  margin: 0;
  padding: 0 10px 2px;
  background: var(--yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--ink);
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 950;
  line-height: 1.08;
  text-shadow: 2px 2px 0 #fff;
  word-break: keep-all;
}

.topbar p {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.top-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 220px;
}

@media (min-width: 1101px) {
  body {
    overflow: hidden;
  }

  .app-shell,
  .layout {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 12px);
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  .topbar {
    position: relative;
    top: auto;
    min-height: 112px;
  }

  .main-content {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }

  .main:has(.ceo-workbench) .main-content,
  .main:has(.runs-page) .main-content {
    overflow: hidden;
  }

  .main:has(.ceo-workbench) .ceo-workbench,
  .main:has(.runs-page) .runs-page {
    height: 100%;
  }
}

.btn {
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  background: var(--yellow);
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.btn.primary {
  background: var(--pink);
  color: #fff;
}

.btn.primary:hover {
  background: #ff3f67;
}

.btn.warn {
  background: var(--yellow);
  color: var(--ink);
}

.btn.success {
  background: var(--mint);
  color: var(--ink);
}

.btn.success:hover {
  background: #5de8b3;
}

.btn.small {
  min-height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.metric {
  min-height: 82px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric:nth-child(1),
.metric:nth-child(4) {
  background: var(--pink-soft);
}

.metric:nth-child(2),
.metric:nth-child(5) {
  background: var(--blue-soft);
}

.metric:nth-child(3),
.metric:nth-child(6) {
  background: var(--mint-soft);
}

.metric span {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
}

.metric small {
  color: var(--muted);
  font-weight: 800;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: 18px;
}

.ops-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 18px;
}

.delivery-list,
.tool-run-list,
.capability-list {
  display: grid;
  gap: 12px;
}

.delivery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 3px 4px 0 var(--ink);
}

.delivery-row:nth-child(2n) {
  background: var(--mint-soft);
}

.delivery-row-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.delivery-row-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.delivery-row-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.delivery-row p,
.inbox-row p,
.tool-run-card p,
.capability-card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

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

.delivery-link-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.delivery-link-grid small,
.settings-section h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.delivery-link-grid a,
.delivery-link-grid span,
.delivery-row code {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-row code {
  display: block;
  padding: 8px 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.deployment-plan {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff8bf;
  box-shadow: 3px 4px 0 var(--ink);
}

.deployment-plan.ready {
  background: var(--mint-soft);
}

.deployment-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deployment-plan-head > div {
  display: grid;
  gap: 7px;
}

.deployment-plan-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}

.deployment-plan p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

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

.deployment-plan-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.deployment-plan-grid small,
.deployment-missing strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.deployment-plan-grid a,
.deployment-plan-grid span {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deployment-missing {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
}

.deployment-missing > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.deployment-missing span {
  padding: 5px 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.deployment-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.delivery-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tool-run-card,
.capability-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.tool-run-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-width: 0;
}

.watch-run-stack .tool-run-card {
  grid-template-columns: minmax(0, 1fr);
}

.watch-run-stack .tool-run-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.watch-run-stack .tool-run-head strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.35;
}

.watch-run-stack .tool-run-card .badge {
  justify-self: end;
  white-space: nowrap;
}

.watch-run-stack .row-meta {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.source-ready-note {
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
}

.source-ready-note.ready {
  background: var(--mint-soft);
}

.source-ready-note.blocked {
  background: var(--pink-soft);
}

.tool-run-card p {
  grid-column: 1 / -1;
  color: var(--muted);
}

.ceo-reply-card,
.watch-confirm-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
  box-shadow: 3px 4px 0 var(--ink);
}

.ceo-reply-card {
  margin-top: 12px;
}

.ceo-reply-card.inline {
  margin-top: 0;
  box-shadow: none;
}

.ceo-reply-card p,
.watch-confirm-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.55;
}

.mission-plan-preview,
.mission-plan-card {
  min-width: 0;
}

.mission-deliverable-overview {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--yellow-soft);
  box-shadow: 4px 5px 0 var(--ink);
}

.mission-deliverable-actions {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
  box-shadow: 4px 5px 0 var(--ink);
}

.mission-deliverable-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  min-width: 0;
}

.mission-deliverable-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.mission-deliverable-action-card > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mission-deliverable-action-card strong,
.mission-deliverable-action-card p,
.mission-deliverable-action-card small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.mission-deliverable-action-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.mission-deliverable-action-card p {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.mission-deliverable-action-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ceo-deliverable-reply {
  margin: 0;
  font-weight: 950;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mission-deliverable-list,
.mission-task-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  min-width: 0;
}

.mission-deliverable-list span,
.mission-task-list span {
  min-width: 0;
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fffef5;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mission-deliverable-list b,
.mission-task-list b,
.mission-deliverable-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.mission-plan-understanding {
  margin: 0;
  font-weight: 950;
  line-height: 1.5;
}

.mission-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mission-plan-grid span,
.mission-plan-deliverables span,
.mission-plan-list span {
  min-width: 0;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mission-plan-grid b,
.mission-plan-deliverables b,
.mission-plan-list b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.mission-plan-deliverables,
.mission-plan-list,
.mission-plan-issues {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mission-plan-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow-soft);
  box-shadow: 3px 4px 0 var(--ink);
}

.mission-plan-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mission-plan-card-head strong,
.mission-plan-card p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ceo-brain-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(#ded4a3 1px, transparent 1px),
    linear-gradient(180deg, #fffef4, #fff8d8);
  background-size: 12px 12px, 100% 100%;
  box-shadow: var(--shadow);
}

.ceo-brain-head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ceo-brain-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.ceo-brain-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-brain-head small,
.ceo-brain-request span,
.ceo-brain-understanding b,
.ceo-brain-reply b,
.ceo-brain-grid b,
.ceo-brain-blockers b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ceo-brain-request,
.ceo-brain-reply,
.ceo-brain-understanding,
.ceo-brain-blockers {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.ceo-brain-reply {
  background: var(--mint-soft);
}

.ceo-brain-understanding {
  border-style: dashed;
  box-shadow: none;
}

.ceo-brain-blockers {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--pink-soft);
}

.ceo-brain-request p,
.ceo-brain-reply p,
.ceo-brain-understanding p,
.ceo-brain-blockers p {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ceo-brain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.ceo-brain-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.ceo-brain-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ceo-brain-grid span:first-of-type {
  border-top: 0;
}

.ceo-brain-grid strong {
  color: var(--hot);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ceo-brain-grid small,
.ceo-brain-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.4;
}

.watch-artifact-board .artifact-board-head {
  background: var(--mint-soft);
}

.capability-card.ready {
  background: var(--mint-soft);
}

.capability-card.blocked {
  background: #fff8bf;
}

.capability-card strong {
  font-size: 15px;
  font-weight: 950;
}

.data-source-center {
  gap: 12px;
}

.data-source-head,
.data-source-card,
.data-source-meta,
.data-source-actions,
.data-source-import,
.profile-action-row {
  min-width: 0;
}

.data-source-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.data-source-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.data-source-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff8bf;
  box-shadow: 3px 4px 0 var(--ink);
}

.data-source-platform-icon {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.data-source-platform-icon svg {
  width: 30px;
  height: 30px;
}

.data-source-card.connected {
  background: var(--mint-soft);
}

.data-source-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.data-source-main strong {
  font-size: 17px;
  font-weight: 950;
}

.data-source-main p,
.data-source-import label,
.data-source-import span {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.data-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.data-source-meta span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-endpoint {
  display: block;
  max-width: 100%;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.source-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.source-wizard-steps span,
.monitorable-list span {
  min-width: 0;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.source-wizard-steps span.done {
  background: var(--mint);
}

.monitorable-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.monitorable-list strong {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 950;
}

.data-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.data-source-import {
  display: grid;
  gap: 8px;
}

.data-source-import textarea {
  min-height: 116px;
  resize: vertical;
}

.inbox-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-top: 2px solid var(--line);
}

.inbox-row:first-child {
  border-top: 0;
}

.inbox-row strong {
  font-size: 15px;
  font-weight: 950;
}

.inbox-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

.watch-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.watch-list.compact {
  padding: 0;
}

.watch-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
  box-shadow: 3px 4px 0 var(--ink);
}

.watch-card.paused {
  background: #fff8bf;
}

.watch-card.selected {
  outline: 3px dashed var(--pink);
  outline-offset: 3px;
}

.watch-card-head,
.watch-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.watch-card h4,
.watch-run-stack h4 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.watch-card p,
.watch-report p,
.watch-report-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.55;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.watch-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.watch-meta-grid span,
.watch-next-actions span {
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.watch-report {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.watch-delivery-strip,
.watch-failure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fff8bf;
  font-size: 12px;
  font-weight: 900;
}

.watch-delivery-strip.ok {
  background: var(--mint-soft);
}

.watch-delivery-strip.danger,
.watch-failure-strip {
  background: var(--pink-soft);
}

.watch-delivery-strip span,
.watch-failure-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-report.empty-report {
  color: var(--muted);
  font-weight: 900;
}

.watch-report-items {
  display: grid;
  gap: 8px;
}

.watch-report-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.watch-report-item strong {
  font-weight: 950;
}

.watch-report-item small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 850;
}

.watch-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-builder {
  display: grid;
  gap: 16px;
}

.watch-dashboard {
  min-width: 0;
}

.watch-side-list {
  position: sticky;
  top: 16px;
}

.watch-empty-dashboard,
.watch-visual-board {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.watch-empty-dashboard {
  min-height: 420px;
  align-content: center;
  border-top: 2px solid var(--line);
  text-align: left;
}

.watch-empty-dashboard h3,
.watch-hero-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.15;
}

.watch-empty-dashboard p,
.watch-hero-card p {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.6;
}

.watch-example-grid,
.watch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.watch-example-grid span,
.watch-kpi-grid > div {
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-weight: 900;
}

.industry-watch-blueprint {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.13) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
}

.industry-watch-head {
  display: grid;
  gap: 8px;
}

.industry-watch-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.industry-watch-head p {
  max-width: 860px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.industry-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.industry-template-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid #d7e3f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.08);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.industry-template-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.16);
}

.industry-template-card strong {
  font-size: 16px;
  font-weight: 850;
}

.industry-template-card span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
}

.industry-template-card small {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.industry-watch-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 12px;
}

.industry-watch-meta article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.industry-watch-meta h4 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 13px;
  font-weight: 850;
}

.industry-source-list,
.industry-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-source-list span,
.industry-field-list span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.industry-source-list span {
  display: grid;
  gap: 2px;
  border-radius: 14px;
}

.industry-source-list small {
  color: #667085;
  font-size: 11px;
}

@media (max-width: 980px) {
  .industry-watch-meta {
    grid-template-columns: 1fr;
  }
}

.watch-kpi-grid strong,
.watch-kpi-grid span {
  display: block;
}

.watch-kpi-grid strong {
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.watch-kpi-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.watch-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
  box-shadow: var(--shadow);
}

.watch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.watch-chart-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.watch-pie {
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  justify-self: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--paper-soft) 0 42%, transparent 43%),
    conic-gradient(var(--pink) 0 var(--high), var(--yellow) var(--high) calc(var(--high) + var(--medium)), var(--mint) 0);
  box-shadow: var(--shadow);
}

.watch-pie strong,
.watch-pie span {
  grid-area: 1 / 1;
}

.watch-pie strong {
  transform: translateY(-8px);
  font-size: 34px;
  font-weight: 950;
}

.watch-pie span {
  transform: translateY(22px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.watch-bars {
  display: grid;
  gap: 10px;
}

.watch-bar {
  display: grid;
  gap: 6px;
}

.watch-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 950;
}

.watch-bar i {
  display: block;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--bar-color) 0 var(--value), #fff var(--value) 100%);
  box-shadow: 2px 2px 0 var(--ink);
}

.watch-bar.danger {
  --bar-color: var(--pink);
}

.watch-bar.warn {
  --bar-color: var(--yellow);
}

.watch-bar.ok {
  --bar-color: var(--mint);
}

.watch-run-stack {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}

.watch-run-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.watch-run-history-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.watch-run-row {
  display: grid;
  grid-template-columns: auto 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.watch-run-row span,
.watch-run-row strong,
.watch-run-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-run-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 850;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.settings-section {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.profile-config-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff8bf;
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.profile-config-card.ready {
  background: var(--mint-soft);
}

.profile-config-icon {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92) 0 18%, transparent 19%),
    #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.profile-config-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.profile-config-icon svg.brand-icon,
.data-source-platform-icon svg.brand-icon {
  fill: initial;
  stroke: initial;
}

.profile-config-icon .douyin-mark {
  filter: drop-shadow(2px 0 0 #39f5d4) drop-shadow(-1px 1px 0 #ff3f67);
}

.profile-config-card:hover .profile-config-icon,
.data-source-card:hover .data-source-platform-icon {
  background: var(--mint-soft);
}

.profile-config-card strong,
.profile-config-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-config-card strong {
  font-size: 16px;
  font-weight: 950;
}

.profile-config-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-config-card em {
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.profile-config-page {
  display: none;
}

.profile-config-page.active {
  display: grid;
}

.settings-section h4 {
  margin: 0;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.ceo-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 14px;
  min-height: 0;
}

.ceo-main-column {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 16px;
}

.ceo-command-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 16px;
}

.ceo-command-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.ceo-command-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
}

.ceo-command-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.6;
}

.ceo-command-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
}

.ceo-command-form .mission-input {
  min-height: 92px;
}

.ceo-inspector .ceo-command-strip {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 9px;
  overflow: visible;
}

.ceo-inspector .ceo-command-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: start;
  gap: 8px;
}

.ceo-inspector .ceo-command-copy h3 {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-inspector .ceo-command-copy p {
  display: none;
}

.ceo-inspector .ceo-command-form .mission-input {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 8px 10px;
  resize: vertical;
}

.ceo-inspector .ceo-form-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  font-size: 11px;
}

.ceo-form-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
}

.ceo-template-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11px;
  font-weight: 950;
}

.ceo-template-picker .field {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.template-chip {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-chip:hover {
  background: var(--mint-soft);
}

.ceo-blueprint-drawer {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper-soft);
}

.ceo-blueprint-drawer.collapsed {
  padding: 8px 10px;
}

.ceo-blueprint-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ceo-blueprint-drawer-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.ceo-blueprint-drawer-head strong,
.ceo-blueprint-drawer-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-blueprint-drawer-head strong {
  font-size: 15px;
  font-weight: 950;
}

.ceo-blueprint-drawer-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ceo-context-line {
  display: -webkit-box;
  overflow: hidden;
  padding: 6px 8px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mission-summary-panel,
.workflow-canvas,
.artifact-board,
.inspector-panel {
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.mission-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  padding: 16px;
  background:
    radial-gradient(#ded4a3 1px, transparent 1px),
    linear-gradient(180deg, #fffef4, #fff8d8);
  background-size: 12px 12px, 100% 100%;
}

.mission-summary-main {
  display: grid;
  gap: 10px;
}

.mission-summary-main h3 {
  display: inline;
  width: fit-content;
  margin: 0;
  padding: 0 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.25;
}

.mission-summary-main p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.65;
}

.mission-current-request {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.mission-current-request.active {
  border-style: solid;
  background: var(--mint-soft);
  box-shadow: 2px 3px 0 var(--ink);
}

.mission-current-request span,
.mission-current-request small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.mission-current-request strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.45;
}

.mission-summary-side {
  display: grid;
  gap: 10px;
}

.mission-summary-side > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.mission-summary-side strong,
.workflow-canvas-head p,
.artifact-board-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mission-summary-side p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.ceo-work-orders {
  max-height: 210px;
  overflow: auto;
}

.ceo-work-orders span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ceo-work-orders span:first-of-type {
  border-top: 0;
}

.ceo-work-orders b {
  color: var(--hot);
  font-size: 12px;
  text-transform: uppercase;
}

.workflow-canvas {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--mint-soft);
  overflow: hidden;
}

.workflow-canvas-head,
.artifact-board-head,
.inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workflow-canvas-head h3,
.artifact-board-head h3,
.inspector-head h3 {
  display: inline;
  margin: 0;
  padding: 0 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.workflow-canvas-head p,
.artifact-board-head p {
  margin: 8px 0 0;
  text-transform: none;
}

.agent-flow {
  display: grid;
  grid-auto-columns: minmax(168px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 10px;
}

.agent-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.agent-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 950;
  transform: translateY(-50%);
}

.ceo-node {
  background: var(--yellow);
}

.return-node {
  background: var(--pink-soft);
}

.worker-node:nth-child(2n) {
  background: var(--blue-soft);
}

.worker-node-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.agent-node strong {
  font-weight: 950;
  line-height: 1.25;
}

.agent-node small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agent-node p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.status-badge.done {
  background: var(--mint);
}

.status-badge.waiting {
  background: var(--yellow);
}

.status-badge.running {
  background: var(--blue);
}

.worker-run-timer {
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border: 2px dashed var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.status-time {
  margin-left: 2px;
  padding-left: 6px;
  border-left: 2px solid rgba(23, 23, 23, 0.55);
  font-variant-numeric: tabular-nums;
}

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-top-color: transparent;
  border-radius: 999px;
  animation: spinner-rotate 760ms linear infinite;
}

.worker-node.waiting {
  background: #fff8bf;
}

.worker-node.done {
  background: var(--mint-soft);
}

.worker-node.running {
  background: var(--blue-soft);
  animation: node-working 1250ms ease-in-out infinite;
}

.worker-node.running::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--pink);
  border-radius: 11px;
  pointer-events: none;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes node-working {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.artifact-board {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.delivery-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff8bf;
  box-shadow: 4px 5px 0 var(--ink);
}

.delivery-launch.ready {
  background: var(--mint-soft);
}

.delivery-launch.fresh {
  animation: artifact-working 1200ms ease-in-out 2;
}

.delivery-launch-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.delivery-launch-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-launch h4 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

.delivery-launch p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.delivery-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.delivery-file-row span {
  padding: 5px 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

.delivery-time-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.delivery-time-strip span {
  padding: 4px 8px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.delivery-launch code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-video-preview {
  display: block;
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f172a;
  object-fit: contain;
}

.video-delivery-panel {
  align-items: start;
}

.video-modal {
  width: min(980px, calc(100vw - 48px));
}

.video-modal-body {
  padding: 16px;
  background: #0f172a;
}

.video-modal-player {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.delivery-launch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(#171717 1px, transparent 1px),
    rgba(23, 23, 23, 0.32);
  background-size: 12px 12px, 100% 100%;
}

.readme-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(82vh, 780px);
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  box-shadow: 8px 9px 0 var(--ink);
}

.readme-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 3px solid var(--line);
  background: var(--paper-deep);
}

.readme-modal-head h3 {
  display: inline;
  margin: 8px 0 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1.18;
}

.readme-modal-head p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readme-modal-body {
  min-height: 220px;
  overflow: auto;
  padding: 18px;
  background:
    radial-gradient(#ded4a3 1px, transparent 1px),
    var(--paper-soft);
  background-size: 12px 12px, 100% 100%;
}

.skill-config-modal {
  width: min(760px, 100%);
}

.skill-config-body {
  display: grid;
  gap: 16px;
}

.skill-config-help,
.skill-config-built-in,
.skill-config-status {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.skill-config-help strong,
.skill-config-built-in strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.skill-config-help p,
.skill-config-built-in p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.skill-config-links,
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-config-field {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.skill-config-field:has(textarea) {
  grid-column: 1 / -1;
}

.skill-config-input {
  width: 100%;
  min-width: 0;
}

.skill-config-status {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.skill-config-status.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.skill-config-status.warn {
  border-color: #dbe3ef;
  background: #fff;
  color: #475467;
}

.skill-config-status:not(:has(.spinner)) {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .skill-config-fields {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-30: production guardrails for CEO worker cards and drawer runtime refreshes. */
.enterprise-app .ceo-mission-desk .worker-task-card {
  min-width: 0 !important;
  overflow: visible !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding-right: 88px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head .enterprise-status {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
  max-width: 84px !important;
  min-width: 48px !important;
  height: 22px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  line-height: 20px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.enterprise-app .ceo-ops-popover:not(.entering):not(.closing) {
  animation: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.enterprise-app .graphic-preview-card {
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  min-height: 150px;
  margin: 12px 0;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(226, 232, 240, 0.45) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 232, 240, 0.45) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, 0.45) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, 0.45) 75%),
    #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.enterprise-app .graphic-preview-card img {
  max-width: 132px;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.16));
}

.readme-loading,
.readme-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 950;
}

.readme-error {
  background: var(--pink-soft);
}

.readme-markdown {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.62;
}

.readme-markdown h2,
.readme-markdown h3,
.readme-markdown h4 {
  margin: 10px 0 2px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.readme-markdown h2 {
  display: inline;
  width: fit-content;
  padding: 0 4px;
  background: var(--yellow);
  font-size: 24px;
}

.readme-markdown h3 {
  font-size: 20px;
}

.readme-markdown h4 {
  font-size: 17px;
}

.readme-markdown p,
.readme-markdown ul {
  margin: 0;
}

.readme-markdown ul {
  padding-left: 22px;
}

.readme-markdown li {
  margin: 4px 0;
}

.readme-markdown pre {
  max-width: 100%;
  margin: 4px 0;
  overflow: auto;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #161616;
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--mint);
  font-size: 13px;
  line-height: 1.5;
}

.readme-markdown code {
  font-family: "Cascadia Mono", Consolas, monospace;
}

.manifest-view {
  display: grid;
  gap: 14px;
}

.manifest-grid {
  display: grid;
  gap: 10px;
}

.manifest-grid > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.manifest-grid strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.manifest-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.manifest-raw {
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}

.manifest-raw summary {
  width: fit-content;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 950;
}

.manifest-raw pre {
  max-width: 100%;
  margin: 14px 0 0;
  overflow: auto;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #161616;
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--mint);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

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

.artifact-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  min-height: 220px;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.artifact-card.design-card {
  background: var(--mint-soft);
}

.artifact-card.code-card {
  background: var(--paper-soft);
}

.artifact-card.qa-card {
  background: var(--blue-soft);
}

.artifact-card.cs-card {
  background: var(--pink-soft);
}

.artifact-card.tool-artifact-card {
  background: var(--paper-deep);
}

.artifact-card.empty-artifact {
  min-height: 160px;
  background: rgba(255, 255, 255, 0.76);
}

.artifact-card.empty-artifact.waiting {
  background: #fff8bf;
}

.artifact-card.empty-artifact.running {
  position: relative;
  overflow: hidden;
  background: var(--blue-soft);
  animation: artifact-working 1200ms ease-in-out infinite;
}

.artifact-card.empty-artifact.running::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.56) 46%, transparent 76%);
  transform: translateX(-110%);
  animation: artifact-sweep 1500ms ease-in-out infinite;
  pointer-events: none;
}

.artifact-loading {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.run-timer-line {
  width: fit-content;
  padding: 6px 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.artifact-loading span {
  display: block;
  width: 100%;
  height: 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--mint) 0 42%, #fff 42% 62%, var(--mint) 62% 100%);
  background-size: 220% 100%;
  box-shadow: 2px 3px 0 var(--ink);
  animation: loading-stripe 900ms linear infinite;
}

.artifact-loading span:nth-child(2) {
  width: 76%;
  animation-delay: 120ms;
}

.artifact-loading span:nth-child(3) {
  width: 54%;
  animation-delay: 240ms;
}

@keyframes artifact-working {
  0%,
  100% {
    box-shadow: 3px 4px 0 var(--ink);
  }

  50% {
    box-shadow: 5px 6px 0 var(--ink);
  }
}

@keyframes artifact-sweep {
  to {
    transform: translateX(110%);
  }
}

@keyframes loading-stripe {
  to {
    background-position: -220% 0;
  }
}

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

.artifact-card h4 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}

.artifact-time {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.artifact-count {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.artifact-chip-row,
.artifact-mini-grid,
.artifact-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-chip-row span,
.artifact-mini-grid span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.artifact-detail {
  border-top: 2px dashed var(--line);
  padding-top: 9px;
}

.artifact-detail summary {
  width: fit-content;
  min-height: 32px;
  padding: 5px 10px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.artifact-detail[open] summary {
  margin-bottom: 10px;
  background: var(--yellow);
}

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

.compact-wireframes .wireframe-screen {
  min-height: 150px;
}

.compact-table .api-route {
  grid-template-columns: 66px minmax(120px, 0.6fr) minmax(0, 1fr);
}

.compact-tests {
  grid-template-columns: 1fr;
}

.cs-signal-grid.compact-signals {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.cs-signal-grid.compact-signals .cs-signal-card {
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 9px;
}

.cs-signal-grid.compact-signals .cs-signal-card .badge {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-signal-grid.compact-signals .cs-signal-card strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(16px, 3vw, 21px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cs-signal-grid.compact-signals .cs-signal-card p {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-recs {
  grid-template-columns: 1fr;
}

.agent-canvas-shell {
  display: grid;
  min-height: 0;
  gap: 8px;
}

.agent-stage-canvas {
  position: relative;
  min-height: clamp(430px, calc(100vh - 292px), 620px);
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(#dfd3a2 1px, transparent 1px),
    linear-gradient(180deg, #fffdf3 0%, #d6fff0 48%, #fff5c9 100%);
  background-size: 14px 14px, 100% 100%;
  box-shadow: var(--shadow);
}

.agent-stage-canvas::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(35, 35, 35, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.canvas-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 3px 4px 0 var(--ink);
  font-weight: 950;
}

.canvas-meta-strip strong,
.canvas-meta-strip span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-meta-strip strong {
  flex: 1 1 220px;
}

.agent-canvas-wires {
  position: absolute;
  inset: 26px 24px 64px;
  z-index: 1;
  width: calc(100% - 48px);
  height: calc(100% - 90px);
  overflow: visible;
  filter: url("#wireGlow");
}

.agent-canvas-line {
  fill: none;
  stroke: var(--pink);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  opacity: 0.72;
  animation: wireFlow 1.7s linear infinite;
}

.agent-canvas-line.waiting {
  stroke: var(--yellow);
  opacity: 0.55;
  animation-duration: 2.8s;
}

.agent-canvas-line.done {
  stroke: var(--mint);
  opacity: 0.82;
}

.agent-canvas-line.running {
  stroke: #52c9ff;
  stroke-width: 1.2;
  opacity: 1;
  animation-duration: 0.9s;
}

.agent-canvas-pulse {
  fill: var(--pink);
  opacity: 0.85;
}

.agent-canvas-pulse.waiting {
  fill: var(--yellow);
  opacity: 0.5;
}

.agent-canvas-pulse.done {
  fill: var(--mint);
}

.agent-canvas-pulse.running {
  fill: #52c9ff;
}

.agent-canvas-time {
  fill: var(--ink);
  font-size: 3.4px;
  font-weight: 950;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 0.9px;
  text-anchor: middle;
}

.agent-avatar {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 154px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.agent-avatar-sprite {
  display: block;
  width: 112px;
  height: 142px;
  margin: 0;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 600% 100%;
  image-rendering: auto;
  filter: drop-shadow(5px 8px 0 rgba(0, 0, 0, 0.88));
}

.agent-avatar-sprite.ceo {
  background-image: url("/assets/agents/ceo-work.png");
}

.agent-avatar-sprite.design {
  background-image: url("/assets/agents/design-work.png");
}

.agent-avatar-sprite.code {
  background-image: url("/assets/agents/code-work.png");
}

.agent-avatar-sprite.qa {
  background-image: url("/assets/agents/qa-work.png");
}

.agent-avatar-sprite.cs {
  background-image: url("/assets/agents/cs-work.png");
}

.agent-avatar strong {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.agent-avatar > span:not(.agent-avatar-sprite),
.agent-avatar em {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-avatar em {
  padding: 1px 7px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}

.agent-avatar.running {
  animation: none;
}

.agent-avatar.running .agent-avatar-sprite {
  animation: agentSpriteWork 1.08s steps(5, end) infinite;
}

.agent-avatar.done .agent-avatar-sprite {
  background-position: 100% 0;
}

.agent-avatar.done em {
  background: var(--mint);
}

.agent-avatar-ceo {
  top: 24%;
  left: 50%;
}

.agent-avatar-ceo .agent-avatar-sprite {
  width: 126px;
  height: 158px;
  animation: agentSpriteLead 2.4s steps(5, end) infinite;
}

.ceo-floating-assistant {
  position: fixed;
  z-index: 72;
  display: grid;
  grid-template-columns: 76px minmax(180px, 310px);
  align-items: end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
  user-select: none;
}

.ceo-floating-avatar {
  display: grid;
  width: 76px;
  height: 96px;
  place-items: end center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: grab;
}

.ceo-floating-avatar:active {
  cursor: grabbing;
}

.ceo-floating-avatar .agent-avatar-sprite {
  width: 72px;
  height: 92px;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.18));
  animation: agentSpriteLead 2.1s steps(5, end) infinite;
}

.ceo-floating-assistant.thinking .ceo-floating-avatar .agent-avatar-sprite {
  animation: agentSpriteWork 0.92s steps(5, end) infinite;
}

.ceo-floating-bubble {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(30, 41, 59, 0.14);
  color: #0f172a;
  backdrop-filter: blur(14px);
}

.ceo-floating-bubble::before {
  position: absolute;
  left: -8px;
  bottom: 28px;
  width: 16px;
  height: 16px;
  border-left: 1px solid #dbe4f0;
  border-bottom: 1px solid #dbe4f0;
  background: rgba(255, 255, 255, 0.96);
  content: "";
  transform: rotate(45deg);
}

.ceo-floating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid #eef2f7;
}

.ceo-floating-head strong {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.ceo-floating-head span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.ceo-floating-assistant.thinking .ceo-floating-head span {
  background: #dbeafe;
  color: #1d4ed8;
}

.ceo-floating-bubble p {
  max-height: 210px;
  margin: 0;
  overflow: auto;
  padding: 10px 14px 14px;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.ceo-floating-capability {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 12px 12px;
  padding: 10px 11px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
  color: #1e3a8a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ceo-floating-capability strong {
  display: block;
  color: #172554;
  font-size: 12px;
  line-height: 1.35;
}

.ceo-floating-capability small {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.capability-live-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12), 0 0 16px rgba(37, 99, 235, 0.35);
  animation: capabilityPulse 1.4s ease-in-out infinite;
}

.ceo-floating-capability.ready {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.94));
}

.ceo-floating-capability.ready .capability-live-dot {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12), 0 0 16px rgba(34, 197, 94, 0.3);
  animation: none;
}

.ceo-floating-capability.blocked,
.ceo-floating-capability.warning {
  border-color: #fecdd3;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.94));
}

.ceo-floating-capability.blocked .capability-live-dot,
.ceo-floating-capability.warning .capability-live-dot {
  background: #f43f5e;
  box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.12), 0 0 16px rgba(244, 63, 94, 0.28);
  animation: none;
}

.ceo-floating-approval {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(37, 99, 235, 0.08);
}

.ceo-floating-approval strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.ceo-floating-approval small {
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
}

.ceo-floating-approval-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ceo-approval-decision {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ceo-approval-decision:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.ceo-approval-decision.approve {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.ceo-approval-decision.reject {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.runtime-approval-card {
  margin-top: 16px;
}

.runtime-approval-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.runtime-approval-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: flex-start;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.runtime-approval-option:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.1);
}

.runtime-approval-option.selected {
  border-color: rgba(37, 99, 235, 0.64);
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.16);
}

.runtime-approval-option:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.64);
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.16);
}

.runtime-approval-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.runtime-approval-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 12px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 22px rgba(15, 23, 42, 0.06);
  font-size: 15px;
  font-weight: 900;
}

.runtime-approval-option strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.runtime-approval-option small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.runtime-approval-option em {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #2563eb;
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .runtime-approval-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .runtime-approval-options {
    grid-template-columns: 1fr;
  }
}

@keyframes capabilityPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.worker-avatar.design {
  top: 72%;
  left: 17%;
}

.worker-avatar.code {
  top: 75%;
  left: 39%;
}

.worker-avatar.qa {
  top: 75%;
  left: 61%;
}

.worker-avatar.cs {
  top: 72%;
  left: 83%;
}

.canvas-delivery-dock {
  position: absolute;
  top: 24%;
  left: calc(50% + 132px);
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 3px 4px 0 var(--ink);
}

.canvas-delivery-dock strong {
  font-size: 13px;
  font-weight: 950;
}

.canvas-delivery-dock.waiting {
  background: rgba(255, 247, 186, 0.9);
}

.canvas-delivery-dock.ready {
  background: rgba(190, 255, 226, 0.92);
}

.canvas-command-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
}

.canvas-command-note span {
  padding: 2px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--mint);
}

.canvas-command-note strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes wireFlow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes agentSpriteWork {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}

@keyframes agentSpriteLead {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.ceo-inspector {
  position: sticky;
  top: 10px;
  display: grid;
  min-height: 0;
  gap: 8px;
}

.inspector-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  background: var(--paper-soft);
}

.ceo-inspector .inspector-panel {
  gap: 8px;
  padding: 9px;
}

.ceo-inspector .inspector-head {
  align-items: center;
  gap: 8px;
}

.ceo-inspector .inspector-head h3 {
  font-size: 17px;
}

.ceo-inspector .inspector-head .btn.small {
  min-height: 28px;
  padding: 0 8px;
}

@media (min-width: 1101px) {
  body:has(.ceo-workbench) {
    overflow: hidden;
  }

  body:has(.ceo-workbench) .app-shell,
  body:has(.ceo-workbench) .layout {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .main:has(.ceo-workbench) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 20px);
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  .main:has(.ceo-workbench) .topbar {
    margin-bottom: 10px;
    padding: 16px 22px 14px;
  }

  .main:has(.ceo-workbench) .topbar .eyebrow {
    min-height: 23px;
    margin: 16px 0 8px;
  }

  .main:has(.ceo-workbench) .topbar h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.02;
  }

  .main:has(.ceo-workbench) .topbar p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .main:has(.ceo-workbench) .ceo-workbench {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .main:has(.ceo-workbench) .ceo-main-column {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-gutter: stable;
  }

  .main:has(.ceo-workbench) .ceo-main-column:not(:has(.agent-canvas-shell)) {
    display: block;
  }

  .main:has(.ceo-workbench) .ceo-main-column:not(:has(.agent-canvas-shell)) > * + * {
    margin-top: 16px;
  }

  .main:has(.ceo-workbench) .ceo-main-column:has(.agent-canvas-shell) {
    grid-template-rows: minmax(132px, auto) minmax(260px, 1fr);
    overflow: hidden;
  }

  .main:has(.ceo-workbench) .ceo-main-column:has(.agent-canvas-shell) .ceo-brain-panel {
    max-height: 190px;
    padding: 10px;
    overflow-y: auto;
  }

  .main:has(.ceo-workbench) .ceo-main-column:has(.agent-canvas-shell) .ceo-brain-head strong {
    font-size: 18px;
  }

  .main:has(.ceo-workbench) .ceo-main-column:has(.agent-canvas-shell) .ceo-brain-grid {
    grid-template-columns: 1fr;
  }

  .main:has(.ceo-workbench) .ceo-inspector {
    top: 0;
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
    align-self: start;
    overflow: visible;
  }

  .main:has(.ceo-workbench) .mission-history-panel:not(.collapsed) {
    position: relative;
    overflow: visible;
    max-height: none;
    z-index: 20;
  }

  .main:has(.ceo-workbench) .mission-history-panel:not(.collapsed) .mission-stack {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(520px, calc(100vw - 360px));
    max-height: min(460px, calc(100vh - 210px));
    padding: 10px;
    overflow-y: auto;
    border: 3px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
    box-shadow: var(--shadow);
  }

  .main:has(.ceo-workbench) .inspector-command-panel {
    height: auto;
    min-height: 0;
    align-self: start;
  }

  .main:has(.ceo-workbench) .inspector-command-panel .ceo-command-form {
    grid-template-rows: auto auto auto auto auto;
    height: auto;
    min-height: 0;
  }

  .main:has(.ceo-workbench) .inspector-command-panel .mission-input {
    height: auto;
    min-height: 92px;
    resize: vertical;
  }

  .main:has(.ceo-workbench) .agent-canvas-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .main:has(.ceo-workbench) .agent-stage-canvas {
    height: 100%;
    min-height: 0;
  }
}

.mission-history-panel.collapsed {
  gap: 0;
}

.mission-history-panel:not(.collapsed) {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.mission-history-panel.collapsed .inspector-head {
  align-items: center;
}

.history-collapsed-hint {
  padding: 9px 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.mission-history-panel.collapsed .history-collapsed-hint {
  display: none;
}

.mission-stack,
.worker-queue {
  display: grid;
  gap: 7px;
}

.ceo-inspector .worker-queue {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mission-history-panel .mission-stack {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.mission-history-panel .mission-stack::-webkit-scrollbar {
  width: 10px;
}

.mission-history-panel .mission-stack::-webkit-scrollbar-track {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8bf;
}

.mission-history-panel .mission-stack::-webkit-scrollbar-thumb {
  border: 2px solid #fff8bf;
  border-radius: 999px;
  background: var(--ink);
}

.mission-history-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf0;
}

.mission-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mission-group-head strong,
.mission-group-head span {
  display: block;
}

.mission-group-head strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-group-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mission-group-items {
  display: grid;
  gap: 8px;
}

.mission-more {
  width: 100%;
  min-height: 34px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
  box-shadow: 1px 2px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.mission-stack-row {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  text-align: left;
}

.mission-stack-row:hover,
.mission-stack-row.selected {
  background: var(--yellow);
}

.mission-stack-row strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mission-stack-row span,
.mission-stack-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.worker-queue-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.ceo-inspector .worker-queue-item {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  padding: 6px;
  position: relative;
}

.worker-queue-item .agent-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 13px;
}

.ceo-inspector .worker-queue-item .agent-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

.ceo-inspector .worker-queue-item .status-badge {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: center;
  min-height: 22px;
  padding: 0 6px;
  font-size: 10px;
  box-shadow: 1px 2px 0 var(--ink);
}

.worker-queue-item strong,
.worker-queue-item span {
  display: block;
}

.worker-queue-item strong {
  font-size: 12px;
  font-weight: 950;
}

.ceo-inspector .worker-queue-item strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-queue-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.ceo-inspector .worker-queue-item div:not(.agent-mark) > span {
  display: none;
}

.document-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.document-mini span:not(.badge) {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 1px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.document-detail {
  display: grid;
  gap: 9px;
}

.document-detail > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.artifact-card .document-detail > div {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.document-detail strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 950;
}

.document-detail code,
.document-detail span {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  font-weight: 850;
}

.document-path {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.document-path .btn {
  max-width: 100%;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.profile-action-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ceo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: start;
  gap: 18px;
}

.panel,
.flow-stage,
.table-panel {
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.panel {
  padding: 14px;
}

.panel-head,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}

.panel-head h3,
.section-title h2 {
  display: inline;
  margin: 0;
  padding: 0 7px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.panel-head p,
.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-window {
  display: grid;
  min-height: 430px;
  max-height: 52vh;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background-color: #fffdf1;
  background-image: radial-gradient(#dfd5a9 1px, transparent 1px);
  background-size: 12px 12px;
}

.message {
  max-width: 80%;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.message.customer {
  justify-self: end;
  background: var(--mint-soft);
  transform: rotate(0.25deg);
}

.message.ai {
  justify-self: start;
  background: #fff;
  transform: rotate(-0.2deg);
}

.message.human {
  justify-self: start;
  background: var(--yellow);
}

.message span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.message.customer span {
  background: var(--mint);
  color: var(--ink);
}

.message.ai span {
  background: var(--blue-soft);
  color: var(--ink);
}

.message p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.composer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.field,
textarea.field {
  width: 100%;
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  outline: none;
  padding: 8px 10px;
  font-weight: 800;
}

textarea.field {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

textarea.field.compact {
  min-height: 86px;
}

.field:focus,
textarea.field:focus {
  background: var(--mint-soft);
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(1px, 1px);
}

.flow-stage {
  padding: 18px;
  background: var(--mint-soft);
}

.pipeline {
  display: grid;
  gap: 11px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.step-item:nth-child(2n) {
  background: var(--blue-soft);
}

.step-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.step-item strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.step-item small {
  color: var(--muted);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.badge.ok {
  background: var(--mint);
}

.badge.warn {
  background: var(--yellow);
}

.badge.muted {
  background: #f7f4ea;
  color: var(--muted);
}

.badge.danger {
  background: var(--pink);
  color: #fff;
}

.table-panel {
  overflow: hidden;
  background: var(--paper-soft);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border-bottom: 3px solid var(--line);
  background: var(--paper-deep);
}

.table-toolbar h3 {
  display: inline;
  margin: 0;
  padding: 0 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.rows {
  display: grid;
}

.paged-rows {
  min-height: 0;
  max-height: min(620px, calc(100vh - 330px));
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.runs-page .paged-rows {
  max-height: none;
}

.paged-rows::-webkit-scrollbar,
.run-detail-scroll::-webkit-scrollbar,
.agent-run-detail::-webkit-scrollbar {
  width: 10px;
}

.paged-rows::-webkit-scrollbar-track,
.run-detail-scroll::-webkit-scrollbar-track,
.agent-run-detail::-webkit-scrollbar-track {
  border-left: 2px solid var(--line);
  background: #fff8bf;
}

.paged-rows::-webkit-scrollbar-thumb,
.run-detail-scroll::-webkit-scrollbar-thumb,
.agent-run-detail::-webkit-scrollbar-thumb {
  border: 2px solid #fff8bf;
  border-radius: 999px;
  background: var(--ink);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 2px solid var(--line);
  background: var(--paper-deep);
}

.pagination-bar span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.run-row,
.ticket-row,
.doc-row,
.eval-row {
  display: grid;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.run-row:nth-child(2n),
.ticket-row:nth-child(2n),
.doc-row:nth-child(2n),
.eval-row:nth-child(2n) {
  background: rgba(201, 255, 232, 0.44);
}

.btn-row {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line);
  color: inherit;
  text-align: left;
}

.btn-row:hover {
  background: var(--yellow);
}

.btn-row.selected {
  background: var(--mint-soft);
}

.ceo-command {
  display: grid;
  gap: 14px;
}

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

.mission-input {
  min-height: 118px;
}

.blueprint {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.blueprint-head,
.worker-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.blueprint h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.blueprint-block {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
}

.blueprint-block strong,
.worker-section small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.blueprint-block p,
.worker-section p {
  margin: 0;
  line-height: 1.65;
  font-weight: 750;
}

.blueprint-block ul,
.worker-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-weight: 750;
  line-height: 1.55;
}

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

.worker-stage {
  background: var(--paper-soft);
}

.worker-grid {
  display: grid;
  gap: 12px;
}

.worker-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.worker-card:nth-child(2n) {
  background: var(--mint-soft);
}

.agent-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-weight: 950;
}

.worker-top > div:nth-child(2) {
  flex: 1 1 auto;
}

.worker-top strong,
.worker-top span {
  display: block;
}

.worker-top span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.worker-section {
  display: grid;
  gap: 6px;
}

.worker-action {
  justify-self: start;
}

.design-artifact {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--mint-soft);
  box-shadow: var(--shadow);
}

.design-artifact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--line);
}

.design-artifact-head h3 {
  display: inline;
  margin: 0;
  padding: 0 8px;
  background: var(--yellow);
  font-size: 20px;
  font-weight: 950;
}

.design-artifact-head p {
  margin: 9px 0 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.6;
}

.design-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-flow span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

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

.wireframe-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.wireframe-card strong {
  font-size: 13px;
  font-weight: 950;
}

.wireframe-screen {
  display: grid;
  gap: 7px;
  min-height: 210px;
  padding: 9px;
  border: 2px dashed var(--line);
  border-radius: 7px;
  background: var(--paper-soft);
}

.visual-wireframe {
  position: relative;
  grid-template-rows: auto;
  align-content: start;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #fffef7;
  background-size: 18px 18px;
}

.wireframe-browser-bar {
  display: flex;
  gap: 5px;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--blue-soft);
}

.wireframe-browser-bar span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
}

.wireframe-browser-bar span:nth-child(2) {
  background: var(--yellow);
}

.wireframe-browser-bar span:nth-child(3) {
  background: var(--mint);
}

.wireframe-block {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 44px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.visual-block.hero {
  min-height: 64px;
  background: var(--mint-soft);
}

.visual-block.control {
  min-height: 42px;
  background: #fff8bf;
}

.visual-block.list {
  min-height: 58px;
  background: #fff;
}

.visual-block.panel {
  min-height: 70px;
  background: var(--blue-soft);
}

.visual-block.action {
  min-height: 42px;
  background: var(--pink-soft);
}

.wireframe-block span {
  font-size: 12px;
  font-weight: 950;
}

.wireframe-block small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.code-artifact {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

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

.code-table {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
}

.code-table > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.api-route {
  display: grid;
  grid-template-columns: 74px minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.api-route code,
.model-card code {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #161616;
  color: #9affc9;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.api-route p {
  margin: 0;
  font-weight: 750;
  line-height: 1.45;
}

.model-card {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.model-card strong {
  font-weight: 950;
}

.model-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.model-card ul {
  margin: 0;
  padding-left: 18px;
}

.qa-artifact {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}

.qa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.qa-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.qa-test {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.qa-test > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.qa-test strong {
  font-weight: 950;
}

.qa-test p {
  margin: 0;
  line-height: 1.55;
  font-weight: 750;
}

.cs-artifact {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--pink-soft);
  box-shadow: var(--shadow);
}

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

.cs-signal-card,
.cs-report,
.ceo-rec {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}

.cs-signal-card strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 28px;
  font-weight: 950;
}

.cs-signal-card p,
.cs-report p,
.ceo-rec p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
  font-weight: 750;
}

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

.cs-report-column {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
}

.cs-report-column > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cs-report.feature {
  background: var(--mint-soft);
}

.cs-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cs-report-head strong,
.ceo-rec strong {
  font-weight: 950;
}

.cs-report small {
  color: var(--muted);
  font-weight: 900;
}

.cs-report ul,
.ceo-rec ul {
  margin: 0;
  padding-left: 18px;
  font-weight: 750;
  line-height: 1.55;
}

.ceo-rec-list {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.ceo-rec {
  margin-top: 8px;
  background: var(--paper-soft);
}

.ceo-rec.dispatched {
  background: var(--mint-soft);
}

.ceo-rec-meta,
.ceo-rec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ceo-rec-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.compact-empty {
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.mission-history {
  margin-top: 18px;
}

.mission-row {
  grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.45fr 0.45fr;
}

.run-row {
  grid-template-columns: 1.1fr 0.8fr 0.7fr 0.7fr;
}

.agent-run-row {
  grid-template-columns: minmax(0, 1.2fr) 86px 82px 112px 72px;
  align-items: center;
}

.agent-run-detail {
  display: grid;
  gap: 12px;
}

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

.ticket-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 190px;
}

.doc-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 210px;
}

.doc-body {
  display: grid;
  gap: 8px;
}

.doc-body > p {
  margin: 0;
  white-space: pre-wrap;
}

.doc-detail {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.doc-detail span {
  display: inline-grid;
  width: 26px;
  min-height: 24px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
}

.doc-detail p {
  margin: 0;
  white-space: pre-wrap;
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.doc-actions {
  display: flex;
  width: 100%;
  gap: 7px;
  margin-top: 6px;
}

.eval-row {
  grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.7fr 72px 136px;
}

.eval-actions {
  display: flex;
  gap: 7px;
  align-items: start;
}

.run-row:last-child,
.ticket-row:last-child,
.doc-row:last-child,
.eval-row:last-child {
  border-bottom: 0;
}

.runs-page {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.runs-grid > .table-panel,
.runs-grid > .panel,
.chat-runs-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.runs-grid > .panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.runs-grid .agent-run-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 4px 0;
}

.run-detail-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 4px 0;
}

@media (min-width: 1101px) {
  body:has(.runs-page) {
    overflow: hidden;
  }

  body:has(.runs-page) .app-shell,
  body:has(.runs-page) .layout {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .main:has(.runs-page) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 20px);
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  .main:has(.runs-page) .topbar {
    margin-bottom: 10px;
    padding: 10px 18px 10px;
  }

  .main:has(.runs-page) .topbar .eyebrow {
    min-height: 22px;
    margin: 10px 0 6px;
    font-size: 11px;
  }

  .main:has(.runs-page) .topbar h2 {
    font-size: clamp(27px, 3.1vw, 38px);
    line-height: 1.02;
  }

  .main:has(.runs-page) .topbar p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .main:has(.runs-page) .runs-page {
    grid-template-rows: auto minmax(0, 1.12fr) minmax(0, 0.9fr);
    height: 100%;
    overflow: hidden;
    gap: 10px;
  }

  .main:has(.runs-page) .metrics {
    gap: 7px;
    margin-bottom: 0;
  }

  .main:has(.runs-page) .metric {
    min-height: 56px;
    padding: 6px 9px;
  }

  .main:has(.runs-page) .metric span {
    min-height: 13px;
    font-size: 10px;
  }

  .main:has(.runs-page) .metric strong {
    margin-top: 2px;
    font-size: 22px;
  }

  .main:has(.runs-page) .metric small {
    font-size: 10px;
  }

  .main:has(.runs-page) .runs-grid {
    min-height: 0;
    align-items: stretch;
    gap: 14px;
  }

  .main:has(.runs-page) .table-toolbar,
  .main:has(.runs-page) .panel-head {
    padding: 8px 10px;
  }

  .main:has(.runs-page) .table-toolbar h3,
  .main:has(.runs-page) .panel-head h3 {
    font-size: 16px;
  }

  .main:has(.runs-page) .table-toolbar p,
  .main:has(.runs-page) .panel-head p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .main:has(.runs-page) .run-row {
    min-height: 48px;
    padding: 8px 10px;
  }

  .main:has(.runs-page) .pagination-bar {
    padding: 6px 8px;
  }

  .main:has(.runs-page) .pagination-bar .btn.small {
    min-height: 28px;
  }
}

.row-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trace {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 2px dashed var(--line);
}

@media (min-width: 1181px) {
  .panel-grid:has(.flow-stage) > .panel,
  .panel-grid:has(.flow-stage) > .flow-stage {
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
    overflow: hidden;
  }

  .panel-grid:has(.flow-stage) > .panel .chat-window {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .panel-grid:has(.flow-stage) > .flow-stage .pipeline {
    flex: 0 0 auto;
  }

  .panel-grid:has(.flow-stage) > .flow-stage .trace {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }
}

.trace-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 3px 0 var(--ink);
}

.trace-item code {
  overflow: auto;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #161616;
  color: #9affc9;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.scan-interval-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 9px;
}

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

.empty {
  padding: 30px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1180px) {
  .layout,
  .layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar.collapsed {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 52px 14px 14px;
  }

  .sidebar.collapsed .sidebar-toggle {
    top: 14px;
    right: 14px;
  }

  .sidebar.collapsed .brand {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .sidebar.collapsed .nav {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .sidebar.collapsed .nav button {
    min-height: 40px;
  }

  .side-note {
    position: static;
    margin-top: 18px;
  }

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

  .panel-grid,
  .ops-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .ceo-workbench,
  .ceo-grid {
    grid-template-columns: 1fr;
  }

  .ceo-inspector {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .ceo-command-strip,
  .mission-summary-panel,
  .delivery-launch,
  .delivery-row,
  .delivery-link-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .agent-stage-canvas {
    min-height: 590px;
  }

  .agent-avatar {
    width: 150px;
  }

  .agent-avatar-sprite {
    width: 112px;
    height: 142px;
  }

  .agent-avatar-ceo .agent-avatar-sprite {
    width: 126px;
    height: 156px;
  }
}

@media (max-width: 760px) {
  .layout {
    padding: 10px;
  }

  .sidebar.collapsed {
    grid-template-columns: 1fr;
    padding: 52px 12px 12px;
  }

  .sidebar.collapsed .brand {
    justify-content: flex-start;
  }

  .sidebar.collapsed .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main {
    padding: 0 0 18px;
  }

  .topbar,
  .panel-head,
  .section-title,
  .table-toolbar {
    display: grid;
  }

  .topbar {
    padding: 28px 18px 20px;
  }

  .top-actions {
    position: static;
    margin-top: 16px;
    justify-content: start;
    min-width: 0;
  }

  .canvas-mode-button {
    position: static;
    width: fit-content;
    margin-top: 10px;
  }

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

  .composer,
  .form-grid,
  .mission-form,
  .ceo-command-form,
  .scan-interval-control,
  .delivery-row,
  .delivery-link-grid,
  .deployment-plan-grid,
  .inbox-row,
  .settings-checks,
  .run-row,
  .ticket-row,
  .mission-row,
  .doc-row,
  .eval-row {
    grid-template-columns: 1fr;
  }

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

  .design-artifact-head,
  .artifact-grid,
  .artifact-card-head,
  .artifact-mini-grid,
  .artifact-toolbar,
  .ceo-inspector,
  .compact-wireframes,
  .design-columns,
  .code-columns,
  .qa-test-grid,
  .cs-signal-grid,
  .cs-report-grid,
  .ceo-rec-list,
  .api-route {
    grid-template-columns: 1fr;
  }

  .design-artifact-head {
    display: grid;
  }

  .qa-toolbar {
    display: grid;
  }

  .delivery-launch-actions {
    justify-content: start;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .readme-modal {
    max-height: 88vh;
  }

  .readme-modal-head {
    grid-template-columns: 1fr;
  }

  .readme-modal-head h3 {
    font-size: 21px;
  }

  .message {
    max-width: 100%;
  }

  .topbar h2 {
    max-width: 100%;
    font-size: 34px;
  }

  .agent-stage-canvas {
    min-height: 760px;
  }

  .agent-canvas-wires {
    display: none;
  }

  .canvas-meta-strip {
    position: static;
    margin: 0;
  }

  .agent-avatar {
    width: 44%;
  }

  .agent-avatar-sprite {
    width: 104px;
    height: 132px;
  }

  .agent-avatar-ceo {
    top: 25%;
    left: 50%;
  }

  .agent-avatar-ceo .agent-avatar-sprite {
    width: 120px;
    height: 148px;
  }

  .worker-avatar.design {
    top: 54%;
    left: 28%;
  }

  .worker-avatar.code {
    top: 54%;
    left: 72%;
  }

  .worker-avatar.qa {
    top: 78%;
    left: 28%;
  }

  .worker-avatar.cs {
    top: 78%;
    left: 72%;
  }

  .canvas-command-note {
    grid-template-columns: 1fr;
  }

  .canvas-delivery-dock {
    top: 39%;
    left: 50%;
    min-width: 136px;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 1101px) {
  body {
    font-size: 14px;
  }

  .layout {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 6px;
    height: 100dvh;
    min-height: 0;
    padding: 4px;
    overflow: hidden;
  }

  .layout.sidebar-collapsed {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .sidebar {
    top: 4px;
    height: calc(100dvh - 8px);
    padding: 7px;
    border-radius: 9px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .brand {
    gap: 7px;
    margin-bottom: 8px;
    padding-bottom: 7px;
  }

  .brand-mark {
    width: 42px;
    height: 32px;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand span {
    font-size: 10px;
    line-height: 1.25;
  }

  .nav {
    gap: 4px;
    overflow: hidden;
  }

  .nav button {
    min-height: 29px;
    padding: 3px 7px;
    border-radius: 7px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .nav button span {
    font-size: 13px;
  }

  .nav button small {
    font-size: 10px;
  }

  .side-note {
    padding: 8px;
    box-shadow: 3px 4px 0 var(--ink);
  }

  .side-note p {
    font-size: 10px;
  }

  .side-note strong {
    font-size: 11px;
  }

  .main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100dvh - 8px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .topbar,
  .main:has(.ceo-workbench) .topbar,
  .main:has(.runs-page) .topbar {
    min-height: 0;
    margin-bottom: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .topbar::before {
    top: 8px;
    left: 60%;
    padding: 3px 9px;
    font-size: 10px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .topbar::after {
    right: 22px;
    bottom: 10px;
    width: 31px;
    height: 8px;
  }

  .eyebrow,
  .main:has(.ceo-workbench) .topbar .eyebrow,
  .main:has(.runs-page) .topbar .eyebrow {
    min-height: 20px;
    margin: 3px 0 5px;
    padding: 0 10px;
    font-size: 10px;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .topbar h2,
  .main:has(.ceo-workbench) .topbar h2,
  .main:has(.runs-page) .topbar h2 {
    max-width: calc(100% - 280px);
    font-size: clamp(24px, 2.55vw, 34px);
    line-height: 1.02;
  }

  .topbar p,
  .main:has(.ceo-workbench) .topbar p,
  .main:has(.runs-page) .topbar p {
    display: -webkit-box;
    max-width: 780px;
    overflow: hidden;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .top-actions {
    top: 14px;
    right: 14px;
    gap: 6px;
  }

  .top-actions .btn,
  .canvas-mode-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .canvas-mode-button {
    right: 76px;
    bottom: 8px;
  }

  .main-content {
    min-height: 0;
    overflow: auto;
    padding-right: 3px;
    scrollbar-gutter: stable;
  }

  .panel,
  .flow-stage,
  .table-panel,
  .mission-summary-panel,
  .workflow-canvas,
  .artifact-board,
  .inspector-panel {
    border-radius: 9px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .panel,
  .flow-stage,
  .table-panel {
    padding: 10px;
  }

  .panel-grid,
  .ops-grid,
  .profile-grid,
  .ceo-grid {
    gap: 12px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .profile-hub {
    gap: 8px;
  }

  .profile-config-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .profile-config-icon {
    width: 36px;
    border-radius: 7px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .profile-config-icon svg {
    width: 25px;
    height: 25px;
  }

  .profile-config-card strong {
    font-size: 14px;
  }

  .profile-config-card small {
    font-size: 11px;
  }

  .profile-config-card em {
    padding: 3px 7px;
    font-size: 10px;
  }

  .data-source-center {
    gap: 9px;
  }

  .data-source-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .data-source-platform-icon {
    width: 36px;
    border-radius: 7px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .data-source-platform-icon svg {
    width: 26px;
    height: 26px;
  }

  .data-source-main {
    gap: 5px;
  }

  .data-source-main strong {
    font-size: 15px;
  }

  .data-source-main p,
  .data-source-import label,
  .data-source-import span {
    font-size: 12px;
    line-height: 1.35;
  }

  .source-wizard-steps span,
  .monitorable-list span,
  .data-source-meta span {
    padding: 3px 7px;
    font-size: 11px;
  }

  .field,
  textarea.field,
  .btn {
    min-height: 32px;
    border-radius: 7px;
  }

  textarea.field {
    min-height: 96px;
  }

  textarea.field.compact {
    min-height: 72px;
  }

  .chat-window {
    min-height: min(360px, calc(100dvh - 300px));
    max-height: calc(100dvh - 252px);
    padding: 10px;
    gap: 9px;
  }
}

@media (min-width: 1101px) {
  html,
  body,
  .app-shell,
  .layout {
    height: 100dvh;
    min-height: 0;
  }

  body {
    overflow: hidden;
    font-size: 13px;
  }

  .layout {
    align-items: stretch;
    padding: 4px;
  }

  .main {
    display: grid;
    grid-template-rows: min-content minmax(0, 1fr);
    height: calc(100dvh - 8px);
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  .topbar,
  .main:has(.ceo-workbench) .topbar,
  .main:has(.runs-page) .topbar {
    min-height: 0;
    margin-bottom: 6px;
    padding: 7px 14px 8px;
  }

  .topbar h2,
  .main:has(.ceo-workbench) .topbar h2,
  .main:has(.runs-page) .topbar h2 {
    font-size: clamp(23px, 2.45vw, 32px);
    line-height: 1;
  }

  .topbar p,
  .main:has(.ceo-workbench) .topbar p,
  .main:has(.runs-page) .topbar p {
    display: -webkit-box;
    max-width: min(780px, calc(100% - 260px));
    overflow: hidden;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .main-content {
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 0 3px 0 0;
    scrollbar-gutter: stable;
  }

  .main-content > * {
    min-height: 0;
  }

  .main-content > *:last-child {
    margin-bottom: 0;
  }

  .panel-grid,
  .ops-grid,
  .profile-grid {
    min-height: 0;
  }

  .profile-grid {
    height: 100%;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 10px;
  }

  .profile-form,
  .profile-grid > .panel {
    min-height: 0;
    overflow: auto;
  }

  .profile-form {
    align-content: start;
    gap: 10px;
  }

  .profile-grid > .panel {
    padding: 10px;
  }

  .profile-hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .settings-section {
    padding: 10px;
  }

  .capability-list {
    gap: 8px;
  }

  .capability-card {
    padding: 9px;
  }

  .capability-card p {
    font-size: 11px;
    line-height: 1.35;
  }

  .data-source-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .data-source-actions {
    gap: 6px;
  }

  .data-source-actions .btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* Desktop viewport fit: compact the real layout with normal CSS sizing. */
@media (min-width: 1101px) {
  html,
  body,
  #app,
  .app-shell,
  .layout {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body {
    font-size: 13px;
  }

  .layout {
    align-items: stretch;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 5px;
    padding: 4px;
  }

  .layout.sidebar-collapsed {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sidebar {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    padding: 6px;
  }

  .brand {
    margin-bottom: 7px;
    padding-bottom: 6px;
  }

  .brand-mark {
    width: 40px;
    height: 30px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .brand span,
  .side-note p,
  .side-note strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .nav {
    gap: 3px;
  }

  .nav button {
    min-height: 28px;
    padding: 3px 7px;
  }

  .nav button span {
    font-size: 12px;
  }

  .nav button small {
    font-size: 10px;
  }

  .side-note {
    margin-top: 6px;
    padding: 7px;
  }

  .main {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    min-height: 0;
    grid-template-rows: min-content minmax(0, 1fr);
    overflow: hidden;
  }

  .topbar,
  .main:has(.ceo-workbench) .topbar,
  .main:has(.runs-page) .topbar {
    margin-bottom: 5px;
    padding: 6px 12px 7px;
  }

  .topbar h2,
  .main:has(.ceo-workbench) .topbar h2,
  .main:has(.runs-page) .topbar h2 {
    font-size: clamp(22px, 2.25vw, 30px);
    line-height: 1;
  }

  .topbar p,
  .main:has(.ceo-workbench) .topbar p,
  .main:has(.runs-page) .topbar p {
    max-width: min(760px, calc(100% - 245px));
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.22;
    -webkit-line-clamp: 1;
  }

  .top-actions .btn,
  .canvas-mode-button,
  .btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .main-content {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 0 2px 0 0;
    scrollbar-gutter: stable;
  }

  .main-content > * {
    min-height: 0;
  }

  .main-content > *:last-child {
    margin-bottom: 0;
  }

  .panel,
  .flow-stage,
  .table-panel,
  .mission-summary-panel,
  .workflow-canvas,
  .artifact-board,
  .inspector-panel,
  .settings-section {
    padding: 9px;
  }

  .panel-head,
  .section-title,
  .table-toolbar {
    gap: 7px;
    margin-bottom: 6px;
  }

  .panel-head h3,
  .section-title h3,
  .table-toolbar h3 {
    font-size: 18px;
    line-height: 1.1;
  }

  .panel-head p,
  .section-title p,
  .table-toolbar p {
    font-size: 11px;
    line-height: 1.3;
  }

  .profile-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 8px;
  }

  .profile-form,
  .profile-grid > .panel {
    max-height: 100%;
    min-height: 0;
    overflow: auto;
  }

  .profile-form {
    gap: 8px;
  }

  .profile-hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .profile-config-card {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
  }

  .profile-config-icon,
  .data-source-platform-icon {
    width: 34px;
    border-radius: 7px;
  }

  .profile-config-icon svg,
  .data-source-platform-icon svg {
    width: 25px;
    height: 25px;
  }

  .profile-config-card strong {
    font-size: 13px;
  }

  .profile-config-card small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.22;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .profile-config-card em {
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .form-grid {
    gap: 8px;
  }

  .field,
  textarea.field,
  select.field {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }

  textarea.field {
    min-height: 84px;
  }

  .data-source-center {
    gap: 8px;
  }

  .data-source-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .data-source-main {
    gap: 4px;
  }

  .data-source-main strong {
    font-size: 14px;
  }

  .data-source-main p,
  .data-source-import label,
  .data-source-import span,
  .source-ready-note {
    font-size: 11px;
    line-height: 1.28;
  }

  .source-wizard-steps,
  .monitorable-list,
  .data-source-meta {
    gap: 4px;
  }

  .source-wizard-steps span,
  .monitorable-list span,
  .data-source-meta span {
    padding: 2px 6px;
    font-size: 10px;
  }

  .data-source-import textarea {
    min-height: 82px;
  }

  .metrics {
    gap: 8px;
  }

  .metric {
    min-height: 54px;
    padding: 8px;
  }
}

/* Viewport-fit v2: keep native scale, compact the actual layout instead of using zoom. */
@media (min-width: 1101px) {
  html,
  body,
  #app,
  .app-shell,
  .layout {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
  }

  body {
    font-size: 13px;
  }

  .layout {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 5px;
    padding: 4px;
  }

  .layout.sidebar-collapsed {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sidebar {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    padding: 6px;
  }

  .main {
    display: grid;
    grid-template-rows: max-content minmax(0, 1fr);
    height: calc(100dvh - 8px);
    min-height: 0;
    max-height: calc(100dvh - 8px);
    overflow: hidden;
    padding: 0;
  }

  .topbar,
  .main:has(.ceo-workbench) .topbar,
  .main:has(.runs-page) .topbar {
    position: relative;
    top: auto;
    min-height: 0;
    margin-bottom: 5px;
    padding: 6px 12px 7px;
  }

  .topbar h2,
  .main:has(.ceo-workbench) .topbar h2,
  .main:has(.runs-page) .topbar h2 {
    font-size: clamp(22px, 2.25vw, 30px);
    line-height: 1;
  }

  .topbar p,
  .main:has(.ceo-workbench) .topbar p,
  .main:has(.runs-page) .topbar p {
    display: -webkit-box;
    max-width: min(780px, calc(100% - 245px));
    overflow: hidden;
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .main-content {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 0 2px 0 0;
    scrollbar-gutter: stable;
  }

  .main-content:has(.ceo-workbench),
  .main-content:has(.runs-page),
  .main-content:has(.profile-grid),
  .main-content:has(.ops-grid),
  .main-content:has(.panel-grid) {
    overflow: hidden;
  }

  .ceo-workbench,
  .runs-page,
  .profile-grid,
  .ops-grid,
  .panel-grid {
    height: 100%;
    min-height: 0;
  }

  .panel-grid,
  .ops-grid,
  .profile-grid {
    align-items: stretch;
    gap: 10px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 288px;
  }

  .panel-grid > .panel,
  .panel-grid > .flow-stage,
  .ops-grid > .panel,
  .profile-grid > .panel,
  .profile-form {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
  }

  .panel,
  .flow-stage,
  .table-panel,
  .mission-summary-panel,
  .workflow-canvas,
  .artifact-board,
  .inspector-panel,
  .settings-section {
    padding: 9px;
  }

  .metrics {
    gap: 8px;
    margin-bottom: 8px;
  }

  .metric {
    min-height: 54px;
    padding: 8px;
  }

  .metric strong {
    margin-top: 2px;
    font-size: 22px;
  }
}

.brand-logo,
.brand-logo-fallback,
.brand-logo-stack,
.stack-icon-svg {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  min-width: 0;
}

.brand-logo-img,
.brand-logo-stack img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.brand-logo-stack {
  position: relative;
}

.brand-logo-stack img,
.brand-logo-stack .stack-icon-svg {
  position: absolute;
  width: 58%;
  height: 58%;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.brand-logo-stack img:nth-child(1) {
  top: 2px;
  left: 2px;
}

.brand-logo-stack img:nth-child(2) {
  right: 2px;
  top: 5px;
}

.brand-logo-stack img:nth-child(3),
.brand-logo-stack .stack-icon-svg {
  right: 8px;
  bottom: 2px;
}

.brand-logo-stack .stack-icon-svg svg {
  width: 100%;
  height: 100%;
}

.line-brand-icon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.profile-config-icon .brand-logo,
.data-source-platform-icon .brand-logo {
  color: var(--ink);
}

/* Disabled draft implementation. Use design-options.html to choose a layout before applying it. */
.brand-logo-fallback[hidden],
.brand-logo-img[hidden] {
  display: none !important;
}

@media (min-width: 999999px) {
  html,
  body,
  #app,
  .app-shell,
  .layout {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
  }

  .layout {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 6px;
    padding: 5px;
  }

  .layout.sidebar-collapsed {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sidebar {
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    overflow: hidden;
  }

  .main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .topbar,
  .main:has(.ceo-workbench) .topbar,
  .main:has(.runs-page) .topbar {
    position: relative;
    top: auto;
    min-height: 72px;
    margin: 0 0 6px;
    padding: 8px 14px 9px;
  }

  .eyebrow,
  .main:has(.ceo-workbench) .topbar .eyebrow {
    min-height: 20px;
    margin: 0 0 4px;
    padding: 0 10px;
    font-size: 10px;
  }

  .topbar h2,
  .main:has(.ceo-workbench) .topbar h2,
  .main:has(.runs-page) .topbar h2 {
    max-width: calc(100% - 310px);
    font-size: clamp(22px, 2.2vw, 31px);
    line-height: 1;
  }

  .topbar p,
  .main:has(.ceo-workbench) .topbar p,
  .main:has(.runs-page) .topbar p {
    display: -webkit-box;
    max-width: min(820px, calc(100% - 290px));
    margin-top: 4px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .topbar::before {
    top: 9px;
    left: 60%;
    padding: 3px 10px;
    font-size: 10px;
  }

  .topbar::after {
    right: 24px;
    bottom: 12px;
    width: 30px;
    height: 8px;
  }

  .top-actions {
    top: 12px;
    right: 14px;
    min-width: 230px;
    gap: 7px;
  }

  .canvas-mode-button {
    right: 72px;
    bottom: 9px;
  }

  .main-content {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 0 2px 0 0;
    scrollbar-gutter: stable;
  }

  .main-content:has(.ceo-workbench),
  .main-content:has(.panel-grid),
  .main-content:has(.ops-grid),
  .main-content:has(.runs-page),
  .main-content:has(.profile-grid) {
    overflow: hidden;
  }

  .panel-grid,
  .ops-grid,
  .profile-grid,
  .runs-page {
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .panel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  }

  .ops-grid {
    grid-template-columns: minmax(0, 1fr) 328px;
  }

  .panel-grid > .table-panel,
  .ops-grid > .table-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .panel-grid > .panel,
  .ops-grid > .panel,
  .profile-grid > .panel,
  .profile-form {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
  }

  .rows,
  .paged-rows,
  .delivery-list,
  .tool-run-list,
  .watch-run-history-list,
  .capability-list {
    min-height: 0;
    overflow: auto;
    padding-right: 5px;
    scrollbar-gutter: stable;
  }

  .panel-grid .paged-rows,
  .ops-grid .paged-rows,
  .delivery-list {
    max-height: none;
  }

  .doc-row {
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr) minmax(230px, 0.3fr);
    align-items: start;
    gap: 12px;
    padding: 12px 18px;
  }

  .doc-body {
    min-width: 0;
  }

  .doc-detail {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .doc-detail p,
  .doc-row > div > strong,
  .row-meta {
    overflow-wrap: anywhere;
  }

  .doc-tags {
    justify-content: flex-start;
  }

  .delivery-row {
    grid-template-columns: minmax(0, 1fr) 138px;
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .delivery-row-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mission-plan-delivery-grid,
  .delivery-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-row-actions {
    display: grid;
    gap: 8px;
    justify-items: stretch;
  }

  .delivery-row-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .mission-plan-delivery-row p,
  .delivery-row p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ceo-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
  }

  .ceo-main-column {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) {
    display: grid !important;
    grid-template-columns: minmax(410px, 0.54fr) minmax(420px, 0.46fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding-right: 0;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) > * + * {
    margin-top: 0 !important;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) .ceo-brain-panel {
    grid-column: 1 / -1;
  }

  .main:has(.ceo-workbench) .mission-summary-panel {
    display: none;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) .workflow-canvas,
  .ceo-main-column:not(:has(.agent-canvas-shell)) .artifact-board {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) .workflow-canvas {
    align-content: start;
  }

  .agent-flow {
    grid-auto-columns: minmax(154px, 1fr);
    gap: 10px;
  }

  .agent-node {
    min-height: 158px;
    padding: 10px;
  }

  .artifact-board {
    align-content: start;
  }

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

  .artifact-card {
    min-height: 0;
  }

  .ceo-main-column:has(.agent-canvas-shell) {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
  }

  .main:has(.ceo-workbench) .ceo-main-column:has(.agent-canvas-shell) .ceo-brain-panel {
    max-height: none;
    overflow: visible;
  }

  .ceo-brain-panel {
    gap: 8px;
    padding: 10px;
  }

  .ceo-brain-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ceo-brain-head strong {
    font-size: 17px !important;
  }

  .ceo-brain-request,
  .ceo-brain-reply,
  .ceo-brain-understanding,
  .ceo-brain-blockers {
    padding: 8px 10px;
  }

  .ceo-brain-request p,
  .ceo-brain-reply p,
  .ceo-brain-understanding p,
  .ceo-brain-blockers p {
    display: -webkit-box;
    max-height: 54px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.36;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ceo-brain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ceo-brain-grid > div {
    max-height: 116px;
    overflow: auto;
    padding: 8px;
  }

  .ceo-brain-grid span {
    padding: 6px 0;
    font-size: 12px;
  }

  .agent-canvas-shell {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .canvas-meta-strip {
    min-height: 34px;
    padding: 5px 9px;
  }

  .canvas-command-note {
    display: none;
  }

  .agent-stage-canvas {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .agent-canvas-wires {
    inset: 18px 26px 84px;
    width: calc(100% - 52px);
    height: calc(100% - 102px);
  }

  .agent-avatar {
    width: 132px;
  }

  .agent-avatar-sprite {
    width: 88px;
    height: 112px;
  }

  .agent-avatar-ceo {
    top: 24%;
  }

  .agent-avatar-ceo .agent-avatar-sprite {
    width: 98px;
    height: 124px;
  }

  .worker-avatar.design,
  .worker-avatar.cs {
    top: 66%;
  }

  .worker-avatar.code,
  .worker-avatar.qa {
    top: 69%;
  }

  .agent-avatar strong {
    margin-top: 2px;
    padding: 1px 7px;
    font-size: 12px;
  }

  .agent-avatar > span:not(.agent-avatar-sprite),
  .agent-avatar em {
    max-width: 128px;
    font-size: 10px;
  }

  .canvas-delivery-dock {
    top: 24%;
    left: calc(50% + 112px);
    min-width: 126px;
    padding: 7px;
  }

  .canvas-delivery-dock .btn {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .ceo-inspector {
    display: grid;
    grid-template-rows: auto minmax(0, 0.9fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }

  .ceo-inspector > .inspector-panel,
  .ceo-inspector > .panel {
    min-height: 0;
    overflow: hidden;
  }

  .ceo-inspector .mission-history-panel:not(.collapsed) .mission-stack {
    position: static;
    width: auto;
    max-height: 100%;
    padding: 0 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mission-history-panel:not(.collapsed),
  .worker-queue-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .worker-queue {
    min-height: 0;
    overflow: auto;
  }

  .ceo-inspector .worker-queue {
    grid-template-columns: 1fr;
  }

  .inspector-command-panel {
    align-self: end;
  }

  .main:has(.ceo-workbench) .inspector-command-panel .mission-input {
    min-height: 78px;
    max-height: 116px;
  }

  .ceo-template-picker {
    display: none;
  }

  .ceo-context-line {
    display: -webkit-box;
    max-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 999999px) {
  .ceo-workbench {
    grid-template-columns: minmax(0, 1fr) 352px;
  }

  .ops-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .ceo-main-column:not(:has(.agent-canvas-shell)) {
    grid-template-columns: minmax(520px, 0.56fr) minmax(500px, 0.44fr);
  }

  .agent-avatar-sprite {
    width: 98px;
    height: 124px;
  }

  .agent-avatar-ceo .agent-avatar-sprite {
    width: 108px;
    height: 136px;
  }
}

/* Enterprise visual system v1: selected Product Design B/C direction. */
:root {
  --paper: #f7f9fc;
  --paper-deep: #ffffff;
  --paper-soft: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --mint: #12b76a;
  --mint-soft: #ecfdf3;
  --pink: #f04438;
  --pink-soft: #fff1f3;
  --yellow: #f79009;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
  --ent-sidebar: #ffffff;
  --ent-bg: #f7f9fc;
  --ent-card: #ffffff;
  --ent-border: #d9e2ef;
  --ent-primary: #2563eb;
  --ent-primary-2: #14b8a6;
  --ent-text: #101828;
  --ent-muted: #667085;
  color-scheme: light;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--ent-bg);
  color: var(--ent-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.app-shell,
.layout {
  min-height: 100vh;
  height: 100vh;
}

.layout {
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: var(--ent-bg);
}

.layout.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  border: 0;
  border-right: 1px solid var(--ent-border);
  border-radius: 0;
  background: var(--ent-sidebar);
  box-shadow: none;
}

.sidebar-toggle {
  top: auto;
  right: 12px;
  bottom: 16px;
  width: calc(100% - 24px);
  height: 42px;
  border: 1px solid var(--ent-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  color: var(--ent-muted);
  font-size: 0;
}

.sidebar-toggle::before {
  content: "收起侧栏";
  font-size: 13px;
  font-weight: 700;
}

.sidebar.collapsed .sidebar-toggle {
  width: 44px;
  right: 14px;
}

.sidebar.collapsed .sidebar-toggle::before {
  content: "展开";
}

.sidebar-toggle:hover {
  background: var(--blue-soft);
  box-shadow: none;
  transform: none;
}

.brand {
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ent-border);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  color: var(--ent-text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--ent-muted);
  font-size: 11px;
  font-weight: 600;
}

.nav {
  gap: 6px;
  overflow: hidden;
  padding: 0;
}

.nav button {
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ent-muted);
  transform: none !important;
}

.nav button::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  flex: 0 0 auto;
}

.nav button.active {
  border-color: #dbe7ff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
  color: var(--ent-primary);
  font-weight: 800;
}

.nav button span {
  flex: 1;
  font-size: 14px;
  font-weight: 750;
}

.nav button small {
  display: block;
  color: inherit;
  opacity: 0.76;
  font-size: 11px;
  font-weight: 600;
}

.side-note {
  margin: auto 0 56px;
  padding: 13px;
  border: 1px solid var(--ent-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.side-note p {
  margin: 0 0 4px;
  color: var(--ent-muted);
  font-size: 12px;
  font-weight: 700;
}

.side-note strong {
  color: var(--ent-text);
  font-size: 13px;
  line-height: 1.35;
}

.main {
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.topbar,
.main:has(.ceo-workbench) .topbar,
.main:has(.runs-page) .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  padding: 13px 24px;
  border: 0;
  border-bottom: 1px solid var(--ent-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.topbar::before,
.topbar::after {
  display: none;
}

.topbar .eyebrow,
.main:has(.ceo-workbench) .topbar .eyebrow,
.main:has(.runs-page) .topbar .eyebrow {
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ent-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transform: none;
}

.topbar h2,
.main:has(.ceo-workbench) .topbar h2,
.main:has(.runs-page) .topbar h2 {
  margin: 0;
  color: var(--ent-text);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: none;
}

.topbar p,
.main:has(.ceo-workbench) .topbar p,
.main:has(.runs-page) .topbar p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--ent-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.top-actions {
  gap: 10px;
  margin-left: auto;
}

.main-content {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
}

.btn,
.btn.small,
button.btn {
  min-height: 36px;
  border: 1px solid var(--ent-border);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transform: none !important;
}

.btn:hover {
  border-color: #b7c6dc;
  background: #f8fbff;
  box-shadow: none;
}

.btn.primary,
.btn.success {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.btn.warn {
  border-color: #fedf89;
  background: #fffbeb;
  color: #b54708;
}

.field,
textarea.field,
select.field,
input.field {
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  color: var(--ent-text);
  font-weight: 500;
}

.field:focus,
textarea.field:focus {
  border-color: var(--ent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  transform: none;
}

.panel,
.flow-stage,
.table-panel,
.metric {
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: var(--ent-card);
  box-shadow: var(--shadow-soft);
}

.panel,
.flow-stage {
  padding: 16px;
}

.panel-head,
.section-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.panel-head h3,
.section-title h2,
.table-toolbar h3 {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--ent-text);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.panel-head p,
.section-title p,
.table-toolbar p,
.muted {
  color: var(--ent-muted);
  font-size: 13px;
  font-weight: 500;
}

.badge {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d0d8e5;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.badge.ok {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.badge.warn {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.badge.danger {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.badge.muted {
  border-color: #d0d5dd;
  background: #f8fafc;
  color: #667085;
}

.metrics {
  gap: 12px;
}

.metric {
  padding: 16px;
}

.metric span,
.metric small {
  color: var(--ent-muted);
  font-weight: 650;
}

.metric strong {
  color: var(--ent-text);
  font-size: 30px;
  font-weight: 850;
}

.table-toolbar {
  padding: 16px;
  border-bottom: 1px solid #edf1f7;
  background: #ffffff;
}

/* CEO Mission Desk - Product Design option B */
.ceo-workbench {
  display: grid;
  grid-template-columns: minmax(560px, 0.96fr) minmax(430px, 1.04fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ceo-main-column,
.ceo-inspector {
  display: grid;
  min-height: 0;
  overflow: auto;
  gap: 14px;
  padding: 0;
}

.ceo-main-column {
  grid-auto-rows: max-content;
}

.ceo-inspector {
  grid-auto-rows: max-content;
}

.ceo-brain-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ceo-brain-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.ceo-brain-head > div {
  display: flex;
  gap: 8px;
}

.ceo-brain-head strong {
  flex: 1;
  min-width: 0;
  color: var(--ent-text);
  font-size: 18px;
  font-weight: 850;
}

.ceo-brain-head small {
  color: var(--ent-muted);
  font-weight: 650;
}

.ceo-brain-request,
.ceo-brain-reply,
.ceo-brain-understanding,
.ceo-brain-blockers,
.mission-plan-card,
.ceo-reply-card {
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 13px 14px;
}

.ceo-brain-reply,
.ceo-brain-understanding {
  background: #fbfdff;
}

.ceo-brain-request span,
.mission-current-request span {
  color: var(--ent-primary);
  font-size: 12px;
  font-weight: 800;
}

.ceo-brain-request p,
.ceo-brain-reply p,
.ceo-brain-understanding p,
.ceo-brain-blockers p {
  margin: 6px 0 0;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

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

.ceo-brain-grid > div {
  min-height: 130px;
  padding: 14px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #ffffff;
}

.ceo-brain-grid b {
  display: block;
  margin-bottom: 10px;
  color: var(--ent-text);
  font-size: 14px;
}

.ceo-brain-grid span {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f7;
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
}

.ceo-brain-grid span:last-child {
  border-bottom: 0;
}

.mission-summary-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.blueprint-head {
  gap: 8px;
  margin-bottom: 8px;
}

.mission-summary-panel h3 {
  margin: 0 0 8px;
  color: var(--ent-text);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.mission-summary-panel p {
  color: var(--ent-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.mission-current-request {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
}

.mission-summary-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mission-summary-side > div {
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #ffffff;
}

.mission-summary-side strong {
  color: var(--ent-text);
  font-size: 13px;
}

.mission-summary-side p {
  margin: 6px 0 0;
  font-size: 13px;
}

.workflow-canvas {
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.workflow-canvas-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.workflow-canvas-head h3 {
  margin: 0;
  color: var(--ent-text);
  font-size: 17px;
  font-weight: 850;
}

.workflow-canvas-head p {
  color: var(--ent-muted);
  font-size: 13px;
  font-weight: 500;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  overflow: visible;
}

.agent-node {
  min-height: 168px;
  padding: 14px;
  border: 1px solid #e4eaf3;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
  transform: none !important;
}

.agent-node.ceo-node {
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.agent-node.return-node {
  background: #f8fafc;
}

.agent-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #d0d8e5;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
  color: var(--ent-primary);
  font-weight: 850;
}

.agent-node strong {
  color: var(--ent-text);
  font-size: 15px;
  font-weight: 850;
}

.agent-node small,
.agent-node p {
  color: var(--ent-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.worker-run-timer {
  color: var(--ent-primary);
  font-size: 12px;
  font-weight: 750;
}

.artifact-board {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.artifact-board .section-title {
  margin-bottom: 2px;
}

.artifact-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.artifact-card,
.delivery-launch,
.watch-confirm-card,
.mission-deliverable-overview {
  border: 1px solid #e4eaf3;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
}

.inspector-command-panel {
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ceo-command-copy {
  margin-bottom: 12px;
}

.ceo-command-copy h3 {
  margin: 8px 0 4px;
  color: var(--ent-text);
  font-size: 17px;
  font-weight: 850;
}

.ceo-command-copy p {
  color: var(--ent-muted);
  font-size: 13px;
  font-weight: 500;
}

.ceo-command-form {
  display: grid;
  gap: 12px;
}

.ceo-command-form .mission-input {
  min-height: 118px;
  resize: vertical;
}

.ceo-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ceo-context-line {
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ent-muted);
  font-size: 12px;
  font-weight: 600;
}

.worker-queue-panel,
.mission-history-panel {
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.worker-queue {
  display: grid;
  gap: 9px;
  max-height: 240px;
  overflow: auto;
}

.worker-queue-item {
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.mission-stack {
  max-height: 250px;
  overflow: auto;
}

/* Watch Mission page - Product Design option C */
.layout:has(.watch-grid) .sidebar {
  background: linear-gradient(180deg, #0f1b2e, #14243a);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.layout:has(.watch-grid) .brand h1,
.layout:has(.watch-grid) .nav button span,
.layout:has(.watch-grid) .side-note strong {
  color: #ffffff;
}

.layout:has(.watch-grid) .brand span,
.layout:has(.watch-grid) .nav button small,
.layout:has(.watch-grid) .side-note p {
  color: rgba(255, 255, 255, 0.62);
}

.layout:has(.watch-grid) .brand {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.layout:has(.watch-grid) .nav button {
  color: rgba(255, 255, 255, 0.76);
}

.layout:has(.watch-grid) .nav button.active {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(37, 99, 235, 0.18);
  color: #7dd3fc;
}

.layout:has(.watch-grid) .side-note,
.layout:has(.watch-grid) .sidebar-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.watch-dashboard,
.watch-side-list {
  min-height: 0;
  overflow: auto;
}

.watch-dashboard {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.watch-dashboard > .table-toolbar {
  margin-bottom: 14px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.watch-visual-board {
  display: grid;
  gap: 14px;
}

.watch-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ent-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-hero-card h3 {
  margin: 10px 0 6px;
  color: var(--ent-text);
  font-size: 25px;
  font-weight: 880;
  letter-spacing: -0.02em;
}

.watch-hero-card p {
  margin: 0;
  color: var(--ent-muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.watch-kpi-grid > div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-kpi-grid strong {
  display: block;
  color: var(--ent-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.watch-kpi-grid span {
  display: block;
  margin-top: 8px;
  color: var(--ent-muted);
  font-size: 12px;
  font-weight: 650;
}

.watch-chart-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
}

.watch-pie,
.watch-bars {
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-pie {
  display: grid;
  place-items: center;
  min-height: 160px;
  background:
    radial-gradient(circle at center, #fff 0 47%, transparent 48%),
    conic-gradient(#f04438 0 var(--high), #f79009 var(--high) calc(var(--high) + var(--medium)), #12b76a 0);
}

.watch-pie strong {
  color: var(--ent-text);
  font-size: 32px;
}

.watch-pie span {
  color: var(--ent-muted);
  font-size: 12px;
  font-weight: 700;
}

.watch-bars {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
}

.watch-bar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.watch-bar div {
  display: grid;
  gap: 2px;
}

.watch-bar strong {
  color: var(--ent-text);
  font-size: 13px;
}

.watch-bar span {
  color: var(--ent-muted);
  font-size: 12px;
}

.watch-bar i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.watch-bar i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--ent-primary);
}

.watch-bar.danger i::before {
  background: #f04438;
}

.watch-bar.warn i::before {
  background: #f79009;
}

.watch-bar.ok i::before {
  background: #12b76a;
}

.watch-report {
  padding: 18px;
  border: 1px solid var(--ent-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-report-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.watch-report-head strong {
  color: var(--ent-text);
  font-size: 17px;
  font-weight: 850;
}

.watch-report > p {
  color: var(--ent-muted);
  font-size: 14px;
  line-height: 1.55;
}

.watch-delivery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #f8fafc;
}

.watch-delivery-strip span {
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.watch-report-items {
  display: grid;
  gap: 0;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  overflow: hidden;
}

.watch-report-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f7;
  background: #ffffff;
}

.watch-report-item:last-child {
  border-bottom: 0;
}

.watch-report-item strong {
  color: var(--ent-text);
  font-size: 14px;
  font-weight: 850;
}

.watch-report-item p {
  margin: 4px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.watch-report-item small {
  display: block;
  color: var(--ent-muted);
  font-size: 12px;
  line-height: 1.45;
}

.watch-next-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.watch-next-actions span {
  padding: 10px 12px;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
}

.watch-run-history,
.watch-side-list {
  padding: 16px;
  border: 1px solid var(--ent-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.watch-side-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 0.72fr);
  gap: 12px;
}

.watch-list,
.watch-run-stack {
  min-height: 0;
  overflow: auto;
}

.watch-card,
.tool-run-card {
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.watch-card.selected {
  border-color: #93c5fd;
  background: #f8fbff;
}

.watch-card h4,
.tool-run-card strong {
  color: var(--ent-text);
  font-size: 14px;
  font-weight: 800;
}

.watch-meta-grid {
  display: grid;
  gap: 6px;
}

.watch-meta-grid span,
.row-meta {
  color: var(--ent-muted);
  font-size: 12px;
}

.watch-empty-dashboard,
.empty,
.compact-empty {
  border: 1px dashed #cfd8e6;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ent-muted);
  box-shadow: none;
}

.readme-modal-card,
.manifest-modal-card {
  border: 1px solid var(--ent-border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

@media (max-width: 1180px) {
  .ceo-workbench,
  .watch-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .main-content {
    overflow: auto;
  }

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

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

/* Enterprise cleanup: suppress legacy bootcamp highlight remnants. */
.main {
  grid-template-rows: 88px minmax(0, 1fr) !important;
}

.topbar,
.main:has(.ceo-workbench) .topbar,
.main:has(.runs-page) .topbar {
  min-height: 88px !important;
  overflow: hidden !important;
}

.topbar h2,
.main:has(.ceo-workbench) .topbar h2,
.main:has(.runs-page) .topbar h2,
.section-title h2,
.panel-head h3,
.table-toolbar h3,
.workflow-canvas-head h3,
.artifact-board h2,
.artifact-board h3,
.watch-dashboard h3,
.watch-side-list h3 {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.layout:has(.watch-grid) .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
}

.watch-card.selected,
.watch-card.selected::before,
.watch-card.selected::after {
  outline: 0 !important;
  border-style: solid !important;
  box-shadow: none !important;
}

.watch-bar i,
.watch-bar i::before {
  border: 0 !important;
  box-shadow: none !important;
}

.delivery-launch,
.artifact-card,
.watch-confirm-card,
.mission-deliverable-overview,
.watch-report,
.watch-run-history,
.watch-side-list {
  transform: none !important;
}

.delivery-row,
.document-delivery-row,
.mission-plan-delivery-row,
.mission-deliverable-action-card,
.mission-plan-deliverables span,
.delivery-file-row span,
.artifact-chip-row span,
.artifact-mini-grid span,
.tool-run-card,
.doc-row,
.ticket,
.eval-case,
.inbox-item,
.profile-card,
.data-source-card {
  border: 1px solid #e4eaf3 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.delivery-row {
  padding: 16px !important;
}

.mission-deliverable-action-card,
.mission-plan-deliverables span,
.delivery-file-row span,
.artifact-chip-row span,
.artifact-mini-grid span {
  padding: 12px !important;
  border: 1px solid #e4eaf3 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #344054 !important;
  box-shadow: none !important;
  transform: none !important;
}

.delivery-file-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.delivery-row-head,
.delivery-link-grid,
.delivery-time-strip,
.document-detail-grid,
.email-delivery-mini,
.document-validation-mini,
.mission-plan-delivery-grid {
  border-color: #e4eaf3 !important;
  box-shadow: none !important;
}

.delivery-link-grid > div,
.document-detail-grid > div,
.email-delivery-mini > div,
.document-validation-mini > div {
  border: 1px solid #edf1f7 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  min-width: 0;
}

.delivery-row code,
.delivery-link-grid code,
.document-detail-grid code,
.email-delivery-mini code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rows,
.paged-rows,
.delivery-list,
.runs-scroll,
.watch-run-history-list,
.watch-run-stack,
.mission-stack {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.rows::-webkit-scrollbar,
.paged-rows::-webkit-scrollbar,
.delivery-list::-webkit-scrollbar,
.runs-scroll::-webkit-scrollbar,
.watch-run-history-list::-webkit-scrollbar,
.watch-run-stack::-webkit-scrollbar,
.mission-stack::-webkit-scrollbar {
  width: 8px;
}

.rows::-webkit-scrollbar-thumb,
.paged-rows::-webkit-scrollbar-thumb,
.delivery-list::-webkit-scrollbar-thumb,
.runs-scroll::-webkit-scrollbar-thumb,
.watch-run-history-list::-webkit-scrollbar-thumb,
.watch-run-stack::-webkit-scrollbar-thumb,
.mission-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.chat-window,
.trace,
.runs-scroll {
  border: 1px solid var(--ent-border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.message {
  border: 1px solid #e4eaf3 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transform: none !important;
}

.message.customer {
  background: #eff6ff !important;
}

.message.ai,
.message.human {
  background: #ffffff !important;
}

.mission-deliverable-actions,
.wireframe-card,
.api-route,
.qa-test,
.qa-candidate,
.data-model,
.file-plan,
.feature-request,
.bug-report,
.status-badge,
.artifact-detail summary {
  border: 1px solid #e4eaf3 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #344054 !important;
  transform: none !important;
}

.mission-deliverable-actions {
  padding: 16px !important;
}

.status-badge {
  min-height: 24px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.status-badge.done,
.status-badge.completed {
  border-color: #abefc6 !important;
  background: #ecfdf3 !important;
  color: #067647 !important;
}

.status-badge.running {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.status-badge.waiting,
.status-badge.queued {
  border-color: #fedf89 !important;
  background: #fffaeb !important;
  color: #b54708 !important;
}

.artifact-detail summary {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-weight: 750 !important;
}

.wireframe-block.visual-block.panel {
  border: 1px solid #edf1f7 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

/* Pixel reference rebuild v2: enterprise shell + B/C internal layouts */
html,
body,
#app,
.app-shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #f5f7fb;
  color: #111827;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.enterprise-app {
  --shell-bg: #f5f7fb;
  --panel: #ffffff;
  --line: #dfe7f2;
  --line-soft: #edf2f8;
  --ink: #111827;
  --muted: #667085;
  --blue: #2563eb;
  --blue-dark: #155eef;
  --blue-soft: #eef4ff;
  --green: #12b76a;
  --green-soft: #ecfdf3;
  --orange: #f79009;
  --orange-soft: #fffaeb;
  --red: #f04438;
  --red-soft: #fef3f2;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--shell-bg);
  letter-spacing: 0;
}

.globalbar {
  position: relative;
  z-index: 1000;
  display: grid;
  grid-template-columns: 268px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 74px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  backdrop-filter: blur(16px);
}

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

.global-brand img {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.global-brand-logo {
  display: block;
  max-height: 44px;
}

.global-brand strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
}

.global-brand span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
}

.workspace-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.workspace-switch span {
  display: block;
  margin-bottom: 3px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.workspace-switch strong {
  display: block;
  max-width: 118px;
  overflow: hidden;
  color: #1d2939;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switch i {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #667085;
  border-bottom: 1.5px solid #667085;
  transform: rotate(45deg) translateY(-2px);
}

.global-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
  margin-left: 0;
}

.global-link,
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.global-link.active {
  color: var(--blue);
  font-weight: 850;
}

.top-icon,
.nav-icon,
.tiny-icon,
.asset-icon,
.worker-icon,
.source-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.top-icon {
  width: 15px;
  height: 15px;
  border: 1.7px solid currentColor;
  border-radius: 5px;
}

.top-icon-api {
  border-radius: 2px 7px 2px 7px;
  transform: rotate(-18deg);
}

.top-icon-help {
  border-radius: 999px;
}

.top-icon-bell {
  width: 18px;
  height: 18px;
  border-radius: 10px 10px 4px 4px;
}

.global-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 10px;
  color: #344054;
}

.btn.subtle {
  min-height: 36px;
  border-color: #d7e0ec;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 122px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px 4px 4px;
  color: inherit;
  text-align: left;
}

.user-chip:hover,
.user-chip.active {
  background: #f2f4f7;
}

.user-chip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #22b8b0;
  color: #ffffff;
  font-weight: 850;
}

.user-chip strong,
.user-chip small {
  display: block;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  color: #1d2939;
  font-size: 13px;
}

.user-chip small {
  color: #667085;
  font-size: 11px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1200;
  width: 262px;
  padding: 8px;
  border: 1px solid rgba(208, 213, 221, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.account-menu-account {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 8px 8px;
}

.account-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef4ff;
  color: #155eef;
  font-size: 13px;
  font-weight: 850;
}

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

.account-menu-account strong {
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.account-menu-account small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 11px;
}

.account-menu-divider {
  height: 1px;
  margin: 5px 0;
  background: #eaecf0;
}

.account-menu-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #1d2939;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover {
  background: #f2f4f7;
}

.account-menu-item small {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 520;
}

.account-menu-item.danger {
  color: #344054;
}

.account-menu-icon {
  position: relative;
  width: 17px;
  height: 17px;
  color: #667085;
}

.account-menu-icon-user::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

.account-menu-icon-user::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: #ffffff;
}

.account-menu-icon-settings::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

.account-menu-icon-settings::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: currentColor;
}

.account-menu-icon-logout::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 8px;
  height: 9px;
  border: 1.7px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.account-menu-icon-logout::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 7px;
  width: 9px;
  height: 1.7px;
  background: currentColor;
  box-shadow: 3px -3px 0 -1px currentColor, 3px 3px 0 -1px currentColor;
}

.profile-center-page {
  gap: 16px;
}

.profile-center-page > .profile-grid {
  flex: 1 1 auto;
  min-height: 520px;
}

.settings-page {
  overflow: auto;
}

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

.settings-preference-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
}

.settings-preference-card h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
}

.settings-preference-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.settings-preference-card > span {
  align-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.settings-preference-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eef4ff;
  color: #2563eb;
}

.settings-preference-icon::before,
.settings-preference-icon::after {
  content: "";
  position: absolute;
}

.settings-preference-theme::before {
  inset: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  border-right-color: transparent;
}

.settings-preference-code::before {
  left: 10px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.settings-preference-code::after {
  right: 10px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.settings-preference-model::before {
  inset: 11px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.settings-preference-model::after {
  left: 16px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.settings-preference-shield::before {
  left: 12px;
  top: 9px;
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 14px 14px;
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}

@media (max-width: 1040px) {
  .settings-console-grid {
    grid-template-columns: 1fr;
  }
}

.enterprise-frame {
  display: grid;
  grid-template-columns: 211px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.enterprise-app.sidebar-collapsed .enterprise-frame {
  grid-template-columns: 72px minmax(0, 1fr);
}

.enterprise-app .sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 22px 12px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.enterprise-app .nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding: 0;
  scrollbar-width: none;
}

.enterprise-app .nav::-webkit-scrollbar {
  display: none;
}

.enterprise-app .nav button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #667085;
  text-align: left;
}

.enterprise-app .nav button::before {
  display: none;
}

.enterprise-app .nav button.active {
  border-color: #dbeafe;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.03));
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.enterprise-app .nav-icon {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--nav-mask) center / contain no-repeat;
  mask: var(--nav-mask) center / contain no-repeat;
}

.nav-icon-ceo { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2010.5%2012%203l9%207.5'/%3E%3Cpath%20d='M5%2010v10h14V10'/%3E%3Cpath%20d='M9%2020v-6h6v6'/%3E%3C/svg%3E"); }
.nav-icon-chat { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a4%204%200%200%201-4%204H8l-5%203V7a4%204%200%200%201%204-4h10a4%204%200%200%201%204%204z'/%3E%3C/svg%3E"); }
.nav-icon-runs { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M12%207v6l4%202'/%3E%3C/svg%3E"); }
.nav-icon-tickets { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%205h16v14H4z'/%3E%3Cpath%20d='M8%209h8M8%2013h5'/%3E%3C/svg%3E"); }
.nav-icon-knowledge { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2019.5A2.5%202.5%200%200%201%206.5%2017H20'/%3E%3Cpath%20d='M4%204.5A2.5%202.5%200%200%201%206.5%202H20v20H6.5A2.5%202.5%200%200%201%204%2019.5z'/%3E%3C/svg%3E"); }
.nav-icon-eval { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2011%203%203L22%204'/%3E%3Cpath%20d='M21%2012v7a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11'/%3E%3C/svg%3E"); }
.nav-icon-deliveries { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m21%208-9-5-9%205%209%205%209-5Z'/%3E%3Cpath%20d='M3%208v8l9%205%209-5V8'/%3E%3Cpath%20d='M12%2013v8'/%3E%3C/svg%3E"); }
.nav-icon-inbox { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2012h-6l-2%203h-4l-2-3H2'/%3E%3Cpath%20d='M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z'/%3E%3C/svg%3E"); }
.nav-icon-watch { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3Cpath%20d='M12%202v4M12%2018v4M2%2012h4M18%2012h4M4.93%204.93l2.83%202.83M16.24%2016.24l2.83%202.83M19.07%204.93l-2.83%202.83M7.76%2016.24l-2.83%202.83'/%3E%3C/svg%3E"); }
.nav-icon-profile { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='8'%20r='4'/%3E%3Cpath%20d='M4%2020a8%208%200%200%201%2016%200'/%3E%3C/svg%3E"); }

.top-icon {
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--top-mask) center / contain no-repeat;
  mask: var(--top-mask) center / contain no-repeat;
}

.top-icon-workflow { --top-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%207h10v10H7z'/%3E%3Cpath%20d='M3%2012h4M17%2012h4M12%203v4M12%2017v4'/%3E%3C/svg%3E"); }
.top-icon-doc { --top-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z'/%3E%3Cpath%20d='M14%202v6h6M8%2013h8M8%2017h6'/%3E%3C/svg%3E"); }
.top-icon-api { --top-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E"); transform: none; }
.top-icon-help { --top-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='M9.09%209a3%203%200%200%201%205.83%201c0%202-3%202-3%204'/%3E%3Cpath%20d='M12%2017h.01'/%3E%3C/svg%3E"); }
.top-icon-bell { --top-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%208a6%206%200%200%200-12%200c0%207-3%207-3%209h18c0-2-3-2-3-9'/%3E%3Cpath%20d='M13.73%2021a2%202%200%200%201-3.46%200'/%3E%3C/svg%3E"); border-radius: 0; }

.enterprise-app .nav-text {
  min-width: 0;
}

.enterprise-app .nav-text strong,
.enterprise-app .nav-text small {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .nav-text strong {
  color: inherit;
  font-size: 14px;
  font-weight: 830;
}

.enterprise-app .nav-text small {
  margin-top: 3px;
  color: inherit;
  font-size: 11px;
  font-weight: 620;
  opacity: 0.78;
}

.enterprise-app.sidebar-collapsed .nav button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 10px;
}

.enterprise-app.sidebar-collapsed .nav-text,
.enterprise-app.sidebar-collapsed .user-chip div,
.enterprise-app.sidebar-collapsed .workspace-switch {
  display: none;
}

.enterprise-app .sidebar-toggle {
  position: static;
  width: 100%;
  height: 42px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  box-shadow: none;
  font-size: 13px;
  font-weight: 760;
}

.enterprise-app .sidebar-toggle::before {
  content: "";
}

.pixel-ceo-command {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pixel-ceo-command h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.pixel-ceo-form {
  position: relative;
  display: grid;
  gap: 0;
}

.pixel-ceo-form .mission-input {
  width: 100%;
  min-height: 128px !important;
  padding: 14px 14px 48px;
  border: 1.5px solid #84adff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.05);
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
  resize: none;
}

.pixel-command-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.pixel-command-actions > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pixel-command-actions .btn {
  pointer-events: auto;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 11px;
}

.pixel-command-actions .btn.primary {
  min-height: 37px;
  padding: 0 18px;
  border-color: transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  font-size: 13px;
}

.enterprise-app .main {
  display: block;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--shell-bg);
}

.enterprise-app .main-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 16px 9px 16px 15px;
}

.enterprise-app .main-content > section:not(.ceo-mission-desk):not(.watch-console-page) {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.ceo-mission-desk {
  display: grid;
  grid-template-columns: 606px 584px 44px;
  gap: 7px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mission-desk-column,
.mission-ops-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  gap: 12px;
  padding: 0;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.enterprise-app .ceo-mission-desk .mission-desk-column {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-column > .mission-desk-card {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-column > .inspector-command-panel {
  flex: 0 0 auto;
}

.mission-desk-column::-webkit-scrollbar,
.mission-ops-column::-webkit-scrollbar,
.rail-list::-webkit-scrollbar,
.watch-command-panel::-webkit-scrollbar,
.compact-watch-rows::-webkit-scrollbar {
  width: 8px;
}

.mission-desk-column::-webkit-scrollbar-thumb,
.mission-ops-column::-webkit-scrollbar-thumb,
.rail-list::-webkit-scrollbar-thumb,
.watch-command-panel::-webkit-scrollbar-thumb,
.compact-watch-rows::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.enterprise-card,
.enterprise-subcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.mission-desk-card,
.operations-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.mission-desk-card {
  justify-content: flex-start;
}

.desk-section-head,
.subcard-head,
.desk-block-head,
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.desk-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 880;
  line-height: 1.15;
}

.desk-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.soft-pill,
.enterprise-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.soft-pill.purple {
  border-color: #ddd6fe;
  background: #eef2ff;
  color: #4f46e5;
}

.soft-pill.green,
.enterprise-status.ok {
  border-color: #abefc6;
  background: var(--green-soft);
  color: #067647;
}

.enterprise-status.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #175cd3;
}

.enterprise-status.warn {
  border-color: #fedf89;
  background: var(--orange-soft);
  color: #b54708;
}

.enterprise-status.danger {
  border-color: #fecdca;
  background: var(--red-soft);
  color: #b42318;
}

.enterprise-status.muted {
  border-color: #e4e7ec;
  background: #f9fafb;
  color: #667085;
}

.ceo-desk-block {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.mission-desk-card > .ceo-desk-block {
  min-height: 91px;
}

.mission-desk-card > .ceo-desk-block:nth-of-type(2) {
  min-height: 80px;
}

.desk-block-icon,
.tiny-icon,
.asset-icon,
.worker-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.desk-block-icon::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--desk-icon) center / contain no-repeat;
  mask: var(--desk-icon) center / contain no-repeat;
}

.icon-brain,
.tiny-icon.recent {
  color: #4f46e5;
  --desk-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205a3%203%200%200%200-5.83%201%203.5%203.5%200%200%200-2.06%205.64%203.5%203.5%200%200%200%20.93%206.14A3%203%200%200%200%2010%2019V5Z'/%3E%3Cpath%20d='M12%205a3%203%200%200%201%205.83%201%203.5%203.5%200%200%201%202.06%205.64%203.5%203.5%200%200%201-.93%206.14A3%203%200%200%201%2014%2019V5Z'/%3E%3Cpath%20d='M8%2010h.01M16%2010h.01M9%2015h6'/%3E%3C/svg%3E");
  border-radius: 999px;
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px #c7d2fe;
}

.icon-input,
.tiny-icon.queue {
  color: #7c3aed;
  --desk-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a4%204%200%200%201-4%204H8l-5%203V7a4%204%200%200%201%204-4h10a4%204%200%200%201%204%204z'/%3E%3Cpath%20d='M8%209h8M8%2013h5'/%3E%3C/svg%3E");
  background: #f4f3ff;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}

.icon-verify,
.tiny-icon.blocker,
.tiny-icon.approval {
  color: #079455;
  --desk-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3Cpath%20d='M21%2012a9%209%200%201%201-3.6-7.2'/%3E%3C/svg%3E");
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px #abefc6;
}

.icon-dot {
  --desk-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='black'%3E%3Ccircle%20cx='12'%20cy='12'%20r='6'/%3E%3C/svg%3E");
}

.desk-block-body {
  min-width: 0;
}

.desk-block-head strong,
.subcard-head h3 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.ceo-desk-block p,
.enterprise-subcard p {
  margin: 7px 0 0;
  color: #344054;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.ceo-desk-block time {
  color: #98a2b3;
  font-size: 11px;
  white-space: nowrap;
}

.ghost-link,
.text-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.enterprise-subcard {
  padding: 12px;
}

.plan-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.plan-table span {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line-soft);
}

.plan-table span:last-child {
  border-right: 0;
}

.plan-table small,
.worker-task-card dt,
.enterprise-table .table-head,
.risk-head {
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.plan-table strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-tags,
.simple-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.task-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.task-split-card {
  flex: 0 0 244px;
  overflow: hidden;
}

.worker-task-card {
  min-width: 0;
  height: 188px;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.worker-card-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.worker-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-card-head small {
  display: block;
  color: #667085;
  font-size: 10px;
}

.worker-icon-design {
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px #c7d2fe;
}

.worker-icon-code {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.worker-icon-qa {
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px #abefc6;
}

.worker-icon-cs {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.worker-task-card dl {
  display: grid;
  gap: 10px;
  margin: 13px 0 9px;
}

.worker-task-card dt,
.worker-task-card dd {
  margin: 0;
}

.worker-task-card dd {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.worker-task-card dl div:nth-child(2) dd {
  -webkit-line-clamp: 2;
}

.enterprise-empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  border: 1px dashed #d5ddea;
  border-radius: 10px;
  color: #667085;
  text-align: center;
}

.enterprise-empty-state.compact {
  min-height: 82px;
  padding: 14px;
}

.enterprise-empty-state strong {
  color: #111827;
  font-size: 14px;
}

.enterprise-empty-state p {
  max-width: 520px;
  margin: 7px auto 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.enterprise-table {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.enterprise-table .table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) 100px 92px 106px 82px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #344054;
  font-size: 12px;
}

.enterprise-table .table-row:last-child {
  border-bottom: 0;
}

.enterprise-table strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-queue-table .table-row {
  grid-template-columns: minmax(180px, 1.4fr) 82px 88px 96px 96px;
}

.ops-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-ops-card {
  min-height: 180px;
}

.center-empty {
  display: grid;
  place-items: center;
  min-height: 126px;
  color: #667085;
  text-align: center;
}

.success-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  border-radius: 999px;
}

.recent-run-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.recent-run-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #344054;
  font-size: 12px;
}

.recent-run-list time {
  color: #667085;
  font-size: 11px;
}

.approval-card {
  margin-top: 0;
}

.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.approval-row strong {
  color: #111827;
  font-size: 13px;
}

.approval-row p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.mission-history-rail {
  min-width: 0;
  min-height: 0;
}

.mission-rail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.rail-collapse {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
}

.mission-rail-card > strong {
  writing-mode: vertical-rl;
  color: #344054;
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.rail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
}

.rail-open {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 20px;
  line-height: 1;
}

.inspector-command-panel {
  flex: 0 0 auto;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03) !important;
}

.inspector-command-panel .mission-input {
  min-height: 122px !important;
  resize: none;
}

.watch-console-page {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 326px;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.watch-console-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px 18px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.watch-command-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.watch-board {
  display: grid;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.watch-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.watch-board-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.watch-board-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.watch-board-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-chip {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-weight: 740;
}

.watch-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.watch-kpi-card {
  min-height: 110px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.watch-kpi-card span,
.watch-kpi-card small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 690;
}

.watch-kpi-card strong {
  display: block;
  margin: 11px 0 7px;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.watch-risk-card,
.watch-chart-card,
.watch-orchestration-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.watch-risk-card {
  padding: 16px;
}

.watch-risk-card .subcard-head h3 {
  font-size: 16px;
}

.watch-risk-card .subcard-head h3 span {
  color: #475467;
  font-size: 13px;
}

.risk-table {
  display: grid;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  scrollbar-width: thin;
}

.risk-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1.35fr) minmax(140px, 0.9fr) 120px 118px 110px 92px;
  align-items: center;
  gap: 12px;
  min-width: 940px;
  min-height: 56px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: #344054;
  font-size: 12px;
}

.risk-head span {
  white-space: nowrap;
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row strong,
.risk-row small {
  display: block;
}

.risk-row strong {
  color: #111827;
  font-weight: 850;
}

.risk-row small {
  margin-top: 3px;
  color: #667085;
  line-height: 1.35;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #eef2f6;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.rank-badge.danger {
  background: #f04438;
  color: #ffffff;
}

.rank-badge.warn {
  background: #f79009;
  color: #ffffff;
}

.mini-trend {
  position: relative;
  display: inline-block;
  width: 86px;
  height: 28px;
  background:
    linear-gradient(135deg, transparent 0 45%, currentColor 45% 52%, transparent 52%),
    linear-gradient(35deg, transparent 0 47%, currentColor 47% 54%, transparent 54%);
  color: #12b76a;
  opacity: 0.92;
}

.mini-trend.red {
  color: #f04438;
}

.mini-trend.orange {
  color: #f79009;
}

.watch-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.86fr;
  gap: 14px;
}

.watch-chart-card {
  min-height: 190px;
  padding: 14px;
}

.line-chart {
  position: relative;
  display: block;
  height: 126px;
  margin-top: 18px;
  padding: 8px 6px 0;
  background:
    linear-gradient(#edf2f8 1px, transparent 1px) 0 10px / 100% 28px;
  color: #2563eb;
}

.line-chart.green {
  color: #10b981;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-chart-area {
  fill: currentColor;
  opacity: 0.12;
}

.line-chart-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.16));
}

.line-chart.green .line-chart-path {
  filter: drop-shadow(0 8px 14px rgba(16, 185, 129, 0.16));
}

.line-chart-dot {
  fill: #ffffff;
  stroke: currentColor;
  stroke-width: 2.2;
}

.line-chart-summary {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.line-chart-summary strong {
  font-size: 13px;
  font-weight: 850;
}

.line-chart-summary span {
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
}

.line-chart-summary span.down {
  color: #ef4444;
}

.source-health-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.source-health-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.source-health-list strong {
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f2f4f7;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}

.source-douyin {
  background: linear-gradient(135deg, #111827 0 48%, #ff2d55 48% 62%, #00f2ea 62% 100%);
}

.source-email,
.source-mail,
.source-smtp {
  background: linear-gradient(135deg, #ecfdf3, #d1fadf);
}

.watch-orchestration-card {
  padding: 14px;
}

.orchestration-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.orchestration-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
}

.orchestration-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  color: #98a2b3;
  font-weight: 900;
}

.orchestration-node strong {
  margin-top: 6px;
  color: #111827;
  font-size: 13px;
}

.orchestration-node small {
  color: #667085;
  font-size: 11px;
}

.command-console-card {
  display: grid;
  gap: 12px;
  padding: 16px 12px;
}

.console-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 880;
}

.console-message,
.console-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.console-message > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111827;
  font-size: 13px;
}

.console-message time {
  color: #667085;
  font-size: 11px;
}

.console-message p {
  margin: 12px 0 10px;
  padding: 14px;
  border-radius: 8px;
  background: #eef4ff;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
}

.console-section h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.console-action-list,
.config-check-list,
.asset-action-list,
.compact-watch-rows {
  display: grid;
  gap: 8px;
}

.console-action-list span,
.config-check-list span,
.asset-action-list button,
.compact-watch-rows button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.console-action-list i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-style: normal;
  font-weight: 850;
}

.config-check-list span {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: #fedf89;
  background: #fffaeb;
}

.config-check-list span.ok {
  border-color: #abefc6;
  background: #ecfdf3;
}

.asset-action-list button {
  grid-template-columns: 30px minmax(0, 1fr);
  cursor: pointer;
}

.asset-action-list strong,
.asset-action-list small,
.compact-watch-rows strong,
.compact-watch-rows small {
  display: block;
}

.asset-action-list strong,
.asset-action-list small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.asset-action-list small,
.compact-watch-rows small {
  color: #667085;
  font-size: 11px;
}

.asset-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px #abefc6;
}

.compact-watch-list {
  min-height: 0;
}

.compact-watch-rows {
  max-height: 180px;
  overflow: auto;
}

.compact-watch-rows button {
  grid-template-columns: 1fr;
}

.compact-watch-rows button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.nav-icon-datasources { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cellipse%20cx='12'%20cy='5'%20rx='8'%20ry='3'/%3E%3Cpath%20d='M4%205v6c0%201.66%203.58%203%208%203s8-1.34%208-3V5'/%3E%3Cpath%20d='M4%2011v6c0%201.66%203.58%203%208%203s8-1.34%208-3v-6'/%3E%3C/svg%3E"); }
.nav-icon-integrations { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%2012h8'/%3E%3Cpath%20d='M12%208v8'/%3E%3Ccircle%20cx='6'%20cy='6'%20r='3'/%3E%3Ccircle%20cx='18'%20cy='6'%20r='3'/%3E%3Ccircle%20cx='6'%20cy='18'%20r='3'/%3E%3Ccircle%20cx='18'%20cy='18'%20r='3'/%3E%3C/svg%3E"); }
.nav-icon-customerService { --nav-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a4%204%200%200%201-4%204H8l-5%203V7a4%204%200%200%201%204-4h10a4%204%200%200%201%204%204z'/%3E%3Cpath%20d='M9%209h6M9%2013h4'/%3E%3Ccircle%20cx='18'%20cy='6'%20r='3'/%3E%3C/svg%3E"); }

.enterprise-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: auto;
  color: #111827;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.enterprise-page::-webkit-scrollbar {
  width: 8px;
}

.enterprise-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.page-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.page-title-row p {
  max-width: 780px;
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

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

.metric-strip article {
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.035);
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.metric-strip strong {
  display: block;
  margin: 10px 0 6px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.two-column-workspace {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 336px;
  gap: 14px;
  min-height: 0;
}

.source-list-card,
.integration-log-card {
  padding: 16px;
}

.data-source-table .table-row {
  grid-template-columns: minmax(220px, 1.35fr) 90px 112px 118px minmax(180px, 1fr);
}

.source-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  vertical-align: middle;
}

.source-mini-icon .brand-logo,
.source-mini-icon .brand-logo-stack,
.source-mini-icon .brand-icon,
.connector-icon .brand-logo,
.connector-icon .brand-logo-stack,
.connector-icon .brand-icon,
.integration-card-head .brand-logo,
.integration-card-head .brand-logo-stack,
.integration-card-head .brand-icon {
  width: 28px;
  height: 28px;
}

.connector-catalog {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.connector-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.connector-card.ready {
  border-color: #d1fadf;
}

.connector-card.blocked {
  border-color: #fedf89;
}

.connector-card strong,
.connector-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-card strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 850;
}

.connector-card small {
  grid-column: 2 / 4;
  grid-row: 2;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 620;
}

.connector-card .enterprise-status {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.connector-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.integration-card {
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.035);
}

.integration-card.ready {
  border-color: #d1fadf;
}

.integration-card.blocked {
  border-color: #fedf89;
}

.integration-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.integration-card h3 {
  margin: 16px 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.integration-card p {
  min-height: 40px;
  margin: 0 0 16px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.035);
}

.skill-card.ready {
  border-color: #bbf7d0;
}

.skill-card.blocked {
  border-color: #fde68a;
}

.skill-card-head,
.skill-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-card-head {
  justify-content: space-between;
}

.skill-card strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.skill-card p,
.skill-card small {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.skill-card small {
  min-height: 32px;
}

.skill-card > small:not(.skill-next-clean) {
  display: none;
}

.skill-card .skill-next-clean {
  display: block;
}

.skill-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

.skill-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d8e2f2;
  border-radius: 10px;
  background: #f8fbff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.skill-icon::before,
.skill-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.skill-icon-grid::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 8px 0 0 -5px currentColor, 0 8px 0 -5px currentColor, 8px 8px 0 -5px currentColor;
}

.skill-icon-mail::before {
  width: 18px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.skill-icon-mail::after {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.skill-icon-doc::before {
  width: 15px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.skill-icon-doc::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.skill-icon-search::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}

.skill-icon-search::after {
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(7px, 8px) rotate(45deg);
}

.skill-icon-check::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.skill-icon-check::after {
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(1px, -1px) rotate(-45deg);
}

.skill-icon-cloud::before {
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translateY(3px);
}

.skill-icon-cloud::after {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-3px, -3px) rotate(25deg);
}

.skill-icon-bell::before {
  width: 15px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
}

.skill-icon-bell::after {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(9px);
}

.skill-icon-pulse::before {
  width: 20px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-22deg);
}

.skill-icon-video::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: translateX(-2px);
}

.skill-icon-video::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  transform: translateX(9px);
}

.skill-icon-share::before {
  width: 20px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-2px, 2px) rotate(-18deg);
}

.skill-icon-share::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 13px -5px 0 currentColor, 5px 8px 0 currentColor;
}

.skill-icon-lock::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: translateY(4px);
}

.skill-icon-lock::after {
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-5px);
}

.skill-icon-mail,
.skill-icon-doc {
  color: #0ea5e9;
}

.skill-icon-search,
.skill-icon-cloud {
  color: #2563eb;
}

.skill-icon-check,
.skill-icon-lock {
  color: #16a34a;
}

.skill-icon-bell,
.skill-icon-video {
  color: #f97316;
}

.skill-icon-pulse,
.skill-icon-share {
  color: #7c3aed;
}

.integration-log-card .enterprise-table .table-row {
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.5fr) 96px 126px 110px;
}

.enterprise-app .profile-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 336px;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.enterprise-app .profile-form,
.enterprise-app .profile-grid > .panel {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.enterprise-app .profile-form {
  padding: 18px;
}

.enterprise-app .profile-grid > .panel {
  padding: 16px;
}

.enterprise-app .profile-grid .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.enterprise-app .profile-grid .panel-head h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.enterprise-app .profile-grid .panel-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.enterprise-app .profile-hub {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.enterprise-app .profile-config-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px 10px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.035);
}

.enterprise-app .profile-config-card.ready {
  border-color: #d1fadf;
  background: #ffffff;
}

.enterprise-app .profile-config-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f8fafc;
  box-shadow: none;
}

.enterprise-app .profile-config-card strong {
  align-self: center;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.enterprise-app .profile-config-card small {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}

.enterprise-app .profile-config-card em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.enterprise-app .profile-config-card.ready em {
  border-color: #abefc6;
  background: var(--green-soft);
  color: #067647;
}

.enterprise-app .settings-section,
.enterprise-app .profile-config-page .settings-section,
.enterprise-app .notification-center,
.enterprise-app .data-source-center {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.enterprise-app .settings-section {
  padding: 16px;
}

.enterprise-app .profile-grid .field {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.worker-avatar-thumb {
  display: inline-block;
  width: 38px;
  height: 38px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 3px 5px rgba(16, 24, 40, 0.12));
}

.worker-avatar-thumb.ceo { background-image: url("/assets/agents/ceo.png"); }
.worker-avatar-thumb.design { background-image: url("/assets/agents/design.png"); }
.worker-avatar-thumb.code { background-image: url("/assets/agents/code.png"); }
.worker-avatar-thumb.qa { background-image: url("/assets/agents/qa.png"); }
.worker-avatar-thumb.cs { background-image: url("/assets/agents/cs.png"); }
.worker-avatar-thumb.ceo.running { background-image: url("/assets/agents/ceo-work.png"); }
.worker-avatar-thumb.design.running { background-image: url("/assets/agents/design-work.png"); }
.worker-avatar-thumb.code.running { background-image: url("/assets/agents/code-work.png"); }
.worker-avatar-thumb.qa.running { background-image: url("/assets/agents/qa-work.png"); }
.worker-avatar-thumb.cs.running { background-image: url("/assets/agents/cs-work.png"); }

.worker-avatar-thumb.running {
  animation: workerAvatarPulse 1.1s ease-in-out infinite;
}

.worker-avatar-thumb.done {
  transform: translateY(1px);
}

@keyframes workerAvatarPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.04); }
}

.worker-card-head {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.worker-task-card {
  height: auto;
  min-height: 184px;
  overflow: visible;
}

.task-split-card {
  flex: 0 0 auto;
  overflow: visible;
}

.enterprise-app .ceo-mission-desk .mission-desk-column > .mission-desk-card {
  overflow: auto !important;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.watch-board-actions .btn,
.watch-board-actions .date-chip {
  flex: 0 0 auto;
  min-width: max-content;
}

.watch-board-actions {
  flex-wrap: nowrap;
}

.watch-signals-modal {
  width: min(1040px, calc(100vw - 64px));
}

.enterprise-app .capability-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.enterprise-app .capability-card,
.enterprise-app .capability-card.ready,
.enterprise-app .capability-card.blocked {
  min-height: auto;
  padding: 14px 14px 14px 46px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.enterprise-app .capability-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f79009;
  box-shadow: 0 0 0 4px #fffaeb;
}

.enterprise-app .capability-card.ready::before {
  background: #12b76a;
  box-shadow: 0 0 0 4px #ecfdf3;
}

.enterprise-app .capability-card strong {
  display: block;
  margin: 0 0 5px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.enterprise-app .capability-card p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}

.mission-detail-modal {
  width: min(920px, calc(100vw - 64px));
}

.mission-detail-grid {
  display: grid;
  gap: 12px;
}

.mission-detail-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.mission-detail-row strong {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mission-detail-row span,
.mission-detail-row pre {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.watch-signals-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.signal-row {
  display: grid;
  grid-template-columns: 96px minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(220px, 1fr) 116px;
  gap: 12px;
  align-items: center;
  min-width: 920px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #344054;
  font-size: 12px;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-head {
  min-height: 40px;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 820;
}

.signal-head span {
  white-space: nowrap;
}

.signal-row strong,
.signal-row small {
  display: block;
  min-width: 0;
}

.signal-row strong {
  color: #111827;
  font-weight: 850;
}

.signal-row small {
  margin-top: 4px;
  color: #667085;
  font-weight: 560;
  line-height: 1.35;
}

@media (max-width: 1360px) {
  .globalbar {
    grid-template-columns: 250px 150px minmax(260px, 1fr) auto;
    gap: 14px;
  }

  .global-links {
    gap: 14px;
  }

  .ceo-mission-desk {
    grid-template-columns: minmax(520px, 1fr) minmax(460px, 0.86fr) 50px;
  }

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

  .watch-console-page {
    grid-template-columns: minmax(680px, 1fr) 306px;
  }

  .watch-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .watch-analytics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mission desk viewport fit: match the reference layout where the input stays visible in one screen. */
.enterprise-app .ceo-mission-desk {
  grid-template-columns: minmax(560px, 0.98fr) minmax(560px, 1fr) 44px;
  gap: 10px;
}

.enterprise-app .ceo-mission-desk .mission-desk-column,
.enterprise-app .ceo-mission-desk .mission-ops-column {
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  display: grid !important;
  grid-template-rows: auto minmax(66px, 0.66fr) minmax(60px, 0.58fr) auto auto minmax(126px, 0.82fr) auto;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head h2 {
  font-size: 17px;
}

.enterprise-app .ceo-mission-desk .desk-section-head p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block {
  min-height: 0 !important;
  padding: 10px;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.enterprise-app .ceo-mission-desk .mission-plan-table {
  padding: 10px;
}

.enterprise-app .ceo-mission-desk .plan-table {
  margin-top: 8px;
}

.enterprise-app .ceo-mission-desk .plan-table span {
  padding: 8px;
}

.enterprise-app .ceo-mission-desk .verifier-block {
  align-items: start;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  gap: 8px;
  margin-top: 8px;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  height: 126px;
  padding: 9px;
}

.enterprise-app .ceo-mission-desk .worker-avatar-thumb {
  width: 28px;
  height: 28px;
}

.enterprise-app .ceo-mission-desk .worker-task-card dl {
  gap: 6px;
  margin: 8px 0 6px;
}

.enterprise-app .ceo-mission-desk .worker-task-card dd {
  -webkit-line-clamp: 2;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  min-height: 0;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
  margin-bottom: 7px;
  font-size: 13px;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  min-height: 108px !important;
  padding-bottom: 44px;
}

.enterprise-app .ceo-mission-desk .operations-center {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .operations-table-card {
  min-height: 0;
}

.enterprise-app .ceo-mission-desk .operations-center .enterprise-table {
  margin-top: 8px;
}

.integration-page .page-title-row {
  align-items: center;
}

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

.integration-page .integration-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.integration-command-page {
  overflow: hidden;
}

.integration-command-page .page-title-row {
  padding: 14px 16px;
}

.integration-command-page .page-title-row h1 {
  font-size: 21px;
}

.integration-command-page .page-title-row p {
  max-width: 680px;
  margin-top: 5px;
}

.integration-health-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.integration-health-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.integration-health-strip strong {
  margin-right: 4px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.integration-command-grid {
  display: grid;
  grid-template-columns: 348px minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.integration-left-rail,
.integration-skill-console {
  min-height: 0;
}

.integration-left-rail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.integration-summary-card,
.integration-core-card,
.integration-skill-console,
.integration-log-compact {
  padding: 14px;
}

.integration-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.integration-summary-head h3 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.integration-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.integration-metric-grid div {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.integration-metric-grid strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.integration-metric-grid span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.integration-compact-list,
.skill-compact-list,
.integration-run-list {
  display: grid;
  gap: 8px;
}

.integration-compact-list,
.skill-compact-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.integration-core-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.integration-core-card .integration-compact-list {
  flex: 1 1 auto;
  margin-top: 10px;
}

.integration-connector-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #ffffff;
}

.integration-connector-row.ready {
  background: linear-gradient(90deg, #f0fdf4, #ffffff 38%);
}

.integration-connector-row.blocked {
  background: linear-gradient(90deg, #fff7ed, #ffffff 42%);
}

.integration-connector-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fbff;
}

.integration-connector-row strong,
.skill-compact-row strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-connector-row p,
.skill-compact-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.integration-skill-console {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.integration-skill-console .subcard-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.integration-skill-console .subcard-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.skill-compact-list {
  flex: 1 1 auto;
  margin-top: 10px;
}

.skill-compact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.skill-compact-row.ready {
  border-color: #d1fadf;
}

.skill-compact-row.blocked {
  border-color: #fedf89;
}

.skill-compact-row.disabled {
  opacity: 0.62;
}

.skill-compact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.skill-compact-main {
  min-width: 0;
}

.skill-compact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.integration-log-compact {
  flex: 0 0 auto;
}

.integration-run-list {
  margin-top: 10px;
}

.integration-run-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.6fr) auto 78px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #ffffff;
}

.integration-run-row strong,
.integration-run-row span,
.integration-run-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-run-row strong {
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.integration-run-row span,
.integration-run-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 1280px) {
  .integration-command-grid {
    grid-template-columns: 316px minmax(0, 1fr);
    gap: 10px;
  }

  .integration-summary-card,
  .integration-core-card,
  .integration-skill-console,
  .integration-log-compact {
    padding: 11px;
  }

  .integration-connector-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 52px;
  }

  .integration-connector-row > .ghost-link {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .skill-compact-row {
    min-height: 58px;
    padding: 8px;
  }

  .skill-compact-row p {
    -webkit-line-clamp: 1;
  }

  .integration-run-row {
    grid-template-columns: minmax(130px, 1fr) minmax(160px, 1.4fr) auto;
  }

  .integration-run-row small {
    display: none;
  }
}

@media (max-height: 820px) and (min-width: 1024px) {
  .integration-command-page .page-title-row {
    padding: 10px 14px;
  }

  .integration-command-page .page-title-row p {
    display: none;
  }

  .integration-metric-grid div {
    padding: 8px;
  }

  .integration-metric-grid strong {
    font-size: 20px;
  }

  .integration-connector-row {
    min-height: 48px;
    padding: 7px 8px;
  }

  .skill-compact-row {
    min-height: 52px;
  }

  .integration-run-row:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 920px) {
  .integration-command-page {
    overflow: auto;
  }

  .integration-command-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .integration-left-rail {
    overflow: visible;
  }

  .integration-compact-list,
  .skill-compact-list {
    max-height: none;
    overflow: visible;
  }
}

.douyin-message-center {
  display: grid;
  gap: 14px;
}

/* Integration workbench: plug-in console */
.integration-workbench-page {
  gap: 14px;
  overflow: hidden;
}

.integration-workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 640px);
  align-items: center;
  gap: 18px;
  padding: 14px 14px 8px;
}

.integration-title-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.integration-title-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86)),
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.20), transparent 52%);
  color: #2563eb;
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.integration-title-icon svg {
  width: 28px;
  height: 28px;
}

.integration-title-lockup h1 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
}

.integration-title-lockup p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 520;
}

.integration-health-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 78px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.82)),
    radial-gradient(circle at 90% 0%, rgba(219, 234, 254, 0.88), transparent 38%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.integration-health-panel span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.integration-health-panel span:last-child {
  border-right: 0;
}

.integration-health-panel small {
  color: #64748b;
  font-size: 12px;
  font-weight: 680;
}

.integration-health-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.integration-health-panel .run-health i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.10), 0 0 18px rgba(34, 197, 94, 0.55);
}

.integration-workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 25vw, 392px);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 14px;
}

.integration-canvas-panel,
.plugin-dock-panel,
.integration-recent-panel {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 20px 20px, rgba(37, 99, 235, 0.13) 1.1px, transparent 1.3px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(242, 247, 255, 0.78));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.integration-canvas-panel {
  min-height: clamp(430px, 54vh, 560px);
  border-radius: 26px;
  overflow: hidden;
}

.integration-canvas-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 38%, rgba(37, 99, 235, 0.14), transparent 22%),
    radial-gradient(circle at 42% 64%, rgba(20, 184, 166, 0.11), transparent 20%),
    linear-gradient(90deg, transparent 49.9%, rgba(37, 99, 235, 0.08) 50%, transparent 50.1%);
  pointer-events: none;
}

.integration-canvas-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px 10px;
}

.integration-canvas-topline h3,
.plugin-dock-head h3,
.integration-recent-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
}

.integration-canvas-topline p,
.plugin-dock-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 560;
}

.integration-canvas-dots {
  display: inline-flex;
  gap: 5px;
}

.integration-canvas-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.48);
}

.integration-canvas-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px minmax(300px, 43%) minmax(260px, 1fr) 24px;
  gap: 18px;
  min-height: clamp(350px, 44vh, 452px);
  padding: 8px 18px 18px;
}

.integration-socket-rail {
  align-self: stretch;
  width: 16px;
  margin: 28px auto;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.88)),
    linear-gradient(180deg, rgba(59, 130, 246, 0.0), rgba(59, 130, 246, 0.42), rgba(59, 130, 246, 0.0));
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.36), 0 0 22px rgba(37, 99, 235, 0.12);
}

.integration-socket-rail.right {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.88)),
    linear-gradient(180deg, rgba(59, 130, 246, 0.0), rgba(59, 130, 246, 0.60), rgba(59, 130, 246, 0.0));
}

.integration-socket-grid {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: clamp(330px, 43vh, 430px);
  overflow: auto;
  padding: 2px 6px 2px 0;
  scrollbar-color: rgba(148, 163, 184, 0.52) transparent;
  scrollbar-width: thin;
}

.integration-socket-slot {
  position: relative;
  min-height: 88px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.72)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05), transparent 42%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.integration-socket-slot::before,
.integration-socket-slot::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.22), transparent);
}

.integration-socket-slot::before {
  top: 6px;
}

.integration-socket-slot::after {
  bottom: 6px;
}

.integration-socket-slot.drag-over,
.integration-socket-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.13), inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.integration-socket-slot.is-ready {
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07), 0 0 26px rgba(34, 197, 94, 0.10);
}

.socket-contact {
  position: absolute;
  top: 17px;
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(37, 99, 235, 0.54), rgba(148, 163, 184, 0.18));
}

.socket-contact.left {
  left: -2px;
}

.socket-contact.right {
  right: -2px;
}

.integration-socket-slot.is-ready .socket-contact {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.12));
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

.socket-slot-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 720;
}

.socket-slot-label strong {
  color: #1e293b;
  font-size: 13px;
  font-weight: 820;
}

.socket-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border: 1px dashed rgba(100, 116, 139, 0.30);
  border-radius: 14px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

.socket-placeholder span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 16px;
}

.integration-canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.integration-circuit-line {
  position: absolute;
  border: 2px dashed rgba(37, 99, 235, 0.45);
  pointer-events: none;
}

.integration-circuit-line.one {
  width: 48%;
  height: 120px;
  left: -20px;
  top: 38%;
  border-right: 0;
  border-bottom: 0;
  border-radius: 90px 0 0 0;
}

.integration-circuit-line.two {
  width: 40%;
  height: 90px;
  right: 8%;
  top: 45%;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 90px 0;
  opacity: 0.5;
}

.integration-floating-module {
  position: relative;
  z-index: 2;
  width: min(340px, 92%);
}

.integration-canvas-hint {
  position: absolute;
  left: 50%;
  bottom: 38px;
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 13px;
  font-weight: 620;
  transform: translateX(-50%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.integration-canvas-hint b {
  color: #2563eb;
  font-size: 14px;
}

.plugin-module {
  display: grid;
  grid-template-columns: 10px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.88)),
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.10), transparent 38%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.plugin-module:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.12), 0 0 24px rgba(37, 99, 235, 0.08);
}

.plugin-module.is-dragging {
  opacity: 0.44;
  transform: scale(0.985);
  cursor: grabbing;
}

.integration-drag-ghost {
  opacity: 0.92 !important;
  transform: rotate(-1deg) scale(1.04) !important;
  box-shadow: 0 34px 70px rgba(37, 99, 235, 0.20), 0 0 0 1px rgba(37, 99, 235, 0.20) !important;
}

.plugin-module.slotted {
  min-height: 50px;
  padding: 7px 10px;
}

.plugin-module.floating {
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  animation: integrationFloat 4.5s ease-in-out infinite;
}

@keyframes integrationFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.plugin-grip {
  display: grid;
  gap: 3px;
  width: 8px;
}

.plugin-grip::before,
.plugin-grip::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 8px 0 #cbd5e1;
}

.plugin-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.plugin-logo svg,
.plugin-logo .brand-logo,
.plugin-logo .brand-logo-stack {
  width: 28px;
  height: 28px;
}

.plugin-logo.mini {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.plugin-logo.mini svg,
.plugin-logo.mini .skill-icon {
  width: 20px;
  height: 20px;
}

.plugin-copy {
  min-width: 0;
}

.plugin-copy strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 830;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-copy small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.plugin-production-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
  white-space: nowrap;
}

.plugin-production-pill.ready {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(220, 252, 231, 0.84);
  color: #047857;
}

.plugin-production-pill.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(254, 243, 199, 0.82);
  color: #b45309;
}

.plugin-production-pill.blocked {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(254, 226, 226, 0.82);
  color: #b91c1c;
}

.plugin-production-pill.muted {
  color: #64748b;
}

.plugin-lights {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.status-light {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #cbd5e1;
}

.status-light.connected,
.status-light.enabled {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10), 0 0 14px rgba(34, 197, 94, 0.48);
}

.status-light.pending {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10), 0 0 14px rgba(245, 158, 11, 0.34);
}

.status-light.disabled {
  background: #cbd5e1;
}

.plugin-actions {
  display: none;
  grid-column: 2 / -1;
  justify-content: flex-end;
  gap: 8px;
}

.plugin-module:hover .plugin-actions,
.plugin-module:focus-within .plugin-actions {
  display: flex;
}

.plugin-action {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.plugin-action.subtle {
  background: #ffffff;
  color: #64748b;
}

.plugin-dock-panel {
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: clamp(430px, 54vh, 560px);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}

.plugin-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plugin-market-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2563eb;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.plugin-dock-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin: 14px 0;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
}

.plugin-dock-filter i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg) translateY(-2px);
}

.plugin-dock-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 2px 0;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.plugin-dock-list .plugin-module {
  grid-template-columns: 10px 44px minmax(0, 1fr) auto;
  min-height: 64px;
}

.plugin-dock-list .plugin-module .plugin-actions {
  display: flex;
}

.integration-empty-dock {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 720;
}

.integration-recent-panel {
  position: relative;
  z-index: 1;
  margin: 0 14px 14px;
  padding: 16px;
  border-radius: 22px;
}

.integration-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.integration-recent-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.integration-recent-chip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.integration-recent-chip strong,
.integration-recent-chip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-recent-chip strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 820;
}

.integration-recent-chip small,
.integration-recent-chip time {
  color: #64748b;
  font-size: 11px;
  font-weight: 620;
}

.integration-recent-chip time {
  grid-column: 2 / -1;
}

.integration-recent-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 68px;
  place-items: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 1380px) {
  .integration-workbench-head {
    grid-template-columns: 1fr;
  }

  .integration-workbench-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .integration-canvas-body {
    grid-template-columns: 20px minmax(280px, 48%) minmax(220px, 1fr) 20px;
    gap: 12px;
  }

  .integration-socket-slot {
    min-height: 82px;
  }

  .plugin-module {
    grid-template-columns: 8px 40px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .plugin-logo {
    width: 40px;
    height: 40px;
  }

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

@media (max-width: 1080px) {
  .integration-command-page.integration-workbench-page {
    overflow: auto;
  }

  .integration-workbench-layout {
    grid-template-columns: 1fr;
  }

  .plugin-dock-panel,
  .integration-canvas-panel {
    min-height: auto;
  }

  .integration-canvas-body {
    grid-template-columns: 1fr;
  }

  .integration-socket-rail,
  .integration-canvas-stage {
    display: none;
  }

  .integration-socket-grid {
    max-height: none;
    overflow: visible;
  }

  .integration-recent-strip {
    grid-template-columns: 1fr;
  }
}

.integration-plain-note {
  padding: 10px 12px;
  border: 1px solid #fedf89;
  border-radius: 10px;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.douyin-suggestion-box {
  display: grid;
  gap: 10px;
}

.douyin-suggestion-box textarea {
  min-height: 132px;
  resize: vertical;
}

.douyin-reply-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.douyin-reply-card p {
  margin: 10px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-height: 820px) and (min-width: 1100px) {
  .enterprise-app {
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .globalbar {
    height: 64px;
  }

  .enterprise-app .main-content {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    gap: 8px;
    padding: 12px;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    display: none;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    min-height: 120px !important;
  }
}

/* Final viewport-fit pass for the enterprise CEO desk. The reference screen works
   because every panel is budgeted inside 100vh; long content moves into details. */
.enterprise-app {
  height: 100dvh;
  min-height: 680px;
}

.enterprise-app .main,
.enterprise-app .main-content,
.enterprise-app .ceo-mission-desk {
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .main-content {
  padding: 14px 14px 14px 15px !important;
}

.enterprise-app .ceo-mission-desk {
  display: grid !important;
  grid-template-columns: minmax(0, 0.99fr) minmax(0, 1.01fr) 44px !important;
  gap: 10px !important;
  height: 100% !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.enterprise-app .ceo-mission-desk .ceo-blueprint-drawer {
  flex: 0 0 auto;
  max-height: 86px;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .ceo-blueprint-drawer:not(.collapsed) .ceo-blueprint-preview {
  max-height: 40px;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-rows:
    34px
    minmax(58px, 0.48fr)
    minmax(54px, 0.42fr)
    minmax(66px, auto)
    minmax(54px, auto)
    minmax(132px, 0.9fr)
    146px !important;
  gap: 9px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head {
  min-height: 0;
}

.enterprise-app .ceo-mission-desk .desk-section-head h2 {
  font-size: 17px !important;
  line-height: 1.12 !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head p {
  display: -webkit-box !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block {
  min-height: 0 !important;
  padding: 9px 10px !important;
  gap: 9px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .desk-block-head {
  gap: 8px !important;
}

.enterprise-app .ceo-mission-desk .desk-block-head strong,
.enterprise-app .ceo-mission-desk .subcard-head h3 {
  font-size: 13px !important;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block p {
  display: -webkit-box !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.enterprise-app .ceo-mission-desk .mission-plan-table,
.enterprise-app .ceo-mission-desk .task-split-card {
  min-height: 0 !important;
  padding: 9px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .mission-plan-table .subcard-head,
.enterprise-app .ceo-mission-desk .task-split-card .subcard-head {
  min-height: 20px;
}

.enterprise-app .ceo-mission-desk .mission-plan-table .ghost-link {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enterprise-app .ceo-mission-desk .plan-table {
  margin-top: 7px !important;
}

.enterprise-app .ceo-mission-desk .plan-table span {
  padding: 7px 8px !important;
}

.enterprise-app .ceo-mission-desk .plan-table small {
  font-size: 10px !important;
}

.enterprise-app .ceo-mission-desk .plan-table strong {
  margin-top: 3px !important;
  font-size: 11px !important;
}

.enterprise-app .ceo-mission-desk .verifier-block {
  align-items: start !important;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  height: calc(100% - 28px);
  margin-top: 7px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head {
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head strong {
  font-size: 10.5px !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head small {
  font-size: 9px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dl {
  flex: 1 1 auto;
  gap: 5px !important;
  margin: 7px 0 5px !important;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .worker-task-card dt {
  font-size: 10px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dd {
  margin-top: 2px !important;
  font-size: 10.5px !important;
  line-height: 1.32 !important;
  -webkit-line-clamp: 2 !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card .ghost-link {
  margin-top: auto;
  font-size: 11px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
  margin: 0 0 7px !important;
  font-size: 13px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  height: 118px !important;
  min-height: 118px !important;
  padding: 12px 12px 44px !important;
  overflow: auto !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.enterprise-app .ceo-mission-desk .mission-ops-column {
  display: flex !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.enterprise-app .ceo-mission-desk .operations-center {
  flex: 1 1 auto;
  display: grid !important;
  grid-template-rows: 44px minmax(142px, 0.9fr) minmax(142px, 0.9fr) minmax(120px, 0.7fr) minmax(112px, 0.65fr);
  gap: 11px !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .operations-table-card,
.enterprise-app .ceo-mission-desk .ops-mini-grid,
.enterprise-app .ceo-mission-desk .approval-card {
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .enterprise-table {
  min-height: 0;
  overflow: hidden;
}

.enterprise-app .ceo-mission-desk .table-row {
  min-height: 34px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

@media (max-height: 820px) and (min-width: 1100px) {
  .enterprise-app .main-content {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    grid-template-rows:
      30px
      minmax(48px, 0.42fr)
      minmax(44px, 0.36fr)
      minmax(54px, auto)
      minmax(44px, auto)
      minmax(104px, 0.72fr)
      124px !important;
    gap: 7px !important;
    padding: 10px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 98px !important;
    min-height: 98px !important;
  }
}

/* 2026-06-18 operations/layout polish */
.enterprise-app {
  --shell-bg: #f3f6fb;
  background-color: var(--shell-bg) !important;
  background-image:
    radial-gradient(rgba(37, 99, 235, 0.10) 1px, transparent 1px),
    radial-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px) !important;
  background-position: 0 0, 10px 12px !important;
  background-size: 18px 18px, 44px 44px !important;
}

.enterprise-app .main,
.enterprise-app .enterprise-frame {
  background: transparent !important;
}

.enterprise-app .globalbar {
  grid-template-columns: 268px minmax(0, 1fr) auto !important;
}

.enterprise-app .global-links {
  justify-content: flex-end !important;
  margin-left: 0 !important;
}

.enterprise-app.sidebar-collapsed .global-links {
  display: flex !important;
}

.enterprise-app.sidebar-collapsed .enterprise-frame {
  grid-template-columns: 84px minmax(0, 1fr) !important;
}

.enterprise-app.sidebar-collapsed .sidebar {
  padding: 18px 10px 14px !important;
}

.enterprise-app.sidebar-collapsed .nav button {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  min-height: 48px !important;
  padding: 9px 0 !important;
}

.enterprise-app.sidebar-collapsed .nav-icon {
  width: 24px !important;
  height: 24px !important;
}

.enterprise-app.sidebar-collapsed .sidebar-toggle {
  width: 44px !important;
  align-self: center !important;
  font-size: 0 !important;
}

.enterprise-app.sidebar-collapsed .sidebar-toggle span {
  display: none !important;
}

.enterprise-app.sidebar-collapsed .sidebar-toggle::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.enterprise-app .tiny-icon {
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: currentColor !important;
  box-shadow: none !important;
  color: #2563eb;
  -webkit-mask: var(--tiny-mask) center / 17px 17px no-repeat;
  mask: var(--tiny-mask) center / 17px 17px no-repeat;
}

.enterprise-app .tiny-icon.delivery {
  color: #12b76a;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m21%208-9-5-9%205%209%205%209-5Z'/%3E%3Cpath%20d='M3%208v8l9%205%209-5V8'/%3E%3Cpath%20d='M12%2013v8'/%3E%3C/svg%3E");
}

.enterprise-app .tiny-icon.queue {
  color: #2563eb;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%206h13M8%2012h13M8%2018h13'/%3E%3Cpath%20d='m3%206%201%201%202-2M3%2012l1%201%202-2M3%2018l1%201%202-2'/%3E%3C/svg%3E");
}

.enterprise-app .tiny-icon.blocker {
  color: #f79009;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202%203%206v6c0%205%203.8%208.3%209%2010%205.2-1.7%209-5%209-10V6l-9-4Z'/%3E%3Cpath%20d='M12%208v4M12%2016h.01'/%3E%3C/svg%3E");
}

.enterprise-app .tiny-icon.recent {
  color: #7c3aed;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M12%207v6l4%202'/%3E%3C/svg%3E");
}

.enterprise-app .tiny-icon.approval {
  color: #0ea5e9;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%2011l3%203L22%204'/%3E%3Cpath%20d='M21%2012v7a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11'/%3E%3C/svg%3E");
}

.enterprise-app .tiny-icon.capability {
  color: #6366f1;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202v4'/%3E%3Cpath%20d='M12%2018v4'/%3E%3Cpath%20d='M4.93%204.93l2.83%202.83'/%3E%3Cpath%20d='M16.24%2016.24l2.83%202.83'/%3E%3Cpath%20d='M2%2012h4'/%3E%3Cpath%20d='M18%2012h4'/%3E%3Cpath%20d='M4.93%2019.07l2.83-2.83'/%3E%3Cpath%20d='M16.24%207.76l2.83-2.83'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E");
}

.enterprise-app .capability-acquisition-card {
  display: grid;
  gap: 12px;
}

.enterprise-app .capability-acquisition-lead {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.enterprise-app .capability-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enterprise-app .capability-report-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.enterprise-app button.capability-report-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.enterprise-app .capability-report-card.actionable {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.enterprise-app .capability-report-card.actionable:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.enterprise-app .capability-report-card span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.enterprise-app .capability-report-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #101828;
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.enterprise-app .capability-report-card.ready {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.9));
}

.enterprise-app .capability-report-card.blocked {
  border-color: rgba(249, 115, 22, 0.3);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.9));
}

.capability-resolution-modal {
  width: min(1040px, calc(100vw - 48px));
}

.capability-report-view {
  display: grid;
  gap: 18px;
}

.capability-report-summary {
  display: grid;
  gap: 14px;
}

.capability-report-hero {
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 20%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.capability-report-hero.ready {
  border-color: rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at 8% 20%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.92));
}

.capability-report-hero.blocked {
  border-color: rgba(249, 115, 22, 0.28);
  background:
    radial-gradient(circle at 8% 20%, rgba(249, 115, 22, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
}

.capability-report-hero span,
.capability-report-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capability-report-hero strong {
  display: block;
  color: #101828;
  font-size: 22px;
  line-height: 1.35;
}

.capability-report-hero p,
.capability-report-summary-grid p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.capability-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.capability-report-summary-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.capability-report-summary-grid strong {
  display: block;
  color: #101828;
  font-size: 26px;
  line-height: 1;
}

.capability-report-readable {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capability-report-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.capability-report-section h4 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 14px;
}

.capability-report-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.capability-report-empty {
  margin: 0;
  color: #98a2b3;
  font-size: 13px;
  line-height: 1.5;
}

.capability-report-raw pre {
  max-height: min(66vh, 720px);
  overflow: auto;
  white-space: pre;
}

@media (max-width: 900px) {
  .capability-report-summary-grid,
  .capability-report-readable {
    grid-template-columns: 1fr;
  }
}

.enterprise-app .capability-step-list {
  display: grid;
  gap: 9px;
}

.enterprise-app .capability-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.78);
}

.enterprise-app .capability-step > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.2);
}

.enterprise-app .capability-step.done > span {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.enterprise-app .capability-step.blocked > span {
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.enterprise-app .capability-step strong {
  display: block;
  color: #101828;
  font-size: 13px;
}

.enterprise-app .capability-step p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.enterprise-app .capability-blocker-note {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #fedf89;
  border-radius: 14px;
  background: #fffaeb;
  color: #b54708;
  font-size: 12px;
  line-height: 1.45;
}

.enterprise-app .ceo-mission-desk .operations-center {
  grid-template-rows: 42px minmax(0, 1.08fr) minmax(0, 1.16fr) minmax(0, 0.92fr) minmax(0, 0.74fr) !important;
}

.enterprise-app .ceo-mission-desk .operations-table-card,
.enterprise-app .ceo-mission-desk .mini-ops-card,
.enterprise-app .ceo-mission-desk .approval-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.enterprise-app .ceo-mission-desk .ops-mini-grid {
  min-height: 0 !important;
}

.enterprise-app .ceo-mission-desk .enterprise-table,
.enterprise-app .ceo-mission-desk .recent-run-list,
.enterprise-app .ceo-mission-desk .simple-list,
.enterprise-app .ceo-mission-desk .center-empty,
.enterprise-app .ceo-mission-desk .approval-row {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.enterprise-app .ceo-mission-desk .enterprise-table {
  scrollbar-width: thin;
}

.enterprise-app .ceo-mission-desk .approval-row {
  align-items: flex-start !important;
}

.enterprise-app .panel-grid,
.enterprise-app .ops-grid {
  min-height: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

.enterprise-app .panel-grid > .table-panel,
.enterprise-app .panel-grid > .panel,
.enterprise-app .ops-grid > .table-panel,
.enterprise-app .ops-grid > .panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .rows.paged-rows,
.enterprise-app .delivery-list.paged-rows,
.enterprise-app .paged-rows {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.enterprise-app .pagination-bar {
  flex: 0 0 auto !important;
  margin-top: 10px !important;
}

.enterprise-app .pending-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.enterprise-app .pending-attachment {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .pending-attachment-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: #2563eb;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21.44%2011.05%2012.25%2020.24a6%206%200%200%201-8.49-8.49l9.19-9.19a4%204%200%201%201%205.66%205.66l-9.2%209.19a2%202%200%200%201-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21.44%2011.05%2012.25%2020.24a6%206%200%200%201-8.49-8.49l9.19-9.19a4%204%200%201%201%205.66%205.66l-9.2%209.19a2%202%200%200%201-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center / contain no-repeat;
}

.enterprise-app .attachment-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.enterprise-app .attachment-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: min(292px, 100%);
  min-height: 58px;
  padding: 8px 10px 8px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.enterprise-app .attachment-preview-card.uploading {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.enterprise-app .attachment-preview-card.failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.enterprise-app .attachment-file-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f04438;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.enterprise-app .attachment-preview-card:not(.failed):not(.uploading) .attachment-file-icon {
  background: #2563eb;
}

.enterprise-app .attachment-preview-copy {
  min-width: 0;
}

.enterprise-app .attachment-preview-copy strong,
.enterprise-app .attachment-preview-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .attachment-preview-copy strong {
  color: #111827;
  font-size: 13px;
  font-weight: 820;
}

.enterprise-app .attachment-preview-copy span {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.enterprise-app .attachment-remove,
.enterprise-app .attachment-upload-error button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.enterprise-app .attachment-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.enterprise-app .attachment-upload-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  color: #b42318;
}

.enterprise-app .attachment-upload-error strong {
  font-size: 12px;
  font-weight: 850;
}

.enterprise-app .attachment-upload-error span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.enterprise-app .mission-rail-card {
  cursor: pointer;
}

.enterprise-app .data-source-card {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 14px !important;
}

.enterprise-app .data-source-main p {
  max-width: 720px;
  margin-top: 4px !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.enterprise-app .data-source-meta {
  gap: 6px !important;
  margin-top: 8px !important;
}

.enterprise-app .monitorable-list {
  margin-top: 8px !important;
}

.enterprise-app .source-wizard-steps,
.enterprise-app .source-ready-note {
  display: none !important;
}

.enterprise-app .data-source-import {
  margin-top: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.enterprise-app .data-source-import summary {
  width: fit-content;
  cursor: pointer;
  color: #2563eb;
  font-size: 12px;
  font-weight: 820;
}

.enterprise-app .data-source-import textarea {
  margin-top: 8px;
}

/* 2026-06-19 collapsed shell fix */
.enterprise-app .globalbar,
.enterprise-app.sidebar-collapsed .globalbar {
  grid-template-columns: 268px minmax(360px, 1fr) auto !important;
}

.enterprise-app .global-brand,
.enterprise-app.sidebar-collapsed .global-brand {
  display: flex !important;
  grid-column: 1 !important;
}

.enterprise-app .workspace-switch,
.enterprise-app.sidebar-collapsed .workspace-switch {
  display: none !important;
  grid-column: 2 !important;
}

.enterprise-app .global-links,
.enterprise-app.sidebar-collapsed .global-links {
  display: flex !important;
  grid-column: 2 !important;
  justify-self: end !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
}

.enterprise-app .global-actions,
.enterprise-app.sidebar-collapsed .global-actions {
  display: flex !important;
  grid-column: 3 !important;
}

.enterprise-app.sidebar-collapsed .enterprise-frame {
  grid-template-columns: 88px minmax(0, 1fr) !important;
}

.enterprise-app.sidebar-collapsed .sidebar {
  width: 88px !important;
  padding: 16px 8px 14px !important;
}

.enterprise-app.sidebar-collapsed .nav {
  gap: 8px !important;
}

.enterprise-app.sidebar-collapsed .nav button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 24px auto !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  min-height: 58px !important;
  padding: 8px 4px !important;
  text-align: center !important;
}

.enterprise-app.sidebar-collapsed .nav button.active {
  box-shadow: inset 3px 0 0 var(--blue) !important;
}

.enterprise-app.sidebar-collapsed .nav-text {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
}

.enterprise-app.sidebar-collapsed .nav-text strong {
  display: none !important;
}

.enterprise-app.sidebar-collapsed .nav-text small {
  display: block !important;
  max-width: 72px !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
  opacity: 0.9 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-app.sidebar-collapsed .sidebar-toggle {
  width: 50px !important;
  height: 38px !important;
}

/* 2026-06-19 laptop viewport density: compact, do not hide core modules. */
.enterprise-app {
  min-height: 0 !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app {
    grid-template-rows: 66px minmax(0, 1fr) !important;
  }

  .enterprise-app .globalbar {
    height: 66px !important;
    padding-inline: 18px !important;
  }

  .enterprise-app .main-content {
    padding: 10px 10px 10px 12px !important;
  }

  .enterprise-app .ceo-mission-desk {
    gap: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    grid-template-rows:
      30px
      minmax(46px, 0.42fr)
      minmax(42px, 0.36fr)
      minmax(46px, auto)
      minmax(38px, auto)
      minmax(106px, 0.78fr)
      104px !important;
    gap: 7px !important;
    padding: 10px !important;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    display: block !important;
    padding: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .task-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: calc(100% - 24px) !important;
    margin-top: 5px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card {
    padding: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-avatar-thumb {
    width: 26px !important;
    height: 26px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-card-head {
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dl {
    gap: 4px !important;
    margin: 5px 0 3px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dt {
    font-size: 9.5px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dd {
    font-size: 10px !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 2 !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 84px !important;
    min-height: 84px !important;
    padding: 10px 10px 38px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-command-actions .btn {
    min-height: 26px !important;
    padding-inline: 9px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-command-actions .btn.primary {
    min-height: 32px !important;
    padding-inline: 14px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center {
    padding: 10px !important;
    gap: 8px !important;
    grid-template-rows: 36px minmax(0, 1.04fr) minmax(0, 1.08fr) minmax(0, 0.9fr) minmax(0, 0.72fr) !important;
  }
}

@media (max-height: 780px) and (min-width: 1100px) {
  .enterprise-app {
    grid-template-rows: 60px minmax(0, 1fr) !important;
  }

  .enterprise-app .globalbar {
    height: 60px !important;
  }

  .enterprise-app .global-brand img {
    width: 142px !important;
    height: auto !important;
  }

  .enterprise-app .global-brand strong {
    font-size: 16px !important;
  }

  .enterprise-app .global-brand span,
  .enterprise-app .workspace-switch span,
  .enterprise-app .user-chip small {
    display: none !important;
  }

  .enterprise-app .workspace-switch {
    height: 38px !important;
    padding-block: 6px !important;
  }

  .enterprise-app .main-content {
    padding: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    grid-template-rows:
      28px
      minmax(38px, 0.34fr)
      minmax(34px, 0.3fr)
      minmax(36px, auto)
      minmax(32px, auto)
      minmax(86px, 0.64fr)
      86px !important;
    gap: 5px !important;
    padding: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .desk-section-head p,
  .enterprise-app .ceo-mission-desk .ceo-desk-block p {
    -webkit-line-clamp: 1 !important;
  }

  .enterprise-app .ceo-mission-desk .ceo-desk-block {
    padding: 7px 8px !important;
  }

  .enterprise-app .ceo-mission-desk .mission-plan-table,
  .enterprise-app .ceo-mission-desk .task-split-card {
    padding: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .plan-table span {
    padding: 5px 6px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-avatar-thumb {
    width: 22px !important;
    height: 22px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-card-head {
    grid-template-columns: 22px minmax(0, 1fr) !important;
  }

  .enterprise-app .ceo-mission-desk .worker-card-head .enterprise-status {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dd {
    -webkit-line-clamp: 1 !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card .ghost-link {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 86px !important;
    min-height: 86px !important;
  }
}

/* 2026-06-19 viewport-fit guard: compact the CEO desk instead of removing worker modules. */
.enterprise-app .ceo-mission-desk .task-split-card {
  display: block !important;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  display: grid !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app {
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .enterprise-app .enterprise-frame,
  .enterprise-app .main,
  .enterprise-app .main-content,
  .enterprise-app .ceo-mission-desk {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .enterprise-app {
    grid-template-rows: 64px minmax(0, 1fr) !important;
  }

  .enterprise-app .enterprise-frame {
    height: calc(100vh - 64px) !important;
  }

  .enterprise-app .mission-history-rail {
    min-width: 38px !important;
  }

  .enterprise-app .ceo-mission-desk .ceo-blueprint-drawer {
    max-height: 50px !important;
    padding: 8px 10px !important;
  }

  .enterprise-app .ceo-mission-desk .ceo-blueprint-preview,
  .enterprise-app .ceo-mission-desk .ceo-work-orders {
    max-height: 28px !important;
    overflow: hidden !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    grid-template-rows:
      28px
      minmax(44px, 0.38fr)
      minmax(40px, 0.34fr)
      minmax(44px, auto)
      minmax(34px, auto)
      minmax(98px, 0.72fr)
      96px !important;
    gap: 6px !important;
    padding: 9px !important;
  }

  .enterprise-app .ceo-mission-desk .desk-section-head h2 {
    font-size: 16px !important;
  }

  .enterprise-app .ceo-mission-desk .desk-section-head p,
  .enterprise-app .ceo-mission-desk .ceo-desk-block p {
    line-height: 1.28 !important;
    -webkit-line-clamp: 1 !important;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    display: block !important;
    padding: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .task-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: calc(100% - 22px) !important;
    margin-top: 4px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 7px !important;
    overflow: hidden !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dl {
    gap: 3px !important;
    margin: 5px 0 2px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dd {
    font-size: 10px !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 1 !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command {
    padding-top: 6px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
    margin-bottom: 5px !important;
    font-size: 12px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 78px !important;
    min-height: 78px !important;
    padding: 9px 10px 34px !important;
    overflow: hidden !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center {
    grid-template-rows: 32px minmax(0, 1.04fr) minmax(0, 1.02fr) minmax(0, 0.78fr) minmax(0, 0.62fr) !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .enterprise-table,
  .enterprise-app .ceo-mission-desk .operations-center .recent-run-list,
  .enterprise-app .ceo-mission-desk .operations-center .simple-list,
  .enterprise-app .ceo-mission-desk .operations-center .center-empty,
  .enterprise-app .ceo-mission-desk .operations-center .approval-row {
    overflow: hidden !important;
    scrollbar-width: none !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .enterprise-table::-webkit-scrollbar,
  .enterprise-app .ceo-mission-desk .operations-center .recent-run-list::-webkit-scrollbar,
  .enterprise-app .ceo-mission-desk .operations-center .simple-list::-webkit-scrollbar,
  .enterprise-app .ceo-mission-desk .operations-center .center-empty::-webkit-scrollbar,
  .enterprise-app .ceo-mission-desk .operations-center .approval-row::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-height: 740px) and (min-width: 1100px) {
  .enterprise-app {
    grid-template-rows: 56px minmax(0, 1fr) !important;
  }

  .enterprise-app .globalbar {
    height: 56px !important;
    padding-inline: 14px !important;
  }

  .enterprise-app .enterprise-frame {
    height: calc(100vh - 56px) !important;
  }

  .enterprise-app .global-brand strong {
    font-size: 15px !important;
  }

  .enterprise-app .global-brand span,
  .enterprise-app .workspace-switch span,
  .enterprise-app .user-chip small,
  .enterprise-app .global-actions .btn {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .ceo-blueprint-drawer {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card {
    grid-template-rows:
      26px
      minmax(34px, 0.3fr)
      minmax(32px, 0.28fr)
      minmax(32px, auto)
      minmax(28px, auto)
      minmax(74px, 0.58fr)
      76px !important;
    gap: 4px !important;
    padding: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .ceo-desk-block,
  .enterprise-app .ceo-mission-desk .mission-plan-table,
  .enterprise-app .ceo-mission-desk .task-split-card {
    padding: 6px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-avatar-thumb {
    width: 20px !important;
    height: 20px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-card-head {
    grid-template-columns: 20px minmax(0, 1fr) !important;
  }

  .enterprise-app .ceo-mission-desk .worker-card-head small,
  .enterprise-app .ceo-mission-desk .worker-task-card dt,
  .enterprise-app .ceo-mission-desk .worker-task-card .ghost-link,
  .enterprise-app .ceo-mission-desk .worker-card-head .enterprise-status {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 76px !important;
    min-height: 76px !important;
  }
}

/* 2026-06-19 right rail fit: keep "Approval & Input" visible on laptop screens. */
@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .operations-center {
    grid-template-rows:
      30px
      minmax(78px, 0.72fr)
      minmax(78px, 0.72fr)
      minmax(68px, 0.52fr)
      minmax(104px, 0.8fr) !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .subcard-head {
    min-height: 20px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .subcard-head h3 {
    font-size: 13px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .table-row {
    min-height: 28px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .table-row:nth-child(n + 4) {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .ops-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .approval-card {
    min-height: 104px !important;
  }

  .enterprise-app .ceo-mission-desk .approval-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 62px !important;
    margin-top: 6px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
  }

  .enterprise-app .ceo-mission-desk .approval-row p {
    display: -webkit-box !important;
    overflow: hidden !important;
    line-height: 1.32 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-height: 740px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .operations-center {
    grid-template-rows:
      26px
      minmax(58px, 0.58fr)
      minmax(58px, 0.58fr)
      minmax(46px, 0.36fr)
      minmax(94px, 0.78fr) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .desk-section-head p,
  .enterprise-app .ceo-mission-desk .operations-center .table-head,
  .enterprise-app .ceo-mission-desk .operations-center .ops-mini-grid .subcard-head {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .table-row {
    min-height: 24px !important;
    padding: 4px 7px !important;
  }

  .enterprise-app .ceo-mission-desk .operations-center .table-row:nth-child(n + 3) {
    display: none !important;
  }

  .enterprise-app .ceo-mission-desk .approval-card {
    min-height: 94px !important;
  }

  .enterprise-app .ceo-mission-desk .approval-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 58px !important;
    margin-top: 5px !important;
    padding: 7px 9px !important;
  }

  .enterprise-app .ceo-mission-desk .approval-row strong {
    font-size: 12px !important;
  }

  .enterprise-app .ceo-mission-desk .approval-row p {
    font-size: 11px !important;
    -webkit-line-clamp: 2;
  }
}

/* 2026-06-19 all-page laptop compact pass + local mission history drawer. */
.enterprise-app.sidebar-collapsed .enterprise-frame {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}

.enterprise-app.sidebar-collapsed .sidebar {
  width: 72px !important;
  padding: 14px 8px !important;
}

.enterprise-app.sidebar-collapsed .nav button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  place-items: center !important;
  min-height: 52px !important;
  padding: 8px !important;
  gap: 0 !important;
}

.enterprise-app.sidebar-collapsed .nav-text,
.enterprise-app.sidebar-collapsed .nav-text strong,
.enterprise-app.sidebar-collapsed .nav-text small {
  display: none !important;
}

.enterprise-app.sidebar-collapsed .nav-icon {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

.enterprise-app.sidebar-collapsed .sidebar-toggle {
  width: 44px !important;
  height: 38px !important;
  margin-inline: auto !important;
}

.mission-history-rail {
  position: relative;
  overflow: visible;
  z-index: 12;
}

.mission-rail-card.open {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

.mission-history-drawer {
  position: absolute;
  top: 0;
  right: 52px;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(330px, calc(100vw - 132px));
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mission-history-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

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

.mission-history-drawer-head strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 860;
}

.mission-history-drawer-head span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.mission-history-drawer-head .icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: #344054;
  font-size: 18px;
  font-weight: 760;
}

.mission-history-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.history-mission-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.history-mission-item:hover,
.history-mission-item.active {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.history-mission-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.history-mission-item > span small {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-mission-item strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 880;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-mission-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-mission-item time {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 720;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .enterprise-page,
  .enterprise-app .runs-page,
  .enterprise-app .watch-console-page,
  .enterprise-app .profile-grid,
  .enterprise-app .two-column-workspace {
    min-height: 0 !important;
  }

  .enterprise-app .enterprise-page {
    gap: 9px !important;
    overflow: hidden !important;
  }

  .enterprise-app .page-title-row {
    min-height: 54px !important;
    padding: 10px 12px !important;
  }

  .enterprise-app .page-title-row h1 {
    font-size: 18px !important;
  }

  .enterprise-app .page-title-row p {
    display: -webkit-box !important;
    margin-top: 3px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .enterprise-app .metric-strip {
    gap: 8px !important;
  }

  .enterprise-app .metric-strip article {
    min-height: 70px !important;
    padding: 9px 12px !important;
  }

  .enterprise-app .metric-strip strong {
    margin: 5px 0 2px !important;
    font-size: 22px !important;
  }

  .enterprise-app .panel-grid,
  .enterprise-app .runs-grid,
  .enterprise-app .ops-grid,
  .enterprise-app .two-column-workspace,
  .enterprise-app .profile-grid {
    gap: 9px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .enterprise-app .enterprise-card,
  .enterprise-app .source-list-card,
  .enterprise-app .integration-log-card,
  .enterprise-app .profile-grid > .panel,
  .enterprise-app .settings-section,
  .enterprise-app .table-panel,
  .enterprise-app .panel {
    min-height: 0 !important;
  }

  .enterprise-app .source-list-card,
  .enterprise-app .integration-log-card,
  .enterprise-app .profile-grid > .panel,
  .enterprise-app .settings-section {
    padding: 10px !important;
  }

  .enterprise-app .paged-rows,
  .enterprise-app .delivery-list.paged-rows,
  .enterprise-app .rows.paged-rows,
  .enterprise-app .enterprise-page .enterprise-table,
  .enterprise-app .source-list-card,
  .enterprise-app .integration-log-card,
  .enterprise-app .profile-grid > .panel {
    min-height: 0 !important;
    overflow: auto !important;
  }

  .enterprise-app .enterprise-table .table-row {
    min-height: 32px !important;
    padding: 6px 9px !important;
  }

  .enterprise-app .delivery-row,
  .enterprise-app .delivery-launch,
  .enterprise-app .document-delivery-row,
  .enterprise-app .mission-plan-delivery-row,
  .enterprise-app .data-source-card,
  .enterprise-app .integration-card {
    padding: 10px 12px !important;
  }
}

@media (max-height: 740px) and (min-width: 1100px) {
  .enterprise-app .enterprise-page {
    gap: 7px !important;
  }

  .enterprise-app .page-title-row {
    min-height: 46px !important;
    padding: 8px 10px !important;
  }

  .enterprise-app .page-title-row p {
    display: none !important;
  }

  .enterprise-app .metric-strip article {
    min-height: 58px !important;
    padding: 8px 10px !important;
  }

  .enterprise-app .metric-strip strong {
    font-size: 19px !important;
  }

  .enterprise-app .delivery-row p,
  .enterprise-app .integration-card p,
  .enterprise-app .data-source-card p,
  .enterprise-app .settings-section p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* 2026-06-19 CEO cartoon icon restoration. Uses the previous agent artwork, not CSS-drawn shapes. */
.enterprise-app .ceo-cartoon-icon.running,
.enterprise-app .worker-avatar-thumb.ceo.running {
  background-image: url("/assets/agents/ceo-work.png") !important;
  background-position: 0 0 !important;
  background-size: 600% 100% !important;
  animation: ceoSixFrameWork 1.08s infinite;
}

.enterprise-app .ceo-brain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
}

.enterprise-app .ceo-cartoon-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 22px;
  background-image: url("/assets/agents/ceo.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.14));
}

.enterprise-app .worker-avatar-thumb.ceo {
  width: 42px;
  height: 36px;
  background-position: center bottom;
}

.enterprise-app .worker-avatar-thumb.ceo.running {
  filter: drop-shadow(0 3px 5px rgba(37, 99, 235, 0.18));
}

@keyframes ceoSixFrameWork {
  0%, 13% {
    background-position: 0 0;
  }
  16.67%, 29% {
    background-position: 20% 0;
  }
  33.34%, 46% {
    background-position: 40% 0;
  }
  50.01%, 63% {
    background-position: 60% 0;
  }
  66.68%, 79% {
    background-position: 80% 0;
  }
  83.35%, 100% {
    background-position: 100% 0;
  }
}

/* 2026-06-19 collapsed sidebar must keep icon navigation visible.
   Older sidebar rules hide every span in collapsed mode, including .nav-icon. */
.enterprise-app.sidebar-collapsed .sidebar.collapsed {
  display: flex !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  padding: 14px 8px !important;
  overflow: hidden !important;
}

.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 8px !important;
}

.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav-icon {
  display: block !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav-text,
.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav-text strong,
.enterprise-app.sidebar-collapsed .sidebar.collapsed .nav-text small {
  display: none !important;
}

/* 2026-06-19 attachment composer fix.
   Attachment previews must not increase form height, otherwise absolute action buttons
   are pushed below the clipped CEO command panel after upload. */
.enterprise-app .pixel-ceo-form {
  position: relative !important;
  isolation: isolate;
}

.enterprise-app .pixel-ceo-form .pixel-command-actions {
  z-index: 8 !important;
}

.enterprise-app .ceo-pending-command {
  border-color: #bfdbfe !important;
  background: linear-gradient(180deg, #eff6ff, #ffffff) !important;
}

.enterprise-app .ceo-pending-command .desk-block-body small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .pixel-ceo-form .attachment-preview-list {
  position: absolute !important;
  top: 9px !important;
  right: 10px !important;
  left: 10px !important;
  z-index: 7 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  max-height: 56px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  pointer-events: auto !important;
  scrollbar-width: thin;
}

.enterprise-app .pixel-ceo-form .attachment-preview-card {
  flex: 0 0 min(292px, 100%) !important;
  width: min(292px, 100%) !important;
  min-height: 52px !important;
  padding-block: 7px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .mission-input {
  height: 132px !important;
  min-height: 132px !important;
  padding-top: 74px !important;
  padding-bottom: 46px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .attachment-preview-card {
  flex-basis: 224px !important;
  width: 224px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .pixel-command-actions {
  top: 14px !important;
  right: 10px !important;
  bottom: auto !important;
  left: 244px !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .pixel-command-actions > div {
  gap: 5px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .pixel-command-actions .btn {
  min-height: 28px !important;
  padding-inline: 8px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .pixel-command-actions .btn.primary {
  min-height: 32px !important;
  padding-inline: 12px !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .pixel-ceo-form.has-attachments .mission-input {
    height: 122px !important;
    min-height: 122px !important;
    padding-top: 66px !important;
    padding-bottom: 42px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .attachment-preview-list {
    top: 7px !important;
    max-height: 50px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .attachment-preview-card {
    min-height: 48px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form.has-attachments .pixel-command-actions {
    top: 13px !important;
  }
}

@media (max-height: 740px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .pixel-ceo-form.has-attachments .mission-input {
    height: 108px !important;
    min-height: 108px !important;
    padding-top: 58px !important;
    padding-bottom: 36px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .attachment-preview-list {
    top: 6px !important;
    max-height: 44px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .attachment-preview-card {
    grid-template-columns: 28px minmax(0, 1fr) 20px !important;
    flex-basis: 204px !important;
    width: 204px !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form.has-attachments .pixel-command-actions {
    top: 11px !important;
    left: 220px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .attachment-file-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }
}

/* 2026-06-19 focused cleanup: remove phantom vertical space and keep blueprint out of the desk flow. */
.enterprise-app .ceo-mission-desk .ceo-blueprint-drawer {
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.enterprise-app .ceo-mission-desk .ceo-blueprint-drawer .ceo-blueprint-preview {
  display: none !important;
}

.enterprise-app .ceo-mission-desk .verifier-block {
  align-items: center !important;
  max-height: 52px !important;
  min-height: 0 !important;
  padding-block: 7px !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .desk-block-body {
  align-self: center !important;
}

.enterprise-app .ceo-mission-desk .verifier-block p {
  margin-top: 1px !important;
  line-height: 1.18 !important;
  -webkit-line-clamp: 1 !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .inline-tags:empty {
  display: none !important;
}

.enterprise-app .ceo-mission-desk .verifier-block time {
  white-space: nowrap !important;
}

.blueprint-modal .readme-modal-body {
  max-height: min(72vh, 760px) !important;
  overflow: auto !important;
}

.blueprint-modal .ceo-blueprint-preview,
.blueprint-modal .mission-plan-preview {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Running agents must use the original multi-frame work sprites, not a generic pulse. */
.enterprise-app .agent-avatar.running .agent-avatar-sprite,
.enterprise-app .agent-avatar-ceo.running .agent-avatar-sprite {
  background-size: 600% 100% !important;
  animation: agentSpriteWork 0.92s steps(5, end) infinite !important;
}

.enterprise-app .agent-avatar-ceo:not(.running) .agent-avatar-sprite {
  animation: agentSpriteLead 2.1s steps(5, end) infinite !important;
}

.enterprise-app .worker-avatar-thumb.running {
  background-position: 0 0 !important;
  background-size: 600% 100% !important;
  animation: workerThumbSpriteWork 0.92s steps(5, end) infinite !important;
  transform: none !important;
}

@keyframes workerThumbSpriteWork {
  0% { background-position: 0 0; }
  20% { background-position: 20% 0; }
  40% { background-position: 40% 0; }
  60% { background-position: 60% 0; }
  80% { background-position: 80% 0; }
  100% { background-position: 100% 0; }
}

/* 2026-06-20 CEO desk compression fix: blueprint moves to header action, no inline strip. */
.enterprise-app .ceo-mission-desk .ceo-blueprint-drawer {
  display: none !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 32px !important;
}

.enterprise-app .ceo-mission-desk .ceo-brain-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.enterprise-app .ceo-mission-desk .ceo-blueprint-trigger {
  height: 28px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  grid-template-rows:
    32px
    minmax(52px, 0.48fr)
    minmax(46px, 0.42fr)
    minmax(58px, auto)
    52px
    minmax(112px, 0.82fr)
    minmax(124px, auto) !important;
  gap: 8px !important;
}

.enterprise-app .ceo-mission-desk .verifier-block {
  align-items: center !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 8px 10px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .desk-block-icon {
  align-self: center !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .desk-block-body {
  align-self: center !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .desk-block-head {
  min-height: 20px !important;
}

.enterprise-app .ceo-mission-desk .verifier-block p {
  display: block !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}

.enterprise-app .ceo-mission-desk .verifier-block .inline-tags {
  display: none !important;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  align-items: stretch !important;
  min-height: 0 !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head {
  align-items: start !important;
  min-height: 30px !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head .worker-avatar-thumb {
  align-self: start !important;
}

.enterprise-app .ceo-mission-desk .worker-card-head .enterprise-status {
  align-self: start !important;
  max-width: 76px !important;
  overflow: hidden !important;
  padding-inline: 7px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dl {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card .ghost-link {
  flex: 0 0 auto !important;
  margin-top: auto !important;
}

/* Knowledge and deliverables lists should size to their content first; only the list itself scrolls when long. */
.enterprise-app .main[data-page="knowledge"] .rows.paged-rows,
.enterprise-app .main[data-page="deliveries"] .delivery-list.paged-rows {
  flex: 0 1 auto !important;
  max-height: calc(100dvh - 238px) !important;
  overflow: auto !important;
}

.enterprise-app .main[data-page="knowledge"] .table-panel,
.enterprise-app .main[data-page="deliveries"] .table-panel,
.enterprise-app .main[data-page="knowledge"] .panel,
.enterprise-app .main[data-page="deliveries"] .panel {
  justify-content: flex-start !important;
}

.enterprise-app .main[data-page="knowledge"] .pagination-bar,
.enterprise-app .main[data-page="deliveries"] .pagination-bar {
  margin-top: 8px !important;
}

/* Attachment composer hardening: max 3 cards, no overlap with submit actions. */
.enterprise-app .pixel-ceo-form.has-attachments .attachment-preview-list {
  top: 8px !important;
  right: 12px !important;
  left: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  max-height: 58px !important;
  overflow: hidden !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .attachment-preview-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 50px !important;
  padding: 7px 9px !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .pixel-command-actions {
  inset: auto 12px 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.enterprise-app .pixel-ceo-form.has-attachments .mission-input {
  padding-top: 76px !important;
  padding-bottom: 54px !important;
}

.enterprise-app .attachment-file-icon.image {
  overflow: hidden !important;
  background: #f8fafc !important;
}

.enterprise-app .attachment-file-icon.image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 2026-06-22 CEO cockpit v2: canvas-first orchestration, right rail drawers. */
.enterprise-app .enterprise-frame {
  grid-template-columns: 214px minmax(0, 1fr) !important;
  gap: 14px !important;
}

.enterprise-app .sidebar {
  width: 204px !important;
  margin: 12px 0 12px 12px !important;
  height: calc(100vh - 24px) !important;
  border: 1px solid rgba(203, 213, 225, 0.74) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.enterprise-app .nav button {
  border-radius: 14px !important;
}

.enterprise-app.sidebar-collapsed .enterprise-frame {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}

.enterprise-app.sidebar-collapsed .sidebar {
  width: 64px !important;
  margin-left: 10px !important;
  padding-inline: 8px !important;
}

.enterprise-app .ceo-mission-desk {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 14px !important;
  padding: 12px !important;
  transition: padding-right 360ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open {
  padding-right: min(438px, 34vw) !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-column {
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), filter 360ms ease !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  transform: translateX(-12px) !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  height: 100% !important;
  padding: 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head {
  flex: 0 0 auto !important;
  padding: 0 4px !important;
}

.enterprise-app .ceo-mission-desk .ceo-brain-actions {
  align-items: center !important;
}

.enterprise-app .ceo-verifier-dot {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.enterprise-app .ceo-verifier-dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
}

.enterprise-app .ceo-verifier-dot.ok {
  color: #12b76a;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.enterprise-app .ceo-verifier-dot.blocked {
  color: #f04438;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  position: relative !important;
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-rows: 176px minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding: 14px 16px 16px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.enterprise-app .agent-flow-map {
  position: relative;
  display: grid;
  min-height: 176px;
  place-items: center;
  pointer-events: none;
}

.enterprise-app .agent-flow-ceo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 10px 16px 12px;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
  width: 72px !important;
  height: 78px !important;
  background-position: center bottom !important;
  background-size: contain !important;
}

.enterprise-app .agent-flow-ceo .ceo-cartoon-icon.running {
  background-size: 600% 100% !important;
}

.enterprise-app .agent-flow-ceo strong {
  margin-top: 2px;
  color: #172554;
  font-size: 14px;
  font-weight: 900;
}

.enterprise-app .agent-flow-ceo small {
  color: #64748b;
  font-size: 11px;
  font-weight: 720;
}

.enterprise-app .agent-link {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.38), rgba(16, 185, 129, 0.42));
  transform-origin: top center;
  animation: agentSignal 2.2s ease-in-out infinite;
}

.enterprise-app .agent-link::after {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.64);
  content: "";
  transform: translateX(-50%);
  animation: agentSignalDot 1.55s linear infinite;
}

.enterprise-app .agent-link.link-design { transform: rotate(56deg) translateY(10px); }
.enterprise-app .agent-link.link-code { transform: rotate(22deg) translateY(10px); animation-delay: 120ms; }
.enterprise-app .agent-link.link-qa { transform: rotate(-22deg) translateY(10px); animation-delay: 240ms; }
.enterprise-app .agent-link.link-cs { transform: rotate(-56deg) translateY(10px); animation-delay: 360ms; }

@keyframes agentSignal {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.9; }
}

@keyframes agentSignalDot {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 9px); opacity: 0; }
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  gap: 14px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  min-height: 0 !important;
  height: 100% !important;
  padding: 14px !important;
  border: 1px solid rgba(203, 213, 225, 0.62) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(10px) !important;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card:hover {
  transform: translateY(-3px);
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  flex: 0 0 214px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  height: 158px !important;
  min-height: 158px !important;
  padding: 16px 16px 56px !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.enterprise-app .ceo-mission-desk .mission-history-rail {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.enterprise-app .mission-rail-card,
.enterprise-app .ceo-ops-rail {
  width: 58px !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(14px) !important;
}

.enterprise-app .mission-rail-card {
  flex: 0 0 174px !important;
  height: auto !important;
  padding: 8px 7px !important;
}

.enterprise-app .ceo-ops-rail {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding: 8px 7px;
}

.enterprise-app .ceo-ops-rail-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: railItemIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--rail-index, 0) * 70ms);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.enterprise-app .ceo-ops-rail-button:hover,
.enterprise-app .ceo-ops-rail-button.active {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateX(-3px);
}

.enterprise-app .ceo-ops-rail-button em {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 17px;
}

@keyframes railItemIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.enterprise-app .ceo-ops-drawer {
  position: absolute;
  top: 12px;
  right: 78px;
  z-index: 42;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(404px, 31vw);
  height: calc(100% - 24px);
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px) scale(0.985);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.enterprise-app .ceo-ops-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.enterprise-app .ceo-ops-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.68);
}

.enterprise-app .ceo-ops-drawer-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.enterprise-app .ceo-ops-drawer-body {
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.enterprise-app .ceo-ops-drawer .enterprise-subcard,
.enterprise-app .ceo-ops-drawer .operations-table-card,
.enterprise-app .ceo-ops-drawer .mini-ops-card,
.enterprise-app .ceo-ops-drawer .approval-card {
  height: auto !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.enterprise-app .ceo-ops-drawer .enterprise-table,
.enterprise-app .ceo-ops-drawer .recent-run-list,
.enterprise-app .ceo-ops-drawer .simple-list,
.enterprise-app .ceo-ops-drawer .center-empty,
.enterprise-app .ceo-ops-drawer .approval-row {
  max-height: none !important;
  overflow: visible !important;
}

.enterprise-app .ceo-ops-drawer .plan-table {
  grid-template-columns: 1fr !important;
}

.enterprise-app .ceo-ops-drawer .plan-table span {
  border-right: 0 !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.62) !important;
}

.enterprise-app .ceo-ops-drawer .plan-table span:last-child {
  border-bottom: 0 !important;
}

.enterprise-app .ceo-ops-drawer .table-head {
  display: none !important;
}

.enterprise-app .ceo-ops-drawer .table-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.enterprise-app .ceo-ops-drawer .table-row span:nth-child(2),
.enterprise-app .ceo-ops-drawer .table-row span:nth-child(4) {
  display: none !important;
}

.enterprise-app .tiny-icon.plan {
  color: #2563eb;
  --tiny-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%203h6l2%202v16H7V5l2-2Z'/%3E%3Cpath%20d='M9%209h6M9%2013h6M9%2017h4'/%3E%3C/svg%3E");
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .mission-desk-card {
    display: flex !important;
    gap: 9px !important;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    grid-template-rows: 128px minmax(0, 1fr) !important;
    padding: 8px 10px !important;
  }

  .enterprise-app .agent-flow-map {
    min-height: 128px !important;
  }

  .enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
    width: 54px !important;
    height: 58px !important;
  }

  .enterprise-app .agent-link {
    height: 70px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command {
    flex-basis: 170px !important;
    padding: 10px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 124px !important;
    min-height: 124px !important;
  }

  .enterprise-app .ceo-ops-drawer {
    width: min(360px, 32vw);
  }

  .enterprise-app .ceo-mission-desk.ops-drawer-open {
    padding-right: min(394px, 35vw) !important;
  }
}

/* 2026-06-22 CEO page canvas-first trial. Keep functionality, remove the heavy white card base. */
.enterprise-app .ceo-mission-desk {
  position: relative !important;
  isolation: isolate !important;
  gap: 16px !important;
  padding: 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.58) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.18) 1px, transparent 1.6px) 0 0 / 18px 18px,
    radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.12) 1px, transparent 1.4px) 9px 9px / 36px 36px,
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #f5fff9 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.enterprise-app .ceo-mission-desk::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(37, 99, 235, 0.08) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 0, transparent calc(50% - 1px), rgba(37, 99, 235, 0.06) 50%, transparent calc(50% + 1px));
}

.enterprise-app .ceo-mission-desk .mission-desk-column,
.enterprise-app .ceo-mission-desk .mission-ops-column {
  position: relative !important;
  gap: 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card,
.enterprise-app .ceo-mission-desk .operations-center {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  padding: 4px 2px 4px 4px !important;
}

.enterprise-app .ceo-mission-desk .operations-center {
  padding: 4px 4px 4px 2px !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head {
  padding: 2px 4px 0 !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head h2 {
  letter-spacing: -0.01em !important;
}

.enterprise-app .ceo-mission-desk .desk-section-head p {
  color: #64748b !important;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block,
.enterprise-app .ceo-mission-desk .enterprise-subcard,
.enterprise-app .ceo-mission-desk .operations-table-card,
.enterprise-app .ceo-mission-desk .mini-ops-card,
.enterprise-app .ceo-mission-desk .approval-card,
.enterprise-app .ceo-mission-desk .pixel-ceo-command,
.enterprise-app .ceo-mission-desk .enterprise-empty-state {
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(10px) saturate(1.04) !important;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block:hover,
.enterprise-app .ceo-mission-desk .enterprise-subcard:hover,
.enterprise-app .ceo-mission-desk .operations-table-card:hover,
.enterprise-app .ceo-mission-desk .mini-ops-card:hover,
.enterprise-app .ceo-mission-desk .approval-card:hover {
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow:
    0 20px 48px rgba(37, 99, 235, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.enterprise-app .ceo-mission-desk .ceo-desk-block {
  border-radius: 14px !important;
}

.enterprise-app .ceo-mission-desk .mission-plan-table,
.enterprise-app .ceo-mission-desk .task-split-card,
.enterprise-app .ceo-mission-desk .operations-table-card,
.enterprise-app .ceo-mission-desk .mini-ops-card,
.enterprise-app .ceo-mission-desk .approval-card,
.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  border-radius: 16px !important;
}

.enterprise-app .ceo-mission-desk .mission-plan-table {
  background: rgba(255, 255, 255, 0.56) !important;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  background: rgba(255, 255, 255, 0.58) !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  border-color: rgba(203, 213, 225, 0.62) !important;
  border-radius: 14px !important;
  background: rgba(248, 250, 252, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card:hover {
  background: rgba(255, 255, 255, 0.88) !important;
}

.enterprise-app .ceo-mission-desk .plan-table,
.enterprise-app .ceo-mission-desk .enterprise-table,
.enterprise-app .ceo-mission-desk .approval-row,
.enterprise-app .ceo-mission-desk .center-empty,
.enterprise-app .ceo-mission-desk .recent-run-list,
.enterprise-app .ceo-mission-desk .simple-list {
  border-color: rgba(203, 213, 225, 0.62) !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

.enterprise-app .ceo-mission-desk .table-row {
  background: rgba(255, 255, 255, 0.36) !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.enterprise-app .ceo-mission-desk .mission-history-rail {
  border: 1px solid rgba(203, 213, 225, 0.58) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px) !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk {
    gap: 12px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }

  .enterprise-app .ceo-mission-desk .mission-desk-card,
  .enterprise-app .ceo-mission-desk .operations-center {
    padding: 3px !important;
  }
}

/* Final CEO cockpit precedence: keep v2 layout above older canvas experiment overrides. */
.enterprise-app .ceo-mission-desk {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  padding: 12px !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open {
  padding-right: 12px !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  transform: translateX(-18px) !important;
  transform-origin: center left !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 6px !important;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  display: grid !important;
  grid-template-rows: 176px minmax(0, 1fr) !important;
  flex: 1 1 auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.enterprise-app .ceo-mission-desk .mission-history-rail {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  flex: 0 0 214px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  height: 158px !important;
  min-height: 158px !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk {
    padding: 8px !important;
  }

  .enterprise-app .ceo-mission-desk.ops-drawer-open {
    padding-right: 8px !important;
  }

  .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
    transform: translateX(-14px) !important;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    grid-template-rows: 128px minmax(0, 1fr) !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command {
    flex-basis: 170px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 124px !important;
    min-height: 124px !important;
  }
}

/* 2026-06-22 CEO cockpit v3: floating nav, compact agents, stacked mini drawers. */
.enterprise-app .sidebar {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.enterprise-app .sidebar .brand,
.enterprise-app .sidebar .workspace-card,
.enterprise-app .sidebar .side-note,
.enterprise-app .sidebar .sidebar-toggle {
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.06) !important;
}

.enterprise-app .sidebar .brand {
  padding: 12px !important;
}

.enterprise-app .nav {
  gap: 10px !important;
}

.enterprise-app .nav button {
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px) !important;
}

.enterprise-app .nav button.active,
.enterprise-app .nav button:hover {
  border-color: rgba(96, 165, 250, 0.72) !important;
  background: rgba(239, 246, 255, 0.78) !important;
  transform: translateX(3px);
}

.enterprise-app.sidebar-collapsed .sidebar .brand,
.enterprise-app.sidebar-collapsed .sidebar .side-note {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  transform: translateX(-28px) !important;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  grid-template-rows: 130px clamp(228px, 38vh, 310px) !important;
  align-content: center !important;
  gap: 14px !important;
}

.enterprise-app .agent-flow-map {
  min-height: 130px !important;
}

.enterprise-app .agent-flow-ceo {
  padding: 8px 14px 10px !important;
}

.enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
  width: 56px !important;
  height: 60px !important;
}

.enterprise-app .agent-link {
  height: 62px !important;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  height: clamp(228px, 38vh, 310px) !important;
  align-self: center !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  height: 100% !important;
  padding: 12px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dl {
  gap: 6px !important;
  margin: 12px 0 8px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  flex: 0 0 184px !important;
  padding: 12px !important;
  margin-bottom: 4px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
  margin-bottom: 8px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  height: 132px !important;
  min-height: 132px !important;
  padding: 13px 14px 48px !important;
}

.enterprise-app .ceo-ops-stack {
  position: absolute;
  top: 94px;
  right: 78px;
  z-index: 42;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, 29vw);
  max-height: calc(100% - 112px);
  padding: 0;
  overflow: auto;
  pointer-events: none;
  scrollbar-width: thin;
}

.enterprise-app .ceo-ops-popover {
  position: relative;
  pointer-events: auto;
  animation: ceoMiniDrawerIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--drawer-index, 0) * 70ms);
}

@keyframes ceoMiniDrawerIn {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.enterprise-app .ceo-ops-popover > .enterprise-subcard,
.enterprise-app .ceo-ops-popover > .operations-table-card,
.enterprise-app .ceo-ops-popover > .mini-ops-card,
.enterprise-app .ceo-ops-popover > .approval-card {
  margin: 0 !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}

.enterprise-app .ceo-ops-popover .ceo-ops-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.enterprise-app .ceo-ops-popover .subcard-head {
  padding-right: 34px;
}

.enterprise-app .ceo-ops-popover .plan-table {
  grid-template-columns: 1fr !important;
}

.enterprise-app .ceo-ops-popover .plan-table span {
  border-right: 0 !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.62) !important;
}

.enterprise-app .ceo-ops-popover .plan-table span:last-child {
  border-bottom: 0 !important;
}

.enterprise-app .ceo-ops-popover .table-head {
  display: none !important;
}

.enterprise-app .ceo-ops-popover .table-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.enterprise-app .ceo-ops-popover .table-row span:nth-child(2),
.enterprise-app .ceo-ops-popover .table-row span:nth-child(4) {
  display: none !important;
}

.enterprise-app .ceo-ops-drawer {
  display: none !important;
}

@media (max-height: 900px) and (min-width: 1100px) {
  .enterprise-app .ceo-mission-desk .task-split-card {
    grid-template-rows: 108px clamp(190px, 34vh, 250px) !important;
    gap: 9px !important;
  }

  .enterprise-app .agent-flow-map {
    min-height: 108px !important;
  }

  .enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
    width: 46px !important;
    height: 50px !important;
  }

  .enterprise-app .agent-link {
    height: 50px !important;
  }

  .enterprise-app .ceo-mission-desk .task-card-grid {
    height: clamp(190px, 34vh, 250px) !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command {
    flex-basis: 158px !important;
    margin-bottom: 6px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 108px !important;
    min-height: 108px !important;
    padding-bottom: 42px !important;
  }

  .enterprise-app .ceo-ops-stack {
    top: 76px;
    width: min(330px, 30vw);
    max-height: calc(100% - 92px);
  }
}

/* 2026-06-22 CEO cockpit v4: viewport-fit layout and true stacked operation popovers. */
.enterprise-app .enterprise-frame {
  height: calc(100vh - 64px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .main-content {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 10px 10px 10px 12px !important;
  overflow: hidden !important;
}

.enterprise-app .sidebar {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 88px) !important;
  margin: 12px 0 0 12px !important;
  padding: 0 !important;
  overflow: visible !important;
}

.enterprise-app .sidebar .nav {
  display: grid !important;
  gap: 10px !important;
  overflow: visible !important;
  padding: 0 !important;
}

.enterprise-app .sidebar .nav button {
  min-height: 56px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.enterprise-app .sidebar .nav button.active {
  background: rgba(239, 246, 255, 0.86) !important;
}

.enterprise-app .sidebar .sidebar-toggle {
  margin-top: 14px !important;
}

.enterprise-app .ceo-mission-desk {
  height: 100% !important;
  min-height: 0 !important;
  padding: 8px !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-column {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  width: calc(100% - min(390px, 32vw)) !important;
  transform: translateX(-6px) scale(0.985) !important;
  transform-origin: center left !important;
}

.enterprise-app .ceo-mission-desk .mission-desk-card {
  height: 100% !important;
  min-height: 0 !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.enterprise-app .ceo-mission-desk .task-split-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 4px 8px !important;
  grid-template-rows: 112px clamp(190px, 33vh, 244px) !important;
  align-content: center !important;
  gap: 10px !important;
  overflow: visible !important;
}

.enterprise-app .agent-flow-map {
  min-height: 112px !important;
}

.enterprise-app .agent-flow-ceo {
  padding: 6px 12px 8px !important;
}

.enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
  width: 48px !important;
  height: 52px !important;
}

.enterprise-app .agent-link {
  height: 52px !important;
}

.enterprise-app .ceo-mission-desk .task-card-grid {
  grid-template-columns: repeat(4, minmax(148px, 210px)) !important;
  justify-content: center !important;
  height: clamp(174px, 30vh, 224px) !important;
  gap: 12px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 16px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dl {
  gap: 5px !important;
  margin: 10px 0 6px !important;
}

.enterprise-app .ceo-mission-desk .worker-task-card dd {
  -webkit-line-clamp: 2 !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  flex: 0 0 154px !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  overflow: visible !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-command h3 {
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

.enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
  height: 102px !important;
  min-height: 102px !important;
  padding: 12px 14px 42px !important;
}

.enterprise-app .ceo-mission-desk .pixel-command-actions {
  bottom: 8px !important;
}

.enterprise-app .ceo-ops-stack {
  position: fixed !important;
  top: 174px !important;
  right: 110px !important;
  z-index: 96 !important;
  width: min(350px, 30vw) !important;
  max-height: calc(100vh - 190px) !important;
  gap: 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.enterprise-app .ceo-ops-popover {
  width: 100% !important;
}

.enterprise-app .ceo-ops-popover > .enterprise-subcard,
.enterprise-app .ceo-ops-popover > .operations-table-card,
.enterprise-app .ceo-ops-popover > .mini-ops-card,
.enterprise-app .ceo-ops-popover > .approval-card {
  max-height: min(330px, calc(100vh - 164px)) !important;
  overflow: auto !important;
}

.ceo-floating-assistant.drawer-open {
  transform: translateY(96px);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-height: 820px) and (min-width: 1100px) {
  .enterprise-app .sidebar .nav {
    gap: 8px !important;
  }

  .enterprise-app .sidebar .nav button {
    min-height: 48px !important;
  }

  .enterprise-app .ceo-mission-desk .task-split-card {
    grid-template-rows: 92px clamp(160px, 29vh, 204px) !important;
    gap: 8px !important;
  }

  .enterprise-app .agent-flow-map {
    min-height: 92px !important;
  }

  .enterprise-app .agent-flow-ceo .ceo-cartoon-icon {
    width: 40px !important;
    height: 44px !important;
  }

  .enterprise-app .agent-link {
    height: 42px !important;
  }

  .enterprise-app .ceo-mission-desk .task-card-grid {
    grid-template-columns: repeat(4, minmax(132px, 184px)) !important;
    height: clamp(148px, 26vh, 184px) !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card {
    padding: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .worker-task-card dl {
    margin-top: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-command {
    flex-basis: 132px !important;
    margin-bottom: 8px !important;
  }

  .enterprise-app .ceo-mission-desk .pixel-ceo-form .mission-input {
    height: 82px !important;
    min-height: 82px !important;
  }

  .ceo-floating-assistant.drawer-open {
    transform: translateY(82px);
  }
}

/* 2026-06-22 CEO cockpit v5: iOS-like staged avoidance motion. */
.enterprise-app {
  --motion-ios: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

.enterprise-app .ceo-mission-desk .mission-desk-column {
  will-change: width, transform, filter;
  transition:
    width 760ms var(--motion-ios),
    transform 760ms var(--motion-ios),
    filter 760ms var(--motion-ios) !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  transform: translate3d(-10px, 0, 0) !important;
  filter: saturate(0.98);
}

.enterprise-app .ceo-mission-desk .task-split-card {
  transform-origin: 56% 42%;
  will-change: transform;
  transition:
    transform 760ms var(--motion-ios),
    opacity 520ms var(--motion-soft) !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card {
  transform: translate3d(-12px, 0, 0);
}

.enterprise-app .ceo-mission-desk .agent-flow-map,
.enterprise-app .ceo-mission-desk .task-card-grid,
.enterprise-app .ceo-mission-desk .pixel-ceo-command {
  will-change: transform;
  transition:
    transform 760ms var(--motion-ios),
    width 760ms var(--motion-ios),
    height 760ms var(--motion-ios),
    opacity 520ms var(--motion-soft) !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map {
  transform: translate3d(-4px, 0, 0) scale(0.99);
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command {
  transform: translate3d(-8px, 0, 0);
}

.enterprise-app .ceo-mission-desk .worker-task-card {
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    transform 760ms var(--motion-ios),
    border-color 360ms ease,
    box-shadow 360ms ease,
    background 360ms ease !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(1) {
  --avoid-start-x: 96px;
  --avoid-final-x: -2px;
  --avoid-final-scale: 1;
  transform: translate3d(-2px, 0, 0);
  transition-delay: 0ms !important;
  animation: workerCardAvoidIn 820ms var(--motion-ios) both;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(2) {
  --avoid-start-x: 136px;
  --avoid-final-x: -8px;
  --avoid-final-scale: 1;
  transform: translate3d(-8px, 0, 0);
  transition-delay: 36ms !important;
  animation: workerCardAvoidIn 820ms var(--motion-ios) 36ms both;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(3) {
  --avoid-start-x: 178px;
  --avoid-final-x: -14px;
  --avoid-final-scale: 1;
  transform: translate3d(-14px, 0, 0);
  transition-delay: 72ms !important;
  animation: workerCardAvoidIn 820ms var(--motion-ios) 72ms both;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(4) {
  --avoid-start-x: 220px;
  --avoid-final-x: -20px;
  --avoid-final-scale: 1;
  transform: translate3d(-20px, 0, 0);
  transition-delay: 108ms !important;
  animation: workerCardAvoidIn 820ms var(--motion-ios) 108ms both;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo {
  animation: ceoNodeAvoidIn 760ms var(--motion-ios) both;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command {
  animation: commandBarAvoidIn 780ms var(--motion-ios) 80ms both;
}

@keyframes ceoNodeAvoidIn {
  0% {
    opacity: 0.92;
    transform: translate3d(112px, 0, 0) scale(1.06);
  }
  64% {
    opacity: 1;
    transform: translate3d(-8px, 0, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes workerCardAvoidIn {
  0% {
    opacity: 0.92;
    transform: translate3d(var(--avoid-start-x), 0, 0) scale(1.07);
  }
  62% {
    opacity: 1;
    transform: translate3d(calc(var(--avoid-final-x) - 7px), 0, 0) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--avoid-final-x), 0, 0) scale(var(--avoid-final-scale));
  }
}

@keyframes commandBarAvoidIn {
  0% {
    opacity: 0.94;
    transform: translate3d(118px, 0, 0) scaleX(1.12);
  }
  64% {
    opacity: 1;
    transform: translate3d(-14px, 0, 0) scaleX(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(-8px, 0, 0) scale(1);
  }
}

.enterprise-app .ceo-ops-stack {
  will-change: transform, opacity;
  transition:
    transform 640ms var(--motion-ios),
    opacity 420ms ease !important;
}

.enterprise-app .ceo-ops-popover {
  animation: ceoMiniDrawerIn 680ms var(--motion-ios) both !important;
}

@keyframes ceoMiniDrawerIn {
  0% {
    opacity: 0;
    transform: translate3d(46px, 12px, 0) scale(0.965);
  }
  58% {
    opacity: 1;
    transform: translate3d(-5px, 0, 0) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.ceo-floating-assistant.drawer-open {
  transition: transform 680ms var(--motion-ios);
}

@media (prefers-reduced-motion: reduce) {
  .enterprise-app .ceo-mission-desk .mission-desk-column,
  .enterprise-app .ceo-mission-desk .task-split-card,
  .enterprise-app .ceo-mission-desk .agent-flow-map,
  .enterprise-app .ceo-mission-desk .task-card-grid,
  .enterprise-app .ceo-mission-desk .pixel-ceo-command,
  .enterprise-app .ceo-mission-desk .worker-task-card,
  .enterprise-app .ceo-ops-stack,
  .ceo-floating-assistant.drawer-open {
    transition-duration: 1ms !important;
  }

  .enterprise-app .ceo-ops-popover {
    animation-duration: 1ms !important;
  }
}

/* 2026-06-22 CEO cockpit v6: stateful drawer motion, no repeated agent reflow. */
.enterprise-app {
  --motion-ios: cubic-bezier(0.19, 1, 0.22, 1);
  --motion-settle: cubic-bezier(0.22, 1, 0.36, 1);
}

.enterprise-app .ceo-mission-desk .mission-desk-column,
.enterprise-app .ceo-mission-desk .task-split-card,
.enterprise-app .ceo-mission-desk .agent-flow-map,
.enterprise-app .ceo-mission-desk .task-card-grid,
.enterprise-app .ceo-mission-desk .pixel-ceo-command,
.enterprise-app .ceo-mission-desk .worker-task-card {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column {
  transform: translate3d(-8px, 0, 0) !important;
  filter: saturate(0.99);
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card {
  transform: translate3d(-10px, 0, 0);
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map {
  transform: translate3d(-3px, 0, 0) scale(0.992);
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command {
  transform: translate3d(-7px, 0, 0);
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(1) {
  --avoid-start-x: 20px;
  --avoid-final-x: -2px;
  transform: translate3d(-2px, 0, 0);
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(2) {
  --avoid-start-x: 26px;
  --avoid-final-x: -8px;
  transform: translate3d(-8px, 0, 0);
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(3) {
  --avoid-start-x: 32px;
  --avoid-final-x: -14px;
  transform: translate3d(-14px, 0, 0);
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(4) {
  --avoid-start-x: 38px;
  --avoid-final-x: -20px;
  transform: translate3d(-20px, 0, 0);
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command {
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo {
  animation: ceoNodeAvoidInV6 720ms var(--motion-ios) both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command {
  animation: commandBarAvoidInV6 760ms var(--motion-ios) 70ms both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(1) {
  animation: workerCardAvoidInV6 740ms var(--motion-ios) both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(2) {
  animation: workerCardAvoidInV6 740ms var(--motion-ios) 28ms both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(3) {
  animation: workerCardAvoidInV6 740ms var(--motion-ios) 56ms both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(4) {
  animation: workerCardAvoidInV6 740ms var(--motion-ios) 84ms both !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  width: 100% !important;
  transform: translate3d(0, 0, 0) !important;
  filter: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-closing .task-split-card,
.enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-map,
.enterprise-app .ceo-mission-desk.ops-drawer-closing .pixel-ceo-command,
.enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card {
  transform: translate3d(0, 0, 0) scale(1) !important;
  animation: none !important;
}

.enterprise-app .ceo-ops-popover {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  animation: none !important;
  transition:
    opacity 260ms ease,
    transform 520ms var(--motion-ios),
    box-shadow 520ms var(--motion-settle) !important;
}

.enterprise-app .ceo-ops-popover.entering {
  animation: ceoMiniDrawerInV6 560ms var(--motion-ios) both !important;
}

.enterprise-app .ceo-ops-popover.closing {
  opacity: 0 !important;
  transform: translate3d(34px, -4px, 0) scale(0.985) !important;
  pointer-events: none !important;
}

.enterprise-app .ceo-ops-stack.closing {
  opacity: 0 !important;
  transform: translate3d(34px, 0, 0) scale(0.986) !important;
  pointer-events: none !important;
}

@keyframes ceoNodeAvoidInV6 {
  0% {
    opacity: 0.96;
    transform: translate3d(22px, 0, 0) scale(1.018);
  }
  70% {
    opacity: 1;
    transform: translate3d(-3px, 0, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes workerCardAvoidInV6 {
  0% {
    opacity: 0.98;
    transform: translate3d(var(--avoid-start-x), 0, 0) scale(1.018);
  }
  72% {
    opacity: 1;
    transform: translate3d(calc(var(--avoid-final-x) - 3px), 0, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--avoid-final-x), 0, 0) scale(1);
  }
}

@keyframes commandBarAvoidInV6 {
  0% {
    opacity: 0.98;
    transform: translate3d(22px, 0, 0) scaleX(1.025);
  }
  72% {
    opacity: 1;
    transform: translate3d(-9px, 0, 0) scaleX(0.998);
  }
  100% {
    opacity: 1;
    transform: translate3d(-7px, 0, 0) scale(1);
  }
}

@keyframes ceoMiniDrawerInV6 {
  0% {
    opacity: 0;
    transform: translate3d(42px, 10px, 0) scale(0.982);
  }
  70% {
    opacity: 1;
    transform: translate3d(-2px, 0, 0) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* 2026-06-22 CEO cockpit v7: FLIP owns the left-stage avoidance motion. */
.enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card {
  animation: none !important;
}

/* CEO identity and drawer independence fixes. */
.ceo-floating-assistant.drawer-open {
  transform: none !important;
  transition: none !important;
}

.enterprise-app .ceo-cartoon-icon.running {
  background-image: url("/assets/agents/ceo-work.png") !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
  background-size: 600% 100% !important;
  animation: agentSpriteWork 1.08s steps(6, end) infinite !important;
}

.enterprise-app .agent-avatar.running .agent-avatar-sprite,
.enterprise-app .agent-avatar-ceo.running .agent-avatar-sprite,
.ceo-floating-assistant.thinking .ceo-floating-avatar .agent-avatar-sprite {
  background-position: 0 0;
  background-size: 600% 100% !important;
  animation: agentSpriteWork 0.92s steps(6, end) infinite !important;
}

.enterprise-app .agent-avatar.running .agent-avatar-sprite.ceo,
.enterprise-app .agent-avatar-ceo.running .agent-avatar-sprite,
.ceo-floating-assistant.thinking .ceo-floating-avatar .agent-avatar-sprite {
  background-image: url("/assets/agents/ceo-work.png") !important;
}

.enterprise-app .agent-avatar-ceo:not(.running) .agent-avatar-sprite {
  animation: agentSpriteLead 2.1s steps(6, end) infinite !important;
}

.ceo-floating-avatar .agent-avatar-sprite,
.ceo-floating-assistant.thinking .ceo-floating-avatar .agent-avatar-sprite {
  background-image: url("/assets/agents/ceo.png") !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  animation: none !important;
}

.ceo-floating-assistant.thinking .ceo-floating-avatar {
  animation: ceoFloatingThinkingPulse 1.6s ease-in-out infinite;
}

@keyframes ceoFloatingThinkingPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
  }
}

/* 2026-06-22 Hybrid SaaS runtime header. */
.enterprise-app .globalbar,
.enterprise-app.sidebar-collapsed .globalbar {
  grid-template-columns: 268px minmax(330px, 1fr) auto !important;
}

.workspace-switch.hybrid-runtime-switch {
  height: 54px !important;
  padding: 8px 12px !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)) !important;
}

.workspace-switch.hybrid-runtime-switch span {
  color: #2563eb !important;
}

.workspace-switch.hybrid-runtime-switch strong {
  max-width: 176px !important;
}

.workspace-switch.hybrid-runtime-switch small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hybrid-runtime-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)) !important;
}

.hybrid-runtime-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hybrid-runtime-main h3 {
  margin: 4px 0 4px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.hybrid-runtime-main p {
  max-width: 820px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.hybrid-runtime-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hybrid-runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.hybrid-runtime-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.hybrid-runtime-grid small,
.hybrid-runtime-grid span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hybrid-runtime-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin: 4px 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hybrid-runtime-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hybrid-runtime-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 750;
}

.account-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-control-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-control-actions button:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.account-control-actions button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

@media (max-width: 1280px) {
  .hybrid-runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-22 Pricing upgrade modal. */
.pricing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.pricing-modal {
  position: relative;
  width: min(1240px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 52px 24px 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
  scrollbar-gutter: stable;
}

.pricing-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pricing-close:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.pricing-modal-head {
  margin: 0 auto 24px;
  text-align: center;
}

.pricing-modal-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.pricing-modal-head p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 442px;
  padding: 22px 18px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 6%, rgba(148, 163, 184, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pricing-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.pricing-card.recommended,
.pricing-card.selected {
  border-color: #2563eb;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
}

.pricing-recommend,
.pricing-current {
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.pricing-current {
  top: 48px;
  background: #ecfdf3;
  color: #027a48;
  box-shadow: none;
}

.pricing-card.current:not(.recommended) .pricing-current {
  top: 13px;
}

.pricing-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #16a34a;
  font-size: 28px;
  font-weight: 800;
}

.pricing-icon::before {
  line-height: 1;
}

.pricing-icon-sprout::before { content: "♧"; }
.pricing-icon-star::before { content: "☆"; }
.pricing-icon-diamond::before { content: "◇"; }
.pricing-icon-building::before { content: "▥"; }
.pricing-icon-shield::before { content: "⬡"; }

.pricing-blue .pricing-icon {
  border-color: #dbeafe;
  color: #2563eb;
}

.pricing-purple .pricing-icon {
  border-color: #ede9fe;
  color: #7c3aed;
}

.pricing-orange .pricing-icon {
  border-color: #fed7aa;
  color: #f97316;
}

.pricing-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  color: #0f172a;
}

.pricing-price span {
  font-size: 17px;
  font-weight: 800;
}

.pricing-price strong {
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
}

.pricing-price em {
  color: #64748b;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.pricing-orange .pricing-price strong {
  font-size: 22px;
}

.pricing-divider {
  height: 1px;
  margin: 14px 0 16px;
  background: #e2e8f0;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  min-height: 132px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-card li span {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid #16a34a;
  border-radius: 999px;
}

.pricing-card li span::after {
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  color: #16a34a;
  content: "";
  transform: rotate(45deg);
}

.pricing-blue li span,
.pricing-blue li span::after {
  border-color: #2563eb;
  color: #2563eb;
}

.pricing-purple li span,
.pricing-purple li span::after {
  border-color: #7c3aed;
  color: #7c3aed;
}

.pricing-orange li span,
.pricing-orange li span::after {
  border-color: #f97316;
  color: #f97316;
}

.pricing-pay-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 10px;
}

.pricing-pay-options button {
  min-height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.pricing-pay-options button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #155eef;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.pricing-cta {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.pricing-cta:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.pricing-green .pricing-cta {
  border-color: #bbf7d0;
  color: #16a34a;
}

.pricing-blue .pricing-cta {
  border-color: #2563eb;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.pricing-purple .pricing-cta {
  border-color: #c4b5fd;
  color: #7c3aed;
}

.pricing-orange .pricing-cta {
  border-color: #fdba74;
  color: #f97316;
}

.pricing-notice {
  margin: 14px auto 0;
  max-width: 720px;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.pricing-modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #64748b;
}

.pricing-modal-foot p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.pricing-lock {
  position: relative;
  width: 16px;
  height: 13px;
  border: 2px solid #94a3b8;
  border-radius: 3px;
}

.pricing-lock::before {
  position: absolute;
  left: 2px;
  top: -9px;
  width: 8px;
  height: 8px;
  border: 2px solid #94a3b8;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.auth-modal {
  position: relative;
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 42px 28px 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.auth-modal-head {
  margin-bottom: 22px;
  text-align: left;
}

.auth-modal-head h3 {
  font-size: 30px;
}

.auth-modal-head p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  outline: none;
}

.auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-hint {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.auth-notice {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.auth-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.auth-actions button.primary {
  border-color: #2563eb;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.auth-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 1180px) {
  .pricing-modal {
    width: min(760px, calc(100vw - 40px));
  }

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

  .pricing-card {
    min-height: 390px;
  }
}

@media (max-height: 820px) and (min-width: 1181px) {
  .pricing-backdrop {
    padding: 14px;
  }

  .pricing-modal {
    width: min(1280px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 44px 20px 18px;
  }

  .pricing-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .pricing-modal-head {
    margin-bottom: 18px;
  }

  .pricing-modal-head h3 {
    font-size: clamp(28px, 2.4vw, 38px);
  }

  .pricing-modal-head p {
    font-size: 15px;
  }

  .pricing-card {
    min-height: 392px;
    padding: 18px 16px 16px;
  }

  .pricing-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    font-size: 24px;
  }

  .pricing-card h4 {
    font-size: 22px;
  }

  .pricing-price {
    min-height: 42px;
  }

  .pricing-price strong {
    font-size: 34px;
  }

  .pricing-card ul {
    gap: 8px;
    min-height: 118px;
  }

  .pricing-card li {
    font-size: 13px;
  }

  .pricing-pay-options button {
    min-height: 30px;
    font-size: 12px;
  }

  .pricing-cta {
    min-height: 42px;
    font-size: 14px;
  }

  .pricing-modal-foot {
    margin-top: 12px;
  }
}

@media (max-width: 680px) {
  .pricing-backdrop {
    padding: 14px;
  }

  .pricing-modal {
    width: 100%;
    padding: 58px 14px 18px;
  }

  .pricing-modal-head h3 {
    font-size: 28px;
  }

  .pricing-modal-head p {
    font-size: 16px;
  }

  .pricing-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-26: deterministic CEO drawer avoidance.
   Prevent the old keyframe avoidance and JS FLIP stack from producing a second
   visible left jump after the right drawers have already settled. */
.enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card,
.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card {
  animation: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
.enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card {
  transition: none !important;
}

.enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
.enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
.enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
.enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command {
  transition: transform 520ms cubic-bezier(0.19, 1, 0.22, 1), opacity 320ms ease !important;
}

/* 2026-06-26: integrations use modal configuration only; no legacy profile pages. */
.profile-config-modal {
  width: min(980px, calc(100vw - 48px));
  max-width: 980px;
}

.profile-config-modal-body {
  display: grid;
  gap: 16px;
  max-height: min(72vh, 720px);
  overflow: auto;
}

/* 2026-06-28: right drawers are stable during 1s runtime re-render ticks.
   Only a user-triggered newly opened drawer gets the entering keyframe. */
.enterprise-app .ceo-ops-popover {
  animation-delay: 0ms !important;
}

.enterprise-app .ceo-ops-popover:not(.entering):not(.closing) {
  animation: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.enterprise-app .ceo-floating-assistant,
.enterprise-app .ceo-floating-assistant.drawer-open {
  transition: none !important;
  transform: none !important;
}

.profile-config-modal-body .settings-section,
.profile-config-modal-body .profile-config-page,
.profile-config-modal-body .profile-config-page.active {
  display: grid !important;
}

.profile-config-modal-section {
  border-color: rgba(203, 213, 225, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06) !important;
}

.profile-modal-actions {
  position: sticky;
  bottom: -1px;
  justify-content: flex-end;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 42%);
}

.personal-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.personal-profile-card {
  display: grid;
  gap: 18px;
}

.personal-profile-card:first-child {
  grid-row: span 2;
}

.personal-profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.personal-profile-main strong,
.personal-profile-main span,
.personal-profile-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-profile-main strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.personal-profile-main span,
.personal-profile-main small {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

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

.profile-summary-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
}

.profile-summary-grid b {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary-grid small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.integration-workbench-page,
.integration-canvas-panel,
.plugin-module,
.plugin-module * {
  user-select: none;
  -webkit-user-select: none;
}

.plugin-module {
  -webkit-user-drag: element;
}

.plugin-module *,
.plugin-module strong,
.plugin-module small,
.socket-slot-label,
.socket-placeholder {
  -webkit-user-drag: none;
}

.plugin-module button,
.plugin-module a {
  user-select: auto;
  -webkit-user-select: auto;
}

.integration-workbench-layout {
  grid-template-columns: minmax(720px, 1fr) clamp(300px, 22vw, 360px) !important;
}

.integration-canvas-panel {
  overflow: visible;
  min-height: 560px !important;
}

.integration-canvas-body {
  grid-template-columns: 22px minmax(360px, 48%) minmax(220px, 1fr) 22px !important;
  min-height: 530px !important;
}

.integration-socket-grid {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none !important;
  height: 500px !important;
  padding-right: 6px;
}

.integration-socket-slot {
  min-width: 0;
  min-height: 62px !important;
  padding: 7px 12px 7px 16px !important;
}

.integration-socket-slot .socket-contact {
  top: 12px !important;
  height: 38px !important;
}

.integration-socket-slot .socket-slot-label {
  margin-bottom: 4px !important;
}

.integration-socket-slot .socket-slot-label span {
  display: none;
}

.integration-socket-slot .socket-placeholder {
  min-height: 30px !important;
}

.plugin-module.slotted {
  min-height: 38px !important;
  padding: 5px 9px !important;
  grid-template-columns: 8px 34px minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.plugin-module.slotted .plugin-logo {
  width: 34px !important;
  height: 34px !important;
}

.plugin-module.slotted .plugin-copy small,
.plugin-module.slotted .plugin-actions {
  display: none !important;
}

@media (max-width: 1260px) {
  .personal-profile-grid {
    grid-template-columns: 1fr;
  }

  .personal-profile-card:first-child {
    grid-row: auto;
  }

  .integration-workbench-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .integration-canvas-body {
    grid-template-columns: 20px minmax(340px, 52%) minmax(180px, 1fr) 20px !important;
  }

  .integration-socket-slot {
    min-height: 76px !important;
  }

  .plugin-module.slotted {
    min-height: 46px !important;
  }
}

/* 2026-06-27: integration console fit pass. Keep the socket-board metaphor,
   but make every area bounded so it cannot bleed across screen sizes. */
.enterprise-app .integration-command-page.integration-workbench-page {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) 96px !important;
  gap: 10px !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 10px 12px 12px !important;
}

.enterprise-app .integration-workbench-head {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 45vw) !important;
  gap: 12px !important;
  padding: 0 !important;
}

.enterprise-app .integration-title-lockup {
  gap: 10px !important;
  min-width: 0 !important;
}

.enterprise-app .integration-title-lockup h1 {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.08 !important;
}

.enterprise-app .integration-title-lockup p {
  margin-top: 4px !important;
  font-size: 12px !important;
}

.enterprise-app .integration-title-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
}

.enterprise-app .integration-health-panel {
  min-height: 58px !important;
  padding: 10px 18px !important;
  border-radius: 22px !important;
}

.enterprise-app .integration-health-panel span {
  min-height: 38px !important;
  padding-inline: 12px !important;
}

.enterprise-app .integration-health-panel strong {
  font-size: 20px !important;
  line-height: 1 !important;
}

.enterprise-app .integration-workbench-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 23vw, 330px) !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .integration-canvas-panel,
.enterprise-app .plugin-dock-panel,
.enterprise-app .integration-recent-panel {
  overflow: hidden !important;
  min-height: 0 !important;
}

.enterprise-app .integration-canvas-panel {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 24px !important;
}

.enterprise-app .integration-canvas-topline {
  padding: 16px 20px 8px !important;
}

.enterprise-app .integration-canvas-topline h3,
.enterprise-app .plugin-dock-head h3,
.enterprise-app .integration-recent-head h3 {
  font-size: 18px !important;
}

.enterprise-app .integration-canvas-topline p,
.enterprise-app .plugin-dock-head p {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.enterprise-app .integration-canvas-body {
  height: calc(100% - 86px) !important;
  min-height: 0 !important;
  grid-template-columns: 18px minmax(240px, 42%) minmax(220px, 1fr) 18px !important;
  gap: 10px !important;
  padding: 4px 18px 14px !important;
}

.enterprise-app .integration-socket-grid {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.enterprise-app .integration-socket-slot {
  min-height: 0 !important;
  height: 100% !important;
  padding: 6px 10px 6px 14px !important;
  border-radius: 14px !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px) !important;
}

.enterprise-app .integration-socket-slot::before,
.enterprise-app .integration-socket-slot::after {
  left: 22px !important;
  right: 22px !important;
}

.enterprise-app .integration-socket-slot .socket-contact {
  top: 10px !important;
  height: calc(100% - 20px) !important;
  width: 3px !important;
}

.enterprise-app .socket-slot-label {
  margin-bottom: 3px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.enterprise-app .socket-slot-label strong {
  font-size: 12px !important;
}

.enterprise-app .socket-slot-label span {
  display: none !important;
}

.enterprise-app .socket-placeholder {
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.enterprise-app .integration-canvas-stage {
  min-height: 0 !important;
  overflow: hidden !important;
}

.enterprise-app .integration-floating-module {
  width: min(286px, 92%) !important;
}

.enterprise-app .integration-canvas-hint {
  bottom: 18px !important;
  width: min(260px, 88%) !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
}

.enterprise-app .plugin-dock-panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 16px 14px !important;
  border-radius: 24px !important;
}

.enterprise-app .plugin-dock-head {
  flex: 0 0 auto !important;
  gap: 8px !important;
}

.enterprise-app .plugin-market-button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
}

.enterprise-app .plugin-dock-filter {
  flex: 0 0 auto !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 8px 0 10px !important;
  padding: 0 12px !important;
}

.enterprise-app .plugin-dock-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 0 3px 2px 0 !important;
}

.enterprise-app .plugin-module {
  grid-template-columns: 6px 34px minmax(0, 1fr) 30px !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 6px 9px !important;
  border-radius: 14px !important;
  touch-action: none !important;
  cursor: grab !important;
}

.enterprise-app .plugin-module:active,
.enterprise-app .plugin-module.is-dragging {
  cursor: grabbing !important;
}

.enterprise-app .plugin-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.enterprise-app .plugin-copy strong {
  font-size: 12px !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
}

.enterprise-app .plugin-copy small {
  max-width: 100% !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.enterprise-app .plugin-lights {
  gap: 5px !important;
}

.enterprise-app .status-light {
  width: 9px !important;
  height: 9px !important;
}

.enterprise-app .plugin-module .plugin-actions {
  display: none !important;
}

.enterprise-app .plugin-module:hover .plugin-actions,
.enterprise-app .plugin-module:focus-within .plugin-actions {
  display: none !important;
}

.enterprise-app .plugin-module.slotted {
  min-height: 36px !important;
  grid-template-columns: 5px 30px minmax(0, 1fr) 26px !important;
  padding: 4px 7px !important;
}

.enterprise-app .plugin-module.slotted .plugin-logo {
  width: 30px !important;
  height: 30px !important;
}

.enterprise-app .plugin-module.slotted .plugin-copy small,
.enterprise-app .plugin-module.slotted .plugin-actions {
  display: none !important;
}

.enterprise-app .plugin-module.floating {
  min-height: 50px !important;
  padding: 8px 10px !important;
}

.integration-drag-ghost {
  opacity: 0.96 !important;
  filter: drop-shadow(0 24px 44px rgba(37, 99, 235, 0.18));
  transition: none !important;
}

.integration-drag-active,
.integration-drag-active * {
  cursor: grabbing !important;
  user-select: none !important;
}

.enterprise-app .integration-socket-slot.drag-over {
  transform: translateY(-1px) scale(1.012) !important;
  border-color: rgba(37, 99, 235, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 24px 52px rgba(37, 99, 235, 0.14), inset 0 0 22px rgba(37, 99, 235, 0.08) !important;
}

.enterprise-app .integration-socket-slot.drag-over .socket-contact {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.12)) !important;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.62) !important;
}

.enterprise-app .integration-recent-panel {
  height: 96px !important;
  min-height: 96px !important;
  padding: 11px 16px !important;
  border-radius: 22px !important;
}

.enterprise-app .integration-recent-head {
  margin-bottom: 8px !important;
}

.enterprise-app .integration-recent-strip {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(220px, 1fr) !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 2px !important;
}

.enterprise-app .integration-recent-chip {
  min-height: 44px !important;
  padding: 7px 10px !important;
  border-radius: 15px !important;
  grid-template-columns: 32px minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.enterprise-app .integration-recent-chip .mini {
  width: 32px !important;
  height: 32px !important;
}

.enterprise-app .integration-recent-chip strong {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.enterprise-app .integration-recent-chip small,
.enterprise-app .integration-recent-chip time {
  display: none !important;
}

@media (max-width: 1320px) {
  .enterprise-app .integration-command-page.integration-workbench-page {
    grid-template-rows: auto minmax(0, 1fr) 86px !important;
    padding: 8px !important;
  }

  .enterprise-app .integration-workbench-head {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42vw) !important;
  }

  .enterprise-app .integration-workbench-layout {
    grid-template-columns: minmax(0, 1fr) 286px !important;
    gap: 10px !important;
  }

  .enterprise-app .integration-canvas-body {
    grid-template-columns: 14px minmax(220px, 44%) minmax(180px, 1fr) 14px !important;
    padding-inline: 12px !important;
  }

  .enterprise-app .integration-socket-slot {
    padding-inline: 12px 8px !important;
  }

  .enterprise-app .plugin-dock-panel {
    padding: 14px 11px !important;
  }

  .enterprise-app .plugin-module {
    grid-template-columns: 5px 30px minmax(0, 1fr) 24px !important;
    min-height: 42px !important;
    gap: 7px !important;
  }

  .enterprise-app .plugin-logo {
    width: 30px !important;
    height: 30px !important;
  }

  .enterprise-app .integration-recent-panel {
    height: 86px !important;
    min-height: 86px !important;
  }
}

@media (max-width: 1080px) {
  .enterprise-app .integration-command-page.integration-workbench-page {
    overflow: auto !important;
    height: auto !important;
    grid-template-rows: auto auto auto !important;
  }

  .enterprise-app .integration-workbench-head,
  .enterprise-app .integration-workbench-layout {
    grid-template-columns: 1fr !important;
  }

  .enterprise-app .integration-canvas-panel {
    min-height: 520px !important;
  }

  .enterprise-app .plugin-dock-panel {
    max-height: 420px !important;
  }
}

/* 2026-06-27: multi-socket integration matrix. Slots now behave like
   multi-plugin rails across all sides instead of one fixed replacement list. */
.enterprise-app .integration-socket-matrix {
  display: grid !important;
  grid-template-columns: 16px minmax(170px, 24%) minmax(240px, 1fr) minmax(170px, 24%) 16px !important;
  grid-template-rows: minmax(74px, 0.72fr) minmax(190px, 1.75fr) minmax(74px, 0.72fr) !important;
  grid-template-areas:
    ". top top top ."
    "rail-left left stage right rail-right"
    ". bottom bottom bottom ." !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.enterprise-app .integration-socket-matrix > .integration-socket-rail.left {
  grid-area: rail-left !important;
}

.enterprise-app .integration-socket-matrix > .integration-socket-rail.right {
  grid-area: rail-right !important;
}

.enterprise-app .integration-socket-zone {
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: 7px !important;
  overflow: hidden !important;
}

.enterprise-app .integration-socket-zone.top {
  grid-area: top !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.enterprise-app .integration-socket-zone.left {
  grid-area: left !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

.enterprise-app .integration-socket-zone.right {
  grid-area: right !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

.enterprise-app .integration-socket-zone.bottom {
  grid-area: bottom !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.enterprise-app .integration-socket-matrix .integration-canvas-stage {
  grid-area: stage !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.enterprise-app .integration-socket-zone .integration-socket-slot {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 6px 10px !important;
}

.enterprise-app .integration-socket-zone.top .integration-socket-slot,
.enterprise-app .integration-socket-zone.bottom .integration-socket-slot {
  min-height: 68px !important;
}

.enterprise-app .socket-plugin-stack {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 5px !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 1px 1px 2px !important;
  scrollbar-width: none !important;
}

.enterprise-app .socket-plugin-stack::-webkit-scrollbar {
  display: none !important;
}

.enterprise-app .plugin-module.slotted {
  flex: 1 1 118px !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 168px !important;
  min-height: 30px !important;
  grid-template-columns: 4px 25px minmax(0, 1fr) 22px !important;
  gap: 5px !important;
  padding: 3px 6px !important;
  border-radius: 11px !important;
}

.enterprise-app .plugin-module.slotted .plugin-logo {
  width: 25px !important;
  height: 25px !important;
  border-radius: 9px !important;
}

.enterprise-app .plugin-module.slotted .plugin-copy strong {
  font-size: 10.5px !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.enterprise-app .plugin-module.slotted .plugin-lights {
  gap: 3px !important;
}

.enterprise-app .plugin-module.slotted .status-light {
  width: 7px !important;
  height: 7px !important;
}

.enterprise-app .plugin-dock-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.enterprise-app .plugin-dock-list .plugin-module {
  grid-template-columns: 4px 28px minmax(0, 1fr) 20px !important;
  min-height: 42px !important;
  gap: 6px !important;
  padding: 5px 7px !important;
  border-radius: 13px !important;
}

.enterprise-app .plugin-dock-list .plugin-logo {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
}

.enterprise-app .plugin-dock-list .plugin-copy strong {
  font-size: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.enterprise-app .plugin-dock-list .plugin-copy small {
  display: none !important;
}

.enterprise-app .plugin-dock-list .plugin-lights {
  flex-direction: column !important;
  gap: 3px !important;
}

.enterprise-app .integration-socket-slot.drag-over {
  transform: translateY(-1px) scale(1.018) !important;
}

@media (max-width: 1320px) {
  .enterprise-app .integration-socket-matrix {
    grid-template-columns: 14px minmax(145px, 23%) minmax(210px, 1fr) minmax(145px, 23%) 14px !important;
    gap: 6px !important;
  }

  .enterprise-app .plugin-dock-list {
    grid-template-columns: 1fr !important;
  }

  .enterprise-app .plugin-module.slotted {
    min-width: 98px !important;
    max-width: 150px !important;
  }
}

/* Customer Service workspace */
.enterprise-app .customer-service-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #0f172a;
}

.cs-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(620px, 1.85fr);
  gap: 14px;
  align-items: center;
  min-height: 90px;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(18px);
}

.cs-title,
.cs-current-store,
.cs-panel-head,
.cs-chat-head,
.cs-chat-actions,
.cs-stats,
.cs-health-card div:first-child {
  display: flex;
  align-items: center;
}

.cs-title {
  gap: 14px;
  min-width: 0;
}

.cs-title-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
  color: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.cs-title-icon svg {
  width: 30px;
  height: 30px;
}

.cs-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.cs-title p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 560;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cs-stats article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
}

.cs-stats article > span {
  grid-row: 1 / 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #2563eb;
}

.cs-stats svg {
  width: 20px;
  height: 20px;
}

.cs-stats small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.cs-stats strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 860;
  line-height: 1;
}

.cs-stats em {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: #10b981;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.cs-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(460px, 1fr) minmax(320px, 410px);
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.cs-store-panel,
.cs-chat-panel,
.cs-brain-panel > section {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(18px);
}

.cs-store-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.cs-panel-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cs-panel-head h2,
.cs-panel-head span {
  display: inline;
}

.cs-panel-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.cs-panel-head span {
  margin-left: 4px;
  color: #64748b;
  font-size: 12px;
}

.cs-add-store,
.cs-more-store,
.cs-composer button[type="submit"],
.cs-health-card button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4f7cff, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  font-weight: 760;
}

.cs-add-store {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.cs-store-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 1px 2px 4px;
  scrollbar-width: none;
}

.cs-store-list::-webkit-scrollbar,
.cs-chat-stream::-webkit-scrollbar,
.cs-brain-panel::-webkit-scrollbar {
  display: none;
}

.cs-store-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cs-store-card:hover,
.cs-store-card.active {
  border-color: #9bbcff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.cs-platform-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 12px 24px rgba(15, 23, 42, 0.12);
}

.cs-platform-icon.douyin { background: linear-gradient(135deg, #111827, #030712); }
.cs-platform-icon.taobao { background: linear-gradient(135deg, #ff7a18, #ff3d00); }
.cs-platform-icon.jd { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cs-platform-icon.wechat { background: linear-gradient(135deg, #22c55e, #16a34a); }
.cs-platform-icon.pdd { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cs-platform-icon.kuaishou { background: linear-gradient(135deg, #ff7a18, #f97316); }

.cs-platform-icon {
  background: #fff !important;
  color: #0f172a;
  overflow: hidden;
}

.cs-platform-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.cs-platform-icon.unknown {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc) !important;
  color: #334155;
}

.cs-store-copy {
  min-width: 0;
}

.cs-store-copy strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-store-copy span,
.cs-current-store span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 740;
}

.cs-store-copy span::before,
.cs-current-store span::before,
.cs-chat-status span {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.cs-store-copy .online,
.cs-current-store .online,
.cs-chat-status.ok {
  color: #16a34a;
}

.cs-store-copy .offline,
.cs-current-store .offline,
.cs-chat-status.warn {
  color: #f59e0b;
}

.cs-store-copy small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
}

.cs-store-tools {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.cs-channel-button {
  min-width: 46px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cs-channel-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.cs-channel-button.ok {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.cs-channel-button.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.cs-channel-button.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.cs-ai-switch {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.cs-ai-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cs-ai-switch i {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cs-ai-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 160ms ease;
}

.cs-ai-switch input:checked + i {
  background: linear-gradient(180deg, #4f7cff, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.cs-ai-switch input:checked + i::after {
  transform: translateX(16px);
}

.cs-more-store {
  min-height: 40px;
  margin-top: 12px;
  background: #ffffff;
  color: #64748b;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.cs-channel-modal {
  width: min(760px, calc(100vw - 40px));
}

.cs-channel-modal-title {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cs-channel-modal-title h3 {
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.cs-channel-modal-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}

.cs-channel-config-body {
  display: grid;
  gap: 18px;
}

.cs-store-modal,
.cs-knowledge-modal {
  width: min(760px, calc(100vw - 40px));
}

.cs-knowledge-modal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  color: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.cs-knowledge-modal-icon svg {
  width: 24px;
  height: 24px;
}

.cs-knowledge-modal-body {
  display: grid;
  gap: 14px;
}

.cs-knowledge-modal-body section {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.cs-knowledge-modal-body strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
}

.cs-knowledge-modal-body p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.cs-knowledge-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-knowledge-examples span {
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 720;
}

.cs-channel-help {
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.cs-channel-help strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 14px;
}

.cs-channel-help p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.cs-channel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cs-channel-field {
  display: grid;
  gap: 7px;
}

.cs-channel-field span,
.cs-channel-check span {
  color: #334155;
  font-size: 12px;
  font-weight: 760;
}

.cs-channel-field .field,
.cs-channel-field input,
.cs-channel-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.cs-channel-field small {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.45;
}

.cs-channel-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #ffffff;
}

.cs-channel-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.cs-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.cs-chat-panel.has-escalation {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.cs-chat-head {
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.cs-current-store {
  gap: 10px;
  min-width: 0;
}

.cs-current-store .cs-platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.cs-current-store strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-chat-actions {
  gap: 8px;
}

.cs-conversation-select {
  width: min(260px, 32vw);
  min-width: 136px;
  height: 30px;
  padding: 0 30px 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 720;
  outline: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.cs-conversation-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.cs-pill,
.cs-chat-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
}

.cs-pill.ok {
  border-color: #dcfce7;
  background: #f0fdf4;
  color: #16a34a;
}

.cs-pill.warn {
  border-color: #fef3c7;
  background: #fffbeb;
  color: #d97706;
}

.cs-pill.risk {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.cs-escalation-banner {
  margin: 10px 14px 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 247, 237, 0.96));
  color: #7f1d1d;
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.08);
}

.cs-escalation-banner span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fb7185;
  color: #ffffff;
  font-size: 11px;
  font-weight: 820;
}

.cs-escalation-banner strong {
  display: block;
  margin-top: 6px;
  color: #881337;
  font-size: 13px;
  font-weight: 840;
}

.cs-escalation-banner p {
  margin: 4px 0 0;
  color: #9f1239;
  font-size: 12px;
  line-height: 1.5;
}

.cs-chat-stream {
  min-height: 0;
  overflow: auto;
  padding: 22px 18px;
  background:
    radial-gradient(#d8e7ff 1px, transparent 1px),
    linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.92));
  background-size: 20px 20px, 100% 100%;
}

.cs-message-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.cs-message-row.agent,
.cs-message-row.human {
  justify-content: flex-end;
}

.cs-avatar,
.cs-bot-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2e8f0, #ffffff);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.cs-bot-avatar {
  background: linear-gradient(180deg, #5b8cff, #2563eb);
  color: #ffffff;
}

.cs-message-row.human .cs-bot-avatar {
  width: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34d399, #059669);
  font-size: 11px;
}

.cs-message {
  max-width: min(560px, 74%);
  padding: 11px 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.cs-message-row.agent .cs-message,
.cs-message-row.human .cs-message {
  border-color: #a7c4ff;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.cs-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.cs-message time {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  text-align: right;
}

.cs-message-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 820;
  vertical-align: middle;
}

.cs-message-tag.high {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.cs-message-tag.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.cs-composer {
  padding: 10px 14px 12px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
}

.cs-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.cs-quick-actions button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.cs-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #a7c4ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.cs-input-wrap input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  font-size: 14px;
}

.cs-composer button[type="submit"] {
  align-self: end;
  min-height: 40px;
}

.cs-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 6px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.cs-runtime-notice {
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 720;
}

.cs-brain-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.cs-brain-panel > section {
  padding: 13px;
}

.cs-right-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.cs-right-tabs strong,
.cs-right-tabs span {
  padding-bottom: 8px;
  color: #2563eb;
  font-size: 16px;
  font-weight: 820;
}

.cs-right-tabs span {
  color: #64748b;
}

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

.cs-knowledge-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 72px;
  padding: 9px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #ffffff;
  color: #475569;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cs-knowledge-item:hover,
.cs-knowledge-item.active {
  border-color: #bfdbfe;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.cs-knowledge-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

.cs-knowledge-item svg {
  width: 16px;
  height: 16px;
}

.cs-knowledge-item strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 760;
}

.cs-knowledge-item small {
  color: #94a3b8;
  font-size: 11px;
}

.cs-knowledge-detail {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.cs-risk-card {
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 113, 133, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.08);
}

.cs-risk-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cs-risk-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 14px;
  background: #fff1f2;
  color: #e11d48;
}

.cs-risk-head svg {
  width: 17px;
  height: 17px;
}

.cs-risk-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 840;
}

.cs-risk-head p,
.cs-risk-summary {
  margin: 3px 0 0;
  color: #9f1239;
  font-size: 12px;
  line-height: 1.55;
}

.cs-risk-head strong {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
}

.cs-risk-summary {
  margin-top: 10px;
}

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

.cs-risk-grid div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.cs-risk-grid small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

.cs-risk-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7f1d1d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-ai-flow h3,
.cs-health-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 820;
}

.cs-ai-flow p {
  margin: 4px 0 10px;
  color: #94a3b8;
  font-size: 12px;
}

.cs-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.cs-flow-row article {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 88px;
  padding: 9px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.cs-flow-row article span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #4f7cff;
}

.cs-flow-row article strong {
  font-size: 12px;
  font-weight: 790;
}

.cs-flow-row article small {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.22;
}

.cs-flow-row b {
  color: #2563eb;
  font-size: 18px;
  text-align: center;
}

.cs-health-card > div:first-child {
  justify-content: space-between;
}

.cs-health-card > div:first-child strong {
  color: #16a34a;
  font-size: 13px;
}

.cs-health-bar {
  height: 9px;
  margin: 10px 0 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.cs-health-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.cs-health-card p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  color: #64748b;
  font-size: 12px;
}

.cs-health-card p strong {
  color: #475569;
}

.cs-health-card button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  background: #ffffff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

@media (max-width: 1420px) {
  .cs-workspace {
    grid-template-columns: 260px minmax(430px, 1fr) 340px;
  }

  .cs-stats article {
    padding: 10px;
  }

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

@media (max-width: 1180px) {
  .enterprise-app .customer-service-page {
    overflow: auto;
    height: auto;
  }

  .cs-hero,
  .cs-workspace {
    grid-template-columns: 1fr;
  }

  .cs-chat-panel {
    min-height: 640px;
  }
}

@media (max-width: 760px) {
  .cs-channel-fields {
    grid-template-columns: 1fr;
  }

  .cs-channel-modal {
    width: calc(100vw - 24px);
  }
}

/* 2026-06-28: compact production layout for Customer Service page.
   Keep the three-column desk usable at 100% browser zoom on laptop screens. */
@media (min-width: 1101px) {
  .main[data-page="customerService"] .main-content {
    overflow: hidden;
  }

  .main[data-page="customerService"] .customer-service-page {
    height: 100%;
    gap: 10px;
  }
}

.enterprise-app .customer-service-page {
  --cs-radius: 18px;
  --cs-gap: clamp(8px, 0.72vw, 12px);
}

.enterprise-app .customer-service-page .cs-hero {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.75fr);
  gap: var(--cs-gap);
  min-height: 72px;
  padding: 10px 14px;
  border-radius: var(--cs-radius);
}

.enterprise-app .customer-service-page .cs-title {
  gap: 10px;
}

.enterprise-app .customer-service-page .cs-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.enterprise-app .customer-service-page .cs-title-icon svg {
  width: 24px;
  height: 24px;
}

.enterprise-app .customer-service-page .cs-title h1 {
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.08;
}

.enterprise-app .customer-service-page .cs-title p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.enterprise-app .customer-service-page .cs-stats {
  gap: 8px;
}

.enterprise-app .customer-service-page .cs-stats article {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 15px;
  column-gap: 8px;
}

.enterprise-app .customer-service-page .cs-stats article > span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.enterprise-app .customer-service-page .cs-stats svg {
  width: 17px;
  height: 17px;
}

.enterprise-app .customer-service-page .cs-stats small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-stats strong {
  font-size: clamp(18px, 1.45vw, 22px);
}

.enterprise-app .customer-service-page .cs-stats em {
  position: static;
  grid-column: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-workspace {
  grid-template-columns:
    clamp(240px, 21vw, 282px)
    minmax(390px, 1fr)
    clamp(286px, 28vw, 360px);
  gap: var(--cs-gap);
}

.enterprise-app .customer-service-page .cs-store-panel,
.enterprise-app .customer-service-page .cs-chat-panel,
.enterprise-app .customer-service-page .cs-brain-panel > section {
  border-radius: var(--cs-radius);
}

.enterprise-app .customer-service-page .cs-store-panel {
  padding: 10px;
}

.enterprise-app .customer-service-page .cs-panel-head {
  gap: 8px;
  margin-bottom: 9px;
}

.enterprise-app .customer-service-page .cs-panel-head h2 {
  font-size: 17px;
}

.enterprise-app .customer-service-page .cs-panel-head span {
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-add-store {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 12px;
}

.enterprise-app .customer-service-page .cs-store-list {
  gap: 8px;
  padding: 1px 1px 3px;
}

.enterprise-app .customer-service-page .cs-store-card {
  grid-template-columns: 40px minmax(0, 1fr) 42px;
  gap: 9px;
  min-height: 62px;
  padding: 9px;
  border-radius: 15px;
}

.enterprise-app .customer-service-page .cs-store-card .cs-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.enterprise-app .customer-service-page .cs-store-copy strong {
  font-size: 12px;
}

.enterprise-app .customer-service-page .cs-store-copy span {
  margin-top: 3px;
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-store-copy small {
  margin-top: 2px;
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-store-tools {
  width: 42px;
  gap: 4px;
}

.enterprise-app .customer-service-page .cs-channel-button {
  min-width: 42px;
  height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-ai-switch {
  gap: 2px;
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-ai-switch i {
  width: 32px;
  height: 18px;
}

.enterprise-app .customer-service-page .cs-ai-switch i::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}

.enterprise-app .customer-service-page .cs-ai-switch input:checked + i::after {
  transform: translateX(14px);
}

.enterprise-app .customer-service-page .cs-more-store {
  min-height: 34px;
  margin-top: 8px;
  border-radius: 12px;
  font-size: 12px;
}

.enterprise-app .customer-service-page .cs-chat-head {
  min-height: 54px;
  padding: 9px 12px;
  gap: 8px;
}

.enterprise-app .customer-service-page .cs-current-store .cs-platform-icon {
  width: 34px;
  height: 34px;
}

.enterprise-app .customer-service-page .cs-current-store strong {
  font-size: 13px;
}

.enterprise-app .customer-service-page .cs-chat-actions {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-pill,
.enterprise-app .customer-service-page .cs-chat-actions button {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-chat-stream {
  padding: 14px 14px 12px;
}

.enterprise-app .customer-service-page .cs-message-row {
  gap: 8px;
  margin-bottom: 12px;
}

.enterprise-app .customer-service-page .cs-avatar,
.enterprise-app .customer-service-page .cs-bot-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-message {
  padding: 9px 12px;
  border-radius: 14px;
}

.enterprise-app .customer-service-page .cs-message p {
  font-size: 12px;
  line-height: 1.62;
}

.enterprise-app .customer-service-page .cs-composer {
  padding: 8px 12px 10px;
}

.enterprise-app .customer-service-page .cs-quick-actions {
  gap: 6px;
  margin-bottom: 7px;
}

.enterprise-app .customer-service-page .cs-quick-actions button {
  min-height: 25px;
  padding: 0 10px;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-input-wrap {
  grid-template-columns: minmax(0, 1fr) 66px;
  min-height: 50px;
  padding: 6px;
  border-radius: 13px;
}

.enterprise-app .customer-service-page .cs-input-wrap input {
  font-size: 13px;
}

.enterprise-app .customer-service-page .cs-composer button[type="submit"] {
  min-height: 36px;
  border-radius: 11px;
}

.enterprise-app .customer-service-page .cs-chat-status {
  max-width: 100%;
  overflow: hidden;
  margin-top: 7px;
  padding: 5px 10px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-brain-panel {
  gap: 8px;
}

.enterprise-app .customer-service-page .cs-brain-panel > section {
  padding: 10px;
}

.enterprise-app .customer-service-page .cs-right-tabs {
  margin-bottom: 8px;
}

.enterprise-app .customer-service-page .cs-right-tabs strong,
.enterprise-app .customer-service-page .cs-right-tabs span {
  padding-bottom: 6px;
  font-size: 14px;
}

.enterprise-app .customer-service-page .cs-knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.enterprise-app .customer-service-page .cs-knowledge-item {
  min-height: 58px;
  padding: 7px 5px;
  border-radius: 13px;
}

.enterprise-app .customer-service-page .cs-knowledge-item span {
  width: 25px;
  height: 25px;
  border-radius: 10px;
}

.enterprise-app .customer-service-page .cs-knowledge-item svg {
  width: 14px;
  height: 14px;
}

.enterprise-app .customer-service-page .cs-knowledge-item strong {
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-knowledge-item small {
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-knowledge-detail {
  margin-top: 7px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.5;
}

.enterprise-app .customer-service-page .cs-ai-flow h3,
.enterprise-app .customer-service-page .cs-health-card h3 {
  font-size: 14px;
}

.enterprise-app .customer-service-page .cs-ai-flow p {
  margin-bottom: 8px;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-flow-row {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  gap: 5px;
}

.enterprise-app .customer-service-page .cs-flow-row article {
  min-height: 72px;
  padding: 7px 5px;
  border-radius: 13px;
}

.enterprise-app .customer-service-page .cs-flow-row article span {
  width: 27px;
  height: 27px;
  border-radius: 11px;
}

.enterprise-app .customer-service-page .cs-flow-row article strong {
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-flow-row article small {
  font-size: 9px;
  line-height: 1.18;
}

.enterprise-app .customer-service-page .cs-flow-row b {
  font-size: 14px;
}

.enterprise-app .customer-service-page .cs-health-bar {
  height: 8px;
  margin: 8px 0 7px;
}

.enterprise-app .customer-service-page .cs-health-card p {
  margin: 4px 0;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-health-card button {
  min-height: 30px;
  margin-top: 6px;
  border-radius: 11px;
  font-size: 12px;
}

@media (max-width: 1480px) and (min-width: 1101px) {
  .enterprise-app .customer-service-page .cs-hero {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.85fr);
  }

  .enterprise-app .customer-service-page .cs-workspace {
    grid-template-columns:
      clamp(226px, 20vw, 262px)
      minmax(360px, 1fr)
      clamp(260px, 27vw, 326px);
  }

  .enterprise-app .customer-service-page .cs-stats {
    gap: 7px;
  }

  .enterprise-app .customer-service-page .cs-stats article {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 7px 8px;
  }

  .enterprise-app .customer-service-page .cs-store-card {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 7px;
    padding: 8px;
  }

  .enterprise-app .customer-service-page .cs-store-card .cs-platform-icon {
    width: 36px;
    height: 36px;
  }

  .enterprise-app .customer-service-page .cs-store-tools {
    width: 40px;
  }
}

/* 2026-06-28: production customer-service desk compact layout. */
.enterprise-app .customer-service-page {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.enterprise-app .customer-service-page .cs-hero {
  align-items: center;
  min-height: 68px;
}

.enterprise-app .customer-service-page .cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enterprise-app .customer-service-page .cs-stats article {
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-stats article > * {
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-workspace {
  min-height: 0;
  height: min(720px, calc(100vh - 176px));
  overflow: hidden;
}

.enterprise-app .customer-service-page .cs-store-panel,
.enterprise-app .customer-service-page .cs-chat-panel,
.enterprise-app .customer-service-page .cs-brain-panel {
  min-width: 0;
  min-height: 0;
}

.enterprise-app .customer-service-page .cs-store-list,
.enterprise-app .customer-service-page .cs-chat-stream,
.enterprise-app .customer-service-page .cs-brain-panel {
  overscroll-behavior: contain;
}

.enterprise-app .customer-service-page .cs-store-card {
  grid-template-columns: 38px minmax(0, 1fr) minmax(74px, 86px);
  align-items: center;
}

.enterprise-app .customer-service-page .cs-store-copy {
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-store-copy strong,
.enterprise-app .customer-service-page .cs-store-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-store-tools {
  width: auto;
  min-width: 74px;
  align-items: flex-end;
}

.enterprise-app .customer-service-page .cs-ai-mode {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 74px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.enterprise-app .customer-service-page .cs-ai-mode select {
  width: 74px;
  height: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  outline: none;
}

.enterprise-app .customer-service-page .cs-chat-head {
  overflow: hidden;
}

.enterprise-app .customer-service-page .cs-current-store {
  min-width: 0;
}

.enterprise-app .customer-service-page .cs-current-store strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-chat-actions {
  flex: 0 1 auto;
}

.enterprise-app .customer-service-page .cs-conversation-select {
  width: min(220px, 26vw);
  max-width: 100%;
  height: 26px;
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-chat-actions .cs-pill:nth-of-type(1) {
  max-width: 112px;
}

.enterprise-app .customer-service-page .cs-chat-actions .cs-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-app .customer-service-page .cs-escalation-banner {
  margin: 7px 12px 0;
  padding: 8px 10px;
  border-radius: 14px;
}

.enterprise-app .customer-service-page .cs-escalation-banner span {
  min-height: 20px;
  padding: 0 8px;
  font-size: 10px;
}

.enterprise-app .customer-service-page .cs-escalation-banner strong {
  margin-top: 4px;
  font-size: 12px;
}

.enterprise-app .customer-service-page .cs-escalation-banner p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.enterprise-app .customer-service-page .cs-empty-chat {
  min-height: 180px;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: #64748b;
  padding: 24px;
}

.enterprise-app .customer-service-page .cs-empty-chat strong {
  color: #0f172a;
  font-size: 15px;
}

.enterprise-app .customer-service-page .cs-empty-chat span {
  max-width: 360px;
  line-height: 1.7;
}

.enterprise-app .customer-service-page .cs-brain-panel > section {
  min-height: 0;
}

.enterprise-app .customer-service-page .cs-risk-card {
  padding: 10px;
  border-radius: 15px;
}

.enterprise-app .customer-service-page .cs-risk-head {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
}

.enterprise-app .customer-service-page .cs-risk-head > span {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

.enterprise-app .customer-service-page .cs-risk-head h3 {
  font-size: 13px;
}

.enterprise-app .customer-service-page .cs-risk-head p,
.enterprise-app .customer-service-page .cs-risk-summary {
  font-size: 11px;
}

.enterprise-app .customer-service-page .cs-risk-grid {
  gap: 6px;
  margin-top: 8px;
}

.enterprise-app .customer-service-page .cs-risk-grid div {
  padding: 6px 7px;
}

.enterprise-app .customer-service-page .cs-knowledge-grid {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.enterprise-app .customer-service-page .cs-runtime-notice {
  max-height: 42px;
  overflow: auto;
}

@media (max-width: 1360px) and (min-width: 1101px) {
  .enterprise-app .customer-service-page {
    --cs-gap: 8px;
  }

  .enterprise-app .customer-service-page .cs-hero {
    grid-template-columns: minmax(250px, .75fr) minmax(0, 1.85fr);
    padding: 8px 10px;
  }

  .enterprise-app .customer-service-page .cs-title-icon {
    width: 42px;
    height: 42px;
  }

  .enterprise-app .customer-service-page .cs-title h1 {
    font-size: 24px;
  }

  .enterprise-app .customer-service-page .cs-workspace {
    grid-template-columns: 236px minmax(360px, 1fr) 292px;
    height: calc(100vh - 166px);
  }

  .enterprise-app .customer-service-page .cs-stats article {
    min-height: 48px;
    padding: 6px 8px;
  }

  .enterprise-app .customer-service-page .cs-stats article > span {
    width: 28px;
    height: 28px;
  }

  .enterprise-app .customer-service-page .cs-stats strong {
    font-size: 19px;
  }

  .enterprise-app .customer-service-page .cs-store-card {
    grid-template-columns: 34px minmax(0, 1fr) 76px;
    min-height: 56px;
    padding: 7px;
  }

  .enterprise-app .customer-service-page .cs-store-card .cs-platform-icon {
    width: 34px;
    height: 34px;
  }

  .enterprise-app .customer-service-page .cs-chat-actions button,
  .enterprise-app .customer-service-page .cs-pill {
    min-height: 24px;
    padding: 0 7px;
    font-size: 10px;
  }
}

/* 2026-06-27: integration center no-category socket board. */
.enterprise-app .integration-command-page.integration-workbench-page {
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
}

.enterprise-app .integration-workbench-layout {
  grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 340px) !important;
}

.enterprise-app .integration-recent-panel {
  display: none !important;
}

.enterprise-app .integration-canvas-body.integration-socket-board,
.enterprise-app .integration-canvas-body.integration-socket-matrix {
  display: block !important;
  height: calc(100% - 72px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 8px 18px 18px !important;
}

.enterprise-app .integration-socket-rail,
.enterprise-app .integration-canvas-stage,
.enterprise-app .integration-socket-zone.left,
.enterprise-app .integration-socket-zone.right,
.enterprise-app .integration-socket-zone.bottom {
  display: none !important;
}

.enterprise-app .integration-socket-zone.top {
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)) !important;
  grid-auto-rows: minmax(112px, auto) !important;
  align-content: start !important;
  gap: 10px !important;
  overflow: auto !important;
  padding: 2px 4px 8px 2px !important;
  scrollbar-color: rgba(96, 165, 250, 0.55) transparent !important;
  scrollbar-width: thin !important;
}

.enterprise-app .integration-socket-zone.top::-webkit-scrollbar,
.enterprise-app .socket-plugin-stack::-webkit-scrollbar,
.enterprise-app .plugin-dock-list::-webkit-scrollbar {
  width: 8px;
}

.enterprise-app .integration-socket-zone.top::-webkit-scrollbar-thumb,
.enterprise-app .socket-plugin-stack::-webkit-scrollbar-thumb,
.enterprise-app .plugin-dock-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.44);
}

.enterprise-app .integration-socket-zone.top .integration-socket-slot {
  display: flex !important;
  flex-direction: column !important;
  min-height: 112px !important;
  height: auto !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
}

.enterprise-app .socket-slot-label {
  margin-bottom: 6px !important;
}

.enterprise-app .socket-slot-label strong {
  font-size: 11px !important;
}

.enterprise-app .socket-slot-label span {
  display: none !important;
}

.enterprise-app .socket-placeholder {
  flex: 1 1 auto !important;
  min-height: 54px !important;
  border-radius: 13px !important;
}

.enterprise-app .socket-plugin-stack {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 6px !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 1px 1px 2px !important;
  scrollbar-width: thin !important;
}

.enterprise-app .plugin-module {
  position: relative !important;
  overflow: visible !important;
  cursor: grab !important;
}

.enterprise-app .plugin-module.is-dragging {
  opacity: 0.28 !important;
  transform: scale(0.96) !important;
}

.enterprise-app .plugin-module.slotted {
  flex: 0 1 132px !important;
  width: auto !important;
  min-width: 118px !important;
  max-width: 150px !important;
  min-height: 36px !important;
  grid-template-columns: 4px 26px minmax(0, 1fr) 18px !important;
  gap: 5px !important;
  padding: 4px 6px !important;
}

.enterprise-app .plugin-module.slotted .plugin-logo {
  width: 26px !important;
  height: 26px !important;
}

.enterprise-app .plugin-module.slotted .plugin-copy strong {
  font-size: 10.5px !important;
}

.enterprise-app .plugin-module.slotted .plugin-production-pill {
  display: none !important;
}

.enterprise-app .plugin-module .plugin-actions,
.enterprise-app .plugin-module.slotted .plugin-actions,
.enterprise-app .plugin-dock-list .plugin-module .plugin-actions {
  position: absolute !important;
  z-index: 5 !important;
  right: 7px !important;
  bottom: -32px !important;
  display: flex !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-4px) scale(0.98) !important;
  transition: opacity 140ms ease, transform 140ms ease !important;
}

.enterprise-app .plugin-module:hover,
.enterprise-app .plugin-module:focus-within {
  z-index: 20 !important;
}

.enterprise-app .plugin-module:hover .plugin-actions,
.enterprise-app .plugin-module:focus-within .plugin-actions {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.enterprise-app .plugin-action {
  min-height: 24px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

.enterprise-app .plugin-dock-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  overflow: auto !important;
  padding: 2px 4px 8px 2px !important;
}

.enterprise-app .plugin-dock-list .plugin-module {
  min-height: 48px !important;
  grid-template-columns: 4px 30px minmax(0, 1fr) 18px !important;
}

.enterprise-app .plugin-dock-panel.dock-drop-active {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.16), inset 0 0 0 1px rgba(37, 99, 235, 0.16) !important;
}

.enterprise-app .plugin-dock-panel.dock-drop-active::after {
  content: "松手移回插件库";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px dashed rgba(37, 99, 235, 0.48);
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.92);
  color: #2563eb;
  font-size: 13px;
  font-weight: 780;
  pointer-events: none;
}

.integration-drag-ghost {
  display: grid !important;
  opacity: 1 !important;
  border: 1px solid rgba(37, 99, 235, 0.55) !important;
  background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
  box-shadow: 0 34px 92px rgba(37, 99, 235, 0.30), 0 0 0 5px rgba(37, 99, 235, 0.10) !important;
  filter: none !important;
}

.integration-drag-ghost .plugin-actions {
  display: none !important;
}

.integration-drag-active,
.integration-drag-active * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@media (max-width: 1320px) {
  .enterprise-app .integration-socket-zone.top {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;
  }

  .enterprise-app .plugin-dock-list {
    grid-template-columns: 1fr !important;
  }
}

/* Keep integration copy and dock drop hint stable across Windows encodings. */
.enterprise-app .plugin-dock-panel.dock-drop-active::after {
  content: "\677e\624b\79fb\56de\63d2\4ef6\5e93" !important;
}

.enterprise-app .plugin-dock-head p {
  font-size: 0 !important;
  line-height: 0 !important;
}

.enterprise-app .plugin-dock-head p::after {
  content: "\62d6\5230\4efb\610f\63a5\53e3\69fd\ff0c\6216\4ece\63a5\53e3\69fd\62d6\56de\8fd9\91cc\3002";
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 650;
}

/* 2026-06-28: real customer-service knowledge scope + cleaner profile/settings pages. */
.enterprise-app .knowledge-scope-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  margin: 12px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.enterprise-app .knowledge-scope-bar .scope-divider,
.enterprise-app .knowledge-scope-bar .knowledge-scope-divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(148, 163, 184, 0.28);
}

.enterprise-app .knowledge-scope-bar button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.enterprise-app .knowledge-scope-bar button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.enterprise-app .knowledge-scope-bar button.active {
  border-color: rgba(37, 99, 235, 0.42);
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.enterprise-app .knowledge-scope-bar .btn.small {
  border-radius: 999px;
  white-space: nowrap;
}

.enterprise-app .knowledge-scope-bar .btn.primary {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.enterprise-app .profile-center-page,
.enterprise-app .settings-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 30px);
}

.enterprise-app .profile-center-page .page-title-row,
.enterprise-app .settings-page .page-title-row {
  align-items: flex-end;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.enterprise-app .profile-center-page .page-title-row h1,
.enterprise-app .settings-page .page-title-row h1 {
  letter-spacing: -0.04em;
  font-size: clamp(28px, 3vw, 42px);
}

.enterprise-app .profile-center-page .page-title-row p,
.enterprise-app .settings-page .page-title-row p {
  max-width: 720px;
  color: #64748b;
  line-height: 1.65;
}

.enterprise-app .personal-profile-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}

.enterprise-app .profile-center-page .enterprise-card,
.enterprise-app .settings-page .enterprise-card {
  padding: clamp(20px, 2vw, 28px) !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(219, 234, 254, 0.55), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.enterprise-app .personal-profile-card {
  display: grid !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.enterprise-app .personal-profile-card:first-child {
  grid-row: span 2;
}

.enterprise-app .subcard-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.enterprise-app .subcard-head h3 {
  margin: 0 0 7px !important;
  color: #0f172a !important;
  font-size: 18px !important;
  letter-spacing: -0.02em !important;
}

.enterprise-app .subcard-head p {
  margin: 0 !important;
  max-width: 680px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.enterprise-app .personal-profile-main {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 18px !important;
  border: 1px solid rgba(191, 219, 254, 0.72) !important;
  border-radius: 22px !important;
  background: rgba(239, 246, 255, 0.58) !important;
}

.enterprise-app .account-avatar {
  width: 64px !important;
  height: 64px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 840 !important;
  background: linear-gradient(135deg, #2563eb, #22c55e) !important;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22) !important;
}

.enterprise-app .personal-profile-main strong,
.enterprise-app .personal-profile-main span,
.enterprise-app .personal-profile-main small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-app .personal-profile-main strong {
  color: #0f172a !important;
  font-size: 20px !important;
}

.enterprise-app .personal-profile-main span,
.enterprise-app .personal-profile-main small {
  color: #64748b !important;
  line-height: 1.55 !important;
}

.enterprise-app .profile-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)) !important;
  gap: 10px !important;
}

.enterprise-app .profile-summary-grid span {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.enterprise-app .profile-summary-grid b {
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

.enterprise-app .profile-summary-grid small {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.enterprise-app .profile-action-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.enterprise-app .settings-console-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 18px 0 !important;
}

.enterprise-app .settings-preference-card {
  min-height: 176px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 14px !important;
}

.enterprise-app .settings-preference-card h3 {
  margin: 0 0 7px !important;
  color: #0f172a !important;
  font-size: 17px !important;
  letter-spacing: -0.02em !important;
}

.enterprise-app .settings-preference-card p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.enterprise-app .settings-preference-card > span {
  justify-self: start !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #64748b !important;
  background: rgba(241, 245, 249, 0.92) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.enterprise-app .settings-enterprise-security {
  display: block !important;
}

.enterprise-app .settings-enterprise-security > * + * {
  margin-top: 18px !important;
}

.enterprise-app .settings-enterprise-security > .form-grid,
.enterprise-app .settings-enterprise-security .settings-section {
  padding: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.enterprise-app .settings-section h4 {
  margin: 0 0 12px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
}

.enterprise-app .settings-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 12px !important;
}

.enterprise-app .settings-page .field,
.enterprise-app .profile-center-page .field {
  min-height: 42px !important;
  border-radius: 13px !important;
  padding-inline: 13px !important;
}

.enterprise-app .settings-page .field.wide,
.enterprise-app .profile-center-page .field.wide,
.enterprise-app .settings-page .field-label.wide {
  grid-column: 1 / -1 !important;
}

.enterprise-app .settings-enterprise-security .profile-action-row {
  padding: 14px 16px !important;
  border: 1px solid rgba(191, 219, 254, 0.74) !important;
  border-radius: 18px !important;
  background: rgba(239, 246, 255, 0.58) !important;
}

.enterprise-app .settings-enterprise-security .profile-action-row span {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.enterprise-app .profile-center-page .hybrid-runtime-panel {
  overflow: visible !important;
  padding: 26px 28px !important;
  margin: 18px 0 22px !important;
  gap: 18px !important;
  min-height: 360px !important;
  height: auto !important;
}

.enterprise-app .profile-center-page .hybrid-runtime-main {
  align-items: flex-start !important;
  gap: 18px !important;
}

.enterprise-app .profile-center-page .hybrid-runtime-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.enterprise-app .profile-center-page .hybrid-runtime-grid > div {
  min-height: 74px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

.enterprise-app .profile-center-page .hybrid-runtime-tags {
  margin-top: 2px !important;
  padding-top: 2px !important;
}

.enterprise-app .settings-enterprise-security > .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.enterprise-app .settings-enterprise-security .settings-section {
  display: block !important;
  overflow: visible !important;
  padding: 20px !important;
  min-height: 0 !important;
  height: auto !important;
}

.enterprise-app .settings-enterprise-security .settings-section .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  align-items: start !important;
  margin-top: 16px !important;
}

.enterprise-app .settings-enterprise-security input.field,
.enterprise-app .settings-enterprise-security select.field {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
  padding-inline: 16px !important;
}

.enterprise-app .settings-enterprise-security .profile-action-row {
  margin-top: 2px !important;
}

@media (max-width: 1180px) {
  .enterprise-app .personal-profile-grid,
  .enterprise-app .settings-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .enterprise-app .profile-center-page .hybrid-runtime-grid,
  .enterprise-app .settings-enterprise-security .settings-section .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .enterprise-app .profile-center-page .hybrid-runtime-panel {
    min-height: 520px !important;
  }

  .enterprise-app .personal-profile-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .enterprise-app .personal-profile-grid,
  .enterprise-app .settings-console-grid {
    grid-template-columns: 1fr !important;
  }

  .enterprise-app .profile-center-page .hybrid-runtime-grid,
  .enterprise-app .settings-enterprise-security .settings-section .form-grid {
    grid-template-columns: 1fr !important;
  }

  .enterprise-app .profile-center-page .hybrid-runtime-panel {
    min-height: 760px !important;
  }
}

/* Final CEO workbench overrides. Keep this block at EOF so later legacy rules cannot hide runtime status. */
body .enterprise-app .ceo-mission-desk .worker-task-card {
  min-width: 0 !important;
  overflow: visible !important;
}

body .enterprise-app .ceo-mission-desk .worker-card-head {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding-right: 88px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body .enterprise-app .ceo-mission-desk .worker-card-head strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body .enterprise-app .ceo-mission-desk .worker-card-head .enterprise-status {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
  max-width: 84px !important;
  min-width: 48px !important;
  height: 22px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  line-height: 20px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body .enterprise-app .ceo-ops-popover:not(.entering):not(.closing) {
  animation: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* 2026-07-03: customer-service knowledge modal + CEO drawer final stabilizers. */
body .enterprise-app .cs-knowledge-modal,
body .enterprise-app .cs-knowledge-modal * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

body .enterprise-app .cs-knowledge-modal {
  width: min(880px, calc(100vw - 56px)) !important;
  max-height: min(78vh, 720px) !important;
  overflow: hidden !important;
}

body .enterprise-app .cs-knowledge-modal .readme-modal-body {
  max-height: calc(min(78vh, 720px) - 96px) !important;
  overflow: auto !important;
}

body .enterprise-app .cs-knowledge-modal-body section {
  display: grid !important;
  gap: 10px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(219, 234, 254, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body .enterprise-app .cs-knowledge-modal-body strong {
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

body .enterprise-app .cs-knowledge-modal-body p {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

body .enterprise-app .cs-knowledge-examples {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body .enterprise-app .cs-knowledge-examples span {
  max-width: 100% !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(191, 219, 254, 0.88) !important;
  border-radius: 999px !important;
  background: rgba(248, 251, 255, 0.92) !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column {
  transform: translate3d(-8px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card {
  transform: translate3d(-10px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map {
  transform: translate3d(-3px, 0, 0) scale(0.992) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command {
  transform: translate3d(-7px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card {
  animation: none !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(1),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(1) {
  transform: translate3d(-2px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(2),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(2) {
  transform: translate3d(-8px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(3),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(3) {
  transform: translate3d(-14px, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(4),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(4) {
  transform: translate3d(-20px, 0, 0) !important;
}

/* Codex-style settings console */
body .enterprise-app .settings-page {
  max-width: none !important;
  width: 100% !important;
  min-height: calc(100vh - 72px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(219, 234, 254, 0.55), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
}

body .enterprise-app .settings-shell {
  display: grid !important;
  grid-template-columns: 282px minmax(0, 1fr) !important;
  min-height: calc(100vh - 72px) !important;
  width: 100% !important;
}

body .enterprise-app .settings-nav-panel {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  height: calc(100vh - 72px) !important;
  padding: 18px 10px 18px 12px !important;
  overflow: auto !important;
  border-right: 1px solid rgba(203, 213, 225, 0.72) !important;
  background: rgba(241, 245, 249, 0.86) !important;
  backdrop-filter: blur(18px) !important;
}

body .enterprise-app .settings-back-button {
  width: 100% !important;
  height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  cursor: pointer !important;
}

body .enterprise-app .settings-search-box {
  display: flex !important;
  align-items: center !important;
  height: 38px !important;
  margin: 6px 0 22px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
}

body .enterprise-app .settings-nav-group {
  display: grid !important;
  gap: 3px !important;
  margin: 0 0 22px !important;
}

body .enterprise-app .settings-nav-group > span {
  margin: 0 0 6px 4px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body .enterprise-app .settings-nav-item {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #0f172a !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}

body .enterprise-app .settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.78) !important;
}

body .enterprise-app .settings-nav-item.active {
  background: rgba(15, 23, 42, 0.06) !important;
}

body .enterprise-app .settings-nav-item > span {
  color: #0f172a !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

body .enterprise-app .settings-nav-item strong {
  font-size: 15px !important;
  font-weight: 720 !important;
}

body .enterprise-app .settings-nav-item small {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body .enterprise-app .settings-detail-panel {
  width: min(1040px, calc(100vw - 340px)) !important;
  height: calc(100vh - 72px) !important;
  margin: 0 auto !important;
  padding: clamp(46px, 6vh, 74px) 40px 80px !important;
  overflow: auto !important;
}

body .enterprise-app .settings-detail-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin-bottom: 42px !important;
}

body .enterprise-app .settings-kicker {
  display: block !important;
  margin-bottom: 10px !important;
  color: #2563eb !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body .enterprise-app .settings-detail-head h1 {
  margin: 0 0 8px !important;
  color: #0f172a !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

body .enterprise-app .settings-detail-head p {
  margin: 0 !important;
  color: #64748b !important;
  line-height: 1.6 !important;
}

body .enterprise-app .settings-detail-form {
  display: grid !important;
  gap: 38px !important;
}

body .enterprise-app .settings-section-block {
  display: grid !important;
  gap: 0 !important;
  padding: 0 2px !important;
}

body .enterprise-app .settings-section-block h2 {
  margin: 0 0 18px !important;
  color: #0f172a !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
}

body .enterprise-app .settings-block-desc {
  margin: -8px 0 16px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
}

body .enterprise-app .settings-row {
  display: grid !important;
  grid-template-columns: minmax(230px, 0.86fr) minmax(360px, 1.14fr) !important;
  gap: 36px !important;
  align-items: center !important;
  min-height: 76px !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body .enterprise-app .settings-row.stacked {
  grid-template-columns: 1fr !important;
  align-items: start !important;
}

body .enterprise-app .settings-row strong {
  display: block !important;
  margin-bottom: 5px !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 720 !important;
}

body .enterprise-app .settings-row small {
  display: block !important;
  color: #8a94a6 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body .enterprise-app .settings-row-control {
  min-width: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

body .enterprise-app .settings-row-control .field {
  width: min(100%, 560px) !important;
  min-height: 40px !important;
  padding-inline: 14px !important;
  border-radius: 12px !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  background: rgba(248, 250, 252, 0.9) !important;
}

body .enterprise-app .settings-inline-control {
  width: min(100%, 560px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 10px !important;
}

body .enterprise-app .settings-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body .enterprise-app .settings-choice {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 78px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  cursor: pointer !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

body .enterprise-app .settings-choice input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body .enterprise-app .settings-choice.selected {
  border-color: rgba(37, 99, 235, 0.36) !important;
  background: rgba(239, 246, 255, 0.82) !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.09) !important;
}

body .enterprise-app .settings-choice:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.36) !important;
  background: rgba(239, 246, 255, 0.82) !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.09) !important;
}

body .enterprise-app .settings-choice em {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(203, 213, 225, 0.96) !important;
  border-radius: 999px !important;
}

body .enterprise-app .settings-choice.selected em {
  border-color: #3b82f6 !important;
  background: radial-gradient(circle, #3b82f6 42%, transparent 45%) !important;
}

body .enterprise-app .settings-choice:has(input:checked) em {
  border-color: #3b82f6 !important;
  background: radial-gradient(circle, #3b82f6 42%, transparent 45%) !important;
}

body .enterprise-app .settings-toggle {
  position: relative !important;
  display: inline-flex !important;
  width: 48px !important;
  height: 28px !important;
  cursor: pointer !important;
}

body .enterprise-app .settings-toggle input {
  position: absolute !important;
  opacity: 0 !important;
}

body .enterprise-app .settings-toggle span {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 999px !important;
  background: #cbd5e1 !important;
  transition: background 0.16s ease !important;
}

body .enterprise-app .settings-toggle span::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) !important;
  transition: transform 0.16s ease !important;
}

body .enterprise-app .settings-toggle input:checked + span {
  background: #3b82f6 !important;
}

body .enterprise-app .settings-toggle input:checked + span::after {
  transform: translateX(20px) !important;
}

body .enterprise-app .settings-save-bar {
  position: sticky !important;
  bottom: 18px !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-top: 10px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

body .enterprise-app .settings-save-bar span {
  color: #64748b !important;
  font-size: 13px !important;
}

body .enterprise-app .settings-enterprise-security .settings-section,
body .enterprise-app .settings-enterprise-security .form-grid {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body .enterprise-app .settings-enterprise-security .settings-section h4 {
  margin: 20px 0 12px !important;
  font-size: 16px !important;
}

body .enterprise-app .settings-enterprise-security .form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body .enterprise-app .settings-enterprise-security .field.wide {
  grid-column: 1 / -1 !important;
}

@media (max-width: 1180px) {
  body .enterprise-app .settings-shell {
    grid-template-columns: 246px minmax(0, 1fr) !important;
  }

  body .enterprise-app .settings-detail-panel {
    width: auto !important;
    padding-inline: 28px !important;
  }

  body .enterprise-app .settings-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body .enterprise-app .settings-row-control {
    justify-content: stretch !important;
  }
}

@media (max-width: 820px) {
  body .enterprise-app .settings-shell {
    grid-template-columns: 1fr !important;
  }

  body .enterprise-app .settings-nav-panel {
    position: relative !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72) !important;
  }

  body .enterprise-app .settings-detail-panel {
    height: auto !important;
    width: auto !important;
    padding: 28px 18px 56px !important;
  }

  body .enterprise-app .settings-choice-grid,
  body .enterprise-app .settings-enterprise-security .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Skill Marketplace */
.marketplace-backdrop {
  z-index: 1100;
}

.marketplace-modal {
  width: min(1180px, calc(100vw - 52px)) !important;
  max-height: min(820px, calc(100vh - 56px)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(96, 165, 250, 0.12), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(34, 197, 94, 0.1), transparent 22%),
    rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18) !important;
}

.marketplace-modal-head {
  padding: 24px 28px !important;
}

.marketplace-runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 28px 18px;
}

.marketplace-runtime-strip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.78);
}

.marketplace-runtime-strip strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.marketplace-runtime-strip small {
  font-size: 12px;
  color: #64748b;
}

.marketplace-body {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  padding: 0 28px 28px;
  min-height: 520px;
}

.marketplace-list-panel,
.marketplace-detail {
  min-height: 0;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.marketplace-list-panel {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.marketplace-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
}

.marketplace-filter-row button {
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 11px;
  cursor: pointer;
}

.marketplace-filter-row button.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.marketplace-card-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.marketplace-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.marketplace-card:hover,
.marketplace-card.selected {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

.marketplace-card-icon,
.marketplace-detail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef6ff, #fff);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.marketplace-card-main {
  min-width: 0;
}

.marketplace-card-main strong,
.marketplace-card-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-card-main strong {
  color: #0f172a;
  font-size: 14px;
}

.marketplace-card-main small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.marketplace-card-status,
.marketplace-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.marketplace-card-status.ok,
.marketplace-pill.ok {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.marketplace-card-status.warn,
.marketplace-pill.warn {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.marketplace-card-status.blocked,
.marketplace-pill.blocked {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.marketplace-pill.neutral {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.marketplace-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  overflow: auto;
}

.marketplace-detail-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.marketplace-detail h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.marketplace-detail p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

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

.marketplace-detail-grid.production-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-detail-grid div {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}

.marketplace-detail-grid small {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-weight: 800;
}

.marketplace-detail-grid strong {
  display: block;
  color: #0f172a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.marketplace-notice {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
}

.marketplace-notice strong {
  color: #0f172a;
  font-size: 14px;
}

.marketplace-notice span {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.marketplace-notice.ok {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(240, 253, 244, 0.82);
}

.marketplace-notice.warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(255, 251, 235, 0.9);
}

.marketplace-notice.blocked {
  border-color: rgba(244, 63, 94, 0.32);
  background: rgba(255, 241, 242, 0.86);
}

.marketplace-governance {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86)),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.08), transparent 28%);
}

.marketplace-governance-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-governance-head strong {
  color: #0f172a;
  font-size: 15px;
}

.marketplace-governance-head small {
  color: #64748b;
  font-size: 12px;
}

.marketplace-governance-row {
  display: grid;
  grid-template-columns: 92px 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.marketplace-governance-row span {
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
}

.marketplace-governance-row strong {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #334155;
  background: #f1f5f9;
  white-space: nowrap;
}

.marketplace-governance-row strong.ok {
  color: #047857;
  background: rgba(209, 250, 229, 0.86);
}

.marketplace-governance-row strong.warn {
  color: #b45309;
  background: rgba(254, 243, 199, 0.9);
}

.marketplace-governance-row strong.blocked {
  color: #be123c;
  background: rgba(255, 228, 230, 0.92);
}

.marketplace-governance-row small {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-risk-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.72)),
    radial-gradient(circle at 96% 12%, rgba(37, 99, 235, 0.08), transparent 28%);
}

.marketplace-risk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-risk-head strong {
  color: #0f172a;
  font-size: 15px;
}

.marketplace-risk-head small {
  color: #64748b;
  font-size: 12px;
}

.marketplace-risk-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.marketplace-risk-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.marketplace-risk-item strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.marketplace-risk-item.ok {
  border-color: rgba(34, 197, 94, 0.22);
}

.marketplace-risk-item.warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 251, 235, 0.74);
}

.marketplace-risk-item.blocked {
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(255, 241, 242, 0.76);
}

.marketplace-policy {
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.88);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.88));
}

.marketplace-policy h4 {
  margin: 0 0 10px;
  color: #0f172a;
}

.marketplace-policy ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.75;
}

.marketplace-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.marketplace-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 980px) {
  .marketplace-body {
    grid-template-columns: 1fr;
  }

  .marketplace-detail-grid.production-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-runtime-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .marketplace-detail-grid.production-grid {
    grid-template-columns: 1fr;
  }
}

body .enterprise-app .industry-pack-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 14px !important;
}

body .enterprise-app .industry-pack-choice {
  align-items: flex-start !important;
  cursor: default !important;
  min-height: 220px !important;
  position: relative !important;
  padding: 18px !important;
}

body .enterprise-app .industry-pack-grid-readonly .industry-pack-choice.locked {
  opacity: 0.56 !important;
}

body .enterprise-app .industry-pack-grid-readonly .industry-pack-choice.locked:hover {
  transform: none !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

body .enterprise-app .industry-pack-lock {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(239, 246, 255, 0.96) !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  padding: 6px 9px !important;
}

body .enterprise-app .industry-pack-choice.locked .industry-pack-lock {
  border-color: rgba(148, 163, 184, 0.25) !important;
  background: rgba(248, 250, 252, 0.95) !important;
  color: #64748b !important;
}

body .enterprise-app .industry-pack-choice > span {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body .enterprise-app .industry-pack-choice b,
body .enterprise-app .industry-pack-choice small {
  overflow-wrap: anywhere !important;
}

body .enterprise-app .industry-pack-choice b {
  color: #0f172a !important;
  font-size: 18px !important;
  letter-spacing: -0.01em !important;
}

body .enterprise-app .industry-pack-name {
  color: #2563eb !important;
  font-weight: 760 !important;
}

body .enterprise-app .industry-pack-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body .enterprise-app .industry-pack-tags i,
body .enterprise-app .industry-delivery-grid span {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(239, 246, 255, 0.92) !important;
  color: #1e3a8a !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  padding: 5px 9px !important;
  white-space: normal !important;
}

body .enterprise-app .industry-pack-foot {
  margin-top: 2px !important;
  color: #475569 !important;
  font-weight: 720 !important;
}

body .enterprise-app .industry-pack-runtime-summary {
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06) !important;
  margin-top: 18px !important;
  padding: 18px !important;
}

body .enterprise-app .industry-pack-runtime-summary > strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 18px !important;
  margin: 8px 0 6px !important;
}

body .enterprise-app .industry-pack-runtime-summary > p {
  color: #64748b !important;
  line-height: 1.7 !important;
  margin: 0 0 14px !important;
}

body .enterprise-app .industry-pack-runtime-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body .enterprise-app .industry-pack-runtime-grid article,
body .enterprise-app .industry-delivery-grid article {
  min-width: 0 !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  padding: 14px !important;
}

body .enterprise-app .industry-pack-runtime-grid strong,
body .enterprise-app .industry-delivery-grid strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

body .enterprise-app .industry-pack-runtime-grid ul {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .enterprise-app .industry-pack-runtime-grid li {
  color: #334155 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body .enterprise-app .industry-delivery-standard {
  display: grid !important;
  gap: 14px !important;
  margin: 12px 0 16px !important;
  padding: 16px !important;
  border: 1px solid rgba(191, 219, 254, 0.88) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 4% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 96% 12%, rgba(16, 185, 129, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06) !important;
}

body .enterprise-app .industry-delivery-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

body .enterprise-app .industry-delivery-head h4 {
  color: #0f172a !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  margin: 8px 0 4px !important;
}

body .enterprise-app .industry-delivery-head p {
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

body .enterprise-app .industry-delivery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body .enterprise-app .industry-delivery-grid div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body .enterprise-app .industry-delivery-grid em {
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-style: normal !important;
}

@media (max-width: 1180px) {
  body .enterprise-app .industry-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body .enterprise-app .industry-pack-runtime-grid,
  body .enterprise-app .industry-delivery-grid {
    grid-template-columns: 1fr !important;
  }

  body .enterprise-app .industry-delivery-head {
    display: grid !important;
  }
}

/* 2026-07-06: CEO drawer motion final guard.
   A single parent transform owns drawer avoidance; child cards do not run
   drawer-specific transforms, preventing MissionPlan from hopping vertically. */
body .enterprise-app .ceo-mission-desk {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter {
  --ceo-drawer-avoid-x: clamp(-34px, -2.5vw, -18px);
  --ceo-drawer-avoid-scale: 0.992;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column {
  width: 100% !important;
  transform: translate3d(var(--ceo-drawer-avoid-x), 0, 0) scale(var(--ceo-drawer-avoid-scale)) !important;
  transform-origin: center center !important;
  transition:
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 320ms ease !important;
  will-change: transform;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card {
  transform: none !important;
  animation: none !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid {
  transition: none !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card {
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease !important;
}

body .enterprise-app .ceo-ops-stack.open {
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease !important;
}

body .enterprise-app .ceo-ops-popover {
  transform-origin: right center !important;
  contain: layout paint;
  transition:
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 380ms ease,
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .enterprise-app .ceo-ops-popover.entering {
  animation: ceoOpsPopoverEnterSmooth 680ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body .enterprise-app .ceo-ops-popover.closing {
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 320ms ease,
    filter 420ms ease !important;
}

@keyframes ceoOpsPopoverEnterSmooth {
  0% {
    opacity: 0;
    transform: translate3d(34px, 0, 0) scale(0.986);
    filter: blur(8px);
  }

  64% {
    opacity: 1;
    transform: translate3d(-1px, 0, 0) scale(1.002);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* 2026-07-06: CEO drawer motion hard lock.
   The drawer must never resize the CEO workbench. Older rules changed
   padding-right, which made MissionPlan reflow vertically. Keep the grid
   stable and move the agent area only with one compositor transform. */
body .enterprise-app .ceo-mission-desk,
body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 16px !important;
  padding: 10px !important;
  padding-right: 10px !important;
  transition: none !important;
  overflow: hidden !important;
}

body .enterprise-app .ceo-mission-desk {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter {
  --ceo-drawer-avoid-x: clamp(-30px, -2.1vw, -16px);
  --ceo-drawer-avoid-scale: 0.994;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column {
  width: 100% !important;
  transform: translate3d(var(--ceo-drawer-avoid-x), 0, 0) scale(var(--ceo-drawer-avoid-scale)) !important;
  transform-origin: center center !important;
  transition:
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 680ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 320ms ease !important;
  will-change: transform;
  backface-visibility: hidden;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column {
  filter: saturate(0.99) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card {
  transform: none !important;
  animation: none !important;
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease !important;
}

body .enterprise-app .ceo-ops-stack.open {
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease !important;
}

body .enterprise-app .ceo-ops-stack.closing {
  transform: translate3d(24px, 0, 0) scale(0.992) !important;
  opacity: 0 !important;
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease !important;
}

body .enterprise-app .ceo-ops-popover {
  transform-origin: right center !important;
  contain: layout paint;
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease,
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 620ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .enterprise-app .ceo-ops-popover.entering {
  animation: ceoOpsPopoverSpringInHardLock 760ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body .enterprise-app .ceo-ops-popover.closing {
  transform: translate3d(30px, 0, 0) scale(0.988) !important;
  opacity: 0 !important;
  filter: blur(4px) !important;
  transition:
    transform 640ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease,
    filter 460ms ease !important;
}

@keyframes ceoOpsPopoverSpringInHardLock {
  0% {
    opacity: 0;
    transform: translate3d(36px, 0, 0) scale(0.982);
    filter: blur(8px);
  }

  72% {
    opacity: 1;
    transform: translate3d(-2px, 0, 0) scale(1.002);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* 2026-07-06: final MissionPlan drawer correction.
   Keep the agent canvas on a single horizontal compositor track. MissionPlan
   used to trigger one preserved render plus child transforms, which showed up
   as an extra upward jump. From here down, opening a drawer may only move the
   left stage on X; children keep their own layout position. */
body .enterprise-app .ceo-mission-desk,
body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  align-items: stretch !important;
  align-content: stretch !important;
  padding: 10px !important;
  padding-right: 10px !important;
  overflow: hidden !important;
}

body .enterprise-app .ceo-mission-desk {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter {
  --ceo-drawer-avoid-x: clamp(-30px, -2.1vw, -16px);
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  --ceo-drawer-avoid-x: 0px;
  --ceo-drawer-avoid-scale: 1;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
  transform: translate3d(var(--ceo-drawer-avoid-x), 0, 0) !important;
  transform-origin: center center !important;
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
  backface-visibility: hidden;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  transform: translate3d(0, 0, 0) !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card {
  transform: none !important;
  translate: none !important;
  animation: none !important;
}

body .enterprise-app .ceo-ops-stack.open {
  position: fixed !important;
  top: 174px !important;
  right: 110px !important;
  z-index: 96 !important;
  width: min(350px, 30vw) !important;
  max-height: calc(100vh - 190px) !important;
}

/* 2026-07-06: CEO drawer compositor lock.
   The CEO page is re-rendered when a drawer opens, so regular transitions can
   start from the final layout and feel like a jump. This block makes the
   rebuilt stage animate on a single X-only compositor track and prevents
   MissionPlan from changing the vertical layout. */
body .enterprise-app .ceo-mission-desk {
  --ceo-drawer-open-x: clamp(-30px, -2.1vw, -16px);
  --ceo-drawer-avoid-x: 0px;
}

body .enterprise-app .ceo-mission-desk,
body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  align-content: stretch !important;
  justify-items: stretch !important;
  justify-content: stretch !important;
  gap: 16px !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 10px !important;
  padding-right: 10px !important;
  overflow: hidden !important;
  transition: none !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter {
  --ceo-drawer-avoid-x: var(--ceo-drawer-open-x);
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing {
  --ceo-drawer-avoid-x: 0px;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  inset: auto !important;
  transform: translate3d(var(--ceo-drawer-avoid-x), 0, 0) !important;
  transform-origin: 50% 50% !important;
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  contain: layout paint !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column {
  animation: lambooCeoDrawerStageIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  animation: lambooCeoDrawerStageOut 820ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes lambooCeoDrawerStageIn {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--ceo-drawer-open-x), 0, 0);
  }
}

@keyframes lambooCeoDrawerStageOut {
  from {
    transform: translate3d(var(--ceo-drawer-open-x), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-split-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-map,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .agent-flow-ceo,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .pixel-ceo-command,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card {
  translate: none !important;
  transform: none !important;
  animation-name: none !important;
}

body .enterprise-app .ceo-ops-stack.open,
body .enterprise-app .ceo-ops-stack.closing {
  position: fixed !important;
  top: 174px !important;
  right: 110px !important;
  z-index: 96 !important;
  width: min(350px, 30vw) !important;
  max-height: calc(100vh - 190px) !important;
  transition: none !important;
}

body .enterprise-app .ceo-ops-stack.closing {
  transform: none !important;
  opacity: 1 !important;
}

body .enterprise-app .ceo-ops-popover.entering {
  animation: lambooCeoDrawerPanelIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body .enterprise-app .ceo-ops-popover.closing {
  animation: lambooCeoDrawerPanelOut 640ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes lambooCeoDrawerPanelIn {
  from {
    opacity: 0;
    transform: translate3d(34px, 0, 0) scale(0.982);
    filter: blur(8px);
  }

  76% {
    opacity: 1;
    transform: translate3d(-2px, 0, 0) scale(1.002);
    filter: blur(0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes lambooCeoDrawerPanelOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translate3d(30px, 0, 0) scale(0.988);
    filter: blur(4px);
  }
}

/* 2026-07-06: malformed empty inline nodes must not enter the app grid.
   If an old cached template creates an empty <small>, keep it out of layout so
   drawer opening/closing cannot shrink the main stage and cause vertical jumps. */
body .enterprise-app > small:empty,
body .enterprise-app .enterprise-frame > small:empty,
body .enterprise-app .main > small:empty,
body .enterprise-app .main-content > small:empty,
body .enterprise-app .ceo-mission-desk > small:empty {
  position: absolute !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 2026-07-06: stage motion is now owned by JS FLIP.
   CSS keyframes on the rebuilt stage were racing the drawer layout state and
   made Mission Plan look like it moved upward or snapped on close. */
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column {
  animation: none !important;
}

/* 2026-07-06: hide the transient horizontal scrollbar drawn by Chromium while
   the CEO stage is FLIP-transformed during drawer close/open. Vertical scrolling
   remains owned by the inner panels; the stage itself should never expose an X
   scrollbar or gray underline. */
body .enterprise-app .ceo-mission-desk,
body .enterprise-app .ceo-mission-desk .mission-desk-column,
body .enterprise-app .ceo-mission-desk .mission-desk-card,
body .enterprise-app .ceo-mission-desk .task-split-card,
body .enterprise-app .ceo-mission-desk .agent-flow-map,
body .enterprise-app .ceo-mission-desk .task-card-grid,
body .enterprise-app .ceo-mission-desk .pixel-ceo-command {
  overflow-x: hidden !important;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-mission-desk .mission-desk-card::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-mission-desk .task-split-card::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-mission-desk .agent-flow-map::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-mission-desk .task-card-grid::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-mission-desk .pixel-ceo-command::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column > .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .mission-desk-column > .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .mission-desk-column > .mission-desk-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .mission-desk-column > .mission-desk-card {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body .enterprise-app .ceo-mission-desk .mission-desk-column > .mission-desk-card::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

/* 2026-07-06: the right CEO drawers should never draw a horizontal scrollbar.
   Some drawer cards used overflow:auto, which Chromium rendered as a delayed gray
   underline during the FLIP close/open animation. Keep vertical scroll only. */
body .enterprise-app .ceo-ops-stack,
body .enterprise-app .ceo-ops-stack.open,
body .enterprise-app .ceo-ops-stack.closing,
body .enterprise-app .ceo-ops-stack .enterprise-subcard,
body .enterprise-app .ceo-ops-stack .mission-plan-table,
body .enterprise-app .ceo-ops-stack .ceo-ops-card,
body .enterprise-app .ceo-ops-stack .enterprise-table,
body .enterprise-app .ceo-ops-stack .worker-queue-table,
body .enterprise-app .ceo-ops-stack .recent-run-list,
body .enterprise-app .mission-history-drawer-list {
  overflow-x: hidden !important;
}

body .enterprise-app .ceo-ops-stack,
body .enterprise-app .ceo-ops-stack.open,
body .enterprise-app .ceo-ops-stack.closing {
  overflow-y: auto !important;
}

body .enterprise-app .ceo-ops-stack .enterprise-subcard,
body .enterprise-app .ceo-ops-stack .mission-plan-table,
body .enterprise-app .ceo-ops-stack .ceo-ops-card,
body .enterprise-app .ceo-ops-stack .enterprise-table,
body .enterprise-app .ceo-ops-stack .worker-queue-table,
body .enterprise-app .ceo-ops-stack .recent-run-list {
  overflow-y: visible !important;
}

body .enterprise-app .mission-history-drawer-list {
  overflow-y: auto !important;
}

body .enterprise-app .ceo-ops-stack *,
body .enterprise-app .ceo-ops-stack .enterprise-subcard *,
body .enterprise-app .ceo-ops-stack .mission-plan-table * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body .enterprise-app .ceo-ops-stack::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .enterprise-subcard::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .mission-plan-table::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .ceo-ops-card::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .enterprise-table::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .worker-queue-table::-webkit-scrollbar:horizontal,
body .enterprise-app .ceo-ops-stack .recent-run-list::-webkit-scrollbar:horizontal,
body .enterprise-app .mission-history-drawer-list::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

/* 2026-07-06: drawer close settle lock.
   The right drawer motion should move only the outer CEO stage. Older rules let
   the worker grid and each worker card transition independently, so closing the
   drawer looked like: stage moves first, then card gaps settle a frame later.
   Keep the four-agent layout static while the parent stage FLIP handles motion. */
body .enterprise-app .ceo-mission-desk .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .task-card-grid,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .task-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

body .enterprise-app .ceo-mission-desk .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card,
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(1),
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(2),
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(3),
body .enterprise-app .ceo-mission-desk.ops-drawer-open .worker-task-card:nth-child(4),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(1),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(2),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(3),
body .enterprise-app .ceo-mission-desk.ops-drawer-enter .worker-task-card:nth-child(4),
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card:nth-child(1),
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card:nth-child(2),
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card:nth-child(3),
body .enterprise-app .ceo-mission-desk.ops-drawer-closing .worker-task-card:nth-child(4) {
  transform: translate3d(0, 0, 0) !important;
  translate: none !important;
  animation: none !important;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease !important;
  will-change: auto !important;
}

body .enterprise-app .ceo-mission-desk .worker-task-card:hover {
  transform: translate3d(0, -3px, 0) !important;
}

/* 2026-07-07: customer service real inbox final override.
   Keep only verified callback/Webhook conversations visible in a WeChat-like
   left conversation list, with the chat window on the right. This block is
   intentionally placed at EOF so older customer-service rules cannot override it. */
body .enterprise-app .customer-service-page .cs-chat-panel {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body .enterprise-app .customer-service-page .cs-chat-layout {
  display: grid !important;
  grid-template-columns: clamp(168px, 23%, 230px) minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 12px !important;
  border-right: 1px solid rgba(203, 213, 225, 0.72) !important;
  background: rgba(248, 251, 255, 0.72) !important;
}

body .enterprise-app .customer-service-page .cs-conversation-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body .enterprise-app .customer-service-page .cs-conversation-head strong {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 820 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-head span {
  color: #64748b !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

body .enterprise-app .customer-service-page .cs-conversation-list {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 3px !important;
  scrollbar-width: none !important;
}

body .enterprise-app .customer-service-page .cs-conversation-list::-webkit-scrollbar {
  display: none !important;
}

body .enterprise-app .customer-service-page .cs-conversation-item {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 9px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
  color: inherit !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease !important;
}

body .enterprise-app .customer-service-page .cs-conversation-item:hover {
  transform: translateY(-1px) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1) !important;
}

body .enterprise-app .customer-service-page .cs-conversation-item.active {
  border-color: #6ea0ff !important;
  background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14) !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  background: #eaf2ff !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-0,
body .enterprise-app .customer-service-page .cs-avatar.tone-0 {
  background: #eaf2ff !important;
  color: #2563eb !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-1,
body .enterprise-app .customer-service-page .cs-avatar.tone-1 {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-2,
body .enterprise-app .customer-service-page .cs-avatar.tone-2 {
  background: #fff7ed !important;
  color: #c2410c !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-3,
body .enterprise-app .customer-service-page .cs-avatar.tone-3 {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-4,
body .enterprise-app .customer-service-page .cs-avatar.tone-4 {
  background: #f0fdfa !important;
  color: #0f766e !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.tone-5,
body .enterprise-app .customer-service-page .cs-avatar.tone-5 {
  background: #fdf2f8 !important;
  color: #be185d !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.image,
body .enterprise-app .customer-service-page .cs-avatar.image {
  overflow: hidden !important;
  padding: 0 !important;
  background: #e2e8f0 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-avatar.image img,
body .enterprise-app .customer-service-page .cs-avatar.image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

body .enterprise-app .customer-service-page .cs-conversation-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-copy strong,
body .enterprise-app .customer-service-page .cs-conversation-copy span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .enterprise-app .customer-service-page .cs-conversation-copy strong {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 780 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-copy span {
  color: #64748b !important;
  font-size: 11px !important;
}

body .enterprise-app .customer-service-page .cs-conversation-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

body .enterprise-app .customer-service-page .cs-conversation-meta em {
  flex: 0 0 auto !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 720 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-meta em.high {
  color: #e11d48 !important;
}

body .enterprise-app .customer-service-page .cs-conversation-empty {
  display: grid !important;
  gap: 5px !important;
  padding: 14px 12px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: #64748b !important;
}

body .enterprise-app .customer-service-page .cs-conversation-empty strong {
  color: #0f172a !important;
  font-size: 12px !important;
}

body .enterprise-app .customer-service-page .cs-conversation-empty span {
  font-size: 11px !important;
  line-height: 1.55 !important;
}

body .enterprise-app .customer-service-page .cs-chat-main {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}

body .enterprise-app .customer-service-page .cs-chat-main .cs-chat-head,
body .enterprise-app .customer-service-page .cs-chat-main .cs-escalation-banner,
body .enterprise-app .customer-service-page .cs-chat-main .cs-composer {
  flex: 0 0 auto !important;
}

body .enterprise-app .customer-service-page .cs-chat-main .cs-chat-stream {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body .enterprise-app .customer-service-page .cs-message p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body .enterprise-app .customer-service-page .cs-message-row.customer .cs-message {
  min-width: 180px !important;
  max-width: min(72%, 520px) !important;
}

@media (max-width: 1500px) {
  body .enterprise-app .customer-service-page .cs-chat-layout {
    grid-template-columns: 170px minmax(0, 1fr) !important;
  }

  body .enterprise-app .customer-service-page .cs-conversation-panel {
    padding: 10px !important;
  }
}
