.meshy-preparation{width:min(1040px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #354252;border-radius:24px;background:#141a24;color:#edf1f7;overflow:auto;box-shadow:0 24px 100px #0008}.meshy-preparation::backdrop{background:#030812bf;backdrop-filter:blur(5px)}.meshy-preparation [hidden]{display:none!important}.meshy-close{position:absolute;z-index:3;right:14px;top:12px;width:36px;height:36px;border:1px solid #435064;border-radius:50%;background:#1b2430;color:#e9eef5;font-size:26px;cursor:pointer}.meshy-preparation.meshy-login-only{width:min(380px,calc(100vw - 32px));padding:68px 30px 35px}.meshy-auth{text-align:center}.meshy-auth .btn{width:100%}.meshy-workspace{display:grid;grid-template-columns:minmax(300px,370px) minmax(0,1fr)}.meshy-editor{padding:30px 24px;border-right:1px solid #293442}.meshy-editor h2{margin:0 0 14px;font-size:25px;line-height:1.2}.meshy-wallet{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:20px;color:#dce6f2}.meshy-wallet small{color:#9eafc3}.meshy-coin{display:inline-block;width:23px;height:23px;object-fit:contain;vertical-align:middle;flex:none}.meshy-upload-card{padding:15px;background:#1c232e;border-radius:18px}.meshy-upload-card h3{margin:0 0 12px;font-size:16px;font-weight:500;color:#dce2e9}.meshy-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;width:100%;min-height:190px;padding:18px 12px;border:2px dashed #47515d;border-radius:15px;background:#171d26;color:#e4e8ee;font:inherit;line-height:1.4;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}.meshy-dropzone svg{width:42px;height:42px;fill:none;stroke:#92a0ae;stroke-width:2}.meshy-dropzone small{color:#98a4b3;font-size:12px}.meshy-dropzone:hover,.meshy-dropzone.is-dragging{border-color:#00c5e8;background:#142a34}.meshy-dropzone.has-image{min-height:100px}.meshy-dropzone.has-image svg{display:none}.meshy-dropzone:disabled{cursor:default;opacity:.6}.meshy-thumbnails{display:flex;gap:9px;margin-top:10px}.meshy-thumbnails:empty{display:none}.meshy-thumbnail{position:relative;flex:1;min-width:0;height:78px;border:1px solid #47515d;border-radius:10px;overflow:hidden}.meshy-thumbnail img{width:100%;height:100%;object-fit:contain;background:#141b25}.meshy-thumbnail button{position:absolute;right:2px;top:2px;border:0;border-radius:50%;width:22px;height:22px;background:#111c;color:white;cursor:pointer}.meshy-multiview{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;cursor:pointer;font-size:14px}.meshy-multi{position:absolute;right:0;width:44px;height:26px;opacity:0;margin:0;cursor:pointer}.meshy-switch{width:44px;height:26px;border-radius:20px;background:#505761;pointer-events:none;padding:3px;transition:background .2s}.meshy-switch::after{content:'';display:block;width:20px;height:20px;background:#f5f7fa;border-radius:50%;transition:transform .2s}.meshy-multi:checked+.meshy-switch{background:#00a7c4}.meshy-multi:checked+.meshy-switch::after{transform:translateX(18px)}.meshy-multi:focus-visible+.meshy-switch{outline:2px solid #00cee8;outline-offset:3px}.meshy-multi-hint{color:#aebac9;font-size:12px;line-height:1.5;margin:12px 0 0}.meshy-texture,.meshy-terms{display:flex;align-items:center;gap:9px;margin:18px 0;font-size:14px;line-height:1.5}.meshy-texture input,.meshy-terms input{width:17px;height:17px;flex:none;accent-color:#00c6e7}.meshy-texture-cost{margin-left:auto;white-space:nowrap}.meshy-terms{align-items:flex-start;color:#acb9c9;font-size:12px}.meshy-terms input{margin-top:2px}.meshy-preparation a{color:#73ddf0}.meshy-start{display:flex;align-items:center;justify-content:center;gap:7px;min-height:49px;font-size:16px}.meshy-start:disabled{opacity:.45;cursor:default}.meshy-note{font-size:13px;line-height:1.5;color:#b4c3d4;margin:14px 0;overflow-wrap:anywhere}.meshy-note:empty{display:none}.meshy-preparation details{margin-top:16px;padding-top:13px;border-top:1px solid #2c3745;font-size:14px}.meshy-preparation summary{cursor:pointer;color:#d8e3ee}.meshy-preparation details p{font-size:12px;color:#9bacbf;line-height:1.5}.meshy-packs,.meshy-downloads{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.meshy-packs button,.meshy-downloads button,.meshy-history button{border:1px solid #415268;border-radius:10px;padding:9px 12px;background:#1c2837;color:#e2eaf4;font:inherit;cursor:pointer}.meshy-history{display:grid;gap:8px;margin-top:12px}.meshy-history button{text-align:left;font-size:12px;line-height:1.5}.meshy-history .meshy-coin{width:17px;height:17px}.meshy-stage{display:flex;flex-direction:column;min-width:0;padding:56px 20px 20px;background:#171e29;border-radius:0 24px 24px 0}.meshy-preview{position:relative;flex:1;min-height:330px;height:420px;overflow:hidden;border-radius:16px}.meshy-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.meshy-canvas:active{cursor:grabbing}.meshy-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:22px}.meshy-stage-title{font-size:18px;font-weight:500}.meshy-stage-description{max-width:310px;margin:0;color:#9cadc1;font-size:14px;line-height:1.6}.meshy-orbit{position:relative;width:76px;height:76px;border:1px solid #52637b;border-radius:24px;transform:rotate(-12deg);margin-bottom:12px}.meshy-orbit::before,.meshy-orbit::after{content:'';position:absolute;inset:11px;border:1px solid #52637b;border-radius:15px;transform:rotate(45deg)}.meshy-orbit::after{inset:24px;border-color:#5dd7eb}.is-generating .meshy-orbit{border-color:#00c9e8;animation:meshy-spin 4s linear infinite}.is-generating .meshy-orbit::before{border-color:#4d9dab}.is-generating .meshy-orbit span{position:absolute;top:-4px;left:32px;width:8px;height:8px;border-radius:50%;background:#00d2ee;box-shadow:0 0 18px #00d2ee}.meshy-progress{width:min(230px,90%);height:6px;accent-color:#00c6e7}.meshy-result{padding:0 5px}.meshy-rotate-hint{text-align:center;margin:10px 0 16px;font-size:12px;color:#a2b2c7}.meshy-result-actions{display:flex;gap:8px;flex-wrap:wrap}.meshy-result-actions .btn{flex:1;white-space:normal;font-size:14px;padding:10px 12px;min-height:43px}.meshy-downloads{justify-content:center}.meshy-downloads button{font-size:13px}.meshy-expiry,.meshy-delivery{font-size:11px;color:#91a2b9;line-height:1.5;text-align:center;margin:16px 0 0}.meshy-delivery{margin-top:auto;padding-top:20px}.meshy-preparation button:focus-visible{outline:2px solid #00d0ef;outline-offset:3px}@keyframes meshy-spin{to{transform:rotate(348deg)}}@media(max-width:700px){.meshy-preparation{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}.meshy-workspace{grid-template-columns:1fr}.meshy-editor{padding:27px 20px 20px;border-right:0}.meshy-editor h2{padding-right:27px;font-size:22px}.meshy-stage{padding:18px 12px 20px;border-radius:0 0 18px 18px;border-top:1px solid #2c3745}.meshy-preview{flex:none;height:320px;min-height:260px}.meshy-dropzone{min-height:165px}.meshy-placeholder{padding:20px}.meshy-result-actions .btn{font-size:13px}}@media(prefers-reduced-motion:reduce){.is-generating .meshy-orbit{animation:none}.meshy-switch,.meshy-switch::after,.meshy-dropzone{transition:none}}

.meshy-shortfall{font-size:12px;line-height:1.5;color:#e8c780;margin:12px 0}.meshy-shortfall .meshy-coin{width:18px;height:18px}

.meshy-history{max-height:180px;overflow:auto}

.meshy-service{color:#9bacbf;font-size:12px;margin:-10px 0 18px}.meshy-service:empty{display:none}

/* Directional image slots: front is primary, other views remain visible while off. */
.meshy-editor{padding:24px 20px}.meshy-editor h2{font-size:22px}.meshy-wallet{margin-bottom:16px}.meshy-upload-card{padding:14px;border:1px solid #303d4e;border-radius:14px}
.meshy-image-input{display:grid;gap:10px}.model-image-sides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.model-view{position:relative;min-width:0}.model-view-select{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:116px;padding:10px 4px;border:1px dashed #526174;border-radius:10px;background:#151e2a;color:#b5c5d8;font:inherit;cursor:pointer;text-align:center}
.model-view-select:hover,.model-view-select.is-dragging{border-color:#00c5e8;background:#142a34}.model-view-picture{display:flex;align-items:center;justify-content:center;width:100%;height:66px;pointer-events:none}.model-view-picture svg{height:100%;width:auto;max-width:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.model-view-picture img{height:100%;max-width:100%;object-fit:contain;border-radius:6px}
.model-view-title{font-size:10px;line-height:1.4;pointer-events:none}.model-view--front .model-view-select{min-height:190px;gap:9px;padding:14px 12px}.model-view--front .model-view-picture{height:86px}.model-view--front .model-view-title{font-size:14px;font-weight:600}.model-view-select small{font-size:11px;line-height:1.5;color:#95a6bb;max-width:240px;pointer-events:none}
.model-view-select.has-image .model-view-picture{height:112px}.model-image-sides .model-view-select.has-image .model-view-picture{height:66px}.model-view--front .meshy-dropzone.has-image svg{display:block}
.model-view.is-inactive{opacity:.35;filter:grayscale(1)}.model-view.is-inactive .model-view-select{cursor:not-allowed}.model-view-select:disabled{cursor:default}.model-view-remove{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #526174;border-radius:50%;background:#111e;color:#edf1f7;font-size:18px;cursor:pointer}
.meshy-history-panel summary{font-weight:600}.meshy-history-panel[open]{padding:13px 12px;background:#1c232e;border:1px solid #354252;border-radius:12px}.meshy-history-panel summary::marker{color:#00c6e7}.meshy-preparation .meshy-history-panel p{margin-bottom:0}.meshy-multiview{margin-top:14px}
@media(max-width:700px){.meshy-editor{padding:24px 16px 18px}.model-view--front .model-view-select{min-height:180px}.model-view-select{min-height:112px}.meshy-preparation .meshy-editor h2{font-size:21px}}
