
/* oMATIC Minds v0.6.8.52 isolated Image Studio Dictate enablement.
   Dictate targets the real Image Studio form, not the outer composer shell,
   so microphone support no longer changes the typing tool layout. */

body.om-image-studio-route #om-image-studio-generate-form[data-om-dictate-enabled="1"] .om-chat-composer-mic {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

body.om-image-studio-route #om-image-studio-generate-form[data-om-dictate-enabled="0"] .om-chat-composer-mic,
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-mic[disabled] {
  opacity: .45 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Dictate controls stay hidden unless the shared Dictate JS explicitly opens them. */
body.om-image-studio-route #om-image-studio-generate-form .om-image-dictate-panel[hidden],
body.om-image-studio-route #om-image-studio-generate-form .om-image-dictate-action[hidden] {
  display: none !important;
}

/* Desktop/tablet: Dictate overlay floats above the existing row and does not re-template the composer. */
@media (min-width: 641px) {
  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target {
    position: relative !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target .om-chat-composer-mic {
    display: inline-flex !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target.is-dictating .om-image-dictate-panel {
    position: absolute !important;
    left: 54px !important;
    right: 104px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    background: rgba(15,16,20,.94) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    pointer-events: none !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target.is-dictating .om-image-dictate-action {
    position: relative !important;
    z-index: 6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
  }
}

/* Phone: keep the existing stacked typing tool; Dictate remains hidden on phone width by existing mobile composer rules. */
@media (max-width: 640px) {
  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target .om-chat-composer-mic,
  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target .om-image-dictate-panel,
  body.om-image-studio-route #om-image-studio-generate-form.om-image-studio-dictate-target .om-image-dictate-action {
    display: none !important;
  }
}
