.home { position:relative;  }
.home--list .foorumm{ grid-template-columns:1fr !important; }
.home--list .glav_menu_container {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 8px 4px;
}
.home--list .glav_menu_touch {
  display: grid !important;
  grid-template-columns: 40px 1fr auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #e7edf6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  text-align: left !important;
  box-shadow: none !important;
  min-height: 30px;
  width: auto;
  margin: 0;
}
.home--list .glav_menu_touch svg  {
  width: 26px;
  height: 26px;
}
.home--list .glav_menu_touch > *{ margin:0 !important; text-align:left !important; }
.home--list .glav_menu_icon{
  width:26px !important;
  height:26px !important;
  display:grid !important;
  place-items:center !important;
}
.home--list .glav_menu_label{
  font-weight:600 !important;
  color:#1f2a3b !important;
  white-space:normal !important;
}
.home--list .mb_8 {
  margin-bottom: 4px;
}
.home--list .glav_menu_badge {
  position: static !important;
  transform: none !important;
  margin: 0 0 0 8px !important;
  display: inline-block !important;
  text-align: right !important;
  padding: 8px 8px !important;
  border-radius: 10px !important;
  background: #f5f8ff !important;
  font-weight: 700 !important;
}
.home--list .glav_menu_container2 {
  display: flex;
  padding: 0 8px 0;
  flex-direction: column;
  margin-bottom: 4px;
  gap: 4px;
}
.home--list .glav_menu_touch2 {
  border: 1px solid #e7edf6 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  background: #fff !important;
  margin: 0 !important;
}
.home--list .story-scroll-container  {
    margin: 0 8px 5px;
}
.onlinesy {
  padding: 0 20px;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px;
}

.home .onlines {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  border-radius: 0 0 16px 16px !important;
  z-index: 11;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .onlines span {
  background: #f2f3f5;
  padding: 6px 12px;
  border-radius: 8px;
}
.home .onls {
    margin-bottom: 56px;
}
[data-theme="dark"] .home .onlines, [data-theme="dark"] .onlinesy  {
    background: var(--plitka);
    color: #fff;
}


.home-toggle-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  opacity: 0; 
  pointer-events: none;
  transition: opacity .15s ease;
}
#HomeLayout[data-ready="0"] * { transition: none !important; }
.home-toggle:focus,
.glav_menu_touch:focus { outline: none; }
.glav_menu_touch:focus-visible { outline: 2px solid rgba(45,129,224,.35); }

.home-toggle{
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid #e5ebf3;
  background:#fff;
  box-shadow:0 2px 10px rgba(15,27,62,.08);
  display:grid; place-items:center;
  cursor:pointer;
}
.home-toggle:active{ transform: translateY(1px); }
.home-toggle svg{ width:30px;height:30px; display:block; }
#HomeLayout {
  margin-top: 8px;
}
@media (max-width: 881px) {
.onlinesy {
  padding: 0 20px;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1px 8px 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.onlinesy span {
  background: #f2f3f5;
  padding: 6px 12px;
  border-radius: 8px;
}
#HomeLayout {
  margin-top: 0;
}
}
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

#main-skeleton {
    width: 100%;
}

/* Чтобы скролл историй был плавным */
#main-skeleton div::-webkit-scrollbar {
    display: none;
}

@media (max-width: 881px) {
    .SkeletonOnlineWrapper {
        display: block !important;
    }
    
    /* Добавляем отступ всему скелету, чтобы фиксированная шапка ничего не перекрывала */
    #main-skeleton {
        padding-top: 48px; 
    }
}

/* Скрываем на десктопах */
@media (min-width: 882px) {
    .SkeletonOnlineWrapper {
        display: none !important;
    }
}