.node-content{height:auto;min-height:1em;white-space:pre-wrap;overflow-wrap:anywhere}
.board-node.shape .node-content{display:block;height:auto;text-align:center;line-height:1.5}
.node-editor{display:block;box-sizing:border-box;width:100%;min-height:1em;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:inherit;font:inherit;line-height:1.5;letter-spacing:inherit;text-align:inherit;white-space:pre-wrap;overflow-wrap:anywhere;resize:none;user-select:text;-webkit-user-select:text;touch-action:pan-y;overscroll-behavior:contain;-webkit-text-size-adjust:100%}
.node-editor::placeholder{color:#665e6270;opacity:1}
.node-text-measure{position:fixed!important;top:0!important;left:-100000px!important;height:0!important;min-height:0!important;max-height:none!important;visibility:hidden;pointer-events:none;overflow:hidden}
.board-node.editing .node-content{height:auto;min-height:1em}
.board-node.editing{cursor:text}
.resize-handle{position:absolute;width:30px;height:30px;right:auto;bottom:auto;z-index:9;background:transparent;border:0;border-radius:8px;padding:0;display:grid;place-items:center;touch-action:none;transform:translate(-50%,-50%) scale(var(--inverse-zoom,1));box-shadow:none}
.resize-handle:after{content:'';width:10px;height:10px;border:2px solid #8170cd;border-radius:3px;background:white;box-shadow:0 1px 5px #53408c25}
.resize-handle:hover:after,.resize-handle:focus-visible:after{background:#8170cd;box-shadow:0 0 0 4px #e8e0f9}
.resize-nw{top:0;left:0;cursor:nwse-resize}.resize-ne{top:0;left:100%;cursor:nesw-resize}.resize-sw{top:100%;left:0;cursor:nesw-resize}.resize-se{top:100%;left:100%;cursor:nwse-resize}
.resize-size-label{position:absolute;left:50%;top:calc(100% + 30px * var(--inverse-zoom,1));transform:translateX(-50%) scale(var(--inverse-zoom,1));transform-origin:top center;padding:5px 9px;background:#fff;border:1px solid #e4dced;border-radius:6px;box-shadow:var(--shadow);font:11px 'DM Sans',sans-serif;color:#817092;white-space:nowrap;pointer-events:none;display:none}
.drag-resizing .resize-size-label,.resizing-object .resize-size-label{display:block}
.drag-resizing .board-node.selected:after,.resizing-object .board-node.selected:after{border-width:2px}
.resize-panel{position:absolute;right:24px;bottom:172px;width:310px;padding:16px;background:#fff;border:1px solid #e2daec;border-radius:13px;box-shadow:0 8px 30px #37234b18;z-index:23;user-select:none}
.resize-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.resize-panel-header strong{font-size:13px;font-weight:600}.resize-panel-header p{font-size:10px;color:#a197aa;margin:5px 0 0}.resize-panel-header .button{height:34px;padding:0 12px}
.size-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.size-fields label{font-size:10px;color:#9d91aa;display:block;margin:0 0 6px 2px}
.dimension-stepper{display:flex;align-items:center;border:1px solid #e4deeb;background:#faf9fd;border-radius:8px;overflow:hidden}
.dimension-stepper button{width:38px;height:40px;flex-shrink:0;font-size:19px;color:#89769f}.dimension-stepper button:hover{background:#eee7fb}
.dimension-stepper input{width:100%;min-width:0;height:40px;padding:0 3px;border:0;background:transparent;outline:0;font-size:13px;text-align:center;color:#655875;-moz-appearance:textfield}.dimension-stepper input::-webkit-inner-spin-button,.dimension-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.dimension-stepper:focus-within{border-color:#a795d0;box-shadow:0 0 0 2px #7160d809}
.size-presets{display:flex;gap:8px;margin-top:12px}.size-presets button{height:35px;border:1px solid #e6dfed;border-radius:7px;flex:1;font-size:11px;color:#8d7a9e}.size-presets button:hover{border-color:#aa99c8;background:#f5f0fb}
.aspect-option{display:flex;align-items:center;gap:7px;margin-top:13px;font-size:11px;color:#96899f}.aspect-option input{accent-color:#8170cd;width:15px;height:15px;margin:0}
.mobile-color-button,.mobile-object-more,.phone-note-editor{display:none}.mobile-color-button i{width:20px;height:20px;border-radius:50%;background:#e0d6f7;border:1px solid #91849c30;box-shadow:0 0 0 3px #f8f5fb}
.color-palette{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px}.color-palette .color-swatch{height:42px;width:42px;border-radius:50%;border:1px solid #b5a3c030}
body.presenting .resize-panel,body.presenting .phone-note-editor{display:none!important}
@media(pointer:coarse){.resize-handle{width:44px;height:44px}.resize-handle:after{width:13px;height:13px}}
@media(max-width:700px){
  .resize-handle{width:44px;height:44px;right:auto;bottom:auto}.resize-handle:after{height:13px;width:13px}
  .object-toolbar{overflow:visible;gap:3px;justify-content:space-between}.object-toolbar .context-button{height:42px;padding:0 7px;font-size:11px;gap:4px}.object-toolbar .context-button svg{width:15px;height:15px}
  .object-toolbar .color-options,.object-toolbar>.toolbar-divider,.object-toolbar>[data-action=duplicate],.object-toolbar>[data-action=delete],.object-toolbar>[data-action=font-size]{display:none}
  .object-toolbar .mobile-color-button,.object-toolbar .mobile-object-more{display:grid;height:42px;width:38px;min-width:38px}
  .resize-panel{left:12px;right:12px;bottom:calc(95px + var(--keyboard-offset,0px));width:auto;max-height:calc(var(--visible-height,100dvh) - 95px);overflow:auto;padding:16px;border-radius:14px}
  .resize-panel-header strong{font-size:14px}.resize-panel-header p{font-size:11px}.resize-panel-header .button{height:42px;font-size:12px;padding:0 16px}
  .size-fields label{font-size:12px}.dimension-stepper button{height:44px;width:42px}.dimension-stepper input{height:44px;font-size:16px}.size-presets button{height:42px;font-size:12px}.aspect-option{min-height:32px;font-size:12px}
  .resizing-object .bottom-controls,.resizing-object .canvas-topline,.resizing-object .phone-frame-nav{display:none}.resizing-object .object-toolbar{display:none!important}
  .phone-note-editor{display:block;position:absolute;left:14px;right:14px;top:18px;z-index:30;padding:20px;border:1px solid #6b557517;border-radius:14px;box-shadow:0 8px 35px #37234b18;text-align:left;max-height:calc(var(--visible-height,100dvh) - 150px);overflow:hidden}
  .phone-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px;color:#61505d80;font:11px 'DM Sans',sans-serif}.phone-editor-heading>span{text-transform:capitalize;font-weight:550}.phone-editor-heading small{font-size:9px}
  .phone-note-editor .node-editor{font-size:18px;line-height:1.5;min-height:48px;caret-color:#544068}
  .editing-note #world{opacity:.15;pointer-events:none}.editing-note .object-toolbar,.editing-note .resize-panel{display:none!important}
  .editing-note #viewport{background-color:#f7f7f3}.editing-bar{z-index:45}
}
@media(max-width:360px){.object-toolbar .context-button{padding:0 5px;font-size:10px}.object-toolbar .context-button svg{width:13px;height:13px}.object-toolbar .mobile-color-button,.object-toolbar .mobile-object-more{width:34px;min-width:34px}.dimension-stepper button{width:35px}.resize-panel{padding:14px}}
