.mode-tab {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.6rem;
  color: #94a3b8;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.mode-tab:hover {
  color: #e2e8f0;
}
.mode-tab[aria-pressed="true"] {
  background: #1e293b;
  color: #60a5fa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.field-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #334155;
  color: #94a3b8;
  background: #1e293b;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.field-chip:hover {
  border-color: #475569;
}
.field-chip.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #93c5fd;
}
.field-chip.locked {
  background: rgba(59, 130, 246, 0.1);
  border-color: #1d4ed8;
  color: #93c5fd;
  cursor: default;
  opacity: 0.9;
}
.field-chip .chip-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.6rem;
  border: 1px solid #334155;
  color: #cbd5e1;
  background: #1e293b;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.export-btn:hover {
  background: #263449;
  border-color: #475569;
}
.export-btn:active {
  background: #1a2536;
}

.progress-transition {
  transition: width 0.35s ease;
}

tr.duplicate-row {
  background: rgba(180, 83, 9, 0.12);
}
tr.duplicate-row:hover {
  background: rgba(180, 83, 9, 0.22);
}

.duplicate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.4);
  white-space: nowrap;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #60a5fa;
  white-space: nowrap;
}
.maps-link:hover {
  text-decoration: underline;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
#error-toast:not(.hidden),
#info-toast:not(.hidden) {
  animation: toast-in 0.2s ease;
}
