.topnav-outer{
    position: sticky; top:0; z-index: 100;
    display:flex; justify-content:center;
    padding: 14px 20px 0;
    pointer-events:none;
  }
  .topnav-outer::before{
    content:''; position:absolute; inset:0 0 auto 0; height:96px;
    background: linear-gradient(180deg, var(--bg) 30%, transparent);
    pointer-events:none;
  }
  .topnav{
    position:relative; pointer-events:auto;
    display:flex; align-items:center; justify-content:space-between; gap:18px;
    width:100%; max-width:1180px;
    padding: 8px 10px 8px 16px;
    border-radius: 999px;
    background:
      linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 40%),
      linear-gradient(155deg, var(--glass-a), var(--glass-b));
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--hairline-09);
    box-shadow:
      0 1px 0 var(--glass-sheen) inset,
      0 0 0 1px var(--shadow-ring),
      0 12px 32px -8px var(--shadow-soft),
      0 4px 14px rgba(255,122,51,0.06);
    transition: box-shadow .25s ease, background .25s ease;
  }
  .topnav:hover{
    box-shadow:
      0 1px 0 var(--glass-sheen-strong) inset,
      0 0 0 1px var(--shadow-ring),
      0 14px 38px -8px var(--shadow-med),
      0 4px 18px rgba(255,122,51,0.1);
  }
  @media (max-width: 640px){
    .topnav{border-radius: var(--radius); flex-wrap:wrap; padding:10px 12px;}
  }
  .brand{display:flex; align-items:center; gap:9px; flex-shrink:0;}
  .brand-mark{
    width:26px; height:26px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    color:var(--text);
  }
  .brand-mark svg{width:21px; height:21px;}
  .brand-text{font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:-0.01em; white-space:nowrap;}
  .brand-text span{color:var(--text-dim); font-weight:500; font-size:10.5px; display:block; letter-spacing:0.03em; margin-top:0px; font-family:var(--font-mono);}
  .nav-links{display:flex; align-items:center; gap:2px; background:var(--veil); border:1px solid var(--hairline-07); padding:3px; border-radius:999px; flex-shrink:1; overflow-x:auto; scrollbar-width:none;}
  .nav-links::-webkit-scrollbar{display:none;}
  .nav-links a{
    font-size:12.5px; font-weight:500; color:var(--text-dim); padding:6.5px 12px; border-radius:999px; white-space:nowrap;
    transition: color .15s ease, background .15s ease;
  }
  .nav-links a:hover{color:var(--text); background:var(--hover-tint);}
  .nav-links a.active{color:var(--bg); background:var(--ember); font-weight:600;}
  .nav-right{display:flex; align-items:center; gap:8px; flex-shrink:0;}
  .live-pill{
    display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:10.5px; color:var(--text-dim);
    padding:6px 11px; border:1px solid var(--hairline-08); border-radius:999px; background:var(--veil);
    white-space:nowrap; flex-shrink:0;
  }
  .live-dot{width:6px; height:6px; border-radius:50%; background:#5fd98a; box-shadow:0 0 0 3px rgba(95,217,138,0.18); animation: blink 2.4s ease-in-out infinite; flex-shrink:0;}
  @keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:.35;} }
  .icon-btn{width:30px; height:30px; border-radius:999px; border:1px solid var(--hairline-08); background:var(--veil); display:flex; align-items:center; justify-content:center; color:var(--text-dim); cursor:pointer; transition:.15s; flex-shrink:0;}
  .icon-btn:hover{color:var(--text); border-color:var(--hairline-hover); background:var(--hover-tint);}
  .icon-btn svg{width:14px; height:14px;}

  .bottom-nav{
    display:none;
    position:fixed; left:14px; right:14px; bottom:14px;
    z-index:100;
    align-items:stretch; justify-content:space-between; gap:2px;
    padding:7px 7px;
    border-radius:999px;
    background:
      linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 40%),
      linear-gradient(155deg, var(--glass-a-strong), var(--glass-b-strong));
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--hairline-09);
    box-shadow:
      0 1px 0 var(--glass-sheen) inset,
      0 14px 34px -10px var(--shadow-med);
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }
  .bn-link{
    flex:1; min-width:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; padding:7px 2px; border-radius:999px;
    color:var(--text-faint);
    font-family:var(--font-body); font-size:9.5px; font-weight:600; letter-spacing:-0.01em;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    transition: color .18s ease, background .18s ease, transform .12s ease;
    -webkit-tap-highlight-color:transparent;
  }
  .bn-link svg{width:19px; height:19px; flex-shrink:0; transition: transform .18s ease;}
  .bn-link:active{transform:scale(0.93);}
  .bn-link.active{color:var(--ember); background:rgba(255,122,51,0.13);}
  .bn-link.active svg{transform:translateY(-1px);}

  @media (max-width: 1100px){
    .bottom-nav{display:flex;}
    .nav-links{display:none;}
  }

  .wrap{max-width:1360px; margin:0 auto; padding: 0 28px 80px;}
  section{padding-top:52px; scroll-margin-top:86px;}
  .section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; flex-wrap:wrap;}
  .eyebrow{font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.08em; color:var(--text-dim); text-transform:uppercase; margin-bottom:6px; display:inline-flex; align-items:center; gap:11px;}
  .eyebrow::before{
    content: attr(data-tag);
    width:22px; height:22px; flex-shrink:0;
    display:inline-flex; align-items:center; justify-content:center;
    font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:0.02em;
    color:var(--bg); background:var(--ember); border-radius:5px;
    transform:rotate(-90deg);
  }
  h2{font-family:var(--font-display); font-size:23px; font-weight:600; letter-spacing:-0.01em;}
  .section-desc{color:var(--text-dim); font-size:13.5px; max-width:560px; margin-top:6px;}

  .card{
    background: linear-gradient(180deg, var(--bg-elev), var(--card-grad-2));
    border:1px solid var(--border); border-radius: var(--radius); padding:20px;
    min-width:0;
  }
  .card-title{font-family:var(--font-display); font-weight:600; font-size:14.5px; display:flex; align-items:center; gap:8px;}
  .card-title svg{width:15px; height:15px; color:var(--ember); flex-shrink:0;}
  .card-sub{font-size:12px; color:var(--text-faint); margin-top:2px; font-family:var(--font-mono);}

  .hero{padding-top:36px;}
  .hero-grid{display:grid; grid-template-columns: 1.15fr 1fr; gap:18px;}
  @media(max-width:980px){.hero-grid{grid-template-columns:1fr;}}
  .hero-gauge-card{display:flex; align-items:center; gap:26px; padding:26px;}
  .gauge-wrap{position:relative; width:158px; height:158px; flex-shrink:0;}
  .gauge-wrap svg{width:100%; height:100%; transform:rotate(-90deg);}
  .gauge-center{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;}
  .gauge-value{font-family:var(--font-display); font-size:34px; font-weight:700; letter-spacing:-0.02em;}
  .gauge-label{font-size:10.5px; color:var(--text-faint); font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.05em; margin-top:2px;}
  .gauge-track{stroke:var(--bg-elev-2);}
  .hero-info-title{font-family:var(--font-display); font-size:18px; font-weight:600; margin-bottom:6px;}
  .hero-info-desc{color:var(--text-dim); font-size:13px; line-height:1.6; max-width:320px;}
  .hero-status-badge{display:inline-flex; align-items:center; gap:7px; margin-top:14px; border-radius:999px; font-size:12px; font-weight:600; font-family:var(--font-mono);}

  .kpi-col{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  .kpi{padding:18px;}
  .kpi-top{display:flex; align-items:center; justify-content:space-between;}
  .kpi-icon{width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--bg-elev-2); color:var(--ember);}
  .kpi-icon svg{width:15px; height:15px;}
  .kpi-value{font-family:var(--font-display); font-size:26px; font-weight:700; margin-top:14px; letter-spacing:-0.01em;}
  .kpi-label{font-size:12px; color:var(--text-dim); margin-top:3px;}

  .grid-2{display:grid; grid-template-columns:1.3fr 1fr; gap:16px;}
  .grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
  .grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
  @media(max-width:980px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}}
  .chart-box{position:relative; height:260px; margin-top:14px;}
  .chart-box.tall{height:320px;}
  .chart-box.short{height:190px;}

  @media (min-width:981px){
    #proyeksi .grid-2 .card,
    #eda .grid-2 .card{ display:flex; flex-direction:column; }

    #proyeksi .grid-2 .card:nth-child(2) > div:last-child,
    #eda .grid-2 .card:nth-child(2) > div:last-child{ flex:1; display:flex; flex-direction:column; justify-content:center; }
    #proyeksi .grid-2 .card:nth-child(2) > div:last-child > table,
    #eda .grid-2 .card:nth-child(2) > div:last-child > table{ margin-top:0; }

    #proyeksi .grid-2 .card:nth-child(1) .chart-box,
    #eda .grid-2 .card:nth-child(1) .chart-box{ flex:1; height:auto; min-height:260px; }
    #proyeksi .grid-2 .card:nth-child(1) .chart-box.tall{ min-height:320px; }
  }

  .tbl-scroll{
    max-height:320px; overflow-y:auto; overscroll-behavior:contain;
    scrollbar-width:thin; scrollbar-color: var(--bg-elev-2) transparent;
  }
  .tbl-scroll::-webkit-scrollbar{width:6px;}
  .tbl-scroll::-webkit-scrollbar-thumb{background:var(--bg-elev-2); border-radius:6px;}
  .tbl-scroll::-webkit-scrollbar-track{background:transparent;}

  @media (min-width:981px){
    #proyeksi .grid-2 .card:nth-child(2) > div:last-child.tbl-scroll{ justify-content:flex-start; }
  }

  .map-card{padding:0; overflow:hidden; position:relative;}

  .map-fullscreen-btn{
    display:flex; position:absolute; top:10px; right:10px; z-index:20;
    width:38px; height:38px; align-items:center; justify-content:center;
    background:var(--bg-elev); border:1px solid var(--border-soft);
    border-radius:9px; color:var(--text); cursor:pointer; padding:0;
    box-shadow:0 4px 14px var(--shadow-med);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .map-fullscreen-btn:hover{background:var(--bg-elev-2); border-color:var(--ember); color:var(--ember);}
  .map-fullscreen-btn svg{width:18px; height:18px;}
  .map-card.map-fullscreen{
    position:fixed !important; inset:0; z-index:2000; border-radius:0; margin:0;
    display:flex; flex-direction:column;
  }
  .map-card.map-fullscreen #map{height:auto !important; flex:1; transition:none;}
  body.map-fullscreen-active{overflow:hidden;}
  .map-card.map-fs-anim{animation:mapFsIn .28s ease;}
  .map-card.map-fs-anim-out{animation:mapFsOut .16s ease forwards;}
  @keyframes mapFsIn{ from{opacity:.35;} to{opacity:1;} }
  @keyframes mapFsOut{ from{opacity:1;} to{opacity:.35;} }
  .map-head{display:flex; align-items:center; justify-content:space-between; padding:18px 20px 0;}
  #map{height:460px; width:100%; filter: saturate(0.85); position:relative; z-index:1; isolation:isolate;}
  .layer-toggle{display:flex; gap:6px; background:var(--bg-elev-2); padding:4px; border-radius:9px; border:1px solid var(--border);}
  .layer-toggle button{
    font-family:var(--font-mono); font-size:11.5px; padding:7px 12px; border-radius:6px; color:var(--text-dim); background:transparent; border:none; cursor:pointer; transition:.15s;
  }
  .layer-toggle button.active{background:var(--ember); color:var(--bg); font-weight:600;}

  .region-select{position:relative; z-index:900;}
  .region-select-trigger{
    display:flex; align-items:center; gap:8px;
    font-family:var(--font-mono); font-size:10.5px; font-weight:500; letter-spacing:.01em; color:var(--text); background:var(--bg-elev-2);
    border:1px solid var(--border); border-radius:10px; padding:7px 9px 7px 11px; cursor:pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .22s cubic-bezier(.4,0,.2,1);
  }
  .region-select-trigger-dot{width:6px; height:6px; border-radius:50%; background:var(--ember); flex-shrink:0; box-shadow:0 0 0 3px rgba(255,122,51,0.16); transition: box-shadow .2s ease;}
  .region-select-trigger:hover{border-color:#33403A; background:var(--bg-elev);}
  .region-select.open .region-select-trigger{
    border-color:var(--ember); color:var(--text); background:var(--bg-elev);
    box-shadow:0 0 0 3px rgba(255,122,51,0.16);
  }
  .region-select.open .region-select-trigger-dot{box-shadow:0 0 0 4px rgba(255,122,51,0.24);}
  .region-select-chevron{width:12px; height:12px; flex-shrink:0; color:var(--text-faint); transition: transform .28s cubic-bezier(.34,1.4,.64,1), color .18s ease;}
  .region-select.open .region-select-chevron{transform:rotate(180deg); color:var(--ember);}

  .region-select-panel{
    position:fixed; top:0; left:0; width:max-content; min-width:186px; max-width:min(230px, calc(100vw - 32px)); z-index:99999;
    background: linear-gradient(165deg, rgba(255,122,51,0.07), rgba(255,255,255,0) 35%), var(--bg-elev);
    border:1px solid var(--border); border-radius:14px; padding:7px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 20px 44px -14px rgba(0,0,0,0.7);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    opacity:0; transform: translateY(-8px) scale(.94); transform-origin: top left;
    pointer-events:none; visibility:hidden;
    transition: opacity .16s ease, transform .16s cubic-bezier(.4,0,1,1), visibility 0s linear .16s;
  }
  .region-select-panel.open{
    opacity:1; transform: translateY(0) scale(1); pointer-events:auto; visibility:visible;
    transition: opacity .24s cubic-bezier(.16,.8,.24,1), transform .32s cubic-bezier(.2,1.1,.4,1), visibility 0s;
  }
  .region-select-panel{
    position:fixed; top:0; left:0; width:max-content; min-width:212px; max-width:min(260px, calc(100vw - 24px));
    max-height:min(420px, calc(100vh - 24px)); overflow-y:auto; overscroll-behavior:contain;
    z-index:99999;
    background: linear-gradient(165deg, rgba(255,122,51,0.08), rgba(255,255,255,0) 35%), var(--bg-elev);
    border:1px solid var(--border); border-radius:16px; padding:8px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 48px -14px rgba(0,0,0,0.75);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    opacity:0; transform: translateY(-6px) scale(.96); transform-origin: top left;
    pointer-events:none; visibility:hidden;
    transition: opacity .16s ease, transform .16s cubic-bezier(.4,0,1,1), visibility 0s linear .16s;
    scrollbar-width:thin; scrollbar-color: var(--bg-elev-2) transparent;
  }
  .region-select-panel::-webkit-scrollbar{width:6px;}
  .region-select-panel::-webkit-scrollbar-thumb{background:var(--bg-elev-2); border-radius:6px;}
  .region-select-panel.open{
    opacity:1; transform: translateY(0) scale(1); pointer-events:auto; visibility:visible;
    transition: opacity .2s cubic-bezier(.16,.8,.24,1), transform .26s cubic-bezier(.2,1.1,.4,1), visibility 0s;
  }
  .region-select-panel-head{
    display:flex; align-items:center; justify-content:space-between; gap:6px;
    padding:4px 8px 8px; margin-bottom:2px; border-bottom:1px solid var(--border-soft);
  }
  .region-select-panel-head-label{
    display:flex; align-items:center; gap:6px;
    font-family:var(--font-mono); font-size:9.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
    color:var(--text-faint);
  }
  .region-select-panel-head-label svg{width:11px; height:11px; color:var(--ember); flex-shrink:0;}
  .region-select-panel-close{
    display:none; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%;
    color:var(--text-faint); background:rgba(255,255,255,0.04); border:1px solid var(--border-soft); cursor:pointer; flex-shrink:0;
  }
  .region-select-panel-close svg{width:12px; height:12px;}
  .region-option-list{display:flex; flex-direction:column; gap:1px;}
  .region-option{
    display:flex; align-items:center; gap:10px;
    font-family:var(--font-body); font-size:13px; color:var(--text-dim);
    padding:9px 9px; border-radius:10px; cursor:pointer; position:relative;
    opacity:0; transform:translateX(-5px);
    transition: background .12s ease, color .12s ease, opacity .22s ease, transform .22s cubic-bezier(.2,1,.4,1);
  }
  .region-select-panel.open .region-option{opacity:1; transform:translateX(0);}
  .region-option[data-value="all"]{margin-bottom:5px; padding-bottom:10px; border-bottom:1px solid var(--border-soft); border-radius:0px 0px 0 0;}
  .region-option-label{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1;}
  .region-option:hover{background:var(--hover-tint); color:var(--text);}
  .region-option.selected{color:var(--ember); background:rgba(255,122,51,0.13); font-weight:600;}
  .region-option .check{
    width:14px !important; height:14px !important; min-width:14px; max-width:14px;
    display:block !important; flex:none !important;
    opacity:0 !important; transform:scale(.5); color:var(--ember);
    transition:opacity .15s ease, transform .18s cubic-bezier(.34,1.6,.64,1);
  }
  .region-option.selected .check{opacity:1 !important; transform:scale(1);}

  .region-select-backdrop{
    position:fixed; inset:0; z-index:99998; background:rgba(6,9,7,0.55);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity:0; pointer-events:none; transition: opacity .2s ease;
  }
  .region-select-backdrop.open{opacity:1; pointer-events:auto;}

  .region-select-panel.sheet{
    position:fixed; top:auto; right:0; bottom:0; left:0;
    width:100%; max-width:100%; min-width:0;
    max-height:min(72vh, 560px);
    border-radius:20px 20px 0 0; padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(100%); transform-origin: bottom center;
    box-shadow: 0 -20px 44px -14px rgba(0,0,0,0.75);
  }
  .region-select-panel.sheet.open{ transform: translateY(0); }
  .region-select-panel.sheet::before{
    content:''; display:block; width:36px; height:4px; border-radius:3px; background:var(--border);
    margin:2px auto 10px;
  }
  .region-select-panel.sheet .region-select-panel-close{display:flex;}
  .region-select-panel.sheet .region-option{padding:12px 10px; font-size:14px;}
  .map-toolbar{display:flex; align-items:center; gap:10px; flex-wrap:wrap; position:relative; z-index:950;}

  .map-legend{
    display:flex; gap:22px; align-items:center; padding:14px 20px;
    border-top:1px solid var(--border-soft); flex-wrap:wrap;
    background: linear-gradient(155deg, var(--glass-a-strong), var(--glass-b-strong));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: backdrop-filter;
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
    .map-legend{background: var(--bg-elev-2);}
  }
  .legend-variant{display:none; gap:22px; align-items:center; flex-wrap:wrap;}
  .legend-variant.active{display:flex;}
  .legend-item{
    display:flex; align-items:center; gap:9px; flex-shrink:0;
    font-size:12.5px; color:var(--text); font-family:var(--font-body); font-weight:500;
    line-height:1.3;
  }
  .legend-dot{width:10px; height:10px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset;}
  .pulse-dot{position:relative; border-radius:50%;}
  .pulse-dot::after{content:''; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--siaga1); animation:pulseRing 1.8s ease-out infinite;}
  @keyframes pulseRing{ 0%{transform:scale(0.75); opacity:.9;} 100%{transform:scale(1.7); opacity:0;} }
  .legend-gradient{width:120px; height:8px; border-radius:4px; background:linear-gradient(90deg, #12303A, #1F5C73, #4FB8D0, #B8E8F0);}
  .legend-gradient-wrap{display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-faint); font-family:var(--font-mono);}
  .siaga1-cell{ animation: cellPulse 1.8s ease-in-out infinite; }
  @keyframes cellPulse{ 0%,100%{ stroke-opacity:1; } 50%{ stroke-opacity:.35; } }
  .leaflet-tooltip.karhutla-tip{
    background: var(--bg-elev); border:1px solid var(--border); color:var(--text);
    font-family: var(--font-mono); font-size:11px; padding:6px 9px; border-radius:7px;
    box-shadow:0 4px 14px var(--shadow-med);
  }
  .leaflet-tooltip.karhutla-tip::before{display:none;}
  .leaflet-popup-content-wrapper{background:var(--bg-elev); border-radius:10px; color:var(--text);}
  .leaflet-popup-tip{background:var(--bg-elev);}

  .leaflet-control-zoom{
    border:none !important; box-shadow:none !important;
    display:flex; flex-direction:column; gap:4px;
  }
  .leaflet-control-zoom a, .leaflet-control-zoom a:hover{
    width:34px !important; height:34px !important; line-height:32px !important;
    margin:0 !important; padding:0 !important;
    background:var(--bg-elev) !important; color:var(--text) !important;
    border:1px solid var(--border-soft) !important; border-radius:9px !important;
    font-size:16px !important; font-weight:500 !important;
    box-shadow:0 4px 14px var(--shadow-med);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .leaflet-control-zoom a:hover{
    background:var(--bg-elev-2) !important; border-color:var(--ember) !important; color:var(--ember) !important;
  }
  .leaflet-control-zoom a.leaflet-disabled{opacity:.4; pointer-events:none;}
  .leaflet-bottom.leaflet-right{ margin:0 8px 8px 0 !important; }

  .leaflet-control-attribution{ display:none !important; }

  table{width:100%; border-collapse:collapse; font-size:12.5px;}
  th{text-align:center; vertical-align:middle; font-family:var(--font-mono); font-weight:500; color:var(--text-faint); font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; padding:9px 10px; border-bottom:1px solid var(--border); white-space:nowrap;}
  td{padding:10px 10px; border-bottom:1px solid var(--border-soft); font-family:var(--font-mono); color:var(--text-dim); text-align:center; vertical-align:middle; white-space:nowrap;}
  tr:hover td{background:rgba(255,122,51,0.03); color:var(--text);}

  thead{ position:sticky; top:0; z-index:3; }
  thead th{
    position:sticky; top:0; z-index:3;
    background:var(--bg-elev);
    box-shadow:0 1px 0 var(--border);
  }
  .status-chip{display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; font-size:10.5px; font-weight:600; font-family:var(--font-mono); white-space:nowrap; line-height:1.3;}

  .divider{height:1px; background:linear-gradient(90deg, transparent, var(--border), transparent); margin:56px 0 0;}
  .footer{margin-top:56px; padding-top:26px; border-top:1px solid var(--border-soft); display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:20px;}
  .footer-note{font-size:12px; color:var(--text-faint); max-width:520px; line-height:1.7;}
  .footer-note b{color:var(--text-dim);}
  .source-tags{display:flex; gap:8px; flex-wrap:wrap;}
  .tag{font-family:var(--font-mono); font-size:10.5px; color:var(--text-dim); border:1px solid var(--border); padding:5px 10px; border-radius:7px;}
  .loading-note{font-family:var(--font-mono); font-size:11px; color:var(--text-faint); text-align:center; padding:40px;}

  .tbl-scroll-hint{
    display:none; align-items:center; gap:5px;
    font-family:var(--font-mono); font-size:10px; color:var(--text-faint);
    margin-top:9px; margin-bottom:-2px;
  }
  .hint-arrow{display:inline-block; font-size:11px; line-height:1; animation: hintNudge 1.6s ease-in-out infinite;}
  @keyframes hintNudge{ 0%,100%{ transform:translateX(0); opacity:.7; } 50%{ transform:translateX(3px); opacity:1; } }

  .reveal-on-scroll{
    opacity:0;
    transform: translateY(42px);
    transition: opacity 1.15s cubic-bezier(.16,.8,.24,1), transform 1.15s cubic-bezier(.16,.8,.24,1);
    will-change: opacity, transform;
  }
  .reveal-on-scroll.is-visible{
    opacity:1;
    transform: translateY(0);
  }

  .reveal-item{
    opacity:0;
    transform: translateY(30px) scale(.97);
    filter: blur(4px);
    transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1), filter .7s cubic-bezier(.16,.8,.24,1);
    will-change: opacity, transform, filter;
  }
  .reveal-item.is-visible{
    opacity:1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  .reveal-item.is-visible:nth-child(1){ transition-delay:.03s; }
  .reveal-item.is-visible:nth-child(2){ transition-delay:.09s; }
  .reveal-item.is-visible:nth-child(3){ transition-delay:.15s; }
  .reveal-item.is-visible:nth-child(4){ transition-delay:.21s; }
  .reveal-item.is-visible:nth-child(5){ transition-delay:.27s; }
  .reveal-item.is-visible:nth-child(6){ transition-delay:.33s; }

  .reveal-item .tbl-wrap tbody tr{
    opacity:0; transform:translateY(8px);
    transition: opacity .5s cubic-bezier(.16,.8,.24,1), transform .5s cubic-bezier(.16,.8,.24,1);
  }
  .reveal-item.is-visible .tbl-wrap tbody tr{ opacity:1; transform:translateY(0); }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(1){ transition-delay:.38s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(2){ transition-delay:.42s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(3){ transition-delay:.46s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(4){ transition-delay:.50s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(5){ transition-delay:.54s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(6){ transition-delay:.58s; }
  .reveal-item.is-visible .tbl-wrap tbody tr:nth-child(n+7){ transition-delay:.62s; }
  @media (prefers-reduced-motion: reduce){
    .reveal-on-scroll, .reveal-item, .reveal-item .tbl-wrap tbody tr{
      opacity:1; transform:none; filter:none; transition:none;
    }
  }

  #peta.reveal-on-scroll{ transition: opacity .25s linear; }
  #peta.reveal-on-scroll .section-head,
  #peta.reveal-on-scroll .card{ transition:none; opacity:0; }
  #peta.reveal-on-scroll.is-visible{ opacity:1; }
  #peta.reveal-on-scroll.is-visible .section-head{
    animation: radarFadeIn 2s cubic-bezier(.16,.8,.24,1) both;
  }
  #peta.reveal-on-scroll.is-visible .map-card{
    position:relative;
    animation: radarReveal 4.2s cubic-bezier(.16,.8,.24,1) .3s both;
  }
  #peta.reveal-on-scroll .map-card::after{
    content:''; position:absolute; top:0; left:0; width:3px; height:100%; z-index:30; pointer-events:none;
    background: var(--ember);
    box-shadow: 0 0 16px 1px rgba(255,122,51,0.55);
    opacity:0;
  }
  #peta.reveal-on-scroll.is-visible .map-card::after{
    animation: radarScanbar 4.2s cubic-bezier(.16,.8,.24,1) .3s both;
  }

  #peta.reveal-on-scroll .map-card::before{
    content:''; position:absolute; inset:0; z-index:29; pointer-events:none;
    background: repeating-linear-gradient(90deg, rgba(255,122,51,.10) 0px, rgba(255,122,51,.10) 1px, transparent 1px, transparent 26px);
    opacity:0;
  }
  #peta.reveal-on-scroll.is-visible .map-card::before{
    animation: radarGrid 4.2s cubic-bezier(.16,.8,.24,1) .3s both;
  }
  @keyframes radarFadeIn{
    0%{ opacity:0; transform:translateY(-10px); }
    100%{ opacity:1; transform:translateY(0); }
  }
  @keyframes radarReveal{
    0%{ opacity:0; clip-path: inset(0 100% 0 0); }
    8%{ opacity:1; }
    100%{ opacity:1; clip-path: inset(0 0 0 0); }
  }
  @keyframes radarScanbar{
    0%{ left:0; opacity:0; }
    6%{ opacity:1; }
    92%{ opacity:1; }
    100%{ left:calc(100% - 3px); opacity:0; }
  }
  @keyframes radarGrid{
    0%{ opacity:0; }
    8%{ opacity:1; }
    92%{ opacity:1; }
    100%{ opacity:0; }
  }
  @media (prefers-reduced-motion: reduce){
    #peta.reveal-on-scroll.is-visible .section-head,
    #peta.reveal-on-scroll.is-visible .map-card,
    #peta.reveal-on-scroll.is-visible .map-card::after,
    #peta.reveal-on-scroll.is-visible .map-card::before{
      animation:none; opacity:1; clip-path:none; transform:none;
    }
  }

  .metric-row{display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--border-soft); font-size:12.5px;}
  .metric-row:last-child{border-bottom:none;}
  .metric-row .mname{color:var(--text-dim);}
  .metric-row .mval{font-family:var(--font-mono); font-weight:600;}

  .clsf-table{ margin-top:8px; }
  .clsf-row{
    display:grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr));
    align-items:center; gap:8px; padding:9px 0;
    border-bottom:1px solid var(--border-soft);
  }
  .clsf-row:last-child{ border-bottom:none; }
  .clsf-row > span{
    text-align:right; font-family:var(--font-mono); font-size:11.5px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-dim);
  }
  .clsf-row > span:first-child{
    text-align:left; font-family:var(--font-body); font-size:12px;
    color:var(--text); white-space:normal; line-height:1.3;
  }
  .clsf-head{ padding-top:0; padding-bottom:8px; }
  .clsf-head > span{
    color:var(--text-faint); font-size:9.5px; text-transform:uppercase;
    letter-spacing:.04em; font-weight:600;
  }
  .clsf-head > span:first-child{ font-family:var(--font-body); }

  .alert-banner{
    display:none; align-items:center; gap:12px; margin-top:22px; padding:13px 18px;
    border-radius:12px; border:1px solid rgba(228,57,46,0.4); background:rgba(228,57,46,0.1);
    font-size:13px; color:var(--alert-text);
  }
  .alert-banner.show{display:flex;}
  .alert-banner b{color:var(--alert-text-strong);}
  .alert-banner button{
    margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--siaga1); background:none;
    border:1px solid rgba(228,57,46,0.5); padding:6px 11px; border-radius:7px; cursor:pointer; flex-shrink:0;
  }

  .footer-right{display:flex; flex-direction:column; align-items:flex-end; gap:12px;}
  .footer-actions{display:flex; align-items:center; gap:22px;}

  .back-to-top-link{
    display:inline-flex; align-items:center; gap:6px;
    font-family:var(--font-mono); font-size:11.5px; color:var(--text-faint);
    padding:4px 0 6px; border:none; border-bottom:1px solid transparent; border-radius:0;
    background:transparent; cursor:pointer;
    transition: color .15s ease, border-color .15s ease;
  }
  .back-to-top-link:hover{color:var(--text); border-bottom-color:var(--ember);}
  .back-to-top-link svg{width:12.5px; height:12.5px; flex-shrink:0;}
  button.back-to-top-link{appearance:none; -webkit-appearance:none; font-family:inherit; text-align:inherit; margin:0; box-sizing:border-box;}
  button.back-to-top-link.is-active{color:var(--ember);}
  button.back-to-top-link.is-active svg{color:var(--ember);}

  .theme-toggle-btn{ position:relative; }
  .theme-icon-wrap{position:relative; width:17px; height:17px; flex-shrink:0;}
  .theme-icon-wrap svg{
    position:absolute; inset:0; width:17px; height:17px;
    transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.4,.64,1);
  }
  .theme-icon-wrap .icon-fire{color:var(--ember-light); opacity:1; transform:rotate(0) scale(1);}
  .theme-icon-wrap .icon-water{color:var(--rain); opacity:0; transform:rotate(90deg) scale(.5);}
  html[data-theme="light"] .theme-icon-wrap .icon-fire{opacity:0; transform:rotate(-90deg) scale(.5);}
  html[data-theme="light"] .theme-icon-wrap .icon-water{opacity:1; transform:rotate(0) scale(1);}

  @media (max-width: 768px){
    body{overflow-x:hidden;}
    .wrap{padding: 0 16px 56px;}
    section{padding-top:38px; scroll-margin-top:96px;}
    h2{font-size:19px;}
    .section-desc{font-size:12.5px;}
    .section-head{flex-direction:column; align-items:flex-start; gap:12px;}
    .hero{padding-top:26px;}
    .hero h2{font-size:21px !important;}
    .hero-gauge-card{flex-direction:column; text-align:center; padding:22px 20px; gap:16px;}
    .gauge-wrap{width:132px; height:132px;}
    .hero-info-desc{max-width:100%;}
    .hero-info-title{font-size:16px;}
    .kpi-col{gap:10px;}
    .kpi{padding:14px;}
    .kpi-value{font-size:21px; margin-top:10px;}
    .kpi-label{font-size:11.5px;}
    .map-toolbar{width:100%; flex-wrap:wrap; gap:8px;}
    .region-select{width:auto;}
    .region-select-trigger{width:auto; justify-content:flex-start;}
    .layer-toggle{width:100%; gap:4px;padding:0px;}
    .layer-toggle button{
      flex:1 1 0; min-width:0; text-align:center;
      padding:7px 6px; font-size:10px;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis;border-radius:9px;}
    .map-head{flex-direction:column; align-items:flex-start; gap:12px;}

    #map{height:min(62vh, 520px); transition:height .3s ease;}
    .map-legend{
      position:absolute; left:0; right:0; bottom:0; z-index:16;
      display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
      gap:0; padding:0;
      border-top:1px solid var(--hairline-08);
      background: linear-gradient(155deg, var(--glass-a-strong), var(--glass-b-strong));
      backdrop-filter: blur(20px) saturate(170%);
      -webkit-backdrop-filter: blur(20px) saturate(170%);
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      will-change: backdrop-filter;
      border-radius:16px 16px 0 0;
      box-shadow:0 -8px 24px var(--shadow-med);
      max-height:64px;
      overflow:hidden;
      transition:max-height .28s cubic-bezier(.32,.72,0,1);
    }
    .map-legend.expanded{max-height:60vh; overflow-y:auto;}
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
      .map-legend{background: var(--bg-elev-2);}
    }

    .map-legend-handle{
      position:relative; flex:0 0 auto; width:100%; height:24px; cursor:pointer;
    }
    .map-legend-handle::before{
      content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
      width:36px; height:4px; border-radius:3px;
      background:var(--text-faint); opacity:.6;
      transition: opacity .15s ease, background .15s ease;
    }
    .map-legend:active .map-legend-handle::before,
    .map-legend.expanded .map-legend-handle::before{
      opacity:1; background:var(--ember);
    }

    .map-legend .legend-variant{
      width:100%; box-sizing:border-box;
      flex-wrap:nowrap; justify-content:space-between; align-items:center;
      padding:0 20px 14px 20px;
      overflow-x:auto; scrollbar-width:none;
    }
    .map-legend .legend-variant::-webkit-scrollbar{display:none;}
    .map-legend .legend-item{white-space:nowrap; flex:0 0 auto; font-size:11px; gap:6px;}
    .map-legend .legend-dot{width:7px; height:7px;}

    .map-legend .legend-detail{display:none;}
    .map-legend .legend-extra{display:none;}
    .map-legend.expanded .legend-variant{flex-wrap:wrap; justify-content:flex-start; overflow-x:visible; padding:0 16px 16px 16px; gap:20px;}
    .map-legend.expanded .legend-item{font-size:12.5px; gap:9px;}
    .map-legend.expanded .legend-dot{width:10px; height:10px;}
    .map-legend.expanded .legend-detail{display:inline;}
    .map-legend.expanded .legend-extra{display:flex;}
    .map-legend > div[style*="flex:1"]{display:none;}
    #map-date-label{
      order:99; width:100%; flex:0 0 auto; padding:10px 16px 14px;
      border-top:1px solid var(--border-soft); display:none;
      background:transparent !important; border-radius:0 !important; padding-left:16px !important;
    }
    .map-legend.expanded #map-date-label{display:block;}

    .leaflet-bottom.leaflet-right{
      margin:0 8px 64px 0 !important;
    }

    .card{padding:16px;}
    .divider{margin:38px 0 0;}
    .footer{flex-direction:column; align-items:flex-start; gap:14px;}
    .footer-right{width:100%; align-items:flex-start;}
    .source-tags{width:100%;}

    .footer-actions{gap:20px;}
    .back-to-top-link{font-size:11px; padding:6px 0 7px;}

    .grid-2, .grid-3, .grid-4{ gap:12px; }
    .card-title{ font-size:13.5px; gap:7px; line-height:1.35; }
    .card-title svg{ width:13.5px; height:13.5px; }
    .card-sub{ font-size:11px; }
    .eyebrow{ font-size:10.5px; gap:9px; }
    .metric-row{ font-size:12px; padding:8px 0; }

    .chart-box{ height:230px; margin-top:12px; }
    .chart-box.tall{ height:270px; }
    .chart-box.short{ height:200px; }

    table{ min-width:540px; font-size:12px; }
    th{ padding:8px 9px; font-size:10px; }
    td{ padding:9px 9px; white-space:nowrap; }
    .status-chip{ font-size:10px; padding:3px 8px; }

    .clsf-row{ gap:5px; padding:8px 0; }
    .clsf-row > span{ font-size:10.5px; }
    .clsf-row > span:first-child{ font-size:11.5px; }
    .clsf-head > span{ font-size:9px; }

    #confmatrix > div > div{ padding:11px !important; }
    #confmatrix > div > div > div:first-child{ font-size:19px !important; }

    .tbl-scroll-hint{ display:flex; }
    .card:has(.tbl-outer){ position:relative; }
    .card:has(.tbl-outer)::after{
      content:''; position:absolute; top:0; right:0; bottom:0; width:26px;
      background: linear-gradient(180deg, var(--bg-elev), var(--card-grad-2));
      -webkit-mask-image: linear-gradient(to right, transparent, black 70%);
              mask-image: linear-gradient(to right, transparent, black 70%);
      border-top-right-radius: var(--radius);
      border-bottom-right-radius: var(--radius);
      pointer-events:none;
    }
  }
  @media (max-width: 480px){
    .brand-text span{display:none;}
    .live-pill{padding:5px 9px; font-size:9.5px; gap:5px;}
    .live-pill span:last-child{max-width:108px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
    .topnav{padding:8px 8px 8px 12px; gap:8px;}
    .kpi-value{font-size:19px;}
    .gauge-value{font-size:27px;}
    .bottom-nav{left:10px; right:10px; padding:6px;}
    .bn-link{font-size:9px; padding:6px 1px;}
    .bn-link svg{width:18px; height:18px;}

    .card{ padding:14px; }
    .card-title{ font-size:13px; }
    .kpi{ padding:12px; }
    .kpi-label{ font-size:11px; }
    .chart-box{ height:210px; }
    .chart-box.tall{ height:250px; }
    .chart-box.short{ height:190px; }
    #confmatrix > div > div{ padding:9px !important; }
    #confmatrix > div > div > div:first-child{ font-size:17px !important; }
    #confmatrix > div > div > div:last-child{ font-size:9.5px !important; }
  }

  @media (max-width: 1100px){
    .wrap{ padding-bottom: 104px; }
  }