:root {
  --bg:         #f2f2f7;  /* iOS system background */
  --surface:    #ffffff;  /* Cards, sidebar, inputs */
  --surface-2:  #f7f7f8;  /* Secondary grouped rows */
  --text:       #1d1d1f;
  --muted:      rgba(60,60,67,.55);
  --border:     rgba(60,60,67,.12);
  --green:      #34c759;
  --green-bg:   #e6faf0;
  --green-dark: #166534;
  --blue:       #007aff;
  --blue-bg:    #eef4ff;
  --blue-dark:  #1e40af;
  --cta:        #007aff;
  --cta-hover:  #0070eb;
  --warn:       #f59e0b;
  --warn-bg:    #fffbeb;
  --warn-dark:  #78350f;
  --err:        #ff3b30;
  --glass-dark: rgba(31,41,55,.88);
  --brand-grad: linear-gradient(135deg, #007aff, #34c759);
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-focus: 0 0 0 4px rgba(0,122,255,.13);
  /* Slider */
  --slider-track-h: 5px;
  --slider-thumb:   24px;
  --slider-thumb-d: 20px;
  /* Map */
  --map-pilot: rgba(0,122,255,.18);
  --map-pilot-stroke: rgba(0,122,255,.55);
  --map-other: #e8e8ec;
  --map-other-stroke: #b8b8c0;
  --map-hamburg: rgba(245,158,11,.22);
  --map-hamburg-stroke: rgba(245,158,11,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
::selection { background: rgba(52,199,89,.18); }
:focus-visible {
  outline: 3px solid rgba(0,122,255,.28);
  outline-offset: 3px;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
