:root{font-family:"Inter","Segoe UI",system-ui,sans-serif;color:#22203a;background:#f7f6fb;font-size:14px;--ink:#22203a;--muted:#68647c;--line:#eae7f1;--accent:#6747db;--light:#f0ebff;--white:#fff}
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0} button,input{font:inherit} button{border:0;color:inherit;cursor:pointer} a{color:#5c3bc9} button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px} button:disabled{opacity:.38;cursor:default} button svg,.logo svg,.square-icon svg{width:19px;height:19px;flex:none;display:block} .topbar{height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 26px;background:white;border-bottom:1px solid var(--line);gap:16px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#221b3b;font-size:24px;font-weight:790;letter-spacing:-.9px;width:max-content}.brand-sub{font-size:9px;letter-spacing:1.7px;color:#6955a3;vertical-align:middle;margin-left:2px;font-weight:750}.logo{height:37px;width:37px;border-radius:11px;background:#6948df;color:white;display:grid;place-items:center;box-shadow:0 3px 9px #6747db35}.logo svg{width:23px;height:23px}.project-head{display:flex;align-items:center;gap:12px}.project{display:flex;align-items:center;gap:9px;background:#f7f6fb;border:1px solid var(--line);border-radius:9px;padding:9px 11px;font-weight:650;max-width:260px}.project>svg{color:#6e6289}.project span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project span svg{width:14px;height:14px}.saved{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;white-space:nowrap}.saved i{width:7px;height:7px;border-radius:50%;background:#3b9a72}.saved[data-failed] i{background:#b96b19}.top-actions,.canvas-actions{display:flex;align-items:center;gap:9px}.top-actions{justify-self:end}.icon-btn{display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:9px;min-width:42px;height:42px;color:#605975}.icon-btn:not(:disabled):hover,.tool:not(:disabled):hover,.project:hover{background:#f2eeff;color:#5634c5}.icon-btn[aria-pressed=true]{background:#eee8ff;color:#5634c5;border-color:#d8cbff}.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:0 15px;border-radius:9px;background:var(--accent);color:white;font-weight:700}.primary:hover{background:#5536c8}
.layout{height:calc(100dvh - 70px);min-height:525px;display:grid;grid-template-columns:92px minmax(0,1fr) 318px}.tools{background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:25px 10px;gap:13px}.zone-label{font-size:10px;font-weight:780;letter-spacing:1.6px;color:#736b88}.tool-list,.tool-history{display:grid;gap:5px;width:100%}.tool{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;background:transparent;border-radius:9px;min-height:51px;width:100%;color:#645e78;font-size:10px;font-weight:650}.tool[aria-pressed=true]{color:#5535cb;background:#eee8ff}.tool-divider{height:1px;width:44px;background:var(--line)}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f7f6fb}.workspace-top,.workspace-foot{display:flex;justify-content:space-between;align-items:center;padding:19px 24px;gap:10px}.section-title{display:flex;align-items:center;min-width:0;gap:11px}.section-title h1,.section-title h2{font-size:16px;line-height:1.2;margin:0 0 4px;font-weight:760;letter-spacing:-.25px}.section-title p{font-size:11px;color:var(--muted);margin:0}.square-icon{width:38px;height:38px;background:#eee9fc;color:#6747d1;border-radius:10px;display:grid;place-items:center;flex:none}
.stage{flex:1;min-height:0;position:relative;overflow:auto;background-color:#f1eff7;background-image:radial-gradient(#d8d3e6 1px,transparent 1px);background-size:16px 16px;border:1px solid #eae5f3;border-radius:14px;margin:0 23px;overscroll-behavior:contain}.board-holder{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;padding:28px}.board-shell{background-color:white;background-image:conic-gradient(#f0edf4 25%,white 0 50%,#f0edf4 0 75%,white 0);background-size:18px 18px;box-shadow:0 8px 32px #34216428,0 0 0 1px #e5e0ec}.board-shell svg{display:block;touch-action:none;user-select:none}.board-shell svg[data-tool]:not([data-tool=select]){cursor:crosshair}.board-shell svg[data-tool=select] [data-shape]{cursor:move}.workspace-foot{min-height:65px;padding-top:12px;padding-bottom:12px}.hint{color:var(--muted);font-size:11px;line-height:1.45}.zoom{display:flex;align-items:center;gap:5px;background:white;border:1px solid var(--line);border-radius:9px;font-size:11px;font-weight:700;flex:none}.zoom .icon-btn{border:0;min-width:32px;height:34px}.zoom .icon-btn svg{width:15px;height:15px}.zoom span{min-width:35px;text-align:center}
.panel{background:#fff;border-left:1px solid var(--line);min-height:0;display:flex;flex-direction:column}.panel-top{display:flex;align-items:center;justify-content:space-between;padding:21px 18px 17px}.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#f6f4fa;border-radius:9px;padding:4px;gap:3px;margin:0 18px 13px}.tabs button{min-height:34px;background:transparent;border-radius:7px;font-size:12px;color:var(--muted);font-weight:660}.tabs [aria-selected=true]{background:#fff;color:#5939ca;box-shadow:0 1px 4px #29204b13}.tab-body{flex:1;overflow:auto;padding:0 18px 12px}.row-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 12px}.row-head h3{margin:0;font-size:13px}.count{font-size:10px;color:#66607a;background:#f3f1f8;padding:4px 8px;border-radius:12px}
.layer{display:flex;align-items:center;gap:7px;padding:3px 4px;border:1px solid #eeebf4;border-radius:9px;margin-bottom:6px;min-width:0}.layer.active{border-color:#d8caff;background:#f7f3ff}.layer.muted .layer-name{color:#777184}.layer-name{display:flex;align-items:center;gap:7px;text-align:left;flex:1;min-width:0;min-height:40px;background:transparent;font-weight:620;font-size:12px}.layer-name span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swatch{width:27px;height:27px;flex:none;border-radius:7px;display:grid;place-items:center;border:1px solid #21163712}.swatch svg{width:15px;height:15px}.layer .icon-btn{border:0;background:transparent;width:39px;min-width:39px;height:40px}.layer .icon-btn svg{width:16px;height:16px}.layer-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.layer-actions .icon-btn{flex:1}.panel-bottom{padding:13px 18px 17px;border-top:1px solid var(--line)}.stock-card{background:#f4efff;border:1px solid #e9dfff;border-radius:10px;padding:12px 10px;width:100%;display:flex;align-items:center;gap:9px;text-align:left;min-height:60px;color:#5939c4}.stock-card>span:nth-child(2){flex:1}.stock-card strong,.stock-card small{display:block}.stock-card strong{font-size:12px}.stock-card small{margin-top:4px;font-size:10px;color:#6b5e86}.stock-card span svg{height:15px;width:15px}
.field{display:grid;gap:6px;margin:0 0 13px;font-size:12px;font-weight:630}.field input,.field select,.field textarea{width:100%;border:1px solid #ded9ea;padding:9px 10px;min-height:40px;border-radius:7px;color:var(--ink);background:white;font:inherit}.field textarea{resize:vertical}.field input[type=color]{padding:4px}.field input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--accent)}.field.inline{display:flex;align-items:center}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.subtle{font-size:12px;color:var(--muted);line-height:1.55}.secondary{min-height:42px;border-radius:8px;border:1px solid var(--line);background:white;color:#5b3ac8;padding:0 12px;font-weight:650}.secondary:hover{background:var(--light)}.checklist{display:grid;gap:7px;list-style:none;margin:8px 0 16px;padding:0}.checklist li{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.35;background:#f7f6fa;padding:9px;border-radius:8px}.checklist li i{font-style:normal;font-weight:800;color:#247852}.checklist li[data-fail] i{color:#a65519}.mobile-only,.panel-backdrop{display:none}
dialog{width:min(430px,calc(100% - 24px));padding:18px;border:1px solid var(--line);border-radius:15px;color:var(--ink);max-height:85dvh;overflow:auto;box-shadow:0 18px 80px #1c123958}dialog::backdrop{background:#23173965}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.modal-head h2{margin:0;font-size:18px}.modal-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#2b2340;color:white;padding:12px 16px;border-radius:10px;max-width:calc(100% - 32px);width:max-content;z-index:10;font-size:12px;box-shadow:0 6px 20px #2416313c;pointer-events:none}
@media(max-width:960px){.layout{grid-template-columns:72px minmax(0,1fr) 270px}.topbar{padding:0 16px}.workspace-top,.workspace-foot{padding-left:14px;padding-right:14px}.stage{margin:0 13px}.saved span{display:none}}
@media(max-width:720px){.topbar{height:57px;padding:0 9px;gap:6px;grid-template-columns:auto minmax(0,1fr) auto}.brand{font-size:17px;gap:5px}.brand-sub,.saved,.help,.top-actions .primary span{display:none}.logo{width:29px;height:29px;border-radius:8px}.logo svg{width:18px;height:18px}.project-head{min-width:0;justify-content:center}.project{font-size:11px;max-width:100%;min-height:41px;padding:4px 5px;gap:4px}.project>svg{width:15px}.top-actions .primary{font-size:12px;padding:0 8px;gap:4px;min-height:41px}.top-actions .primary svg{width:15px}.layout{height:calc(100dvh - 57px);min-height:300px;display:flex;flex-direction:column}.workspace{flex:1}.workspace-top,.workspace-foot{padding:9px 10px}.workspace-foot{min-height:49px}.workspace-top .square-icon{width:32px;height:32px}.stage{margin:0 8px;border-radius:9px}.board-holder{padding:14px}.tools{order:2;border:0;border-top:1px solid var(--line);padding:3px 4px max(4px,env(safe-area-inset-bottom));display:flex;flex-direction:row;gap:1px;justify-content:space-evenly}.zone-label,.tool-divider{display:none}.tool-list,.tool-history{display:contents}.tool{min-width:0;flex:1;min-height:49px;font-size:9px;gap:4px;white-space:nowrap}.tool svg{width:17px;height:17px}.mobile-only{display:flex}.panel-top .icon-btn{align-items:center;justify-content:center}.panel{display:none;position:fixed;z-index:4;inset:auto 0 0;border:1px solid var(--line);border-radius:17px 17px 0 0;max-height:min(75dvh,610px);padding-bottom:env(safe-area-inset-bottom)}.panel.open{display:flex}.panel-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#21173858;z-index:3}.toast{bottom:66px}}
@media(max-width:350px){.brand>span:last-child{display:none}.tool{font-size:8px}}
.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.layer-actions{position:sticky;bottom:-12px;padding:6px 0 9px;background:#fff;border-top:1px solid var(--line)}
.ui-icon{pointer-events:none}
.brand .logo{display:block;flex:none}
.tabs button{display:flex;align-items:center;justify-content:center;gap:5px}
.tabs button .ui-icon{width:15px;height:15px}
.checklist li .ui-icon{display:block;width:16px;height:16px}
@media(max-width:720px){
  .project,.top-actions .primary{min-height:44px}
  .tool .ui-icon{width:20px;height:20px}
  .canvas-actions .icon-btn,.panel-top .icon-btn{min-width:44px;height:44px}
  .tabs button{min-height:44px}
}

:root{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --ink:#211e31;--muted:#595469;--line:rgba(126,112,158,.20);--accent:#5a41ce;--light:#eae2ff;
  background:#f3effa;color:var(--ink);
}
body{background:radial-gradient(ellipse at 98% 0,#e1d9fb,transparent 60%),radial-gradient(ellipse at 0 90%,#e1f0f8,transparent 56%),#f5f2fa}
.topbar,.tools,.panel,.workspace-foot,.workspace-top{
  background:rgba(251,250,255,.76);
  backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);
}
.topbar,.workspace-foot{box-shadow:0 2px 12px rgba(52,38,86,.06)}
.brand,.section-title h1,.section-title h2,.project,.primary,.tool,.tabs button{font-weight:590}
.workspace{background:transparent}
.workspace-foot .hint{margin-right:auto}
.workspace-foot #export{min-height:44px;border-radius:14px;flex:none}
@media(max-width:720px){
  .topbar{grid-template-columns:auto minmax(0,1fr)}
  .top-actions{display:none}
  .project-head{justify-content:flex-end}
  .workspace-foot{border:1px solid #fffd;margin:5px 8px;border-radius:16px;padding:5px 6px;gap:5px}
  .workspace-foot .hint{font-size:10px}
  .workspace-foot #export{font-size:11px;padding:0 7px;gap:4px}
  .workspace-foot #export span{display:none}
  .workspace-foot #export svg{width:15px;height:15px}
  .tools{box-shadow:0 -4px 14px rgba(52,38,86,.08)}
}
@media(prefers-reduced-transparency:reduce){
  .topbar,.tools,.panel,.workspace-foot,.workspace-top{background:#faf8ff;backdrop-filter:none;-webkit-backdrop-filter:none}
}
