:root{--ink:#202b33;--muted:#78848b;--accent:#128b76;--mint:#e5f6f0;--line:#e5e9ea;--panel:#fff;--bg:#eff2f3;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .15s,box-shadow .15s;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #74d5bc;outline-offset:2px}button{border:0;background:none}svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}a{color:var(--accent)}.topbar{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 26px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:23px;letter-spacing:-.9px;white-space:nowrap}.brandmark{display:grid;place-items:center;background:#16a88d;color:white;width:36px;height:36px;border-radius:10px}.brandmark svg{width:23px;height:23px}.brand span:last-child{color:#98a3a6;font-size:12px;font-weight:500;letter-spacing:.1em;border-left:1px solid var(--line);padding-left:13px;margin-left:3px}.docname{border-left:1px solid var(--line);padding-left:24px;max-width:280px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-right{display:flex;align-items:center;gap:10px;margin-left:auto}.private{display:flex;align-items:center;gap:6px;font-size:12px;color:#778882;white-space:nowrap;margin-right:16px}.private svg{width:15px;height:15px}.btn{border:1px solid var(--line);border-radius:7px;min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;font-weight:550;white-space:nowrap}.btn:hover{background:#f3f6f5}.btn.primary{background:#22352f;color:white;border-color:#22352f}.btn.primary:hover{background:#365347}.btn.accent{background:var(--accent);color:white;border-color:var(--accent)}.btn.small{min-height:32px;font-size:13px;padding:0 10px}.btn svg{width:17px;height:17px}.icon-btn{width:34px;height:34px;border-radius:6px;display:inline-grid;place-items:center}.icon-btn:hover{background:#edf2f0}.workbench{height:calc(100dvh - 76px);min-height:480px;display:grid;grid-template-columns:76px minmax(0,1fr) 286px;grid-template-rows:1fr}.toolrail{background:#fff;border-right:1px solid var(--line);padding:15px 10px;display:flex;flex-direction:column;align-items:center;gap:5px;z-index:2;overflow:auto}.tool{width:48px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:8px;position:relative;color:#6a787e}.tool:hover{background:#f1f5f4;color:var(--ink)}.tool.active{background:var(--mint);color:var(--accent)}.tool.active:before{content:"";height:18px;width:3px;background:var(--accent);position:absolute;left:-10px;border-radius:0 2px 2px 0}.rail-sep{width:27px;height:1px;min-height:1px;background:var(--line);margin:7px 0}.toolrail .spacer{flex:1;min-height:12px}.rail-color{position:relative;width:31px;height:31px;min-height:31px;border:4px solid white;box-shadow:0 0 0 1px #dfe5e2;background:#148a75;border-radius:7px;overflow:hidden}.rail-color input{position:absolute;inset:-8px;width:50px;height:50px;cursor:pointer;border:0;padding:0}.workspace{min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.workspace-top{height:58px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 25px;border-bottom:1px solid #e1e6e7;background:#f7f9f9}.workspace-title{display:flex;align-items:center;gap:10px;color:#829094;font-size:12px;letter-spacing:.09em;font-weight:600;white-space:nowrap}.workspace-title svg{width:16px;height:16px}.history-controls{display:flex;align-items:center;gap:3px}.subtle{color:#869195;font-size:12px}.divider{width:1px;height:20px;background:#dfe6e5;margin:0 10px}.canvas-area{flex:1;position:relative;overflow:auto;overscroll-behavior:contain;background-color:#eef1f2;background-image:radial-gradient(#c8d0d2 .65px,transparent .65px);background-size:16px 16px}.canvas-area.dragover{box-shadow:inset 0 0 0 3px #1aab8e;background-color:#dff2ec}.canvas-scroll{min-width:100%;min-height:100%;width:max-content;display:flex;align-items:center;justify-content:center;padding:50px;position:relative}.canvas-stack{position:relative;flex-shrink:0;box-shadow:0 7px 34px #1c2f381c;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 50%/20px 20px;touch-action:none}.canvas-stack canvas{position:absolute;inset:0;width:100%;height:100%}.empty{max-width:660px;width:100%;min-height:420px;margin:35px;padding:54px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #dce3e2;border-radius:12px;background:#ffffffdf;box-shadow:0 8px 45px #253c4506;position:relative}.empty:before{content:"";inset:12px;position:absolute;border:1px dashed #dce5e2;border-radius:7px;pointer-events:none}.empty-icon{width:72px;height:72px;border-radius:19px;background:#eaf6f0;color:var(--accent);display:grid;place-items:center;margin-bottom:25px;transform:rotate(-5deg)}.empty-icon svg{width:31px;height:31px;transform:rotate(5deg)}.empty .eyebrow{font-size:11px;letter-spacing:.18em;color:#95a39d;font-weight:600;margin-bottom:14px}.empty h1{font-size:29px;font-weight:650;letter-spacing:-.8px;line-height:1.25}.empty p{font-size:15px;line-height:1.7;color:#8b9599;max-width:360px;margin:12px 0 23px}.empty-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.empty .paste-hint{color:#97a19e;font-size:12px;margin-top:24px;display:flex;align-items:center;gap:7px}.empty .formats{display:flex;gap:9px;margin-top:30px}.format-tag{font-size:10px;letter-spacing:.08em;color:#9aa6a2;border:1px solid #e4eae7;border-radius:4px;padding:4px 7px}kbd{font:11px inherit;font-size:11px;display:inline-block;min-width:18px;padding:3px 5px;background:white;border:1px solid #dfe5e3;border-radius:4px;color:#7a8682;box-shadow:0 1px 1px #dde3e1}.statusbar{height:43px;min-height:43px;border-top:1px solid #e0e6e5;background:#f8faf9;display:flex;align-items:center;gap:16px;padding:0 21px;color:#85918c;font-size:12px}.statusbar .zoom{margin-left:auto;display:flex;align-items:center;gap:2px}.zoom-label{min-width:48px;text-align:center;color:#677770;font-size:12px}.inspector{background:white;border-left:1px solid var(--line);overflow:auto;scrollbar-width:thin}.panel-tabs{position:sticky;top:0;background:#fff;z-index:2;display:flex;height:58px;border-bottom:1px solid var(--line);padding:0 13px;gap:8px}.panel-tab{font-size:14px;font-weight:600;padding:0 7px;flex:1;color:#909b9e;position:relative}.panel-tab.active{color:#263d34}.panel-tab.active:after{content:"";position:absolute;bottom:-1px;height:2px;background:var(--accent);left:7px;right:7px}.panel-section{padding:24px 21px;border-bottom:1px solid var(--line)}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.section-head h2,.section-head h3{font-size:14px;font-weight:650}.badge{font-size:10px;color:#8b9892;padding:3px 5px;border:1px solid #e2e8e5;border-radius:4px}.field{margin-top:19px}.field:first-child{margin-top:0}.field-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:14px;color:#66756d;gap:5px}.field-head output{font-size:12px;border:1px solid #e5eae8;border-radius:4px;padding:3px 7px;color:#55685d;min-width:48px;text-align:right}.field input[type=range]{width:100%;accent-color:var(--accent);height:4px;cursor:pointer;display:block;margin:0;appearance:none;-webkit-appearance:none;border-radius:3px;background:linear-gradient(to right,var(--accent) var(--pct,50%),#eaf0ed var(--pct,50%))}.field input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;background:white;border:3px solid var(--accent);border-radius:50%;box-shadow:0 1px 3px #142f3320}.field input[type=range]::-moz-range-thumb{width:8px;height:8px;background:white;border:3px solid var(--accent);border-radius:50%}.field input[type=number],.field input[type=text],.field textarea,.field select,.input{width:100%;border:1px solid #dfe6e2;border-radius:6px;background:#fcfdfc;padding:9px 10px;color:#33493b;min-width:0}.field textarea{resize:vertical;min-height:82px;line-height:1.5}.row{display:flex;gap:10px;align-items:center}.row>.field{flex:1;min-width:0;margin-top:15px}.row .btn{flex:1}.helper{font-size:12px;color:#89978e;line-height:1.65;margin-top:15px}.brush-preview{height:66px;background:#f7f9f8;border-radius:7px;margin:24px 0 0;display:flex;align-items:center;justify-content:center;overflow:hidden}.brush-preview canvas{width:210px;height:64px}.color-current{display:flex;align-items:center;gap:10px}.color-swatch{width:42px;height:42px;position:relative;border:1px solid #d9e3de;border-radius:7px;overflow:hidden;flex-shrink:0}.color-swatch input{position:absolute;inset:-8px;width:60px;height:60px;border:0;padding:0;cursor:pointer}.hex-value{font-size:13px;letter-spacing:.06em;flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:11px 8px;color:#6d7d73;background:#fbfcfb}.swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin-top:17px}.swatch{width:100%;aspect-ratio:1;border-radius:5px;box-shadow:inset 0 0 0 1px #00000008}.swatch:hover{outline:2px solid #acbcb2;outline-offset:2px}.tips{padding:19px 21px;background:#fdfefd;color:#91a097;font-size:12px;line-height:1.7}.tips strong{display:block;color:#6c8173;font-size:12px;font-weight:550;margin-bottom:5px}.tip-line{display:flex;justify-content:space-between;margin-top:6px}.checkbox{display:flex;align-items:center;gap:8px;color:#708075;font-size:13px;margin:14px 0}.checkbox input{accent-color:var(--accent)}.action-stack{display:flex;flex-direction:column;gap:8px;margin-top:20px}.full{width:100%}.sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.sticker{height:43px;background:#f5f8f6;border-radius:7px;font-size:25px}.sticker:hover{background:#e0f1e7;transform:scale(1.07)}.layer{display:flex;align-items:center;gap:9px;padding:11px 9px;border:1px solid var(--line);border-radius:7px;margin:7px 0;cursor:pointer}.layer.active{border-color:#aed9c5;background:#f0f9f4}.layer-thumb{width:38px;height:34px;border:1px solid #e3e7e5;border-radius:4px;background:repeating-conic-gradient(#e2e6e3 0% 25%,white 0% 50%) 50%/8px 8px;object-fit:contain}.layer-name{flex:1;min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-name small{display:block;color:#9baa9f;font-size:10px;margin-top:3px}.layer .icon-btn{width:24px;height:27px;color:#87988e}.layer .icon-btn svg{width:16px;height:16px}.layer-actions{display:flex;justify-content:space-between;margin-top:12px}.effect-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.effect-btn{border:1px solid #e5eae6;border-radius:7px;padding:7px;text-align:left;color:#708075;font-size:12px}.effect-btn.active{border-color:var(--accent);color:var(--accent);background:#eff9f3}.effect-preview{height:55px;border-radius:4px;background:linear-gradient(130deg,#365c63,#b7d9c2 55%,#caaa68);margin-bottom:7px}.selection-bubble{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:#fff;padding:8px;border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 20px #243d3320;z-index:2;white-space:nowrap}.floating-note{position:absolute;top:18px;left:50%;transform:translateX(-50%);background:#fff;padding:9px 15px;border:1px solid var(--line);border-radius:6px;box-shadow:0 3px 10px #243d3310;color:#688071;font-size:12px;white-space:nowrap;pointer-events:none}.toast{position:fixed;bottom:66px;left:50%;transform:translateX(-50%);background:#233c30;color:white;padding:12px 20px;border-radius:8px;box-shadow:0 6px 28px #1a35202b;font-size:14px;z-index:20;max-width:90vw}.toast.error{background:#75443f}dialog{border:1px solid #dfe6e1;border-radius:14px;padding:29px;width:min(440px,calc(100vw - 32px));box-shadow:0 20px 100px #12271c30;color:var(--ink)}dialog::backdrop{background:#20382c55;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dialog-heading h2{font-size:21px;letter-spacing:-.4px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:27px}.dialog-desc{color:#839389;font-size:14px;line-height:1.6}.dialog-preview{height:160px;width:100%;object-fit:contain;margin-top:18px;border:1px solid var(--line);background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 50%/16px 16px;border-radius:7px}.hidden,[hidden]{display:none!important}.mobile-panel-toggle{display:none}.mobile-tool-label{display:none}.busy{cursor:progress!important}@media(min-width:1500px){.workbench{grid-template-columns:80px minmax(0,1fr) 310px}.panel-section{padding:25px}.empty{max-width:720px;min-height:460px}}@media(max-width:1100px){.private{display:none}.brand span:last-child{display:none}.topbar{gap:17px;padding:0 20px}.docname{max-width:180px;padding-left:17px}.workbench{grid-template-columns:65px minmax(0,1fr) 260px}.toolrail{padding-left:8px;padding-right:8px}.empty{margin:15px;padding:40px 20px;min-height:360px}.empty h1{font-size:25px}.canvas-scroll{padding:25px}.panel-section{padding:21px 17px}.workspace-top{padding:0 15px}.statusbar{padding:0 12px;gap:8px}}@media(max-width:800px){.workbench{grid-template-columns:60px minmax(0,1fr)}.inspector{position:absolute;right:0;top:134px;bottom:43px;width:286px;z-index:6;box-shadow:-7px 6px 25px #223d301a;display:none}.inspector.mobile-open{display:block}.mobile-panel-toggle{display:inline-flex}.topbar{height:68px;padding:0 14px}.workbench{height:calc(100dvh - 68px)}.docname{display:none}.brand{font-size:21px}.workspace-top{height:50px}.header-right{gap:7px}.header-right>.btn{padding:0 10px}.inspector{top:118px}.toolrail{gap:2px;padding-top:10px}.tool{height:42px;width:43px}.empty{min-height:330px;margin:10px;padding:28px 20px}.empty h1{font-size:24px}.empty p{font-size:14px}.subtle.history-count,.status-hint{display:none}.statusbar{font-size:11px}.empty-icon{margin-bottom:17px;width:58px;height:58px}.workspace-title{letter-spacing:.03em}.canvas-scroll{padding:18px}.empty .formats{margin-top:20px}}@media(max-width:480px){.header-right .open-label{display:none}.topbar{padding:0 12px;gap:10px}.header-right>.btn{font-size:12px}.brand{font-size:20px}.brandmark{width:31px;height:31px}.brandmark svg{width:21px;height:21px}.workbench{grid-template-columns:51px minmax(0,1fr)}.tool{width:37px;height:39px}.toolrail{padding:9px 5px}.tool.active:before{left:-5px}.workspace-title{display:none}.workspace-top{justify-content:flex-end;padding:0 7px}.empty h1{font-size:22px}.empty p{font-size:13px}.empty-actions{flex-direction:column}.empty-actions .btn{min-width:164px}.empty{padding:25px 17px;margin:0;min-height:360px}.empty .eyebrow{font-size:9px}.empty .paste-hint{font-size:10px;gap:4px}.statusbar{padding:0 7px}.statusbar .zoom{gap:0}.statusbar .zoom .icon-btn{width:28px}.inspector{width:min(285px,calc(100vw - 51px))}.selection-bubble{gap:4px;padding:5px}.selection-bubble .btn{font-size:11px;padding:0 7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Language controls and whole-image resizing. */
.language-switch{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#f7f9f8;margin-right:3px}.language-switch button{min-width:31px;min-height:28px;padding:0 5px;border-radius:4px;font-size:12px;font-weight:650;color:#86958c}.language-switch button.active{color:var(--accent);background:white;box-shadow:0 1px 4px #243d3312}.language-switch button:hover{color:var(--accent)}.resize-trigger{margin-right:12px;color:var(--accent)}.resize-current{display:flex;align-items:center;gap:9px;background:#f3f8f5;border:1px solid #e1ece5;border-radius:7px;padding:12px;margin-top:18px;color:#5d7565;font-size:14px}.resize-current svg{width:17px;height:17px}.resize-lock{margin-top:22px;font-size:14px}.resize-lock svg{width:16px;height:16px}.resize-summary{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-size:13px;color:#84948a}.resize-summary strong{color:#506957;font-size:14px;font-weight:600}.resize-error{color:#9a4941}.resize-error:empty{display:none}.history-count{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:1200px){.history-count{display:none}.workspace-title{letter-spacing:.04em}.private{margin-right:0}}@media(max-width:1050px){.docname{max-width:130px}.brand span:last-child{display:none}}@media(max-width:800px){.resize-trigger{margin-right:6px}}@media(max-width:480px){.resize-label{display:none}.resize-trigger{width:32px;padding:0!important;margin-right:2px}.language-switch{margin-right:0;gap:0;padding:2px}.language-switch button{min-width:26px;padding:0 3px;font-size:11px}.topbar{gap:8px}.header-right{gap:5px}.brand{font-size:18px;gap:7px}.header-right>.btn{padding:0 8px}}@media(max-width:360px){.topbar{padding:0 8px}.brand{font-size:16px;gap:5px}.brandmark{width:27px;height:29px}.header-right>.btn{padding:0 6px;font-size:11px}.header-right>.btn svg{width:14px;height:14px}}
@media(max-width:650px){.workspace-title{display:none}.workspace-top{justify-content:flex-end}}

.eraser-target{padding:0 0 18px;margin-bottom:22px;border-bottom:1px solid var(--line)}.eraser-target .helper{margin-top:9px}.eraser-target .btn{margin-top:9px}.brush-preview.eraser-preview{background:repeating-conic-gradient(#e0e6e2 0% 25%,#fff 0% 50%) 50%/14px 14px}
