#workspace .omni-freeform-backdrop,#workspace .omni-room-controls{display:none}
#workspace.omni-freeform .omni-freeform-backdrop{display:block;position:absolute;inset:0;z-index:1;background:#071522;pointer-events:none;overflow:hidden;mask-image:linear-gradient(to right,transparent,#000 1cm,#000 calc(100% - 1cm),transparent),linear-gradient(to bottom,transparent,#000 1cm,#000 calc(100% - 1cm),transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 1cm,#000 calc(100% - 1cm),transparent),linear-gradient(to bottom,transparent,#000 1cm,#000 calc(100% - 1cm),transparent);-webkit-mask-composite:source-in}
.omni-freeform-backdrop canvas{display:block;width:100%;height:100%}
#workspace.omni-freeform #idleParticles{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,1cm 1cm,1cm calc(100% - 1cm),calc(100% - 1cm) calc(100% - 1cm),calc(100% - 1cm) 1cm,1cm 1cm)}
#workspace.omni-freeform .pedestal,#workspace.omni-freeform .spotlight{display:none!important}
#workspace.omni-freeform:not(.editing) .model-wrap{transform:translateX(-50%) translate(var(--room-pan-x,0px),var(--room-pan-y,0px)) scale(var(--room-zoom,1))!important;transition:none!important;touch-action:none}
#workspace.omni-freeform .viewer{touch-action:none}
#workspace.omni-freeform .omni-room-controls{position:absolute;z-index:8;left:20px;bottom:18px;display:flex;align-items:center;gap:12px;color:#9db7c8;font-size:12px;max-width:calc(100% - 280px)}
.omni-room-controls button{padding:9px 12px;border:1px solid #345566;border-radius:8px;color:#d8eaf6;background:#0b2030;cursor:pointer}.omni-room-controls button[aria-pressed=true]{border-color:#1aa2f8;background:linear-gradient(105deg,#087fca,#1cb2f5);color:#fff}
html.omni-freeform-entry:not(.omni-freeform-ready) #categoryDialog{display:none!important}
.topbar .omni-product-return{margin:0 12px;padding:10px 14px;border:1px solid #1aa2f8;border-radius:9px;background:linear-gradient(105deg,#087fca,#1cb2f5);color:#fff;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.topbar .account-cluster .profile-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;width:42px;height:42px;padding:10px;border:1px solid #1aa2f8;border-radius:8px;background:linear-gradient(105deg,#087fca,#1cb2f5);color:#fff;box-shadow:0 8px 25px #0691df1a}.topbar .profile-button svg{fill:currentColor;width:19px;height:19px}
.topbar .account-cluster .cart-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 13px;border:1px solid #294455;border-radius:8px;background:#0b2030;color:#c9deeb;font-size:13px;box-shadow:none}.topbar .cart-button svg{width:18px;height:18px;fill:currentColor}
@media(max-width:1100px){.topbar:has(.omni-product-return){height:auto;min-height:90px;flex-wrap:wrap}.omni-product-return{order:1}.topbar:has(.omni-product-return) .top-actions{margin-left:auto}}
@media(max-width:720px){#workspace.omni-freeform .omni-room-controls{max-width:calc(100% - 35px)}.omni-room-controls span{display:none}.topbar .omni-product-return{font-size:11px;padding:8px;margin:4px 8px}}

.studio-donate{position:absolute;right:23px;bottom:36px;z-index:4;display:flex;align-items:center;gap:13px;padding:12px 20px 12px 12px;min-width:218px;border-radius:999px;border:1px solid #9af2ff;background:linear-gradient(112deg,#074fa4ee,#1abee6ee 40%,#1357cfee 75%,#0e348eee);box-shadow:inset 0 2px 7px #ffffff88,inset 0 -8px 18px #01207766,0 10px 25px #0046a366,0 0 18px #2fdbff44;color:#fff;animation:studioDonateFloat 4s ease-in-out infinite}.studio-donate>span{display:grid;place-items:center;background:#fffffff2;border-radius:50%;width:48px;height:48px;box-shadow:0 0 15px #5ae8ff88}.studio-donate img{width:42px;height:42px;object-fit:contain}.studio-donate b{display:block;font-size:20px;text-shadow:0 2px 7px #001e6477}.studio-donate small{display:block;font-size:12px;color:#d9f9ff;margin-top:4px}.studio-donate:hover{filter:brightness(1.2)}@keyframes studioDonateFloat{50%{transform:translateY(-5px)}}
#workspace>.studio-donate{font-family:inherit;font-weight:600;cursor:pointer}#workspace>.studio-donate:before,#workspace>.studio-donate:after{display:none}#workspace>.studio-donate>div{text-align:left}
@media(max-width:850px){#workspace>.studio-donate{right:14px;min-width:0;padding:8px 13px;gap:8px}#workspace>.studio-donate>span{width:36px;height:36px}#workspace>.studio-donate img{width:31px;height:31px}#workspace>.studio-donate b{font-size:16px}#workspace>.studio-donate small{font-size:12px}}
@media(max-width:640px){#workspace>.studio-donate{bottom:35px;right:10px}}

/* Restore one continuous header row and consistent shop/draft buttons. */
.app-shell{grid-template-rows:110px 1fr}.topbar,.topbar:has(.omni-product-return){position:relative;display:flex;align-items:center;flex-wrap:nowrap;height:110px;min-height:110px;gap:0;padding:0}.topbar>.brand{width:300px;height:110px;flex-shrink:0}.topbar>.account-cluster{display:contents}.topbar .studio-primary-actions,.topbar .studio-secondary-actions{display:flex;align-items:center;gap:8px;padding:0 10px;flex-shrink:0}.topbar .studio-secondary-actions{margin-left:auto}.topbar>.project-name{position:absolute;left:var(--studio-name-center,calc(50% + 170px));top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:5px;margin:0;text-align:center;max-width:140px;width:140px}.topbar>.project-name strong{font-size:13px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar>.project-name small{font-size:9px}.topbar>.top-actions{margin:0;padding-right:14px;display:flex;flex-shrink:0}.topbar .omni-product-return{order:initial;margin:0;max-width:140px;padding:10px;font-size:12px;min-height:42px;text-align:center}
.topbar .account-cluster .profile-button,.topbar .account-cluster .omni-shop-cart{width:42px;height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;padding:10px;border:1px solid #1aa2f8;border-radius:8px;background:linear-gradient(105deg,#087fca,#1cb2f5);color:white;box-shadow:0 8px 25px #0691df1a}.topbar .account-cluster .profile-button svg,.topbar .account-cluster .omni-shop-cart svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.topbar .account-cluster .studio-draft-button{height:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:1px solid #24435c;border-radius:8px;background:#0a2031;color:#c9deeb;font-size:13px;font-weight:500;box-shadow:none;white-space:nowrap}.topbar .studio-draft-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}.topbar .studio-draft-button b{padding:1px 6px;border-radius:5px;background:#16496c;color:#94dcff}
.topbar .credits-button{display:grid;grid-template-columns:28px auto;gap:0 6px;min-height:42px;padding:5px 9px}.topbar .credits-button .credit-gem{grid-row:1/3;width:28px;height:28px}.topbar .credits-button b{font-size:13px}.topbar .credits-button small{display:block;font-size:9px}.export-tray{top:110px!important}.cart-drawer{top:110px}#creditsDialog #buyCredits,#creditsDialog #buyCredits:disabled{color:#fff!important}
@media(max-width:1400px){.topbar>.top-actions .social-row{display:none}}
@media(max-width:1100px){.topbar>.brand{width:280px}.topbar .studio-primary-actions,.topbar .studio-secondary-actions{gap:5px;padding:0 5px}.topbar .studio-draft-button>span{display:none}}
@media(max-width:900px){.topbar,.topbar:has(.omni-product-return){overflow-x:auto}.topbar>.project-name{display:none}.topbar>.brand{width:240px}.topbar>.top-actions{display:none}.topbar .studio-secondary-actions{margin-left:auto}.app-shell{grid-template-rows:110px 1fr}}
#creditsDialog #buyCredits:disabled{opacity:1;background:linear-gradient(100deg,#075384,#127899)}

/* Logo border continues the sidebar; credits and return remain adjacent. */
.topbar>.brand{width:var(--studio-sidebar-width,340px);flex-basis:var(--studio-sidebar-width,340px);border-right:1px solid #203b51}.topbar>.project-name{width:var(--studio-name-width,300px);max-width:300px;overflow:hidden}.topbar>.project-name>div{min-width:0;flex:1}.topbar>.project-name strong{max-width:none;width:100%;font-size:15px}.topbar>.project-name .rename-model{flex-shrink:0}.topbar>.top-actions{margin-left:auto}.topbar .studio-primary-actions{gap:6px}.topbar .omni-product-return{width:170px;min-width:170px;max-width:170px;white-space:nowrap;padding:10px 8px}.topbar .credits-button{display:flex;align-items:center;justify-content:center;gap:8px;width:200px;min-width:200px;height:42px;padding:5px 10px;white-space:nowrap}.topbar .credits-button .credit-gem{grid-row:auto;width:28px;height:28px;flex-shrink:0}.topbar .credits-button b{font-size:14px;min-width:45px;font-variant-numeric:tabular-nums}.topbar .credits-button small{display:block;font-size:10px;white-space:nowrap}
#workspace.omni-freeform .omni-room-controls{display:flex;position:absolute;left:0;right:0;bottom:0;max-width:none;height:72px;padding:14px 24px;gap:20px;border-top:1px solid #1d354a;background:#071725;z-index:8}.omni-room-controls .room-navigation-hint{display:block;flex:1;color:#7190a9;font-size:12px}.omni-room-controls .auto-rotate{display:flex;align-items:center;gap:11px;margin-left:auto;font-size:13px;color:#88a6bb;white-space:nowrap}.omni-room-controls button.omni-auto-switch{display:inline-flex;align-items:center;flex-shrink:0;width:32px;height:18.4px;min-width:32px;padding:0;border:1px solid transparent;border-radius:999px;background:#233a4b;color:white;cursor:pointer;box-shadow:0 1px 3px #0002;transition:background .15s}.omni-room-controls button.omni-auto-switch[aria-checked=true]{background:#159cff}.omni-auto-switch [data-slot=switch-thumb]{display:block;width:16px;height:16px;flex-shrink:0;border-radius:50%;background:#f1f5f9;transform:translateX(0);transition:transform .15s;pointer-events:none}.omni-auto-switch[aria-checked=true] [data-slot=switch-thumb]{transform:translateX(14px)}.omni-auto-switch:focus-visible{outline:2px solid #61ceff;outline-offset:3px}#workspace.omni-freeform>.studio-donate{bottom:108px}
@media(max-width:1600px){.topbar .studio-draft-button>span{display:none}.topbar .credits-button{width:155px;min-width:155px;gap:4px;padding:5px 6px}.topbar .credits-button .credit-gem{width:22px;height:22px!important}.topbar .credits-button .credit-gem img{width:20px;height:20px}.topbar .credits-button b{min-width:35px;font-size:12px}.topbar .credits-button small{font-size:9px}.topbar .omni-product-return{width:145px;min-width:145px;max-width:145px;font-size:11px}}
@media(max-width:720px){#workspace.omni-freeform .omni-room-controls{padding:12px 16px}.omni-room-controls .room-navigation-hint{display:none}.omni-room-controls .auto-rotate{margin-left:auto}#workspace.omni-freeform>.studio-donate{bottom:90px}}
