/* Layout uses the studio generator components and existing palette. */
.image3d-main{max-width:1320px;margin:auto;padding:30px 24px 60px}
.image3d-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px;margin:28px 0 0}
.image3d-hero h1{font-family:var(--font-head,Unbounded),sans-serif;font-size:clamp(24px,3.2vw,40px);line-height:1.3;margin:12px 0 20px}
.image3d-hero p{line-height:1.7;color:var(--text-muted,#aab8c9);max-width:600px}
.image3d-hero .image3d-eyebrow{color:var(--accent,#00c6e7);font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.image3d-hero ul{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;list-style:none;font-size:12px;color:var(--text-muted,#aab8c9)}
.image3d-hero picture{overflow:hidden;border-radius:20px;border:1px solid #354252;display:block}
.image3d-hero img{width:100%;height:auto;display:block}
.image3d-workbench.meshy-preparation,.image3d-workbench.meshy-preparation.meshy-login-only{width:100%;max-height:none;margin:0;padding:0;box-shadow:none;overflow:visible}
.image3d-workbench .meshy-auth{padding:18px 24px;border-bottom:1px solid #354252}
.image3d-workbench .meshy-auth .btn{width:auto}
.image3d-workbench .meshy-workspace{grid-template-columns:minmax(300px,380px) minmax(0,1fr)}
.image3d-workbench .meshy-stage{padding-top:24px;position:sticky;top:90px;align-self:start;min-height:570px}
.image3d-workbench .meshy-preview{height:460px;min-height:320px}
.image3d-workbench .meshy-editor h2{font-size:19px}
.image3d-workbench .meshy-downloads button{min-height:46px;min-width:130px;font-weight:600;border-color:#00a7c4}
.image3d-workbench .meshy-history-panel{scroll-margin-top:90px}
.image3d-workbench button:disabled{cursor:default;opacity:.5}
@media(max-width:700px){.image3d-main{padding:20px 12px 40px}.image3d-hero{gap:16px;grid-template-columns:1fr;margin:20px 0 0}.image3d-hero h1{margin:8px 0 12px}.image3d-hero p{font-size:14px}.image3d-hero picture{max-height:210px}.image3d-hero img{height:210px;object-fit:cover}.image3d-workbench .meshy-workspace{grid-template-columns:1fr}.image3d-workbench .meshy-stage{position:static;min-height:380px}.image3d-workbench .meshy-preview{height:340px}.image3d-workbench .meshy-editor{min-width:0}}

@media(max-width:560px){.image3d-page .signgen-about-btn{width:auto;min-width:0;height:auto;padding:8px 10px;font-size:12px;overflow:visible;text-indent:0}.image3d-page .signgen-header__nav{gap:6px}}

.image3d-hero .image3d-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.image3d-alpha{display:inline-block;padding:5px 10px;border:1px solid rgba(168,85,247,.5);border-radius:999px;color:#c084fc;background:rgba(168,85,247,.1);font-size:11px;letter-spacing:.03em}

/* Studio workbench: same left controls / right viewer as vase and topper. */
.image3d-main{max-width:none;padding:0 0 32px}
.image3d-workbench.meshy-preparation{border:0;border-radius:0;background:var(--bg-card);color:var(--text)}
.image3d-workbench .meshy-workspace{grid-template-columns:360px minmax(0,1fr)}
.image3d-workbench .meshy-editor{padding:24px 18px;border-right:1px solid var(--border)}
.image3d-workbench .meshy-editor h2{font-family:var(--font-head);font-size:18px;line-height:1.5}
.image3d-workbench .meshy-upload-card{background:var(--bg-elevated);border-color:var(--border);border-radius:var(--radius-lg);padding:12px}
.image3d-workbench .model-view-select{background:var(--bg-card);border-color:#45454e;color:var(--text);border-radius:var(--radius)}
.image3d-workbench .model-view-select:hover,.image3d-workbench .model-view-select.is-dragging{border-color:var(--accent);background:var(--accent-dim)}
.image3d-workbench .model-view--front .model-view-select{min-height:240px;gap:5px}
.image3d-workbench .model-view--front .model-view-picture{height:118px}
.image3d-workbench .model-view-picture:has(svg)::before{content:'';height:80px;width:80px;background:url('images/image3d/directions.webp?v=20261103ui1') 100% 0/200% 200% no-repeat}
.image3d-workbench .model-view-picture svg{display:none}
.image3d-workbench .model-view--front .model-view-picture:has(svg)::before{width:125px;height:125px;background-position:0 0}
.image3d-workbench .model-view--back .model-view-picture:has(svg)::before{background-position:0 100%}
.image3d-workbench .model-view--left .model-view-picture:has(svg)::before{background-position:100% 100%}
.image3d-workbench .model-view--front .model-view-title{font-size:15px}
.image3d-workbench .model-view-select small{color:var(--text-muted)}
.image3d-workbench .model-view.is-inactive{opacity:.55}
.image3d-workbench .meshy-multiview{color:var(--text);min-height:36px}
.image3d-workbench .meshy-texture{position:relative;gap:8px;min-height:36px;flex-wrap:nowrap;white-space:nowrap}
.image3d-workbench .image3d-texture-label{flex:1;font-size:14px}
.image3d-workbench .meshy-texture-cost{margin-left:0;font-size:13px;white-space:nowrap;display:flex;align-items:center;gap:3px}
.image3d-workbench .meshy-texture input.meshy-color{position:absolute;right:0;width:44px;height:32px;opacity:0;margin:0;cursor:pointer;z-index:1}
.image3d-workbench .meshy-switch{flex:0 0 44px}
.image3d-workbench .meshy-color:checked+.meshy-switch{background:var(--accent)}
.image3d-workbench .meshy-color:checked+.meshy-switch::after{transform:translateX(18px)}
.image3d-workbench .meshy-color:focus-visible+.meshy-switch{outline:2px solid var(--accent);outline-offset:3px}
.image3d-workbench .meshy-texture:has(input:disabled){opacity:.6}
.image3d-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid var(--border);background:var(--bg-card)}
.image3d-toolbar .meshy-wallet{margin:0;color:var(--text)}
.image3d-toolbar .meshy-topup{margin:0;padding:0;border:0}
.image3d-toolbar .meshy-topup summary{padding:7px 14px;border:1px solid var(--accent);color:var(--accent);border-radius:var(--radius);list-style:none}
.image3d-toolbar .meshy-topup summary::-webkit-details-marker{display:none}
.image3d-toolbar .meshy-topup[open]{flex-basis:100%;padding:12px;border:1px solid var(--border);border-radius:var(--radius)}
.image3d-workbench .meshy-packs button,.image3d-workbench .meshy-downloads button{background:var(--bg-elevated);border-color:var(--accent);color:var(--text);border-radius:var(--radius)}
.image3d-workbench .meshy-stage{position:relative;top:auto;align-self:stretch;min-height:650px;padding:22px 20px 18px;background:#171c28;border-radius:0}
.image3d-workbench .meshy-preview{height:500px;min-height:360px}
.image3d-result-title{font-size:15px;font-weight:500;margin:0;color:var(--text-muted)}
.image3d-workbench .meshy-placeholder{padding:18px}
.image3d-particles{width:100%;height:400px;max-height:68%;color:var(--accent);flex:none}
.image3d-waiting .meshy-placeholder{gap:10px;background:radial-gradient(ellipse at 50% 40%,rgba(0,212,255,.035),transparent 65%)}
.image3d-workbench .meshy-canvas,.image3d-workbench .meshy-placeholder{transition:opacity .65s ease}
.image3d-waiting .meshy-canvas{opacity:0;pointer-events:none}
.image3d-revealing .meshy-canvas{opacity:1}
.image3d-revealing .meshy-placeholder{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.image3d-workbench .meshy-canvas,.image3d-workbench .meshy-placeholder{transition:none}}
.image3d-waiting .meshy-orbit{display:none}
.image3d-workbench .meshy-delivery{margin-top:0;padding-top:14px;color:var(--text-muted)}
.image3d-workbench .meshy-expiry,.image3d-workbench .meshy-note,.image3d-workbench .meshy-rotate-hint{color:var(--text-muted)}
.image3d-remaining{color:var(--text-muted);font-size:12px;margin:9px 0}
.image3d-remaining .meshy-coin{width:18px;height:18px}
.image3d-workbench .image3d-library,.image3d-workbench .image3d-library[open]{padding:24px;margin:0;background:var(--bg-card);border:0;border-top:1px solid var(--border);border-radius:0}
.image3d-library>summary{font-family:var(--font-head);font-size:17px}
.image3d-library>p{color:var(--text-muted)}
.image3d-workbench .meshy-history{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:none;overflow:visible}
.image3d-card{position:relative;min-width:0}
.image3d-workbench .meshy-history .image3d-choose{display:flex;flex-direction:column;gap:3px;width:100%;height:100%;padding:0 0 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;color:var(--text)}
.image3d-workbench .meshy-history .image3d-choose[aria-pressed=true]{border-color:var(--accent)}
.image3d-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:140px;background:var(--bg-elevated);margin-bottom:9px}
.image3d-thumb img{width:100%;height:100%;object-fit:contain}
.image3d-thumb-fallback{font-family:var(--font-head);font-size:27px;color:var(--text-muted);opacity:.4}
.image3d-choose>strong,.image3d-choose>.image3d-origin,.image3d-choose>.image3d-card-status{margin-inline:12px}
.image3d-origin{color:var(--text-muted);font-size:11px}
.image3d-card-status{color:var(--accent);font-size:11px}
.image3d-workbench .meshy-history .image3d-more{position:absolute;top:8px;right:8px;min-width:36px;min-height:36px;padding:0;background:var(--bg-card);color:var(--text);font-size:24px;border:1px solid var(--border);border-radius:10px;text-align:center}
.image3d-menu{position:absolute;right:7px;top:48px;z-index:5;width:min(220px,calc(100% - 14px));background:var(--bg-elevated);border:1px solid #45454e;border-radius:var(--radius);padding:5px;box-shadow:0 16px 35px #0006}
.image3d-workbench .meshy-history .image3d-menu button,.image3d-menu a{display:block;width:100%;border:0;border-radius:7px;padding:10px;font:inherit;font-size:12px;background:transparent;text-align:left;color:var(--text);text-decoration:none;line-height:1.4}
.image3d-menu button:hover,.image3d-menu a:hover{background:var(--accent-dim)}
.image3d-subgroup{border-top:1px solid var(--border);margin-top:4px}
.image3d-submenu{background:var(--bg-card);border-radius:8px}
.image3d-hero{max-width:1050px;margin:28px auto;padding:0 22px}
.image3d-workbench .meshy-auth{border-color:var(--border)}
@media(max-width:760px){.image3d-workbench .meshy-workspace{grid-template-columns:1fr}.image3d-workbench .meshy-editor{border-right:0}.image3d-workbench .meshy-stage{position:static;min-height:440px;border-top:1px solid var(--border)}.image3d-workbench .meshy-preview{height:370px;min-height:300px}.image3d-workbench .image3d-library{padding:20px 14px}.image3d-toolbar{padding:10px 14px;gap:10px}.image3d-workbench .meshy-history{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image3d-thumb{height:120px}.image3d-library>summary{font-size:15px}}
@media(pointer:coarse){.image3d-workbench .meshy-history .image3d-more{min-width:44px;min-height:44px}.image3d-menu{top:56px}.image3d-menu button,.image3d-menu a{min-height:44px}}
.image3d-workbench .image3d-wallet{margin:12px 0 20px}
.image3d-wallet-plus{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:50%;background:var(--accent-dim);color:var(--accent);font:600 22px/1 var(--font-body);cursor:pointer;margin-left:3px}
.image3d-wallet-plus:disabled{opacity:.5;cursor:default}
.image3d-topup-dialog{width:min(640px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px));max-width:none;max-height:none;padding:0;border:1px solid #344453;border-radius:24px;background:#15171d;color:var(--text);overflow:hidden}
.image3d-topup-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
.image3d-topup-dialog iframe{display:block;border:0;width:100%;height:100%}
.image3d-topup-close{position:absolute;right:10px;top:10px;width:36px;height:36px;z-index:1;border:1px solid #344453;border-radius:50%;background:#15171d;color:var(--text);font:24px/1 var(--font-body);cursor:pointer}
.image3d-topup-dialog{height:auto;max-height:calc(100dvh - 24px);overflow:auto}
.image3d-topup-dialog .wallet-card{width:100%;margin:0;padding:26px 24px;border:0;border-radius:0}
.image3d-topup-dialog .wallet-card h1{padding-right:28px}
.image3d-wallet-loading{margin:0;padding:60px 24px;color:var(--text-muted)}
@media(max-width:480px){.image3d-topup-dialog .wallet-card{padding:24px 16px}}

@media(max-width:760px){.image3d-particles{height:265px;max-height:65%}}

/* The switch owns its hit area; the help button is outside its label. */
.image3d-texture-switch{position:relative;display:flex;align-items:center;flex:0 0 44px;height:32px;cursor:pointer}
.image3d-texture-tip{flex:none}
.image3d-texture-tip .gen-tip__btn{width:24px;height:24px;font-size:13px}
.image3d-texture-tip .gen-tip__body{width:340px;max-width:calc(100vw - 24px);background:var(--bg-card);border-color:var(--border);border-radius:var(--radius);padding:12px;cursor:default}
.image3d-texture-tip .gen-tip__body svg{margin:0;background:var(--bg-elevated)}
