.mentor-cockpit-dialog {
  width: min(1440px, calc(100% - 32px));
  height: min(980px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #395979;
  border-radius: 16px;
  background: #0b172a;
  color: #fff;
  box-shadow: 0 24px 70px rgb(3 12 24 / 48%);
}

.mentor-cockpit-dialog::backdrop {
  background: rgb(5 16 31 / 68%);
}

.mentor-cockpit-dialog__header {
  display: contents;
}

.mentor-cockpit-dialog__header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mentor-cockpit-dialog__header button {
  position: absolute;
  inset-block-start: max(8px, env(safe-area-inset-top));
  inset-inline-end: max(8px, env(safe-area-inset-right));
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #5a7493;
  border-radius: 50%;
  background: #0b172a;
  color: #fff;
  cursor: pointer;
}

.mentor-cockpit-dialog__header button:hover {
  background: #254568;
}

.mentor-cockpit-dialog__header button:focus-visible {
  outline: 2px solid #ffd21f;
  outline-offset: -3px;
}

.mentor-cockpit-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Keep the embedded room controls clear of Mentor's close button. */
.cockpit-room .room-brandbar .brandbar-inner {
  padding-inline-end: calc(52px + max(8px, env(safe-area-inset-right)));
}

@media (max-width: 760px) {
  .mentor-cockpit-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}
