@font-face{font-family:Studio;src:local('Avenir Next'),local('Avenir'),local('Segoe UI');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Studio,Inter,-apple-system,BlinkMacSystemFont,sans-serif;color:#293535;background:#f4f3ef;font-size:12px}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;border-radius:6px;transition:background .15s,color .15s}button:hover{background:#e7eae4}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #308b7b;outline-offset:3px}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}input,select{background:#f4f5f0;border:1px solid #dfe3da;min-width:0;padding:8px;border-radius:5px;outline:none}input:focus,select:focus{border-color:#308b7b}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button{appearance:none}.topbar{height:76px;display:flex;align-items:center;padding:0 28px;gap:24px;background:#fbfcf8;border-bottom:1px solid #e4e7df;position:relative;z-index:30}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#233c37;font-size:22px;font-weight:500;letter-spacing:-1px}.brand svg{width:35px;height:35px}.brand small{display:block;font-size:7px;letter-spacing:2px;font-weight:600;margin-top:3px;margin-left:2px}.top-actions{display:flex;align-items:center;gap:6px;border-left:1px solid #e1e5db;padding-left:20px}.top-actions>button:first-child{padding:8px 10px}.tiny{margin-left:8px;color:#829189}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center}.icon-button svg{width:19px;height:19px}#document-name{position:absolute;left:50%;transform:translateX(-50%);text-align:center;background:none;border:0;width:220px;color:#7d8982;font-size:12px;font-weight:500}.right-actions{display:flex;align-items:center;gap:12px;margin-left:auto}#save-status{font-size:10px;color:#93a096;margin-right:8px}.primary{background:#244c43;color:#fff;padding:11px 19px;border-radius:7px;font-weight:500}.primary:hover{background:#356c60}.primary span{margin-left:14px}.right-actions>.primary{font-size:11px}#workspace{height:calc(100% - 76px);position:relative;overflow:hidden}#canvas{width:100%;height:100%;display:block;touch-action:none;outline:0;cursor:default}#canvas[data-tool=pen],#canvas[data-tool=pencil],#canvas[data-tool=frame],#canvas[data-tool=shape],#canvas[data-tool=gradient]{cursor:crosshair}#canvas[data-tool=node]{cursor:crosshair}#canvas[data-tool=hand]{cursor:grab}#canvas.panning{cursor:grabbing}#workspace.grid{background-image:radial-gradient(#acb5ab 0.65px,transparent .65px);background-size:24px 24px}.floating{background:rgba(253,254,250,.97);border:1px solid #e0e4da;border-radius:12px;box-shadow:0 10px 40px #263d2b0b,0 2px 6px #253c2910;z-index:20;position:absolute}.dragbar{height:25px;display:flex;align-items:center;justify-content:center;gap:3px;cursor:move;touch-action:none}.dragbar span{height:3px;width:17px;border-top:1px solid #b8c2b5;border-bottom:1px solid #b8c2b5}#palette{width:112px;left:26px;top:52px;padding:0 10px 6px;user-select:none}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.tool-button{position:relative;height:39px;display:grid;place-items:center;color:#697b72;touch-action:none}.tool-button.active{background:#e2ebe1;color:#214d40}.tool-button.active:after{position:absolute;content:'';bottom:5px;left:50%;width:3px;height:3px;border-radius:50%;background:#426f5e}.tool-button.has-variants:before{content:'';border-left:3px solid transparent;border-top:3px solid transparent;border-bottom:4px solid #a1afa2;position:absolute;bottom:5px;right:5px;transform:rotate(-45deg)}.palette-divider{height:1px;background:#e2e7dd;margin:14px 1px}.paint-stack{height:49px;position:relative;display:flex;align-items:start;justify-content:space-between;padding:2px 2px}.paint-stack>#fill-button,.paint-stack>#stroke-button{padding:0;width:33px;height:33px;border:1px solid #cfd8cc;border-radius:7px;background:white}.paint-stack #fill-chip{display:block;width:23px;height:23px;border-radius:4px;margin:4px}.paint-stack #stroke-chip{display:block;width:23px;height:23px;border:4px solid #254c42;border-radius:4px;margin:4px}#swap-paint,#no-paint{position:absolute;top:38px;line-height:14px;padding:0;font-size:13px}#swap-paint{right:7px}#no-paint{left:7px}.no-color{display:inline-block;width:12px;height:12px;border:1px solid #c6ccc1;background:linear-gradient(135deg,transparent 45%,#bc6051 45%,#bc6051 55%,transparent 55%);vertical-align:middle}.palette-label{display:flex;justify-content:space-between;font-size:6px;letter-spacing:1.3px;color:#8e9a8d;padding:8px 3px 0}.stroke-field{display:flex;align-items:center;margin:12px 0 10px;gap:4px;font-size:9px;color:#879580}.stroke-field input{width:34px;padding:4px;text-align:center;font-size:10px;border:0}.palette-footer{font-size:8px;padding:7px 1px;width:100%;border-top:1px solid #e2e7dd;display:flex;justify-content:space-between;color:#788975;border-radius:0}#welcome{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:360px;max-width:75vw}#welcome[hidden]{display:none}.welcome-mark svg{width:135px;height:90px;stroke:#829a87;fill:none;stroke-width:1}.welcome-mark .guide{stroke:#bac9b5;stroke-dasharray:3 4}.welcome-mark circle{fill:#f4f3ef}h1{font-weight:400;font-size:24px;letter-spacing:-.7px;margin:18px 0 10px;color:#526652}#welcome p{font-size:11px;color:#99a38f;margin-bottom:27px}#welcome button{pointer-events:auto;font-size:11px;padding:9px 14px;border:1px solid #d1dbca}#welcome button span{margin-left:18px}#welcome .text-button{display:block;margin:13px auto;border:0;color:#899781;font-size:9px}.bottom-bar{position:absolute;bottom:20px;left:26px;right:26px;display:flex;justify-content:space-between;pointer-events:none;gap:20px}.bottom-bar>div{pointer-events:auto}.status-dot{width:5px;height:5px;background:#88a084;border-radius:50%;flex-shrink:0}#tool-hint{display:flex;align-items:center;gap:9px;font-size:10px;color:#8a9784;max-width:calc(100% - 230px)}.view-controls{display:flex;align-items:center;background:#fcfdf8;border:1px solid #dfe4d8;border-radius:7px;padding:4px;box-shadow:0 2px 4px #23372605}.view-controls button{height:27px;min-width:29px;color:#72856d;font-size:16px;display:grid;place-items:center}.view-controls button svg{width:17px;height:17px}.view-controls #zoom-label{font-size:10px;min-width:51px}.separator{height:14px;width:1px;background:#e1e5da;margin:0 4px}#inspector{right:24px;top:34px;width:245px;padding:15px;display:none}#inspector.open{display:block}.panel-title{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;margin-bottom:14px}.panel-title button{font-size:20px;color:#8e9a89;padding:0 5px}.property-heading{font-size:8px;letter-spacing:1.5px;color:#9aa591;text-transform:uppercase;margin:14px 0 8px}.property-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.property-grid label{display:flex;align-items:center;gap:5px;background:#f2f5ef;border-radius:5px;padding-left:9px;color:#92a18b;font-size:9px}.property-grid input{width:100%;border:0;background:transparent;padding:7px;color:#52654d;font-size:11px}.property-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0;font-size:10px;color:#87977d}.property-row input{width:75px;padding:5px}.property-row button{padding:5px 9px;border:1px solid #dfe4d7;font-size:9px}.selection-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.empty-property{color:#9da98f;font-size:10px;line-height:1.7;padding-bottom:12px}.layer-heading{display:flex;justify-content:space-between;border-top:1px solid #e1e6db;padding-top:14px;margin-top:15px;color:#829476;font-size:10px}#layer-count{color:#a8b29d}.layer-row{display:flex;align-items:center;gap:7px;padding:8px 3px;cursor:pointer;border-radius:5px;font-size:10px;color:#65785b;margin-top:4px}.layer-row.active{background:#e9efe2}.layer-row .layer-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row button{padding:0;width:19px;height:19px;color:#8a9b7b;display:grid;place-items:center}.layer-row svg{width:13px;height:13px}.layer-dot{width:13px;height:13px;border-radius:3px;border:1px solid #b1bea5;flex-shrink:0}#layers{max-height:245px;overflow:auto;margin:8px -4px 10px;padding:0 4px}.layer-controls{display:flex;gap:4px;border-top:1px solid #e1e6db;padding-top:9px}.layer-controls button{font-size:9px;padding:5px;flex:1}.layer-controls button:nth-child(2),.layer-controls button:nth-child(3){flex:.4}#tool-options{left:150px;top:80px;padding:9px;min-width:190px}.variant{display:flex;align-items:center;gap:10px;width:100%;padding:9px;font-size:11px}.variant svg{width:19px;height:19px}.variant kbd{margin-left:auto;font-size:8px;color:#a0aa95}.variant.active{background:#e9efe2;color:#315437}.option-field{padding:10px;font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.option-field input{width:80px}.option-field select{padding:4px;max-width:110px}.option-note{color:#a0ac93;font-size:9px;line-height:1.6;padding:0 10px;max-width:230px}#paint-popover{left:149px;top:260px;width:244px;padding:15px}.popover-title{font-size:11px;margin-bottom:12px;display:flex;justify-content:space-between}.color-controls{display:flex;gap:8px}.color-controls input[type=color]{width:50px;height:37px;padding:3px;background:#fff}.color-controls input[type=text]{width:100%;font-family:monospace;font-size:11px}.swatches{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:14px 0}.swatches button{height:22px;border:1px solid #273d2115;border-radius:4px}.paint-actions{display:flex;justify-content:space-between;font-size:10px}.paint-actions button{padding:6px 8px}.gradient-stop{display:flex;gap:6px;align-items:center;margin:9px 0;font-size:9px}.gradient-stop input[type=color]{width:32px;height:27px;padding:2px}.gradient-stop input[type=number]{width:47px;padding:4px}.gradient-stop button{padding:4px}.menu{top:6px;left:190px;padding:6px;width:226px}.menu button,.menu a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px;font-size:11px;text-decoration:none;color:#607753}.menu kbd{font-size:9px;color:#a4b199}.menu a{border-top:1px solid #e6eadf;margin-top:5px}#toast{position:absolute;bottom:74px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#284c40;color:white;border-radius:8px;padding:12px 18px;z-index:50;font-size:11px;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{padding:29px;border:1px solid #e0e6d8;border-radius:16px;box-shadow:0 30px 100px #163e2630;width:440px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 30px);overflow:auto;color:#44543d;background:#fcfdf8}dialog::backdrop{background:#243c2638;backdrop-filter:blur(5px)}dialog form{margin:0}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:20px}.eyebrow{font-size:7px;letter-spacing:2px;color:#98a588}h2{font-size:22px;letter-spacing:-.65px;line-height:1.2;font-weight:400;margin:9px 0 0}.close-dialog{font-size:22px;color:#94a185;padding:0 5px}.export-preview{height:128px;border:1px solid #e3e9dc;border-radius:8px;background-color:#fff;background-image:linear-gradient(45deg,#eef0ea 25%,transparent 25%),linear-gradient(-45deg,#eef0ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef0ea 75%),linear-gradient(-45deg,transparent 75%,#eef0ea 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;margin:0 0 20px;display:grid;place-items:center;overflow:hidden}.export-preview svg{max-width:100%;max-height:100%;width:100%;height:100%}.export-row{display:flex;gap:15px;margin:15px 0;align-items:end}.export-row label{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#91a080;flex:1}.export-row select,.export-row input{width:100%;font-size:11px;color:#506347}.export-row label:first-child{flex:1.3}.dimensions label:first-child{flex:1}.dimensions span{font-size:10px;color:#9aaa8a;padding-bottom:10px}.dimensions button{height:33px;color:#5b7a4f}.background-field{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8a9a78}.background-field select{width:60%;font-size:11px}.export-note{font-size:9px;color:#9cac8a;line-height:1.5;margin:16px 0}#export-error{font-size:10px;color:#ac5140;line-height:1.5}.wide{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:11px}#help-dialog{width:480px}#help-dialog p{color:#839674;font-size:11px;line-height:1.7}.shortcuts{display:grid;grid-template-columns:105px 1fr;gap:12px 14px;font-size:10px;margin:25px 0}.shortcuts dt{color:#36522e;font-family:monospace}.shortcuts dd{margin:0;color:#8c9e7c}.help-note{border-top:1px solid #e3e9dc;padding-top:15px}[hidden]{display:none!important}.selection-handle{fill:#fbfff8;stroke:#367a67;stroke-width:1;cursor:nwse-resize}.frame-handle{fill:#fbfff8;stroke:#688e70;stroke-width:1;cursor:nwse-resize}.anchor{fill:#fbfff8;stroke:#367a67;stroke-width:1;cursor:move}.anchor.selected{fill:#367a67}.control-handle{fill:#fbfff8;stroke:#68a082;stroke-width:1;cursor:move}.control-line{stroke:#90b49a;stroke-width:1;pointer-events:none}.selected-outline{stroke:#39876e;fill:none;stroke-width:1;pointer-events:none}.frame-outline{stroke:#7d9b79;stroke-dasharray:5 5;fill:none;stroke-width:1;pointer-events:none}.frame-label{font-family:Studio,sans-serif;fill:#7d9b79;pointer-events:none}.gradient-line{stroke:#fff;stroke-width:3;filter:drop-shadow(0 1px 1px #15382380)}.marquee{fill:#70aa7020;stroke:#7ba278;stroke-width:1}.tool-cursor{fill:none;stroke:#7b9d7b;pointer-events:none}body.gesture{user-select:none}@media(max-width:1100px){#save-status{display:none}.topbar{gap:18px}#document-name{width:150px}.right-actions{gap:6px}}@media(max-width:760px){.topbar{height:64px;padding:0 15px;gap:14px}.brand{font-size:19px}.brand svg{width:29px;height:29px}.brand small{font-size:6px}.top-actions{padding-left:10px;gap:0}.top-actions>button:first-child{padding:6px}#document-name{display:none}.right-actions{gap:2px}.right-actions .primary{padding:10px 12px}.right-actions .primary span{margin-left:6px}#help-button{display:none}#workspace{height:calc(100% - 64px)}#palette{left:14px;top:24px;width:100px;padding:0 8px 6px}.tool-button{height:35px}#welcome{left:58%;width:250px;max-width:calc(100vw - 144px)}h1{font-size:21px;line-height:1.3}#welcome p{line-height:1.8;font-size:10px}.welcome-mark svg{width:95px;height:65px}#welcome button{font-size:9px;padding:8px}.bottom-bar{left:14px;right:14px;bottom:14px;align-items:end}#tool-hint{max-width:calc(100% - 191px);font-size:8px;line-height:1.6}.view-controls button{min-width:25px}.view-controls #zoom-label{min-width:42px}.view-controls #grid-toggle{display:none}.view-controls .separator{display:none}#inspector{right:14px;top:24px;width:220px;max-height:calc(100% - 100px);overflow:auto}#tool-options{left:124px;max-width:calc(100vw - 140px);min-width:175px}#paint-popover{left:124px;width:230px;max-width:calc(100vw - 140px)}.swatches{grid-template-columns:repeat(5,1fr)}.menu{left:120px;width:225px;max-width:calc(100vw - 135px)}.export-row{gap:8px}dialog{padding:23px}.shortcuts{grid-template-columns:87px 1fr;gap:11px 8px}}

.export-ready{display:block;text-align:center;padding:13px 5px 0;color:#71856b;font-size:10px;text-decoration:none}.export-ready:hover{text-decoration:underline}
@media(max-width:420px){.topbar{gap:8px;padding:0 10px}.top-actions{padding-left:6px}.top-actions .icon-button{width:27px}.brand{font-size:18px;gap:5px}.brand svg{width:25px;height:25px}.right-actions .primary{padding:9px 10px}.right-actions .icon-button{width:29px}}

.arrange-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:8px 0}.arrange-controls button,.group-controls button{min-height:32px;padding:4px 6px;font-size:10px}.group-controls{display:flex;gap:6px;margin-bottom:14px}.snap-control{display:flex;align-items:center;gap:4px;font-size:10px}.snap-control select{width:70px;background:transparent;color:inherit;border:1px solid #afb9ae;border-radius:4px;padding:4px}

#context-bar{top:18px;left:160px;display:flex;align-items:center;gap:14px;padding:5px 7px 5px 13px;border-radius:8px;max-width:calc(100% - 185px);font-size:10px}
#current-tool{font-weight:600;color:#315b4e;white-space:nowrap}#context-detail{color:#819083;font-size:9px}#context-settings{padding:8px 10px;font-size:9px;border-left:1px solid #e3e8df;border-radius:0 5px 5px 0;white-space:nowrap}#context-settings span{margin-left:7px}
#gesture-readout{position:absolute;left:50%;bottom:80px;transform:translateX(-50%);padding:9px 14px;border:1px solid #c9d7ca;border-radius:7px;background:#fcfdf8;color:#315b4e;font-size:11px;pointer-events:none;z-index:24;font-variant-numeric:tabular-nums}
#tool-options{width:268px;min-width:0;overflow:auto;overscroll-behavior:contain}#tool-options .option-note{max-width:none;font-size:10px;color:#798b75}.option-field{min-height:42px;padding:9px}.option-field input{width:80px;padding:6px}.option-field input[type=checkbox]{width:16px;height:16px;accent-color:#315b4e}.settings-divider{height:1px;background:#e1e7dc;margin:10px 8px}.option-actions{display:flex;gap:7px;margin:10px 8px}.option-actions button{flex:1;padding:8px;border:1px solid #dce5d6;font-size:10px}.option-actions button:hover{background:#e3ece1}.option-note kbd,.corner-help kbd{border:1px solid #c9d7c5;border-radius:4px;padding:1px 4px;color:#315b4e;background:#f2f6ed;font-size:10px}
#inspector{max-height:calc(100% - 105px);overflow:auto;overscroll-behavior:contain}#help-dialog{width:580px}#shortcut-search{width:100%;margin:8px 0 16px;padding:11px}#help-dialog .corner-help{padding:14px 16px;background:#eef3e8;border:1px solid #dce6d5;border-radius:9px;font-size:12px}#help-dialog .corner-help p{margin-bottom:0;color:#61775c}#help-dialog .shortcut-group h3{font-size:9px;text-transform:uppercase;letter-spacing:1.3px;font-weight:500;color:#81957a;border-bottom:1px solid #e1e9dc;padding-bottom:8px;margin:20px 0 12px}.shortcut-group .shortcuts{grid-template-columns:150px 1fr;margin:0;gap:10px 14px}.shortcut-group dd{color:#687f5f}.shortcut-group dt{font-size:10px}#canvas.corner-edit,.anchor:hover{cursor:crosshair}.paint-stack>#fill-button.active-paint,.paint-stack>#stroke-button.active-paint{box-shadow:0 0 0 2px #80a08c}
@media(max-width:760px){#context-bar{left:126px;top:12px;max-width:calc(100% - 140px);gap:5px;padding-left:9px}#context-detail{display:none}#current-tool{font-size:9px;max-width:105px;overflow:hidden;text-overflow:ellipsis}#context-settings{font-size:9px;padding:8px}#tool-options{max-width:calc(100vw - 24px);width:268px}.shortcut-group .shortcuts{grid-template-columns:118px 1fr;gap:10px}#tool-hint{display:none}.bottom-bar{justify-content:flex-end}#help-button{display:inline-flex;width:28px}#gesture-readout{max-width:calc(100% - 28px);white-space:nowrap}}
@media(max-width:420px){#context-bar{left:126px;max-width:calc(100% - 138px)}#current-tool{max-width:82px}#context-settings{padding:8px 5px}.brand small{letter-spacing:1.5px}.right-actions{gap:0}.right-actions .icon-button{width:26px}.right-actions>.primary{padding:9px 8px}.right-actions>.primary span{display:none}#help-dialog{padding:20px}}

#inspector .panel-title{position:sticky;top:-15px;padding:7px 0;background:#fdfefa;z-index:3;box-shadow:0 5px 8px #fdfefa}

.rotation-stem{stroke:#68a082;pointer-events:none}.rotation-hit{fill:transparent;cursor:grab}.rotation-handle{fill:#fbfff8;stroke:#367a67;cursor:grab}.rotation-mark{fill:none;stroke:#367a67;pointer-events:none}.corner-handle{fill:#f8ead6;stroke:#bc8559;cursor:crosshair}.corner-handle:hover{fill:#e2b686}#canvas[data-tool=rotate]{cursor:grab}#canvas[data-pen-intent=add]{cursor:copy}#canvas[data-pen-intent=remove]{cursor:not-allowed}#canvas[data-pen-intent=edit]{cursor:crosshair}#canvas[data-pen-intent=corner]{cursor:crosshair}#canvas[data-pen-intent=select]{cursor:default}

.tool-button.temporary{background:#dce9e5;color:#215b4d;box-shadow:inset 0 0 0 1px #79a393}
.tool-button.temporary:after{position:absolute;content:'';top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:#3a8875}
#context-bar.temporary-tool{border-color:#9cbbaa;background:#f0f7ef}
#canvas[data-temporary-mode=direct]{cursor:default}
#canvas[data-temporary-mode=convert],#canvas[data-temporary-mode=bevel],#canvas[data-temporary-mode=round]{cursor:crosshair}
#canvas[data-tool=hand],#canvas[data-tool=hand] *{cursor:grab!important}
#canvas.panning,#canvas.panning *{cursor:grabbing!important}

#canvas[data-copy-ready=true]:not(.panning),#canvas[data-copy-ready=true]:not(.panning) [data-object]{cursor:copy}
#canvas.copying:not([data-tool=hand]):not(.panning),#canvas.copying:not([data-tool=hand]):not(.panning) *{cursor:copy!important}
#canvas[data-move-axis=x]:not(.copying):not([data-tool=hand]):not(.panning){cursor:ew-resize}
#canvas[data-move-axis=y]:not(.copying):not([data-tool=hand]):not(.panning){cursor:ns-resize}
