    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --orange:  #F26522;
      --cream:   #FDF6EE;
      --dark:    #111111;
      --dark2:   #1A1A1A;
      --dark3:   #242424;
      --muted:   #666666;
      --border:  #2e2e2e;
      --panel:   rgba(20,20,20,0.97);
      --green:   #5cb85c;
    }
    body { background: var(--dark); color: var(--cream); font-family: 'Sora', sans-serif;
           height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

    /* ── Header ── */
    header { display: flex; align-items: center; justify-content: space-between;
             padding: 10px 20px; background: var(--dark2); border-bottom: 1px solid var(--border);
             z-index: 1000; flex-shrink: 0; gap: 16px; }

    .brand { display: flex; align-items: center; gap: 10px; }
    .brand-logo { width: 30px; height: 30px; background: var(--orange); border-radius: 6px;
                  display: flex; align-items: center; justify-content: center;
                  font-weight: 700; font-size: 0.8rem; color: white; flex-shrink: 0; }
    .brand-text { display: flex; flex-direction: column; line-height: 1; }
    .brand-name { font-size: 1rem; font-weight: 700; color: var(--cream); letter-spacing: -0.3px; }
    .brand-sub  { font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--muted);
                  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
    .brand-sub span { color: var(--orange); }

    /* ── Year tabs ── */
    .year-tabs { display: flex; gap: 4px; align-items: center; }
    .year-tab {
      font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 500;
      padding: 4px 12px; border-radius: 4px; border: 1px solid var(--border);
      background: transparent; color: var(--muted); cursor: pointer;
      transition: all 0.15s; position: relative; user-select: none;
    }
    .year-tab:hover { color: var(--cream); border-color: #444; }
    .year-tab.active { background: var(--orange); color: white; border-color: var(--orange); font-weight: 600; }
    .year-tab.loading::after {
      content: ''; position: absolute; inset: 0; border-radius: 4px;
      background: repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.15) 8px, transparent 16px);
      background-size: 32px 100%; animation: shimmer 0.8s linear infinite;
    }
    @keyframes shimmer { from { background-position: 0 0; } to { background-position: 32px 0; } }
    .year-tab.recent { color: var(--orange); border-color: #3a2010; }
    .year-tab.recent.active { background: var(--orange); color: white; border-color: var(--orange); }

    /* ── Stats ── */
    .stats { display: flex; gap: 20px; align-items: center; margin-left: auto; }
    .stat { text-align: right; }
    .stat .num { font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 500;
                 color: var(--orange); line-height: 1; }
    .stat .label { font-size: 0.55rem; color: var(--muted); text-transform: uppercase;
                   letter-spacing: 0.1em; margin-top: 2px; }

    /* ── Controls bar ── */
    .controls { display: flex; align-items: center; gap: 14px; padding: 7px 20px;
                background: var(--dark2); border-bottom: 1px solid var(--border);
                flex-shrink: 0; flex-wrap: wrap; }
    .controls label { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
    .controls select { background: var(--dark3); border: 1px solid var(--border); color: var(--cream);
                       font-family: 'DM Mono', monospace; font-size: 0.7rem; padding: 4px 8px;
                       border-radius: 4px; cursor: pointer; outline: none; }
    .controls select:focus { border-color: var(--orange); }
    input[type=range] { accent-color: var(--orange); width: 110px; cursor: pointer; }
    .size-val { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--orange); min-width: 38px; }
    #status { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: #888;
              margin-left: auto; letter-spacing: 0.04em; transition: color 0.3s; }
    #status.ok   { color: var(--green); }
    #status.warn { color: var(--orange); }

    /* ── Map ── */
    #map { flex: 1; width: 100%; position: relative; }
    .leaflet-container { background: #0d0d0d; }

    /* ── Legend ── */
    .legend { position: absolute; bottom: 30px; right: 12px; z-index: 1000;
              background: var(--panel); border: 1px solid var(--border); padding: 12px 16px;
              border-radius: 6px; min-width: 150px; }
    .legend h4 { font-size: 0.62rem; font-weight: 600; color: var(--muted);
                 text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
    .legend-row { display: flex; align-items: center; gap: 8px; margin: 5px 0;
                  font-size: 0.62rem; color: var(--muted); }
    .legend-dot { border-radius: 50%; flex-shrink: 0; }

    /* ── Cache badges ── */
    .cache-badges { display: flex; gap: 4px; flex-wrap: wrap; }
    .cache-badge { font-family: 'DM Mono', monospace; font-size: 0.55rem; padding: 2px 6px;
                   border-radius: 3px; text-transform: uppercase; background: var(--dark3);
                   border: 1px solid var(--border); color: #444; }
    .cache-badge.loaded { border-color: #2a4a2a; color: var(--green); }

    /* ── Info Panel ── */
    #info-panel {
      position: absolute;
      top: 0; left: 0;
      width: 300px;
      height: 100%;
      background: var(--panel);
      border-right: 1px solid var(--border);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      transform: translateX(-100%);
      transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #info-panel.open { transform: translateX(0); }

    .panel-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      padding: 18px 18px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .panel-header-left { display: flex; flex-direction: column; gap: 4px; }
    .panel-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--orange);
                     text-transform: uppercase; letter-spacing: 0.14em; }
    .panel-title { font-size: 1.15rem; font-weight: 700; color: var(--cream);
                   line-height: 1.1; letter-spacing: -0.3px; }
    .panel-subtitle { font-family: 'DM Mono', monospace; font-size: 0.6rem;
                      color: var(--muted); margin-top: 2px; }

    .panel-close {
      width: 26px; height: 26px; border: 1px solid var(--border);
      background: transparent; border-radius: 4px; cursor: pointer;
      color: var(--muted); font-size: 0.85rem; display: flex; align-items: center;
      justify-content: center; transition: all 0.15s; flex-shrink: 0; margin-top: 2px;
    }
    .panel-close:hover { background: var(--dark3); color: var(--cream); border-color: #444; }

    .panel-body { flex: 1; padding: 20px 18px; overflow-y: auto; }
    .panel-body::-webkit-scrollbar { width: 3px; }
    .panel-body::-webkit-scrollbar-track { background: transparent; }
    .panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    /* ── Leaflet overrides ── */
    .leaflet-popup-content-wrapper { background: var(--panel); color: var(--cream);
      border: 1px solid var(--border); border-radius: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.72rem; }
    .leaflet-popup-tip { background: var(--panel); }
    .leaflet-popup-content { margin: 10px 14px; line-height: 1.6; }
    .leaflet-popup-content b { color: var(--orange); display: block;
                                margin-bottom: 4px; font-size: 0.85rem; }
    .leaflet-control-attribution { background: rgba(20,20,20,0.85) !important;
                                   color: #555 !important; font-size: 0.55rem !important; }
    .leaflet-control-attribution a { color: #777 !important; }