/* Shared layout corrections, loaded last on storefront and admin pages. */
.mobile-nav{display:none}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;background:var(--gold);color:#111;padding:12px}.skip-link:focus{top:8px}
.brand-logo{display:block;width:48px;height:48px;max-width:48px;max-height:48px;object-fit:contain;flex:none}
.back-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 0;color:var(--gold2);text-decoration:none;font-size:14px;font-weight:700;margin-bottom:18px}.back-link:hover{text-decoration:underline}.page-back{padding-top:103px}.inner-page.store-body .control-main{padding-top:0}.inner-page .login-box{margin-top:0!important}
.navright{min-width:0}.player-badge{min-width:0}.player-badge>span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.player-head{--head:32px;position:relative;display:inline-block;flex:none;width:var(--head);height:var(--head);overflow:hidden;vertical-align:middle;border-radius:6px;background:#30313c;image-rendering:pixelated}
.player-head img{position:absolute;max-width:none!important;width:calc(var(--head)*8)!important;height:auto!important;left:calc(var(--head)*-1)!important;top:calc(var(--head)*-1)!important}.player-head img.skin-overlay{left:calc(var(--head)*-5)!important}.player-head.skin-face{--head:64px;border-radius:10px}
.head-fallback{display:grid;place-items:center;height:100%;font-size:11px;font-weight:800;color:var(--gold2)}.player-head.has-skin .head-fallback{display:none}.player-head:not(.has-skin) img{display:none}
.player-profile{display:flex;align-items:center;gap:16px;margin:20px 0}.player-profile>div{min-width:0}.player-profile h2{font-size:24px;margin:0 0 5px;overflow-wrap:anywhere}.player-profile p{margin:0;font-size:13px}.profile-actions{display:flex;gap:12px;flex-wrap:wrap}.profile-actions form{margin:0}
.control-main,.hero-copy,.status-console,.admin-head>div,.section-head>div,.balance-grid>*,.form-grid>*,.trust-card>div{min-width:0}
.field input,.field select,.field textarea{max-width:100%}.field input[type=file]{white-space:normal;font-size:14px}.field input[type=file]::file-selector-button{max-width:100%;padding:8px;margin-right:10px}
.field label,.check,.muted,.notice,code,td,.account-row,dialog p{overflow-wrap:anywhere}.check{align-items:flex-start}.check input{flex:none;margin-top:3px}
.product-info{display:flex;flex-direction:column;height:calc(100% - 145px)}.price-row{margin-top:auto;flex-wrap:wrap}.product-photo{min-height:0;max-height:100%;max-width:100%}
.btn,.filter{min-height:44px}.dialog-close{min-width:44px;min-height:44px}.dialog-close .icon{pointer-events:none}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}dialog .btn{margin-top:10px}dialog h2{padding-right:25px}dialog #checkout-form .btn{width:100%}
.footer-links{flex-wrap:wrap}.footer-links a{display:inline-flex;align-items:center;min-height:44px}.toast{max-width:calc(100% - 32px);width:max-content;overflow-wrap:anywhere;text-align:center}
@media(max-width:950px) and (min-width:761px){.navlinks{gap:12px}.nav{gap:14px}.player-badge{max-width:185px}.brand b{font-size:17px}}
@media(max-width:760px){
 .wrap{width:calc(100% - 32px)}header{height:112px}.nav{height:68px;gap:10px}.nav .navlinks{display:none!important}
 .mobile-nav{display:flex;height:44px;justify-content:center;border-top:1px solid var(--line);background:#0d1118}.mobile-nav a{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;text-decoration:none;font-size:12px;color:#d8dbe2}
 .nav .brand{flex:1;min-width:0;gap:7px}.nav .brand>span{display:block;min-width:0}.nav .brand b{font-size:16px;letter-spacing:.2px}.nav .brand small{font-size:8px;letter-spacing:.8px}
 .brand-logo{width:38px;height:38px;max-width:38px;max-height:38px}.nav .navright{flex:0 1 auto;min-width:0}.nav .navright .btn{min-height:44px;padding:8px;display:inline-flex}.nav .player-badge{max-width:145px;gap:6px;font-size:11px}.nav .player-head{--head:28px}
 .control-main{padding-top:138px;padding-bottom:40px}.page-back{padding-top:132px}.inner-page.store-body .control-main{padding-top:0}.back-link{margin-bottom:14px}
 .hero-inner{grid-template-columns:1fr;min-height:0;padding-top:155px;gap:28px;padding-bottom:24px}.hero{min-height:0}.hero h1{font-size:clamp(44px,11vw,64px)}
 .hero-stats{position:relative;left:auto;bottom:auto;transform:none;width:calc(100% - 32px);margin:0 auto 18px;grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(3){border-left:0;border-top:1px solid var(--line)}.stat:nth-child(4){border-top:1px solid var(--line)}
 .status-console{width:100%;justify-self:stretch}.section-head{flex-wrap:wrap;align-items:flex-start}.section-head h2{font-size:32px}.section-head .live-card{max-width:100%}
 .control-main h1{font-size:32px;overflow-wrap:anywhere}.control-main h2{font-size:28px}.control-main .player-profile h2{font-size:clamp(18px,5.2vw,24px)}.admin-head{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:12px}
 .control-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;margin:16px 0;scrollbar-width:thin}.control-tabs a{flex:none;min-height:44px}
 .control-grid,.form-grid,.balance-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}.form-grid .full{grid-column:1}.admin-card{padding:16px!important}.search-form{flex-wrap:wrap}.search-form input{flex:1 1 180px}
 .field input:not([type=checkbox]),.field select,.field textarea{font-size:16px;min-height:44px}details form{min-width:0}.row-actions{gap:8px}.row-actions .btn{font-size:12px;min-height:44px}
 .table-scroll{max-width:100%;overscroll-behavior-x:contain}.table-scroll table{min-width:560px}.table-scroll .mobile-cards{display:block;min-width:0!important}.mobile-cards thead{display:none}.mobile-cards tbody{display:block}.mobile-cards tr{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}.mobile-cards td{display:block;max-width:none;padding:0;border:0}.mobile-cards td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:#9ca5b4;text-transform:uppercase;letter-spacing:1px;margin-bottom:5px}.mobile-cards td form{margin-top:10px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-art{height:130px}.product-info{height:calc(100% - 130px);padding:12px}.product-desc{height:auto;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.price-row{align-items:stretch;gap:10px}.price{font-size:13px}.price-row .buy{width:100%;font-size:12px}.stock{display:none}.label{max-width:calc(100% - 22px);overflow:hidden;text-overflow:ellipsis}
 .trust-grid{grid-template-columns:1fr}.footer-inner{align-items:flex-start;flex-direction:column}.footer-links{gap:8px 18px}.footer{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 dialog{padding:24px;width:calc(100% - 24px)}.login-box{padding:22px!important}.login-box form>.btn{width:100%}.profile-actions{display:grid;grid-template-columns:1fr}.profile-actions .btn{width:100%}
}
@media(max-width:359px){.wrap{width:calc(100% - 24px)}.nav .brand b{font-size:14px}.nav .brand small{font-size:7px}.brand-logo{width:30px;height:30px;max-width:30px;max-height:30px}.nav .player-badge{max-width:126px}.nav .player-head{--head:24px}.product-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column}.server-meta{grid-template-columns:1fr}}
