
.sswmm{position:relative;width:100%;min-height:100svh;background:#fff;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Hiragino Sans",sans-serif;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}
.sswmm *{box-sizing:border-box}
.sswmm-stage{height:72svh;min-height:500px;display:flex;align-items:center;justify-content:center;padding:26px 82px 18px 72px;background:#fff;overflow:hidden}
.sswmm-product{position:relative;width:min(74vw,520px);aspect-ratio:1/1.18;background:linear-gradient(#fafafa,#ededed);border-radius:4% 4% 8% 8%;filter:drop-shadow(0 12px 28px rgba(0,0,0,.08))}
.sswmm-product:before{content:"";position:absolute;top:-7%;left:22%;width:56%;height:15%;border-radius:0 0 50% 50%;background:#fff;box-shadow:inset 0 -8px 14px rgba(0,0,0,.05)}
.sswmm-product:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,rgba(255,255,255,.38),transparent 34%,rgba(0,0,0,.035) 72%,transparent);pointer-events:none}
.sswmm-print-area{position:absolute;left:18%;top:24%;width:64%;height:42%;overflow:visible;display:flex;align-items:center;justify-content:center}
.sswmm-layer{position:absolute;left:50%;top:50%;transform:translate3d(-50%,-50%,0) scale(1) rotate(0deg);transform-origin:center center;touch-action:none;will-change:transform,opacity;min-width:44px;min-height:44px;z-index:10}
.sswmm-layer.is-moving{filter:drop-shadow(0 14px 24px rgba(0,0,0,.24));z-index:40}
.sswmm-layer.is-deleting{transition:transform .9s cubic-bezier(.16,.9,.2,1),opacity .9s ease,filter .9s ease;opacity:0;filter:blur(2px)}
#sswmmImage{display:none;width:auto;height:auto;max-width:none;max-height:none;pointer-events:none;-webkit-user-drag:none;image-rendering:auto}
.sswmm-text{display:inline-block!important;position:relative;width:auto!important;height:auto!important;min-width:1em;min-height:1em;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;outline:none!important;border:none!important;box-shadow:none!important;background:transparent!important;color:#fff;font-size:139px;line-height:1!important;font-weight:700;font-stretch:normal!important;letter-spacing:0;writing-mode:horizontal-tb!important;text-orientation:mixed!important;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;text-align:center;white-space:pre!important;transform:none!important;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;caret-color:#0a84ff;user-select:text;touch-action:manipulation;-webkit-text-size-adjust:100%}
.sswmm-text:focus{outline:none!important;border:none!important;box-shadow:none!important;background:transparent!important}
.sswmm-text::selection{background:rgba(0,122,255,.22)}
.sswmm-size{position:fixed;left:28px;top:48%;transform:translateY(-50%);width:72px;height:310px;border-radius:42px;background:rgba(255,255,255,.72);backdrop-filter:blur(18px);box-shadow:0 12px 34px rgba(0,0,0,.08);z-index:80;display:flex;align-items:center;justify-content:center;padding:18px 0 46px;transition:opacity .18s ease,transform .18s ease}
#sswmmSize{writing-mode:bt-lr;-webkit-appearance:slider-vertical;appearance:slider-vertical;width:44px;height:230px;accent-color:#35d6c5}
.sswmm-size-label{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#fff;text-shadow:0 2px 9px rgba(0,0,0,.25);font-size:22px;font-weight:800}
.sswmm-actions{position:fixed;right:22px;top:48%;transform:translateY(-50%);display:flex;flex-direction:column;gap:18px;z-index:90}
.sswmm-actions button,.sswmm-file{width:76px;height:76px;border-radius:50%;border:0;background:rgba(77,77,77,.86);color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:900;box-shadow:0 10px 28px rgba(0,0,0,.12);transition:transform .12s ease,background .12s ease;cursor:pointer}
.sswmm-actions button:active,.sswmm-file:active{transform:scale(.92);background:#222}
.sswmm-file input{display:none}
.sswmm-bottom{position:fixed;left:8%;right:8%;bottom:54px;min-height:86px;border-radius:48px;background:rgba(255,255,255,.92);box-shadow:0 16px 40px rgba(0,0,0,.12);backdrop-filter:blur(20px);z-index:85;display:flex;align-items:center;justify-content:space-around;padding:12px 18px;transition:opacity .18s ease,transform .18s ease;touch-action:pan-x}
.sswmm-bottom button{min-width:54px;height:58px;border:0;background:transparent;color:#333;font-weight:900;font-size:26px;border-radius:24px;transition:transform .1s ease,background .1s ease}
.sswmm-bottom button:active{transform:scale(.92);background:rgba(0,0,0,.05)}
.sswmm-color{background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)!important;border-radius:50%!important;width:58px!important;min-width:58px!important}
.sswmm.is-moving .sswmm-bottom,.sswmm.is-moving .sswmm-size{opacity:0!important;pointer-events:none!important;transform:translateY(18px)!important}
.sswmm-trash{position:fixed;left:50%;bottom:34px;transform:translateX(-50%) translateY(130px) scale(.88);opacity:0;pointer-events:none;z-index:130;transition:opacity .22s ease,transform .22s ease}
.sswmm-trash.show{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
.sswmm-trash-core{width:112px;height:112px;border-radius:56px;background:rgba(32,32,32,.9);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 42px rgba(0,0,0,.25);backdrop-filter:blur(16px);transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.sswmm-trash.hot .sswmm-trash-core{transform:scale(1.18);background:#ed1c24;box-shadow:0 0 34px rgba(237,28,36,.58)}
.sswmm-trash-icon{font-size:34px;line-height:1}.sswmm-trash-text{font-size:12px;margin-top:6px;font-weight:800}
.sswmm-guide{position:absolute;display:none;z-index:70;pointer-events:none;background:#00aaff;box-shadow:0 0 10px rgba(0,170,255,.7)}
.sswmm-guide.show{display:block}.sswmm-guide-h{left:-40vw;right:-40vw;top:50%;height:2px}.sswmm-guide-v{top:-40vh;bottom:-40vh;left:50%;width:2px}
.sswmm-toast{position:fixed;left:50%;bottom:150px;transform:translateX(-50%) translateY(10px);opacity:0;z-index:140;background:rgba(0,0,0,.76);color:#fff;padding:10px 16px;border-radius:18px;font-size:13px;transition:opacity .2s ease,transform .2s ease;pointer-events:none;white-space:nowrap}
.sswmm-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:480px){.sswmm-stage{height:70svh;min-height:490px;padding-left:64px;padding-right:82px}.sswmm-actions{right:16px}.sswmm-actions button,.sswmm-file{width:68px;height:68px}.sswmm-bottom{left:7%;right:7%;bottom:50px}.sswmm-size{left:18px;width:64px}}

/* v1.4.3 stable usability fixes */
html:has(.sswmm),body:has(.sswmm){overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important;-webkit-text-size-adjust:100%!important}
.sswmm{position:fixed!important;inset:0!important;width:100vw!important;height:100svh!important;min-height:100svh!important;z-index:999999!important;background:#fff!important;touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none!important}
.sswmm-stage{height:100svh!important;min-height:100svh!important;padding:10px 80px 12px 54px!important;align-items:center!important}
.sswmm-product{width:min(88vw,620px)!important;height:min(88svh,760px)!important;aspect-ratio:auto!important;background:transparent!important;filter:drop-shadow(0 10px 28px rgba(0,0,0,.10))!important;overflow:visible!important}
.sswmm-product:before,.sswmm-product:after{display:none!important}
.sswmm-product-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:none;pointer-events:none;z-index:1}
.sswmm-product.has-img .sswmm-product-img{display:block}
.sswmm-product:not(.has-img){background:linear-gradient(#fafafa,#ededed)!important;border-radius:4% 4% 8% 8%}
.sswmm-product:not(.has-img):before{display:block!important;content:"";position:absolute;top:-7%;left:22%;width:56%;height:15%;border-radius:0 0 50% 50%;background:#fff;box-shadow:inset 0 -8px 14px rgba(0,0,0,.05)}
.sswmm-print-area{z-index:3;left:17%!important;top:20%!important;width:66%!important;height:50%!important}
.sswmm-actions{right:12px!important;top:50%!important;gap:12px!important;z-index:1000001!important}.sswmm-actions button,.sswmm-file{width:62px!important;height:62px!important;background:rgba(25,25,25,.82)!important;backdrop-filter:blur(14px);font-size:16px!important}
.sswmm-size{left:10px!important;top:50%!important;width:54px!important;height:270px!important;background:rgba(255,255,255,.38)!important;z-index:1000000!important}.sswmm-size-label{font-size:14px!important;color:#222;text-shadow:none}
.sswmm-bottom{display:none!important;left:10%!important;right:10%!important;bottom:18px!important;min-height:62px!important;border-radius:34px!important;background:rgba(20,20,20,.82)!important;z-index:1000000!important}.sswmm-bottom.show{display:flex!important}.sswmm-bottom button{color:#fff!important;font-size:14px!important;min-width:auto!important;height:42px!important;padding:0 10px!important}.sswmm-color{width:44px!important;min-width:44px!important;height:44px!important}
.sswmm-colors{position:fixed;left:50%;top:10px;transform:translateX(-50%);max-width:calc(100vw - 116px);min-height:42px;padding:6px 8px;display:flex;gap:7px;overflow-x:auto;z-index:1000000;background:rgba(20,20,20,.72);backdrop-filter:blur(14px);border-radius:24px;-webkit-overflow-scrolling:touch}.sswmm-color-chip{flex:0 0 auto;width:34px;height:34px;border:2px solid rgba(255,255,255,.78);border-radius:50%;background:#ddd center/cover no-repeat;box-shadow:0 4px 14px rgba(0,0,0,.18)}.sswmm-color-chip span{display:none}.sswmm-color-chip.active{outline:3px solid #35d6c5}.sswmm-colors:empty{display:none}
.sswmm-text{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:none!important}.sswmm-layer{touch-action:none!important}
.sswmm-toast{z-index:1000002!important}
@media(max-width:480px){.sswmm-stage{padding-left:44px!important;padding-right:74px!important}.sswmm-product{width:92vw!important;height:86svh!important}.sswmm-actions button,.sswmm-file{width:56px!important;height:56px!important}.sswmm-size{width:48px!important;height:238px!important}.sswmm-colors{top:8px;max-width:calc(100vw - 96px)}}
