/* Bounded presentation adapter for the installed WorkflowStudio. Uses the existing
   Paya core; no node positions, graph transforms, handlers or permissions change. */
.wf-studio-page { min-width: 0; }
.wf-studio-page :where(.wf-designer-meta, .wf-workspace, .wf-palette, .wf-inspector, .wf-link-actions) { min-width: 0; }
.wf-studio-page .wf-designer-bar { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.wf-studio-page .wf-designer-meta { align-items: start; }
.wf-studio-page .wf-designer-bar > button { margin-top: 24px; }
.wf-studio-page .wf-designer-actions { gap: 8px; }
.wf-studio-page :where(.wf-note, .wf-link-code, .wf-inspector-head) { overflow-wrap: anywhere; }
.wf-studio-page .wf-inspector :where(input, select, textarea) { max-width: 100%; }
.wf-studio-page :where(.wf-palette-item, .wf-chip, .wf-version-chip, .wf-link):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wf-studio-page .wf-link-actions { flex-wrap: wrap; }

@media (min-width: 1181px) {
  .wf-studio-page .wf-workspace { grid-template-columns: 184px minmax(0, 1fr) minmax(260px, 300px); }
}
@media (max-width: 1180px) {
  .wf-studio-page .wf-designer-bar { grid-template-columns: minmax(0, 1fr); }
  .wf-studio-page .wf-designer-bar > button { margin-top: 0; justify-self: start; }
  /* Keep every node available in a scrollable palette without displacing the
     working canvas by an entire catalogue on tablet and industrial screens. */
  .wf-studio-page .wf-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    gap: 12px;
  }
  .wf-studio-page .wf-palette section { min-width: 0; }
  .wf-studio-page .wf-palette > .wf-note { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .wf-studio-page .wf-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 240px; padding: 12px; }
  .wf-studio-page :where(.wf-palette-item, .wf-chip, .wf-version-chip, .wf-link) { min-height: 56px; min-width: 56px; }
  .wf-studio-page .wf-palette-item { gap: 8px; margin-bottom: 8px; padding: 10px 8px; font: inherit; font-size: 14px; }
  .wf-studio-page .wf-palette-item > span { min-width: 0; overflow-wrap: anywhere; }
  .wf-studio-page .wf-designer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-studio-page .wf-designer-actions > button { width: 100%; min-width: 0; min-height: 56px; white-space: normal; }
  .wf-studio-page :where(.wf-status-filter, .wf-versions) { gap: 8px; }
  .wf-studio-page .wf-set-field { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .wf-studio-page .wf-palette .wf-palette-item { height: 80px; min-height: 80px; }
}
