/* Keep the exact approved PNG and its existing edge treatment; tighten the frame. */
.top.cockpit-approved-header{display:block;position:sticky;top:0;z-index:270;width:100vw;max-width:none;height:max(124px,26.666667vw);margin:0 calc(50% - 50vw);padding:0;gap:0;border:0;border-bottom:2px solid #12ace1;background:#021427;overflow:visible;box-shadow:0 3px 10px #08295035}
.cockpit-approved-header::before{content:"";display:block;position:absolute;inset:0;width:100%;height:100%;transform:none;background:linear-gradient(180deg,#021427 0%,#021427 30%,transparent 60%),url('assets/headers/MANCO_COCKPIT_HEADER_OPTION_2_APPROVED_EXACT.png') center center/cover no-repeat;pointer-events:none}
.cockpit-approved-art{position:absolute;top:0;left:5%;display:block;width:90%;max-width:none;height:100%;object-fit:cover;object-position:center center;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);clip-path:polygon(0 0,77% 0,77% 17%,100% 17%,100% 100%,0 100%);pointer-events:none}
/* The live identity now belongs to the left dashboard; mask only the baked profile. */
.cockpit-header-account{position:absolute;left:7.5%;bottom:4px;top:auto;right:auto;width:25%;min-width:150px;display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:7px;align-items:center;padding:6px 7px;color:#fff;background:linear-gradient(135deg,#062e4e,#021424);border:1px solid #218bba;border-radius:9px;box-shadow:inset 0 1px 8px #4cbdee38,0 2px 8px #00102080}
.cockpit-header-identity{min-width:0;text-align:left;line-height:1.13}
.cockpit-header-identity>strong{display:block;font-size:clamp(10px,1.65vw,15px);font-weight:850;color:#ffe398;text-shadow:0 0 9px #fbb63855}
.cockpit-header-identity>b{display:block;margin-top:2px;font-size:clamp(10px,1.65vw,15px);font-weight:800;overflow-wrap:anywhere}
.cockpit-header-identity>time{display:block;margin-top:3px;font-size:clamp(9px,1.45vw,13px);color:#b8e8ff}
.cockpit-header-avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;min-height:38px;border:0;box-shadow:0 0 0 1px #ffffffb3;border-radius:50%;background:radial-gradient(circle at 45% 40%,#148ec4,#073952 75%);color:#fff;font:800 13px/1 Arial,sans-serif;padding:0;cursor:pointer}
.cockpit-header-avatar.has-photo{background-image:var(--cockpit-photo);background-position:center;background-size:cover}
.cockpit-header-avatar.has-photo>#cockpitHeaderAvatarText{visibility:hidden}
.cockpit-header-chevron{position:absolute;top:100%;left:50%;transform:translateX(-50%);color:#79d8ff;background:transparent;font-size:17px;line-height:10px}
/* These are the original working controls, covering the four decorative tiles. */
.cockpit-approved-header .top-tools{position:absolute;left:33.4%;top:calc(50% - 4vw);bottom:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:34.2%;height:max(44px,7.7vw);gap:4px;align-items:stretch;z-index:1;border-radius:6px;background:#032341}
.cockpit-approved-header .top-tool,.cockpit-approved-header #openHub{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:44px;margin:0;padding:4px 2px;gap:4px;border:1.5px solid #5be1ff;border-radius:6px;background:linear-gradient(155deg,#5cdafb 0%,#119dd5 30%,#075b9e 72%,#033b68 100%);box-shadow:inset 0 1px 3px #d9fbff99,inset 0 -2px 8px #002b5477,0 0 8px #09baff50;color:#fff;font-size:clamp(8px,1.3vw,13px);font-weight:900;line-height:1.02;text-align:center;text-shadow:0 1px 2px #002f5c;text-decoration:none;cursor:pointer}
.cockpit-approved-header #showInventoryQr{grid-column:1}.cockpit-approved-header #openHeaderTranslator{grid-column:2}.cockpit-approved-header #quickAddress{grid-column:3}.cockpit-approved-header #openHub{grid-column:4}
.cockpit-approved-header .top-tool[hidden],.cockpit-approved-header #openHub[hidden]{display:none!important}
.cockpit-approved-header .top-tool-icon{width:22px;height:22px;font-size:20px;line-height:1}.cockpit-approved-header .top-tool-icon svg{width:22px;height:22px}
.cockpit-header-avatar:focus-visible,.cockpit-approved-header .top-tool:focus-visible{outline:3px solid #ffa63b;outline-offset:3px}
/* Existing profile nodes remain as controller bridges. The pin strip is retired. */
.cockpit-command-shell.staff-shell{width:100vw;max-width:none;margin:0 calc(50% - 50vw) 5px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body .cockpit-command-shell .staffbar{grid-template-columns:minmax(0,1fr);gap:0;padding:0;margin:0;border:0}
.cockpit-command-shell .staffbar>.personal-cockpit-card,.cockpit-command-shell .staffbar>.cockpit-action-center-card{display:none!important}
#pinnedMessageCard,#pinnedMessageGate,.pinned-message-card,.pinned-message-gate{display:none!important}
.cockpit-floating-alert{z-index:280;right:10px;box-shadow:0 2px 10px #00192c55}
/* Preserve the large Chief navigation labels while shaving icon/padding height. */
body.chief-cockpit .cockpit-bottom-v2{height:48px}
body.chief-cockpit .cockpit-bottom-v2 button{padding:2px 3px;gap:1px}
body.chief-cockpit .cockpit-bottom-v2 .cockpit-bottom-icon,body.chief-cockpit .cockpit-bottom-v2 svg,body.chief-cockpit .cockpit-bottom-v2 .cockpit-inventory-icon svg{width:24px;height:24px}
body.chief-cockpit .lightbox,body.chief-cockpit .part-modal,body.chief-cockpit .compare-modal,body.chief-cockpit .gate{bottom:48px}
@media(max-width:520px){
 .top.cockpit-approved-header{height:max(150px,calc(26.666667vw + 40px))}
 .cockpit-approved-art{top:40px;left:5%;width:90%;height:calc(100% - 40px)}
 .cockpit-approved-header::before{top:40px;height:calc(100% - 40px);clip-path:polygon(0 0,77% 0,77% 17%,100% 17%,100% 100%,0 100%)}
 .cockpit-header-account{left:5%;bottom:4px;width:31%;min-width:0;grid-template-columns:minmax(0,1fr) 30px;gap:3px;padding:5px 4px}
 .cockpit-header-identity>strong,.cockpit-header-identity>b{font-size:10px}.cockpit-header-identity>time{font-size:9px}
 .cockpit-header-avatar{width:29px;height:29px;min-height:29px;font-size:11px}.cockpit-header-chevron{font-size:14px;line-height:9px}
 .cockpit-approved-header .top-tools{left:33.4%;top:calc(50% + 20px - 4vw);width:62.6%;height:44px;gap:3px}
 .cockpit-approved-header .top-tool,.cockpit-approved-header #openHub{font-size:8px;gap:2px;padding:3px 1px}
 .cockpit-approved-header .top-tool-icon,.cockpit-approved-header .top-tool-icon svg{width:18px;height:18px}
}

/* Keep Translate inside the existing dashboard button footprint. */
.cockpit-approved-header #openHeaderTranslator>span:last-child{display:block;width:max-content;max-width:100%;white-space:nowrap;font-size:clamp(8px,1.45vw,15px);letter-spacing:-.035em}
