:root {
  --surface-base: #0F172A;
  --surface-raised: #1E293B;
  --surface-overlay: #334155;
  --ink-primary: #F8FAFC;
  --ink-secondary: #94A3B8;
  --ink-muted: #64748B;
  --action-primary: #F97316;
  --action-hover: #EA580C;
  --action-cooldown: #475569;
  --status-gps-ready: #10B981;
  --status-gps-warn: #F59E0B;
  --status-gps-error: #EF4444;
  --border-subtle: #334155;
  --accent-blue: #3B82F6;
  --map-overlay-bg: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] {
  --surface-base: #F8FAFC;
  --surface-raised: #FFFFFF;
  --surface-overlay: #E2E8F0;
  --ink-primary: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --border-subtle: #CBD5E1;
  --map-overlay-bg: rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--surface-base);
  color: var(--ink-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app-wrapper {
  max-width: 480px;
  width: 100%;
  padding: 16px 16px 84px 16px;
  display: flex;
  flex-direction: column;
}

/* View Panes for Tab Navigation */
.view-pane {
  display: none;
  width: 100%;
  flex-direction: column;
}

.view-pane.active {
  display: flex;
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.header-pill-btn {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  padding: 5px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.header-pill-btn:hover {
  background: var(--surface-overlay);
}

.user-chip {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: none;
  align-items: center;
  transition: background 0.15s;
}

.user-chip:hover {
  background: var(--surface-overlay);
}

.gps-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-gps-warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gps-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.gps-pill.ready {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-gps-ready);
  border-color: rgba(16, 185, 129, 0.3);
}

.gps-pill.locating {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-gps-warn);
  border-color: rgba(245, 158, 11, 0.3);
}

.gps-pill.locating .dot {
  animation: pulse-dot 1.5s infinite;
}

.gps-pill.no-gps {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-gps-error);
  border-color: rgba(239, 68, 68, 0.3);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Filter Segmented Pill */
.filter-pill-container {
  display: flex;
  background: var(--surface-overlay);
  border-radius: 9999px;
  padding: 4px;
  position: relative;
  width: max-content;
  margin: 0 auto 16px auto;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
}

.map-filter-float {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin: 0;
}

.filter-pill-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--accent-blue);
  border-radius: 9999px;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.filter-pill-btn {
  position: relative;
  flex: 1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
  min-width: 110px;
  white-space: nowrap;
}

.filter-pill-btn.active {
  color: #FFFFFF;
}

.filter-pill-btn:active {
  transform: scale(0.96);
}

/* Warning Banner */
.warning-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--ink-primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.4;
  display: none;
}

.warning-banner.visible {
  display: block;
}

/* Telemetry Card (Coordinates updating every 5s) */
.telemetry-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.telemetry-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.telemetry-ticker {
  font-size: 11px;
  color: var(--ink-muted);
}

.telemetry-coords {
  font-size: 16px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
}

/* Giant 210px Spot Button Area */
.spot-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0 32px 0;
}

.btn-spot-container {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spot-giant {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.45);
  transition: transform 0.15s ease, background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 2;
}

.btn-spot-giant:active {
  transform: scale(0.95);
}

.btn-spot-giant .icon {
  font-size: 46px;
  line-height: 1;
}

.btn-spot-giant .label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 10px;
  text-align: center;
}

.btn-spot-giant.waiting-gps {
  background: var(--surface-overlay);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  cursor: wait;
}

.btn-spot-giant.no-gps {
  background: var(--surface-overlay);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-spot-giant.waiting-gps .label,
.btn-spot-giant.no-gps .label {
  font-size: 14px;
  color: var(--ink-primary);
  white-space: nowrap;
}

/* Secondary Cards */
.card {
  background: var(--surface-raised);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

label {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--ink-primary);
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
}

input:focus {
  border-color: var(--action-primary);
}

input.input-error {
  border-color: var(--status-gps-error);
}

.btn-spot {
  width: 100%;
  padding: 14px;
  background: var(--action-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-spot:hover {
  background: var(--action-hover);
}

.btn-secondary {
  background: var(--surface-overlay);
  color: var(--ink-primary);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

pre {
  background: #090D16;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  overflow-x: auto;
  color: var(--status-gps-ready);
}

/* Modal Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--surface-raised);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 20px 0;
}

.modal-detail-box {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.modal-detail-row:last-child {
  margin-bottom: 0;
}

.modal-detail-row .label {
  color: var(--ink-secondary);
}

.modal-detail-row .val {
  color: var(--ink-primary);
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

.modal-detail-row .val.coords-val {
  text-align: right;
  line-height: 1.4;
}

.app-footer {
  text-align: center;
  padding: 24px 0 16px 0;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-divider {
  color: var(--border-subtle);
}

.footer-license-link {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-license-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-primary-action {
  flex: 1 1 auto;
  padding: 12px 14px;
  background: var(--action-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.btn-modal-secondary {
  flex: 1 1 auto;
  padding: 12px 14px;
  background: var(--surface-overlay);
  color: var(--ink-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn-modal-tertiary {
  flex: 0 0 auto;
  padding: 12px 12px;
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-modal-tertiary:hover {
  color: var(--status-gps-error);
  border-color: var(--status-gps-error);
}

.error-msg {
  color: var(--status-gps-error);
  font-size: 12px;
  margin-top: -8px;
  margin-bottom: 12px;
  min-height: 16px;
}

/* Tactical HUD Mini-Map (Upper Area of Spot Screen) */
.mini-map-container {
  width: 100%;
  height: min(30vh, 220px);
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-base);
  position: relative;
}

#spotMiniMap {
  width: 100%;
  height: 100%;
  background: var(--surface-base);
}

/* Invert and darken OSM tiles for sleek Autobahn slate theme */
#spotMiniMap .leaflet-tile {
  filter: brightness(0.65) invert(1) contrast(3) hue-rotate(200deg) saturate(0.35) brightness(0.85);
}

[data-theme="light"] #spotMiniMap .leaflet-tile,
[data-theme="light"] #fullMap .leaflet-tile {
  filter: none;
}

.mini-map-overlay {
  position: absolute;
  inset: 0;
  background: var(--map-overlay-bg);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--status-gps-warn);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  padding: 16px;
  text-align: center;
}

.mini-map-hud-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--map-overlay-bg);
  backdrop-filter: blur(4px);
  color: var(--ink-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  z-index: 1000;
  pointer-events: none;
}

/* Pulsing GPS Dot for HUD mini-map */
.gps-dot-container {
  background: transparent;
  border: none;
}

/* Enable smooth gliding on Leaflet's marker transform wrapper */
.leaflet-marker-pane .gps-dot-container {
  transition: transform 0.5s ease-out !important;
}

.live-gps-dot {
  width: 14px;
  height: 14px;
  background: #3B82F6;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.live-gps-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  animation: pulse-halo 2s infinite ease-out;
}

@keyframes pulse-halo {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Compact Sighting Dots on HUD Mini-Map (Story 3.5) */
.mini-shoe-dot-container {
  background: transparent;
  border: none;
}

.mini-shoe-dot {
  border-radius: 50%;
  box-sizing: border-box;
}

.mini-shoe-dot-own {
  width: 10px;
  height: 10px;
  background: #3B82F6;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}

.mini-shoe-dot-other {
  width: 8px;
  height: 8px;
  background: #94A3B8;
  border: 1px solid #334155;
}

/* Sighting Counter Card on Spot Screen (Story 3.5) */
.sighting-counter-card {
  padding: 14px 16px;
}

.sighting-counter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sighting-counter-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-primary);
}

.sighting-counter-badge {
  background: var(--surface-overlay);
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.sighting-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.counter-stat {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.counter-stat-own {
  border-color: rgba(59, 130, 246, 0.45);
}

.counter-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.1;
}

.counter-stat-own .counter-stat-val {
  color: var(--accent-blue);
}

.counter-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.nav-tab {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  padding: 0;
}

.nav-tab .icon {
  font-size: 20px;
  line-height: 1;
}

.nav-tab .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-tab.active {
  color: var(--action-primary);
}

.nav-tab:active {
  transform: scale(0.95);
}

/* Full Interactive Map Screen (Map Tab) */
.full-map-wrapper,
#fullMapContainer {
  width: 100%;
  height: calc(100vh - 170px);
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--surface-base);
}

#fullMap {
  width: 100%;
  height: 100%;
  background: var(--surface-base);
}

#fullMap .leaflet-tile {
  filter: brightness(0.65) invert(1) contrast(3) hue-rotate(200deg) saturate(0.35) brightness(0.85);
}

.map-overlay-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--map-overlay-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Custom Shoe Markers on Full Map per DESIGN.md */
.shoe-marker-container {
  background: transparent;
  border: none;
}

.shoe-pin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.shoe-pin:hover {
  transform: scale(1.15);
}

/* My Shoe: 32px Signal Blue with white border */
.shoe-pin-own {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

/* Other Shoe: 26px Neutral Slate */
.shoe-pin-other {
  width: 26px;
  height: 26px;
  background: var(--ink-secondary);
  border: 2px solid var(--surface-overlay);
}

.shoe-pin svg {
  display: block;
}

/* Zoom-Adaptive Cluster Count Badges on Full Map (Story 3.6) */
.shoe-cluster-container {
  background: transparent;
  border: none;
}

.shoe-cluster-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.shoe-cluster-badge:hover {
  transform: scale(1.12);
}

.shoe-cluster-own {
  background: #3B82F6;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.75);
}

.shoe-cluster-other {
  background: #475569;
  border: 2px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .shoe-cluster-other {
  border-color: #FFFFFF;
}

/* Dark Theme Leaflet Popup Styling */
.sighting-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--surface-raised);
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.sighting-leaflet-popup .leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.4;
}

.sighting-leaflet-popup .leaflet-popup-tip {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.sighting-popup-card .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.sighting-popup-card .popup-title {
  font-weight: 700;
  font-size: 13px;
}

.badge-own {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

[data-theme="light"] .badge-own {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.35);
}

.sighting-popup-card .popup-row {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.sighting-popup-card .popup-label {
  color: var(--ink-secondary);
}

.sighting-popup-card .popup-val {
  color: var(--ink-primary);
  font-weight: 600;
}

.sighting-popup-card .popup-val.coords {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--status-gps-ready);
}

/* Historical Sightings List Screen (List Tab) */
.list-view-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.list-count-badge {
  background: var(--surface-overlay);
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.sightings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sighting-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sighting-card:active {
  transform: scale(0.99);
}

.sighting-card-own {
  border-left: 4px solid var(--accent-blue);
}

.sighting-card-other {
  border-left: 4px solid var(--border-subtle);
}

.sighting-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-author .user-avatar {
  font-size: 13px;
}

.card-author .user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-primary);
}

.card-timestamp {
  font-size: 11px;
  color: var(--ink-muted);
}

.sighting-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.card-location .coords-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: var(--status-gps-ready);
  letter-spacing: 0.02em;
}

.btn-card-map {
  background: var(--surface-overlay);
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-card-map:hover {
  border-color: var(--accent-blue);
}

.empty-list-card {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface-raised);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  color: var(--ink-secondary);
}

.empty-list-card .empty-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 12px;
}

.empty-list-card h3 {
  margin: 0 0 6px 0;
  color: var(--ink-primary);
  font-size: 16px;
}

.empty-list-card p {
  margin: 0;
  font-size: 13px;
}

.card-new-anim {
  animation: fadeInSlide 0.3s ease-out;
}

.card-remove-anim {
  animation: fadeOutSlide 0.25s ease-in forwards;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutSlide {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); height: 0; margin: 0; padding: 0; }
}

