  /* Semua teks memakai Inter (!important agar tidak tertimpa font-sans Tailwind / Leaflet) */
  *, *::before, *::after { font-family: 'Inter', sans-serif !important; }
  :root { --navbar-h: 52px; --panel-w: 420px; color-scheme: light; }
  html, body { height: 100%; overflow: hidden; }
  #map-wrapper { position: fixed; top: var(--navbar-h); left: 0; right: 0; bottom: 0; }
  /* Panel menimpa peta (peta tidak ikut bergeser/ter-resize). Di desktop, kontrol
     kanan (zoom, layer, dll) ikut bergeser agar tidak tertutup panel. */
  .leaflet-right { transition: right .32s cubic-bezier(.4,0,.2,1); }
  @media (min-width: 769px) { body.panel-open .leaflet-right { right: var(--panel-w); } }
  #map { width: 100%; height: 100%; }
  #panel { position: fixed; top: var(--navbar-h); right: 0; bottom: 0; width: var(--panel-w); transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); z-index: 1100; display: flex; flex-direction: column; overflow: hidden; }
  body.panel-open #panel { transform: translateX(0); }
  #panel-body { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
  #legend { transition: opacity .25s, transform .25s, max-height .3s; max-height: 500px; overflow: hidden; }
  #legend.hidden { opacity: 0; max-height: 0; pointer-events: none; transform: translateY(6px); }
  .leaflet-tooltip { font-family: 'Inter', sans-serif !important; font-size: 12px; font-weight: 700; }
  /* Angka suhu di tengah marker */
  .marker-temp { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; line-height: 1; pointer-events: none; user-select: none;
    background: rgba(0, 0, 0, 0) !important; color: white; border: none !important; font-size: 10px; font-weight: 700 !important; box-shadow: none !important;
    -webkit-text-stroke: 2px #18181b; paint-order: stroke fill; }
  /* Hujan > 0.5 mm/jam */
  .marker-temp.is-rain { background: rgba(0, 0, 0, 0) !important; color: #7ad7ff !important; -webkit-text-stroke: 2px #075985; paint-order: stroke fill; }
  @media (max-width: 768px) {
    :root { --panel-w: 100vw; }
    #panel { left: 0; right: 0; width: 100%; }
  }
  .modal-overlay { position: fixed; inset: 0; background: rgba(107,114,128,0.75); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
  .modal-content { background: #fff; border-radius: .5rem; width: 100%; max-width: 34rem; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); position: relative; animation: modalIn .18s cubic-bezier(.4,0,.2,1); }
  #configModal .modal-content { max-width: 26rem; }
  #creditsModal .modal-content { max-width: 40rem; }
  .modal-hidden { display: none !important; }
  @keyframes modalIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
  #stationSearchResults { min-height: 160px; max-height: 55vh; overflow-y: auto; }
  .station-search-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: #334155; cursor: pointer; background: transparent; border: none; }
  .station-search-item.is-active { background: #f1f5f9; }
  .station-search-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; border: 1px solid #0003; }
  .station-search-kbd { font-size: 11px; font-weight: 500; color: #94a3b8; border: 1px solid #e2e8f0; border-radius: 4px; padding: 1px 6px; }
  .config-option:has(input:checked) { border-color: #71717a; background: #f4f4f5; }
  @media (max-width: 768px) {
    #stationSearchModal, #configModal { align-items: flex-start; padding-top: calc(var(--navbar-h) + 16px); }
  }
