:root {
  /* Phase 10 — Option B high-growth theme */
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #dbeafe;
  --teal: #14b8a6;
  --teal-ready: #0d9488;
  --teal-ready-light: #ccfbf1;
  --orange: #f97316;
  --orange-light: #fed7aa;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 48px rgba(37, 99, 235, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: var(--navy);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 28px;
  line-height: 1.12;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.eyebrow {
  color: #8bded4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.nav-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.nav-group summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}

.nav-group summary::after {
  content: "+";
  color: #5eead4;
  font-size: 16px;
}

.nav-group[open] summary::after {
  content: "-";
}

.nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: calc(100% - 16px);
  min-height: 36px;
  margin: 0 8px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #dbeafe;
  text-align: left;
  padding: 0 10px;
  font-weight: 800;
  font-size: 13px;
}

.nav-item.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(37, 99, 235, 0.22));
  color: #fff;
}

.nav-item span {
  display: grid;
  min-width: 30px;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #99f6e4;
  font-size: 10px;
  font-weight: 900;
}

.nav-item.active span {
  background: #ffffff;
  color: var(--blue);
}

.sidebar-cta {
  width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-weight: 900;
}

.side-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.side-card h2 {
  margin-top: 7px;
  font-size: 18px;
}

.side-card p:last-of-type {
  margin-top: 8px;
  color: #c7d2fe;
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar .eyebrow,
.section-header .eyebrow {
  color: var(--muted);
}

.topbar-actions,
.section-header,
.card-row,
.button-row,
.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions,
.section-header {
  justify-content: space-between;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.external-hero,
.hero-band,
.section-block,
.kpi-card,
.strategy-card,
.microsite-card,
.mission-card,
.pipeline-column,
.pricing-card,
.lead-panel-card,
.builder-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.external-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.23), transparent 34%),
    linear-gradient(135deg, #ffffff, #f0f9ff);
}

.external-hero h2 {
  max-width: 920px;
  margin-top: 8px;
  font-size: 42px;
}

.external-hero p:last-child {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.external-start-card,
.goal-metrics-card,
.customer-plan-box {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.goal-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.goal-metrics-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.goal-metrics-card div {
  min-height: 102px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 34px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(37, 99, 235, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.onboarding-hero h2 {
  margin-top: 8px;
  font-size: 42px;
}

.onboarding-hero p:last-child {
  max-width: 740px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.onboarding-progress-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.setup-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.setup-meter div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 260ms ease;
}

.onboarding-stage {
  display: grid;
  gap: 18px;
}

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

.onboarding-goal-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.onboarding-goal-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
}

.onboarding-goal-card.selected,
.onboarding-goal-card:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: #f8fbff;
}

.onboarding-goal-card p,
.microsite-preview p,
.success-feedback p,
.guided-tooltip p {
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-form,
.result-summary-grid,
.onboarding-result-grid {
  display: grid;
  gap: 14px;
}

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

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

.onboarding-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.onboarding-form select {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--text);
  font-weight: 800;
}

.onboarding-form textarea {
  min-height: 86px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 400;
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

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

.stage-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.stage-help-card strong {
  font-size: 15px;
}

.stage-help-card span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stage-help-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.multi-select-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-title strong {
  font-size: 14px;
}

.field-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.multi-choice-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.multi-choice-chip {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.multi-choice-chip input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.onboarding-actions {
  justify-content: flex-end;
}

.setup-progress-list {
  display: grid;
  gap: 12px;
}

.setup-progress-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.setup-progress-item span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.setup-progress-item.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.setup-progress-item.complete {
  border-color: rgba(34, 197, 94, 0.45);
  background: #f0fdf4;
}

.setup-progress-item.complete span {
  background: #dcfce7;
  color: #15803d;
}

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

.result-summary-grid article,
.onboarding-result-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.result-summary-grid strong {
  font-size: 28px;
}

.onboarding-result-grid {
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
}

.sample-leads-table,
.pipeline-snapshot,
.top-leads-list {
  display: grid;
  gap: 8px;
}

.sample-leads-table button,
.lead-mini-card {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.sample-leads-table span,
.lead-mini-card small {
  color: var(--muted);
}

.pipeline-snapshot div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.guided-tooltip,
.success-feedback {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
}

.guided-tooltip {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.success-feedback {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.success-feedback span {
  color: #15803d;
  font-weight: 900;
}

.goal-metrics-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.goal-metrics-card strong {
  display: block;
  margin-top: 9px;
  font-size: 30px;
}

.external-start-card strong,
.customer-plan-box strong {
  font-size: 22px;
}

.external-start-card p,
.customer-plan-box p {
  color: var(--muted);
  line-height: 1.45;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef7ff);
}

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

.happy-path-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 166px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.happy-path-card:hover,
.happy-path-card.selected {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
}

.happy-path-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.happy-path-card small {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.happy-path-breadcrumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.happy-path-breadcrumbs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.happy-path-breadcrumbs button.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.happy-path-breadcrumbs span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: 12px;
  background: #dbeafe;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.happy-path-breadcrumbs strong {
  font-size: 14px;
}

.happy-path-breadcrumbs small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.happy-path-library-section {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 34%),
    #ffffff;
}

.happy-path-create-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ecfdf5);
}

.happy-path-create-panel[hidden] {
  display: none;
}

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

.happy-path-create-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.happy-path-create-grid input,
.happy-path-create-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
}

.happy-path-create-grid textarea {
  min-height: 74px;
  resize: vertical;
}

.happy-path-create-grid .wide-field {
  grid-column: 1 / -1;
}

.happy-path-agent-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

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

.happy-path-core-layer {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.happy-path-core-layer p {
  color: var(--muted);
  line-height: 1.45;
}

.happy-path-agent-tower {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.happy-path-agent-tower summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 950;
}

.happy-path-agent-tower summary span {
  display: inline-flex;
  min-width: 30px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
}

.happy-path-agent-stage {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.happy-path-agent-stage strong {
  color: #04766b;
  font-size: 12px;
}

.happy-path-agent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.happy-path-agent-options label {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.happy-path-agent-options input {
  accent-color: var(--blue);
}

.happy-path-required-inputs {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

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

.happy-path-input-note {
  display: grid;
  gap: 8px;
}

.happy-path-input-note p {
  color: var(--muted);
  line-height: 1.45;
}

.journey-timeline,
.result-bars,
.input-checklist,
.outcome-list,
.bullet-list,
.attention-list {
  display: grid;
  gap: 10px;
}

.timeline-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.timeline-step::before {
  display: none;
}

.timeline-step-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  border: 0;
  background: transparent;
  padding: 13px;
  text-align: left;
}

.timeline-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.timeline-step-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.timeline-step-body {
  display: none;
  padding: 0 14px 14px 68px;
}

.timeline-step.expanded .timeline-step-body {
  display: grid;
  gap: 12px;
}

.timeline-step-body p {
  color: var(--muted);
  line-height: 1.45;
}

.result-bar {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.bar-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.happy-step,
.check-item,
.output-item,
.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.happy-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #ecfdf5;
  color: #04766b;
  font-size: 12px;
  font-weight: 900;
}

.check-item {
  color: var(--text);
  font-weight: 850;
}

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

.bullet-item::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.success-dot::before {
  background: var(--green);
}

.warning-dot::before {
  background: var(--orange);
}

.ai-suggestion-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.ai-suggestion-card strong {
  font-size: 20px;
}

.ai-suggestion-card p {
  color: var(--muted);
  line-height: 1.45;
}

.ai-suggestion-card span {
  color: #04766b;
  font-weight: 900;
}

.quick-action-panel {
  align-self: start;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.input-output-zone {
  align-items: stretch;
}

.customer-input-form,
.agent-output-body {
  display: grid;
  gap: 12px;
}

.customer-input-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.customer-input-form input,
.customer-input-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
}

.customer-input-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.agent-output-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.agent-output-card,
.agent-output-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.agent-output-brief {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.compact-agent-output-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-agent-output-grid article {
  padding: 12px;
  box-shadow: none;
}

.next-action-card {
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}

.happy-path-memory-details {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.happy-path-memory-details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.agent-output-card h4 {
  margin: 0;
  font-size: 20px;
}

.agent-output-card p,
.agent-output-grid p {
  color: var(--muted);
  line-height: 1.45;
}

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

.memory-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-chip-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.hero-band h2 {
  max-width: 940px;
  margin-top: 8px;
  font-size: 38px;
}

.compact-hero h2 {
  font-size: 34px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-band p:last-child {
  max-width: 820px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-plan {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}

.hero-plan strong {
  font-size: 26px;
}

.hero-plan p {
  color: #dbeafe;
  line-height: 1.4;
}

.section-block {
  padding: 20px;
  margin-bottom: 18px;
}

.command-cc-layout {
  display: flex;
  flex-direction: column;
}

.command-cc-slice-tag {
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.command-cc-slice-tag--tight {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.command-cc-whereami {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.command-cc-whereami__main {
  flex: 1 1 280px;
}

.command-cc-context-hint {
  margin: 8px 0 0;
  max-width: 640px;
  line-height: 1.45;
}

.command-cc-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.command-cc-primary-actions .command-cc-disclosure--compact {
  flex: 1 1 220px;
  margin: 0;
}

.command-cc-disclosure--role-metrics {
  margin-top: 4px;
}

.command-cc-attention-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.command-cc-attention-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.growth-panel--attention-primary {
  border-width: 2px;
  border-color: var(--orange-light);
}

.alignment-ribbon--decorative {
  opacity: 0.88;
}

.command-cc-slice--whereami {
  border-color: rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, #ffffff, #f8fafc 60%, #eff6ff);
}

.command-cc-slice--next {
  border-color: rgba(37, 99, 235, 0.15);
}

@media (min-width: 981px) {
  .app-shell--phase10 .command-cc-next-strip--sticky {
    position: sticky;
    top: 72px;
    z-index: 12;
  }
}

.command-cc-band-tag {
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.command-cc-band--a.hero-band {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
}

.command-cc-band--a.hero-band > .command-cc-band-tag {
  grid-column: 1 / -1;
}

.hero-cta-row--secondary {
  margin-top: 8px;
}

.command-cc-disclosure--inline {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.65);
}

.command-cc-disclosure--inline .command-cc-disclosure-summary--inline {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
}

.command-cc-next-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.command-cc-next-hint {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 650;
}

.command-cc-next-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.command-cc-disclosure {
  margin-bottom: 18px;
  padding: 4px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
}

.command-cc-disclosure[open] {
  box-shadow: var(--shadow);
}

.command-cc-disclosure-summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 4px 10px;
  color: var(--navy);
  list-style: none;
}

.command-cc-disclosure-summary::-webkit-details-marker {
  display: none;
}

.command-cc-disclosure-hint {
  margin-left: 8px;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

.command-cc-disclosure-body .section-block:last-child {
  margin-bottom: 8px;
}

.command-cc-cockpit-activity summary.growth-panel__title {
  cursor: pointer;
  list-style: none;
}

.command-cc-cockpit-activity summary::-webkit-details-marker {
  display: none;
}

.command-cc-attention-secondary details summary.growth-panel__title {
  cursor: pointer;
  list-style: none;
}

.command-cc-attention-secondary details summary::-webkit-details-marker {
  display: none;
}

.command-cc-cockpit-activity .growth-activity-feed {
  margin-top: 10px;
}

.command-cc-band--c {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.command-cc-band--d.section-block {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

@media (max-width: 720px) {
  .command-cc-next-strip__actions {
    width: 100%;
  }

  .command-cc-band--a.hero-band {
    grid-template-columns: 1fr;
  }
}

.role-command-center {
  background:
    linear-gradient(135deg, #ffffff, #f0fdfa 52%, #eff6ff);
  border-color: rgba(20, 184, 166, 0.25);
}

.role-insight-hero,
.role-dashboard-grid,
.role-nudge-list {
  display: grid;
  gap: 12px;
}

.role-insight-hero {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.role-insight-hero article,
.role-metric-card,
.role-nudge-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.role-insight-hero article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.role-insight-hero strong {
  font-size: 22px;
}

.role-insight-hero p,
.role-metric-card p,
.role-nudge-card p {
  color: var(--muted);
  line-height: 1.45;
}

.role-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.role-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.role-metric-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-metric-card strong {
  font-size: 24px;
}

.role-nudge-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.nudge-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-weight: 900;
}

.section-header {
  margin-bottom: 16px;
}

.primary-button,
.ghost-button,
.pill-button,
.notification-button,
.profile-button,
.button-row button,
.task-card button,
.recommendation-card button,
.insight-card button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 850;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-hover);
}

.ghost-button,
.button-row button,
.task-card button,
.recommendation-card button,
.insight-card button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.pill-button,
.profile-button,
.notification-button,
.api-status {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.pill-button.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--blue-light);
  color: var(--blue-hover);
}

.notification-button {
  display: grid;
  width: 42px;
  place-items: center;
  background: #fff7ed;
  color: var(--orange);
}

.api-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.api-status.online {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.api-status.offline {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.full-width {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.warning {
  background: #ffedd5;
  color: #9a3412;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge.neutral {
  background: #eff6ff;
  color: #1d4ed8;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.kpi-card {
  position: relative;
  display: grid;
  min-height: 156px;
  gap: 7px;
  padding: 16px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kpi-card:hover,
.strategy-card:hover,
.microsite-card:hover,
.mission-card:hover,
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
}

.kpi-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.kpi-card.success .kpi-icon {
  background: var(--green);
}

.kpi-card.warning .kpi-icon {
  background: var(--orange);
}

.kpi-card.danger .kpi-icon {
  background: var(--red);
}

.kpi-card strong {
  font-size: 34px;
  line-height: 1;
}

.kpi-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ux-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ux-kpi-delta__text {
  font-weight: 650;
}

.kpi-card span:not(.kpi-icon),
.kpi-card small,
.muted-row,
.microsite-card p,
.mission-card span,
.mission-card small {
  color: var(--muted);
}

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

.mission-selection-card,
.execution-lead-card,
.simple-insight-card,
.microsite-draft-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mission-selection-card:hover,
.execution-lead-card:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: #f8fbff;
}

.mission-selection-card p,
.mission-estimate span,
.execution-lead-card p,
.execution-lead-card small,
.simple-insight-card p,
.microsite-draft-card p {
  color: var(--muted);
  line-height: 1.45;
}

.mission-estimate {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.execution-lead-list,
.simple-insight-grid {
  display: grid;
  gap: 12px;
}

.execution-lead-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-insight-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-insight-card strong {
  font-size: 22px;
}

.extractor-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.crm-breadcrumbs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
}

.command-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: #f8fafc;
}

.command-breadcrumbs button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
}

.command-breadcrumbs button.active {
  border-color: rgba(20, 184, 166, 0.55);
  background: #ecfdf5;
  color: #047857;
}

.command-panel-section[hidden] {
  display: none;
}

.command-focus-workspace {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  overflow: visible;
}

.command-focus-workspace__header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 8px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 70%, rgba(255, 255, 255, 0));
}

@media (max-width: 980px) {
  .command-focus-workspace__header {
    position: relative;
  }
}

.flow-template-strip {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

.flow-template-grid,
.flow-agent-library-list,
.flow-canvas,
.flow-run-ledger {
  display: grid;
  gap: 12px;
}

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

.flow-template-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.flow-template-card p,
.flow-template-card small {
  color: var(--muted);
  line-height: 1.45;
}

.flow-builder-shell {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.flow-agent-library {
  grid-column: 1;
  grid-row: 1;
}

.flow-control-panel {
  grid-column: 1;
  grid-row: 2;
}

.flow-canvas-section {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.flow-canvas-section,
.flow-agent-workspace,
.agent-workspace-panel,
.report-workspace,
.business-report-reader {
  min-width: 0;
}

.report-hero {
  background: linear-gradient(120deg, #f8fbff, #ecfeff 60%, #ffffff);
}

.business-report-shell {
  display: grid;
  gap: 16px;
}

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

.business-outcome-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.business-outcome-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--blue);
  font-weight: 950;
  font-size: 12px;
}

.business-outcome-card strong {
  font-size: 17px;
}

.business-outcome-card p {
  color: var(--muted);
  line-height: 1.45;
}

.business-outcome-card.selected {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.business-report-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 16px;
  align-items: start;
}

.business-report-form-card,
.business-report-context-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.business-report-context-card {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

.business-report-context-card h4 {
  margin: 0;
  font-size: 18px;
}

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

.business-report-form .agent-input-field:nth-child(2),
.business-report-form .agent-input-field:nth-child(6),
.business-report-form .agent-input-field:nth-child(7),
.business-report-form .agent-input-field:nth-child(8) {
  grid-column: 1 / -1;
}

.business-report-loading {
  display: flex;
  gap: 14px;
  align-items: center;
  border-color: rgba(37, 99, 235, 0.25);
  background: #eff6ff;
}

.loading-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  animation: loadingPulse 1.2s infinite;
}

@keyframes loadingPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.flow-agent-library {
  position: sticky;
  top: 12px;
  align-self: start;
}

.flow-agent-library-list {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
}

.flow-control-panel {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.flow-control-panel .section-header {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.flow-control-panel label {
  display: grid;
  gap: 5px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}

.flow-control-panel input,
.flow-control-panel select {
  min-width: 0;
  font-size: 12px;
  padding: 8px 9px;
}

.flow-client-card,
.flow-run-ledger,
.flow-orchestrator-progress {
  min-height: 100%;
}

.flow-agent-category {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.flow-agent-category summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #0f2744;
  font-weight: 900;
  cursor: pointer;
}

.flow-agent-category summary span {
  color: var(--blue);
}

.flow-agent-item {
  display: grid;
  gap: 5px;
  width: calc(100% - 16px);
  margin: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.flow-agent-item small {
  color: var(--muted);
  line-height: 1.35;
}

.flow-agent-item em {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.flow-start-node,
.flow-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 16px;
  background: #ecfdf5;
}

.flow-start-node p,
.flow-empty-state p {
  color: var(--muted);
  line-height: 1.45;
}

.flow-empty-state {
  grid-template-columns: 1fr;
  background: #f8fafc;
}

.flow-step-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
}

.flow-step-card.selected .flow-step-main {
  border-color: rgba(37, 99, 235, 0.55);
  background: #eff6ff;
}

.compact-flow-step {
  cursor: pointer;
}

.flow-step-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -12px;
  width: 2px;
  background: #cbd5e1;
}

.flow-step-card:last-child::before {
  display: none;
}

.flow-step-connector {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--blue);
  font-weight: 950;
  z-index: 1;
}

.flow-step-main {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.flow-step-main h4 {
  margin: 6px 0 0;
  font-size: 19px;
}

.flow-step-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-step-actions {
  gap: 8px;
}

.flow-step-actions .compact-button {
  min-height: 38px;
  padding: 9px 12px;
}

button.is-clicked,
.ghost-button.is-clicked,
.primary-button.is-clicked,
.compact-button.is-clicked {
  border-color: #1d4ed8 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.flow-step-actions button:active,
.selected-agent-actions button:active,
.orchestrator-progress-list button:active,
.flow-orchestrator-progress .button-row button:active {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

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

.flow-step-grid textarea {
  min-height: 220px;
}

.flow-output-box {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  background: #f8fbff;
}

.flow-output-box span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.flow-output-box p {
  color: #334155;
  line-height: 1.5;
}

.flow-output-box ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.flow-output-box pre {
  margin: 0;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.flow-output-wide {
  grid-column: 1 / -1;
  background: #fffdf7;
  border-color: rgba(245, 158, 11, 0.32);
}

.flow-agent-workspace {
  margin-top: 18px;
}

.report-workspace {
  position: relative;
  gap: 16px;
}

.backend-trace-panel {
  position: sticky;
  top: 12px;
  justify-self: end;
  z-index: 4;
  width: min(340px, 100%);
  margin-top: -8px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.backend-trace-panel.collapsed {
  width: min(230px, 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.backend-trace-toggle {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.backend-trace-toggle > div {
  min-width: 0;
  flex: 1;
}

.backend-trace-toggle strong {
  color: #0f172a;
  font-size: 15px;
}

.backend-trace-chevron {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.backend-trace-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.trace-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
}

.trace-dot.done {
  background: #22c55e;
}

.trace-dot.blocked {
  background: #f97316;
}

.backend-trace-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.backend-trace-panel li {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-left: 4px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

.backend-trace-panel li.done {
  border-left-color: #22c55e;
}

.backend-trace-panel li.warning {
  border-left-color: #f59e0b;
  background: #fff7ed;
}

.backend-trace-panel li.blocked {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.backend-trace-panel span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.backend-trace-panel p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.backend-trace-panel details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.backend-trace-panel summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

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

.report-stepper button {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.report-stepper button.active {
  border-color: rgba(37, 99, 235, 0.42);
  background: #eff6ff;
  color: var(--blue);
}

.report-stepper button.done {
  border-color: rgba(16, 185, 129, 0.35);
  background: #dcfce7;
  color: #047857;
}

.report-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.selected-agent-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.35fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #f8fbff;
}

.selected-agent-item {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.selected-agent-strip strong {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.strip-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.handoff-preview {
  background: #f0fdfa;
  border-color: rgba(20, 184, 166, 0.18);
}

.handoff-preview strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.handoff-preview small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.selected-agent-actions {
  display: grid;
  align-items: center;
}

.selected-agent-actions .compact-button {
  min-height: 40px;
  padding: 10px 14px;
}

.agent-workspace-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(37, 99, 235, 0.24);
  background: #ffffff;
}

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

.agent-workspace-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.agent-workspace-card h4 {
  margin: 0;
  font-size: 18px;
}

.report-input-card {
  background: #ffffff;
}

.advanced-input-drawer {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.advanced-input-drawer summary,
.technical-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 950;
}

.report-generate-row {
  margin-top: 4px;
}

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

.agent-input-field {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.agent-input-field input,
.agent-input-field select,
.agent-input-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
  padding: 12px;
}

.agent-input-field textarea {
  min-height: 108px;
}

.agent-input-field select[multiple] {
  min-height: 120px;
}

.agent-input-field small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.required-field::after {
  content: "Required";
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.context-pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.context-pack-list dt {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.context-pack-list dd {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  line-height: 1.45;
}

.full-agent-output,
.agent-workspace-card pre {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  line-height: 1.58;
}

.business-report-output {
  min-height: 420px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  font-size: 15px;
}

.business-report-structured {
  display: grid;
  gap: 16px;
}

.business-report-reader {
  display: grid;
  gap: 0;
  padding: 24px 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #ffffff;
  width: 100%;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.business-report-reader-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
}

.business-report-reader-header h4,
.business-report-reader-header p {
  margin: 0;
}

.business-report-reader-header h4 {
  margin-top: 3px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.business-report-reader-header p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 100%;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.report-section-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 950;
}

.business-report-section-list {
  display: grid;
  gap: 0;
}

.consulting-report-summary {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 52%, #ecfdf5 100%);
}

.consulting-report-heading h4,
.consulting-report-heading p {
  margin: 0;
}

.consulting-report-heading h4 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

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

.consulting-pointer-grid article {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.consulting-pointer-grid span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 950;
}

.consulting-pointer-grid strong {
  color: #0f172a;
  line-height: 1.25;
  font-size: 15px;
}

.consulting-pointer-grid small {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.consulting-pointer-grid p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
  font-size: 14px;
}

.report-reading-path {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.26);
  border-radius: 8px;
  background: #f8fffd;
}

.report-reading-path h4,
.report-reading-path p {
  margin: 0;
}

.report-reading-path h4 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

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

.report-reading-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
}

.report-reading-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.report-reading-steps strong {
  color: #334155;
  font-size: 14px;
  line-height: 1.25;
}

.business-report-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.business-report-section {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.business-report-memo-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.business-report-memo-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.business-report-memo-section.is-priority {
  background: transparent;
}

.business-report-memo-section h4 {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: 0;
}

.business-report-memo-section h4 span {
  width: 34px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.business-report-memo-section p,
.business-report-memo-section li {
  color: #334155;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
}

.business-report-section.is-priority {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.report-section-index {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.report-section-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 950;
}

.report-section-index small {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-report-section h4 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.25;
}

.business-report-section p,
.business-report-section li {
  color: #334155;
  line-height: 1.58;
  font-size: 15px;
}

.business-report-section p {
  margin: 0 0 10px;
}

.business-report-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.business-report-points {
  display: grid;
  gap: 12px;
  margin: 0;
  margin-left: 60px;
  padding-left: 0 !important;
  list-style: none;
}

.business-report-points li {
  position: relative;
  padding: 2px 0 2px 20px;
  border-top: 0;
  background: transparent;
}

.business-report-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

@media (max-width: 1100px) {
  .consulting-pointer-grid,
  .report-reading-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .consulting-pointer-grid,
  .report-reading-steps,
  .business-report-reader-header,
  .business-report-section {
    grid-template-columns: 1fr;
  }

  .business-report-reader-header {
    display: grid;
  }

  .business-report-reader {
    padding: 20px;
  }

  .business-report-memo-section h4 {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .business-report-points {
    margin-left: 48px;
  }
}

.report-next-step-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
}

.report-next-step-panel h4,
.report-next-step-panel p {
  margin: 0;
}

.report-next-step-panel h4 {
  color: #0f172a;
}

.report-next-step-panel p {
  color: #475569;
  line-height: 1.45;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.report-tabs button {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
}

.report-tabs button.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  color: var(--blue);
}

.report-tab-panel {
  display: grid;
  gap: 14px;
}

.human-review-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.human-review-panel h4,
.human-review-panel p {
  margin: 0;
}

.human-review-panel h4 {
  color: #0f172a;
}

.human-review-panel p,
.human-review-panel small {
  color: #64748b;
  line-height: 1.5;
}

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

.human-review-panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.human-review-panel select,
.human-review-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  line-height: 1.45;
}

.human-review-panel select {
  min-height: 42px;
  padding: 0 12px;
}

.human-review-panel textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.human-review-panel--updated {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.review-note-preview {
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #334155 !important;
  font-weight: 800;
}

.human-question-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 14px;
  background: #fff7ed;
}

.human-question-box strong {
  color: #0f172a;
  line-height: 1.35;
}

.human-question-box textarea {
  min-height: 78px;
}

.tenant-recommendation-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 16px;
  background: #f0fdfa;
}

.tenant-recommendation-panel.is-updated {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.tenant-recommendation-panel h4,
.tenant-recommendation-panel p {
  margin: 0;
}

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

.tenant-recommendation-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #ffffff;
}

.tenant-recommendation-card--updated {
  border-color: rgba(34, 197, 94, 0.22);
  background: #fbfffd;
}

.tenant-recommendation-card strong {
  color: #0f172a;
}

.tenant-recommendation-card p,
.tenant-recommendation-card small {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.tenant-adoption-summary {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  background: #f0fdfa;
}

.tenant-adoption-summary p {
  margin: 0;
  color: #0f766e;
  font-weight: 900;
}

.downloadable-assets-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  background: #f8fbff;
}

.downloadable-assets-panel h4,
.downloadable-assets-panel p {
  margin: 0;
}

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

.downloadable-asset-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: #ffffff;
}

.downloadable-asset-card strong {
  color: #0f172a;
  line-height: 1.3;
}

.downloadable-asset-card p {
  color: #475569;
  line-height: 1.45;
}

.market-signal-grid,
.signal-settings-grid {
  display: grid;
  gap: 14px;
}

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

.signal-settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-signal-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.event-signal-card {
  border-color: rgba(20, 184, 166, 0.24);
}

.headline-signal-card {
  border-color: rgba(37, 99, 235, 0.24);
}

.signal-action-card {
  border-color: rgba(249, 115, 22, 0.24);
}

.signal-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-signal-card strong {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.32;
}

.market-signal-card p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.signal-settings-grid {
  margin-bottom: 16px;
}

.market-signal-toolbar,
.executive-nudge-hero,
.signal-action-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 55%, #fff7ed 100%);
}

.executive-nudge-hero,
.signal-action-explainer {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.executive-nudge-hero h3,
.executive-nudge-hero p,
.signal-action-explainer h3,
.signal-action-explainer p {
  margin: 0;
}

.market-signal-toolbar label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.market-signal-toolbar input,
.market-signal-toolbar select {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  padding: 10px 12px;
}

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

.signal-meta-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #f1f5f9;
}

.signal-meta-grid dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-meta-grid dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.3;
}

.signal-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
  text-decoration: none;
}

.signal-settings-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.signal-settings-grid input,
.signal-settings-grid select,
.signal-settings-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  padding: 10px 12px;
}

.signal-settings-grid textarea {
  min-height: 78px;
  resize: vertical;
}

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

.memory-overview-card,
.memory-snapshot-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.memory-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-overview-card strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
}

.memory-overview-card p,
.memory-snapshot-card p {
  margin: 0;
  color: #475569;
  line-height: 1.48;
}

.memory-snapshot-list {
  display: grid;
  gap: 12px;
}

.memory-snapshot-card strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.memory-snapshot-card small {
  color: #64748b;
  font-weight: 800;
}

.memory-snapshot-card .button-row {
  flex-wrap: wrap;
  margin-top: 4px;
}

.memory-version-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.memory-version-list summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 900;
}

.memory-version-list button {
  justify-self: start;
}

.report-action-list,
.handoff-summary {
  display: grid;
  gap: 12px;
}

.report-action-list article,
.handoff-summary article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.report-action-list article {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.report-action-list p,
.handoff-summary p {
  margin: 0;
  color: #334155;
  line-height: 1.5;
}

.warning-panel {
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.quality-recovery-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  background: #fff7ed;
  color: #7c2d12;
}

.quality-recovery-panel h4 {
  margin: 4px 0;
  color: #0f172a;
}

.quality-recovery-panel p {
  margin: 0;
  line-height: 1.5;
}

.quality-recovery-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #7c2d12;
  line-height: 1.5;
}

.quality-recovery-panel .button-row {
  margin-top: 0;
}

.validation-gap-list {
  margin: 0;
  padding-left: 20px;
  color: #9a3412;
  line-height: 1.5;
}

.review-refined-confirmation {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.danger-lite {
  color: #b91c1c;
}

.flow-control-panel {
  display: grid;
  gap: 12px;
}

.flow-client-card,
.flow-run-ledger,
.flow-orchestrator-progress {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.flow-client-card {
  display: grid;
  gap: 6px;
  background: #fff7ed;
}

.flow-client-card strong,
.flow-run-ledger strong {
  font-size: 13px;
}

.flow-client-card p,
.flow-run-ledger p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.flow-orchestrator-progress {
  display: grid;
  gap: 9px;
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  position: fixed;
  top: 132px;
  right: 14px;
  z-index: 35;
  width: min(320px, calc(100vw - 28px));
  max-height: calc(100vh - 164px);
  overflow: auto;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  transition: width 0.18s ease, padding 0.18s ease, transform 0.18s ease;
}

.flow-orchestrator-progress.is-collapsed {
  width: 86px;
  min-height: 132px;
  padding: 8px;
  overflow: visible;
  border-color: rgba(37, 99, 235, 0.35);
  background: #ffffff;
}

.orchestrator-drawer-toggle {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  color: #0f172a;
  cursor: pointer;
  text-align: center;
}

.orchestrator-drawer-toggle span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
}

.orchestrator-drawer-toggle strong {
  font-size: 16px;
  line-height: 1;
}

.orchestrator-drawer-toggle small {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.flow-orchestrator-progress.is-collapsed .orchestrator-progress-header,
.flow-orchestrator-progress.is-collapsed .orchestrator-progress-bar,
.flow-orchestrator-progress.is-collapsed .orchestrator-next-action,
.flow-orchestrator-progress.is-collapsed .orchestrator-progress-list {
  display: none;
}

.orchestrator-progress-header {
  display: grid;
  gap: 5px;
}

.orchestrator-progress-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.orchestrator-progress-header strong {
  color: #0f172a;
  font-size: 15px;
}

.orchestrator-progress-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.orchestrator-progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.orchestrator-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.orchestrator-progress-stats {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.orchestrator-next-action {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.orchestrator-next-action span,
.orchestrator-next-action small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.orchestrator-next-action strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
}

.orchestrator-next-action .button-row {
  margin-top: 4px;
}

.orchestrator-progress-stats article {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: #ffffff;
}

.orchestrator-progress-stats span,
.orchestrator-progress-list small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.orchestrator-progress-stats strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
}

.orchestrator-progress-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.orchestrator-progress-list button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.orchestrator-progress-list button.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: #eff6ff;
}

.orchestrator-progress-list button > span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 10px;
  font-weight: 950;
}

.orchestrator-progress-list strong {
  display: block;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orchestrator-progress-list small {
  grid-column: 2;
  margin-top: 2px;
  font-size: 10px;
}

.queued-agent-action-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.queued-agent-action-panel h4,
.queued-agent-action-panel p {
  margin: 0;
}

.queued-agent-action-panel h4 {
  margin-top: 3px;
  color: #0f172a;
  font-size: 18px;
}

.queued-agent-action-panel p:not(.eyebrow) {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.flow-client-card p,
.flow-run-ledger p {
  color: var(--muted);
  line-height: 1.45;
}

.flow-run-ledger p {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.flow-run-ledger p:last-child {
  border-bottom: 0;
}

.omni-upload-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: start;
}

.omni-config-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

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

.omni-lead-preview,
.omni-quality-grid,
.omni-segment-grid,
.omni-journey-grid,
.omni-decision-grid,
.omni-governance-grid,
.omni-learning-grid {
  display: grid;
  gap: 12px;
}

.omni-lead-preview {
  margin-top: 14px;
}

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

.omni-preview-table article,
.omni-quality-card,
.omni-segment-card,
.omni-journey-card,
.omni-decision-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.omni-preview-table span,
.omni-preview-table small,
.omni-quality-card p,
.omni-quality-card small,
.omni-quality-card em,
.omni-segment-card p,
.omni-journey-card p,
.omni-decision-card p,
.omni-decision-card small {
  color: var(--muted);
  line-height: 1.45;
}

.omni-quality-grid,
.omni-segment-grid,
.omni-decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.omni-governance-grid,
.omni-learning-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.score-strip {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.score-strip span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
}

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

.omni-message-set div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.omni-message-set span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-breadcrumbs button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
}

.crm-breadcrumbs button.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  color: var(--blue);
}

.crm-panel-section[hidden] {
  display: none;
}

#executionPipelineSection {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

#leadExtractorSection {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

#smartLeadsSection {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

#manualLeadPanel {
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

#crmInsightsSection {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

#crmConfigSection {
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
}

#crmChannelsSection {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

#crmGovernanceSection {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.extractor-query-card,
.extractor-preview-panel,
.extractor-advanced-card,
.extractor-output-grid article {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.extractor-query-card label,
.crm-general-form label,
.crm-intelligence-panel label,
.crm-field-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.extractor-query-card input,
.extractor-query-card select,
.crm-general-form input,
.crm-intelligence-panel input,
.crm-intelligence-panel textarea,
.crm-field-grid input,
.crm-field-grid select,
.crm-field-grid textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--text);
}

.crm-intelligence-panel textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

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

.crm-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

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

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

.extractor-advanced-card {
  align-content: start;
  background: #f8fafc;
}

.extractor-advanced-card summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.extractor-advanced-card summary::-webkit-details-marker {
  display: none;
}

.extractor-advanced-card summary span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.extractor-advanced-card summary strong {
  color: #334155;
  font-size: 14px;
}

.extractor-advanced-card[open] summary {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.schema-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-field-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.compliance-notes {
  display: grid;
  gap: 9px;
}

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

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

.compact-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.crm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.crm-kpi-strip div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.crm-kpi-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-kpi-strip strong {
  font-size: 20px;
}

.manual-lead-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.manual-lead-panel[hidden] {
  display: none;
}

.manual-lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.manual-lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-lead-form input,
.manual-lead-form select,
.manual-lead-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.manual-lead-form input[readonly] {
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 850;
}

.manual-lead-form textarea {
  min-height: 82px;
  padding: 10px;
  resize: vertical;
}

.manual-lead-wide {
  grid-column: span 2;
}

.crm-field-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.crm-field-card legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.identity-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.identity-card legend {
  color: #334155;
}

.contact-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.contact-card legend {
  color: #1d4ed8;
}

.location-card {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.location-card legend {
  color: #047857;
}

.pipeline-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pipeline-card legend {
  color: #c2410c;
}

.conversation-card {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.conversation-card legend {
  color: #6d28d9;
}

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

.crm-config-card,
.crm-channel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.crm-config-card h4,
.crm-channel-card h4 {
  font-size: 20px;
}

.crm-config-card p,
.crm-channel-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.social-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.telephony-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.recording-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.plugin-test-card {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

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

.channel-quick-grid button {
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 850;
}

.channel-quick-grid button:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.recording-preview-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 14px;
  background: #fffaf0;
}

.recording-preview-card p {
  margin: 0;
}

.omnichannel-flow-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.omnichannel-flow-card h4 {
  font-size: 20px;
}

.omnichannel-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.omnichannel-flow div {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #ffffff;
}

.omnichannel-flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: #2563eb;
}

.omnichannel-flow strong {
  color: #0f172a;
}

.omnichannel-flow span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lifecycle-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.product-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.user-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.crm-stage-builder,
.crm-config-list,
.crm-user-list,
.crm-create-form {
  display: grid;
  gap: 10px;
}

.crm-stage-builder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-stage-builder label,
.crm-create-form label,
.crm-config-list div,
.crm-user-list div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.crm-create-form input,
.crm-create-form select,
.crm-create-form textarea,
.crm-stage-builder input {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-weight: 400;
}

.crm-create-form textarea {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

.user-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-config-list span,
.crm-user-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plugin-test-log,
.conversation-action-log {
  margin-top: 14px;
}

.crm-login-grid,
.crm-screen-config-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.crm-login-card,
.crm-screen-config-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.crm-login-card {
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.access-policy-card {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.crm-access-policy-list {
  display: grid;
  gap: 10px;
}

.crm-access-policy-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.crm-access-policy-list span,
.crm-screen-config-summary p {
  color: var(--muted);
  line-height: 1.45;
}

.crm-screen-config-summary {
  background: linear-gradient(180deg, #ffffff, #ecfeff);
}

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

.crm-screen-field-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr) 82px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.crm-screen-field-row.mandatory {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.crm-screen-field-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.crm-screen-field-row input[type="text"] {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 400;
}

.crm-screen-field-row em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

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

.recent-conversation-list div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #f8fafc;
}

.recent-conversation-list p {
  margin: 0;
}

.recent-conversation-list span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.compact-header {
  margin-bottom: 4px;
}

.extraction-preview,
.dedupe-preview,
.extraction-history {
  display: grid;
  gap: 8px;
}

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

.extraction-row,
.dedupe-card,
.history-card {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.extraction-row span,
.extraction-row small,
.history-card p,
.history-card small,
.dedupe-card p {
  color: var(--muted);
}

.extraction-row em {
  color: #04766b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dedupe-card em,
.history-card em {
  color: #04766b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.accuracy-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.accuracy-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
}

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

.crm-insight-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.crm-insight-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-insight-grid strong {
  font-size: 20px;
}

.crm-insight-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.lead-panel-card {
  width: min(1040px, 100%);
}

.lead-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.crm-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
}

.crm-general-form,
.crm-intelligence-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.crm-form-section,
.crm-status-card,
.conversation-intelligence-card,
.crm-timeline-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.crm-intelligence-panel {
  padding: 14px;
  border-radius: 16px;
  background: #f1f5f9;
}

.crm-status-card p,
.conversation-intelligence-card p {
  color: var(--muted);
  line-height: 1.45;
}

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

.signal-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.signal-grid span,
.crm-timeline-card span {
  color: var(--muted);
  font-size: 12px;
}

.crm-timeline-card div {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.crm-timeline-card div:last-child {
  border-bottom: 0;
}

.microsite-context-grid,
.microsite-opportunity-grid,
.microsite-builder-grid,
.microsite-portfolio-grid,
.conversation-channel-grid,
.guardrail-grid {
  display: grid;
  gap: 12px;
}

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

.microsite-opportunity-grid,
.microsite-portfolio-grid,
.conversation-channel-grid,
.guardrail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.microsite-builder-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-chip-card,
.microsite-opportunity-card,
.conversation-channel-card,
.script-card,
.guardrail-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.context-chip-card span,
.script-card small,
.microsite-opportunity-card small {
  color: var(--muted);
}

.microsite-opportunity-card.selected,
.script-card.winning {
  border-color: rgba(20, 184, 166, 0.48);
  background: #ecfdf5;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list div {
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.microsite-preview-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.microsite-preview-band p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.microsite-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
}

.preview-proof-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
}

.created-microsite-section {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

.microsite-portfolio-section {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

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

.microsite-portfolio-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.microsite-portfolio-card small {
  color: var(--muted);
}

.microsite-recommendation {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.microsite-recommendation span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.microsite-recommendation p {
  color: var(--muted);
  line-height: 1.4;
}

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

.created-site-card,
.agent-work-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.created-site-card strong,
.agent-work-card strong {
  font-size: 16px;
}

.created-site-card p,
.agent-work-card p,
.agent-work-card small {
  color: var(--muted);
  line-height: 1.45;
}

.integration-grid,
.journey-orchestration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.integration-card,
.journey-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.integration-card p,
.journey-card p,
.integration-card code {
  color: var(--muted);
  line-height: 1.45;
}

.integration-card code {
  display: block;
  overflow: hidden;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 11px;
  text-overflow: ellipsis;
}

.lead-page-builder-section {
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

.lead-page-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.lead-page-config-card,
.lead-page-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

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

.lead-page-field-header {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.lead-page-field-header span {
  color: var(--muted);
  font-size: 13px;
}

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

.lead-page-field-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 750;
}

.lead-page-field-chip.locked {
  background: #ecfdf5;
}

.lead-page-field-chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

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

.lead-page-preview-card .fake-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-page-handoff {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
}

.lead-page-handoff p {
  color: var(--muted);
  line-height: 1.45;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.journey-path {
  display: grid;
  gap: 6px;
}

.journey-path span {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
}

.created-page-preview {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.created-page-preview[hidden] {
  display: none;
}

.created-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.microsite-page {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.microsite-page-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.microsite-page-nav strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.microsite-page-nav div {
  display: flex;
  align-items: center;
  gap: 26px;
}

.microsite-page-nav button {
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.microsite-page-nav button.active {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.microsite-site-page {
  display: none;
  min-height: 680px;
}

.microsite-site-page.active {
  display: grid;
}

.microsite-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 44px;
  padding: 64px 48px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 58%, #f8fafc);
  scroll-margin-top: 74px;
}

.microsite-hero-copy {
  align-self: center;
}

.microsite-page-hero .badge {
  max-width: 100%;
  width: fit-content;
  white-space: normal;
  line-height: 1.35;
}

.microsite-page-hero h2 {
  margin-top: 14px;
  max-width: 680px;
  font-size: 48px;
  line-height: 1.08;
}

.microsite-page-hero p {
  max-width: 660px;
  margin-top: 12px;
  color: #475569;
  font-size: 16px;
  line-height: 1.72;
}

.microsite-page-hero aside {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.microsite-hero-visual-card {
  min-width: 0;
}

.microsite-hero-visual {
  overflow: hidden;
  border-radius: 18px;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.microsite-hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.microsite-content-page,
.microsite-lead-form-preview {
  gap: 16px;
  padding: 52px 48px;
  scroll-margin-top: 74px;
}

.microsite-page-head {
  max-width: 860px;
}

.microsite-page-head h3 {
  margin-top: 4px;
  font-size: 34px;
}

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

.microsite-rich-grid article,
.microsite-proof-layout article,
.microsite-aio-card,
.microsite-lead-form-preview {
  border-top: 1px solid var(--border);
}

.microsite-rich-grid article,
.microsite-proof-layout article,
.microsite-aio-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.microsite-section-visual {
  overflow: hidden;
  min-height: 220px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, 0.96) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.72) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.2));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.microsite-section-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.visual-problem {
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.86) 16% 18%, transparent 18% 100%),
    linear-gradient(135deg, #eff6ff, #fef3c7);
}

.visual-solution {
  background:
    radial-gradient(circle at 18% 50%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 50% 50%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 82% 50%, #ffffff 0 10%, transparent 11%),
    linear-gradient(135deg, #dcfce7, #dbeafe);
}

.visual-proof {
  background:
    linear-gradient(135deg, rgba(15, 39, 68, 0.9), rgba(37, 99, 235, 0.8)),
    linear-gradient(90deg, #ffffff 0 100%);
}

.microsite-rich-grid span,
.microsite-proof-layout span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.microsite-rich-grid p,
.microsite-proof-layout p,
.microsite-lead-form-preview p {
  color: #334155;
  font-size: 15px;
  line-height: 1.78;
}

.microsite-lead-form-preview {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  background: #f8fafc;
}

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

.microsite-bot-widget {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
}

.microsite-bot-widget span {
  grid-row: span 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.microsite-bot-widget small {
  color: var(--muted);
  line-height: 1.35;
}

.microsite-bot-widget em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.microsite-aio-card .mini-list div {
  background: #ffffff;
}

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

.fake-form-grid input,
.fake-form-grid select,
.fake-form-grid textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.fake-form-grid textarea {
  grid-column: 1 / span 2;
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

.fake-form-grid button {
  align-self: end;
  min-height: 46px;
}

.microsite-bot-panel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: #ffffff;
}

.microsite-bot-panel[hidden] {
  display: none;
}

.microsite-bot-panel p {
  margin-top: 6px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.microsite-bot-transcript {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.conversation-script-lab {
  display: grid;
  gap: 12px;
}

.conversation-channel-card p,
.script-card p {
  color: var(--muted);
  line-height: 1.45;
}

.asset-engine-grid,
.launch-qa-grid,
.agent-library-grid {
  display: grid;
  gap: 14px;
}

.agent-process-console {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.agent-view-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.agent-view-controls label {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-view-controls select {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-transform: none;
}

.agent-view-context {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 14px;
  background: #f0fdfa;
}

.agent-view-context p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.agent-process-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

.agent-tower-group,
.agent-stage-group {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.agent-tower-group > summary,
.agent-stage-group > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #0f2744, #173a5f);
  color: #ffffff;
}

.agent-tower-group > summary::before,
.agent-stage-group > summary::before {
  content: "+";
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid;
  width: 26px;
  height: 26px;
  align-self: center;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.agent-tower-group[open] > summary::before,
.agent-stage-group[open] > summary::before {
  content: "-";
}

.agent-tower-group > summary::-webkit-details-marker,
.agent-stage-group > summary::-webkit-details-marker {
  display: none;
}

.agent-tower-group > summary span,
.agent-stage-group > summary span {
  grid-column: 2;
  color: #9debdc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-tower-group > summary strong,
.agent-stage-group > summary strong {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.25;
}

.agent-tower-group > summary em,
.agent-stage-group > summary em {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.agent-tower-stages {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #eef6ff;
}

.agent-stage-group {
  border-radius: 12px;
}

.agent-stage-group > summary {
  padding: 10px;
  background: #ffffff;
  color: #0f2744;
}

.agent-stage-group > summary::before {
  background: #e2e8f0;
  color: #0f2744;
}

.agent-stage-group > summary span {
  color: var(--teal);
}

.agent-stage-group > summary em {
  background: #eff6ff;
  color: var(--blue);
}

.agent-stage-items {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
}

.agent-process-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.agent-process-item .badge {
  grid-row: 1 / span 2;
  justify-self: start;
  min-width: 48px;
  justify-content: center;
}

.agent-process-item strong,
.agent-process-item small {
  grid-column: 2;
}

.agent-process-item.active {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}

.agent-process-item small {
  color: var(--muted);
  font-size: 11px;
}

.agent-process-detail {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.agent-process-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  line-height: 1.55;
}

.agent-process-detail li {
  padding-left: 2px;
}

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

.agent-io-grid article,
.agent-handoff-card,
.agent-learning-card,
.agent-human-review-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.agent-io-grid span,
.agent-handoff-card span,
.agent-learning-card span,
.agent-human-review-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.agent-learning-card {
  border-color: rgba(20, 184, 166, 0.34);
  background: #f0fdfa;
}

.agent-learning-card p {
  color: #334155;
  line-height: 1.55;
}

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

.learning-loop-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
}

.learning-loop-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.agent-human-review-card {
  border-color: #fed7aa;
  background: #fff7ed;
}

.agent-human-review-card label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

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

.agent-human-review-card select,
.agent-human-review-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 400;
}

.agent-human-review-card select {
  min-height: 42px;
  padding: 0 12px;
}

.agent-human-review-card textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.human-memory-override {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.learning-ledger-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.learning-ledger-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 10px;
  background: #ffffff;
}

.learning-ledger-list p {
  margin: 0;
  color: #0f172a;
}

.learning-ledger-list small {
  color: var(--muted);
}

.platform-logic-card {
  align-content: start;
}

.platform-logic-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.platform-logic-card summary::-webkit-details-marker {
  display: none;
}

.logic-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.platform-logic-card > div {
  margin-top: 14px;
}

.human-memory-override p {
  color: #166534;
  line-height: 1.5;
}

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

.launch-qa-grid,
.agent-library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-card,
.launch-qa-card,
.agent-library-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.asset-card h3,
.launch-qa-card strong,
.agent-library-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.asset-card p,
.launch-qa-card p,
.agent-library-card p {
  color: var(--muted);
  line-height: 1.45;
}

.asset-preview-panel[hidden] {
  display: none;
}

.asset-preview-body {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.asset-preview-body pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #334155;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
}

.creative-image-preview {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f8fafc;
}

.creative-image-preview svg {
  width: min(100%, 920px);
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.orchestrator-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.orchestrator-context-card,
.orchestrator-stage-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.orchestrator-context-card {
  align-self: start;
  position: sticky;
  top: 18px;
}

.orchestrator-context-card p {
  color: var(--muted);
  line-height: 1.45;
}

.orchestrator-run-timeline {
  display: grid;
  gap: 12px;
}

.orchestrator-stage-card {
  border-left: 5px solid #cbd5e1;
}

.orchestrator-stage-card.complete {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

.orchestrator-stage-card.needs-human {
  border-left-color: var(--orange);
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.orchestrator-stage-card.active-handoff {
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.orchestrator-stage-card > strong {
  font-size: 18px;
}

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

.orchestrator-stage-grid div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 12px;
  background: #f8fafc;
}

.orchestrator-stage-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orchestrator-stage-grid p {
  color: var(--text);
  line-height: 1.45;
}

.human-clarify-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.human-clarify-box strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.human-clarify-box textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: #334155;
  font-weight: 400;
  resize: vertical;
}

.human-clarify-box small {
  color: #9a3412;
  font-weight: 800;
}

.orchestrator-memory-log {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

#orchestratorMemoryLog {
  display: grid;
  gap: 8px;
}

#orchestratorMemoryLog div,
#orchestratorMemoryLog span {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.conversation-console {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.conversation-profile,
.conversation-chat {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.conversation-profile p {
  color: var(--muted);
  line-height: 1.45;
}

.voice-mode-status {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.voice-mode-status span {
  color: var(--muted);
  line-height: 1.4;
}

.conversation-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.conversation-message {
  display: grid;
  gap: 5px;
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.conversation-message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.conversation-message p {
  color: var(--text);
  line-height: 1.45;
}

.conversation-message.bot {
  justify-self: start;
  background: #ffffff;
  border: 1px solid var(--border);
}

.conversation-message.customer {
  justify-self: end;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

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

.conversation-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-quick-actions button {
  min-height: 34px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.conversation-quick-actions button:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.voice-session-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.voice-session-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.voice-session-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.voice-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
}

.voice-avatar span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.voice-avatar.listening {
  background: #dcfce7;
  animation: voicePulse 1.2s infinite;
}

@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.35); }
  70% { box-shadow: 0 0 0 16px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.conversation-input-row input {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 400;
}

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

.strategy-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  text-align: left;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.warning-text,
.success-text {
  font-size: 13px;
  line-height: 1.4;
}

.warning-text {
  color: #9a3412;
}

.success-text {
  color: #166534;
}

.link-action {
  color: var(--blue);
  font-weight: 900;
}

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

.three-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 18px;
}

.microsite-grid,
.mission-grid,
.stack-list,
.insight-grid,
.addon-list,
.builder-grid {
  display: grid;
  gap: 12px;
}

.microsite-card,
.mission-card,
.recommendation-card,
.approval-card,
.task-card,
.insight-card,
.builder-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.mission-card {
  text-align: left;
}

.mini-metrics,
.lead-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-metrics span,
.lead-summary div,
.detail-grid div {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.lead-summary div {
  min-height: 88px;
}

.lead-summary span,
.lead-summary strong,
.detail-grid span,
.detail-grid strong {
  display: block;
}

.lead-summary strong {
  margin-top: 7px;
  font-size: 24px;
}

.table-controls input,
.table-controls select,
#missionFilter,
.admin-form input,
.lead-panel textarea,
.lead-panel input {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.lead-table th,
.lead-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.lead-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.lead-table tr {
  cursor: pointer;
}

.lead-table tr:hover {
  background: #f8fafc;
}

.lead-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state,
.empty-column {
  color: var(--muted);
  text-align: center;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.pipeline-column {
  min-height: 250px;
  padding: 12px;
  border-color: rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.pipeline-column .card-row {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #0f172a;
}

.pipeline-column .card-row span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.stage-new,
.stage-awareness,
.stage-extracted {
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.stage-new .card-row,
.stage-awareness .card-row,
.stage-extracted .card-row {
  background: #dbeafe;
  color: #1d4ed8;
}

.stage-enriched,
.stage-interested,
.stage-scored {
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.stage-enriched .card-row,
.stage-interested .card-row,
.stage-scored .card-row {
  background: #ccfbf1;
  color: #0f766e;
}

.stage-assigned,
.stage-contacted,
.stage-responded,
.stage-enquiry {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.stage-assigned .card-row,
.stage-contacted .card-row,
.stage-responded .card-row,
.stage-enquiry .card-row {
  background: #ffedd5;
  color: #c2410c;
}

.stage-nurture,
.stage-qualified,
.stage-meeting-scheduled,
.stage-proposal,
.stage-proposal-sent {
  background: linear-gradient(180deg, #f5f3ff, #ffffff);
}

.stage-nurture .card-row,
.stage-qualified .card-row,
.stage-meeting-scheduled .card-row,
.stage-proposal .card-row,
.stage-proposal-sent .card-row {
  background: #ede9fe;
  color: #6d28d9;
}

.stage-negotiation,
.stage-won,
.stage-customer {
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
}

.stage-negotiation .card-row,
.stage-won .card-row,
.stage-customer .card-row {
  background: #dcfce7;
  color: #047857;
}

.stage-lost,
.stage-disqualified {
  background: linear-gradient(180deg, #fef2f2, #ffffff);
}

.stage-lost .card-row,
.stage-disqualified .card-row {
  background: #fee2e2;
  color: #b91c1c;
}

.pipeline-card {
  display: grid;
  width: 100%;
  gap: 7px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.pipeline-card span,
.pipeline-card small,
.task-card span,
.recommendation-card p,
.recommendation-card small,
.insight-card span,
.insight-card p,
.approval-card p,
.builder-card p,
.admin-note {
  color: var(--muted);
  line-height: 1.4;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.day-tabs button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 850;
}

.day-tabs button.active {
  border-color: var(--teal);
  background: #ecfdf5;
  color: #04766b;
}

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

.recommendation-card,
.insight-card,
.approval-card {
  display: grid;
  gap: 9px;
}

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

.progress-step {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.progress-step.success {
  border-color: #bbf7d0;
}

.progress-step.warning {
  border-color: #fed7aa;
}

.progress-step.danger {
  border-color: #fecaca;
}

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

.pricing-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: left;
}

.pricing-card.featured {
  border-color: rgba(20, 184, 166, 0.65);
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

.pricing-card.selected {
  outline: 3px solid rgba(37, 99, 235, 0.25);
}

.pricing-card h3 {
  font-size: 24px;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.admin-form label,
.lead-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
}

.lead-panel {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(11, 31, 58, 0.4);
  z-index: 10;
}

.lead-panel.open {
  display: flex;
}

.lead-panel-card {
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-radius: 0;
}

.close-button {
  float: right;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 850;
}

.lead-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
}

.lead-tabs button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.lead-tabs button.active {
  background: #eff6ff;
  color: var(--blue);
}

.lead-panel-body {
  display: grid;
  gap: 14px;
}

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

.lead-panel textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99998;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: min(440px, calc(100vw - 44px));
  pointer-events: none;
}

.toast-stack .toast {
  position: relative;
  right: auto;
  bottom: auto;
  transform: translateY(10px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: var(--shadow);
  pointer-events: auto;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.toast-stack .toast.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--info {
  background: var(--navy);
}

.toast--success {
  background: linear-gradient(135deg, #15803d, #166534);
}

.toast--error {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  opacity: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .mission-selection-grid,
  .execution-lead-list,
  .simple-insight-grid,
  .extractor-workspace,
  .extractor-advanced-grid,
  .extractor-output-grid,
  .extraction-preview,
  .crm-field-grid,
  .crm-detail-layout,
  .crm-kpi-strip,
  .manual-lead-form,
  .crm-insight-grid,
  .crm-config-grid,
  .crm-channel-grid,
  .crm-login-grid,
  .crm-screen-config-layout,
  .crm-screen-field-grid,
  .role-dashboard-grid,
  .role-insight-hero,
  .omnichannel-flow,
  .crm-stage-builder,
  .microsite-builder-grid,
  .microsite-opportunity-grid,
  .microsite-portfolio-grid,
  .conversation-channel-grid,
  .guardrail-grid,
  .stage-help-grid,
  .multi-choice-grid,
  .multi-choice-grid.compact,
  .asset-engine-grid,
  .launch-qa-grid,
  .agent-library-grid,
  .agent-process-console,
  .agent-io-grid,
  .business-outcome-grid,
  .learning-loop-grid,
  .integration-grid,
  .journey-orchestration-grid,
  .microsite-page-hero,
  .microsite-rich-grid,
  .microsite-proof-layout,
  .microsite-lead-form-preview,
  .fake-form-grid,
  .created-microsite-grid,
  .flow-step-grid,
  .orchestrator-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .strategy-grid,
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .hero-band,
  .external-hero,
  .onboarding-hero,
  .microsite-preview-band,
  .two-column,
  .three-column,
  .onboarding-form,
  .onboarding-result-grid,
  .pricing-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .happy-path-breadcrumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-report-input-grid,
  .business-report-form {
    grid-template-columns: 1fr;
  }

  .flow-builder-shell,
  .flow-control-panel,
  .agent-input-grid,
  .selected-agent-strip,
  .downloadable-asset-grid,
  .market-signal-grid,
  .signal-settings-grid,
  .market-signal-toolbar,
  .executive-nudge-hero,
  .signal-action-explainer,
  .memory-overview-grid,
  .context-pack-list {
    grid-template-columns: 1fr;
  }

  .backend-trace-panel {
    position: static;
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

  .flow-orchestrator-progress,
  .flow-orchestrator-progress.is-collapsed {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .flow-orchestrator-progress.is-collapsed {
    min-height: auto;
  }

  .human-review-grid {
    grid-template-columns: 1fr;
  }

  .selected-agent-actions,
  .selected-agent-actions .compact-button {
    width: 100%;
  }

  .flow-agent-library,
  .flow-agent-library-list {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
    overflow: visible;
  }

  .flow-control-panel,
  .flow-canvas-section {
    grid-column: auto;
    grid-row: auto;
  }

  .crm-kpi-strip,
  .manual-lead-form,
  .crm-field-grid,
  .extraction-preview,
  .crm-insight-grid,
  .crm-config-grid,
  .crm-channel-grid,
  .crm-login-grid,
  .crm-screen-config-layout,
  .crm-screen-field-grid,
  .role-dashboard-grid,
  .role-insight-hero,
  .omnichannel-flow,
  .crm-stage-builder,
  .extractor-advanced-grid {
    grid-template-columns: 1fr;
  }

  .flow-step-grid {
    grid-template-columns: 1fr;
  }

  .manual-lead-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .section-header,
  .agent-view-context,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-band h2 {
    font-size: 30px;
  }

  .external-hero h2 {
    font-size: 32px;
  }

  .onboarding-hero h2 {
    font-size: 32px;
  }

  .kpi-grid,
  .happy-path-grid,
  .happy-path-agent-picker-grid,
  .happy-path-required-grid,
  .happy-path-breadcrumbs,
  .happy-path-create-grid,
  .onboarding-goal-grid,
  .result-summary-grid,
  .mission-selection-grid,
  .execution-lead-list,
  .simple-insight-grid,
  .extractor-workspace,
  .extractor-output-grid,
  .crm-detail-layout,
  .microsite-context-grid,
  .microsite-builder-grid,
  .microsite-opportunity-grid,
  .microsite-portfolio-grid,
  .conversation-channel-grid,
  .guardrail-grid,
  .stage-help-grid,
  .multi-choice-grid,
  .multi-choice-grid.compact,
  .foundation-form,
  .asset-engine-grid,
  .launch-qa-grid,
  .agent-library-grid,
  .agent-process-console,
  .agent-io-grid,
  .integration-grid,
  .journey-orchestration-grid,
  .microsite-page-hero,
  .microsite-rich-grid,
  .microsite-proof-layout,
  .microsite-lead-form-preview,
  .fake-form-grid,
  .created-microsite-grid,
  .orchestrator-layout,
  .orchestrator-stage-grid,
  .two-field-row,
  .goal-metrics-card,
  .quick-action-grid,
  .agent-output-grid,
  .mini-metrics,
  .lead-summary,
  .progress-steps,
  .admin-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .role-nudge-card {
    grid-template-columns: 1fr;
  }

  .crm-screen-field-row {
    grid-template-columns: 1fr;
  }

  .crm-screen-field-row em {
    text-align: left;
  }

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

/* Final CRM drawer overrides: keep the record view readable on every viewport. */
.lead-panel {
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(11, 31, 58, 0.62);
}

.lead-panel-card {
  width: min(1120px, calc(100vw - 28px));
  max-width: 1120px;
  height: 100%;
  overflow-y: auto;
  border-radius: 18px 0 0 18px;
  background: #ffffff;
}

.lead-panel-card > .eyebrow {
  color: var(--teal);
}

.lead-panel-card > h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.lead-tabs {
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 8px;
  margin: 18px 0 16px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.lead-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.crm-record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.crm-record-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.crm-record-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-record-summary strong {
  font-size: 15px;
}

.crm-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: start;
}

.crm-form-section,
.crm-status-card,
.conversation-intelligence-card,
.crm-timeline-card {
  border-radius: 14px;
}

.crm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-bottom: 4px;
}

.crm-section-title span {
  display: grid;
  width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.crm-section-title strong {
  font-size: 13px;
  text-transform: uppercase;
  color: #334155;
}

@media (max-width: 920px) {
  .lead-panel-card {
    width: 100vw;
    border-radius: 0;
  }

  .crm-detail-layout {
    grid-template-columns: 1fr;
  }

  .crm-record-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-tabs {
    grid-template-columns: repeat(4, minmax(128px, 1fr));
  }

  .conversation-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lead-tabs {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
  }

  .conversation-input-row {
    grid-template-columns: 1fr;
  }

  .voice-session-panel {
    grid-template-columns: 1fr;
  }

  .voice-session-actions {
    justify-content: stretch;
  }

  .voice-session-actions button {
    width: 100%;
  }

  .conversation-message {
    max-width: 100%;
  }
}

/* CRM field typography: labels/headings bold, field values light. */
.crm-general-form label,
.crm-intelligence-panel label,
.extractor-query-card label {
  font-weight: 800;
  font-size: 12px;
}

.crm-general-form input,
.crm-intelligence-panel input,
.crm-intelligence-panel textarea,
.extractor-query-card input,
.extractor-query-card select,
.conversation-input-row input {
  color: #0f172a;
  font-size: 13px;
  font-weight: 400;
}

.signal-grid strong,
.detail-grid strong,
.crm-status-card p,
.conversation-intelligence-card p {
  font-weight: 400;
}

.crm-form-section > .badge,
.conversation-intelligence-card > .badge,
.crm-status-card > .badge,
.crm-timeline-card > .badge {
  font-weight: 900;
}

/* Platform typography system: match the compact, international CRM style. */
:root {
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-body: 13px;
  --font-size-md: 15px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-display: 28px;
  --weight-data: 400;
  --weight-label: 750;
  --weight-heading: 850;
  --weight-strong: 900;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  font-size: var(--font-size-body);
  line-height: 1.45;
}

h1 {
  font-size: var(--font-size-lg);
  font-weight: var(--weight-heading);
  line-height: 1.18;
}

h2 {
  font-size: var(--font-size-display);
  font-weight: var(--weight-heading);
  line-height: 1.14;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--weight-heading);
  line-height: 1.18;
}

h4,
strong {
  font-weight: var(--weight-heading);
}

p,
li,
td,
input,
select,
textarea,
.detail-grid strong,
.lead-summary strong,
.kpi-card strong,
.goal-metric strong,
.signal-grid strong,
.crm-record-summary strong {
  font-weight: var(--weight-data);
}

label,
th,
.eyebrow,
.badge,
.nav-item,
.nav-group summary,
.field-title strong,
.crm-section-title strong,
.lead-summary span,
.detail-grid span,
.kpi-card span,
.goal-metric span,
.signal-grid span,
.crm-record-summary span {
  font-size: var(--font-size-sm);
  font-weight: var(--weight-label);
}

.eyebrow,
th,
.crm-section-title strong,
.crm-record-summary span {
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-band h2,
.external-hero h2,
.onboarding-hero h2 {
  font-size: 30px;
}

.kpi-card strong,
.lead-summary strong,
.goal-metric strong,
.crm-record-summary strong {
  font-size: var(--font-size-lg);
}

.hero-plan strong,
.ai-suggestion-card strong,
.microsite-draft-card strong,
.agent-output-card strong,
.conversation-message p,
.lead-table td,
.crm-general-form input,
.crm-intelligence-panel input,
.crm-intelligence-panel textarea {
  font-size: var(--font-size-body);
}

.section-header h3,
.lead-panel-card > h2 {
  font-size: var(--font-size-xl);
}

.side-card h2,
.pricing-card h3,
.happy-path-card h3,
.mission-selection-card strong,
.simple-insight-card strong {
  font-size: var(--font-size-lg);
}

button,
.primary-button,
.ghost-button,
.pill-button,
.close-button,
.notification-button,
.profile-button {
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
}

.nav-item {
  font-size: var(--font-size-body);
}

.nav-item span,
.timeline-index,
.crm-section-title span {
  font-size: 10px;
  font-weight: var(--weight-strong);
}

.onboarding-form select,
.onboarding-form input,
.onboarding-form textarea,
.table-controls input,
.table-controls select,
#missionFilter,
.admin-form input,
.extractor-query-card input,
.extractor-query-card select,
.lead-panel input,
.lead-panel textarea,
.conversation-input-row input {
  font-size: var(--font-size-body);
  font-weight: var(--weight-data);
}

.ai-data-hero {
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.88), rgba(236, 253, 245, 0.92)),
    #ffffff;
}

.ai-data-tabs {
  margin: 20px 0;
  flex-wrap: wrap;
}

.ai-data-ask-layout,
.ai-data-source-grid,
.ai-data-provider-grid,
.ai-data-card-grid,
.ai-data-command-strip,
.ai-data-operating-grid,
.ai-data-top-workbench,
.ai-data-breadcrumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-data-command-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.ai-data-operating-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.ai-data-ask-layout--stacked {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  margin-top: 16px;
}

.ai-data-top-workbench {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.ai-data-breadcrumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.ai-data-query-card,
.ai-data-answer-card,
.ai-data-card,
.ai-data-source-card,
.ai-data-provider-card,
.benchmark-card,
.ai-data-command-strip article,
.ai-data-operating-grid article,
.ai-data-breadcrumbs article,
.ai-data-primary-answer {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.ai-data-breadcrumbs article {
  display: grid;
  gap: 4px;
  box-shadow: none;
  background: #ffffff;
}

.ai-data-breadcrumbs article.active {
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.ai-data-breadcrumbs span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.ai-data-breadcrumbs small {
  color: #64748b;
  line-height: 1.35;
}

.ai-data-answer-card--top {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #ecfdf5 100%);
  margin-bottom: 0;
}

.ai-data-evidence-card {
  background: #fbfdff;
}

.ai-data-query-card textarea,
.ai-data-provider-card input {
  width: 100%;
}

.ai-data-question-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.ai-data-question-row button {
  align-self: stretch;
  min-width: 132px;
}

.ai-data-source-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 14px 0;
}

.ai-data-source-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.ai-data-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ai-data-quick-questions button {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 12px;
}

.ai-data-helper {
  color: #475569;
  line-height: 1.45;
  margin: 8px 0 14px;
}

.ai-data-possibility-card {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.ai-data-possibility-card strong {
  display: block;
  color: #0f766e;
  margin-bottom: 4px;
}

.ai-data-possibility-card p {
  margin: 0;
  color: #334155;
  line-height: 1.45;
}

.ai-data-command-strip article span,
.ai-data-operating-grid article span,
.ai-data-primary-answer span {
  display: block;
  color: #64748b;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-label);
}

.ai-data-command-strip article strong,
.ai-data-operating-grid article strong {
  display: block;
  margin: 6px 0;
  font-size: var(--font-size-body);
}

.ai-data-command-strip article small,
.ai-data-operating-grid article p {
  color: #475569;
  line-height: 1.45;
}

.ai-data-primary-answer {
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.ai-data-primary-answer strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin: 8px 0;
}

.ai-data-answer-summary {
  font-size: var(--font-size-lg);
  line-height: 1.55;
  color: #0f172a;
  max-width: 1100px;
}

.ai-data-direct-answer {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.ai-data-direct-answer span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-data-direct-answer p,
.ai-data-empty-answer p {
  margin: 0;
  color: #0f172a;
  font-size: var(--font-size-lg);
  line-height: 1.55;
}

.ai-data-decision-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ai-data-decision-list h4 {
  margin: 0;
  color: #0f172a;
}

.ai-data-decision-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  line-height: 1.45;
}

.ai-data-empty-answer {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-data-mini-grid,
.ai-data-count-grid,
.ai-data-evidence-list,
.ai-data-reference-list,
.ai-data-actions,
.ai-data-audit-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ai-data-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-data-count-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-data-actions--top {
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.ai-data-actions--top h4 {
  margin: 0;
  align-self: center;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.ai-data-source-audit {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.ai-data-source-audit summary {
  cursor: pointer;
  color: #475569;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-data-source-audit div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ai-data-source-audit strong {
  margin-right: 4px;
  color: #334155;
  font-size: 12px;
}

.ai-data-mini-grid article,
.ai-data-count-grid article,
.ai-data-evidence-list p,
.ai-data-reference-list article,
.ai-data-actions p,
.ai-data-audit-list article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.ai-data-mini-grid span {
  display: block;
  color: #64748b;
  font-size: var(--font-size-sm);
}

.ai-data-count-grid span {
  display: block;
  color: #64748b;
  font-size: var(--font-size-sm);
}

.ai-data-count-grid strong {
  font-size: var(--font-size-xl);
}

.ai-data-card strong,
.ai-data-source-card strong,
.ai-data-provider-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: var(--font-size-lg);
}

.inline-section {
  margin-top: 18px;
}

.ai-lead-insight-card {
  border-color: #86efac;
  background: #f0fdf4;
}

@media (max-width: 900px) {
  .ai-data-ask-layout,
  .ai-data-source-grid,
  .ai-data-provider-grid,
  .ai-data-card-grid,
  .ai-data-mini-grid,
  .ai-data-count-grid,
  .ai-data-command-strip,
  .ai-data-operating-grid,
  .ai-data-actions--top,
  .ai-data-top-workbench,
  .ai-data-breadcrumbs,
  .ai-data-question-row {
    grid-template-columns: 1fr;
  }
}

/* Controlled 23-agent GTM workflow (minimal) */
.gtm23-workflow-panel .muted-inline {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 52rem;
}

.gtm23-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}

.gtm23-summary span strong {
  font-weight: 700;
}

.gtm23-agent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.gtm23-agent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.gtm23-agent-row .gtm23-agent-title {
  flex: 1 1 200px;
  min-width: 0;
}

.gtm23-agent-row .gtm23-agent-title strong {
  display: block;
  font-size: 14px;
}

.gtm23-agent-row .gtm23-agent-title small {
  color: var(--muted);
  font-size: 12px;
}

.gtm23-agent-row .compact-button {
  padding: 6px 12px;
  font-size: 12px;
}

/* Product / service intelligence (builder) */
.product-intelligence-panel .product-intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.product-intelligence-panel .product-intel-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.product-intelligence-panel .checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.product-intelligence-panel .product-intel-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.product-intelligence-panel .product-intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.product-intelligence-panel .product-intel-table th,
.product-intelligence-panel .product-intel-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

/* Phase 5 — controlled execution readiness (workspace-scoped, no auto-send) */
.phase5-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.phase5-command-snapshot-body,
.phase5-execution-panel-body {
  font-size: 13px;
}

.phase5-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.phase5-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.phase5-table th,
.phase5-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.phase5-split h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.phase5-activity-chip {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
}

.phase5-timeline-select-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.phase5-timeline-select-label select {
  display: block;
  margin-top: 6px;
  max-width: 420px;
  width: 100%;
}

.lead-execution-timeline-host {
  margin-top: 8px;
}

.lead-execution-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.lead-execution-timeline-item {
  position: relative;
  padding: 10px 12px 10px 20px;
  margin-bottom: 8px;
}

.lead-execution-timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--card);
}

.lead-execution-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.lead-execution-timeline-item .notes {
  margin-top: 6px;
  white-space: pre-wrap;
}

/* Phase 5B — intake goals + edit */
.intake-goals-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.intake-goals-multiselect {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  font: inherit;
}

.intake-custom-goal-row {
  display: grid;
  gap: 8px;
}

@media (min-width: 720px) {
  .intake-custom-goal-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.intake-goals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.intake-goal-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #64748b;
}

.intake-change-banner {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.intake-edit-actions {
  flex-wrap: wrap;
}

.intake-goals-panel.intake-readonly .intake-goals-multiselect,
.intake-goals-panel.intake-readonly #intakeCustomGoalInput,
.intake-goals-panel.intake-readonly #intakeAddCustomGoalBtn {
  opacity: 0.65;
  pointer-events: none;
}

/* Phase 5C — Strategy / WIG alignment strip */
.strategy-wig-strip-host {
  margin-bottom: 12px;
}

.strategy-wig-strip-inner {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

@media (min-width: 900px) {
  .strategy-wig-strip-inner {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .strategy-wig-strip-inner .strategy-wig-progress {
    grid-column: 1 / -1;
  }
}

.strategy-wig-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.strategy-wig-field select,
.strategy-wig-field input {
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.strategy-wig-legend,
.strategy-wig-multiselect-hint {
  grid-column: 1 / -1;
}

.strategy-wig-multiselect-hint {
  margin: -4px 0 0;
  font-size: 12px;
}

/* Strategy & WIG studio — flow view */
.sw-studio-hero .sw-studio-lede {
  color: var(--muted);
  line-height: 1.5;
  max-width: 46rem;
}

.sw-studio-advanced-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.72);
}

.sw-studio-advanced-note summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  list-style: none;
}

.sw-studio-advanced-note summary::-webkit-details-marker {
  display: none;
}

.sw-studio-note-body {
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.45;
}

.sw-studio-note-body--mono {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sw-studio-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.sw-studio-path__step {
  display: flex;
  gap: 12px;
  flex: 1 1 200px;
  min-width: 0;
  align-items: flex-start;
}

.sw-studio-path__step strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.sw-studio-path__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.sw-studio-path__arrow {
  align-self: center;
  color: var(--border);
  font-weight: 800;
}

@media (max-width: 720px) {
  .sw-studio-path__arrow {
    display: none;
  }
}

.sw-wig-ladder {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.sw-wig-ladder li {
  display: grid;
  grid-template-columns: minmax(100px, 118px) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.sw-wig-ladder li:last-child {
  border-bottom: 0;
}

.sw-wig-ladder__tier {
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
}

.sw-wig-ladder__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .sw-wig-ladder li {
    grid-template-columns: 1fr;
  }
}

.strategy-card__signal {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid rgba(37, 99, 235, 0.35);
}

.flow-step-deps {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.gtm23-dep-hint {
  flex: 1 1 100%;
  margin: 0;
  padding: 8px 0 0;
  font-size: 11px;
  line-height: 1.38;
  color: var(--muted);
  border-top: 1px dashed rgba(148, 163, 184, 0.55);
}

.gtm23-dep-hint__label {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
  color: var(--navy);
}

@media (max-width: 980px) {
  .flow-builder-shell.flow-builder-shell--studio {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .flow-builder-shell.flow-builder-shell--studio .flow-agent-library,
  .flow-builder-shell.flow-builder-shell--studio .flow-control-panel,
  .flow-builder-shell.flow-builder-shell--studio .flow-canvas-section {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

  .flow-agent-item {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .flow-builder-shell.flow-builder-shell--studio {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }
}

.crm-wig-spine-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.prompt-ip-selected-row {
  outline: 2px solid var(--blue);
  background: rgba(37, 99, 235, 0.07);
}

.mini-heading {
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

/* ===== Phase 10 — Figma-level growth shell (Option B) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-anchor {
  scroll-margin-top: 96px;
}

.app-shell--phase10 {
  grid-template-columns: 288px minmax(0, 1fr);
}

/* Single primary scroll surface (desktop): workspace scrolls; shell stays fixed */
@media (min-width: 981px) {
  .app-shell.app-shell--phase10 {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .app-shell.app-shell--phase10 > .workspace.workspace--growth {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .app-shell.app-shell--phase10 .topbar--growth {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

.sidebar.sidebar--growth {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #eff6ff 100%);
  color: var(--text);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.sidebar.sidebar--growth .brand .eyebrow {
  color: var(--blue);
  letter-spacing: 0.06em;
}

.sidebar.sidebar--growth .brand h1 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.sidebar.sidebar--growth .brand-mark {
  background: linear-gradient(135deg, var(--blue), var(--teal-ready));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.sidebar-nav-heading {
  margin: 8px 4px 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav--growth {
  gap: 6px;
}

.sidebar.sidebar--growth .nav-item {
  color: #1e293b;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
}

.sidebar.sidebar--growth .nav-item:hover {
  border-color: var(--blue-light);
  background: #fff;
  box-shadow: var(--shadow);
}

.sidebar.sidebar--growth .nav-item.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, var(--blue-light), #fff);
  color: var(--blue-hover);
  box-shadow: var(--shadow-hover);
}

.sidebar.sidebar--growth .nav-item span:not(.nav-item-icon) {
  background: var(--blue-light);
  color: var(--blue-hover);
}

.sidebar.sidebar--growth .nav-item.active span:not(.nav-item-icon) {
  background: var(--blue);
  color: #fff;
}

.nav-item--primary {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  font-weight: 800 !important;
}

.nav-item-icon {
  display: grid !important;
  place-items: center !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #e0e7ff, #dbeafe) !important;
  color: var(--blue-hover) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.sidebar.sidebar--growth .nav-item.active .nav-item-icon {
  background: var(--blue) !important;
  color: #fff !important;
}

.sidebar.sidebar--growth .nav-group {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

.sidebar.sidebar--growth .nav-group summary {
  color: var(--muted);
}

.sidebar.sidebar--growth .side-card {
  border-color: var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.sidebar.sidebar--growth .side-card h2 {
  color: var(--navy);
}

.sidebar.sidebar--growth .side-card p {
  color: var(--muted) !important;
}

.workspace--growth {
  padding: 24px 28px 40px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.06), transparent),
    var(--bg);
}

.topbar--growth {
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.topbar-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.topbar-page-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.app-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}

.app-breadcrumbs__muted {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-breadcrumbs__sep {
  color: var(--border);
  font-weight: 400;
}

.app-breadcrumbs__current {
  color: var(--blue);
  font-weight: 900;
}

.app-breadcrumbs--growth-flow .gtm-flow-connector {
  opacity: 0.65;
  font-size: 10px;
}

.app-breadcrumbs__step {
  transition: color 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  border: none;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 3px 7px;
  margin: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
}

.app-breadcrumbs__step:hover:not(:disabled):not([aria-disabled="true"]) {
  background: rgba(37, 99, 235, 0.08);
}

.app-breadcrumbs__step:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.app-breadcrumbs__step--active {
  color: var(--blue);
  font-weight: 900;
  opacity: 1;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.32);
}

.app-breadcrumbs__step--disabled,
.app-breadcrumbs__step:disabled,
.app-breadcrumbs__step[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

.app-breadcrumbs--growth-flow .app-breadcrumbs__step:not(.app-breadcrumbs__step--active):not([aria-disabled="true"]):not(:disabled) {
  opacity: 0.72;
}

/* Avoid nested scroll trap inside primary workspace scroll (desktop layout) */
@media (min-width: 981px) {
  .app-shell--phase10 .flow-agent-library-list {
    max-height: none;
    overflow: visible;
  }
}

.gox-wizard .multi-choice-grid {
  margin-top: 8px;
}

.gox-next-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.gox-next-actions li {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.gox-next-actions p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.gox-next-actions .button-row {
  margin-top: 10px;
}

/* Phase 10B — explainability & guidance */
.ux-explain-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-explain-card {
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.ux-explain-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ux-explain-card__type {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.ux-explain-card__summary {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.ux-explain-card__secondary {
  margin-top: 10px;
}

.ux-scan-text {
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 10px;
}

.ux-why-block {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  margin-bottom: 10px;
  animation: uxFadeInSoft 0.2s ease-out both;
}

.ux-why-block__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.ux-why-block__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.ux-what-next {
  padding-top: 4px;
  animation: uxFadeInSoft 0.22s ease-out both;
}

.ux-what-next__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ux-what-next__row {
  flex-wrap: wrap;
}

.ux-explain-card--compact {
  padding: 12px 14px;
  margin-top: 12px;
}

.ux-readiness-friction {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.ux-fixit-block {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--border);
}

.ux-fixit-block__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
}

.ux-fixit-block__title--do {
  margin-top: 10px;
  color: #166534;
}

.ux-fixit-block__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.ux-fixit-block__list--do {
  border-left: 2px solid rgba(22, 163, 74, 0.35);
  padding-left: 14px;
  margin-left: 2px;
}

.ux-copilot-error {
  margin-top: 8px;
}

.ux-copilot-error .ux-error-card__head {
  align-items: flex-start;
}

.ux-copilot-error__retry {
  margin-top: 10px;
}

.ux-health-strip-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.ux-chip-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 13px;
}

.ux-chip-val--ok {
  color: #166534;
}

.ux-chip-val--risk {
  color: #b91c1c;
}

.ux-chip-val--neutral {
  color: #64748b;
}

.ux-perf-arrow {
  display: inline-block;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

.ux-perf-arrow--good {
  color: #16a34a;
}

.ux-perf-arrow--bad {
  color: #dc2626;
}

.ux-perf-arrow--flat {
  color: #64748b;
}

@keyframes uxFadeInSoft {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ux-readiness-friction .ux-explain-card {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ux-readiness-friction .ux-explain-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border-color: rgba(59, 130, 246, 0.22);
}

.ux-what-next__row .ux-what-next__btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ux-what-next__row:hover .ux-what-next__btn:not(.primary-button) {
  opacity: 0.92;
}

details.ux-expand-output summary {
  transition: color 0.15s ease;
}

.ux-confidence {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.ux-confidence--high {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.ux-confidence--mid {
  background: rgba(234, 179, 8, 0.2);
  color: #a16207;
}

.ux-confidence--low {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.ux-confidence--na {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.ux-agent-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.ux-agent-summary--inline {
  margin-top: 8px;
  margin-bottom: 10px;
}

.ux-agent-summary__outcome,
.ux-agent-summary__metric {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.ux-agent-summary__metric:last-child,
.ux-agent-summary__outcome:last-child {
  margin-bottom: 0;
}

.ux-expand-output {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.5);
}

.ux-expand-output summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 12px;
  color: var(--navy);
}

.ux-json-pre {
  white-space: pre-wrap;
  font-size: 11px;
  max-height: 260px;
  overflow: auto;
  margin: 8px 0 0;
}

.ux-highlight-num {
  font-weight: 900;
  color: var(--navy);
}

.ux-highlight-impact {
  color: #166534;
}

.ux-highlight-effort {
  color: #a16207;
}

.ux-perf-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
}

.ux-perf-trend--good {
  color: #166534;
}

.ux-perf-trend--bad {
  color: #b91c1c;
}

.ux-perf-trend--flat {
  color: #64748b;
}

.ux-microsite-intel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.ux-microsite-intel-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ux-microsite-intel-item:last-child {
  border-bottom: none;
}

.ux-microsite-why-host {
  margin-top: 14px;
}

.workspace-switcher-label {
  display: inline-flex;
  align-items: center;
}

.workspace-switcher {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  color: var(--text);
  max-width: 220px;
}

.notification-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 2px #fff;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px !important;
  padding-right: 14px !important;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.profile-label {
  font-weight: 800;
  font-size: 13px;
}

.hero-band--growth-cockpit {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.12), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, 0.1), transparent 45%),
    linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-hover);
}

.hero-band__lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}

.hero-plan--pulse {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(160deg, #ffffff, var(--green-light));
}

.badge--growth-pulse {
  background: linear-gradient(90deg, var(--orange-light), #fff7ed);
  color: #c2410c;
  animation: growth-pulse 2.4s ease-in-out infinite;
}

@keyframes growth-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
}

.alignment-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.alignment-ribbon__step--active {
  color: var(--teal-ready);
}

.alignment-ribbon__arrow {
  color: var(--border);
  font-weight: 400;
}

.growth-cockpit-hub {
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.growth-cockpit-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.growth-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fafafa;
}

.growth-panel__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.growth-panel__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.growth-metric-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.growth-metric-chips li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
}

.growth-metric-chips__label {
  color: var(--muted);
  font-weight: 700;
}

.growth-metric-chips__value {
  font-weight: 900;
  font-size: 18px;
  color: var(--green);
}

.growth-panel--alerts {
  background: linear-gradient(180deg, #fffbeb, #fff);
  border-color: var(--orange-light);
}

.growth-alert-list {
  margin: 0;
  padding-left: 18px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.growth-alert--muted {
  color: var(--muted);
}

.growth-panel--feed .growth-activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.growth-activity-feed li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.growth-activity-feed__tag {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}

.growth-activity-feed__tag--green {
  background: var(--green-light);
  color: #166534;
}

.growth-activity-feed__tag--blue {
  background: var(--blue-light);
  color: var(--blue-hover);
}

.growth-activity-feed__tag--orange {
  background: var(--orange-light);
  color: #c2410c;
}

.strategy-wig-hero .strategy-wig-strip-inner {
  background: linear-gradient(135deg, #ffffff, var(--green-light));
  border-color: rgba(22, 163, 74, 0.2);
}

.phase9-campaign-shell {
  border-left: 4px solid var(--orange);
}

.phase9-execution-shell {
  border-left: 4px solid var(--blue);
}

.phase8-intel-shell {
  border-left: 4px solid var(--green);
}

.microsite-gov-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .microsite-gov-split {
    grid-template-columns: 1fr;
  }
}

.microsite-gov-drawer:not([hidden]) {
  box-shadow: var(--shadow-hover);
}

.microsite-preview-band {
  border-color: var(--border) !important;
}

.badge.success {
  background: var(--green-light);
  color: #166534;
}

.badge.warning {
  background: var(--orange-light);
  color: #c2410c;
}

.badge.neutral {
  background: var(--blue-light);
  color: var(--blue-hover);
}

.badge.ready,
.badge.teal {
  background: var(--teal-ready-light);
  color: #0f766e;
}

.badge.draft-state {
  background: #f3f4f6;
  color: #4b5563;
}

.badge.approved-state {
  background: var(--blue-light);
  color: var(--blue-hover);
}

.badge.executed-state {
  background: var(--green-light);
  color: #166534;
}

.badge.failed-state {
  background: #fee2e2;
  color: #991b1b;
}

.phase5-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  box-shadow: 0 1px 0 var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.segmented-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.segmented-tabs__tab {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.segmented-tabs__tab--active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.skeleton {
  display: block;
  min-height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

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

.external-hero,
.hero-band,
.section-block,
.kpi-card {
  border-radius: var(--radius-lg);
}

.kpi-card.success .kpi-icon {
  background: var(--green);
}

.view .section-header h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.prompt-ip-selected-row {
  outline-color: var(--blue);
}

/* Phase 10A — UX polish: empty / error / drawer */
.ux-empty-state {
  margin: 12px 0 16px;
  padding: 20px 18px;
  border-radius: var(--radius-lg, 14px);
  border: 1px dashed var(--border);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.85));
  text-align: center;
}

.ux-empty-state__title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text, #0f172a);
}

.ux-empty-state__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.ux-error-card {
  margin: 12px 0 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid #fecaca;
  background: linear-gradient(145deg, #fff7ed, #fef2f2);
  color: #991b1b;
}

.ux-error-card__title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 13px;
}

.ux-error-card__msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.ux-error-card--compact {
  margin: 8px 0;
  padding: 10px 12px;
  font-size: 12px;
}

.ux-panel-skeleton {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ux-panel-skeleton .skeleton {
  width: 100%;
}

.ux-panel-skeleton .skeleton--short {
  width: 72%;
}

.microsite-gov-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.microsite-gov-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Phase 10A — Figma-style drawer (fixed rail, RTL slide) */
body.gtm-microsite-drawer-open {
  overflow: hidden;
}

.microsite-gov-detail.microsite-gov-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48vw, 560px);
  max-width: 100%;
  margin: 0;
  z-index: 98;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-elevated, #fff);
  border-left: 1px solid var(--border);
  transform: translateX(105%);
  opacity: 1;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s ease;
  box-shadow: none;
  will-change: transform;
}

.microsite-gov-detail.microsite-gov-drawer.microsite-gov-drawer--open {
  transform: translateX(0);
  box-shadow: -20px 0 56px rgba(15, 23, 42, 0.18);
}

.app-shell--phase10 .microsite-gov-drawer:not([hidden]).microsite-gov-drawer--open {
  border-radius: var(--radius-lg, 14px) 0 0 var(--radius-lg, 14px);
}

.microsite-gov-drawer-backdrop {
  transition: opacity 0.22s ease;
}

.microsite-gov-tabbar {
  margin: 12px 0 14px;
}

.microsite-gov-tab-panel {
  animation: microsite-tab-fade 0.2s ease;
}

.microsite-gov-tab-panel[hidden] {
  display: none !important;
}

@keyframes microsite-tab-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ux-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.ux-error-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ux-error-card__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #b91c1c;
}

.ux-error-card__retry {
  margin-top: 12px;
}

.kpi-card--skeleton {
  pointer-events: none;
  min-height: 108px;
}

.skeleton--circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  min-height: 36px !important;
}

.phase5-table.phase5-table--ux tbody tr:hover td {
  background: rgba(59, 130, 246, 0.055);
}

.phase5-table td.cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr.phase5-clickable-row {
  cursor: pointer;
}

.gtm-api-offline .phase-api-action {
  opacity: 0.48;
  pointer-events: none;
  cursor: not-allowed;
}

.primary-button:not(:disabled):hover,
.ghost-button:not(:disabled):hover,
.pill-button:not(:disabled):hover {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.ghost-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.microsite-portfolio-card[data-microsite-gov-open]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
