.node-content{height:auto;min-height:1em;white-space:pre-wrap;overflow-wrap:anywhere}
.node-content,.node-editor{unicode-bidi:plaintext}
/* Arabic fallback fonts may lack an italic face. Allow the requested slant on
   board text without changing the typography of application controls. */
.node-content,.node-editor{font-synthesis:weight style}
/* Box selection and native text selection are separate interactions. */
.board-node:not(.editing) .node-content,.board-node:not(.editing) .node-content *{user-select:none;-webkit-user-select:none}
.board-node.note .node-content,.board-node.text .node-content{text-align:start}
.board-node.shape .node-content{display:block;height:auto;text-align:center;line-height:1.2}
.board-node.shape,.board-node.shape.diamond{padding:0;justify-content:center}
.board-node.shape .node-content{flex:0 0 auto;max-width:none;max-height:none}
/* Let the browser rerasterize text at the current canvas scale. */
#world{will-change:auto}
.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-editor[contenteditable]:not(.node-text-measure):empty:before{content:attr(data-placeholder);color:#665e6270;pointer-events:none}
.text-selection-toolbar{position:fixed;z-index:1000;display:flex;align-items:center;gap:7px;max-width:calc(100vw - 16px);padding:8px;background:#fff;border:1px solid #ded5ed;border-radius:10px;box-shadow:0 6px 26px #30234c26;font:12px Arial,sans-serif;color:#514765;user-select:none}
.text-selection-toolbar[hidden]{display:none}.text-selection-toolbar>span{font-size:10px;color:#8a7e9b;padding:0 4px}.text-selection-toolbar label{display:flex;align-items:center;gap:5px;font-size:11px}.text-selection-toolbar input{height:32px;border:1px solid #ddd5ea;border-radius:5px;background:#fff;color:#514765}.text-selection-toolbar input[type=color]{width:33px;padding:3px;cursor:pointer}.text-selection-toolbar input[type=number]{width:53px;padding:0 4px;font-size:14px}.text-selection-toolbar button{height:32px;min-width:30px;border-radius:5px;border:1px solid #e7e1ed;background:#fff;color:#514765}.text-selection-toolbar button[aria-pressed=true]{color:#6545cb;background:#eee7ff;border-color:#c5b4ed}.text-selection-toolbar button:focus-visible,.text-selection-toolbar input:focus-visible{outline:2px solid #8870d8;outline-offset:1px}
@media(max-width:420px){.text-selection-toolbar{gap:4px;padding:6px}.text-selection-toolbar>span{display:none}.text-selection-toolbar input,.text-selection-toolbar button{height:38px}.text-selection-toolbar button{min-width:34px}}
.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}}

@media(max-width:700px){.object-toolbar .symmetrize-button{display:none}}
.color-wheel{display:block;width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:conic-gradient(#ef4444,#facc15,#22c55e,#06b6d4,#6366f1,#d946ef,#ef4444);box-shadow:0 0 0 1px #9d91b0}
.object-color-controller{width:280px;max-width:calc(100vw - 36px);padding:12px;color:inherit}
.object-color-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}
.object-color-heading strong{font-size:13px}.object-color-heading small{display:block;font-size:10px;opacity:.7;margin-top:5px}
.object-color-picker-label{display:flex;flex-direction:column;gap:8px;font-size:11px}
.object-color-picker-label input[type=color]{display:block;width:100%;height:50px;padding:4px;border:1px solid var(--border);background:transparent;border-radius:8px;cursor:pointer}
.object-color-form{margin-top:14px}.object-color-form>label{display:block;font-size:11px;margin-bottom:7px}.object-color-form>div{display:flex;gap:8px}
.object-color-form input{width:100%;min-width:0;height:38px;padding:8px 10px;border:1px solid #dcd5e7;border-radius:7px;background:#fff;color:#514765;font:14px monospace;direction:ltr}
.object-color-form .button{height:38px;padding:0 12px}.object-color-form input[aria-invalid=true]{border-color:#cb4560}
.object-color-form input:focus-visible{outline:2px solid #a18ae9;outline-offset:2px}
.object-color-form p{font-size:10px;line-height:1.5;margin:8px 0 0;opacity:.8;min-height:30px}
.object-color-controller .color-palette{grid-template-columns:repeat(6,1fr);gap:7px;padding:14px 0 0;border-top:1px solid var(--border);margin-top:10px}
.object-color-controller .color-palette .color-swatch{width:32px;height:32px}
.text-size-button{touch-action:none;cursor:ns-resize}
.drag-text-sizing,.drag-text-sizing *{cursor:ns-resize!important;user-select:none!important}
.text-resize-feedback{position:fixed;z-index:1001;padding:9px 12px;border-radius:8px;background:#302b3e;color:#fff;box-shadow:0 3px 14px #262b3620;font:12px Arial,sans-serif;pointer-events:none;white-space:nowrap}
@media(max-width:700px){.object-toolbar>[data-action=font-size]{display:flex;min-height:44px;min-width:72px}.object-toolbar .text-size-button .text-size-label{display:inline}}
@media(max-width:700px){.object-toolbar .custom-color-button{display:none}.object-color-picker-label input[type=color]{height:54px}.object-color-form input{font-size:16px;height:44px}.object-color-form .button{height:44px}}

