    :root {
      /* Refined slate-dark palette */
      --bg: #0a0e14;
      --bg2: #0f1520;
      --surf: #141c28;
      --surf2: #1a2335;
      --surf3: #21304a;
      --ink: #edf2f9;
      --ink2: #b8c8de;
      --mut: #6b83a0;
      --line: rgba(255, 255, 255, 0.07);
      --line2: rgba(255, 255, 255, 0.14);
      /* Accent: warm amber */
      --gold: #e8a844;
      --gold-glow: rgba(232, 168, 68, 0.55);
      --gold-light: #f5c97a;
      /* Accent: teal */
      --teal: #38c9b8;
      --teal-dim: rgba(56, 201, 184, 0.18);
      --water-cyan: #4fc8e8;
      --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --heading: 'Montserrat', 'Inter', sans-serif;
      --panel-width: 390px;
      --header-h: 62px;
      color-scheme: dark;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100%;
      width: 100%;
      overflow: hidden;
    }

    body {
      background: var(--bg);
      color: var(--ink);
      font: 14px/1.55 var(--sans);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .app {
      height: 100vh;
      display: grid;
      grid-template-rows: var(--header-h) 1fr;
    }

    /* ── Header ── */
    .top {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 0 28px;
      background: rgba(10, 14, 22, 0.92);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
      border-bottom: 1px solid var(--line);
      z-index: 85;
      position: relative;
    }

    /* Accent gradient line at very bottom of header */
    .top::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg,
        transparent 0%,
        var(--teal) 20%,
        var(--gold) 50%,
        var(--teal) 80%,
        transparent 100%);
      opacity: 0.55;
    }

    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo {
      height: 32px;
      max-width: 100px;
      object-fit: contain;
      filter: brightness(1.1);
    }

    .logo-divider {
      width: 1px;
      height: 26px;
      background: var(--line2);
      flex-shrink: 0;
    }

    .brand {
      display: flex;
      flex-direction: column;
    }

    .brand b {
      font-family: var(--heading);
      font-size: 14px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: -0.01em;
      line-height: 1.2;
    }

    .brand span {
      font-size: 10px;
      font-weight: 500;
      color: var(--mut);
      letter-spacing: 0.02em;
    }

    .header-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px 4px 8px;
      background: var(--teal-dim);
      border: 1px solid rgba(56, 201, 184, 0.28);
      border-radius: 99px;
      font-size: 10.5px;
      font-weight: 600;
      color: var(--teal);
      letter-spacing: 0.03em;
    }

    .header-badge::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 6px var(--teal);
      animation: pulseDot 2.4s ease-in-out infinite;
    }

    @keyframes pulseDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(0.75); }
    }

    .view-all-btn {
      margin-left: 8px;
      padding: 6px 14px 6px 12px;
      font-family: var(--sans);
      font-size: 11.5px;
      font-weight: 600;
      border: 1px solid var(--line2);
      background: rgba(255, 255, 255, 0.04);
      color: var(--ink2);
      border-radius: 99px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all .22s cubic-bezier(.2, 0, 0, 1);
    }

    .view-all-btn svg {
      width: 13px;
      height: 13px;
      transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .view-all-btn:hover {
      background: rgba(232, 168, 68, 0.1);
      color: var(--gold-light);
      border-color: rgba(232, 168, 68, 0.4);
      transform: translateY(-1px);
    }

    .view-all-btn:hover svg {
      transform: rotate(-180deg);
    }

    .view-all-btn:active {
      transform: scale(0.96);
    }

    .searchwrap {
      margin-left: auto;
      position: relative;
      width: min(320px, 28vw);
    }

    .searchwrap > svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 14px;
      height: 14px;
      color: var(--mut);
      pointer-events: none;
      transition: color .2s;
    }

    .searchwrap:focus-within > svg {
      color: var(--gold);
    }

    .search {
      width: 100%;
      padding: 7px 32px 7px 36px;
      border: 1px solid var(--line);
      border-radius: 99px;
      background: rgba(255, 255, 255, 0.04);
      outline: none;
      font-size: 12.5px;
      color: var(--ink);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: all .25s;
    }

    .search:focus {
      border-color: var(--gold);
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 0 14px rgba(232, 168, 68, 0.28);
    }

    .search-clear-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.14);
      color: var(--ink);
      font-size: 13px;
      line-height: 1;
      display: none;
      place-items: center;
      cursor: pointer;
      transition: all .15s;
    }

    .search-clear-btn:hover {
      background: rgba(255, 255, 255, 0.28);
      transform: translateY(-50%) scale(1.1);
    }

    /* Floating Instant Search Dropdown */
    .search-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      background: rgba(14, 20, 32, 0.96);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0,0,0,0.4);
      overflow: hidden;
      max-height: 320px;
      overflow-y: auto;
      z-index: 100;
      display: none;
    }

    .search-dropdown::-webkit-scrollbar {
      width: 4px;
    }

    .search-dropdown::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 99px;
    }

    .search-dropdown.active {
      display: block;
      animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes dropdownFade {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .search-item {
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: background .15s;
    }

    .search-item:last-child {
      border-bottom: none;
    }

    .search-item:hover,
    .search-item.highlighted {
      background: rgba(232, 168, 68, 0.12);
    }

    .search-item-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .search-item-info {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-width: 0;
    }

    .search-item-name {
      font-size: 12.5px;
      font-weight: 600;
      color: #ffffff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-match {
      font-size: 11px;
      color: var(--mut);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-badge {
      font-family: var(--heading);
      font-size: 9.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 99px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--ink2);
      flex-shrink: 0;
    }

    .search-empty {
      padding: 14px;
      text-align: center;
      color: var(--mut);
      font-size: 12px;
    }

    /* ── Main Layout ── */
    .stage-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      touch-action: none;
      background:
        radial-gradient(ellipse 80% 60% at 50% 40%, #0f1a2e 0%, #080c15 60%, #040609 100%);
      user-select: none;
    }

    /* Subtle cartographic dot-grid */
    .stage-wrapper::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
      background-size: 36px 36px;
      pointer-events: none;
    }

    /* Vignette overlay */
    .stage-wrapper::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 50%, rgba(4,6,10,0.65) 100%);
      pointer-events: none;
    }

    .map-container {
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
      transform-origin: 0 0;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .map-svg {
      width: 100%;
      height: 100%;
      display: block;
      shape-rendering: geometricPrecision;
      text-rendering: geometricPrecision;
    }

