body .tank-designer-v48{display:grid;grid-template-columns:235px minmax(400px,1fr) 220px;gap:18px;color:#c5d9e4;font-family:"Segoe UI","Microsoft YaHei UI",sans-serif}
body .tank-designer-v48>section,body .tank-designer-v48>aside{min-width:0;background:#1c303d;border:1px solid #6c8a9a44;padding:17px;border-radius:6px}
body .tank-designer-v48 h2{font-size:20px;letter-spacing:2px;color:#e4eef4;font-weight:500;margin:0 0 18px}
body .tank-designer-v48 h3{font-size:13px;letter-spacing:1px;color:#b8d1df;font-weight:500}
body .tank-designer-v48 p{font-size:11px;line-height:1.8;color:#98b3c3}
body .tank-designer-v48 button,body .tank-designer-v48 select,body .tank-designer-v48 input{font:inherit;font-size:12px;color:#d2e3ed;background:#253e4e;border:1px solid #7898aa4d;border-radius:3px;min-height:32px}
body .tank-designer-v48 button:hover{background:#38566a;border-color:#91bdcf}
body .tank-designer-v48 button.active{background:#476c7f;border-color:#a0c8d6;color:#f0f6fa}
body .tank-designer-v48 button:disabled{opacity:.38;cursor:not-allowed}
body .tank-designer-v48 [data-save-tank]{width:100%;padding:12px;background:#547b8b;color:#f2f8fb;border-color:#a0c4ce;font-weight:600;letter-spacing:1px;margin-bottom:15px}
body .tank-designer-v48 .tank-component-list{display:grid;grid-template-columns:1fr;gap:5px}
body .tank-designer-v48 .tank-component-list button{text-align:left;padding:8px 10px;font-size:11px;line-height:1.55}
body .tank-designer-v48 .tank-component-list small{font-size:9px;line-height:1.5;display:block;color:#96b3c3;margin-top:3px}
.workshop-component-group{border-bottom:1px solid #819caf29;padding:10px 0}.workshop-component-group summary{cursor:pointer;color:#b5d0df;font-size:12px;margin-bottom:8px;letter-spacing:1px}
.tank-workshop{border:1px solid #7894a350;margin:18px 0;background:#122733;border-radius:4px;overflow:hidden}.tank-workshop>header{padding:11px 14px;border-bottom:1px solid #7894a333;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.3px;color:#93b4c7}.tank-workshop>header b{font-weight:500;color:#c6dae4}
body .tank-assembly-stage{height:350px!important;min-height:350px!important;background:radial-gradient(ellipse at 48% 40%,#486272 0,#213b4a 50%,#142a37 100%);position:relative;border:0;border-radius:0;margin:0;overflow:hidden}
.tank-assembly-stage>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2}.tank-assembly-stage .model-fallback{object-fit:contain;width:100%;height:100%;opacity:.45}.tank-assembly-stage.model-ready .model-fallback{display:none}.workshop-grid{position:absolute;left:-50%;width:200%;height:120%;bottom:-70%;transform:perspective(300px) rotateX(55deg);background-image:linear-gradient(#9bc0d113 1px,transparent 1px),linear-gradient(90deg,#9bc0d113 1px,transparent 1px);background-size:28px 28px;pointer-events:none}
.tank-assembly-stage .model-stage-controls{position:absolute;z-index:3;left:12px;right:12px;bottom:10px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#bed2df}.tank-assembly-stage .model-stage-controls button{font-size:10px!important;min-height:25px!important;background:#294352bd!important}.workshop-scale{position:absolute;top:12px;left:14px;color:#8daebd;font-size:8px;letter-spacing:2px;pointer-events:none}
.weapon-mounts{padding:12px 14px;border-top:1px solid #718c9b44}.weapon-mounts h3{margin:0 0 12px}.weapon-mounts h3 small{display:block;font-size:10px;color:#839faf;letter-spacing:0;margin-top:6px;font-weight:400}
body .weapon-mounts .weapon-mount{display:grid;grid-template-columns:140px 1fr 27px;align-items:center;gap:7px;border-top:1px solid #607f9029;padding:8px 0;margin:0}.weapon-mount>span:first-child{display:flex;flex-direction:column;gap:4px}.weapon-mount b{font-size:11px;color:#b9cfdb;font-weight:500}.weapon-mount small{font-size:9px;color:#7f9bac}.weapon-mount select{width:100%;min-width:0;font-size:11px!important;height:31px;padding:4px}.weapon-mount.mounted b{color:#a4d3d9}.weapon-mount button{font-size:17px!important;padding:0!important;min-height:27px!important}.mount-empty{text-align:center;color:#5c7d90}.weapon-mounts p{margin-bottom:0!important;font-size:10px!important}
body .tank-designer-v48 .tank-stats{display:grid;grid-template-columns:1fr;gap:0}body .tank-designer-v48 .tank-stats span{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #7d99aa2b;font-size:11px;background:transparent;color:#9fbac9}body .tank-designer-v48 .tank-stats b{font-family:"Bahnschrift","Segoe UI",sans-serif;font-size:18px;font-weight:400;color:#d9e9f1}
body .tank-designer-v48 .tank-slots{display:none}body .tank-designer-v48 .design-errors{white-space:pre-line;border-left:2px solid #99b9c4;padding:9px 12px;background:#36515e44;color:#c9dde7}.tank-designer-v48 .tank-conversion{border-top:1px solid #7895a333;padding-top:14px;margin-top:15px}.tank-designer-v48 .tank-conversion p{font-size:10px}
@media(max-width:1100px){body .tank-designer-v48{grid-template-columns:190px minmax(320px,1fr)}body .tank-designer-v48>aside{grid-column:1/-1}body .tank-designer-v48 .tank-stats{grid-template-columns:repeat(3,1fr);gap:0 20px}}
@media(max-width:720px){body .tank-designer-v48{grid-template-columns:1fr}body .tank-designer-v48>section:first-child{max-height:280px;overflow:auto}body .tank-assembly-stage{height:290px!important;min-height:290px!important}.weapon-mounts .weapon-mount{grid-template-columns:110px 1fr 27px!important}body .tank-designer-v48 .tank-stats{grid-template-columns:repeat(2,1fr)}}

.workshop-entry{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px;padding:11px 15px;background:#28424f;border:1px solid #7498a750;border-radius:4px;color:#c6dce6;font-size:12px}.workshop-entry small{display:block;color:#87a9bc;font-size:10px;margin-top:4px}.workshop-entry button{border:1px solid #8cabbc;background:#436475;color:#dfedf5;padding:9px 16px;border-radius:3px;white-space:nowrap}

@media(min-width:901px){
body .tank-designer-v48{grid-template-columns:210px minmax(340px,1fr) 205px;height:calc(100dvh - 225px);min-height:430px;gap:12px}
body .tank-designer-v48>section,body .tank-designer-v48>aside{overflow:auto;scrollbar-width:thin;scrollbar-color:#53788a #1c303d;padding:12px}
body .tank-designer-v48>.tank-design-center{overflow:hidden;display:flex;flex-direction:column;min-height:0}
body .tank-designer-v48>.tank-design-inspector{grid-column:auto}
body .tank-designer-v48 .tank-stats{grid-template-columns:1fr;gap:0}
body .tank-designer-v48 .tank-stats span{padding:8px 0}
body .tank-designer-v48 .tank-stats b{font-size:16px}
.tank-design-identity{flex:none}.tank-design-identity>div{display:grid;grid-template-columns:1.25fr 1fr;gap:10px}.tank-design-identity label{font-size:10px!important;margin:0!important;display:flex;flex-direction:column;gap:5px}
body .tank-design-identity h2{font-size:16px;letter-spacing:1.5px;margin:0 0 10px}
body .tank-design-identity input,body .tank-design-identity select{width:100%;height:30px;min-height:30px;padding:5px}
.tank-design-center .tank-workshop{flex:1;display:flex;flex-direction:column;min-height:0;margin:12px 0 0}
.tank-design-center .tank-workshop>header{padding:8px 12px;flex:none}
body .tank-design-center .tank-assembly-stage{height:clamp(200px,30vh,370px)!important;min-height:200px!important;flex:0 0 auto}
.tank-design-center .weapon-mounts{overflow:auto;scrollbar-width:thin;flex:1;min-height:75px;padding:10px}
.tank-design-center .weapon-mounts h3{font-size:11px;letter-spacing:0}.tank-design-center .weapon-mounts h3 small{font-size:9px}
body .tank-design-center .weapon-mount{grid-template-columns:112px 1fr 22px;gap:5px}.tank-design-center .weapon-mount small{font-size:8px}
.tank-design-inspector>label{font-size:10px;display:flex;flex-direction:column;gap:5px}.tank-design-inspector>label>input{width:100%;padding:7px}
.tank-design-inspector>details{border-top:1px solid #6d8d9c44;padding:12px 0;font-size:11px}.tank-design-inspector summary{cursor:pointer;color:#b1cedb}
body .tank-design-inspector .design-errors{font-size:10px;padding:8px;line-height:1.5;margin:0 0 10px}
body .tank-design-inspector [data-save-tank]{margin:10px 0;font-size:11px;padding:10px 5px}
body .tank-design-inspector .tank-upgrade-controls{padding:0;font-size:10px}
.workshop-saved>div{display:flex;gap:5px;margin-top:8px}.workshop-saved>div>button:first-child{flex:1;text-align:left;font-size:10px!important}
}

body #managementOverlay>.management-head:has(#tankWorkshopShortcut){grid-template-columns:minmax(0,1fr) auto auto}
body #tankWorkshopShortcut{font:inherit;font-size:12px;color:#d8eaf4;background:#426577;border:1px solid #8aaebf;border-radius:4px;padding:10px 16px;white-space:nowrap}
@media(max-width:650px){body #tankWorkshopShortcut{font-size:10px;padding:8px}body #managementOverlay>.management-head:has(#tankWorkshopShortcut){gap:6px}}

body .tank-designer-v48 header{position:static;inset:auto;z-index:auto;margin:0;min-height:0;height:auto;border:0;box-shadow:none;background:transparent;color:inherit;letter-spacing:normal}
body .tank-designer-v48 .tank-design-identity{display:block;padding:0}
body .tank-designer-v48 .tank-workshop>header{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;min-height:30px;height:30px;padding:6px 12px;background:#1b3342;border-bottom:1px solid #7894a333;font-size:10px}
body .tank-designer-v48 .tank-workshop>header span,body .tank-designer-v48 .tank-workshop>header b{font-size:10px!important;letter-spacing:1px}

body .management-body:has(.tank-designer-v48)>.operations-hub{display:none!important}

/* A 3D viewport clips decoration without becoming a nested scroll container. */
body .tank-assembly-stage{overflow:clip!important}
