html[data-device="mobile"] .tabbar {
  height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 0 8px env(safe-area-inset-bottom, 0px) !important;
  box-sizing: border-box !important;
  bottom: 0 !important;
}
html[data-device="mobile"] .tabbar .tb {
  height: 66px !important;
}
html[data-device="mobile"] .tabbar .tb svg.t858-ti {
  width: 25px !important;
  height: 25px !important;
  margin-left: -12.5px !important;
  top: 14px !important;
}
html[data-device="mobile"] .tabbar .tb img.b {
  top: 11px !important;
}
html[data-device="mobile"] .tabbar .tb span {
  top: 42px !important;
}
html[data-device="mobile"] .tabbar .tb.on::before {
  top: 8px !important;
  height: 50px !important;
  width: var(--t882w, 70px) !important;
  margin-left: calc(var(--t882w, 70px) / -2) !important;
}
html:not([data-device="mobile"]) .hdr-in {
  height: 78px !important;
  padding-top: 4px !important;
  box-sizing: border-box !important;
}
html:not([data-device="mobile"]) main > .nav {
  margin-top: 12px !important;
}
html[data-device="mobile"] .page {
  padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
}
html[data-device="mobile"] header.mhdr,
html[data-device="mobile"] header.mhdr.phd {
  box-sizing: border-box !important;
  height: calc(68px + env(safe-area-inset-top, 0px)) !important;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
/* n7: щель под нижним меню на iPhone. Safari (в том числе iOS 26 с плавающей панелью) иногда показывает
   несколько пикселей страницы между меню и своей панелью. Меню уходит на 8 px ниже края экрана
   (верхний край и кнопки остаются на месте), а фон дополнительно продолжается вниз тенью того же цвета */
html[data-device="mobile"] .tabbar {
  bottom: -8px !important;
  height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: inset 0 1px 0 #eef1f5, 0 100px 0 0 #fff !important;
}
html[data-device="mobile"][data-theme="dark"] .tabbar {
  box-shadow: inset 0 1px 0 #2c3442, 0 100px 0 0 #11151c !important;
}
