:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1efff;
  --text: #1c1340;
  --muted: #716b84;
  --line: #e7e3f2;
  --brand: #4324e3;
  --brand-dark: #3018b2;
  --brand-soft: #9a5af1;
  --accent: #9a5af1;
  --danger: #bd3c35;
  --shadow: 0 12px 30px rgba(28, 19, 64, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(154, 90, 241, 0.09), transparent 32vw),
    var(--bg);
  color: var(--text);
}

body::selection {
  background: rgba(67, 36, 227, 0.18);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(67, 36, 227, 0.11), transparent 42%),
    linear-gradient(300deg, rgba(154, 90, 241, 0.13), transparent 38%),
    var(--bg);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 23px;
}

.logo-image-only {
  width: 42px;
  height: 42px;
  display: block;
}

.sidebar-brand {
  margin-bottom: 4px;
  min-height: 42px;
}

.sidebar-brand img {
  width: 174px;
  height: auto;
  display: block;
}

.brand-mini {
  display: none !important;
  width: 42px !important;
}

.mobile-brand {
  width: 140px;
  height: auto;
  display: block;
}

.brand-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-subtitle,
.muted {
  color: var(--muted);
}

.brand-subtitle {
  margin: 4px 0 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field span {
  color: #332a55;
  font-weight: 650;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.password-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.password-wrap input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  flex: 0 0 auto;
  padding: 0 12px;
}

.emu-badge {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #fff3cd;
  color: #6b5200;
  border: 1px solid #e8d48a;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(67, 36, 227, 0.12);
}

.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(28, 19, 64, 0.05);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(189, 60, 53, 0.28);
}

.demo-users {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  transition: grid-template-columns 0.24s cubic-bezier(.2,.8,.2,1);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 82px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 8px 0 26px rgba(28, 19, 64, 0.035);
  animation: sidebarIn 0.28s cubic-bezier(.2,.8,.2,1) both;
  transition: width 0.24s cubic-bezier(.2,.8,.2,1), padding 0.24s cubic-bezier(.2,.8,.2,1), box-shadow 0.24s ease;
  overflow: visible;
}

.sidebar-toggle {
  position: absolute;
  top: 22px;
  right: -14px;
  z-index: 2;
  width: 30px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(28, 19, 64, 0.08);
  font-size: 22px;
}

@keyframes sidebarIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar .brand-subtitle {
  color: var(--muted);
}

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

.nav button {
  justify-content: flex-start;
  color: #5d5770;
  border-color: transparent;
  background: transparent;
  min-height: 44px;
}

.nav-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.nav-label,
.agency-card-select > div:last-child,
.sidebar-user > div,
.nav-section {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav button.active,
.nav button:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(67, 36, 227, 0.14);
}

.nav-section {
  margin: 16px 6px 6px;
  color: #9aa7a0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.agency-card-select {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  box-shadow: 0 6px 18px rgba(28, 19, 64, 0.035);
  min-height: 60px;
}

.agency-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1efff;
  color: var(--brand);
}

.agency-card-select span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agency-card-select select {
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 800;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-user span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.sidebar.collapsed {
  padding-left: 12px;
  padding-right: 12px;
}

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

.sidebar.collapsed .brand-full {
  display: none;
}

.sidebar.collapsed .brand-mini {
  display: block !important;
}

.sidebar.collapsed .agency-card-select {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 10px 8px;
}

.sidebar.collapsed .agency-card-select > div:last-child,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .sidebar-user > div {
  opacity: 0;
  transform: translateX(-6px);
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar.collapsed .nav button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
}

.sidebar.collapsed .sidebar-bottom .btn {
  font-size: 0;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-bottom .btn::before {
  content: "🚪";
  font-size: 16px;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 9;
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

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

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

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: 0;
}

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

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lead-command {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.lead-command > div {
  background: linear-gradient(135deg, #ffffff, #f7f4ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(28, 19, 64, 0.04);
}

.lead-command strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.lead-command p {
  margin: 7px 0 0;
  color: var(--muted);
}

.hero-search {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  box-shadow: 0 16px 38px rgba(28, 19, 64, 0.08);
}

.hero-search span {
  font-size: 24px;
}

.hero-search input {
  border: 0;
  box-shadow: none;
  font-size: 18px;
  padding: 0;
}

.hero-search input:focus {
  box-shadow: none;
}

.toolbar,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(28, 19, 64, 0.03);
}

.toolbar {
  padding: 14px;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #332a55;
  font-weight: 700;
  min-height: 36px;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 36, 227, 0.35);
}

.chip.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

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

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

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.mini-card,
.user-card,
.agency-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(28, 19, 64, 0.035);
}

.stat-card:hover,
.mini-card:hover,
.user-card:hover,
.agency-card:hover {
  border-color: rgba(67, 36, 227, 0.22);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(28, 19, 64, 0.035);
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8f7fc;
}

tr:hover td {
  background: #fbfbff;
}

.contact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  flex: 0 0 auto;
  font-size: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 750;
  background: var(--surface-2);
}

.lead-preview-trigger {
  cursor: help;
  border-radius: 8px;
  padding: 4px;
  margin: -4px;
}

.lead-preview-trigger:hover {
  background: #f6f4ff;
}

.lead-snippet {
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.lead-snippet span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.lead-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.lead-detail h3 {
  margin: 0;
  font-size: 22px;
}

.lead-hero {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.lead-hero .avatar {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

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

.quick-action {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 36, 227, 0.22);
}

.quick-action strong {
  font-size: 25px;
}

.quick-action.call {
  background: #f0fff7;
  color: #279764;
}

.quick-action.notes {
  background: #eef4ff;
  color: var(--brand);
}

.quick-action.link {
  background: #fff4e8;
  color: #c45f2d;
}

.quick-action.disabled {
  opacity: 0.55;
}

.detail-actions .btn {
  min-width: 42px;
}

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

.detail-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.detail-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.detail-tile strong {
  overflow-wrap: anywhere;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.detail-stack {
  display: grid;
  gap: 10px;
}

.lead-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(28, 19, 64, 0.16);
}

.lead-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 19;
  width: min(680px, 100vw);
  height: 100vh;
  overflow: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(28, 19, 64, 0.16);
  padding: 20px;
  animation: panelIn 0.22s cubic-bezier(.2,.8,.2,1) both;
}

.lead-panel-head {
  position: sticky;
  top: -20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 14px;
  margin-bottom: 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.lead-panel-head h2 {
  margin: 2px 0 0;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.conversation-card {
  display: grid;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.conversation-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.conversation-card > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble {
  width: fit-content;
  max-width: 86%;
  border-radius: 8px;
  padding: 9px 10px;
}

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

.chat-bubble p {
  margin: 0;
}

.chat-bubble.bot {
  background: #eaf7ef;
}

.chat-bubble.user {
  margin-left: auto;
  background: #f1f3f5;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

.kv span:first-child {
  color: var(--muted);
}

.mobile-cards {
  display: none;
  gap: 10px;
}

.lead-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.page-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.progress {
  height: 8px;
  background: #e8eee9;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.modal-backdrop,
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(18, 29, 23, 0.34);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(780px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.modal-head h2 {
  margin: 0;
}

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

.form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
}

.form-section h3 {
  margin: 0;
  font-size: 15px;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  background: #13241c;
  color: white;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.preview-card {
  position: fixed;
  z-index: 15;
  width: 330px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 19, 64, 0.12);
  padding: 14px;
  pointer-events: none;
  animation: previewIn 0.14s ease both;
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preview-card .lead-snippet {
  max-width: none;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
}

.section-title {
  font-size: 18px;
  margin: 24px 0 12px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .app-shell.sidebar-collapsed {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(300px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease;
    animation: none;
    box-shadow: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar.collapsed .brand-full {
    display: block;
  }

  .sidebar.collapsed .brand-mini {
    display: none !important;
  }

  .sidebar.collapsed .agency-card-select {
    grid-template-columns: 38px 1fr;
    justify-items: stretch;
    padding: 10px;
  }

  .sidebar.collapsed .agency-card-select > div:last-child,
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .nav-section,
  .sidebar.collapsed .sidebar-user > div {
    opacity: 1;
    transform: none;
    width: auto;
    height: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .sidebar.collapsed .nav button {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 18px 0 44px rgba(28, 19, 64, 0.18);
  }

  .mobile-topbar {
    display: flex;
  }

  .content {
    padding: 18px 14px 28px;
  }

  .page-head,
  .search-row,
  .lead-command,
  .lead-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-search {
    min-height: 58px;
  }

  .hero-search input {
    font-size: 16px;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-grid {
    grid-template-columns: 1fr;
  }

  .lead-panel {
    width: 100vw;
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    display: none;
  }

  .mobile-cards {
    display: grid;
  }

  .lead-snippet {
    min-width: 0;
    max-width: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}
