:root {
  color-scheme: light;
  --ink: #1d2522;
  --muted: #65726c;
  --line: #dfe5df;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --teal: #0f8f80;
  --teal-dark: #09695e;
  --green-soft: #e7f5eb;
  --coral: #d95c47;
  --amber: #c48719;
  --blue: #356ac3;
  --violet: #7353ba;
  --shadow: 0 18px 45px rgba(30, 42, 35, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(15, 143, 128, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfbf7 0%, var(--paper) 42%, #eef4ef 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

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

.nav-list a {
  border-radius: 8px;
  color: var(--muted);
  padding: 11px 12px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.connection-card {
  margin-top: auto;
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.connection-card p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.connection-card div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.meta {
  background: var(--blue);
}

.dot.google {
  background: var(--coral);
}

.dot.data {
  background: var(--teal);
}

.workspace {
  width: min(1520px, 100%);
  padding: 26px;
}

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.product-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.topbar-actions,
.crm-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.select-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"] {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}

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

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.ghost-button {
  width: 100%;
  margin-top: 5px;
}

.icon-button {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
}

.compact {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.objective-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.objective {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
}

.objective.active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

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

.owner-summary,
.kpi-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.owner-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.owner-summary h2 {
  overflow-wrap: anywhere;
  max-width: 660px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.owner-summary p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.result-meter {
  flex: 0 0 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 12px solid #d7f0e7;
  border-top-color: var(--teal);
  border-right-color: var(--amber);
  border-radius: 50%;
}

.result-meter span {
  font-size: 36px;
  font-weight: 900;
}

.result-meter small {
  max-width: 82px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.kpi-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.kpi-card span,
.kpi-card small {
  color: var(--muted);
}

.kpi-card strong {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
}

.content-grid,
.ops-grid,
.saas-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  padding: 18px;
}

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

.switch {
  position: relative;
  width: 54px;
  height: 30px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd9d4;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--teal);
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.budget-control {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.budget-control label {
  color: var(--muted);
  font-weight: 800;
}

.budget-control div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

input[type="range"] {
  accent-color: var(--teal);
}

.channel-split {
  display: grid;
  gap: 10px;
}

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

.channel-row > div {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 9px;
  align-items: center;
}

.channel-row small {
  grid-column: 2;
  color: var(--muted);
}

.channel-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.channel-icon.meta {
  background: var(--blue);
}

.channel-icon.google {
  background: var(--coral);
}

.split-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ed;
}

.split-bar span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease;
}

.google-bar span {
  width: 54%;
  background: var(--coral);
}

.decision-note {
  margin: 18px 0 0;
  border-left: 4px solid var(--amber);
  padding-left: 12px;
  color: var(--muted);
}

.channel-table {
  display: grid;
  gap: 8px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px 70px;
  gap: 8px;
  align-items: center;
}

.table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcf9;
}

.table-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 150px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.chart-track {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #f3f6f1;
  padding: 12px;
}

.chart-track span {
  width: 24px;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
  transition: height 180ms ease;
}

.chart-track span + span {
  background: var(--coral);
}

.campaign-builder,
.crm-panel,
.plans-panel {
  margin-bottom: 14px;
}

.setup-score,
.current-plan {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--teal-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.setup-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ed;
  margin-bottom: 14px;
}

.setup-progress span {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 180ms ease;
}

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

.setup-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf9;
}

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

.setup-item strong,
.setup-item small {
  display: block;
}

.setup-item small {
  margin-top: 2px;
  color: var(--muted);
}

.setup-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 11px;
  font-weight: 900;
  white-space: nowrap;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-form input {
  color: var(--ink);
}

.usage-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.usage-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf9;
}

.usage-strip span,
.usage-strip strong {
  display: block;
}

.usage-strip span {
  color: var(--muted);
  font-size: 13px;
}

.usage-strip strong {
  margin-top: 6px;
  font-size: 22px;
}

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

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

.price-card.featured {
  border-color: rgba(15, 143, 128, 0.45);
  background: #f0faf5;
}

.price-card span {
  color: var(--teal-dark);
  font-weight: 900;
}

.price-card strong {
  font-size: 26px;
  line-height: 1.05;
}

.price-card p {
  min-height: 58px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.campaign-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcf9;
}

.campaign-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.campaign-card h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.campaign-card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  align-self: start;
  border-radius: 999px;
  background: #ecf3ff;
  color: var(--blue);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.campaign-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.campaign-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.landing-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf9;
}

.landing-card img {
  width: 72px;
  height: 72px;
}

.landing-card h3 {
  margin-bottom: 5px;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
}

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

.alert {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf9;
}

.alert::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.alert.critical::before {
  background: var(--coral);
}

.alert.good::before {
  background: var(--teal);
}

.alert strong,
.alert small {
  display: block;
}

.alert small {
  margin-top: 3px;
  color: var(--muted);
}

.lead-table {
  display: grid;
  gap: 8px;
}

.lead-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcf9;
}

.lead-row.header {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.lead-row small {
  display: block;
  color: var(--muted);
}

.stage {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.whatsapp-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #e8f7e9;
  color: #16703f;
  padding: 0 12px;
  font-weight: 900;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  transform: translateY(18px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 13px 15px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(29, 37, 34, 0.42);
  padding: 20px;
  z-index: 30;
}

.modal-backdrop.open {
  display: flex;
}

.launch-modal,
.auth-modal,
.landing-modal {
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  padding: 18px;
}

.auth-modal {
  width: min(460px, 100%);
}

.landing-modal {
  width: min(980px, 100%);
  padding: 0;
}

.public-landing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 560px;
}

.public-copy {
  display: grid;
  align-content: center;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(15, 143, 128, 0.13), transparent 48%),
    #f8fbf5;
}

.public-copy img {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
}

.public-copy h2 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.public-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.public-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.public-copy li {
  display: flex;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

.public-copy li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.capture-form {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
  background: white;
}

.capture-form h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.capture-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.close-landing {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.launch-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.launch-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.launch-steps .active {
  border-color: transparent;
  background: var(--ink);
  color: white;
}

.launch-summary,
.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

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

.launch-summary article,
.launch-card,
.publish-checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}

.launch-summary article {
  padding: 14px;
}

.launch-summary span,
.launch-summary strong {
  display: block;
}

.launch-summary span {
  color: var(--muted);
  font-size: 13px;
}

.launch-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.launch-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.launch-card div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
}

.launch-card small {
  color: var(--teal-dark);
  font-weight: 900;
}

.publish-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
}

.publish-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

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

.modal-copy {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.marketing-body {
  background: #fbfcf8;
}

.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marketing-nav nav a,
.hero-actions a,
.marketing-pricing a {
  text-decoration: none;
}

.marketing-nav nav a {
  color: var(--muted);
  font-weight: 800;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 34px;
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 32px 22px 70px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a,
.marketing-pricing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-product {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 143, 128, 0.12), transparent 45%),
    white;
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.hero-screen div {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  padding: 18px;
}

.hero-screen span {
  color: var(--muted);
}

.hero-screen strong {
  font-size: 38px;
}

.marketing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

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

.feature-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.marketing-pricing .price-card {
  box-shadow: var(--shadow);
}

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

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .connection-card {
    min-width: 220px;
    margin-left: auto;
  }

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

  .owner-summary {
    grid-column: 1 / -1;
  }

  .campaign-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    overflow-x: hidden;
  }

  .app-shell,
  .workspace,
  .sidebar,
  .summary-grid,
  .content-grid,
  .ops-grid,
  .panel,
  .owner-summary {
    min-width: 0;
    max-width: 100%;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
  }

  .brand span {
    white-space: nowrap;
  }

  .nav-list {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-list a {
    flex: 0 0 auto;
  }

  .connection-card {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .topbar-actions,
  .panel-header,
  .crm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions > *,
  .crm-actions > *,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .objective-strip {
    max-width: 100%;
  }

  .summary-grid,
  .content-grid,
  .ops-grid,
  .saas-grid,
  .pricing-grid,
  .usage-strip,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .owner-summary,
  .landing-card {
    grid-template-columns: 1fr;
  }

  .owner-summary {
    flex-direction: column;
    align-items: start;
  }

  .owner-summary > div:first-child {
    min-width: 0;
    width: 100%;
  }

  .result-meter {
    width: 132px;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1fr 54px 64px 54px;
  }

  .lead-row,
  .lead-row.header {
    grid-template-columns: 1fr;
  }

  .lead-row.header {
    display: none;
  }

  .modal-footer,
  .launch-summary,
  .launch-grid,
  .launch-steps,
  .public-landing {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-item {
    grid-template-columns: auto 1fr;
  }

  .setup-action {
    grid-column: 1 / -1;
  }

  .marketing-nav,
  .marketing-nav nav,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-product {
    min-width: 0;
  }

  .hero-screen {
    grid-template-columns: 1fr;
  }
}
