/* Keep the canvas usable while the properties panel is resized. */
.wb-app[data-shell="desktop"]:not(.wb-panel-off) .wb-body {
  grid-template-columns: var(--wb-rail-width, 56px) minmax(0, 1fr) var(--wb-panel-width, 380px);
}
.wb-app.wb-tools-wide { --wb-rail-width: 224px; }
.wb-app[data-shell="desktop"] .wb-panel { position: relative; }
.wb-app[data-shell="tablet"] .wb-panel { width: var(--wb-panel-width, 360px); max-width: calc(100% - 56px); }
.wb-panel { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.wb-panel-body { min-width: 0; overflow-x: hidden; overflow-wrap: anywhere; }
.wb-panel .wb-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-panel .wb-vp-list, .wb-panel .wb-vp-body, .wb-panel .wb-field { grid-template-columns: minmax(0, 1fr); }
.wb-panel .wb-vp-row, .wb-panel .wb-vp-head, .wb-panel .wb-vp-group { min-width: 0; max-width: 100%; }
.wb-panel .wb-field, .wb-panel .wb-psection, .wb-panel .wb-grid2 > *, .wb-panel .wb-row > * { min-width: 0; max-width: 100%; }
.wb-panel .wb-btn { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.wb-panel input, .wb-panel select, .wb-panel textarea { min-width: 0; max-width: 100%; }
.wb-panel .wb-seg { flex-wrap: wrap; max-width: 100%; }
.wb-panel .wb-vp-row summary { overflow-wrap: anywhere; }
.wb-panel-resizer {
  position: absolute; z-index: 3; left: -5px; top: 0; bottom: 0; width: 10px;
  cursor: col-resize; touch-action: none; user-select: none; outline: none;
}
.wb-panel-resizer::after {
  content: ""; position: absolute; top: calc(50% - 24px); left: 3px; width: 4px; height: 48px;
  border-radius: 4px; background: var(--wb-muted, #64748b); opacity: .45;
}
.wb-panel-resizer:hover::after, .wb-panel-resizer:focus-visible::after, .wb-resizing-panel .wb-panel-resizer::after { opacity: 1; background: var(--wb-accent, #0f766e); }
.wb-panel-resizer:focus-visible { box-shadow: inset 0 0 0 2px var(--wb-focus, #0f766e); }
.wb-resizing-panel, .wb-resizing-panel * { cursor: col-resize !important; user-select: none !important; }
[data-shell="mobile"] .wb-panel-resizer { display: none; }
@media (pointer: coarse) { .wb-panel-resizer { width: 20px; left: -10px; } .wb-panel-resizer::after { left: 8px; } }
