@media (max-width: 1100px) {
  .wf-header-hint {
    display: none;
  }
  .wf-pan-hint {
    display: none;
  }
}
@media (max-width: 740px) {
  .main-scroll:has(#project-page.wf-page:not([hidden])) {
    overflow: auto;
  }
  #project-page.wf-page {
    height: auto;
  }
  .wf-header {   
    flex-wrap: wrap;
    padding: var(--ds-page-pad) var(--ds-page-pad) var(--ds-space-4);
  }
  .wf-heading h2 {
    font-size: var(--ds-size-18);
    line-height: var(--ds-leading-heading);
    gap: 8px;
    flex-wrap: wrap;
  }
  .wf-heading p {
    max-width: 320px;
  }
  .wf-heading .widget-icon {
    display: none;
  }
  .wf-page > .wf-sections {
    margin-inline: var(--ds-page-pad);
    max-width: calc(100% - 2 * var(--ds-page-pad));
  }
  .wf-stage-heading {
    padding: var(--ds-space-4) var(--ds-page-pad) 0;
    flex-wrap: wrap;
  }
  #wf-section-note {
    display: none;
  }
  .wf-search {
    width: 100%;
  }
  .wf-search-label {
    min-height: 40px;
  }
  .wf-search input {
    font-size: var(--type-support);
  }
  .wf-search-results {
    width: 100%;
    max-height: 280px;
  }
  .wf-canvas-shell {
    min-height: 0;
    flex: none;
    overflow: visible;
  }
  .wf-canvas {
    min-height: 0;
    overflow: visible;
    flex: none;
    cursor: default;
    width: 100%;
  }
  #project-page:not(.wf-full) #wf-world-size {
    width: auto !important;
    height: auto !important;
    margin: 0;
  }
  #project-page:not(.wf-full) #wf-world {
    display: grid;
    gap: 12px;
    position: relative;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    padding: 16px;
  }
  .wf-connections {
    display: none;
  }
  #project-page:not(.wf-full) .wf-node-wrap {
    position: relative;
    left: auto !important;
    top: auto !important;
    display: grid;
    justify-items: start;
    gap: 8px;
    width: 100%;
    height: auto;
  }
  #project-page:not(.wf-full) .wf-chip {
    position: static;
  }
  #project-page:not(.wf-full) .wf-node {
    position: relative;
    inset: auto;
    height: 100px;
  }
  .wf-port {
    display: none;
  }
  .wf-footer {
    padding: 8px 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }
  .wf-footer-note {
    font-size: var(--type-support);
  }
  .wf-zoom {
    display: none;
  }
  .wf-mobile-hint {
    display: block;
    font-size: var(--type-support);
    color: var(--muted);
  }
  .wf-minimap {
    display: none;
  }
  .main-scroll:has(#project-page.wf-full:not([hidden])) {
    overflow: hidden;
  }
  #project-page.wf-full {
    height: 100%;
  }
  .wf-full .wf-canvas-shell {
    min-height: 240px;
    flex: 1;
    overflow: hidden;
  }
  .wf-full .wf-canvas {
    flex: 1;
    overflow: auto;
    cursor: grab;
  }
  .wf-full .wf-connections {
    display: block;
  }
  .wf-full .wf-node-wrap {
    position: absolute;
    width: 232px;
    height: 112px;
  }
  .wf-full .wf-port {
    display: grid;
  }
  .wf-full .wf-zoom {
    display: flex;
  }
  .wf-full .wf-zoom button {
    min-width: 32px;
    height: 32px;
  }
  .wf-full .wf-mobile-hint {
    display: none;
  }
  .wf-full .wf-minimap {
    display: block;
    width: 120px;
    right: 10px;
    top: auto;
    bottom: 10px;
    padding: 4px;
  }
  .wf-full #wf-map {
    height: 68px;
  }
  .wf-full .wf-minimap.is-collapsed {
    width: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wf-source-details summary > .icon {
    transition: none;
  }
}
