/* ============================================
   GLOBALS.CSS — Componentes Hub Solução
   Apple-Inspired 1.0
   ============================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-background);
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--layout-header-height);
  padding-bottom: var(--layout-bottom-nav-height);
  overflow-x: hidden;
}
a { color: var(--color-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-separator-strong); border-radius: var(--radius-pill); }

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--layout-header-height);
  padding: 0 var(--space-4);
  background: var(--color-surface);
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(255,255,255,.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--color-separator);
}
:root.dark .header {
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(21,21,23,.92) 100%);
}
.header-logo { height: 28px; display: flex; align-items: center; }
.header-logo img { height: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-badge {
  background: var(--color-warning);
  color: #fff;
  font-size: var(--text-caption2);
  font-weight: var(--font-semibold);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  display: none;
}
.header-badge.visible { display: inline-flex; }
.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-surface-tertiary);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.header-btn:hover { background: var(--color-surface-hover); }
.header-btn:active { transform: scale(0.92); }

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--layout-bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--color-surface);
  background: linear-gradient(0deg, var(--color-surface) 0%, rgba(255,255,255,.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: var(--z-bottom-nav);
  border-top: 1px solid var(--color-separator);
}
:root.dark .bottom-nav {
  background: linear-gradient(0deg, var(--color-surface) 0%, rgba(21,21,23,.95) 100%);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}
.bottom-nav-item svg { width: 22px; height: 22px; stroke-width: 1.5; }
.bottom-nav-item span {
  font-size: 10px;
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
}
.bottom-nav-item.active { color: var(--color-accent); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0 0 2px 2px;
}
.bottom-nav-item--center {
  position: relative;
  top: -8px;
}
.bottom-nav-item--center svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
  color: var(--color-accent);
  filter: drop-shadow(0 2px 8px rgba(10,93,168,0.3));
}
.bottom-nav-item--center span { display: none; }
.bottom-nav-item .nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(calc(50% + 14px));
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-bold);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* === TAB CONTENT === */
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-scroll {
  padding: var(--space-4);
  max-width: var(--layout-content-max-width);
  margin: 0 auto;
  min-height: calc(100vh - var(--layout-header-height) - var(--layout-bottom-nav-height));
  min-height: calc(100dvh - var(--layout-header-height) - var(--layout-bottom-nav-height));
}

/* === CARDS === */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--elevation-1);
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}
.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-separator);
}
.card-header h2 {
  font-size: var(--text-subhead);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  flex: 1;
}
.card-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}
.card-value {
  font-size: var(--text-display);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.card-label {
  font-size: var(--text-footnote);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-separator);
}
.card-row:last-child { border-bottom: none; }
.card-row-label { font-size: var(--text-callout); color: var(--color-text-secondary); }
.card-row-value { font-size: var(--text-callout); color: var(--color-text-primary); font-weight: var(--font-medium); }

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-callout);
  font-weight: var(--font-semibold);
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all var(--duration-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
  text-decoration: none;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,93,168,0.3);
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { background: var(--color-accent-pressed); }
.btn-secondary {
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
}
.btn-secondary:hover { background: var(--color-surface-hover); }
.btn-success {
  background: var(--color-success);
  color: #fff;
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
}
.btn-ghost:hover { background: var(--color-accent-subtle); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-subhead);
  border-radius: var(--radius-lg);
}

/* === BOTÕES DE OPÇÃO (Segmentados) === */
.btn-option-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-separator);
  background: var(--color-surface-tertiary);
}
.btn-option {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-footnote);
  font-weight: var(--font-medium);
  font-family: var(--font-family);
  cursor: pointer;
  min-height: 44px;
  transition: all var(--duration-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.btn-option + .btn-option { border-left: 1px solid var(--color-separator); }
.btn-option.active {
  background: var(--color-accent);
  color: #fff;
  font-weight: var(--font-semibold);
}

/* === INPUTS === */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-footnote);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-tertiary);
  border: 1.5px solid var(--color-separator);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-body);
  font-family: var(--font-family);
  line-height: 1.4;
  transition: all var(--duration-fast) var(--ease-standard);
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ring);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-tertiary); }
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-subtle);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-7);
}
.form-textarea { min-height: 88px; resize: vertical; }
.form-error {
  font-size: var(--text-footnote);
  color: var(--color-danger);
  margin-top: var(--space-1);
  display: none;
}
.form-error.visible { display: block; }
.form-hint {
  font-size: var(--text-caption2);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

/* === SECTION === */
.form-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--elevation-1);
}
.form-section-title {
  font-size: var(--text-callout);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.form-section-title svg { width: 18px; height: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* === TOAST === */
.toast {
  position: fixed;
  top: calc(var(--layout-header-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-footnote);
  font-weight: var(--font-medium);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-standard);
  pointer-events: none;
  max-width: calc(100vw - var(--space-7));
  white-space: nowrap;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-success {
  background: var(--color-success);
  color: #fff;
  box-shadow: var(--elevation-3);
}
.toast-error {
  background: var(--color-danger);
  color: #fff;
  box-shadow: var(--elevation-3);
}
.toast-warning {
  background: var(--color-warning);
  color: #fff;
  box-shadow: var(--elevation-3);
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption2);
  font-weight: var(--font-semibold);
  line-height: 1.4;
}
.badge-success { background: var(--color-success-subtle); color: var(--color-success); }
.badge-warning { background: var(--color-warning-subtle); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-subtle); color: var(--color-danger); }
.badge-accent { background: var(--color-accent-subtle); color: var(--color-accent); }

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-tertiary) 25%, var(--color-surface-hover) 50%, var(--color-surface-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: var(--space-2); }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { height: 120px; }
.skeleton-circle { width: 44px; height: 44px; border-radius: var(--radius-pill); }

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-9) var(--space-5);
  text-align: center;
  min-height: 300px;
}
.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  stroke-width: 1.2;
}
.empty-state h3 {
  font-size: var(--text-headline);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.empty-state p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 260px;
  margin-bottom: var(--space-5);
}

/* === BOTTOM SHEET === */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
  pointer-events: none;
}
.sheet-overlay.visible { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-radius: var(--radius-xlg) var(--radius-xlg) 0 0;
  padding-bottom: env(safe-area-inset-bottom, var(--space-4));
  z-index: var(--z-bottom-sheet);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-enter);
  max-height: 85vh;
  overflow-y: auto;
}
.sheet.visible { transform: translateY(0); }
.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-separator-strong);
  margin: var(--space-2) auto var(--space-3);
  flex-shrink: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-separator);
}
.sheet-title {
  font-size: var(--text-subhead);
  font-weight: var(--font-semibold);
}
.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-surface-tertiary);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-body { padding: var(--space-4) var(--space-5); }

/* === CONFIG MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
  pointer-events: none;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xlg);
  padding: var(--space-6);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--elevation-4);
  transform: scale(0.9);
  transition: transform var(--duration-slow) var(--ease-enter);
}
.modal-overlay.visible .modal { transform: scale(1); }
.modal-title {
  font-size: var(--text-headline);
  font-weight: var(--font-semibold);
  text-align: center;
  margin-bottom: var(--space-5);
}

/* === SPLASH SCREEN === */
.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-slow) var(--ease-standard);
}
.splash.hidden { opacity: 0; pointer-events: none; }
.splash img { height: 80px; margin-bottom: var(--space-5); }
.splash-loader {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--color-separator);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === OFFLINE BAR === */
.offline-bar {
  position: fixed;
  top: var(--layout-header-height);
  left: 0;
  right: 0;
  background: var(--color-warning);
  color: #fff;
  font-size: var(--text-footnote);
  font-weight: var(--font-semibold);
  text-align: center;
  padding: var(--space-1) var(--space-3);
  z-index: calc(var(--z-header) + 1);
  transform: translateY(-100%);
  transition: transform var(--duration-normal) var(--ease-standard);
}
.offline-bar.visible { transform: translateY(0); }

/* === PHOTO PREVIEW === */
.photo-upload {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--color-surface-tertiary);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-separator);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-standard);
  margin-bottom: var(--space-3);
}
.photo-upload:hover { border-color: var(--color-accent); }
.photo-upload svg { width: 36px; height: 36px; color: var(--color-text-tertiary); margin-bottom: var(--space-2); }
.photo-upload span { font-size: var(--text-footnote); color: var(--color-text-tertiary); }
.photo-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-upload.has-image { border-color: transparent; }
.photo-upload .photo-remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.photo-upload.has-image .photo-remove { display: flex; }

/* === MAP === */
#map {
  width: 100%;
  height: calc(100vh - var(--layout-header-height) - var(--layout-bottom-nav-height));
  height: calc(100dvh - var(--layout-header-height) - var(--layout-bottom-nav-height));
  border-radius: 0;
}
.map-btn {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: none;
  box-shadow: var(--elevation-3);
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.map-btn svg { width: 22px; height: 22px; }
.heatmap-legend {
  position: absolute;
  bottom: calc(var(--space-6) + 60px);
  right: var(--space-4);
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  z-index: 1000;
  font-size: var(--text-caption2);
  color: var(--color-text-secondary);
}
.heatmap-legend .gradient {
  width: 120px;
  height: 8px;
  border-radius: var(--radius-pill);
  margin: var(--space-1) 0;
}

/* === MÉTRICAS === */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.metric-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--elevation-1);
  text-align: center;
}
.metric-value {
  font-size: var(--text-title);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  line-height: 1;
}
.metric-label {
  font-size: var(--text-caption2);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}
.metric-trend { font-size: var(--text-caption2); margin-top: var(--space-1); }
.metric-trend.up { color: var(--color-success); }
.metric-trend.down { color: var(--color-danger); }

/* === GRÁFICO === */
.chart-container { margin: var(--space-4) 0; }
.chart-title {
  font-size: var(--text-footnote);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 120px;
}
.chart-bar {
  flex: 1;
  min-height: 4px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-accent);
  position: relative;
  transition: height var(--duration-slow) var(--ease-enter);
}
.chart-bar-label {
  text-align: center;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}
.chart-bar-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* === LEAD ITEM (fila/histórico) === */
.lead-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--elevation-1);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.lead-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lead-item-icon svg { width: 20px; height: 20px; color: var(--color-accent); }
.lead-item-info { flex: 1; min-width: 0; }
.lead-item-title {
  font-size: var(--text-callout);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.lead-item-subtitle {
  font-size: var(--text-footnote);
  color: var(--color-text-secondary);
}
.lead-item-meta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

/* === CAMERA BADGE === */
.required-asterisk { color: var(--color-danger); }

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .tab-scroll { padding: var(--space-6); }
  .form-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* === Leaflet overrides === */
.leaflet-container { font-family: var(--font-family) !important; }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--elevation-3) !important;
}
.leaflet-popup-content { margin: var(--space-3) var(--space-4) !important; font-size: var(--text-footnote) !important; }
.leaflet-control-zoom a { background: var(--color-surface) !important; color: var(--color-text-primary) !important; border-color: var(--color-separator) !important; }