/* Mzansi Hustle Release 57 — browser-first QA presentation layer. */
:root{--mh57-edge:#527083;--mh57-cream:#edcb91;--mh57-deep:#112431}
/* Single portraits — no multi-face sprite atlas in character or profile. */
.mh57-single-portrait{display:block;object-fit:cover!important;object-position:50% 38%;background:#162834;border:1px solid #778b85;min-width:0}
#player-hud26 .mh57-single-portrait.hud-face26{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;aspect-ratio:1!important;object-position:center 35%;border-radius:50%!important;border:2px solid #d4a763!important}
.player-ribbon .mh57-single-portrait{width:95px;height:106px;object-position:center 35%;border-radius:12px}
.portrait-picker .mh57-single-portrait{width:100%;height:100%;min-height:110px;aspect-ratio:4/5;object-fit:cover!important;border-radius:8px;object-position:center}
.portrait-picker button{padding:4px!important;overflow:hidden}
/* Standout HUD bars with iconography and independent stat colours. */
#player-hud26{gap:12px!important;min-width:0;flex-wrap:nowrap;align-items:center}
.mh-fidelity-hud-meters{margin-left:5px!important;max-width:none!important;min-width:340px;flex-wrap:nowrap!important;gap:7px!important;flex:1 1 550px}
.mh-fidelity-hud-meter{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto;align-items:center;column-gap:7px;padding:7px 8px!important;min-width:100px!important;flex:1 1 130px!important;border-radius:11px!important;background:linear-gradient(130deg,#253e4d,#19303e)!important;border:1px solid #4f6977!important;transition:background .2s,border-color .2s}
.mh-fidelity-hud-meter:hover{border-color:#e8ba76!important;background:#345263!important}
.mh-fidelity-hud-meter>.mh57-hud-icon{width:29px!important;height:29px!important;object-fit:contain;grid-row:1/3;grid-column:1;background:transparent;border:none}
.mh-fidelity-hud-meter>span{grid-row:1;grid-column:2;font-size:11px!important;display:flex;justify-content:space-between;align-items:center;gap:7px;white-space:nowrap}
.mh-fidelity-hud-meter b{font-size:10px!important;color:#f1d199!important}
.mh-fidelity-hud-meter i{grid-row:2;grid-column:2;height:7px;margin-top:6px}
.mh-fidelity-hud-meter:nth-child(1) i em{background:linear-gradient(90deg,#b2a461,#f6d478)!important}
.mh-fidelity-hud-meter:nth-child(2) i em{background:linear-gradient(90deg,#51869c,#9bd3dc)!important}
.mh-fidelity-hud-meter:nth-child(3) i em{background:linear-gradient(90deg,#bf956b,#f9e09b)!important}
.mh-fidelity-hud-meter:nth-child(4) i em{background:linear-gradient(90deg,#945d67,#e88b83)!important}
/* Restore deliberate dark game artwork slots: don't crop unrelated atlas sections. */
.mh46-store-grid{align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px!important}
.mh46-store-item{align-items:stretch;min-width:0!important;max-width:100%;border-color:#506879!important;overflow:hidden}
.mh46-store-item>.mh46-art,.mh46-store-item .mh46-item-art,.mh46-store-item>.mh56-product-art{width:clamp(125px,12vw,174px)!important;min-width:125px!important;max-width:174px!important;height:auto!important;min-height:205px;max-height:none!important;flex:0 0 clamp(125px,12vw,174px)!important;object-fit:contain!important;object-position:50% 50%!important;background:#142936!important;aspect-ratio:auto!important}
.mh46-store-item>.mh56-product-art{display:flex!important;align-items:center;justify-content:center;overflow:hidden!important}
.mh46-store-item>.mh56-product-art>img{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;background:#142936!important}
.mh46-store-item>.mh56-product-art>.mh56-maker{bottom:7px;left:5px;right:5px;max-height:30px;padding:2px 5px}
.mh46-store-item>.mh56-product-art>.mh56-maker img{height:20px!important;max-height:20px!important;min-width:34px!important;width:34px!important}
.mh46-store-info{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.mh46-store-info h3{line-height:1.3;word-break:normal}
.mh46-store-item button{min-width:0;max-width:100%}
/* Universal catalogue fit: illustrated item cards contain, scenic banners cover. */
.mh51-gallery-card img,.mh51-item-card img,.mh51-original-art,.mh51-sport-art,.mh51-sport-art img,
.mh51-furniture-photo img,.furniture-photo img,.mh57-item-picture,.inventory-card img,.market-item img,.item-card img,
.mh46-player-card img,.mh46-rival-art,.sport-card25 .mh51-sport-art{object-fit:contain!important;object-position:center!important}
.business-img>.mh52-business-art,.mh55-scene-image,.mh55-map-scene img,.mh48-contract>img{object-fit:cover!important;object-position:center}
.life-preview .mh52-car-art{object-fit:contain!important;aspect-ratio:auto!important}
.mh51-gallery-card,.mh46-store-item,.life.collection-card{min-width:0}
/* Navigation icons appropriate to activity; no '?' or stars for ordinary pages. */
.sidebar .nav-group button svg{height:18px!important;width:18px!important;min-height:18px;min-width:18px;flex-shrink:0;color:#b8d8da;stroke-width:1.8}
.sidebar .nav-group button:hover svg,.sidebar .nav-group button.active svg{color:#f6cd8d}
.sidebar .nav-group button span{min-width:0;overflow-wrap:anywhere}
.sidebar .nav-group summary{letter-spacing:.085em!important}
/* Dock must not cover purchase controls on large screens. */
#mh-audio-v47{max-width:min(440px,calc(100vw - 32px));font-size:12px}
#mh-audio-v47 .mh-audio-text strong{font-size:13px}
@media(min-width:1250px){.content{padding-bottom:95px!important}}
@media(max-width:1320px){#player-hud26{gap:7px!important}.mh-fidelity-hud-meters{flex-wrap:wrap!important;min-width:280px}.mh-fidelity-hud-meter{flex-basis:calc(50% - 8px)!important}.mh46-store-grid{grid-template-columns:1fr}}
@media(max-width:800px){#player-hud26{flex-wrap:wrap!important}.mh-fidelity-hud-meters{width:100%;order:3;flex-basis:100%;margin:0!important}.mh46-store-grid{grid-template-columns:1fr}.mh46-store-item>.mh46-art,.mh46-store-item>.mh56-product-art{min-width:123px!important;max-width:145px!important;flex-basis:130px!important}}
@media(max-width:480px){.mh-fidelity-hud-meter{min-width:0!important;flex:1 1 calc(50% - 9px)!important}.mh46-store-item>.mh46-art,.mh46-store-item>.mh56-product-art{min-width:100px!important;max-width:114px!important;flex-basis:110px!important}.mh46-store-info{padding:12px!important}}
/* Responsive browser window only (not a mobile application). Prevent profile and sidebar transforms from widening the document. */
@media(max-width:900px){html,body{max-width:100%;overflow-x:clip!important}.layout,.main,.content{min-width:0;max-width:100%}.profile-page,.mh46-profile-grid,.mh-player-view{min-width:0;max-width:100%;box-sizing:border-box}}
