html{overflow-x:clip;max-width:100%;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{overflow-x:clip;max-width:100%;min-width:0;position:relative;overflow-wrap:break-word}
img,video,canvas,iframe,embed,object,svg{max-width:100%}
img,video{height:auto}
pre,code,kbd,samp{max-width:100%;overflow-wrap:anywhere}
pre{overflow-x:auto;white-space:pre-wrap;-webkit-overflow-scrolling:touch}
main,.wrap,.w,.mk-w,section,header,footer,form,fieldset,.card,.grid>*,.nav,.top{min-width:0}
fieldset{min-width:0}
input,select,textarea,button{box-sizing:border-box}
h1,h2,h3,h4,p,li,dd,dt,label,summary,td,th,a{overflow-wrap:break-word}
body.shell #main,body.shell #content{min-width:0}
.who{min-width:0;max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scroll,.tw,.cmp-scroll,.mk-tabs{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media(max-width:800px){
input,select,textarea{font-size:16px!important;max-width:100%}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{min-width:0}
.wrap table:not(.cmp){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.wrap{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}
.btn,button,[type=submit]{min-height:44px}
.cf button,.cf [type=submit]{min-height:0}
.foot{flex-wrap:wrap;gap:8px 16px}
.cf-panel{max-width:calc(100vw - 24px)}
.cf-tip{max-width:min(230px,calc(100vw - 110px))}
}
@media(max-width:360px){
.who{display:none}
}
@media(hover:none){
a,button,summary,[role=button]{touch-action:manipulation}
}
@media(max-width:980px){
.btn.hd-cta,.hd-cta{display:none!important}
}
@media(max-width:420px){
.nav{gap:8px}
.logo{min-width:0;font-size:19px}
.tg,.burger{flex:none}
}

/* Account link inside the mobile dropdown (the header button is hidden at 980px and below) */
.menu .menu-acct{display:none}
@media(max-width:980px){
.menu .menu-acct{display:flex;align-items:center;justify-content:center;min-height:46px;margin-top:6px;padding:0 16px;border-radius:10px;background:var(--gr);color:var(--ongr,#fff)!important;font-weight:600;font-size:16px;text-decoration:none}
.menu .menu-acct:hover,.menu .menu-acct:focus-visible{background:var(--gr2);color:#fff}
}

@media(max-width:800px){
.top{gap:8px;flex-wrap:wrap;row-gap:6px;padding-top:6px;padding-bottom:6px}
.top>*{flex:none}
.top .sp{flex:1 1 0;min-width:0}
.top .who{display:none}
.top .menu-btn,.top .av,.top form{flex:none}
}
@media(max-width:640px){
.top .lv-t{display:none}
.top .lv-b{padding:0 10px;gap:6px}
.top .vbadge{font-size:0;gap:0;padding:5px 7px}
}
@media(max-width:420px){
.top{padding-left:10px;padding-right:10px;gap:6px}
.top .chip{padding:3px 9px;font-size:.7rem}
.top .menu-btn{padding:0 9px}
}

/* phone header: pill shows just the live count so the header never overflows */
@media(max-width:640px){
.top .lv-n{display:inline;font-weight:700;font-size:.85rem;line-height:1}
.top .lv-n:empty{display:none}
.top .lv{flex:0 1 auto;min-width:0}
}

/* phone: compact live pill (dot + count), clean tap target, panel anchored under it */
@media(max-width:640px){
.top .lv-b{min-width:44px;height:36px;padding:0 12px;gap:7px;justify-content:center;overflow:visible}
.top .lv-b::after{display:none}
.top .lv-c{display:none}
.top .lv-n{display:inline;font-size:.95rem;font-variant-numeric:tabular-nums}
.top .lv-d{width:9px;height:9px}
.top .lv-d i{animation-name:lvPing;animation-duration:2.4s}
.lv-p{max-height:calc(100vh - 100px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.lv-l{max-height:none}
}
