
/* oMATIC Minds v0.6.8.36 clean mobile app menu + Image Studio composer visibility repair. */

/* The pull-down typing tray is mobile-only. Desktop/tablet must always show the full composer. */
@media (min-width: 861px) {
  .om-image-composer-mobile-handle {
    display: none !important;
  }

  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-composer-shell {
    height: auto !important;
    max-height: none !important;
    min-height: inherit !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding: inherit !important;
  }

  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-composer-shell #om-image-studio-generate-form,
  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-composer-shell .om-image-live-confirm-row,
  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-composer-shell .om-image-generation-submit-status {
    display: flex !important;
  }
}

/* Mobile: hide the old complex admin dropdown completely. Use the clean drawer instead. */
@media (max-width: 820px) {
  html.om-clean-mobile-menu-open,
  body.om-clean-mobile-menu-open {
    overflow: hidden !important;
  }

  body.om-clean-mobile-menu-open::before,
  body.om-clean-mobile-menu-open::after,
  html.om-clean-mobile-menu-open::before,
  html.om-clean-mobile-menu-open::after,
  body.om-drawer-open::before,
  body.om-drawer-open::after,
  html.om-drawer-open::before,
  html.om-drawer-open::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
  }

  .om-app-menu-shell > #om-app-header-menu.nav-dropdown-panel,
  .om-app-menu-shell.is-open > #om-app-header-menu.nav-dropdown-panel,
  .om-app-menu-shell[data-om-app-menu-open="1"] > #om-app-header-menu.nav-dropdown-panel,
  .om-app-menu-shell:focus-within > #om-app-header-menu.nav-dropdown-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .om-clean-mobile-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147482500 !important;
    background: rgba(0,0,0,.58) !important;
    backdrop-filter: blur(4px) !important;
  }

  .om-clean-mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 2147482600 !important;
    width: min(90vw, 380px) !important;
    max-width: min(90vw, 380px) !important;
    min-width: min(90vw, 320px) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(8,9,13,.992) !important;
    border-right: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 26px 0 90px rgba(0,0,0,.72) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
  }

  .om-clean-mobile-menu-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255,255,255,.13) !important;
  }

  .om-clean-mobile-menu-brand {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .om-clean-mobile-menu-close {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .om-clean-mobile-menu-section {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
  }

  .om-clean-mobile-menu-title {
    color: #fb7185 !important;
    font-size: .70rem !important;
    font-weight: 950 !important;
    letter-spacing: .16em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    margin: 2px 0 0 !important;
  }

  .om-clean-mobile-menu-section a,
  .om-clean-mobile-menu-section button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.045) !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    font-size: .92rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
  }

  .om-clean-mobile-menu-footer {
    width: 100% !important;
    margin-top: 2px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255,255,255,.14) !important;
  }

  .om-clean-mobile-menu-footer form,
  .om-clean-mobile-menu-footer button {
    width: 100% !important;
  }

  .om-clean-mobile-menu-footer button {
    min-height: 42px !important;
    justify-content: center !important;
    border-radius: 14px !important;
  }

  /* Collapsed Image Studio composer: leave real usable space for image buttons. */
  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-messages {
    padding-bottom: 70px !important;
  }

  body.om-image-composer-collapsed.om-image-studio-route .om-image-generation-grid {
    padding-bottom: 70px !important;
  }

  body.om-image-composer-collapsed.om-image-studio-route .om-image-generation-card {
    transform: translateY(-90px) !important;
    margin-bottom: 0 !important;
  }

  body.om-image-composer-collapsed.om-image-studio-route .om-image-studio-composer-shell {
    max-height: 56px !important;
    height: 56px !important;
    padding: 7px 10px !important;
  }
}
