/* Native top-layer presentation keeps post actions outside profile/card clipping.
 * The existing form, fields and submitters stay owned by the original post. */
body.muze-profile-post-menu-open { overflow: hidden !important; }
.muze-profile .muze-profile__post.is-post-menu-open { content-visibility: visible !important; }
.muze-profile .muze-profile__post-options > summary {
  min-width: 44px !important; min-height: 44px !important;
  width: 44px !important; height: 44px !important;
}
.muze-profile .muze-profile__post-menu-dialog {
  position: fixed !important; inset: auto !important;
  left: var(--muze-post-menu-left, 8px) !important;
  top: var(--muze-post-menu-top, 8px) !important;
  width: var(--muze-post-menu-width, min(400px, calc(100vw - 16px))) !important;
  max-width: none !important; min-width: 0 !important;
  max-height: min(var(--muze-post-menu-max-height, calc(100dvh - 16px)), calc(100dvh - 16px)) !important;
  min-height: 0 !important; height: auto !important;
  margin: 0 !important; padding: 0 !important; box-sizing: border-box !important;
  border: 1px solid color-mix(in srgb, var(--muze-profile-text, #fff) 20%, transparent) !important;
  border-radius: 18px !important; background: #151118 !important; color: #f7f4f8 !important;
  box-shadow: 0 24px 80px #0008 !important; overflow: hidden !important;
  transform: none !important; contain: none !important;
  font: 400 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
.muze-profile .muze-profile__post-menu-dialog:not([open]) { display: none !important; }
.muze-profile .muze-profile__post-menu-dialog[open] { display: flex !important; flex-direction: column !important; }
.muze-profile .muze-profile__post-menu-dialog::backdrop { background: #08060db3; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-bar {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  flex: 0 0 auto; padding: 8px 12px !important; min-height: 60px; box-sizing: border-box;
  border-bottom: 1px solid #ffffff1a; background: #211a27;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-bar h2 {
  margin: 0 !important; color: inherit !important; font: 750 18px/1.25 system-ui, sans-serif !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-bar button {
  flex: 0 0 auto; min-height: 44px !important; min-width: 64px !important; width: auto !important;
  padding: 8px 12px !important; border: 1px solid #ffffff2b !important; border-radius: 10px !important;
  background: #ffffff0c !important; color: #fff !important; font: 650 14px/1 system-ui, sans-serif !important;
}
.muze-profile .muze-profile__post-menu-dialog > form {
  position: static !important; inset: auto !important; width: 100% !important; max-width: none !important;
  display: block !important; flex: 1 1 auto !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; overflow: auto !important; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #78637f #151118; box-sizing: border-box !important;
}
.muze-profile .muze-profile__post-menu-dialog [hidden] { display: none !important; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-home > header { display: none !important; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor {
  max-height: none !important; overflow: visible !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor > header strong { display: none; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor > header small {
  font: 400 13px/1.4 system-ui, sans-serif !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor > header > button {
  height: 44px !important; width: 44px !important; min-height: 44px !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-home nav { padding: 8px; gap: 4px; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-home nav > button { min-height: 60px !important; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-home nav strong { font-size: 14px !important; line-height: 1.3 !important; }
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-home nav small { font-size: 12px !important; line-height: 1.4 !important; }
.muze-profile .muze-profile__post-menu-dialog :is(input:not([type=checkbox]),textarea,select) {
  min-height: 44px !important; font: 400 16px/1.4 system-ui, sans-serif !important;
  box-sizing: border-box !important; min-width: 0; max-width: 100%;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-edit-fields label {
  font: 600 13px/1.4 system-ui, sans-serif !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-edit-toggles label {
  min-height: 44px; display: flex !important; align-items: center; gap: 8px;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor > footer {
  position: static; padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-editor > footer button {
  min-height: 44px !important; font-size: 14px !important;
}
.muze-profile .muze-profile__post-menu-dialog :is(button,input,textarea,select):focus-visible {
  outline: 2px solid #d7c6ec !important; outline-offset: -3px !important;
}
.muze-profile .muze-profile__post-menu-dialog .muze-profile__post-menu-notice {
  flex: 0 0 auto; margin: 0 !important; padding: 10px 14px !important; background: #38212e;
  color: #fff; font: 400 13px/1.4 system-ui, sans-serif; overflow-wrap: anywhere;
  max-height: 25vh; overflow: auto;
}
