:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#2c352e;background:#f8faf5;--line:#dfe5da;--green:#42674d;--muted:#778271}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:white;border-radius:7px;padding:9px 12px;cursor:pointer;font-size:12px;color:inherit}button:hover{background:#eaf0e4}button:disabled{opacity:.45;cursor:not-allowed}button.selected{background:#dce8d3;border-color:#97b084;color:#314b32}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#34543e}.quiet{background:transparent;border:0}a{color:inherit;text-decoration:none}input,select{max-width:100%;min-width:0;background:white;border:1px solid var(--line);border-radius:6px;padding:9px;color:inherit}input[type=range]{padding:0;accent-color:var(--green);width:100%}input[type=color]{padding:3px;width:100%;height:38px}input[type=checkbox]{accent-color:var(--green)}label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:15px}.check{flex-direction:row;align-items:center;gap:6px;font-size:11px}.check input{margin:0}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--muted)}[hidden]{display:none!important}.topbar{height:65px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:650;display:flex;align-items:center;gap:9px}.brand b{background:var(--green);color:white;border-radius:8px;padding:0 7px 4px}.brand span{font-size:13px;font-weight:400;color:var(--muted);border-left:1px solid var(--line);padding-left:10px}.top-actions{display:flex;align-items:center;gap:15px;font-size:12px}.auth{min-height:calc(100vh - 65px);display:grid;place-items:center;background:radial-gradient(ellipse at 80% 15%,#e0ebd5,transparent 65%)}.auth>div{max-width:410px;padding:32px 20px}.auth h1{font-size:44px;line-height:1.15;letter-spacing:-1.5px;font-weight:550}.auth p,.auth small{font-size:13px;color:var(--muted);line-height:1.8}.auth form{margin-top:30px}.auth form button{width:100%}.auth small{display:block;margin-top:18px;font-size:11px}#auth-error{color:#9a4539}.library{max-width:1250px;margin:auto;padding:50px 30px}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.library h1{font-size:40px;font-weight:550;letter-spacing:-1.5px;margin:12px 0}.library h1 span{color:#98ac80}.library p{font-size:13px;color:var(--muted)}.project-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px;margin-top:36px}.project-card{border:1px solid var(--line);border-radius:12px;padding:22px;background:white;position:relative}.project-card>button:first-child{border:0;text-align:left;width:100%;padding:0;background:none}.project-card strong{display:block;font-size:17px;overflow-wrap:anywhere;margin:16px 0 9px}.project-card small{color:var(--muted)}.project-card .project-icon{font-size:28px;color:#95ad7f}.project-card .remove-project{position:absolute;right:10px;top:10px;font-size:10px}.project-bar{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}#project-name{font-weight:650;border:0;background:transparent;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#save-status{font-size:11px;color:var(--muted);margin-right:auto}.editor-layout{display:grid;grid-template-columns:175px minmax(0,1fr) 225px;height:calc(100dvh - 129px);min-height:540px}.tool-panel,.layers-panel{overflow:auto;padding:17px;background:#f4f6ef}.tool-panel{border-right:1px solid var(--line)}.tool-panel>button{width:100%;margin:4px 0}.tool-panel label{margin-top:15px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tool-grid button{padding:8px 5px;font-size:11px}hr{border:0;border-top:1px solid var(--line);margin:18px 0}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.view-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;background:#fff;border-bottom:1px solid var(--line)}.view-toolbar button{padding:7px 10px}.view-toolbar label{margin:0;flex-direction:row;align-items:center;font-size:10px}.view-toolbar input[type=range]{width:75px}.viewports{display:flex;flex:1;min-height:0;min-width:0}.canvas-viewport{flex:1;min-width:0;overflow:auto;background:#e5e9e0;overscroll-behavior:contain}#canvas-space{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;height:max-content;padding:50px}#paint-canvas{display:block;touch-action:none;box-shadow:0 8px 30px #26301a20;background-color:#fff;background-image:linear-gradient(45deg,#e2e5df 25%,transparent 25%),linear-gradient(-45deg,#e2e5df 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e5df 75%),linear-gradient(-45deg,transparent 75%,#e2e5df 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.canvas-footer{padding:9px 12px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);background:white;border-top:1px solid var(--line)}#model-viewport{position:relative;flex:1;min-width:0;min-height:260px;background:#e9eee3;border-left:1px solid var(--line);display:flex;flex-direction:column}#model-stage{position:relative;flex:1;min-height:160px;overflow:hidden}#model-stage canvas{display:block;touch-action:none}#model-empty{position:absolute;top:22%;left:10%;right:10%;text-align:center;pointer-events:none}#model-empty h2{font-size:20px;font-weight:500}#model-empty p{color:var(--muted);font-size:12px;line-height:1.8}.model-controls{display:flex;gap:6px;padding:10px;flex-wrap:wrap;background:#f6f8f2}.model-controls button{font-size:10px;padding:8px}.model-controls label{margin:0;flex-direction:row;align-items:center;font-size:10px}.model-controls select{padding:5px;max-width:150px}#model-status{font-size:11px;color:var(--muted);padding:0 12px;min-height:15px}.layers-panel{border-left:1px solid var(--line)}.layers-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.layers-heading h2{font-size:14px;font-weight:550}.layer-row{display:flex;align-items:center;gap:6px;padding:7px;border:1px solid transparent;border-radius:7px;margin-bottom:5px;background:#fff}.layer-row.active{border-color:#92ac80;background:#e8efdf}.layer-row button{border:0;background:none;padding:3px}.layer-row .layer-select{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left}.layer-select img{width:32px;height:32px;object-fit:contain;background:#fff;border:1px solid var(--line)}.layer-select span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row small{font-size:9px;color:var(--muted)}#layers{max-height:35vh;overflow:auto;margin-bottom:15px}#layer-settings{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.layer-help{font-size:11px;color:var(--muted);line-height:1.8}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;width:400px;max-width:92vw;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#25322277}dialog h2{font-size:22px;font-weight:550;margin:0 0 24px}dialog p{font-size:12px;color:var(--muted);line-height:1.7}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#294532;color:white;max-width:90vw;padding:14px 22px;border-radius:8px;font-size:13px;z-index:10;box-shadow:0 5px 25px #0002}button:focus-visible,a:focus-visible{outline:3px solid #8cab75;outline-offset:2px}@media(max-width:1100px){.editor-layout{grid-template-columns:145px minmax(0,1fr) 185px}.tool-panel,.layers-panel{padding:10px}.viewports.split{flex-direction:column}#model-viewport{border-left:0;border-top:1px solid var(--line)}.canvas-footer span:last-child{display:none}}@media(max-width:700px){.topbar{padding:0 12px}.top-actions{gap:8px}.top-actions a{display:none}.project-bar{padding:8px;gap:6px}.project-bar button{font-size:10px;padding:7px}#project-name{max-width:130px}.editor-layout{height:auto;min-height:0;grid-template-columns:1fr}.tool-panel{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid var(--line);overflow:visible}.tool-panel>.eyebrow,.tool-panel hr{display:none}.tool-panel label{margin:0;max-width:110px}.tool-panel>button{width:auto;margin:0;font-size:10px}.tool-panel .tool-grid{display:flex;flex-wrap:wrap}.workspace{height:65dvh;min-height:440px;grid-row:2}.layers-panel{grid-row:3}.layer-help{margin-bottom:0}#layers{max-height:200px}.library{padding:30px 18px}.library-heading{align-items:flex-start}.library h1{font-size:32px}.view-toolbar{gap:7px}.view-toolbar button{font-size:10px}.brand{font-size:19px}}
.canvas-viewport{touch-action:none}.editor-layout.tools-collapsed{grid-template-columns:minmax(0,1fr) 225px}.editor-layout.layers-collapsed{grid-template-columns:175px minmax(0,1fr)}.editor-layout.tools-collapsed.layers-collapsed{grid-template-columns:minmax(0,1fr)}.tools-collapsed .tool-panel,.layers-collapsed .layers-panel{display:none}#collaborators{font-size:11px;color:var(--muted);max-width:180px;overflow-wrap:anywhere}@media(max-width:700px){.editor-layout.tools-collapsed,.editor-layout.layers-collapsed,.editor-layout.tools-collapsed.layers-collapsed{grid-template-columns:1fr}.editor-layout.tools-collapsed .workspace{grid-row:1}.workspace{min-height:360px}.tools-collapsed.layers-collapsed .workspace{height:calc(100dvh - 190px)}}
#canvas-space{padding:max(60vh,400px) max(60vw,400px)}
body.canvas-focus{overflow:hidden}.canvas-focus>.topbar,.canvas-focus .project-bar{display:none}.canvas-focus #editor{position:fixed;inset:0;z-index:20;background:#e5e9e0}.canvas-focus .editor-layout,.canvas-focus .editor-layout.tools-collapsed,.canvas-focus .editor-layout.layers-collapsed{display:block;height:100dvh;min-height:0;padding-left:62px}.canvas-focus .tool-panel,.canvas-focus .layers-panel,.canvas-focus .view-toolbar,.canvas-focus .canvas-footer{display:none}.canvas-focus .workspace{height:100%;min-height:0}.canvas-focus #canvas-space{padding:70dvh 70vw}#focus-tools{position:fixed;z-index:22;left:0;top:0;bottom:0;width:62px;padding:calc(6px + env(safe-area-inset-top)) 6px calc(6px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:6px;background:#f4f6ef;overflow-y:auto;overscroll-behavior:contain}#focus-tools button{width:44px;min-height:44px;flex-shrink:0;font-size:23px;padding:5px}#focus-tools input[type=color]{width:44px;min-height:38px;flex-shrink:0}#focus-tools input[type=range]{width:46px;min-height:32px;flex-shrink:0}.canvas-focus #notice{z-index:30}.canvas-focus dialog{z-index:31}
#focus-tools{bottom:auto;max-height:100dvh;height:max-content;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 18px #26301a20}#toolbar-handle{touch-action:none;cursor:grab;position:sticky;top:0;background:#e2eadb;z-index:1}#toolbar-handle:active{cursor:grabbing}.toolbar-presets{display:flex;gap:2px;flex-shrink:0}#focus-tools .toolbar-presets button{width:23px;min-height:32px;font-size:12px;padding:0}.toolbar-presets button[aria-pressed=true]{background:#dce8d3}.canvas-focus[data-toolbar-dock=right] .editor-layout{padding-left:0;padding-right:62px}.canvas-focus[data-toolbar-dock=floating] .editor-layout{padding-left:0;padding-right:0}
#colors-dialog{background:#171719;color:#f5f5f7;border:1px solid #39393c;width:340px;padding:12px 16px 18px;border-radius:20px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}#colors-dialog::backdrop{background:#0005}.colors-handle{height:3px;width:32px;border-radius:3px;background:#666;margin:0 auto 12px}.colors-heading{display:flex;align-items:center;gap:8px;margin-bottom:14px}.colors-heading h2{font-size:19px;font-weight:650;margin:0 auto 0 0}.colors-heading button{background:#303034;border:0;color:#eee}.colors-heading #color-previous,.colors-heading #color-current{width:30px;height:24px;border:1px solid #777;border-radius:6px;display:block;padding:0}.colors-heading #colors-done{font-size:12px;padding:8px}#color-square{position:relative;height:min(280px,35dvh);border-radius:9px;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;overflow:hidden;cursor:crosshair}#color-marker{position:absolute;width:18px;height:18px;border:2px solid white;box-shadow:0 1px 4px #0009;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}#colors-dialog label{font-size:11px;color:#bdbdc5;margin:12px 0 0;gap:6px}#colors-dialog input[type=range]{height:24px;accent-color:#9bc9ed}#color-hue{appearance:none;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);height:8px!important;border:0;margin:8px 0}#color-hue::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border:2px solid white;border-radius:50%;background:#444}.colors-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px}#color-hex{background:#29292d;color:#fff;border-color:#444;font-size:14px;width:100%;padding:8px}.colors-history-heading{margin-top:14px;font-size:11px;justify-content:space-between;margin-bottom:8px}.colors-history-heading button{font-size:10px;padding:7px 15px}#color-history{display:grid;grid-template-columns:repeat(6,1fr);gap:3px}#color-history button{height:32px;min-width:0;padding:0;border:1px solid #ffffff30;border-radius:4px}.color-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:500px){#colors-dialog{margin:auto auto max(10px,env(safe-area-inset-bottom));width:calc(100vw - 24px)}}
.custom-color-swatch{width:100%;height:38px;border:3px solid white;box-shadow:0 0 0 1px #c6cec1;border-radius:6px;touch-action:manipulation}#focus-tools .custom-color-swatch{width:44px;height:38px;min-height:38px;padding:0}
#brush-dialog{max-height:90dvh;overflow:auto}#brush-dialog label{margin-bottom:12px}#brush-dialog output{float:right;color:var(--muted)}
