/* W1h local candidate. Loaded after the byte-matched public W1g stylesheet.
   On short narrow screens, keep a useful canvas without removing Stamp tools.
   This file is not referenced by the production site. */
@media (max-width: 390px) and (max-height: 700px) {
  #miki-screenshot-studio-root .mss-page.is-workspace-open .mss-header {
    flex-basis: 46px;
    min-height: 46px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open .mss-preview-head {
    min-height: 36px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open .mss-actions {
    flex-basis: 48px;
    min-height: 48px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open .mss-action-buttons .mss-button {
    min-height: 44px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open .mss-workspace {
    grid-template-rows: minmax(0, 1fr) 180px;
  }
  /* Once the real dimensions and byte size appear, preserve that metadata and
     return its row's height to the photo by making the inspector scroll more. */
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open:has(.mss-compare.is-result-ready) .mss-workspace {
    grid-template-rows: minmax(0, 1fr) 160px;
  }
  /* The same Stamp limitation is already explained (more briefly) in the
     open inspector. Suppress only that redundant result line in this state;
     other processing warnings remain visible below the preview. */
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open:has(.mss-compare-art.is-tool-clone)
  .mss-result-warning.is-clone-explainer {
    display: none;
  }
  /* This placeholder says only that the output size is not known yet. The
     result dimensions and bytes remain visible after processing. */
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open
  .mss-compare:not(.is-result-ready) + .mss-result-meta {
    display: none;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open
  .mss-controls .mss-panel-head {
    min-height: 44px;
    margin-bottom: 4px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open
  .mss-draw-settings-head span {
    font-size: 11px;
    line-height: 1.15;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open
  .mss-draw-fields {
    margin-top: 6px;
  }
  #miki-screenshot-studio-root .mss-page.is-workspace-open.is-settings-open
  .mss-clone-source {
    margin-top: 4px;
  }
}
