/* mobile: phones and small tablets. Menu becomes a slide-in drawer, content fits the screen */
.mnb{display:none}
@media(max-width:900px){
html,body{overflow-x:hidden;max-width:100vw}
.app,.app2,.app.rv{display:block}
.main{padding:12px 12px 90px!important;min-width:0;max-width:100vw;overflow-x:hidden}
.top{margin-bottom:12px}.top h1{font-size:21px}
/* top bars */
.tb,.rtb{position:sticky!important;top:0;z-index:60;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px;margin:0!important;padding:8px 10px!important;border-radius:0!important;overflow:hidden}
.tb .lg img,.rtb .lg img{height:30px!important;width:auto}
.tb .tag{display:none}
.tb{flex-wrap:wrap!important}.tb #chips{order:10;flex:1 0 100%;min-width:0;margin:0!important;display:flex;flex-wrap:nowrap!important;overflow-x:auto;gap:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tb #chips>*{flex:0 0 auto;white-space:nowrap}
.tb .sp,.rtb .sp{display:none}
.tb .btn--s{padding:6px 10px;font-size:12px;flex:0 0 auto}
.tb a.btn--s[href*="../../"]{display:none}
.rtb .bn{display:none!important}
.rtb>*:not(.lg):not(.mnb){min-width:0}
.rtb .pmenu{margin-left:auto;min-width:0;flex:0 1 auto}.rtb .pmb{max-width:58vw;min-width:0;padding:4px 8px!important;gap:8px}.rtb .pmb span:last-child{overflow:hidden;min-width:0}.rtb .pmb b,.rtb .pmb small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rtb .pmb small{font-size:11px}
.mnb{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border:1px solid #d3e3f7;border-radius:12px;background:#fff;font-size:20px;line-height:1;color:#0b3d91;cursor:pointer;order:-1}
/* drawer */
.side{position:fixed!important;left:0;top:0;bottom:0;height:auto!important;width:min(84vw,310px);z-index:1001;margin:0!important;border-radius:0 22px 22px 0!important;overflow-y:auto!important;overflow-x:hidden;flex-direction:column!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:2px!important;padding:14px 10px 24px!important;transform:translateX(-105%);transition:transform .25s ease;box-shadow:none;background:#fff!important;-webkit-overflow-scrolling:touch}
body.mnav .side{transform:none;box-shadow:12px 0 40px rgba(10,30,70,.28)}
.mnav-bd{position:fixed;inset:0;z-index:1000;background:rgba(8,20,45,.45);display:none}
body.mnav .mnav-bd{display:block}
.side .nav{width:100%!important;min-height:44px;padding:10px 12px!important;justify-content:flex-start;margin:0!important}
.side .grp{margin:10px 10px 2px}
.side .who{display:block!important}
/* content */
.two,.split,.grid2,.three,.apx,.chx,.nx,.jdg,.brand{grid-template-columns:1fr!important}
.cards,.mini,.kpis,.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.panel,.glass,.card,.box{min-width:0;max-width:100%}
table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl,.tw,.tablewrap{overflow-x:auto;max-width:100%}
input,select,textarea{max-width:100%;font-size:16px}
.row{flex-wrap:wrap}
.btn{min-height:40px}
.modal,.mdl,.sheet,.dlg{max-width:100vw!important;width:100%!important;border-radius:18px 18px 0 0!important}
.modal>*,.mdl>*{max-width:100%}
pre,code,img,video,canvas{max-width:100%}
.apl,.lst,.det{max-height:none!important}
.kdp{right:0}
}
@media(max-width:480px){.cards,.mini,.kpis,.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.top h1{font-size:19px}.main{padding:10px 10px 90px!important}}
@media(max-width:900px){
.fline{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.fline .f:first-child{grid-column:1/-1}.fline .f,.fline .f select,.fline .f input{min-width:0;width:100%}
.fline .f span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.rtb .pmb small{display:none!important}.rtb .pmb{max-width:52vw}
.rtb .pmb b{font-size:13px}
.panel{padding:12px!important}
.uact,.acts2,.btnrow{flex-wrap:wrap}
}
/* v41 phones: bottom tab bar + table cards */
.mbar{display:none}
@media(max-width:900px){
.mbar{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:900;display:flex;justify-content:space-around;gap:2px;padding:6px 4px;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px -8px rgba(10,40,90,.35),0 0 0 1px #d8e4f4}
.mbar button{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border:0;border-radius:14px;background:none;color:#3f5068;font:700 11px/1.1 inherit;cursor:pointer}
.mbar button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mbar button.on{background:#e8f1ff;color:#0a5fd0}
.mbar button i{position:absolute;top:2px;right:calc(50% - 22px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font:800 10.5px/18px inherit;font-style:normal}
.main{padding-bottom:110px!important}
table.mcards thead{display:none}
table.mcards,table.mcards tbody{display:block;width:100%}
table.mcards tr{display:block;margin:0 0 12px;padding:10px 12px;border-radius:16px;background:#fff!important;box-shadow:0 4px 16px -8px rgba(10,40,90,.25),0 0 0 1px #e1eaf6}
table.mcards td{display:flex!important;gap:10px;align-items:flex-start;justify-content:space-between;padding:6px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:right;border-radius:0!important;min-width:0}
table.mcards td::before{content:attr(data-l);flex:0 0 36%;text-align:left;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#5b6b82;padding-top:2px}
table.mcards td:not([data-l])::before,table.mcards td[data-l=""]::before{display:none}
table.mcards td:not([data-l]),table.mcards td[data-l=""]{justify-content:flex-start;text-align:left}
table.mcards td.act,table.mcards td.ia{justify-content:flex-start;flex-wrap:wrap;gap:6px;padding-top:10px!important;border-top:1px solid #edf2f9!important;margin-top:4px}
table.mcards td.act::before,table.mcards td.ia::before{display:none}
table.mcards td .btn{min-height:40px}
table.mcards img.poster{width:64px;height:84px}
}
@media(max-width:900px){table.mcards td,table.mcards td.tr{position:static!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;background-image:none!important}table.mcards td>*{min-width:0;overflow-wrap:anywhere}}

/* v79: on phones the kid stands ON the bottom menu bar (the bar used to cover his legs) */
/* feet never under the screen edge or the phone's home bar */
.kdp{bottom:calc(6px + env(safe-area-inset-bottom,0px))}
@media(max-width:900px){body:has(.mbar:not([hidden])) .kdp{bottom:calc(72px + env(safe-area-inset-bottom,0px))}}
