@font-face{font-family:Lobster;src:url(/fonts/Lobster.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Marck Script;src:url(/fonts/MarckScript.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Onest;src:url(/fonts/Onest.ttf) format("truetype");font-weight:100 900;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(/fonts/Inter.ttf) format("truetype");font-weight:100 900;font-display:swap}@font-face{font-family:Fraunces;src:url(/fonts/Fraunces.ttf) format("truetype");font-weight:100 900;font-display:swap}@font-face{font-family:Playfair Display;src:url(/fonts/PlayfairDisplay.ttf) format("truetype");font-weight:400 900;font-display:swap}@font-face{font-family:Pacifico;src:url(/fonts/Pacifico.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Caveat;src:url(/fonts/Caveat.ttf) format("truetype");font-weight:400 700;font-display:swap}@font-face{font-family:Space Grotesk;src:url(/fonts/SpaceGrotesk.ttf) format("truetype");font-weight:300 700;font-display:swap}@font-face{font-family:JetBrains Mono;src:url(/fonts/JetBrainsMono.ttf) format("truetype");font-weight:100 800;font-display:swap}:root{color-scheme:dark;--bg: #0b0b0d;--surface-1: #121215;--surface-2: #19191d;--surface-3: #222227;--surface-4: #2d2d33;--surface-pop: #1b1b20;--stage: #0f0f12;--border: #232329;--border-strong: #34343c;--text: #ededf0;--text-muted: #a1a1aa;--text-faint: #6b6b75;--accent: #c58af5;--accent-strong: #9c3cc7;--accent-hover: #ad4fd8;--accent-soft: rgb(197 138 245 / .14);--accent-line: rgb(197 138 245 / .42);--danger: #f47c7c;--danger-soft: rgb(244 124 124 / .14);--r-xs: 5px;--r-sm: 7px;--r-md: 10px;--r-lg: 14px;--shadow-pop: 0 0 0 1px rgb(0 0 0 / .4), 0 18px 48px rgb(0 0 0 / .55), 0 2px 8px rgb(0 0 0 / .35);--ease: cubic-bezier(.32, .72, 0, 1);--header-h: 52px;--rail-w: 68px;--gutter: 8px;--select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");font-family:Onest,Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{height:100%;overflow:hidden}body{margin:0;min-width:320px;background:var(--bg)}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer;color:inherit}button:not(:disabled){transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s,filter .18s,transform .24s var(--ease)}button:disabled{cursor:not-allowed;opacity:.36}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}select{appearance:none;height:30px;min-width:0;padding:0 26px 0 10px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface-2) var(--select-chevron) no-repeat right 8px center / 12px;color:var(--text);font-size:12px;cursor:pointer}select:hover{border-color:#46464f}option{background:var(--surface-pop);color:var(--text)}input[type=range]{-webkit-appearance:none;appearance:none;height:20px;margin:0;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:var(--surface-4)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:0;border-radius:50%;background:var(--text);box-shadow:0 0 0 3px var(--accent-strong),0 1px 4px #00000080;transition:box-shadow .18s}input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--accent-strong),0 0 0 7px var(--accent-soft)}input[type=range]::-moz-range-track{height:4px;border-radius:99px;background:var(--surface-4)}input[type=range]::-moz-range-progress{height:4px;border-radius:99px;background:var(--accent-strong)}input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--text);box-shadow:0 0 0 3px var(--accent-strong)}input[type=color]{-webkit-appearance:none;appearance:none;flex:none;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:1px solid rgb(255 255 255 / .25);border-radius:50%}input[type=color]::-moz-color-swatch{border:1px solid rgb(255 255 255 / .25);border-radius:50%}input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0;border-radius:99px;background:var(--surface-4);cursor:pointer;transition:background-color .2s}input[type=checkbox]:before{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--text);box-shadow:0 1px 3px #0006;transition:transform .24s var(--ease)}input[type=checkbox]:checked{background:var(--accent-strong)}input[type=checkbox]:checked:before{transform:translate(14px)}.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);overscroll-behavior:none}.app-header{position:relative;z-index:30;flex:0 0 var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 calc(var(--gutter) + 4px) 0 calc(var(--gutter) + 6px)}.header-group{display:flex;align-items:center;gap:2px;min-width:0}.mini-brand{display:block;flex:none;width:48px;height:25px;object-fit:contain;transform:translateY(-2px);margin:0 6px 0 4px}.header-divider,.dock-divider{flex:none;width:1px;height:20px;margin:0 6px;background:var(--border-strong)}.bar-button,.zoom-value{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text-muted)}.bar-button:not(:disabled):hover,.zoom-value:hover,.bar-button.active{background:var(--surface-3);color:var(--text)}.primary-button{display:inline-flex;align-items:center;gap:8px;height:34px;margin-left:8px;padding:0 14px 0 12px;border:0;border-radius:9px;background:var(--accent-strong);color:#fff;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:inset 0 1px #ffffff2e}.primary-button:not(:disabled):hover{background:var(--accent-hover)}.primary-button.active{background:#86309f}.export-wrap-new{position:relative}.workspace-new{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) var(--gutter) calc(var(--side-width) + var(--rail-w));padding:0 var(--gutter) var(--gutter);overflow:hidden}.workspace-new.panel-hidden{grid-template-columns:minmax(0,1fr)}.editor-column{min-width:0;min-height:0;display:flex;flex-direction:column}.stage-new{position:relative;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:var(--r-lg);background-color:var(--stage);background-image:radial-gradient(circle at 1px 1px,rgb(255 255 255 / .065) 1px,transparent 0);background-size:20px 20px;background-position:10px 10px}.stage-surface-new{position:relative;flex:1;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;overscroll-behavior:none;cursor:grab}.stage-surface-new:active,.stage-surface-new.panning{cursor:grabbing}.stage-surface-new.panning,.stage-surface-new.panning .art-canvas-new,.stage-surface-new.panning .object-hit{cursor:grab!important}.stage-surface-new.panning:active,.stage-surface-new.panning:active .art-canvas-new,.stage-surface-new.panning:active .object-hit{cursor:grabbing!important}.canvas-wrap-new{position:relative;flex:none;transform-origin:center center;background:#1a1a1f;box-shadow:0 0 0 1px #ffffff12,0 24px 70px #0000008c}.art-canvas-new,.mask-overlay-new{position:absolute;inset:0;display:block;width:100%;height:100%}.art-canvas-new{touch-action:none;cursor:default}.art-canvas-new.paint-cursor{cursor:crosshair}.mask-overlay-new{pointer-events:none}.canvas-empty-new{--s: var(--ui-inverse-scale, 1);position:absolute;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(10px * var(--s));background:radial-gradient(circle at 50% 42%,#221d29,#151518 70%);color:var(--text);text-align:center;outline:calc(1.5px * var(--s)) dashed rgb(255 255 255 / .16);outline-offset:calc(-18px * var(--s))}.canvas-empty-new svg{width:calc(44px * var(--s));height:calc(44px * var(--s));padding:calc(10px * var(--s));border-radius:calc(12px * var(--s));background:var(--accent-soft);color:var(--accent)}.canvas-empty-new strong{font-size:calc(18px * var(--s));font-weight:600}.canvas-empty-new span{font-size:calc(13px * var(--s));color:var(--text-muted)}.canvas-empty-new button{margin-top:calc(6px * var(--s));padding:calc(9px * var(--s)) calc(16px * var(--s));border:0;border-radius:calc(9px * var(--s));background:var(--accent-strong);color:#fff;font-size:calc(13px * var(--s));font-weight:600}.canvas-empty-new button:hover{background:var(--accent-hover)}.object-hit{position:absolute;z-index:2;border:calc(1px * var(--ui-inverse-scale, 1)) solid transparent;cursor:move;touch-action:none}.object-hit:hover{border-color:var(--accent-line)}.object-hit.selected{border:calc(1.5px * var(--ui-inverse-scale, 1)) solid var(--accent);background:#c58af50a}.object-hit .handle{position:absolute;width:calc(12px * var(--ui-inverse-scale, 1));height:calc(12px * var(--ui-inverse-scale, 1));border:calc(1.5px * var(--ui-inverse-scale, 1)) solid var(--accent-strong);border-radius:calc(3px * var(--ui-inverse-scale, 1));background:#fff;pointer-events:auto;touch-action:none}.object-hit .handle.nw{left:calc(-6px * var(--ui-inverse-scale, 1));top:calc(-6px * var(--ui-inverse-scale, 1));cursor:nwse-resize}.object-hit .handle.ne{right:calc(-6px * var(--ui-inverse-scale, 1));top:calc(-6px * var(--ui-inverse-scale, 1));cursor:nesw-resize}.object-hit .handle.sw{left:calc(-6px * var(--ui-inverse-scale, 1));bottom:calc(-6px * var(--ui-inverse-scale, 1));cursor:nesw-resize}.object-hit .handle.se{right:calc(-6px * var(--ui-inverse-scale, 1));bottom:calc(-6px * var(--ui-inverse-scale, 1));cursor:nwse-resize}.rotation-line{position:absolute;left:50%;bottom:100%;width:calc(1.5px * var(--ui-inverse-scale, 1));height:calc(24px * var(--ui-inverse-scale, 1));background:var(--accent);transform:translate(-50%);pointer-events:none}.rotation-handle{position:absolute;left:50%;bottom:calc(100% + 22px * var(--ui-inverse-scale, 1));width:calc(15px * var(--ui-inverse-scale, 1));height:calc(15px * var(--ui-inverse-scale, 1));padding:0;border:calc(1.5px * var(--ui-inverse-scale, 1)) solid var(--accent-strong);border-radius:50%;background:#fff;transform:translate(-50%);cursor:grab;touch-action:none}.inline-text-editor{position:absolute;z-index:10;padding:10px;border:1px solid var(--accent);border-radius:6px;background:#121216db;color:#fff;resize:none;overflow:auto;outline:none}.placement-marker,.drag-ghost-new{pointer-events:none;transform:translate(-50%,-50%)}.placement-marker{position:absolute;z-index:4;width:110px;height:110px}.drag-ghost-new{position:fixed;z-index:100;width:100px;height:100px;filter:drop-shadow(0 10px 18px rgb(0 0 0 / .55))}.placement-marker img,.drag-ghost-new img{width:100%;height:100%;object-fit:contain}.stage-dock{position:relative;z-index:12;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(auto,1fr);align-items:center;gap:8px;padding:2px 10px 10px}.dock-pill{display:flex;align-items:center;gap:4px;min-height:46px;padding:5px;border:1px solid var(--border-strong);border-radius:13px;background:#1b1b20eb;box-shadow:inset 0 1px #ffffff0a,0 10px 30px #00000059;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.tool-dock{grid-column:2}.zoom-controls{grid-column:3;justify-self:end;gap:0}.dock-pill .bar-button{width:32px;height:32px;border-radius:8px}.zoom-value{width:50px;height:32px;border-radius:8px;font-size:12px;font-variant-numeric:tabular-nums}.brush-inline{display:flex;align-items:center;gap:8px;min-width:0}.mode-switch-new,.cursor-switch{position:relative;isolation:isolate;display:flex;flex:none;padding:2px;border-radius:9px;background:var(--surface-2)}.mode-highlight,.cursor-highlight{position:absolute;z-index:-1;top:2px;bottom:2px;left:2px;border-radius:7px;background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-line);transition:transform .28s var(--ease)}.mode-highlight{width:calc((100% - 4px) / 3)}.cursor-highlight{width:calc((100% - 4px)/2)}.mode-switch-new button,.cursor-switch button{display:grid;place-items:center;width:32px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--text-muted)}.mode-switch-new button:hover,.cursor-switch button:hover{color:var(--text)}.mode-switch-new button.active,.cursor-switch button.active{color:var(--accent)}.brush-control{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:12px;white-space:nowrap}.stepper-control{gap:0}.stepper-control>button{width:26px;height:30px;padding:0;border:0;background:var(--surface-2);color:var(--text-muted);font-size:15px;line-height:1}.stepper-control>button:hover{background:var(--surface-3);color:var(--text)}.stepper-control>button:first-of-type{margin-left:8px;border-radius:8px 0 0 8px}.stepper-control>button:last-of-type{border-radius:0 8px 8px 0}.stepper-control input{width:38px;height:30px;padding:0;border:0;background:var(--surface-2);color:var(--text);text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.stepper-control input:focus-visible{outline-offset:-2px}.stepper-control span{min-width:18px;margin-left:6px;color:var(--text-faint)}.profile-control select{height:30px;border-color:transparent}.floating-toolbar{position:absolute;z-index:25;max-width:calc(100% - 20px);transform:translate(-50%,-100%);animation:popover-in .18s var(--ease) both}.floating-toolbar.below{transform:translate(-50%)}.floating-main{display:flex;align-items:center;gap:2px;max-width:100%;padding:4px;border:1px solid rgb(255 255 255 / .1);border-radius:12px;background:#1e1e24e6;box-shadow:var(--shadow-pop);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}.floating-main button{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-muted)}.floating-main button:hover{background:#ffffff12;color:var(--text)}.floating-main button.active{background:var(--accent-soft);color:var(--accent)}.floating-main button.danger:hover{background:var(--danger-soft);color:var(--danger)}.floating-main select{height:30px;min-width:80px;max-width:124px;border-color:transparent;background-color:#ffffff0f}.export-popover,.floating-popover,.effect-settings,.hotkeys-overlay,.export-modal{border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-pop);color:var(--text);box-shadow:var(--shadow-pop)}.export-popover,.floating-popover,.effect-settings{animation:popover-in .18s var(--ease) both}.floating-popover{position:absolute;top:calc(100% + 8px);left:50%;width:290px;max-width:min(90vw,330px);max-height:min(360px,var(--popover-room, 360px));display:flex;flex-direction:column;gap:8px;padding:12px;overflow-y:auto;overscroll-behavior:contain;transform:translate(-50%)}.floating-toolbar.popover-up .floating-popover{top:auto;bottom:calc(100% + 8px)}.floating-toolbar.below .floating-popover{top:calc(100% + 8px);bottom:auto}.floating-popover>strong{color:var(--text-muted);font-size:12px;font-weight:600}.control-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;color:var(--text-muted);font-size:12px}.control-line>input[type=range]{flex:1;min-width:0}.control-line>input[type=number]{width:64px;height:28px;padding:0 8px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface-2);color:var(--text);font-variant-numeric:tabular-nums}.control-line>select{max-width:168px}.control-line>span{width:38px;color:var(--text);font-size:11.5px;text-align:right;font-variant-numeric:tabular-nums}.segmented{display:flex;gap:2px;padding:2px;border-radius:8px;background:var(--surface-2)}.segmented button{display:grid;place-items:center;width:30px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-muted)}.segmented button:hover{color:var(--text)}.segmented button.active{background:var(--surface-4);color:var(--text)}.motion-choices{display:flex;flex-wrap:wrap;gap:6px}.motion-choices button{height:30px;padding:0 12px;border:1px solid var(--border-strong);border-radius:99px;background:var(--surface-2);color:var(--text-muted);font-size:12px;text-transform:capitalize}.motion-choices button:hover{color:var(--text)}.motion-choices button.active{border-color:var(--accent-line);background:var(--accent-soft);color:#f1e3fd}.arrange-popover{gap:2px;padding:6px}.arrange-popover button{display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:12px;text-align:left}.arrange-popover button:hover,.export-popover>button:hover{background:var(--surface-3)}.export-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:252px;padding:6px}.export-popover>strong{display:block;padding:6px 8px 8px;color:var(--text-muted);font-size:12px;font-weight:600}.export-popover>button{width:100%;display:flex;align-items:center;gap:12px;padding:8px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left}.export-popover>button>svg{box-sizing:content-box;flex:none;padding:8px;border-radius:8px;background:var(--surface-3);color:var(--accent)}.export-popover span{display:flex;flex-direction:column;gap:2px}.export-popover b{font-size:13px;font-weight:600}.export-popover small{color:var(--text-muted);font-size:11px}.hotkeys-overlay{position:absolute;z-index:38;top:16px;right:16px;width:min(460px,calc(100% - 32px));padding:14px 16px 16px;pointer-events:none;animation:popover-in .15s var(--ease) both}.hotkeys-overlay strong{display:block;font-size:13px;font-weight:600}.hotkeys-overlay dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;margin:12px 0 0}.hotkeys-overlay dl>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.hotkeys-overlay dt{color:var(--text-muted);font-size:12px}.hotkeys-overlay dd{display:flex;align-items:center;gap:14px;margin:0;color:var(--text-faint);font-size:11px}.hotkeys-overlay dd>*{position:relative}.hotkeys-overlay dd>*+*:before{content:"+";position:absolute;left:-10px;top:50%;color:var(--text-faint);transform:translateY(-50%)}.hotkeys-overlay kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:6px;background:var(--surface-3);color:var(--text);font:inherit;font-size:11px}.drop-indicator{position:absolute;inset:12px;z-index:40;display:grid;place-items:center;border:2px dashed var(--accent);border-radius:16px;background:#9c3cc729;pointer-events:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:drop-pulse 1.4s ease-in-out infinite}.drop-indicator>div{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text)}.drop-indicator svg{color:var(--accent)}.drop-indicator strong{font-size:19px;font-weight:600}.drop-indicator span{color:var(--text-muted);font-size:12px}.panel-resizer{position:relative;cursor:col-resize;touch-action:none;outline:none}.panel-resizer:after{content:"";position:absolute;top:50%;left:50%;width:3px;height:36px;border-radius:99px;background:var(--border-strong);transform:translate(-50%,-50%);transition:background-color .2s,height .24s var(--ease)}.panel-resizer:hover:after,.panel-resizer:focus-visible:after{height:64px;background:var(--accent)}.panel-resizer[hidden],.right-panel[hidden],.catalog-page[hidden]{display:none}.right-panel{position:relative;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) var(--rail-w);grid-template-rows:minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1)}.tool-tabs{position:relative;grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:4px;padding:8px 6px;border-left:1px solid var(--border);background:#0f0f12}.tool-highlight{position:absolute;top:8px;left:6px;right:6px;height:58px;border-radius:10px;background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-line);transform:translateY(calc(var(--tab-index, 0) * (58px + 4px)));transition:transform .3s var(--ease)}.tool-tabs button{position:relative;z-index:1;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:58px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text-faint);font-size:10.5px;font-weight:500}.tool-tabs button:hover,.tool-tabs button[aria-selected=true]{color:var(--text)}.tool-tabs button[aria-selected=true] svg{color:var(--accent)}.catalog-body{grid-column:1;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;padding:14px 12px 0 14px}.catalog-heading{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 0 12px}.catalog-heading h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}.catalog-heading span{padding:2px 8px;border-radius:99px;background:var(--surface-2);color:var(--text-muted);font-size:11px;font-variant-numeric:tabular-nums}.catalog-page{flex:1;min-height:0;display:flex;flex-direction:column}.glitter-header{flex:none;display:flex;align-items:center;gap:8px;padding-bottom:10px}.current-glitter{flex:none;width:34px;height:34px;padding:3px;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface-2)}.current-glitter canvas{display:block;width:100%;height:100%;border-radius:5px}.palette-colors-new{display:flex;gap:6px;min-width:0;padding:5px 16px 5px 5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}.palette-colors-new::-webkit-scrollbar{display:none}.palette-colors-new button{flex:none;width:22px;height:22px;padding:0;border:1px solid rgb(255 255 255 / .22);border-radius:50%}.palette-colors-new button:hover{transform:scale(1.12)}.palette-colors-new button.active{box-shadow:0 0 0 2px var(--surface-1),0 0 0 4px var(--accent)}.palette-colors-new .rainbow-color{display:grid;place-items:center;border:0;background:conic-gradient(#ef549d,#ffb947,#e4e555,#49d481,#5bc6ed,#a46bf2,#ef549d)}.rainbow-color span{display:block;width:10px;height:10px;border-radius:50%;background:var(--surface-1)}.catalog-search{flex:none;display:flex;align-items:center;gap:8px;height:36px;margin-bottom:10px;padding:0 10px;border:1px solid transparent;border-radius:9px;background:var(--surface-2);color:var(--text-faint);transition:border-color .18s,box-shadow .18s}.catalog-search:focus-within{border-color:var(--accent-line);box-shadow:0 0 0 3px var(--accent-soft);color:var(--text-muted)}.catalog-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}.catalog-search input::placeholder{color:var(--text-faint)}.scroll-frame{position:relative;flex:1;min-height:0;overflow:hidden}.catalog-scroll{height:100%;width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--surface-4) transparent;padding-bottom:14px}.virtual-scroll{padding-top:2px}.virtual-spacer{position:relative;width:100%}.virtual-item{position:absolute;min-width:0}.scroll-hint{position:absolute;left:0;right:0;z-index:4;height:28px;opacity:0;pointer-events:none;transition:opacity .18s}.scroll-hint.visible{opacity:1}.scroll-hint-top{top:0;background:linear-gradient(var(--surface-1),transparent)}.scroll-hint-bottom{bottom:0;background:linear-gradient(transparent,var(--surface-1))}.glitter-tile,.sparkle-tile,.effect-tile,.sticker-tile-new{position:relative;width:100%;height:100%;padding:0;border:0;border-radius:var(--r-md);overflow:hidden}.glitter-tile{background:var(--surface-2)}.glitter-tile:hover{filter:brightness(1.18)}.glitter-tile.selected,.sparkle-tile.selected,.effect-tile.selected{outline:2px solid var(--accent);outline-offset:-2px}.glitter-tile.selected:after,.effect-tile.selected:after{content:"";position:absolute;inset:2px;border:1.5px solid rgb(0 0 0 / .55);border-radius:8px;pointer-events:none}.glitter-thumb,.sparkle-tile canvas{display:block;width:100%;height:100%}.sparkle-tile{background:transparent}.sparkle-tile:hover{background:var(--surface-3)}.sparkle-tile.selected{background:var(--accent-soft)}.effect-tile{background:var(--surface-2)}.effect-tile>button:first-child{display:block;width:100%;height:100%;padding:0;border:0;background:transparent}.effect-tile>button:first-child:hover{filter:brightness(1.15)}.effect-preview{display:block;width:100%;height:100%;object-fit:cover}.effect-gear{position:absolute;top:5px;right:5px;z-index:1;display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid rgb(255 255 255 / .18);border-radius:7px;background:#0c0c0eb8;color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.effect-gear:hover{background:var(--accent-strong)}.sticker-tile-new{display:grid;place-items:center;background:#ffffff06;cursor:grab;touch-action:pan-y}.sticker-tile-new:hover{background:#fff1}.sticker-tile-new:active{cursor:grabbing}.sticker-tile-new img{width:86%;height:86%;object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;transition:transform .28s var(--ease)}.sticker-tile-new:hover img{transform:scale(1.07)}.effect-settings{position:absolute;z-index:50;right:calc(var(--rail-w) + 10px);width:min(272px,calc(100% - var(--rail-w) - 20px));max-height:min(480px,70vh);padding:14px;overflow-y:auto;overscroll-behavior:contain}.popover-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.popover-title strong{font-size:14px;font-weight:600}.popover-title button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text-muted)}.popover-title button:hover{background:var(--surface-3);color:var(--text)}.effect-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.effect-actions button{display:flex;align-items:center;justify-content:center;gap:4px;height:32px;padding:0 6px;border:0;border-radius:8px;background:var(--surface-3);color:var(--text);font-size:12px}.effect-actions button:hover{background:var(--surface-4)}.effect-actions button:last-child:hover{background:var(--danger-soft);color:var(--danger)}.text-library-new{min-height:0}.add-text-new{width:100%;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--accent-line);border-radius:var(--r-md);background:var(--accent-soft);color:#f1e3fd;font-size:13px;font-weight:600}.add-text-new:hover{background:#c58af538}.text-presets-new{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.text-presets-new button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:94px;padding:10px 8px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:radial-gradient(circle at 50% 30%,#26262c,var(--surface-2) 75%);color:var(--text)}.text-presets-new button:hover{border-color:var(--border-strong);transform:translateY(-2px)}.text-presets-new span{max-width:100%;overflow:hidden;font-size:20px;white-space:nowrap;text-overflow:ellipsis}.text-presets-new small{color:var(--text-faint);font-size:10.5px}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.export-modal{width:min(100%,360px);padding:24px;border-radius:16px}.modal-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-md);background:var(--accent-soft);color:var(--accent)}.export-modal h2{margin:16px 0 4px;font-size:18px;font-weight:600}.export-modal p{margin:0 0 22px;color:var(--text-muted);font-size:13px}.progress-track{height:6px;overflow:hidden;border-radius:99px;background:var(--surface-4)}.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent-strong),var(--accent));transition:width .2s linear}.progress-meta{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:var(--text-muted);font-size:12px;font-variant-numeric:tabular-nums}.progress-meta button{height:30px;padding:0 12px;border:0;border-radius:8px;background:var(--surface-3);color:var(--text);font-size:12px}.progress-meta button:hover{background:var(--surface-4)}.toast{position:fixed;top:calc(var(--header-h) + 10px);left:50%;z-index:60;display:flex;align-items:center;gap:9px;padding:9px 10px 9px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface-pop);color:var(--text);font-size:13px;box-shadow:var(--shadow-pop);transform:translate(-50%);animation:toast-in .24s var(--ease) both}.toast>svg{color:var(--accent)}.toast button{display:grid;place-items:center;width:24px;height:24px;margin-left:6px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-muted)}.toast button:hover{background:var(--surface-3);color:var(--text)}@keyframes popover-in{0%{opacity:0;translate:0 6px;scale:.97}to{opacity:1;translate:0 0;scale:1}}@keyframes toast-in{0%{opacity:0;translate:0 -8px}}@keyframes drop-pulse{50%{border-color:#e3c2fb;background:#9c3cc73d}}@media(max-width:1180px){.brush-inline{gap:6px}.stepper-control>button{width:22px}}@media(max-width:920px){.workspace-new{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--main-percent) var(--gutter) minmax(0,1fr)}.workspace-new.panel-hidden{grid-template-rows:minmax(0,1fr)}.panel-resizer.horizontal{cursor:row-resize}.panel-resizer.horizontal:after{width:36px;height:3px;transition:background-color .2s,width .24s var(--ease)}.panel-resizer.horizontal:hover:after,.panel-resizer.horizontal:focus-visible:after{width:64px;height:3px}.right-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.tool-tabs{grid-column:1;grid-row:1;flex-direction:row;padding:6px;border-left:0;border-bottom:1px solid var(--border)}.tool-tabs button{flex:1;height:48px;gap:3px}.tool-highlight{top:6px;left:6px;right:auto;width:calc((100% - 28px)/5);height:48px;transform:translate(calc(var(--tab-index, 0) * (100% + 4px)))}.catalog-body{grid-column:1;grid-row:2;padding:12px 12px 0}.effect-settings{--tabs-h: 61px;top:calc(var(--tabs-h) + 8px)!important;left:8px;right:8px;width:auto;max-height:calc(100% - var(--tabs-h) - 16px)}.zoom-controls .bar-button,.hotkey-trigger{display:none}}@media(max-width:620px){:root{--header-h: 48px;--gutter: 6px}.app-header{gap:4px;padding:0 6px 0 8px}.mini-brand{width:44px;height:23px;margin:0 2px 0 0}.header-divider{display:none}.bar-button{width:32px;height:32px}.primary-button{width:36px;margin-left:4px;padding:0;justify-content:center}.primary-button span{display:none}.stage-dock{display:flex;justify-content:center;padding:0 6px 6px}.dock-pill{min-height:42px;padding:4px}.tool-dock{max-width:100%}.zoom-controls{position:absolute;right:8px;bottom:calc(100% + 6px);min-height:0;padding:3px}.brush-inline{gap:4px}.brush-control{font-size:0}.brush-control>*{font-size:12px}.stepper-control>button:first-of-type{margin-left:0}.stepper-control input{width:32px}.stepper-control span{display:none}.profile-control select{max-width:76px;padding-right:22px;background-position:right 6px center}.dock-divider{margin:0 2px}.mode-switch-new button,.cursor-switch button{width:28px}.catalog-body{padding:10px 8px 0}.catalog-heading{padding-bottom:8px}.tool-tabs button{height:44px;font-size:10px}.tool-highlight{height:44px}.effect-settings{--tabs-h: 57px}.floating-toolbar{max-width:92vw}.floating-main select{max-width:80px}.hotkeys-overlay{top:8px;right:8px;width:calc(100% - 16px)}.hotkeys-overlay dl{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
