/* One persistent flight record and two wallets, with matching touch heights. */
body>header{display:grid;grid-template-columns:minmax(95px,1fr) minmax(140px,208px) minmax(92px,148px);height:54px;min-height:54px;gap:5px;padding:5px 14px}
body>header .brand{display:none}
body>header #career-open{min-width:0;width:100%;max-width:180px;height:44px;min-height:44px;padding:3px 5px;display:flex;align-items:center;gap:6px;text-align:left;background:none;border:0;box-shadow:none;border-radius:3px;color:#e5dfcf}
body>header #career-open .career-badge{width:23px;height:30px;flex:none}
body>header #career-open>span{display:flex;flex-direction:column;min-width:0;gap:3px}
body>header #career-title{font:700 11px/1.2 var(--display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body>header #career-expeditions{font:9px/1.2 var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a9bec3}
body>header .header-currencies,body>header .header-actions{display:grid;width:100%;min-width:0;max-width:none;margin:0;gap:5px;grid-template-columns:repeat(2,minmax(0,1fr))}
body>header .currency-wallet,body>header .header-actions button{height:44px;min-height:44px;min-width:0;width:100%;padding:3px 6px;border:1px solid #526b75;border-bottom:2px solid #14212b;border-radius:3px;background:#1c2d36;box-shadow:inset 0 1px #b9c8b719}
body>header .currency-wallet{gap:5px}
body>header .currency-wallet strong{font-size:15px}
body>header .currency-wallet small{font-size:8px;height:16px}
body>header .currency-token{width:16px;height:21px}
body>header .header-actions button{font:11px var(--display)}
body>header #settings-open{padding:7px;width:100%}
body>header #settings-open svg{width:24px;height:24px}
body>header .scrap-wallet{cursor:pointer;text-align:left}
body>header .scrap-wallet small{display:flex;align-items:center;gap:2px}
body>header .scrap-wallet small:after{content:'+';display:inline-grid;place-items:center;width:16px;height:16px;flex:none;border-radius:3px;background:#d4e5cb;color:#1c2d36;font:700 15px/1 var(--body);letter-spacing:0}
body[data-phase="loot"]>header,body[data-docked="true"]>header{grid-template-columns:minmax(95px,1fr) minmax(140px,208px) 44px}
body[data-phase="loot"]>header .header-actions,body[data-docked="true"]>header .header-actions{grid-template-columns:1fr;max-width:none}
body[data-docked="true"]>header #dock-open{display:none}
@media(max-width:480px){
 body>header{padding-inline:8px;gap:4px;grid-template-columns:minmax(75px,1fr) minmax(124px,1.4fr) 92px}
 body>header .header-currencies,body>header .header-actions{gap:4px}
 body>header #career-open{padding-inline:0;gap:4px}
 body>header #career-open .career-badge{width:20px;height:28px}
 body>header #career-title{font-size:10px}
 body>header #career-expeditions{font-size:8px}
 body>header .currency-wallet{padding-inline:4px;gap:3px}
 body[data-phase="loot"]>header,body[data-docked="true"]>header{grid-template-columns:minmax(90px,1fr) minmax(140px,1.4fr) 44px}
}
@media(max-width:360px){
 body>header #career-open{gap:3px}
 body>header #career-open .career-badge{display:none}
 body>header #career-title{font-size:11px;line-height:1.05;white-space:normal}
 body>header #career-expeditions{font-size:8px}
 body[data-phase="loot"]>header #career-open .career-badge,body[data-docked="true"]>header #career-open .career-badge{display:block;width:16px;height:24px}
 body>header .currency-wallet .currency-token{width:12px;height:18px}
 body>header .currency-wallet strong{font-size:12px}
 body>header .currency-wallet{padding-inline:1px}
 body>header .currency-wallet small{font-size:0;letter-spacing:0;height:16px}
}

[data-fit-weapon="laser"]{--fit-color:#ffbe72}
[data-fit-weapon="mortar"]{--fit-color:#c9a7f2}
[data-fit-weapon="tesla"]{--fit-color:#7fe3ee}
.briefing-arrival{position:absolute;inset:15px 17px auto;z-index:2;pointer-events:none}
.briefing-arrival .site-label{position:relative;inset:auto}
.briefing-arrival #planet-tags{flex-wrap:wrap;row-gap:4px}
.briefing-arrival #planet-tags .briefing-fit-chip{color:var(--fit-color);border-color:var(--fit-color)}
#viewport:has(#planet-tags) .briefing-arrival #crate-trail,#viewport:has(#planet-tags) .briefing-arrival #mantle-indicator{position:relative;inset:auto;transform:none}
.briefing-arrival #crate-trail{margin-top:4px}
.briefing-arrival #mantle-indicator{width:max-content;margin-top:20px}
.briefing-arrival #salvage-bank-info{pointer-events:auto;top:calc(100% + 3px)}
@media(max-height:700px) and (orientation:portrait){
 .briefing-arrival{inset:12px 13px auto}
 .briefing-arrival #mantle-indicator{margin-top:16px}
 .briefing-arrival #salvage-bank-info{top:100%}
}
