:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --red: #EF4444;
  --red-deep: #DD0000;
  --text: #F5F5F5;
  --text-muted: #9A9A9A;
  --text-faint: #616161;
  --font-display: 'Montserrat Alternates', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

/* ---------- ICONS (inlined Lucide SVGs) ---------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; }
.icon-lg { width: 1.3em; height: 1.3em; }
.icon-sm { width: 0.85em; height: 0.85em; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

.hidden { display: none !important; }

/* ---------- AUTH SCREEN ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}

.brand-mark.large {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  font-size: 18px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.auth-sub {
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
  margin: 0 0 24px;
}

.auth-download-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}
.auth-download-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.auth-download-link:hover { text-decoration: underline; }

.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

[data-requires-online]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-error {
  color: var(--red);
  font-size: 12px;
  margin: -6px 0 0;
  min-height: 14px;
  white-space: pre-line;
}

/* ---------- TOPBAR ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
}

.brand-sub {
  margin: 0;
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
  letter-spacing: 0.3px;
}

.tabs { display: flex; gap: 4px; margin-left: auto; }

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.full { width: 100%; margin-top: 8px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--red); }
.btn-ghost.full { width: 100%; }

.btn-danger {
  background: transparent;
  border: 1px solid #4a1414;
  color: #ff8080;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.btn-danger:hover { background: #2a0f0f; }
.btn-danger.full { width: 100%; }
.btn-danger.btn-delete {
  background: #2a0f0f;
  border-color: var(--red-deep);
}
.btn-danger.btn-delete:hover { background: #3a1414; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.topbar-right { display: flex; gap: 8px; align-items: center; }

.btn-icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.btn-icon:hover { border-color: var(--red); }
.btn-icon { position: relative; }

.icon-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.icon-badge.hidden { display: none; }

.menu-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.dropdown-menu.hidden { display: none; }
.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dropdown-item:hover { background: var(--surface); }
.dropdown-item-danger { color: #ff8080; }

.filter-panel {
  padding: 10px;
  gap: 8px;
  min-width: 240px;
}
.filter-panel input, .filter-panel select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  width: 100%;
}

.notif-panel { min-width: 260px; max-width: 320px; padding: 6px; }
.notif-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.notif-item:hover { background: var(--surface); }
.notif-item-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.notif-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item-phone { color: var(--text-faint); font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item-time { flex: 0 0 auto; color: var(--text-faint); font-size: 11px; font-weight: 500; white-space: nowrap; }
.notif-empty { color: var(--text-faint); font-size: 12.5px; padding: 10px; text-align: center; }
.current-user-info {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}
.current-user-info.subscription-warning {
  color: var(--red);
  border-color: var(--red);
}

.offline-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  background: #2a1010;
  color: #ffab8f;
  border: 1px solid var(--red-deep);
}
.offline-status.hidden { display: none; }

.pull-refresh-indicator {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  pointer-events: none;
}
.pull-refresh-indicator.hidden { display: none; }

/* ---------- PHONE ROW ---------- */
.phone-row { display: flex; gap: 6px; min-width: 0; }
.phone-row select { flex: 0 0 110px; }
.phone-row input { flex: 1; min-width: 0; }

.password-row { display: flex; gap: 6px; }
.password-row input { flex: 1; min-width: 0; }
.password-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 11px;
}
.password-toggle:hover { color: var(--text); border-color: var(--red); }

.field-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.two-col { display: flex; gap: 10px; min-width: 0; }
.two-col label { flex: 1; min-width: 0; }

/* ---------- WHATSAPP BUTTON ---------- */
.btn-whatsapp {
  background: #1f7a3d;
  color: #fff;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-whatsapp:hover { filter: brightness(1.1); }

.section-hint {
  color: var(--text-faint);
  font-size: 12px;
  margin: -6px 0 14px;
}


/* ---------- MAIN / VIEWS ---------- */
main { padding: 24px 28px 60px; }
.view.hidden { display: none; }

/* ---------- BOARD ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
}

.column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 60px;
}

.column.collapsed { min-height: 0; }

.column-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.column-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-title-text { display: flex; align-items: center; gap: 6px; }

.collapse-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
}
.collapse-toggle:hover { color: var(--red); }

.column-count {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* progress rail: encodes funnel position, fills more red the closer to conversion */
.progress-rail {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-rail-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-deep)); }

.column-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  overflow-x: hidden;
}

.column.collapsed .column-body,
.column.collapsed .progress-rail { display: none; }

.empty-column {
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
  padding: 20px 8px;
}

/* ---------- CARD ---------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.card:hover { border-color: var(--red); transform: translateY(-1px); }

.card.age-fresh { border-left-color: #3a3a3a; }
.card.age-warm { border-left-color: #c98a2a; }
.card.age-stale { border-left-color: var(--red); }

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

.card-name {
  font-weight: 700;
  font-size: 13.5px;
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
}

.card-wa {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.card-wa:hover { color: var(--red); }

.card-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 10px;
}

.card-followup {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}
.card-followup.overdue { color: var(--red); }
.card-followup.upcoming { color: #c98a2a; }

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.stat-card.highlight {
  border-color: var(--red-deep);
  background: linear-gradient(160deg, var(--surface) 60%, #1f0d0d);
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 8px;
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.stat-note {
  font-size: 11px;
  color: var(--text-faint);
  margin: 6px 0 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 16px; }
thead th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

/* ---------- ADMIN ---------- */
.admin-actions { display: flex; gap: 8px; }
.admin-actions .btn-ghost { padding: 5px 10px; font-size: 12px; }

/* ---------- IMPORT ---------- */
.import-body { display: flex; flex-direction: column; gap: 14px; }
.import-hint { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0; }
.import-hint code { color: var(--text); background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.import-status { font-size: 13px; line-height: 1.6; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.import-status.error { color: #ff6b6b; border-color: #ff6b6b55; }

.subscription-body { display: flex; flex-direction: column; gap: 10px; }
.subscription-body h3 { font-family: var(--font-display); font-size: 14px; margin: 8px 0 0; }
.subscription-body p { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; }

/* ---------- ARCHIVED ---------- */
.archived-list { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.archived-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.archived-item:hover { border-color: var(--red); }
.archived-item .restore-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.archived-item .restore-btn:hover { border-color: var(--red); color: var(--text); }

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 22px 26px;
}
.modal-wide { max-width: 760px; }

.modal-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-header h2 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.detail-sub { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }

.modal-close {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--red); }

.modal-header-actions { display: flex; align-items: center; gap: 12px; }

form { display: flex; flex-direction: column; gap: 12px; }

label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

input, select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; min-height: 64px; }

.detail-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.detail-main h3, .detail-side h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin: 18px 0 8px;
}
.detail-main h3:first-of-type { margin-top: 0; }

.stage-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stage-select-mobile { display: none; margin-bottom: 14px; font-weight: 700; }
.stage-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stage-btn:hover { border-color: var(--red); color: var(--text); }
.stage-btn.current {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-color: transparent;
  color: #fff;
}

.field-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 6px; min-width: 0; }
.field-row label { flex: 1; min-width: 0; }

.interactions-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.interaction-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
}
.interaction-item .itype {
  color: var(--red);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.interaction-item .itime { color: var(--text-faint); font-size: 10.5px; float: right; }
.interaction-item p { margin: 4px 0 0; color: var(--text); }

.history-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid var(--border);
  font-size: 12px;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.timeline-stage { font-weight: 700; text-transform: capitalize; }
.timeline-time { color: var(--text-faint); font-size: 11px; }
.timeline-note { color: var(--text-muted); margin-top: 2px; }

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .tabs { order: 3; width: 100%; justify-content: flex-start; }

  /* The stage row (Contact / Contacte / Prospect / ...) wraps across several
     lines and eats the top of the edit modal on narrow screens — a dropdown
     says the same thing in one line. */
  .stage-actions { display: none; }
  .stage-select-mobile { display: block; }
}

@media (max-width: 480px) {
  html, body { max-width: 100vw; overflow-x: hidden; }
  .topbar { padding: 12px 14px; gap: 10px; }
  .brand-sub { display: none; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  .current-user-info {
    order: -1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: auto;
  }
  #addProspectBtn { padding: 9px 10px; }
  #addProspectBtn .btn-label { display: none; }
  main { padding-left: 14px; padding-right: 14px; }
  .tabs { gap: 2px; }
  .tab-btn { padding: 8px 10px; font-size: 12px; }

  /* Dropdowns are anchored to their (small) trigger button by default, which
     overflows off the left edge on narrow screens since the trigger sits
     mid-row, not at the screen edge. Anchor to the viewport instead. */
  .dropdown-menu {
    position: fixed;
    top: 64px;
    right: 10px;
    left: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  /* Modal content rows: these use side-by-side flex layout on desktop
     (e.g. country + city, phone dial-code + number), which forces the
     whole modal wider than the screen if it can't wrap on mobile. */
  .modal-overlay { padding: 10px; }
  .modal { padding: 18px 16px 22px; }
  .two-col { flex-wrap: wrap; }
  .field-row { flex-wrap: wrap; }
  .phone-row select { flex: 0 0 90px; }
  .btn-whatsapp .btn-label { display: none; }
  .btn-whatsapp { padding: 9px 10px; }
}
