/* =====================================================================
   CB CONCEPT 83 — Espace Pro · Feuille de style principale
   ===================================================================== */

:root {
  --primary:      #0A2540;
  --primary-600:  #0C2F52;
  --accent:       #2563EB;
  --accent-600:   #1D4ED8;
  --accent-soft:  #EFF6FF;
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --border:       #E5E7EB;
  --border-soft:  #F1F5F9;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-faint:   #94A3B8;
  --success:      #10B981;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --danger-soft:  #FEF2F2;
  --tech-ch:      #2563EB;
  --tech-pb:      #16A34A;

  --sidebar-width: 248px;
  --topbar-height: 64px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

body.body-auth { background: var(--bg); }

a { color: inherit; }
a:hover { color: var(--accent); }

/* ===============================
   SIDEBAR (FIXE)
   =============================== */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 40;
}
.sidebar-logo {
  height: var(--topbar-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 16px 12px;
}
.nav-section-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 12px;
  margin: 16px 0 6px 0;
}
.nav-section-title:first-child { margin-top: 0; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500; font-size: 14px;
  transition: background 0.1s, color 0.1s;
  margin-bottom: 2px;
  text-decoration: none;
}
.nav-link:hover { background: var(--border-soft); color: var(--text); }
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-600);
}
.nav-link.active svg { color: var(--accent-600); }
.nav-link svg { color: var(--text-faint); flex-shrink: 0; }
.nav-link:hover svg { color: var(--text-muted); }

.nav-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 22px; text-align: center;
  background: var(--border);
  color: var(--text-muted);
}
.nav-link.active .nav-badge { background: var(--accent); color: white; }
.nav-badge.warning { background: var(--warning); color: white; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px;
}

/* ===============================
   MAIN LAYOUT
   =============================== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-height);
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.topbar-search {
  background: var(--bg);
  border-color: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}
.content { padding: 28px 32px; }

/* ===============================
   CARDS
   =============================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-body { padding: 20px; }

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500; font-size: 14px;
  transition: all 0.1s;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-600); color: white; }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-600); color: white; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--border-soft); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px; border: none; cursor: pointer; }
.btn-ghost:hover { background: var(--border-soft); color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ===============================
   INPUTS
   =============================== */
.input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  width: 100%;
  color: var(--text);
  transition: border-color 0.1s, box-shadow 0.1s;
  font-family: inherit;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===============================
   BADGES
   =============================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  line-height: 1.4;
}
.badge-step {
  width: 52px; justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.02em;
}
.badge-j30      { background: #EFF6FF; color: #1D4ED8; }
.badge-j15      { background: #FFFBEB; color: #B45309; }
.badge-j7       { background: #FEF2F2; color: #B91C1C; }
.badge-contract { background: #EEF2FF; color: #4338CA; }
.badge-ponctual { background: #F8FAFC; color: #475569; border: 1px solid var(--border); }
.badge-urgent   { background: #FEE2E2; color: #991B1B; }

/* ===============================
   TECH CHIP & AVATAR
   =============================== */
.tech-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: white; font-weight: 600; font-size: 11px;
  box-shadow: 0 0 0 2px var(--surface);
}
.tech-group { display: inline-flex; align-items: center; }
.tech-group .tech-chip + .tech-chip { margin-left: -8px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 13px;
  background: var(--accent);
}
.avatar-ch { background: var(--tech-ch); }
.avatar-pb { background: var(--tech-pb); }

/* ===============================
   TABLE
   =============================== */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table thead th {
  text-align: left;
  padding: 10px 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--bg); }
.table tbody tr.urgent { background: var(--danger-soft); }
.table tbody tr.urgent:hover { background: #FEE7E7; }
.table .client-name { font-weight: 600; color: var(--text); }
.table .client-ref  { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.table .client-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===============================
   TAB FILTER
   =============================== */
.tab-filter {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--border-soft);
  padding: 3px;
  border-radius: 8px;
}
.tab-filter button {
  padding: 5px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.1s;
}
.tab-filter button:hover { color: var(--text); }
.tab-filter button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tab-filter .count {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 600;
}
.tab-filter button.active .count,
.tab-filter a.active .count { color: var(--accent); }

/* Support liens <a> pour les tabs de filtre */
.tab-filter a {
  padding: 5px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.1s;
}
.tab-filter a:hover { color: var(--text); }
.tab-filter a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===============================
   STATS
   =============================== */
.stat-card  { padding: 18px 20px; }
.stat-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===============================
   PROGRESS
   =============================== */
.progress { height: 6px; border-radius: 100px; background: var(--border-soft); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 100px; }

/* ===============================
   RDV DATE
   =============================== */
.rdv-date {
  flex-shrink: 0;
  width: 48px; height: 54px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.rdv-date .d-day { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.rdv-date .d-num { font-size: 20px; font-weight: 600; line-height: 1; margin-top: 3px; }
.rdv-date.today  { border-color: var(--accent); background: var(--accent-soft); }
.rdv-date.today .d-day, .rdv-date.today .d-num { color: var(--accent-600); }

/* ===============================
   FLASH MESSAGES
   =============================== */
.flash {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid transparent;
}
.flash-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.flash-error   { background: var(--danger-soft); color: #991B1B; border-color: #FECACA; }
.flash-info    { background: var(--accent-soft); color: #1E40AF; border-color: #BFDBFE; }
.flash-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

/* ===============================
   SCROLLBAR
   =============================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ===============================
   FORMS (avancé)
   =============================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}
.form-group .form-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}
.form-group .form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 500;
}
.input.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
textarea.input { min-height: 96px; resize: vertical; font-family: inherit; }
select.input { appearance: auto; }

.form-errors {
  background: var(--danger-soft);
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}
.form-errors ul { margin: 6px 0 0 20px; padding: 0; }

.radio-group {
  display: flex;
  gap: 8px;
}
.radio-pill {
  flex: 1;
  position: relative;
  margin: 0;
}
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s;
}
.radio-pill:hover span { border-color: var(--text-muted); color: var(--text); }
.radio-pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-600);
}
.radio-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===============================
   PAGINATION
   =============================== */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.1s;
}
.pagination-link:hover:not(.disabled):not(.active) {
  background: var(--border-soft);
  color: var(--text);
}
.pagination-link.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: default;
}
.pagination-link.disabled {
  color: var(--text-faint);
  cursor: not-allowed;
  background: var(--bg);
}
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  color: var(--text-faint);
}

/* ===============================
   TIMELINE (fiche client · relances)
   =============================== */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  position: relative;
  padding: 2px 0 16px 4px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: -20px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  z-index: 1;
  box-sizing: border-box;
}
.timeline-step.done::before    { background: var(--success); border-color: var(--success); }
.timeline-step.pending::before { background: var(--surface);  border-color: var(--accent); }
.timeline-step.late::before    { background: var(--danger);   border-color: var(--danger); }
.timeline-label { font-size: 13px; font-weight: 600; color: var(--text); }
.timeline-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===============================
   FILTER BAR
   =============================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.filter-bar .search-input {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  position: relative;
}
.filter-bar .search-input input { padding-left: 34px; }
.filter-bar .search-input .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

/* ===============================
   EMPTY STATE
   =============================== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===============================
   DEFINITION LIST (fiche client)
   =============================== */
.dl-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  margin: 0;
}
.dl-grid dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.dl-grid dd {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
  margin: 0;
}

/* ===============================
   CALENDRIER (planning)
   =============================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--bg);
}
.calendar-grid .dow {
  padding: 8px 10px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.calendar-grid .day {
  min-height: 110px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  position: relative;
  font-size: 12px;
}
.calendar-grid .day.outside { background: var(--bg); color: var(--text-faint); }
.calendar-grid .day.today   { background: var(--accent-soft); }
.calendar-grid .day .d-num  { font-weight: 600; font-size: 13px; }
.calendar-grid .day.today .d-num { color: var(--accent-600); }
.calendar-grid .day .evt {
  display: block;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-grid .day .evt:hover { background: var(--accent); color: white; }
.calendar-grid .day .evt .t { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 4px; }
.calendar-grid .day .evt.status-termine { background: #F1F5F9; color: #475569; }
.calendar-grid .day .evt.status-annule { background: #FEF2F2; color: #B91C1C; text-decoration: line-through; }

/* ===============================
   TEMPLATE CARDS
   =============================== */
.template-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: all 0.1s;
  text-decoration: none;
  color: inherit;
}
.template-card:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.template-card .type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-600);
  margin-bottom: 8px;
}
.template-card .subject { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.template-card .preview { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ===============================
   CHECKBOXES MULTI-SELECT (techniciens)
   =============================== */
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip {
  position: relative;
  cursor: pointer;
}
.check-chip input { position: absolute; opacity: 0; }
.check-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.1s;
}
.check-chip span::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.check-chip:hover span { border-color: var(--text-muted); color: var(--text); }
.check-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-600);
}
.check-chip input:checked + span::before { opacity: 1; }

/* ===============================
   MAIL PREVIEW
   =============================== */
.mail-preview {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  max-height: 480px;
  overflow-y: auto;
}
.mail-preview h1, .mail-preview h2 { font-family: 'Inter', sans-serif; }
.mail-meta {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.mail-meta strong { color: var(--text); margin-right: 6px; }

/* ===============================
   COMMUNES BAR CHART
   =============================== */
.commune-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 1024px) {
  .sidebar {
    left: calc(var(--sidebar-width) * -1);
    transition: left 0.25s ease;
  }
  .sidebar.open { left: 0; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2); }
  .main-wrapper { margin-left: 0; }
  .topbar  { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 39;
    display: none;
  }
  .sidebar-backdrop.open { display: block; }
  .form-grid  { grid-template-columns: 1fr; }
  .dl-grid    { grid-template-columns: 110px 1fr; }
}

/* =====================================================================
   City picker (autocomplete commune dans le form client)
   ===================================================================== */
[data-city-picker] { position: relative; }
[data-city-picker].is-selected [data-search] {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.city-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
  max-height: 320px; overflow-y: auto;
  z-index: 30; padding: 4px;
}
.city-dropdown[hidden] { display: none; }
.city-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
}
.city-item:hover, .city-item.is-active { background: var(--border-soft); }
.city-item .ci-main { flex: 1; min-width: 0; }
.city-item .ci-name { font-weight: 500; font-size: 14px; color: var(--text); }
.city-item .ci-sub  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.city-item .ci-tag {
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}
.ci-tag.tag-local { background: #ECFDF5; color: #047857; }
.ci-tag.tag-gouv  { background: #EFF6FF; color: #1D4ED8; }
.city-empty, .city-loading {
  padding: 10px 12px; font-size: 13px; color: var(--text-muted);
}
.city-add-manual {
  display: block; width: 100%;
  padding: 10px 12px; margin-top: 4px;
  border-top: 1px solid var(--border);
  background: transparent; border-left: 0; border-right: 0; border-bottom: 0;
  text-align: left; cursor: pointer; font-size: 13px;
  color: var(--accent); font-weight: 500;
}
.city-add-manual:hover { background: var(--accent-soft); }

/* Modal manuelle */
.city-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.city-modal {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 420px;
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
}
.city-modal h3 {
  margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--text);
}
.city-modal-help {
  font-size: 13px; color: var(--text-muted); margin: 0 0 16px;
}
.city-modal label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 12px;
}
.city-modal input[type="text"] {
  display: block; width: 100%; margin-top: 4px;
  padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text);
}
.city-modal input[disabled] { background: var(--border-soft); color: var(--text-muted); }
.city-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px;
}
.city-modal-error {
  margin-top: 10px; padding: 8px 10px;
  background: var(--danger-soft); color: var(--danger);
  border-radius: 6px; font-size: 13px;
}
