.editor-shell,.editor-loading,.editor-dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#191919;--chrome:#131313;--edge:#353535;--muted:#b5b5b5;color:#f7f7f7;background:var(--chrome)}.editor-loading{align-content:center;justify-items:center;gap:20px;min-height:100dvh;display:grid}.editor-loading a{text-underline-offset:3px;text-decoration:underline}.editor-shell{flex-direction:column;height:100dvh;min-height:440px;display:flex;overflow:hidden}.file-input{display:none}.editor-header{border-bottom:1px solid var(--edge);flex-shrink:0;justify-content:space-between;align-items:center;gap:14px;min-height:63px;padding:8px 20px 8px 13px;display:flex}.editor-identity,.header-actions{align-items:center;gap:9px;min-width:0;display:flex}.editor-identity{flex:1}.header-actions{flex-shrink:0}.icon-button,.editor-button,.name-button{color:inherit;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.icon-button{border-radius:8px;flex-shrink:0;width:36px;height:36px;padding:0}.icon-button:hover,.name-button:hover{background:#303030}.icon-button:disabled,.editor-button:disabled{opacity:.35}.editor-divider{background:var(--edge);flex-shrink:0;width:1px;height:19px;margin:0 5px}.name-button{letter-spacing:-.035em;border-radius:5px;gap:8px;min-width:0;padding:5px 4px;font-size:1.05rem;font-weight:550}.name-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.name-button svg{color:#aaa}.name-field{color:#fff;background:#282828;border:1px solid #666;border-radius:6px;width:min(210px,100%);padding:6px}.editor-status{color:#ccc;border:1px solid #464646;border-radius:14px;padding:3px 8px;font-size:.75rem}.editor-button{white-space:nowrap;border:1px solid #484848;border-radius:24px;gap:7px;min-height:37px;padding:6px 15px;font-size:.875rem;font-weight:550}.editor-button:hover{background:#303030}.editor-button.primary{color:#151515;background:#f4f4f4;border-color:#f4f4f4}.editor-button.primary:hover{background:#dcdcdc}.editor-layout{flex:1;grid-template-columns:72px minmax(0,1fr) clamp(240px,20vw,330px);min-height:0;display:grid}.editor-layout[data-panel=false]{grid-template-columns:72px minmax(0,1fr)}.tool-rail{background:var(--chrome);border-right:1px solid var(--edge);flex-direction:column;gap:6px;padding:17px 6px;display:flex}.tool-rail button{color:#c6c6c6;background:0 0;border:1px solid #0000;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:58px;padding:6px 2px;font-size:.75rem;display:flex}.tool-rail button:hover{color:#fff;background:#272727}.canvas-stage{background-color:#2c2c2c;background-image:radial-gradient(#4b4b4b .8px,#0000 .9px);background-size:16px 16px;justify-content:center;align-items:center;min-width:0;min-height:0;padding:78px clamp(14px,2.3vw,52px) 70px;display:flex;position:relative}.canvas-stage:focus-visible{outline-offset:-4px}.stage-heading{justify-content:space-between;align-items:center;display:flex;position:absolute;top:21px;left:24px;right:24px}.stage-heading>span,.stage-foot>span{color:#d7d7d7;align-items:center;gap:8px;font-size:.8125rem;display:inline-flex}.stage-heading>span{background:#2c2c2c;padding:3px 5px}.shirt-pair{justify-content:center;align-items:center;gap:clamp(0px,1vw,24px);width:100%;max-width:1170px;display:flex}.stage-item{flex:1;min-width:0;max-width:calc(87dvh - 227.94px)}.garment-side{flex-direction:column;align-items:center;display:flex}.shirt-frame{aspect-ratio:280/322;width:100%;position:relative}.shirt-target{background:0 0;border:0;width:100%;height:100%;padding:0;display:block}.shirt-target .shirt-preview{filter:drop-shadow(0 5px 6px #0002)}.print-surface{touch-action:none;position:absolute}.garment-side[data-active=true] .shirt-frame:hover .print-surface{outline:1px dashed #8887}.stage-foot{pointer-events:none;justify-content:center;display:flex;position:absolute;bottom:22px;left:12px;right:12px}.stage-foot>span{background:#262626;border:1px solid #484848;border-radius:22px;padding:9px 14px;font-size:.8125rem}.stage-foot svg{flex-shrink:0}.editor-notice{z-index:4;color:#171717;background:#fafafa;border-radius:12px;align-items:center;max-width:90vw;padding:7px 10px 7px 17px;font-size:.875rem;display:flex;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 6px 25px #0003}.editor-notice button:hover{background:#ddd}@media (max-width:800px){.editor-shell{min-height:400px}.editor-layout,.editor-layout[data-panel=false]{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.tool-rail{border:0;border-top:1px solid var(--edge);padding:5px 8px max(5px, env(safe-area-inset-bottom));flex-direction:row;grid-row:2;justify-content:center;gap:12px}.tool-rail button{flex-direction:row;gap:8px;min-width:100px;min-height:44px;font-size:.875rem}.desktop-panel{display:none}.stage-item{max-width:calc(87dvh - 243.6px)}.stage-foot{bottom:16px}.stage-heading{top:14px;left:14px;right:14px}}@media (max-width:570px){.editor-header{flex-wrap:wrap;gap:5px;padding:7px 12px}.editor-identity{flex-basis:100%}.header-actions{justify-content:flex-end;width:100%}.header-actions .history-button:first-child{margin-right:0}.header-actions .editor-divider{visibility:hidden;margin-right:auto}.editor-status{margin-left:auto}.stage-item{max-width:calc(87dvh - 267.09px)}.canvas-stage{padding:64px 12px 51px}.stage-foot>span{font-size:.75rem}}@media (max-height:550px) and (min-width:801px){.canvas-stage{padding:30px 14px}.stage-heading,.stage-foot{display:none}.stage-item{max-width:calc(87dvh - 130.5px)}}.editor-header{grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr);padding-inline:14px;display:grid}.header-product-theme{white-space:nowrap;text-overflow:ellipsis;justify-self:center;max-width:30vw;font-size:.875rem;overflow:hidden}.header-actions{justify-self:end}.shirt-side-target{background:0 0;border:0;width:100%;padding:0;display:block}.shirt-side-target:focus-visible{outline-offset:2px;outline:2px solid #fff}@media (max-width:900px){.editor-header{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.header-product-theme{grid-area:2/1/auto/-1;max-width:95%}.header-actions{grid-area:1/2}}@media (max-width:570px){.editor-header{grid-template-columns:1fr}.header-actions{grid-area:3/1}}
.desktop-panel{background:var(--surface);border-left:1px solid var(--edge);min-height:0;overflow:auto}.panel-heading{border-bottom:1px solid var(--edge);align-items:center;gap:9px;min-height:60px;padding:12px 20px;display:flex}.panel-heading h2{letter-spacing:-.03em;font-size:1rem;font-weight:580}.panel-heading>span{color:#ddd;background:#333;border-radius:6px;padding:1px 6px;font-size:.75rem}.panel-close{margin-left:auto}.panel-content{padding:18px}.empty-artwork{text-align:center;border:1px dashed #505050;border-radius:10px;padding:30px 14px 24px}.empty-art-icon{color:#dedede;background:#303030;border-radius:12px;place-items:center;width:47px;height:47px;margin:0 auto 14px;display:grid}.empty-artwork h3,.layer-tools h3{font-size:.9375rem;font-weight:550}.empty-artwork p{color:var(--muted);max-width:200px;margin:6px auto 0;font-size:.875rem;line-height:1.5}.panel-upload{color:#f4f4f4;background:#252525;border:1px solid #565656;border-radius:8px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:40px;margin-top:16px;padding:6px 12px;font-size:.875rem;display:flex}.panel-upload:hover,.adjust-grid button:hover{background:#383838}.panel-upload:disabled,.panel-upload:disabled:hover{opacity:.5;cursor:not-allowed;background:#252525}.file-hint{text-align:center;color:var(--muted);margin-top:8px;font-size:.75rem;line-height:1.4}.design-gallery{container-type:inline-size}.artwork-grid[data-scrollable]{overscroll-behavior-y:contain;scrollbar-gutter:stable;max-block-size:calc(100cqi + 4px);overflow-y:auto}.artwork-grid[data-scrollable] .artwork-swatch{aspect-ratio:auto;block-size:calc(50cqi - 6px)}.artwork-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.artwork-tile{background:#252525;border:1px solid #3e3e3e;border-radius:8px;padding:0;display:block;overflow:hidden}.artwork-tile[aria-pressed=true]{border-color:#eee}.artwork-swatch{aspect-ratio:1;background:#eee;place-items:center;display:grid}.artwork-swatch img{object-fit:contain;width:80%;height:80%}.layer-tools{border-top:1px solid var(--edge);margin-top:24px;padding-top:18px}.adjust-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px;display:grid}.adjust-grid button{text-align:left;background:0 0;border:1px solid #454545;border-radius:6px;align-items:center;gap:6px;min-height:35px;padding:7px;font-size:.75rem;display:flex}.adjust-grid button:disabled{color:#888;background:0 0}.editor-dialog{border:1px solid #484848;border-radius:16px;max-width:min(800px,94vw);max-height:90dvh;padding:0}.editor-dialog::backdrop{background:#000b}.dialog-body{padding:24px}.dialog-body h2{letter-spacing:-.045em;font-size:1.25rem;font-weight:550}.dialog-body>p,.dialog-heading p{color:var(--muted);margin-top:8px;font-size:.875rem;line-height:1.5}.dialog-actions{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.dialog-heading{justify-content:space-between;align-items:start;gap:14px;display:flex}.preview-dialog{width:740px}.preview-shirts{background:#303030;border-radius:10px;justify-content:center;gap:12px;margin-top:14px;padding:10px 10px 16px;display:flex}.preview-shirts figure{text-align:center;width:48%;max-width:285px;margin:0}.preview-shirts figcaption{margin-top:8px;font-size:.875rem}.drawer-dialog{border-radius:16px 16px 0 0;width:min(400px,100%);max-width:100%;margin:auto 0 0 auto}.drawer-dialog .dialog-body{padding:0}.drawer-dialog .panel-content{max-height:69dvh;overflow:auto}.drawer-dialog.artwork-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width:450px){.dialog-body{padding:16px}.preview-shirts{gap:0;padding:8px 0 14px}.preview-shirts figure{width:50%}}.gallery-navigation{justify-content:center;padding-top:7px;display:flex}.gallery-next{color:#eee;background:#252525;border:1px solid #555;border-radius:50%;place-items:center;width:30px;height:30px;display:grid}.gallery-next:hover:not(:disabled){background:#383838}.gallery-next:disabled{opacity:.4}
.transcript article{border-bottom:1px solid var(--edge);overflow-wrap:anywhere;padding:13px 0}.transcript strong{color:#bbb;margin:7px 0 4px;font-size:.75rem;display:block}.transcript p{white-space:pre-wrap;font-size:.875rem;line-height:1.5}.transcript a{text-decoration:underline}.tweaks{border-top:1px solid var(--edge)}.tweaks label{margin:12px 0}.tweaks input[type=checkbox]{justify-self:start}.version-library{margin:0 18px 24px;font-size:.85rem}.project-picker{background:#202020;border:1px solid #444;border-radius:14px;gap:18px;width:min(90vw,420px);padding:24px}.project-picker label{gap:6px;display:grid}.theme-layout-summary{color:#bbb;margin:0;font-size:.85rem}.picker-gallery{gap:8px;display:flex;overflow-x:auto}.picker-gallery:empty{display:none}.picker-gallery img{object-fit:contain}.brush-board{background:#444;max-width:100%;margin:14px auto;position:relative}.brush-board img,.brush-board canvas{width:100%;height:100%;position:absolute;inset:0}.brush-board canvas{opacity:.65;touch-action:none;cursor:crosshair}.editor-layout{position:relative}.canvas-stage{isolation:isolate;padding:0;overflow:hidden}.board-group{pointer-events:none;position:absolute}.world-board{width:100%;position:relative}.board-shirt{pointer-events:none;position:absolute}.world-surface{touch-action:none;z-index:1;position:absolute;inset:0}.stage-foot{z-index:2}.job-status{z-index:2;color:#ddd;pointer-events:none;font-size:.75rem;position:absolute;top:22px;right:16px}.composer-dock{z-index:4;bottom:max(14px, env(safe-area-inset-bottom));color:#f3f3f3;width:min(640px,100% - 28px);position:absolute;left:50%;transform:translate(-50%)}.prompt-pill{z-index:2;background:#29292b;border:1px solid #515154;border-radius:26px;align-items:center;gap:3px;min-height:50px;padding:5px 7px 5px 11px;display:flex;position:relative;box-shadow:0 5px 18px #0003}.prompt-pill:focus-within{border-color:#8a8a8e}.prompt-pill textarea{field-sizing:content;resize:none;min-width:0;max-height:82px;font:inherit;color:inherit;background:0 0;border:0;outline:none;flex:1;padding:5px;font-size:.875rem;line-height:1.4}.prompt-pill .icon-button{color:#ccc;border-radius:50%;width:34px;height:34px}.prompt-pill .send-prompt{color:#151515;background:#eee}.send-prompt:disabled{opacity:.35}.brush-trigger{position:relative}.brush-trigger[aria-pressed=true]{background:#555}.brush-trigger [role=tooltip]{white-space:nowrap;opacity:0;pointer-events:none;background:#111;border:1px solid #555;border-radius:5px;padding:5px 8px;font-size:.75rem;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.brush-trigger:is(:hover,:focus-visible) [role=tooltip]{opacity:1}.chat-history{background:#202022;border:1px solid #4c4c50;border-radius:14px;width:100%;position:absolute;bottom:calc(100% + 12px);box-shadow:0 10px 26px #0003}.composer-dock:has(.reference-deck) .chat-history{bottom:calc(100% + 67px)}.chat-history header{justify-content:space-between;align-items:center;padding:4px 8px 4px 14px;display:flex}.chat-history h2,.artwork-slides h3{font-size:.94rem}.chat-history .transcript{overscroll-behavior:contain;max-height:min(30dvh,260px);padding:0 14px 10px;overflow:auto}.reference-deck{z-index:1;width:44px;height:44px;transition:transform .42s cubic-bezier(.34,1.35,.64,1),width .4s;position:absolute;bottom:calc(100% - 27px);left:26px}.reference-deck:is(:hover,:focus-within){transform:translateY(-14px)}.reference-deck[data-expanded=true]{width:calc(var(--count) * 54px);transform:translateY(-35px)}.reference-deck:has(.reference-preview){width:calc(var(--count) * 54px);transform:translateY(-35px)}.reference-cards{position:absolute;inset:-8px}.reference-deck[data-expanded=true]{max-width:calc(100% - 52px)}.reference-deck[data-expanded=true] .reference-cards{overscroll-behavior-x:contain;scrollbar-width:thin;overflow-x:auto}.reference-count{z-index:4;pointer-events:none;background:#222;border-radius:6px;padding:1px 3px;font-size:.65rem;position:absolute;top:-2px;right:-6px}.reference-card{transform-origin:50% 60%;width:44px;height:44px;transition:transform .42s cubic-bezier(.34,1.35,.64,1);position:absolute;top:8px;left:8px}.reference-thumb{background:#eee;border:1px solid #777;border-radius:8px;width:100%;height:100%;padding:0;overflow:hidden;box-shadow:0 2px 6px #0005}.reference-thumb img{object-fit:cover;width:100%;height:100%;display:block}.reference-card[data-index="0"]{z-index:3}.reference-card[data-index="1"]{z-index:2;transform:translate(4px,2px)rotate(8deg)}.reference-card[data-index="2"]{z-index:1;transform:translate(-4px,3px)rotate(-8deg)}.reference-deck[data-expanded=false]:hover [data-index="1"]{transform:translate(10px,4px)rotate(13deg)}.reference-deck[data-expanded=false]:hover [data-index="2"]{transform:translate(-10px,5px)rotate(-13deg)}.reference-deck[data-expanded=true] .reference-card{transform:translateX(calc(var(--i) * 54px))}.reference-remove{z-index:4;color:#fff;opacity:0;pointer-events:none;background:#252525;border:1px solid #777;border-radius:50%;place-items:center;width:20px;height:20px;padding:0;transition:opacity .18s,transform .2s;display:grid;position:absolute;top:-6px;right:-6px;transform:scale(.7)}.reference-card:is(:hover,:focus-within) .reference-remove{opacity:1;pointer-events:auto;transform:scale(1)}.reference-preview{z-index:5;background:#202022;border:1px solid #535356;border-radius:10px;width:min(240px,65vw);padding:6px;position:absolute;bottom:calc(100% + 8px);left:-12px;box-shadow:0 6px 20px #0005}.reference-preview img{object-fit:contain;width:100%;height:min(160px,22dvh);display:block}.reference-preview>div{align-items:center;display:flex}.reference-preview span{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.75rem;overflow:hidden}.artwork-slides{margin-top:20px}.slide-switch{background:#222;border-radius:8px;margin-bottom:12px;padding:3px;display:flex}.slide-switch button{color:var(--muted);background:0 0;border:0;border-radius:6px;flex:1;padding:7px}.slide-switch button[aria-pressed=true]{color:#fff;background:#414141}.slide-window{overflow:hidden}.slide-track{align-items:start;transition:transform .23s;display:flex}.control-slide{flex:0 0 100%;min-width:0}.control-slide[aria-hidden=true]{max-height:1px;overflow:hidden}.control-slide .tweaks{border:0;padding:0}.tweaks label,.project-picker label{gap:6px;font-size:.84rem;display:grid}.tweaks select,.project-picker select{color:inherit;background:#252525;border:1px solid #555;border-radius:7px;padding:8px}.project-picker{display:grid}.artwork-swatch svg{width:80%;height:80%}.inspector-status{color:var(--muted);font-size:.875rem}.version-library button{text-align:left;word-break:break-word;color:inherit;background:0 0;border:0;padding:7px;display:block}.version-library button:disabled{opacity:.5}.editor-notice{z-index:8;bottom:78px}@media (max-width:800px){.editor-layout .desktop-panel{z-index:3;border:1px solid var(--edge);border-radius:10px;width:min(290px,75%);max-height:calc(100% - 205px);display:block;position:absolute;top:40px;right:7px;box-shadow:0 5px 16px #0005}.tool-rail{gap:3px}.tool-rail button{flex:1;min-width:0}.editor-notice{bottom:122px}.job-status{font-size:.7rem;top:14px;right:8px}}@media (prefers-reduced-motion:reduce){.reference-deck,.reference-card,.reference-remove,.slide-track{transition:none}}
.inline-crop{z-index:4;position:absolute;inset:0}.crop-source-frame{position:absolute}.crop-source-frame>img,.crop-source-frame>svg{pointer-events:none;width:100%;height:100%;display:block;position:absolute;inset:0}.crop-shade{fill:#0009}.crop-line{stroke:#fff;filter:drop-shadow(0 0 1px #000)}.crop-edges{position:absolute}.crop-edge{color:#fff;pointer-events:auto;touch-action:none;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute}.crop-edge:before{content:"";background:currentColor;border:1px solid #333;border-radius:4px}.crop-edge-left,.crop-edge-right{cursor:ew-resize;width:26px;height:100%;top:0;transform:translate(-50%)}.crop-edge-left{left:0}.crop-edge-right{left:100%}.crop-edge-left:before,.crop-edge-right:before{width:6px;height:20px}.crop-edge-top,.crop-edge-bottom{cursor:ns-resize;width:100%;height:26px;left:0;transform:translateY(-50%)}.crop-edge-top{top:0}.crop-edge-bottom{top:100%}.crop-edge-top:before,.crop-edge-bottom:before{width:20px;height:6px}.inline-crop-actions{color:#fff;pointer-events:auto;background:#1d1d1d;border-radius:9px;flex-wrap:wrap;justify-content:center;gap:4px;width:fit-content;max-width:100%;margin:auto;padding:4px;display:flex;position:absolute;inset:0 0 auto}.inline-crop-actions button{background:0 0;border:1px solid #555;border-radius:6px;min-height:34px;padding:4px 8px;font-size:.8125rem}.inline-crop-actions button:last-child{color:#181818;background:#eee}.inline-crop-actions button:disabled{opacity:.5}
.rerender-frame{z-index:2;pointer-events:none;position:absolute}.rerender-blur{pointer-events:none;display:block;position:absolute;inset:0;container-type:size}.rerender-blur-low,.rerender-blur-medium{padding:12%;animation:1.8s linear infinite rerender-sweep;display:flex;position:absolute;inset:-12%;-webkit-mask-size:200% 100%;mask-size:200% 100%}.rerender-blur-low{filter:blur(1.5cqmin);-webkit-mask-image:linear-gradient(90deg,#0000,#000,#0000);mask-image:linear-gradient(90deg,#0000,#000,#0000)}.rerender-blur-medium{filter:blur(5cqmin);-webkit-mask-image:linear-gradient(90deg,#000,#0000,#000);mask-image:linear-gradient(90deg,#000,#0000,#000)}.rerender-blur svg{width:100%;height:100%;display:block;overflow:visible}.artwork-swatch{position:relative}.artwork-swatch .rerender-blur{inset:10%}.artwork-swatch .rerender-blur svg{width:100%;height:100%}.artwork-tile[aria-busy=true] .artwork-swatch>:not(.rerender-blur){visibility:hidden}@keyframes rerender-sweep{0%{-webkit-mask-position:200% 0;mask-position:200% 0}to{-webkit-mask-position:0 0;mask-position:0 0}}@media (prefers-reduced-motion:reduce){.rerender-blur-low,.rerender-blur-medium{animation:none;-webkit-mask-position:50% 0;mask-position:50% 0}}
