:root{--ink:#102340;--blue:#2257df;--lime:#d7f567;--line:#dce2e9}*{box-sizing:border-box}body{margin:0;background:#f7f6f2;color:var(--ink);font:14px Arial,sans-serif}header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;padding:20px 4%;border-bottom:1px solid var(--line)}header a{color:var(--ink);text-decoration:none}header span{font-size:11px;letter-spacing:1px;color:#637082}main{max-width:1500px;padding:30px 4% 60px;margin:auto}h1{font-size:38px;letter-spacing:-1.4px;margin:8px 0}h2{font-size:27px;letter-spacing:-.7px;margin:8px 0}h3{font-size:15px;margin:8px 0 16px}p{color:#627084;line-height:1.6}.intro{display:flex;gap:24px;align-items:center;margin-bottom:25px}.intro img{width:75px;height:112px;object-fit:contain}.intro p{margin-bottom:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.setup-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:15px 24px;align-items:end}.setup-action{align-self:center}.setup-action button{width:100%}.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:35px 0 17px}.section-title>p{font-size:12px;max-width:330px}.pill{padding:9px 14px;border-radius:25px;background:#e8eefb;color:#2257df;font-size:12px}label{display:block;font-size:11px;font-weight:700;line-height:1.4;margin:10px 0 6px}input,textarea,select{font:inherit;color:var(--ink);border:1px solid #ccd5e1;border-radius:5px;padding:10px;width:100%;background:#fff;min-width:0}textarea{min-height:75px;resize:vertical}input[type=color]{height:36px;padding:4px}input[type=range]{padding:0;border:0}button,.button,.upload-button{font:inherit;border:1px solid #cad3e1;border-radius:6px;padding:10px 13px;color:var(--ink);background:white;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700;line-height:1.4}button:hover,.button:hover,.upload-button:hover{background:#edf2ff}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:var(--blue);color:white}button:disabled{opacity:.4;cursor:default}.micro{font-size:11px;line-height:1.6}.note{padding:12px;border-left:3px solid var(--blue);background:#eef3ff;font-size:12px}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:5px}.row button{font-size:10px;padding:9px 5px}.check{display:flex;align-items:flex-start;gap:8px;font-weight:400;font-size:12px;line-height:1.6}.check input{width:auto;margin-top:3px;flex:none}.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.template-card{display:block;text-align:left;padding:0;border:1px solid #d4dce7;background:white;overflow:hidden}.template-art{height:180px;padding:17px;background:#e7ebf1;display:grid;place-items:center}.template-art svg{height:100%;max-width:100%;width:auto;box-shadow:0 6px 15px #10234018}.template-card strong{display:block;font-size:14px;margin:15px 15px 4px}.template-card p{margin:0 15px 17px;font-size:11px;font-weight:400}.blank-art{color:#7d8da2;font-size:50px}.editor-toolbar{display:flex;justify-content:space-between;gap:12px;padding:12px;flex-wrap:wrap}.toolgroup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.upload-button{margin:0}.editor-layout{display:grid;grid-template-columns:215px minmax(250px,1fr) 235px;gap:15px;margin-top:15px;align-items:start}.left-tools,.properties{padding:17px}.left-tools>button{width:100%;margin-top:10px}.left-tools h3:not(:first-child){margin-top:24px}.work-area{background:#e6eaf0;border:1px solid #dce2e9;border-radius:10px;text-align:center;padding:20px 10px;min-height:450px}.canvas-scroll{overflow:auto;max-height:700px;min-height:330px;display:flex;align-items:flex-start;justify-content:flex-start;padding:15px}#canvas-holder{width:100%;flex-shrink:0;display:grid;place-items:center}#artboard{display:block;box-shadow:0 10px 25px #10234020;background:white;touch-action:none;user-select:none;max-width:none}#artboard [data-id]{cursor:move}#artboard .resize-handle{cursor:nwse-resize}.layers{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto}.layers button{width:100%;justify-content:flex-start;text-align:left;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.layers button.active{border-color:var(--blue);background:#edf2ff}.danger{color:#b12e35}.approval{display:grid;grid-template-columns:1fr 240px;gap:25px;margin-top:20px}.export-actions{display:flex;flex-direction:column;gap:10px;justify-content:center}#status{position:sticky;bottom:10px;background:#102340;color:white;padding:12px 18px;border-radius:7px;box-shadow:0 4px 20px #10234025;max-width:800px;font-size:12px;z-index:15}#status:empty{display:none}[hidden]{display:none!important}:focus-visible{outline:3px solid #2257df;outline-offset:3px}@media(max-width:1100px){.editor-layout{grid-template-columns:180px minmax(240px,1fr)}.properties{grid-column:1/-1}.properties #element-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.properties #text-controls{grid-column:span 2}.template-art{height:150px}}@media(max-width:700px){header span{display:none}.intro{gap:15px}.intro img{width:55px;height:85px}h1{font-size:28px}main{padding:22px 4%}.setup-grid{grid-template-columns:1fr}.template-grid{grid-template-columns:1fr 1fr}.template-art{height:150px}.section-title{align-items:flex-start;flex-direction:column;gap:5px}.editor-layout{grid-template-columns:1fr}.left-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px}.left-tools .layers{grid-column:1/-1}.properties #element-controls{display:block}.work-area{grid-row:1;min-height:330px}.approval{grid-template-columns:1fr}.canvas-scroll{max-height:500px;min-height:230px}.editor-toolbar .toolgroup{gap:6px}.editor-toolbar button,.upload-button{font-size:11px}.template-card strong{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the live layout and its controls together. */
.editor-toolbar{position:sticky;top:8px;z-index:25;box-shadow:0 5px 20px #1023400c}.editor-layout{grid-template-columns:180px minmax(300px,1fr) 270px}.properties,.left-tools{position:sticky;top:88px;max-height:calc(100vh - 110px);overflow:auto;scrollbar-width:thin}.work-area{position:sticky;top:88px;padding-top:0}.canvas-quicktools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 5px;background:#e6eaf0;border-bottom:1px solid #ccd5e1}.canvas-quicktools strong{font-size:11px}.canvas-quicktools select{max-width:150px;padding:7px;font-size:11px}.canvas-quicktools input[type=number]{width:55px;padding:7px}.canvas-quicktools input[type=color]{width:34px;height:30px}.canvas-quicktools #quick-text{display:flex;gap:5px;align-items:center;font-size:10px}.canvas-quicktools button{font-size:10px;padding:7px}.template-grid{grid-template-columns:repeat(5,1fr)}.template-art{height:180px}.template-card{transition:border-color .15s,box-shadow .15s}.template-card:hover{border-color:#2257df;box-shadow:0 7px 20px #10234015}.image-workshop,.asset-library{width:min(1120px,95vw);max-height:92vh;padding:0;border:1px solid #d2dce8;border-radius:14px;color:#102340;background:#fafbfD;box-shadow:0 20px 80px #10234045}.image-workshop::backdrop,.asset-library::backdrop{background:#102340a0}.workshop-head{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:20px 24px;background:white;border-bottom:1px solid #dce2e9;position:sticky;top:0;z-index:2}.workshop-head strong{font-size:18px}.workshop-head p{font-size:12px;margin-bottom:0}.workshop-head>button{font-size:20px;border:0;padding:0 6px}.workshop-grid{display:grid;grid-template-columns:minmax(280px,1fr) 285px;gap:20px;padding:22px}.workshop-preview{position:sticky;top:95px;align-self:start;text-align:center}.workshop-preview canvas{max-width:100%;max-height:65vh;width:auto;height:auto;touch-action:none;background:repeating-conic-gradient(#e4e8ee 0% 25%,#fff 0% 50%) 50%/18px 18px;border:1px solid #d2dae5;display:block;margin:auto}.workshop-preview p{font-size:11px}.workshop-tools button{width:100%;margin:5px 0}.workshop-tools .row button{width:auto}.workshop-tools button.active{background:#2257df;color:white}.workshop-tools h3{margin-top:22px}.workshop-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 24px;background:white;border-top:1px solid #dce2e9;position:sticky;bottom:0}.workshop-footer span{font-size:11px}.library-search{padding:20px 24px;display:grid;grid-template-columns:1.5fr 1fr;gap:15px}.asset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:0 24px 20px;max-height:58vh;overflow:auto}.asset-grid button{display:block;text-align:left;padding:0;overflow:hidden;background:white}.asset-grid img{width:100%;height:130px;object-fit:cover;display:block}.asset-grid span{display:block;padding:10px;font-size:11px}.library-note,.library-status{padding:0 24px 15px;font-size:11px}.properties #image-workshop{width:100%;margin-bottom:15px}.properties #text-controls>textarea{min-height:95px}.work-area .canvas-scroll{max-height:calc(100vh - 220px)}
@media(max-width:1200px){.editor-layout{grid-template-columns:150px minmax(250px,1fr) 235px}.properties #element-controls{display:block}.properties{grid-column:auto}.template-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:950px){.editor-layout{grid-template-columns:minmax(250px,1fr) 250px}.left-tools{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(4,1fr);gap:8px 15px;max-height:none}.left-tools .layers{grid-column:1/-1;flex-direction:row}.left-tools .layers button{width:auto;min-width:110px}.work-area{grid-column:1;grid-row:2}.properties{grid-row:2;grid-column:2}.left-tools>h3{display:none}.workshop-grid{grid-template-columns:1fr 230px}.asset-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.template-grid{grid-template-columns:1fr 1fr}.template-art{height:160px}.editor-toolbar{top:0;padding:8px;gap:8px}.editor-toolbar .toolgroup{gap:4px}.editor-layout{display:flex;flex-direction:column}.work-area{order:0;position:sticky;top:90px;width:100%;z-index:3;padding-bottom:2px}.work-area .canvas-scroll{min-height:200px;max-height:37vh;padding:10px}.work-area #dimensions,.work-area #quality{font-size:9px;margin:5px}.canvas-quicktools{padding:6px 2px;gap:5px}.canvas-quicktools strong{display:none}.canvas-quicktools select{max-width:120px}.properties{order:1;position:static;max-height:none;width:100%;z-index:1}.left-tools{order:2;width:100%;grid-template-columns:1fr 1fr}.image-workshop,.asset-library{width:97vw;max-height:95vh}.workshop-grid{display:flex;flex-direction:column}.workshop-preview{position:sticky;top:95px;background:#f4f6f8;z-index:1}.workshop-preview canvas{max-height:35vh}.workshop-tools{padding:0 8px}.workshop-head{padding:15px}.workshop-head strong{font-size:16px}.asset-grid{grid-template-columns:1fr 1fr;padding:0 15px 15px}.asset-grid img{height:110px}.library-search{padding:15px;grid-template-columns:1fr}.workshop-footer{padding:12px}.approval{grid-template-columns:1fr}}
.magic-panel{display:grid;grid-template-columns:130px 1fr;gap:26px;margin:28px 0;background:linear-gradient(120deg,#f0f5ff,#fff8e9);border:1px solid #cbdaf4}.magic-panel h2{margin:8px 0}.magic-panel select{max-width:340px;margin:8px 12px 12px 0}.magic-character{position:relative;align-self:center;text-align:center}.magic-character img{object-fit:contain;filter:drop-shadow(0 10px 8px #10234025)}.magic-character span{position:absolute;font-size:48px;right:-4px;top:12px;transform:rotate(-20deg);animation:wand-wave 3s ease-in-out infinite}.magic-preview{width:min(780px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:20px;padding:24px}.magic-preview::backdrop{background:#102340aa}.magic-art{background:#e6eaf2;padding:20px;display:flex;justify-content:center;max-height:52vh;overflow:auto;border-radius:12px}.magic-art svg{display:block;max-width:100%;max-height:46vh;width:auto;height:auto;box-shadow:0 8px 22px #10234024}.magic-preview .toolgroup{display:flex;gap:12px;flex-wrap:wrap}@keyframes wand-wave{50%{transform:rotate(7deg) translateY(-5px)}}@media(max-width:600px){.magic-panel{grid-template-columns:1fr;gap:8px}.magic-character img{height:100px;width:auto}.magic-character span{right:calc(50% - 70px)}.magic-panel .primary{width:100%}}@media(prefers-reduced-motion:reduce){.magic-character span{animation:none}}
/* Editable artwork and applied-product simulation stay together. */
main{max-width:1900px}.editor-layout{grid-template-columns:155px minmax(450px,1fr) 250px}.workspace-views{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding-top:12px}.flat-preview,.product-preview{min-width:0}.preview-kicker{font-size:9px;font-weight:700;letter-spacing:1.4px;color:#566881;padding:12px 7px;text-align:center}.product-preview{background:#f9fbfe;border:1px solid #d2dce8;border-radius:12px;padding:0 12px 12px}.product-preview h3{font-size:12px;text-align:center;margin:0 0 8px}.product-preview #product-stage svg{width:100%;height:auto;display:block}.product-preview .micro{font-size:10px;text-align:left;line-height:1.6}.product-preview button{width:100%;font-size:11px}.flat-preview .canvas-scroll{min-height:250px;padding:10px}.magic-preview{width:min(1060px,96vw)}.magic-views{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.magic-product{display:grid;place-items:center;background:#e8edf5;border-radius:12px;min-height:240px}.magic-product svg{width:100%;max-height:46vh}.magic-art{height:100%;max-height:46vh}.mockup-dialog{border:0;border-radius:18px;padding:0;width:min(900px,95vw);max-height:93vh;overflow:auto;color:#102340}.mockup-dialog::backdrop{background:#102340aa}.mockup-large{padding:20px;background:#e8edf5}.mockup-large svg{width:100%;max-height:65vh;display:block}.mockup-dialog>p{font:12px/1.6 Arial,sans-serif;padding:0 24px 20px}.work-area .canvas-scroll{max-height:calc(100vh - 270px)}
@media(max-width:1200px){.editor-layout{grid-template-columns:minmax(400px,1fr) 235px}.left-tools{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(4,1fr);gap:8px 15px;max-height:none}.left-tools .layers{grid-column:1/-1;flex-direction:row}.left-tools .layers button{min-width:110px;width:auto}.left-tools>h3{display:none}.work-area{grid-column:1;grid-row:2}.properties{grid-column:2;grid-row:2}}
@media(max-width:850px){.editor-layout{display:flex;flex-direction:column}.work-area{position:static;width:100%;order:0}.properties{width:100%;position:static;max-height:none;order:1}.left-tools{width:100%;order:2}.workspace-views{gap:8px}.product-preview{padding:0 7px 8px}.flat-preview .canvas-scroll{min-height:180px;max-height:45vh}.product-preview h3{font-size:10px}.product-preview .micro{font-size:9px}.canvas-quicktools strong{display:block}}
@media(max-width:450px){.workspace-views{grid-template-columns:1fr}.work-area{position:static}.product-preview #product-stage svg{max-height:280px}.flat-preview .canvas-scroll{max-height:350px}.magic-views{grid-template-columns:1fr}.magic-art{height:260px}.magic-product{min-height:230px}.magic-product svg{max-height:280px}}
.free-image-search{padding:0 24px 22px;border-bottom:1px solid #d8e2ef;margin-bottom:20px}.free-image-search h3{font-size:16px;margin:0 0 8px}.free-image-search p{font-size:12px;line-height:1.6}.resource-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:8px;background:#2257df;color:white;text-decoration:none;font-size:12px;font-weight:700}.resource-license{font-size:10px;color:#2257df;padding:5px}.model-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px}.model-blocks .template-card{min-width:0}.model-blocks .template-art{height:155px}.model-blocks .template-art svg{height:100%;width:100%;object-fit:contain}.model-blocks .template-card>span{display:block;color:#2257df;font-size:12px;padding:0 12px 14px}.asset-library .toolgroup{display:flex;gap:10px;flex-wrap:wrap;align-items:center}@media(max-width:700px){.model-blocks{grid-template-columns:1fr 1fr;padding:15px;gap:10px}.free-image-search{padding:0 15px 18px}.model-blocks .template-art{height:120px}}

.image-workshop .ws-check{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.5}.image-workshop .ws-check input[type=checkbox]{width:19px;height:19px;flex:none;margin:0}.image-workshop #ws-wand.active{background:#2257df;color:#fff}.image-workshop #ws-canvas{touch-action:none}
