/* =============================================================================
   Zenlai DS · shell — каркас приложения
   Десктоп: графитовая «рейка» навигации на всю высоту слева + верхняя панель
   с крупным заголовком раздела. Телефон: выдвижное меню, плавающий нижний
   док и лаймовая кнопка «+».
   ============================================================================= */

#main-screen {
  min-height: 100vh;
}
.panel {
  position: relative;
}
.app-layout {
  display: block;
}

/* ============================== ВЕРХНЯЯ ПАНЕЛЬ ============================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--topbar-h);
  margin-left: var(--rail-w);
  padding: 0 var(--s-10);
  /* плотный фон вместо размытия: шапка при прокрутке не пересчитывает blur */
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid transparent;
  transition: margin-left var(--t-slow) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
body.is-scrolled .header {
  border-bottom-color: var(--border);
}
#main-screen:has(.sidebar.collapsed) .header,
#main-screen:has(.sidebar.collapsed) #expired-banner {
  margin-left: var(--rail-w-collapsed);
}
.header-left {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
/* на десктопе бренд живёт в рейке — в шапке только заголовок раздела */
.header-left .hdr-brand,
.hdr-section-sep {
  display: none;
}
/* в шапке — «хлебные крошки» биркой; крупный заголовок живёт в контенте */
.hdr-section-title {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-section-title::before {
  content: "Zenlai\00a0\00a0/\00a0\00a0";
  color: var(--text-3);
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hdr-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.hdr-icon-btn:hover {
  border-color: var(--text);
}
.hdr-icon-btn:active {
  transform: scale(0.96);
}
.hdr-icon-btn .icon {
  width: 20px;
  height: 20px;
}
.hdr-burger {
  display: none;
}
.hdr-create {
  display: none;
}
body.can-create .hdr-create {
  display: inline-flex;
}
.hdr-news-label {
  white-space: nowrap;
}
.news-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 4px / 5px;
  background: var(--signal);
  border: 2px solid var(--bg);
}
.hdr-beta-btn {
  background: var(--signal-soft);
  border-color: var(--signal);
  color: var(--signal-ink);
}
.notif-btn-wrap {
  position: relative;
  display: inline-flex;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 7px / 8px;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
#online-indicator {
  font-size: 0 !important;
}

/* скачать для Android — вторичная кнопка с фирменным зелёным логотипом */
.android-dl {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease-out);
}
.android-dl:hover {
  border-color: var(--text);
}
.android-dl .icon {
  width: 20px;
  height: 20px;
  color: #2b9d5c;
  --icon-duo: #3ddc84;
}
/* «скоро в RuStore» — метка на кнопке-заглушке */
.android-soon {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-size: 11px;
  font-weight: 600;
}
html.in-android-app .android-dl,
html.is-ios .android-dl {
  display: none !important;
}

/* меню пользователя */
.hdr-user-menu {
  position: relative;
}
.hdr-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 8px 0 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}
.hdr-user-trigger:hover {
  border-color: var(--text);
}
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 180px;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-badge::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px / 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23131416' d='M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--accent);
}
.hdr-user-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  transition: transform var(--t-base) var(--ease-out);
}
.hdr-user-menu:has(.hdr-user-dropdown.open) .hdr-user-chevron {
  transform: rotate(180deg);
}
.hdr-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-modal);
  display: none;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
}
.hdr-user-dropdown.open {
  display: block;
  animation: ds-pop-in var(--t-base) var(--ease-out);
}
.hdr-menu-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
#btn-feedback.hdr-menu-item {
  display: flex !important;
}
.hdr-menu-item:hover {
  background: var(--surface-alt);
}
.hdr-menu-item .icon {
  width: 18px;
  height: 18px;
}
.hdr-menu-item--danger {
  color: var(--error);
}
.hdr-menu-item--danger:hover {
  background: var(--error-soft);
}
.hdr-menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}

/* ============================== РЕЙКА НАВИГАЦИИ ============================== */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-rail);
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: var(--s-4) var(--s-3) var(--s-3);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--rail-bg);
  color: var(--rail-text);
  border-right: 1px solid var(--rail-border);
  scrollbar-color: #3a3b40 transparent;
  transition: width var(--t-slow) var(--ease-out);
  /* иконки в рейке: второй слой duotone приглушённый */
  --icon-duo: var(--rail-text);
  --icon-duo-opacity: 0.25;
}
/* фирменный знак */
.rail-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 6px var(--s-4);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--rail-border);
  text-decoration: none;
}
.rail-brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px / 14px;
  background: var(--accent);
  color: var(--on-accent);
}
.rail-brand-mark svg {
  width: 24px;
  height: 24px;
}
.rail-brand-text {
  display: grid;
  line-height: 1.05;
  white-space: nowrap;
}
.rail-brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--rail-text-strong);
}
.rail-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: var(--rail-label);
}
.sidebar-toggle {
  position: absolute;
  top: 22px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px / 10px;
  background: transparent;
  color: var(--rail-label);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.sidebar-toggle:hover {
  background: var(--rail-hover);
  color: var(--rail-text-strong);
}
.sidebar-toggle .icon {
  width: 18px;
  height: 18px;
}
.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.sidebar-group {
  margin-bottom: var(--s-4);
}
.sidebar-group-label {
  padding: 0 10px;
  margin-bottom: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: var(--rail-label);
  white-space: nowrap;
}
.sidebar-item,
.sidebar .tab-btn.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  margin-bottom: 2px;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--rail-text);
  box-shadow: none;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 550;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.sidebar-item .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.sidebar-item .label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-item:hover {
  background: var(--rail-hover);
  color: var(--rail-text-strong);
}
.sidebar-item.active,
.sidebar .tab-btn.sidebar-item.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: none;
  --icon-duo: var(--on-accent);
  --icon-duo-opacity: 0.22;
}
.sidebar-item .beta-mark {
  margin-left: auto;
}
.sidebar-settings-group {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rail-border);
}

/* свёрнутая рейка */
@media (min-width: 901px) {
  .sidebar.collapsed {
    width: var(--rail-w-collapsed);
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar.collapsed .rail-brand-text,
  .sidebar.collapsed .sidebar-group-label,
  .sidebar.collapsed .sidebar-item .label {
    display: none;
  }
  .sidebar.collapsed .rail-brand {
    justify-content: center;
    padding: 0 0 var(--s-4);
    margin-top: 40px;
  }
  .sidebar.collapsed .sidebar-toggle {
    right: 50%;
    transform: translateX(50%);
  }
  .sidebar.collapsed .sidebar-group {
    margin-bottom: var(--s-3);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--rail-border);
  }
  .sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 0;
  }
  .sidebar.collapsed .sidebar-item .beta-mark {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
  }
  .sidebar.collapsed .sidebar-item .beta-mark .icon {
    display: none;
  }
}

.sidebar-backdrop {
  display: none;
}
.drawer-head {
  display: none;
}

/* ============================== КОНТЕНТ ============================== */
.panel-content {
  min-width: 0;
  margin-left: var(--rail-w);
  padding: var(--s-4) var(--s-10) var(--s-16);
  transition: margin-left var(--t-slow) var(--ease-out);
}
#main-screen:has(.sidebar.collapsed) .panel-content {
  margin-left: var(--rail-w-collapsed);
}
.panel-content > .tab-content {
  max-width: var(--content-max);
}
#expired-banner {
  margin: var(--s-4) var(--s-10) 0 calc(var(--rail-w) + var(--s-10)) !important;
  border-radius: var(--r-lg) !important;
  border: 1.5px solid var(--signal) !important;
  background: var(--signal-soft) !important;
  box-shadow: none !important;
}

/* ============================== НИЖНИЙ ДОК / FAB ============================== */
.bottom-nav,
.fab-create {
  display: none;
}

/* ============================== ПЛАНШЕТ И ТЕЛЕФОН ============================== */
@media (max-width: 900px) {
  .header {
    margin-left: 0 !important;
    padding: 0 var(--s-4);
    height: 64px;
  }
  .hdr-burger {
    display: inline-flex;
  }
  .header-left .hdr-brand {
    display: none;
  }
  .panel-content {
    margin-left: 0 !important;
    padding: var(--s-2) var(--s-4) var(--s-12);
  }
  #expired-banner {
    margin: var(--s-3) var(--s-4) 0 !important;
  }

  .sidebar {
    width: min(320px, 86vw) !important;
    padding: calc(env(safe-area-inset-top, 0px) + var(--s-4)) var(--s-3)
      calc(env(safe-area-inset-bottom, 0px) + var(--s-3)) !important;
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow);
    box-shadow: 24px 0 60px -20px rgba(0, 0, 0, 0.6);
  }
  .sidebar.mobile-open {
    transform: none;
    visibility: visible;
  }
  .sidebar .sidebar-toggle {
    display: none;
  }
  .sidebar .rail-brand {
    display: none;
  }
  .drawer-head {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 0 4px var(--s-4) 6px;
    margin-bottom: var(--s-3);
    border-bottom: 1px solid var(--rail-border);
  }
  .drawer-head-text {
    flex: 1;
    min-width: 0;
  }
  .drawer-brand {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--rail-text-strong);
  }
  .drawer-user {
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rail-label);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .drawer-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rail-border);
    border-radius: 12px / 14px;
    background: none;
    color: var(--rail-text);
    cursor: pointer;
  }
  .sidebar .sidebar-item {
    min-height: 48px;
    font-size: var(--fs-lg);
  }
  .sidebar-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: var(--z-backdrop);
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-slow) var(--ease-out);
  }
  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
  body.drawer-open {
    overflow: hidden;
  }
  body.drawer-open .bottom-nav,
  body.drawer-open .fab-create {
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
    gap: var(--s-2);
    padding: 0 var(--s-3);
  }
  .header-right {
    gap: 6px;
  }
  body.can-create .hdr-create,
  .hdr-news-label,
  .hdr-android-dl .android-dl-label,
  .hdr-android-dl .android-soon,
  .user-badge {
    display: none;
  }
  .hdr-user-trigger {
    padding: 0 4px;
  }
  .hdr-user-trigger::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 9px / 10px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23131416' d='M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z'/%3E%3C/svg%3E")
        center / 16px no-repeat,
      var(--accent);
  }
  .hdr-user-chevron {
    display: none;
  }
  .hdr-icon-btn,
  .android-dl,
  .hdr-user-trigger {
    height: 38px;
    min-width: 38px;
  }
  .hdr-android-dl {
    padding: 0 9px;
  }
  .panel-content {
    padding-bottom: 120px;
  }
  body.can-create .panel-content {
    padding-bottom: 120px;
  }

  /* нижняя панель: прижата к низу во всю ширину, «Создать» — в центре
     (ui-enhance.js: buildBottomNav), видна всегда */
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bottom-nav);
    display: flex;
    align-items: flex-end;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    border-radius: 20px 20px 0 0;
    background: var(--rail-bg);
    box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.55);
    transition: transform var(--t-slow) var(--ease-out);
    --icon-duo: var(--rail-text);
    --icon-duo-opacity: 0.25;
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 50px;
    padding: 4px 2px;
    border: 0;
    border-radius: var(--r-lg);
    background: none;
    color: var(--rail-text);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease-out);
  }
  .bottom-nav-item .icon {
    width: 22px;
    height: 22px;
    padding: 0;
    box-sizing: content-box;
    border-radius: 10px;
    transition: background-color var(--t-fast) var(--ease-out);
  }
  /* текущий раздел: значок на салатовой плашке, подпись светлее */
  .bottom-nav-item.active {
    color: var(--rail-text-strong, #fff);
    --icon-duo: var(--on-accent);
    --icon-duo-opacity: 0.22;
  }
  .bottom-nav-item.active .icon {
    padding: 3px 14px;
    margin: -3px 0;
    background: var(--accent);
    color: var(--on-accent);
  }
  .bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* «Создать наряд» в центре панели: приподнятая салатовая кнопка */
  .bottom-nav-create {
    flex: 0 0 64px;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .bottom-nav-create span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-top: -22px;
    border: 3px solid var(--rail-bg);
    border-radius: 18px / 20px;
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
    transition: transform var(--t-base) var(--ease-spring);
    --icon-duo: var(--on-accent);
    --icon-duo-opacity: 0.2;
  }
  .bottom-nav-create:active span {
    transform: scale(0.92);
  }
  .bottom-nav-create .icon {
    width: 26px;
    height: 26px;
  }
  /* отдельная плавающая «+» на телефоне не нужна — она в панели */
  body.can-create .fab-create {
    display: none;
  }
}

@media (max-width: 420px) {
  .hdr-news-btn,
  #btn-beta-header {
    display: none !important;
  }
}

/* на телефоне в шапке только название раздела — без «Zenlai /» */
@media (max-width: 768px) {
  .hdr-section-title::before {
    content: none;
  }
  .hdr-section-title {
    font-size: 10.5px;
  }
}

/* ============================== ТЕЛЕФОН: БЕЗ ВЕРХНЕЙ ПАНЕЛИ ==============================
   Меню, уведомления и профиль — в нижней панели и в меню «Ещё» (ui-enhance.js:
   ensureDrawerAccount); экран целиком под содержимое. */
.drawer-account {
  display: none;
}
@media (max-width: 768px) {
  .header {
    display: none !important;
  }
  .panel-content {
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--s-4)) !important;
  }
  .drawer-account {
    display: grid;
  }
  /* длинное меню прокручивается целиком, а не сжимает пункты друг на друга */
  .sidebar.mobile-open > * {
    flex-shrink: 0;
  }
  /* список пунктов — по высоте содержимого (на компьютере он тянется на остаток
     высоты, и у владельца пункты вылезали поверх нижнего блока) */
  .sidebar.mobile-open > .sidebar-nav {
    flex: 0 0 auto;
    height: auto;
  }
  /* быстрые кнопки сверху меню: уведомления, Wiki, тема */
  .drawer-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: var(--s-4);
  }
  .drawer-quick-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 4px;
    border: 1px solid var(--rail-border);
    border-radius: var(--r-lg);
    background: var(--rail-hover);
    color: var(--rail-text-strong);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .drawer-quick-btn span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .drawer-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--signal);
    color: var(--on-signal, #131416);
    font-size: 11px;
    line-height: 18px;
  }
  .drawer-badge[hidden] {
    display: none;
  }
  /* внизу меню: «Что нового?», тестовые модули, Android, обратная связь, выход */
  .drawer-more {
    gap: 2px;
    margin-top: var(--s-4);
    padding-top: var(--s-3);
    border-top: 1px solid var(--rail-border);
  }
  .drawer-more-btn {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 46px;
    padding: 0 var(--s-3);
    border: 0;
    border-radius: var(--r-md);
    background: none;
    color: var(--rail-text);
    font-size: var(--fs-lg);
    text-align: left;
    cursor: pointer;
  }
  .drawer-more-btn:active {
    background: var(--rail-hover);
  }
  .drawer-more-btn.has-dot span::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--signal);
    vertical-align: middle;
  }
  .drawer-logout {
    color: #ff7b6b;
  }
  /* непрочитанные уведомления — точка на «Ещё» */
  .bottom-nav-more {
    position: relative;
  }
  .bottom-nav-more.has-badge::after {
    content: "";
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    width: 9px;
    height: 9px;
    border: 2px solid var(--rail-bg);
    border-radius: 50%;
    background: var(--signal);
  }
}
