:root {
  --text: #0f172a;
  --primary: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 560px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #eef2f6;
  color: var(--text);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

body.confirming {
  padding-bottom: 96px;
}

[hidden] {
  display: none !important;
}

.map-canvas {
  padding-top: env(safe-area-inset-top);
}

.lot-select {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 8px;
  z-index: 20;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.parking-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.confirm-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.14);
  transform: translateX(-50%);
}

.confirm-row {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
}

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

.btn {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.45;
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: #b91c1c;
}

.toast-action {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-size: 15px;
  font-weight: 700;
}
