:root{--bg-root: #090d16;--bg-surface: #111827;--bg-elevated: #1f2937;--border-subtle: #334155;--text-primary: #f8fafc;--text-muted: #94a3b8;--accent-cyan: #3bccff;--accent-amber: #f59e0b;--accent-danger: #ef4444;--accent-emerald: #10b981;--accent-purple: #a855f7}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;background-color:var(--bg-root);color:var(--text-primary);font-family:Inter,Noto Sans Thai,system-ui,-apple-system,sans-serif}.app-shell{display:flex;flex-direction:column;height:100vh;overflow:hidden}.top-header{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;background-color:var(--bg-surface);border-bottom:1px solid var(--border-subtle)}.brand-block h1{margin:0;font-size:1.05rem;font-weight:700;letter-spacing:-.01em}.brand-block .subtitle{font-size:.76rem;color:var(--text-muted)}.header-actions{display:flex;align-items:center;gap:10px}.lang-toggle{display:inline-flex;border:1px solid var(--border-subtle);border-radius:6px;overflow:hidden}.lang-toggle button{background:transparent;color:var(--text-muted);border:none;padding:5px 10px;font-size:.78rem;font-weight:600;cursor:pointer}.lang-toggle button.active{background-color:var(--accent-cyan);color:#090d16}.controls-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:8px 18px;background-color:#0d1321;border-bottom:1px solid var(--border-subtle)}.presets-row{display:flex;flex-wrap:wrap;gap:6px}.preset-chip{background-color:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:999px;padding:4px 11px;font-size:.78rem;cursor:pointer;transition:border-color .15s ease}.preset-chip:hover{border-color:var(--accent-cyan)}.inputs-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.inputs-row label{display:flex;flex-direction:column;gap:2px;font-size:.72rem;color:var(--text-muted)}.inputs-row input,.inputs-row select,.timeline-controls select{background-color:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:6px;padding:5px 8px;font-size:.82rem;width:112px}.timeline-controls select{width:64px}.btn-primary{background:linear-gradient(135deg,#3bccff,#0ea5e9);color:#06101b;font-weight:700;border:none;border-radius:6px;padding:7px 15px;font-size:.84rem;cursor:pointer}.btn-primary:disabled{opacity:.55;cursor:not-allowed}.btn-secondary{background-color:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:6px;padding:5px 12px;font-size:.8rem;cursor:pointer}.btn-ghost{background:transparent;color:var(--accent-cyan);border:1px solid rgba(59,204,255,.35);border-radius:6px;padding:5px 10px;font-size:.78rem;text-decoration:none;cursor:pointer}.error-strip{padding:8px 18px;background-color:#ef444433;border-bottom:1px solid var(--accent-danger);color:#fecaca;font-size:.82rem}@keyframes sim-spin{to{transform:rotate(360deg)}}@keyframes sim-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.sim-loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:85;background-color:#060a13b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:20px}.sim-loading-card{width:100%;max-width:480px;background:linear-gradient(180deg,#111827f7,#0b111efa);border:1px solid rgba(59,204,255,.55);border-radius:14px;padding:24px 26px;box-shadow:0 24px 60px #000000c7,0 0 36px #3bccff2e;text-align:center}.sim-spinner-wrap{position:relative;width:76px;height:76px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center}.sim-spinner-svg{width:76px;height:76px;animation:sim-spin 1.15s linear infinite}.spinner-track{stroke:#3bccff29}.spinner-arc{stroke:var(--accent-cyan)}.sim-spinner-pct{position:absolute;font-size:.92rem;font-weight:800;color:var(--text-primary)}.sim-loading-title{margin:0 0 6px;font-size:1.05rem;font-weight:700;color:var(--text-primary)}.sim-current-stage{font-size:.86rem;font-weight:600;color:var(--accent-cyan);margin-bottom:14px}.sim-progress-bar-large{height:12px;background-color:#1e293b;border-radius:999px;overflow:hidden;border:1px solid rgba(59,204,255,.25)}.sim-progress-fill-large{height:100%;border-radius:999px;background:linear-gradient(90deg,#0ea5e9,#3bccff 45%,#10b981 80%,#0ea5e9);background-size:200% 100%;animation:sim-shimmer 2.2s linear infinite;transition:width .35s ease}.sim-elapsed-row{display:flex;justify-content:space-between;font-size:.78rem;color:var(--text-muted);margin-top:8px;margin-bottom:14px}.sim-elapsed-row strong{color:var(--text-primary)}.sim-stage-checklist{list-style:none;margin:0;padding:10px 12px;background-color:#090d16b3;border:1px solid #1e293b;border-radius:8px;text-align:left;display:flex;flex-direction:column;gap:6px;font-size:.78rem}.stage-item{display:flex;align-items:center;gap:8px}.stage-icon{display:inline-flex;width:18px;justify-content:center;font-weight:700}.stage-item.done{color:#34d399}.stage-item.active{color:var(--accent-cyan);font-weight:600}.stage-item.active .stage-icon{animation:sim-spin 1.4s linear infinite}.stage-item.pending{color:#64748b}.sim-hint-note{margin:12px 0 0;font-size:.73rem;line-height:1.45;color:var(--text-muted)}.workspace-grid{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 450px;min-height:0}.map-column{display:flex;flex-direction:column;min-height:0}.map-wrapper{position:relative;flex:1 1 auto;min-height:360px;width:100%;overflow:hidden;background-color:#0b101b}.map-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.map-whatif-banner{position:absolute;top:12px;left:12px;z-index:11;display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border-radius:999px;background-color:#064e3beb;border:1px solid rgba(16,185,129,.75);color:#d1fae5;font-size:.74rem;font-weight:600;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 4px 14px #00000073}.map-layer-card{position:absolute;top:12px;right:12px;background-color:#111827eb;border:1px solid var(--border-subtle);border-radius:8px;padding:9px 12px;display:flex;flex-direction:column;gap:6px;font-size:.78rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:10}.map-layer-card.collapsed{padding:6px 10px;gap:0}.map-card-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:transparent;border:none;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:left}.map-card-toggle:hover .map-card-toggle-badge{border-color:var(--accent-cyan);color:var(--accent-cyan)}.map-card-toggle-badge{font-size:.68rem;color:var(--text-muted);background-color:#1e293bd9;border:1px solid var(--border-subtle);border-radius:999px;padding:1px 7px;white-space:nowrap;transition:all .15s ease}.map-card-heading{font-weight:600;color:var(--accent-cyan)}.layer-checkbox{display:flex;align-items:center;gap:7px;cursor:pointer}.map-legend-card{position:absolute;bottom:14px;left:14px;width:268px;background-color:#111827eb;border:1px solid var(--border-subtle);border-radius:8px;padding:9px 11px;font-size:.73rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:10}.map-legend-card.collapsed{width:auto;min-width:225px;padding:6px 10px}.legend-title{font-weight:600;color:var(--text-primary)}.map-legend-card:not(.collapsed) .map-card-toggle{margin-bottom:6px}.legend-Scale-bar{height:9px;border-radius:999px;background:linear-gradient(90deg,#cbd5e1,#e2e8f0 14%,#fde047 30%,#f59e0b,#ea580c 66%,#ef4444 83%,#9333ea 95%,#6b21a8)}.legend-Scale-bar.mini{height:4px;margin-top:5px}.legend-ticks{display:flex;justify-content:space-between;margin-top:4px;color:var(--text-muted);font-size:.67rem}.legend-health-list{margin-top:6px;padding-top:5px;border-top:1px solid #1e293b;display:flex;flex-direction:column;gap:2px}.legend-health-row{display:flex;align-items:center;gap:6px;font-size:.68rem;line-height:1.35}.legend-health-swatch{width:9px;height:9px;border-radius:2px;flex-shrink:0}.legend-health-range{min-width:52px;font-weight:600;color:var(--text-primary)}.legend-health-label{color:var(--text-muted)}.hotspot-tooltip{position:absolute;pointer-events:none;background-color:#090d16f2;border:1px solid var(--border-subtle);border-radius:6px;padding:7px 10px;font-size:.75rem;z-index:20;line-height:1.45;max-width:245px}.tooltip-title{font-weight:700;color:var(--accent-amber);margin-bottom:2px}.timeline-bar{background-color:var(--bg-surface);border-top:1px solid var(--border-subtle);padding:10px 16px}.timeline-hint{font-size:.82rem;color:var(--text-muted);text-align:center}.timeline-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}.timeline-readout{display:flex;align-items:center;gap:8px;font-size:.8rem;margin-left:6px}.offset-tag{background-color:var(--bg-elevated);padding:2px 7px;border-radius:4px;font-weight:700;color:var(--accent-cyan)}.mode-pill{font-size:.72rem;color:var(--text-muted)}.timeline-slider{width:100%;accent-color:var(--accent-cyan);cursor:pointer}.timeline-axis-labels{display:flex;justify-content:space-between;font-size:.7rem;color:var(--text-muted)}.side-panel{background-color:var(--bg-surface);border-left:1px solid var(--border-subtle);overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px}.empty-panel-state{margin:auto;text-align:center;color:var(--text-muted);font-size:.88rem;padding:24px}.alerts-stack{display:flex;flex-direction:column;gap:6px}.alert-banner{padding:8px 10px;border-radius:6px;font-size:.78rem;line-height:1.4}.alert-warn{background-color:#f59e0b29;border:1px solid #f59e0b;color:#fde68a}.alert-high{background-color:#ef444433;border:1px solid #ef4444;color:#fecaca}.panel-card{background-color:#0d1321;border:1px solid var(--border-subtle);border-radius:8px;padding:11px}.card-header-small{font-size:.78rem;font-weight:600;color:var(--text-muted);margin-bottom:8px}.card-header-flex{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.cqr-badge-pill{display:inline-flex;align-items:center;gap:4px;font-size:.68rem;font-weight:700;color:#e9d5ff;background:#9333ea38;border:1px solid rgba(168,85,247,.55);border-radius:999px;padding:2px 8px;white-space:nowrap}.ensemble-badge-pill{display:inline-flex;align-items:center;gap:4px;font-size:.68rem;font-weight:600;color:#bae6fd;background:#0ea5e92e;border:1px solid rgba(56,189,248,.45);border-radius:999px;padding:2px 8px;white-space:nowrap}.kalman-badge-pill{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:.7rem;font-weight:600;color:#fef08a;background:#eab30829;border:1px solid rgba(250,204,21,.45);border-radius:6px;padding:3px 8px}.assimilated-stations-box{margin-top:8px;padding:7px 9px;background-color:#0f172ab8;border:1px solid #1e293b;border-radius:6px;font-size:.72rem}.assimilated-stations-list{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:3px;color:var(--text-muted)}.aqi-main-row{display:flex;align-items:center;gap:12px}.aqi-score-pill{min-width:72px;height:64px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800}.aqi-number{font-size:1.45rem;line-height:1.1}.aqi-unit{font-size:.68rem}.aqi-details{flex:1}.aqi-level-text{font-size:.92rem;font-weight:700;margin-bottom:4px}.aqi-sub-metrics{display:flex;flex-direction:column;gap:2px;font-size:.75rem;color:var(--text-muted)}.kpi-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #1e293b}.kpi-mini{display:flex;flex-direction:column;font-size:.73rem;color:var(--text-muted)}.kpi-mini strong{color:var(--text-primary);font-size:.82rem;margin-top:2px}.whatif-card{border-color:#10b9816b;background:linear-gradient(180deg,#0d1822f5,#0d1321fa)}.whatif-card.active{border-color:#10b981;box-shadow:0 0 20px #10b98124}.whatif-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.whatif-title-btn{display:flex;align-items:center;gap:7px;background:transparent;border:none;padding:0;color:#6ee7b7;font-size:.81rem;font-weight:700;cursor:pointer;text-align:left}.whatif-active-pill{font-size:.66rem;font-weight:700;background-color:#10b98138;border:1px solid #10b981;color:#a7f3d0;border-radius:999px;padding:1px 7px}.whatif-reset-btn{background:#ef444424;color:#fca5a5;border:1px solid rgba(239,68,68,.45);border-radius:5px;padding:2px 8px;font-size:.69rem;font-weight:600;cursor:pointer}.whatif-body{margin-top:9px;display:flex;flex-direction:column;gap:10px}.whatif-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:3px;background-color:#090d16;border:1px solid #1e293b;border-radius:6px;padding:2px}.whatif-mode-switch button{background:transparent;color:var(--text-muted);border:none;border-radius:4px;padding:4px 6px;font-size:.69rem;font-weight:600;cursor:pointer}.whatif-mode-switch button.active{background-color:#10b98138;color:#6ee7b7;border:1px solid rgba(16,185,129,.45)}.whatif-preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.whatif-preset-btn{background-color:#1f2937d9;color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:6px;padding:5px 7px;font-size:.71rem;font-weight:600;cursor:pointer;text-align:left;transition:all .15s ease}.whatif-preset-btn:hover{border-color:var(--accent-emerald);color:#a7f3d0}.whatif-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;background-color:#090d16c7;border:1px solid rgba(16,185,129,.35);border-radius:7px}.whatif-kpi-box{display:flex;flex-direction:column;gap:2px;font-size:.69rem;color:var(--text-muted)}.whatif-kpi-box strong{font-size:.8rem;color:var(--text-primary)}.whatif-delta-good{color:#34d399;font-weight:700}.whatif-section-title{font-size:.71rem;font-weight:700;color:#94a3b8;margin-bottom:4px}.whatif-slider-list{display:flex;flex-direction:column;gap:5px}.whatif-slider-item{display:flex;flex-direction:column;gap:2px}.whatif-slider-label-row{display:flex;justify-content:space-between;font-size:.71rem;color:var(--text-primary)}.whatif-slider-pct{font-weight:700;color:#34d399}.whatif-range-input{width:100%;accent-color:#10b981;cursor:pointer;height:5px}.whatif-chip-wrap{display:flex;flex-wrap:wrap;gap:5px}.whatif-ext-chip{display:inline-flex;align-items:center;gap:5px;background-color:#10b98129;border:1px solid rgba(16,185,129,.5);color:#a7f3d0;border-radius:999px;padding:2px 8px;font-size:.69rem;cursor:pointer}.whatif-caveat-note{margin:0;font-size:.67rem;line-height:1.4;color:#94a3b8;padding-top:6px;border-top:1px solid #1e293b}.share-split-bar{display:flex;justify-content:space-between;font-size:.78rem;margin-bottom:6px}.donut-row{display:grid;grid-template-columns:140px 1fr;align-items:center;gap:8px}.country-legend-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:.76rem}.country-legend-list li{display:flex;align-items:center;gap:6px}.color-dot{width:9px;height:9px;border-radius:50%}.country-label{flex:1}.fires-table-wrap{overflow-x:auto}.fires-table{width:100%;border-collapse:collapse;font-size:.72rem}.fires-table th,.fires-table td{padding:5px 4px;text-align:left;border-bottom:1px solid #1e293b}.fires-table tbody tr{cursor:pointer}.fires-table tbody tr:hover{background-color:#3bccff14}.fires-table tbody tr.fire-row-extinguished{opacity:.58;background-color:#10b98114}.btn-fire-toggle{background-color:#ef444429;color:#fca5a5;border:1px solid rgba(239,68,68,.45);border-radius:4px;padding:2px 6px;font-size:.67rem;font-weight:600;cursor:pointer;white-space:nowrap}.btn-fire-toggle.restorable{background-color:#10b98133;color:#6ee7b7;border-color:#10b981}.country-badge{background-color:var(--bg-elevated);padding:1px 5px;border-radius:4px;font-weight:600}.muted-note{font-size:.78rem;color:var(--text-muted)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000000b8;display:flex;align-items:center;justify-content:center;z-index:60;padding:16px}.modal-card{max-width:680px;max-height:88vh;overflow-y:auto;width:100%;background-color:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:10px;padding:20px}.modal-card h3{margin-top:0;color:var(--accent-cyan)}.disclaimer-callout{background-color:#f59e0b24;border:1px solid rgba(245,158,11,.55);border-radius:8px;padding:10px 12px;margin-bottom:12px;font-size:.8rem;line-height:1.5;color:#fde68a}.methodology-list{padding-left:18px;display:flex;flex-direction:column;gap:10px;font-size:.83rem;line-height:1.55}.modal-actions{display:flex;justify-content:flex-end;margin-top:16px}@media (max-width: 1024px){.workspace-grid{grid-template-columns:1fr;grid-template-rows:55vh 1fr}.side-panel{border-left:none;border-top:1px solid var(--border-subtle)}}
