*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-subtle: #f3f4f6;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --accent: #16a34a;
  --accent-light: #dcfce7;
  --error: #dc2626;
  --error-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0284c7;
  --info-light: #e0f2fe;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 8px;
}
.overline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 3px;
}
h1 { font-size: 17px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.badge-overdue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: var(--error);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

/* ── KPI Strip ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px 8px;
}
.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.kpi-warn .kpi-value { color: var(--error); }
.kpi-info .kpi-value { color: var(--info); }

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.view-btn {
  padding: 6px 14px;
  background: var(--surface);
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.view-btn.active { background: var(--accent); color: white; }
.filters { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.filters select, .search-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.search-input { flex: 1; min-width: 100px; }

/* ── Stage tabs (mobile kanban) ── */
.stage-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: none;
  gap: 0;
}
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.stage-tab.active {
  color: var(--stage-color, var(--accent));
  border-bottom-color: var(--stage-color, var(--accent));
}
.stage-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--border);
  color: var(--text-3);
  font-size: 11px;
}
.stage-tab.active .stage-tab-count {
  background: var(--stage-color, var(--accent));
  color: white;
}

/* ── Kanban board ── */
.kanban-board {
  display: flex;
  gap: 12px;
  padding: 12px 16px 80px;
  overflow-x: auto;
  flex: 1;
  align-items: flex-start;
  min-height: 300px;
}

@media (max-width: 767px) {
  .kanban-board {
    overflow-x: hidden;
    flex-direction: column;
  }
  .kanban-col {
    display: none;
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  .kanban-col.kanban-col--active { display: flex; }
}

.kanban-col {
  display: flex;
  flex-direction: column;
  width: 260px;
  flex-shrink: 0;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--stage-color, var(--border));
}
.col-icon { font-size: 15px; }
.col-label { font-size: 13px; font-weight: 700; flex: 1; }
.col-count {
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 1px 7px;
  color: var(--text-3);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 60px;
  flex: 1;
}
.kanban-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 20px;
}

/* ── Customer cards ── */
.customer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
  user-select: none;
}
.customer-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.customer-card:active { transform: translateY(0); }
.card--overdue { border-left: 3px solid var(--error); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 6px;
}
.card-name { font-weight: 700; font-size: 15px; }
.card-vehicle { font-size: 13px; color: var(--text-2); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.card-source { color: var(--text-3); }
.card-rent { color: var(--accent); font-weight: 600; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 6px;
}
.card-phone { color: var(--text-3); }
.card-next { color: var(--info); }
.overdue-badge {
  background: var(--error-light);
  color: var(--error);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-add-to-stage {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.btn-add-to-stage:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* ── BANT badges ── */
.bant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.bant-hot { background: var(--error-light); color: var(--error); }
.bant-warm { background: var(--warning-light); color: var(--warning); }
.bant-cold { background: var(--border); color: var(--text-3); }

/* ── List view ── */
.list-wrapper { flex: 1; padding: 12px 16px 80px; }
.list-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
  min-width: 600px;
}
.pipeline-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
}
.pipeline-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  white-space: nowrap;
}
.table-row { cursor: pointer; transition: background .1s; }
.table-row:hover { background: var(--surface-2); }
.table-row:last-child td { border-bottom: none; }
.row--overdue td:first-child { border-left: 3px solid var(--error); }
.td-name { font-weight: 700; }
.td-overdue { color: var(--error); font-weight: 600; }
.stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── FAB ── */
.fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,163,74,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.fab:hover { background: #15803d; transform: scale(1.06); }
.fab:active { transform: scale(.96); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal {
  background: var(--surface);
  width: 100%;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-up .2s ease;
}
@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 10px;
}
.modal-name { font-size: 18px; font-weight: 700; }
.modal-subtitle { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.modal-header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.modal-body { overflow-y: auto; padding: 16px 20px 32px; flex: 1; -webkit-overflow-scrolling: touch; }

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
  .modal { width: 540px; max-height: 88vh; border-radius: 16px; }
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  color: inherit;
  text-decoration: none;
}
.btn-icon:hover { background: var(--border); }

/* ── Detail view ── */
.detail-bant {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bant-detail { font-size: 12px; color: var(--text-3); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.info-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.info-value { font-size: 14px; font-weight: 600; word-break: break-all; }
.info-value a { color: var(--info); text-decoration: none; }
.text-error { color: var(--error); }

.detail-memo {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
}
.detail-memo-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
}
.detail-memo p { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* ── Stage progression ── */
.stage-progression { margin-bottom: 18px; }
.stage-progress-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow-x: auto;
  gap: 0;
}
.stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .2s;
}
.stage-dot.done { background: var(--accent); }
.stage-dot.current {
  background: var(--color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color, var(--accent)) 25%, transparent);
  width: 16px;
  height: 16px;
}
.stage-line { height: 2px; flex: 1; background: var(--border); min-width: 10px; }
.stage-line.done-line { background: var(--accent); }
.stage-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-primary-sm {
  padding: 7px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary-sm {
  padding: 7px 14px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-danger-sm {
  padding: 7px 14px;
  background: var(--error-light);
  color: var(--error);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  font-family: inherit;
}

/* ── History ── */
.history-section { margin-top: 18px; }
.history-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-2); }
.history-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.history-input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
}
.history-input-row button {
  padding: 0 14px;
  height: 36px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.history-item {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.5;
}
.history-item.history-stage { background: var(--accent-light); }
.history-date {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.history-text { word-break: break-word; }
.history-empty { color: var(--text-3); font-size: 13px; padding: 10px 0; }

/* ── Form ── */
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.required { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.btn-primary {
  padding: 10px 22px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary {
  padding: 10px 18px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-danger {
  padding: 10px 18px;
  background: var(--error-light);
  color: var(--error);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: auto;
  font-family: inherit;
}

/* ── SMS modal ── */
.sms-templates {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sms-template-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.sms-template-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.sms-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.6;
}
.sms-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sms-notice { font-size: 12px; color: var(--warning); flex: 1; min-width: 0; }
.sms-copied {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  padding: 8px;
  background: var(--accent-light);
  border-radius: var(--radius);
}

/* ── Empty state ── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 12px;
  color: var(--text-3);
  text-align: center;
}
.empty-icon { font-size: 48px; }

/* ── Admin page styles ── */
.admin-shell { max-width: 680px; margin: 0 auto; padding: 20px 16px 80px; }
.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.admin-section-title { font-size: 15px; font-weight: 700; }
.admin-section-body { padding: 16px; }
.admin-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.admin-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.admin-field input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.admin-save-btn {
  padding: 8px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.template-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.template-item:last-of-type { border-bottom: none; }
.template-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.template-text { font-size: 13px; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; flex: 1; }
.btn-edit-sm {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-del-sm {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  background: var(--error-light);
  color: var(--error);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.data-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.data-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.data-btn.danger { background: var(--error-light); color: var(--error); border-color: transparent; }

/* PIN screen */
.pin-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 32px 16px;
}
.pin-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}
.pin-title { font-size: 20px; font-weight: 700; text-align: center; }
.pin-sub { font-size: 13px; color: var(--text-3); text-align: center; margin-top: -6px; }
.pin-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  font-family: monospace;
}
.pin-error { color: var(--error); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 22px; }
  .kpi-sub { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .stage-btns { justify-content: flex-start; }
}

@media (min-width: 768px) {
  .stage-tabs { display: none; }
}
