*{box-sizing:border-box;margin:0;padding:0}
:root{--rot-h:58px;--hud:#5ec8ff;--hud-ink:#061018;--night:#9E7433;--c-red:#ff4d4d;--c-amber:#ffc83d;--c-green:#4ade80;--c-purple:#b48cff;--purple:#b48cff;--c-blue:#5ec8ff;--c-white:#f2f4f8;--c-dim:#8a93a3;--c-bg:#050a14}
html{font-size:2.4vmin;position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:100%;overflow:hidden;background:#050a14}
body{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:100%;background:#050a14;color:#cfe8f0;font-family:"DejaVu Sans Mono","Noto Color Emoji","Droid Sans Mono",ui-monospace,monospace;overflow:hidden;display:flex;flex-direction:column;font-size:1rem}
.c{color:var(--c-blue)}.dim{color:var(--c-dim)}
.g{background:#2bd96b;color:#2bd96b}.a{background:#ffb020;color:#ffb020}.r{background:#ff3b3b;color:#ff3b3b}
.x{background:#5c6b75;color:#5c6b75;box-shadow:none !important}
#top{height:6.15rem;flex-shrink:0;border-bottom:2px solid #1d6f7f;display:flex;align-items:center;gap:.31rem;padding:0 .38rem 0 .46rem;position:relative;overflow:hidden;background:#07101d}
#top svg.tex{position:absolute;inset:0;width:100%;height:100%;opacity:.13;pointer-events:none}
#top>*{position:relative}
.logo{height:3.54rem;width:auto;border-radius:.35rem;cursor:pointer}
.logo.h-g{filter:drop-shadow(0 0 .28rem #2bd96b) drop-shadow(0 0 .9rem rgba(43,217,107,.55))}
.logo.h-a{filter:drop-shadow(0 0 .28rem #ffb020) drop-shadow(0 0 .9rem rgba(255,176,32,.5))}
.logo.h-r,.logo.h-x{filter:drop-shadow(0 0 .28rem #ff3b3b) drop-shadow(0 0 .9rem rgba(255,59,59,.55))}
@keyframes logopulse{0%,100%{opacity:1}50%{opacity:.55}}
.logo.pulse{animation:logopulse 1.4s ease-in-out 1}
.clock{font-size:3.08rem;font-weight:bold;color:var(--c-blue);letter-spacing:-.08rem;line-height:1;flex:0 0 auto;display:flex;flex-direction:column;justify-content:center}
.phone{display:flex;align-items:center;gap:.28rem;margin-top:.12rem;color:#6d8494;opacity:.72;font-weight:700;letter-spacing:.02rem}
.phone .pico{display:inline-flex;align-items:center;gap:.1rem;height:.78rem;color:inherit}
.phone svg{height:.78rem;width:auto;display:block}
.phone #batPct{font-size:.58rem;line-height:1}
.phone .tone-a{color:#ffb020;opacity:1;background:none}
.phone .tone-r{color:#ff3b3b;opacity:1;background:none}
#wifiI rect.off{opacity:.22}
#batBolt{display:none;fill:currentColor}
#batI.chg #batBolt{display:block}
.dates{line-height:1.14rem;font-size:1rem;padding-left:.31rem;white-space:nowrap;flex:0 0 auto;min-width:0;overflow:hidden}
#dh,#daf,#cd,.zm span:not(.dim):not(.daytype){color:var(--purple)}
#daf{font-size:1rem;line-height:1.14rem}
#daf.off{display:none}
.zm{line-height:1.2rem;display:grid;grid-template-columns:auto auto auto auto;gap:.02rem .4rem;align-content:center;border-left:2px solid #1d6f7f;padding-left:.38rem;white-space:nowrap;flex:0 1 auto;min-width:0;overflow:visible;font-size:.95rem}
.zm .daytype{grid-column:1 / -1;color:#6d8494;letter-spacing:.12rem;font-size:.62rem;line-height:1rem}
.lights{margin-left:auto;flex:1 1 auto;min-width:0;max-height:5.2rem;overflow:hidden;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:.08rem}
.lrow{display:flex;flex-wrap:wrap;gap:.1rem;min-width:0;max-width:100%;justify-content:flex-end}
.lt{display:flex;align-items:center;gap:.12rem;border:1px solid #1d6f7f;padding:.02rem .12rem;background:#06121fdd;height:1.55rem;font-size:.74rem;white-space:nowrap;min-width:0;overflow:hidden;flex:0 1 auto}
.lt>span:not(.dot){min-width:0;overflow:hidden;text-overflow:ellipsis}
.dot{width:.69rem;height:.69rem;border-radius:50%;box-shadow:0 0 .38rem currentColor;flex-shrink:0;margin-left:auto}
.lbl{color:#7f9bab}
.lt .code{font-size:.52rem;letter-spacing:.03rem;color:#5c6b75;font-weight:600}
.lt .code.lv4{color:#8aa0b0}
.lt .code.lv3{color:#c5d0da}
.lt .code.lv2{color:#e7eef4}
.lt .code.lv1{color:#ffffff}
.lt.stale .code{color:var(--c-dim)}
.lt.ok[data-light="grid"]>span:not(.dot),.lt.ok[data-light="aqi"]>span:not(.dot),.lt.ok[data-light="jbsa"]>span:not(.dot){color:var(--c-green)}
.lt:not(.ok)[data-light="heat"]>span:not(.dot),.lt:not(.ok)[data-light="fires"]>span:not(.dot),.lt:not(.ok)[data-light="jbsa"]>span:not(.dot){color:var(--c-amber)}
.lt.warn[data-light="redalert"]>span:not(.dot),.lt.warn[data-light="waffle"]>span:not(.dot),.lt.warn[data-light="israel"]>span:not(.dot){color:var(--c-red)}
#top>.pizza-fact{position:absolute;right:.45rem;bottom:.06rem;left:38%;text-align:right;font-size:.62rem;line-height:1.05rem;color:#b7c6d2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:4;pointer-events:none}
#wx .goes{width:2.4rem;height:1.7rem;object-fit:cover;border-radius:.28rem;border:1px solid #9fb4e888;flex-shrink:0}
.u.storm .tx{color:#ffb020}
#rot{flex:0 0 var(--rot-h);height:var(--rot-h);width:100%;position:relative;z-index:4;overflow:hidden;background:#07101d;border-bottom:1px solid rgba(143,168,184,.28);color:var(--c-white);font-size:24px;line-height:1.15}
.rot-line{position:absolute;left:0;right:0;top:0;height:100%;display:flex;align-items:center;gap:.75rem;padding:0 1.15rem;opacity:0;white-space:normal;overflow:hidden}
.rot-line.on{opacity:1;transition:opacity .45s linear}
.rot-body{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.4rem;overflow:hidden}
.rot-text{flex:1 1 auto;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;word-break:normal;overflow-wrap:normal;font-weight:650;letter-spacing:.01em;color:var(--c-white);line-height:1.15}
.rot-meta{flex:0 0 auto;white-space:nowrap;color:var(--c-dim);font-size:13px;font-weight:500}
#rot.esc{background:#3a1218;color:#ffe8e6;border-bottom:2px solid #ff4d4d;box-shadow:inset 5px 0 0 #e23b3b}
#rot.esc.storms{font-size:20px}
#rot.esc.storms .rot-meta{font-size:15px}
#rot.esc .rot-meta{color:#e7b4b0}
#rot .atag{flex:0 0 auto;font-size:10px;font-weight:700;letter-spacing:.02rem;line-height:1.1;padding:.04rem .24rem;border-radius:.16rem}
#main{flex:1;display:flex;min-height:0;overflow:visible}
#map{width:38.7%;border-right:2px solid #1d6f7f;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.ph{color:var(--c-dim);letter-spacing:.14rem;font-size:.6rem;padding:.12rem .62rem;border-bottom:1px solid #1d6f7f;display:flex;justify-content:space-between;align-items:center;background:#081626;height:1.28rem;white-space:nowrap;flex-shrink:0;min-width:0}
.ph>span:first-child,#bh,#mt{color:var(--c-blue)}
#bh,#bn{min-width:0;overflow:hidden;text-overflow:ellipsis}
#bh{flex:1 1 auto}
#bn{flex:0 1 46%;text-align:right;letter-spacing:0}
#mapbody{position:relative;flex:1;min-height:0;overflow:hidden;display:flex;align-items:stretch;justify-content:stretch}
.stage{position:relative;flex:0 0 auto;align-self:center}
.stage svg{display:block;width:100%;height:100%}
#right{width:61.3%;display:flex;flex-direction:column;min-height:0}
.panel{border-bottom:2px solid #1d6f7f;flex-shrink:0}
#tick{display:none;padding:.31rem .85rem .38rem;min-height:6.6rem;max-height:9.6rem;height:auto;overflow:hidden;flex-shrink:0}
.kick{font-size:1.08rem;letter-spacing:.08rem;display:flex;justify-content:space-between;align-items:center}
.pager{display:inline-flex;gap:.28rem;align-items:center}
.pager i{width:.34rem;height:.34rem;border-radius:50%;background:#3d5566;display:block}
.pager i.on{background:#d5e8f2}
.hl{font-size:1.72rem;font-weight:bold;line-height:1.16;max-height:calc(1.72rem * 1.16 * 3);margin:.08rem 0;color:var(--c-white);overflow:hidden;white-space:normal}
.hl.out{transform:translateY(-.6rem);opacity:0}
body:not(.night) .hl{transition:transform .28s ease,opacity .28s ease}
.st{font-size:1.08rem;color:#9fc3d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b{font-size:inherit;line-height:1.26;height:auto;padding:.16rem .7rem;display:flex;align-items:flex-start;gap:.4rem;white-space:normal;overflow:hidden}
.b .src{flex:0 0 auto;font-size:.72rem;line-height:1.25rem;min-width:1.15rem;text-align:center;color:#8fd9a8}
.b .src.s{color:#e6c27a}
.b .tx{flex:1;min-width:0;white-space:normal;text-align:start;overflow:visible;color:var(--c-white)}
/* Locked to the quiet column. The urgent bar shortens the updates area and does not move this box. */
/* The ticker reserves three lines. The briefing keeps the height it had when that strip was one line, so eight sitrep rows still fit. */
#briefWrap{flex:0 0 calc((100dvh - 6.15rem - 52px) / 2 - 72px);height:calc((100dvh - 6.15rem - 52px) / 2 - 72px);max-height:calc((100dvh - 6.15rem - 52px) / 2 - 72px);min-height:0;overflow:hidden;display:flex;flex-direction:column}
#brief{overflow:hidden;min-height:0;flex:1 1 auto;font-size:1.08rem}
#mid{display:none;height:0;flex-shrink:0;overflow:hidden}
#right.attn #mid{display:flex;height:7.69rem}
#tl{flex:1;display:flex;flex-direction:column;border-right:2px solid #1d6f7f;min-width:0}
#mid.threat-only #tl{border-right:0}
#mid.ready-only #tl{display:none}
.bars{display:flex;align-items:flex-end;gap:.31rem;flex:1;padding:.15rem .54rem .23rem;min-height:0}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.bar b{font-weight:normal;line-height:1.08rem}
.bar i{display:block;width:100%;background:#1d8fa3;border-top:3px solid #3fd6e8}
#rd{width:18rem;display:flex;flex-direction:column;min-width:0}
#mid.threat-only #rd{display:none}
#mid.ready-only #rd{width:auto;flex:1}
#tr{overflow:hidden;text-overflow:ellipsis;max-width:68%}
.rr{display:flex;justify-content:space-between;gap:.46rem;padding:.15rem .62rem;line-height:1.38rem;white-space:nowrap;overflow:hidden}
.rr .tx{overflow:hidden;text-overflow:ellipsis}
.rr .age{flex-shrink:0;color:#7f9bab}
#life{padding:.02rem .85rem;line-height:1.32rem;height:1.4rem;overflow:hidden;white-space:nowrap;flex-shrink:0}
#life.off{display:none;height:0;padding:0;border:0}
#life .c{margin-right:.23rem}
#bot{display:flex;flex:1 1 0;min-height:0;position:relative}
#upd{flex:1;overflow:hidden;position:relative;min-width:0;display:flex;flex-direction:column}
#xrot{position:absolute;right:.62rem;bottom:.08rem;z-index:3;font-size:.6rem;letter-spacing:.08rem;line-height:1.1rem;pointer-events:none}
#xrot:empty{display:none}
#upd:has(#xrot:not(:empty)) #ul{padding-bottom:1.15rem}
#ul{overflow:hidden;min-height:0}
#ul{font-size:.98rem}
.u{display:block;padding:.1rem .85rem .12rem;line-height:1.22;font-size:inherit;white-space:normal;overflow:hidden}
.u+.u{margin-top:6px}
.u .who{display:flex;gap:.46rem;align-items:baseline}
.u .hd{display:flex;gap:.4rem;align-items:baseline}
.u b{color:var(--c-white);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u .hd .cnt{flex:0 0 auto;color:#7f9bab;font-weight:600}
.u .author{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8aa4b3;font-weight:600}
.u .tx{display:block;white-space:normal;text-align:start;overflow:visible;color:var(--c-white)}
.u.line{padding-top:.02rem;padding-bottom:.02rem}
.u.line .tx{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Worker page (news_lines setting): updates rows wrap whole, no ellipsis. A row past the line count is left off by hud.js. */
body.news-wrap .u.line .tx{white-space:normal;overflow:visible;text-overflow:clip}
.u.line .tx b{display:inline;overflow:visible;text-overflow:clip;color:#8aa4b3;margin-right:.3rem;font-weight:700}
.u.alert .tx{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.4rem;align-items:start}
.u.alert .badges{display:flex;flex-wrap:wrap;gap:.2rem;align-items:center}
.u.alert .abody{min-width:0}
.u.alert .atag,#rot .atag{display:inline-block;vertical-align:baseline;font-size:.54rem;font-weight:700;letter-spacing:.02rem;line-height:.9rem;padding:0 .22rem;border-radius:.16rem}
.chip-alert,.u.alert .chip-alert,#rot .chip-alert{color:var(--c-red);background:rgba(255,77,77,.16)}
.chip-flash,.u.alert .chip-flash,#rot .chip-flash{color:var(--c-red);background:rgba(255,77,77,.22);text-shadow:0 0 8px var(--c-red)}
.chip-urgent,.u.alert .chip-urgent,#rot .chip-urgent{color:var(--c-amber);background:rgba(255,200,61,.16)}
.chip-live{color:var(--c-green);background:rgba(74,222,128,.16)}
.u .age{flex-shrink:0;margin-left:auto;color:var(--c-dim)}
#fcard{display:none;position:absolute;right:.35rem;top:calc(1.28rem + .16rem);width:max-content;max-width:calc(100% - .7rem);z-index:5;pointer-events:none;background:rgba(6,16,24,.55);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(94,200,255,.72);border-radius:0;box-shadow:0 0 12px rgba(94,200,255,.35);color:var(--c-white);padding:.5rem .28rem .42rem .55rem;font-family:"DejaVu Sans","Noto Sans",sans-serif;text-shadow:none}
#fcard .br{position:absolute;width:12px;height:12px;border:1.5px solid var(--c-blue);pointer-events:none}
#fcard .br.tl{top:4px;left:4px;border-right:0;border-bottom:0}
#fcard .br.tr{top:4px;right:4px;border-left:0;border-bottom:0}
#fcard .br.bl{bottom:4px;left:4px;border-right:0;border-top:0}
#fcard .br.brb{bottom:4px;right:4px;border-left:0;border-top:0}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #fcard{background:rgba(6,16,24,.78);-webkit-backdrop-filter:none;backdrop-filter:none}
}
html.no-blur #fcard{background:rgba(6,16,24,.78);-webkit-backdrop-filter:none;backdrop-filter:none}
#fcard.on{display:block}
#fcard .frow{display:flex;gap:12px;align-items:center}
#fcard .fcopy{min-width:0;flex:1 1 auto}
#fcard .fmark{position:relative;flex:0 0 72px;width:72px;height:72px;display:flex;align-items:center;justify-content:center;border:0;overflow:hidden}
#fcard .fmark img{width:100%;height:100%;object-fit:contain;display:block}
#fcard .fmark span{display:none;font-size:27px;font-weight:700;letter-spacing:.04rem;line-height:1}
#fcard .fmark.fallback{box-shadow:inset 0 0 0 1px currentColor}
#fcard .fmark.fallback span{display:flex}
#fcard .fid{font-size:13px;letter-spacing:.06rem;line-height:1.3;text-transform:uppercase;opacity:.72;color:var(--c-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:"DejaVu Sans","Noto Sans",sans-serif}
#fcard .fcities{display:flex;align-items:flex-start;justify-content:flex-end;gap:4px;margin-top:.18rem;width:100%}
#fcard .fcity{flex:0 1 auto;min-width:0}
#fcard .fcity.dest{text-align:right}
#fcard .fbig{font-size:40px;font-weight:700;letter-spacing:0;line-height:1;text-transform:uppercase;white-space:nowrap}
#fcard .farrow{flex:0 0 auto;font-size:18px;font-weight:700;line-height:1;color:var(--c-blue);opacity:1}
#fcard .fnum{font-family:"DejaVu Sans Mono",ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--c-blue)}
#fcard .fapt{font-size:16px;line-height:1.25;opacity:.72;margin-top:.21rem;white-space:nowrap}
#fcard .fmeta{display:flex;align-items:center;gap:.6rem;margin-top:.42rem;font-size:18px;letter-spacing:.03rem;line-height:1.2;color:var(--c-white);font-family:"DejaVu Sans","Noto Sans",sans-serif}
#fcard .fhdg{display:inline-flex;width:21px;height:21px;flex:0 0 auto;opacity:1}
#fcard .fhdg svg{width:21px;height:21px;display:block}
#fcard .fmotion{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fcard .freg{margin-left:auto;font-size:16px;letter-spacing:.05rem;opacity:.72;text-transform:uppercase;flex:0 0 auto}
#fcard.local{left:.16rem;right:auto;top:calc(1.28rem + .1rem);padding:.16rem .32rem .14rem .36rem;width:max-content;max-width:220px}
#fcard.local .br{width:6px;height:6px}
#fcard.local .frow{gap:0}
#fcard.local .fid{display:flex;align-items:center;gap:.28rem;font-size:var(--craft-label, 11px);line-height:1.15;letter-spacing:.03rem}
#fcard.local .ltag{flex:0 0 auto;font-size:var(--craft-label, 11px);font-weight:700;letter-spacing:.03rem;line-height:1;text-transform:uppercase;color:var(--c-white);opacity:1}
#fcard.local .froute{margin-top:.04rem;font-size:var(--craft-label, 11px);line-height:1.15;letter-spacing:.02rem;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fcard.local .fmeta{margin-top:.04rem;font-size:var(--craft-label, 11px);line-height:1.1;gap:.28rem;letter-spacing:.02rem}
#fcard.local .fmotion{overflow:hidden;text-overflow:ellipsis}
#fcard.local .freg{font-size:var(--craft-label, 11px)}
#fcard.local .fhdg,#fcard.local .fhdg svg{width:var(--craft-label, 11px);height:var(--craft-label, 11px)}
#tv{position:absolute;right:.4rem;bottom:5.45rem;width:320px;height:180px;display:none;background:#000;z-index:6;overflow:hidden;border:1px solid rgba(94,200,255,.45)}
#tv.on{display:block}
#tvSide{display:none}
#tvName{position:absolute;left:.35rem;top:.28rem;z-index:2;color:var(--c-green);font-size:11px;font-weight:650;letter-spacing:.04rem;text-shadow:0 1px 2px #000}
#tvFit{position:absolute;inset:0}
#tv.pair{width:640px;display:flex}
#tv.pair #tvFit,#tv.pair #tvFitB{position:relative;flex:1 1 0;width:50%;height:100%;inset:auto}
#tvFitB{display:none;position:relative;background:#000}
#tv.pair #tvFitB{display:block}
#tvCh{display:none}
.chlab{position:absolute;left:.2rem;bottom:.12rem;z-index:2;color:#c5d4e0;opacity:.72;font-size:10px;line-height:1.1;pointer-events:none;text-shadow:0 1px 2px #000}
#tvBoxB{width:100%;height:100%;position:relative;background:#000}
#tvBox{width:100%;height:100%;position:relative;background:#000}
#tv .scr{position:absolute;inset:0;background:#061018;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.28rem;text-align:center;padding:.4rem .5rem;color:var(--hud);font-size:16px}
#tv .tv-ph-name{font-size:16px;font-weight:700;letter-spacing:.08rem;line-height:1.2;color:var(--hud)}
#tv .tv-ph-line{font-size:13px;line-height:1.25;font-weight:600;color:#d7e4ee;white-space:normal}
#tv video{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
#tv video::-webkit-media-text-track-container{display:none !important}
#tv video::cue{opacity:0;font-size:0}
#tvCap{display:none;position:absolute;left:0;right:0;bottom:0;z-index:2;color:#f4fbff;font-size:12px;line-height:1.25;font-weight:500;padding:.15rem .4rem;background:rgba(0,0,0,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tvCap.on{display:block}
@media (max-height:520px){
  :root{--rot-h:30px}
  :root{--rot-h:56px}
  #rot{font-size:16px}
  .rot-meta{font-size:11px}
  #rot .atag{font-size:9px}
  #tv{width:224px;height:126px;bottom:4.6rem}
  #tv.pair{width:448px}
}
#map.forecast #wx,#map.fallback #wx{display:none}
#urg{height:0;flex-shrink:0;display:none;align-items:center;justify-content:center;font-size:1.15rem;font-weight:bold;background:#9d1c1c;color:#fff;border-top:3px solid #ffb020;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 .92rem}
#urg.on{height:2.15rem;display:flex}
#healthBanner{position:fixed;left:0;right:0;bottom:0;z-index:40;height:1.4rem;background:#3a1218;color:#ffe8e6;font-size:.74rem;line-height:1.4rem;text-align:center;padding:0 .6rem;overflow:hidden;white-space:nowrap}
#healthBanner[hidden]{display:none}
/* Chaplain 2026-11-15 01:11 CT: warnings feed overdue (warn_dot_min, default 45). One small dim dot, no text, night amber day and night. */
#warnDot{position:fixed;right:5px;bottom:5px;z-index:45;width:6px;height:6px;border-radius:50%;background:#9E7433;background:var(--night,#9E7433);opacity:.45;pointer-events:none}
#warnDot[hidden]{display:none}
#urg.q{height:1.77rem;display:flex;background:#1a1408;color:#ffd27a;font-size:1rem;font-weight:normal;border-top:2px solid #1d6f7f}
#mock{position:absolute;left:.46rem;bottom:.35rem;background:#050a14cc;padding:0 .31rem;color:#ff6b6b;z-index:9;pointer-events:none}
.chip{position:absolute;background:#081626ee;border:1px solid #1d6f7f;padding:.08rem .38rem;white-space:nowrap;z-index:6}
.card{position:absolute;left:1.2%;right:1.2%;top:.6rem;bottom:.6rem;background:rgba(14,30,58,.9);border:1px solid #3fd6e888;padding:.85rem 1.08rem;z-index:7;overflow:hidden}
.ml{position:absolute;background:#0a0f1ccc;border-left:4px solid #ff3b3b;padding:.08rem .38rem;line-height:1.23rem;white-space:nowrap;z-index:6;max-width:13rem;overflow:hidden}
.sbox{position:absolute;left:1.2%;bottom:1.2%;width:calc(100% - 268px);background:rgba(10,18,32,.92);border:1px solid #ff3b3b88;z-index:7;font-size:14px}
#mapbody:has(#mock) .sbox{bottom:2.15rem}
.sbox div{padding:.2rem .5rem;line-height:1.35;border-bottom:1px solid #1d6f7f;white-space:normal;overflow:hidden}
#wx{height:4.54rem;max-height:4.54rem;flex-shrink:0;margin:.31rem .38rem .38rem;background:rgba(7,16,29,.72);border:0;border-bottom:1px solid rgba(143,168,184,.28);border-radius:0;font-family:"DejaVu Sans",sans-serif;color:#f2f6ff;padding:.08rem .4rem;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
#wx .r1,#wx .r2{display:flex;align-items:center;justify-content:flex-start;gap:.22rem;font-size:.78rem;white-space:nowrap;min-height:0;overflow:hidden}
#wx .r1{height:2.05rem}#wx .r2{font-size:.74rem;border-top:1px solid #ffffff22;height:1.7rem}
#wx .m{color:#c8d2ee;font-weight:normal}
#wx .hs{display:flex;align-items:center;gap:.1rem;flex:0 0 auto;min-width:max-content}
#wx .hs[data-keep]{flex:0 0 auto}
#wx .r1 .hs:not([data-keep]){flex:0 1 auto;min-width:0;overflow:hidden}
#wx .cond{min-width:0;overflow:hidden;text-overflow:ellipsis}
#wx b{font-size:.86rem}
/* Day picture is a dark JOC plate: low saturation, about a third of full scale, navy tint. Quiet hours replace it with black; see the night block. */
#mapbody [data-mark="imagery"]{filter:saturate(.28) brightness(.54) contrast(.98)}
#mapbody [data-mark="wash-paper"]{fill:#121c2c}
#mapbody [data-mark="wash-veil"]{fill:#0e1a2c;fill-opacity:.34}
#mapbody [data-mark="refer"]{filter:saturate(.4) brightness(.72)}
@keyframes evglow {
  0%, 100% { opacity: .7; filter: drop-shadow(0 0 0 transparent); }
  50% { opacity: 1; filter: drop-shadow(0 0 3px var(--glow)) drop-shadow(0 0 12px var(--glow)); }
}
#mapbody g.evpulse .evicon { animation: evglow 2s ease-in-out infinite; }
#mapbody > svg{position:absolute;inset:0;display:block;width:100%;height:100%}
#mapbody svg.dimsky{opacity:.35}
@keyframes flagwave {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-7deg) scaleY(.97); }
}
#mapbody .flagcloth { transform-box: fill-box; transform-origin: 0% 50%; animation: flagwave 2.8s ease-in-out infinite; }
#menu{position:fixed;z-index:30;left:.46rem;top:6.45rem;width:26rem;max-height:calc(100vh - 7.2rem);overflow:auto;background:#07101df2;border:1px solid #1d6f7f;color:#d5e6ef;padding:.55rem .75rem .7rem;font-size:.92rem;line-height:1.35rem}
#menu[hidden]{display:none}
#menu .menu-nav{display:flex;gap:.35rem;margin-bottom:.45rem}
#menu button{background:#0c1c2c;color:#d5e6ef;border:1px solid #1d6f7f;padding:.2rem .45rem;font:inherit;cursor:pointer}
#menu button.on{border-color:#9eb8c8;color:#f2fbff}
#menu label{display:flex;gap:.4rem;align-items:center;margin:.28rem 0}
#menu input{flex:1;min-width:0;background:#050a14;color:#f2fbff;border:1px solid #1d6f7f;font:inherit;padding:.12rem .3rem}
#menu input[type=checkbox]{flex:0 0 auto;width:1rem;height:1rem}
body.tv-hide #tv{display:none}
body.night{opacity:var(--night-dim,1)}
#menu p{color:#8aa0b0;margin:.35rem 0}
#healthBat.tone-a,#healthWifi.tone-a{color:#ffb020;background:none}
#healthBat.tone-r,#healthWifi.tone-r{color:#ff3b3b;background:none}
#menu a{color:#c5dce8}
#menu ul{list-style:none;margin:.2rem 0;padding:0}
#menu li{display:flex;justify-content:space-between;gap:.6rem;padding:.08rem 0}
/* One HUD hue for map symbology. Line 2 is dimmer; the sky names are the lowest tier. */
#mapbody g.ac path { fill: var(--hud); fill-opacity: 0.92; }
#mapbody g.ac { stroke: var(--hud-ink); }
#mapbody text.sl[data-kind="craft"] { fill: var(--hud); fill-opacity: 1; stroke: var(--hud-ink); stroke-width: 1.8px; }
#mapbody text.sl[data-kind="craft"] tspan + tspan { fill-opacity: 0.78; }
#mapbody text.sl[data-kind="event"] { stroke: var(--hud-ink); stroke-width: 1.8px; }
#mapbody text.sl[data-kind="event"] tspan + tspan { fill-opacity: 0.78; }
#mapbody [data-leader][data-alert="1"] { stroke: #ff3b3b; stroke-opacity: 0.7; }
#mapbody text.skyname { fill: var(--hud); fill-opacity: 0.4; stroke: none; }
#mapbody text.sl[data-kind="place"] { fill: var(--hud); fill-opacity: 1; stroke: var(--hud-ink); stroke-width: 1.8px; }
#mapbody [data-mark="north"] { fill: var(--hud); fill-opacity: 0.32; }
#mapbody [data-mark="range"] { stroke: var(--hud); stroke-opacity: 0.28; }
#mapbody text.fixed[data-soft="1"] { fill: var(--hud); fill-opacity: 0.55; stroke: var(--hud-ink); stroke-width: 1.4px; }
#mapbody [data-mark="iss-spark"] path { fill: var(--hud); fill-opacity: 0.4; }
#mapbody [data-leader] { stroke: var(--hud); stroke-opacity: 0.45; }
/* Quiet hours. --night is #9E7433: sRGB relative luminance 0.200, 5.00:1 on #000.
   The page is black. Text and map marks use that one amber. A real alert removes .night. */
html.night{background:#000;background:var(--night-bg,#000)}
body.night{
  --hud:var(--night);
  --hud-ink:var(--night-bg,#000);
  background:var(--night-bg,#000);
  color:var(--night);
  filter:none;
}
body.night,body.night *{
  color:var(--night) !important;
  border-color:rgba(158,116,51,.42) !important;
  border-color:color-mix(in srgb,var(--night) 42%,transparent) !important;
  box-shadow:none !important;
  text-shadow:none !important;
}
body.night #top,body.night #rot,body.night #rot.esc,body.night .ph,body.night .lt,body.night #wx,body.night #fcard,
body.night #brief,body.night #briefWrap,body.night #upd,body.night #ul,body.night #map,body.night #mapbody,
body.night #right,body.night #main,body.night #bot,body.night #tick,body.night #menu,body.night .chip,
body.night .card,body.night .ml,body.night .sbox,body.night #mock,body.night #urg,body.night #urg.on,body.night #urg.q,
body.night #life,body.night .panel,body.night #tv .scr{
  background:var(--night-bg,#000);
  background-color:var(--night-bg,#000);
  filter:none;
}
body.night .dot,body.night .g,body.night .a,body.night .r,body.night .x{background:var(--night);color:var(--night);box-shadow:none}
body.night .logo,body.night .logo.h-g,body.night .logo.h-a,body.night .logo.h-r,body.night .logo.h-x{filter:none;opacity:.5}
body.night .glyph,body.night .emo{display:inline-block;filter:grayscale(1) sepia(1) saturate(.4) brightness(.36)}
body.night #top svg.tex{opacity:.1}
body.night #top svg.tex *{stroke:var(--night);fill:var(--night)}
body.night #rot .atag,body.night .u.alert .atag{background:var(--night-bg,#000);color:var(--night);box-shadow:inset 0 0 0 1px var(--night)}
body.night .pager i,body.night .pager i.on{background:var(--night)}
body.night .bar i{background:var(--night);border-top-color:var(--night)}
body.night #fcard{border-top-color:var(--night);-webkit-backdrop-filter:none;backdrop-filter:none}
body.night #wx .goes,body.night #mapbody [data-mark="imagery"]{filter:saturate(0) brightness(.05)}
body.night #mapbody [data-mark="wash-paper"]{fill:var(--night-bg,#000)}
body.night #mapbody [data-mark="wash-veil"]{fill:var(--night-bg,#000);fill-opacity:.88}
body.night #mapbody [data-mark="refer"]{opacity:.25;filter:saturate(0) brightness(.15)}
body.night #mapbody stop{stop-color:var(--night-bg,#000)}
body.night #mapbody [data-mark="moon"] [filter]{display:none}
body.night #mapbody [data-mark="star"],
body.night #mapbody [data-mark="moon"] *,
body.night #mapbody [data-mark="moon-halo"],
body.night #mapbody [data-mark="meteors"],
body.night #mapbody circle.obs,
body.night #mapbody line,
body.night #mapbody text,
body.night #mapbody text.sl[data-kind="event"],
body.night #mapbody [data-leader],
body.night #mapbody [data-leader][data-alert="1"]{fill:var(--night);stroke:var(--night)}
body.night #mapbody g.evpulse .evicon{animation:none;opacity:1;filter:none}
body.night #mapbody .evicon path{fill:var(--night);stroke:var(--night)}
body.night #mapbody .flagcloth{animation-duration:4.4s}
body.night #mapbody [data-mark="moon"][data-night="1"],
body.night #mapbody [data-mark="moon"][data-night="1"] *{fill:none;stroke:var(--night);stroke-opacity:.4;opacity:1}
