/* Victoria V38 — native-like PWA shell and mobile header hardening */
:root{--v38-safe-top:env(safe-area-inset-top,0px);--v38-safe-bottom:env(safe-area-inset-bottom,0px)}
.v5-mobile-header{overflow:visible!important;box-sizing:border-box}
.v5-mobile-header .v5-brand{min-width:0!important;flex:0 1 auto!important}
.v32-mobile-actions{margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:clamp(2px,1vw,5px)!important;flex:0 0 auto!important;min-width:max-content!important;overflow:visible!important}
.v32-mobile-action,.v7-menu-btn{width:clamp(30px,9.4vw,38px)!important;height:clamp(30px,9.4vw,38px)!important;min-width:clamp(30px,9.4vw,38px)!important;flex:0 0 auto!important}
.v32-mobile-action i,.v7-menu-btn i{font-size:clamp(.78rem,3.8vw,.95rem)!important}
.v32-mobile-profile img{width:22px!important;height:22px!important}
.v31-logo-wrap{flex:0 0 auto}
.v32-mobile-action:active,.v7-menu-btn:active,.v5-mobile-bottom a:active,.v5-nav a:active,.btn:active{transform:scale(.96);transition:transform .08s ease}
@media(max-width:380px){
  .v5-mobile-header{padding-left:6px!important;padding-right:6px!important;gap:4px!important}
  .v31-logo-wrap{width:38px!important;height:38px!important;border-radius:11px!important}
  .v31-logo-wrap img{width:31px!important;height:31px!important}
  .v32-mobile-actions{gap:2px!important}
  .v32-mobile-action,.v7-menu-btn{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important}
}
@media(max-width:330px){
  .v31-logo-wrap{width:35px!important;height:35px!important}
  .v31-logo-wrap img{width:29px!important;height:29px!important}
  .v32-mobile-action,.v7-menu-btn{width:28px!important;height:28px!important;min-width:28px!important;border-radius:8px!important}
  .v32-mobile-action i,.v7-menu-btn i{font-size:.72rem!important}
}
@media(max-width:767px){
  html,body{overscroll-behavior-x:none}
  .v5-page{padding-bottom:calc(108px + var(--v38-safe-bottom))!important}
  .v5-mobile-bottom{bottom:max(8px,var(--v38-safe-bottom))!important}
}
@media(display-mode:standalone){
  html{background:var(--vx-bg,#f5faf9)}
  body{padding-top:var(--v38-safe-top);padding-bottom:var(--v38-safe-bottom);overscroll-behavior-y:none}
  .v5-mobile-header{top:var(--v38-safe-top)!important}
  .v5-topline{padding-top:var(--v38-safe-top)}
  .vx-pwa-standalone .v5-page{padding-bottom:calc(112px + var(--v38-safe-bottom))}
}
@media(prefers-reduced-motion:no-preference){::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}}
.vx-pwa-ripple{position:relative;overflow:hidden}
.vx-pwa-ripple::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(255,255,255,.08);opacity:0;transform:scale(.96);transition:opacity .12s ease,transform .12s ease;pointer-events:none}
.vx-pwa-ripple.is-pressed::after{opacity:1;transform:scale(1)}
