@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--purple:#7045df;--ink:#27223c;--muted:#8a8597;--line:#eeeaf4;--soft:#f6f4fb}*{box-sizing:border-box}body{margin:0;font:14px 'DM Sans',Arial,sans-serif;color:var(--ink);background:#fff}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #e5e0ee;border-radius:8px;padding:9px 12px;background:white;color:var(--ink);transition:background .15s}button:hover{background:#f2ecff}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--purple);color:white;border-color:var(--purple)}button.primary:hover{background:#5e36c6}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ab89ff;outline-offset:2px}header{height:82px;display:flex;align-items:center;padding:0 24px;gap:12px;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font:700 18px Manrope,Arial}.identity b{color:var(--purple)}.identity small{display:block;font:8px 'DM Sans';letter-spacing:2px;color:var(--muted);margin-top:5px}.mark{display:grid;place-items:center;background:var(--purple);color:white;font-size:35px;width:44px;height:44px;border-radius:14px}.workspace-name{margin-left:40px;flex:1;color:var(--muted);font-size:12px}.pill{background:#f0e9ff;color:#7753c6;font-size:8px;letter-spacing:1px;padding:5px 7px;border-radius:5px;margin-left:10px}.shell{display:grid;grid-template-columns:86px 290px minmax(280px,1fr) 230px;height:calc(100dvh - 82px)}.rail{border-right:1px solid var(--line);padding:18px 7px;display:flex;flex-direction:column;gap:8px}.rail button{border:0;font-size:10px;color:#777084;padding:12px 0;background:transparent}.rail button span{display:block;font-size:23px;margin-bottom:6px}.rail button.active{background:#f0e9ff;color:var(--purple);border-radius:10px}.rail-bottom{margin-top:auto;text-align:center;line-height:1.6;color:var(--muted);font-size:10px}.avatar{display:block;background:#f2e9dc;border-radius:50%;margin:20px auto 8px;width:34px;height:34px;padding:8px;color:#9b713d;font-weight:bold}#panel{padding:24px 18px;overflow:auto;border-right:1px solid var(--line)}h2{font:800 22px Manrope,Arial;letter-spacing:-.8px;margin:0 0 9px}h3{font:700 13px Manrope;margin:23px 0 12px}p{color:#817a90;line-height:1.65;margin:8px 0 18px;font-size:12px}.eyebrow{font-size:9px;font-weight:700;color:var(--purple);letter-spacing:1.8px;display:block;margin-bottom:10px}.search{width:100%;padding:11px 12px;border:1px solid #e5dfed;background:#fcfbfe;border-radius:8px;margin:2px 0 15px}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.chips button{font-size:10px;padding:6px 9px;border-radius:20px}.chips button.active{background:var(--ink);color:white;border-color:var(--ink)}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 10px}.template-card{padding:0;border:0;text-align:left;background:transparent!important;min-width:0}.template-thumb{aspect-ratio:1;overflow:hidden;border-radius:7px;box-shadow:0 2px 6px #3020500b;border:1px solid #eee;transition:transform .2s}.template-card:hover .template-thumb{transform:translateY(-3px)}.template-thumb svg{width:100%;height:100%;display:block}.template-card strong{font-size:10px;display:block;margin-top:8px}.template-card small{font-size:9px;color:#9d96aa;display:block;margin-top:3px}.panel-banner{background:linear-gradient(120deg,#ede6ff,#faf5ff);padding:15px;border-radius:10px;margin-top:24px}.panel-banner strong{font-size:12px}.panel-banner p{font-size:10px;margin:6px 0 0}main{background:#f6f5f9;display:flex;flex-direction:column;min-width:0;overflow:auto}.document-bar{height:76px;flex-shrink:0;background:white;display:flex;align-items:center;justify-content:space-between;padding:12px 22px;gap:8px;border-bottom:1px solid var(--line)}#designName{border:0;font-weight:600;font-size:14px;width:190px;background:transparent;padding:0}#saveState{display:block;color:#9c95a7;font-size:9px;margin-top:5px}.bar-actions{display:flex;gap:6px}.bar-actions button{font-size:11px;padding:7px 10px}#editor{flex:1;min-height:0;display:flex;flex-direction:column}.canvas-tools{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;color:#9a93a4;font-size:10px}.canvas-tools button{font-size:10px;padding:6px 9px;background:transparent;border-color:#e3dfea}#stageWrap{flex:1;min-height:180px;overflow:auto;display:flex;align-items:center;justify-content:center;padding:20px 36px;background-image:radial-gradient(#dcd8e6 .65px,transparent .65px);background-size:14px 14px}#stage{position:relative;flex-shrink:0;box-shadow:0 9px 34px #34244318;background:white;touch-action:none}#stage svg{width:100%;height:100%;display:block;user-select:none;overflow:visible}#stage [data-id]{cursor:move}#stage .selection{fill:none;stroke:#9c70ff;stroke-width:2;pointer-events:none}#stage .handle{fill:white;stroke:#9c70ff;stroke-width:2;cursor:nwse-resize}.canvas-footer{display:flex;justify-content:space-between;padding:20px 24px;color:#a29aaa;font-size:9px}#properties{background:white;padding:24px 18px;overflow:auto;border-left:1px solid var(--line)}label{display:block;font-size:10px;color:#82798f;margin:12px 0}label input:not([type=checkbox]),label select,label textarea{display:block;width:100%;margin-top:6px;border:1px solid #e6e0ed;border-radius:6px;padding:8px;background:white;color:var(--ink)}label input[type=color]{height:36px;padding:4px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 9px}.field-grid label{margin:6px 0}.layer{display:flex;align-items:center;gap:6px;padding:8px;border-radius:6px;cursor:pointer;font-size:10px;border:1px solid transparent;margin:3px 0}.layer.selected{background:#f1ebff;border-color:#ddceff}.layer span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer button{padding:2px 5px;border:0;font-size:11px;background:transparent}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatches button{width:27px;height:27px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #ddd;padding:0}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-grid button{font-size:11px}.full{width:100%;margin-top:10px}.brand-logo{max-width:110px;max-height:80px;display:block;margin:10px 0}.project-card{border:1px solid var(--line);padding:12px;border-radius:8px;margin-bottom:10px}.project-card strong{display:block;font-size:12px}.project-card small{display:block;color:var(--muted);margin:5px 0}.project-card button{font-size:10px;padding:6px 8px}.note{font-size:10px}dialog{border:0;border-radius:18px;padding:32px;max-width:470px;width:calc(100% - 30px);box-shadow:0 24px 90px #10052540}dialog::backdrop{background:#20123060;backdrop-filter:blur(4px)}.close{position:absolute;right:12px;top:12px;border:0;font-size:22px}.check{display:flex;gap:8px;align-items:center}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#27223c;color:white;border-radius:9px;padding:12px 20px;box-shadow:0 5px 20px #0002;z-index:50;display:none;max-width:90vw;font-size:12px}.mobile-tabs{display:none}#mockupView{padding:30px}.mockup-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.mockup-heading h2{font-size:28px}.shop-scene{position:relative;perspective:1000px;height:390px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(#dfe5e7 0%,#f1eee8 65%)}.shop-wall{background:#d8d3ca;width:85%;padding:25px 30px 0;transform:rotateY(-10deg);transform-style:preserve-3d;box-shadow:20px 20px 40px #28262440;border-top:7px solid #c3beb5;position:relative;z-index:1}.sign-mount{height:95px;background:#25252a;padding:10px 25px;margin-bottom:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 4px #0004}.sign-mount.raised{box-shadow:0 8px 0 #242329,0 15px 18px #0005;transform:translateZ(12px)}.sign-mount.lit{box-shadow:0 0 24px #fff0bd,0 0 50px #fff0bd80}.sign-mount svg{max-width:100%;max-height:80px;width:auto;height:80px}.shop-windows{display:flex;gap:8px;height:190px}.shop-windows>div{flex:1;background:linear-gradient(130deg,#768a90,#364e56 55%,#9caeae);border:8px solid #3d4142;box-shadow:inset 12px 0 0 #ffffff12}.shop-windows .shop-door{flex:.65;border-bottom:0}.shop-floor{position:absolute;bottom:-35px;left:-20%;width:140%;height:100px;background:#b5b0a8;transform:rotateX(50deg)}.mockup-settings{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.mockup-settings label{min-width:100px}.empty-properties{text-align:center;margin:35px 0;color:#a198af;font-size:12px;line-height:1.8}.empty-properties span{display:block;font-size:36px;color:#c2acdF;margin-bottom:15px}[hidden]{display:none!important}
@media(min-width:1550px){.shell{grid-template-columns:92px 320px minmax(300px,1fr) 255px}}@media(max-width:1200px){.shell{grid-template-columns:72px 240px minmax(260px,1fr) 200px}.workspace-name{display:none}header .identity{margin-right:auto}.bar-actions #previewBtn{display:none}#panel,#properties{padding:20px 13px}.canvas-footer span:first-child{max-width:70%}.document-bar{padding:10px 14px}#designName{width:150px}}@media(max-width:900px){.shell{grid-template-columns:68px 210px minmax(240px,1fr)}#properties{position:fixed;right:10px;top:160px;max-height:65dvh;width:210px;box-shadow:0 5px 24px #22103a20;border-radius:10px;z-index:10;display:none}body.has-selection #properties{display:block}#properties .prop-close{display:block}header{height:70px}.shell{height:calc(100dvh - 70px)}.mockup-heading{display:block}}@media(min-width:901px){.prop-close{display:none}}@media(max-width:650px){header{padding:10px 13px;height:68px;gap:7px}.identity{font-size:13px;gap:7px}.mark{width:34px;height:34px;font-size:27px;border-radius:10px}.identity small{font-size:6px;letter-spacing:1px}header button{font-size:10px;padding:8px}header #newBtn{font-size:0}header #newBtn:first-letter{font-size:18px}.shell{display:flex;flex-direction:column;height:calc(100dvh - 120px)}.rail{display:none}#panel{position:fixed;left:0;bottom:51px;top:68px;width:265px;background:white;z-index:15;box-shadow:10px 0 35px #291c5025;display:none}body.panel-open #panel{display:block}.panel-close{display:block!important;float:right}.shell main{flex:1;min-height:0}.document-bar{height:64px}.bar-actions{gap:4px}.bar-actions button{padding:7px}#stageWrap{padding:20px}.canvas-tools{padding:12px 15px}.canvas-footer{padding:13px 15px}.canvas-footer span:first-child{font-size:8px}.mobile-tabs{position:fixed;bottom:0;left:0;width:100%;height:52px;display:flex;background:white;border-top:1px solid var(--line);z-index:20;justify-content:space-around;align-items:center}.mobile-tabs button{border:0;font-size:10px;padding:9px}.mobile-tabs button.active{color:var(--purple);background:#f3eeff}#properties{top:135px;right:8px;max-height:calc(100dvh - 200px);width:205px}#mockupView{padding:18px}.shop-scene{height:300px}.shop-wall{padding:15px 15px 0}.shop-windows{height:130px}.sign-mount{height:80px;padding:5px}.mockup-heading h2{font-size:24px}.mockup-settings{gap:12px}.mockup-settings label{width:42%}}.panel-close{display:none}

.app-logo{width:52px;height:52px;object-fit:contain;flex-shrink:0}.rail-logo{display:block;object-fit:contain;margin:20px auto 8px;width:38px;height:38px}@media(max-width:650px){.app-logo{width:39px;height:39px}}

.bicsafrica-context{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto}.bicsafrica-context a{font-size:11px;color:#6d46db;text-decoration:none;white-space:nowrap}.bicsafrica-context a:hover{text-decoration:underline}@media(max-width:1200px){.bicsafrica-context{display:flex;flex:1}.bicsafrica-context .independent-link{display:none}}@media(max-width:650px){.bicsafrica-context{flex:0;margin:0 2px 0 auto}.bicsafrica-context .back-to-bics{font-size:9px}.bicsafrica-context .pill{display:none}header .identity{margin-right:0}header #newBtn{display:none}}

@media(max-width:1200px){.bicsafrica-context .independent-link{display:inline}}@media(max-width:650px){.bicsafrica-context .independent-link{font-size:0}.bicsafrica-context .independent-link:after{content:'↗';font-size:18px}.bicsafrica-context{gap:8px}}

@media(max-width:650px){#send3dBtn{display:none}.mobile-tabs button{font-size:9px;padding:8px 4px}}#brandingSendError{color:#a12635}
/* Canvas-first workspace: panels remain recoverable at every screen size. */
html,body{width:100%;height:100%;overflow:hidden}.shell{height:calc(var(--view-height,100dvh) - 82px);min-width:0;grid-template-columns:72px minmax(210px,270px) minmax(0,1fr) minmax(220px,260px)}.shell>*{min-width:0;min-height:0}.document-bar{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 14px}.bar-actions{flex-wrap:wrap;justify-content:flex-end}.bar-actions button{min-height:34px}.panel-close,.prop-close{display:block!important}.library-hidden .shell{grid-template-columns:72px minmax(0,1fr) minmax(220px,260px)}.library-hidden #panel{display:none!important}.properties-hidden #properties{display:none!important}.properties-hidden .shell{grid-template-columns:72px minmax(210px,270px) minmax(0,1fr)}.library-hidden.properties-hidden .shell{grid-template-columns:60px minmax(0,1fr)}.focus-canvas .rail{display:none}.focus-canvas.library-hidden.properties-hidden .shell{grid-template-columns:minmax(0,1fr)}#stageWrap{min-height:80px;padding:12px;overscroll-behavior:contain}.canvas-tools{padding:8px 14px}.canvas-footer{padding:10px 14px}#layerText{min-height:130px;font-size:16px;line-height:1.5;resize:vertical}dialog{max-height:90dvh;overflow:auto}header{min-width:0}header button{white-space:nowrap}
@media(max-width:1100px){.shell{grid-template-columns:60px minmax(0,1fr)}#panel{position:fixed;left:60px;top:82px;bottom:0;width:min(290px,80vw);background:white;z-index:16;box-shadow:8px 0 30px #20103020;display:none}body.panel-open:not(.library-hidden) #panel{display:block}#properties{position:fixed;right:8px;top:150px;bottom:12px;max-height:calc(var(--view-height,100dvh) - 165px);width:min(285px,85vw);z-index:18;display:none;box-shadow:0 6px 25px #20103028;border-radius:10px}body.has-selection:not(.properties-hidden) #properties{display:block}.library-hidden .shell,.properties-hidden .shell,.library-hidden.properties-hidden .shell{grid-template-columns:60px minmax(0,1fr)}.focus-canvas.library-hidden.properties-hidden .shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){header{height:60px;padding:6px 10px}.identity{font-size:12px}.identity small,.bicsafrica-context .back-to-bics{display:none}.app-logo{width:32px;height:32px}.shell,.library-hidden .shell,.properties-hidden .shell,.library-hidden.properties-hidden .shell{display:flex;height:calc(var(--view-height,100dvh) - 112px)}.document-bar{padding:6px 10px;gap:6px;min-height:0}.document-bar>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}.bar-actions{width:100%;justify-content:flex-start;gap:4px}.bar-actions button{font-size:10px;padding:6px 8px;min-height:32px}#saveState{margin:0}#designName{width:145px}#panel{left:0;top:60px;bottom:52px;width:min(300px,88vw)}#properties{top:175px;bottom:56px;max-height:calc(var(--view-height,100dvh) - 235px);width:min(290px,90vw)}.canvas-tools{padding:5px 10px}.canvas-footer{padding:6px 10px}.mobile-tabs{padding-bottom:env(safe-area-inset-bottom);height:calc(52px + env(safe-area-inset-bottom))}#exportBtn{font-size:10px;padding:7px 9px}#focusCanvas{margin-left:auto}.focus-canvas .canvas-footer{display:none}}
@media(max-height:560px){header{height:48px}.shell{height:calc(var(--view-height,100dvh) - 48px)}.document-bar{min-height:42px;padding:4px 10px}.canvas-footer{display:none}.canvas-tools{padding:3px 10px}#properties{top:95px;max-height:calc(var(--view-height,100dvh) - 110px)}#panel{top:48px}.shell main{min-height:0}@media(max-width:650px){.shell{height:calc(var(--view-height,100dvh) - 100px)}}}

@media(max-width:650px){.bicsafrica-context .back-to-bics{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:44px;font-size:17px}.back-to-bics-label{display:none}}
