    /* ═══════════════════════════════════════════
   DESIGN TOKENS - SOLAR-CLEAN INSTITUTIONAL
   (Updated to Calm Light Theme)
═══════════════════════════════════════════ */
    :root {
      --bg: #FDFBF7;
      --surface: #FFFFFF;
      --surface-2: #F8F9FA;
      --surface-3: #E5E7EB;
      --border: #E5E7EB;
      --border-mid: #D1CDBF;
      --text: #1F2937;
      --text-mid: #4B5563;
      --text-sub: #6B7280;

      --primary: #2B6CB0;
      --primary-lt: #1D4ED8;
      --primary-dim: rgba(43, 108, 176, 0.08);
      --primary-bg: #EFF6FF;

      --danger: #D9534F;
      --danger-lt: #B91C1C;
      --danger-dim: rgba(217, 83, 79, 0.07);
      --danger-bg: #FEF2F2;

      --ok: #2F855A;
      --ok-lt: #15803D;
      --ok-dim: rgba(47, 133, 90, 0.07);
      --ok-bg: #F0FDF4;

      --warn: #B7791F;
      --warn-dim: rgba(183, 121, 31, 0.07);
      --warn-bg: #FFFBEB;

      --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
      --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
      --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.03);
      --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.05);

      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;

      --mono: 'Outfit', sans-serif;
      --sans: 'Atkinson Hyperlegible', sans-serif;

      /* Map polygon fill colours */
      --fever-fill: rgba(217, 83, 79, 0.25);
      --fever-stroke: rgba(217, 83, 79, 0.6);
      --flu-fill: rgba(183, 121, 31, 0.20);
      --flu-stroke: rgba(183, 121, 31, 0.5);
      --water-fill: rgba(43, 108, 176, 0.15);
      --water-stroke: rgba(43, 108, 176, 0.5);
    }

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

    html,
    body {
      width: 100%;
      height: 100vh;
      overflow: hidden;
      background: var(--bg);
      font-family: var(--sans);
      color: var(--text);
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    .icon-defs {
      display: none;
    }

    /* ═══════════════════════════════════════════
   ZONE 1 - INFORMATION CANOPY
═══════════════════════════════════════════ */
    #canopy {
      height: 52px;
      background: var(--surface);
      border-bottom: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      flex-shrink: 0;
      box-shadow: var(--shadow-sm);
      position: relative;
      z-index: 100;
    }

    /* Brand */
    #brand {
      display: flex;
      align-items: center;
      gap: 9px;
      padding-right: 14px;
      border-right: 1.5px solid var(--border);
      flex-shrink: 0;
    }

    .brand-mark {
      width: 32px;
      height: 32px;
      background: var(--primary);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .brand-mark svg {
      width: 18px;
      height: 18px;
    }

    .brand-name-odia {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.1;
    }

    .inline-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      vertical-align: middle;
      margin-top: -2px;
      stroke: currentColor;
    }

    .ticker-icon {
      width: 14px;
      height: 14px;
      display: inline-block;
      vertical-align: middle;
      margin-right: 4px;
      margin-top: -2px;
      stroke: currentColor;
    }

    .tab-icon {
      flex-shrink: 0;
      stroke: currentColor;
    }

    .rc-chevron {
      stroke: currentColor;
      transition: transform 0.2s;
    }


    /* Language segmented control */
    #lang-seg {
      display: flex;
      background: var(--surface-2);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 3px;
      flex-shrink: 0;
    }

    .lang-seg-btn {
      padding: 5px 12px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-mid);
      cursor: pointer;
      transition: all 0.15s;
      min-width: 48px;
      min-height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      user-select: none;
    }

    .lang-seg-btn.active {
      background: var(--surface);
      color: var(--primary);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--primary);
    }

    /* Canopy spacer */
    .c-spacer {
      flex: 1;
    }

    /* Region crumb - clickable */
    #region-crumb {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      background: var(--primary-bg);
      border: 1.5px solid var(--primary);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    #region-crumb:hover {
      background: #DBEAFE;
    }

    #region-crumb .rc-label {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    #region-crumb .rc-value {
      font-size: 12px;
      font-weight: 700;
      color: var(--primary);
    }

    #region-crumb .rc-chevron {
      font-size: 10px;
      color: var(--primary-lt);
      margin-left: 2px;
    }

    /* Connectivity pill */
    #conn-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 11px;
      border: 1.5px solid;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
      transition: all 0.5s;
    }

    #conn-pill.online {
      background: var(--ok-bg);
      border-color: rgba(22, 163, 74, 0.4);
    }

    #conn-pill.offline {
      background: var(--warn-bg);
      border-color: rgba(217, 119, 6, 0.4);
    }

    .conn-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      animation: dot-pulse 2.5s infinite;
    }

    #conn-pill.online .conn-dot {
      background: var(--ok-lt);
    }

    #conn-pill.offline .conn-dot {
      background: var(--warn);
      animation: none;
    }

    @keyframes dot-pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.35
      }
    }

    .conn-label {
      font-size: 10px;
      font-family: var(--mono);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

    #conn-pill.online .conn-label {
      color: var(--ok);
    }

    #conn-pill.offline .conn-label {
      color: var(--warn);
    }

    /* ═══════════════════════════════════════════
   ZONE 2 - INTERACTIVE CORE
═══════════════════════════════════════════ */
    #core {
      height: calc(600px - 52px - 34px);
      display: flex;
    }

    /* ── MAP ZONE (61%) ──────────────────────── */
    #map-zone {
      width: 61%;
      position: relative;
      background: var(--surface-2);
      border-right: 1.5px solid var(--border);
      overflow: hidden;
    }

    /* SVG map canvas */
    #map-svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* SVG base grid */
    .map-grid-line {
      stroke: #CBD5E1;
      stroke-width: 0.5;
      opacity: 0.6;
    }

    .map-district-boundary {
      fill: none;
      stroke: #94A3B8;
      stroke-width: 1;
      stroke-dasharray: 4, 3;
      opacity: 0.5;
    }

    .map-river {
      stroke: #93C5FD;
      stroke-width: 2;
      fill: none;
      opacity: 0.6;
    }

    .map-road {
      stroke: #CBD5E1;
      stroke-width: 1.5;
      fill: none;
      opacity: 0.8;
    }

    /* Alert polygons */
    .alert-poly {
      transition: opacity 0.4s, fill 0.4s;
      cursor: pointer;
    }

    .alert-poly:hover {
      opacity: 0.85 !important;
    }

    .alert-poly.fever {
      fill: var(--fever-fill);
      stroke: var(--fever-stroke);
      stroke-width: 1.5;
    }

    .alert-poly.flu {
      fill: var(--flu-fill);
      stroke: var(--flu-stroke);
      stroke-width: 1.5;
    }

    .alert-poly.water {
      fill: var(--water-fill);
      stroke: var(--water-stroke);
      stroke-width: 1.5;
    }

    /* PHC square anchors */
    .phc-anchor {
      cursor: pointer;
      transition: opacity 0.3s, transform 0.2s;
      transform-origin: center;
    }

    .phc-anchor rect {
      fill: var(--ok-lt);
      stroke: var(--ok);
      stroke-width: 2;
      vector-effect: non-scaling-stroke;
    }

    .phc-anchor text {
      fill: #fff;
      font-size: 8px;
      font-family: var(--mono);
      font-weight: 500;
      text-anchor: middle;
      dominant-baseline: middle;
      pointer-events: none;
    }

    .phc-anchor:hover {
      transform: scale(1.15);
    }

    /* Water infrastructure markers */
    .water-point {
      cursor: pointer;
      transition: opacity 0.3s;
    }

    .water-point circle {
      fill: var(--primary-lt);
      stroke: var(--primary);
      stroke-width: 2;
      vector-effect: non-scaling-stroke;
    }

    .water-point text {
      fill: #fff;
      font-size: 8px;
      font-family: var(--mono);
      font-weight: 500;
      text-anchor: middle;
      dominant-baseline: middle;
      pointer-events: none;
    }

    /* Road block markers */
    .road-block rect {
      fill: #FDE68A;
      stroke: var(--warn);
      stroke-width: 1.5;
      vector-effect: non-scaling-stroke;
    }

    .road-block text {
      fill: var(--warn);
      font-size: 7px;
      font-family: var(--mono);
      font-weight: 700;
      text-anchor: middle;
      dominant-baseline: middle;
      pointer-events: none;
    }

    /* HUD overlay */
    #map-hud {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(255, 255, 255, 0.93);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 8px 12px;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(6px);
      min-width: 148px;
      transition: all 0.3s;
    }

    .hud-tier {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 2px;
    }

    .hud-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.1;
    }

    .hud-sub {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--primary);
      margin-top: 2px;
    }

    /* Skeleton loader */
    #map-skeleton {
      position: absolute;
      inset: 0;
      background: var(--surface-2);
      z-index: 50;
      display: none;
      flex-direction: column;
      gap: 10px;
      padding: 18px;
      pointer-events: none;
    }

    #map-skeleton.visible {
      display: flex;
    }

    .sk {
      background: linear-gradient(90deg, var(--surface-3) 25%, var(--border) 50%, var(--surface-3) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.3s infinite;
      border-radius: var(--radius-sm);
    }

    .sk-top {
      height: 42%;
      width: 100%;
    }

    .sk-row {
      display: flex;
      gap: 8px;
      flex: 1;
    }

    .sk-left {
      flex: 3;
    }

    .sk-right {
      flex: 2;
    }

    .sk-bottom {
      height: 18%;
      width: 70%;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    /* Map zoom controls */
    #map-zc {
      position: absolute;
      right: 10px;
      bottom: 74px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      z-index: 20;
    }

    .zc {
      width: 38px;
      height: 38px;
      min-height: 38px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--text-mid);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: all 0.15s;
      user-select: none;
      font-family: var(--mono);
      font-weight: 300;
    }

    .zc:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    .zc:active {
      transform: scale(0.95);
    }

    /* Timeline */
    #timeline-zone {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.96);
      border-top: 1.5px solid var(--border);
      padding: 6px 14px 8px;
      z-index: 20;
      backdrop-filter: blur(6px);
    }

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

    .tl-label {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1.5px;
    }

    .tl-val {
      font-size: 9px;
      font-family: var(--mono);
      font-weight: 600;
      color: var(--primary);
    }

    #tl-slider {
      width: 100%;
      height: 8px;
      -webkit-appearance: none;
      appearance: none;
      background: linear-gradient(to right, var(--primary) 40%, var(--surface-3) 40%);
      border-radius: 4px;
      outline: none;
      cursor: pointer;
      border: 1.5px solid var(--border);
      padding: 0;
    }

    #tl-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--surface);
      border: 2.5px solid var(--primary);
      cursor: grab;
      box-shadow: var(--shadow-sm);
    }

    .tl-ticks {
      display: flex;
      justify-content: space-between;
      margin-top: 3px;
    }

    .tl-tick {
      font-size: 7px;
      font-family: var(--mono);
      color: var(--text-sub);
    }

    /* Data frame banner */
    #data-banner {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(255, 255, 255, 0.93);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 7px 11px;
      box-shadow: var(--shadow-sm);
      z-index: 20;
      display: none;
      backdrop-filter: blur(6px);
    }

    #data-banner.visible {
      display: block;
    }

    .db-year {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      font-family: var(--mono);
      line-height: 1;
    }

    .db-sub {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-top: 1px;
    }

    .db-tag {
      font-size: 8px;
      font-family: var(--mono);
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 20px;
      display: inline-block;
      margin-top: 4px;
    }

    .db-tag.ok {
      background: var(--ok-bg);
      color: var(--ok);
    }

    .db-tag.danger {
      background: var(--danger-bg);
      color: var(--danger);
    }


    /* ── SIDEBAR (39%) ───────────────────────── */
    #sidebar {
      width: 39%;
      display: flex;
      flex-direction: column;
      background: var(--surface);
      border-left: 0;
    }

    /* Tab bar */
    #tab-bar {
      display: flex;
      border-bottom: 1.5px solid var(--border);
      background: var(--surface-2);
      flex-shrink: 0;
    }

    .tab {
      flex: 1;
      padding: 10px 0;
      text-align: center;
      font-size: 10px;
      font-family: var(--mono);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-sub);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1.5px;
      transition: all 0.2s;
    }

    .tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
      background: var(--surface);
    }

    .tab:hover:not(.active) {
      color: var(--text-mid);
    }

    /* Knowledge toggle */
    #knowledge-toggle {
      display: flex;
      padding: 10px 12px 8px;
      gap: 5px;
      flex-shrink: 0;
      border-bottom: 1.5px solid var(--border);
    }

    .kt-btn {
      flex: 1;
      padding: 7px 4px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      font-size: 9px;
      font-family: var(--mono);
      font-weight: 500;
      color: var(--text-mid);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      text-align: center;
      min-height: 34px;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .kt-btn .kt-icon {
      font-size: 14px;
    }

    .kt-btn.active.danger {
      background: var(--danger-bg);
      border-color: var(--danger-lt);
      color: var(--danger);
    }

    .kt-btn.active.primary {
      background: var(--primary-bg);
      border-color: var(--primary);
      color: var(--primary);
    }

    .kt-btn.active.ok {
      background: var(--ok-bg);
      border-color: var(--ok-lt);
      color: var(--ok);
    }

    .kt-btn:hover:not(.active) {
      border-color: var(--border-mid);
      color: var(--text);
    }

    /* Dashboard */
    #dashboard-panel {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    #dashboard-panel::-webkit-scrollbar {
      width: 4px;
    }

    #dashboard-panel::-webkit-scrollbar-track {
      background: transparent;
    }

    #dashboard-panel::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 2px;
    }

    .section-label {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1.8px;
    }

    /* Stat cards */
    .stat-card {
      border-radius: var(--radius-md);
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1.5px solid;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }

    .stat-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
    }

    .stat-card:hover {
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }

    .stat-card:active {
      transform: scale(0.99);
    }

    .stat-card.danger {
      background: var(--danger-bg);
      border-color: rgba(220, 38, 38, 0.2);
    }

    .stat-card.danger::before {
      background: var(--danger);
    }

    .stat-card.ok {
      background: var(--ok-bg);
      border-color: rgba(22, 163, 74, 0.2);
    }

    .stat-card.ok::before {
      background: var(--ok);
    }

    .stat-card.primary {
      background: var(--primary-bg);
      border-color: rgba(37, 99, 235, 0.2);
    }

    .stat-card.primary::before {
      background: var(--primary);
    }

    .stat-card.warn {
      background: var(--warn-bg);
      border-color: rgba(217, 119, 6, 0.2);
    }

    .stat-card.warn::before {
      background: var(--warn);
    }

    .sc-icon {
      font-size: 20px;
      flex-shrink: 0;
      width: 28px;
      text-align: center;
    }

    .sc-body {
      flex: 1;
      min-width: 0;
    }

    .sc-primary {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }

    .sc-secondary {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-top: 1px;
    }

    .sc-num {
      font-size: 26px;
      font-weight: 700;
      font-family: var(--mono);
      flex-shrink: 0;
      line-height: 1;
    }

    .stat-card.danger .sc-num {
      color: var(--danger);
    }

    .stat-card.ok .sc-num {
      color: var(--ok);
    }

    .stat-card.primary .sc-num {
      color: var(--primary);
    }

    .stat-card.warn .sc-num {
      color: var(--warn);
    }

    /* Progress card (vaccination) */
    .progress-card {
      border-radius: var(--radius-md);
      padding: 10px 12px;
      border: 1.5px solid rgba(217, 119, 6, 0.2);
      background: var(--warn-bg);
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }

    .progress-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--warn);
    }

    .pc-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .pc-icon {
      font-size: 18px;
    }

    .pc-titles {
      flex: 1;
    }

    .pc-t1 {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }

    .pc-t2 {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }

    .pc-date {
      font-size: 10px;
      font-family: var(--mono);
      font-weight: 600;
      color: var(--warn);
      background: rgba(217, 119, 6, 0.1);
      padding: 2px 7px;
      border-radius: 4px;
    }

    .pc-bar {
      height: 6px;
      background: var(--surface-3);
      border-radius: 3px;
      overflow: hidden;
    }

    .pc-fill {
      height: 100%;
      width: 73%;
      background: var(--warn);
      border-radius: 3px;
      transition: width 0.6s ease;
    }

    .pc-meta {
      display: flex;
      justify-content: space-between;
      margin-top: 4px;
    }

    .pc-meta span {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
    }

    /* Chat panel */
    #chat-panel {
      flex: 1;
      display: none;
      flex-direction: column;
      padding: 10px 12px;
      gap: 8px;
      overflow: hidden;
    }

    #mosathi-panel {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 10px 12px;
      gap: 8px;
      overflow: hidden;
    }

    #chat-panel.visible {
      display: flex;
    }

    .chat-intro {
      font-size: 11px;
      color: var(--text-mid);
      line-height: 1.5;
      padding-bottom: 6px;
      border-bottom: 1.5px solid var(--border);
    }

    .chat-intro strong {
      color: var(--text);
    }

    .intent-label {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1.8px;
    }

    /* Intent cards */
    .intent-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 11px 13px;
      cursor: pointer;
      background: var(--surface);
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 54px;
      box-shadow: var(--shadow-sm);
    }

    .intent-card:hover {
      border-color: var(--primary);
      background: var(--primary-bg);
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }

    .intent-card:active {
      transform: scale(0.99);
    }

    .ic-icon {
      font-size: 22px;
      flex-shrink: 0;
    }

    .ic-body {
      flex: 1;
    }

    .ic-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.2;
    }

    .ic-sub {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--text-sub);
      margin-top: 2px;
    }

    .ic-arrow {
      font-size: 14px;
      color: var(--primary-lt);
      flex-shrink: 0;
    }

    /* Chat result area */
    #chat-result {
      flex: 1;
      overflow: hidden;
      background: var(--surface-2);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px;
      display: none;
    }

    #chat-result.visible {
      display: block;
    }

    .cr-header {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--primary);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }

    .cr-body {
      font-size: 11px;
      color: var(--text-mid);
      line-height: 1.6;
    }

    /* Speak button */
    #speak-section {
      padding: 8px 12px 10px;
      border-top: 1.5px solid var(--border);
      flex-shrink: 0;
    }

    #speak-btn {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid var(--danger);
      border-radius: var(--radius-md);
      background: var(--danger);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: all 0.2s;
      position: relative;
    }

    #speak-btn:hover {
      background: #B91C1C;
      border-color: #B91C1C;
    }

    #speak-btn:active {
      transform: scale(0.99);
    }

    .sb-mic {
      font-size: 22px;
      flex-shrink: 0;
    }

    .sb-texts .sb-odia {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      display: block;
      line-height: 1.2;
    }

    .sb-texts .sb-en {
      font-size: 8px;
      font-family: var(--mono);
      color: rgba(255, 255, 255, 0.75);
      text-transform: uppercase;
      letter-spacing: 1.2px;
    }


    /* ═══════════════════════════════════════════
   ZONE 3 - PULSE TICKER
═══════════════════════════════════════════ */
    #ticker {
      height: 34px;
      background: var(--text);
      border-top: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    #ticker-badge {
      padding: 0 12px;
      height: 100%;
      background: #FFD60A;
      font-size: 8px;
      font-family: var(--mono);
      font-weight: 700;
      color: #1E293B;
      text-transform: uppercase;
      letter-spacing: 2px;
      display: flex;
      align-items: center;
      border-right: 1px solid rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
    }

    #ticker-track {
      flex: 1;
      overflow: hidden;
      position: relative;
    }

    #ticker-track::before,
    #ticker-track::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 20px;
      z-index: 4;
      pointer-events: none;
    }

    #ticker-track::before {
      left: 0;
      background: linear-gradient(to right, var(--text), transparent);
    }

    #ticker-track::after {
      right: 0;
      background: linear-gradient(to left, var(--text), transparent);
    }

    .ticker-scroll {
      display: flex;
      align-items: center;
      height: 34px;
      white-space: nowrap;
      animation: ticker 38s linear infinite;
    }

    @keyframes ticker {
      0% {
        transform: translateX(100%)
      }

      100% {
        transform: translateX(-100%)
      }
    }

    .t-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-right: 40px;
      font-size: 10px;
      font-family: var(--mono);
    }

    .t-item.danger {
      color: #FCA5A5;
    }

    .t-item.info {
      color: #93C5FD;
    }

    .t-item.ok {
      color: #86EFAC;
    }

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

    .t-item.danger .t-dot {
      background: #FCA5A5;
    }

    .t-item.info .t-dot {
      background: #93C5FD;
    }

    .t-item.ok .t-dot {
      background: #86EFAC;
    }

    .t-sep {
      color: #475569;
      margin-right: 40px;
      font-family: var(--mono);
      display: inline-block;
    }


    /* ═══════════════════════════════════════════
   OVERLAY: STATE/DISTRICT SELECTION MODAL
═══════════════════════════════════════════ */
    #region-modal {
      position: absolute;
      inset: 52px 0 34px 0;
      z-index: 500;
      background: rgba(248, 250, 252, 0.97);
      backdrop-filter: blur(10px);
      display: none;
      flex-direction: column;
    }

    #region-modal.visible {
      display: flex;
    }

    #rm-header {
      display: flex;
      align-items: center;
      padding: 14px 24px;
      border-bottom: 1.5px solid var(--border);
      gap: 12px;
    }

    #rm-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      flex: 1;
    }

    #rm-subtitle {
      font-size: 10px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    #rm-close {
      width: 40px;
      height: 40px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--text-mid);
      cursor: pointer;
      transition: all 0.15s;
      font-family: var(--mono);
    }

    #rm-close:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    #rm-body {
      flex: 1;
      display: flex;
      padding: 16px 24px;
      gap: 20px;
      overflow: hidden;
    }

    .rm-state-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .rm-state-head {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
    }

    .rm-state-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .rm-state-tag {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--primary);
      background: var(--primary-bg);
      padding: 2px 7px;
      border-radius: 3px;
    }

    /* SVG district maps */
    .rm-svg {
      width: 100%;
      flex: 1;
      min-height: 0;
    }

    /* District polygon buttons */
    .dist-poly {
      fill: #E2E8F0;
      stroke: #94A3B8;
      stroke-width: 1.5;
      cursor: pointer;
      transition: fill 0.2s, opacity 0.3s;
    }

    .dist-poly:hover {
      fill: #BFDBFE;
      stroke: var(--primary);
    }

    .dist-poly.selected {
      fill: #DBEAFE;
      stroke: var(--primary);
      stroke-width: 2.5;
    }

    .dist-poly.dimmed {
      opacity: 0.3;
    }

    .dist-label {
      font-size: 9px;
      font-family: var(--mono);
      font-weight: 500;
      fill: var(--text-mid);
      text-anchor: middle;
      dominant-baseline: middle;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .dist-label.dimmed {
      opacity: 0.3;
    }

    .dist-alert-badge {
      font-size: 8px;
      font-family: var(--mono);
      font-weight: 700;
      fill: var(--danger);
      text-anchor: middle;
      dominant-baseline: middle;
      pointer-events: none;
    }

    /* Alert legend in modal */
    .rm-legend {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      padding: 8px 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
    }

    .rl-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 9px;
      font-family: var(--mono);
      color: var(--text-mid);
    }

    .rl-dot {
      width: 10px;
      height: 10px;
      border-radius: 2px;
      flex-shrink: 0;
    }

    .rl-dot.selected {
      background: #DBEAFE;
      border: 1.5px solid var(--primary);
    }

    .rl-dot.available {
      background: #E2E8F0;
      border: 1px solid #94A3B8;
    }

    .rl-dot.high-alert {
      background: #FEF2F2;
      border: 1px solid var(--danger);
    }


    /* ═══════════════════════════════════════════
   OVERLAY: SITUATION REPORT DRAWER
═══════════════════════════════════════════ */
    #sitrep {
      position: absolute;
      inset: 52px 0 34px 0;
      z-index: 400;
      display: none;
      align-items: flex-end;
      pointer-events: none;
    }

    #sitrep.visible {
      display: flex;
      pointer-events: all;
    }

    #sitrep-bg {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.35);
      backdrop-filter: blur(3px);
      cursor: pointer;
    }

    #sitrep-panel {
      position: relative;
      z-index: 1;
      width: 100%;
      max-height: 65%;
      background: var(--surface);
      border-top: 2px solid var(--primary);
      border-radius: var(--radius-xl) var(--radius-xl) 0 0;
      padding: 16px 20px 18px;
      display: flex;
      flex-direction: column;
      gap: 11px;
      box-shadow: var(--shadow-xl);
      animation: slide-up 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slide-up {
      from {
        transform: translateY(100%)
      }

      to {
        transform: translateY(0)
      }
    }

    .srp-handle {
      width: 36px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 0 auto -4px;
    }

    .srp-head {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .srp-icon-wrap {
      font-size: 28px;
    }

    .srp-title-group {
      flex: 1;
    }

    .srp-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }

    .srp-loc {
      font-size: 9px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-top: 3px;
    }

    .srp-close {
      width: 34px;
      height: 34px;
      min-width: 34px;
      background: var(--surface-2);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--text-mid);
      cursor: pointer;
      font-family: var(--mono);
      transition: all 0.15s;
    }

    .srp-close:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    .srp-source {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 20px;
      background: var(--ok-bg);
      border: 1.5px solid rgba(22, 163, 74, 0.3);
      font-size: 9px;
      font-family: var(--mono);
      font-weight: 600;
      color: var(--ok);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      align-self: flex-start;
    }

    .srp-body {
      font-size: 12px;
      color: var(--text-mid);
      line-height: 1.7;
    }

    .srp-stats {
      display: flex;
      gap: 8px;
    }

    .srp-stat {
      flex: 1;
      padding: 9px;
      text-align: center;
      background: var(--surface-2);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
    }

    .srp-stat .n {
      font-size: 20px;
      font-family: var(--mono);
      font-weight: 700;
    }

    .srp-stat .l {
      font-size: 8px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 2px;
    }

    .srp-stat.d .n {
      color: var(--danger);
    }

    .srp-stat.w .n {
      color: var(--warn);
    }

    .srp-stat.g .n {
      color: var(--ok);
    }

    #srp-cta {
      padding: 12px;
      background: var(--primary);
      border: 2px solid var(--primary);
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 600;
      font-family: var(--sans);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.15s;
      min-height: 48px;
    }

    #srp-cta:hover {
      background: var(--primary-lt);
    }

    /* ═══════════════════════════════════════════
   OVERLAY: VOICE ACTIVE
═══════════════════════════════════════════ */
    #voice-ov {
      position: absolute;
      inset: 0;
      z-index: 600;
      background: rgba(248, 250, 252, 0.97);
      backdrop-filter: blur(12px);
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
    }

    #voice-ov.visible {
      display: flex;
    }

    .wave-row {
      display: flex;
      align-items: center;
      gap: 4px;
      height: 56px;
    }

    .wb {
      width: 5px;
      border-radius: 3px;
      background: var(--primary);
      animation: wave 0.9s ease-in-out infinite alternate;
    }

    .wb:nth-child(1) {
      height: 16px;
      animation-delay: 0s
    }

    .wb:nth-child(2) {
      height: 36px;
      animation-delay: 0.08s
    }

    .wb:nth-child(3) {
      height: 52px;
      animation-delay: 0.16s
    }

    .wb:nth-child(4) {
      height: 38px;
      animation-delay: 0.24s
    }

    .wb:nth-child(5) {
      height: 56px;
      animation-delay: 0.32s
    }

    .wb:nth-child(6) {
      height: 30px;
      animation-delay: 0.40s
    }

    .wb:nth-child(7) {
      height: 48px;
      animation-delay: 0.48s
    }

    .wb:nth-child(8) {
      height: 22px;
      animation-delay: 0.56s
    }

    .wb:nth-child(9) {
      height: 42px;
      animation-delay: 0.64s
    }

    .wb:nth-child(10) {
      height: 18px;
      animation-delay: 0.72s
    }

    .wb:nth-child(11) {
      height: 34px;
      animation-delay: 0.80s
    }

    .wb:nth-child(12) {
      height: 50px;
      animation-delay: 0.88s
    }

    @keyframes wave {
      from {
        transform: scaleY(0.3)
      }

      to {
        transform: scaleY(1)
      }
    }

    .vo-odia {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
    }

    .vo-en {
      font-size: 10px;
      font-family: var(--mono);
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    #vo-close {
      padding: 10px 28px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 11px;
      font-family: var(--mono);
      color: var(--text-mid);
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 1px;
      min-height: 48px;
      transition: all 0.15s;
    }

    #vo-close:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE DESIGN (MOBILE & TABLET)
    ═══════════════════════════════════════════ */
    @media (max-width: 800px) {

      html,
      body {
        height: auto;
        overflow-y: auto;
      }

      #core {
        height: auto;
        flex-direction: column;
        min-height: calc(100vh - 52px - 34px);
      }

      #map-zone {
        width: 100%;
        height: 50vh;
        min-height: 400px;
        border-right: none;
        border-bottom: 1.5px solid var(--border);
      }

      #sidebar {
        width: 100%;
        flex: none;
      }

      #dashboard-panel,
      #mosathi-panel {
        overflow-y: visible;
        padding-bottom: 30px;
      }

      #brand {
        flex-wrap: wrap;
        border-right: none;
      }

      #rm-body {
        flex-direction: column;
        overflow-y: auto;
      }

      .rm-state-col {
        height: 400px;
        flex: none;
      }

      #map-zc {
        bottom: 80px;
      }

      #timeline-zone {
        padding-bottom: 14px;
      }

      #sitrep-panel {
        max-height: 85%;
        padding-bottom: 30px;
      }

      #canopy {
        overflow-x: auto;
      }

      .c-spacer {
        display: none;
      }
    }
