    :root {

      --panel: rgba(17, 24, 39, 0.88);

      --panel-solid: #111827;

      --brand-red: #dd0206;

      --accent: #22c55e;

      --accent-dim: #166534;

      --text: #f9fafb;

      --muted: #9ca3af;

      --border: rgba(255,255,255,0.08);

      --drawer-w: min(400px, 100vw);

    }

    * { box-sizing: border-box; }

    html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }

    #map { position: absolute; inset: 0; background: #0b1220; }



    .hud {

      position: absolute; top: 12px; left: 12px; z-index: 5;

      background: var(--panel); backdrop-filter: blur(10px);

      border: 1px solid var(--border); border-radius: 14px;

      padding: 12px 14px; min-width: 210px; box-shadow: 0 10px 30px rgba(0,0,0,0.35);

      pointer-events: auto;

    }

    .hud h1 { margin: 0 0 2px; font-size: 15px; letter-spacing: 0.2px; }

    .hud h1 span { color: var(--accent); }

    .brand-mark {
      background: #fff;
      border-radius: 8px;
      padding: 7px 10px 5px;
      margin: 0 0 8px;
      line-height: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .brand-wordmark {
      display: block;
      width: 100%;
      max-width: 168px;
      height: auto;
      margin: 0 auto;
    }

    /* Text fallback if image missing — Exo 2 matches the slanted wordmark */
    .brand-wordmark-text {
      display: none;
      margin: 0;
      font-family: "Exo 2", system-ui, sans-serif;
      font-size: 22px;
      font-weight: 800;
      font-style: italic;
      letter-spacing: -0.02em;
      line-height: 1;
      text-transform: uppercase;
    }

    .brand-wordmark-text .wm-rc { color: var(--brand-red, #dd0206); }
    .brand-wordmark-text .wm-spot { color: #111; }
    .brand-wordmark-text .wm-er { color: #111; }
    .brand-wordmark-text .wm-e {
      display: inline-block;
      position: relative;
      color: #111;
    }
    .brand-wordmark-text .wm-e::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0.04em;
      height: 0.22em;
      background: #d81e27;
    }

    .brand-mark.is-fallback .brand-wordmark { display: none; }
    .brand-mark.is-fallback .brand-wordmark-text { display: block; text-align: center; }

    .hud .sub { margin: 0 0 10px; font-size: 11px; color: var(--muted); }

    .hud .stat { font-size: 26px; font-weight: 700; line-height: 1; }

    .hud .stat-pilots { margin-bottom: 6px; }
    .hud .stat-pilots span { color: #f87171; }
    .hud .stat-pilots small { color: #fca5a5; }

    .hud .stat small { font-size: 12px; font-weight: 500; color: var(--muted); }

    .map-truncated-hint {
      display: none;
      margin: 2px 0 6px;
      font-size: 10px;
      line-height: 1.25;
      color: #fbbf24;
      opacity: 0.92;
    }

    .map-truncated-hint.is-visible {
      display: block;
    }

    body.map-hud-compact .map-truncated-hint {
      display: none !important;
    }

    .stat-clubs-more {
      display: none;
      margin-left: 2px;
      font-size: 0.82em;
      font-weight: 800;
      color: #fbbf24;
      vertical-align: top;
      line-height: 1;
    }

    #stat-clubs-wrap.is-truncated .stat-clubs-more {
      display: inline !important;
    }

    .stat-label-short { display: none; }

    .hud-head-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .btn-hud-mobile-menu {
      display: none;
      width: 100%;
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #ecfdf5;
      background: rgba(52, 211, 153, 0.22);
      border: 1px solid rgba(52, 211, 153, 0.55);
      border-radius: 10px;
      padding: 12px 14px;
      min-height: 44px;
    }

    body.map-hud-compact .btn-hud-mobile-menu {
      display: block;
      grid-column: 1 / -1;
      grid-row: 3;
    }

    /* Map menu search + legend styling (sheet chrome in rcs-nav-sheet.css) */

    body.map-hud-compact .hud {
      top: 8px;
      left: 8px;
      padding: 8px 10px;
      min-width: 0;
      max-width: min(300px, calc(100vw - 88px));
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.35);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    body.map-hud-compact .hud:not(.is-expanded) {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      grid-template-rows: auto auto auto;
      gap: 8px;
      align-items: center;
    }

    body.map-hud-compact .hud:not(.is-expanded) .hud-head {
      display: contents;
    }

    body.map-hud-compact .hud:not(.is-expanded) .brand-mark,
    body.map-hud-compact .hud:not(.is-expanded) .hud-head-bar .sub {
      display: none !important;
    }

    body.map-hud-compact .hud:not(.is-expanded) .hud-head-bar {
      display: contents;
    }

    body.map-hud-compact .hud:not(.is-expanded) .legend,
    body.map-hud-compact .hud:not(.is-expanded) .btn-add-club,
    body.map-hud-compact .hud:not(.is-expanded) .account-menu-wrap {
      display: none !important;
    }

    body.map-hud-compact .hud:not(.is-expanded) .stat {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.1;
      margin: 0;
    }

    body.map-hud-compact .hud:not(.is-expanded) .stat-pilots {
      grid-column: 1;
      grid-row: 1;
      margin-bottom: 0;
    }

    body.map-hud-compact .hud:not(.is-expanded) .stat-clubs {
      grid-column: 2;
      grid-row: 1;
    }

    body.map-hud-compact .hud:not(.is-expanded) .toggle {
      grid-column: 1 / -1;
      grid-row: 2;
      display: flex !important;
      margin-top: 0;
      gap: 6px;
    }

    body.map-hud-compact .hud:not(.is-expanded) .toggle button {
      padding: 8px 6px;
      font-size: 11px;
      border-radius: 8px;
    }

    body.map-hud-compact .hud:not(.is-expanded) .stat small {
      display: block;
      font-size: 10px;
      font-weight: 600;
      line-height: 1.15;
      margin-top: 2px;
    }

    body.map-hud-compact .hud:not(.is-expanded) .stat-label-full { display: none; }
    body.map-hud-compact .hud:not(.is-expanded) .stat-label-short { display: inline; }

    body.map-hud-compact .hud:not(.is-expanded) .stat-pilots small { color: #fca5a5; }

    body.map-hud-compact .hud.is-expanded {
      display: block;
      min-width: 220px;
      max-width: min(300px, calc(100vw - 24px));
      padding: 10px 12px 12px;
    }

    body.map-hud-compact .hud.is-expanded .hud-head-bar {
      margin-top: 0;
      margin-bottom: 10px;
    }

    body.map-hud-compact .hud.is-expanded .sub {
      margin: 0;
      flex: 1;
      min-width: 0;
      font-size: 10px;
      line-height: 1.3;
    }

    body.map-hud-compact .hud.is-expanded .brand-wordmark {
      max-width: 150px;
    }

    body:not(.map-hud-compact) .btn-hud-mobile-menu {
      display: none !important;
    }

    body:not(.map-hud-compact) .hud-head-bar {
      display: block;
    }

    body:not(.map-hud-compact) .hud-head-bar .sub {
      margin: 0 0 10px;
    }



    .toggle { display: flex; gap: 6px; margin-top: 12px; }

    .toggle button {

      flex: 1; cursor: pointer; font-size: 12px; font-weight: 600;

      color: #e5e7eb; background: rgba(255,255,255,0.06);

      border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 7px 8px;

    }

    .toggle button.active { background: var(--accent); color: #06210f; border-color: var(--accent); }



    .legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 11px; color: #cbd5e1; }

    .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; border: 1.5px solid #fff; }

    .legend .official { background: #dc2626; border-color: #facc15; }
    .legend .registered { background: #f97316; border-color: #fff; }
    .legend .unverified { background: #111; border-color: #fff; }
    .legend .cluster { background: #51bbd6; border-color: #fff; }

    .map-hud-search {
      position: relative;
      margin-top: 12px;
      width: 100%;
    }

    .map-hud-search-row {
      display: flex;
      gap: 6px;
      align-items: stretch;
    }

    .map-hud-search-input {
      flex: 1;
      min-width: 0;
      height: 36px;
      padding: 0 10px;
      font-size: 13px;
      color: var(--text);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 9px;
    }

    .map-hud-search-input::placeholder { color: #64748b; }

    .map-hud-search-input:focus {
      outline: none;
      border-color: rgba(34,197,94,0.55);
      box-shadow: 0 0 0 2px rgba(34,197,94,0.15);
    }

    .map-hud-search-go {
      flex: 0 0 auto;
      cursor: pointer;
      height: 36px;
      padding: 0 12px;
      font-size: 12px;
      font-weight: 700;
      color: #06210f;
      background: var(--accent);
      border: 1px solid var(--accent);
      border-radius: 9px;
    }

    .map-hud-search-go:disabled {
      opacity: 0.55;
      cursor: default;
    }

    .map-hud-search-advanced {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-top: 8px;
      padding: 8px 12px;
      border-radius: 9px;
      border: 1px solid rgba(134, 239, 172, 0.35);
      background: rgba(34, 197, 94, 0.08);
      color: #86efac;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      text-align: center;
      box-sizing: border-box;
    }

    .map-hud-search-advanced:hover {
      background: rgba(34, 197, 94, 0.16);
      color: #bbf7d0;
      border-color: rgba(134, 239, 172, 0.55);
    }

    body.map-hud-compact .map-hud-search-advanced {
      display: none !important;
    }

    .map-hud-search-hint {
      margin: 6px 0 0;
      font-size: 11px;
      color: #94a3b8;
      line-height: 1.35;
    }

    .map-hud-search-hint[hidden],
    .map-hud-search-empty[hidden],
    .map-hud-search-results[hidden] { display: none !important; }

    .map-hud-search-empty {
      margin: 6px 0 0;
      font-size: 11px;
      color: #94a3b8;
      line-height: 1.35;
    }

    .map-hud-search-empty a { color: #86efac; }

    .map-hud-search-results {
      list-style: none;
      margin: 6px 0 0;
      padding: 4px 0;
      max-height: 240px;
      overflow-y: auto;
      background: rgba(15,23,42,0.96);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 9px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }

    .map-hud-search-results li {
      padding: 8px 10px;
      cursor: pointer;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .map-hud-search-results li:last-child { border-bottom: none; }

    .map-hud-search-results li.is-active,
    .map-hud-search-results li:hover {
      background: rgba(34,197,94,0.12);
    }

    .map-hud-search-results .search-name {
      font-size: 13px;
      font-weight: 600;
      color: #f1f5f9;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .map-hud-search-results .search-meta {
      margin-top: 2px;
      font-size: 11px;
      color: #94a3b8;
    }

    .map-hud-search-results .verified-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #dc2626;
      border: 1px solid #facc15;
      flex-shrink: 0;
    }

    .map-hud-search-more {
      padding: 7px 10px;
      font-size: 11px;
      color: #86efac;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .map-hud-search-more a { color: #86efac; }

    body.map-hud-compact .hud:not(.is-expanded) .map-hud-search {
      display: none !important;
    }

    #mobile-menu-search-mount {
      padding: 0;
      box-sizing: border-box;
    }

    .map-hud-search--menu {
      margin-top: 0;
      width: 100%;
      box-sizing: border-box;
    }

    #mobile-menu-search-mount .map-hud-search-row {
      display: flex;
      width: 100%;
      gap: 8px;
      align-items: stretch;
      box-sizing: border-box;
    }

    #mobile-menu-search-mount .map-hud-search-input {
      flex: 1 1 auto;
      width: auto;
      min-width: 0;
      display: block;
      height: 44px;
      padding: 0 12px;
      font-size: 16px;
      color: #f8fafc;
      background: rgba(255,255,255,0.14);
      border: 1.5px solid rgba(255,255,255,0.32);
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
      border-radius: 10px;
      box-sizing: border-box;
    }

    #mobile-menu-search-mount .map-hud-search-input::placeholder {
      color: #94a3b8;
      opacity: 1;
    }

    #mobile-menu-search-mount .map-hud-search-input:focus {
      border-color: #22c55e;
      box-shadow: 0 0 0 3px rgba(34,197,94,0.22);
      background: rgba(255,255,255,0.16);
    }

    #mobile-menu-search-mount .map-hud-search-go {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      flex: 0 0 auto;
      height: 44px;
      min-width: 68px;
      padding: 0 16px;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: #052e16;
      background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
      border: 1px solid #16a34a;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
      text-align: center;
      min-height: 0;
    }

    #mobile-menu-search-mount .map-hud-search-go:disabled {
      opacity: 0.5;
      box-shadow: none;
    }

    #mobile-menu-search-mount .map-hud-search-advanced {
      display: none !important;
    }

    #mobile-menu-search-mount .map-hud-search-hint,
    #mobile-menu-search-mount .map-hud-search-empty {
      font-size: 12px;
      color: #cbd5e1;
    }

    #mobile-menu-search-mount .map-hud-search-results {
      margin-top: 8px;
      border-color: rgba(255,255,255,0.2);
    }

    .btn-add-club {
      display: block; width: 100%; margin-top: 10px; padding: 9px 10px;
      border-radius: 9px; border: 1px dashed rgba(52,211,153,0.45);
      background: rgba(52,211,153,0.08); color: #86efac;
      font-size: 11px; font-weight: 600; line-height: 1.35; text-align: left;
      text-decoration: none; cursor: pointer;
    }
    .btn-add-club:hover { background: rgba(52,211,153,0.14); color: #bbf7d0; }
    #btn-add-club[hidden] { display: none !important; }

    .account-menu-wrap { position: relative; margin-top: 10px; }

    .btn-account {
      display: block; width: 100%; cursor: pointer;
      font-size: 12px; font-weight: 600; color: #e5e7eb;
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
      border-radius: 9px; padding: 8px 10px;
    }
    #btn-account[hidden] { display: none !important; }

    .account-signed-in { margin-top: 0; }
    #account-signed-in[hidden] { display: none !important; }
    .account-card {
      margin-bottom: 8px; padding: 10px 12px; border-radius: 9px;
      background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.28);
    }
    .account-label {
      display: block; margin-bottom: 3px;
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: #86efac;
    }
    .account-name {
      display: block; font-size: 15px; font-weight: 700; color: #f8fafc;
      line-height: 1.25; word-break: break-word;
    }
    .btn-hud-menu {
      display: block; width: 100%; margin-top: 10px; cursor: pointer;
      font-size: 12px; font-weight: 600; color: #e5e7eb;
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
      border-radius: 9px; padding: 8px 10px; text-align: left;
    }

    .activity-block {
      margin-bottom: 10px; padding: 12px 12px 10px; border-radius: 10px;
      background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
    }
    .activity-block .activity-live-count {
      font-size: 40px; font-weight: 800; line-height: 1;
      color: #22c55e; letter-spacing: -0.02em;
      text-shadow: 0 0 14px rgba(34,197,94,0.45), 0 0 28px rgba(34,197,94,0.2);
    }
    .activity-block .activity-names { font-size: 12px; color: #cbd5e1; margin-top: 8px; line-height: 1.4; }
    .activity-block .activity-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
    .activity-roster { list-style: none; margin: 10px 0 0; padding: 0; }
    .activity-roster-row {
      display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
      padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 12px;
    }
    .activity-roster-row:last-child { border-bottom: none; }
    .activity-roster-name { font-weight: 600; color: #e2e8f0; }
    .activity-roster-anon { font-weight: 500; color: var(--muted); font-style: italic; }
    .activity-roster-aircraft { color: #86efac; text-align: right; flex-shrink: 0; max-width: 55%; }
    .activity-field-ops { margin: 10px 0 0; font-size: 12px; }
    .activity-field-ops a { color: #86efac; text-decoration: none; font-weight: 600; }
    .activity-field-ops a:hover { text-decoration: underline; }

    .activity-heatmap-wrap { margin-bottom: 12px; }
    .activity-expected-wrap { margin-bottom: 12px; }
    .activity-expected-hint { font-size: 11px; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
    .activity-expected-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .activity-expected-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 6px 8px; border-radius: 6px; background: rgba(15,23,42,0.55); }
    .activity-expected-day { color: var(--text); font-weight: 500; }
    .activity-expected-count { color: var(--muted); font-size: 11px; }
    .activity-heatmap-title { margin-bottom: 6px !important; }
    .activity-heatmap-empty { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.4; }
    .activity-heatmap {
      display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 10px);
      gap: 2px; margin-bottom: 4px;
    }
    .activity-heatmap-cell { border-radius: 2px; min-height: 10px; }
    .activity-heatmap-cell.hm-lvl-0 { background: rgba(30,41,59,0.9); }
    .activity-heatmap-cell.hm-lvl-1 { background: #166534; }
    .activity-heatmap-cell.hm-lvl-2 { background: #22c55e; }
    .activity-heatmap-cell.hm-lvl-3 { background: #ca8a04; }
    .activity-heatmap-cell.hm-lvl-4 { background: #ea580c; }
    .activity-heatmap-cell.hm-lvl-5 { background: #dc2626; }
    .activity-heatmap-days {
      display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
      font-size: 9px; color: var(--muted); text-align: center; margin-bottom: 2px;
    }
    .activity-heatmap-caption { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.3; }

    .membership-block { margin-bottom: 14px; }
    .membership-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .btn-member, .btn-member-outline {
      cursor: pointer; font-size: 12px; font-weight: 700; border-radius: 9px;
      padding: 8px 12px; text-decoration: none; display: inline-block; text-align: center;
    }
    .btn-member { background: var(--accent); color: #06210f; border: none; }
    .btn-member-outline {
      background: transparent; color: #cbd5e1; border: 1px solid var(--border);
    }
    .btn-member-outline:hover { background: rgba(255,255,255,0.06); color: #f1f5f9; }

    .auth-backdrop {
      position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,0.5);
      display: none; align-items: center; justify-content: center; padding: 16px;
    }
    .auth-backdrop.open { display: flex; }
    .auth-modal {
      width: 100%; max-width: 380px; background: var(--panel-solid);
      border: 1px solid var(--border); border-radius: 14px; padding: 18px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    }
    .auth-modal h3 { margin: 0; font-size: 16px; }
    .auth-modal-head {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin-bottom: 12px;
    }
    .auth-mode-switch {
      flex: 0 0 auto; cursor: pointer; font-size: 12px; font-weight: 700;
      padding: 6px 10px; border-radius: 8px;
      border: 1px solid var(--border); background: rgba(255,255,255,0.08); color: #e5e7eb;
    }
    .auth-mode-switch:hover { background: rgba(255,255,255,0.12); }
    .auth-modal label { display: block; font-size: 11px; color: var(--muted); margin: 8px 0 4px; }
    .auth-modal input, .auth-modal select {
      width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 8px;
      border: 1px solid var(--border); background: #0f172a; color: #f9fafb;
    }
    .auth-modal select option {
      background: #0f172a;
      color: #f9fafb;
    }
    .auth-modal .auth-row { display: flex; gap: 8px; margin-top: 14px; }
    .auth-modal .auth-row.auth-row-end { justify-content: flex-end; }
    .auth-modal .auth-hint {
      margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: right;
    }
    .auth-modal button:not(.rcs-password-toggle) {
      flex: 1; cursor: pointer; font-weight: 700; border-radius: 9px; padding: 9px;
      border: 1px solid var(--border); background: rgba(255,255,255,0.08); color: #e5e7eb;
    }
    .auth-modal button.primary:not(.rcs-password-toggle) { background: var(--accent); color: #06210f; border-color: var(--accent); }
    .auth-modal button.primary:disabled { opacity: 0.7; cursor: wait; }
    .auth-error { color: #fca5a5; font-size: 12px; min-height: 18px; margin-top: 8px; }
    .auth-modal .rcs-auth-hint { font-size: 11px; color: var(--muted); margin: 4px 0 8px; line-height: 1.4; }
    .auth-modal .rcs-agreement-label {
      display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45;
      margin: 10px 0 0; cursor: pointer;
    }
    .auth-modal .rcs-agreement-label input { width: auto; margin-top: 2px; flex-shrink: 0; }
    .auth-modal .rcs-agreement-label a { color: #86efac; }
    .rcs-auth-register-only[hidden] { display: none !important; }

    /* Cluster count overlays — must live inside the MapLibre container for map.project(). */
    .maplibregl-map .cluster-labels,
    .cluster-labels {
      position: absolute; inset: 0; z-index: 2;
      pointer-events: none; overflow: hidden;
    }
    .cluster-labels .cluster-marker {
      position: absolute;
      transform: translate(-50%, -50%);
      display: flex; flex-direction: column; align-items: center;
      gap: 2px; user-select: none;
    }
    .cluster-labels .cluster-count {
      color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    }
    .cluster-labels .cluster-pulse-ring {
      position: absolute; left: 50%; top: 50%;
      width: 52px; height: 52px; margin: -26px 0 0 -26px;
      border-radius: 50%;
      border: 2px solid #dc2626;
      animation: activity-pulse 1.8s ease-out infinite;
      pointer-events: none;
    }
    .cluster-labels .cluster-active-badge {
      background: #dc2626; border: 1.5px solid #facc15;
      color: #fff; font-size: 11px; font-weight: 700;
      letter-spacing: 0.02em;
      line-height: 1.15; padding: 2px 7px; border-radius: 999px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.4);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
      white-space: nowrap;
    }

    .maplibregl-map .activity-labels,
    .activity-labels {
      position: absolute; inset: 0; z-index: 3;
      pointer-events: none; overflow: hidden;
    }
    .activity-marker {
      position: absolute;
      width: 0; height: 0;
    }
    .activity-marker .activity-pulse-ring {
      position: absolute; left: 0; top: 0;
      width: 32px; height: 32px; margin: -16px 0 0 -16px;
      border-radius: 50%;
      border: 2px solid #dc2626;
      animation: activity-pulse 1.8s ease-out infinite;
    }
    .activity-marker .activity-count-badge {
      position: absolute; left: 0; top: 0;
      transform: translate(-50%, -50%);
      min-width: 24px; height: 24px; padding: 0 5px;
      background: #dc2626; border: 2px solid #facc15;
      border-radius: 999px; color: #fff;
      font-size: 11px; font-weight: 800; line-height: 20px;
      text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
    @keyframes activity-pulse {
      0% { transform: scale(0.55); opacity: 0.85; }
      100% { transform: scale(1.75); opacity: 0; }
    }

    .legend .active { background: #dc2626; border-color: #facc15; }

    .maplibregl-map .pin-tooltip,
    .pin-tooltip {
      position: absolute; z-index: 6;
      left: 0; top: 0;
      pointer-events: none;
      opacity: 0;
      transform: translate(-50%, calc(-100% - 16px)) scale(0.94);
      transition: opacity 0.16s ease, transform 0.16s ease;
    }
    .pin-tooltip.visible {
      opacity: 1;
      transform: translate(-50%, calc(-100% - 16px)) scale(1);
    }
    .pin-tooltip-inner {
      position: relative;
      background: linear-gradient(145deg, #5aa9e6 0%, #38bdf8 55%, #0ea5e9 100%);
      border: 2px solid #ffffff;
      color: #ffffff;
      padding: 9px 16px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.02em;
      line-height: 1.25;
      white-space: nowrap;
      max-width: 260px;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.38),
        0 0 20px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    /* Side drawer */

    .drawer-backdrop {

      position: fixed; inset: 0; z-index: 20;

      background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none;

      transition: opacity 0.22s ease;

    }

    .drawer-backdrop.open { opacity: 1; pointer-events: auto; }



    .drawer {

      position: fixed; top: 0; right: 0; bottom: calc(var(--rcs-map-footer-h, 52px) + env(safe-area-inset-bottom, 0px)); z-index: 21;

      width: var(--drawer-w); max-width: 100%;

      background: var(--panel-solid);

      border-left: 1px solid var(--border);

      box-shadow: -12px 0 40px rgba(0,0,0,0.45);

      transform: translateX(105%);

      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);

      display: flex; flex-direction: column; overflow: hidden;

      visibility: hidden;

      pointer-events: none;

    }

    .drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }



    .drawer-head {

      position: relative;
      display: flex; align-items: flex-start; gap: 10px;

      padding: 16px 48px 12px 16px; border-bottom: 1px solid var(--border);

      flex-shrink: 0;

    }

    .drawer-head > div:first-child { flex: 1; min-width: 0; }

    .drawer-head h2 { margin: 0; font-size: 18px; line-height: 1.25; }

    .drawer-head .meta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

    .drawer-close {

      position: absolute; top: 12px; right: 12px;
      cursor: pointer; border: none; background: rgba(255,255,255,0.08);

      color: var(--text); width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1;

      flex-shrink: 0;

    }



    .drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }



    .badge-fly {

      display: inline-block; padding: 6px 12px; border-radius: 999px;

      font-size: 13px; font-weight: 700; margin-bottom: 8px;

    }

    .fly-day--lvl0, .fly-day--lvl1 { background: #166534; color: #ecfdf5; }

    .fly-day--lvl2 { background: #ca8a04; color: #fefce8; }

    .fly-day--lvl3 { background: #ea580c; color: #fff7ed; }

    .fly-day--lvl4, .fly-day--lvl5 { background: #b91c1c; color: #fef2f2; }



    .brief-summary { font-size: 14px; line-height: 1.45; color: #e5e7eb; margin: 0 0 12px; }

    .brief-limit { font-size: 12px; color: var(--muted); margin: 0 0 14px; font-style: italic; }

    .weather-tier {
      font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
      background: rgba(59, 130, 246, 0.25); color: #93c5fd; padding: 2px 8px; border-radius: 999px;
      vertical-align: middle; margin-left: 6px;
    }

    .volmet-tier {
      font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
      background: rgba(34, 197, 94, 0.25); color: #86efac; padding: 2px 8px; border-radius: 999px;
      vertical-align: middle;
    }

    .weather-sky { font-size: 13px; color: #cbd5e1; margin: 0 0 10px; }

    .weather-credit { margin-top: -6px; }

    .volmet-fetch-stamp { margin-top: -4px; margin-bottom: 10px; font-style: normal; color: #94a3b8; }



    .stat-grid {

      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;

    }

    .stat-box {

      background: rgba(255,255,255,0.04); border: 1px solid var(--border);

      border-radius: 10px; padding: 10px 12px;

    }

    .stat-box .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

    .stat-box .val { font-size: 16px; font-weight: 700; margin-top: 2px; }



    .section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 8px; }



    .disc-list { display: flex; flex-direction: column; gap: 6px; }

    .disc-row {

      display: flex; justify-content: space-between; align-items: center;

      padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,0.04);

      border: 1px solid var(--border); font-size: 13px;

    }

    .disc-verdict { font-weight: 700; font-size: 12px; }

    .profile-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }

    .profile-row {
      display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: start;
      font-size: 13px; line-height: 1.4;
    }

    .profile-lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 1px; }

    .profile-val a { color: #86efac; text-decoration: none; word-break: break-word; }

    .profile-val a:hover { text-decoration: underline; }



    .pill { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }

    .pill.official { background: #dc2626; color: #fef2f2; border: 1px solid #facc15; }
    .pill.registered { background: #f97316; color: #fff7ed; border: 1px solid #fdba74; }

    .pill.unverified { background: #111; color: #f8fafc; border: 1px solid #fff; }

    .pill.sample { background: #dbeafe; color: #1e40af; }



    .drawer-foot {

      padding: 12px 16px 16px; border-top: 1px solid var(--border); flex-shrink: 0;
      display: flex; flex-direction: column; gap: 8px;

    }

    .btn-directions,
    .btn-volmet,
    .btn-chart {

      display: block; width: 100%; text-align: center; text-decoration: none;

      font-weight: 700; font-size: 14px;

      padding: 12px 16px; border-radius: 12px; border: none; cursor: pointer;

    }

    .btn-directions {
      background: #1f2937; color: #f9fafb; border: 1px solid var(--border);
    }

    .btn-directions:hover { background: #374151; }

    .btn-volmet {
      background: var(--accent); color: #052e16;
    }

    .btn-volmet:hover { filter: brightness(1.05); }

    .btn-volmet.disabled { opacity: 0.45; pointer-events: none; }

    .btn-chart {
      background: #f4f1ea; color: #111; border: 1px solid #c4b8a0;
    }

    .btn-chart:hover { filter: brightness(1.04); }

    .btn-admin {
      display: block; width: 100%; text-align: center; text-decoration: none;
      font-weight: 700; font-size: 14px;
      padding: 12px 16px; border-radius: 12px; border: 1px solid #b45309;
      background: #78350f; color: #fef3c7;
    }

    .btn-admin:hover { background: #92400e; color: #fffbeb; }

    .drawer-foot [hidden],
    #btn-admin-club[hidden],
    #btn-volmet[hidden],
    #btn-field-chart[hidden],
    #btn-directions[hidden] {
      display: none !important;
    }

    .stat-grid--guest {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-login-hint {
      margin: 12px 0 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }

    .register-cta {
      margin: 14px 0 4px;
      padding: 14px;
      border-radius: 12px;
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.25);
    }

    .drawer-auth-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 14px;
    }

    .auth-mode-promo {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      text-align: center;
    }

    .auth-mode-promo-text {
      margin: 0 0 10px;
      font-size: 14px;
      font-weight: 600;
      color: #e2e8f0;
      line-height: 1.45;
    }

    .drawer-loading, .drawer-empty {

      text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px;

    }

    .spinner {

      width: 28px; height: 28px; border: 3px solid rgba(255,255,255,0.15);

      border-top-color: var(--accent); border-radius: 50%;

      animation: spin 0.7s linear infinite; margin: 0 auto 12px;

    }

    @keyframes spin { to { transform: rotate(360deg); } }



    @media (max-width: 640px) {

      .drawer {
        top: auto;
        bottom: calc(var(--rcs-map-footer-h, 52px) + env(safe-area-inset-bottom, 0px));
        right: 0; left: 0; width: 100%;
        max-height: min(78vh, calc(100dvh - var(--rcs-map-footer-h, 52px) - env(safe-area-inset-bottom, 0px)));

        border-left: none; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0;

        transform: translateY(100vh); }

      .drawer.open { transform: translateY(0); visibility: visible; pointer-events: auto; }

    }

