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

    :root {
      /* ─── Dark theme (default) — warm, Republic-inspired ─── */
      --bg: #141118;
      --bg-elevated: #1a1620;
      --bg-card: rgba(255,255,255,0.03);
      --bg-panel: rgba(10,10,20,0.92);
      --bg-glass: rgba(20,18,28,0.88);
      --bg-glass-light: rgba(255,255,255,0.06);

      /* Warm stone greys */
      --grey-1: #f4f2ef;
      --grey-2: #dddbd5;
      --grey-3: #98938e;
      --grey-4: #57534e;
      --grey-5: #383633;
      --grey-6: #1c1917;

      /* Text */
      --text: #e8e6e3;
      --text-dim: #98938e;
      --text-bright: #ffffff;
      --text-muted: #57534e;

      /* Borders */
      --border: rgba(255,255,255,0.06);
      --border-light: rgba(255,255,255,0.10);
      --border-strong: rgba(255,255,255,0.18);

      /* Brand */
      --blue: #1A2E3B;
      --orange: #FF6600;
      --orange-soft: rgba(255,102,0,0.10);
      --orange-glow: rgba(255,102,0,0.35);
      --brand: #fd8055;

      /* ─── Energy sector categories (unified) ─── */
      --cat-solar: #eab308;
      --cat-solar-soft: rgba(234,179,8,0.10);
      --cat-wind: #14b8a6;
      --cat-wind-soft: rgba(20,184,166,0.10);
      --cat-nuclear: #3b82f6;
      --cat-nuclear-soft: rgba(59,130,246,0.10);
      --cat-oilgas: #ef4444;
      --cat-oilgas-soft: rgba(239,68,68,0.10);
      --cat-hydro: #06b6d4;
      --cat-hydro-soft: rgba(6,182,212,0.10);
      --cat-biomass: #22c55e;
      --cat-biomass-soft: rgba(34,197,94,0.10);
      --cat-geo: #ec4899;
      --cat-geo-soft: rgba(236,72,153,0.10);
      --cat-grid: #8b5cf6;
      --cat-grid-soft: rgba(139,92,246,0.10);

      /* Panels */
      --radius-xl: 18px;
      --radius-lg: 14px;
      --radius-md: 10px;
      --radius-sm: 6px;
      --edge-gap: 12px;
      --panel-gap: 12px;

      /* Typography */
      --font-sans: 'Manrope', 'Inter', system-ui, sans-serif;
      --font-serif: 'Newsreader', Georgia, serif;
      --font-display: 'Newsreader', Georgia, serif;

      /* Transitions */
      --t-fast: 0.15s cubic-bezier(.4,0,.2,1);
      --t-med: 0.25s cubic-bezier(.4,0,.2,1);
      --t-slow: 0.35s cubic-bezier(.16,1,.3,1);
    }

    /* ─── Light theme ─── */
    [data-theme="light"] {
      --bg: #eceae4;
      --bg-elevated: #f4f2ef;
      --bg-card: rgba(255,255,255,0.5);
      --bg-glass: rgba(255,255,255,0.88);
      --bg-glass-light: rgba(0,0,0,0.04);

      --text: #1a1a2e;
      --text-dim: #5a5a7a;
      --text-bright: #0a0a14;
      --text-muted: #8a8aaa;

      --border: rgba(0,0,0,0.07);
      --border-light: rgba(0,0,0,0.10);
      --border-strong: rgba(0,0,0,0.18);

      --orange-soft: rgba(255,102,0,0.12);
    }

    /* ─── Typography utility classes ─── */
    .font-serif { font-family: var(--font-serif); }
    .font-display { font-family: var(--font-display); font-optical-sizing: auto; letter-spacing: -0.02em; }
    .title-xl { font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
    .title-lg { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
    .title-md { font-family: var(--font-serif); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
    .ui-sm { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0; }
    .ui-xs { font-family: var(--font-sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--text);
      height: 100vh;
      width: 100vw;
      overflow: hidden;
      position: relative;
    }

    /* === GLOBE CONTAINER === */
    #globeViz {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    /* === HEADER === */
    header {
      position: fixed;
      top: 32px;
      left: 12px;
      right: 12px;
      height: 46px;
      background: linear-gradient(
        135deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0.08) 60%,
        rgba(255,255,255,0.03) 100%
      );
      backdrop-filter: blur(24px) saturate(1.4);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 18px;
      box-shadow:
        0 4px 30px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset;
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 8px;
      z-index: 100;
      overflow: visible;
    }

    /* Liquid glass shine effect */
    header::before {
      content: '';
      position: absolute;
      top: 0;
      left: -50%;
      width: 200%;
      height: 50%;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 30%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 70%,
        transparent 100%
      );
      border-radius: 18px 18px 0 0;
      pointer-events: none;
    }

    /* Subtle animated refraction */
    header::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255,255,255,0.05) 0%,
        transparent 50%
      );
      pointer-events: none;
      animation: liquidShift 8s ease-in-out infinite;
    }

    @keyframes liquidShift {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(5%, 2%) rotate(1deg); }
      66% { transform: translate(-3%, -1%) rotate(-0.5deg); }
    }

    

    .menu-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border-light); }
    .menu-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .logo-icon {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--orange), #ff8533);
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: #fff;
      box-shadow: 
        0 2px 12px rgba(255,102,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    }

    .logo-text h1 {
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1.1;
    }

    .logo-text h1 span { color: var(--orange); }

    .logo-sub {
      font-size: 10px;
      color: var(--text-dim);
      font-weight: 500;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .menu-btn {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 8px;
      cursor: pointer;
      color: var(--text-dim);
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .menu-btn:hover, .menu-btn.active {
      background: rgba(255,102,0,0.2);
      color: #FF6600;
      border-color: rgba(255,102,0,0.4);
    }

    .search-box {
      flex: 1;
      max-width: 420px;
      position: relative;
    }

    .search-box svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      color: var(--text-dim);
      pointer-events: none;
    }

    #search {
      width: 100%;
      padding: 9px 16px 9px 40px;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit;
      font-size: 13px;
      outline: none;
      transition: all 0.25s;
    }

    #search::placeholder { color: var(--text-dim); }
    #search:focus { border-color: var(--orange); background: rgba(255,255,255,0.08); box-shadow: 0 0 20px rgba(255,102,0,0.1); }



    /* === FILTER PANEL (LEFT) === */
    .filter-panel {
      position: fixed;
      top: 56px;
      left: 0;
      bottom: 0;
      width: 300px;
      background: var(--bg-panel);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border);
      z-index: 90;
      overflow-y: auto;
      padding: 20px;
      transform: translateX(-100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .filter-panel.open { transform: translateX(0); }

    .filter-panel::-webkit-scrollbar { width: 4px; }
    .filter-panel::-webkit-scrollbar-track { background: transparent; }
    .filter-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

    .filter-section { margin-bottom: 24px; }

    .filter-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .filter-header h3 {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-dim);
      font-weight: 700;
    }

    .toggle-btn {
      background: none;
      border: none;
      color: var(--orange);
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 2px 6px;
      border-radius: 4px;
      transition: background 0.15s;
    }

    .toggle-btn:hover { background: rgba(255,102,0,0.1); }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .filter-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.15s;
      user-select: none;
    }

    .filter-item:hover { background: rgba(255,255,255,0.04); }

    .filter-item input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.15);
      border-radius: 4px;
      flex-shrink: 0;
      cursor: pointer;
      position: relative;
      transition: all 0.15s;
    }

    .filter-item input[type="checkbox"]:checked {
      background: var(--orange);
      border-color: var(--orange);
    }

    .filter-item input[type="checkbox"]:checked::after {
      content: '\2713';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
    }

    .filter-label {
      flex: 1;
      font-size: 12.5px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sector-dot {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
      border-radius: 4px;
    }
    .sector-dot svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .filter-count {
      font-size: 10px;
      color: var(--text-dim);
      font-weight: 600;
      background: rgba(255,255,255,0.05);
      padding: 2px 8px;
      border-radius: 10px;
      min-width: 24px;
      text-align: center;
    }

    /* === INFO PANEL (RIGHT) === */
    .info-panel {
      position: fixed;
      top: 96px;
      right: 12px;
      bottom: 12px;
      width: 380px;
      background: linear-gradient(
        160deg,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.06) 70%,
        rgba(255,255,255,0.02) 100%
      );
      backdrop-filter: blur(28px) saturate(1.4);
      -webkit-backdrop-filter: blur(28px) saturate(1.4);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 20px;
      box-shadow:
        0 8px 40px rgba(0,0,0,0.35),
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 -1px 0 rgba(0,0,0,0.15) inset;
      z-index: 90;
      overflow-y: auto;
      overflow-x: hidden;
      transform: translateX(calc(100% + 20px));
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .info-panel::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 40%;
      background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04) 0%,
        transparent 100%
      );
      border-radius: 20px 20px 0 0;
      pointer-events: none;
    }

    .info-panel.open { transform: translateX(0); }

    .info-panel::-webkit-scrollbar { width: 4px; }
    .info-panel::-webkit-scrollbar-track { background: transparent; }
    .info-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

    .info-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-dim);
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      z-index: 2;
    }

    .info-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

    .info-header {
      padding: 24px 24px 20px;
      border-bottom: 1px solid var(--border);
      position: relative;
    }

    .info-sector-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 4px 10px;
      border-radius: 6px;
      margin-bottom: 12px;
    }

    .info-sector-dot {
      width: 16px;
      height: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .info-sector-dot svg {
      display: block;
      filter: drop-shadow(0 0 5px var(--dot-color, currentColor));
    }

    .info-name {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-bright);
      margin-bottom: 6px;
      letter-spacing: -0.5px;
      line-height: 1.2;
    }

    .info-location {
      font-size: 13px;
      color: var(--text-dim);
      font-weight: 500;
    }

    .info-body { padding: 20px 24px; }

    .info-description {
      font-size: 13.5px;
      line-height: 1.7;
      color: var(--text);
      margin-bottom: 20px;
    }

    .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 20px;
    }

    .info-metric {
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      padding: 14px;
      border-radius: 10px;
    }

    .info-metric-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-dim);
      font-weight: 600;
      margin-bottom: 4px;
    }

    .info-metric-value {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-bright);
    }

    .info-metric-value.highlight { color: var(--orange); }

    .info-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      background: var(--orange);
      text-decoration: none;
      padding: 10px 20px;
      border-radius: 10px;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(255,102,0,0.3);
    }

    .info-link:hover { background: #ff8533; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,102,0,0.4); }

    /* === INFO PANEL: SUBSIDIARIES & PROJECTS SECTIONS === */
    .info-section { margin-bottom: 20px; }

    .info-section-title {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-dim);
      font-weight: 700;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .info-section-count {
      background: rgba(255,102,0,0.15);
      color: var(--orange);
      font-size: 9px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 8px;
    }

    .subsidiary-list, .project-list-panel {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .subsidiary-item, .project-item-panel {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      background: rgba(255,255,255,0.02);
      border-radius: 8px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.15s;
    }

    .subsidiary-item:hover, .project-item-panel:hover {
      background: rgba(255,255,255,0.06);
      border-color: var(--border-light);
    }

    .subsidiary-dot {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .subsidiary-dot svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .project-diamond-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .project-diamond-icon svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .subsidiary-info, .project-info-text {
      flex: 1;
      min-width: 0;
    }

    .subsidiary-name, .project-name-text {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-bright);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .subsidiary-location, .project-meta-text {
      font-size: 10px;
      color: var(--text-dim);
      margin-top: 1px;
    }

    /* === LEGEND (bottom-left) === */
    .legend {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: var(--bg-panel);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 18px;
      z-index: 80;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      max-width: 580px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 500;
      color: var(--text-dim);
      cursor: pointer;
      transition: color 0.15s;
    }

    .legend-item:hover { color: var(--text); }

    .legend-dot {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .legend-dot svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .legend-diamond {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .legend-diamond svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--orange));
    }

    /* === STATS BAR (inline in header) === */
    .stats-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
      flex-shrink: 0;
      font-size: 11px;
      color: var(--text-dim);
    }
    .stat-simple strong { color: #fff; font-weight: 700; }
    .stat-sep { opacity: 0.3; margin: 0 2px; }

    /* === STAT FILTER DROPDOWNS (liquid glass) === */
    .stat-chip {
      position: relative;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }
    .stat-chip:hover {
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,102,0,0.3);
    }
    .stat-chip.active {
      background: rgba(255,102,0,0.12);
      border-color: rgba(255,102,0,0.4);
    }
    .stat-chip .chip-arrow {
      font-size: 8px;
      opacity: 0.4;
      margin-left: 2px;
      transition: transform 0.2s;
    }
    .stat-chip.active .chip-arrow {
      transform: rotate(180deg);
      opacity: 0.8;
    }

    .stat-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(6px);
      min-width: 220px;
      max-height: 340px;
      overflow-y: auto;
      background: rgba(12, 10, 24, 0.85);
      backdrop-filter: blur(40px) saturate(1.6);
      -webkit-backdrop-filter: blur(40px) saturate(1.6);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 16px;
      padding: 8px;
      z-index: 10001;
      box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset, 0 1px 0 rgba(255,255,255,0.08) inset;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .stat-dropdown.open {
      opacity: 1;
      pointer-events: all;
      transform: translateX(-50%) translateY(0);
    }
    .stat-dropdown::-webkit-scrollbar { width: 4px; }
    .stat-dropdown::-webkit-scrollbar-track { background: transparent; }
    .stat-dropdown::-webkit-scrollbar-thumb { background: rgba(255,102,0,0.3); border-radius: 4px; }

    .dd-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 10px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 4px;
    }
    .dd-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: rgba(255,255,255,0.4);
    }
    .dd-toggle-all {
      font-size: 10px;
      color: #FF6600;
      cursor: pointer;
      font-weight: 600;
      background: none;
      border: none;
      padding: 2px 6px;
      border-radius: 6px;
      transition: background 0.15s;
    }
    .dd-toggle-all:hover {
      background: rgba(255,102,0,0.15);
    }

    .dd-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.15s;
      font-size: 12.5px;
      color: rgba(255,255,255,0.75);
    }
    .dd-item:hover {
      background: rgba(255,255,255,0.08);
      color: #fff;
    }
    .dd-item.checked {
      color: #fff;
    }
    .dd-item.unchecked {
      opacity: 0.4;
    }

    .dd-check {
      width: 16px;
      height: 16px;
      border-radius: 5px;
      border: 1.5px solid rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s;
      font-size: 10px;
    }
    .dd-item.checked .dd-check {
      background: rgba(255,102,0,0.8);
      border-color: #FF6600;
      color: #fff;
    }
    .dd-item.unchecked .dd-check {
      background: transparent;
      border-color: rgba(255,255,255,0.15);
    }

    .dd-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .dd-name {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dd-count {
      font-size: 10px;
      color: rgba(255,255,255,0.3);
      font-weight: 600;
      flex-shrink: 0;
    }

        .stat-chip-label {
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
      font-weight: 600;
      line-height: 1;
    }

    /* === VIEW TOGGLE (header) === */
    .view-toggle {
      display: flex;
      align-items: center;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 3px;
      gap: 2px;
      flex-shrink: 0;
    }

    .view-toggle-btn {
      padding: 5px 12px;
      border: none;
      border-radius: 9px;
      font-family: inherit;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-dim);
      background: transparent;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      line-height: 1;
    }

    .view-toggle-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

    .view-toggle-btn .vt-arrow {
      font-size: 9px;
      margin-left: 3px;
      opacity: 0.6;
      transition: transform 0.2s;
    }
    .view-toggle-btn:hover .vt-arrow { opacity: 1; }

    .view-toggle-btn.active {
      color: #fff;
      background: var(--orange);
      box-shadow: 0 2px 8px rgba(255,102,0,0.35);
    }

    .vt-item { position: relative; }

    .vt-dropdown {
      display: none;
      position: fixed;
      top: 58px;
      min-width: 220px;
      max-height: 400px;
      overflow-y: auto;
      background: rgba(20,20,25,0.96);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 10px 0;
      box-shadow: 0 12px 40px rgba(0,0,0,0.5);
      z-index: 200;
    }
    .vt-dropdown.open { display: block; }

    .vt-dd-section { padding: 6px 14px; }
    .vt-dd-section + .vt-dd-section { border-top: 1px solid rgba(255,255,255,0.08); }

    .vt-dd-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--orange);
      margin-bottom: 6px;
    }

    .vt-dd-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 4px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
      color: var(--text-dim);
      transition: all 0.15s;
    }
    .vt-dd-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
    .vt-dd-item.checked { color: #fff; }
    .vt-dd-item .dd-check {
      width: 16px; height: 16px;
      border-radius: 4px;
      border: 1.5px solid rgba(255,255,255,0.25);
      display: flex; align-items: center; justify-content: center;
      font-size: 10px;
      flex-shrink: 0;
      transition: all 0.15s;
    }
    .vt-dd-item.checked .dd-check {
      background: var(--orange);
      border-color: var(--orange);
    }
    .vt-dd-item .dd-count {
      margin-left: auto;
      font-size: 10px;
      color: rgba(255,255,255,0.3);
    }

    /* === TIME WIDGET (discreet) === */
    .time-widget {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      background: rgba(10,10,20,0.5);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 20px;
      z-index: 80;
      font-size: 11px;
      color: var(--text-dim);
      letter-spacing: 0.5px;
      opacity: 0.5;
      transition: opacity 0.3s;
      cursor: default;
      user-select: none;
    }
    .time-widget:hover {
      opacity: 1;
      border-color: rgba(255,255,255,0.12);
    }
    .time-widget .tw-sun {
      font-size: 13px;
    }
    .time-widget .tw-utc {
      font-weight: 600;
      color: var(--text-soft);
      font-family: 'Space Grotesk', monospace;
    }
    .time-widget .tw-sep {
      color: rgba(255,255,255,0.15);
      margin: 0 2px;
    }
    .time-widget .tw-local {
      color: var(--orange);
      font-weight: 600;
      font-family: 'Space Grotesk', monospace;
      opacity: 0;
      max-width: 0;
      overflow: hidden;
      transition: all 0.3s;
    }
    .time-widget:hover .tw-local,
    .time-widget.show-local .tw-local {
      opacity: 1;
      max-width: 200px;
    }
    .time-widget .tw-zone {
      font-size: 9px;
      color: var(--text-dim);
      opacity: 0;
      max-width: 0;
      overflow: hidden;
      transition: all 0.3s;
    }
    .time-widget:hover .tw-zone,
    .time-widget.show-local .tw-zone {
      opacity: 0.7;
      max-width: 100px;
      margin-left: 4px;
    }

    @media (max-width: 768px) {
      .time-widget { bottom: 10px; font-size: 10px; padding: 4px 10px; }
    }

    /* === SEARCH RESULTS DROPDOWN === */
    .search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 4px;
      background: rgba(13,13,26,0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border-light);
      border-radius: 10px;
      max-height: 320px;
      overflow-y: auto;
      display: none;
      z-index: 200;
    }

    .search-results.visible { display: block; }

    .search-result-item {
      padding: 10px 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: background 0.1s;
      border-bottom: 1px solid var(--border);
    }

    .search-result-item:last-child { border-bottom: none; }
    .search-result-item:hover { background: rgba(255,255,255,0.05); }

    .search-result-dot {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .search-result-dot svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .search-result-diamond {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .search-result-diamond svg {
      display: block;
      filter: drop-shadow(0 0 4px var(--dot-color, currentColor));
    }

    .search-result-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-bright);
    }

    .search-result-meta {
      font-size: 11px;
      color: var(--text-dim);
      margin-left: auto;
      white-space: nowrap;
    }

    .search-result-tag {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 2px 6px;
      border-radius: 4px;
      background: rgba(255,255,255,0.06);
      color: var(--text-dim);
    }

    /* === MARKER SYSTEM (premium globe markers) === */
    .mk {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: all !important;
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, opacity 0.3s ease;
    }
    .mk:hover {
      transform: scale(1.25);
      z-index: 100;
      filter: brightness(1.15);
    }
    .mk.dimmed {
      opacity: 0.08;
      pointer-events: none !important;
    }
    .mk.dimmed .mk__ring {
      animation: none;
      opacity: 0;
    }

    /* Marker body — dark glass circle with colored border */
    .mk__body {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, rgba(45,45,65,0.92), rgba(12,12,22,0.96));
      border: 2px solid var(--mk-color, #aaa);
      box-shadow:
        0 0 3px var(--mk-color, #aaa),
        0 0 10px var(--mk-glow, transparent),
        0 2px 8px rgba(0,0,0,0.4);
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .mk:hover .mk__body {
      border-color: #fff;
      box-shadow:
        0 0 6px var(--mk-color, #aaa),
        0 0 16px var(--mk-glow, transparent),
        0 4px 16px rgba(0,0,0,0.5);
    }
    .mk__body svg {
      display: block;
      filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
    }

    /* ── Sizes per type ── */
    .mk--gg .mk__body { width: 36px; height: 36px; border-width: 2.5px; }
    .mk--gg .mk__body svg { width: 20px; height: 20px; }
    .mk--eti .mk__body { width: 28px; height: 28px; }
    .mk--eti .mk__body svg { width: 15px; height: 15px; }
    .mk--pme .mk__body { width: 22px; height: 22px; }
    .mk--pme .mk__body svg { width: 12px; height: 12px; }

    /* ── Project markers — diamond shape ── */
    .mk--proj .mk__body {
      width: 26px;
      height: 26px;
      border-radius: 4px;
      transform: rotate(45deg);
    }
    .mk--proj .mk__body svg {
      width: 14px; height: 14px;
      transform: rotate(-45deg);
    }

    /* ── Cluster markers — colored by dominant sector ── */
    .mk--cluster .mk__body {
      width: 44px;
      height: 44px;
      font-size: 14px;
      font-weight: 800;
      color: #fff;
      font-family: 'Inter', system-ui, sans-serif;
      letter-spacing: -0.5px;
      text-shadow: 0 1px 4px rgba(0,0,0,0.7);
      background: radial-gradient(circle at 35% 30%, var(--mk-cluster-bg, rgba(50,40,30,0.92)), rgba(10,8,6,0.93));
      border-width: 2.5px;
      border-style: dashed;
      border-color: var(--mk-cluster-border, var(--mk-color, #aaa));
      box-shadow: 0 0 12px var(--mk-cluster-bg, transparent), inset 0 0 8px var(--mk-cluster-bg, transparent);
    }
    .mk--cluster-sm .mk__body { width: 36px; height: 36px; font-size: 12px; }
    .mk--cluster .mk__ring {
      border-color: var(--mk-cluster-border, var(--mk-color, #aaa));
    }

    /* ── Subsidiary markers — tiny glowing dot ── */
    .mk--sub {
      pointer-events: none;
      cursor: default;
    }
    .mk--sub .mk__body {
      width: 8px;
      height: 8px;
      border-width: 1.5px;
      background: var(--mk-color, #aaa);
      opacity: 0.55;
      box-shadow: 0 0 3px var(--mk-color, #aaa);
    }

    /* ── Stack markers (same-address overlap) ── */
    .mk--stack .mk__stack-badge {
      position: absolute;
      top: -5px;
      right: -8px;
      min-width: 18px;
      height: 18px;
      background: var(--orange);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      font-family: 'Inter', system-ui, sans-serif;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 5px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.5);
      z-index: 5;
      pointer-events: none;
      line-height: 1;
    }
    /* Stacked card shadows behind marker body */
    .mk--stack .mk__body::before,
    .mk--stack .mk__body::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background: rgba(30,30,50,0.7);
      border: 1.5px solid var(--mk-color, #aaa);
      z-index: -1;
    }
    .mk--stack .mk__body::before {
      top: 3px;
      left: 3px;
      opacity: 0.4;
    }
    .mk--stack .mk__body::after {
      top: 6px;
      left: 6px;
      opacity: 0.2;
    }

    /* Stack dropdown */
    .mk__stack-dropdown {
      position: absolute;
      bottom: calc(100% + 14px);
      left: 50%;
      transform: translateX(-50%) translateY(6px);
      background: rgba(10, 12, 22, 0.96);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 10px;
      padding: 5px;
      min-width: 220px;
      max-height: 380px;
      overflow-y: auto;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
      z-index: 300;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }
    .mk__stack-dropdown.open {
      opacity: 1;
      pointer-events: all;
      transform: translateX(-50%) translateY(0);
    }
    /* Elevate the entire marker when dropdown is open */
    .mk--stack:has(.mk__stack-dropdown.open) {
      z-index: 500 !important;
    }
    .mk__stack-dropdown-title {
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: rgba(255,255,255,0.35);
      padding: 4px 8px 6px;
    }
    .mk__stack-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 7px;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }
    .mk__stack-item:hover {
      background: rgba(255,255,255,0.08);
    }
    .mk__stack-item-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1.5px solid var(--item-color, #aaa);
      background: radial-gradient(circle at 35% 30%, rgba(45,45,65,0.92), rgba(12,12,22,0.96));
    }
    .mk__stack-item-icon svg {
      width: 12px;
      height: 12px;
    }
    .mk__stack-item-info {
      overflow: hidden;
    }
    .mk__stack-item-name {
      font-size: 11.5px;
      font-weight: 600;
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mk__stack-item-sub {
      font-size: 9.5px;
      color: rgba(255,255,255,0.45);
      margin-top: 1px;
    }
    /* Stack dropdown pagination */
    .mk__stack-search {
      padding: 4px 5px 2px;
    }
    .mk__stack-search input {
      width: 100%;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 6px;
      padding: 5px 8px;
      font-size: 11px;
      color: #fff;
      outline: none;
      font-family: inherit;
    }
    .mk__stack-search input::placeholder {
      color: rgba(255,255,255,0.3);
    }
    .mk__stack-search input:focus {
      border-color: rgba(255,255,255,0.25);
      background: rgba(255,255,255,0.1);
    }
    .mk__stack-pages {
      overflow: hidden;
    }
    .mk__stack-page {
      display: none;
    }
    .mk__stack-page.active {
      display: block;
    }
    .mk__stack-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 5px 0 3px;
      user-select: none;
    }
    .mk__stack-nav-btn {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      background: rgba(255,255,255,0.07);
      border: none;
      color: rgba(255,255,255,0.6);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: background 0.15s;
      padding: 0;
    }
    .mk__stack-nav-btn:hover {
      background: rgba(255,255,255,0.14);
    }
    .mk__stack-nav-btn:disabled {
      opacity: 0.25;
      cursor: default;
    }
    .mk__stack-nav-info {
      font-size: 10px;
      color: rgba(255,255,255,0.4);
    }
    .mk__stack-no-results {
      padding: 10px 8px;
      text-align: center;
      font-size: 10.5px;
      color: rgba(255,255,255,0.35);
    }

    /* ── Animated pulse ring ── */
    .mk__ring {
      position: absolute;
      top: 50%; left: 50%;
      width: 100%; height: 100%;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      border: 1.5px solid var(--mk-color, #aaa);
      animation: mk-pulse 2.5s cubic-bezier(0, 0.5, 0.5, 1) infinite;
      pointer-events: none;
    }
    .mk__ring--2 {
      animation-delay: 0.8s;
    }
    .mk__ring--3 {
      animation-delay: 1.6s;
    }
    /* Project ring inherits diamond shape */
    .mk--proj .mk__ring {
      border-radius: 4px;
      animation-name: mk-pulse-diamond;
    }
    /* Cluster ring dashed + sector color */
    .mk--cluster .mk__ring {
      border-style: dashed;
      border-color: var(--mk-cluster-border, var(--mk-color, #aaa));
    }

    @keyframes mk-pulse {
      0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
      100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    }
    @keyframes mk-pulse-diamond {
      0% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 0.5; }
      100% { transform: translate(-50%, -50%) rotate(45deg) scale(1.5); opacity: 0; }
    }

    /* ── Tooltip ── */
    .mk__tip {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(10, 12, 22, 0.94);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: #fff;
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 11px;
      font-family: 'Inter', system-ui, sans-serif;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease, transform 0.25s ease;
      border: 1px solid var(--mk-border, rgba(255,255,255,0.12));
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      z-index: 200;
    }
    .mk__tip-name {
      font-weight: 600;
      font-size: 12px;
    }
    .mk__tip-sub {
      font-size: 10px;
      color: rgba(255,255,255,0.55);
      margin-top: 1px;
    }
    /* Tooltip shown via JS class (delayed), NOT on :hover */
    .mk .mk__tip--visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ── Sector icon badge (inside tooltip) ── */
    .mk__tip-icon {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 3px;
    }
    .mk__tip-icon svg {
      vertical-align: middle;
      filter: drop-shadow(0 0 3px currentColor);
    }

    /* === VIGNETTE OVERLAY === */
    .vignette {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      background: radial-gradient(ellipse at center, transparent 50%, rgba(10,10,20,0.4) 100%);
    }

    /* === SCANLINE (subtle) === */
    .scanlines {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 3;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
      );
    }

    /* === LOADING === */
    /* === SPLASH SCREEN === */
    .splash-overlay {
      position: fixed; inset: 0;
      background: #060809;
      z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      transition: opacity 1s cubic-bezier(.4,0,.2,1), visibility 1s;
      overflow-y: auto;
    }
    .splash-overlay.hidden {
      opacity: 0; visibility: hidden; pointer-events: none;
    }

    /* Animated BG */
    .splash-bg { position: absolute; inset: 0; overflow: hidden; }
    .splash-bg-glow {
      position: absolute; border-radius: 50%;
      filter: blur(100px); pointer-events: none;
      animation: splashFloat 8s ease-in-out infinite;
    }
    .splash-glow-1 {
      width: 500px; height: 500px;
      top: -10%; left: -5%;
      background: radial-gradient(circle, rgba(255,102,0,0.12) 0%, transparent 70%);
    }
    .splash-glow-2 {
      width: 400px; height: 400px;
      bottom: -10%; right: -5%;
      background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
      animation-delay: -4s;
    }
    @keyframes splashFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(30px, -20px) scale(1.1); }
    }
    .splash-bg-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
      -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    }

    /* Content */
    .splash-content {
      position: relative; z-index: 2;
      text-align: center; padding: 40px 24px;
      max-width: 620px; width: 100%;
    }
    .splash-content > * {
      animation: splashSlideUp 0.7s ease-out both;
    }
    .splash-content > :nth-child(1) { animation-delay: 0s; }
    .splash-content > :nth-child(2) { animation-delay: 0.1s; }
    .splash-content > :nth-child(3) { animation-delay: 0.2s; }
    .splash-content > :nth-child(4) { animation-delay: 0.3s; }
    .splash-content > :nth-child(5) { animation-delay: 0.4s; }
    .splash-content > :nth-child(6) { animation-delay: 0.5s; }
    .splash-content > :nth-child(7) { animation-delay: 0.6s; }
    @keyframes splashSlideUp {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Badge */
    .splash-badge {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.7rem; font-weight: 600;
      letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--orange);
      background: rgba(255,102,0,0.08);
      border: 1px solid rgba(255,102,0,0.2);
      padding: 6px 16px; border-radius: 100px;
      margin-bottom: 20px;
    }

    /* Title */
    .splash-hero { margin-bottom: 8px; }
    .splash-title {
      font-size: clamp(2.8rem, 8vw, 4rem);
      font-weight: 900; color: #fff;
      letter-spacing: -2px; line-height: 1;
      margin-bottom: 16px;
    }
    .splash-title span { color: var(--orange); }

    /* Tagline */
    .splash-tagline {
      font-size: 1.05rem; color: rgba(255,255,255,0.55);
      line-height: 1.7; margin-bottom: 36px;
    }
    .splash-tagline strong { color: rgba(255,255,255,0.85); font-weight: 600; }

    /* Stats */
    .splash-stats {
      display: flex; align-items: center; justify-content: center;
      gap: 0; margin-bottom: 28px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px; padding: 20px 8px;
      backdrop-filter: blur(12px);
    }
    .splash-stat { flex: 1; text-align: center; }
    .splash-stat-sep {
      width: 1px; height: 36px;
      background: rgba(255,255,255,0.08);
      flex-shrink: 0;
    }
    .splash-stat-value {
      font-size: clamp(1.5rem, 5vw, 2.2rem);
      font-weight: 800; color: #fff;
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }
    .splash-stat-label {
      font-size: 0.6rem; color: rgba(255,255,255,0.35);
      letter-spacing: 1.5px; text-transform: uppercase;
      margin-top: 6px;
    }

    /* Sector chips */
    .splash-sectors {
      display: flex; flex-wrap: wrap; gap: 8px;
      justify-content: center; margin-bottom: 28px;
    }
    .splash-chip {
      font-size: 0.7rem; font-weight: 600;
      padding: 5px 12px; border-radius: 100px;
      background: color-mix(in srgb, var(--chip-color) 10%, transparent);
      border: 1px solid color-mix(in srgb, var(--chip-color) 20%, transparent);
      color: var(--chip-color);
      transition: all 0.25s;
    }
    .splash-chip:hover {
      background: color-mix(in srgb, var(--chip-color) 18%, transparent);
      transform: translateY(-1px);
    }

    /* CTA (legacy, kept for compatibility) */
    .splash-cta {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--orange); color: #fff;
      border: none; padding: 15px 40px;
      border-radius: 12px; font-size: 1rem; font-weight: 700;
      cursor: pointer; transition: all 0.3s;
      box-shadow: 0 4px 24px rgba(255,102,0,0.3);
      opacity: 0; pointer-events: none;
    }
    .splash-cta.ready { opacity: 1; pointer-events: auto; }

    /* Loading */
    .splash-loading {
      margin-top: 20px;
      display: flex; flex-direction: column; align-items: center; gap: 10px;
    }
    .splash-loading.done { display: none; }
    .splash-loading-bar {
      width: 180px; height: 2px;
      background: rgba(255,255,255,0.06); border-radius: 2px;
      overflow: hidden;
    }
    .splash-loading-fill {
      height: 100%; width: 0%;
      background: var(--orange); border-radius: 2px;
      transition: width 0.4s ease;
    }
    .splash-loading-text {
      font-size: 0.6rem; color: rgba(255,255,255,0.25);
      letter-spacing: 2px; text-transform: uppercase;
    }

    /* Footer */
    .splash-footer {
      margin-top: 32px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      font-size: 0.6rem; color: rgba(255,255,255,0.2);
      letter-spacing: 1px;
    }
    .splash-footer a {
      color: rgba(255,255,255,0.3); text-decoration: none;
      transition: color 0.2s;
    }
    .splash-footer a:hover { color: var(--orange); }

    /* Question */
    .splash-question {
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 2px; text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: 16px;
    }

    /* Persona cards */
    .splash-personas {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 10px; margin-bottom: 24px;
    }
    .splash-persona {
      display: flex; flex-direction: column; align-items: flex-start;
      gap: 6px; padding: 16px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 14px;
      cursor: pointer; text-align: left;
      transition: all 0.25s cubic-bezier(.4,0,.2,1);
      position: relative; overflow: hidden;
      color: inherit; font-family: inherit;
      font-size: inherit;
    }
    .splash-persona::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(255,102,0,0.06) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.3s;
    }
    .splash-persona:hover::before { opacity: 1; }
    .splash-persona:hover {
      border-color: rgba(255,102,0,0.3);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,102,0,0.1);
    }
    .splash-persona:active { transform: scale(0.97); }
    .sp-icon { font-size: 1.6rem; }
    .sp-label { font-size: 0.9rem; font-weight: 700; color: #fff; position: relative; }
    .sp-desc { font-size: 0.68rem; color: rgba(255,255,255,0.35); line-height: 1.5; position: relative; }

    /* Persona disabled state while loading */
    .splash-persona.disabled {
      opacity: 0.4; pointer-events: none;
    }

    /* Mobile */
    @media (max-width: 580px) {
      .splash-personas { grid-template-columns: 1fr; }
      .splash-stats { flex-wrap: wrap; padding: 16px 12px; }
      .splash-stat-sep:nth-of-type(2) { display: none; }
      .splash-stat { min-width: 40%; }
      .splash-features { grid-template-columns: 1fr; }
      .splash-content { padding: 32px 16px; }
      .splash-title { letter-spacing: -1px; }
    }

    /* === SKELETON LOADING === */
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    .skeleton {
      background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.8s ease-in-out infinite;
      border-radius: 8px;
    }
    .skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }
    .skeleton-text.short { width: 60%; }
    .skeleton-title { height: 22px; width: 70%; margin-bottom: 12px; border-radius: 6px; }
    .skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

    /* === GLASS CARD MIXIN === */
    .glass-card {
      background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    }

    /* === ANIMATED BORDER === */
    @property --border-angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }
    @keyframes border-rotate {
      to { --border-angle: 360deg; }
    }
    .animated-border {
      border: 2px solid transparent;
      background-image:
        linear-gradient(var(--bg-card), var(--bg-card)),
        conic-gradient(from var(--border-angle), var(--orange), #3b82f6, var(--orange));
      background-origin: border-box;
      background-clip: padding-box, border-box;
      animation: border-rotate 4s linear infinite;
    }

    /* === KPI TICKER BAR === */
    .kpi-ticker {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 28px;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(255,255,255,0.04);
      z-index: 110;
      overflow: hidden;
      display: flex; align-items: center;
    }
    .kpi-ticker-inner {
      display: flex; align-items: center; gap: 6px;
      white-space: nowrap;
      animation: kpiScroll 40s linear infinite;
      padding: 0 12px;
    }
    .kpi-ticker:hover .kpi-ticker-inner { animation-play-state: paused; }
    @keyframes kpiScroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .kpi-item {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.6);
    }
    .kpi-icon { font-size: 11px; }
    .kpi-label { color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 9.5px; }
    .kpi-price { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
    .kpi-change { font-size: 9.5px; font-weight: 700; }
    .kpi-change.up { color: #22c55e; }
    .kpi-change.down { color: #ef4444; }
    .kpi-range { font-size: 9px; color: rgba(255,255,255,0.25); }
    .kpi-sep { color: rgba(255,255,255,0.12); margin: 0 4px; }

    /* === DASHBOARD PANEL === */
    .dashboard-toggle {
      position: fixed; bottom: 80px; left: 16px;
      width: 42px; height: 42px; border-radius: 12px;
      background: rgba(255,255,255,0.06);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.1);
      color: #fff; font-size: 18px;
      cursor: pointer; z-index: 80;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.25s;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .dashboard-toggle:hover {
      background: rgba(255,102,0,0.15);
      border-color: rgba(255,102,0,0.3);
      transform: scale(1.08);
    }
    .dashboard-panel {
      position: fixed; left: 12px; top: 96px; bottom: 12px;
      width: 360px;
      background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
      backdrop-filter: blur(28px) saturate(1.4);
      -webkit-backdrop-filter: blur(28px) saturate(1.4);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 20px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
      z-index: 90;
      overflow-y: auto;
      transform: translateX(calc(-100% - 20px));
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .dashboard-panel.open { transform: translateX(0); }
    .dash-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 14px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .dash-header h3 { font-size: 14px; font-weight: 700; color: #fff; }
    .dash-close {
      background: none; border: none; color: rgba(255,255,255,0.4);
      font-size: 20px; cursor: pointer; transition: color 0.2s;
    }
    .dash-close:hover { color: #fff; }
    .dash-body { padding: 16px 20px; }
    .dash-section { margin-bottom: 20px; }
    .dash-section-title {
      font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
      text-transform: uppercase; color: rgba(255,255,255,0.35);
      margin-bottom: 10px;
    }
    .dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .dash-card {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px; padding: 12px;
      transition: border-color 0.2s;
    }
    .dash-card:hover { border-color: rgba(255,255,255,0.12); }
    .dash-card-top {
      display: flex; align-items: center; justify-content: space-between;
      font-size: 11px; color: rgba(255,255,255,0.5);
      margin-bottom: 6px;
    }
    .dash-badge {
      font-size: 10px; font-weight: 700; padding: 1px 6px;
      border-radius: 4px;
    }
    .dash-badge.up { background: rgba(34,197,94,0.12); color: #22c55e; }
    .dash-badge.down { background: rgba(239,68,68,0.12); color: #ef4444; }
    .dash-card-price {
      font-size: 20px; font-weight: 800; color: #fff;
      font-variant-numeric: tabular-nums; line-height: 1.2;
    }
    .dash-card-price small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); }
    .dash-card-sub { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; }
    .dash-ts {
      font-size: 9px; color: rgba(255,255,255,0.2);
      text-align: center; margin-top: 8px;
      letter-spacing: 0.5px;
    }

    /* === MOBILE FILTER CHIPS === */
    .mobile-filters {
      display: none;
      position: fixed;
      top: 54px;
      left: 0; right: 0;
      z-index: 80;
      padding: 8px 12px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      gap: 6px;
      scrollbar-width: none;
    }
    .mobile-filters::-webkit-scrollbar { display: none; }
    .mobile-chip {
      flex-shrink: 0;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      border: none;
      background: rgba(255,255,255,0.08);
      color: var(--text-dim);
      cursor: pointer;
      transition: all 0.25s;
      white-space: nowrap;
    }
    .mobile-chip.active { 
      color: #fff; 
      background: var(--orange);
      box-shadow: 0 2px 12px rgba(255,102,0,0.35);
    }
    .mobile-chip .chip-dot { 
      display: inline-block; width: 6px; height: 6px; 
      border-radius: 50%; margin-right: 5px; vertical-align: middle;
    }
    .mobile-chip.active .chip-dot { background: #fff !important; }

    /* === NAV ARROWS (inside bottom sheet on mobile) === */
    .nav-arrows {
      display: none;
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 95;
      gap: 16px;
      align-items: center;
    }
    .nav-arrows.visible { display: flex; }
    .nav-btn {
      width: 36px; height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-btn:active { background: var(--orange); border-color: var(--orange); transform: scale(0.92); }
    .nav-counter { color: var(--text-dim); font-size: 11px; font-weight: 600; min-width: 60px; text-align: center; }

    /* === RESPONSIVE === */
    @media (max-width: 768px) {
      .mobile-filters { display: flex; }
      .filter-panel { width: 100%; }

      /* ── Header: 2-row compact layout ── */
      /* NOTE: top is set by the comprehensive mobile section at end of file */
      /* to account for KPI ticker bar height */
      header {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 6px 10px;
        left: 0;
        right: 0;
        border-radius: 0 0 16px 16px;
      }
      header::before { border-radius: 0; }

      .logo { flex-shrink: 0; }
      .logo-icon { font-size: 18px; width: 28px; height: 28px; }
      .logo-text h1 { font-size: 16px; }
      .logo-sub { display: none; }

      .search-box {
        flex: 1;
        min-width: 0;
        max-width: none;
        order: 1;
      }
      .search-box input { font-size: 13px; padding: 6px 8px 6px 0; }

      /* Stats + finance on second row */
      .stats-bar {
        order: 2;
        width: 100%;
        gap: 4px;
        margin-left: 0;
        padding-top: 2px;
        border-top: 1px solid rgba(255,255,255,0.06);
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .stats-bar::-webkit-scrollbar { display: none; }
      .stat-chip { padding: 3px 6px; border-radius: 14px; flex-shrink: 0; }
      .stat-chip-value { font-size: 11px; }
      .stat-chip-label { font-size: 7px; display: none; }

      .finance-view-toggle {
        order: 3;
        padding: 4px 8px;
        font-size: 10px;
        flex-shrink: 0;
      }

      .view-toggle { display: none; }

      /* ── Search results: wide dropdown under search box ── */
      .search-box { position: static; }
      .search-results {
        position: absolute;
        left: 8px;
        right: 8px;
        top: 100%;
        margin-top: 4px;
        max-height: 55vh;
        border-radius: 14px;
        box-shadow: 0 12px 48px rgba(0,0,0,0.7);
      }
      .search-result-item {
        padding: 12px 14px;
        gap: 10px;
        min-height: 48px;
      }
      .search-result-name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
      }
      .search-result-meta { font-size: 11px; flex-shrink: 0; }
      .search-result-tag { flex-shrink: 0; }

      /* ── Mobile chips: position below header ── */
      .mobile-filters { top: auto; margin-top: 4px; }

      /* ── Bottom Sheet Info Panel ── */
      .info-panel {
        width: 100%;
        top: auto;
        bottom: 0;
        max-height: 80vh;
        border-left: none;
        border-top: none;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        background: rgba(13,13,26,0.97);
        backdrop-filter: blur(30px) saturate(1.4);
        -webkit-backdrop-filter: blur(30px) saturate(1.4);
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
        overflow: hidden;
        touch-action: none;
      }
      /* Drag handle */
      .info-panel::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
        z-index: 10;
      }
      .info-panel::after { display: none; }
      .info-panel.open { transform: translateY(0); }
      .info-panel.dragging { transition: none !important; }
      .info-panel #infoPanelContent {
        padding-top: 20px;
        overflow-y: auto;
        max-height: calc(80vh - 20px);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }

      /* ── Compact info header ── */
      .info-panel .info-header { 
        padding: 4px 16px 8px;
        border-bottom: none;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 10px;
      }
      .info-panel .info-sector-badge { 
        font-size: 9px; padding: 3px 8px; margin-bottom: 4px;
        order: 1;
      }
      .info-panel .info-name { 
        font-size: 18px; font-weight: 800; margin: 0; line-height: 1.2;
        width: 100%; order: 2;
      }
      .info-panel .info-location { 
        font-size: 12px; order: 3; margin-top: 2px;
      }

      /* ── Compact body ── */
      .info-panel .info-body { padding: 6px 16px 16px; }
      .info-panel .info-description { 
        font-size: 13px; line-height: 1.6; margin-bottom: 10px; color: var(--text-dim);
        display: block !important; -webkit-line-clamp: none !important; 
        -webkit-box-orient: unset !important; overflow: visible !important;
        max-height: none !important;
      }
      .info-panel .info-grid { 
        grid-template-columns: 1fr 1fr;
        gap: 6px; margin-bottom: 12px;
      }
      .info-panel .info-metric { 
        padding: 10px 12px; border-radius: 10px;
        background: rgba(255,255,255,0.04);
      }
      .info-panel .info-metric-label { font-size: 9px; margin-bottom: 3px; }
      .info-panel .info-metric-value { font-size: 14px; }
      .info-panel .info-section { margin-bottom: 10px; }
      .info-panel .info-link { 
        width: 100%; justify-content: center; padding: 10px; font-size: 12px; 
        border-radius: 10px;
      }

      /* ── Close button ── */
      .info-panel .info-close { 
        top: 8px; right: 12px; width: 32px; height: 32px; font-size: 18px;
        background: rgba(255,255,255,0.1); border-radius: 50%;
      }

      /* ── Nav arrows above bottom sheet ── */
      .nav-arrows { bottom: calc(80vh + 8px); }

      /* ── Subsidiary/project lists compact ── */
      .info-panel .subsidiary-item,
      .info-panel .project-item-panel { padding: 8px 10px; }
      .info-panel .subsidiary-name,
      .info-panel .project-name-text { font-size: 12px; }
      .info-panel .subsidiary-location,
      .info-panel .project-meta-text { font-size: 10px; }

      .legend { max-width: calc(100vw - 40px); bottom: 12px; left: 12px; }
    }

    @media (max-width: 480px) {
      header { padding: 6px 10px; gap: 4px 8px; }
      .logo-icon { font-size: 16px; width: 24px; height: 24px; }
      .logo-text h1 { font-size: 14px; }
      .search-box input { font-size: 12px; }
      .stats-bar { font-size: 10px; }
      .legend { display: none; }
    }

    /* === WATTSFLASH TICKER === */
    .wattsflash {
      position: fixed;
      bottom: 18px;
      left: 20px;
      right: 20px;
      height: 50px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(15,12,30,0.97) 0%, rgba(25,15,10,0.97) 100%);
      backdrop-filter: blur(24px) saturate(1.3);
      -webkit-backdrop-filter: blur(24px) saturate(1.3);
      border: 1px solid rgba(255,102,0,0.25);
      z-index: 95;
      display: flex;
      align-items: center;
      overflow: hidden;
      font-family: 'Inter', system-ui, sans-serif;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 40px rgba(255,102,0,0.08);
      transition: opacity 0.3s ease;
    }

    .wattsflash-label {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 0 16px;
      height: 100%;
      background: linear-gradient(135deg, rgba(255,102,0,0.18) 0%, rgba(255,102,0,0.08) 100%);
      border-right: 1px solid rgba(255,102,0,0.2);
      font-size: 12px;
      font-weight: 800;
      color: #FF6600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .wattsflash-label .wf-icon {
      font-size: 14px;
      animation: wf-pulse 2s ease-in-out infinite;
    }

    @keyframes wf-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .wattsflash-track {
      flex: 1;
      overflow: hidden;
      position: relative;
      height: 100%;
      mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
      -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    }

    .wattsflash-scroll {
      display: flex;
      align-items: center;
      height: 100%;
      white-space: nowrap;
      animation: wf-scroll var(--wf-duration, 60s) linear infinite;
      will-change: transform;
    }

    .wattsflash-scroll:hover {
      animation-play-state: paused;
    }

    @keyframes wf-scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .wf-item {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 7px 24px;
      margin: 0 5px;
      height: 40px;
      cursor: pointer;
      text-decoration: none;
      color: #fff;
      border-radius: 10px;
      transition: all 0.2s ease;
      flex-shrink: 0;
      position: relative;
      background: rgba(255,255,255,0.10);
      text-shadow: 0 1px 4px rgba(0,0,0,0.9);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .wf-item:hover {
      color: #fff;
      background: rgba(255,102,0,0.25);
      border-color: rgba(255,140,60,0.3);
    }

    .wf-hot {
      font-size: 10px;
      padding: 3px 9px;
      margin-right: 8px;
      border-radius: 6px;
      background: linear-gradient(135deg, #ff3c28 0%, #ff6600 100%);
      color: #fff;
      font-weight: 800;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      flex-shrink: 0;
      border: 1px solid rgba(255,80,30,0.8);
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
      box-shadow: 0 1px 8px rgba(255,60,0,0.5);
      line-height: 1.2;
    }

    .wf-title {
      font-size: 14.5px;
      font-weight: 600;
      color: #fff;
      max-width: 420px;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
      letter-spacing: 0.2px;
    }

    .wf-media {
      font-size: 11.5px;
      color: rgba(255,200,120,1);
      font-weight: 700;
      flex-shrink: 0;
      letter-spacing: 0.4px;
      text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    }

    .wf-sep {
      width: 2px;
      height: 22px;
      border-radius: 1px;
      background: rgba(255,140,60,0.6);
      flex-shrink: 0;
      margin: 0 10px;
    }
    /* WattsFlash globe link button */
    .wf-globe-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(255,102,0,0.2);
      border: 1px solid rgba(255,102,0,0.4);
      cursor: pointer;
      font-size: 14px;
      flex-shrink: 0;
      transition: all 0.2s;
      margin-left: 4px;
    }
    .wf-globe-btn:hover {
      background: rgba(255,102,0,0.5);
      transform: scale(1.15);
      box-shadow: 0 0 10px rgba(255,102,0,0.5);
    }

    /* Country filter dropdown */
    .country-dropdown {
      position: fixed;
      z-index: 9999;
      min-width: 220px;
      max-height: 340px;
      overflow-y: auto;
      background: rgba(15,15,30,0.96);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 10px 0;
      box-shadow: 0 12px 40px rgba(0,0,0,0.6);
      display: none;
    }
    .country-dropdown.open { display: block; }
    .country-dropdown .vt-dd-title {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-dim);
      padding: 4px 14px 8px;
      font-weight: 700;
    }
    .country-dd-list { max-height: 280px; overflow-y: auto; }

    /* Country filter chip */
    .country-filter-chip {
      cursor: pointer;
      padding: 3px 10px;
      border-radius: 8px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      transition: all 0.2s;
      font-size: 11px;
      white-space: nowrap;
    }
    .country-filter-chip:hover {
      background: rgba(255,102,0,0.15);
      border-color: rgba(255,102,0,0.3);
    }

    /* Export all button */
    .export-all-btn {
      cursor: pointer;
      padding: 3px 10px;
      border-radius: 8px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text-dim);
      font-size: 11px;
      font-weight: 600;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .export-all-btn:hover {
      background: rgba(255,102,0,0.15);
      border-color: rgba(255,102,0,0.3);
      color: #fff;
    }

    /* Info panel action buttons (copy/export) */
    .info-actions-row {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }
    .info-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--text-dim);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .info-action-btn:hover {
      background: rgba(255,102,0,0.2);
      border-color: rgba(255,102,0,0.4);
      color: #fff;
    }

    /* Push bottom elements up to make room for ticker */
    .legend { bottom: 64px !important; }
    .time-widget { bottom: 56px !important; }

    @media (max-width: 768px) {
      .wattsflash { bottom: 10px; left: 10px; right: 10px; height: 44px; border-radius: 12px; }
      .info-panel.open ~ .wattsflash,
      body:has(.info-panel.open) .wattsflash { opacity: 0; pointer-events: none; }
      .wattsflash-label { padding: 0 10px; font-size: 10px; }
      .wattsflash-label span:last-child { display: none; }
      .wf-title { font-size: 12.5px; max-width: 260px; }
      .legend { bottom: 80px !important; }
      .time-widget { bottom: 48px !important; }
    }


/* ============================================================
   ALERTS PANEL
   Slide-out panel for energy grid alerts & notifications
   ============================================================ */

/* --- Toggle Button (bottom-right) --- */
.alerts-toggle {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.05) 100%
  );
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 510;
  transition: all 0.2s ease;
}

.alerts-toggle:hover {
  background: rgba(255,102,0,0.2);
  color: var(--orange);
  border-color: rgba(255,102,0,0.4);
  transform: scale(1.05);
}

.alerts-toggle.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(255,102,0,0.4);
}

/* --- Notification Badge --- */
.alerts-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
}

.alerts-badge:empty { display: none; }

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,0.5); }
  50% { transform: scale(1.12); box-shadow: 0 2px 14px rgba(239,68,68,0.7); }
}

/* --- Panel Container --- */
.alerts-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  z-index: 500;
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.alerts-panel.open {
  transform: translateX(0);
}

/* Panel header */
.alerts-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.alerts-panel-header h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.3px;
}

.alerts-panel-close {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.alerts-panel-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* --- Filter Buttons --- */
.alert-filters {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.alert-filter-btn {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: capitalize;
}

.alert-filter-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.alert-filter-btn.active {
  background: rgba(255,102,0,0.15);
  border-color: rgba(255,102,0,0.4);
  color: var(--orange);
}

.alert-filter-btn.active[data-severity="critical"] {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}

.alert-filter-btn.active[data-severity="warning"] {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: #f59e0b;
}

.alert-filter-btn.active[data-severity="info"] {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: #3b82f6;
}

/* --- Alert Cards List --- */
.alerts-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.alerts-list::-webkit-scrollbar { width: 4px; }
.alerts-list::-webkit-scrollbar-track { background: transparent; }
.alerts-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* --- Alert Card --- */
.alert-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 12px 18px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s;
  animation: alertSlideIn 0.3s ease-out;
}

.alert-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-light);
}

/* Left severity bar */
.alert-severity-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
}

.alert-card.critical .alert-severity-bar { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.alert-card.warning .alert-severity-bar  { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.alert-card.info .alert-severity-bar     { background: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,0.4); }

.alert-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
  line-height: 1.3;
}

.alert-card-body {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 6px;
}

.alert-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
}

.alert-card-time {
  opacity: 0.7;
}

.alert-card-source {
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

@keyframes alertSlideIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Empty state */
.alerts-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 13px;
}

.alerts-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}


/* ============================================================
   WEATHER ENERGY BAR
   Scrolling weather + renewable potential ticker below KPI bar
   ============================================================ */

.weather-bar {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(
    180deg,
    rgba(5,5,12,0.75) 0%,
    rgba(8,8,18,0.65) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  z-index: 109;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.weather-bar.collapsed {
  height: 0;
  opacity: 0;
  border-bottom: none;
}

/* Toggle button */
.weather-bar-toggle {
  position: fixed;
  top: 56px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 111;
  transition: all 0.2s;
  opacity: 0.5;
}

.weather-bar-toggle:hover {
  opacity: 1;
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

.weather-bar.collapsed ~ .weather-bar-toggle {
  top: 28px;
}

/* Scrolling inner content */
.weather-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: weatherScroll 60s linear infinite;
  padding: 0 12px;
}

.weather-bar:hover .weather-bar-inner {
  animation-play-state: paused;
}

@keyframes weatherScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual city entry */
.weather-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.weather-city-flag {
  font-size: 12px;
  line-height: 1;
}

.weather-city-name {
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-city-temp {
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.weather-city-icon {
  font-size: 12px;
}

.weather-city-wind {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

/* Renewable potential score badges */
.weather-potential {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.potential-high {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
}

.potential-mid {
  color: #eab308;
  background: rgba(234,179,8,0.12);
}

.potential-low {
  color: #ef4444;
  background: rgba(239,68,68,0.12);
}

/* Separator between cities */
.weather-sep {
  color: rgba(255,255,255,0.08);
  margin: 0 4px;
  font-size: 10px;
}

/* Adjust header position when weather bar is visible (desktop only) */
@media (min-width: 769px) {
  body:not(:has(.weather-bar.collapsed)) header {
    top: 60px;
  }
  body:has(.weather-bar.collapsed) header {
    top: 32px;
  }
  /* Also adjust filter-panel and mobile-filters when weather bar visible */
  body:not(:has(.weather-bar.collapsed)) .filter-panel {
    top: 118px;
  }
  body:not(:has(.weather-bar.collapsed)) .dashboard-panel {
    top: 118px;
  }
}


/* ============================================================
   GENERATION MIX CHARTS
   Horizontal stacked bars showing country energy generation mix
   ============================================================ */

.gen-section {
  margin-bottom: 16px;
}

.gen-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Individual country row */
.gen-country {
  margin-bottom: 10px;
}

.gen-country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.gen-country-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.gen-country-flag {
  font-size: 14px;
  line-height: 1;
}

/* Renewable share badge */
.gen-renewable-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  letter-spacing: 0.3px;
}

.gen-renewable-badge.low {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}

.gen-renewable-badge.mid {
  background: rgba(234,179,8,0.12);
  color: #eab308;
}

/* Stacked horizontal bar */
.gen-bar {
  width: 100%;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.gen-segment {
  height: 100%;
  position: relative;
  transition: flex-basis 0.6s ease, opacity 0.2s;
  cursor: pointer;
  min-width: 0;
}

.gen-segment:first-child { border-radius: 3px 0 0 3px; }
.gen-segment:last-child { border-radius: 0 3px 3px 0; }

.gen-segment:hover {
  opacity: 0.85;
  filter: brightness(1.2);
}

/* Fuel type colors */
.gen-segment.nuclear  { background: #3b82f6; }
.gen-segment.wind     { background: #14b8a6; }
.gen-segment.solar    { background: #eab308; }
.gen-segment.hydro    { background: #06b6d4; }
.gen-segment.gas      { background: #ef4444; }
.gen-segment.coal     { background: #78716c; }
.gen-segment.biomass  { background: #22c55e; }
.gen-segment.oil      { background: #f97316; }

/* Tooltip on hover */
.gen-segment .gen-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.gen-segment .gen-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(10,10,20,0.95);
}

.gen-segment:hover .gen-tooltip {
  opacity: 1;
}

/* Generation legend */
.gen-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gen-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
}

.gen-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.gen-legend-dot.nuclear  { background: #3b82f6; }
.gen-legend-dot.wind     { background: #14b8a6; }
.gen-legend-dot.solar    { background: #eab308; }
.gen-legend-dot.hydro    { background: #06b6d4; }
.gen-legend-dot.gas      { background: #ef4444; }
.gen-legend-dot.coal     { background: #78716c; }
.gen-legend-dot.biomass  { background: #22c55e; }
.gen-legend-dot.oil      { background: #f97316; }


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   Mobile & tablet adaptations for new components
   ============================================================ */

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE — 768px
   Fixes stacking: KPI bar → Weather bar → Header → Content
   ============================================================ */
@media (max-width: 768px) {

  /* --- TOP BARS: stack correctly --- */
  /* KPI ticker stays at top:0, height 28px */
  .kpi-ticker {
    height: 24px;
    font-size: 9px;
  }
  .kpi-item { font-size: 9.5px; gap: 3px; }
  .kpi-label { font-size: 8px; }
  .kpi-price { font-size: 9.5px; }
  .kpi-change { font-size: 8.5px; }

  /* Weather bar: HIDE on mobile by default — too much stacking */
  .weather-bar {
    display: none !important;
  }
  .weather-bar-toggle {
    display: none !important;
  }

  /* Header: below KPI bar (24px), or flush top in compact mode */
  header {
    top: 24px !important;
    border-radius: 0 0 16px 16px;
  }
  body.chrome-compact header {
    top: 0 !important;
    border-radius: 0 0 12px 12px;
  }

  /* Mobile filters: below header */
  .mobile-filters {
    top: auto !important;
    margin-top: 4px;
  }

  /* Filter panel: below header area */
  .filter-panel {
    top: 80px;
    width: 100%;
  }

  /* --- ALERTS PANEL: full width bottom sheet on mobile --- */
  .alerts-panel {
    width: 100%;
    top: auto;
    bottom: 0;
    max-height: 75vh;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    transform: translateY(100%);
  }
  .alerts-panel.open {
    transform: translateY(0);
  }
  /* Drag handle for alerts bottom sheet */
  .alerts-panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    z-index: 10;
  }
  .alerts-list {
    max-height: calc(75vh - 120px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Alerts toggle: above wattsflash (which is at bottom 10px, h44px) */
  .alerts-toggle {
    bottom: 64px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .alerts-badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* --- DASHBOARD PANEL: full width on mobile --- */
  .dashboard-panel {
    width: calc(100% - 16px) !important;
    left: 8px !important;
    top: 80px;
    bottom: 66px;
    border-radius: 16px;
  }
  .dashboard-toggle {
    bottom: 64px;
    left: 12px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .dash-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .dash-card-price {
    font-size: 16px;
  }

  /* --- GENERATION BARS: tap-friendly --- */
  .gen-bar {
    height: 24px;
  }
  .gen-country-label {
    font-size: 11px;
  }
  .gen-legend {
    gap: 6px;
  }
  .gen-legend-item {
    font-size: 9px;
  }

  /* --- WATTSFLASH: adjust for buttons --- */
  .wattsflash {
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 90;
  }

  /* --- BOTTOM BUTTONS: no overlap --- */
  /* scroll-top button moves left to not conflict with alerts toggle */
  #scrollTopBtn {
    right: 56px !important;
    bottom: 64px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  /* --- Info panel: confirmed bottom sheet --- */
  .info-panel.open ~ .alerts-toggle,
  body:has(.info-panel.open) .alerts-toggle {
    display: none;
  }
  .info-panel.open ~ .dashboard-toggle,
  body:has(.info-panel.open) .dashboard-toggle {
    display: none;
  }
}

/* ============================================================
   SMALL PHONE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .kpi-ticker { height: 22px; }
  .kpi-item { font-size: 9px; }

  header {
    top: 22px !important;
    padding: 6px 10px;
    gap: 4px 8px;
  }

  .alerts-panel {
    max-height: 85vh;
  }
  .alerts-panel-header h2 {
    font-size: 13px;
  }
  .alert-card {
    padding: 10px 12px 10px 16px;
  }
  .alert-card-title {
    font-size: 11.5px;
  }
  .alert-card-body {
    font-size: 10.5px;
  }
  .alert-filters {
    gap: 4px;
    padding: 8px 16px;
  }
  .alert-filter-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  .dashboard-panel {
    width: calc(100% - 8px) !important;
    left: 4px !important;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-card-price {
    font-size: 18px;
  }

  .wattsflash {
    height: 40px;
    border-radius: 10px;
  }
  .wattsflash-label {
    padding: 0 8px;
    font-size: 9px;
  }
}

/* ============================================================
   TABLET — 1024px (catch mid-size issues)
   ============================================================ */
@media (max-width: 1024px) {
  .alerts-panel {
    width: 320px;
  }
  .dashboard-panel {
    width: 320px;
  }
  .info-panel {
    width: 340px;
  }
}

/* ============================================================
   UNIFIED SECTOR COLOR SYSTEM
   Pure color + soft variant (10% alpha) per sector.
   Reusable utilities: .sector-dot, .sector-badge, .sector-border
   Apply with sector class, e.g. <span class="sector-dot solar">
   ============================================================ */
:root {
  --sector-solar: #eab308;
  --sector-solar-soft: rgba(234, 179, 8, 0.10);
  --sector-wind: #14b8a6;
  --sector-wind-soft: rgba(20, 184, 166, 0.10);
  --sector-nuclear: #3b82f6;
  --sector-nuclear-soft: rgba(59, 130, 246, 0.10);
  --sector-oil_gas: #ef4444;
  --sector-oil_gas-soft: rgba(239, 68, 68, 0.10);
  --sector-hydro: #06b6d4;
  --sector-hydro-soft: rgba(6, 182, 212, 0.10);
  --sector-biomass: #22c55e;
  --sector-biomass-soft: rgba(34, 197, 94, 0.10);
  --sector-geothermal: #ec4899;
  --sector-geothermal-soft: rgba(236, 72, 153, 0.10);
  --sector-grid: #8b5cf6;
  --sector-grid-soft: rgba(139, 92, 246, 0.10);
  --sector-coal: #78716c;
  --sector-coal-soft: rgba(120, 113, 108, 0.10);
}

[data-theme='light'] {
  --sector-solar-soft: rgba(234, 179, 8, 0.14);
  --sector-wind-soft: rgba(20, 184, 166, 0.14);
  --sector-nuclear-soft: rgba(59, 130, 246, 0.14);
  --sector-oil_gas-soft: rgba(239, 68, 68, 0.14);
  --sector-hydro-soft: rgba(6, 182, 212, 0.14);
  --sector-biomass-soft: rgba(34, 197, 94, 0.14);
  --sector-geothermal-soft: rgba(236, 72, 153, 0.14);
  --sector-grid-soft: rgba(139, 92, 246, 0.14);
  --sector-coal-soft: rgba(120, 113, 108, 0.14);
}

/* Dot: small colored circle for legends, list items, markers */
.sector-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sector-dot.solar { background: var(--sector-solar); }
.sector-dot.wind { background: var(--sector-wind); }
.sector-dot.nuclear { background: var(--sector-nuclear); }
.sector-dot.oil_gas { background: var(--sector-oil_gas); }
.sector-dot.hydro { background: var(--sector-hydro); }
.sector-dot.biomass { background: var(--sector-biomass); }
.sector-dot.geothermal { background: var(--sector-geothermal); }
.sector-dot.grid { background: var(--sector-grid); }
.sector-dot.coal { background: var(--sector-coal); }

/* Badge: pill-style label with soft background + bold colored text */
.sector-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.sector-badge.solar { background: var(--sector-solar-soft); color: var(--sector-solar); border: 1px solid var(--sector-solar-soft); }
.sector-badge.wind { background: var(--sector-wind-soft); color: var(--sector-wind); border: 1px solid var(--sector-wind-soft); }
.sector-badge.nuclear { background: var(--sector-nuclear-soft); color: var(--sector-nuclear); border: 1px solid var(--sector-nuclear-soft); }
.sector-badge.oil_gas { background: var(--sector-oil_gas-soft); color: var(--sector-oil_gas); border: 1px solid var(--sector-oil_gas-soft); }
.sector-badge.hydro { background: var(--sector-hydro-soft); color: var(--sector-hydro); border: 1px solid var(--sector-hydro-soft); }
.sector-badge.biomass { background: var(--sector-biomass-soft); color: var(--sector-biomass); border: 1px solid var(--sector-biomass-soft); }
.sector-badge.geothermal { background: var(--sector-geothermal-soft); color: var(--sector-geothermal); border: 1px solid var(--sector-geothermal-soft); }
.sector-badge.grid { background: var(--sector-grid-soft); color: var(--sector-grid); border: 1px solid var(--sector-grid-soft); }
.sector-badge.coal { background: var(--sector-coal-soft); color: var(--sector-coal); border: 1px solid var(--sector-coal-soft); }

/* Border: left accent stripe for cards, table rows, list items */
.sector-border.solar { border-left: 3px solid var(--sector-solar); }
.sector-border.wind { border-left: 3px solid var(--sector-wind); }
.sector-border.nuclear { border-left: 3px solid var(--sector-nuclear); }
.sector-border.oil_gas { border-left: 3px solid var(--sector-oil_gas); }
.sector-border.hydro { border-left: 3px solid var(--sector-hydro); }
.sector-border.biomass { border-left: 3px solid var(--sector-biomass); }
.sector-border.geothermal { border-left: 3px solid var(--sector-geothermal); }
.sector-border.grid { border-left: 3px solid var(--sector-grid); }
.sector-border.coal { border-left: 3px solid var(--sector-coal); }

/* ============================================================
   EDITORIAL TYPOGRAPHY (Republic-inspired)
   Serif headlines via Newsreader, sans-serif UI via Inter.
   ============================================================ */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

.info-name,
.splash-title,
.wf-title,
.lp-alert-title,
.lp-news-title,
.info-panel h1,
.info-panel h2,
.info-panel h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-feature-settings: "kern", "liga", "onum";
}


/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME — Republic-inspired editorial parchment
   Activated via <html data-theme="light">
   ═══════════════════════════════════════════════════════════════ */

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme='light'] {
  /* ─── Base surfaces ─── */
  --bg: #eceae4;
  --bg-elevated: #f4f2ec;
  --bg-card: rgba(255,255,255,0.88);
  --bg-panel: rgba(255,255,255,0.92);
  --bg-glass: rgba(255,255,255,0.85);
  --bg-glass-light: rgba(255,255,255,0.65);

  /* Warm stone greys — inverted */
  --grey-1: #1c1917;
  --grey-2: #383633;
  --grey-3: #57534e;
  --grey-4: #98938e;
  --grey-5: #dddbd5;
  --grey-6: #f4f2ef;

  /* Text */
  --text: #1a1a2e;
  --text-dim: #5a5a7a;
  --text-bright: #0a0a14;
  --text-muted: #8a8aa0;

  /* Borders — warm subtle */
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.22);

  /* Brand — coral-warm */
  --blue: #2a4558;
  --orange: #fd8055;
  --orange-soft: rgba(253,128,85,0.12);
  --orange-glow: rgba(253,128,85,0.35);
  --brand: #fd8055;

  /* Category soft tints — slightly stronger on light bg */
  --cat-solar-soft: rgba(234,179,8,0.14);
  --cat-wind-soft: rgba(20,184,166,0.14);
  --cat-nuclear-soft: rgba(59,130,246,0.14);
  --cat-oilgas-soft: rgba(239,68,68,0.14);
  --cat-hydro-soft: rgba(6,182,212,0.14);
  --cat-biomass-soft: rgba(34,197,94,0.14);
  --cat-geo-soft: rgba(236,72,153,0.14);
  --cat-grid-soft: rgba(139,92,246,0.14);
}

[data-theme='light'] body {
  background: #eceae4;
  color: #1a1a2e;
}

/* ─── Header glass ─── */
[data-theme='light'] header,
[data-theme='light'] .site-header,
[data-theme='light'] .app-header,
[data-theme='light'] #siteHeader {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(20,20,40,0.04);
}

[data-theme='light'] header a,
[data-theme='light'] header nav a,
[data-theme='light'] .site-header a {
  color: #1a1a2e;
}

/* ─── Glass panels ─── */
[data-theme='light'] .info-panel,
[data-theme='light'] .filter-panel,
[data-theme='light'] .dashboard-panel,
[data-theme='light'] #alertsPanel,
[data-theme='light'] #leftPanel {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 60px rgba(30,25,20,0.08),
    0 4px 16px rgba(30,25,20,0.04);
  color: #1a1a2e;
}

[data-theme='light'] .info-panel *,
[data-theme='light'] .filter-panel *,
[data-theme='light'] .dashboard-panel *,
[data-theme='light'] #alertsPanel *,
[data-theme='light'] #leftPanel * {
  border-color: rgba(0,0,0,0.08);
}

[data-theme='light'] .info-panel h1,
[data-theme='light'] .info-panel h2,
[data-theme='light'] .info-panel h3,
[data-theme='light'] .info-panel h4,
[data-theme='light'] .filter-panel h1,
[data-theme='light'] .filter-panel h2,
[data-theme='light'] .filter-panel h3,
[data-theme='light'] .dashboard-panel h1,
[data-theme='light'] .dashboard-panel h2,
[data-theme='light'] .dashboard-panel h3,
[data-theme='light'] #leftPanel h1,
[data-theme='light'] #leftPanel h2,
[data-theme='light'] #leftPanel h3 {
  color: #0a0a14;
}

/* ─── KPI ticker ─── */
[data-theme='light'] .kpi-ticker,
[data-theme='light'] #kpiTicker {
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(0,0,0,0.08);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(30,25,20,0.06);
}

[data-theme='light'] .kpi-ticker .kpi-label,
[data-theme='light'] .kpi-ticker .label {
  color: #5a5a7a;
}

[data-theme='light'] .kpi-ticker .kpi-value,
[data-theme='light'] .kpi-ticker .value {
  color: #0a0a14;
}

/* ─── Wattsflash ─── */
[data-theme='light'] .wattsflash,
[data-theme='light'] #wattsflash,
[data-theme='light'] .wattsflash-banner {
  background: linear-gradient(135deg, rgba(253,128,85,0.14), rgba(255,255,255,0.88)) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(253,128,85,0.28);
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(253,128,85,0.12);
}

[data-theme='light'] .wattsflash *,
[data-theme='light'] #wattsflash * {
  color: inherit;
}

/* ─── Feed cards in left panel ─── */
[data-theme='light'] #leftPanel .feed-card,
[data-theme='light'] #leftPanel .news-card,
[data-theme='light'] #leftPanel article,
[data-theme='light'] .feed-item,
[data-theme='light'] .news-item {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(30,25,20,0.04);
}

[data-theme='light'] #leftPanel .feed-card:hover,
[data-theme='light'] #leftPanel .news-card:hover,
[data-theme='light'] .feed-item:hover,
[data-theme='light'] .news-item:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(253,128,85,0.35);
  box-shadow: 0 8px 28px rgba(30,25,20,0.08);
}

[data-theme='light'] #leftPanel .feed-card h3,
[data-theme='light'] #leftPanel .feed-card h4,
[data-theme='light'] .feed-item .title,
[data-theme='light'] .news-item .title {
  color: #0a0a14;
}

[data-theme='light'] #leftPanel .feed-card p,
[data-theme='light'] #leftPanel .feed-card .meta,
[data-theme='light'] .feed-item .meta,
[data-theme='light'] .news-item .meta {
  color: #5a5a7a;
}

/* ─── Search box inputs ─── */
[data-theme='light'] input[type='text'],
[data-theme='light'] input[type='search'],
[data-theme='light'] input[type='email'],
[data-theme='light'] textarea,
[data-theme='light'] select,
[data-theme='light'] .search-box,
[data-theme='light'] .search-input,
[data-theme='light'] #searchInput {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a2e;
}

[data-theme='light'] input::placeholder,
[data-theme='light'] textarea::placeholder {
  color: #8a8aa0;
}

[data-theme='light'] input:focus,
[data-theme='light'] textarea:focus,
[data-theme='light'] select:focus {
  border-color: rgba(253,128,85,0.5);
  box-shadow: 0 0 0 3px rgba(253,128,85,0.15);
  outline: none;
}

/* ─── Buttons ─── */
[data-theme='light'] button,
[data-theme='light'] .btn {
  color: #1a1a2e;
}

[data-theme='light'] .btn-primary,
[data-theme='light'] button.primary {
  background: #fd8055;
  color: #ffffff;
  border: 1px solid rgba(253,128,85,0.5);
}

[data-theme='light'] .btn-primary:hover,
[data-theme='light'] button.primary:hover {
  background: #ff6f3c;
}

/* ─── Atmospheric overlays: soften on light ─── */
[data-theme='light'] .scanlines,
[data-theme='light'] #scanlines,
[data-theme='light'] .vignette,
[data-theme='light'] #vignette,
[data-theme='light'] .crt-overlay {
  opacity: 0.08 !important;
  mix-blend-mode: multiply;
}

[data-theme='light'] .noise,
[data-theme='light'] #noise {
  opacity: 0.04 !important;
}

/* ─── Globe container background ─── */
[data-theme='light'] #globeViz,
[data-theme='light'] #globe-container,
[data-theme='light'] .globe-container {
  background: radial-gradient(ellipse at center, #f4f2ec 0%, #eceae4 60%, #dcd9d0 100%);
}

/* ─── Markers & tooltips ─── */
[data-theme='light'] .marker-label,
[data-theme='light'] .globe-tooltip,
[data-theme='light'] .tooltip,
[data-theme='light'] .leaflet-tooltip {
  background: rgba(255,255,255,0.95) !important;
  color: #1a1a2e !important;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 24px rgba(30,25,20,0.15);
  backdrop-filter: blur(12px);
}

[data-theme='light'] .marker-label *,
[data-theme='light'] .globe-tooltip *,
[data-theme='light'] .tooltip * {
  color: #1a1a2e;
}

/* ─── Links ─── */
[data-theme='light'] a {
  color: #fd8055;
}

[data-theme='light'] a:hover {
  color: #e85a2a;
}

/* ─── Scrollbar ─── */
[data-theme='light'] ::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.04);
}

[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 8px;
}

[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.28);
}

/* ─── Dividers & horizontal rules ─── */
[data-theme='light'] hr {
  border-color: rgba(0,0,0,0.08);
}

/* ─── Badges & tags ─── */
[data-theme='light'] .badge,
[data-theme='light'] .tag,
[data-theme='light'] .chip {
  background: rgba(0,0,0,0.05);
  color: #1a1a2e;
  border: 1px solid rgba(0,0,0,0.08);
}

/* ═══ Enriched company panel v2 ═══ */
.info-logo-wrap {
  width: 100%;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.info-logo {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
[data-theme='light'] .info-logo-wrap {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.06);
}

.info-listed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 9px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.info-listed-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.info-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px 0;
}
.info-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  text-decoration: none;
  transition: all 0.15s;
}
.info-social-chip:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--orange, #f59e0b);
}
.info-social-icon {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}
[data-theme='light'] .info-social-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #4b5563;
}

.info-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-news-item {
  display: block;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--orange, #f59e0b);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.info-news-item:hover {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #fbbf24;
  transform: translateX(2px);
}
.info-news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #e5e7eb;
  margin-bottom: 4px;
}
.info-news-meta {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
[data-theme='light'] .info-news-item {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme='light'] .info-news-title {
  color: #1a1a2e;
}

/* ═══ Hot companies (news this week) ═══ */
.mk--hot .mk__ring {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), 0 0 24px rgba(239, 68, 68, 0.3);
  animation: hotPulse 1.8s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.45; }
}
.mk__news-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 8px rgba(239, 68, 68, 0.7);
  pointer-events: none;
  z-index: 3;
}
.mk--listed .mk__body::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #0a0e14;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.8);
  pointer-events: none;
  z-index: 2;
}
[data-theme='light'] .mk--listed .mk__body::after {
  border-color: #fff;
}

/* ═══ News ticker bar ═══ */
.news-ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.88), rgba(10, 14, 20, 0.96));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  z-index: 80;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.news-ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.news-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.news-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 120s linear infinite;
  will-change: transform;
}
.news-ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.nt-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  height: 100%;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 12.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.nt-item:hover { color: #fbbf24; }
.nt-src {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}
.nt-title {
  font-weight: 500;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-time {
  font-size: 10px;
  color: #6b7280;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
[data-theme='light'] .news-ticker-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,250,0.98));
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme='light'] .nt-item { color: #1a1a2e; }
[data-theme='light'] .nt-time { color: #6b7280; }

/* Shift globe a little above ticker on mobile so it doesn't overlap */
@media (max-width: 768px) {
  .news-ticker-bar { height: 32px; }
  .nt-title { max-width: 240px; }
  .news-ticker-label { padding: 0 10px; font-size: 10px; }
}

/* ═══ Region zoom bar (top center, under the main header) ═══ */
.region-bar {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 2px;
  z-index: 85;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.region-bar::-webkit-scrollbar { display: none; }
.region-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #d1d5db;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: inherit;
}
.region-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.region-btn.active {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
}
[data-theme='light'] .region-bar {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
}
[data-theme='light'] .region-btn { color: #1a1a2e; }

.country-tip {
  background: rgba(10,14,20,0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(245,158,11,0.4);
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.country-tip strong { color: #fbbf24; font-size: 13px; }

@media (max-width: 768px) {
  /* Hide region bar on mobile — too much clutter over the globe */
  .region-bar { display: none !important; }
}

/* ═══ Push existing bottom-fixed elements above the news ticker (38px + 6px gap) ═══ */
body.has-ticker .legend         { bottom: 64px !important; }
body.has-ticker .time-widget    { bottom: 60px !important; }
body.has-ticker .nav-arrows     { bottom: 60px !important; }
body.has-ticker .wattsflash     { bottom: 62px !important; }
body.has-ticker .dashboard-toggle { bottom: 124px !important; }
body.has-ticker .alerts-toggle  { bottom: 124px !important; }
@media (max-width: 768px) {
  body.has-ticker .legend        { bottom: 80px !important; }  /* above mobile region bar */
  body.has-ticker .time-widget   { bottom: 92px !important; }
  body.has-ticker .nav-arrows    { bottom: 92px !important; }
  body.has-ticker .wattsflash    { bottom: 94px !important; }
  body.has-ticker .dashboard-toggle { bottom: 144px !important; }
  body.has-ticker .alerts-toggle { bottom: 144px !important; }
}

/* ═══ Hide WattsFlash when news ticker is live (duplicate content role) ═══ */
body.has-ticker .wattsflash {
  display: none !important;
}

/* ═══ Cluster markers: add "entreprises" label to reduce ambiguity ═══ */
.mk--cluster .mk__body {
  font-weight: 800;
  font-size: 14px;
}
.mk--cluster .mk__body::after {
  content: ' cos';
  font-size: 8px;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 2px;
}

/* ═══ Compact chrome mode: hide KPI + weather bar, free top 56px ═══ */
body.chrome-compact .kpi-ticker,
body.chrome-compact .weather-bar,
body.chrome-compact #weatherEnergyBar,
body.chrome-compact .weather-bar-toggle {
  display: none !important;
}
body.chrome-compact header {
  top: 8px !important;
}
body.chrome-compact .region-bar {
  top: 58px !important;
}
body.chrome-compact .filter-panel,
body.chrome-compact .dashboard-panel,
body.chrome-compact .info-panel {
  top: 86px !important;
}

/* The toggle button — sits on the right of the header */
#chromeToggle {
  position: fixed;
  top: 40px;
  right: 20px;
  z-index: 120;
  background: rgba(20,18,28,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #d1d5db;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#chromeToggle:hover {
  background: rgba(30,26,40,0.95);
  color: #FF6600;
  border-color: rgba(255,102,0,0.35);
}
body.chrome-compact #chromeToggle { top: 18px; }
#chromeToggle .ct-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}
body.chrome-compact #chromeToggle .ct-dot { background: #6b7280; box-shadow: none; animation: none; }
@media (max-width: 768px) {
  #chromeToggle { font-size: 9px; padding: 4px 8px; top: 10px; right: 10px; }
}
