:root {
  --bg: #e9e4da;
  --panel: #f1ede6;
  --panel2: #ebe6dd;
  --card: #f4f1eb;
  --line: #dcd5c9;
  --line2: #e6e0d6;
  --text: #2a2520;
  --text2: #57504a;
  --muted: #8f877d;
  --accent: #cf4a22;
  --accent2: #e2643a;
  --dark: #3a3530;
  --green: #3f8f3a;
  --greenbg: #e3efd9;
  --red: #c9372c;
  --violet: #6a2bd9;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --top: 38px;
  --side: 300px;
  --bottom: 200px;
  --feed: 210px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 12px/1.35 Inter, system-ui, -apple-system, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.hidden { display: none !important; }
.flex1 { flex: 1; }
.muted { color: var(--muted); font-weight: 400; }
.ic { display: inline-flex; width: 15px; height: 15px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.sm { width: 11px; height: 11px; opacity: .7; }

#app { display: flex; flex-direction: column; height: 100vh; }

/* ---------- top bar ---------- */
#topbar { height: var(--top); flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; }
.logo { width: 20px; height: 20px; flex: none; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.brand-sep { width: 1px; height: 16px; background: var(--line); }
.brand-sub { color: var(--text2); font-size: 12.5px; }
.tb-div { width: 1px; height: 20px; background: var(--line); margin: 0 8px 0 12px; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 6px; color: var(--text2); }
.tb-btn:hover, .tb-btn.open { background: #e4ded3; }
.tb-btn b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.incident-select { gap: 10px; }
.tb-text { color: var(--text2); margin: 0 10px 0 4px; }
.tb-icon { width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--text2); }
.tb-icon:hover { background: #e4ded3; }
.tb-spacer { flex: 1; }
.seg { display: inline-flex; background: #e3ddd2; border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 24px; border-radius: 5px; color: var(--text2); }
.seg button.on { background: #fbf9f6; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.mode-tabs { margin: 0 6px; }
.badge { min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- layout ---------- */
#main { flex: 1; display: flex; min-height: 0; }
#left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #cfd6d9; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#side { width: var(--side); flex: none; background: var(--panel2); border-left: 1px solid var(--line); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; transition: width .25s, padding .25s; }
body.side-collapsed #side { width: 0; padding: 0; border: 0; }
.side-mode { display: flex; flex-direction: column; gap: 8px; }

/* ---------- labels in 3D ---------- */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; pointer-events: none; }
.lbl.hide { display: none; }
.lbl-place { color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 0 1px rgba(0,0,0,.7); transform-origin: 0 0; line-height: 1.15; text-align: center; }
.lbl-place .tri { font-size: 9px; margin-right: 4px; }
.map2d .lbl-place { color: #3a342e; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
.lbl-chip { background: rgba(40,35,32,.86); color: #fff; padding: 3px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 500; }
.lbl-time { display: flex; align-items: center; gap: 8px; }
.lbl-time .dot { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #f3a531; background: #fff3d6; box-shadow: 0 0 0 1.5px rgba(0,0,0,.15); flex: none; }
.lbl-time.future .dot { opacity: .55; }
.lbl-time.future .lbl-chip { opacity: .7; }
.lbl-ign { display: flex; align-items: center; gap: 8px; }
.lbl-ign .dot { width: 14px; height: 14px; border-radius: 50%; background: #d63a2a; border: 2px solid #ffd7c9; box-shadow: 0 0 12px 4px rgba(255,120,40,.6); }
.lbl-ign .lbl-chip { font-size: 13px; padding: 5px 9px; line-height: 1.3; }
.lbl-unit { display: flex; align-items: center; gap: 5px; background: rgba(40,35,32,.86); color: #fff; padding: 2px 7px 2px 6px; border-radius: 4px; font-size: 10.5px; pointer-events: auto; cursor: pointer; }
.lbl-unit b { font-weight: 600; }
.lbl-unit .d { width: 6px; height: 6px; border-radius: 1px; background: #e33; }
.lbl-unit .d.g { background: #6fcf5a; border-radius: 50%; }
.lbl-unit .d.y { background: #f2c230; border-radius: 50%; }
.lbl-unit .d.b { background: #4da3e8; border-radius: 50%; }
.lbl-unit .s { color: #d8d0c7; }
.lbl-unit.sel { background: var(--accent); }
.lbl-unit.sel .s { color: #ffe5da; }
.lbl-base { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.lbl-base i { width: 17px; height: 17px; border-radius: 50%; background: #3a3530; border: 1.5px solid #fff; color: #fff; font-style: normal; font-weight: 700; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; text-shadow: none; }
.lbl-measure { background: #2a2520; color: #ffd860; font: 600 11px var(--mono); padding: 2px 6px; border-radius: 3px; }
.lbl-struct { background: rgba(255,255,255,.9); color: #2a2520; font-size: 10px; padding: 1px 5px; border-radius: 3px; border: 1px solid #d4501f; }

/* compass & controls */
#compass { position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(60,56,52,.78); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
#compass svg { width: 100%; height: 100%; transition: transform .05s linear; }
#compass text { fill: #fff; font: 600 7px Inter; }
#compass path { fill: #fff; }
#mapCtl { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 8px; }
.scalebar { margin-right: 46px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); width: 104px; }
.map2d .scalebar { color: #2a2520; text-shadow: 0 0 2px #fff; }
.sb-nums { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 2px; }
.sb-nums span:last-child { margin-right: -24px; }
.sb-bar { height: 6px; border: 1.5px solid currentColor; border-top: 0; display: flex; }
.sb-bar i { flex: 1; border-right: 1.5px solid currentColor; }
.sb-bar i:last-child { border: 0; }
.seg.dark { background: rgba(50,46,42,.82); }
.seg.dark button { color: #ddd5cc; height: 26px; padding: 0 8px; }
.seg.dark button.on { background: var(--accent); color: #fff; }
.mc-btn { height: 30px; min-width: 30px; padding: 0 8px; border-radius: 6px; background: rgba(50,46,42,.82); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; }
.mc-btn .ic.sm { opacity: .8; }
.mc-btn.sq { width: 30px; padding: 0; }
.follow-btn.on { background: #fbf9f6; color: #2a2520; box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 760px) { .follow-btn span { display: none; } }
.clos-btn b { font-size: 11px; filter: grayscale(1) brightness(1.6); opacity: .8; }
.clos-btn.on { background: #fbf9f6; color: #2a2520; box-shadow: inset 0 0 0 1.5px #d21e1e; }
.clos-btn.on b { filter: none; opacity: 1; }
@media (max-width: 760px) { .clos-btn span { display: none; } }

#tooltip { position: absolute; pointer-events: none; background: rgba(38,34,31,.9); color: #fff; padding: 8px 10px; border-radius: 6px; font-size: 11px; line-height: 1.5; min-width: 150px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 5; }
#tooltip b { font-weight: 600; }
#tooltip .tt-in { display: flex; align-items: center; gap: 5px; }
#tooltip .tt-in i { width: 6px; height: 6px; border-radius: 50%; background: #9a9188; }
#tooltip .tt-in i.in { background: #ef6b3c; }
#tooltip .tt-f { color: #c9c0b5; }
#tooltip .tt-ll { font-family: var(--mono); font-size: 10px; color: #b4aca2; border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; padding-top: 4px; }

#gridLabels { position: absolute; inset: 0; pointer-events: none; display: none; }
.map2d #gridLabels { display: block; }
.glbl { position: absolute; font: 500 9.5px var(--mono); background: rgba(70,64,58,.82); color: #fff; padding: 1px 4px; border-radius: 2px; transform: translate(-50%, 0); }
.glbl.v { transform: translate(0, -50%); }

/* unit HUD (chase panel) */
#unitHud { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(34,30,27,.88); color: #fff; border-radius: 8px; padding: 10px 14px 8px; min-width: 430px; box-shadow: 0 6px 24px rgba(0,0,0,.3); backdrop-filter: blur(6px); }
.uh-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.uh-top b { font-weight: 600; }
.uh-top .t { color: #bdb4aa; }
.uh-st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #ff8d6a; }
.uh-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.uh-st.g { color: #8be07a; } .uh-st.y { color: #f2c230; }
.uh-row { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.uh-m small { display: block; font-size: 9px; color: #a69d93; letter-spacing: .4px; text-transform: uppercase; }
.uh-m b { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.uh-m span { display: block; font-size: 9.5px; color: #a69d93; margin-top: -2px; }
.uh-load { min-width: 120px; }
.uh-load .bar { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; margin: 6px 0 3px; }
.uh-load .bar i { display: block; height: 100%; background: #e03b2c; border-radius: 2px; }
.uh-load b { font-size: 12px; }
.uh-btns { display: flex; gap: 0; margin-left: auto; background: rgba(255,255,255,.08); border-radius: 5px; }
.uh-btns button { padding: 5px 11px; border-radius: 5px; font-size: 11px; color: #cfc6bc; }
.uh-btns button.on { background: var(--accent); color: #fff; }
.uh-x { color: #a69d93; font-size: 15px; padding: 0 0 0 6px; }
.uh-hint { color: #8e857c; font-size: 10px; margin-top: 5px; }

#measureBar { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(34,30,27,.9); color: #fff; border-radius: 7px; padding: 6px 8px 6px 12px; display: flex; gap: 8px; align-items: center; font-size: 11.5px; }
#measureBar button { background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 5px; }
#measureBar button:first-of-type { background: var(--accent); }

/* ---------- PiP drone feed ---------- */
#pip { position: absolute; right: 12px; top: 10px; width: 528px; background: transparent; outline: 1px solid rgba(0,0,0,.35); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: all .35s cubic-bezier(.4,.1,.2,1); z-index: 3; }
#pip.full { right: 0; top: 0; width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.pip-view { position: relative; width: 100%; aspect-ratio: 16 / 9.95; background: transparent; }
#pip.full .pip-view { flex: 1; aspect-ratio: auto; }
#hud { position: absolute; inset: 0; width: 100%; height: 100%; }
.pip-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.pip-flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.pip-bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; color: #fff; font-size: 11px; background: #191715; }
.pip-name b { font-weight: 600; } .pip-name span { color: #a59d94; }
.pip-seg { display: inline-flex; background: #2b2724; border-radius: 4px; padding: 2px; margin-left: 6px; }
.pip-seg button { padding: 2px 6px; border-radius: 3px; color: #a59d94; font-size: 10.5px; }
.pip-seg button.on[data-sensor=eo] { background: var(--accent); color: #fff; }
.pip-seg button.on[data-sensor=ir] { background: var(--violet); color: #fff; }
.pip-pal { border: 1px solid #3c3733; border-radius: 4px; padding: 2px 7px; color: #ddd5cc; font-size: 10.5px; }
.pip-ic { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: #cfc6bc; border-radius: 4px; }
.pip-ic:hover { background: #2c2825; }
.pip-ic .ic { width: 13px; height: 13px; }
.pip-zoom { font-size: 10.5px; color: #ddd5cc; min-width: 28px; text-align: center; }

/* ---------- loading ---------- */
#loading { position: absolute; inset: 0; background: #e9e4da; display: flex; align-items: center; justify-content: center; z-index: 30; transition: opacity .6s; }
#loading.done { opacity: 0; pointer-events: none; }
.ld-card { text-align: center; }
.ld-card .logo { width: 44px; height: 44px; }
.ld-title { font-weight: 700; font-size: 20px; margin: 6px 0 14px; }
.ld-step { color: var(--muted); margin-bottom: 8px; font-size: 11.5px; }
.ld-bar { width: 220px; height: 3px; background: #d7d0c4; border-radius: 2px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* ---------- bottom panel ---------- */
#bottom { height: var(--bottom); flex: none; display: flex; border-top: 1px solid var(--line); background: var(--panel); }
#bottomMain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.panel-title { font-weight: 600; font-size: 12.5px; }
#timeline { display: flex; height: 78px; flex: none; border-bottom: 1px solid var(--line2); background: linear-gradient(90deg, #ece6dc, var(--panel) 30%); }
.tl-left { width: 166px; flex: none; padding: 9px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.tl-ctl { display: flex; gap: 5px; margin-bottom: 8px; }
.tl-b { width: 29px; height: 29px; border-radius: 5px; background: #e2dcd2; border: 1px solid #d3ccc0; display: inline-flex; align-items: center; justify-content: center; color: #3a3530; }
.tl-b .ic { width: 13px; height: 13px; }
.tl-b.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.tl-b.sp { width: auto; padding: 0 8px; gap: 6px; margin-left: 4px; font-size: 11.5px; }
.tl-b:disabled { opacity: .45; cursor: default; }
.tl-right { flex: 1; position: relative; padding: 0 16px 0 2px; min-width: 0; }
.tl-range { position: absolute; right: 16px; top: 8px; font-size: 11px; color: var(--text2); }
.tl-track { position: absolute; left: 2px; right: 16px; top: 16px; height: 30px; cursor: pointer; }
.tl-rail { position: absolute; left: 0; right: 0; top: 12px; height: 3px; background: #cdc6ba; border-radius: 2px; }
.tl-fill { position: absolute; left: 0; top: 12px; height: 3px; background: #5f5850; border-radius: 2px; }
.tl-band { position: absolute; left: 0; right: 0; top: 17px; height: 5px; border-radius: 3px; opacity: .9; }
.tl-markers { position: absolute; inset: 0; pointer-events: none; }
.tl-mk { position: absolute; top: 19px; transform: translate(-50%, 0); width: 10px; height: 10px; }
.tl-mk.dot { width: 8px; height: 8px; border-radius: 50%; background: #d63a2a; top: 21px; }
.tl-mk.fire { color: #ea5b25; top: 18px; width: 11px; height: 12px; }
.tl-mk.tri { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 8px solid #8c857b; top: 20px; }
.tl-mk.live { color: var(--accent); }
.tl-thumb { position: absolute; top: 6px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #3a3530; border: 2.5px solid #f6f3ee; box-shadow: 0 0 0 1px #77706a, 0 1px 3px rgba(0,0,0,.3); cursor: grab; }
.tl-tip { position: absolute; bottom: 19px; left: 50%; transform: translateX(-50%); background: #3a3530; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.tl-axis { position: absolute; left: 2px; right: 16px; top: 46px; height: 30px; font-size: 10.5px; color: var(--text2); }
.tl-tick { position: absolute; transform: translateX(-50%); text-align: center; line-height: 1.2; white-space: nowrap; }
.tl-tick b { display: block; font-weight: 500; color: var(--text); height: 13px; }
#charts { flex: 1; display: flex; min-height: 0; }
.chart { flex: 1; position: relative; border-right: 1px solid var(--line2); display: flex; flex-direction: column; min-width: 0; padding: 6px 10px 2px 14px; }
.chart:last-child { border-right: 0; }
.ch-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; height: 16px; }
.ch-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch-meta { margin-left: auto; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.ch-menu { color: var(--muted); font-weight: 700; width: 16px; text-align: center; }
.chart canvas { flex: 1; width: 100%; min-height: 0; }

#feed { width: var(--feed); flex: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--panel); min-height: 0; }
.feed-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 12px; }
.feed-add { border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-size: 11px; background: #f8f6f2; }
.feed-count { background: var(--accent); color: #fff; border-radius: 9px; min-width: 20px; height: 17px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; padding: 0 5px; }
.feed-list { flex: 1; overflow-y: auto; padding: 0 4px 4px; }
.ev { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 5px; font-size: 11.5px; cursor: pointer; border-left: 2px solid transparent; }
.ev:hover { background: #e9e3d9; }
.ev.cur { background: #f0dfd2; border-left-color: var(--accent); }
.ev.future { color: #a39b91; }
.ev .ev-ic { width: 13px; height: 13px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ev .ev-t { margin-left: auto; color: var(--text2); font-size: 11px; }
.ev.future .ev-t { color: #aaa298; }
.det { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; font-size: 11.5px; border-radius: 5px; animation: slidein .4s ease-out; }
.det:hover { background: #e9e3d9; cursor: pointer; }
.det .dd { width: 8px; height: 8px; border-radius: 50%; background: #f08a3c; margin-top: 4px; flex: none; box-shadow: 0 0 0 2px #fbe0c8; }
.det .db { flex: 1; min-width: 0; }
.det .db small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.det .dt { color: var(--text2); font-size: 10.5px; }
.det .sq { width: 8px; height: 8px; margin-top: 4px; flex: none; border-radius: 1px; }
@keyframes slidein { from { background: #f6d9c4; transform: translateY(-4px); opacity: 0; } to { opacity: 1; } }

/* ---------- sidebar cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; flex: none; }
.card-h { display: flex; align-items: center; gap: 6px; padding: 9px 12px 7px; font-size: 12.5px; }
.card-h b { font-weight: 600; }
.card-h .link { margin-left: auto; color: var(--text2); font-size: 11.5px; }
.card-h .ch-menu { margin-left: auto; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 6px; background: var(--panel2); }
.tabs button { flex: 1; padding: 8px 0 7px; color: var(--text2); border-bottom: 2px solid transparent; font-size: 12px; }
.tabs button.on { color: var(--text); border-color: var(--text); font-weight: 500; background: var(--card); border-radius: 6px 6px 0 0; }
.tab-body { padding: 6px 4px 6px 8px; }
.layer { display: flex; align-items: center; gap: 8px; height: 28.5px; padding-right: 6px; }
.layer.off .lname, .layer.off .lpct { color: #aaa298; }
.layer.off .lthumb { opacity: .45; }
.chk { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #8d857b; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chk.on { background: #5b544c; border-color: #5b544c; }
.chk.on::after { content: ''; width: 7px; height: 4px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.lthumb { width: 24px; height: 24px; border-radius: 3px; flex: none; background-size: cover; }
.lname { flex: 1; font-size: 11.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lslider { width: 52px; position: relative; height: 14px; cursor: pointer; }
.lslider::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #c9c1b5; border-radius: 1px; }
.lslider i { position: absolute; left: 0; top: 6px; height: 2px; background: #3a3530; border-radius: 1px; }
.lslider b { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #3a3530; }
.layer.off .lslider b, .layer.off .lslider i { background: #b3ab9f; }
.lpct { width: 32px; text-align: right; font-size: 11px; color: var(--text2); }
.kv { padding: 0 12px 10px; display: grid; grid-template-columns: 80px 1fr; row-gap: 4px; font-size: 11.5px; }
.kv > span:nth-child(odd) { color: var(--text2); }
.kv [contenteditable=true] { background: #fff; outline: 1px solid #e0b9a6; border-radius: 3px; padding: 0 3px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #bdb5aa; border: 2px solid #8f877d; margin-right: 4px; vertical-align: -1px; }
.wx { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px 6px; padding: 4px 12px 12px; }
.wx-i { display: flex; gap: 7px; align-items: flex-start; }
.wx-i .ic { width: 17px; height: 17px; color: #5d564e; margin-top: 2px; }
.wx-i small { display: block; color: var(--text2); font-size: 10.5px; }
.wx-i b { display: block; font-weight: 600; font-size: 12.5px; }
.wx-i span { display: block; color: var(--muted); font-size: 10px; }

/* lists */
.list { padding: 0 6px 6px; }
.li { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 6px; cursor: pointer; position: relative; height: 34px; }
.li:hover { background: #ece6dc; }
.li.sel { background: #f2dfd2; }
.li.sel::before { content: ''; position: absolute; left: -6px; top: 3px; bottom: 3px; width: 3px; background: var(--accent); border-radius: 2px; }
.li-ic { width: 24px; height: 24px; border-radius: 5px; background: #e2dcd2; display: inline-flex; align-items: center; justify-content: center; color: #4a443e; flex: none; }
.li-ic .ic { width: 14px; height: 14px; }
.li.sel .li-ic { background: var(--accent); color: #fff; }
.li-b { flex: 1; min-width: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-b b { font-weight: 600; font-size: 11.5px; margin-right: 4px; }
.li-b .nm { font-size: 11.5px; color: var(--text2); }
.li-b small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-b small .sd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.li-r { text-align: right; font-size: 10.5px; color: var(--text2); flex: none; }
.li-r .st { color: var(--green); font-weight: 600; font-size: 10px; }
.li-r small { display: block; color: var(--muted); font-size: 10px; }
.batt { display: flex; align-items: center; gap: 5px; flex: none; width: 46px; flex-direction: column; align-items: flex-end; }
.batt .bb { width: 40px; height: 4px; background: #d8d1c5; border-radius: 2px; overflow: hidden; }
.batt .bb i { display: block; height: 100%; background: #4f9a3f; }
.batt span { font-size: 10px; color: var(--text2); }
.d-mid { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; flex: none; }
.grp { font-size: 10px; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; padding: 8px 6px 3px; font-weight: 500; }
.live { margin-left: auto; color: var(--red); font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pill { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 9px; background: var(--greenbg); color: var(--green); margin-left: auto; }
.pill.red { background: #f6ddd7; color: var(--red); }
.pill.gray { background: #e5dfd6; color: var(--text2); }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); margin: 0 0 4px; }
.stats4 div { padding: 7px 8px; border-right: 1px solid var(--line2); }
.stats4 div:last-child { border: 0; }
.stats4 b { font-size: 14px; font-weight: 600; }
.stats4 b small { font-size: 10px; color: var(--muted); font-weight: 400; }
.stats4 span { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail { padding: 2px 12px 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--line2); }
.metrics small { display: block; font-size: 10px; color: var(--text2); }
.metrics b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.2; }
.metrics span { display: block; font-size: 10px; color: var(--muted); }
.kv2 { display: grid; grid-template-columns: 60px 1fr; row-gap: 6px; column-gap: 8px; font-size: 11.5px; padding-top: 10px; }
.kv2 > span:nth-child(odd) { color: var(--text2); }
.btnrow { display: flex; gap: 6px; margin-top: 12px; }
.btn { padding: 6px 12px; border-radius: 5px; font-size: 11.5px; background: #e4ded4; display: inline-flex; gap: 6px; align-items: center; }
.btn.red { background: var(--accent); color: #fff; }
.btn.dark { background: var(--dark); color: #fff; }
.btn.on { outline: 2px solid #f0b39c; }
.seg-btns { display: inline-flex; background: #e4ded4; border-radius: 6px; padding: 2px; margin-top: 12px; }
.seg-btns button { padding: 5px 12px; border-radius: 4px; font-size: 11.5px; color: var(--text2); }
.seg-btns button.on { background: var(--accent); color: #fff; }
.loadbar { margin: 10px 0 2px; }
.loadbar .lb-h { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text2); }
.loadbar .lb-h b { color: var(--text); font-weight: 600; }
.loadbar .bar { height: 6px; border-radius: 3px; background: #ddd6ca; margin-top: 4px; overflow: hidden; }
.loadbar .bar i { display: block; height: 100%; background: #b42c22; }
.loadbar .bar.g i { background: #4b4540; }
.hint { margin: 4px 12px 12px; padding: 10px 12px; background: #ece6dc; border-radius: 6px; color: var(--text2); font-size: 11.5px; display: flex; gap: 10px; line-height: 1.45; }
.hint .ic { color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.ops-badge { margin-left: auto; font-size: 10.5px; display: inline-flex; gap: 5px; align-items: center; }
.ops-badge i { width: 6px; height: 6px; border-radius: 50%; background: #2a2520; }

/* tabs: analysis/evidence/notes */
.an-sec { padding: 6px 6px 8px 2px; border-bottom: 1px solid var(--line2); }
.an-sec:last-child { border: 0; }
.an-sec h4 { margin: 4px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 500; }
.an-row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 2px 0; }
.an-row span:first-child { color: var(--text2); }
.conf { height: 5px; background: #ddd6ca; border-radius: 3px; overflow: hidden; margin: 2px 0 6px; }
.conf i { display: block; height: 100%; background: linear-gradient(90deg, #f0a03a, #cf4a22); }
.ev-card { display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.ev-card:hover { background: #ece6dc; }
.ev-thumb { width: 44px; height: 34px; border-radius: 4px; flex: none; background-size: cover; background-position: center; }
.ev-card b { font-size: 11.5px; font-weight: 600; display: block; }
.ev-card small { color: var(--muted); font-size: 10.5px; display: block; }
.ev-card .tag { font-size: 9.5px; background: #e4ded4; padding: 1px 5px; border-radius: 3px; color: var(--text2); margin-top: 2px; display: inline-block; }
.notes-in { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; padding: 7px; resize: vertical; }
.note { padding: 7px 4px; border-bottom: 1px solid var(--line2); font-size: 11.5px; }
.note small { color: var(--muted); display: block; font-size: 10px; margin-bottom: 2px; }
.note .x { float: right; color: var(--muted); }
.small-btn { font-size: 11px; padding: 4px 10px; border-radius: 5px; background: var(--dark); color: #fff; margin-top: 6px; }

/* menus / toasts / modal */
.menu { position: fixed; min-width: 200px; background: #fbf9f6; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(40,30,20,.18); padding: 5px; z-index: 50; font-size: 12px; }
.menu .mi { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.menu .mi:hover { background: #eee8df; }
.menu .mi.dis { color: var(--muted); cursor: default; }
.menu .mi.dis:hover { background: none; }
.menu .mi .k { margin-left: auto; color: var(--muted); font-size: 10.5px; padding-left: 16px; }
.menu .mi .ck { width: 14px; color: var(--accent); font-weight: 700; }
.menu .sep { height: 1px; background: var(--line2); margin: 4px 2px; }
.menu .mh { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 9px 3px; }
#toasts { position: fixed; left: 50%; bottom: 220px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 60; pointer-events: none; }
.toast { background: #2f2a26; color: #fff; padding: 8px 14px; border-radius: 7px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: toastin .25s ease-out; }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } }
#modal { position: fixed; inset: 0; background: rgba(30,25,20,.35); display: flex; align-items: center; justify-content: center; z-index: 70; }
.modal-card { background: #fbf9f6; border-radius: 10px; width: 420px; max-width: 92vw; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-card h3 { margin: 0 0 12px; font-size: 15px; }
.modal-card .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.modal-card .row:last-of-type { border: 0; }
.modal-card .foot { display: flex; justify-content: flex-end; margin-top: 12px; gap: 8px; }
.modal-card select, .modal-card input[type=range] { font: inherit; }

@media (max-width: 1100px) { :root { --side: 260px; --feed: 180px; } }


#viewport.pip-full #mapCtl, #viewport.pip-full #compass, #viewport.pip-full #tooltip { display: none; }

.lbl-village { font-size: 10.5px; opacity: .92; }
.lbl-memorial { background: rgba(30,20,20,.82); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; border-left: 3px solid #d21e1e; line-height: 1.35; }
.lbl-memorial span { color: #d9cfc6; font-size: 10px; }
.tl-mk.dot.fatal { background: #2a2520; width: 7px; height: 7px; }

.lbl-fatal { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 10.5px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lbl-fatal i { min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #1e1a18; border: 1.5px solid #fff; font-style: normal; font-weight: 700; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; text-shadow: none; }
.lbl-pco i { background: #2b4fa8 !important; }
.lbl-closure { background: rgba(255,255,255,.92); color: #2a2520; font-size: 10px; padding: 2px 6px; border-radius: 3px; border-left: 3px solid #d21e1e; }
.lbl-closure b { color: #b4231c; font-weight: 600; }
.map2d .lbl-fatal { color: #2a2520; text-shadow: 0 0 3px #fff; }

.modal-card.wide { width: 600px; max-height: 86vh; overflow-y: auto; }
.intro h3 { font-size: 16px; line-height: 1.3; }
.intro h4 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.intro ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--text2); }
.intro li { margin-bottom: 4px; }
.intro .memo { margin: -4px 0 4px; font-size: 12px; color: #8a2a1e; font-style: italic; }

.lang-seg button { padding: 0 8px; font-size: 11px; font-weight: 600; }

.lead-credit { margin: 10px 0 2px; padding: 10px 12px; background: #f6e7dd; border-left: 3px solid var(--accent); border-radius: 6px; }
.lead-credit b { font-size: 13.5px; color: var(--text); }
.lead-credit ul { margin-top: 4px; }
.intro .sign { margin: 12px 0 0; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--text); }
.intro-head { display: flex; align-items: flex-start; gap: 12px; }
.intro-head h3 { flex: 1; margin-bottom: 6px; }
.intro-lang { flex: none; }
.intro-lang button { height: 28px; padding: 0 10px; font-size: 12px; }

/* responsive top bar: drop secondary text first, then labels, never cut the right-hand controls */
#topbar { min-width: 0; }
#topbar > * { flex-shrink: 0; }
#topbar .incident-select { flex-shrink: 1; min-width: 0; overflow: hidden; }
#topbar .incident-select b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1420px) { .brand-sub, .brand-sep { display: none; } .tb-div { margin: 0 4px; } }
@media (max-width: 1320px) { .tb-text { display: none; } }
@media (max-width: 1220px) { .date-btn span { display: none; } .mode-tabs { margin: 0 2px; } }
@media (max-width: 1120px) { .menu-btn { font-size: 0; gap: 0; padding: 0 6px; } .menu-btn .ic.sm { display: none; } }
@media (max-width: 960px) { .mode-tabs button { font-size: 0; gap: 4px; padding: 0 8px; } .mode-tabs .badge { font-size: 10px; } .brand-name { display: none; } }

/* ---------- responsive layout ---------- */
#sideToggle { display: none; }
/* feed moved into the side panel on narrow screens (see main.js) */
#side #feed { width: auto; border: 1px solid var(--line); border-radius: 7px; max-height: 230px; background: var(--card); flex: none; }
@media (max-width: 1024px) {
  :root { --side: 270px; }
  .chart:nth-child(3) { display: none; }
}
@media (max-height: 700px) { :root { --bottom: 170px; } #timeline { height: 70px; } }
@media (max-height: 560px) { :root { --bottom: 128px; } #charts { display: none; } }
@media (max-width: 760px) {
  :root { --bottom: 190px; }
  #topbar { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 5px 8px; }
  #topbar .tb-spacer { display: none; }
  .mode-tabs { order: 10; flex: 1 1 auto; justify-content: space-between; margin: 0; }
  .mode-tabs button { font-size: 11px !important; flex: 1; justify-content: center; padding: 0 4px; }
  .incident-select b { font-size: 12px; }
  .tb-div { display: none; }
  #side { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 340px); z-index: 40; transform: translateX(105%); transition: transform .25s; box-shadow: -10px 0 30px rgba(0,0,0,.25); padding-top: 12px; }
  body.side-open #side { transform: none; }
  body.side-collapsed #side { width: min(88vw, 340px); padding: 12px 8px 8px; }
  #sideToggle { display: flex; position: absolute; right: 12px; top: 12px; z-index: 6; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(50,46,42,.88); color: #fff; align-items: center; gap: 6px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
  #sideScrim { position: fixed; inset: 0; background: rgba(20,15,10,.35); z-index: 39; display: none; }
  body.side-open #sideScrim { display: block; }
  .chart:nth-child(n+2) { display: none; }
  .tl-left { width: 108px; padding: 8px 6px 8px 10px; }
  .tl-b { width: 26px; height: 26px; } .tl-b.sp { margin-left: 0; padding: 0 5px; }
  .tl-range { display: none; }
  #pip { width: calc(100% - 24px); right: 12px; top: 54px; }
  #unitHud { min-width: 0; width: calc(100% - 24px); padding: 8px 10px; }
  .uh-row { gap: 12px; flex-wrap: wrap; } .uh-m b { font-size: 16px; } .uh-hint { display: none; }
  #mapCtl { right: 8px; bottom: 8px; gap: 5px; } .scalebar { display: none; }
  #compass { left: 10px; top: 10px; width: 34px; height: 34px; }
  .modal-card.wide { width: 94vw; padding: 14px; }
  .lbl-chip { font-size: 10.5px; } .lbl-ign .lbl-chip { font-size: 11px; padding: 3px 6px; }
  #toasts { bottom: 200px; }
}
@media (min-width: 1800px) { :root { --side: 330px; --feed: 240px; --bottom: 220px; } }

#attrib { position: absolute; left: 8px; bottom: 6px; font-size: 9.5px; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.7); pointer-events: auto; z-index: 2; }
#attrib a { color: inherit; }
.map2d #attrib { color: #4a433d; text-shadow: 0 0 2px #fff; }
@media (max-width: 760px) { #attrib { font-size: 8.5px; max-width: 60%; } }

/* ================= data analysis: KPIs, bars, tables, dashboard ================= */
.chart.pickable .ch-title { cursor: pointer; border-radius: 4px; padding: 1px 4px; margin-left: -4px; }
.chart.pickable .ch-title::after { content: '▾'; margin-left: 4px; color: var(--muted); font-size: 9px; }
.chart.pickable .ch-title:hover { background: rgba(42,37,32,.06); }
.dk-side { padding: 2px 0 4px; }
.dk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 2px 8px; }
.dk { background: #f8f5f0; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 8px 6px; min-width: 0; }
.dk small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin: 1px 0; font-variant-numeric: tabular-nums; }
.dk span { display: block; color: var(--text2); font-size: 10.5px; line-height: 1.3; }
.dk.red b { color: var(--red); }
.dk-open { width: calc(100% - 4px); margin: 0 2px 6px; justify-content: center; }
.dk-note { margin: 6px 0 2px; font-size: 11px; line-height: 1.45; color: var(--text2); }
.dk-note b { color: var(--text); }
.dk-cap { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.red { color: var(--red); }
.sev-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 6px 0; }
.sev-bar i { display: block; }
.sev-leg { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 10.5px; color: var(--text2); }
.sev-leg span { display: inline-flex; align-items: center; gap: 4px; }
.sev-leg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.hb { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.hb-r { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; align-items: center; gap: 2px 8px; font-size: 11px; }
.hb-r.click { cursor: pointer; border-radius: 4px; }
.hb-r.click:hover { background: rgba(42,37,32,.05); }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.hb-t { height: 8px; background: #ece6dc; border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 4px; }
.hb-r b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hb-r em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 10px; margin-top: -2px; }
.vt { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.vt th { text-align: left; font-weight: 500; color: var(--muted); font-size: 10px; padding: 3px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vt th small { font-size: 9px; letter-spacing: .25em; }
.vt td { padding: 4px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.vt td:first-child { white-space: normal; }
.vt tr.ex td { color: var(--muted); }
.vt tr.click { cursor: pointer; }
.vt tr.click:hover td { background: rgba(42,37,32,.04); }
.lead { display: inline-block; width: 42px; height: 6px; background: #ece6dc; border-radius: 3px; margin-right: 6px; vertical-align: middle; overflow: hidden; }
.lead i { display: block; height: 100%; background: #5c7a4a; border-radius: 3px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; vertical-align: middle; }
.spark i { width: 6px; background: var(--accent2); border-radius: 1px; display: block; }
.dk-two { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.dk-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 6px; }
.sev-mini { display: inline-flex; width: 70px; height: 8px; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.sev-mini i { display: block; }
.vt tr.vrow { cursor: pointer; }
.vt tr.vrow:hover td { background: rgba(42,37,32,.04); }
.an-more { margin-top: 6px; border-top: 1px solid var(--line2); }
.an-more > summary { cursor: pointer; padding: 8px 2px; color: var(--text2); font-size: 11px; font-weight: 600; list-style: none; }
.an-more > summary::before { content: '▸ '; color: var(--muted); }
.an-more[open] > summary::before { content: '▾ '; }

#dash { position: fixed; inset: 0; z-index: 1000; background: rgba(233,228,218,.97); backdrop-filter: blur(6px); display: none; overflow: auto; }
#dash.open { display: block; animation: dashIn .18s ease-out; }
@keyframes dashIn { from { transform: translateY(8px); } to { transform: none; } }
.dash-in { max-width: 1480px; margin: 0 auto; padding: 18px 22px 28px; }
.dash-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.dash-h h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; }
.dash-h p { margin: 0; color: var(--text2); font-size: 12px; max-width: 720px; line-height: 1.45; }
.dash-act { display: flex; align-items: center; gap: 8px; flex: none; }
.dash-x { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; color: var(--text2); }
.dash-x:hover { background: rgba(42,37,32,.08); }
#dash .dk-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 6px 0 14px; }
#dash .dk { padding: 10px 12px; background: #fbf9f6; }
#dash .dk b { font-size: 21px; }
.dash-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dc { background: #fbf9f6; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px 10px; min-width: 0; }
.dc.wide2 { grid-column: 1 / -1; }
.dc h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; }
.dc canvas[data-m] { display: block; width: 100%; height: 190px; cursor: crosshair; }
.dc-i { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--text2); }
.dash-f { margin-top: 16px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
body.dash-open #tooltip { display: none; }
@media (max-width: 1200px) { .dash-g { grid-template-columns: repeat(2, 1fr); } #dash .dk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .dash-in { padding: 12px 14px 22px; }
  .dash-h { flex-direction: column; }
  .dash-act { flex-wrap: wrap; }
  .dash-x { position: fixed; top: 10px; right: 10px; z-index: 3; background: #fbf9f6; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
  .dash-g { grid-template-columns: 1fr; }
  .dc.wide2 { overflow-x: auto; }
  #dash .dk-grid { grid-template-columns: repeat(2, 1fr); }
  .dk-two { grid-template-columns: 1fr; justify-items: center; }
  .dk-two2 { grid-template-columns: 1fr; }
}
