:root{font-family:DM Sans,system-ui,sans-serif;color:#17201b;background:#eef1ed;font-synthesis:none;--green:#276749;--ink:#17201b;--line:#d8ded9;--soft:#f5f7f4}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}header{max-width:1500px;margin:auto;padding:24px 32px 20px;display:flex;align-items:flex-end;justify-content:space-between}h1{font-family:Manrope,sans-serif;margin:3px 0;font-size:clamp(24px,3vw,38px);letter-spacing:-1.5px}header p{margin:0;color:#657169}.eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:1.6px}.privacy{background:#e1eee6;color:#21613f;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700}.privacy:first-letter{color:#39a66a}main{max-width:1500px;margin:auto;padding:0 32px 24px;display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px}.panel{background:#fff;border:1px solid #dfe4e0;border-radius:16px;box-shadow:0 7px 28px #1e2e250f}.controls{padding:4px 18px;max-height:calc(100vh - 135px);overflow:auto}.controls section{padding:17px 0;border-bottom:1px solid #e6eae7}.controls section:last-child{border:0}.controls h2{font:700 12px Manrope,sans-serif;text-transform:uppercase;letter-spacing:.9px;margin:0 0 12px;color:#526058}.dropzone{border:1.5px dashed #aebbb3;background:var(--soft);border-radius:11px;min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;transition:.15s}.dropzone:hover,.dropzone.dragging{border-color:var(--green);background:#edf7f0}.dropzone input{display:none}.upload-icon{font-size:24px;color:var(--green)}.dropzone strong{font-size:13px}.dropzone small,.hint{font-size:11px;color:#77827b}.filename{font-size:11px;margin-top:7px;color:#66726b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preset-row{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:10px}.preset,.icon-button,.segmented button,.tabs button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px;font-size:12px;color:#526058}.preset:hover,.icon-button.active,.segmented .active,.tabs .active{background:#e6f0ea;border-color:#83a991;color:#215d3e;font-weight:700}.field-row{display:flex;align-items:flex-end;gap:8px}.field-row label{flex:1}.icon-button{width:35px;margin-bottom:1px}label{display:block;color:#657169;font-size:11px;font-weight:600;margin-top:9px}input[type=number],select{display:block;margin-top:5px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:8px 9px;width:100%;outline:none}input:focus,select:focus{border-color:#619777;box-shadow:0 0 0 3px #e5f0e9}.segmented,.tabs{display:flex;margin-top:11px}.segmented button{flex:1;border-radius:0}.segmented button:first-child{border-radius:8px 0 0 8px}.segmented button:last-child{border-radius:0 8px 8px 0}.hint{display:block;margin-top:7px;line-height:1.35}.check-row{display:flex;gap:25px}.check-row label{display:flex;gap:6px;align-items:center}.workspace{min-height:700px;display:flex;flex-direction:column;overflow:hidden}.workspace-bar{height:57px;border-bottom:1px solid #e2e7e3;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.tabs{margin:0}.tabs button{border:0;background:transparent;padding:8px 12px}.workspace-bar>span{font-size:11px;color:#78837c}.stage{min-height:480px;flex:1;background-color:#f3f5f2;background-image:linear-gradient(45deg,#e9ece8 25%,transparent 25%),linear-gradient(-45deg,#e9ece8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9ece8 75%),linear-gradient(-45deg,transparent 75%,#e9ece8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:flex;align-items:center;justify-content:center;padding:26px;overflow:auto}.stage canvas,.stage img{display:none;max-width:100%;max-height:70vh;object-fit:contain;box-shadow:0 8px 35px #19251e24}.stage.has-image canvas:not([hidden]),.stage.has-image img:not([hidden]){display:block}.stage.has-image .empty{display:none}.empty{display:flex;flex-direction:column;align-items:center;gap:7px;color:#7a847e}.empty span{font-size:42px;color:#9aaba0}.empty strong{color:#56625a}.empty small{font-size:12px}.summary{border-top:1px solid #e1e6e2;border-bottom:1px solid #e1e6e2;display:flex;align-items:center;padding:13px 18px;gap:30px}.summary>div:not(.actions){display:flex;flex-direction:column}.summary small{font-size:9px;color:#8a948e;letter-spacing:1px}.summary strong{font-family:Manrope;font-size:16px}.actions{margin-left:auto;display:flex;gap:8px}.actions button{border:1px solid #cad3cd;border-radius:8px;padding:9px 12px;background:#fff;font-size:12px;font-weight:600}.actions button.primary{background:var(--green);border-color:var(--green);color:#fff}.actions button:disabled{opacity:.4;cursor:not-allowed}.legend{padding:14px 18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px;max-height:190px;overflow:auto}.legend-empty{font-size:12px;color:#88928c}.legend-item{display:grid;grid-template-columns:22px 1fr auto;gap:7px;align-items:center;background:#f7f8f6;border-radius:8px;padding:7px}.swatch{width:20px;height:20px;border-radius:5px;border:1px solid rgba(0,0,0,.12)}.legend-item>strong{font-size:12px}.legend-item span{display:flex;flex-direction:column}.legend-item b{font-size:11px}.legend-item small{font-size:9px;color:#7c8780}.legend-item em{font-style:normal;font-weight:700;font-size:11px;text-align:right;display:flex;flex-direction:column}footer{max-width:1500px;margin:auto;padding:0 32px 22px;font-size:11px;color:#738078;display:flex;justify-content:space-between}@media(max-width:850px){header{padding:18px 15px;align-items:flex-start;gap:10px}.privacy{font-size:0}.privacy:after{content:"● Local only";font-size:11px}main{padding:0 12px 20px;grid-template-columns:1fr}.controls{max-height:none}.workspace{min-height:600px}.stage{min-height:390px}.summary{gap:15px;flex-wrap:wrap}.actions{width:100%;margin:0}.actions button{flex:1}.workspace-bar>span{display:none}footer{padding:0 15px 20px;gap:12px;flex-direction:column}}.top-tools{display:flex;align-items:end;gap:8px}.top-tools label{margin:0;min-width:112px}.top-tools select{padding:7px 28px 7px 9px}.toggle{display:flex;gap:9px;align-items:flex-start;margin-top:12px}.toggle input{margin-top:3px}.toggle span{display:flex;flex-direction:column;gap:2px}.toggle b{color:var(--ink);font-size:12px}.toggle small{font-size:10px;color:#77827b}.warning{margin-top:9px;padding:8px 10px;border-radius:7px;background:#fff3cd;color:#795c16;font-size:10px}.check-row{flex-wrap:wrap;gap:8px 18px}footer a{color:var(--green);font-weight:700;text-decoration:none}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--ink:#edf3ef;--line:#39433d;--soft:#202723;color:#edf3ef;background:#121714}.panel{background:#1b211e;border-color:#303934;box-shadow:none}.controls section,.workspace-bar,.summary,.legend{border-color:#333c37}header p,label,.workspace-bar>span,.filename,.hint,.legend-empty,footer{color:#a9b2ac}input[type=number],select,.preset,.icon-button,.segmented button,.tabs button,.actions button{background:#1b211e;color:#d9e1dc;border-color:#3b4640}.preset:hover,.icon-button.active,.segmented .active,.tabs .active{background:#1e3a2d;color:#8ed0aa;border-color:#44735a}.dropzone{background:#202723;border-color:#4a5750}.stage{background-color:#1c221f;background-image:linear-gradient(45deg,#232b27 25%,transparent 25%),linear-gradient(-45deg,#232b27 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#232b27 75%),linear-gradient(-45deg,transparent 75%,#232b27 75%)}.legend-item{background:#232a26}.toggle b{color:#edf3ef}}[data-theme=dark]{--ink:#edf3ef;--line:#39433d;--soft:#202723;color:#edf3ef;background:#121714}[data-theme=dark] .panel{background:#1b211e;border-color:#303934;box-shadow:none}[data-theme=dark] .controls section,[data-theme=dark] .workspace-bar,[data-theme=dark] .summary,[data-theme=dark] .legend{border-color:#333c37}[data-theme=dark] header p,[data-theme=dark] label,[data-theme=dark] .workspace-bar>span,[data-theme=dark] .filename,[data-theme=dark] .hint,[data-theme=dark] .legend-empty,[data-theme=dark] footer{color:#a9b2ac}[data-theme=dark] input[type=number],[data-theme=dark] select,[data-theme=dark] .preset,[data-theme=dark] .icon-button,[data-theme=dark] .segmented button,[data-theme=dark] .tabs button,[data-theme=dark] .actions button{background:#1b211e;color:#d9e1dc;border-color:#3b4640}[data-theme=dark] .preset:hover,[data-theme=dark] .icon-button.active,[data-theme=dark] .segmented .active,[data-theme=dark] .tabs .active{background:#1e3a2d;color:#8ed0aa;border-color:#44735a}[data-theme=dark] .dropzone{background:#202723;border-color:#4a5750}[data-theme=dark] .stage{background-color:#1c221f;background-image:linear-gradient(45deg,#232b27 25%,transparent 25%),linear-gradient(-45deg,#232b27 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#232b27 75%),linear-gradient(-45deg,transparent 75%,#232b27 75%)}[data-theme=dark] .legend-item{background:#232a26}[data-theme=dark] .toggle b{color:#edf3ef}@media(max-width:850px){header{flex-direction:column}.brand p{font-size:13px}.top-tools{width:100%;display:grid;grid-template-columns:1fr 1fr}.top-tools .privacy{grid-column:1/-1;justify-self:start;font-size:11px}.top-tools .privacy:after{content:none}.controls{padding:0 14px}.preset-row{grid-template-columns:repeat(6,1fr)}.workspace{min-height:520px}.workspace-bar{height:auto;min-height:52px;padding:7px 10px}.tabs{width:100%}.tabs button{flex:1}.stage{min-height:310px;padding:12px}.legend{grid-template-columns:1fr;max-height:300px}.summary{position:sticky;bottom:0;background:inherit;z-index:3}.actions button{min-height:44px}.dropzone{min-height:96px}}@media(max-width:480px){header h1{font-size:27px}.preset-row{grid-template-columns:repeat(3,1fr)}main{padding-inline:8px}.panel{border-radius:12px}.workspace{min-height:480px}.summary>div:not(.actions){flex:1}.stage{min-height:270px}.check-row{display:grid;grid-template-columns:1fr 1fr}.check-row label:last-child{grid-column:1/-1}}[data-theme=light]{--ink:#17201b;--line:#d8ded9;--soft:#f5f7f4;color:#17201b;background:#eef1ed}[data-theme=light] .panel{background:#fff;border-color:#dfe4e0;box-shadow:0 7px 28px #1e2e250f}[data-theme=light] .controls section,[data-theme=light] .workspace-bar,[data-theme=light] .summary,[data-theme=light] .legend{border-color:#e1e6e2}[data-theme=light] header p,[data-theme=light] label,[data-theme=light] .workspace-bar>span,[data-theme=light] .filename,[data-theme=light] .hint,[data-theme=light] .legend-empty,[data-theme=light] footer{color:#657169}[data-theme=light] input[type=number],[data-theme=light] select,[data-theme=light] .preset,[data-theme=light] .icon-button,[data-theme=light] .segmented button,[data-theme=light] .tabs button,[data-theme=light] .actions button{background:#fff;color:#526058;border-color:#d8ded9}[data-theme=light] .dropzone{background:#f5f7f4;border-color:#aebbb3}[data-theme=light] .stage{background-color:#f3f5f2;background-image:linear-gradient(45deg,#e9ece8 25%,transparent 25%),linear-gradient(-45deg,#e9ece8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9ece8 75%),linear-gradient(-45deg,transparent 75%,#e9ece8 75%)}[data-theme=light] .legend-item{background:#f7f8f6}[data-theme=light] .toggle b{color:#17201b}.color-limit span{display:flex;justify-content:space-between;align-items:center}.color-limit input{width:100%;accent-color:var(--green);margin:10px 0 2px}.unlimited-toggle{display:flex;align-items:center;gap:6px;margin-top:5px}.zoom-controls{display:flex;align-items:center;gap:3px;margin-left:auto;margin-right:12px}.zoom-controls button{border:1px solid var(--line);background:var(--soft);color:var(--ink);height:30px;min-width:30px;border-radius:6px;padding:0 7px}.zoom-controls #zoomReset{min-width:58px;font-size:11px}.stage{touch-action:none;cursor:grab;align-items:safe center;justify-content:safe center}.stage.dragging{cursor:grabbing}.stage canvas.pattern-canvas{max-width:none;max-height:none;flex:none}.actions .compact{padding-inline:9px;font-weight:500}@media(max-width:850px){.workspace-bar{height:auto;min-height:57px;flex-wrap:wrap;gap:5px;padding:7px 10px}.zoom-controls{order:3;width:100%;justify-content:center;margin:0}.workspace-bar>span{max-width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.editor-overlay{position:fixed;inset:0;z-index:100;background:#090f0cd1;padding:18px}.editor-shell{width:100%;height:100%;display:flex;flex-direction:column;background:var(--soft);color:var(--ink);border-radius:14px;overflow:hidden}.editor-head{display:flex;align-items:center;gap:14px;padding:10px 14px;background:#fff;border-bottom:1px solid var(--line)}.editor-head>strong{white-space:nowrap}[data-theme=dark] .editor-head{background:#1b211e}.editor-actions{margin-left:auto;display:flex;gap:5px;flex-wrap:wrap}.editor-actions button{border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--ink);padding:7px 9px}.editor-actions button.active,.editor-actions .primary{background:var(--green);color:#fff}.editor-body{min-height:0;flex:1;display:grid;grid-template-columns:92px 1fr}.editor-palette{padding:8px;overflow:auto;display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--line)}.editor-palette button{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:6px;padding:5px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink)}.editor-palette button.active{border-color:var(--green);background:#27674924}.editor-palette i{width:24px;height:24px;border:1px solid rgba(0,0,0,.2);border-radius:5px}.editor-palette b{font-size:11px}.editor-stage{min-width:0;min-height:0;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:16px;background-color:#e7ebe7;touch-action:none}.editor-stage canvas{flex:none;max-width:none;max-height:none;box-shadow:0 8px 35px #0000002e;cursor:crosshair;image-rendering:auto}@media(max-width:700px){.editor-overlay{padding:0}.editor-shell{border-radius:0}.editor-head{align-items:flex-start;flex-direction:column;gap:6px}.editor-actions{margin:0;width:100%;overflow-x:auto;flex-wrap:nowrap}.editor-actions button{white-space:nowrap}.editor-body{grid-template-columns:1fr;grid-template-rows:58px 1fr}.editor-palette{flex-direction:row;border-right:0;border-bottom:1px solid var(--line)}.editor-palette button{min-width:67px}}
