@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap";:root{--brand-deep: #1e2152;--brand-main: #343a8f;--brand-hover: #4854ad;--brand-soft: #eef0ff;--brand-border: #cbd0f2;--brand-shadow: rgba(37, 46, 112, .18);font-family:DM Sans,sans-serif;color:#41465c;background:#f0f2fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto}*{box-sizing:border-box}body{min-width:360px;min-height:100vh;margin:0}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #6570ca;outline-offset:2px}.paint-app{width:100%;height:100vh;min-height:0;overflow:hidden;background:#f0f2fb}.topbar{display:none;height:0;padding:0;align-items:center;gap:17px;color:#41465c;background:#f4f5f8;box-shadow:none;position:relative;z-index:5}.brand{height:100%;display:flex;align-items:center;gap:11px;white-space:nowrap}.brand-name{display:flex;align-items:center;font-family:Manrope,sans-serif;font-size:16px;font-weight:800;letter-spacing:-.5px}.brand-product{color:#72798a;font-size:12px;font-weight:500}.menu-links{position:relative;height:100%;display:flex;align-items:center;gap:1px;margin-left:12px}.menu-button{height:100%;padding:0 12px;display:flex;align-items:center;color:#41465c;border:0;background:transparent;font-size:11px;font-weight:600;white-space:nowrap}.menu-button{position:relative;border:0;background:transparent;cursor:pointer}.menu-button:hover,.menu-button[aria-expanded=true]{background:#e4e8ee}.menu-button:after{position:absolute;right:12px;bottom:0;left:12px;height:2px;background:var(--accent-orange);content:"";transform:scaleX(0);transition:transform .14s ease}.menu-button:hover:after,.menu-button[aria-expanded=true]:after{transform:scaleX(1)}.file-menu{position:absolute;z-index:20;top:calc(100% + 4px);left:0;width:235px;padding:5px;background:#fff;border:1px solid #e1e4f2;border-radius:7px;box-shadow:0 10px 28px #22142a33}.file-menu button{width:100%;min-height:36px;padding:0 8px;display:flex;align-items:center;gap:9px;border:0;border-radius:4px;color:#4a4650;background:transparent;font-size:11px;text-align:left;cursor:pointer}.file-menu button:hover{color:var(--brand-main);background:var(--brand-soft)}.file-menu kbd{margin-left:auto;padding:2px 5px;border:1px solid #e0e3f0;border-radius:3px;color:#757b95;background:#f8f9fd;font:inherit;font-size:9px}.editor-layout{height:calc(100vh - 92px);min-height:0;display:grid;grid-template-columns:236px minmax(0,1fr) 210px;gap:18px;padding:18px;overflow:hidden}.paint-ribbon{height:92px;min-height:92px;padding:5px 10px 2px;display:flex;align-items:stretch;gap:8px;overflow-x:auto;overflow-y:hidden;background:linear-gradient(#fff,#f4f5f8);border-bottom:1px solid #c9cdd3;scrollbar-width:thin}.ribbon-group{position:relative;min-width:max-content;padding:4px 9px 15px;display:flex;align-items:center;gap:5px;border-right:1px solid #d5d8dd}.ribbon-image-tools{order:0}.ribbon-clipboard{order:-1}.ribbon-tools{order:1}.ribbon-brushes{order:2}.ribbon-shapes{order:3}.ribbon-format{order:4}.ribbon-outline{order:5}.ribbon-fill{order:6}.ribbon-shape-settings,.ribbon-brush-size{order:7}.ribbon-colors{order:8}.ribbon-caption{position:absolute;right:4px;bottom:1px;left:4px;color:#777;font-size:9px;text-align:center}.ribbon-tool-row{width:178px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,28px);gap:2px}.ribbon-tool-row button{min-width:0;padding:2px 4px;display:flex;align-items:center;gap:4px;border:1px solid transparent;border-radius:3px;color:#38465b;background:transparent;font-size:10px;cursor:pointer}.ribbon-tool-row button:hover,.ribbon-tool-row button.active,.ribbon-shape-row button:hover,.ribbon-shape-row button.active{border-color:#9bbbe0;background:#e5f1ff}.ribbon-select-tool{width:48px;height:56px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;background:transparent;font-size:10px;cursor:pointer}.ribbon-select-tool:hover,.ribbon-select-tool.active{border-color:#9bbbe0;background:#e5f1ff}.selection-tools{display:grid;grid-template-columns:48px 80px 64px 60px;grid-template-rows:30px 24px;align-items:center;gap:2px 4px}.selection-tools .ribbon-select-tool{grid-row:1 / 3}.selection-tools select{width:80px;height:24px;padding:2px 4px;border:1px solid #cbd4df;border-radius:4px;background:#fff;font-size:10px}.selection-tools>button:not(.ribbon-select-tool){height:24px;padding:2px 4px;border:1px solid #cbd4df;border-radius:4px;background:#fff;font-size:9px;cursor:pointer}.selection-tools>button:disabled{opacity:.45;cursor:default}.selection-flip-buttons{display:flex;gap:3px}.selection-flip-buttons button{min-width:48px;height:46px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;background:transparent;font-size:9px;cursor:pointer}.selection-flip-buttons button:hover{border-color:#9bbbe0;background:#e5f1ff}.clipboard-buttons{display:flex;align-items:center;gap:3px}.clipboard-buttons button{min-width:42px;height:58px;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;background:transparent;font-size:9px;cursor:pointer}.clipboard-buttons button:hover:not(:disabled){border-color:#9bbbe0;background:#e5f1ff}.clipboard-buttons button:disabled{opacity:.45;cursor:default}.ribbon-shape-row{width:174px;display:grid;grid-template-columns:repeat(6,26px);grid-template-rows:repeat(2,27px);gap:2px}.ribbon-shape-row button{padding:2px;display:grid;place-items:center;border:1px solid transparent;border-radius:3px;color:#2774bd;background:transparent;cursor:pointer}.brush-style-controls{display:flex;align-items:center;justify-content:center}.brush-style-trigger{width:52px;height:58px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid transparent;border-radius:3px;color:#38465b;background:transparent;cursor:pointer}.brush-style-trigger:hover,.brush-style-trigger[aria-expanded=true]{border-color:#9bbbe0;background:#e5f1ff}.brush-style-menu{position:fixed;z-index:10000;width:244px;max-height:min(430px,calc(100vh - 16px));padding:7px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;border:1px solid #dfe3e8;border-radius:8px;background:#fff;box-shadow:0 12px 30px #141c2838}.brush-style-menu button{min-height:43px;padding:5px 7px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid transparent;border-radius:4px;color:#252b33;background:transparent;text-align:left;font-size:13px;cursor:pointer}.brush-style-menu button:hover,.brush-style-menu button.active{border-color:#c8d8e9;background:#eef5fc}.brush-style-preview{width:76px;height:28px;flex:0 0 76px;overflow:visible}.ribbon-format{min-width:250px;flex-wrap:wrap;align-content:center;justify-content:center}.ribbon-format select{width:138px;height:25px;border:1px solid #aeb8c6;background:#fff;font-size:11px}.ribbon-format select[aria-label="Text alignment"]{width:72px}.ribbon-format select[aria-label="Text background"]{width:98px}.ribbon-format input[type=number]{width:50px;height:25px;border:1px solid #aeb8c6}.ribbon-format input[type=color]{width:28px;height:25px;padding:2px;border:1px solid #aeb8c6;background:#fff}.ribbon-text-spacing{display:flex;align-items:center;gap:3px;font-size:10px;white-space:nowrap}.ribbon-format .ribbon-text-spacing input[type=number]{width:42px}.ribbon-format .ribbon-object-text{width:132px;height:42px;padding:3px 5px;resize:horizontal;border:1px solid #aeb8c6;font-size:10px}.ribbon-shape-settings .ribbon-dimension{width:48px;height:25px;padding:2px;border:1px solid #aeb8c6}.canvas-object-editor{display:none!important}.ribbon-format-button{width:27px;height:25px;border:1px solid #c1c8d1;background:#fff;cursor:pointer}.ribbon-format-button.active{background:#dcecff;border-color:#4a90d9}.ribbon-shape-settings,.ribbon-brush-size{align-content:center;flex-wrap:wrap;justify-content:center}.ribbon-shape-settings label,.ribbon-brush-size label{display:flex;align-items:center;gap:5px;font-size:10px}.ribbon-outline,.ribbon-fill{flex-direction:column;justify-content:center;gap:3px}.ribbon-outline label,.ribbon-fill label{display:flex;flex-direction:column;gap:3px;font-size:9px}.ribbon-shape-settings select{height:25px;border:1px solid #aeb8c6;background:#fff}.ribbon-shape-settings input[type=range],.ribbon-brush-size input[type=range]{width:74px;accent-color:#347fc1}.color-slots{display:flex;gap:3px}.color-slots button{width:48px;height:58px;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;background:transparent;font-size:9px;cursor:pointer}.color-slots button.active{border-color:#78a9d5;background:#dcecff}.color-slots i{width:26px;height:27px;border:1px solid #777}.ribbon-palette{width:174px;display:grid;grid-template-columns:repeat(11,14px);grid-template-rows:repeat(2,16px);gap:2px}.ribbon-palette>button{width:14px;height:16px;padding:0;border:1px solid #9da0a6;box-shadow:inset 0 0 0 1px #fff;cursor:pointer}.ribbon-palette>button.chosen{outline:2px solid #267ac0;outline-offset:1px}.ribbon-custom-color{position:relative;width:36px;height:26px;display:flex;align-items:center;justify-content:center;font-size:9px;cursor:pointer}.ribbon-custom-color span{pointer-events:none}.left-sidebar{z-index:1;min-height:0;padding:18px 15px;overflow:auto;background:#fff;border:1px solid #e4e7f2;border-radius:15px;box-shadow:0 8px 26px #252e700f;scrollbar-width:none}.left-sidebar::-webkit-scrollbar{display:none}.panel-heading{margin-bottom:14px}.panel-heading-title,.panel-heading-hint{display:block}.panel-heading-title{color:#303758;font-size:13px;font-weight:700}.panel-heading-hint{margin-top:4px;color:#8990a9;font-size:10px}.basic-tools,.shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.side-tool,.shape-tool{padding:0;display:grid;place-items:center;border:1px solid #e9ebf5;border-radius:10px;color:#69708a;background:#fafbfe;cursor:pointer;transition:color .14s ease,background .14s ease,border-color .14s ease,transform .14s ease,box-shadow .14s ease}.side-tool{height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center}.asset-launcher{position:fixed;z-index:20;right:16px;bottom:14px;width:48px;height:48px}.asset-menu{position:absolute;right:0;bottom:calc(100% + 7px);display:flex;flex-direction:column;width:48px;padding:7px 4px 2px;border:1px solid #f4c985;border-radius:22px;background:linear-gradient(180deg,#fff5df,#ffedc9);box-shadow:0 8px 20px #b16c1b33;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(7px) scale(.96);transform-origin:bottom right;transition:opacity .14s ease,transform .14s ease,visibility .14s ease}.asset-launcher.menu-open .asset-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}.asset-menu-option{position:relative;width:38px;height:36px;padding:0;display:grid;place-items:center;border:0;border-radius:0;color:#fff;background:transparent;cursor:pointer;transition:background .12s ease}.asset-menu-option:not(:last-child){border-bottom:1px solid #f2d5a5}.asset-menu-option img{width:20px;height:20px;filter:invert(65%) sepia(69%) saturate(1058%) hue-rotate(349deg) brightness(99%) contrast(97%)}.asset-menu-option:hover,.asset-menu-option:focus-visible{background:#f39c2526}.asset-menu-option span{position:absolute;top:50%;right:calc(100% + 9px);padding:6px 9px;border:1px solid #f4c985;border-radius:7px;color:#7d4a0b;background:#fff8eb;box-shadow:0 4px 12px #784e1629;font-size:11px;font-weight:600;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transform:translate(4px,-50%);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.asset-menu-option:hover span,.asset-menu-option:focus-visible span{opacity:1;visibility:visible;transform:translateY(-50%)}.asset-menu-trigger{position:relative;width:48px;height:48px;padding:0;display:grid;place-items:center;border:4px solid #fff;border-radius:50%;color:#fff;background:var(--brand-main);box-shadow:0 0 0 2px var(--brand-border),0 6px 16px var(--brand-shadow);cursor:pointer;transition:background .14s ease,box-shadow .14s ease,transform .14s ease}.asset-menu-trigger>img{width:28px;height:28px}.asset-menu-trigger:hover,.asset-menu-trigger[aria-expanded=true]{background:#f39c25;box-shadow:0 0 0 2px #f7d8a6,0 6px 16px #b16c1b47;transform:scale(1.04)}.asset-main-tooltip{position:absolute;top:50%;right:calc(100% + 10px);padding:6px 9px;border:1px solid #f4c985;border-radius:7px;color:#7d4a0b;background:#fff8eb;box-shadow:0 4px 12px #784e1629;font-size:11px;font-weight:600;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transform:translate(4px,-50%);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.asset-menu-trigger:hover .asset-main-tooltip,.asset-menu-trigger:focus-visible .asset-main-tooltip{opacity:1;visibility:visible;transform:translateY(-50%)}.asset-menu-trigger:focus-visible{outline-offset:4px}.asset-menu-trigger,.asset-menu-option{flex:0 0 auto}.background-dialog .sprite-dialog-actions{justify-content:flex-end}.shape-tool{min-height:58px;padding:5px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.shape-tool span{max-width:100%;overflow:hidden;color:inherit;font-size:9px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.shape-library-launch{width:100%;min-height:38px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e5e8f4;border-radius:8px;color:#59617b;background:#fafbfe;font-size:11px;font-weight:600;cursor:pointer}.shape-library-launch:hover{border-color:var(--brand-border);color:var(--brand-main);background:var(--brand-soft)}.shape-library-dropdown{position:static;width:100%;margin-top:8px;padding:8px;display:flex;flex-direction:column;gap:2px;overflow:visible;border:1px solid #e5e8f4;border-radius:9px;background:#fff;box-shadow:0 12px 30px #252e702e}.shape-library-search{height:32px;margin:0 0 7px}.shape-library-dropdown-results{margin-bottom:6px;color:#8990a9;font-size:9px;font-weight:600}.shape-library-grid{max-height:42vh;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:5px;overflow:auto;scrollbar-width:none}.shape-library-grid::-webkit-scrollbar{display:none}.shape-library-option{min-width:0;min-height:38px;padding:3px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #e5e8f4;border-radius:7px;color:#59617b;background:#fafbfe;cursor:pointer}.shape-library-option svg{width:14px;height:14px}.shape-library-option span{max-width:100%;font-size:7px;line-height:1.1;overflow-wrap:anywhere;text-align:center}.shape-library-option:hover,.shape-library-option.active{border-color:var(--brand-border);color:var(--brand-main);background:var(--brand-soft)}.emoji-library-hint{margin:0 0 6px;color:#8990a9;font-size:9px;line-height:1.35}.emoji-quick-picks{margin:8px 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.emoji-library-grid{max-height:32vh;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:5px;overflow:auto;scrollbar-width:none}.emoji-library-grid::-webkit-scrollbar{display:none}.emoji-library-option{min-width:0;min-height:34px;padding:3px;display:grid;place-items:center;border:1px solid #e5e8f4;border-radius:7px;background:#fafbfe;cursor:pointer}.emoji-library-option span{font-size:21px;line-height:1}.emoji-library-option:hover,.emoji-library-option.active{border-color:var(--brand-border);background:var(--brand-soft)}.emoji-selection-note{margin:8px 0 0;color:#59617b;font-size:10px;line-height:1.4;text-align:center}.side-tool[data-tooltip],.shape-tool[data-tooltip]{position:relative}.side-tool[data-tooltip]:before,.shape-tool[data-tooltip]:before{position:absolute;z-index:20;bottom:calc(100% + 8px);left:50%;padding:6px 9px;border:1px solid rgba(255,255,255,.12);border-radius:6px;color:#fff;background:var(--brand-deep);box-shadow:0 5px 14px #1e215238;content:attr(data-tooltip);font-size:10px;font-weight:500;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .12s ease,transform .12s ease}.side-tool[data-tooltip]:hover:before,.side-tool[data-tooltip]:focus-visible:before,.shape-tool[data-tooltip]:hover:before,.shape-tool[data-tooltip]:focus-visible:before{opacity:1;transform:translate(-50%)}.side-tool:hover,.shape-tool:hover{color:var(--brand-main);border-color:var(--brand-border);background:var(--brand-soft);transform:translateY(-1px);box-shadow:0 4px 10px #252e701a}.side-tool.active{color:#fff;border-color:var(--brand-main);background:linear-gradient(145deg,#4854ad,#252e70);box-shadow:0 5px 12px var(--brand-shadow)}.shape-tool.active{color:var(--brand-main);border-color:var(--brand-border);background:var(--brand-soft);box-shadow:inset 0 0 0 1px #dce0fb}.side-separator{height:auto;margin:18px 0 12px;display:flex;align-items:center;gap:8px;color:#737b9b;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px}.side-separator:after{height:1px;flex:1;background:#e8eaf5;content:""}.shape-count{min-width:20px;height:20px;display:grid;place-items:center;border-radius:6px;color:#626ba8;background:#eef0ff;font-size:9px;letter-spacing:0}.shape-search{height:34px;margin-bottom:10px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #e3e7f4;border-radius:8px;color:#858da7;background:#f9faff;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.shape-search:focus-within{border-color:#8994d4;background:#fff;box-shadow:0 0 0 3px #4854ad1a}.shape-search input{width:100%;min-width:0;padding:0;border:0;outline:0;color:#414761;background:transparent;font-size:10px}.shape-search input::placeholder{color:#9aa1b7}.shape-search input:focus-visible{outline:0}.shape-search input::-webkit-search-cancel-button{cursor:pointer}.no-shapes{margin:0;padding:12px 8px;border:1px dashed #dfe3f1;border-radius:8px;color:#7d849d;font-size:10px;line-height:1.5;text-align:center}.shape-grid{gap:8px}.center-editor{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e4e7f2;border-radius:15px;box-shadow:0 8px 26px #252e700f}.drawing-stage{position:relative;min-height:0;display:grid;flex:1;place-items:center;overflow:hidden;background-color:#f0f2fb;background-image:radial-gradient(#d8dcef .8px,transparent .8px);background-size:19px 19px}.canvas-holder{position:relative;width:min(58vw,78%);aspect-ratio:4 / 3;overflow:hidden;background:#fff;box-shadow:0 20px 55px #252e7029,0 3px 8px #252e7014;transition:transform .14s ease}.canvas-holder.transparent-background{background-color:#fff;background-image:linear-gradient(45deg,#d9deeb 25%,transparent 25%),linear-gradient(-45deg,#d9deeb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9deeb 75%),linear-gradient(-45deg,transparent 75%,#d9deeb 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.drawing-canvas{width:100%;height:100%;display:block;background:#fff;outline:1px solid rgba(37,46,112,.06);cursor:crosshair;touch-action:none}.canvas-holder.transparent-background .drawing-canvas{background:transparent}.drawing-canvas.cursor-select{cursor:default}.drawing-canvas.cursor-selection-area{cursor:crosshair}.canvas-object-layer,.canvas-sprite-layer{display:contents}.canvas-object{position:absolute;width:max-content;min-width:8px;min-height:8px;display:flex;align-items:flex-start;justify-content:flex-start;border:1px solid transparent;pointer-events:auto;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.canvas-object-layer.sampling .canvas-object,.canvas-sprite-layer.sampling .canvas-sprite,.canvas-object-layer.ignore-pointer .canvas-object,.canvas-sprite-layer.ignore-pointer .canvas-sprite,.canvas-object-layer.selection-area .canvas-object,.canvas-sprite-layer.selection-area .canvas-sprite{pointer-events:none}.canvas-object.selected{border:1px dashed #168de2}.canvas-object>img{width:100%;height:100%;object-fit:fill;pointer-events:none}.canvas-object.text-object>span{flex:0 0 100%}.canvas-object-delete{position:absolute;top:-12px;right:-12px;width:22px;height:22px;padding:0;border:1px solid #fff;border-radius:50%;color:#fff;background:#e04d5b;font-size:17px;line-height:18px;cursor:pointer}.canvas-object-handle{position:absolute;z-index:1;width:10px;height:10px;padding:0;border:2px solid #fff;border-radius:50%;background:#168de2;box-shadow:0 1px 3px #0005;touch-action:none}.object-handle-nw{top:-5px;left:-5px;cursor:nwse-resize}.object-handle-n{top:-5px;left:50%;transform:translate(-50%);cursor:ns-resize}.object-handle-ne{top:-5px;right:-5px;cursor:nesw-resize}.object-handle-e{top:50%;right:-5px;transform:translateY(-50%);cursor:ew-resize}.object-handle-se{right:-5px;bottom:-5px;cursor:nwse-resize}.object-handle-s{bottom:-5px;left:50%;transform:translate(-50%);cursor:ns-resize}.object-handle-sw{bottom:-5px;left:-5px;cursor:nesw-resize}.object-handle-w{top:50%;left:-5px;transform:translateY(-50%);cursor:ew-resize}.canvas-object-rotate-line{position:absolute;top:-19px;left:50%;width:1px;height:18px;background:#168de2;pointer-events:none}.canvas-object-rotate{position:absolute;top:-29px;left:50%;width:18px;height:18px;padding:2px;display:grid;place-items:center;transform:translate(-50%);border:2px solid #fff;border-radius:50%;color:#fff;background:#168de2;box-shadow:0 1px 3px #0005;cursor:grab;touch-action:none}.canvas-object-editor{position:absolute;z-index:6;top:8px;left:50%;width:min(560px,calc(100% - 16px));max-height:38%;padding:8px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;overflow:auto;transform:translate(-50%);border:1px solid #dfe3f0;border-radius:9px;background:#fffffff7;box-shadow:0 5px 20px #252e7030;font-size:11px}.canvas-object-editor textarea{width:100%;min-height:40px;resize:vertical}.canvas-object-editor input:not([type=color]),.canvas-object-editor select{max-width:140px;height:28px;padding:3px 6px;border:1px solid #dfe3f0;border-radius:5px}.canvas-object-editor button{min-height:27px;padding:3px 8px;border:1px solid #dfe3f0;border-radius:5px;background:#fff;cursor:pointer}.canvas-object-editor label{display:flex;align-items:center;gap:4px}.canvas-sprite{position:absolute;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}.canvas-sprite.selected{outline:2px solid #009fe3;outline-offset:0;cursor:move}.canvas-sprite>img{width:100%;height:100%;display:block;object-fit:fill;pointer-events:none;-webkit-user-select:none;user-select:none}.canvas-sprite-delete,.canvas-sprite-handle,.canvas-sprite-rotate{position:absolute;z-index:1;display:grid;place-items:center;padding:0;border:2px solid #009fe3;border-radius:50%;color:#009fe3;background:#fff;box-shadow:0 1px 4px #007eb533;cursor:pointer;touch-action:none}.canvas-sprite-delete{width:18px;height:18px;top:-8px;right:-8px}.canvas-sprite-delete:hover{background:#e8f8ff}.canvas-sprite-handle{width:10px;height:10px}.handle-nw{top:2px;left:2px;cursor:nwse-resize}.handle-n{top:2px;left:50%;transform:translate(-50%);cursor:ns-resize}.handle-ne{top:2px;right:2px;cursor:nesw-resize}.handle-e{top:50%;right:2px;transform:translateY(-50%);cursor:ew-resize}.handle-se{right:2px;bottom:2px;cursor:nwse-resize}.handle-s{bottom:2px;left:50%;transform:translate(-50%);cursor:ns-resize}.handle-sw{bottom:2px;left:2px;cursor:nesw-resize}.handle-w{top:50%;left:2px;transform:translateY(-50%);cursor:ew-resize}.canvas-sprite-rotate-line{position:absolute;bottom:-6px;left:50%;width:1px;height:12px;background:#009fe3;transform:translate(-50%);pointer-events:none}.canvas-sprite-rotate{bottom:-5px;left:50%;width:12px;height:12px;transform:translate(-50%);cursor:grab}.canvas-sprite-rotate:active{cursor:grabbing}.pixel-selection-marquee{position:absolute;z-index:99;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.pixel-selection-marquee polygon{fill:#168de21f;stroke:#168de2;stroke-width:2;stroke-dasharray:7 4;vector-effect:non-scaling-stroke}.pixel-selection-marquee.rectangular{border:1px dashed #168de2;background:#168de214;box-sizing:border-box}.pixel-selection{position:absolute;z-index:100;display:block;border:1px dashed #168de2;pointer-events:auto;touch-action:none;cursor:move}.pixel-selection>img{width:100%;height:100%;display:block;pointer-events:none;-webkit-user-select:none;user-select:none}.pixel-selection.freeform{border-color:transparent}.pixel-selection-outline{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.pixel-selection-outline polygon{fill:none;stroke:#168de2;stroke-width:2;stroke-dasharray:7 4;vector-effect:non-scaling-stroke}.pixel-selection-handle{position:absolute;z-index:1;width:10px;height:10px;padding:0;border:2px solid #fff;border-radius:50%;background:#168de2;box-shadow:0 1px 3px #0005;pointer-events:auto;touch-action:none}.pixel-selection-handle.handle-nw{top:-5px;left:-5px;cursor:nwse-resize}.pixel-selection-handle.handle-n{top:-5px;left:50%;transform:translate(-50%);cursor:ns-resize}.pixel-selection-handle.handle-ne{top:-5px;right:-5px;cursor:nesw-resize}.pixel-selection-handle.handle-e{top:50%;right:-5px;transform:translateY(-50%);cursor:ew-resize}.pixel-selection-handle.handle-se{right:-5px;bottom:-5px;cursor:nwse-resize}.pixel-selection-handle.handle-s{bottom:-5px;left:50%;transform:translate(-50%);cursor:ns-resize}.pixel-selection-handle.handle-sw{bottom:-5px;left:-5px;cursor:nesw-resize}.pixel-selection-handle.handle-w{top:50%;left:-5px;transform:translateY(-50%);cursor:ew-resize}.floating-history{position:absolute;z-index:1;top:16px;left:16px;display:flex;flex-direction:column;gap:3px;padding:5px;background:#fff;border:1px solid #e2e5f1;border-radius:12px;box-shadow:0 5px 16px #252e701a}.round-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;color:#69708a;background:transparent;cursor:pointer}.round-button:hover:not(:disabled){color:var(--brand-main);border-color:var(--brand-border);background:var(--brand-soft)}.round-button:disabled{color:#c9c9c9;cursor:default}.zoom-controls{position:absolute;right:16px;bottom:16px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;border:1px solid #e2e5f1;border-radius:12px;box-shadow:0 5px 16px #252e701a}.zoom-controls button{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;color:#69708a;background:#fff;font-size:19px;cursor:pointer}.zoom-controls button:hover{color:var(--brand-main);border-color:var(--brand-border);background:var(--brand-soft)}.zoom-controls button:nth-child(2){width:48px;height:27px;border-radius:8px;font-size:10px}.paint-controls{height:126px;min-height:126px;padding:12px 17px;display:flex;align-items:center;gap:16px;overflow:auto hidden;scrollbar-width:none;background:linear-gradient(180deg,#fff,#f8f9fd);border-top:1px solid #e8eaf5}.paint-controls{display:none}.paint-controls::-webkit-scrollbar{display:none}.color-control{min-width:max-content;display:grid;grid-template-columns:104px auto;grid-template-rows:40px 40px;align-items:center;gap:4px 12px}.color-mode{height:38px;padding:4px 7px 4px 10px;display:flex;align-items:center;justify-content:space-between;gap:7px;border:1px solid transparent;border-radius:8px;color:#777;background:transparent;font-size:11px;cursor:pointer}.color-mode:hover,.color-mode.mode-active{border-color:var(--brand-border);background:var(--brand-soft)}.large-color-chip{width:30px;height:30px;border:1px solid rgba(38,29,49,.1);border-radius:7px}.swatch-row{display:flex;align-items:center;gap:10px}.palette-swatch{width:29px;height:29px;flex:0 0 29px;padding:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #31253d1f;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.palette-swatch:hover{transform:scale(1.08)}.palette-swatch.chosen{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--brand-main)}.transparent-swatch{position:relative;background:#fff}.transparent-swatch:after{position:absolute;top:14px;left:2px;width:26px;border-top:2px solid #f08080;content:"";transform:rotate(-45deg)}.color-wheel{width:32px;height:32px;flex:0 0 32px;overflow:hidden;border:1px solid #d5d5d5;border-radius:50%;background:conic-gradient(#f33,#ff0,#3e4,#1ce,#43f,#e2f,#f33);cursor:pointer}.color-wheel input{width:100%;height:100%;opacity:0;cursor:pointer}.outline-control{grid-column:1 / -1;display:contents}.outline-mode{grid-column:1;grid-row:2}.outline-chip{width:27px;height:27px;border:6px solid #858585;border-radius:5px;background:#fff}.outline-chip.outline-disabled{border-color:#d7d7d7}.outline-control .swatch-row{grid-column:2;grid-row:2}.rainbow-swatch{background:conic-gradient(#f33,#ff0,#3e4,#1ce,#43f,#e2f,#f33)}.stroke-controls{height:98px;min-width:190px;padding-left:17px;display:grid;grid-template-columns:72px 72px;grid-template-rows:18px 18px 18px 22px;align-items:center;gap:2px 8px;border-left:1px solid #e2e5f1}.stroke-label{grid-column:1 / -1;color:#777080;font-size:11px;font-weight:600}.stroke-choice{width:69px;height:18px;padding:0;border:0;background:transparent;cursor:pointer}.stroke-choice:after{width:100%;display:block;border-top:2px solid #8a8391;content:""}.medium-stroke:after{border-top-width:5px;border-radius:5px}.thick-stroke:after{border-top-width:8px;border-radius:8px}.stroke-slider-label{width:70px;display:flex;align-items:center;gap:4px;color:#777080;font-size:9px}.stroke-slider-label input{width:46px;accent-color:var(--brand-main)}.opacity-slider-label{grid-column:1 / -1;display:flex;align-items:center;gap:7px;color:#777080;font-size:9px}.opacity-slider-label input{width:90px;accent-color:var(--brand-main)}.font-controls{min-width:130px;height:98px;padding-left:16px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-left:1px solid #e2e5f1;color:#59617b;font-size:11px;font-weight:600}.font-controls select{width:118px;height:30px;padding:0 8px;border:1px solid #dfe3f0;border-radius:7px;color:#414761;background:#fff;font-size:10px;font-weight:500;cursor:pointer}.font-controls select:hover{border-color:#aeb6dc}.font-controls select:focus-visible{outline-offset:1px}.font-size-label{display:flex;align-items:center;gap:6px}.font-size-label input{width:58px;height:28px;border:1px solid #dfe3f0;border-radius:6px;padding:0 5px;color:#414761}.text-style-buttons{display:flex;gap:5px}.text-style-buttons button{width:29px;height:27px;border:1px solid #dfe3f0;border-radius:6px;color:#414761;background:#fff;cursor:pointer}.text-style-buttons button.active{color:#fff;background:#6753c8;border-color:#6753c8}.text-dialog-preview{min-height:48px;max-height:100px;overflow:auto;padding:8px 10px;border:1px dashed #c9cce0;border-radius:8px;overflow-wrap:anywhere}.text-entry{width:100%;min-height:76px;margin:14px 0 10px;padding:10px;resize:vertical;border:1px solid #dfe3f0;border-radius:8px;color:#303758;font:inherit}.text-entry:focus-visible{outline:2px solid #9b8be5;outline-offset:1px}.right-sidebar{min-height:0;padding:18px 15px;overflow:auto;overflow-x:hidden;background:#fff;border:1px solid #e4e7f2;border-radius:15px;box-shadow:0 8px 26px #252e700f}.canvas-size-panel{display:grid;gap:9px;color:#454b63;font-size:12px}.canvas-size-panel>strong,.layers-heading strong{color:#303650;font-size:13px}.canvas-size-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:7px}.canvas-size-fields label{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;color:#737991;font-size:11px}.canvas-size-fields input{min-width:0;width:100%;height:29px;padding:0 5px;border:1px solid #dfe3f0;border-radius:6px}.canvas-size-fields button{grid-column:1 / -1;height:29px;padding:0 8px;border:1px solid #dfe3f0;border-radius:6px;color:#414761;background:#fff;cursor:pointer}.transparent-background-toggle{display:flex;align-items:center;gap:7px;color:#555b72}.canvas-size-panel small{color:#858ba0;line-height:1.4}.layers-panel{display:grid;gap:9px}.layers-heading{display:flex;align-items:center;justify-content:space-between}.layers-heading span{min-width:22px;padding:2px 6px;border-radius:12px;color:#676d84;background:#f0f1f8;text-align:center;font-size:10px}.layers-empty{margin:0;color:#858ba0;font-size:11px;line-height:1.45}.layers-list{display:grid;gap:5px}.layer-row{min-width:0;padding:4px;display:grid;grid-template-columns:22px minmax(0,1fr) 22px 22px;align-items:center;gap:2px;border:1px solid #e8eaf2;border-radius:7px;background:#fff}.layer-row.active{border-color:#9c8ee8;background:#f7f5ff}.layer-row-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:3px}.layer-select,.layer-icon-button{width:22px;height:24px;padding:2px;display:grid;place-items:center;border:0;border-radius:4px;color:#737991;background:transparent;cursor:pointer}.layer-select:hover,.layer-icon-button:hover:not(:disabled){color:#6753c8;background:#ebe8fc}.layer-icon-button:disabled{color:#c9cbd5;cursor:default}.layer-icon-button.danger:hover{color:#d74455;background:#fff0f1}.layer-kind{color:#7164b7;font-size:8px;font-weight:700}.layer-name{width:100%;min-width:0;height:24px;padding:0 3px;border:1px solid transparent;border-radius:4px;color:#414761;background:transparent;font-size:10px}.layer-name:focus{border-color:#b7adef;outline:none;background:#fff}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.status-toast{position:fixed;z-index:30;right:76px;bottom:18px;max-width:min(420px,calc(100vw - 94px));min-height:42px;padding:8px 10px 8px 14px;display:flex;align-items:center;gap:15px;color:#fff;background:var(--brand-deep);border-radius:7px;box-shadow:0 6px 22px #1e21523d;font-size:12px}.status-toast button,.dialog-close{width:27px;height:27px;flex:0 0 auto;display:grid;place-items:center;border:0;border-radius:4px;color:inherit;background:transparent;cursor:pointer}.status-toast button:hover{background:#ffffff24}.modal-backdrop{position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;padding:18px;display:grid;place-items:center;background:#14194475}.help-dialog{position:relative;width:min(420px,100%);padding:28px;color:#414761;background:#fff;border:1px solid #e4e7f2;border-radius:12px;box-shadow:0 18px 55px #1e21523d}.save-dialog{width:min(440px,100%);display:grid;gap:16px}.save-dialog-heading{display:flex;align-items:center;gap:12px;padding-right:22px}.save-dialog-heading .help-icon{flex:0 0 38px}.save-dialog-heading h2{margin:0 0 4px;color:#303758;font-size:18px}.save-dialog-heading p{margin:0;color:#69708a;font-size:12px}.save-dialog>label{display:grid;gap:6px;color:#59617b;font-size:11px;font-weight:600}.save-dialog>label input,.save-dialog>label select{width:100%;height:36px;padding:0 10px;border:1px solid #d5daea;border-radius:6px;color:#41465c;background:#fff;font-size:12px}.save-background-options{display:grid;gap:8px;padding:10px 12px;border:1px solid #e5e8f4;border-radius:8px;color:#59617b;background:#f9faff;font-size:11px}.save-background-options>span:first-child{font-weight:600}.save-background-options label{display:flex;align-items:center;gap:7px}.save-background-options input{margin:0;accent-color:var(--brand-main)}.save-background-note{color:#757c92;font-size:10px}.save-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.save-dialog-cancel{min-width:90px;height:36px;border:1px solid #e1e4f0;border-radius:6px;color:#59617b;background:#fff;font-size:11px;font-weight:600;cursor:pointer}.save-dialog-cancel:hover{background:#f7f8fc}.save-dialog-actions .dialog-done{width:auto;min-width:110px;padding:0 20px}.sprite-dialog{width:min(900px,100%);max-height:88vh;display:flex;flex-direction:column;overflow:hidden}.sprite-edit-dialog{width:min(664px,calc(100vw - 36px));max-height:88vh;padding:26px 25px 25px;display:flex;flex-direction:column;gap:10px;overflow:auto}.sprite-edit-dialog .dialog-close{top:23px;right:22px}.sprite-edit-dialog .help-icon{width:34px;height:34px;border-radius:9px}.sprite-edit-dialog h2{margin:6px 0 2px;font-size:16px;line-height:1.25}.sprite-edit-dialog>p{font-size:11px;line-height:1.45}.sprite-edit-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:48px;padding:7px 8px;border:1px solid #e5e8f4;border-radius:9px;background:#f9faff}.sprite-edit-tool,.sprite-edit-history button{min-height:32px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e2e6f4;border-radius:7px;color:#59617b;background:#fff;font-size:11px;font-weight:600;cursor:pointer}.sprite-edit-tool.active{border-color:var(--brand-border);color:var(--brand-main);background:var(--brand-soft)}.sprite-edit-color,.sprite-edit-size{min-height:32px;display:flex;align-items:center;gap:7px;color:#59617b;font-size:11px;font-weight:600}.sprite-edit-color{padding:0 8px;border:1px solid #e2e6f4;border-radius:7px;background:#fff}.sprite-edit-color input{width:25px;height:25px;padding:0;border:0;background:transparent;cursor:pointer}.sprite-edit-size input{width:92px;accent-color:var(--brand-main)}.sprite-edit-history{margin-left:auto;display:flex;gap:5px}.sprite-edit-history button{width:32px;padding:0}.sprite-edit-history button:disabled{color:#c9c9c9;cursor:default}.sprite-edit-board{height:468px;min-height:300px;max-height:58vh;padding:10px;display:grid;place-items:center;overflow:auto;border:1px solid #dfe3f1;border-radius:9px;background-color:#fff;background-image:linear-gradient(45deg,#eef1f7 25%,transparent 25%),linear-gradient(-45deg,#eef1f7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef1f7 75%),linear-gradient(-45deg,transparent 75%,#eef1f7 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.sprite-export-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid #e5e8f4;border-radius:9px;background:#f9faff}.sprite-export-format,.sprite-export-background{min-height:32px;display:inline-flex;align-items:center;gap:7px;color:#59617b;font-size:11px;font-weight:600}.sprite-export-background label{display:inline-flex;align-items:center;gap:4px}.sprite-export-format select{height:32px;padding:0 8px;border:1px solid #e2e6f4;border-radius:7px;color:#59617b;background:#fff}.sprite-export-background input{accent-color:var(--brand-main)}.sprite-export-note{flex-basis:100%;color:#757c92;font-size:10px}.sprite-edit-canvas{max-width:100%;max-height:448px;display:block;background:transparent;box-shadow:0 2px 12px #1e21521f;touch-action:none}.sprite-edit-canvas.tool-brush,.sprite-edit-canvas.tool-eraser{cursor:crosshair}.sprite-edit-canvas.tool-fill{cursor:cell}.sprite-edit-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-top:1px}.sprite-edit-actions .dialog-done{width:auto;min-width:130px;padding:0 16px}.sprite-dialog-heading{display:flex;align-items:center;gap:12px;padding-right:18px}.sprite-dialog-heading h2{flex:1;margin:0}.sprite-dialog-heading>span{padding:5px 9px;flex:0 0 auto;border-radius:999px;color:var(--brand-main);background:var(--brand-soft);font-size:11px;font-weight:700}.sprite-search{width:100%;margin:12px 0 8px;flex:0 0 auto}.sprite-category-list{display:flex;gap:6px;padding:2px 1px 8px;flex:0 0 auto;overflow-x:auto;scrollbar-width:thin}.sprite-category{min-height:29px;padding:0 10px;flex:0 0 auto;border:1px solid #e5e8f4;border-radius:999px;color:#59617b;background:#fff;font-size:10px;font-weight:600;cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}.sprite-category:hover,.sprite-category.active{border-color:var(--brand-border);color:var(--brand-main);background:var(--brand-soft)}.sprite-results-row{min-height:23px;display:flex;align-items:center;justify-content:space-between;color:#78809a;font-size:10px;font-weight:600}.sprite-grid{min-height:110px;max-height:46vh;padding:2px 3px 4px 2px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:9px;overflow:auto}.sprite-option{min-width:0;min-height:104px;padding:7px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #e5e8f4;border-radius:9px;color:#59617b;background:#fafbfe;font-size:11px;cursor:pointer;transition:border-color .12s ease,background .12s ease,transform .12s ease}.sprite-option:hover,.sprite-option:focus-visible{border-color:var(--brand-border);background:var(--brand-soft);transform:translateY(-1px)}.sprite-option:disabled{cursor:wait}.sprite-preview{width:100%;height:62px;display:grid;place-items:center}.sprite-preview img{width:60px;height:60px;object-fit:contain}.sprite-empty{padding:14px 0;text-align:center}.sprite-dialog-actions{margin-top:12px;display:flex;gap:8px;flex:0 0 auto}.sprite-upload-button,.sprite-close-button{min-height:36px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--brand-border);border-radius:7px;color:var(--brand-main);background:var(--brand-soft);font-size:11px;font-weight:600;cursor:pointer}.sprite-upload-button{flex:1}.sprite-close-button{color:#59617b;border-color:#e5e8f4;background:#fff}.sprite-upload-button:hover,.sprite-close-button:hover{filter:brightness(.97)}.dialog-close{position:absolute;top:12px;right:12px;color:#8d8792}.dialog-close:hover{background:var(--brand-soft)}.help-icon{width:38px;height:38px;display:grid;place-items:center;color:var(--brand-main);background:var(--brand-soft);border-radius:10px}.help-dialog h2{margin:15px 0 7px;color:#303758;font-size:18px}.help-dialog p{margin:0;color:#69708a;font-size:12px;line-height:1.6}.dialog-done{width:100%;height:36px;border:0;border-radius:6px;color:#fff;background:linear-gradient(110deg,#343a8f,#1e2152);font-size:11px;font-weight:600;cursor:pointer}.dialog-done:hover{background:linear-gradient(110deg,#4854ad,#252e70)}.right-action-grid,.layer-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.right-action{height:48px;display:grid;place-items:center;border:1px solid #e9ebf5;border-radius:9px;color:#69708a;background:#fafbfe;cursor:pointer}.right-action:hover:not(:disabled){color:var(--brand-main);border-color:var(--brand-border);background:var(--brand-soft)}.right-action:disabled{color:#c8c8c8;cursor:default}.right-divider{height:1px;margin:17px 0;background:#e8eaf5}.sidebar-size{display:grid;gap:8px;color:#59617b;font-size:11px}.sidebar-size span:first-child{font-weight:600}.sidebar-size input{width:100%;accent-color:var(--brand-main)}.sidebar-size span:last-child{color:#999;font-size:10px}@media(min-width:1500px){.canvas-holder{width:min(62vw,78%)}}@media(max-width:1100px){.editor-layout{grid-template-columns:196px minmax(0,1fr) 156px;gap:12px;padding:12px}.left-sidebar,.right-sidebar{padding:13px 10px}.canvas-holder{width:min(52vw,82%)}}@media(max-width:900px){.editor-layout{grid-template-columns:172px minmax(0,1fr) 136px;gap:10px;padding:10px}.left-sidebar,.right-sidebar{padding:11px 9px}.basic-tools,.shape-grid{gap:7px}.side-tool,.shape-tool{height:46px}.right-action-grid,.layer-actions{gap:6px}.right-action{height:40px}.canvas-holder{width:min(52vw,84%)}.swatch-row{gap:7px}.palette-swatch{width:25px;height:25px;flex-basis:25px}}@media(max-width:760px){.topbar{height:50px;gap:5px;padding:0 7px}.editor-layout{height:calc(100vh - 50px)}.brand-product{display:none}.menu-links{margin-left:0}.menu-button{padding:0 6px}}@media(max-width:600px){.editor-layout{grid-template-columns:82px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px;padding:8px}.left-sidebar{grid-row:1;padding:9px 7px}.basic-tools,.shape-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.shape-search{height:30px;padding:0 5px;gap:4px}.shape-search svg{flex:0 0 auto}.shape-search input{font-size:9px}.side-tool,.shape-tool{height:39px}.side-tool svg,.shape-tool svg{width:19px;height:19px}.side-separator{margin:10px 0}.right-sidebar{display:none}.asset-launcher{right:12px;bottom:12px}.canvas-holder{width:min(94%,82vh)}.paint-controls{height:112px;min-height:112px;padding:6px 9px;gap:12px}.color-control{grid-template-columns:83px auto;gap:3px 8px}.color-mode{font-size:10px}.large-color-chip{width:25px;height:25px}.swatch-row{gap:6px}.palette-swatch{width:24px;height:24px;flex-basis:24px}.outline-chip{width:22px;height:22px;border-width:5px}.stroke-controls{height:96px;min-width:145px;grid-template-columns:55px 55px;grid-template-rows:17px 17px 17px 20px;padding-left:8px;gap:2px 5px}.font-controls{height:96px;min-width:110px;padding-left:8px}.font-controls select{width:102px}.stroke-choice{width:54px}.opacity-slider-label{gap:4px}.opacity-slider-label input{width:58px}.floating-history{top:8px;left:8px;gap:4px}.round-button{width:29px;height:29px}.zoom-controls{right:8px;bottom:8px}.zoom-controls button{width:31px;height:31px}.zoom-controls button:nth-child(2){width:44px;height:27px}}@media(max-height:560px){.topbar{height:48px}.editor-layout{height:calc(100vh - 48px)}.paint-controls{height:88px;min-height:88px}.side-tool,.shape-tool{height:42px}.right-action{height:43px}}@media(max-width:760px){.paint-ribbon{height:84px;min-height:84px;padding-inline:5px;gap:3px}.editor-layout{height:calc(100vh - 84px)}.ribbon-group{padding-right:5px;padding-left:5px}}@media(max-width:600px){.paint-ribbon{height:86px;min-height:86px}.editor-layout{height:calc(100vh - 86px)}.ribbon-tool-row{width:166px}.ribbon-format{min-width:238px}}@media(max-height:560px){.paint-ribbon{height:76px;min-height:76px}.editor-layout{height:calc(100vh - 76px)}}@media(pointer:coarse){.ribbon-tool-row button,.ribbon-shape-row button,.clipboard-buttons button,.round-button,.zoom-controls button{min-height:44px}.canvas-object-delete{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}.topbar{letter-spacing:0}.paint-ribbon{background:#f7f8fb;border-bottom-color:#d9dde7}.ribbon-group{padding-top:3px;border-right-color:#dde1e8}.ribbon-caption{color:#7b8395;font-weight:600}.editor-layout{grid-template-columns:236px minmax(0,1fr) 210px;gap:16px;padding:16px;background:#f0f2fb}.left-sidebar,.right-sidebar,.center-editor{border-radius:11px;border-color:#e2e5ef;box-shadow:0 3px 14px #252e700e}.left-sidebar,.right-sidebar{padding:15px 13px}.drawing-stage{background-color:#f3f4f9;background-image:radial-gradient(#dfe2ed .65px,transparent .65px);background-size:18px 18px}.canvas-holder{width:min(68vw,80%,760px);border:1px solid #e1e4ec;box-shadow:0 9px 28px #252e701f}.floating-history{top:14px;left:14px;border-radius:10px;box-shadow:0 4px 14px #252e7017}.zoom-controls{right:14px;bottom:14px;border-radius:10px;box-shadow:0 4px 14px #252e7017}.right-action{background:#fff}.right-action-grid,.layer-actions{gap:7px}@media(max-width:1100px){.editor-layout{grid-template-columns:196px minmax(0,1fr) 156px;gap:10px;padding:10px}.canvas-holder{width:min(64vw,84%)}}@media(max-width:900px){.editor-layout{grid-template-columns:172px minmax(0,1fr) 136px}}@media(max-width:600px){.editor-layout{grid-template-columns:82px minmax(0,1fr)}.right-sidebar{display:none}.left-sidebar{min-width:0;padding:9px 7px}.center-editor{min-width:0}.canvas-holder{width:min(94%,82vh)}}.image-drop-overlay{position:absolute;z-index:12;top:12px;right:12px;bottom:12px;left:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px dashed #5966bd;border-radius:12px;color:#343a8f;background:#f8f9fff0;font-size:15px;font-weight:700;pointer-events:none}.image-drop-overlay small{color:#737b9b;font-size:12px;font-weight:500}.canvas-holder{container-type:inline-size}.drawing-stage.has-tool-cursor,.drawing-stage.has-tool-cursor *{cursor:none!important}.tool-cursor-indicator{position:absolute;z-index:10;width:17px;height:17px;transform:translate(4px,4px);color:#343a8f;pointer-events:none}.canvas-text-editor{position:absolute;z-index:6;box-sizing:border-box;min-width:64px;min-height:1.4em;padding:2px 3px;resize:both;overflow:auto;border:1px dashed #343a8f;border-radius:2px;outline:none;background:#fff3;line-height:1.2}.canvas-text-editor::placeholder{color:currentColor;opacity:.55}.paint-app{display:flex;flex-direction:column}.topbar{flex:0 0 44px}.paint-ribbon{flex:0 0 92px}.editor-layout{flex:1 1 auto;height:auto;min-height:0}.editor-status-bar{min-height:24px;padding:0 14px;display:flex;flex:0 0 24px;align-items:center;gap:20px;overflow:hidden;border-top:1px solid #dfe3ed;color:#717990;background:#f8f9fc;font-size:10px;white-space:nowrap}.editor-status-bar span:first-child{margin-right:auto}@media(max-width:760px){.paint-ribbon{flex-basis:84px}.topbar{flex-basis:44px}.editor-status-bar{gap:10px;padding-inline:8px;font-size:9px}}@media(max-width:600px){.paint-ribbon{flex-basis:86px}.editor-status-bar{gap:8px}}@media(max-height:560px){.paint-ribbon{flex-basis:76px}}.topbar{display:flex!important;height:44px;min-height:44px;padding:0 14px 5px;gap:0;color:#fff;background:#29398b!important;border-bottom:5px solid #fff;box-shadow:none}.topbar .brand{display:flex;height:39px;align-items:center;gap:8px;color:#fff}.topbar .brand-name{color:#fff;font-size:17px;letter-spacing:-.4px}.topbar .brand-product{color:#dfe3ff;font-size:12px;font-weight:500}.topbar-editor-name{height:39px;display:inline-flex;align-items:center;color:#fff;font-size:12px;font-weight:700;letter-spacing:.1px;white-space:nowrap}.topbar .menu-links{height:39px;margin-left:12px}.topbar .menu-button{height:39px;padding:0 12px;color:#fff;font-size:11px}.topbar .menu-button:hover,.topbar .menu-button[aria-expanded=true]{background:#ffffff1f}.topbar .menu-button:after{display:none}.topbar-back{position:absolute;top:50%;right:14px;transform:translateY(-50%);height:30px;padding:0 9px;display:inline-flex;align-items:center;gap:5px;border:0;border-radius:0;color:#fff;background:transparent;font-size:10px;font-weight:600;flex:0 0 auto;cursor:pointer}.topbar-back:hover{color:#ff8c00;background:transparent}.topbar-center-logo{position:absolute;top:50%;left:50%;z-index:1;width:180px;height:39px;transform:translate(-50%,-50%);overflow:hidden;pointer-events:none}.topbar-center-logo img{position:absolute;top:50%;left:50%;width:158px;max-width:none;height:auto;transform:translate(-50%,-50%)}.editor-layout{height:calc(100vh - 136px)}@media(max-width:760px){.topbar{height:44px;min-height:44px;padding:0 7px 5px}.topbar .brand-product{display:none}.topbar .brand-name{font-size:15px}.topbar-editor-name{font-size:11px}.topbar .menu-links{height:39px;margin-left:5px}.topbar .menu-button{height:39px;padding:0 8px}.topbar-center-logo{width:120px;height:30px}.topbar-center-logo img{width:120px}.editor-layout{height:calc(100vh - 128px)}}@media(max-width:600px){.editor-layout{height:calc(100vh - 120px)}}@media(max-height:560px){.editor-layout{height:calc(100vh - 110px)}}.paint-ribbon{padding-inline:8px;gap:3px;justify-content:flex-start;overflow-x:auto;background:linear-gradient(180deg,#f8faff,#edf1f7);border-bottom-color:#d3dae5}.ribbon-tool-row{width:96px;grid-template-columns:repeat(3,28px);justify-content:center}.ribbon-tool-row button{position:relative;justify-content:center;padding:2px}.ribbon-tool-row button>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}.ribbon-group{padding-right:4px;padding-left:4px;border-right-color:transparent;border-radius:8px;background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:inset 0 0 0 1px #e2e7ef,0 1px 2px #2330440d}.ribbon-caption{right:7px;bottom:2px;left:7px;padding-top:2px;border-top:1px solid #edf0f5;color:#68758a;font-size:9px;font-weight:700}.ribbon-tool-row button,.ribbon-select-tool,.selection-tools>button:not(.ribbon-select-tool),.clipboard-buttons button,.ribbon-shape-row button,.brush-style-trigger{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.ribbon-tool-row button.active,.ribbon-select-tool.active,.ribbon-shape-row button.active{border-color:#9dc1e8;color:#185e9d;background:#e8f3ff;box-shadow:inset 0 0 0 1px #fffc}.ribbon-tool-row button:hover,.ribbon-select-tool:hover,.selection-tools>button:not(.ribbon-select-tool):hover:not(:disabled),.clipboard-buttons button:hover:not(:disabled),.ribbon-shape-row button:hover,.brush-style-trigger:hover{color:#185e9d;background:#edf5fd}.ribbon-shape-row button{border-radius:5px}.ribbon-palette>button{border-radius:2px;box-shadow:inset 0 0 0 1px #ffffff8c}.selection-tools{grid-template-columns:44px 76px 58px;grid-template-rows:repeat(2,26px);column-gap:3px}.selection-tools .selection-mode{grid-column:2 / 4;grid-row:1;width:100%}.selection-tools .selection-all{grid-column:2;grid-row:2}.selection-tools .selection-deselect{grid-column:3;grid-row:2}.color-slots button{width:40px}.ribbon-palette{width:155px;grid-template-columns:repeat(12,12px);grid-template-rows:repeat(2,15px);gap:1px}.ribbon-palette>button{width:12px;height:15px}.ribbon-custom-color{position:relative;width:12px;height:15px;border:1px solid #8e98a7;border-radius:2px;background:conic-gradient(#ff5353,#ffe34d,#4bd17a,#44a9ff,#ac69e8,#ff5353);box-shadow:inset 0 0 0 1px #ffffff8c;cursor:pointer}.ribbon-custom-color input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.ribbon-custom-color span{display:none}@media(max-width:1100px){.paint-ribbon{height:auto;min-height:76px;max-height:min(260px,calc(100vh - 110px));flex-basis:auto;flex-wrap:wrap;align-content:flex-start;gap:0 4px;overflow-y:auto}}@media(max-width:760px){html,body,#root{width:100%;min-width:0;height:100%;min-height:0;overflow:hidden}body{min-height:100dvh}.paint-app{height:100dvh;min-height:0}.topbar{flex:0 0 40px;height:40px;min-height:40px;padding:0 8px 4px}.topbar-editor-name{font-size:10px}.topbar-back{right:6px;padding:0 5px}.topbar-center-logo,.topbar-center-logo img{width:92px}.paint-ribbon{height:82px;min-height:82px;max-height:82px;flex:0 0 82px;flex-wrap:nowrap;align-content:normal;align-items:stretch;gap:4px;padding:4px 6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x}.ribbon-group{flex:0 0 auto;padding-right:5px;padding-left:5px}.editor-layout{height:auto;min-height:0;flex:1 1 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(150px,24dvh);gap:6px;padding:6px;overflow:hidden}.center-editor{min-width:0;min-height:0;grid-column:1 / -1;grid-row:1;border-radius:10px}.left-sidebar,.right-sidebar{display:block;min-width:0;min-height:0;padding:8px;overflow:auto;border-radius:10px;overscroll-behavior:contain;scrollbar-width:thin}.left-sidebar{grid-column:1;grid-row:2}.right-sidebar{grid-column:2;grid-row:2}.panel-heading{margin-bottom:8px}.basic-tools,.shape-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.side-tool,.shape-tool{min-height:42px}.shape-search{min-height:34px}.right-action-grid,.layer-actions{gap:5px}.right-action{min-height:40px}.canvas-holder{width:min(94%,54dvh);max-height:100%}.floating-history{top:8px;left:8px;flex-direction:row;gap:2px;padding:3px;border-radius:9px}.round-button{width:36px;height:36px}.zoom-controls{right:8px;bottom:8px;flex-direction:row;gap:2px;padding:3px;border-radius:9px}.zoom-controls button{width:36px;height:36px}.zoom-controls button:nth-child(2){width:42px;height:32px}.paint-controls{display:none}.editor-status-bar{min-height:22px;height:22px;flex:0 0 22px;gap:8px;padding:0 8px;overflow-x:auto;font-size:9px;-webkit-overflow-scrolling:touch}.asset-launcher{right:10px;bottom:calc(24dvh + 8px);width:42px;height:42px}.layer-row{grid-template-columns:22px minmax(0,1fr) 22px 22px}button,input,select{touch-action:manipulation}}@media(max-width:420px){.editor-layout{grid-template-rows:minmax(0,1fr) minmax(96px,24dvh);gap:5px;padding:5px}.left-sidebar,.right-sidebar{padding:6px}.panel-heading-hint{display:none}.paint-ribbon{padding-right:4px;padding-left:4px}.ribbon-caption{font-size:8px}.asset-launcher{bottom:calc(24dvh + 8px)}}@media(max-height:560px)and (max-width:760px){.topbar{flex-basis:36px;height:36px;min-height:36px}.paint-ribbon{height:70px;min-height:70px;max-height:70px;flex-basis:70px}.editor-layout{grid-template-rows:minmax(0,1fr) minmax(82px,25dvh)}.editor-status-bar{min-height:20px;height:20px;flex-basis:20px}}@media(orientation:landscape)and (max-height:600px)and (max-width:900px){html,body,#root{width:100%;height:100%;min-height:0;overflow:hidden}.paint-app{height:100dvh;min-height:0}.topbar{flex-basis:36px;height:36px;min-height:36px;padding-bottom:2px}.paint-ribbon{height:76px;min-height:76px;max-height:76px;flex-basis:76px;flex-wrap:nowrap;align-content:normal;align-items:stretch;padding-block:3px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x}.ribbon-group{flex:0 0 auto}.editor-layout{grid-template-columns:minmax(118px,20vw) minmax(0,1fr) minmax(118px,20vw);grid-template-rows:minmax(0,1fr);gap:5px;padding:5px}.left-sidebar{grid-column:1;grid-row:1;padding:6px}.center-editor{grid-column:2;grid-row:1}.right-sidebar{grid-column:3;grid-row:1;padding:6px}.panel-heading{margin-bottom:5px}.canvas-holder{width:min(88%,75dvh)}.floating-history,.zoom-controls{transform:scale(.82);transform-origin:top left}.zoom-controls{transform-origin:bottom right}.editor-status-bar{min-height:19px;height:19px;flex-basis:19px}.asset-launcher{bottom:24px;width:36px;height:36px}}
