:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f3f6fb;
  --line: rgba(19, 45, 72, 0.1);
  --line-strong: rgba(19, 45, 72, 0.16);
  --text: #1a3550;
  --text-strong: #102334;
  --muted: #62768a;
  --muted-strong: #445b71;
  --accent: #147e8f;
  --accent-strong: #0f6775;
  --accent-soft: #e6f6f6;
  --sky: #2b6ef2;
  --warm: #ef8f5c;
  --success: #1f9d67;
  --warning: #cf8c32;
  --danger: #d45160;
  --shadow-panel: 0 26px 70px rgba(19, 37, 59, 0.1);
  --shadow-soft: 0 16px 40px rgba(19, 37, 59, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.customer-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(20, 126, 143, 0.12), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(43, 110, 242, 0.12), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(239, 143, 92, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5fc 50%, #f7fafc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

[hidden] {
  display: none !important;
}

.customer-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 40px);
  background: rgba(248, 251, 255, 0.78);
  border-bottom: 1px solid rgba(19, 45, 72, 0.08);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  background: linear-gradient(145deg, var(--sky), var(--accent));
  box-shadow: 0 12px 28px rgba(43, 110, 242, 0.25);
}

.brand-copy strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--muted);
}

.topbar-links,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 45, 72, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.ghost-button,
.voice-guide,
.text-button {
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.voice-guide:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 12px 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--accent));
  box-shadow: 0 16px 36px rgba(43, 110, 242, 0.2);
}

.secondary-button {
  padding: 12px 18px;
  color: var(--text-strong);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(19, 45, 72, 0.12);
}

.ghost-button {
  padding: 12px 18px;
  color: var(--text);
  font-weight: 700;
  background: transparent;
  border-color: rgba(19, 45, 72, 0.14);
}

.text-button {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--accent-strong);
  font-weight: 800;
}

.voice-guide {
  width: fit-content;
  padding: 10px 14px;
  color: var(--accent-strong);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 126, 143, 0.16);
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.customer-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: stretch;
}

.auth-layout-wide {
  grid-template-columns: minmax(340px, 0.82fr) minmax(380px, 1.02fr);
}

.auth-story,
.auth-card {
  padding: clamp(26px, 4vw, 38px);
}

.auth-story {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.94)),
    radial-gradient(circle at 14% 18%, rgba(20, 126, 143, 0.12), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(43, 110, 242, 0.1), transparent 22%);
}

.auth-story::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 143, 92, 0.18), transparent 72%);
  filter: blur(16px);
}

.auth-story h1,
.auth-card h2,
.dashboard-welcome h1,
.section-heading h2,
.overview-hero h2,
.launch-hero h2,
.surface-card h3,
.helper-card h3,
.template-card strong,
.step-copy h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.auth-story h1,
.auth-card h2,
.dashboard-welcome h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.auth-card h2,
.section-heading h2,
.overview-hero h2,
.launch-hero h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.story-lede,
.card-lede,
.section-lede,
.helper-copy,
.auth-highlight span,
.surface-card p,
.quick-stat p,
.action-card p,
.template-card p,
.empty-copy,
.dashboard-welcome p,
.launch-progress-card p,
.review-item span,
.review-item strong {
  color: var(--muted-strong);
}

.story-lede,
.card-lede,
.section-lede {
  margin: 16px 0 0;
  max-width: 58ch;
  line-height: 1.65;
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.context-badge,
.context-banner,
.workspace-pill,
.helper-pill,
.badge,
.pill,
.header-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.context-badge {
  margin-top: 24px;
  padding: 10px 14px;
  background: rgba(20, 126, 143, 0.12);
  color: var(--accent-strong);
}

.context-banner {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 126, 143, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.context-banner.is-visible {
  display: block;
}

.signup-progress {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 45, 72, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted-strong);
  text-align: left;
}

.progress-step span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(19, 45, 72, 0.08);
  color: var(--text-strong);
}

.progress-step strong {
  font-size: 0.98rem;
}

.progress-step.active,
.progress-step.complete {
  border-color: rgba(20, 126, 143, 0.18);
  background: rgba(230, 246, 246, 0.9);
}

.progress-step.complete span,
.progress-step.active span {
  background: linear-gradient(135deg, var(--sky), var(--accent));
  color: white;
}

.assistant-brief,
.surface-card,
.helper-card,
.quick-stat,
.action-card,
.template-card,
.checklist-card,
.overview-hero-card,
.launch-progress-card,
.plan-card,
.integration-card,
.empty-state,
.review-card,
.snippet-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 45, 72, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.assistant-brief,
.surface-card,
.helper-card,
.quick-stat,
.action-card,
.template-card,
.checklist-card,
.overview-hero-card,
.launch-progress-card,
.plan-card,
.integration-card,
.empty-state,
.review-card,
.snippet-card {
  padding: 20px;
}

.assistant-brief {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.context-stack,
.mini-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill,
.badge,
.workspace-pill,
.helper-pill,
.header-chip {
  padding: 8px 12px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(19, 45, 72, 0.08);
  color: var(--muted-strong);
}

.pill-strong,
.workspace-pill,
.helper-pill,
.header-chip-strong {
  background: rgba(230, 246, 246, 0.88);
  border-color: rgba(20, 126, 143, 0.18);
  color: var(--accent-strong);
}

.header-chip {
  font-size: 0.8rem;
}

.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.auth-highlight {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(19, 45, 72, 0.08);
}

.auth-highlight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.stepped-form {
  gap: 0;
}

.signup-step {
  display: none;
  gap: 18px;
  padding-top: 8px;
}

.signup-step.active {
  display: grid;
}

.step-copy p:last-child,
.step-copy h3 {
  margin-top: 8px;
}

.field-grid,
.split-grid,
.metric-grid,
.action-grid,
.template-grid,
.integration-grid,
.plan-grid,
.channel-card-grid,
.checklist-grid {
  display: grid;
  gap: 16px;
}

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

.field-grid-tall {
  align-items: stretch;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
  color: var(--muted-strong);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 45, 72, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-strong);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(20, 126, 143, 0.28);
  box-shadow: 0 0 0 4px rgba(20, 126, 143, 0.08);
}

.choice-field,
.section-subheading {
  display: grid;
  gap: 12px;
}

.choice-label,
.section-subheading h3 {
  color: var(--text-strong);
  font-weight: 800;
}

.choice-grid,
.mode-grid,
.review-grid {
  display: grid;
  gap: 14px;
}

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

.choice-card,
.mode-card,
.toggle-card {
  text-align: left;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(19, 45, 72, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
}

.choice-card strong,
.mode-card strong,
.toggle-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.choice-card.active,
.mode-card.active,
.toggle-card.active,
.plan-card.featured,
.integration-card.active,
.template-card.active,
.checklist-card.active {
  border-color: rgba(20, 126, 143, 0.2);
  background: rgba(230, 246, 246, 0.78);
}

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

.template-preview-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 45, 72, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.94));
}

.template-preview-head,
.review-head,
.snippet-card-head,
.dashboard-header,
.overview-hero,
.launch-hero,
.checklist-head,
.sidebar-head,
.template-card-head,
.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.review-item {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid rgba(19, 45, 72, 0.06);
}

.review-item span {
  display: block;
  font-size: 0.82rem;
}

.review-item strong {
  display: block;
  margin-top: 6px;
  color: var(--text-strong);
}

.compact-card h4,
.overview-hero-card strong,
.launch-progress-card strong {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.step-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-note,
.microcopy,
.auth-divider,
.google-disabled {
  color: var(--muted);
  font-size: 0.9rem;
}

.oauth-stack {
  display: grid;
  gap: 14px;
}

.auth-divider {
  margin: 0;
  text-align: center;
}

.google-button-slot {
  display: grid;
  justify-items: stretch;
}

.google-disabled {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(19, 45, 72, 0.05);
}

.form-message,
.dashboard-message {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.form-message.is-visible,
.dashboard-message.is-visible {
  display: block;
}

.form-message.info,
.dashboard-message.info {
  background: rgba(43, 110, 242, 0.08);
  color: #2958b5;
}

.form-message.success,
.dashboard-message.success {
  background: rgba(31, 157, 103, 0.1);
  color: #1a7f54;
}

.form-message.error,
.dashboard-message.error {
  background: rgba(212, 81, 96, 0.1);
  color: #a63746;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-header,
.dashboard-helper {
  position: sticky;
  top: 96px;
}

.dashboard-sidebar {
  padding: 22px;
}

.sidebar-title {
  margin: 10px 0 0;
  font-size: 1.45rem;
  font-family: "Sora", sans-serif;
  color: var(--text-strong);
}

.sidebar-copy {
  margin: 10px 0 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.sidebar-link {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: var(--muted-strong);
}

.sidebar-link strong {
  color: var(--text-strong);
}

.sidebar-link span {
  font-size: 0.9rem;
  line-height: 1.45;
}

.sidebar-link.active {
  background: rgba(230, 246, 246, 0.86);
  border-color: rgba(20, 126, 143, 0.18);
}

.sidebar-foot {
  margin-top: 22px;
}

.sidebar-launch-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(235, 246, 247, 0.94));
  border: 1px solid rgba(19, 45, 72, 0.08);
}

.sidebar-launch-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
}

.sidebar-launch-card p {
  margin: 10px 0 14px;
  color: var(--muted-strong);
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-header {
  padding: 24px 26px;
}

.dashboard-welcome p {
  margin: 10px 0 0;
  max-width: 56ch;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#dashboardContent {
  display: grid;
  gap: 18px;
}

.section-panel {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.overview-hero,
.launch-hero {
  align-items: stretch;
  gap: 20px;
}

.overview-hero-card,
.launch-progress-card {
  min-width: 260px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.quick-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-strong);
}

.metric-subcopy {
  margin: 10px 0 0;
}

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

.status-badge {
  padding: 6px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-badge.done {
  background: rgba(31, 157, 103, 0.1);
  color: #1a7f54;
}

.status-badge.active,
.status-badge.next {
  background: rgba(20, 126, 143, 0.1);
  color: var(--accent-strong);
}

.status-badge.upcoming {
  background: rgba(43, 110, 242, 0.08);
  color: #2958b5;
}

.checklist-grid,
.template-grid,
.integration-grid,
.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist-card.complete .check-index {
  background: linear-gradient(135deg, var(--success), #2dbf7a);
  color: white;
}

.checklist-head {
  margin-bottom: 14px;
}

.check-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(19, 45, 72, 0.08);
  color: var(--text-strong);
  font-weight: 800;
}

.progress-bar,
.mini-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 45, 72, 0.08);
  overflow: hidden;
}

.progress-bar span,
.mini-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--sky), var(--accent));
}

.mini-bars {
  display: grid;
  gap: 14px;
}

.mini-bar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

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

.toggle-card {
  display: grid;
  gap: 8px;
}

.toggle-card input,
.integration-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-field {
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 45, 72, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.snippet-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 45, 72, 0.08);
  background: #0f1a26;
  color: #dce7f7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-x: auto;
}

.plain-list,
.helper-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.plain-list span {
  color: var(--muted-strong);
}

.helper-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted-strong);
}

.price-label {
  margin-top: 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.empty-state {
  margin-top: 18px;
}

.dashboard-helper {
  display: grid;
  gap: 18px;
}

.helper-card .helper-copy {
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar,
  .dashboard-header,
  .dashboard-helper {
    position: static;
  }

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

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

@media (max-width: 960px) {
  .auth-layout,
  .auth-layout-wide {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .field-grid,
  .choice-grid,
  .mode-grid,
  .review-grid,
  .split-grid,
  .metric-grid,
  .action-grid,
  .template-grid,
  .integration-grid,
  .plan-grid,
  .channel-card-grid,
  .checklist-grid,
  .dashboard-helper {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .overview-hero,
  .launch-hero,
  .template-card-head,
  .snippet-card-head,
  .dashboard-header {
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .customer-shell {
    width: min(100vw - 20px, 100%);
    padding: 18px 0 26px;
  }

  .customer-topbar {
    padding: 16px 14px;
    align-items: flex-start;
  }

  .topbar-links,
  .topbar-actions {
    width: 100%;
  }

  .auth-story,
  .auth-card,
  .section-panel,
  .dashboard-header,
  .dashboard-sidebar {
    padding: 20px;
  }

  .auth-story h1,
  .auth-card h2,
  .dashboard-welcome h1 {
    font-size: 1.7rem;
  }
}

.dashboard-shell-minimal {
  grid-template-columns: 280px minmax(0, 1fr);
}

.dashboard-shell-minimal .dashboard-sidebar,
.dashboard-shell-minimal .dashboard-header {
  position: sticky;
  top: 96px;
}

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

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

.advanced-details {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 45, 72, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px 20px;
}

.advanced-details summary {
  cursor: pointer;
  list-style: none;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  color: var(--text-strong);
}

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

.advanced-details[open] summary {
  margin-bottom: 18px;
}

.advanced-form {
  padding-top: 4px;
}

.checklist-card .secondary-button {
  margin-top: 12px;
}

.toggle-card {
  position: relative;
}

.toggle-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.integration-card {
  position: relative;
}

.integration-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.surface-card h3,
.snippet-card h3,
.overview-hero-card strong,
.launch-progress-card strong {
  line-height: 1.15;
}

.section-panel + .section-panel {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .dashboard-shell-minimal {
    grid-template-columns: 1fr;
  }

  .dashboard-shell-minimal .dashboard-sidebar,
  .dashboard-shell-minimal .dashboard-header {
    position: static;
  }

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

@media (max-width: 960px) {
  .template-grid-compact,
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026 customer workspace redesign */
body.customer-body {
  --ops-bg: #f5f8fb;
  --ops-panel: rgba(255, 255, 255, 0.92);
  --ops-panel-solid: #ffffff;
  --ops-ink: #172333;
  --ops-muted: #647387;
  --ops-line: rgba(23, 35, 51, 0.11);
  --ops-blue: #2878f0;
  --ops-teal: #0e8b7c;
  --ops-amber: #d98032;
  --ops-violet: #7257d6;
  --ops-green: #189764;
  --ops-red: #cc4d5d;
  --ops-shadow: 0 22px 54px rgba(30, 45, 70, 0.1);
  --ops-soft-shadow: 0 14px 34px rgba(30, 45, 70, 0.07);
  background:
    radial-gradient(circle at 12% 8%, rgba(40, 120, 240, 0.12), transparent 25%),
    radial-gradient(circle at 82% 3%, rgba(14, 139, 124, 0.12), transparent 23%),
    linear-gradient(180deg, #f8fbff 0%, var(--ops-bg) 55%, #f7faf8 100%);
}

.customer-topbar {
  padding: 14px clamp(18px, 4vw, 36px);
  background: rgba(248, 251, 255, 0.9);
}

.dashboard-shell-minimal,
.dashboard-shell {
  width: min(1500px, calc(100vw - 28px));
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.dashboard-sidebar,
.dashboard-header,
.section-panel,
.panel {
  background: var(--ops-panel);
  border-color: var(--ops-line);
  box-shadow: var(--ops-shadow);
}

.dashboard-sidebar {
  padding: 16px;
  border-radius: 28px;
}

.dashboard-header {
  position: static;
  align-items: center;
  padding: 20px 22px;
  border-radius: 28px;
}

#dashboardContent {
  gap: 16px;
}

.ops-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  color: var(--ops-teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ops-sidebar-head {
  margin-bottom: 14px;
}

.ops-workspace-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 35, 51, 0.08);
}

.ops-workspace-switcher strong,
.ops-user-row strong,
.ops-number-card strong {
  display: block;
  color: var(--ops-ink);
}

.ops-workspace-switcher small,
.ops-user-row small,
.ops-number-card small {
  display: block;
  margin-top: 2px;
  color: var(--ops-muted);
}

.ops-avatar-mark,
.ops-user-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: white;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ops-blue), var(--ops-teal));
  box-shadow: 0 12px 26px rgba(40, 120, 240, 0.18);
}

.ops-user-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.ops-nav {
  display: grid;
  gap: 6px;
}

.speako-nav {
  gap: 16px;
}

.ops-nav-group {
  display: grid;
  gap: 7px;
}

.ops-nav-group > span {
  padding: 0 12px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-nav-link {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--ops-muted);
}

.ops-nav-link span {
  color: var(--ops-ink);
  font-weight: 850;
}

.ops-nav-link strong {
  color: var(--ops-ink);
}

.ops-nav-link small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.ops-nav-link.active {
  background: #eaf3ff;
  border-color: rgba(40, 120, 240, 0.16);
  color: #375d9b;
}

.ops-side-card,
.ops-number-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 35, 51, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.ops-side-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ops-ink);
  font-size: 1.45rem;
}

.ops-side-card p,
.ops-number-card span {
  color: var(--ops-muted);
}

.ops-progress {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 35, 51, 0.09);
}

.ops-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ops-blue), var(--ops-teal));
}

.ops-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.84rem;
  font-weight: 850;
  background: var(--ops-ink);
}

.ops-number-card strong {
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.ops-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px;
  border-top: 1px solid rgba(23, 35, 51, 0.08);
}

.ops-header-copy h1,
.ops-hero-card h2,
.ops-card h2,
.ops-onboarding-steps h2,
.ops-agent-preview h2 {
  margin: 6px 0 0;
  color: var(--ops-ink);
  font-family: "Sora", sans-serif;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.ops-header-copy h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.ops-header-copy p,
.ops-hero-card p,
.ops-card p,
.ops-onboarding-steps p,
.ops-muted {
  margin: 8px 0 0;
  color: var(--ops-muted);
  line-height: 1.55;
}

.ops-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ops-muted);
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 35, 51, 0.09);
}

.ops-status-pill.pending {
  color: #9a641f;
  background: #fff3df;
  border-color: rgba(217, 128, 50, 0.18);
}

.ops-status-pill.live {
  color: #14784f;
  background: #e8f8f1;
  border-color: rgba(24, 151, 100, 0.18);
}

.ops-hero-card,
.ops-card,
.ops-metric-card {
  border: 1px solid rgba(23, 35, 51, 0.09);
  background: var(--ops-panel-solid);
  box-shadow: var(--ops-soft-shadow);
}

.ops-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.94)),
    radial-gradient(circle at 95% 10%, rgba(14, 139, 124, 0.16), transparent 28%);
}

.ops-hero-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ops-hero-plan {
  min-width: 190px;
  display: grid;
  align-content: center;
  justify-items: end;
  color: var(--ops-muted);
}

.ops-hero-plan strong {
  color: var(--ops-ink);
  font-family: "Sora", sans-serif;
  font-size: 3rem;
  letter-spacing: -0.06em;
}

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

.ops-metric-card {
  padding: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.ops-metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -38px auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  opacity: 0.13;
  background: currentColor;
}

.ops-metric-card span,
.ops-metric-card small {
  display: block;
  color: var(--ops-muted);
  font-weight: 750;
}

.ops-metric-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ops-ink);
  font-family: "Sora", sans-serif;
  font-size: 2.25rem;
  letter-spacing: -0.06em;
}

.ops-metric-card.blue {
  color: var(--ops-blue);
}

.ops-metric-card.green {
  color: var(--ops-green);
}

.ops-metric-card.orange {
  color: var(--ops-amber);
}

.ops-metric-card.violet {
  color: var(--ops-violet);
}

.ops-dashboard-grid,
.ops-two-column,
.ops-onboarding-stage {
  display: grid;
  gap: 16px;
}

.ops-dashboard-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  align-items: start;
}

.ops-main-column,
.ops-rail-column,
.ops-onboarding-main {
  display: grid;
  gap: 16px;
}

.ops-card {
  padding: 22px;
  border-radius: 28px;
}

.ops-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ops-card-head a {
  color: var(--ops-blue);
  font-weight: 850;
}

.ops-segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f0f4f8;
}

.ops-segmented button {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--ops-muted);
  font-weight: 850;
  background: transparent;
}

.ops-segmented button.active {
  color: var(--ops-ink);
  background: white;
  box-shadow: 0 8px 18px rgba(30, 45, 70, 0.08);
}

.ops-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background:
    repeating-linear-gradient(to top, rgba(23, 35, 51, 0.06), rgba(23, 35, 51, 0.06) 1px, transparent 1px, transparent 52px),
    linear-gradient(180deg, #fbfdff, #f2f7fd);
}

.ops-chart span {
  display: block;
  min-height: 8px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(40, 120, 240, 0.92), rgba(14, 139, 124, 0.42));
}

.ops-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--ops-muted);
  font-size: 0.9rem;
}

.ops-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
}

.ops-chart-legend .ai {
  background: var(--ops-blue);
}

.ops-chart-legend .web {
  background: var(--ops-teal);
}

.ops-step-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.ops-step-list.compact {
  margin-top: 0;
}

.ops-step-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 12px;
  width: 100%;
  padding: 13px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(23, 35, 51, 0.09);
  color: var(--ops-muted);
  background: #fff;
}

.ops-step-row span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--ops-muted);
  font-size: 0.74rem;
  font-weight: 900;
  background: #eef3f8;
}

.ops-step-row strong {
  color: var(--ops-ink);
}

.ops-step-row small {
  color: var(--ops-muted);
}

.ops-step-row.active {
  border-color: rgba(40, 120, 240, 0.22);
  background: #eef6ff;
}

.ops-step-row.active span {
  color: white;
  background: var(--ops-blue);
}

.ops-step-row.done {
  opacity: 0.82;
}

.ops-step-row.done span {
  color: white;
  background: var(--ops-green);
}

.ops-action-grid,
.ops-operations-grid,
.ops-template-grid,
.ops-channel-grid,
.ops-integration-grid {
  display: grid;
  gap: 12px;
}

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

.ops-action-card,
.ops-operations-grid article {
  display: grid;
  gap: 8px;
  padding: 17px;
  border-radius: 20px;
  border: 1px solid rgba(23, 35, 51, 0.08);
  background: #f8fbfe;
}

.ops-action-card strong,
.ops-operations-grid strong {
  color: var(--ops-ink);
}

.ops-action-card span,
.ops-operations-grid span {
  color: var(--ops-muted);
  line-height: 1.45;
}

.ops-activity-list,
.ops-customer-list,
.ops-plan-list {
  display: grid;
  gap: 10px;
}

.ops-activity-item,
.ops-customer-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbfe;
  border: 1px solid rgba(23, 35, 51, 0.07);
}

.ops-activity-item strong,
.ops-customer-row strong {
  display: block;
  color: var(--ops-ink);
}

.ops-activity-item small,
.ops-customer-row small {
  color: var(--ops-muted);
}

.ops-empty-small,
.ops-empty-state {
  padding: 18px;
  border-radius: 20px;
  color: var(--ops-muted);
  background: #f8fbfe;
  border: 1px dashed rgba(23, 35, 51, 0.14);
}

.ops-empty-small strong,
.ops-empty-state strong {
  display: block;
  color: var(--ops-ink);
}

.ops-onboarding-stage {
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
}

.ops-onboarding-steps {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 28px;
  background: var(--ops-panel-solid);
  border: 1px solid rgba(23, 35, 51, 0.09);
  box-shadow: var(--ops-soft-shadow);
}

.ops-chat-context {
  background:
    linear-gradient(135deg, #ffffff, #eef9f6),
    radial-gradient(circle at 90% 12%, rgba(14, 139, 124, 0.14), transparent 24%);
}

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

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

.ops-form label {
  display: grid;
  gap: 8px;
}

.ops-form label span {
  color: var(--ops-ink);
  font-weight: 850;
}

.ops-form input,
.ops-form select,
.ops-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid rgba(23, 35, 51, 0.14);
  color: var(--ops-ink);
  background: #fff;
  outline: none;
}

.ops-form textarea {
  min-height: 120px;
  resize: vertical;
}

.ops-hours-grid {
  display: grid;
  gap: 10px;
}

.ops-hours-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 140px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(23, 35, 51, 0.08);
  background: #f8fbfe;
}

.ops-hours-row input[type="time"] {
  width: 100%;
}

.ops-form input:focus,
.ops-form select:focus,
.ops-form textarea:focus {
  border-color: rgba(40, 120, 240, 0.34);
  box-shadow: 0 0 0 4px rgba(40, 120, 240, 0.09);
}

.ops-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.ops-template-card,
.ops-toggle-card,
.ops-integration-card,
.ops-plan-option {
  display: grid;
  gap: 8px;
  padding: 17px;
  border-radius: 20px;
  border: 1px solid rgba(23, 35, 51, 0.09);
  color: var(--ops-muted);
  background: #fff;
}

.ops-template-card.active,
.ops-toggle-card.active,
.ops-integration-card.active,
.ops-plan-option.active {
  border-color: rgba(40, 120, 240, 0.22);
  background: #eef6ff;
}

.ops-template-card span,
.ops-integration-card small {
  color: var(--ops-teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-template-card strong,
.ops-toggle-card strong,
.ops-integration-card strong,
.ops-plan-option strong {
  color: var(--ops-ink);
}

.ops-template-card p {
  margin: 0;
}

.ops-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  align-items: start;
}

.ops-two-column.wide-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
}

.ops-channel-grid,
.ops-integration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-toggle-card,
.ops-integration-card {
  position: relative;
  cursor: pointer;
}

.ops-toggle-card input,
.ops-integration-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ops-check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid rgba(23, 35, 51, 0.11);
  background: #fff;
}

.ops-check-field input {
  width: 18px;
  height: 18px;
}

.ops-snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.ops-snippet-box {
  margin: 12px 0 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  border-radius: 18px;
  color: #d8e8f8;
  background: #101b29;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.ops-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.ops-pill-list span {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ops-ink);
  font-weight: 800;
  background: #eef4f9;
}

.ops-agent-preview {
  text-align: center;
}

.ops-agent-face {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 4px auto 16px;
  border-radius: 38px;
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(145deg, var(--ops-blue), var(--ops-teal));
  box-shadow: 0 22px 48px rgba(40, 120, 240, 0.22);
}

.ops-agent-preview .secondary-button {
  margin-top: 16px;
}

.ops-plan-option {
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
}

.ops-plan-option span {
  color: var(--ops-muted);
  font-weight: 850;
}

@media (max-width: 1200px) {
  .dashboard-shell-minimal,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar,
  .dashboard-header,
  .ops-onboarding-steps {
    position: static;
  }

  .ops-dashboard-grid,
  .ops-two-column,
  .ops-two-column.wide-left,
  .ops-onboarding-stage {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 880px) {
  .ops-metric-grid,
  .ops-action-grid,
  .ops-template-grid,
  .ops-channel-grid,
  .ops-integration-grid,
  .ops-field-grid,
  .ops-hours-row,
  .ops-operations-grid {
    grid-template-columns: 1fr;
  }

  .ops-hero-card,
  .dashboard-header,
  .ops-card-head {
    flex-direction: column;
  }

  .ops-hero-plan {
    justify-items: start;
  }

  .ops-header-actions {
    justify-content: flex-start;
  }

  .ops-chart {
    height: 210px;
    gap: 6px;
    padding: 12px;
  }
}

@media (max-width: 620px) {
  .dashboard-shell-minimal,
  .dashboard-shell {
    width: min(100vw - 16px, 100%);
  }

  .ops-hero-card,
  .ops-card,
  .dashboard-header,
  .dashboard-sidebar,
  .ops-onboarding-steps {
    padding: 18px;
    border-radius: 22px;
  }

  .ops-header-copy h1,
  .ops-hero-card h2 {
    font-size: 1.75rem;
  }

  .ops-segmented {
    width: 100%;
  }

  .ops-segmented button {
    flex: 1;
  }
}

/* Cleaner customer-admin pass: compact, quieter, less explanatory. */
body.customer-body {
  --ops-bg: #f6f7fb;
  --ops-panel: #ffffff;
  --ops-panel-solid: #ffffff;
  --ops-ink: #121826;
  --ops-muted: #667085;
  --ops-line: #e5e7eb;
  --ops-blue: #1677c9;
  --ops-teal: #0f9f8f;
  --ops-violet: #6d28d9;
  --ops-shadow: none;
  --ops-soft-shadow: none;
  background: var(--ops-bg);
}

.customer-topbar {
  height: 56px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--ops-line);
  box-shadow: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: none;
}

.brand-copy span {
  display: none;
}

.topbar-actions {
  gap: 8px;
}

.dashboard-shell-minimal,
.dashboard-shell {
  width: 100%;
  max-width: none;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.dashboard-sidebar {
  min-height: calc(100vh - 56px);
  padding: 14px 12px;
  border: 0;
  border-right: 1px solid var(--ops-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-main {
  min-width: 0;
  gap: 0;
  padding: 0;
}

.dashboard-header {
  min-height: 64px;
  padding: 12px 24px;
  border: 0;
  border-bottom: 1px solid var(--ops-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#dashboardContent {
  gap: 14px;
  padding: 18px 24px 28px;
}

.ops-kicker,
.ops-nav-link small,
.ops-header-copy p,
.ops-hero-card p,
.ops-card p,
.ops-onboarding-steps p,
.ops-muted,
.ops-number-card small,
.ops-workspace-switcher small,
.ops-side-card p {
  font-size: 0.82rem;
}

.ops-kicker {
  color: var(--ops-muted);
  letter-spacing: 0.04em;
}

.ops-workspace-switcher {
  padding: 8px 10px;
  border-radius: 10px;
  border-color: var(--ops-line);
  background: #f9fafb;
}

.ops-avatar-mark,
.ops-user-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: none;
}

.ops-nav {
  gap: 2px;
}

.speako-nav {
  gap: 12px;
}

.ops-nav-group {
  gap: 3px;
}

.ops-nav-group > span {
  margin-top: 4px;
  padding: 0 10px 4px;
  color: #98a2b3;
  font-size: 0.67rem;
}

.ops-nav-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #475467;
}

.ops-nav-link small {
  display: none;
}

.ops-nav-link strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.ops-nav-link.active {
  border-color: transparent;
  color: var(--ops-violet);
  background: #f0e9ff;
}

.ops-nav-link.active strong {
  color: var(--ops-violet);
}

.ops-side-card,
.ops-number-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: none;
}

.ops-side-card strong {
  margin-top: 4px;
  font-size: 1.05rem;
}

.ops-progress {
  height: 6px;
  margin: 9px 0;
}

.ops-number-card {
  display: none;
}

.ops-header-copy h1 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.ops-header-copy .ops-kicker {
  display: none;
}

.ops-header-copy p {
  display: none;
}

.ops-header-actions {
  gap: 8px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: none;
}

.primary-button {
  background: var(--ops-violet);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.voice-guide:hover,
.text-button:hover {
  transform: none;
}

.ops-status-pill {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.ops-hero-card,
.ops-card,
.ops-metric-card {
  border-color: var(--ops-line);
  box-shadow: none;
}

.ops-hero-card {
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
}

.ops-hero-card h2 {
  margin-top: 2px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.ops-hero-plan strong {
  font-size: 1.8rem;
}

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

.ops-metric-card {
  min-height: 104px;
  padding: 14px;
  border-radius: 12px;
}

.ops-metric-card::after {
  display: none;
}

.ops-metric-card strong {
  margin-top: 10px;
  font-size: 2rem;
}

.ops-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.ops-card {
  padding: 16px;
  border-radius: 12px;
}

.ops-card-head {
  margin-bottom: 12px;
}

.ops-card h2,
.ops-agent-preview h2 {
  margin-top: 2px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.ops-key-list {
  display: grid;
  gap: 10px;
}

.ops-key-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ops-line);
}

.ops-key-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ops-key-list strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ops-text);
}

.ops-key-list span {
  font-size: 0.9rem;
  color: var(--ops-muted);
  text-align: right;
}

.ops-chart {
  height: 220px;
  padding: 12px;
  border-radius: 10px;
  gap: 8px;
}

.ops-segmented {
  border-radius: 8px;
}

.ops-segmented button {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.ops-action-grid,
.ops-channel-grid,
.ops-integration-grid,
.ops-template-grid {
  gap: 10px;
}

.ops-action-card,
.ops-operations-grid article,
.ops-template-card,
.ops-toggle-card,
.ops-integration-card,
.ops-plan-option {
  padding: 12px;
  border-radius: 10px;
}

.ops-action-card span,
.ops-operations-grid span,
.ops-toggle-card span,
.ops-integration-card span,
.ops-template-card p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.ops-step-row {
  grid-template-columns: 42px 1fr;
  min-height: 48px;
  padding: 9px;
  border-radius: 10px;
}

.ops-step-row span {
  width: 30px;
  height: 30px;
  font-size: 0.66rem;
}

.ops-step-row small {
  display: none;
}

.ops-form {
  gap: 12px;
}

.ops-field-grid {
  gap: 12px;
}

.ops-form label {
  gap: 6px;
}

.ops-form label span {
  font-size: 0.88rem;
}

.ops-form input,
.ops-form select,
.ops-form textarea {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.ops-form textarea {
  min-height: 92px;
}

.ops-hours-row {
  grid-template-columns: minmax(150px, 1fr) 120px 120px;
  padding: 9px;
  border-radius: 10px;
}

.ops-snippet-box {
  border-radius: 10px;
  font-size: 0.78rem;
}

.ops-agent-face {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  font-size: 2.1rem;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .dashboard-shell-minimal,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ops-line);
  }

  .speako-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .ops-nav-group {
    min-width: 180px;
  }
}

@media (max-width: 880px) {
  #dashboardContent {
    padding: 14px;
  }

  .dashboard-header {
    padding: 12px 14px;
  }

  .ops-metric-grid,
  .ops-dashboard-grid,
  .ops-field-grid,
  .ops-channel-grid,
  .ops-integration-grid,
  .ops-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Principal pass: make the customer admin feel like a real operating console. */
.customer-topbar {
  min-height: 56px;
}

.ops-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.ops-page-bar h2 {
  margin: 0;
  color: var(--ops-ink);
  font-family: "Sora", sans-serif;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
}

.ops-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-card-head h2 {
  margin: 0;
}

.ops-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ops-ink);
}

.ops-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  background: #fff;
}

.ops-data-table th,
.ops-data-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 35, 51, 0.08);
  white-space: nowrap;
}

.ops-data-table th {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f8fafc;
}

.ops-data-table tr:last-child td {
  border-bottom: 0;
}

.ops-data-table td {
  color: #475467;
  font-size: 0.9rem;
}

.ops-data-table td strong {
  color: var(--ops-ink);
}

.ops-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #475467;
  font-size: 0.76rem;
  font-weight: 800;
  background: #f2f4f7;
}

.ops-table-status.live {
  color: #027a48;
  background: #ecfdf3;
}

.ops-editor-block {
  display: grid;
  gap: 8px;
}

.ops-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-inline-head strong {
  color: var(--ops-ink);
}

.ops-inline-head span {
  color: #98a2b3;
  font-size: 0.82rem;
  font-weight: 750;
}

.ops-editor-table input,
.ops-editor-table select {
  width: 100%;
  min-width: 110px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ops-ink);
  background: transparent;
}

.ops-editor-table input:hover,
.ops-editor-table input:focus,
.ops-editor-table select:hover,
.ops-editor-table select:focus {
  border-color: rgba(114, 87, 214, 0.24);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(114, 87, 214, 0.08);
}

.ops-editor-table input[type="number"] {
  max-width: 110px;
}

.ops-center-cell {
  text-align: center !important;
}

.ops-mini-check {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px;
  accent-color: var(--ops-violet);
}

.ops-settings-row,
.ops-floor-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-floor-preview article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  background: #f8fafc;
}

.ops-floor-preview strong {
  color: var(--ops-ink);
}

.ops-floor-preview span {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 750;
}

.ops-quiet-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 24px;
  text-align: center;
  color: #667085;
  border: 1px dashed rgba(23, 35, 51, 0.16);
  border-radius: 10px;
  background: #fcfcfd;
}

.ops-quiet-empty strong {
  color: var(--ops-ink);
  font-size: 1rem;
}

.ops-quiet-empty span {
  max-width: 48ch;
  font-size: 0.9rem;
}

.ops-chart-card {
  min-height: 0;
}

.ops-chart {
  height: 190px;
  background:
    repeating-linear-gradient(to top, rgba(23, 35, 51, 0.06), rgba(23, 35, 51, 0.06) 1px, transparent 1px, transparent 47px),
    #fbfcff;
}

.ops-snippet-box {
  margin-top: 0;
}

@media (max-width: 880px) {
  .ops-page-bar,
  .ops-inline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-settings-row,
  .ops-floor-preview {
    grid-template-columns: 1fr;
  }
}

/* No floating top dashboard bar. Sidebar/content own the workspace now. */
.customer-body {
  background: #f6f7fb;
}

.dashboard-shell-minimal,
.dashboard-shell {
  min-height: 100vh;
}

.dashboard-sidebar {
  min-height: 100vh;
}

.ops-sidebar-actions {
  margin-top: 12px;
}

.ops-sidebar-actions .ghost-button {
  width: 100%;
}

/* Synthflow-inspired customer workspace skin (dashboard only). */
body.customer-body[data-page="dashboard"] {
  background: #f5f6fa;
}

body.customer-body[data-page="dashboard"] .panel {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
  backdrop-filter: none;
}

body.customer-body[data-page="dashboard"] .dashboard-shell-minimal {
  grid-template-columns: 310px minmax(0, 1fr);
}

body.customer-body[data-page="dashboard"] .ops-workspace-switcher {
  border: 1px solid #e2e8f0;
  background: #fafbff;
}

body.customer-body[data-page="dashboard"] .ops-avatar-mark {
  background: #eef2ff;
  color: #4f46e5;
}

body.customer-body[data-page="dashboard"] .ops-nav-link {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 12px;
}

body.customer-body[data-page="dashboard"] .ops-nav-link.active {
  background: #ede9fe;
  border-color: #ddd6fe;
}

body.customer-body[data-page="dashboard"] .ops-nav-link.active strong {
  color: #5b21b6;
}

body.customer-body[data-page="dashboard"] .primary-button {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.24);
}

body.customer-body[data-page="dashboard"] .secondary-button {
  border-color: #d8deea;
  background: #ffffff;
}

body.customer-body[data-page="dashboard"] .ops-header-actions {
  align-items: center;
  flex-wrap: wrap;
}

.ops-inline-search {
  min-width: 210px;
  height: 42px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #334155;
}

body.customer-body[data-page="dashboard"] .ops-status-pill {
  border-color: #dbe2f0;
  background: #f8fafc;
  color: #475569;
}

body.customer-body[data-page="dashboard"] .ops-card-head h2 {
  font-size: 1.25rem;
}

body.customer-body[data-page="dashboard"] .ops-action-card {
  border-color: #e2e8f0;
  background: #ffffff;
}

body.customer-body[data-page="dashboard"] .ops-action-card:hover {
  border-color: #c7d2fe;
  background: #f8faff;
}

body.customer-body[data-page="dashboard"] .ops-snippet-box {
  background: #0f172a;
  color: #e2e8f0;
}

/* Final anti-sticky cleanup for customer workspace too. */
.customer-topbar,
.dashboard-sidebar,
.dashboard-header,
.dashboard-helper,
.ops-onboarding-steps {
  position: static !important;
  top: auto !important;
}

/* Reference-shaped customer dashboard redesign: agents-first, modal creation flow, focused editor. */
body.customer-body[data-page="dashboard"] {
  background: #f3f5fa;
}

body.customer-body[data-page="dashboard"] .dashboard-shell,
body.customer-body[data-page="dashboard"] .dashboard-shell-minimal {
  width: 100%;
  min-height: 100vh;
  max-width: none;
  gap: 0;
  grid-template-columns: 320px minmax(0, 1fr);
  padding: 0;
}

body.customer-body[data-page="dashboard"] .dashboard-sidebar,
body.customer-body[data-page="dashboard"] .dashboard-header {
  border-radius: 0;
  box-shadow: none;
}

body.customer-body[data-page="dashboard"] .dashboard-sidebar {
  padding: 0;
  border: 0;
  border-right: 1px solid #e5e7eb;
  background: #f9fafc;
}

body.customer-body[data-page="dashboard"] .dashboard-main {
  gap: 0;
  min-width: 0;
}

body.customer-body[data-page="dashboard"] .dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

body.customer-body[data-page="dashboard"] .dashboard-header.is-hidden {
  display: none;
}

body.customer-body[data-page="dashboard"] #dashboardContent {
  padding: 24px 28px 32px;
}

body.customer-body[data-page="dashboard"] #dashboardMessage {
  margin: 0 28px;
}

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

.cp-icon-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-right: 1px solid #e7ebf2;
  background: #ffffff;
}

.cp-rail-brand,
.cp-rail-link,
.cp-icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #7184a3;
}

.cp-rail-brand svg,
.cp-rail-link svg,
.cp-icon-button svg,
.cp-nav-icon svg,
.cp-mode-icon svg,
.cp-settings-link-icon svg,
.cp-search-field svg,
.cp-empty-icon svg,
.cp-kb-empty-icon svg,
.cp-workspace-toggle svg,
.cp-settings-link-arrow svg,
.cp-template-avatar svg {
  width: 20px;
  height: 20px;
}

.cp-rail-brand {
  color: #69758c;
  margin-bottom: 10px;
}

.cp-rail-link.active {
  background: #efe8ff;
  color: #7c3aed;
}

.cp-rail-spacer {
  flex: 1;
}

.cp-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 16px;
}

.cp-workspace-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dde3ed;
  border-radius: 14px;
  background: #ffffff;
}

.cp-workspace-avatar,
.cp-agent-avatar,
.cp-template-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2f8;
  color: #42526b;
  font-weight: 700;
}

.cp-template-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  color: #6d28d9;
}

.cp-agent-avatar.lg,
.cp-template-avatar.lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.cp-workspace-card strong,
.cp-workspace-card span,
.cp-nav-link span,
.cp-header-copy h1,
.cp-panel h2,
.cp-page-head h1,
.cp-editor-title h1,
.cp-settings-rail-head h2,
.cp-modal-head h2,
.cp-template-description h3,
.cp-stack-row strong,
.cp-stack-row span,
.cp-table td,
.cp-table th,
.cp-table-empty strong,
.cp-table-empty p,
.cp-empty-panel strong,
.cp-empty-panel p,
.cp-kb-stage h1,
.cp-kb-stage p,
.cp-kb-integrations strong,
.cp-kb-integrations small,
.cp-toggle-card strong,
.cp-toggle-card span,
.cp-plan-card strong,
.cp-plan-card span,
.cp-mode-card strong,
.cp-mode-card p,
.cp-search-field input,
.cp-form-stack label span,
.cp-form-stack input,
.cp-form-stack select,
.cp-form-stack textarea,
.cp-chip,
.cp-badge,
.cp-toolbar-button,
.cp-test-button,
.cp-publish-button,
.cp-secondary-button,
.cp-primary-button,
.cp-filter-chip,
.cp-scenario-row span,
.cp-scenario-row strong,
.cp-settings-link span {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.cp-workspace-card strong,
.cp-header-copy h1,
.cp-page-head h1,
.cp-panel h2,
.cp-editor-title h1,
.cp-modal-head h2,
.cp-settings-rail-head h2 {
  color: #1f2937;
  letter-spacing: -0.03em;
}

.cp-workspace-card span,
.cp-header-copy p,
.cp-table td span,
.cp-empty-panel p,
.cp-kb-stage p,
.cp-kb-integrations small,
.cp-toggle-card span,
.cp-plan-card span,
.cp-mode-card p,
.cp-table-empty p,
.cp-subtle-empty,
.cp-flow-card-head span,
.cp-template-card p,
.cp-template-description p,
.cp-stack-row span,
.cp-editor-meta,
.cp-panel p,
.cp-form-stack label span,
.cp-scenario-row span {
  color: #6b7280;
}

.cp-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-nav-group-label {
  padding: 4px 12px 2px;
  font: 700 0.7rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cp-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #64748b;
  font-weight: 600;
}

.cp-nav-link.active {
  background: #ede9fe;
  color: #7c3aed;
}

.cp-nav-link.active .cp-nav-icon {
  color: #7c3aed;
}

.cp-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-sidebar-footer {
  margin-top: auto;
}

.cp-trial-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
}

.cp-trial-ring {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #d9def0;
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
}

.cp-header-copy h1,
.cp-page-head h1,
.cp-editor-title h1,
.cp-kb-stage h1 {
  margin: 0;
  font-size: 1.05rem;
}

.cp-header-copy p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.cp-header-actions,
.cp-page-actions,
.cp-toolbar-actions,
.cp-modal-actions,
.cp-form-actions,
.cp-page-head,
.cp-list-toolbar,
.cp-template-toolbar,
.cp-inline-head,
.cp-panel-head,
.cp-editor-copy-head,
.cp-field-grid,
.cp-hours-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-header-actions,
.cp-page-actions,
.cp-toolbar-actions,
.cp-modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cp-header-pill,
.cp-badge,
.cp-version-chip,
.cp-chip,
.cp-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe2eb;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
}

.cp-badge.violet,
.cp-version-chip {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #7c3aed;
}

.cp-badge.success {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}

.cp-badge.amber {
  border-color: #fde68a;
  background: #fff7d6;
  color: #b45309;
}

.cp-badge.neutral {
  background: #f8fafc;
}

.cp-search-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe2eb;
  border-radius: 12px;
  background: #ffffff;
}

.cp-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334155;
}

.cp-primary-button,
.cp-secondary-button,
.cp-toolbar-button,
.cp-test-button,
.cp-publish-button,
.cp-filter-chip,
.cp-scenario-row,
.cp-settings-link,
.cp-plan-card,
.cp-template-filter,
.cp-mode-card,
.cp-template-card,
.cp-toggle-card {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.cp-primary-button,
.cp-secondary-button,
.cp-toolbar-button,
.cp-test-button,
.cp-publish-button,
.cp-filter-chip,
.cp-back-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
}

.cp-primary-button,
.cp-test-button {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
}

.cp-primary-button,
.cp-secondary-button,
.cp-toolbar-button,
.cp-test-button,
.cp-publish-button,
.cp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cp-secondary-button,
.cp-toolbar-button,
.cp-filter-chip,
.cp-back-link {
  border-color: #dbe2eb;
}

.cp-publish-button {
  background: #f3f4f6;
  color: #9ca3af;
}

.cp-page-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.cp-panel,
.cp-metric-card,
.cp-settings-rail,
.cp-editor-toolbar,
.cp-modal {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.cp-panel,
.cp-settings-rail,
.cp-metric-card,
.cp-editor-toolbar {
  padding: 18px;
}

.cp-list-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.cp-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
}

.cp-table th,
.cp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

.cp-table th {
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.cp-table td {
  font-size: 0.93rem;
  color: #334155;
}

.cp-table tbody tr:last-child td {
  border-bottom: 0;
}

.cp-click-row {
  cursor: pointer;
}

.cp-click-row:hover {
  background: #faf7ff;
}

.cp-agent-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 18px;
  text-align: center;
}

.cp-editor-toolbar,
.cp-editor-stage,
.cp-two-column,
.cp-kb-grid,
.cp-card-grid,
.cp-metric-grid {
  display: grid;
  gap: 18px;
}

.cp-editor-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
}

.cp-editor-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-editor-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.95rem;
}

.cp-editor-stage,
.cp-two-column {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.cp-two-column.cp-two-column-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-editor-main,
.cp-flow-shell {
  min-width: 0;
}

.cp-settings-links,
.cp-stack-list,
.cp-form-stack,
.cp-mode-grid,
.cp-template-filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-settings-link {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.cp-settings-link.active,
.cp-settings-link:hover {
  background: #faf7ff;
  border-color: #ddd6fe;
}

.cp-mode-card-disabled {
  opacity: 0.7;
  border-style: dashed;
  background: #fafafa;
}

.cp-settings-link-icon,
.cp-settings-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.cp-inline-head,
.cp-panel-head,
.cp-editor-copy-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.cp-inline-head p,
.cp-editor-copy-head a,
.cp-panel-head p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.cp-inline-note {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
}

.cp-editor-copy-head {
  align-items: flex-end;
}

.cp-editor-copy-head a {
  color: #7c3aed;
  font-weight: 700;
}

.cp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-editor-textarea {
  width: 100%;
  min-height: 380px;
  resize: vertical;
  border: 1px solid #dbe2eb;
  border-radius: 16px;
  padding: 18px;
  font: 500 1rem/1.65 "Manrope", "Segoe UI", sans-serif;
  color: #0f172a;
}

.cp-flow-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 640px;
  padding: 24px;
  border-radius: 18px;
  background-image: radial-gradient(#dce3ef 1px, transparent 1px);
  background-size: 16px 16px;
}

.cp-flow-node {
  min-width: 210px;
  padding: 16px 20px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
}

.cp-flow-node.primary {
  background: #4b5563;
  color: #ffffff;
}

.cp-flow-node.secondary {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #475569;
}

.cp-flow-connector {
  width: 2px;
  height: 64px;
  background: #d8deea;
}

.cp-flow-card {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #c8f0d8;
  border-radius: 20px;
  background: #ecfdf3;
}

.cp-flow-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cp-kb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: calc(100vh - 190px);
  padding: 40px 18px;
  text-align: center;
}

.cp-kb-empty-icon,
.cp-empty-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2eb;
  border-radius: 22px;
  color: #94a3b8;
}

.cp-kb-integrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cp-kb-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-kb-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
}

.cp-kb-grid,
.cp-card-grid,
.cp-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-kb-card,
.cp-toggle-card,
.cp-plan-card,
.cp-mode-card,
.cp-template-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.cp-kb-card,
.cp-toggle-card,
.cp-plan-card,
.cp-mode-card {
  padding: 16px;
}

.cp-kb-card strong,
.cp-toggle-card strong,
.cp-plan-card strong,
.cp-mode-card strong,
.cp-template-card strong {
  color: #1f2937;
}

.cp-kb-card span,
.cp-plan-card span {
  font-size: 0.88rem;
}

.cp-toggle-card,
.cp-mode-card,
.cp-plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-toggle-card input,
.cp-mode-card input,
.cp-plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cp-toggle-card.active,
.cp-mode-card.selected,
.cp-plan-card.active,
.cp-template-filter.active {
  border-color: #d8b4fe;
  background: #faf5ff;
}

.cp-field-grid {
  width: 100%;
}

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

.cp-form-stack label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-form-stack input,
.cp-form-stack select,
.cp-form-stack textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe2eb;
  border-radius: 14px;
  padding: 11px 14px;
  background: #ffffff;
  color: #111827;
}

.cp-form-stack textarea {
  min-height: 120px;
  resize: vertical;
}

.cp-form-actions {
  justify-content: flex-start;
}

.cp-form-actions.wide {
  grid-column: 1 / -1;
}

.cp-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-hours-row {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.cp-hours-row input[type="time"] {
  width: 120px;
}

.cp-check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.cp-code-block {
  margin: 0;
  overflow-x: auto;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px;
  font: 500 0.85rem/1.6 "IBM Plex Mono", monospace;
}

.cp-stack-list {
  gap: 10px;
}

.cp-stack-row,
.cp-scenario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.cp-scenario-row {
  width: 100%;
  text-align: left;
}

.cp-scenario-row.done {
  background: #f0fdf4;
}

.cp-metric-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 124px;
}

.cp-metric-card strong {
  font-size: 2rem;
  color: #111827;
}

.cp-metric-card.blue { border-top: 4px solid #3b82f6; }
.cp-metric-card.green { border-top: 4px solid #16a34a; }
.cp-metric-card.violet { border-top: 4px solid #7c3aed; }
.cp-metric-card.amber { border-top: 4px solid #d97706; }

.cp-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
}

.cp-modal {
  width: min(100%, 760px);
  max-height: min(86vh, 900px);
  overflow: auto;
}

.cp-modal-medium {
  width: min(100%, 680px);
}

.cp-modal-wide {
  width: min(100%, 1180px);
}

.cp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f7;
}

.cp-modal-head.wide {
  padding-bottom: 14px;
}

.cp-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 10px;
}

.cp-mode-card {
  align-items: flex-start;
  text-align: left;
}

.cp-mode-icon,
.cp-settings-link-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f5f3ff;
  color: #7c3aed;
}

.cp-template-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 620px;
}

.cp-template-filters {
  padding: 18px 18px 20px;
  border-right: 1px solid #edf1f7;
}

.cp-template-filters h3 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 1rem;
}

.cp-template-filter {
  width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  text-align: left;
}

.cp-template-main {
  padding: 18px 20px 20px;
}

.cp-template-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.cp-segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.cp-segmented-control button {
  min-width: 98px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-weight: 700;
}

.cp-segmented-control button.active {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

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

.cp-template-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.cp-template-card:hover {
  border-color: #d8b4fe;
  background: #fcfbff;
}

.cp-template-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-template-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe2eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #64748b;
}

.cp-template-detail-head,
.cp-template-description {
  padding: 0 20px 18px;
}

.cp-template-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
}

.cp-back-link {
  justify-content: flex-start;
  padding-left: 0;
  border: 0;
  background: transparent;
}

.cp-empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  gap: 14px;
  text-align: center;
}

.cp-subtle-empty {
  padding: 20px 0 2px;
  font-size: 0.95rem;
}

@media (max-width: 1300px) {
  body.customer-body[data-page="dashboard"] .dashboard-shell,
  body.customer-body[data-page="dashboard"] .dashboard-shell-minimal {
    grid-template-columns: 1fr;
  }

  .cp-sidebar-shell {
    min-height: auto;
  }

  .cp-icon-rail {
    display: none;
  }

  .cp-template-layout,
  .cp-editor-stage,
  .cp-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.customer-body[data-page="dashboard"] .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.customer-body[data-page="dashboard"] #dashboardContent,
  body.customer-body[data-page="dashboard"] #dashboardMessage {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .cp-template-grid,
  .cp-kb-grid,
  .cp-card-grid,
  .cp-metric-grid,
  .cp-mode-grid,
  .cp-field-grid.two,
  .cp-editor-toolbar {
    grid-template-columns: 1fr;
  }

  .cp-editor-toolbar {
    display: grid;
  }
}

@media (max-width: 720px) {
  .cp-sidebar-panel {
    padding: 16px 12px;
  }

  .cp-nav-link {
    min-height: 40px;
  }

  .cp-search-field {
    min-width: 0;
    width: 100%;
  }

  .cp-template-toolbar,
  .cp-page-head,
  .cp-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-modal-backdrop {
    padding: 12px;
  }

  .cp-modal-head,
  .cp-modal-actions,
  .cp-template-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
}
