/* Touch layout: stable viewport, reachable panels and 44px controls. */
.premium-builder .studio-stage-tabs #energyToggle{position:static!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto!important;height:auto!important;min-width:0;border-radius:9px!important;font-size:12px!important;line-height:1.2;color:#ddd6f0!important}
.premium-builder .studio-stage-tabs #energyToggle.active{background:linear-gradient(130deg,#7131c7,#4b32aa)!important;border-color:#b284ed!important;color:white!important}
.premium-builder #energySheet{top:70px!important;bottom:auto!important;left:18px!important;border:1px solid #524568!important;background:linear-gradient(150deg,#17132af7,#0d1223f7)!important;color:#e9e2f5!important}
.premium-builder #energySheet .energy-total{color:#c6a0ff}.premium-builder #energySheet header>strong{font-size:0}.premium-builder #energySheet header>strong:after{content:'CONSUMO DA CONFIGURAÇÃO';font-size:11px;letter-spacing:.06em}.premium-builder.light-ui #energySheet{background:linear-gradient(150deg,#fffcfff7,#f0edf9f7)!important;color:#352448!important;border-color:#cbbade!important}.premium-builder.light-ui #energySheet .energy-total{color:#7135b6}
@media(max-width:900px){
 body.premium-builder{--mobile-header:144px;--mobile-dock:64px;overflow:hidden!important;overscroll-behavior:none}
 .premium-builder .builder-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:26px 18px 44px!important;gap:4px 8px!important;height:auto!important;min-height:0!important;padding:12px 12px 8px!important;padding-top:max(12px,env(safe-area-inset-top))!important;box-sizing:border-box}
 .premium-builder .builder-brand{grid-column:1;grid-row:1;min-width:0;gap:8px!important}.premium-builder .builder-brand img{width:28px!important;height:28px!important}.premium-builder .builder-brand strong{font-size:13px!important}.premium-builder .builder-brand small{font-size:7px!important;letter-spacing:.14em!important}
 .premium-builder .workspace-greeting{grid-column:1;grid-row:2;margin:0!important;max-width:100%!important;font-size:10px!important;line-height:18px;padding-left:36px}
 .premium-builder .builder-header>nav:not(.workspace-tabs){grid-column:2;grid-row:1/3;display:flex!important;gap:3px!important;margin:0!important}
 .premium-builder .builder-header #qualityToggle,.premium-builder .builder-header #themeToggle,.premium-builder .builder-header .account-link{display:flex!important;align-items:center;justify-content:center;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:12px!important;box-sizing:border-box;font-size:19px!important;border:1px solid #39354b;background:#121424;color:#e6e0f6}
 .premium-builder .builder-header #themeToggle span,.premium-builder .builder-header #themeToggle i{display:none!important}.premium-builder .builder-header #themeToggle:after{content:'☾';font-size:20px}.premium-builder.light-ui .builder-header #themeToggle:after{content:'☀'}.premium-builder .builder-header .account-link{font-size:0!important}.premium-builder .builder-header .account-link:before{content:'♙';font-size:23px}
 .premium-builder .workspace-tabs{grid-column:1/-1;grid-row:3;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%!important;gap:4px!important;padding:0!important;min-width:0!important}
 .premium-builder .workspace-tabs button{display:flex!important;justify-content:center;align-items:center;min-height:44px!important;min-width:0!important;gap:4px!important;padding:4px 2px!important;font-size:11px!important;letter-spacing:0!important;border-radius:10px!important}.premium-builder .workspace-tabs i{font-size:15px!important}
 .premium-builder #builder.builder-shell{display:block!important;position:relative!important;grid-template-columns:none!important;height:calc(100dvh - var(--mobile-header) - var(--mobile-dock))!important;min-height:0!important;max-height:none!important;margin:0!important;padding:4px!important;width:100%!important;box-sizing:border-box;overflow:hidden!important}
 .premium-builder .stage{height:100%!important;min-height:0!important;width:100%!important;overflow:hidden!important}.premium-builder .three-stage{touch-action:none}
 .premium-builder .studio-stage-tabs{display:flex!important;left:8px!important;right:8px!important;top:8px!important;gap:6px!important;height:44px!important;z-index:40!important}.premium-builder .studio-stage-tabs button{flex:1;min-height:44px!important;padding:8px!important;font-size:12px!important}
 .premium-builder .stage .header-status{left:12px!important;right:12px!important;top:62px!important;max-width:none!important;font-size:10px!important;pointer-events:none}
 .premium-builder:not([data-workspace=build]) .stage .header-status{visibility:hidden}
 .premium-builder .component-rail,.premium-builder .studio-controls{position:absolute!important;left:8px!important;right:8px!important;top:62px!important;bottom:8px!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;transform:none!important;box-sizing:border-box;z-index:45!important;border-radius:16px!important;background:#090e1e!important;overscroll-behavior:contain;touch-action:pan-y}
 .premium-builder .component-rail{overflow:hidden!important;flex-direction:column}.premium-builder .studio-controls{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;padding:8px!important}
 .premium-builder[data-workspace=parts] .component-rail{display:flex!important}.premium-builder:not([data-workspace=parts]) .component-rail{display:none!important}.premium-builder[data-workspace=rgb] .studio-controls,.premium-builder[data-workspace=configuration] .studio-controls{display:flex!important}
 .premium-builder .studio-controls>*{flex-shrink:0}.premium-builder .studio-panel-close{position:sticky;top:0;z-index:5;margin-bottom:8px;min-height:44px!important;width:100%;background:#19172d!important}
 .premium-builder .close-parts{min-height:44px!important;margin:8px!important;font-size:12px!important}.premium-builder .component-rail .catalog-panel{inset:60px 0 0!important;height:auto!important;min-height:0!important;max-height:none!important;padding:12px!important;box-sizing:border-box}
 .premium-builder .catalog-head{display:flex;align-items:center;gap:8px;padding:0!important;margin-bottom:8px}.premium-builder .catalog-head>div{min-width:0;flex:1}.premium-builder .catalog-head h2{font-size:22px!important;overflow-wrap:anywhere;margin:4px 0!important}.premium-builder #catalogEyebrow{font-size:10px!important}
 .premium-builder #catalogClose,.premium-builder #objectPanelClose,.premium-builder .mini-btn{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;flex-shrink:0}
 .premium-builder .catalog-panel .search-field{height:44px!important;min-height:44px!important;margin:0 0 10px!important}.premium-builder .search-field input{font-size:16px!important;min-width:0!important;width:100%}
 .premium-builder #productList{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:12px!important}.premium-builder .product-card{min-height:104px!important}.premium-builder .product-card.selected{outline:2px solid #ad7dff;outline-offset:-2px}
 .premium-builder .component-rail #categoryList{overflow-y:auto!important;flex:1!important;min-height:0!important;padding:8px!important}.premium-builder .category-button{min-height:64px!important}.premium-builder .studio-save{min-height:44px!important;margin:8px!important;padding:10px!important;flex-shrink:0}
 .premium-builder .studio-controls .build-panel{padding:8px!important;overflow:visible!important}.premium-builder .build-head{padding-top:8px!important}.premium-builder .build-head h2{font-size:20px!important}.premium-builder .build-item{min-height:56px!important}.premium-builder .build-item button{min-width:44px!important;min-height:44px!important;font-size:18px!important}.premium-builder .build-actions button{min-height:44px!important;font-size:12px!important}.premium-builder .privacy-note{font-size:11px!important;line-height:1.6!important}
 .premium-builder .rgb-group-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}.premium-builder .rgb-group-tabs button{min-height:44px!important;font-size:11px!important}.premium-builder .studio-effects{gap:8px!important}.premium-builder .studio-effects button{min-height:72px!important}.premium-builder .rgb-palette{display:flex!important;flex-wrap:wrap;gap:3px!important}.premium-builder .rgb-palette button{width:44px!important;height:44px!important;min-width:44px!important;border:8px solid #090e1e;border-radius:50%}.premium-builder input[type=range]{min-height:44px!important;max-width:100%!important;touch-action:pan-x}.premium-builder input[type=color]{min-width:44px;min-height:44px}.premium-builder .fan-presets button,.premium-builder .rgb-fan-row button{min-width:44px!important;min-height:44px!important}
 .premium-builder .tool-dock{left:12px!important;bottom:12px!important;gap:8px!important;z-index:35!important}.premium-builder .tool-dock button{min-width:48px!important;min-height:48px!important;border-radius:12px!important}.premium-builder .energy-toggle{left:auto!important;right:12px!important;bottom:12px!important;width:48px!important;height:48px!important}
 .premium-builder #cameraPanel{left:12px!important;right:12px!important;bottom:72px!important;top:auto!important;max-width:none!important;width:auto!important;transform:none!important;display:flex;flex-wrap:wrap;gap:6px;padding:10px!important;z-index:46!important;border-radius:14px!important;background:#101629f5!important}.premium-builder #cameraPanel button{flex:1;min-width:44px!important;min-height:44px!important}.premium-builder #cameraPanel[hidden]{display:none!important}
 .premium-builder #objectPanel{top:auto!important;bottom:72px!important;left:10px!important;right:10px!important;width:auto!important;max-width:none!important;max-height:calc(100% - 92px)!important;box-sizing:border-box}.premium-builder #objectPanel button{min-height:44px!important;min-width:44px!important}.premium-builder .axis-control{gap:6px!important}.premium-builder .axis-control span{min-width:0;overflow-wrap:anywhere}
 .premium-builder #energySheet{left:10px!important;right:10px!important;top:62px!important;bottom:auto!important;width:auto!important;max-width:none!important;max-height:calc(100% - 76px)!important;box-sizing:border-box}.premium-builder #closeEnergy{min-width:44px;min-height:44px}
 .premium-builder .mode-toolbar{left:12px!important;right:auto!important;bottom:12px!important;max-width:190px!important}.premium-builder #capturePhoto{min-height:48px!important;font-size:11px!important;padding:10px!important}.premium-builder.showcase .tool-dock{left:auto!important;right:12px!important}.premium-builder.showcase #objectPanelToggle{display:none!important}
 .premium-builder .mobile-dock{display:grid!important;grid-template-columns:repeat(3,1fr)!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;min-height:60px!important;height:auto!important;padding:4px 10px calc(4px + env(safe-area-inset-bottom))!important;box-sizing:border-box;border-top:1px solid #363047;background:#0c1021!important;z-index:80!important;gap:6px}.premium-builder .mobile-dock button{min-height:48px!important;font-size:11px!important;gap:4px;border-radius:10px;display:flex!important;flex-direction:column;justify-content:center;align-items:center}.premium-builder .mobile-dock button.active{background:#6d35bd33!important;color:#d4b9ff!important}.premium-builder .mobile-dock i{position:absolute;transform:translate(36px,-8px)}
 .premium-builder .builder-dialog{width:calc(100% - 20px)!important;max-width:560px!important;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;box-sizing:border-box;padding:20px 16px!important;overflow:auto!important;border-radius:18px!important;overscroll-behavior:contain}.premium-builder .builder-dialog button,.premium-builder .builder-dialog .primary-action,.premium-builder .builder-dialog .secondary-action{min-height:44px!important}.premium-builder .builder-dialog input:not([type=checkbox]):not([type=range]),.premium-builder .builder-dialog textarea,.premium-builder .builder-dialog select{font-size:16px!important;max-width:100%!important;box-sizing:border-box}.premium-builder .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.premium-builder .dialog-actions>*{flex:1 1 140px}.premium-builder .render-preview{width:100%;height:auto;object-fit:contain}
 .premium-builder .studio-mobile-quick,.premium-builder .studio-overview{display:none!important}
 .premium-builder.light-ui .component-rail,.premium-builder.light-ui .studio-controls{background:#f5f6fc!important}.premium-builder.light-ui .studio-panel-close{background:#e8e7f4!important;color:#392b53!important}.premium-builder.light-ui .builder-header #qualityToggle,.premium-builder.light-ui .builder-header #themeToggle,.premium-builder.light-ui .builder-header .account-link{background:#f2f0fa!important;color:#513572!important;border-color:#d6cde4!important}.premium-builder.light-ui .mobile-dock{background:#f6f4fd!important;border-color:#d6cde4}.premium-builder.light-ui .mobile-dock button.active{color:#6230a0!important}.premium-builder.light-ui .rgb-palette button{border-color:#f5f6fc}
 .premium-builder button:focus-visible,.premium-builder a:focus-visible{outline:2px solid #bc8dff!important;outline-offset:2px}
}
@media(max-width:350px){.premium-builder .workspace-tabs button{font-size:10px!important}.premium-builder .workspace-tabs i{display:none}.premium-builder .builder-header{padding-left:8px!important;padding-right:8px!important;column-gap:4px!important}.premium-builder .builder-brand strong{font-size:11px!important}.premium-builder .workspace-greeting{padding-left:0}.premium-builder .builder-header>nav:not(.workspace-tabs){gap:0!important}}
@media(max-width:900px) and (orientation:landscape) and (max-height:500px){.premium-builder .builder-header{grid-template-columns:150px minmax(0,1fr) 138px!important;grid-template-rows:44px!important;padding:4px 10px!important}.premium-builder .builder-brand{grid-column:1;grid-row:1}.premium-builder .workspace-greeting{display:none!important}.premium-builder .workspace-tabs{grid-column:2;grid-row:1}.premium-builder .builder-header>nav:not(.workspace-tabs){grid-column:3;grid-row:1}.premium-builder .component-rail,.premium-builder .studio-controls{left:auto!important;width:55%!important}.premium-builder .mobile-dock{min-height:48px!important;padding:2px 12px!important}.premium-builder .mobile-dock button{min-height:44px!important;flex-direction:row!important}.premium-builder .stage .header-status{display:none!important}}
