﻿    /* ═══ TOURIST DASHBOARD ═══ */
    #t-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .t-hdr-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .t-logo {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: .03em;
    }

    .t-role-badge {
      background: rgba(50, 224, 196, .12);
      color: var(--mint);
      border: 1px solid rgba(50, 224, 196, .3);
      border-radius: 4px;
      padding: 2px 10px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .08em;
    }

    .t-hdr-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .t-lang-sel {
      background: var(--surfaceAlt);
      border: 1px solid var(--border);
      color: var(--textSec);
      border-radius: 5px;
      padding: 4px 8px;
      font-size: 11px;
      cursor: pointer;
    }

    #t-profile-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--textSec);
      cursor: pointer;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--surfaceAlt);
      transition: all .2s;
    }

    #t-profile-btn:hover {
      border-color: var(--mint);
      color: var(--text);
    }

    #t-logout-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--textMuted);
      border-radius: 5px;
      padding: 5px 12px;
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      transition: all .2s;
    }

    #t-logout-btn:hover {
      border-color: var(--red);
      color: var(--red);
    }

    #t-body {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    /* Left Sidebar + Column */
    #t-left-wrap {
      display: flex;
      flex-shrink: 0;
      position: relative;
      z-index: 1000;
    }

    #t-nav {
      width: 68px;
      background: var(--surface);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 12px 0;
      gap: 6px;
      border-right: 1px solid var(--border);
      position: relative;
      z-index: 1001;
    }

    .t-nav-icon {
      width: 56px;
      height: 58px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font-size: 22px;
      border-radius: 12px;
      cursor: pointer;
      transition: all .2s;
      border: 1px solid transparent;
      position: relative;
    }

    .t-nav-icon:hover {
      background: var(--surfaceAlt);
      border-color: var(--border);
    }

    .t-nav-icon.active {
      background: rgba(50, 224, 196, .08);
      border-color: rgba(50, 224, 196, .35);
      box-shadow: 0 0 10px rgba(50, 224, 196, .12);
    }

    .t-nav-icon.active::after {
      content: '';
      position: absolute;
      left: -1px;
      top: 12px;
      bottom: 12px;
      width: 4px;
      background: var(--mint);
      border-radius: 0 4px 4px 0;
    }

    .t-nav-label {
      font-size: 9px;
      font-weight: 600;
      color: var(--textMuted);
      margin-top: 1px;
      text-align: center;
      letter-spacing: .03em;
      line-height: 1;
    }

    #t-col-left {
      position: absolute;
      left: 68px;
      top: 0;
      bottom: 0;
      width: 320px;
      overflow-y: auto;
      background: rgba(4, 13, 24, 0.85);
      backdrop-filter: blur(12px);
      padding: 15px;
      display: none;
      flex-direction: column;
      gap: 15px;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
      z-index: 1000;
    }

    #t-col-left.open {
      display: flex;
      animation: tPanelFade 0.3s ease-out forwards;
    }

    @keyframes tPanelFade {
      from {
        opacity: 0;
        transform: translateX(-5px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes profileModalFade {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes tScan {
      0% {
        transform: translateY(-100%);
        opacity: 0;
      }

      10% {
        opacity: 0.5;
      }

      90% {
        opacity: 0.5;
      }

      100% {
        transform: translateY(1000%);
        opacity: 0;
      }
    }

    .t-left-panel {
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .t-left-panel.active {
      display: flex;
      animation: tPanelFade 0.3s ease-out forwards;
    }

    #t-col-center {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    #t-col-right {
      width: 300px;
      overflow-y: auto;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex-shrink: 0;
      border-left: 1px solid var(--border);
    }


    .t-card {
      background: var(--surfaceAlt);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      position: relative;
      overflow: hidden;
    }

    .t-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: rgba(50, 224, 196, 0.15);
      animation: tScan 3s linear infinite;
      pointer-events: none;
    }

    .t-card-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--textMuted);
      letter-spacing: .06em;
      text-transform: uppercase;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .t-card-title::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--mint);
      animation: blink 1.2s ease-in-out infinite;
    }

    /* Safety Score */
    #t-score-wrap {
      position: relative;
      width: 160px;
      height: 160px;
      margin: 0 auto 12px;
    }

    #t-score-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
    }

    #t-score-grade {
      font-size: 36px;
      font-weight: 800;
      color: var(--mint);
      line-height: 1;
    }

    #t-score-val {
      font-size: 12px;
      color: var(--textSec);
      font-family: 'IBM Plex Mono', monospace;
    }

    #t-score-factors {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .t-sf {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--textSec);
      padding: 4px 0;
      border-bottom: 1px solid rgba(255, 255, 255, .04);
    }

    .tsf-v {
      font-weight: 700;
      font-family: 'IBM Plex Mono', monospace;
    }

    .tsf-v.safe {
      color: var(--mint);
    }

    .tsf-v.caution {
      color: var(--orange);
    }

    .tsf-v.danger {
      color: var(--red);
    }

    /* Weather */
    #t-wx-main {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 12px;
    }

    .t-wx-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .t-wx-item {
      background: var(--bg);
      border-radius: 6px;
      padding: 8px 10px;
    }

    .t-wx-lbl {
      font-size: 9px;
      color: var(--textMuted);
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .t-wx-val {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      font-family: 'IBM Plex Mono', monospace;
    }

    .t-wx-alert-box {
      background: #3D0010;
      border: 1px solid #6B0020;
      border-radius: 6px;
      padding: 8px 10px;
      font-size: 11px;
      color: var(--orange);
      margin-top: 8px;
    }

    /* Forecast */
    .t-forecast-row {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
    }

    .t-forecast-row::-webkit-scrollbar {
      height: 3px;
    }

    .t-forecast-row::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    .t-fc-item {
      min-width: 58px;
      background: var(--bg);
      border-radius: 8px;
      padding: 8px 6px;
      text-align: center;
      flex-shrink: 0;
      border: 1px solid var(--border);
      transition: border-color .2s;
    }

    .t-fc-item:hover {
      border-color: var(--cyan);
    }

    .t-fc-item.now {
      border-color: var(--mint);
      background: rgba(50, 224, 196, .06);
    }

    .t-fc-time {
      font-size: 9px;
      color: var(--textMuted);
      font-weight: 600;
      letter-spacing: .04em;
    }

    .t-fc-icon {
      font-size: 20px;
      margin: 4px 0;
    }

    .t-fc-temp {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      font-family: 'IBM Plex Mono', monospace;
    }

    .t-fc-rain {
      font-size: 8px;
      color: var(--cyan);
      margin-top: 2px;
    }

    .t-fc-loading {
      font-size: 10px;
      color: var(--textMuted);
      text-align: center;
      padding: 12px;
      width: 100%;
    }

    /* Safety News Feed */
    .t-news-item {
      background: var(--bg);
      border-radius: 6px;
      padding: 8px 10px;
      margin-bottom: 6px;
      border-left: 3px solid var(--border);
      transition: border-color .2s;
      cursor: default;
    }

    .t-news-item:hover {
      border-left-color: var(--cyan);
    }

    .t-news-item.danger {
      border-left-color: var(--red);
    }

    .t-news-item.caution {
      border-left-color: var(--orange);
    }

    .t-news-item.safe {
      border-left-color: var(--mint);
    }

    .t-news-hl {
      font-size: 11px;
      color: var(--text);
      font-weight: 500;
      line-height: 1.4;
      margin-bottom: 3px;
    }

    .t-news-meta {
      font-size: 9px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
      display: flex;
      justify-content: space-between;
    }

    .t-news-sev {
      font-size: 8px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .t-news-sev.high {
      background: #3D0010;
      color: var(--red);
    }

    .t-news-sev.medium {
      background: #3D2800;
      color: var(--orange);
    }

    .t-news-sev.low {
      background: #001A12;
      color: var(--mint);
    }

    /* Device Info */
    .t-dev-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }

    .t-dev-item {
      background: var(--bg);
      border-radius: 6px;
      padding: 8px 10px;
    }

    .t-dev-lbl {
      font-size: 9px;
      color: var(--textMuted);
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .t-dev-val {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      font-family: 'IBM Plex Mono', monospace;
    }

    .t-dev-bar {
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin-top: 4px;
    }

    .t-dev-fill {
      height: 100%;
      border-radius: 2px;
      transition: width .5s;
    }

    /* Anomaly Detection */
    .t-anom-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .t-anom-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: var(--textSec);
      padding: 6px 8px;
      background: var(--bg);
      border-radius: 5px;
    }

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

    .t-anom-dot.green {
      background: var(--mint);
      box-shadow: 0 0 6px rgba(50, 224, 196, .4);
    }

    .t-anom-dot.amber {
      background: var(--orange);
      box-shadow: 0 0 6px rgba(255, 159, 67, .4);
    }

    .t-anom-dot.red {
      background: var(--red);
      box-shadow: 0 0 6px rgba(255, 59, 59, .4);
      animation: sos-pulse 1.5s infinite;
    }

    .t-anom-st {
      margin-left: auto;
      font-weight: 600;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 10px;
    }

    /* Tourist Map */
    #t-map-container {
      flex: 1;
      position: relative;
      min-height: 300px;
    }

    #t-score-mini {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 1000;
      background: var(--surfaceAlt);
      border: 1px solid var(--mint);
      border-radius: 12px;
      padding: 12px 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 4px 20px rgba(50, 224, 196, 0.2);
      transition: all 0.2s;
    }

    #t-score-mini:hover {
      border-color: var(--cyan);
      box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
      transform: translateY(-2px);
    }

    #t-score-mini-lbl {
      font-size: 12px;
      font-weight: 700;
      color: var(--textMuted);
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    #t-score-mini-val {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 22px;
      font-weight: 800;
      color: var(--mint);
    }

    #t-score-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(4, 13, 24, 0.4);
      backdrop-filter: blur(2px);
      z-index: 1001;
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      padding: 40px;
      overflow-y: auto;
    }

    #t-score-overlay.active {
      display: flex;
      opacity: 1;
    }

    #t-score-overlay .t-card {
      width: 560px;
      max-width: 90vw;
      animation: tPanelFade 0.3s ease-out forwards;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      cursor: default;
    }

    #t-map {
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    #t-weather-mini {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 1000;
      background: rgba(4, 13, 24, 0.7);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 8px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      cursor: default;
      transition: all 0.2s;
    }

    .wm-icon {
      font-size: 28px;
      animation: float 3s ease-in-out infinite;
    }

    .wm-temp {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
    }

    .wm-cond {
      font-size: 10px;
      color: var(--textSec);
      text-transform: uppercase;
      font-family: 'IBM Plex Mono', monospace;
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-4px);
      }
    }

    #t-sat-btn {
      position: absolute;
      top: 90px;
      right: 20px;
      z-index: 1000;
    }

    #t-center-btn {
      position: absolute;
      top: 90px;
      right: 64px;
      z-index: 1000;
      background: var(--surfaceAlt);
      border: 1px solid var(--border);
      border-radius: 5px;
      color: var(--textSec);
      font-size: 14px;
      padding: 5px 10px;
      cursor: pointer;
      transition: all .2s;
    }

    #t-center-btn:hover {
      border-color: var(--mint);
    }

    /* Geofence */
    #t-geofence-panel {
      padding: 12px;
      border-top: 1px solid var(--border);
      background: var(--surface);
      max-height: 180px;
      overflow-y: auto;
      flex-shrink: 0;
    }

    .t-gf-empty {
      font-size: 11px;
      color: var(--textMuted);
      text-align: center;
      padding: 12px;
    }

    .t-gf-card {
      background: var(--surfaceAlt);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 10px;
      margin-top: 6px;
      font-size: 11px;
    }

    /* SOS Button */
    #t-sos-card {
      text-align: center;
    }

    #t-sos-btn {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: linear-gradient(135deg, #D80032, #FF1744);
      border: 3px solid #FF5A5A;
      color: #fff;
      font-size: 24px;
      font-weight: 900;
      cursor: pointer;
      position: relative;
      margin: 8px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .2s;
      box-shadow: 0 0 30px rgba(255, 23, 68, .3);
    }

    #t-sos-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 0 45px rgba(255, 23, 68, .5);
    }

    #t-sos-btn:active {
      transform: scale(.95);
    }

    .t-sos-ring {
      position: absolute;
      inset: -8px;
      border-radius: 50%;
      border: 2px solid rgba(255, 23, 68, .4);
      animation: sos-ring 2s ease-out infinite;
    }

    /* Contacts */
    .t-contact-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, .04);
    }

    .t-ct-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }

    .t-ct-num {
      font-size: 10px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
    }

    .t-ct-actions {
      display: flex;
      gap: 4px;
    }

    .t-ct-actions button {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 4px 8px;
      font-size: 12px;
      cursor: pointer;
      transition: all .2s;
    }

    .t-ct-actions button:hover {
      border-color: var(--cyan);
    }

    /* Privacy */
    .t-priv-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      font-size: 11px;
      color: var(--textSec);
      border-bottom: 1px solid rgba(255, 255, 255, .04);
    }

    .t-priv-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 4px;
      font-family: 'IBM Plex Mono', monospace;
    }

    .t-priv-badge.on {
      background: rgba(50, 224, 196, .12);
      color: var(--mint);
      border: 1px solid rgba(50, 224, 196, .25);
    }

    /* Toggle Switch */
    .t-toggle {
      position: relative;
      display: inline-block;
      width: 36px;
      height: 20px;
    }

    .t-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .t-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: var(--border);
      border-radius: 20px;
      transition: .3s;
    }

    .t-slider:before {
      content: '';
      position: absolute;
      height: 14px;
      width: 14px;
      left: 3px;
      bottom: 3px;
      background: #fff;
      border-radius: 50%;
      transition: .3s;
    }

    .t-toggle input:checked+.t-slider {
      background: var(--mint);
    }

    .t-toggle input:checked+.t-slider:before {
      transform: translateX(16px);
    }

    /* RIGHT PANEL */
    #rp {
      width: 320px;
      background: var(--surface);
      border-left: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    #al-hdr {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border);
      transition: background .4s;
      flex-shrink: 0;
    }

    .alert-tabs {
      display: flex;
      gap: 4px;
      background: rgba(0, 0, 0, 0.2);
      padding: 3px;
      border-radius: 6px;
      border: 1px solid var(--border);
      margin-top: 10px;
    }

    .atb {
      flex: 1;
      padding: 6px 0;
      border: none;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .05em;
      transition: all .2s;
      color: var(--textMuted);
      background: transparent;
      cursor: pointer;
    }

    .atb.active {
      background: var(--surfaceAlt);
      color: var(--text);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .atb:hover:not(.active) {
      color: var(--text);
      background: rgba(255, 255, 255, 0.05);
    }

    #al-hdr.blink {
      background: #1A0008;
    }

    .ahi {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    #al-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--mint);
      flex-shrink: 0;
      transition: background .4s;
    }

    #al-lbl {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .08em;
      color: var(--text);
      transition: color .4s;
    }

    #al-hdr.blink #al-lbl {
      color: var(--red);
    }

    #al-hdr.blink #al-dot {
      background: var(--red);
    }

    #al-hdr-right {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    #sos-badge {
      border: 1px solid var(--border);
      color: #fff;
      border-radius: 12px;
      padding: 3px 10px;
      font-size: 11px;
      font-weight: 700;
      font-family: 'IBM Plex Mono', monospace;
      background: var(--surfaceAlt);
      transition: all .4s;
    }

    #clear-sos {
      background: transparent;
      border: 1px solid #3D0010;
      border-radius: 5px;
      color: var(--red);
      font-size: 9px;
      font-weight: 700;
      padding: 4px 9px;
      letter-spacing: .05em;
      transition: all .2s;
    }

    #clear-sos:hover {
      background: #1A0008;
      border-color: var(--red);
    }

    #uptime-bar {
      padding: 6px 16px;
      border-bottom: 1px solid var(--border);
      background: #040D18;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .ub-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .ub-l {
      font-size: 9px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
    }

    .ub-v {
      font-size: 10px;
      color: var(--cyan);
      font-weight: 600;
      font-family: 'IBM Plex Mono', monospace;
    }

    #sig-log {
      padding: 5px 16px;
      border-bottom: 1px solid var(--border);
      overflow: hidden;
      height: 28px;
      background: #040D18;
      flex-shrink: 0;
    }

    #sig-log-inner {
      font-size: 9px;
      font-family: 'IBM Plex Mono', monospace;
      color: var(--textMuted);
      white-space: nowrap;
      animation: ticker 22s linear infinite;
    }

    #ts {
      padding: 10px 14px 11px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .ts-lbl {
      font-size: 10px;
      color: var(--textMuted);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .tr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .t-city {
      font-size: 11px;
      color: var(--text);
      font-weight: 600;
    }

    .t-id {
      font-size: 9px;
      font-family: 'IBM Plex Mono', monospace;
      color: var(--textMuted);
      margin-left: 6px;
    }

    .t-right {
      display: flex;
      gap: 7px;
      align-items: center;
    }

    #t-toggle {
      width: 100%;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 5px;
      color: var(--cyan);
      font-size: 10px;
      font-weight: 600;
      font-family: 'IBM Plex Mono', monospace;
      padding: 6px 0;
      margin-top: 4px;
      letter-spacing: .04em;
      transition: all .2s;
      cursor: pointer;
    }

    #t-toggle:hover {
      background: var(--blue);
      color: var(--text);
      border-color: var(--blue);
    }

    .bat-wrap {
      width: 36px;
      height: 3px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .bat-fill {
      height: 100%;
      border-radius: 2px;
    }

    #al-feed {
      flex: 1;
      overflow-y: auto;
      padding: 11px 13px;
    }

    /* ALERT CARD */
    .ac {
      border-radius: 8px;
      padding: 11px 13px;
      margin-bottom: 9px;
      transition: all .35s ease;
    }

    .ac-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
    }

    .ac-tl {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .ac-time {
      font-size: 9px;
      font-family: 'IBM Plex Mono', monospace;
      color: var(--textMuted);
    }

    .ac-name {
      font-size: 12px;
      color: var(--textSec);
      margin-bottom: 4px;
    }

    .ac-city {
      font-size: 10px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
      margin-bottom: 4px;
    }

    .ac-meta {
      display: flex;
      gap: 9px;
      flex-wrap: wrap;
      margin-bottom: 7px;
    }

    .ac-coord {
      font-size: 9px;
      color: var(--textSec);
      font-family: 'IBM Plex Mono', monospace;
    }

    .ac-bat {
      font-size: 10px;
      font-family: 'IBM Plex Mono', monospace;
    }

    .ac-wx {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 6px;
      margin-bottom: 8px;
      background: #040D18;
      border: 1px solid var(--border);
    }

    .ac-wx-icon {
      font-size: 20px;
      line-height: 1;
      flex-shrink: 0;
    }

    .ac-wx-info {
      flex: 1;
      min-width: 0;
    }

    .ac-wx-main {
      font-size: 11px;
      color: var(--text);
      font-weight: 600;
    }

    .ac-wx-sub {
      font-size: 9px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
      margin-top: 2px;
    }

    .ac-wx-alert {
      font-size: 9px;
      color: var(--orange);
      margin-top: 2px;
      font-weight: 600;
    }

    .ac-wx-temp {
      font-size: 18px;
      font-weight: 700;
      font-family: 'IBM Plex Mono', monospace;
      color: var(--cyan);
      flex-shrink: 0;
    }

    .ac-a3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 5px;
    }

    .ac-a2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px;
    }

    .btn-respond {
      background: var(--red);
      border: none;
      border-radius: 4px;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 6px 0;
      letter-spacing: .04em;
    }

    .btn-locate {
      background: #0A2A4A;
      border: 1px solid #1E4D78;
      border-radius: 4px;
      color: var(--cyan);
      font-size: 10px;
      font-weight: 600;
      padding: 6px 0;
    }

    .btn-contact {
      background: #0A2A1A;
      border: 1px solid #006B54;
      border-radius: 4px;
      color: var(--mint);
      font-size: 10px;
      font-weight: 600;
      padding: 6px 0;
    }

    .btn-ack {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--textSec);
      font-size: 10px;
      padding: 6px 0;
    }

    .btn-locate:hover {
      background: #0F4C75;
    }

    .btn-contact:hover {
      background: #003D30;
    }

    #rp-foot {
      padding: 9px 16px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }

    #zct-txt {
      font-size: 10px;
      color: var(--textMuted);
    }

    #zct-val {
      color: var(--cyan);
      font-family: 'IBM Plex Mono', monospace;
    }

    #fb-s {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    #fb-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--mint);
    }

    #fb-lbl {
      font-size: 10px;
      color: var(--mint);
      font-family: 'IBM Plex Mono', monospace;
    }

    #logout-btn {
      background: transparent;
      border: 1px solid #3D0010;
      border-radius: 5px;
      color: var(--red);
      font-size: 9px;
      font-weight: 700;
      padding: 4px 10px;
      letter-spacing: .04em;
      transition: all .2s;
      cursor: pointer;
      margin-left: 8px;
    }

    #logout-btn:hover {
      background: #1A0008;
      border-color: var(--red);
    }

    /* CONTACT MODAL */
    #cm-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 8, 18, .8);
      backdrop-filter: blur(5px);
      z-index: 9000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    #cm-overlay.open {
      display: flex;
    }

    #cm-modal {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      width: 360px;
      overflow: hidden;
      box-shadow: 0 22px 60px rgba(0, 0, 0, .75);
    }

    #cm-hdr {
      background: #0D2035;
      padding: 16px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    #cm-hdr-l {
      flex: 1;
    }

    #cm-badge-wrap {
      margin-bottom: 8px;
    }

    #cm-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 3px;
    }

    #cm-id {
      font-size: 11px;
      color: var(--textSec);
      font-family: 'IBM Plex Mono', monospace;
    }

    #cm-x {
      background: transparent;
      border: none;
      color: var(--textMuted);
      font-size: 20px;
      padding: 0;
      line-height: 1;
      margin-left: 12px;
    }

    #cm-x:hover {
      color: var(--text);
    }

    #cm-stats {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
    }

    .cms-i {
      text-align: center;
    }

    .cms-l {
      font-size: 9px;
      color: var(--textMuted);
      text-transform: uppercase;
      letter-spacing: .07em;
      margin-bottom: 4px;
    }

    .cms-v {
      font-size: 14px;
      font-weight: 600;
      font-family: 'IBM Plex Mono', monospace;
    }

    #cm-loc {
      padding: 11px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 8px;
      background: #040D18;
    }

    #cm-loc-coords {
      font-size: 11px;
      color: var(--textSec);
      font-family: 'IBM Plex Mono', monospace;
      flex: 1;
      line-height: 1.5;
    }

    #cm-fly-btn {
      background: var(--blue);
      border: none;
      border-radius: 5px;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 6px 12px;
    }

    #cm-wx-row {
      padding: 11px 18px;
      border-bottom: 1px solid var(--border);
      background: #040D18;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #cm-wx-ic {
      font-size: 28px;
      flex-shrink: 0;
    }

    #cm-wx-b {
      flex: 1;
    }

    #cm-wx-cond {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }

    #cm-wx-det {
      font-size: 10px;
      color: var(--textMuted);
      font-family: 'IBM Plex Mono', monospace;
      margin-top: 3px;
    }

    #cm-wx-alrt {
      font-size: 10px;
      color: var(--orange);
      margin-top: 3px;
      font-weight: 600;
    }

    #cm-sig-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      margin-left: auto;
    }

    #cm-sig-lbl {
      font-size: 9px;
      color: var(--textMuted);
    }

    #cm-acts {
      padding: 16px 18px;
    }

    #cm-acts-title {
      font-size: 10px;
      color: var(--textMuted);
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 12px;
    }

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

    .cm-btn {
      border-radius: 8px;
      padding: 13px 10px;
      border: none;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: filter .2s;
    }

    .cm-btn:hover {
      filter: brightness(1.15);
    }

    .cm-bi {
      font-size: 22px;
      line-height: 1;
    }

    .cm-bl {
      font-size: 10px;
      letter-spacing: .03em;
    }

    .cmb-call {
      background: #1A0A00;
      border: 1px solid #5C2200;
      color: #FF7043;
    }

    .cmb-wa {
      background: #00200E;
      border: 1px solid #005C2A;
      color: #4CAF50;
    }

    .cmb-sms {
      background: #001A30;
      border: 1px solid #004080;
      color: #42A5F5;
    }

    .cmb-radio {
      background: #1A1A00;
      border: 1px solid #4D4D00;
      color: #FFD54F;
    }

    #cm-note {
      background: #1A0008;
      border: 1px solid #3D0010;
      border-radius: 7px;
      padding: 11px 13px;
      font-size: 10px;
      color: #F48FB1;
      line-height: 1.65;
    }

    #cm-note b {
      color: var(--red);
    }

    /* LEAFLET */
    .leaflet-container {
      background: #030D1A !important;
      font-family: 'IBM Plex Sans', sans-serif;
    }

    .leaflet-control-zoom a {
      background: var(--surfaceAlt) !important;
      color: var(--textSec) !important;
      border: 1px solid var(--border) !important;
    }

    .leaflet-control-zoom a:hover {
      background: var(--blue) !important;
      color: var(--text) !important;
    }

    .leaflet-control-attribution {
      background: rgba(5, 16, 31, .85) !important;
      color: var(--textMuted) !important;
      font-size: 9px !important;
    }

    .leaflet-control-attribution a {
      color: var(--cyan) !important;
    }

    .leaflet-popup-content-wrapper {
      background: var(--surface) !important;
      border: 1px solid var(--border) !important;
      border-radius: 9px !important;
      box-shadow: 0 4px 22px rgba(0, 0, 0, .65) !important;
      color: var(--text) !important;
      padding: 0 !important;
    }

    .leaflet-popup-content {
      margin: 0 !important;
    }

    .leaflet-popup-tip {
      background: var(--surface) !important;
    }

    .leaflet-popup-close-button {
      color: var(--textMuted) !important;
      top: 6px !important;
      right: 6px !important;
    }

    /* RESIZABLE DIVIDERS */
    .divider {
      width: 5px;
      background: var(--border);
      cursor: col-resize;
      flex-shrink: 0;
      position: relative;
      transition: background .15s;
      user-select: none;
    }

    .divider:hover,
    .divider.dragging {
      background: var(--cyan);
    }

    .divider::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 1px;
      height: 28px;
      background: var(--textMuted);
      border-radius: 1px;
    }

    .divider:hover::after,
    .divider.dragging::after {
      background: var(--cyan);
    }

    /* REMOVE loc-bar and jump-btn CSS (kept for structural ref only) */
    #loc-bar {
      display: none !important;
    }

    #jump-btn {
      display: none !important;
    }

    #admin-loc-txt {
      display: none !important;
    }

