:root,
:root[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-accent: radial-gradient(circle at top left, rgba(112, 170, 255, 0.26), transparent 28%), radial-gradient(circle at bottom right, rgba(21, 34, 56, 0.08), transparent 22%);
  --panel: rgba(255, 255, 255, 0.84);
  --panel-solid: #ffffff;
  --panel-alt: #edf3ff;
  --text: #101114;
  --muted: #64748b;
  --line: rgba(16, 17, 20, 0.08);
  --line-strong: rgba(16, 17, 20, 0.14);
  --shadow: 0 24px 80px rgba(17, 19, 24, 0.08);
  --shadow-soft: 0 12px 32px rgba(17, 19, 24, 0.06);
  --accent: #111111;
  --accent-soft: #deebff;
  --accent-contrast: #ffffff;
  --sidebar-ink: rgba(255, 255, 255, 0.72);
  --success: #1a9c61;
  --warning: #d38a16;
  --danger: #dc4c43;
  --brand-start: #0f172a;
  --brand-mid: #173b7a;
  --brand-end: #3b82f6;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

:root[data-theme="dark"] {
  --bg: #090909;
  --bg-accent: radial-gradient(circle at top left, rgba(67, 127, 245, 0.22), transparent 22%), radial-gradient(circle at bottom right, rgba(116, 166, 255, 0.08), transparent 18%);
  --panel: rgba(18, 18, 18, 0.84);
  --panel-solid: #121212;
  --panel-alt: #111827;
  --text: #edf4ff;
  --muted: #9db0cc;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.32);
  --accent: #e8f0ff;
  --accent-soft: #10203f;
  --accent-contrast: #07111f;
  --sidebar-ink: rgba(255, 255, 255, 0.04);
  --success: #39c98c;
  --warning: #e0a03b;
  --danger: #ef6c63;
  --brand-start: #0f172a;
  --brand-mid: #14316a;
  --brand-end: #60a5fa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    var(--bg-accent),
    var(--bg);
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable Text", "Manrope", system-ui, sans-serif;
  transition: background 0.24s ease, color 0.24s ease;
}

body {
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-ink);
  backdrop-filter: blur(24px);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-mid) 54%, rgba(255, 255, 255, 0.22)) transparent;
}

.sidebar::-webkit-scrollbar,
.thread::-webkit-scrollbar,
.chat-sidebar::-webkit-scrollbar,
.chat-body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.sidebar::-webkit-scrollbar-track,
.thread::-webkit-scrollbar-track,
.chat-sidebar::-webkit-scrollbar-track,
.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.thread::-webkit-scrollbar-thumb,
.chat-sidebar::-webkit-scrollbar-thumb,
.chat-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-mid) 56%, rgba(255, 255, 255, 0.2));
  background-clip: content-box;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.thread::-webkit-scrollbar-thumb:hover,
.chat-sidebar::-webkit-scrollbar-thumb:hover,
.chat-body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--brand-end) 68%, rgba(255, 255, 255, 0.28));
  background-clip: content-box;
}

.sidebar::-webkit-scrollbar-corner,
.thread::-webkit-scrollbar-corner,
.chat-sidebar::-webkit-scrollbar-corner,
.chat-body::-webkit-scrollbar-corner {
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-mid) 58%, var(--brand-end) 100%);
  color: #fffdf9;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.nav-group {
  margin-top: 28px;
}

.nav-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateX(3px);
  border-color: transparent;
}

.nav-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-pair span:last-child,
.nav-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.nav-link.active .badge {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px);
}

.toolbar,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.ghost-btn,
.dark-btn,
.danger-btn,
.success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover,
.ghost-btn:hover,
.dark-btn:hover,
.danger-btn:hover,
.success-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.16);
}

.icon-btn {
  width: 48px;
  padding: 0;
  aspect-ratio: 1;
}

.dark-btn {
  border-color: #0b1220;
  background: linear-gradient(135deg, #05070c, #11203d);
  color: #fffdf9;
}

.success-btn {
  border-color: #15803d;
  background: #16a34a;
  color: #fff;
}

.danger-btn {
  border-color: #dc2626;
  background: #ef4444;
  color: #fff;
}

.page {
  padding: 4px 28px 28px;
}

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

.page-title {
  margin: 0;
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.cols-main {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
}

.cols-detail {
  grid-template-columns: minmax(0, 1.6fr) 320px;
}

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

.panel-pad {
  padding: 22px;
}

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

.panel-title {
  margin: 0;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

.stat-card {
  min-height: 124px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.32), rgba(255,255,255,0));
  pointer-events: none;
}

.dashboard-quick-panel {
  margin-bottom: 18px;
}

.dashboard-performance-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  align-items: start;
}

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

.dashboard-quick-card,
.dashboard-setup-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 92%, transparent), color-mix(in srgb, var(--panel-alt) 72%, transparent));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-quick-card:hover,
.dashboard-setup-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.dashboard-quick-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-quick-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-quick-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-quick-meta,
.dashboard-setup-copy,
.dashboard-setup-link {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.25;
  font-size: 12.5px;
}

.dashboard-setup-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-setup-link {
  color: #60a5fa;
  font-weight: 700;
}

.dashboard-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-chart-stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 76%, transparent));
}

.dashboard-chart-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.dashboard-chart-stat strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.dashboard-chart-wrap {
  padding: 2px 4px 0;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-chart-legend strong {
  font-size: 12px;
  color: var(--text);
}

.dashboard-chart-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.dashboard-chart-swatch-primary {
  background: #2563eb;
}

.dashboard-chart-swatch-secondary {
  background: #94a3b8;
}

.dashboard-chart-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.dashboard-chart-tooltip p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-chart-tooltip-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-chart-tooltip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-chart-tooltip-row + .dashboard-chart-tooltip-row {
  margin-top: 6px;
}

.dashboard-chart-tooltip-row span:last-child {
  color: var(--text);
  font-weight: 800;
}

.dashboard-chart-tooltip-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dashboard-priority-rail {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.dashboard-main {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  align-items: start;
}

.dashboard-side,
.dashboard-bottom {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-bottom {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.dashboard-inbox {
  min-height: 100%;
}

.dashboard-chat-list,
.dashboard-message-feed,
.dashboard-source-list,
.dashboard-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-chat-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 72%, transparent));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-chat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.dashboard-chat-top,
.dashboard-chat-foot,
.dashboard-message-head,
.dashboard-source-row,
.dashboard-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-chat-body {
  margin: 12px 0;
}

.dashboard-chat-heading {
  min-width: 0;
}

.dashboard-chat-subject {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dashboard-chat-preview,
.dashboard-message-copy {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-chat-foot {
  align-items: flex-end;
}

.dashboard-kpi-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
}

.dashboard-kpi-row span {
  color: var(--muted);
}

.dashboard-kpi-row strong,
.dashboard-source-row span {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-dark-card {
  background: linear-gradient(180deg, #0b1220, #13284e 82%);
  color: #eef5ff;
  border-color: rgba(255,255,255,0.08);
}

.dashboard-dark-card .panel-title,
.dashboard-dark-card strong,
.dashboard-dark-card .dashboard-source-row span {
  color: #fff;
}

.dashboard-dark-muted {
  color: rgba(255,255,255,0.7);
}

.dashboard-source-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-dark-empty {
  color: rgba(255,255,255,0.74);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.dashboard-message-row {
  display: block;
}

.dashboard-message-card {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  box-shadow: var(--shadow-soft);
}

.dashboard-message-head span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-empty-state {
  padding: 26px;
  border-radius: 22px;
  border: 1px dashed var(--line);
  background: var(--panel-alt);
}

.theme-toggle {
  min-width: 88px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 20px;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
}

.stat-foot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-alt);
  font-size: 13px;
  font-weight: 700;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

.chart {
  height: 320px;
  position: relative;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent),
    repeating-linear-gradient(
      to top,
      rgba(15, 23, 42, 0.04),
      rgba(15, 23, 42, 0.04) 1px,
      transparent 1px,
      transparent 52px
    );
}

.chart svg {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.chart-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.chart-dot-incoming {
  background: var(--text);
}

.chart-dot-resolved {
  background: var(--panel-alt);
  border: 1px solid var(--line);
}

.chart-breakdown {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.chart-day {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-alt);
}

.chart-day-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-day-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.chart-day-value + .chart-day-value {
  margin-top: 8px;
}

.chart-day-value strong {
  color: var(--text);
  font-size: 15px;
}

.table-wrap {
  overflow: auto;
}

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

.data-table th,
.data-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background 0.16s ease;
}

.data-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.subject {
  font-weight: 800;
}

.meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.status,
.priority,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-open,
.priority-high {
  background: #fff6d7;
  color: #855f00;
}

.status-progress {
  background: #e9f0ff;
  color: #224cb3;
}

.status-pending,
.priority-normal {
  background: #eef2f6;
  color: #475569;
}

.status-resolved {
  background: #dcfce7;
  color: #166534;
}

.status-closed {
  background: #e2e8f0;
  color: #334155;
}

.priority-urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-low {
  background: #f3f4f6;
  color: #6b7280;
}

.tag {
  background: #f5f7fa;
  color: #334155;
  padding: 6px 10px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-alt);
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 14px;
}

.avatar.soft {
  background: var(--accent-soft);
  color: var(--brand-mid);
  box-shadow: none;
}

.chat-shell {
  display: grid;
  grid-template-columns: 388px minmax(0, 1fr);
  height: calc(100vh - 150px);
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel-alt) 72%, transparent));
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 78%, transparent));
  font-size: 14px;
}

.chat-sidebar-head {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.chat-sidebar-head-compact .chat-sidebar-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chat-sidebar-copy h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.chat-sidebar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.chat-filter-select,
.chat-search {
  height: 44px;
  border-radius: 14px;
}

.chat-results-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 11px;
}

.tab.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
}

.tab.active span {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 6px 10px;
}

.chat-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.chat-card {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 92%, transparent), color-mix(in srgb, var(--panel-alt) 72%, transparent));
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

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

.chat-card-top,
.chat-card-foot,
.chat-thread-head,
.chat-thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-card-subject {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.chat-card-foot {
  margin-top: 12px;
}

.chat-card-action {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.chat-card-arrow {
  color: var(--muted);
  font-size: 16px;
}

.chat-card .meta,
.chat-card span {
  font-size: 12px;
}

.chat-card.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-start) 92%, #000), color-mix(in srgb, var(--brand-end) 32%, #101828));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
}

.chat-card.active .muted,
.chat-card.active .meta,
.chat-card.active .chat-card-arrow {
  color: rgba(255, 255, 255, 0.74);
}

.chat-thread-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 92%, transparent), color-mix(in srgb, var(--panel-alt) 62%, transparent));
}

.thread-wrap {
  flex: 1;
  min-height: 0;
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.1), transparent 22%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-alt) 46%, transparent), transparent 32%);
}

.thread {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.1), transparent 26%),
    color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.bubble-row {
  display: flex;
  margin-bottom: 12px;
}

.bubble-row.agent {
  justify-content: flex-end;
}

.bubble {
  display: inline-block;
  width: fit-content;
  max-width: min(100%, 620px);
  padding: 10px 12px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 13px;
}

.bubble-row.agent .bubble {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-start) 94%, #000), color-mix(in srgb, var(--brand-end) 30%, #101828));
  color: #fff;
  border-color: transparent;
}

.composer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel-alt) 70%, transparent));
}

.chat-main .person strong,
.chat-main .panel-pad strong {
  font-size: 15px;
}

.chat-main .meta {
  font-size: 13px;
}

.composer-actions {
  margin-bottom: 14px;
}

.composer .tag {
  font-size: 12px;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.composer textarea,
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel-solid);
  color: var(--text);
  outline: none;
  font-size: 13px;
}

.composer textarea {
  min-height: 84px;
  resize: vertical;
}

.composer-foot {
  margin-top: 14px;
}

.chat-main-empty {
  display: grid;
  place-items: center;
  padding: 18px;
}

.page-head-compact {
  margin-bottom: 14px;
}

.page-head-compact .page-title {
  font-size: 18px;
  font-weight: 700;
}

.page-head-compact .page-subtitle {
  margin-top: 6px;
  max-width: 640px;
}

:root[data-theme="light"] .chat-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(226, 236, 255, 0.78));
}

:root[data-theme="light"] .chat-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 255, 0.96));
}

:root[data-theme="light"] .tab.active {
  background: linear-gradient(135deg, #173b7a, #3b82f6);
  color: #ffffff;
}

:root[data-theme="light"] .tab.active span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

:root[data-theme="light"] .chat-card.active {
  background: linear-gradient(180deg, #eaf2ff, #dbe8ff);
  color: #0f172a;
  border-color: rgba(23, 59, 122, 0.14);
}

:root[data-theme="light"] .chat-card.active .muted,
:root[data-theme="light"] .chat-card.active .meta,
:root[data-theme="light"] .chat-card.active .chat-card-arrow {
  color: #5f7497;
}

:root[data-theme="light"] .thread {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .bubble-row.agent .bubble {
  background: linear-gradient(180deg, #173b7a, #2d5fb8);
  color: #ffffff;
}

:root[data-theme="light"] .dark-btn {
  border-color: #173b7a;
  background: linear-gradient(135deg, #173b7a, #3b82f6);
  color: #ffffff;
}

:root[data-theme="light"] .danger-btn {
  border-color: #f87171;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #ffffff;
}

@media (max-width: 1220px) {
  .dashboard-chart-summary,
  .dashboard-quick-grid,
  .dashboard-performance-grid,
  .dashboard-main,
  .dashboard-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .dashboard-chat-top,
  .dashboard-chat-foot,
  .dashboard-message-head,
  .dashboard-source-row,
  .dashboard-kpi-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-message-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.ticket-thread {
  padding: 22px;
}

.message-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 800;
}

.message-type {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 12px;
}

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

.chat-history-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-alt);
}

.chat-history-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.chat-history-thread {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 2px 2px;
}

.chat-history-empty {
  font-size: 13px;
}

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

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 14px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 7px;
  background: #0f1115;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.login-card {
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Signup — split layout (brand story left, form right), inspired by the
   reference the user shared. The brand panel deliberately commits to a
   single dark look regardless of the app's light/dark toggle, like a
   marketing panel would; the form panel stays theme-aware. */
.signup-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.signup-brand-panel {
  background: linear-gradient(160deg, #0b0d12 0%, #14161d 100%);
  color: #eef0f4;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.signup-brand-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.18), transparent 70%);
}
.signup-brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; color: #0b0d12; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.signup-brand-panel h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin: 0; max-width: 460px; }
.signup-brand-sub { font-size: 15px; color: #9aa0ab; line-height: 1.5; max-width: 420px; margin: 0; }
.signup-feature-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.signup-feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #d1d5db; line-height: 1.4; }
.signup-feature-icon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(167,139,250,0.16); color: #a78bfa;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.signup-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px; background: var(--bg);
}
.signup-form-card { width: min(100%, 400px); }
.signup-form-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; text-align: center; }
.signup-form-sub { color: var(--muted); font-size: 13.5px; text-align: center; margin: 0 0 26px; }
.signup-plan-badge {
  background: rgba(167,139,250,0.12); color: #a78bfa; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; text-align: center; margin: -12px 0 20px;
}
.signup-plan-badge a { color: inherit; text-decoration: underline; }
.signup-password-wrap { position: relative; }
.signup-password-wrap .input { padding-right: 76px; }
.signup-password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
  cursor: pointer; padding: 6px 8px;
}
.signup-password-toggle:hover { color: var(--text); }
.signup-submit { width: 100%; margin-top: 22px; padding: 13px; border-radius: 12px; font-size: 14.5px; }
.signup-login-link { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.signup-login-link a { font-weight: 700; color: var(--text); }
@media (max-width: 860px) {
  .signup-shell { grid-template-columns: 1fr; }
  .signup-brand-panel { display: none; }
}

.login-head {
  text-align: center;
  margin-bottom: 26px;
}

.login-head .brand-mark {
  margin: 0 auto 18px;
}

.login-head h1 {
  margin: 0;
  font-size: 40px;
}

.login-actions {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.helper-links {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .cards-4,
  .cols-main,
  .cols-detail,
  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .sidebar {
    display: none;
  }

  .page,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cards-4,
  .cols-main,
  .cols-detail,
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

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

/* ══════════════════════════════════════════════════════════════════════════
   Customer dashboard scale-down — the super admin panel (.sa-mock, below) is
   the source of truth for density: smaller type, tighter radii, tighter
   padding. These overrides bring the customer-facing shell in line with it
   instead of the original, much larger/rounder first pass.
   ══════════════════════════════════════════════════════════════════════════ */
.shell { grid-template-columns: 314px minmax(0, 1fr); }
.sidebar { padding: 20px 16px; }
.brand { font-size: 15px; gap: 10px; margin-bottom: 22px; }
.brand-mark, .avatar { border-radius: 9px; }
.brand-mark { width: 32px; height: 32px; font-size: 12px; }
.search { padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--panel-solid); color: var(--text); border-color: var(--line); }
.nav-group { margin-top: 22px; }
.nav-title { font-size: 10.5px; margin-bottom: 8px; }
.nav-link { padding: 9px 12px; margin-bottom: 2px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.nav-link:hover, .nav-link.active { color: var(--accent-contrast); }
.badge { min-width: 20px; padding: 3px 8px; font-size: 11px; }
.topbar { padding: 18px 28px; }
.icon-btn, .ghost-btn, .dark-btn, .danger-btn, .success-btn { padding: 9px 14px; border-radius: 10px; font-size: 13px; gap: 8px; }
.icon-btn { width: 40px; }
.page { padding: 4px 24px 24px; }
.page-head { margin-bottom: 18px; }
.page-title { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.panel { border-radius: 14px; border-color: var(--line); }
.panel-pad { padding: 20px; }
.panel-head { margin-bottom: 14px; }
.panel-title { font-size: 18px; }
.stat-card { min-height: 110px; }
.stat-top { margin-bottom: 16px; font-size: 13px; }
.stat-value { font-size: 24px; }
.stat-foot { padding: 5px 9px; font-size: 11px; }
.chart { border-radius: 14px; }
.login-card { border-radius: 18px; }
.composer textarea, .input, .select, .textarea { border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.chat-card { border-radius: 12px; }
.bubble { border-radius: 10px; padding: 8px 10px; font-size: 13px; }
h1, .h1 { font-size: 22px; }
h2, .h2 { font-size: 16px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 100;
}
.modal-card {
  width: min(100%, 620px); max-height: 90vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
/* Flow editor modals force dark styling, independent of the app's light/dark
   toggle — the flow editor screen behind them is always dark. */
.flow-json-card {
  background: #15181f; border-color: #2a2e38; color: #e7e9ee; width: min(100%, 720px);
}
.flow-json-card h2 { color: #fff; }
.flow-json-textarea {
  width: 100%; box-sizing: border-box; min-height: 360px; resize: vertical;
  background: #0b0d12; border: 1px solid #2a2e38; color: #e7e9ee;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.5;
  padding: 12px 14px; border-radius: 10px; outline: none;
}
.flow-json-error { color: #f56565; font-size: 12px; margin-top: 8px; min-height: 16px; }
.flow-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-template-card {
  text-align: left; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-alt); color: var(--text); font: inherit; cursor: pointer;
}
.flow-template-card strong { font-size: 13.5px; }
.flow-template-card span { font-size: 12px; color: var(--muted); }
.flow-template-card.selected { border-color: var(--text); background: var(--panel); box-shadow: 0 0 0 1px var(--text); }
@media (max-width: 640px) {
  .flow-template-grid { grid-template-columns: 1fr; }
}

/* Flow editor is a dedicated full-bleed screen — no app sidebar/topbar —
   dark regardless of the app's light/dark toggle, modeled on Typebot's
   editor: toolbar, block palette rail, canvas, right-side settings drawer. */
.flow-editor-shell { position: fixed; inset: 0; display: flex; flex-direction: column; background: #0b0d12; z-index: 50; }
.flow-editor-loading { color: #9aa0ab; padding: 40px; font-size: 14px; }

.flow-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 18px; border-bottom: 1px solid #22252d; background: #101318; flex: none;
}
.flow-toolbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flow-toolbar-back {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; color: #d1d5db; text-decoration: none; font-size: 15px;
}
.flow-toolbar-back:hover { background: #1c2028; }
.flow-toolbar-name { color: #fff; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.flow-toolbar-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #9aa0ab; background: #1c2028; border-radius: 999px; padding: 3px 9px; }
.flow-toolbar-status.published { color: #3ecf8e; background: rgba(62,207,142,0.12); }
.flow-toolbar-right { display: flex; align-items: center; gap: 8px; }
.flow-toolbar-msg { font-size: 12px; color: #9aa0ab; margin-right: 4px; }
.flow-toolbar-btn {
  border: 1px solid #2a2e38; background: #171a21; color: #e7e9ee; font-size: 12.5px; font-weight: 700;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
}
.flow-toolbar-btn:hover { background: #1e222b; }
.flow-toolbar-btn.active { border-color: #a78bfa; color: #a78bfa; }
.flow-toolbar-btn.primary { background: #fff; color: #0b0d12; border-color: #fff; }
.flow-toolbar-btn.primary:hover { background: #e5e7eb; }
.flow-toolbar-icon-btn { font-family: "JetBrains Mono", ui-monospace, monospace; padding: 7px 10px; }

.flow-editor-main { flex: 1; display: flex; min-height: 0; }

.flow-palette {
  width: 240px; flex: none; overflow-y: auto; padding: 14px 12px;
  background: #101318; border-right: 1px solid #22252d;
}
.flow-palette-group { margin-bottom: 18px; }
.flow-palette-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin: 0 0 8px 2px; }
.flow-palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.flow-palette-btn {
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  border: 1px solid #22252d; background: #171a21; color: #d1d5db; font-size: 11.5px; font-weight: 600;
  padding: 8px 9px; border-radius: 8px; cursor: pointer; text-align: left; line-height: 1.15;
}
.flow-palette-btn:hover { border-color: var(--flow-accent, #5b6472); background: #1a1e26; }
.flow-palette-btn.disabled { cursor: not-allowed; opacity: 0.5; position: relative; }
.flow-palette-btn.disabled:hover { border-color: #22252d; background: #171a21; }
.flow-palette-icon {
  flex: none; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: color-mix(in srgb, var(--flow-accent, #5b6472) 22%, #15181f);
  color: var(--flow-accent, #9aa0ab);
}
.flow-palette-btn.disabled .flow-palette-icon { background: #22252d; }
.flow-palette-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-palette-lock { position: absolute; top: 4px; right: 4px; font-size: 8px; opacity: 0.8; }

.flow-canvas-area { flex: 1; min-width: 0; overflow: auto; position: relative; }
.flow-canvas-empty { color: #6b7280; font-size: 13px; text-align: center; padding: 60px 20px; line-height: 1.6; }

/* Floating AI prompt bar — bottom-center of the canvas, matching the main
   prompt bar pattern on multigen.fdmultimedia.com.br rather than a side
   drawer: a rounded, elevated pill anchored to the bottom of the viewport. */
.flow-ai-bar-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: min(640px, calc(100vw - 40px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 60;
}
.flow-ai-chat {
  width: 100%; max-height: 40vh; overflow-y: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 2px;
}
.flow-ai-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35); white-space: pre-wrap; overflow-wrap: break-word;
}
.flow-ai-msg.user { align-self: flex-end; background: #fff; color: #0b0d12; border-bottom-right-radius: 5px; }
.flow-ai-msg.assistant { align-self: flex-start; background: #171a21; border: 1px solid #2a2e38; color: #e7e9ee; border-bottom-left-radius: 5px; }
.flow-ai-msg.loading { display: flex; align-items: center; padding: 12px 16px; }
.flow-ai-bar {
  position: relative; width: 100%; box-sizing: border-box;
  display: flex; align-items: flex-end; gap: 8px;
  background: #171a21; border: 1px solid #2a2e38; border-radius: 26px;
  padding: 10px 10px 10px 20px; box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.flow-ai-bar-input {
  flex: 1; resize: none; border: none; background: transparent; color: #e7e9ee;
  font: inherit; font-size: 14px; line-height: 1.4; max-height: 140px; padding: 6px 0; outline: none;
}
.flow-ai-bar-input::placeholder { color: #6b7280; }
.flow-ai-bar-send {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #fff; color: #0b0d12; font-size: 16px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.flow-ai-bar-send:disabled { opacity: 0.6; cursor: default; }
.flow-ai-bar-send:hover:not(:disabled) { background: #e5e7eb; }
.flow-ai-bar-close {
  position: absolute; top: -12px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #2a2e38; background: #171a21; color: #9aa0ab; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.flow-ai-bar-close:hover { background: #1e222b; color: #fff; }
.flow-ai-bar-spinner {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(11,13,18,0.25); border-top-color: #0b0d12;
  animation: flow-ai-spin 0.7s linear infinite;
}
.flow-ai-bar-spinner.dark { border-color: rgba(231,233,238,0.25); border-top-color: #e7e9ee; }
@keyframes flow-ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .flow-ai-bar-spinner { animation: none; }
}
.flow-canvas-wrap {
  min-width: 100%; min-height: 100%; width: fit-content;
  background-color: #0b0d12;
  background-image: radial-gradient(circle, #262b35 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.flow-canvas { position: relative; }

.flow-drawer {
  width: 320px; flex: none; overflow-y: auto; padding: 16px;
  background: #101318; border-left: 1px solid #22252d;
}
.flow-drawer .field label { color: #9aa0ab; }
.flow-drawer .input, .flow-drawer .select, .flow-drawer textarea {
  background: #171a21; border-color: #2a2e38; color: #e7e9ee;
}
.flow-drawer strong { color: #fff; }
.flow-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: #d1d5db; }
.flow-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.flow-toggle-track {
  flex: none; width: 34px; height: 20px; border-radius: 999px; background: #2a2e38;
  position: relative; transition: background 0.15s ease;
}
.flow-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #9aa0ab; transition: transform 0.15s ease, background 0.15s ease;
}
.flow-toggle input:checked + .flow-toggle-track { background: #a78bfa; }
.flow-toggle input:checked + .flow-toggle-track .flow-toggle-thumb { transform: translateX(14px); background: #fff; }
.flow-var-chip {
  border: 1px solid #2a2e38; background: #171a21; color: #a78bfa; font-size: 11px; font-weight: 700;
  font-family: "JetBrains Mono", ui-monospace, monospace; padding: 4px 8px; border-radius: 999px; cursor: pointer;
}
.flow-var-chip:hover { border-color: #a78bfa; background: #1a1e26; }
.flow-node {
  position: absolute; border: 1px solid #2a2e38; border-radius: 12px;
  background: #15181f; box-shadow: 0 4px 16px rgba(0,0,0,0.35); overflow: hidden; cursor: default;
}
.flow-node.selected { border-color: var(--flow-accent, #5b6472); box-shadow: 0 0 0 2px var(--flow-accent, #5b6472), 0 4px 16px rgba(0,0,0,0.35); }
.flow-node-head {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 8px 8px 10px; font-size: 12px; font-weight: 700; color: #e7e9ee;
  border-bottom: 1px solid #22252d; cursor: grab; user-select: none;
}
.flow-node-head:active { cursor: grabbing; }
.flow-node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flow-accent, #5b6472); flex: none; }
.flow-node-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-node-remove {
  border: none; background: transparent; color: #6b7280; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 2px 5px; border-radius: 6px; flex: none;
}
.flow-node-remove:hover { background: #f56565; color: #fff; }
.flow-node-body { padding: 10px; cursor: grab; user-select: none; display: flex; flex-direction: column; gap: 6px; }
.flow-node-body:active { cursor: grabbing; }
.flow-node-bubble {
  display: block; padding: 8px 10px; border-radius: 9px; font-size: 12px; line-height: 1.35;
  background: color-mix(in srgb, var(--flow-accent, #5b6472) 16%, #15181f);
  color: color-mix(in srgb, var(--flow-accent, #5b6472) 65%, #fff);
  overflow-wrap: break-word;
}
.flow-node-row {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 9px;
  font-size: 12px; line-height: 1.3; overflow-wrap: break-word;
}
.flow-node-row-bubble {
  background: color-mix(in srgb, var(--flow-accent, #5b6472) 16%, #15181f);
  color: color-mix(in srgb, var(--flow-accent, #5b6472) 65%, #fff);
}
.flow-node-row-input { background: #0f1218; border: 1px solid #2a2e38; }
.flow-node-row-input .placeholder { color: #6b7280; }
.flow-node-row-icon { flex: none; font-size: 11px; color: color-mix(in srgb, var(--flow-accent, #5b6472) 70%, #fff); }
.flow-node-row-icon.muted { color: var(--flow-accent, #6b7280); }
.flow-node-choices { display: flex; flex-direction: column; gap: 5px; }
.flow-node-choice {
  padding: 6px 9px; border-radius: 8px; font-size: 11.5px; text-align: center;
  background: #0f1218; border: 1px solid #2a2e38; color: #d1d5db;
}
@media (max-width: 900px) {
  .flow-palette { width: 170px; }
  .flow-drawer { width: 260px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Super admin (platform panel) — fully self-contained, scoped under .sa-mock
   so it never collides with the rest of the app's CSS. Tokens are local
   custom properties on .sa-mock, not :root, for the same reason.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-mock {
  --sbg: #f4f5f7; --ssurface: #ffffff; --ssurface2: #fafbfc; --sborder: #e6e8ec;
  --sink: #0f1115; --sinksoft: #4b505c; --smuted: #8a8f9a;
  --saccent: #0f172a; --saccentsoft: #e9eefc; --saccentline: #c7d2fe;
  --sgood: #0f9d63; --sgoodsoft: #e3f7ee;
  --swarn: #b45309; --swarnsoft: #fef3e2;
  --sbad: #c0362c; --sbadsoft: #fdeceb;
  --sinfo: #2f5fd6;
  --sshadow: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px -12px rgba(15,17,21,.08);
  --sradius: 14px;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--sink);
  background: var(--sbg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .sa-mock {
    --sbg: #0b0d12; --ssurface: #12151b; --ssurface2: #161a22; --sborder: #232833;
    --sink: #eef0f4; --sinksoft: #b6bbc6; --smuted: #767c8a;
    --saccent: #e8ecf7; --saccentsoft: #1b2338; --saccentline: #333f5e;
    --sgood: #37c98a; --sgoodsoft: #0f2a20;
    --swarn: #e2a13d; --swarnsoft: #2e2312;
    --sbad: #f0665c; --sbadsoft: #301715;
    --sinfo: #7ea2ff;
    --sshadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.5);
  }
}

.sa-mock * { box-sizing: border-box; }
.sa-mock .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.sa-shell { display: flex; min-height: 100vh; }
.sa-sidebar {
  width: 250px; flex: none; background: var(--ssurface); border-right: 1px solid var(--sborder);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 22px;
}
.sa-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 0 2px; white-space: nowrap; }
.sa-brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--saccent); color: var(--sbg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none;
}
.sa-brand small { display: block; font-weight: 600; color: var(--smuted); font-size: 10.5px; letter-spacing: 0.03em; }

.sa-nav-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smuted); margin: 0 0 8px 6px; }
.sa-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--sinksoft); font-weight: 600; font-size: 13.5px; text-decoration: none; margin-bottom: 2px;
}
.sa-nav-link.active { background: var(--saccent); color: var(--sbg); }

.sa-main { flex: 1; min-width: 0; }
.sa-topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 18px 28px; border-bottom: 1px solid var(--sborder); background: var(--ssurface);
  position: sticky; top: 0; z-index: 5;
}
.sa-icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sborder); background: var(--ssurface2);
  color: var(--sink); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sa-content { padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 22px; }
.sa-title { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.sa-sub { font-size: 12.5px; color: var(--smuted); margin-top: 4px; }

.sa-mock .kpi-grid { display: grid; gap: 14px; }
.sa-mock .kpi {
  background: var(--ssurface); border: 1px solid var(--sborder); border-radius: var(--sradius);
  padding: 18px 18px 16px; box-shadow: var(--sshadow); display: flex; flex-direction: column; gap: 8px;
}
.sa-mock .kpi .label { font-size: 12px; font-weight: 700; color: var(--smuted); }
.sa-mock .kpi .value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sa-mock .kpi .hint { font-size: 12px; color: var(--smuted); }

.sa-mock .card {
  background: var(--ssurface); border: 1px solid var(--sborder); border-radius: var(--sradius);
  box-shadow: var(--sshadow); padding: 20px;
}
.sa-mock .card h2 { font-size: 14.5px; margin: 0 0 2px; letter-spacing: -0.01em; }
.sa-mock .card-sub { font-size: 12px; color: var(--smuted); margin: 0 0 16px; }
.sa-mock .grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.sa-mock .grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.sa-mock table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sa-mock thead th {
  text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--smuted); padding: 0 12px 10px; border-bottom: 1px solid var(--sborder);
}
.sa-mock tbody td { padding: 13px 12px; border-bottom: 1px solid var(--sborder); vertical-align: middle; }
.sa-mock tbody tr:last-child td { border-bottom: none; }
.sa-mock tbody tr:hover { background: var(--ssurface2); }
.sa-mock tbody tr.open-detail { cursor: pointer; }
.sa-mock .cust-name { font-weight: 700; }
.sa-mock .cust-meta { font-size: 11.5px; color: var(--smuted); margin-top: 2px; }

.sa-mock .chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.sa-mock .chip.plan-essencial { background: var(--ssurface2); color: var(--sinksoft); border: 1px solid var(--sborder); }
.sa-mock .chip.plan-profissional { background: var(--saccentsoft); color: var(--sinfo); }
.sa-mock .chip.plan-escala { background: var(--saccent); color: var(--sbg); }
.sa-mock .chip.good { background: var(--sgoodsoft); color: var(--sgood); }
.sa-mock .chip.warn { background: var(--swarnsoft); color: var(--swarn); }
.sa-mock .chip.bad { background: var(--sbadsoft); color: var(--sbad); }

.sa-mock .table-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.sa-mock .search-mini { border: 1px solid var(--sborder); background: var(--ssurface2); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; color: var(--smuted); width: 220px; }
.sa-mock .filter-pills { display: flex; gap: 6px; }
.sa-mock .filter-pills .pill { border: 1px solid var(--sborder); background: var(--ssurface); padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--sinksoft); }
.sa-mock .filter-pills .pill.active { background: var(--saccent); color: var(--sbg); border-color: var(--saccent); }

.sa-mock .note { font-size: 12px; color: var(--smuted); background: var(--ssurface2); border: 1px dashed var(--sborder); border-radius: 10px; padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; }
.sa-mock .note.warn { background: #fff6d7; border: 1px solid #f2d98a; color: #7a5a00; }
@media (prefers-color-scheme: dark) { .sa-mock .note.warn { background: #2e2312; border-color: #4a3a18; color: #e2a13d; } }

.sa-mock .stat-strip { display: flex; gap: 24px; flex-wrap: wrap; }
.sa-mock .stat-strip .stat { display: flex; flex-direction: column; gap: 4px; }
.sa-mock .stat-strip .stat .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--smuted); }
.sa-mock .stat-strip .stat .v { font-size: 20px; font-weight: 800; }

.sa-mock .usage-track { height: 8px; border-radius: 999px; background: var(--ssurface2); overflow: hidden; }
.sa-mock .usage-fill { height: 100%; border-radius: 999px; }

.sa-mock .rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sborder); cursor: pointer; }
.sa-mock .rank-row:last-child { border-bottom: none; }
.sa-mock .rank-row:hover { background: var(--ssurface2); }
.sa-mock .rank-row .rank-num { width: 20px; font-size: 12px; font-weight: 800; color: var(--smuted); flex: none; }
.sa-mock .rank-row .rank-name { flex: 1; font-weight: 700; font-size: 13px; }
.sa-mock .rank-bar-track { width: 140px; height: 6px; border-radius: 999px; background: var(--ssurface2); overflow: hidden; flex: none; }
.sa-mock .rank-bar-fill { height: 100%; border-radius: 999px; background: var(--saccent); }
.sa-mock .rank-val { width: 100px; text-align: right; font-size: 12.5px; font-weight: 700; flex: none; }
.sa-usage-day-card {
  background: var(--ssurface); border-color: var(--sborder); color: var(--sink);
  width: min(100%, 560px); border-radius: var(--sradius); box-shadow: var(--sshadow);
}
.sa-usage-day-card h2 { color: var(--sink); font-size: 16px; }
.sa-usage-day-card .rank-row { border-bottom: none; cursor: default; }
.sa-usage-day-card .rank-row[data-action] { cursor: pointer; }
.sa-usage-day-card .rank-row[data-action]:hover { background: var(--ssurface2); border-radius: 8px; }

.usage-dot-hit { cursor: pointer; }
.usage-tooltip {
  position: absolute; pointer-events: none; z-index: 30;
  background: #15181f; border: 1px solid #2a2e38; color: #e7e9ee;
  font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4); white-space: nowrap;
  opacity: 0; transform: translateY(2px); transition: opacity 0.06s ease, transform 0.06s ease;
}
.usage-tooltip.visible { opacity: 1; transform: translateY(0); }

.sa-mock .avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--saccentsoft); color: var(--sinfo); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin-right: 9px; flex: none; }
.sa-mock .person { display: flex; align-items: center; }
.sa-mock .status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.sa-mock .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sinksoft); text-decoration: none; margin-bottom: 2px; }
.sa-mock .back-link:hover { color: var(--sink); }

.sa-mock .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.sa-mock .field { display: flex; flex-direction: column; gap: 6px; }
.sa-mock .field label { font-size: 11.5px; font-weight: 800; color: var(--smuted); text-transform: uppercase; letter-spacing: 0.04em; }
.sa-mock .field input, .sa-mock .field select {
  border: 1px solid var(--sborder); background: var(--ssurface); color: var(--sink); border-radius: 9px;
  padding: 9px 12px; font-size: 13px; font-family: inherit;
}
.sa-mock .field input:focus, .sa-mock .field select:focus { outline: 2px solid var(--saccentline); outline-offset: 1px; }

.sa-mock .btn { border: none; border-radius: 9px; padding: 9px 16px; font-weight: 700; font-size: 12.5px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.sa-mock .btn-primary { background: var(--saccent); color: var(--sbg); }
.sa-mock .btn-ghost { background: var(--ssurface2); color: var(--sinksoft); border: 1px solid var(--sborder); }
.sa-mock .btn-warn { background: var(--swarnsoft); color: var(--swarn); border: 1px solid var(--swarn); }
.sa-mock .btn-danger { background: var(--sbadsoft); color: var(--sbad); border: 1px solid var(--sbad); }
.sa-mock .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sa-mock .action-row { display: flex; gap: 10px; flex-wrap: wrap; }

.sa-mock .danger-zone { border: 1px dashed var(--sbad); border-radius: 12px; padding: 14px 16px; margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.sa-mock .danger-zone-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sa-mock .danger-zone-row .title { font-size: 13px; font-weight: 700; }
.sa-mock .danger-zone-row .desc { font-size: 12px; color: var(--smuted); margin-top: 2px; }

.sa-mock .log-panel { background: var(--ssurface2); border: 1px solid var(--sborder); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; }
.sa-mock .log-msg { display: flex; gap: 10px; align-items: flex-start; }
.sa-mock .log-time { font-size: 10.5px; color: var(--smuted); width: 46px; flex: none; padding-top: 3px; }
.sa-mock .log-role { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; flex: none; width: 70px; text-align: center; height: fit-content; }
.sa-mock .log-role.visitor { background: var(--saccentsoft); color: var(--sinfo); }
.sa-mock .log-role.agent { background: var(--swarnsoft); color: var(--swarn); }
.sa-mock .log-role.system { background: var(--sborder); color: var(--smuted); }
.sa-mock .log-body { font-size: 12.5px; line-height: 1.5; flex: 1; }

.sa-mock .empty { font-size: 13px; color: var(--smuted); padding: 20px 0; text-align: center; }

.qa-pair-card {
  display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px;
  padding: 10px; border: 1px solid var(--sborder, var(--line)); border-radius: 10px;
  background: var(--ssurface2, var(--panel-alt));
}
.qa-pair-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
@media (max-width: 640px) { .qa-pair-fields { grid-template-columns: 1fr; } }

.wand-icon { display: inline-block; line-height: 1; }
.btn-spinner {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  opacity: 0.65; animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation-duration: 1.6s; } }

@media (max-width: 1180px) { .sa-mock .kpi-grid { grid-template-columns: repeat(3, 1fr) !important; } .sa-mock .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .sa-mock .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sa-mock .grid-2, .sa-mock .grid-6 { grid-template-columns: 1fr; }
  .sa-mock .form-grid { grid-template-columns: 1fr; }
  .sa-mock .sa-sidebar { display: none; }
}


/* ── Multichat AI marketing landing (chatbot.fdmultimedia.com.br) ──
   Deliberately commits to one dark look regardless of the app's theme
   toggle, matching the Multigen AI landing page's visual language. */
.mc-landing {
  --mc-bg: #0b1330;
  --mc-bg-raised: #141c40;
  --mc-ink: #16204a;
  --mc-border: rgba(255, 255, 255, 0.1);
  --mc-text: #f5f5f7;
  --mc-muted: rgba(245, 245, 247, 0.65);
  --mc-accent: #7c5cff;
  --mc-accent-soft: rgba(124, 92, 255, 0.14);
  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
}
.mc-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececf2;
}
.mc-nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mc-brand { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; color: #14151a; }
.mc-brand-mark { color: var(--mc-accent); font-size: 16px; }
.mc-nav-links { display: flex; gap: 28px; }
.mc-nav-links a { color: #5b6472; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.mc-nav-links a:hover { color: #14151a; }
.mc-nav-actions { display: flex; align-items: center; gap: 18px; }
.mc-nav-login { color: #14151a; text-decoration: none; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mc-nav-login:hover { text-decoration: underline; }
.mc-nav-cta {
  background: var(--mc-accent); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.mc-hero {
  width: 100%; padding: 96px 24px 72px;
  background: var(--mc-light-bg); color: var(--mc-light-text);
}
.mc-inner-hero {
  max-width: 900px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mc-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.mc-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--mc-light-text); border: 1px solid var(--mc-light-border);
  box-shadow: 0 2px 10px -4px rgba(20,21,26,0.15);
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
}
.mc-hero h1 {
  font-size: 52px; font-weight: 700; line-height: 1.14; margin: 0 0 20px;
  letter-spacing: -0.02em; text-wrap: balance; color: var(--mc-light-text);
}
.mc-hero-highlight { color: var(--mc-accent); }
.mc-hero-sub { font-size: 17px; color: var(--mc-light-muted); line-height: 1.55; max-width: 560px; margin: 0 0 32px; }
.mc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.mc-btn-primary {
  font-weight: 700; font-size: 14.5px; padding: 13px 22px; border-radius: 999px; text-decoration: none;
}
.mc-btn-secondary {
  background: transparent; font-weight: 700; font-size: 14.5px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 1px solid;
}
.mc-hero .mc-btn-primary { background: var(--mc-accent); color: #fff; }
.mc-hero .mc-btn-secondary { color: var(--mc-light-text); border-color: var(--mc-light-border); }
.mc-hero-checks { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.mc-hero-checks span { color: var(--mc-light-muted); font-size: 13.5px; font-weight: 500; }
.mc-hero-credit { color: var(--mc-light-muted); font-size: 13px; margin: 0; }
.mc-hero-credit a { color: var(--mc-light-text); font-weight: 700; text-decoration: none; }
.mc-hero-credit a:hover { text-decoration: underline; }
.mc-chip {
  font-size: 12.5px; font-weight: 600; color: var(--mc-muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--mc-border);
  padding: 7px 13px; border-radius: 999px;
}
.mc-chip-accent { color: var(--mc-accent); background: var(--mc-accent-soft); border-color: transparent; }

/* Everything below the hero switches to a clean light theme — matches the
   Multigen landing page's feature sections instead of staying dark throughout. */
.mc-landing {
  --mc-light-bg: #ffffff;
  --mc-light-text: #14151a;
  --mc-light-muted: #5b6472;
  --mc-light-border: #e7e7ee;
  --mc-light-raised: #f7f7fb;
}
.mc-eyebrow { color: var(--mc-accent); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 12px; }

/* Full-bleed section + boxed inner content — every light/dark section below
   the hero is full width so its background reaches the viewport edges; only
   .mc-inner is width-constrained. Getting these on the same element was the
   bug that made sections render as a narrow white box on wide screens. */
.mc-inner { max-width: 1240px; margin: 0 auto; width: 100%; box-sizing: border-box; }

.mc-features, .mc-how {
  width: 100%; padding: 72px 24px 24px; text-align: center;
  background: var(--mc-light-bg); color: var(--mc-light-text);
}
.mc-how { padding: 24px 24px 76px; }
.mc-features h2, .mc-how h2 { font-size: 36px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.mc-section-sub { color: var(--mc-light-muted); font-size: 16px; max-width: 560px; margin: 0 auto 0; line-height: 1.55; }

.mc-showcase {
  width: 100%; padding: 64px 24px;
  background: var(--mc-light-bg); color: var(--mc-light-text);
}
.mc-inner-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mc-showcase-reverse .mc-inner-showcase { direction: rtl; }
.mc-showcase-reverse .mc-inner-showcase > * { direction: ltr; }
.mc-showcase-eyebrow { color: var(--mc-accent); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; margin: 0 0 12px; }
.mc-showcase-text h3 { font-size: 30px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
.mc-showcase-text p { color: var(--mc-light-muted); font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.mc-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mc-checklist li { font-size: 15px; color: var(--mc-light-text); }
.mc-showcase-visual { display: flex; justify-content: center; }

.mc-mock-widget {
  width: 100%; max-width: 380px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--mc-light-border); box-shadow: 0 24px 60px -20px rgba(20, 21, 26, 0.28);
}
.mc-mock-widget-lg { max-width: 420px; }
.mc-mock-widget-lg .mc-mock-widget-body { min-height: 260px; }
.mc-mock-widget-header {
  background: var(--mc-ink); color: #fff; padding: 14px 16px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.mc-mock-widget-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.mc-mock-widget-body { background: var(--mc-light-raised); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mc-mock-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; max-width: 85%; }
.mc-mock-bubble-user { background: var(--mc-ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mc-mock-bubble-bot { background: #fff; color: #14151a; border: 1px solid var(--mc-light-border); align-self: flex-start; border-bottom-left-radius: 4px; }

.mc-mock-flow {
  width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center;
}
.mc-mock-flow-lg { max-width: 400px; }
.mc-mock-flow-step {
  width: 100%; background: var(--mc-light-raised); border: 1px solid var(--mc-light-border);
  border-radius: 12px; padding: 16px 18px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.mc-mock-flow-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mc-accent-soft); color: var(--mc-accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.mc-mock-flow-line { width: 1px; height: 20px; background: var(--mc-light-border); }
.mc-mock-flow-done {
  margin-top: 6px; background: var(--mc-accent-soft); color: var(--mc-accent);
  border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 700;
}

.mc-mock-branding {
  width: 100%; max-width: 360px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--mc-light-border); box-shadow: 0 24px 60px -20px rgba(20, 21, 26, 0.28);
}
.mc-mock-branding-lg { max-width: 400px; }
.mc-mock-branding-lg .mc-mock-branding-body { min-height: 140px; }
.mc-mock-branding-header {
  background: var(--mc-accent); color: #fff; padding: 16px 18px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.mc-mock-branding-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mc-mock-branding-body { background: var(--mc-light-raised); padding: 20px; }
.mc-mock-branding-badge { text-align: center; padding: 8px; font-size: 10.5px; color: var(--mc-light-muted); background: #fff; border-top: 1px solid var(--mc-light-border); }

.mc-steps { margin-top: 44px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.mc-step {
  background: var(--mc-light-raised); border: 1px solid var(--mc-light-border);
  border-radius: 16px; padding: 24px 22px;
}
.mc-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--mc-accent-soft);
  color: var(--mc-accent); font-weight: 800; font-size: 13px; margin-bottom: 14px;
}
.mc-step h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--mc-light-text); }
.mc-step p { color: var(--mc-light-muted); font-size: 14px; line-height: 1.5; margin: 0; }

.mc-cta {
  width: 100%; padding: 44px 24px 110px; text-align: center;
  background: var(--mc-light-bg); color: var(--mc-light-text);
}
.mc-cta .mc-inner { max-width: 640px; }
.mc-cta h2 { font-size: 32px; font-weight: 700; margin: 0 0 10px; }
.mc-cta p { color: var(--mc-light-muted); font-size: 16px; margin: 0 0 28px; }
.mc-cta .mc-btn-primary { background: var(--mc-ink); color: #fff; }

.mc-footer {
  border-top: 1px solid var(--mc-light-border);
  width: 100%; padding: 24px; background: var(--mc-light-bg);
  color: var(--mc-light-muted); font-size: 13px;
}
.mc-inner-footer { display: flex; align-items: center; justify-content: space-between; }
.mc-footer a { color: var(--mc-light-muted); }

/* ── 3-card showcase grid (Tidio-style "complete platform" section) ── */
.mc-grid3 {
  width: 100%; padding: 8px 24px 64px;
  background: var(--mc-light-bg); color: var(--mc-light-text);
}
.mc-inner-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mc-grid3-card { display: flex; flex-direction: column; }
.mc-grid3-visual {
  position: relative; border-radius: 18px; margin-bottom: 44px;
  height: 220px; overflow: hidden; background: var(--mc-light-raised);
}
.mc-grid3-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-grid3-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}
.mc-grid3-float {
  position: absolute; left: 16px; right: 16px; bottom: -28px; z-index: 1;
  background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 700;
  box-shadow: 0 14px 34px -12px rgba(20,21,26,0.35); display: flex; align-items: center; gap: 8px;
}
.mc-grid3-float .mc-mock-bubble { margin: 0; max-width: 100%; }
.mc-grid3-float .mc-mock-flow-step { border: none; padding: 0; background: none; }
.mc-grid3-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.mc-grid3-card p { color: var(--mc-light-muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 12px; }
.mc-grid3-link { color: var(--mc-accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.mc-grid3-link:hover { text-decoration: underline; }
.mc-grid3-float .mc-mock-branding-avatar { width: 20px; height: 20px; background: var(--mc-accent-soft); }

/* ── Comparison section (dark, "ordinary chatbots" vs Multichat AI) ── */
.mc-compare { width: 100%; background: var(--mc-bg); color: #fff; padding: 80px 24px; }
.mc-eyebrow-dark { text-align: center; }
.mc-compare-title { text-align: center; color: #fff; font-size: 36px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.mc-compare-sub { color: rgba(255,255,255,0.6) !important; text-align: center; }
.mc-compare-row {
  max-width: 1240px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.mc-compare-row-reverse { direction: rtl; }
.mc-compare-row-reverse > * { direction: ltr; }
.mc-compare-card {
  background: var(--mc-bg-raised); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  overflow: hidden;
}
.mc-compare-photo { width: 100%; height: 220px; object-fit: cover; display: block; }
.mc-compare-block {
  padding: 14px 22px; display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.mc-compare-block span { flex-shrink: 0; font-weight: 800; }
.mc-compare-bad { border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.mc-compare-bad span { color: rgba(255,255,255,0.4); }
.mc-compare-good span { color: var(--mc-accent); }
.mc-compare-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--mc-accent-soft);
  color: var(--mc-accent); font-weight: 800; font-size: 13px; margin-bottom: 14px;
}
.mc-compare-text h3 { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: #fff; text-wrap: balance; }
.mc-compare-text p { color: rgba(255,255,255,0.65); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.mc-compare-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mc-compare-chips li { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.mc-compare-chips li.mc-compare-chip-highlight {
  display: inline-block; background: #fff; color: var(--mc-ink); font-weight: 700;
  padding: 9px 16px; border-radius: 999px; width: fit-content;
}

/* ── Icon feature grid (6 real features, colorful icon badges) ── */
.mc-icongrid { width: 100%; padding: 64px 24px 80px; background: var(--mc-light-raised); color: var(--mc-light-text); text-align: center; }
.mc-icongrid h2 { font-size: 34px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.mc-icongrid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.mc-icongrid-card {
  background: #fff; border: 1px solid var(--mc-light-border); border-radius: 16px; padding: 26px 24px;
}
.mc-icongrid-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 16px; color: #fff;
}
.mc-icongrid-icon-a { background: #6366f1; }
.mc-icongrid-icon-b { background: #10b981; }
.mc-icongrid-icon-c { background: #f59e0b; }
.mc-icongrid-icon-d { background: var(--mc-accent); }
.mc-icongrid-icon-e { background: #ec4899; }
.mc-icongrid-icon-f { background: #0ea5e9; }
.mc-icongrid-card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.mc-icongrid-card p { color: var(--mc-light-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ── Pricing ── */
.mc-pricing { width: 100%; padding: 80px 24px; background: var(--mc-light-bg); color: var(--mc-light-text); text-align: center; }
.mc-pricing h2 { font-size: 34px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.mc-pricing-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.mc-pricing-segmented {
  display: inline-flex; gap: 2px; background: var(--mc-light-raised); border-radius: 999px; padding: 4px;
  margin: 28px 0 40px; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.mc-pricing-segment { padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--mc-light-muted); transition: background 0.15s, color 0.15s; }
.mc-pricing-toggle-checkbox:not(:checked) ~ .mc-pricing-segmented .mc-pricing-segment:first-child,
.mc-pricing-toggle-checkbox:checked ~ .mc-pricing-segmented .mc-pricing-segment:last-child {
  background: #fff; color: var(--mc-light-text); box-shadow: 0 2px 8px rgba(20, 21, 26, 0.08);
}
.mc-pricing-toggle-badge { background: var(--mc-accent-soft); color: var(--mc-accent); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.mc-pricing-annual-view { display: none; }
.mc-pricing-toggle-checkbox:checked ~ .mc-pricing-cards .mc-pricing-annual-view,
.mc-pricing-toggle-checkbox:checked ~ .mc-pricing-table-wrap .mc-pricing-annual-view { display: inline; }
.mc-pricing-toggle-checkbox:checked ~ .mc-pricing-cards .mc-pricing-monthly-view,
.mc-pricing-toggle-checkbox:checked ~ .mc-pricing-table-wrap .mc-pricing-monthly-view { display: none; }
.mc-pricing-monthly-view { display: inline; }
.mc-pricing-cta { text-align: center; }
.mc-pricing .mc-btn-primary { background: var(--mc-accent); color: #fff; }
.mc-pricing .mc-btn-secondary { color: var(--mc-light-text); border-color: var(--mc-light-border); }
.mc-pricing-footnote { color: var(--mc-light-muted); font-size: 13px; margin: 28px 0 0; }

.mc-pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.mc-pricing-card {
  background: #fff; border: 1px solid var(--mc-light-border); border-radius: 16px; padding: 26px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: relative;
}
.mc-pricing-card-highlight { border-color: var(--mc-accent); box-shadow: 0 20px 50px -28px rgba(124, 92, 255, 0.5); }
.mc-pricing-badge {
  position: absolute; top: -12px; right: 24px; background: var(--mc-accent); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.mc-pricing-card h3 { font-size: 16px; font-weight: 700; margin: 0; }
.mc-pricing-card .mc-pricing-tagline { color: var(--mc-light-muted); font-size: 13px; margin: 0 0 10px; }
.mc-pricing-card .mc-pricing-price { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; }
.mc-pricing-card .mc-pricing-period { font-size: 13px; font-weight: 500; color: var(--mc-light-muted); }
.mc-pricing-card .mc-pricing-cta { width: 100%; }
.mc-pricing-trial { font-size: 12px; color: var(--mc-light-muted); text-align: center; width: 100%; margin: 10px 0 0; }
.mc-pricing-includes-label { font-size: 12.5px; font-weight: 800; margin: 20px 0 10px; padding-top: 18px; border-top: 1px solid var(--mc-light-border); width: 100%; }
.mc-pricing-mini-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mc-pricing-mini-features li { font-size: 13px; color: var(--mc-light-text); padding-left: 20px; position: relative; }
.mc-pricing-mini-features li::before { content: "✓"; position: absolute; left: 0; color: var(--mc-accent); font-weight: 700; }
.mc-pricing-see-all {
  display: block; text-align: center; margin: 28px 0 0; font-size: 13.5px; font-weight: 700;
  color: var(--mc-accent); text-decoration: none;
}
.mc-pricing-see-all:hover { text-decoration: underline; }

.mc-pricing-table-wrap { margin-top: 44px; overflow-x: auto; text-align: left; }
.mc-pricing-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }
.mc-pricing-table th, .mc-pricing-table td { padding: 13px 16px; font-size: 13.5px; color: var(--mc-light-text); }
.mc-pricing-table thead th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mc-light-muted); border-bottom: 1px solid var(--mc-light-border); }
.mc-pricing-table thead th:not(:first-child) { text-align: center; }
.mc-pricing-table-feature-col { text-align: left !important; }
.mc-pricing-table tbody td:not(:first-child) { text-align: center; }
.mc-pricing-table tbody tr:not(.mc-pricing-table-group) { border-bottom: 1px solid var(--mc-light-border); }
.mc-pricing-table tbody tr:nth-child(even):not(.mc-pricing-table-group) { background: var(--mc-light-raised); }
.mc-pricing-table-group td { padding-top: 32px; padding-bottom: 10px; font-size: 16px; font-weight: 800; color: var(--mc-light-text); }
.mc-pc-check, .mc-pc-x {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}
.mc-pc-check { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.mc-pc-x { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ── FAQ ── */
.mc-faq { width: 100%; padding: 80px 24px; background: var(--mc-light-bg); color: var(--mc-light-text); }
.mc-inner-faq { max-width: 860px; }
.mc-faq-head { text-align: center; margin-bottom: 48px; }
.mc-faq-head .mc-eyebrow { text-align: center; }
.mc-faq-head h2 { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.mc-faq-list { display: flex; flex-direction: column; }
.mc-faq-item { padding: 24px 0; border-bottom: 1px solid var(--mc-light-border); }
.mc-faq-item:first-child { padding-top: 0; }
.mc-faq-item h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.mc-faq-item p { color: var(--mc-light-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.mc-faq-item code { background: var(--mc-light-raised); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

@media (max-width: 860px) {
  .mc-icongrid-grid { grid-template-columns: 1fr; }
  .mc-pricing-cards { grid-template-columns: 1fr; }
  .mc-nav-links { display: none; }
  .mc-hero { padding-top: 48px; }
  .mc-hero-sub { max-width: 100%; }
  .mc-hero h1 { font-size: 34px; }
  .mc-steps { grid-template-columns: 1fr; }
  .mc-inner-showcase { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .mc-inner-grid3 { grid-template-columns: 1fr; }
  .mc-compare-row { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
}

/* ── Email verification screen (post-signup code entry) ── */
.verify-email-card .page-subtitle { line-height: 1.5; }
.verify-code-boxes { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.verify-code-digit {
  width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 700;
  border-radius: 10px; border: 1px solid var(--accent-soft); background: var(--bg);
  color: var(--text); font-family: inherit;
}
.verify-code-digit:focus { outline: none; border-color: var(--accent); }
.verify-resend { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.verify-resend a { font-weight: 700; color: var(--text); }

/* ── Onboarding wizard (post-verification survey + mandatory site crawl) ── */
.ob-shell {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px 80px; background: var(--bg);
}
.ob-card { width: min(100%, 720px); }
.ob-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; margin-bottom: 32px; color: var(--muted); }
.ob-brand .brand-mark { width: 28px; height: 28px; font-size: 11px; }
.ob-question { margin-bottom: 36px; }
.ob-question h2 { font-size: 21px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.ob-question-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.ob-field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ob-grid { display: grid; gap: 10px; margin-top: 4px; }
.ob-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ob-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .ob-grid-2, .ob-grid-3 { grid-template-columns: 1fr; } }
.ob-option-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  border: 1px solid var(--accent-soft); border-radius: 12px; background: var(--bg);
  color: var(--text); padding: 14px 16px; cursor: pointer; font-family: inherit;
}
.ob-option-card:hover { border-color: var(--accent); }
.ob-option-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ob-option-icon { font-size: 16px; margin-bottom: 2px; }
.ob-option-title { font-size: 13.5px; font-weight: 700; }
.ob-option-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; font-weight: 400; }
.ob-option-checkbox { flex-direction: row; align-items: center; gap: 10px; }
.ob-checkbox {
  width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none;
}
.ob-option-checkbox.ob-option-selected .ob-checkbox { border-color: var(--accent); color: var(--accent); }
.ob-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ob-back { background: transparent; border: none; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.ob-back:hover { color: var(--text); }
.ob-progress { position: fixed; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--accent-soft); }
.ob-progress-fill { height: 100%; background: var(--accent); transition: width 0.25s ease; }

.ob-syncing { text-align: center; padding: 60px 20px; }
.ob-syncing-icon {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-size: 30px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.ob-syncing h2 { font-size: 19px; font-weight: 800; margin: 0 0 20px; }
.ob-syncing-bar { width: 200px; height: 4px; border-radius: 4px; background: var(--accent-soft); margin: 0 auto; overflow: hidden; }
.ob-syncing-bar-fill { width: 40%; height: 100%; background: var(--accent); animation: ob-sync-slide 1.2s ease-in-out infinite; }
@keyframes ob-sync-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) { .ob-syncing-bar-fill { animation-duration: 3s; } }

/* ── Install-widget stepper (branding page turned 2-step wizard) ── */
.branding-step-dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1px solid var(--muted); color: var(--muted);
}
.branding-step-active { border-color: var(--accent); color: var(--accent); }
.branding-step-done { border-color: var(--accent); background: var(--accent); color: #fff; }
.branding-step-line { width: 36px; height: 1px; background: var(--accent-soft); }
