/* COCKPIT_FINAL: exact 3000 x 800 artwork, with existing live controls.
   Percentages follow the actual blank dash screens in the supplied PNGs.
   All size units refer to this one header; rotation cannot change alignment. */
.wrap > .top.cockpit-approved-header {
  position: relative;
  display: block;
  container-type: inline-size;
  width: calc(100% + 2 * var(--manco-gutter));
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 15 / 4;
  margin: 0 calc(-1 * var(--manco-gutter));
  padding: 0;
  border: 0;
  background: #073f79;
  overflow: visible;
  isolation: isolate;
}
.top.cockpit-approved-header::before { content: none; }
.cockpit-approved-header .cockpit-approved-art {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  mask-image: none;
  pointer-events: none;
}
.cockpit-approved-header .top-tools {
  position: absolute;
  left: 31.9%;
  top: 62.5%;
  width: 35.7%;
  height: 26.75%;
  bottom: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .45cqw;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  z-index: 1;
}
.cockpit-approved-header .top-tools :is(.top-tool, #openHub) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: .25cqw .05cqw;
  gap: .3cqw;
  border: max(1px, .18cqw) solid #68e7ff;
  border-radius: .85cqw;
  background: linear-gradient(155deg, #20d6ff, #058cff 35%, #075ce9 70%, #033777);
  box-shadow: inset 0 .1cqw .4cqw #dafcffbb, inset 0 -.25cqw .6cqw #00336caa, 0 0 .55cqw #00bcff9c;
  color: #fff;
  font: 900 clamp(8px, 1.64cqw, 16px) / .98 Arial, sans-serif;
  text-align: center;
  text-shadow: 0 .08cqw .2cqw #002657;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.cockpit-approved-header .top-tools :is(.top-tool, #openHub)::after {
  content: "";
  position: absolute;
  inset: -2px 0;
}
.cockpit-approved-header .top-tools :is(.top-tool, #openHub):active { filter: brightness(1.3); }
.cockpit-approved-header .top-tools :is(.top-tool, #openHub) > span:last-child { white-space: nowrap; }
.cockpit-approved-header .top-tools .top-tool-icon,
.cockpit-approved-header .top-tools .top-tool-icon svg {
  display: block;
  width: 3.2cqw;
  height: 3.2cqw;
  flex: none;
}
.cockpit-approved-header .cockpit-header-account {
  position: absolute;
  left: 73%;
  top: 66.5%;
  right: auto;
  bottom: auto;
  width: 24%;
  height: 25%;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.7cqw;
  align-items: center;
  gap: .55cqw;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 2;
}
.cockpit-approved-header .cockpit-header-identity {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.cockpit-approved-header .cockpit-header-identity > :is(strong, b, time) {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Arial, sans-serif;
  line-height: 1.08;
}
.cockpit-approved-header .cockpit-header-identity > strong {
  font-size: clamp(8.5px, 2.05cqw, 20px);
  font-weight: 900;
  color: #ffd83c;
  background: radial-gradient(ellipse at 45% 40%, #fff37a 0%, #ffcc33 48%, #ff8800 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 .6cqw #ffc44035;
}
.cockpit-approved-header .cockpit-header-identity > b { font-size: clamp(8.5px, 2.06cqw, 20px); font-weight: 900; color: white; }
.cockpit-approved-header .cockpit-header-identity > time { font-size: clamp(7.6px, 1.82cqw, 18px); color: #d8f5ff; font-weight: 500; }
.cockpit-approved-header .cockpit-header-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 5cqw;
  height: 5cqw;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #1465c9, #024197 55%, #00245a);
  box-shadow: 0 0 0 1px #ffffffb3;
  color: white;
  font: 900 2.2cqw / 1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.cockpit-approved-header .cockpit-header-avatar::after { content: ""; position: absolute; inset: -3px -7px; }
.cockpit-approved-header .cockpit-header-avatar.has-photo { background-image: var(--cockpit-photo); background-position: center; background-size: cover; }
.cockpit-approved-header .cockpit-header-chevron {
  position: absolute;
  top: 50%;
  left: calc(100% + .45cqw);
  transform: translateY(-50%);
  width: 1.4cqw;
  height: 1.4cqw;
  color: white;
  background: transparent;
}
.cockpit-approved-header :is(.top-tool, .cockpit-header-avatar, .cockpit-header-identity):focus-visible {
  outline: 2px solid #ffbe35;
  outline-offset: 2px;
}
.cockpit-approved-header .cockpit-role-menu {
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@container (max-width: 520px) {
  .cockpit-approved-header .top-tools :is(.top-tool, #openHub) { padding: 0; gap: .1cqw; letter-spacing: -.035em; }
  .cockpit-approved-header #quickAddress > span:last-child { transform: scaleX(.78); }
  .cockpit-approved-header .top-tools .top-tool-icon,
  .cockpit-approved-header .top-tools .top-tool-icon svg { width: 2.35cqw; height: 2.35cqw; }
}
@container (max-width: 360px) {
  .cockpit-approved-header #quickAddress > span:last-child { transform: scaleX(.66); }
}
