/* Task-focused controls; existing studio rendering is retained. */
#mobile-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;min-height:0!important;margin:24px 0 20px!important;padding:0!important;}
#mobile-tabs button{display:flex!important;flex-direction:column!important;gap:8px!important;padding:0 2px 10px!important;min-width:0!important;font-size:11px!important;line-height:1.3!important;}
#mobile-tabs button:before{display:none!important;content:none!important;}
.step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f0f1f3;color:#858a90;font-size:12px;font-weight:500;}
#mobile-tabs button.selected .step-number{background:#233845;color:white;}
#material-tabs,#final-tabs{display:flex;gap:4px;background:#f1f3f4;padding:4px;border-radius:13px;margin:0 0 24px;flex:none;}
#material-tabs[hidden],#final-tabs[hidden],#brand-presets[hidden]{display:none!important;}
#material-tabs button,#final-tabs button{flex:1;border:0;border-radius:10px;min-height:42px;font:inherit;font-size:12px;background:transparent;color:#73808a;padding:8px 5px;}
#material-tabs button[aria-pressed=true],#final-tabs button[aria-pressed=true]{color:#203744;background:#fff;box-shadow:0 2px 5px #2037440c;font-weight:600;}
#material-tabs button[hidden]{display:none;}
.panel-heading h2{font-size:30px;letter-spacing:-1px;}.panel-heading p{font-size:13px;line-height:1.5;}
#stage-expand{display:none;}
.brand-intro{margin-bottom:12px;font-size:12px;}
.brand-preview{background-image:none;background-color:#f3f4f5;border-color:#e4e8eb;padding:24px 16px;border-radius:16px;}
#brand-canvas{box-shadow:0 4px 16px #203d5010;}
.brand-details{border-top:1px solid #e5e9ec;margin-top:12px;}
.brand-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;font-size:12px;color:#607281;cursor:pointer;list-style:none;}
.brand-details>summary::-webkit-details-marker{display:none;}.brand-details>summary:after{content:'+';font-size:18px;font-weight:400;}.brand-details[open]>summary:after{content:'−';}
.brand-layer-head{border:0;margin:12px 0 0;padding:0;font-size:11px;color:#71818b;}
.brand-layer-head button{height:40px;width:40px;border-radius:50%;background:#f1f4f6;}
.brand-actions>button{border-radius:12px;min-height:44px;font-size:12px;}.brand-presets{gap:6px;}.brand-presets>button{background:#f1f4f6;border:0;min-width:0;white-space:normal;font-size:11px;}.brand-quick{margin:12px 0;}.brand-quick>button{border:0;background:transparent;color:#627b8b;}
.brand-save{border:0;padding-top:4px;margin-top:14px;}.brand-save>button:first-child{background:#263f50;border-radius:24px;min-height:46px;}
#brand-properties{border:0;padding-top:0;}.brand-hint{font-size:10px;}.brand-note{font-size:10px;line-height:1.65;}
#brand-surface{font-size:13px;}.brand-field{margin:10px 0;}
.step-actions{grid-template-columns:minmax(60px,.45fr) minmax(0,1fr);}.step-actions button{font-size:12px;}.step-actions .next-label{overflow:hidden;text-overflow:ellipsis;}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 main{padding:0 14px 24px!important;}
 .intro{padding:20px 0 24px!important;}.intro h1{font-size:clamp(27px,6.4vw,37px)!important;letter-spacing:-1.2px!important;}
 .configurator{gap:0!important;}
 .product-stage{position:sticky!important;top:0!important;z-index:15!important;background:white;padding:8px 0!important;align-self:stretch!important;}
 .viewport{height:clamp(220px,34svh,300px)!important;min-height:220px!important;max-height:300px!important;border-radius:18px!important;}
 #canvas{inset:0 0 40px!important;min-height:0!important;}
 .view-top{top:10px!important;left:10px!important;right:10px!important;}
 .scene-picker>summary{min-height:34px!important;padding:7px 10px!important;font-size:10px!important;gap:6px!important;border-radius:10px!important;}
 .scene-picker>summary>svg{width:16px;height:16px;}.scene-picker{max-width:calc(100% - 46px)!important;}
 .icon-button{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:10px!important;}
 .view-presets{top:auto!important;bottom:3px!important;left:50%!important;transform:translateX(-50%)!important;padding:2px!important;gap:2px!important;min-height:0!important;background:transparent!important;border:0!important;}
 .view-presets button{font-size:10px!important;min-height:32px!important;padding:6px 12px!important;white-space:nowrap;}
 .view-controls{display:none!important;}.viewport .stage-state-toggle{right:10px!important;bottom:47px!important;width:32px!important;height:32px!important;min-height:32px!important;min-width:32px!important;}.stage-state-toggle svg{width:17px;height:17px;}
 .stage-caption,.stage-kicker,.stage-identity,.ux-touch-hint{display:none!important;}
 #loading{bottom:40px!important;}.render-unavailable #loading{inset:45px 10px 42px!important;padding:9px!important;font-size:10px!important;}.render-unavailable #loading strong{font-size:12px;}
 #stage-expand{display:block;margin:4px auto 0;border:0;background:transparent;color:#6c7c88;font:inherit;font-size:10px;min-height:26px;padding:4px 14px;}
 .stage-expanded .viewport{height:clamp(350px,62svh,600px)!important;max-height:600px!important;}
 .stage-expanded .view-controls{display:flex!important;bottom:0!important;height:54px!important;min-height:0!important;padding:4px 45px 4px 6px!important;}
 .stage-expanded .view-controls button{min-height:40px!important;}.stage-expanded .view-presets{bottom:58px!important;}.stage-expanded #canvas{bottom:96px!important;}.stage-expanded .stage-state-toggle{bottom:11px!important;}
 aside{padding:14px 2px 0!important;min-height:0!important;}
 .panel-heading{min-height:0!important;}.panel-heading h2{font-size:27px!important;letter-spacing:-.9px!important;margin:6px 0!important;}.panel-heading .step-eyebrow{display:none!important;}.panel-heading p{display:block!important;font-size:12px!important;margin:5px 0 0!important;}.panel-heading #step-count{font-size:10px!important;margin:12px 0 0!important;}
 .panel-progress{margin:0 0 16px!important;height:3px!important;}
 #mobile-tabs{margin:16px 0!important;min-height:0!important;}.step-number{width:29px;height:29px;font-size:11px;}#mobile-tabs button{font-size:10px!important;gap:6px!important;padding-bottom:0!important;}
 #material-tabs,#final-tabs{margin:0 0 12px;}
 #settings-scroll{padding:6px 0 16px!important;min-height:0!important;}
 .step-actions{position:sticky!important;bottom:0!important;z-index:16;background:#fffffff5!important;border-top:1px solid #e5e9ed!important;min-height:62px!important;padding:8px 0 max(8px,env(safe-area-inset-bottom))!important;backdrop-filter:blur(14px);}
 .brand-preview{padding:20px 12px;min-height:110px;}#brand-canvas{max-height:210px!important;}.brand-field input:not([type=color]),.brand-field select{font-size:16px!important;}.brand-field{margin:8px 0;}
 .brand-intro{font-size:11px;}.brand-link{font-size:10px;min-height:30px;padding-bottom:8px;}.brand-note{font-size:10px;}.brand-actions>button{min-height:44px;font-size:12px;}.brand-presets>button{font-size:11px;}
 .motion-drawer{max-height:30svh;overflow:auto;}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;}}
@media(min-width:761px){.brand-preview{position:sticky;top:0;z-index:2;box-shadow:0 8px 14px #fff;}#brand-canvas{max-height:240px;}}
@media(max-height:550px) and (max-width:1000px){.product-stage{position:relative!important;}.viewport{height:220px!important;min-height:220px!important;}}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 html{overflow-x:clip!important;overflow-y:auto!important;}
 body{overflow:visible!important;}
 .viewport{height:clamp(210px,29svh,260px)!important;min-height:210px!important;max-height:260px!important;}
}
.design-workspace[hidden]{display:none!important;}
.design-workspace{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;gap:24px;padding:22px;background:#f2f4f5;color:#29404f;}
.design-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;flex:none;}
.design-workspace-head>span{font-size:13px;font-weight:550;}.design-workspace-head>div{display:flex;background:#e5e9ec;border-radius:22px;padding:3px;gap:3px;}
.design-workspace-head button{border:0;border-radius:20px;min-height:34px;padding:7px 18px;background:transparent;font:inherit;font-size:11px;color:#607584;}
.design-workspace-head button[aria-pressed=true]{background:white;color:#213c4d;box-shadow:0 2px 5px #223d4e0b;}
.design-flat{display:grid;place-items:center;flex:1;min-height:0;min-width:0;padding:20px;}
.design-flat .brand-preview{position:static;display:grid;place-items:center;width:100%;height:100%;padding:32px;background:transparent;border:0;box-shadow:none;overflow:visible;min-height:0;}
.design-flat #brand-canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 18px 50px #243a4d1c;border-radius:3px;}
.design-workspace-hint{font-size:11px;color:#81909b;text-align:center;margin:0 0 12px;}
.design-workspace.show-3d{background:transparent;pointer-events:none;}.design-workspace.show-3d .design-flat,.design-workspace.show-3d .design-workspace-hint{display:none;}.design-workspace.show-3d .design-workspace-head{pointer-events:auto;align-self:center;border-radius:24px;background:#ffffffeb;padding:3px 5px 3px 16px;}.design-workspace.show-3d .design-workspace-head>span{font-size:11px;}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 .design-workspace{padding:10px 12px;gap:0;}.design-workspace-head{min-height:34px;}.design-workspace-head>span{font-size:11px;}.design-workspace-head button{min-height:30px;padding:5px 14px;font-size:10px;}.design-flat{padding:7px 0;}.design-flat .brand-preview{padding:12px 4px;}.design-flat #brand-canvas{max-height:160px!important;max-width:100%!important;}.design-workspace-hint{font-size:9px;margin:1px 0 0;}
}
.viewport:has(.design-workspace:not([hidden])) .view-presets{visibility:hidden;}
.viewport:has(.design-workspace:not([hidden]):not(.show-3d)) .stage-state-toggle{display:none!important;}

/* Portrait: present the product at a useful scale before offering compact editing. */
@media(max-width:760px) and (min-height:551px){
 .configurator[data-step="model"]:not(.stage-expanded) .viewport{height:clamp(360px,52svh,460px)!important;min-height:360px!important;max-height:460px!important;}
 .configurator[data-step="model"] .product-stage{position:relative!important;top:auto!important;}
 .configurator[data-step="materials"]:not(.stage-expanded) .viewport{height:clamp(300px,43svh,380px)!important;min-height:300px!important;max-height:380px!important;}
 .scene-picker>summary{max-width:190px!important;}
}
