[hidden] {
  display: none !important;
}

.session-status {
  display: block;
  color: #b8aebf;
  font-size: 0.7rem;
}

.header-signout {
  align-items: center;
  border-color: #ff8fba66;
  color: #ffc2da;
  text-decoration: none;
}

@media (max-width: 800px) {
  .header-signout {
    display: inline-flex;
  }

  .session-status {
    margin-bottom: 12px;
  }

  .admin-shell header {
    padding-bottom: 18px;
  }
}

/* Direct picture editing: drag the picture to move it, drag the corner to resize it. */
.direct-media-editor {
  isolation: isolate;
  box-shadow: 0 0 0 1px #ff76df26;
}
.direct-media-editor img,
.direct-media-editor video,
.direct-media-editor iframe {
  pointer-events: none;
  user-select: none;
}
.media-move-surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.media-move-surface:focus-visible { box-shadow: inset 0 0 0 3px #ff8ee7; }
.is-moving .media-move-surface { cursor: grabbing; }
.media-drag-hint {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 6px 9px;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  background: #100a18d9;
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .03em;
  pointer-events: none;
  opacity: .82;
}
.media-resize-handle {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 7px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff70;
  border-radius: 10px;
  background: linear-gradient(135deg, #fa5bd7, #8d5cff);
  color: #fff;
  box-shadow: 0 7px 20px #0008;
  font-size: 1rem;
  cursor: nwse-resize;
  touch-action: none;
}
.is-moving,
.is-resizing { box-shadow: 0 0 0 3px #ff76df80, 0 12px 35px #0008; }
.home-preview[data-media-preview="maxPortrait"],
.home-preview[data-media-preview="beboPortrait"] {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
}
@media (hover:hover) {
  .direct-media-editor:not(:hover):not(:focus-within) .media-drag-hint { opacity: 0; }
}
