/* Baskibu Designer 0.23.0-dev.67 — typography direct-edit mobile repair */

@media (max-width: 1024px) {
  /* Text selection is an editing state, not a group-management state. */
  .bbd-pro-workspace-v0230-dev67 .bbd-context-route-toolbar[data-toolbar-kind="text"] {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:min(420px,calc(100% - 18px)) !important;
    max-width:calc(100% - 18px) !important;
    min-width:0 !important;
    gap:3px !important;
    padding:4px !important;
    overflow:hidden !important;
  }

  .bbd-pro-workspace-v0230-dev67 .bbd-context-route-toolbar[data-toolbar-kind="text"] [data-bbd-context-action] {
    min-width:0 !important;
    width:100% !important;
    min-height:38px !important;
    padding:6px 4px !important;
    gap:4px !important;
    justify-content:center !important;
    white-space:nowrap !important;
  }

  .bbd-pro-workspace-v0230-dev67 .bbd-context-route-toolbar[data-toolbar-kind="text"] .bbd-context-label,
  .bbd-pro-workspace-v0230-dev67 .bbd-context-route-toolbar[data-toolbar-kind="text"] .bbd-context-label-short {
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Object text controls opened from the floating toolbar reuse the known-good
     dev60 portal, but with a compact editor-first layout. */
  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open .bbd-editor-panel {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open [data-panel-content="context"] {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
  }

  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open [data-panel-content="context"] textarea,
  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open [data-panel-content="context"] input,
  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open [data-panel-content="context"] select {
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  #bbd-v60-mobile-sheet-host.bbd-dev67-context-open [data-panel-content="context"] textarea {
    min-height:84px !important;
    resize:none !important;
  }
}
