:root {
  color-scheme: light;
  --ink: #11181c;
  --muted: #66757e;
  --subtle: #87949b;
  --line: #dce4e8;
  --line-strong: #c7d2d8;
  --soft: #f4f7f8;
  --paper: #ffffff;
  --panel: rgba(255, 255, 255, 0.84);
  --night: #0f171b;
  --night-2: #172329;
  --brand: #126d73;
  --brand-2: #0a4b52;
  --accent: #e06b44;
  --gold: #d4a13d;
  --green: #2f8f69;
  --red: #ba4b3f;
  --shadow-sm: 0 8px 26px rgba(17, 24, 28, 0.08);
  --shadow: 0 22px 70px rgba(17, 24, 28, 0.13);
  --shadow-strong: 0 32px 90px rgba(17, 24, 28, 0.2);
  --radius: 8px;
  --radius-sm: 6px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef3f4;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -8%, rgba(18, 109, 115, 0.22), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(224, 107, 68, 0.18), transparent 28%),
    linear-gradient(180deg, #f7fafb 0%, #edf3f4 46%, #e9eff1 100%);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

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

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(150deg, #111b20, #0b1215 72%);
  color: #f7fbfc;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(214, 232, 234, 0.84)),
    #ffffff;
  color: var(--night);
  font-weight: 950;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.brand strong,
.brand span,
.ai-status strong,
.ai-status span {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand span,
.ai-status span {
  color: #aebfc6;
  font-size: 12px;
  line-height: 1.45;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #cbd8dc;
  text-align: left;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #dbe7ea;
  font-size: 11px;
  font-weight: 900;
}

.nav-item.active .nav-icon {
  background: #f7fbfc;
  color: var(--brand-2);
}

.ai-status {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.pulse {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #62d49c;
  box-shadow: 0 0 0 7px rgba(98, 212, 156, 0.14);
}

.main-panel {
  min-width: 0;
  padding-bottom: 28px;
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.auth-gate[hidden] {
  display: none;
}

.auth-card,
.setup-panel,
.insight-panel,
.module-card,
.automation-list,
.pipeline-board,
.dashboard-card,
.ops-card,
.schedule-card,
.assistant-card,
.assistant-dock,
.modal-panel {
  border: 1px solid rgba(207, 219, 224, 0.92);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.auth-card {
  width: min(480px, 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 20px;
}

.topbar h1 {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  color: #10171a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: #121a1e;
  font-size: 24px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.25;
}

.top-actions,
.step-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button,
.prompt-chip {
  border-radius: var(--radius-sm);
  font-weight: 850;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 40px;
  padding: 0 16px;
}

.primary-button {
  border: 1px solid var(--brand);
  background: linear-gradient(180deg, #168188, #0f6269);
  color: white;
  box-shadow: 0 10px 26px rgba(18, 109, 115, 0.24);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-2);
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.primary-button:hover,
.secondary-button:hover,
.small-button:hover,
.prompt-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.workspace {
  padding: 0 34px 26px;
}

.assistant-dock {
  margin: 0 34px 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.assistant-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 251, 0.86);
}

.assistant-dock-header h2 {
  font-size: 20px;
}

.prompt-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
}

.prompt-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-2);
  padding: 0 12px;
  font-size: 13px;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 14px 18px;
}

.chat-message {
  max-width: 760px;
  border-radius: var(--radius);
  padding: 12px 13px;
}

.chat-message span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
}

.chat-message p {
  margin-bottom: 0;
  line-height: 1.48;
}

.chat-message.user {
  justify-self: end;
  background: var(--night);
  color: #ffffff;
}

.chat-message.assistant {
  justify-self: start;
  border: 1px solid var(--line);
  background: #ffffff;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 18px 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 27, 0.48);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: var(--shadow-strong);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 251, 0.9);
}

.modal-header h2 {
  font-size: 22px;
}

.modal-form {
  padding: 20px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.config-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#configPreview {
  min-height: 260px;
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.progress-step {
  min-height: 8px;
  border-radius: 999px;
  background: #d5e0e4;
  overflow: hidden;
}

.progress-step.done,
.progress-step.current {
  background: linear-gradient(90deg, var(--brand), #25a1a8);
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}

.setup-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow);
}

.setup-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--gold));
}

.setup-panel p {
  color: var(--muted);
  line-height: 1.58;
}

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

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

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

label {
  color: #33444c;
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7dd;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  outline: none;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(18, 109, 115, 0.7);
  box-shadow: 0 0 0 4px rgba(18, 109, 115, 0.12);
}

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

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.choice-card {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.choice-card:hover,
.choice-card.active {
  border-color: rgba(18, 109, 115, 0.62);
  background: #f5fbfb;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.insight-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(18, 109, 115, 0.08), transparent),
    rgba(247, 250, 251, 0.92);
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ai-brief {
  display: grid;
  gap: 14px;
  padding: 16px;
  color: #34454c;
  line-height: 1.5;
}

.brief-block {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.brief-block strong {
  display: block;
  margin-bottom: 4px;
}

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

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 12px;
  color: var(--brand-2);
  font-weight: 850;
}

.module-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 14px;
}

.module-card,
.dashboard-card {
  padding: 18px;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
}

.module-card:hover,
.dashboard-card:hover,
.ops-card:hover,
.schedule-card:hover {
  border-color: rgba(18, 109, 115, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.module-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 109, 115, 0.16), rgba(224, 107, 68, 0.1)),
    #f7fbfc;
  color: var(--brand-2);
  font-weight: 950;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

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

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd8dc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(90deg, var(--brand), #23a0a7);
}

.switch input:checked + .slider::after {
  transform: translateX(20px);
}

.module-card p,
.dashboard-card p {
  color: var(--muted);
  line-height: 1.5;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(207, 219, 224, 0.82);
  border-radius: 999px;
  background: rgba(244, 247, 248, 0.9);
  padding: 6px 9px;
  color: #3a5058;
  font-size: 12px;
  font-weight: 850;
}

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

.pipeline-board,
.automation-list {
  padding: 16px;
}

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

.stage-item,
.automation-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.stage-row,
.automation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: #edf6f7;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.small-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 7px 9px;
  font-size: 12px;
}

.metric {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric strong {
  color: #0f171b;
  font-size: 30px;
  line-height: 1;
}

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

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.ops-list,
.schedule-board,
.ops-side {
  display: grid;
  gap: 12px;
}

.ops-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  padding: 16px;
}

.ops-card p,
.schedule-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.record-id {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.record-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  white-space: nowrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #edf6f7;
  color: #245159;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.schedule-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  min-height: 108px;
  padding: 16px;
}

.time-block {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--night), var(--night-2));
  color: #ffffff;
  font-weight: 950;
}

.assistant-card {
  padding: 16px;
}

.assistant-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.assistant-list span {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff7f3;
  padding: 9px 10px;
  color: #45565e;
  font-size: 14px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #b9c8cc;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .ai-status {
    margin-top: 0;
  }

  .onboarding-layout,
  .workflow-grid,
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .assistant-dock {
    margin-left: 16px;
    margin-right: 16px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .nav-list {
    grid-template-columns: 1fr;
  }

  .ops-card,
  .schedule-card {
    grid-template-columns: 1fr;
  }

  .ops-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-meta {
    justify-items: start;
  }

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

/* Premium onboarding layer */
.onboarding-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: stretch;
  margin: 18px 0;
  border: 1px solid rgba(15, 116, 121, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 116, 121, 0.1), transparent 46%),
    linear-gradient(180deg, #ffffff, #f7fbfb);
  padding: 18px;
}

.onboarding-hero-card h3 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.onboarding-hero-card p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 116, 121, 0.2);
  border-radius: 999px;
  background: #eef8f8;
  color: var(--brand-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 820;
}

.hero-metrics {
  display: grid;
  gap: 8px;
}

.hero-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 20px;
}

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

.choice-card small,
.business-type-card small,
.launch-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.choice-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #edf7f8;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}

.step-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 13px 14px;
}

.step-intro strong,
.step-intro span {
  display: block;
}

.step-intro strong {
  font-weight: 760;
}

.step-intro span {
  color: var(--muted);
}

.business-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.business-type-card {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  text-align: left;
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.business-type-card:hover,
.business-type-card.active {
  border-color: rgba(15, 116, 121, 0.48);
  background: #f5fbfb;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.business-type-card > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #edf7f8;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}

.business-type-card strong {
  display: block;
  font-weight: 780;
}

.launch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.launch-summary .choice-card {
  min-height: 132px;
}

.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  overflow: hidden;
}

.progress-step span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-left: 10px;
  color: rgba(17, 24, 28, 0.48);
  font-size: 11px;
  font-weight: 820;
}

.progress-step.done span,
.progress-step.current span {
  color: #ffffff;
}

.insight-panel .panel-heading strong {
  font-size: 14px;
}

.ai-brief {
  gap: 12px;
}

.brief-block {
  border-left: 0;
  border-radius: 8px;
  background: #f8fbfb;
  padding: 13px;
}

.brief-block strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .onboarding-hero-card,
  .premium-choice-grid,
  .launch-summary {
    grid-template-columns: 1fr;
  }

  .step-intro {
    flex-direction: column;
  }
}

/* Executive app redesign layer */
body {
  background:
    linear-gradient(90deg, rgba(12, 24, 29, 0.03), transparent 44%),
    linear-gradient(180deg, #fbfcfc 0%, #eef3f4 100%);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px;
  background: #0b1215;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    18px 0 60px rgba(11, 18, 21, 0.12);
}

.brand {
  gap: 10px;
  padding: 0 8px 18px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.brand strong {
  font-size: 15px;
}

.brand span {
  color: #91a5ad;
  font-size: 12px;
}

.nav-item {
  min-height: 40px;
  border-radius: 8px;
  color: #b7c7cd;
  font-size: 14px;
}

.nav-item.active {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(20, 132, 139, 0.22), rgba(255, 255, 255, 0.07));
}

.nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

.ai-status {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 132, 139, 0.16), transparent),
    rgba(255, 255, 255, 0.055);
}

.main-panel {
  gap: 20px;
  padding: 24px;
}

.topbar {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin-bottom: 10px;
}

.topbar-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #4a5e66;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 720;
}

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

.workspace {
  min-width: 0;
}

.onboarding-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.46fr);
  gap: 18px;
}

.setup-panel,
.insight-panel,
.assistant-dock {
  border-color: rgba(207, 219, 224, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(17, 24, 28, 0.08);
}

.setup-panel {
  padding: clamp(20px, 3vw, 34px);
}

.setup-panel > h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0;
}

.setup-panel::before {
  background: linear-gradient(90deg, #0f7479, #71d1c8, #e06b44);
}

.progress-strip {
  gap: 10px;
}

.progress-step {
  min-height: 28px;
  background: rgba(203, 216, 221, 0.58);
}

.progress-step.done,
.progress-step.current {
  background: linear-gradient(90deg, #0d7378, #28a0a7);
}

.onboarding-hero-card {
  margin-top: 20px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.business-type-card,
.choice-card,
.module-card,
.dashboard-card,
.ops-card,
.schedule-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.business-type-card.active,
.choice-card.active {
  background:
    linear-gradient(135deg, rgba(15, 116, 121, 0.08), transparent),
    #ffffff;
}

.field {
  gap: 8px;
}

input,
select,
textarea {
  min-height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

textarea {
  min-height: 126px;
}

.assistant-dock {
  overflow: hidden;
}

.assistant-dock-header {
  background:
    linear-gradient(135deg, rgba(15, 116, 121, 0.08), transparent),
    #ffffff;
}

.assistant-dock-header h2 {
  font-size: 24px;
}

.prompt-chip {
  background: #f8fbfb;
}

.chat-message.user {
  background: #0d171b;
}

.chat-message.assistant {
  background: #ffffff;
}

.insight-panel {
  overflow: hidden;
}

.panel-heading {
  background:
    linear-gradient(135deg, rgba(15, 116, 121, 0.08), transparent),
    #ffffff;
}

.brief-block {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 28, 0.04);
}

.empty-state {
  background: #ffffff;
}

@media (max-width: 1320px) {
  .main-panel {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

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

/* Onboarding fix pass */
.setup-overview {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  border: 1px solid rgba(15, 116, 121, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 116, 121, 0.08), transparent 48%),
    #ffffff;
  padding: 18px;
}

.setup-overview-main h3 {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.setup-overview-main p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.setup-overview-grid div {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 13px;
}

.setup-overview-grid strong,
.setup-overview-grid span {
  display: block;
}

.setup-overview-grid strong {
  margin-bottom: 6px;
  font-weight: 780;
}

.setup-overview-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.setup-mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.setup-mode-grid .choice-card {
  min-height: 118px;
}

.setup-panel > h2 {
  max-width: 760px;
}

@media (max-width: 760px) {
  .setup-overview-grid,
  .setup-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Product redesign layer */
:root {
  --ink: #11181c;
  --muted: #63717a;
  --line: #d8e0e4;
  --panel: rgba(255, 255, 255, 0.92);
  --brand: #0f7479;
  --brand-2: #0a5157;
  --shadow-sm: 0 10px 28px rgba(17, 24, 28, 0.06);
  --shadow: 0 18px 54px rgba(17, 24, 28, 0.1);
  font-family:
    Inter, "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 116, 121, 0.08), transparent 38%),
    linear-gradient(180deg, #f8fafb 0%, #eef4f5 100%);
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  gap: 20px;
  padding: 20px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    #0d171b;
}

.brand {
  padding: 0 6px 18px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-weight: 850;
}

.brand strong {
  font-size: 16px;
  font-weight: 780;
}

.nav-list {
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  padding: 0 10px;
  color: #c5d2d6;
  font-weight: 650;
}

.nav-icon {
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 780;
}

.ai-status {
  padding: 13px;
}

.ai-status strong {
  font-weight: 760;
}

.main-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-areas:
    "topbar topbar"
    "workspace assistant";
  gap: 18px 20px;
  padding: 26px clamp(18px, 3vw, 34px) 28px;
}

.topbar {
  grid-area: topbar;
  padding: 0;
}

.workspace {
  grid-area: workspace;
  padding: 0;
  min-width: 0;
}

.assistant-dock {
  grid-area: assistant;
  position: sticky;
  top: 24px;
  align-self: start;
  margin: 0;
  max-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
}

.assistant-dock-header {
  padding: 15px 16px;
}

.chat-log {
  max-height: none;
  flex: 1;
}

.topbar h1,
h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  font-weight: 740;
}

h3 {
  font-weight: 740;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 38px;
  font-weight: 720;
}

.primary-button {
  background: linear-gradient(180deg, #0f858b, #0b666c);
}

.progress-strip {
  margin-bottom: 14px;
}

.progress-step {
  min-height: 7px;
}

.onboarding-layout {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 16px;
}

.setup-panel {
  padding: 26px;
}

.setup-panel::before {
  height: 3px;
}

.insight-panel {
  top: 24px;
}

.auth-card,
.setup-panel,
.insight-panel,
.module-card,
.automation-list,
.pipeline-board,
.dashboard-card,
.ops-card,
.schedule-card,
.assistant-card,
.assistant-dock,
.modal-panel {
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  gap: 13px;
  margin: 20px 0;
}

label {
  font-size: 12px;
  font-weight: 760;
}

input,
select,
textarea {
  border-color: #d4dde2;
  padding: 11px 12px;
  font-size: 15px;
}

.choice-card {
  min-height: 76px;
  padding: 13px;
}

.choice-card strong {
  font-weight: 760;
}

.panel-heading {
  padding: 14px 15px;
}

.brief-block {
  border-left-color: var(--brand);
}

.section-heading {
  margin-bottom: 14px;
}

.module-grid,
.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.module-card,
.dashboard-card,
.assistant-card {
  padding: 15px;
}

.ops-layout,
.workflow-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

.ops-card,
.schedule-card {
  min-height: 94px;
}

.time-block {
  background: linear-gradient(160deg, #121b20, #1b2a31);
}

.empty-state {
  align-items: flex-start;
  flex-direction: column;
}

@media (max-width: 1320px) {
  .main-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "workspace"
      "assistant";
  }

  .assistant-dock {
    position: static;
    max-height: none;
  }
}

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

  .sidebar {
    height: auto;
  }

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

/* Apple-inspired premium app layer */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #8b8b90;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.2);
  --soft: #f5f5f7;
  --paper: #ffffff;
  --panel: rgba(255, 255, 255, 0.86);
  --night: #050505;
  --night-2: #111111;
  --brand: #0071e3;
  --brand-2: #0066cc;
  --accent: #00a0df;
  --gold: #f5a623;
  --green: #34c759;
  --red: #ff3b30;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 34px 90px rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --radius-sm: 6px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    Inter, "Segoe UI", sans-serif;
}

html,
body {
  background: #f5f5f7;
}

body {
  color: var(--ink);
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 246px minmax(0, 1fr);
  background: #f5f5f7;
}

.sidebar {
  gap: 20px;
  padding: 18px 14px;
  background: rgba(246, 246, 248, 0.8);
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.brand span,
.ai-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-list {
  gap: 3px;
}

.nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4d4d52;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.nav-item.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #ececf0;
  color: #5d5d63;
  font-size: 11px;
  font-weight: 700;
}

.nav-item.active .nav-icon {
  background: #111111;
  color: #ffffff;
}

.ai-status {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.ai-status strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.pulse {
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(52, 199, 89, 0.12);
}

.main-panel {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 386px);
  grid-template-areas:
    "topbar topbar"
    "workspace assistant";
  gap: 20px;
  padding: 24px clamp(18px, 3.8vw, 54px) 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 245, 247, 0.94) 28%),
    #f5f5f7;
}

.topbar {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px clamp(18px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(22px);
}

.topbar h1,
h1 {
  color: var(--ink);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

.topbar-meta {
  margin-top: 10px;
  gap: 7px;
}

.topbar-meta span,
.count-pill,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.top-actions {
  gap: 8px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

h2 {
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.workspace {
  min-width: 0;
}

.progress-strip {
  height: 8px;
  gap: 8px;
  margin-bottom: 18px;
}

.progress-step {
  min-height: 6px;
  border-radius: 999px;
  background: #dedee3;
}

.progress-step span {
  display: none;
}

.progress-step.active,
.progress-step.complete,
.progress-step.done,
.progress-step.current {
  background: #111111;
}

.onboarding-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
}

.auth-card,
.setup-panel,
.insight-panel,
.module-card,
.automation-list,
.pipeline-board,
.dashboard-card,
.ops-card,
.schedule-card,
.assistant-card,
.assistant-dock,
.modal-panel,
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(18px);
}

.setup-panel {
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
}

.setup-panel::before {
  height: 0;
}

.setup-panel > h2 {
  max-width: 720px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.setup-overview {
  display: block;
  margin-top: 22px;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.setup-overview-main {
  max-width: 680px;
}

.setup-overview-main h3 {
  max-width: 760px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.setup-overview-main p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.hero-kicker {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

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

.setup-overview-grid div,
.business-type-card,
.choice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.setup-overview-grid strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.setup-overview-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.business-type-grid,
.choice-grid,
.module-grid,
.dashboard-grid {
  gap: 12px;
}

.business-type-card,
.choice-card,
.module-card,
.dashboard-card {
  min-height: 96px;
  box-shadow: none;
}

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

.setup-mode-grid .choice-card {
  min-height: 118px;
}

.choice-card strong {
  font-size: 18px;
  line-height: 1.1;
}

.choice-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.business-type-card.active,
.choice-card.active,
.module-card.active {
  border-color: rgba(0, 113, 227, 0.45);
  background: #f5f9ff;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 13px;
  font-size: 16px;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 113, 227, 0.16);
  border-color: rgba(0, 113, 227, 0.58);
}

.insight-panel {
  top: 24px;
  overflow: hidden;
}

.panel-heading,
.assistant-dock-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.panel-heading span,
.panel-heading strong {
  color: var(--ink);
  font-weight: 700;
}

.brief-block {
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.brief-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.assistant-dock {
  overflow: hidden;
}

.assistant-dock-header h2 {
  font-size: 32px;
}

.prompt-row {
  padding: 14px 16px 0;
  gap: 8px;
}

.prompt-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.chat-log {
  padding: 16px;
}

.chat-message,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: none;
}

.assistant-form {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.assistant-form input {
  border-radius: 999px;
}

.section-heading {
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
}

.pipeline-stage,
.automation-item,
.job-item,
.schedule-item,
.invoice-item,
.campaign-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.time-block {
  background: #111111;
}

.modal-backdrop {
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px);
}

@media (max-width: 1320px) {
  .main-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "workspace"
      "assistant";
  }

  .assistant-dock,
  .insight-panel {
    position: static;
    max-height: none;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .main-panel {
    padding: 18px;
  }

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

@media (max-width: 760px) {
  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-panel {
    padding: 12px;
  }

  .topbar h1,
  h1 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .top-actions,
  .topbar-meta {
    flex-wrap: wrap;
  }

  .onboarding-layout,
  .setup-overview-grid {
    grid-template-columns: 1fr;
  }

  .setup-panel {
    padding: 22px;
  }

  .setup-overview-main h3 {
    font-size: clamp(42px, 14vw, 64px);
  }
}
