.brand .disclaimer{color:#fbbf24;font-size:10px;margin-top:2px}.colors label{display:flex;flex-direction:column;gap:5px}.grid{fill:url(#grid)}.edge{stroke:#64748b;stroke-width:2;fill:none}.edge.selected{stroke:#2563eb;stroke-width:3}.edgeLabel{font-size:12px;fill:#334155;paint-order:stroke;stroke:#f8fafc;stroke-width:4px}.preview{stroke:#2563eb;stroke-width:2;stroke-dasharray:6 4}#props label{display:block;font-size:11px;font-weight:700;color:#475569;margin-bottom:9px}#props input,#props select,#props textarea{width:100%;margin-top:4px;padding:7px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}#props .colors{display:grid;grid-template-columns:1fr 1fr;gap:8px}.danger{background:#fee2e2;color:#b91c1c;border-color:#fecaca}#props button{margin:4px 4px 0 0}.right textarea{height:calc(100vh - 130px);resize:none;font-family:ui-monospace,monospace;font-size:11px;line-height:1.5}.dark{background:#0f172a;color:#e2e8f0}.dark .left,.dark .right{border-color:#334155}.dark button,.dark .file,.dark select,.dark #props input,.dark #props select{background:#1e293b;color:#e2e8f0;border-color:#475569}.dark h3,.dark #props label{color:#94a3b8}.dark .edgeLabel{fill:#e2e8f0;stroke:#0b1120}.dark .empty h2{color:#cbd5e1}.dark .brand small{display:none}.dark #props input[type=color]{padding:2px}.dark .disclaimer{color:#fbbf24!important}#toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;padding:9px 14px;border-radius:7px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}dialog{border:0;border-radius:10px;padding:20px;max-width:360px;box-shadow:0 16px 50px #0f172a40}dialog::backdrop{background:#0f172a73}@media(max-width:1000px){main{grid-template-columns:210px minmax(300px,1fr)}.right{display:none}}@media(max-width:650px){header{height:auto;min-height:64px;align-items:flex-start}.actions{max-width:190px}main{height:calc(100vh - 76px);grid-template-columns:1fr}.left{display:none}.center nav{min-height:48px}.brand strong{font-size:13px}.brand .disclaimer{max-width:155px;line-height:1.2}}:root{font-family:Inter,system-ui,sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body{margin:0;height:100vh;overflow:hidden}button,.file,select,input,textarea{font:inherit}button,.file,select{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:7px;padding:7px 10px;cursor:pointer}button:hover,.file:hover{background:#f1f5f9}header{height:64px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;gap:10px}.brand{display:flex;align-items:center;gap:10px}.brand>b{background:#2563eb;border-radius:9px;padding:9px;font-size:18px}.brand small{display:block;color:#94a3b8;font-size:11px}.actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:end}.actions button,.actions .file{background:#1e293b;color:#e2e8f0;border-color:#334155}main{height:calc(100vh - 64px);display:grid;grid-template-columns:245px minmax(400px,1fr) 330px}.left,.right{background:#fff;overflow:auto}.left{border-right:1px solid #e2e8f0}.right{border-left:1px solid #e2e8f0}.left section,.right section{padding:14px;border-bottom:1px solid #e2e8f0}h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin:0 0 10px}.shape{display:flex;width:100%;align-items:center;gap:8px;text-align:left;border-color:transparent}.shape i{font-style:normal;width:25px;text-align:center;color:#2563eb;font-size:18px}.left small,.right p{color:#94a3b8;font-size:11px}.center{min-width:0;display:flex;flex-direction:column}.center nav{min-height:49px;border-bottom:1px solid #e2e8f0;background:#fff;padding:7px;display:flex;gap:5px;align-items:center;overflow:auto}.mode.active{background:#dbeafe;color:#1d4ed8}.spacer{flex:1}#wrap{position:relative;flex:1;min-height:0;overflow:hidden;background:#f8fafc}svg{width:100%;height:100%;touch-action:none;color:#64748b}.grid{fill:url(#grid)}.node{cursor:grab}.node:active{cursor:grabbing}.nodeShape{filter:drop-shadow(0 2px 2px rgb(15 23 42/.1))}.label{font-size:13px;font-weight:700;pointer-events:none}.edge{stroke:#64748b;stroke-width:2;cursor:pointer}.edge.selected{stroke:#2563eb;stroke-width:4}.edgeLabel{text-anchor:middle;fill:#334155;font-size:12px;pointer-events:none}.preview{stroke:#2563eb;stroke-width:2;stroke-dasharray:6 5}.right section{height:100%;display:flex;flex-direction:column}.right h3{display:flex;justify-content:space-between}.right textarea{flex:1;resize:none;background:#0f172a;color:#dbeafe;border:1px solid #334155;border-radius:7px;padding:10px;font:12px monospace;line-height:1.5}.props label{display:block;font-size:11px;font-weight:700;color:#475569;margin-bottom:9px}.props input,.props select{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid #cbd5e1;border-radius:6px}.colors{display:grid;grid-template-columns:1fr 1fr;gap:8px}.colors input{height:34px;padding:2px}.props button{width:100%;margin-top:7px}.danger{color:#b91c1c;border-color:#fecaca}.file{display:inline-block}.empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none;color:#64748b}.empty b{font-size:50px}.empty h2{font-size:17px;margin:5px;color:#475569}.empty p{font-size:12px}#toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);opacity:0;background:#0f172a;color:#fff;padding:9px 13px;border-radius:8px;font-size:12px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%)}dialog{border:0;border-radius:12px;padding:25px;max-width:450px;box-shadow:0 20px 60px #0004}dialog p{font-size:13px;color:#475569}.dark{background:#0b1120;color:#e2e8f0}.dark .left,.dark .right,.dark .center nav{background:#111827;border-color:#334155}.dark .left section,.dark .right section{border-color:#334155}.dark button,.dark .file,.dark select{background:#1e293b;color:#e2e8f0;border-color:#475569}.dark #wrap{background:#0b1120}.dark .grid{color:#cbd5e1}.dark .edgeLabel{fill:#e2e8f0}.dark .props label,.dark h3{color:#94a3b8}.dark .props input,.dark .props select{background:#0f172a;color:#e2e8f0;border-color:#475569}.dark dialog{background:#111827;color:#e2e8f0}.dark dialog p{color:#cbd5e1}@media(max-width:1050px){main{grid-template-columns:205px 1fr}.right{display:none}}@media(max-width:720px){header{height:auto;min-height:60px;align-items:flex-start}.brand small{display:none}.actions{max-width:60%}.actions button,.actions .file{font-size:10px;padding:6px}.left{order:2;border-right:0;border-top:1px solid #e2e8f0;max-height:220px}.props{display:none}main{height:calc(100vh - 60px);display:grid;grid-template-columns:1fr;grid-template-rows:minmax(400px,1fr) auto}.center{order:1}.left{order:2}.left section:first-child{padding-bottom:8px}.left section:first-child>h3{display:block}.left #palette{display:flex;overflow-x:auto;gap:5px}.shape{flex:0 0 auto;width:auto;min-width:105px}.center nav{font-size:11px}.center nav button,.center nav select{padding:6px;font-size:11px}}
