/* Compact application shell, shared by PL and EN. */
body>header{max-width:none;padding:14px max(20px,calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;background:#101012;border-bottom:1px solid #38383e}
body>header nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body>header nav>a,body>header .language-menu summary{display:flex;align-items:center;min-height:42px;margin:0;padding:9px 13px;border:1px solid #45454d;border-radius:8px;background:#222226;color:#ececf0;font-size:13px;text-decoration:none;box-sizing:border-box}
body>header nav>a:hover{border-color:#ff4653;background:#332327}body>header nav>a[href='#designer']{border-color:#e63c48;background:#372126;color:#fff}
body>header .brand{flex-shrink:0}body>header .language-menu{margin:0;z-index:110}body>header .language-menu summary{border-color:#686871;background:linear-gradient(#414148,#242428)}
main{max-width:1440px}.compact-intro.hero{display:block!important;padding:18px 0!important;margin:0!important;min-height:0!important}.compact-intro h1{font-size:24px!important;line-height:1.2!important;letter-spacing:-.5px!important;margin:0 0 6px!important}.compact-intro p{font-size:13px;color:#bcbcc6;margin:0}.compact-intro.intro-hidden{display:none!important}
body.compact-app .wizard-navigation{position:sticky;top:0;z-index:80;margin:0 0 10px;padding:12px 16px;border-radius:0 0 12px 12px;background:linear-gradient(115deg,#29292f,#141417);box-shadow:0 8px 20px #0007;scroll-margin-top:0}
body.compact-app .wizard-top{gap:12px;flex-direction:row;align-items:center}.wizard-top .compact-actions{display:flex;gap:8px;margin-left:auto}.compact-actions button{min-height:40px;min-width:85px}.compact-actions button:last-child{background:linear-gradient(#ff554a,#cf170d);color:#fff;border-color:#ff655c}.compact-actions[hidden]{display:none!important}
body.compact-app #wizard-title{font-size:17px;outline:none}body.compact-app #wizard-description{font-size:12px;margin:6px 0 10px}body.compact-app #wizard-all{font-size:11px;padding:6px 9px;min-height:32px;order:3}
body.compact-app .wizard-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}body.compact-app .wizard-steps button{min-height:42px;padding:7px 10px;font-size:13px;flex-direction:row;justify-content:center}.wizard-number{min-width:22px;height:22px}
.compact-settings{margin:0 0 12px;border:1px solid #38383e;border-radius:8px;background:#17171b}.compact-settings>summary{padding:9px 14px;cursor:pointer;font-size:12px;color:#c9c9d1}.compact-settings .unit-picker{margin:0;padding:12px 14px;border:0;display:flex;gap:20px}.compact-settings .unit-picker p{margin:5px 0}.compact-settings select{max-width:320px}
body.compact-app #designer .config{padding:0;border:0;background:none;box-shadow:none}body.compact-app #designer .config>.panel-top,body.compact-app #connection-status{display:none}body.compact-app .demo-note{font-size:12px;margin:8px 0}body.compact-app:not([data-wizard-current='1']) .demo-note{display:none}
body.compact-app #config>.design-module,body.compact-app #preview-module,body.compact-app #simulation-module{margin-top:0;padding:18px}body.compact-app #preview-module>.panel-top,body.compact-app #preview-module>.module-description,body.compact-app #preview-module>.eyebrow{display:none}body.compact-app #preview-module #fit-summary{margin:0 0 10px}body.compact-app #preview-module .model-dimensions{margin:10px 0}
body.compact-app .cloudbar{font-size:12px;padding:8px 12px}body.compact-app .projectbar{padding:10px 0}body.compact-app .wizard-footer{padding:12px 0}
@media(max-width:800px){body>header{padding:10px 16px;gap:10px;flex-wrap:wrap}body>header nav{width:100%;justify-content:flex-start;gap:6px}body>header nav>a,body>header .language-menu summary{font-size:12px;padding:8px 10px;min-height:38px}body>header .brand small{display:none}body.compact-app .wizard-top{flex-wrap:wrap}body.compact-app #wizard-title{flex:1 1 100%;font-size:16px}.wizard-top .compact-actions{margin-left:0}body.compact-app #wizard-all{margin-left:auto}body.compact-app .wizard-steps button{flex-direction:column;gap:3px;font-size:10px;padding:6px 2px;min-height:54px}body.compact-app .wizard-navigation{padding:10px}body.compact-app #wizard-description{display:none}body.compact-app .wizard-steps{margin-top:8px;gap:4px}.compact-intro h1{font-size:20px!important}.compact-intro.hero{padding:12px 0!important}.compact-settings .unit-picker{flex-direction:column;gap:8px}.compact-settings .unit-picker>div{display:none}body.compact-app #config>.design-module,body.compact-app #preview-module,body.compact-app #simulation-module{padding:12px}main{padding-left:12px!important;padding-right:12px!important}}
@media print{body>header,.compact-intro,.compact-settings,.compact-actions{display:none!important}}
/* Keep actual controls and preview above supporting explanations. */
body.compact-app #driver-module>.step-description,body.compact-app #driver-module>.speaker-entry-options{display:none}
body.compact-app #preview-module>.step-description{display:none}
body.compact-app #preview-module{padding-top:12px!important}
body.compact-app #preview-module .scene-toolbar{margin:6px 0!important;padding:0!important}
body.compact-app #preview-module .arrange-switch{margin:6px 0!important}
body.compact-app #preview-module .model-dimension-controls{padding:12px!important;margin:8px 0!important}
body.compact-app #preview-module .model-dimension-controls h3{font-size:15px;margin:0 0 8px}
body.compact-app #preview-module .model-dimension-controls p{margin:7px 0;font-size:11px}
body.compact-app #preview-module #box-view{height:340px!important;min-height:300px!important}
body.compact-app #preview-module #custom-box{padding:10px!important}
@media(max-width:800px){body.compact-app #preview-module #box-view{height:280px!important;min-height:260px!important}}

/* Mobile language disclosure stays within the viewport, above the wizard. */
body>header{position:relative;z-index:120;overflow:visible}
@media(max-width:800px){
 body>header .language-menu>div{left:0;right:auto;min-width:145px;max-width:calc(100vw - 32px);z-index:121}
 body.compact-app #preview-module #model-stage{height:clamp(260px,42svh,340px);margin-left:8px;margin-right:8px}
}
