dialog.canvas-closable-dialog{box-sizing:border-box;max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);overflow:auto}
.canvas-dialog-header{position:sticky;top:-1px;z-index:5;display:flex;align-items:center;gap:16px;min-height:44px;margin-bottom:12px;padding:4px 0}
.canvas-dialog-header h2{flex:1;min-width:0;margin:0!important;padding:0!important;font-size:clamp(18px,2.4vw,26px)}
.canvas-dialog-close{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;margin-left:auto;border:1px solid #879a903d;border-radius:10px;background:#879a9018;color:inherit;font-size:30px;line-height:1;cursor:pointer}
.canvas-dialog-close:hover{background:#879a9038}.canvas-dialog-close:focus-visible{outline:2px solid #25ad87;outline-offset:2px}
dialog.canvas-closable-dialog button[hidden]{display:none!important}
.image-tool-settings{display:flex;flex-wrap:wrap;gap:12px 20px;margin:14px 0}
.image-tool-settings label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
.image-tool-settings input[type=range]{max-width:100%;width:160px;min-height:32px}
.image-tool-settings input[type=color]{width:44px;height:32px;padding:2px;cursor:pointer}
.image-tool-hint{font-size:12px;color:var(--muted,#82958b);line-height:1.6}
@media(max-width:600px){.canvas-dialog-header{gap:8px}.image-tool-settings{gap:8px}.image-tool-settings label{width:100%;justify-content:space-between}.image-tool-settings input[type=range]{width:50%}}
.canvas-dialog-header{height:auto;left:auto;right:auto;border:0;box-shadow:none;border-radius:0}
.node.image .image-node-tools{top:auto!important;bottom:calc(100% + 10px)!important;right:0!important;left:auto!important;width:max-content;max-width:100%;height:auto!important;box-sizing:border-box;flex-wrap:wrap!important;align-items:center;justify-content:flex-end;gap:5px!important;padding:6px!important;border-radius:12px}
.node.image .image-node-tools button,.node.image .image-node-tools a{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:auto!important;min-width:28px;max-width:100%;height:auto!important;min-height:30px;white-space:nowrap!important;word-break:normal!important;line-height:1.3!important;padding:6px 9px!important;font-size:11px!important;box-sizing:border-box}
