* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 24px 16px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
}

.version {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
  margin-bottom: 24px;
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-start {
  background: #2563eb;
  color: white;
}

.btn-stop {
  background: #ef4444;
  color: white;
}

.btn-save {
  background: #10b981;
  color: white;
}

.btn-clear {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
}

.slider-container {
  margin-bottom: 20px;
  text-align: center;
}

.slider-container label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}

.slider-container input[type="range"] {
  width: 100%;
  max-width: 300px;
  accent-color: #2563eb;
  height: 6px;
  cursor: pointer;
}

.status {
  text-align: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #e2e8f0;
  color: #64748b;
  margin-bottom: 24px;
  transition: background 0.3s, color 0.3s;
}

.status.active {
  background: #dcfce7;
  color: #16a34a;
}

.status.error {
  background: #fef2f2;
  color: #dc2626;
}

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

.positions-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

#positionsList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#positionsList li {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pos-dot.dot-red {
  background: #ef4444;
}

.pos-dot.dot-green {
  background: #10b981;
}

.pos-num {
  font-weight: 700;
  color: #2563eb;
  min-width: 28px;
}

.pos-date {
  color: #64748b;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8rem;
}

.pos-coords {
  color: #1e293b;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8rem;
  width: 100%;
  padding-left: 40px;
}
