:root{--bg:#f4f2ee;--panel:#fff;--ink:#23211f;--muted:#6f6a64;--line:#e2ddd5;--accent:#2e7d5b;--accent-ink:#fff;--danger:#c62828;--canvas:#d9d5ce;--mat:#fbfaf7;--grid:#e6e1d8;--sel:#1e88e5;--ruler:#f0ede8;color:var(--ink);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}button,input,select{font:inherit;color:inherit}button,label.button{border:1px solid var(--line);background:var(--panel);cursor:pointer;border-radius:6px;min-height:34px;padding:6px 10px}button:hover:not(:disabled),label.button:hover{border-color:#c8c1b6}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}button.danger{color:var(--danger)}input:not([type=radio]):not([type=checkbox]),select{border:1px solid var(--line);background:#fff;border-radius:6px;min-height:34px;padding:5px 7px}input:focus,select:focus,button:focus-visible{outline:2px solid var(--sel);outline-offset:1px}.splash{height:100%;color:var(--muted);place-items:center;display:grid}.app{grid-template:"top top top""tools stage side"minmax(0,1fr)/76px minmax(0,1fr) 300px;height:100%;display:grid}.top-bar{background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;grid-area:top;align-items:center;gap:8px;padding:6px 10px;display:flex}.brand{color:var(--accent);letter-spacing:.02em;margin-right:4px;font-weight:700}.project-name{width:180px;font-weight:600}.save-state{color:var(--muted);min-width:60px;font-size:12px}.spacer{flex:1}.seg{align-items:center;gap:2px;display:inline-flex}.seg button.on,.layer-actions button.on{border-color:var(--accent);color:var(--accent);background:#e5f1eb}.field{flex-direction:column;gap:3px;margin:8px 0;display:flex}.field span{color:var(--muted);font-size:12px}.field.inline{flex-direction:row;align-items:center;gap:6px;margin:0}.shapes-bar{background:var(--panel);border-right:1px solid var(--line);flex-direction:column;grid-area:tools;gap:4px;padding:8px 6px;display:flex;overflow-y:auto}.shapes-bar button{border-color:#0000;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;display:flex}.shapes-bar svg{fill:#ece8e1;width:28px;height:28px;stroke:var(--ink);stroke-width:1.4px;stroke-linejoin:round}.shapes-bar span{color:var(--muted);font-size:11px}.stage{grid-area:stage;grid-template-rows:24px minmax(0,1fr);grid-template-columns:24px minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}.ruler-corner{background:var(--ruler);border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);place-items:center;font-size:10px;display:grid}.ruler{background:var(--ruler);display:block;overflow:hidden}.ruler-x{border-bottom:1px solid var(--line)}.ruler-y{border-right:1px solid var(--line);grid-row:2}.ruler line{stroke:#9a948c;stroke-width:1px;shape-rendering:crispedges}.ruler text{fill:var(--muted);font-size:10px}.canvas-wrap{background:var(--canvas);grid-area:2/2;min-width:0;min-height:0;position:relative;overflow:hidden}.canvas{touch-action:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:0}.canvas.panning{cursor:grab}.mat{fill:var(--mat);stroke:#b9b2a7;stroke-width:1px;vector-effect:non-scaling-stroke}.grid line{stroke:var(--grid);stroke-width:1px;vector-effect:non-scaling-stroke;shape-rendering:crispedges;pointer-events:none}[data-root]{cursor:move}.sel-box{fill:none;stroke:var(--sel);stroke-width:1.2px;stroke-dasharray:5 3;pointer-events:none}.handle circle{fill:#fff;stroke:var(--sel);stroke-width:1.5px}.handle circle.hit{fill:#0000;stroke:none}.handle-nw,.handle-se{cursor:nwse-resize}.handle-ne,.handle-sw{cursor:nesw-resize}.handle-rotate{cursor:grab}.handle-rotate circle:not(.hit){fill:var(--sel)}.marquee{fill:#1e88e514;stroke:var(--sel);stroke-dasharray:4 3;pointer-events:none}.side{background:var(--panel);border-left:1px solid var(--line);grid-area:side;overflow-y:auto}.panel{border-bottom:1px solid var(--line);padding:10px 12px}.panel h2{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:2px 0 8px;font-size:13px}.panel header{justify-content:space-between;align-items:center;display:flex}.panel.empty p{color:var(--muted);margin:0}.grid2{grid-template-columns:1fr 1fr;gap:6px 10px;display:grid}.num-field{grid-template-columns:minmax(18px,auto) 1fr auto;align-items:center;gap:4px;display:grid}.num-field span{color:var(--muted);font-size:12px}.num-field input{width:100%;min-width:0}.num-field em{color:var(--muted);font-size:11px;font-style:normal}.check{align-items:center;gap:6px;font-size:12px;display:flex}.button-row{flex-wrap:wrap;gap:6px;display:flex}.layers ul{margin:0;padding:0;list-style:none}.layers li{border:1px solid #0000;border-radius:8px;grid-template-columns:34px 1fr;gap:8px;padding:8px 4px;display:grid}.layers li.active{border-color:var(--accent);background:#f4faf7}.layers input[type=color]{width:34px;height:34px;padding:2px}.layer-main{grid-template-columns:1fr auto;gap:4px;display:grid}.layer-main .layer-name{background:0 0;border-color:#0000;grid-column:1/-1;font-weight:600}.layer-main .layer-name:focus{border-color:var(--line);background:#fff}.layer-main small{color:var(--muted);align-self:center}.layer-actions{grid-column:2;gap:3px;display:flex}.layer-actions button{min-height:28px;padding:2px 7px;font-size:12px}.layer-actions button.off{opacity:.5}.dialog-backdrop{z-index:10;background:#1e1a1659;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--panel);border-radius:12px;width:min(560px,100%);max-height:90vh;padding:16px 18px;overflow:auto;box-shadow:0 10px 40px #0003}.dialog header{align-items:center;gap:8px;display:flex}.dialog header h2{flex:1;margin:0;font-size:18px}.dialog h3{color:var(--muted);margin:14px 0 6px;font-size:13px}.dialog footer{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.dialog .hint{color:var(--muted);font-size:12px}.seg-radio{border:none;flex-direction:column;gap:6px;padding:0;display:flex}.seg-radio label{align-items:center;gap:8px;display:flex}.warnings{background:#fff6e5;border:1px solid #f1d59a;border-radius:8px;margin:10px 0;padding:8px 12px 8px 26px}.files{margin:0;padding-left:18px}.cut-sheet{border-collapse:collapse;width:100%;font-size:13px}.cut-sheet th,.cut-sheet td{text-align:left;border-bottom:1px solid var(--line);padding:5px 6px}.swatch{vertical-align:-2px;border:1px solid #0003;border-radius:3px;width:14px;height:14px;display:inline-block}.project-list{margin:12px 0;padding:0;list-style:none}.project-list li{gap:8px;margin-bottom:6px;display:flex}.project-open{text-align:left;flex-direction:column;flex:1;align-items:flex-start;display:flex}.project-open small{color:var(--muted)}.project-list li.current .project-open{border-color:var(--accent);opacity:1}@media (width<=900px){.app{grid-template:"top top""tools stage"minmax(0,1fr)"side side"38%/64px minmax(0,1fr)}.side{border-left:none;border-top:1px solid var(--line)}.project-name{width:130px}}.import-dialog{width:min(640px,100%)}.import-preview{background:repeating-conic-gradient(#f3f1ed 0 25%, #fff 0 50%) 0 0 / 16px 16px;border:1px solid var(--line);border-radius:8px;place-items:center;height:min(46vh,360px);margin:10px 0 6px;transition:opacity .15s;display:grid}.import-preview svg{width:100%;height:100%}.import-preview.busy{opacity:.6}.trace-controls{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:center;gap:4px 16px;display:grid}.trace-controls output{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:4px}.error{color:#b3261e;font-size:13px}.seg-radio legend{margin-bottom:4px;font-size:13px}.drop-hint{border:3px dashed var(--accent);color:var(--accent);pointer-events:none;z-index:20;background:#2e7d5b14;border-radius:16px;place-items:center;font-size:20px;display:grid;position:fixed;inset:8px}label.button{cursor:pointer;align-items:center;display:inline-flex}.toast{color:#fff;z-index:30;cursor:pointer;background:#2b2724;border-radius:10px;max-width:min(520px,90vw);padding:10px 16px;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}.text-props textarea{resize:vertical;width:100%;font:inherit;border:1px solid var(--line);background:#fff;border-radius:6px;padding:6px 8px}.font-row{gap:6px;margin:6px 0;display:flex}.font-pick{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.font-pick small{color:var(--muted)}.font-row select{max-width:45%}.text-props output{color:var(--ink);margin-left:4px}.text-props input[type=range]{width:100%}.font-browser{width:min(680px,100%);height:min(88vh,760px)}.font-browser .tabs{flex-wrap:wrap;margin:8px 0}.font-filters{grid-template-columns:1fr auto 1fr;gap:6px;display:grid}.font-filters input,.font-filters select{min-width:0}.font-list{flex-direction:column;gap:4px;margin:8px 0;padding:0;list-style:none;display:flex}.font-row-item{gap:4px;display:flex}.font-choice{text-align:left;flex-direction:column;flex:1;align-items:flex-start;min-width:0;padding:8px 10px;display:flex}.font-sample{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:26px;line-height:1.2;overflow:hidden}.font-choice small{color:var(--muted);font-size:11px}.star{width:44px;font-size:20px}.star.on{color:#e2a400}.cloud{width:36px;color:var(--muted,#888);font-size:16px}.cloud.on{color:#2e9e5b;opacity:1}.more{width:100%}@media (width<=560px){.font-filters{grid-template-columns:1fr 1fr}.font-filters input:last-child{grid-column:1/-1}}.tool-grid{grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:4px;display:grid}.tool-grid button{padding:6px 4px;font-size:13px}.offset-form{border:1px solid var(--line);background:#fbfaf8;border-radius:8px;margin:6px 0;padding:8px}.node-overlay .node-outline{fill:none;stroke:var(--accent);stroke-width:1.5px;pointer-events:none}.node-overlay .node rect,.node-overlay .node circle:not(.hit){fill:#fff;stroke:var(--accent);stroke-width:1.5px}.node-overlay .node.on rect,.node-overlay .node.on circle:not(.hit){fill:var(--accent)}.node-overlay .hit{fill:#0000;stroke:none}.node-overlay .node,.node-overlay .node-handle{cursor:move}.node-overlay .node-handle line{stroke:var(--accent);stroke-width:1px;pointer-events:none}.node-overlay .node-handle circle:not(.hit){fill:#fff;stroke:var(--accent);stroke-width:1.5px}.sync-chip{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;min-height:30px;padding:4px 10px;font-size:12px;display:inline-flex}.sync-chip .dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.sync-chip.ok .dot{background:var(--accent)}.sync-chip.warn{background:#fff8e8;border-color:#e0b35a}.sync-chip.warn .dot{background:#d08a00}.account-form{flex-direction:column;display:flex}.account-form .button-row,.account-body .button-row{justify-content:flex-end;margin-top:8px}.account-body section+section{border-top:1px solid var(--line);margin-top:12px}.plain-list{margin:6px 0 10px;padding:0;list-style:none}.plain-list li{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;display:flex}.plain-list small,.account-body small{color:var(--muted)}.check{align-items:center;gap:6px;margin:6px 0;display:flex}.notice{background:#fff8e8;border:1px solid #e0b35a;border-radius:8px;padding:8px 10px}.thumb{background:var(--mat);border:1px solid var(--line);color:var(--muted);border-radius:8px;flex:none}.conflict-group{border-top:1px solid var(--line);margin-top:10px}.conflict-group ul{margin:8px 0;padding:0;list-style:none}.conflict-group li{align-items:center;gap:12px;padding:6px 0;display:flex}.conflict-meta{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.conflict-meta small{color:var(--muted)}.button-col{flex-direction:column;gap:6px;display:flex}.conflict-group .button-row{justify-content:flex-end}.phone{background:var(--bg);height:100%;padding:0 16px 24px;overflow:auto}.phone-bar{background:var(--bg);z-index:1;align-items:center;gap:10px;padding:10px 0;display:flex;position:sticky;top:0}.phone-bar h1{text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:18px;overflow:hidden}.phone-list{margin:0;padding:0;list-style:none}.phone-list li{margin-bottom:8px}.phone-list button{text-align:left;flex-direction:column;gap:3px;width:100%;min-height:56px;padding:12px;display:flex}.phone-list small{color:var(--muted)}.phone-preview{place-items:center;display:grid}.phone-preview .thumb{aspect-ratio:1;width:100%;height:auto;max-height:55vh}.phone-size{text-align:center;color:var(--muted);margin:6px 0 12px}.phone-layers{margin:0 0 12px;padding:0;list-style:none}.phone-layers li{border-bottom:1px solid var(--line);grid-template-columns:18px 1fr auto;align-items:center;gap:8px;padding:8px 0;display:grid}.phone-layers .swatch{border:1px solid #00000026;border-radius:3px;width:14px;height:14px}.phone-layers small{color:var(--muted)}.phone-actions{justify-content:center;margin:12px 0;display:flex}.phone .hint{color:var(--muted);font-size:12px}.phone-editor-link{color:var(--muted);background:0 0;border:none;margin:24px auto 0;text-decoration:underline;display:block}.side{flex-direction:column;display:flex}.panel.props{padding:0}.panel.props.empty p{padding:0 12px 12px}.quick{border-bottom:1px solid var(--line);align-items:center;gap:4px;padding:8px 8px 8px 12px;display:flex}.quick-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.props.empty .quick-title{color:var(--muted);font-weight:400}button.icon{place-items:center;min-width:32px;min-height:32px;padding:0;display:inline-grid}.fold{border-bottom:1px solid var(--line)}.fold-head{align-items:center;gap:6px;display:flex}.fold-toggle{text-align:left;background:0 0;border:none;border-radius:0;flex:1;align-items:center;gap:8px;min-width:0;min-height:42px;padding:10px 12px;display:flex}.fold-toggle:hover:not(:disabled){background:#f7f5f1}.fold-toggle .chev{color:var(--muted);flex:none;transition:transform .12s}.fold.open>.fold-head .chev{transform:rotate(90deg)}.fold-title{font-weight:600}.fold-summary{text-align:right;min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px;overflow:hidden}.fold-body{padding:0 12px 12px}.fold-body .grid2{margin-top:0}.panel-msg{margin:8px 12px}.panel.layers.fold{border-top:1px solid var(--line);border-bottom:none;margin-top:auto;padding:0}.panel.layers .fold-head{padding-right:8px}.panel.layers .add-layer{min-height:30px;padding:2px 10px;font-size:13px}.panel.layers .fold-body{padding:0 8px 8px}.panel.props.node-tools{padding:10px 12px}.library-dialog{flex-direction:column;width:min(760px,100%);height:min(88vh,780px);display:flex}.library-filters{grid-template-columns:1fr auto;gap:8px;margin:8px 0;display:grid}.icon-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));align-content:start;gap:6px;margin:8px 0;padding:0;list-style:none;display:grid;overflow:auto}.icon-grid button{flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;height:84px;padding:6px 4px;display:flex;position:relative}.icon-grid img{width:40px;height:40px}.icon-grid span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px;overflow:hidden}.icon-grid .badge{position:absolute;top:3px;right:3px}.badge{border-radius:4px;padding:1px 5px;font-size:10px;font-weight:600;display:inline-block}.badge.private{color:#8a4b00;background:#fde8c8}.icon-grid span.badge.private{color:#8a4b00}.private-note{margin:0 0 6px;font-size:12px}.credits{margin:4px 0 8px;padding-left:18px;font-size:12px}@media (width<=560px){.library-filters{grid-template-columns:1fr}}.auth-screen{background:var(--bg,#f3f2ef);place-items:center;min-height:100vh;padding:24px 16px;display:grid}.auth-card{background:var(--panel);border-radius:12px;width:min(420px,100%);padding:20px 22px;box-shadow:0 10px 40px #0000001f}.auth-card h1{align-items:center;gap:10px;margin:0 0 12px;font-size:22px;display:flex}.auth-card h2{margin:0 0 12px;font-size:16px}
