/* The HUD frame on My HQ (t-p19-54g2u1, plan plan-my-hq-game-hud-and-symbiosis-o-yf5w). Design:
   https://claude.ai/artifact/X3GA6PVDtSjPuGyXNiFQgt. Drawn by views/_hud.js inside the cockpit; HQ colours, Chakra Petch for
   labels and JetBrains Mono for numbers. body.hud-page is set while the cockpit (not My settings) is on screen. */
.hud-top,.hud-bottom{--hud-line:#1C3348;--hud-panel:rgba(11,19,29,.94);--hud-cyan:#4DE3F5;--hud-gold:#F0A500;--hud-red:#E0485A;--hud-violet:#C084FC;--hud-green:#4ADE80;--hud-muted:#8EA0B8;
  font-family:'Chakra Petch',var(--font);display:none}
/* The columns, areas and sizes come from hudLayoutModel.js through the --hud-* variables on <body> (views/_hudFit.js): this file holds
   no breakpoint for the frame. The fallbacks are the standard layout, for the instant before the first measure. */
body.hud-page .hud-top{display:grid;grid-template-columns:var(--hud-top-cols,minmax(300px,380px) minmax(0,1fr) minmax(300px,380px));grid-template-areas:var(--hud-top-areas,"plate cmd map" "plate comms map" "plate strip map");gap:var(--hud-gap,12px);margin-bottom:var(--hud-gap,12px)}
body.hud-page .hud-bottom{display:grid;grid-template-columns:var(--hud-bottom-cols,minmax(240px,340px) minmax(0,1fr) minmax(290px,340px));grid-template-areas:var(--hud-bottom-areas,"log feed");gap:var(--hud-gap,12px);margin-top:var(--hud-gap,12px);align-items:stretch}
.hud-top,.hud-bottom{zoom:var(--hud-scale,1)}
.hud-mid{display:contents}
.hud-cmd{grid-area:cmd}.hud-plate{grid-area:plate}.hud-quest{grid-area:quest}.hud-comms{grid-area:comms}.hud-minimap{grid-area:map}
.hud-logbox{grid-area:log}.hud-feed{grid-area:feed}
.hud-top kbd,.hud-bottom kbd{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;font-weight:600;color:#9FB2C8;border:1px solid #2A4560;background:#0A1622;border-radius:3px;padding:0 5px;line-height:17px}
.hud-pnl{position:relative;background:var(--hud-panel);border:1px solid var(--hud-line);padding:var(--hud-pad,12px) 14px;min-width:0}
.hud-pnl::before,.hud-pnl::after{content:"";position:absolute;width:14px;height:14px;pointer-events:none}
.hud-pnl::before{top:-1px;left:-1px;border-top:2px solid var(--accent);border-left:2px solid var(--accent)}
.hud-pnl::after{bottom:-1px;right:-1px;border-bottom:2px solid var(--accent);border-right:2px solid var(--accent)}
.hud-k{font-size:12px;font-weight:700;letter-spacing:2.2px;text-transform:uppercase;color:var(--hud-cyan)}
.hud-n,.hud-plate b,.hud-legend b,.hud-t{font-family:'JetBrains Mono',ui-monospace,monospace}
.hud-ph{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.hud-ic{display:block;flex:none}
.hud-bar{position:relative;height:10px;background:#0F1E2E;border:1px solid var(--hud-line);overflow:hidden}
.hud-bar.thin{height:7px}
.hud-bar::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 10px,rgba(5,9,14,.9) 10px 12px)}
.hud-fill{position:absolute;left:0;top:0;bottom:0;transition:width .4s ease-out}
.hud-fill.xp{background:var(--accent)}
.hud-link{background:none;border:0;color:var(--hud-muted);font:inherit;font-size:12px;cursor:pointer;padding:0}
.hud-link:hover{color:var(--hud-cyan)}

/* the character plate */
.hud-plate{display:flex;gap:16px;align-items:center}
.hud-avatar{position:relative;width:var(--hud-avatar,104px);height:var(--hud-avatar,104px);flex:none;background:none;border:0;padding:0;cursor:pointer;color:var(--text)}
.hud-avatar svg{position:absolute;inset:0;width:100%;height:100%}
.hud-ring-bg{fill:#0A1724;stroke:#132A3D;stroke-width:6}
.hud-ring{fill:none;stroke:var(--accent);stroke-width:6;transition:stroke-dasharray .4s ease-out}
.hud-ini{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:'Righteous',var(--font);font-size:calc(var(--hud-avatar,104px) * .29)}
.hud-lv{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);background:var(--accent);color:#04151B;font-weight:700;font-size:12px;letter-spacing:1px;padding:0 9px;white-space:nowrap}
.hud-avatar:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hud-stats{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.hud-name{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.hud-name b{font-family:'Righteous',var(--font);font-size:21px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-brand{font-family:'Righteous',var(--font);font-size:11px;letter-spacing:1.4px;color:var(--accent)}.hud-brand span{color:var(--text)}
.hud-ml{display:flex;justify-content:space-between;font-size:12px;margin-bottom:3px}
.hud-ml .hud-n{color:var(--hud-muted)}
.hud-cur{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--hud-muted)}
.hud-cur b{font-size:14px}
.hud-cur .gold b{color:var(--hud-gold)}.hud-cur .sparks b{color:var(--hud-violet)}.hud-cur .streak b{color:#FF8A3D}
.hud-cur .spark-tier-badge{font-size:11px}
.hud-hp:empty{display:none}
.hud-plate .hp-hud{display:flex;flex-wrap:wrap;border:0;border-radius:0;padding:0;gap:10px;font-size:12px}
.hud-plate .hp-hud[hidden]{display:none}
.hud-plate .hp-hud-bar{width:72px;height:8px}

/* the mode switch, Ctrl K and the active quest */
/* .hud-mid only groups the mode switch, the quest and Comms: its children sit in the top grid's areas (see the grid rules above) */
.hud-cmd{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hud-modes{display:inline-flex;border:1px solid #2A4560;background:#0A1420}
.hud-modes .btn{border:0;border-radius:0;border-left:1px solid var(--hud-line);padding:8px 14px;font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#9FB2C8;background:transparent;font-family:inherit}
.hud-modes .btn:first-child{border-left:0}
.hud-modes .btn.on{background:var(--accent);color:#04151B;font-weight:700}
.hud-modes .btn:focus-visible{outline:2px solid var(--hud-cyan);outline-offset:-2px}
.hud-search{flex:1;min-width:220px;display:flex;align-items:center;gap:10px;height:38px;padding:0 12px;border:1px solid #2A4560;background:#0A1420;color:var(--hud-muted);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.hud-search span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-search .hud-ic{color:var(--hud-cyan)}
.hud-search:hover,.hud-search:focus-visible{border-color:var(--accent);outline:none}
.hud-quest{flex:1;display:flex;align-items:center;gap:16px;border-color:#4A3A12;background:rgba(24,20,10,.92)}
.hud-quest::before{border-color:var(--hud-gold)}.hud-quest::after{border-color:var(--hud-gold)}
.hud-q-mark{width:44px;height:44px;flex:none;border:2px solid var(--hud-gold);transform:rotate(45deg);display:flex;align-items:center;justify-content:center}
.hud-q-mark span{transform:rotate(-45deg);font-family:'Righteous',var(--font);font-size:22px;color:var(--hud-gold)}
.hud-q-body{flex:1;min-width:0}
.hud-q-top{display:flex;gap:10px;align-items:baseline;font-size:12px;min-width:0}
.hud-q-top .hud-k{color:var(--hud-gold)}
.hud-q-top .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-q-title{display:block;font-size:17px;font-weight:600;color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0}
.hud-q-title:hover{color:var(--hud-gold)}
.hud-q-meta{display:flex;gap:12px;font-size:12px;min-width:0}
.hud-q-meta .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-reward{font-family:'JetBrains Mono',ui-monospace,monospace;color:var(--hud-gold);white-space:nowrap}
.hud-btn{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;letter-spacing:.6px;color:var(--text);background:#0F2030;border:1px solid #2A4560;padding:6px 12px;text-decoration:none;white-space:nowrap}
.hud-btn-q{border-color:var(--hud-gold);color:var(--hud-gold)}
.hud-btn:hover{background:#13283A}
.hud-q-empty{display:flex;flex-direction:column;gap:4px;font-size:13px}

/* the pipeline minimap */
.hud-alert{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--hud-gold);background:rgba(240,165,0,.1);color:var(--hud-gold);font:inherit;font-size:12px;font-weight:700;padding:1px 8px;cursor:pointer}
.hud-map{display:flex;gap:12px;align-items:center}
.hud-radar{flex:none;width:var(--hud-radar,120px);height:auto}
.hud-rad-bg{fill:#071019;stroke:var(--hud-line)}
.hud-rad-ring{fill:none;stroke:#16293B}
.hud-sweep{fill:rgba(0,188,212,.16);transform-origin:60px 60px;animation:hud-sweep 6s linear infinite}
@keyframes hud-sweep{to{transform:rotate(360deg)}}
.hud-dot{fill:var(--hud-cyan)}.hud-dot.good{fill:var(--hud-green)}.hud-dot.waiting{fill:var(--hud-gold)}
.hud-dot.stuck,.hud-dot.building{fill:var(--hud-red)}.hud-dot.you{fill:var(--text)}
.hud-ping{fill:none;stroke:var(--hud-red);stroke-width:1.5}
.hud-legend{list-style:none;margin:0;padding:0;flex:1;min-width:0;font-size:12px;line-height:1.45}
.hud-legend li{display:flex;justify-content:space-between;gap:8px}
.hud-legend a{color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-legend a:hover{color:var(--hud-cyan)}
.hud-legend .stuck a,.hud-legend .stuck b,.hud-legend .building a,.hud-legend .building b{color:#FF6B7A}
.hud-legend .waiting a,.hud-legend .waiting b{color:var(--hud-gold)}
.hud-legend .good a,.hud-legend .good b{color:var(--hud-green)}

/* the bottom: log, action bar, menus */
.hud-logbox{background:rgba(6,11,17,.92);align-self:stretch}
.hud-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.4}
.hud-log li{display:flex;gap:8px;min-width:0}
.hud-log li span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-log .hud-t{flex:none;min-width:62px;white-space:nowrap;color:#56677D}
.hud-log .mine span:last-child{color:var(--hud-gold)}

/* the header and the cockpit around the HUD: the HUD carries level, points, HP and actions, so the header keeps only the
   logo, the wheel and Jump-to-anything buttons and the avatar; the old action-bar frame is the action bar now */
body.hud-page #hud,body.hud-page .header-links{display:none!important}
body.hud-page .cockpit [data-frame="actions"]{display:none}
body.hud-page .cockpit-bar{min-height:0;margin:0 0 6px}

@media (max-width:700px){
  .hud-plate{gap:12px}
  .hud-quest{flex-wrap:wrap}
  .hud-search span{display:none}.hud-search{min-width:0;flex:0 0 auto}
}
@media (prefers-reduced-motion:reduce){.hud-sweep{animation:none}.hud-fill,.hud-ring{transition:none}}

/* HUD 3 (t-p19-ypfok0): the cockpit frames as HUD panels. Quest log, goals as bosses, Today, Loadout. */
body.hud-page .cockpit-frame{background:rgba(11,19,29,.94);border:1px solid #1C3348;border-radius:0;font-family:'Chakra Petch',var(--font);padding:12px 14px}
body.hud-page .cockpit-frame::before,body.hud-page .cockpit-frame::after{content:"";position:absolute;width:14px;height:14px;pointer-events:none}
body.hud-page .cockpit-frame::before{top:-1px;left:-1px;border-top:2px solid var(--accent);border-left:2px solid var(--accent)}
body.hud-page .cockpit-frame::after{bottom:-1px;right:-1px;border-bottom:2px solid var(--accent);border-right:2px solid var(--accent)}
body.hud-page .cockpit-fh h2{font-size:12px;letter-spacing:2.2px;color:#4DE3F5}
body.hud-page .cockpit kbd{font:600 11px/17px 'JetBrains Mono',ui-monospace,monospace;color:#9FB2C8;border:1px solid #2A4560;background:#0A1622;border-radius:3px;padding:0 5px}
body.hud-page .cockpit-quest{border:1px solid #1C3348;border-radius:0;background:rgba(8,15,23,.7)}
body.hud-page .cockpit-quest.sel{outline:none;border-color:var(--accent);background:rgba(0,188,212,.07)}
body.hud-page .cockpit-quest .badge{border-radius:0;background:transparent;border:1px solid currentColor;letter-spacing:1.4px}
body.hud-page .cockpit-reward{font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:600}
body.hud-page .cockpit-chips{display:flex;gap:6px}
body.hud-page .cockpit-chips .fbtn{flex:1;border-radius:0;letter-spacing:1px;padding:5px 6px}
body.hud-page .cockpit-list{max-height:none;overflow:visible}
body.hud-page [data-frame="queue"] .cockpit-fb{overflow-y:auto;max-height:560px}
/* goals: the raid boss and the boss bars */
.hud-boss{gap:6px}
.hud-boss-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.hud-boss-k{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#FF6B7A}
.hud-boss-t{display:block;font-family:'Righteous',var(--font);font-size:20px;font-weight:400;line-height:1.2}
.hud-boss-hp{text-align:right;white-space:nowrap}
.hud-boss-hp b{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:26px;color:#FF6B7A;line-height:1}
.hud-boss-hp span{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:13px;color:#8EA0B8}
body.hud-page .hud-boss-bar{position:relative;height:20px;border-radius:0;background:#1A0E12;border:1px solid #5A1F28}
body.hud-page .hud-boss-bar .cockpit-health-fill{border-radius:0;background:#C2283D}
.hud-boss-bar::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 46px,rgba(5,9,14,.9) 46px 48px)}
.hud-boss-dmg{position:absolute;top:0;bottom:0;background:#FFD0D6}
.hud-boss-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hud-boss-last{color:#FFD0D6}
.hud-boss-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.hud-boss-phases>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
.hud-boss-pl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-boss-pb{grid-column:1/-1;height:5px;background:#0F1E2E;border:1px solid #1C3348;position:relative}
.hud-boss-pb span{position:absolute;left:0;top:0;bottom:0;background:var(--accent)}
.hud-bosses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;border-top:1px solid #15263A;padding-top:10px;margin-top:4px}
.hud-mini{flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:0!important}
.hud-mini-row{display:flex;justify-content:space-between;gap:8px}
.hud-mini-row .cockpit-goal-t{flex:1}
.hud-mini-n{font-family:'JetBrains Mono',ui-monospace,monospace;color:#8EA0B8;white-space:nowrap}
body.hud-page .hud-mini .cockpit-health{height:8px;border-radius:0;background:#0F1E2E;border:1px solid #1C3348}
body.hud-page .hud-mini .cockpit-health-fill{border-radius:0;background:#A8344A}
.hud-mini.low .hud-mini-n,.hud-mini.low .cockpit-goal-t{color:#FF6B7A}
body.hud-page .hud-mini.low .cockpit-health{border-color:#5A1F28}
body.hud-page .hud-mini.low .cockpit-health-fill{background:#E0485A}
/* Today */
.hud-away{margin-top:4px;align-self:flex-start}
/* Loadout */
.hud-loadout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hud-gs{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;border:1px dashed #2A4560;background:#0C1724;color:#8EA0B8;padding:8px 10px;font:inherit;cursor:pointer;min-width:0}
.hud-gs b{font-size:13px;font-weight:600;color:#BFD0E2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.hud-gs-k{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.hud-gs.worn{border:1px solid #7A5600;background:#1A1408}
.hud-gs.worn .hud-gs-k,.hud-gs.worn .tiny{color:#F0A500}
.hud-gs.worn b{color:var(--text)}
.hud-gs:hover,.hud-gs:focus-visible{border-color:var(--accent);outline:none}
.hud-loadout-foot{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.hud-stat b{font-family:'Righteous',var(--font);font-weight:400;color:#4DE3F5}
.hud-buff{color:#FFC59E}
@media (max-width:700px){.hud-boss-phases,.hud-bosses{grid-template-columns:minmax(0,1fr)}}
/* the bars sit in a column here: flex:1 from .cockpit-health would collapse their height */
.hud-boss .cockpit-health,.hud-mini .cockpit-health{flex:none}
/* the bond with your AI (t-p19-axt8d7), in the Character window */
.bond-card{border-color:#3A4A8A}
.bond-rank{font-family:'Righteous',var(--font);font-weight:400;font-size:20px;color:#9DB8FF}
.bond-fill{background:#5B6FD6!important}
.bond-parts{display:flex;flex-direction:column;gap:3px}
.bond-parts b{font-family:'JetBrains Mono',ui-monospace,monospace;color:#9DB8FF;margin-right:2px}

/* Symbiosis 2 (t-p19-0buhsz): you and your AI. The panel, the companion on the plate, co-op lines in the Log. */
.sym{display:flex;flex-direction:column;gap:8px;padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid #15263A}
.sym-pair{display:flex;align-items:center}
.sym-you,.sym-ai{width:46px;height:46px;flex:none;display:flex;align-items:center;justify-content:center;font-family:'Righteous',var(--font);font-size:16px}
.sym-you{border-radius:50%;border:2px solid var(--accent);background:#0A1724}
.sym-ai{clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);background:#A855F7}
.sym-ai span{width:40px;height:40px;clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);background:#160E26;color:#D8B4FE;display:flex;align-items:center;justify-content:center}
.sym-tether{flex:1;position:relative;height:46px;display:flex;align-items:center;justify-content:center;min-width:0}
.sym-tether svg{position:absolute;inset:3px 0;width:100%;height:40px}
.sym-tether path{fill:none;stroke-width:2}
.sym-tether path:first-child{stroke:var(--accent)}.sym-tether path:last-child{stroke:#A855F7}
.sym-rank{position:relative;background:#0C1120;border:1px solid #5B6FD6;padding:1px 10px;text-align:center;line-height:1.15}
.sym-rank span{display:block;font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;color:#9DB8FF;font-weight:700}
.sym-rank b{font-family:'Righteous',var(--font);font-weight:400;font-size:14px}
.sym-k{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#9DB8FF}
.sym .sym-meter{flex:none;display:block;height:8px;border-radius:0;background:#0F1E2E;border:1px solid #2B3F66}
.sym .sym-meter .cockpit-health-fill{border-radius:0;background:#5B6FD6}
.sym-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;text-align:center}
.sym-tile{border:1px solid #1E3550;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:11px;color:#8EA0B8;min-width:0}
.sym-tile b{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:16px;color:var(--text)}
.sym-tile span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.sym-tile.learn svg{color:#4DE3F5}.sym-tile.build{border-color:#4C3A7A;background:rgba(91,111,214,.08)}.sym-tile.build svg{color:#9DB8FF}.sym-tile.train{border-color:#4C2A70}.sym-tile.train svg{color:#C084FC}
.sym-pairbtn{align-self:stretch;justify-content:center;border-color:#5B6FD6;color:#9DB8FF}
body.hud-page [data-frame="agents"]{border-color:#2B3F66;background:rgba(12,17,32,.95)}
.hud-plate{position:relative}
.hud-companion{position:absolute;left:calc(var(--hud-avatar,104px) - 8px);top:6px;width:34px;height:34px;padding:0;border:0;cursor:pointer;clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);background:#A855F7;display:flex;align-items:center;justify-content:center}
.hud-companion span{width:29px;height:29px;clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);background:#160E26;color:#D8B4FE;font-family:'Righteous',var(--font);font-size:11px;display:flex;align-items:center;justify-content:center}
.hud-companion:focus-visible{outline:2px solid #9DB8FF;outline-offset:2px}
.hud-cur .bond b{color:#9DB8FF}
.hud-coop{font-weight:700;font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:#9DB8FF;margin-right:2px}
.hud-log .coop span:last-child{color:var(--text)}

/* The Communication Center bar (t-p16-1837p4): a chip per channel, built or planned, under the active quest */
.hud-comms{padding:10px 12px}
.hud-comms .hud-ph{margin-bottom:6px}
.hud-chs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
body[data-hud-chips="false"] .hud-chs{display:none}
body[data-hud-chips="false"] .hud-comms .hud-ph{margin-bottom:0}
body[data-hud-legend="false"] .hud-legend{display:none}
.hud-ch{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border:1px solid #22384F;background:#0C1724;color:#BFD0E2;font:inherit;font-size:11px;cursor:pointer;min-width:0}
.hud-ch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.hud-ch b{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:14px;color:var(--text)}
.hud-ch.has{border-color:#7A5600;background:rgba(240,165,0,.08);color:#F0A500}
.hud-ch.has b{color:#F0A500}
.hud-ch.planned{opacity:.55;border-style:dashed}
.hud-ch.planned b{font-size:11px;color:#8EA0B8;font-family:inherit}
.hud-ch:hover,.hud-ch:focus-visible{border-color:var(--accent);outline:none;opacity:1}
body[data-hud-fit="false"] .hud-chs{grid-template-columns:repeat(4,minmax(0,1fr))}

/* HUD 4 (t-p19-uist9d): the Character menu, one window with six tabs (Hero, Companion, Skills, Gear, Bounties, Quests) */
.cockpit-win[data-win="character"]{max-width:1240px;border-radius:0;border:1px solid #1C3348;background-color:#04080C;background-image:linear-gradient(rgba(0,188,212,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(0,188,212,.04) 1px,transparent 1px);background-size:40px 40px;font-family:'Chakra Petch',var(--font)}
.cockpit-win[data-win="character"] .cockpit-wh h2{font-family:'Righteous',var(--font);font-weight:400;font-size:22px;letter-spacing:1px;color:var(--accent);text-transform:uppercase}
.cockpit-win[data-win="character"] kbd{font:600 11px/17px 'JetBrains Mono',ui-monospace,monospace;color:#9FB2C8;border:1px solid #2A4560;background:#0A1622;border-radius:3px;padding:0 5px}
.char-menu{--hud-line:#1C3348;--hud-cyan:#4DE3F5;--hud-gold:#F0A500;--hud-violet:#C084FC;--hud-muted:#8EA0B8;display:flex;flex-direction:column;gap:10px}
.char-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--hud-line);flex-wrap:wrap}
.char-tabs{display:flex;flex-wrap:wrap;min-width:0}
.char-tab{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:14px;font-weight:600;letter-spacing:2px;text-transform:uppercase;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--hud-muted);cursor:pointer;white-space:nowrap}
.char-tab kbd{font-size:10px;line-height:15px;letter-spacing:0}
.char-tab:hover{color:var(--text)}
.char-tab.on{color:var(--hud-cyan);border-bottom-color:var(--accent)}
.char-tab-companion{color:#9DB8FF}.char-tab-companion.on{color:#9DB8FF;border-bottom-color:#5B6FD6}
.char-tab:focus-visible{outline:2px solid var(--hud-cyan);outline-offset:-2px}
.char-cur{white-space:nowrap;color:var(--hud-muted)}
.char-cur b{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:14px;margin:0 2px 0 10px}
.char-cur .gold{color:var(--hud-gold)}.char-cur .sparks{color:var(--hud-violet)}
.char-hint{margin-top:-4px}
.char-panel:focus{outline:none}
.char-panel .card{position:relative;background:rgba(11,19,29,.96);border:1px solid var(--hud-line);border-radius:0}
.char-panel .card-title{font-family:'Chakra Petch',var(--font);letter-spacing:2.2px;color:var(--hud-cyan);margin-bottom:0}
.char-panel .hud-xp{border-radius:0;background:#0F1E2E;border:1px solid var(--hud-line)}
.char-panel .hud-xp-fill{border-radius:0;background:var(--accent)}
.char-panel .bond-fill{background:#5B6FD6!important}
.char-panel .stack{display:flex;flex-direction:column;gap:8px}
/* Hero: the figure and its gear beside the cards and sheets */
.char-heroes{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:16px;align-items:start}
.char-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.char-hero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px}
.char-name{font-family:'Righteous',var(--font);font-size:28px;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.char-fig{position:relative;width:100%;max-width:380px;aspect-ratio:460/560}
.char-svg{position:absolute;inset:0;width:100%;height:100%}
.char-fig .char-slot{position:absolute;width:31%}
.char-slot-head{right:0;top:20%}.char-slot-back{left:0;top:34%}.char-slot-hands{right:0;top:52%}.char-slot-feet{left:0;top:80%}
.char-ally{position:absolute;right:0;top:0;width:34%;background:none;border:0;padding:0;font:inherit;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#9DB8FF;cursor:pointer;text-align:center}
.char-ally:hover,.char-ally:focus-visible{color:#D8B4FE;outline:none;text-decoration:underline}
.char-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.char-card{display:flex;flex-direction:column;gap:2px;padding:10px 12px;background:rgba(11,19,29,.96);border:1px solid var(--hud-line);min-width:0}
.char-card b{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:24px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.char-card.lv b{color:var(--hud-cyan)}.char-card.sp b{color:var(--hud-violet)}.char-card.st b{color:#FF8A3D}
.char-card.bd{border-color:#3A4A8A}.char-card.bd b{font-family:'Righteous',var(--font);font-size:20px;color:#9DB8FF}.char-card.bd .hud-k{color:#9DB8FF}
.char-xp .hud-ml{display:flex;justify-content:space-between;font-size:12px}
.char-xp .hud-n{font-family:'JetBrains Mono',ui-monospace,monospace;color:var(--hud-muted)}
/* Companion: you and your AI */
.char-companion{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.char-companion>.card:last-child{grid-column:1/-1}
.char-sym{border-color:#2B3F66!important;background:rgba(12,17,32,.96)!important}
.char-sym .sym{border-bottom:0;padding-bottom:0;margin-bottom:0}
@media (max-width:900px){
  .char-heroes,.char-companion{grid-template-columns:minmax(0,1fr)}
  .char-hero{max-width:440px;width:100%;justify-self:center}
}
@media (max-width:700px){
  .char-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .char-tab{padding:9px 10px;letter-spacing:1.2px;font-size:13px}
  .char-tab kbd{display:none}
  .char-hint{display:none}
}
@media (prefers-reduced-motion:reduce){.char-panel .hud-xp-fill{transition:none}}

/* The HUD frame on every page (HUD 5, t-p19-8nty9z): the same top HUD and bottom bars around every screen, views/_pageFrame.js.
   My HQ draws its own inside the cockpit, so these two regions are hidden there. They take the width of the screen they frame. */
.page-frame{max-width:1320px;margin:0 auto;padding:0 18px}
.page-frame-top{padding-top:18px}
.page-frame-bottom{padding-bottom:18px}
.main.wide .page-frame{max-width:none;padding-left:12px;padding-right:12px}
.page-frame[hidden]{display:none}
body.tunnel .page-frame{display:none!important}
@media (max-width:800px){.page-frame{padding-left:12px;padding-right:12px}}
/* the page's views as the mode switch: labelled sets when the page groups them, wrapping instead of scrolling */
.hud-modes[data-hud-modes]{display:flex;flex-wrap:wrap;gap:6px;border:0;background:none}
.hud-mset{display:inline-flex;flex-wrap:wrap;align-items:stretch;max-width:100%;border:1px solid #2A4560;background:#0A1420}
.hud-mset .btn{border:0;border-radius:0;border-left:1px solid var(--hud-line);padding:8px 12px;font-size:12px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#9FB2C8;background:transparent;font-family:inherit}
.hud-mset .btn:first-of-type{border-left:0}
.hud-mset .btn.on{background:var(--accent);color:#04151B;font-weight:700}
.hud-mset .btn:focus-visible{outline:2px solid var(--hud-cyan);outline-offset:-2px}
.hud-mg{display:flex;align-items:center;padding:0 9px;font-size:10px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--hud-muted);border-right:1px solid var(--hud-line)}
.hud-mode-name{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border:1px solid #2A4560;background:#0A1420;color:var(--hud-cyan);font-size:13px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.hud-modekeys-slot:empty{display:none}

/* ---- Fit: the frame is exactly the window (HUD widescreen fit, t-p19-v7d1tc) ---------------------------------------------------
   On a desktop-sized window (data-hud-fit="true", decided by hudLayoutModel.js) the app is one screen high: the header, the top
   HUD, the middle and the bottom bars add up to the viewport, the page never scrolls, and the middle gives its height to its panels
   (a panel with more rows than fit scrolls inside itself and says "N more"). A phone or a small window scrolls as it always did. */
#app[hidden]{display:none}
body[data-hud-fit="true"] #app:not([hidden]){display:flex;flex-direction:column;height:100dvh;overflow:hidden}
body[data-hud-fit="true"] #app>.header{flex:none;height:var(--hud-hdr,54px);min-height:0;padding-top:0;padding-bottom:0;flex-wrap:nowrap}
body[data-hud-fit="true"] .shell{flex:1 1 0;min-height:0;align-items:stretch}
body[data-hud-fit="true"] .crest-rail{top:auto;height:auto}
body[data-hud-fit="true"] .main{display:flex;flex-direction:column;min-height:0;min-width:0}
/* the regions around a screen: the frame's top and bottom keep their natural height, the screen takes the rest and scrolls inside */
body[data-hud-fit="true"] .page-frame{flex:none;width:100%;max-width:var(--hud-page-max,none);padding-left:calc(var(--hud-gap,12px) + 6px);padding-right:calc(var(--hud-gap,12px) + 6px)}
body[data-hud-fit="true"] .page-frame-top{padding-top:var(--hud-gap,12px)}
body[data-hud-fit="true"] .page-frame-bottom{padding-bottom:var(--hud-gap,12px)}
body[data-hud-fit="true"] .main.wide .page-frame{max-width:none;padding-left:var(--hud-gap,12px);padding-right:var(--hud-gap,12px)}
body[data-hud-fit="true"] #views{flex:1 1 0;min-height:0;overflow:auto;width:100%;max-width:var(--hud-page-max,none);padding:var(--hud-gap,12px) calc(var(--hud-gap,12px) + 6px)}
body[data-hud-fit="true"] #views.wide{max-width:none;padding:0}
/* the screens that were a window tall now take the height they are given */
body[data-hud-fit="true"] :is(.os-panel,.cc-panel,.socialz-panel,.fc-panel,#fc-app){height:100%}
body[data-hud-fit="true"] .brain-toc{top:8px;max-height:calc(100% - 16px)}
/* My HQ: the cockpit is the middle. Its grid takes what the HUD leaves and splits it in equal rows, so every frame scrolls inside itself */
body[data-hud-fit="true"] #v-my-hq.active{display:flex;flex-direction:column;height:100%;min-height:0}
body[data-hud-fit="true"] #v-my-hq .cockpit{flex:1 1 0;display:flex;flex-direction:column;min-height:0}
body[data-hud-fit="true"] #v-my-hq .cockpit[hidden]{display:none}
body[data-hud-fit="true"] #v-my-hq .cockpit>*{flex:none}
/* Each row gets at least --hud-row-min (hudLayoutModel rowMin), so no frame is a sliver; rows share what is left beyond that. When the
   layout's rows do not fit at that height the cockpit scrolls inside itself, never the page (t-p19-f0df7x). */
body[data-hud-fit="true"] #v-my-hq .cockpit>.cockpit-grid{flex:1 1 0;min-height:0;grid-template-rows:repeat(var(--rows,7),minmax(var(--hud-row-min,60px),1fr));gap:var(--hud-gap,12px);overflow:hidden;padding:2px;align-content:start}
body[data-hud-fit="true"] #v-my-hq .cockpit-settings{flex:1 1 0;min-height:0;overflow:auto}
body[data-hud-fit="true"] #v-my-hq .cockpit-frame{min-height:0;overflow:hidden;padding:var(--hud-pad,12px) calc(var(--hud-pad,12px) + 2px)}
body[data-hud-fit="true"] #v-my-hq .cockpit-fb{flex:1 1 auto;min-height:0;overflow:hidden;scrollbar-width:none}
body[data-hud-fit="true"] #v-my-hq [data-frame="queue"] .cockpit-fb{max-height:none}
/* the bottom bars and the Log scroll inside themselves too */
body[data-hud-fit="true"] .hud-logbox{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body[data-hud-fit="true"] .hud-top,body[data-hud-fit="true"] .hud-bottom{min-height:0}
.hud-log{max-height:calc(var(--hud-log-lines,6) * 1.65em);overflow:auto}
.hud-more{position:absolute;right:10px;bottom:6px;z-index:2;font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.5px;color:#04151B;background:var(--accent);padding:3px 7px;pointer-events:none;box-shadow:0 0 0 1px rgba(4,21,27,.6)}
.hud-more[hidden]{display:none}
/* one row for the mode switch and Ctrl K when they fit; a page with many views lets its switch wrap inside its own box */
.hud-cmd{flex-wrap:nowrap;min-width:0}
.hud-modes[data-hud-modes]{flex:0 1 auto;min-width:0}
/* Ctrl K takes the room the switch leaves (basis 0) and shrinks to its icon, so a switch that fits never wraps for it (t-p25-82pv29) */
.hud-search{flex:1 1 0;min-width:44px;height:36px}
/* tight: the panel headings sit closer, so the bars stay low */
body[data-hud-density="tight"] .hud-logbox .hud-ph,body[data-hud-density="tight"] .hud-minimap .hud-ph{margin-bottom:4px}
body[data-hud-density="tight"] .hud-modekeys{display:none}
body[data-hud-density="tight"] .hud-modes .btn,body[data-hud-density="tight"] .hud-mset .btn{padding:6px 10px}
body[data-hud-density="tight"] .hud-mg{display:none}
/* a screen that scrolls (phone, small window) lets the mode switch and Ctrl K wrap onto two lines */
body[data-hud-fit="false"] .hud-cmd{flex-wrap:wrap}
body[data-hud-fit="false"] .hud-search{flex:1 1 140px}
body[data-hud-density="tight"] .hud-mset .btn{padding:5px 7px;font-size:11px;letter-spacing:.8px}
body[data-hud-density="tight"] .hud-modes[data-hud-modes]{gap:4px}

/* ---- Quality pass (HUD 6, t-p19-8u02t7): keyboard, focus, motion ------------------------------------------------------------- */
/* the first Tab stop in the frame: off screen until it has focus, then a button over the HUD's corner */
.hud-top{position:relative}
.hud-skip{position:absolute;left:8px;top:8px;z-index:60;transform:translateY(-300%);padding:8px 14px;border:0;background:var(--accent);color:#04151B;font:700 13px/1 'Chakra Petch',var(--font);cursor:pointer}
.hud-skip:focus-visible{transform:none;outline:2px solid #fff;outline-offset:2px}
/* every control in the frame shows where the keyboard is with one ring. It has the specificity of the per-control rules above
   (which swap the outline for a border colour, the same look as hover) and comes after them, so it wins: focus is never just a tint */
:where(.hud-top,.hud-bottom,.page-frame) :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--hud-cyan,#4DE3F5);outline-offset:2px}
#views:focus{outline:none}
/* no motion with reduced motion: the page frame too (the cockpit is covered in app.css), the radar sweep, the bars, the more cue */
@media (prefers-reduced-motion:reduce){
  .page-frame *,.hud-top *,.hud-bottom *{animation:none!important;transition:none!important}
  .hud-skip{transition:none}
}
body[data-hud-fit="false"] .hud-modes{flex-wrap:wrap;max-width:100%}

/* ---- Widgets (t-p25-qpenqj): the widget library drawer, and a page of widgets that fits like the cockpit ---------------------- */
.wl-drawer{border:1px solid var(--hud-line,#1C3348);background:rgba(11,19,29,.96);padding:10px 12px;margin-bottom:var(--hud-gap,10px);max-height:min(46vh,420px);overflow:auto;font-family:'Chakra Petch',var(--font)}
.wl-drawer[hidden]{display:none}
.wl-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.wl-head h2{margin:0;font-size:12px;letter-spacing:2.2px;text-transform:uppercase;color:var(--hud-cyan,#4DE3F5)}
.wl-head input{max-width:260px;flex:1 1 160px}
.wl-group h3{margin:10px 0 6px;font:700 11px/1 'Chakra Petch',var(--font);letter-spacing:2px;text-transform:uppercase;color:var(--hud-muted,#8EA0B8)}
.wl-group ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:8px}
.wl-item{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border:1px solid #22384F;background:#0C1724;padding:8px 10px;min-width:0}
.wl-item.on{border-color:#2A4560}
.wl-item.locked{opacity:.65;border-style:dashed}
.wl-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.wl-main b{font-weight:600}
.wl-pages{color:var(--hud-muted,#8EA0B8)}
.wl-act{flex:none;text-align:right}
.hud-more{pointer-events:none}
/* the screen section a page of widgets sits in (the Guild Hall's pill pane, Hall 1) fills the view like My HQ's, so the grid has a height */
body[data-hud-fit="true"] .tab-panel-v.active:has(> .wh-widgets:not([hidden])){display:flex;flex-direction:column;height:100%;min-height:0}
body[data-hud-fit="true"] .tab-panel-v.active>.wh-widgets:not([hidden]){flex:1 1 0}
body[data-hud-fit="true"] .wh-widgets{display:flex;flex-direction:column;height:100%;min-height:0}
body[data-hud-fit="true"] .wh-widgets>*{flex:none}
body[data-hud-fit="true"] .wh-widgets>.cockpit-grid{flex:1 1 0;min-height:0;grid-template-rows:repeat(var(--rows,6),minmax(var(--hud-row-min,60px),1fr));gap:var(--hud-gap,12px);overflow-y:auto;overflow-x:hidden;padding:2px;align-content:stretch}
body[data-hud-fit="true"] .wh-widgets .cockpit-frame{min-height:0;overflow:hidden;padding:var(--hud-pad,12px) calc(var(--hud-pad,12px) + 2px)}
body[data-hud-fit="true"] .wh-widgets .cockpit-fb{flex:1 1 auto;min-height:0;overflow:auto;overflow-x:hidden}
.wh-widgets.editing .cockpit-frame{outline:1px dashed var(--accent);outline-offset:-3px}
/* Arranging (t-p20-b2dn0i): the grid stops squeezing every row into the window and scrolls instead, so widgets below the bottom can be
   reached and a widget can be dropped on a row below the last one (rows keep a fixed height, empty room under the last row, and
   dragging near the top or bottom edge scrolls it: createArranger). */
/* Moving a widget while arranging (t-p20-7kf6cy): the one being moved is lifted and follows the pointer, a dashed slot shows the cell it will land on. */
.cockpit-ghost{grid-column:var(--cx)/span var(--cw);grid-row:var(--cy)/span var(--ch);border:2px dashed var(--accent);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--accent) 12%,transparent);pointer-events:none;z-index:0}
.cockpit-frame.dragging{z-index:30;opacity:.88;box-shadow:0 12px 32px rgba(0,0,0,.45);transition:none;cursor:grabbing}
body[data-hud-fit="true"] #v-my-hq .cockpit.editing>.cockpit-grid,body[data-hud-fit="true"] .wh-widgets.editing>.cockpit-grid{grid-template-rows:repeat(var(--rows,7),var(--arrange-row,96px));grid-auto-rows:var(--arrange-row,96px);overflow-y:auto;overflow-x:hidden;align-content:start;padding:2px 2px 160px}

/* Compact chrome on a short desktop window (t-p19-f0df7x): the top HUD and the bottom bars give their height back to the cockpit.
   The minimap's legend runs in two columns; the plate's avatar and the radar shrink through the --hud-* sizes. */
body[data-hud-fit="true"] .hud-legend{display:grid;grid-template-columns:repeat(var(--hud-legend-cols,1),minmax(0,1fr));column-gap:14px}
body[data-hud-legend="false"] .hud-legend{display:none}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-ph{margin-bottom:6px}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-q-mark{width:34px;height:34px}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-q-mark span{font-size:17px}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-q-title{font-size:15px}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-search{height:34px}
body[data-hud-fit="true"][data-hud-labels="false"] .hud-modes .btn{padding:7px 12px}

/* HUD fit 2 (t-p19-hk1isq). Owner 2026-10-15: nothing scrolls, not the page and not a panel. The cockpit's rows come from what the
   frames need (_cockpit.js fitRows, hudLayoutModel.allocateRows) and a frame that cannot have its full height shows its compact form
   ([data-fit=compact]); the Quest log and Activity ([data-fit=list]) show what fits and end in an "N more" button. */
body[data-hud-fit="true"] #v-my-hq .cockpit-fb::-webkit-scrollbar{display:none}
body[data-hud-fit="true"] #v-my-hq :is(.cockpit-party,.cockpit-activity,.cockpit-flow,.cockpit-list){max-height:none;overflow:visible}
.hud-more.act{pointer-events:auto;border:0;cursor:pointer}
.hud-more.act:hover,.hud-more.act:focus-visible{background:var(--hud-cyan,#4DE3F5);outline:2px solid #04151B;outline-offset:-3px}
body[data-hud-fit="true"] #v-my-hq .cockpit:not(.editing)>.cockpit-bar{display:none} /* the caption goes; while arranging, the bar holds Done, Reset and the library */
/* Loadout: the four slots in one row, without the "to wear" line */
#v-my-hq [data-fit="compact"] .hud-loadout{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#v-my-hq [data-fit="compact"] .hud-gs{padding:5px 6px}
#v-my-hq [data-fit="compact"] .hud-gs .tiny{display:none}
#v-my-hq [data-fit="compact"] .hud-loadout-foot{margin-top:6px}
/* Symbiosis: the bond and the three counts; the per-agent list is in the Symbiosis window (A) */
#v-my-hq [data-fit="compact"] .cockpit-party,#v-my-hq [data-fit="compact"] .sym-pairbtn{display:none}
#v-my-hq [data-fit="compact"] .sym-tile svg{display:none}
#v-my-hq [data-fit="compact"] .sym-tile{padding:3px 4px}
#v-my-hq [data-fit="compact"] .sym{gap:6px}
/* Today: smaller rings */
#v-my-hq [data-frame="rings"][data-fit="compact"] .cockpit-fb svg{width:72px;height:72px}
#v-my-hq [data-frame="rings"][data-fit="compact"] .hud-away{display:none}
/* Goals: the raid boss without its phases and notes */
#v-my-hq [data-fit="compact"] :is(.hud-boss-meta,.hud-boss-phases){display:none}
/* Comms: the channels always show on a desktop window, icon and count (the name is the button's accessible name) */
body[data-hud-fit="true"] .hud-comms .hud-chs{display:grid;grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:4px}
body[data-hud-fit="true"] .hud-ch{padding:5px 6px;flex-direction:row;justify-content:flex-start;gap:6px;min-width:0}
body[data-hud-fit="true"] .hud-ch b{margin-left:auto}
body[data-hud-fit="true"] .hud-comms .hud-ph{margin-bottom:6px}

/* My HQ layout, owner 2026-10-15 (t-p19-hk1isq):
   top     the plate and the Pipeline the same height (both span the two lines); Comms fills the middle under the mode switch;
   middle  the active quest above the Quest log (the quest banner moves into its frame), Today where Loadout was;
   bottom  the Log and Activity, half the width each, four lines tall,
           scrolling, and moving through their lines by themselves (views/_hudFit.js autoScroll). */
body.hud-page .hud-top{align-items:stretch}
body.hud-page .hud-top>.hud-plate,body.hud-page .hud-top>.hud-minimap{align-self:stretch}
body[data-hud-fit="true"] .hud-top .hud-quest{display:none}
body.hud-page .hud-comms{display:flex;flex-direction:column;justify-content:center}
body[data-hud-fit="true"] .hud-comms .hud-chs{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
#v-my-hq [data-frame="quest"]{border-color:#4A3A12;background:rgba(24,20,10,.92)}
#v-my-hq [data-frame="quest"]::before,#v-my-hq [data-frame="quest"]::after{border-color:var(--hud-gold,#F0A500)}
#v-my-hq [data-frame="quest"] .cockpit-fh{display:none}
#v-my-hq [data-frame="quest"] .hud-quest{display:flex;height:100%;border:0;background:none;padding:0}
#v-my-hq [data-frame="quest"] .hud-quest::before,#v-my-hq [data-frame="quest"] .hud-quest::after{display:none}
body.hud-page .hud-bottom{row-gap:var(--hud-gap,10px)}
.hud-feed:empty{display:none}
.hud-bottom:has(.hud-feed:empty) .hud-logbox{grid-column:1/-1}
body.hud-page .hud-logbox,body.hud-page .hud-feed{display:flex;flex-direction:column;min-height:0;min-width:0}
body.hud-page .hud-feed .hud-ph,body.hud-page .hud-logbox .hud-ph{margin-bottom:4px}
/* four lines, scrolling */
body.hud-page .hud-logbox .hud-log,body.hud-page #v-my-hq .hud-feed .cockpit-activity,#v-my-hq .hud-feed .cockpit-activity{height:calc(4 * 20px + 3 * 4px);max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;gap:4px}
body[data-hud-fit="true"] #v-my-hq .hud-feed .cockpit-activity{height:calc(4 * 20px + 3 * 4px);max-height:none;overflow-y:auto}
.hud-feed .cockpit-al,.hud-logbox .hud-log li{min-height:20px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;gap:8px;min-width:0}
.hud-feed .cockpit-al>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud-feed .cockpit-al>.cockpit-at{flex:1 1 auto;min-width:0}
.hud-feed .cockpit-al>.tiny{flex:none}
.hud-feedbody{display:flex;flex-direction:column;gap:4px;min-height:0}
.hud-feedbody>.row{display:none}
/* an empty Activity feed (every page but My HQ) takes no room, and the Log spans the bottom (t-p19-d4r36e) */
body .hud-bottom>.hud-feed:empty{display:none}

/* The action strip under Comms (t-p15-wxrcwp) replaced the full-width tool row (t-p19-e4937u): css/hud-strip.css. */

/* ---- The Guild Hall's widgets (Hall 1, t-p25-ucur35; views/_widgets): Projects, Team, Supplies, To verify, Trophy wall and the
   compact Intake. They draw the same on the Hall and on My HQ. No breakpoint here: the cards and tiles wrap by width. ----------- */
/* the selected card takes every column but the last, beside the other projects (one column: the end line falls back to a span of 1) */
.hall-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));grid-auto-flow:row dense;gap:8px;align-items:start}
.hall-card{display:flex;flex-direction:column;gap:4px;border:1px solid #22384F;background:#0C1724;padding:8px 10px;min-width:0;cursor:pointer}
.hall-card:hover{border-color:#2A4560}
.hall-card.sel{grid-column:1/-2;grid-row:span 4;cursor:default;border-color:var(--accent);padding:10px 12px;gap:6px}
.hall-card-h{gap:8px;align-items:baseline}
.hall-card-t{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hall-card.sel .hall-card-t{white-space:normal;font-size:15px}
.hall-odds{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;font-weight:600;white-space:nowrap}
.hall-odds.tone-good,.hall-tone.tone-almost{color:var(--green,#4ADE80)}
.hall-odds.tone-warn,.hall-tone.tone-soon{color:var(--amber,#F0A500)}
.hall-odds.tone-low,.hall-tone.tone-urgent{color:var(--red,#E0485A)}
.hall-tone.tone-calm{color:var(--hud-muted,#8EA0B8)}
.hall-bar{height:6px}
.hall-card-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:10px}
.hall-reasons,.hall-slots,.hall-list,.hall-tiles{list-style:none;margin:4px 0 0;padding:0}
.hall-reasons li.up{color:var(--green,#4ADE80)}
.hall-reasons li.down{color:var(--red,#E0485A)}
.hall-slots li,.hall-list>li{padding:3px 0;border-top:1px solid rgba(34,56,79,.6)}
.hall-slots li:first-child,.hall-list>li:first-child{border-top:0}
.hall-chips{display:flex;flex-wrap:wrap;gap:4px}
.hall-chip{display:inline-block;font-size:11px;line-height:18px;padding:0 6px;border:1px solid #2A4560;border-radius:9px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.hall-chip.bad{border-color:var(--red,#E0485A);color:var(--red,#E0485A)}
.hall-chip.warn{border-color:var(--amber,#F0A500);color:var(--amber,#F0A500)}
.hall-card-act{gap:6px;flex-wrap:wrap}
.hall-brief pre{white-space:pre-wrap;word-break:break-word;margin:6px 0;padding:6px 8px;border:1px solid #22384F;background:#08111B;max-height:180px;overflow:auto}
.hall-paused{display:inline-block;margin-top:6px}
.hall-mem .row{gap:6px;align-items:baseline}
.hall-meters{display:flex;gap:10px;flex-wrap:wrap}
.hall-meter{display:inline-flex;align-items:center;gap:5px}
.hall-meter .cockpit-health{width:64px;height:6px}
.hall-meter b{font-family:'JetBrains Mono',ui-monospace,monospace}
.hall-shead{gap:8px;flex-wrap:wrap;align-items:center}
.hall-sform{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.hall-sform input{flex:1 1 180px;min-width:0}
.hall-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:6px}
.hall-tile{display:flex;flex-direction:column;gap:2px;border:1px solid #22384F;border-left:3px solid var(--green,#4ADE80);background:#0C1724;padding:5px 8px;min-width:0}
.hall-tile b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hall-tile.bad{border-left-color:var(--red,#E0485A)}
.hall-tile.warn{border-left-color:var(--amber,#F0A500)}
.hall-big{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.hall-big b{font:600 32px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--hud-cyan,#4DE3F5)}
.hall-trophies li{display:flex;gap:8px;align-items:baseline}
.hall-cup{color:var(--hud-gold,#F0A500)}
.hall-in{border-top:1px solid rgba(34,56,79,.6);padding:6px 0}
.hall-in-head{gap:6px;align-items:center;margin-bottom:2px}
.hall-in-top{gap:6px;align-items:center}
.hall-in-t{margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hall-in-act{gap:4px;flex-wrap:wrap}
.hall-in-act .form-select{max-width:9.5em;padding-block:2px}

/* ---- What's Happening's views (Views 1, t-p25-yxx49k): Records' own switch (its twelve tabs in their groups) and the plain tile
   of a view that is coming next. ------------------------------------------------------------------------------------------------ */
.wh-rec-tabs{--hud-line:#1C3348;--hud-muted:#8EA0B8;--hud-cyan:#4DE3F5;display:flex;flex-wrap:wrap;gap:6px;margin-bottom:var(--hud-gap,12px);font-family:'Chakra Petch',var(--font)}
.wh-rec-tabs a.btn{text-decoration:none;display:inline-flex;align-items:center}
/* The pipeline rail (Quest lines 1c, t-p14-8me44q): one stage per Records tab with its live count, then More and how it works. */
.wh-rail{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0;align-items:stretch;max-width:100%}
.wh-rail-st{display:flex;align-items:stretch;min-width:0}
.wh-rail-st+.wh-rail-st::before{content:'\203A';align-self:center;color:var(--hud-muted);padding:0 3px}
.wh-rail-a{display:inline-flex;flex-direction:column;justify-content:center;gap:1px;min-width:78px;padding:5px 11px;border:1px solid #2A4560;background:#0A1420;color:#9FB6CC;text-decoration:none;position:relative}
.wh-rail-a:hover{border-color:var(--hud-cyan);color:#fff}
.wh-rail-game{font-size:9px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--hud-muted)}
.wh-rail-label{font-size:12px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase}
.wh-rail-n{font-size:15px;font-weight:700;color:var(--hud-cyan);line-height:1.1}
.wh-rail-n-off{color:var(--hud-muted)}
.wh-rail-st.on .wh-rail-a{background:var(--accent);border-color:var(--accent);color:#04151B}
.wh-rail-st.on .wh-rail-game,.wh-rail-st.on .wh-rail-n{color:#04151B}
.wh-rail-lore .wh-rail-a{gap:2px}
.wh-rail-sub{font-size:11px;font-weight:600;color:var(--hud-cyan);text-decoration:none}
.wh-rail-sub:hover{text-decoration:underline}
.wh-rail-more{align-self:stretch}
.wh-rail-how{align-self:center;margin-left:4px}
@media (max-width:640px){.wh-rail{width:100%}.wh-rail-st{flex:1 1 30%}.wh-rail-st+.wh-rail-st::before{display:none}.wh-rail-a{flex:1 1 auto;min-width:0}.wh-rail-more{width:100%}}
.wh-soon{max-width:640px;display:flex;flex-direction:column;gap:8px}

/* ---- The Raid Log's Project detail (Raid Log 1, t-p25-91jtn2) -------------------------------------------------------------- */
.raid-head{gap:8px;align-items:center;flex-wrap:wrap}
.raid-pick{display:inline-flex;align-items:center;gap:6px}
.raid-pick .form-select{max-width:16em;padding-block:2px}
.raid-name{margin:6px 0 2px;font-size:16px}
.raid-sum{margin:4px 0}
.raid-phases{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;padding:0}
.raid-phases li{display:flex;flex-direction:column;gap:1px;border:1px solid #22384F;border-top:3px solid #22384F;background:#0C1724;padding:4px 8px;min-width:84px}
.raid-phases li.ph-done{border-top-color:var(--green,#4ADE80)}
.raid-phases li.ph-now{border-top-color:var(--accent)}
.raid-phases li.ph-next{border-top-color:var(--amber,#F0A500)}
.raid-phases li.ph-fog{opacity:.6;border-style:dashed}
.raid-tasks{list-style:none;margin:4px 0 8px;padding:0}
.raid-task{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;border-top:1px solid rgba(34,56,79,.6)}
.raid-task:first-child{border-top:0}
.raid-task .hall-brief{flex-basis:100%}
.raid-ic{width:1.4em;text-align:center;flex:none}
.raid-meta{white-space:nowrap}
.raid-task.st-done{opacity:.7}
.raid-task.st-done .raid-ic{color:var(--green,#4ADE80)}
.raid-task.st-doing .raid-ic,.raid-task.st-ready .raid-ic{color:var(--accent)}
.raid-task.st-decision .raid-ic{color:var(--amber,#F0A500)}
.raid-task.st-locked .raid-ic{color:var(--red,#E0485A)}
.raid-task.st-fog{opacity:.75}

/* ---- The Atlas (Atlas 1, t-p25-lpkmps; Atlas map, t-p20-m25pjv): the map is a widget of its own (the Atlas map), filling its frame, with Goals,
   Intake and the Legend beside it in the grid. Nothing animates (reduced motion is the default). ---- */
.atlas-page,.atlas-widget{--hud-line:#1C3348;--hud-muted:#8EA0B8;--hud-cyan:#4DE3F5;position:relative}
.atlas-widget{position:relative;min-height:220px}
.cockpit-fb.atlas-widget{overflow:hidden}
.atlas-stage{position:absolute;inset:0;border:1px solid var(--hud-line);background:radial-gradient(circle at 50% 50%,#0E1C2B 0,#070D15 70%);overflow:hidden}
.atlas-map{position:absolute;inset:0;cursor:grab;touch-action:none}
.atlas-map:active{cursor:grabbing}
.atlas-map:focus-visible{outline:2px solid var(--hud-cyan);outline-offset:-2px}
.atlas-svg{width:100%;height:100%;display:block;font-family:'Chakra Petch',var(--font)}
.atlas-tools{position:absolute;left:50%;transform:translateX(-50%);bottom:8px;z-index:3;display:flex;align-items:center;gap:4px;flex-wrap:wrap;background:rgba(7,13,21,.85);border:1px solid var(--hud-line);padding:3px 6px;max-width:calc(100% - 16px)}
.atlas-card-slot{position:absolute;right:8px;bottom:8px;z-index:4;width:min(320px,calc(100% - 16px))}
.atlas-card-slot[hidden]{display:none}
.atlas-card{display:flex;flex-direction:column;gap:6px;background:rgba(11,19,29,.97);border:1px solid var(--accent);padding:10px 12px;max-height:60vh;overflow:auto}
.atlas-brief{white-space:pre-wrap;word-break:break-word;margin:0;padding:6px 8px;border:1px solid #22384F;background:#08111B}
.atlas-outline ul{list-style:none;margin:4px 0;padding:0;font-size:12px}
.atlas-outline .lv2{padding-left:14px}.atlas-outline .lv3{padding-left:28px;color:var(--hud-muted)}
/* the map's marks */
.at-region{fill:rgba(77,227,245,.04);stroke:rgba(77,227,245,.12)}
.at-region.tone-urgent{fill:rgba(224,72,90,.06)}.at-region.tone-soon{fill:rgba(240,165,0,.05)}.at-region.dim{opacity:.5}
.at-seg{stroke:#2A4560;stroke-width:3;stroke-linecap:round}
.at-seg.spur{stroke-width:2;stroke-dasharray:2 4}
.at-seg.lit{stroke:var(--accent)}
.at-seg.fog{stroke-dasharray:6 6;opacity:.6}
.at-seg.broken{stroke:var(--red,#E0485A);stroke-dasharray:3 7}
.at-road.on .at-seg{stroke-width:5}
.at-road.fog{opacity:.75}
.at-stop{cursor:pointer;fill:#0C1724;stroke:#8EA0B8;stroke-width:2}
.at-stop:focus-visible circle,.at-stop:focus-visible polygon,.at-stop:focus-visible path,.at-stop.sel>*{stroke:#fff;stroke-width:3}
.at-stop.st-done{fill:var(--accent);stroke:var(--accent)}
.at-stop.st-doing{fill:#0C1724;stroke:var(--accent)}.at-stop .at-tok{fill:var(--accent);stroke:none}
.at-stop.st-decision{fill:var(--amber,#F0A500);stroke:var(--amber,#F0A500)}
.at-stop.st-locked{stroke:var(--red,#E0485A);stroke-width:3;fill:none}
.at-stop.st-issue{fill:var(--amber,#F0A500);stroke:var(--red,#E0485A)}
.at-stop.st-fog{stroke-dasharray:3 3;opacity:.6}
.at-stop.st-ready{fill:var(--green,#4ADE80);stroke:var(--green,#4ADE80)}
.at-camp{fill:#0C1724;stroke:#8EA0B8;stroke-dasharray:3 2}
.at-depot{fill:#16324A;stroke:var(--hud-cyan)}.at-depot.bad{fill:rgba(224,72,90,.25);stroke:var(--red,#E0485A)}
.at-goal circle{fill:#0C1724;stroke:var(--hud-cyan);stroke-width:2}
.at-goal.tone-urgent circle{stroke:var(--red,#E0485A)}.at-goal.tone-soon circle{stroke:var(--amber,#F0A500)}.at-goal.tone-almost circle{stroke:var(--green,#4ADE80)}
.at-goal.dim{opacity:.55}
.at-gpct{fill:#E6EEF6;font:600 13px 'JetBrains Mono',ui-monospace,monospace}
.at-hub circle{fill:#102536;stroke:var(--accent);stroke-width:3}
.at-hub text{fill:#E6EEF6;font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.at-hub .at-hubn{font:600 15px 'JetBrains Mono',ui-monospace,monospace;fill:var(--accent)}
.at-label{fill:#C7D4E2;font-size:12px;paint-order:stroke;stroke:#070D15;stroke-width:3px}
.at-label.k-goal{font-size:14px;font-weight:700;fill:#fff}
.at-label.k-stop{fill:#F0B4BC}
.at-label.k-camp,.at-label.k-depot{fill:#8EA0B8;font-size:11px}
/* the minimap and the legend */
.atlas-mini-link{display:block;max-width:220px;margin:0 auto}
.atlas-mini{width:100%;height:auto;display:block;background:#070D15;border:1px solid #1C3348}
.am-road{fill:none;stroke:#2A4560;stroke-width:1.2}
.am-dot{fill:#8EA0B8}.am-dot.st-done{fill:var(--accent)}.am-dot.st-locked{fill:var(--red,#E0485A)}.am-dot.st-ready{fill:var(--green,#4ADE80)}.am-dot.st-decision{fill:var(--amber,#F0A500)}
.am-goal{fill:#0C1724;stroke:var(--hud-cyan,#4DE3F5);stroke-width:1}.am-goal.dim{opacity:.5}.am-goal.tone-urgent{stroke:var(--red,#E0485A)}
.am-hub{fill:var(--accent)}.am-depot{fill:#16324A}.am-depot.bad{fill:var(--red,#E0485A)}.am-camp{fill:#8EA0B8}
.atlas-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.atlas-legend li{display:flex;align-items:center;gap:6px}
.atlas-legend svg{flex:none}
.atlas-outline{position:absolute;left:50%;transform:translateX(-50%);top:8px;z-index:3;max-width:260px;max-height:40%;overflow:auto;background:rgba(7,13,21,.9);padding:2px 8px}

/* ---- Start a session (Sessions 1, t-p25-srx1t3): one dialog for the Hall card, the Raid Log row and the Atlas stop card ------ */
.ss-overlay{position:fixed;inset:0;z-index:60;background:rgba(3,7,12,.66);display:flex;align-items:center;justify-content:center;padding:16px}
.ss-panel{--hud-cyan:#4DE3F5;width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;display:flex;flex-direction:column;gap:8px;background:#0B131D;border:1px solid var(--accent);padding:14px 16px;font-family:'Chakra Petch',var(--font)}
.ss-title{margin:0;font-size:14px;letter-spacing:2px;text-transform:uppercase;color:var(--hud-cyan)}
.ss-who{border:1px solid #22384F;padding:6px 10px;margin:0;display:flex;flex-direction:column;gap:4px}
.ss-choice{display:flex;align-items:flex-start;gap:8px;cursor:pointer}
.ss-choice.off{opacity:.6;cursor:not-allowed}
.ss-flags{border-left:3px solid var(--amber,#F0A500);padding-left:8px}
.ss-line{white-space:pre-wrap;word-break:break-all;margin:0;padding:8px 10px;border:1px solid #22384F;background:#08111B;font:12px/1.5 'JetBrains Mono',ui-monospace,monospace;user-select:all}
.ss-brief pre{white-space:pre-wrap;word-break:break-word;max-height:240px;overflow:auto;margin:4px 0;padding:6px 8px;border:1px solid #22384F;background:#08111B}

/* ---- Polish 1 (t-p25-os6j3g): the What's Happening views, the Atlas and the session dialog never animate with reduced motion, every
   control there shows the same focus ring as the HUD, and nothing at phone width scrolls sideways. -------------------------------- */
@media (prefers-reduced-motion:reduce){.wh-widgets *,.atlas-page *,.ss-overlay *,.wh-rec-tabs *{animation:none!important;transition:none!important}}
:where(.wh-widgets,.atlas-page,.ss-overlay,.wh-rec-tabs) :is(a,button,select,input,summary,[tabindex]):focus-visible{outline:2px solid var(--hud-cyan,#4DE3F5);outline-offset:2px}
.wh-widgets,.atlas-page{max-width:100%;min-width:0}
.hall-card,.hall-tile,.raid-task,.hall-in{overflow-wrap:anywhere}

/* ---- t-p19-xdmhwv: the compact Today and Loadout are one short line each, so they fit a short window without scrolling: Today shows
   a small ring and its three numbers in a row (the streak and While you were away stay in the full form); Loadout shows the four
   slots by name only (the stats are on the character plate and the stat sheet). -------------------------------------------------- */
#v-my-hq [data-frame="rings"][data-fit="compact"] .cockpit-fb svg{width:44px;height:44px}
#v-my-hq [data-frame="rings"][data-fit="compact"] .cockpit-fb .stack{flex-direction:row;flex-wrap:wrap;gap:2px 10px}
#v-my-hq [data-frame="rings"][data-fit="compact"] .cockpit-fb .stack>.muted{display:none}
#v-my-hq [data-frame="you"][data-fit="compact"] .hud-loadout-foot,#v-my-hq [data-frame="you"][data-fit="compact"] .hud-gs-k{display:none}
#v-my-hq [data-frame="you"][data-fit="compact"] .hud-gs{padding:3px 6px}

/* ---- t-p19-dyrypr: on a wide or ultrawide window My HQ's grid has 4 or 8 more columns (--cols, set by the cockpit) for more panels */
body[data-hud-fit="true"] #v-my-hq .cockpit>.cockpit-grid{grid-template-columns:repeat(var(--cols,12),minmax(0,1fr))}

/* The Log and Activity bar at the bottom of every page is retired: the Log is a card in the right HUD flipper (owner 2026-11-20). The element stays so the Activity frame and key V keep working. */
body.hud-page .hud-bottom{display:none}
