/* Live-kaart (index.html): geladen via <link> zodat de browser het cachet. */
  #train-panel, #station-panel, #vehicle-panel {
    transform: translateX(-100%);
    pointer-events: none;
  }
  #train-panel.panel-open, #train-panel.panel-peek,
  #station-panel.panel-open, #station-panel.panel-peek,
  #vehicle-panel.panel-open, #vehicle-panel.panel-peek {
    pointer-events: auto;
  }
  @media (max-width: 767px) {
    #train-panel, #station-panel, #vehicle-panel { transform: translateY(110%); }
  }
  main {
    --map-panel-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }
  /* Forceer kaart om hele main te vullen — voorkomt blauwe body-strip onder de kaart op iOS Safari */
  #map {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
  }
  /* base.html plat álle .leaflet-pane op z-index: 10 !important (om de kaart
     onder de sticky navbar te houden). Dat sloopt Leaflets interne stacking.
     Op deze pagina herstellen we de defaults zodat eigen panes ertussen passen.
     De #map (z-index: 1) houdt het geheel sowieso onder de navbar (z-[100]). */
  .leaflet-tile-pane    { z-index: 200 !important; }
  .leaflet-spoorkaart-pane {
    z-index: 350 !important;
    pointer-events: none;
  }
  .leaflet-disruption-pane { z-index: 380 !important; }
  .leaflet-overlay-pane { z-index: 400 !important; }
  /* Polylines (route-snelheid) renderen via Leaflet's canvas in overlay-pane.
     Het canvas-element blijft na clearActiveRoute in de DOM hangen en zou
     events op de stations (SVG in dezelfde pane) absorberen. Routes zijn
     niet interactief, dus pointer-events uit. */
  .leaflet-overlay-pane > canvas { pointer-events: none; }
  .leaflet-shadow-pane  { z-index: 500 !important; }
  .leaflet-marker-pane  { z-index: 600 !important; }
  .leaflet-tooltip-pane { z-index: 650 !important; }
  .leaflet-popup-pane   { z-index: 700 !important; }
  /* User-locatie-stip bovenop alles (zoals voorheen toen alle panes z=10
     waren en userLocationPane als laatste in de DOM bovenaan stond). */
  .leaflet-userLocation-pane { z-index: 750 !important; }

  #train-panel, #station-panel, #vehicle-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--map-panel-width);
    max-width: min(720px, 85vw);
    z-index: 50;
    display: flex;
    flex-direction: column;
  }
  #train-panel.panel-ready, #station-panel.panel-ready, #vehicle-panel.panel-ready {
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  #train-panel.panel-open, #station-panel.panel-open, #vehicle-panel.panel-open {
    transform: translateX(0);
  }
  @media (max-width: 767px) {
    #train-panel, #station-panel, #vehicle-panel {
      top: auto !important;
      left: 0 !important;
      right: 0;
      bottom: env(safe-area-inset-bottom);
      width: 100% !important;
      max-width: 100% !important;
      height: calc(100dvh - 58px - env(safe-area-inset-bottom));
      transform: translateY(110%) !important;
      border-radius: 20px 20px 0 0;
    }
    #train-panel.panel-open, #station-panel.panel-open, #vehicle-panel.panel-open {
      transform: translateY(0) !important;
    }
    #train-panel.panel-peek, #station-panel.panel-peek, #vehicle-panel.panel-peek {
      transform: translateY(calc(100% - 4rem)) !important;
    }
    .mobile-panel-grip {
      display: flex !important;
    }
  }

  /* Forceer mobiele tabelweergave binnen het station side sheet. */
  #station-panel .sm\:table-cell { display: none !important; }
  #station-panel .sm\:hidden { display: block !important; }
  #station-panel .sm\:flex-row { flex-direction: column !important; }
  #station-panel .sm\:items-center { align-items: flex-start !important; }
  #station-panel .sm\:gap-1\.5 { gap: 0 !important; }

  .locate-control button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #003082;
    cursor: pointer;
    line-height: 1;
  }
  .locate-control button:focus-visible {
    outline: 2px solid #003082;
    outline-offset: -3px;
  }
  .locate-control.is-active button:focus-visible {
    outline-color: #fff;
  }
  .locate-control button:disabled {
    color: #9ca3af;
    cursor: wait;
  }
  .locate-control.is-active button {
    background: #003082;
    color: #fff;
  }
  .locate-control i {
    font-size: 1rem;
  }
  .leaflet-user-location-pane,
  .leaflet-user-location-pane canvas,
  .leaflet-user-location-pane svg {
    pointer-events: none !important;
  }

  #train-panel-content h2,
  #vehicle-panel-content h2 {
    padding-left: 0.75rem;
  }
  #train-panel-content .rounded-xl,
  #vehicle-panel-content .rounded-xl {
    border-radius: 0;
  }
  #train-panel-content .shadow-sm,
  #vehicle-panel-content .shadow-sm {
    box-shadow: none;
  }
  #train-panel-content .bg-white.rounded-xl.border.shadow-sm,
  #vehicle-panel-content .bg-white.rounded-xl.border.shadow-sm {
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.55) !important;
  }
  /* Materieelpaneel gebruikt bg-white secties (geen kaart-patroon) — ook doorzichtig maken */
  #vehicle-panel-content .bg-white {
    background: rgba(255, 255, 255, 0.55) !important;
  }
  #vehicle-panel-content table.bg-white,
  #vehicle-panel-content thead,
  #vehicle-panel-content tbody {
    background: transparent !important;
  }

  /* Leaflet controls onder de filter bar plaatsen */
  .leaflet-top { top: 52px; }

  /* ── Filterbalk ───────────────────────────────────────────────────── */
  #filter-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    overflow: hidden;
    transition: max-height 180ms ease;
    max-height: 52px;
    z-index: 30;
  }
  .filter-bar-peek-row { display: none; }
  #filter-bar-content {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
  }
  #filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #filter-controls::-webkit-scrollbar { display: none; }
  .filter-bar-chevron-btn {
    padding: 4px 10px;
    color: #94a3b8;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
  }
  .filter-bar-chevron-btn:hover { color: #003082; }
  @media (min-width: 641px) {
    .filter-bar-chevron-btn { display: none; }
  }
  #filter-train-count {
    margin-left: auto;
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    padding-right: 4px;
  }
  .filter-control { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .filter-label {
    font-size: 15px;
    color: #64748b;
    display: flex;
    align-items: center;
    cursor: help;
  }
  .filter-label i { line-height: 1; }
  /* Op desktop tonen we alleen het icoon (title-attribuut levert de tooltip);
     op mobiel staan de filters onder elkaar — daar is ruimte voor de naam. */
  .filter-label-text { display: none; }
  .filter-speed-wrap { display: flex; align-items: center; gap: 6px; }
  .dual-range-track {
    position: relative;
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
  }
  .dual-range-bg {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    pointer-events: none;
  }
  .dual-range-fill {
    position: absolute;
    height: 4px;
    background: #003082;
    border-radius: 2px;
    pointer-events: none;
  }
  .dual-range-track input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
  }
  .dual-range-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid #003082;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  .dual-range-track input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid #003082;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  .dual-range-track input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #FFC917;
    outline-offset: 1px;
  }
  .speed-display {
    font-size: 11px;
    color: #1e293b;
    font-family: ui-monospace, monospace;
    min-width: 48px;
  }
  .filter-type-chips { display: flex; gap: 3px; }
  .ms-btn {
    padding: 2px 10px;
    font-size: 11px;
    background: white;
    color: #003082;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.6;
    transition: background 100ms, color 100ms;
  }
  .ms-btn-active { background: #003082; color: white; }
  .ms-btn:hover:not(.ms-btn-active) { background: #e8edf5; }
  .type-chip {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: background 100ms, color 100ms, border-color 100ms;
    line-height: 1.6;
  }
  .type-chip.active {
    background: #003082;
    color: white;
    border-color: #003082;
  }
  .type-chip:hover:not(.active) { border-color: #003082; color: #003082; }
  .type-chip.disabled:not(.active) {
    opacity: 0.4;
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f8fafc;
  }
  .type-chip.disabled:not(.active):hover { border-color: #cbd5e1; color: #94a3b8; }
  #filter-active-count {
    background: #003082;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    padding: 0 5px;
    line-height: 1.6;
  }
  .filter-bar-handle { display: none; }

  /* ── Bottom sheet op mobiel ─────────────────────────────────────────
     Plak de filterbar onderaan, stapel controls verticaal en geef hem
     sheet-randen + drag-handle. Open/dicht via dezelfde peek-row en
     chevron-knop als op desktop. */
  @media (max-width: 640px) {
    #filter-bar {
      top: auto;
      bottom: 0;
      max-height: 80vh;
      border-bottom: none;
      border-top: 1px solid rgba(229, 231, 235, 0.6);
      border-radius: 14px 14px 0 0;
      box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.10);
      overflow-y: auto;
      overscroll-behavior: contain;
      transform: translateY(0);
      transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    #filter-bar.filter-bar-collapsed {
      transform: translateY(100%);
      overflow: hidden;
    }
    #filter-bar.filter-bar-dragging { transition: none; }
    #filter-bar.filter-bar-collapsed #filter-bar-content { display: none; }
    /* Peek-balk vervalt — sheet komt enkel via de FAB tevoorschijn. */
    .filter-bar-peek-row { display: none !important; }
    .leaflet-top { top: 0; }

    .filter-bar-handle {
      position: relative;
      display: block;
      height: 20px;
      margin: 0;
      cursor: grab;
      touch-action: none;
      flex-shrink: 0;
    }
    .filter-bar-handle::before {
      content: '';
      position: absolute;
      left: 50%; top: 50%;
      width: 60px; height: 4px;
      margin: -2px 0 0 -30px;
      background: #cbd5e1;
      border-radius: 99px;
      transition: background 120ms;
    }
    #filter-bar.filter-bar-dragging .filter-bar-handle { cursor: grabbing; }
    #filter-bar.filter-bar-dragging .filter-bar-handle::before { background: #94a3b8; }
    #filter-bar.filter-bar-collapsed .filter-bar-handle { display: none; }
    .filter-bar-peek-row {
      justify-content: center;
      height: 38px;
      font-size: 13px;
      color: #475569;
      font-weight: 600;
    }
    #filter-bar-content {
      flex-direction: column;
      align-items: stretch;
      height: auto;
      padding: 6px 0 16px;
      gap: 4px;
    }
    #filter-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
      padding: 8px 16px 4px;
      overflow-x: hidden;
    }
    .filter-control {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      white-space: normal;
    }
    .filter-type-chips { flex-wrap: wrap; }
    .type-chip { padding: 4px 10px; font-size: 12px; }
    .dual-range-track { width: 100%; }
    .filter-label {
      font-size: 13px;
      font-weight: 600;
      gap: 6px;
      cursor: default;
    }
    .filter-label-text {
      display: inline;
      color: #475569;
    }
    .filter-speed-wrap { width: 100%; }
    .speed-display { margin-left: auto; }
    #filter-train-count {
      margin: 0 16px;
      padding: 6px 0 0;
      border-top: 1px solid #e2e8f0;
      font-size: 12px;
    }
    .filter-bar-chevron-btn {
      align-self: center;
      padding: 6px 12px;
      font-size: 13px;
    }
    .filter-bar-chevron-btn::after {
      content: " sluiten";
      font-size: 12px;
      color: inherit;
    }
  }
  /* Map display control — index-only extra: disruption-overlay knoppen.
     Basis-stijl staat in base.html (gedeeld met verstoringen/afwijkingen). */
  .display-control [data-disruption="DISRUPTION"] i  { color: #dc2626; }
  .display-control [data-disruption="MAINTENANCE"] i { color: #d97706; }
  .dc-tooltip { font-size: 11px; }
  .speed-legend {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    /* Schaduw matcht .leaflet-bar default zodat de legenda en andere
       map-controls visueel hetzelfde dieptegevoel hebben. */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    /* Standaard ingeklapt: alleen toggle-knop zichtbaar. JS voegt op
       desktop direct .legend-expanded toe → krijgt panel-padding. */
    padding: 0;
    position: relative;
  }
  .legend-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    color: #003082;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 100ms;
  }
  .legend-toggle:hover { background: rgba(0, 48, 130, 0.08); }
  .legend-toggle i { font-size: 1rem; }
  .speed-legend .legend-content { display: none; }
  .speed-legend.legend-expanded {
    padding: 6px 10px;
  }
  .speed-legend.legend-expanded .legend-content { display: block; }
  .speed-legend.legend-expanded .legend-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    color: #94a3b8;
    z-index: 1;
  }
  /* Op touch-apparaten doet Leaflet hetzelfde voor .leaflet-bar:
     dikker/donkerder rand en geen schaduw. Spiegel dat zodat de legenda
     visueel gelijk staat aan de andere map-controls op touch. */
  .leaflet-touch .speed-legend {
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: none;
    background-clip: padding-box;
  }

  /* Floating filter-knop — alleen mobiel; vervangt de oude peek-balk. */
  .filter-fab-wrap { display: none; }
  @media (max-width: 640px) {
    .filter-fab-wrap { display: block; }
    .filter-fab-wrap.hidden { display: none; }
    /* Knop zelf is transparant + alleen icon-centering — kopie van
       .display-control button. Frosted-glass + border zit op de wrapper
       (via .leaflet-bar in base.html), zodat de FAB structureel identiek
       is aan de andere map-controls en het icoon hetzelfde rendert. */
    .filter-fab {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      background: transparent;
      border: 0;
      color: #003082;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      transition: background 100ms, color 100ms;
    }
    .filter-fab:hover { background: rgba(0, 48, 130, 0.08); }
    .filter-fab i { font-size: 1rem; }
    .filter-fab-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: #FFC917;
      color: #003082;
      font-size: 9px;
      font-weight: 800;
      border-radius: 99px;
      min-width: 16px;
      height: 16px;
      line-height: 16px;
      padding: 0 4px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }
    .filter-fab-badge.hidden { display: none; }
  }
  .speed-legend-bar {
    height: 10px;
    width: 160px;
    border-radius: 2px;
  }
  .legend-histogram {
    display: block;
    width: 200px;
    height: 36px;
    border-radius: 2px;
    background: transparent;
  }
  /* Horizontale variant: hoogte schaalt met aantal items, dus geen fixed height. */
  .legend-histogram-h { height: auto; }
  .legend-bin-labels {
    display: grid;
    width: 200px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-top: 3px;
    text-align: center;
  }
  .legend-bin-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .legend-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 2px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
  }
  .speed-legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #475569;
    margin-top: 3px;
    width: 200px;
  }
  .speed-legend-unknown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
  }
  .speed-legend-unknown .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
  }
  .legend-stationary-line {
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
  }
  .legend-stationary-line.hidden { display: none; }
  .legend-unit-note {
    font-size: 11px;
    font-style: italic;
    color: #475569;
    margin-top: 4px;
    text-align: right;
  }
  /* Title-row bovenin de uitgeklapte legenda. Houdt rechts ruimte vrij
     voor de toggle-knop (× rechtsboven) zodat die niet over de histogram
     valt. 'aantal ritten' subtitel inline via .legend-unit. */
  .legend-title-row {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 26px 4px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
  }
  .legend-title-row .legend-unit,
  .legend-section-title .legend-unit {
    font-weight: 400;
    font-size: 11px;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
  }
  .legend-pie {
    display: block;
    margin: 0 auto;
  }
  .legend-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
    margin-top: 4px;
    font-size: 11px;
    color: #475569;
  }
  .legend-cat-chips .legend-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }
  .legend-cat-chips .cat-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
  }

  /* Inklapbare-legenda-regels staan nu in de defaults (boven) zodat ze
     zowel op desktop als mobiel werken. Verschil tussen viewports zit in
     het start-gedrag: desktop opent uitgeklapt (.legend-expanded via JS),
     mobiel ingeklapt. */

  /* Zoekbalk en locatieknop naast elkaar als één compound control */
  .top-row-controls { display: flex; align-items: flex-start; gap: 8px; margin: 10px 10px 0 0; }
  .top-row-controls .leaflet-control { margin: 0; float: none; clear: none; }

  /* ── Time-travel slider (Leaflet control bottom-left) ───────────────── */
  .time-control {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    padding: 0;
    position: relative;
  }
  .time-control.tc-replay { background: rgba(255, 247, 220, 0.85); }
  .time-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    color: #003082;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 100ms;
  }
  .time-toggle:hover { background: rgba(0, 48, 130, 0.08); }
  .time-toggle i { font-size: 1rem; }
  .time-control .time-content { display: none; }
  .time-control.tc-expanded {
    padding: 6px 10px;
    min-width: 260px;
  }
  .time-control.tc-expanded .time-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding-right: 22px;  /* ruimte voor de close-knop rechtsboven */
  }
  .time-control.tc-expanded .time-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    color: #94a3b8;
    z-index: 1;
  }
  .tc-iconbtn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 48, 130, 0.25);
    color: #003082;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background 100ms;
    flex-shrink: 0;
  }
  .tc-iconbtn:hover:not(:disabled) { background: rgba(0, 48, 130, 0.08); }
  .tc-iconbtn:disabled { opacity: 0.4; cursor: not-allowed; }
  .tc-iconbtn.tc-live { width: auto; padding: 0 8px; font-size: 11px; }
  #tc-range { flex: 1; accent-color: #003082; min-width: 110px; }
  #tc-label { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; color: #475569; font-size: 11px; }
  #tc-label.tc-live-label { color: #16a34a; font-weight: 600; }
  .leaflet-touch .time-control {
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: none;
    background-clip: padding-box;
  }

  /* ── Uniforme zoekbalk ───────────────────────────────────────────────── */
  .unified-search-control {
    position: relative;
    border-radius: 4px;
    min-width: 200px;
    max-width: 280px;
    font: inherit;
  }
  .usc-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .usc-icon {
    position: absolute;
    left: 9px;
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
  }
  .unified-search-control input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 7px 10px 7px 30px;
    font-size: 13px;
    outline: none;
    border-radius: 4px;
    color: #111827;
  }
  .unified-search-control input[type="text"]:focus {
    box-shadow: 0 0 0 2px #003082;
  }
  #unified-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    list-style: none;
    margin: 2px 0 0 0;
    padding: 4px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  #unified-search-dropdown.usc-hidden { display: none; }
  .usc-group {
    padding: 4px 10px 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
  }
  .usc-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
  }
  .usc-item:hover, .usc-item-active { background: #f3f4f6; }
  .usc-item i { color: #003082; font-size: 13px; }
  .usc-label { flex: 1; }
  .usc-badge { font-size: 11px; color: #6b7280; }
  .usc-empty { padding: 8px 10px; font-size: 13px; color: #9ca3af; }

