@font-face{font-family:"Exo 2";src:url(fonts/exo2-500-latin.woff) format("woff");font-weight:500;font-display:swap}
:root{
  --bg:#030303;--fg:#eef6fa;--dim:rgba(220,236,244,.56);--faint:rgba(220,236,244,.34);
  --acc:#e3b45a;--acc2:#f3d38a;--silver:#d6dbe1;--red:#ff4d5e;--gold:#e3b45a;
  --glass:rgba(12,12,13,.56);--glass-hi:rgba(20,20,22,.72);--stroke:rgba(214,220,228,.13);--stroke-hi:rgba(214,220,228,.22);--line:rgba(255,255,255,.07);
  --r:18px;--ease:cubic-bezier(.22,1,.36,1);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI Variable","Segoe UI",Roboto,"Helvetica Neue",ui-sans-serif,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1,"ss01" 1;
}
*{box-sizing:border-box}html,body{margin:0;height:100%;height:100vh;height:100dvh;background:var(--bg);color:var(--fg);overflow:hidden;letter-spacing:-.005em}
#map{position:fixed;inset:0;width:100%;height:100%;height:100vh;height:100dvh}
#mapBoot{position:fixed;inset:0;z-index:0;display:grid;place-items:center;background:#030303;pointer-events:none;transition:opacity .4s ease,visibility .4s}
#mapBoot img{width:min(78vw,560px);height:min(78vw,560px);border-radius:50%;object-fit:cover;object-position:50% 42%;filter:brightness(1.08) saturate(1.08);box-shadow:0 0 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04)}
#mapBoot.out,body.ready #mapBoot{opacity:0;visibility:hidden}
#map{z-index:0}
#vignette{position:fixed;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 50% 45%,transparent 55%,rgba(0,0,0,.6) 100%)}
a{color:var(--acc2);text-decoration:none}a:hover{text-decoration:underline}
button{font:inherit;color:inherit}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.glass{background:var(--glass);border:1px solid var(--stroke);border-radius:var(--r);
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  box-shadow:0 10px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07)}

/* ---------- intro ---------- */
#intro{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#030303;transition:opacity .35s var(--ease),visibility .35s}
#intro.out{opacity:0;visibility:hidden}
.intro-in{display:flex;flex-direction:column;align-items:center;gap:16px}
.intro-logo{width:min(320px,78vw);height:auto;display:block}
.intro-name{font:500 34px/1 "Exo 2",ui-sans-serif,system-ui,sans-serif;letter-spacing:.01em}.intro-name,.wordmark{background:linear-gradient(180deg,#ffffff 0%,#d4d8dd 45%,#8f959c 60%,#e9ebee 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.intro-name .ai,.wordmark .ai{background:linear-gradient(180deg,#f8dc96 0%,#e3b45a 55%,#a8721f 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

.intro-bar{width:180px;height:2px;border-radius:2px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:8px}
.intro-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,transparent,var(--acc));box-shadow:0 0 12px var(--acc);transition:width .5s var(--ease)}
.intro-step{font-size:11px;color:var(--faint);letter-spacing:.14em;text-transform:uppercase;min-height:14px}
@keyframes rise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes breathe{50%{filter:drop-shadow(0 0 44px rgba(227,180,90,.55))}}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
[hidden]{display:none!important}
body.ready #topbar>*,body.ready #timeline,body.ready #panelToggle{animation:fadeUp .9s var(--ease) backwards}
@media (min-width:761px){body.ready #panel,body.ready #feed{animation:fadeUp .9s var(--ease) backwards}}
body.ready #topbar>*:nth-child(2){animation-delay:.08s}body.ready #topbar>*:nth-child(3){animation-delay:.16s}
body.ready #panel{animation-delay:.22s}body.ready #timeline{animation-delay:.3s}

/* ---------- top bar ---------- */
#topbar{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;gap:10px;padding:14px 16px 0;padding-top:max(14px,env(safe-area-inset-top));pointer-events:none}
#topbar>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;height:52px;padding:0 16px 0 12px}
.wordmark{font-family:"Exo 2",ui-sans-serif,system-ui,sans-serif;font-weight:500;letter-spacing:.01em;font-size:19px;line-height:1.1;padding-bottom:1px}
.brand .logo{display:block;height:40px;width:40px;border-radius:10px;background:#000;flex:0 0 auto;position:relative;overflow:hidden;line-height:0}
.live{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;letter-spacing:.16em;color:var(--red);padding:3px 8px;border-radius:99px;background:rgba(255,77,94,.1)}
.live i{width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 8px var(--red);animation:p 1.6s ease-in-out infinite}@keyframes p{50%{opacity:.25}}
body.replay .live{color:#ffd36b;background:rgba(255,211,107,.1)}body.replay .live i{background:#ffd36b;box-shadow:0 0 8px #ffd36b}
.counters{display:flex;flex:1;min-width:0;height:52px;align-items:center;overflow-x:auto;scrollbar-width:none;padding:0 8px 0 6px;position:relative;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 28px),transparent 100%)}.counters::-webkit-scrollbar{display:none}
.ctr{flex:1 1 0;display:flex;flex-direction:column;justify-content:center;min-width:72px;max-width:120px;padding:0 8px;position:relative;cursor:default}
.ctr+.ctr:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:1px;background:var(--line)}
.ctr .n{font:600 17px/1.15 -apple-system,BlinkMacSystemFont,"SF Pro Display","Inter",ui-sans-serif,system-ui,sans-serif;color:#fff;font-variant-numeric:tabular-nums;transition:color .4s}
.ctr.alert .n{color:var(--red)}
.ctr .l{font-size:10px;color:var(--dim);white-space:normal;line-height:1.15;margin-top:2px;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.ctr.off{opacity:.32}
.ctr .n.bump{color:var(--acc)}.ctr .n.paused{font-size:11px;font-variant-numeric:normal;font-weight:600;line-height:1.15;white-space:normal;letter-spacing:0;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tools{display:flex;align-items:center;gap:4px;height:52px;padding:0 14px 0 6px}
.ib{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:transparent;border:0;cursor:pointer;color:var(--fg);transition:background .25s}
.ib:hover{background:rgba(255,255,255,.07)}.ib svg{width:20px;height:20px}
.ib.on{color:var(--acc)}
.clock{font:500 16px -apple-system,BlinkMacSystemFont,"SF Pro Display",ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap;padding-left:6px}.clock small{font-size:10px;color:var(--dim);margin-left:5px;letter-spacing:.08em}

/* ---------- layer panel ---------- */
#panel{position:fixed;z-index:4;top:80px;left:16px;width:288px;max-height:calc(100% - 180px);overflow:auto;padding:14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
#panel .grab{display:none}
#panel h2,#feed h2{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin:18px 4px 6px}
#search{position:relative}
#search .mag{position:absolute;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--dim);pointer-events:none}
#search .spin{position:absolute;left:13px;top:50%;width:15px;height:15px;margin-top:-7.5px;border:2px solid rgba(227,180,90,.22);border-top-color:#e3b45a;border-radius:50%;pointer-events:none;opacity:0;visibility:hidden}
#search.busy .mag{opacity:0}
#search.busy .spin{opacity:1;visibility:visible;animation:owsSpin .7s linear infinite}
@keyframes owsSpin{to{transform:rotate(360deg)}}
#placeRes .pr-wait{margin:6px 4px 2px;font-size:12px;opacity:.7}

#search input{width:100%;background:rgba(255,255,255,.06);border:1px solid transparent;color:var(--fg);padding:11px 12px 11px 38px;border-radius:12px;font-size:16px;outline:none;transition:border-color .25s,background .25s}
#search input:focus{border-color:rgba(227,180,90,.45);background:rgba(255,255,255,.09)}
#search input::placeholder{color:var(--faint);overflow:hidden;text-overflow:ellipsis}
#results{font-size:13px;margin-top:6px}#results:empty{display:none}
#results .res{display:flex;gap:10px;align-items:center;padding:8px;border-radius:10px;cursor:pointer;transition:background .2s}
#results .res:hover{background:rgba(255,255,255,.06)}#results .res b{font-weight:500}#results .res small{display:block;color:var(--dim);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
#results .ico{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.06);flex:0 0 auto;font-size:13px}
.lyr{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:10px;font-size:14px;cursor:pointer;user-select:none;transition:background .2s}
.lyr:hover{background:rgba(255,255,255,.045)}
.lyr input{appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:99px;background:rgba(255,255,255,.12);position:relative;margin:0;flex:0 0 auto;cursor:pointer;transition:background .3s var(--ease)}
.lyr input:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s var(--ease)}
.lyr input:checked{background:linear-gradient(180deg,#f0c97a,#c8913a)}.lyr input:checked:after{transform:translateX(14px)}
.lyr input:disabled{opacity:.35}
.lyr em{margin-left:auto;font-style:normal;font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums;white-space:normal;text-align:right;max-width:46%;line-height:1.3;flex:0 0 auto}
.lyr-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3}
.lyr-hint{display:block;font-size:11px;color:rgba(200,214,230,.78);font-weight:400;white-space:normal;overflow-wrap:anywhere;line-height:1.35;margin-top:1px}
.lyr-block{align-items:flex-start}
.lyr-block .sw,.lyr-block input{margin-top:2px}
/* Layer list icons (original silhouettes, tinted with each layer colour) */
.sw{width:16px;height:16px;border-radius:0;background:var(--c);box-shadow:none;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--c) 80%,transparent));flex:0 0 auto;-webkit-mask:var(--ico) center / contain no-repeat;mask:var(--ico) center / contain no-repeat}
.lyr input[data-layer="night"] + .sw{background:#8ea0d8;filter:drop-shadow(0 0 4px rgba(142,160,216,.55))}

.lyr input[data-layer="flights"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M12 2.2c.7.3 1.15 1.4 1.15 2.6v3.2l6.4 3.7v1.85l-6.4-2.15-.15 4.15 2.7 2.15v1.15L12 17.7 8.05 19.7v-1.15l2.7-2.15-.15-4.15-6.4 2.15V11.7l6.4-3.7V4.8C10.85 3.6 11.3 2.5 12 2.2z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="sats"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M2.5 9h6.2v6H2.5zM15.3 9h6.2v6h-6.2zM9.4 7.6h5.2v8.8H9.4z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M8.7 11.2h.7v1.6h-.7zM14.6 11.2h.7v1.6h-.7z%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 d=%22M12 7.6V4.6%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 d=%22M10.6 3.6a2.2 2.2 0 0 1 2.6-1%22/%3E%3C/svg%3E")}
.lyr input[data-layer="iss"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M2 11h20v2H2zM2.4 6.4h6.2v4.2H2.4zM2.4 13.4h6.2v4.2H2.4zM15.4 6.4h6.2v4.2h-6.2zM15.4 13.4h6.2v4.2h-6.2zM9.6 8.2h4.8v7.6H9.6z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="quakes"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22%23fff%22 cx=%2212%22 cy=%2212%22 r=%221.8%22/%3E %3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 cx=%2212%22 cy=%2212%22 r=%224.6%22/%3E %3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.55%22 cx=%2212%22 cy=%2212%22 r=%227.6%22/%3E%3C/svg%3E")}
.lyr input[data-layer="fires"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M12 21.2c-4.2 0-6.8-3.1-6.8-6.8 0-3.6 2.7-6.2 4.6-9.8 1.5 3.2 2.6 3.8 2.7 2.4.2 1.3 1.1 2.2 2.6 1.2 2.7 2 4.3 4.6 4.3 7.2 0 3.8-2.8 5.8-7.4 5.8z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="events"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M3.2 20.2 9.2 8.6h2.1l1.2 3.6 2-5.2h2.2L20.8 20.2z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M10.6 7.4a2.1 2.1 0 1 1-2.2-3.2 2.6 2.6 0 0 1 4.6-1.4 1.9 1.9 0 1 1 1.6 3.4 2.3 2.3 0 0 1-4 1.2z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="ships"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M12 3.2 17.6 10.2 16.8 20.2h-9.6L6.4 10.2z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="dark"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.9%22 stroke-linejoin=%22round%22 stroke-linecap=%22round%22 d=%22M12 3.6 17.3 10.2 16.5 19.8H7.5L6.7 10.2z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="cams"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 fill-rule=%22evenodd%22 d=%22M6.2 8.2h11.6a2.2 2.2 0 0 1 2.2 2.2v7.2a2.2 2.2 0 0 1-2.2 2.2H6.2A2.2 2.2 0 0 1 4 17.6v-7.2a2.2 2.2 0 0 1 2.2-2.2zM12 11.4a3.4 3.4 0 1 0 0 6.8 3.4 3.4 0 0 0 0-6.8zM12 13a1.8 1.8 0 1 1 0 3.6 1.8 1.8 0 0 1 0-3.6zM9.2 5.4h5.6l1.2 2.8H8z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="news"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 fill-rule=%22evenodd%22 d=%22M4.6 4.4h11.2v15.2H4.6zM6.5 7.1h7.4v1.35H6.5zM6.5 10.1h7.4v1.2H6.5zM6.5 13h5.6v1.2H6.5z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M15.8 4.4 19.4 8v11.6h-3.6z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="radar"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.55%22 cx=%2212%22 cy=%2213%22 r=%224%22/%3E %3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.45%22 cx=%2212%22 cy=%2213%22 r=%226.8%22/%3E %3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.35%22 cx=%2212%22 cy=%2213%22 r=%229.4%22/%3E %3Ccircle fill=%22%23fff%22 cx=%2212%22 cy=%2213%22 r=%221.35%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 d=%22M12 13 17.8 6.8%22/%3E%3C/svg%3E")}
.lyr input[data-layer="wx"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22%23fff%22 cx=%2216.8%22 cy=%226.2%22 r=%223.3%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 d=%22M16.8 1.6v1.2M20.8 4.2l-.9.9M22.1 8.2h-1.2M13 3.4l.9.9%22/%3E %3Cpath fill=%22%23fff%22 d=%22M7.2 11.4a4.2 4.2 0 0 1 4-3.3 4.6 4.6 0 0 1 4.5 3.5A3.6 3.6 0 0 1 19 15a3.5 3.5 0 0 1-3.4 3.3H8.2A3.7 3.7 0 0 1 4.6 14.8a3.6 3.6 0 0 1 2.6-3.4z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="storms"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M14.6 6.2c-2.6-2-6.4-1.2-7.8 1.8-1.4 3 1 6.2 4.4 6.4 2.2.15 3.6-1.2 3.2-2.6-.4-1.4-2.2-1.4-2.8-.2-.4.8.2 1.5 1.2 1.4 2.6-.2 4.6-2.8 4.2-5.6-.3-2.4-2.2-4.2-4.8-4.8%22/%3E %3Ccircle fill=%22%23fff%22 cx=%2212.4%22 cy=%2212.2%22 r=%221.15%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 d=%22M9.6 17.6c2.4 1.8 6 1.1 7.4-1.6%22/%3E%3C/svg%3E")}
.lyr input[data-layer="alerts"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 fill-rule=%22evenodd%22 d=%22M12 3.2 22.2 21.2H1.8zM12.95 9.1h-1.9v6.1h1.9zM12 17.1a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="jam"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M11.15 9.2h1.7V20h-1.7z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M6.6 20.2 12 15.2l5.4 5z%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 d=%22M8.3 8.6a5 5 0 0 1 7.4 0%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 d=%22M6.2 6a8 8 0 0 1 11.6 0%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222%22 stroke-linecap=%22round%22 d=%22M6.2 3.6 18 16.2%22/%3E%3C/svg%3E")}
.lyr input[data-layer="conv"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22%23fff%22 cx=%2212%22 cy=%226.2%22 r=%222.7%22/%3E %3Ccircle fill=%22%23fff%22 cx=%226.4%22 cy=%2216.2%22 r=%222.7%22/%3E %3Ccircle fill=%22%23fff%22 cx=%2217.6%22 cy=%2216.2%22 r=%222.7%22/%3E %3Ccircle fill=%22%23fff%22 cx=%2212%22 cy=%2212.2%22 r=%222.1%22/%3E%3C/svg%3E")}
.lyr input[data-layer="airports"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22%23fff%22 cx=%2212%22 cy=%223.4%22 r=%221.15%22/%3E %3Cpath fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.4%22 d=%22M12 4.4V6%22/%3E %3Cpath fill=%22%23fff%22 d=%22M6.8 9.8 9.2 5.8h5.6l2.4 4z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M10.5 9.8h3V18.8h-3z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M4.8 18.8h14.4v2.2H4.8z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="earth"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 cx=%2212%22 cy=%2212%22 r=%228.2%22/%3E %3Cellipse fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.5%22 cx=%2212%22 cy=%2212%22 rx=%228.2%22 ry=%223.3%22/%3E %3Cellipse fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.5%22 cx=%2212%22 cy=%2212%22 rx=%223.3%22 ry=%228.2%22/%3E%3C/svg%3E")}
.lyr input[data-layer="night"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 fill-rule=%22evenodd%22 d=%22M12.2 3.4a8.6 8.6 0 1 0 7.3 13.2 7.2 7.2 0 1 1-5.2-12.4 8.4 8.4 0 0 0-2.1-.8z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="choke"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M2 3.2 9.6 9.2c.9.7 1 2.1.1 2.9L2 20.8z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M22 3.2 14.4 9.2c-.9.7-1 2.1-.1 2.9L22 20.8z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="buildings"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M3.4 11.2h5.6V20.6H3.4zM9.4 5.2h5.4V20.6H9.4zM15.4 8.6h5.2V20.6h-5.2z%22/%3E%3C/svg%3E")}
.lyr input[data-layer="terrain"] + .sw{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill=%22%23fff%22 d=%22M2.4 19.2 8.8 6.6l5.6 12.6z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M8.6 19.2 15.4 3.8 21.6 19.2z%22/%3E%3C/svg%3E")}
.cats{display:flex;flex-wrap:wrap;gap:6px;padding:2px 6px 8px 58px}
.cat{font-size:11.5px;padding:4px 10px;border-radius:99px;border:1px solid var(--stroke);background:transparent;color:var(--dim);cursor:pointer;transition:color .25s,border-color .25s,background .25s}
.cat.on{color:#fff;border-color:color-mix(in srgb,var(--c) 55%,transparent);background:color-mix(in srgb,var(--c) 14%,transparent)}
.row{display:flex;gap:6px;flex-wrap:wrap;padding:0 2px}
.chip{background:rgba(255,255,255,.06);border:1px solid transparent;color:var(--fg);border-radius:99px;padding:8px 14px;cursor:pointer;font-size:13px;transition:background .25s,border-color .25s}
.chip:hover{background:rgba(255,255,255,.1)}.chip.acc{background:linear-gradient(180deg,#f0c97a,#cf9a42);color:#1a1206;font-weight:600}
.note{font-size:11.5px;color:var(--faint);line-height:1.5;margin:12px 4px 2px}
#panelToggle{display:none;position:fixed;z-index:6;left:12px;bottom:calc(84px + env(safe-area-inset-bottom));width:50px;height:50px;border-radius:50%;place-items:center;color:var(--fg);cursor:pointer}
#panelToggle svg{width:22px;height:22px}

/* ---------- feed ---------- */
#feed{position:fixed;z-index:5;top:80px;right:16px;bottom:228px;width:300px;max-height:none;overflow:auto;padding:4px 10px 10px;transition:opacity .5s var(--ease),transform .5s var(--ease)}
#feed.hide{opacity:0;transform:translateX(16px);pointer-events:none}
.feed-h{display:flex;align-items:center;justify-content:space-between}.feed-h h2{margin:14px 4px 6px!important}
#feedList{list-style:none;margin:0;padding:0}
#feedList li{display:flex;gap:10px;padding:9px 8px;border-radius:12px;cursor:pointer;opacity:1;animation:fadeUp .6s var(--ease);transition:background .2s}
#feedList li:hover{background:rgba(255,255,255,.05)}
#feedList .fi{width:30px;height:30px;border-radius:10px;flex:0 0 auto;display:grid;place-items:center;font-size:13px;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--c);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 30%,transparent)}
#feedList b{font-weight:500;font-size:13.5px;display:block;line-height:1.3}#feedList small{color:var(--dim);font-size:11.5px}
.x{background:none;border:0;color:var(--dim);font-size:22px;cursor:pointer;width:32px;height:32px;border-radius:10px;line-height:1}.x:hover{background:rgba(255,255,255,.07);color:#fff}

/* ---------- timeline ---------- */
#timeline{position:fixed;z-index:4;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 640px));min-width:380px;display:flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:99px}
.tl-track{flex:1;position:relative;padding-top:2px}
.tl-ticks{display:flex;justify-content:space-between;font-size:10px;color:var(--faint);margin-top:1px;padding:0 2px}
#tlRange{width:100%;-webkit-appearance:none;appearance:none;height:4px;border-radius:4px;background:linear-gradient(90deg,rgba(255,255,255,.12) var(--p,100%),rgba(227,180,90,.0) var(--p,100%)),rgba(255,255,255,.08);outline:none;margin:6px 0}
#tlRange::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(227,180,90,.25),0 2px 6px rgba(0,0,0,.5);cursor:pointer}
#tlRange::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 4px rgba(227,180,90,.25)}
.tl-label{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--acc);min-width:56px;text-align:right;letter-spacing:.04em}
body.replay .tl-label{color:#ffd36b}

/* ---------- card ---------- */
#card{position:fixed;z-index:6;right:16px;top:80px;width:320px;max-height:calc(100% - 250px);overflow:auto;padding:16px 18px;font-size:13px;animation:cardIn .45s var(--ease) both;background:var(--glass-hi)}
@keyframes cardIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
#card h3{margin:0 0 4px;font-size:17px;font-weight:600;letter-spacing:-.01em;padding-right:30px}
#card .sub{color:var(--dim);font-size:12px;margin-bottom:10px}
#card.emerg h3{color:var(--red)}
#card .x{position:absolute;right:8px;top:8px}
#card table{width:100%;border-collapse:collapse;margin-top:6px}#card td{padding:6px 0;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}#card td:first-child{color:var(--dim);width:46%}
#card img,.cam-box img{width:100%;border-radius:12px;margin:8px 0 4px;background:#000;min-height:140px;display:block;object-fit:cover}
.cam-box{width:100%;min-height:140px;border-radius:12px;margin:8px 0 4px;background:#0a0a0c;overflow:hidden}
.cam-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:160px;padding:20px;text-align:center;background:linear-gradient(180deg,#12141a,#0a0a0c);border-radius:12px;margin:8px 0 4px}
.cam-ph-t{color:var(--dim,#9aa3af);font-size:13px;line-height:1.4;max-width:16rem}
.cam-meta{font-size:11px;color:var(--dim,#9aa3af);margin:0 0 6px;font-variant-numeric:tabular-nums}
#card .acts{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap;position:relative;z-index:8;pointer-events:auto}#camGridBtn{position:relative;z-index:8;pointer-events:auto;touch-action:manipulation;min-height:44px;-webkit-tap-highlight-color:transparent}
.badge{display:inline-block;background:var(--red);color:#fff;font-weight:600;font-size:11px;padding:3px 8px;border-radius:99px;margin-bottom:6px}
#focusBar{position:fixed;z-index:6;left:0;right:0;width:max-content;max-width:calc(100vw - 20px);margin:0 auto;transform:none;bottom:calc(86px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:99px;font-size:13px;animation:fadeUp .5s var(--ease) both;box-sizing:border-box;white-space:nowrap}
#focusBar .dot{width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 10px var(--acc);animation:p 1.6s infinite;flex:0 0 auto}
#focusBar #focusName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#focusBar #focusStop{flex:0 0 auto;white-space:nowrap}
#toast{position:fixed;z-index:20;left:50%;top:84px;transform:translateX(-50%);padding:10px 16px;border-radius:99px;font-size:13px;animation:fadeUp .4s var(--ease) both}
dialog{background:rgba(14,20,28,.82);color:var(--fg);border:1px solid var(--stroke);border-radius:22px;max-width:600px;width:calc(100% - 24px);padding:22px 24px;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
dialog::backdrop{background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
dialog h2{margin:0 0 10px;font-size:19px;font-weight:600}
dialog li{margin:8px 0;font-size:13px;line-height:1.5;color:rgba(238,246,250,.86)}
dialog kbd{display:inline-block;min-width:24px;text-align:center;padding:2px 7px;border-radius:7px;background:rgba(255,255,255,.08);border:1px solid var(--stroke);font:600 12px ui-monospace,Menlo,monospace;margin-right:8px}
.maplibregl-ctrl-attrib{background:rgba(10,14,20,.6)!important;color:rgba(220,236,244,.7)!important;line-height:1.45;border-radius:10px!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.maplibregl-ctrl-attrib-inner{line-height:1.45}.maplibregl-ctrl-attrib a{color:#9ee}
.maplibregl-ctrl-bottom-right{bottom:12px;right:8px}.maplibregl-ctrl-bottom-left{display:none}
.maplibregl-ctrl-group{background:var(--glass)!important;border-radius:14px!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:none!important;border:1px solid var(--stroke)}
.maplibregl-ctrl-group button{width:34px;height:34px}.maplibregl-ctrl-group button+button{border-top:1px solid var(--line)!important}.maplibregl-ctrl-group button span{filter:invert(1) opacity(.85)}
.maplibregl-canvas{outline:none}
@media (max-width:1180px){#feed{display:none}#feed.open{display:block}}
@media (max-width:1180px) and (min-width:761px){#timeline{width:calc(100% - 550px);left:auto;right:206px;transform:none;min-width:0}} /* m149: clear the mini map (140px) and the i button (right 166-198px) */
@media (max-width:760px){
  #topbar{flex-wrap:wrap;gap:8px;padding:10px 10px 0;padding-top:max(10px,env(safe-area-inset-top))}
  .brand{flex:1;height:46px;padding:0 12px 0 10px}.wordmark{font-size:16px}.brand .logo{height:38px;width:38px;border-radius:9px;object-fit:contain}
  .tools{height:46px;padding:0 12px 0 2px}.tools .ib{width:34px;height:34px}.clock{font-size:14px;padding-left:2px}.clock small{display:none}.live{padding:3px 6px;letter-spacing:.12em}
  .counters{order:3;flex-basis:100%;height:50px;padding:0 2px}.ctr{min-width:82px;padding:0 10px}.ctr .n{font-size:15px}.ctr .l{font-size:9.5px}
  #panelToggle{display:grid}
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{display:none}
  .maplibregl-ctrl-attrib.maplibregl-compact{max-width:calc(100% - 80px)}
  .maplibregl-ctrl-bottom-right{bottom:calc(140px + env(safe-area-inset-bottom))}
  #panel{top:auto;left:0;right:0;bottom:0;width:auto;max-height:66%;border-radius:24px 24px 0 0;transform:translateY(105%);transition:transform .45s var(--ease);padding:6px 14px calc(18px + env(safe-area-inset-bottom));z-index:8}
  #panel .grab{display:block;width:40px;height:5px;border-radius:5px;background:rgba(255,255,255,.22);margin:4px auto 12px}
  #panel.open{transform:none}
  body.panel-open #panelToggle{opacity:0;pointer-events:none}
  #feed{left:10px;right:10px;width:auto;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));max-height:46%;z-index:7}
  #timeline{left:72px;right:10px;width:auto;min-width:0;transform:none;bottom:calc(84px + env(safe-area-inset-bottom));padding:6px 12px 6px 6px}
  .tl-label{min-width:44px;font-size:11px}
  #card{left:10px;right:10px;top:auto;bottom:calc(146px + env(safe-area-inset-bottom));width:auto;max-height:52%}
  #focusBar{top:calc(152px + env(safe-area-inset-top));bottom:auto;left:0;right:0;margin:0 auto;transform:none;width:max-content;max-width:calc(100vw - 20px)}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.favs:empty{display:none}.favs{padding:8px 2px 0}
.keys{list-style:none;padding:0;columns:2;column-gap:18px}.keys li{break-inside:avoid}
#panel.hide{opacity:0;pointer-events:none;transform:translateX(-12px);transition:opacity .4s var(--ease),transform .4s var(--ease)}
#flightFilter{padding-top:0}
body.card-open #feed{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(16px);animation:none!important;transition:opacity .3s,visibility 0s .3s}
@media (max-width:760px){
  /* Card sits fully above the weather HUD (~52px) so the glass does not show the chip through the source line, also in RTL. */
  #card{bottom:calc(236px + env(safe-area-inset-bottom))}
  body.panel-open #timeline,body.panel-open .maplibregl-ctrl-bottom-right{opacity:0;pointer-events:none;transition:opacity .3s}
  body.card-open .maplibregl-ctrl-bottom-right{opacity:0;pointer-events:none}
}

@keyframes breatheImg{0%,100%{opacity:.92;transform:scale(1)}50%{opacity:1;transform:scale(1.025)}}
.lyr.na{opacity:.5;cursor:not-allowed}.lyr.na input{cursor:not-allowed}.lyr.na em{font-style:normal;font-size:11px}


/* FINAL Nachtseite logo: crisp almond eye, readable on 390px */
.brand .logo{height:40px;width:40px;border-radius:10px;background:#000;filter:none;flex:0 0 auto;position:relative;overflow:hidden;line-height:0}
.intro-logo{width:min(320px,78vw);height:auto;display:block}
@media (max-width:760px){
  #topbar{flex-wrap:wrap;gap:6px;padding:8px 8px 0;padding-top:max(8px,env(safe-area-inset-top))}
  .brand{flex:1 1 auto;min-width:0;max-width:100%;height:44px;padding:0 10px 0 8px;gap:8px}
  .brand .logo{height:38px;width:38px;flex:0 0 auto;border-radius:9px}
  .wordmark{font-size:16px;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
  .live{padding:2px 6px;letter-spacing:.1em;font-size:9px;flex:0 0 auto}
  .tools{height:44px;padding:0 8px 0 2px;flex:0 0 auto}
  .tools .ib{width:32px;height:32px}
  .clock{font-size:12px;padding-left:2px}
  .clock small{display:none}
  .counters{order:3;flex:1 1 100%;height:44px;padding:0 28px 0 0;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 40px),transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 40px),transparent 100%)}
  .ctr{min-width:62px;padding:0 6px;flex:0 0 auto}
  .ctr .n{font-size:13px}
  .ctr .l{font-size:9px;max-width:70px;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:390px){
  .brand .logo{height:38px;width:38px;border-radius:9px}
  .wordmark{font-size:15px;max-width:40vw}
  .live span{/* keep LIVE */ }
  .counters{padding:0 36px 0 0;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 56px),rgba(0,0,0,.35) calc(100% - 22px),transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 56px),rgba(0,0,0,.35) calc(100% - 22px),transparent 100%)}
  .ctr{min-width:50px;padding:0 4px}
  .ctr .n{font-size:12px}
  .ctr .l{font-size:8.5px;max-width:58px}
}


.cam-box img{cursor:zoom-in}
.cam-fs{position:fixed;inset:0;z-index:40;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));}
.cam-fs-stage{width:min(100%,960px);flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.cam-fs-box{width:100%;max-height:100%;margin:0;background:#000;border-radius:12px;overflow:hidden;min-height:0}
.cam-fs-box img{width:100%;height:100%;max-height:calc(100vh - 120px);object-fit:contain;margin:0;border-radius:0;cursor:default}
.cam-fs-x{position:absolute;top:max(10px,env(safe-area-inset-top));right:12px;width:44px;height:44px;border:0;border-radius:99px;background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer;z-index:2}
.cam-fs-meta{color:var(--dim,#9aa3af);font-size:12px;margin-top:10px;text-align:center}
body.cam-fs-open{overflow:hidden}

/* live weather particle overlay (below chrome, above map) */
#wxFx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}

#mapHud{position:fixed;z-index:4;left:320px;bottom:calc(80px + env(safe-area-inset-bottom));padding:8px 12px;border-radius:12px;font-size:11px;line-height:1.45;max-width:min(280px,calc(100vw - 700px));pointer-events:none;color:rgba(230,240,255,.9)}
#mapHud b{color:#fff;font-variant-numeric:tabular-nums}
#miniMap{position:fixed;z-index:4;right:16px;bottom:calc(22px + env(safe-area-inset-bottom));width:140px;height:140px;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.45)}
#miniMap .mini-world{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(1.15) saturate(1.1)}
#miniView{position:absolute;border:1px solid rgba(243,211,138,.9);box-shadow:0 0 0 1px rgba(0,0,0,.4);pointer-events:none}
#miniDot{position:absolute;width:7px;height:7px;margin:-3px 0 0 -3px;border-radius:50%;background:#f3d38a;box-shadow:0 0 6px #f3d38a;pointer-events:none}
@media(max-width:760px){
  /* HUD sits above the layers button and timeline, and left of the minimap */
  #mapHud{left:12px;bottom:calc(148px + env(safe-area-inset-bottom));font-size:10px;max-width:calc(100vw - 130px)}
  #miniMap{width:96px;height:96px;right:10px;bottom:calc(96px + env(safe-area-inset-bottom));}
  #timeline{width:min(420px,calc(100% - 24px))}
}
@media(max-width:760px){[dir=rtl] #mapHud{left:auto;right:12px;max-width:calc(100vw - 130px)}}

[dir=rtl] #mapHud{left:auto;right:16px}
@media(max-width:760px){[dir=rtl] #mapHud{right:10px;left:auto}}

.cam-box{position:relative;overflow:hidden;background:#000}
.cam-box img.cam-on{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .45s ease}
.cam-box img.cam-on.cam-in{opacity:1}
.cam-box img.cam-on:first-of-type{position:relative}
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){max-width:42px;max-height:28px;overflow:hidden}
.maplibregl-ctrl-attrib.maplibregl-compact-show{max-width:min(420px,70vw);max-height:40vh;overflow:auto}
@media (max-width:760px){
  .maplibregl-ctrl-attrib.maplibregl-compact-show{max-width:min(100vw - 24px, 360px);max-height:30vh}
}

#mapHud #hudWxSrc{opacity:.7;font-size:10px;margin-top:2px}#mapHud #hudPlace{opacity:.9;font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pnx-pic{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:10px;margin:8px 0;background:#111}

/* Attribution: default is a small (i); MapLibre's own control is hidden to avoid covering the map / feed */
.maplibregl-ctrl-attrib{display:none!important}
#attrBtn{position:fixed;z-index:5;right:166px;bottom:calc(22px + env(safe-area-inset-bottom));width:32px;height:32px;border-radius:16px;border:0;background:rgba(10,14,20,.78);color:#e8eef4;font:italic 700 16px/32px Georgia,serif;letter-spacing:0;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.35)}
#attrBtn:hover,#attrBtn[aria-expanded="true"]{background:rgba(20,28,40,.95)}
#attrPop{position:fixed;z-index:6;right:328px;bottom:calc(22px + env(safe-area-inset-bottom));width:min(320px,calc(100vw - 24px));max-height:min(42vh,320px);overflow:auto;padding:12px 14px;font-size:12px;line-height:1.45;color:rgba(230,236,242,.9)}
#attrPop a{color:#9ee}
@media (max-width:760px){
  /* Above the minimap, not on the timeline track */
  #attrBtn{right:114px;bottom:calc(202px + env(safe-area-inset-bottom));width:28px;height:28px;line-height:28px;font-size:14px}
  #attrPop{right:10px;left:10px;width:auto;bottom:calc(240px + env(safe-area-inset-bottom));max-height:28vh}
}
/* keep the event feed above leftover map chrome */
#feed{z-index:5}

@media (prefers-reduced-motion:reduce){#feedList li{animation:none;opacity:1}}

/* Compositor layers: keep chrome off the map's GPU work during pan/zoom */
/* Do not put transform on #panel/#feed/#aiLaunch — they already use transform to hide. */
#brandBar,#mapHud,#miniMap,#timeline,#counters,#card{backface-visibility:hidden}
#wxFx{will-change:contents}

@media (max-width:760px){
  [dir=rtl] #mapHud{left:12px;right:auto;max-width:calc(100vw - 130px)}
}

.clock #appVer{display:block;font-size:9px;letter-spacing:.08em;color:var(--faint);font-weight:600;margin-top:1px}

/* ---------- m108: phones – counters fully visible (2 rows), minimap clear of the eye button and timeline ---------- */
@media (max-width:760px){
  .counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:34px;height:auto;padding:4px 2px;overflow:visible;-webkit-mask-image:none;mask-image:none}
  .ctr{min-width:0;max-width:none;padding:0 5px;flex:none}
  .ctr:nth-child(4n+1):before{display:none}
  .ctr .n{font-size:13px}
  body .counters .ctr .l{font-size:8.5px;max-width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
  body #timeline{left:72px;right:10px;width:auto;max-width:none}
  #miniMap{width:84px;height:84px;right:10px;bottom:calc(150px + env(safe-area-inset-bottom))}
  body #aiLaunch{bottom:calc(246px + env(safe-area-inset-bottom))}
  #attrBtn{right:104px;bottom:calc(152px + env(safe-area-inset-bottom))}
  #mapHud{max-width:calc(100vw - 150px)}
  [dir=rtl] #mapHud{max-width:calc(100vw - 150px)}
  [dir=rtl] .ctr:nth-child(4n+1):before{display:block}[dir=rtl] .ctr:nth-child(4n):before{display:none}
}
@media (max-width:390px){
  .counters{padding:4px 0}
  .ctr{padding:0 4px}
  .ctr .n{font-size:12.5px}
  body .counters .ctr .l{font-size:8px}
}
/* m108: right-to-left on desktop – panel moves right, so minimap, AI button, (i) and HUD mirror to the left */
@media (min-width:761px){
  html[dir=rtl] #miniMap{right:auto;left:16px}
  html[dir=rtl] #aiLaunch{right:auto;left:16px}
  html[dir=rtl] #attrBtn{right:auto;left:166px}
  html[dir=rtl] #attrPop{right:auto;left:328px}
  html[dir=rtl] #mapHud{left:auto;right:320px}
}

#attrShort{position:fixed;z-index:5;right:204px;bottom:calc(22px + env(safe-area-inset-bottom));max-width:min(420px,calc(100vw - 240px));padding:4px 8px;border-radius:8px;background:rgba(10,14,20,.82);color:rgba(230,236,242,.92);font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#attrShort a{color:#9ee}
#attrShort.collapsed{display:block}
#attrEsri{position:fixed;z-index:5;left:12px;bottom:calc(22px + env(safe-area-inset-bottom));max-width:min(520px,calc(100vw - 24px));padding:5px 9px;border-radius:8px;background:rgba(10,14,20,.82);color:rgba(230,236,242,.92);font-size:11px;line-height:1.35}
#attrEsri a{color:#9ee}
#attrEsri[hidden]{display:none !important}
@media(max-width:760px){
  #attrShort{left:10px;right:auto;max-width:calc(100vw - 150px);bottom:calc(84px + env(safe-area-inset-bottom));font-size:10px;white-space:nowrap}
  #attrEsri{left:10px;right:10px;max-width:none;bottom:calc(268px + env(safe-area-inset-bottom));font-size:10px}
}
html[dir=rtl] #attrShort{right:auto;left:204px}
html[dir=rtl] #attrEsri{left:auto;right:12px}

/* Live camera player (own design; 16:9 stage, LIVE-VIDEO / Standbild badges) */
#card.glass:has(.cam-stage){padding-bottom:14px}
.cam-stage{position:relative;width:100%;aspect-ratio:16/9;min-height:180px;border-radius:12px;margin:8px 0 6px;background:#07080b;overflow:hidden;isolation:isolate;transform:translateZ(0);-webkit-transform:translateZ(0)}
.cam-stage .cam-badge{position:absolute;z-index:3;top:8px;left:8px;font-size:10px;font-weight:700;letter-spacing:.08em;padding:3px 7px;border-radius:99px;color:#fff;pointer-events:none}
.cam-stage .cam-badge.live{background:#e0313a;box-shadow:0 0 0 0 rgba(224,49,58,.7);animation:camLivePulse 1.8s ease-out infinite}
.cam-stage .cam-badge.still{background:rgba(20,24,30,.78);letter-spacing:.04em;font-weight:600}
@keyframes camLivePulse{0%{box-shadow:0 0 0 0 rgba(224,49,58,.55)}70%{box-shadow:0 0 0 8px rgba(224,49,58,0)}100%{box-shadow:0 0 0 0 rgba(224,49,58,0)}}
.cam-stage .cam-connect{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.72);font-size:13px;background:rgba(7,8,11,.25);pointer-events:none}
.cam-stage .cam-connect[hidden]{display:none}
.cam-stage video.cam-video,.cam-stage iframe.cam-yt{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;object-fit:contain;opacity:1}
.cam-stage video.cam-video{z-index:1}
.cam-ctrls{position:absolute;z-index:3;right:8px;bottom:8px;display:flex;gap:6px}
.cam-ctrl{appearance:none;border:0;border-radius:999px;background:rgba(8,10,14,.7);color:#fff;font:inherit;font-size:11px;padding:6px 10px;cursor:pointer;backdrop-filter:blur(8px)}
.cam-ctrl:hover,.cam-ctrl:focus-visible{background:rgba(20,24,30,.92)}
.cam-pro-hint{margin:8px 0 0;font-size:12px;color:var(--dim,#9aa3af)}
.cam-ads{margin:6px 0 0}

.cam-yt-gate{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;padding:14px 16px;background:linear-gradient(180deg,#0b0d12 0%,#12151c 100%);color:#e8eef4;overflow:auto;-webkit-overflow-scrolling:touch}
.cam-yt-gate-inner{max-width:34rem;width:100%;font-size:13px;line-height:1.45}
.cam-yt-kicker{margin:0 0 8px;font-size:15px;font-weight:700;letter-spacing:.01em;color:#f2d58a}
.cam-yt-body,.cam-yt-people{margin:0 0 8px;color:rgba(232,238,244,.9)}
.cam-yt-people{color:rgba(232,238,244,.75);font-size:12px}
.cam-yt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:12px 0 8px}
.cam-yt-load{appearance:none;border:0;border-radius:999px;padding:8px 16px;font:inherit;font-weight:700;font-size:14px;letter-spacing:.02em;color:#1a1408;background:#e8c56b;cursor:pointer}
.cam-yt-load:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cam-yt-remember{display:flex;align-items:center;gap:8px;font-size:12.5px;color:rgba(232,238,244,.88);cursor:pointer;user-select:none}
.cam-yt-remember input{width:16px;height:16px;accent-color:#e8c56b;flex:none}
.cam-yt-links,.cam-yt-legal{margin:4px 0 0;font-size:12px}
.cam-yt-links a,.cam-yt-legal a{color:#d4b56a}
.yt-consent{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:13px;color:rgba(232,238,244,.85);cursor:pointer}
.yt-consent input{accent-color:#e8c56b}

@media (max-width:760px){
  body.cam-card-open #card{max-height:68%;padding-top:12px}
  .cam-stage{min-height:200px;margin-top:4px}
}
@media (prefers-reduced-motion:reduce){
  .cam-stage .cam-badge.live{animation:none}
}



/* m120: follow pill clear of assistant FAB on every viewport; full “Nicht folgen” text stays visible */
@media (max-width:760px){
  #focusBar{top:calc(152px + env(safe-area-inset-top));bottom:auto;left:0;right:0;margin:0 auto;transform:none;width:max-content;max-width:calc(100vw - 20px);z-index:6}
}
@media (min-width:761px){
  /* Desktop / tablet: keep above the timeline, well below the FAB (FAB sits at ~174px). */
  #focusBar{bottom:calc(86px + env(safe-area-inset-bottom));top:auto;left:0;right:0;margin:0 auto;transform:none;max-width:min(520px,calc(100vw - 24px))}
}
@media (min-width:761px) and (max-width:1180px){
  #focusBar{max-width:min(520px,calc(100vw - 24px))}
}

/* iOS Safari zooms focused text controls under 16px. Do not set maximum-scale or user-scalable=no. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="image"]):not([type="color"]),
textarea,
select {
  font-size: 16px !important;
}


/* m131: dark ocean behind the canvas (never white while tiles load or after a lost context). */
#map, .maplibregl-canvas-container, .maplibregl-canvas {
  background: #050506 !important;
  image-rendering: auto;
}
#mapReloadHint {
  position: fixed; inset: 0; z-index: 8;
  display: none; place-items: center;
  background: #050506;
  color: rgba(232,236,242,.9);
  font: 500 14px/1.4 "Exo 2", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
  pointer-events: none;
}
#mapReloadHint.show { display: grid; }
/* ows wordmark fit */
@media (max-width: 760px) {
  .wordmark, .intro-name { letter-spacing: .005em; }
  .wordmark { font-size: 14px; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 13px; }
}

/* m134: phones – sit the bottom chrome on the safe-area, no 84px black gap above Safari’s toolbar.
   Relative stacking (timeline/layers, then HUD/minimap/i, then assistant) is unchanged. Desktop is untouched. */
@media (max-width: 760px) {
  :root { --dock: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #panelToggle,
  #timeline,
  body #timeline,
  #feed { bottom: var(--dock); }
  #miniMap { bottom: calc(var(--dock) + 66px); }
  #attrBtn { bottom: calc(var(--dock) + 68px); }
  #mapHud { bottom: calc(var(--dock) + 64px); }
  #aiLaunch,
  body #aiLaunch { bottom: calc(var(--dock) + 162px); }
  #card { bottom: calc(var(--dock) + 152px); }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--dock) + 56px); }
  #attrShort { left:10px; right:auto; max-width:calc(100vw - 150px); bottom: calc(var(--dock) + 56px); white-space:nowrap; }
  #attrEsri { bottom: calc(var(--dock) + 184px); }
  #compareBar { bottom: calc(var(--dock) + 152px); }
}

/* m139 intro no-glow, no opaque box */
#intro{background:#020204}
.intro-logo,.intro-logo.living-eye,#intro .intro-in,.intro-logo img,.intro-logo .logo-fallback{
  background:transparent!important;filter:none!important;box-shadow:none!important;-webkit-filter:none!important;border-radius:0!important
}

#attrPop[hidden]{display:none!important}
#attrPop .attr-pop-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;position:sticky;top:0}
#attrPop .attr-pop-h b{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint,#9aa3af)}
#attrPop .attr-close{background:none;border:0;color:var(--dim,#9aa3af);font-size:22px;line-height:1;cursor:pointer;width:32px;height:32px;border-radius:10px}
#attrPop .attr-close:hover{background:rgba(255,255,255,.07);color:#fff}


/* m146b2: mobile layer sheet peek/half/full, landscape drawer, hide attrib overlay */
.topbar-fold{display:none}
#panel .sheet-x{display:none}
#panel .sheet-head,#panel .sheet-body{display:contents}
#attrShort,#attrEsri,.g3-attr{display:none!important}

@media (max-width:760px), (max-height:500px) and (pointer:coarse), (max-height:500px) and (hover:none){
  #panel .sheet-head,#panel .sheet-body{display:flex;flex-direction:column}
  #panel{
    top:auto;left:0;right:0;bottom:0;width:auto;height:100%;max-height:none;
    border-radius:20px 20px 0 0;
    --peek-h:112px;
    transform:translateY(calc(100% - var(--peek-h)));
    transition:transform .38s cubic-bezier(.2,.8,.2,1);
    padding:0 14px calc(10px + env(safe-area-inset-bottom));
    z-index:8;
    overflow:hidden;
    display:flex;flex-direction:column;
  }
  #panel.open{transform:translateY(calc(100% - var(--peek-h)))}
  #panel.sheet-peek{transform:translateY(calc(100% - var(--peek-h)))}
  #panel.sheet-half{transform:translateY(50%)}
  #panel.sheet-full{transform:translateY(calc(10px + env(safe-area-inset-top,0px)))}
  #panel.sheet-drag{transition:none}
  #panel .sheet-head{flex:0 0 auto;position:relative;padding:0 0 8px;z-index:1}
  #panel .grab{
    display:flex;align-items:center;justify-content:center;
    width:100%;height:28px;margin:0 auto 2px;
    background:transparent;border-radius:0;
    touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;
  }
  #panel .grab:before{content:"";display:block;width:44px;height:5px;border-radius:5px;background:rgba(255,255,255,.34)}
  #panel .sheet-x{
    display:grid;place-items:center;
    position:absolute;top:4px;right:0;z-index:2;
    width:44px;height:44px;border:0;border-radius:50%;
    background:rgba(255,255,255,.08);color:#eef6fa;font:600 22px/1 system-ui,sans-serif;
    cursor:pointer;padding:0;
  }
  #panel.sheet-peek .sheet-x{display:none}
  #panel .sheet-body{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:8px}
  #panel.sheet-peek .sheet-body{overflow:hidden;visibility:hidden;pointer-events:none}
  #panel.hide{opacity:1;pointer-events:auto;transform:translateY(calc(100% - var(--peek-h)))}
  body.panel-open #panelToggle{opacity:0;pointer-events:none}
  body .g3-switch{bottom:calc(var(--peek-h, 112px) + 10px)!important}
  .topbar-fold{
    display:grid;place-items:center;
    width:36px;height:36px;flex:0 0 auto;order:2;align-self:center;
    border:0;color:var(--fg);cursor:pointer;padding:0;pointer-events:auto;
  }
  .topbar-fold svg{width:18px;height:18px;transition:transform .25s}
  #topbar.folded .topbar-fold svg{transform:rotate(180deg)}
  #topbar.folded .counters{display:none}
  #topbar.folded{flex-wrap:nowrap}
  #panelToggle{width:40px;height:40px}
  #panelToggle svg{width:18px;height:18px}
}

/* Landscape phone: side drawer, no peek bar, compact chrome, hide minimap */
@media (orientation:landscape) and (max-height:500px){
  #topbar{flex-wrap:nowrap;gap:6px;padding:6px 8px 0;padding-top:max(6px,env(safe-area-inset-top))}
  #topbar .counters{display:none}
  #topbar.folded .counters{display:none}
  .brand{height:36px}
  .tools{height:36px}
  #panel{
    top:0;bottom:0;left:0;right:auto;
    width:min(360px, 82vw);height:100%;max-height:none;
    border-radius:0 20px 20px 0;
    transform:translateX(-105%);
    padding:calc(8px + env(safe-area-inset-top,0px)) 14px calc(10px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));
    --peek-h:0px;
  }
  #panel.sheet-peek,#panel:not(.sheet-half):not(.sheet-full){transform:translateX(-105%)}
  #panel.sheet-half,#panel.sheet-full,#panel.open{transform:translateX(0)}
  #panel.sheet-peek .sheet-x{display:none}
  #panel.sheet-half .sheet-x,#panel.sheet-full .sheet-x{display:grid}
  #panel.sheet-peek .sheet-body{visibility:hidden}
  #panel.sheet-half .sheet-body,#panel.sheet-full .sheet-body{visibility:visible;pointer-events:auto;overflow:auto}
  #panel .grab{display:none} /* drawer, not a bottom sheet */
  body .g3-switch{top:calc(52px + env(safe-area-inset-top,0px))!important;bottom:auto!important;left:50%;transform:translateX(-50%)}
  #panelToggle{display:grid;width:36px;height:36px;bottom:calc(12px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left));opacity:1;pointer-events:auto}
  body.panel-open #panelToggle{opacity:0;pointer-events:none}
  #miniMap,#mapHud,.mini-world{display:none!important}
  #timeline{display:none}
  #attrBtn,#attrPop,#attrShort,#attrEsri{display:none!important}
}

/* Always hide leftover attribution text overlay / empty black pills on the map */
#attrShort, #attrEsri { display:none!important; }


/* m146b2: JS-driven phone flags so landscape hide is reliable */
body.phone-ui #panel,
body.phone-landscape #panel,
body.phone-ui.ready #panel,
body.phone-landscape.ready #panel{animation:none!important}

body.phone-ui #timeline,
body.phone-ui #miniMap,
body.phone-ui #attrBtn,
body.phone-ui #attrPop,
body.phone-ui #attrShort,
body.phone-ui #attrEsri,
body.phone-ui .g3-attr{display:none!important}
body.phone-ui #mapHud,
body.phone-ui #hudLL{bottom:calc(var(--peek-h, 112px) + 58px)!important;left:10px;right:auto;max-width:calc(100vw - 24px)}
body.phone-ui .g3-switch{bottom:calc(var(--peek-h, 112px) + 12px)!important;top:auto!important}

body.phone-landscape #panel{
  top:calc(52px + env(safe-area-inset-top,0px))!important;
  bottom:0!important;right:auto!important;
  width:min(360px, 80vw)!important;height:auto!important;max-height:none!important;
  border-radius:0 20px 20px 0!important;
  z-index:6!important;
  --peek-h:0px!important;
  padding-top:8px!important;
  animation:none!important;
}
body.phone-landscape:not(.panel-open) #panel,
body.phone-landscape #panel.sheet-peek{
  left:-120%!important;
  transform:translateX(-120%)!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
}
body.phone-landscape.panel-open #panel,
body.phone-landscape #panel.sheet-half,
body.phone-landscape #panel.sheet-full{
  left:0!important;
  transform:none!important;
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
}
body.phone-landscape #panel .grab{display:none!important}
body.phone-landscape #panel.sheet-peek .sheet-x{display:none!important}
body.phone-landscape #panel.sheet-full .sheet-x,
body.phone-landscape #panel.sheet-half .sheet-x{display:grid!important}
body.phone-landscape #panel.sheet-peek .sheet-body{visibility:hidden!important}
body.phone-landscape #panel.sheet-full .sheet-body,
body.phone-landscape #panel.sheet-half .sheet-body{visibility:visible!important;pointer-events:auto!important}
body.phone-landscape #topbar{z-index:7}
body.phone-landscape .g3-switch{
  top:calc(56px + env(safe-area-inset-top,0px))!important;
  bottom:auto!important;
}
body.phone-landscape #panelToggle{
  display:grid!important;opacity:1!important;pointer-events:auto!important;
  width:36px!important;height:36px!important;
  left:calc(12px + env(safe-area-inset-left,0px));
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
}
body.phone-landscape.panel-open #panelToggle{opacity:0!important;pointer-events:none!important}

/* m148: Sen ISS live player. Motif-1 frame (silver rim + gold glow) sits OUTSIDE the player; nothing overlays the video,
   YouTube logo and channel stay visible. Player at least 200x200 px (YouTube RMF). */
.cam-space-head{display:flex;align-items:center;gap:8px;margin:6px 0 2px}
.cam-space-head .cam-badge.live{position:static;font-size:10px;font-weight:700;letter-spacing:.08em;padding:3px 8px;border-radius:99px;color:#fff;background:#e0313a}
.cam-stage.is-space{min-height:220px;min-width:220px;border:2px solid transparent;border-radius:14px;
  background:linear-gradient(#000,#000) padding-box,linear-gradient(135deg,#f4f6f8,#9aa3ad 35%,#e9edf1 55%,#7d858f 80%,#dfe4ea) border-box;
  box-shadow:0 0 0 1px rgba(227,180,90,.35),0 0 22px rgba(227,180,90,.45),0 0 48px rgba(227,180,90,.18);overflow:hidden;margin:6px 0 4px}
.cam-stage.is-space .cam-connect{background:transparent}
.cam-credit{margin:2px 0 6px;font-size:11px;color:rgba(232,226,210,.8)}
.cam-stage.is-space:has(iframe.cam-yt) .cam-connect{display:none!important} /* m149: nothing over the Sen player */

/* m151: compact header at 440/375 CSS px, 100% and 200% (200% = 220 / 188 CSS px).
   Root cause: .brand had min-width:0 and overflow:visible, so at <~240px the pill
   shrank to a sliver and the logo / wordmark / BETA / LIVE painted under the toolbar.
   The leftover sliver looked like a back-arrow on the left edge.
   Truncation is by ellipsis; nothing may cover another control. */
@media (max-width: 480px) {
  #topbar,
  header#topbar,
  #topbar.folded,
  header#topbar.folded {
    flex-wrap: wrap !important;
    gap: 6px;
    padding: 8px 8px 0;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  #topbar .brand,
  #topbar.folded .brand {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    height: 44px;
    gap: 6px;
    padding: 0 10px 0 8px;
  }
  #topbar .brand .logo {
    flex: 0 0 auto;
    overflow: hidden;
  }
  #topbar .brand .wordmark {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #topbar .brand .live,
  #topbar .brand #owsBeta,
  #topbar .brand .ows-beta {
    flex: 0 0 auto;
  }
  #topbar .tools {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 44px);
    overflow: hidden;
    height: 44px;
    padding: 0 6px 0 2px;
  }
  #topbar #topbarFold,
  #topbar .topbar-fold {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    order: 2;
  }
  /* 200% of iPhone 17 (220x478) is taller than 420px: show the counter grid unless folded.
     200% of 375 (188x334) is too short for a third row — hide counters and the fold
     button so the chevron does not claim they can be opened. */
  #topbar:not(.folded) > #counters {
    display: grid !important;
    flex: 1 1 100%;
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }
}
@media (max-width: 480px) and (max-height: 419px) {
  #topbar > #counters,
  #topbar:not(.folded) > #counters { display: none !important; }
  #topbar #topbarFold, #topbar .topbar-fold { display: none !important; }
}
@media (max-width: 240px) {
  #topbar .tools { gap: 0; padding: 0 4px 0 0; }
  #topbar .tools .ib { width: 28px; height: 28px; }
  #topbar .clock { font-size: 11px; padding-left: 0; }
  #topbar .brand { gap: 4px; padding: 0 8px 0 6px; }
  #topbar .brand .logo { height: 32px; width: 32px; }
}
