:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.006 270);
  --surface-strong: oklch(0.93 0.012 270);
  --ink: oklch(0.18 0.025 270);
  --muted: oklch(0.46 0.025 270);
  --primary: oklch(0.36 0.219 270);
  --primary-pressed: oklch(0.30 0.21 270);
  --primary-soft: oklch(0.93 0.055 270);
  --accent: oklch(0.58 0.16 38);
  --success: oklch(0.48 0.13 155);
  --success-soft: oklch(0.94 0.04 155);
  --warning: oklch(0.63 0.15 72);
  --warning-soft: oklch(0.94 0.06 72);
  --danger: oklch(0.52 0.18 28);
  --danger-soft: oklch(0.94 0.05 28);
  --line: oklch(0.88 0.014 270);
  --white: oklch(1 0 0);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-standard: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

button,
input,
select,
textarea {
  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: 20px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 13px;
}

.brand-mark,
.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-title,
.brand-subtitle,
.eyebrow,
.section-kicker,
.status-label {
  margin: 0;
}

.brand-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-title span:first-child {
  color: var(--primary);
}

.brand-title span:last-child {
  color: var(--accent);
}

.brand-subtitle,
.status-label {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 700;
  transition:
    background 170ms var(--ease-out),
    color 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    transform 120ms var(--ease-out);
  will-change: transform;
}

.nav-item:hover {
  color: var(--ink);
  background: var(--white);
}

.nav-item:active,
.button:active {
  transform: scale(0.98);
}

.nav-item.is-active {
  color: var(--primary);
  border-color: var(--line);
  background: var(--white);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.sidebar-status {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
}

.status-row,
.status-item,
.attachment,
.ledger-row {
  display: flex;
  align-items: center;
}

.status-row {
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
}

.status-light,
.status-item span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.status-light.warning,
.status-item.warn span {
  background: var(--warning);
}

.main {
  min-width: 0;
  padding: 24px;
}

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

.topbar h1 {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.topbar-actions,
.action-row,
.dual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    background 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out),
    transform 120ms var(--ease-out);
  will-change: transform;
}

.button.primary {
  color: var(--white);
  background: var(--primary);
}

.button.primary:hover {
  background: var(--primary-pressed);
  box-shadow: 0 8px 16px oklch(0.25 0.18 270 / 0.18);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.secondary:hover {
  border-color: var(--surface-strong);
  background: var(--surface);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .nav-item:hover,
  .choice:hover,
  .plan:hover,
  .metric-panel:hover,
  .panel:hover {
    transform: scale(1.012) translateY(-1px);
  }
}

.button.full-width {
  width: 100%;
}

.onboarding,
.auth-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.onboarding,
.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 20px;
  padding: 18px;
  margin-bottom: 18px;
  background: var(--surface);
}

.onboarding.is-collapsed {
  display: none;
}

.onboarding h2,
.auth-panel h2,
.panel h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.onboarding p,
.auth-panel p,
.panel p,
.muted,
.body-copy {
  color: var(--muted);
  line-height: 1.55;
}

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

.setup-steps .setup-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
}

.setup-steps .setup-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.setup-steps .setup-step h3,
.permission h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.setup-steps .setup-step p,
.permission p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
}

.segment {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segment.is-active {
  color: var(--ink);
  background: var(--white);
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: enter-view 190ms var(--ease-out);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel {
  background: var(--white);
}

.metric-panel {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  background: transparent;
  transition: transform 180ms var(--ease-out);
  will-change: transform;
}

.metric-panel p,
.metric-panel span {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-panel strong {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.content-grid.wide-left {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.62fr);
}

.panel {
  padding: 18px;
  transition:
    border-color 190ms var(--ease-out),
    transform 190ms var(--ease-out);
  will-change: transform;
}

.panel.flush {
  padding: 0;
  overflow: hidden;
}

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

.panel-header p {
  margin: 4px 0 0;
}

.table-header {
  padding: 18px 18px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill.success {
  color: var(--success);
  background: var(--success-soft);
}

.pill.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.pill.neutral {
  color: var(--muted);
  background: var(--surface);
}

.progress-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

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

.status-item {
  gap: 10px;
  min-height: 38px;
  color: var(--ink);
  font-size: 0.9rem;
}

.lead-table {
  display: grid;
}

.lead-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(130px, 0.8fr) 90px minmax(220px, 1.2fr) 100px;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}

.lead-head {
  min-height: 40px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-row strong,
.lead-row small {
  display: block;
}

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

.email-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
}

.email-preview p {
  margin: 0;
  color: var(--ink);
}

.attachment {
  gap: 10px;
  min-height: 46px;
  margin: 14px 0;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.file-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.toggle-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.toggle-line small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.permission {
  padding: 14px;
  border-radius: 12px;
}

.permission.allowed {
  background: var(--success-soft);
}

.permission.blocked {
  background: var(--danger-soft);
}

.consent-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

code {
  display: block;
  padding: 10px;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.plan {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  will-change: transform;
}

.plan.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.plan small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.ledger-row {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row.total {
  color: var(--ink);
  border-bottom: 0;
  font-weight: 800;
}

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

@keyframes enter-view {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .sidebar-status {
    display: none;
  }

  .content-grid,
  .content-grid.wide-left,
  .onboarding,
  .auth-panel {
    grid-template-columns: 1fr;
  }

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

  .lead-row {
    grid-template-columns: minmax(180px, 1fr) 110px 90px;
  }

  .lead-row span:nth-child(4),
  .lead-head span:nth-child(4),
  .lead-row span:nth-child(2),
  .lead-head span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 680px) {
  .main {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .topbar h1 {
    font-size: 1.55rem;
  }

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

  .metrics-grid,
  .permission-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .lead-row span:nth-child(3),
  .lead-head span:nth-child(3) {
    display: none;
  }

  .lead-head {
    display: none;
  }

  .panel-header {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: enter-view 190ms var(--ease-out);
}

.app-shell.screen.is-active {
  display: grid;
}

.auth-shell,
.setup-shell {
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.auth-shell.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: 28px;
}

.auth-intro {
  width: min(100%, 920px);
}

.auth-intro {
  justify-self: end;
  display: grid;
  gap: 24px;
  padding: 12px;
}

.auth-intro .brand {
  align-items: flex-start;
}

.auth-intro .brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

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

.auth-copy h1,
.setup-top h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-copy p,
.setup-top p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trust-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.trust-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}

.trust-list span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.auth-shell .auth-card {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.google-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.setup-shell.is-active {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.setup-card {
  width: min(100%, 1320px);
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.setup-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.step-count {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  text-align: center;
  font-weight: 800;
}

.setup-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 190ms var(--ease-out);
}

.setup-card .setup-step {
  display: none;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.setup-card .setup-step.is-active {
  display: block;
  animation: enter-view 190ms var(--ease-out);
}

.choice-grid,
.form-grid,
.billing-grid {
  display: grid;
  gap: 12px;
}

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

.choice-grid.job-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.choice {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 42px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  transition:
    background 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.choice:hover {
  border-color: var(--surface-strong);
  background: var(--surface);
}

.choice:active {
  transform: scale(0.98);
}

.choice.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.choice::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition:
    background 170ms var(--ease-out),
    border-color 170ms var(--ease-out);
}

.choice.is-selected::after {
  border-color: var(--primary);
  background:
    linear-gradient(135deg, transparent 45%, var(--white) 45% 55%, transparent 55%) 4px 1px / 8px 12px no-repeat,
    var(--primary);
}

.choice strong {
  font-size: 0.98rem;
}

.choice span {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

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

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

select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.permission-panel {
  display: grid;
  gap: 16px;
}

.permission-panel h2 {
  margin: 0 0 6px;
}

.permission-panel p {
  margin: 0;
}

.drop-zone {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  color: var(--ink);
  background: var(--primary-soft);
  text-align: center;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone small {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.drop-zone.has-file {
  border-style: solid;
  background: var(--success-soft);
}

.custom-search-field {
  margin-top: 16px;
}

.role-focus {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.selected-work-panel {
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.selected-work-panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.selected-work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.empty-selection {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.drop-zone.compact {
  min-height: 210px;
}

.motivation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.motivation-text {
  align-self: stretch;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out);
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.skip-step {
  width: max-content;
}

.setup-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

  .auth-intro {
    justify-self: stretch;
  }

  .choice-grid,
  .choice-grid.job-grid,
  .form-grid,
  .motivation-layout,
  .role-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-card {
    min-height: calc(100vh - 32px);
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .setup-shell {
    padding: 10px;
  }

  .auth-copy h1,
  .setup-top h1 {
    font-size: 1.65rem;
  }

  .setup-top,
  .setup-actions {
    display: grid;
  }

  .choice-grid,
  .choice-grid.job-grid,
  .form-grid,
  .billing-grid,
  .motivation-layout,
  .role-focus {
    grid-template-columns: 1fr;
  }

  .setup-card .setup-step {
    min-height: auto;
  }

  .setup-card {
    min-height: calc(100vh - 20px);
    padding: 16px;
  }

  .setup-top {
    gap: 12px;
  }

  .step-count {
    width: max-content;
  }

  .choice {
    min-height: 96px;
  }
}
