body.is-app-shell,
body.is-shell-host {
  --shell-w-expanded: 248px;
  --shell-w-rail: 64px;
  --shell-w: 248px;
}

/* Свёрнуто: узкая полоса с иконками. */
html.is-shell-collapsed body.is-app-shell,
html.is-shell-collapsed body.is-shell-host {
  --shell-w: var(--shell-w-rail, 64px);
}

body.is-shell-host {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--b24-bg, #f6f6f3);
  color: var(--b24-text, #19191c);
}

.app-pane {
  position: fixed;
  top: 0;
  left: var(--shell-w, 248px);
  width: calc(100vw - var(--shell-w, 248px));
  height: 100vh;
  border: 0;
  background: var(--b24-bg, #fff);
}

body.is-shell-host {
  --shell-tabs-h: 52px;
}

body.is-shell-host .app-pane {
  top: var(--shell-tabs-h);
  height: calc(100vh - var(--shell-tabs-h));
}

html.is-shell-embed #app-shell,
html.is-shell-embed .app-shell-hotzone,
html.is-shell-embed .b24-tabs-bar,
html.is-shell-embed .eco-nav,
html.is-shell-embed #ecolife-auth {
  display: none !important;
}

html.is-shell-embed,
html.is-shell-embed body {
  width: 100%;
  height: 100%;
  margin: 0;
}

html.is-shell-embed .b24-wrap,
html.is-shell-embed .crm-tasks,
html.is-shell-embed .crm-chats,
html.is-shell-embed .crm-users,
html.is-shell-embed body.is-app-shell .b24-wrap,
html.is-shell-embed body.is-app-shell .crm-tasks,
html.is-shell-embed body.is-app-shell .crm-chats,
html.is-shell-embed body.is-app-shell .crm-users {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* Чаты и пользователи — на весь viewport со внутренним скроллом;
   задачи/сделки — по контенту, без обрезки канбана */
html.is-shell-embed .crm-chats,
html.is-shell-embed .crm-users,
html.is-shell-embed body.is-app-shell .crm-chats,
html.is-shell-embed body.is-app-shell .crm-users {
  height: 100% !important;
  min-height: 0 !important;
}

html.is-shell-embed .crm-tasks,
html.is-shell-embed body.is-app-shell .crm-tasks {
  min-height: 100% !important;
  height: auto !important;
}

body.is-app-shell .b24-wrap {
  margin-left: var(--shell-w);
  height: 100vh;
}

body.is-app-shell .b24-tabs-bar__tabs,
body.is-app-shell .eco-nav,
body.is-app-shell .b24-tabs-bar {
  display: none !important;
}

body.is-shell-host,
.app-shell {
  font-family: Manrope, Inter, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-shell {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--shell-w, 248px);
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  color: #19191c;
  border-right: 1px solid #ebebeb;
  box-sizing: border-box;
  overflow: hidden;
  transition: width 0.2s ease;
}

.app-pane,
.app-shell,
.app-shell-tabs,
body.is-app-shell .b24-wrap,
body.is-app-shell .crm-tasks,
body.is-app-shell .crm-chats,
body.is-app-shell .crm-users {
  transition: left 0.2s ease, width 0.2s ease, margin-left 0.2s ease, top 0.2s ease, height 0.2s ease;
}

/* Клик по «свернуть»: меню и контент сдвигаются в том же кадре, без слайда. */
html.is-shell-no-motion .app-shell,
html.is-shell-no-motion .app-shell-tabs,
html.is-shell-no-motion .app-pane,
html.is-shell-no-motion body.is-app-shell .b24-wrap,
html.is-shell-no-motion body.is-app-shell .crm-tasks,
html.is-shell-no-motion body.is-app-shell .crm-chats,
html.is-shell-no-motion body.is-app-shell .crm-users {
  transition: none !important;
}

/* Hotzone не нужна: rail сам принимает hover. */
.app-shell-hotzone {
  display: none !important;
}

/* Наведение на свёрнутый rail — раскрытие оверлеем поверх контента. */
html.is-shell-collapsed.is-shell-peek .app-shell {
  width: var(--shell-w-expanded, 248px);
  box-shadow: 8px 0 28px rgba(25, 25, 28, 0.14);
  z-index: 50;
}

html.is-theme-nocturne.is-shell-collapsed.is-shell-peek .app-shell {
  box-shadow: var(--noct-shadow-shell, 8px 0 28px rgba(0, 0, 0, 0.5));
}

/* ——— Свёрнутый rail (без peek): только иконки ——— */
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__brand {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 8px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__brand-main {
  justify-content: center;
  padding: 6px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__brand-name,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__section-label:not(.app-shell__section-label_row),
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__section-label_row > span,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__item-label,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__badge,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__mark,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-hint,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-remove,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__user-meta,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__footer-lead,
html.is-shell-collapsed:not(.is-shell-peek) .app-shell__bell-count {
  display: none !important;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__section-label_row {
  justify-content: center;
  padding: 4px 0 6px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__nav {
  padding: 4px 6px 8px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__item {
  justify-content: center;
  padding: 10px 0;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__item-main {
  justify-content: center;
  gap: 0;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-row {
  justify-content: center;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-row .app-shell__item {
  flex: 0 0 auto;
  width: 100%;
}

html.is-shell-collapsed .app-shell__pin-picker {
  left: calc(100% + 6px);
  right: auto;
  width: 220px;
  min-width: 220px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__footer {
  padding: 8px 6px 12px;
  align-items: center;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__theme-row {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  width: 100%;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__theme-switch {
  flex-direction: column;
  padding: 3px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__theme-seg {
  width: 26px;
  height: 26px;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__footer-item {
  justify-content: center;
  padding: 10px 0;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__bell-dot {
  top: 10px;
  left: calc(50% + 6px);
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__profile-row {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__user {
  justify-content: center;
  padding: 4px;
  width: 100%;
}

html.is-shell-collapsed:not(.is-shell-peek) .app-shell__avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.app-shell__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 16px 12px 12px;
  border-bottom: 0;
}

.app-shell__brand-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.app-shell__collapse {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64646d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.app-shell__collapse:hover {
  background: #e8e8e4;
  color: #19191c;
}

.app-shell__brand-main,
a.app-shell__brand-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 4px 6px 4px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-shell__brand-main:hover {
  background: #ececec;
}

.app-shell__brand-main:focus-visible {
  outline: 2px solid #22aa79;
  outline-offset: 1px;
}

.app-shell__logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.app-shell__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-shell__brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.app-shell__nav {
  flex: 1 1 auto;
  overflow: auto;
  padding: 4px 10px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-shell__nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.app-shell__block + .app-shell__block {
  margin-top: 14px;
}

.app-shell__section-label {
  padding: 4px 10px 8px;
  color: #9a9aa3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.app-shell__section-label_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 4px;
}

.app-shell__pin-add {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9a9aa3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.app-shell__pin-add:hover {
  background: #ececec;
  color: #19191c;
}

.app-shell__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-shell__item,
a.app-shell__item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.app-shell__item-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-shell__item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell__item:hover {
  background: #ececec;
}

.app-shell__item.is-active {
  background: #e8e8e8;
  color: #19191c;
  font-weight: 600;
  box-shadow: none;
}

.app-shell__item.is-active .app-shell__icon,
.app-shell__item:hover .app-shell__icon {
  color: #19191c;
}

.app-shell__badge {
  flex: 0 0 auto;
  margin-left: auto;
  color: #9a9aa3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.app-shell__pin-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-shell__pin-row .app-shell__item {
  flex: 1 1 auto;
}

.app-shell__pin-remove {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9aa3;
  font-size: 14px;
  opacity: 0;
  cursor: pointer;
}

.app-shell__pin-row:hover .app-shell__pin-remove,
.app-shell__pin-remove:focus-visible {
  opacity: 1;
}

.app-shell__pin-remove:hover {
  background: #ececec;
  color: #19191c;
}

.app-shell__pin-hint {
  padding: 6px 10px 8px;
  color: #9a9aa3;
  font-size: 12px;
  line-height: 1.35;
}

.app-shell__pin-picker {
  position: absolute;
  z-index: 8;
  left: 10px;
  right: 10px;
  margin-top: 4px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 25, 28, 0.12);
}

.app-shell__block {
  position: relative;
}

.app-shell__pin-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.app-shell__pin-option:hover,
.app-shell__pin-option.is-on {
  background: #f0f0ed;
}

.app-shell__pin-empty {
  padding: 8px 10px;
  color: #9a9aa3;
  font-size: 12px;
}

.app-shell__group + .app-shell__group {
  margin-top: 8px;
}

.app-shell__group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #92929b;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.app-shell__group-btn:hover {
  background: #e8e8e4;
  color: #19191c;
}

.app-shell__module[hidden] {
  display: none !important;
}

/* «Обслуживание» — служебный тон, чуть иначе, чем обычные модули */
.app-shell__module.app-shell__module_service {
  color: #5c4a2e;
  background: linear-gradient(90deg, #f4ebe0 0%, transparent 72%);
  box-shadow: inset 3px 0 0 #c4a06a;
}
.app-shell__module.app-shell__module_service .app-shell__icon {
  color: #9a7340;
}
.app-shell__module.app-shell__module_service:hover,
.app-shell__module.app-shell__module_service.is-active {
  background: linear-gradient(90deg, #efe2d0 0%, #f7f3ec 70%);
  color: #3f321f;
}
.app-shell__module.app-shell__module_service.is-active {
  box-shadow: inset 3px 0 0 #a67c3d;
  font-weight: 600;
}
.app-shell__group_service > .app-shell__group-btn {
  color: #8a6a3a;
}
.app-shell__group_service > .app-shell__group-btn:hover {
  background: #f3ebe0;
  color: #5c4a2e;
}

html.is-theme-nocturne .app-shell__module.app-shell__module_service {
  color: #e8d5b5;
  background: linear-gradient(90deg, rgba(196, 160, 106, 0.18) 0%, transparent 72%);
  box-shadow: inset 3px 0 0 #c4a06a;
}
html.is-theme-nocturne .app-shell__module.app-shell__module_service .app-shell__icon {
  color: #d4b07a;
}
html.is-theme-nocturne .app-shell__module.app-shell__module_service:hover,
html.is-theme-nocturne .app-shell__module.app-shell__module_service.is-active {
  background: linear-gradient(90deg, rgba(196, 160, 106, 0.28) 0%, rgba(26, 30, 38, 0.6) 70%);
  color: #f0e4cc;
}

.app-shell-tabs {
  --tab-bar-bg: #e8ecef;
  --tab-active-bg: #fff;
  --tab-curve: 10px;
  position: fixed;
  z-index: 35;
  top: 0;
  left: var(--shell-w, 248px);
  right: 0;
  height: var(--shell-tabs-h, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 12px 0;
  background: var(--tab-bar-bg);
  border-bottom: 1px solid #dfe3e6;
  box-sizing: border-box;
}

.app-shell-tabs[hidden] {
  display: none !important;
}

.app-shell-tabs__list {
  display: flex;
  align-items: flex-end;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-shell-tabs__list::-webkit-scrollbar {
  display: none;
}

.app-shell-tab,
a.app-shell-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  margin: 0;
  padding: 8px 14px 9px;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: #5f6368;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.15s ease;
  box-shadow: none;
}

.app-shell-tab:hover,
.app-shell-tab:not(.is-active):hover {
  background: transparent;
  border-color: transparent;
  color: #202124;
}

.app-shell-tab.is-active,
.app-shell-tab.is-active:hover {
  z-index: 2;
  background: var(--tab-active-bg);
  border-color: transparent;
  color: #2066b0;
  font-weight: 600;
  margin-bottom: -1px;
  padding-bottom: 10px;
  border-radius: var(--tab-curve) var(--tab-curve) 0 0;
  box-shadow: none;
}

.app-shell-tab.is-active::before,
.app-shell-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--tab-curve);
  height: var(--tab-curve);
  background: var(--tab-bar-bg);
  pointer-events: none;
}

.app-shell-tab.is-active::before {
  left: calc(-1 * var(--tab-curve));
  border-bottom-right-radius: var(--tab-curve);
  box-shadow: 5px 0 0 0 var(--tab-active-bg);
}

.app-shell-tab.is-active::after {
  right: calc(-1 * var(--tab-curve));
  top: auto;
  border-bottom-left-radius: var(--tab-curve);
  box-shadow: -5px 0 0 0 var(--tab-active-bg);
}

.app-shell-tab:focus {
  outline: none;
}

.app-shell-tab:focus-visible:not(.is-active) {
  color: #202124;
}

.app-shell-tab:focus-visible {
  outline: none;
}

.app-shell-tab__title {
  font-weight: inherit;
}

.app-shell-tab__count {
  color: #9a9aa3;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.app-shell-tab__count[hidden] {
  display: none !important;
}

.app-shell-tab.is-active .app-shell-tab__count {
  color: #5f7a9a;
}

.app-shell-tabs__more {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.app-shell-tabs__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 5;
  min-width: 196px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(25, 25, 28, 0.12);
}

.app-shell-tabs__menu[hidden] {
  display: none !important;
}

.app-shell-tabs__item,
a.app-shell-tabs__item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.app-shell-tabs__item:hover,
.app-shell-tabs__item.is-active {
  background: #f0f0ed;
}

.app-shell__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}

.app-shell__group.is-collapsed .app-shell__chevron {
  transform: rotate(-45deg);
}

.app-shell__group.is-collapsed .app-shell__sections {
  display: none;
}

.app-shell__section,
a.app-shell__section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: none;
}

/* display:flex выше перебивает UA [hidden] — явно прячем закрытые разделы/группы */
.app-shell__section[hidden],
.app-shell__group[hidden] {
  display: none !important;
}

.app-shell__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-shell__icon {
  flex: 0 0 auto;
  width: 18px;
  font-size: 18px;
  line-height: 1;
  color: #6b7280;
}

.app-shell__item .app-shell__icon {
  color: #5f5f68;
}

.app-shell__mark {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-shell__section:hover {
  background: #e8e8e4;
}

.app-shell__section.is-active {
  background: #fff;
  color: #19191c;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(25, 25, 28, 0.04);
}

.app-shell__section.is-active .app-shell__icon,
.app-shell__section:hover .app-shell__icon {
  color: #22aa79;
}

.app-shell__more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-shell__more.is-collapsed .app-shell__chevron {
  transform: rotate(-45deg);
}

.app-shell__more.is-collapsed .app-shell__subsections {
  display: none;
}

.app-shell__subsections .app-shell__section {
  padding-left: 28px;
}

.app-shell__bell {
  position: relative;
}

.app-shell__bell-dot {
  position: absolute;
  top: 10px;
  left: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 2px #f7f7f7;
}

.app-shell__bell-dot[hidden],
.app-shell__bell-count[hidden] {
  display: none !important;
}

.app-shell__theme,
.app-shell__logout {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64646d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.app-shell__theme:hover,
.app-shell__logout:hover {
  background: #ececec;
  color: #19191c;
}

.app-shell__footer-row,
.app-shell__footer-item {
  width: 100%;
}

.app-shell__footer-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #19191c;
  font-size: 14px;
  font-weight: 500;
}

.app-shell__theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  box-sizing: border-box;
}

.app-shell__theme-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #e8e8e8;
}

.app-shell__theme-seg {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a9aa3;
  font-size: 14px;
  cursor: pointer;
}

.app-shell__theme-seg[aria-pressed="true"] {
  background: #fff;
  color: #19191c;
  box-shadow: 0 1px 2px rgba(25, 25, 28, 0.08);
}

.app-shell__profile-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
}

html.is-theme-nocturne .app-shell__collapse:hover {
  background: var(--noct-hover-solid, #1e222b);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__collapse {
  color: var(--noct-icon, var(--noct-neutral-400, #9ca3af));
}


.app-shell__footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 12px;
  border-top: 1px solid #ebebeb;
  background: transparent;
}

.app-shell__user {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

button.app-shell__user,
a.app-shell__user {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

button.app-shell__user:hover,
a.app-shell__user:hover {
  background: #ececec;
}

button.app-shell__user.is-active,
a.app-shell__user.is-active {
  background: #e8e8e8;
}

.app-shell__avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: #7c5cbf;
  overflow: hidden;
}
.app-shell__avatar.has-photo {
  background: transparent;
}
.app-shell__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-shell__user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-shell__user-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell__user-email {
  font-size: 11px;
  color: #92929b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.is-theme-nocturne body.is-shell-host {
  background: var(--noct-bg, #111318);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-pane {
  background: var(--noct-bg, #111318);
}

html.is-theme-nocturne .app-shell {
  background: var(--noct-shell, #0a0c10);
  color: var(--noct-text, #e8eaed);
  border-right: 1px solid var(--noct-shell-border, rgba(255, 255, 255, 0.06));
}

html.is-theme-nocturne .app-shell__brand {
  border-bottom-color: var(--noct-shell-border, rgba(255, 255, 255, 0.06));
}

html.is-theme-nocturne .app-shell__brand-main:hover {
  background: var(--noct-hover-solid, #1e222b);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__group-btn {
  color: var(--noct-neutral-500, #6b7280);
}

html.is-theme-nocturne .app-shell__item.is-active,
html.is-theme-nocturne .app-shell__module.is-active {
  background: var(--noct-nav-active, #1a1e26);
  color: var(--noct-text, #e8eaed);
  box-shadow: inset 3px 0 0 var(--noct-accent, #5b8def);
}

html.is-theme-nocturne .app-shell__item:hover,
html.is-theme-nocturne .app-shell__pin-add:hover,
html.is-theme-nocturne .app-shell__pin-remove:hover,
html.is-theme-nocturne .app-shell__theme-row:hover {
  background: var(--noct-hover-solid, #1e222b);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__section-label,
html.is-theme-nocturne .app-shell__badge,
html.is-theme-nocturne .app-shell__pin-hint,
html.is-theme-nocturne .app-shell__pin-add,
html.is-theme-nocturne .app-shell__pin-empty {
  color: var(--noct-neutral-500, #6b7280);
}

html.is-theme-nocturne .app-shell__pin-picker {
  background: var(--noct-surface, #171a21);
  border-color: var(--noct-shell-border, rgba(255, 255, 255, 0.06));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html.is-theme-nocturne .app-shell__pin-option {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__pin-option:hover,
html.is-theme-nocturne .app-shell__pin-option.is-on {
  background: var(--noct-hover-solid, #1e222b);
}

html.is-theme-nocturne .app-shell__theme-switch {
  background: var(--noct-hover-solid, #1e222b);
}

html.is-theme-nocturne .app-shell__theme-seg {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .app-shell__theme-seg[aria-pressed="true"] {
  background: var(--noct-surface, #171a21);
  color: var(--noct-text, #e8eaed);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html.is-theme-nocturne .app-shell__bell-dot {
  box-shadow: 0 0 0 2px var(--noct-shell, #0a0c10);
}

html.is-theme-nocturne .app-shell__item .app-shell__icon {
  color: var(--noct-icon, var(--noct-neutral-400, #9ca3af));
}

html.is-theme-nocturne .app-shell__item.is-active .app-shell__icon,
html.is-theme-nocturne .app-shell__item:hover .app-shell__icon {
  color: var(--noct-accent, #5b8def);
}

html.is-theme-nocturne .app-shell-tabs {
  --tab-bar-bg: var(--noct-surface, #171a21);
  --tab-active-bg: var(--noct-bg, #111318);
  background: var(--tab-bar-bg);
  border-bottom-color: color-mix(in srgb, var(--noct-text, #e8eaed) 12%, transparent);
}

html.is-theme-nocturne .app-shell-tab {
  background: transparent;
  border-color: transparent;
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .app-shell-tab:hover,
html.is-theme-nocturne .app-shell-tab:not(.is-active):hover {
  background: transparent;
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell-tab.is-active,
html.is-theme-nocturne .app-shell-tab.is-active:hover {
  background: var(--tab-active-bg);
  border-color: transparent;
  color: var(--noct-accent, #5b8def);
  box-shadow: none;
}

html.is-theme-nocturne .app-shell-tab__count,
html.is-theme-nocturne .app-shell-tab.is-active .app-shell-tab__count {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .app-shell-tabs__menu {
  background: var(--noct-surface, #171a21);
  border-color: var(--noct-shell-border, rgba(255, 255, 255, 0.06));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html.is-theme-nocturne .app-shell-tabs__item {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell-tabs__item:hover,
html.is-theme-nocturne .app-shell-tabs__item.is-active {
  background: var(--noct-hover-solid, #1e222b);
}

html.is-theme-nocturne .app-shell__group-btn:hover,
html.is-theme-nocturne .app-shell__section:hover,
html.is-theme-nocturne .app-shell__theme:hover,
html.is-theme-nocturne .app-shell__logout:hover,
html.is-theme-nocturne .app-shell__collapse:hover,
html.is-theme-nocturne .app-shell__footer-item:hover,
html.is-theme-nocturne button.app-shell__user:hover,
html.is-theme-nocturne button.app-shell__user.is-active,
html.is-theme-nocturne a.app-shell__user:hover,
html.is-theme-nocturne a.app-shell__user.is-active {
  background: var(--noct-hover-solid, #1e222b);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__section {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .app-shell__icon {
  color: var(--noct-icon, var(--noct-neutral-400, #9ca3af));
}

/* Активный пункт: приподнятый фон + синий rail слева (Figma dark). */
html.is-theme-nocturne .app-shell__section.is-active {
  background: var(--noct-nav-active, #1a1e26);
  color: var(--noct-text, #e8eaed);
  box-shadow: inset 3px 0 0 var(--noct-accent, #5b8def);
}

html.is-theme-nocturne .app-shell__section.is-active .app-shell__icon,
html.is-theme-nocturne .app-shell__section:hover .app-shell__icon {
  color: var(--noct-accent, #5b8def);
}

html.is-theme-nocturne .app-shell__mark {
  background: rgba(255, 196, 84, 0.16);
  color: #f0c36a;
}

html.is-theme-nocturne .app-shell__theme,
html.is-theme-nocturne .app-shell__logout {
  color: var(--noct-icon, var(--noct-neutral-400, #9ca3af));
}

html.is-theme-nocturne .app-shell__footer {
  background: var(--noct-shell-footer, #07090d);
  border-top-color: var(--noct-shell-border, rgba(255, 255, 255, 0.06));
}

html.is-theme-nocturne .app-shell__avatar {
  background: var(--noct-brand, #22aa79);
}

html.is-theme-nocturne .app-shell__user-email {
  color: var(--noct-neutral-400, #9ca3af);
}

.tk-fab {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #19191c;
  color: #fff;
  font: 600 14px/1 Inter, "Open Sans", sans-serif;
  box-shadow: 0 10px 28px rgba(25, 25, 28, 0.22);
  cursor: pointer;
}

.tk-fab::before {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.tk-fab:hover {
  background: #2c2c31;
}

.tk-fab:disabled {
  opacity: 0.6;
  cursor: default;
}

body.tk-modal-open .tk-fab {
  display: none;
}

html.is-theme-nocturne .tk-fab {
  background: var(--noct-card, #1a1d24);
  color: var(--noct-text, #e8eaed);
  box-shadow: var(--noct-shadow-md, 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.45));
}

html.is-theme-nocturne .tk-fab:hover {
  background: var(--noct-card-hover, #1f232c);
}

/* Разделы внутри карточки — классические «папочные» вкладки как в старом Биллинге. */
.b24-wrap .b24-tabs-bar,
.b24-card > .b24-tabs-bar,
.b24-tabs-bar {
  --tab-bar-bg: #e8ecef;
  --tab-active-bg: #fff;
  --tab-curve: 10px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px 0;
  background: var(--tab-bar-bg);
  border-bottom: 1px solid #dfe3e6;
}

.b24-wrap .b24-tabs-bar__tabs,
.b24-card > .b24-tabs-bar .b24-tabs-bar__tabs,
.b24-tabs-bar__tabs {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.b24-tabs-bar__tabs::-webkit-scrollbar {
  display: none;
}

.b24-tabs-bar .b24-tab-btn[hidden] {
  display: none !important;
}

.b24-wrap .b24-tabs-bar .b24-tab-btn,
.b24-card > .b24-tabs-bar .b24-tab-btn,
.b24-tabs-bar .b24-tab-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  margin: 0;
  padding: 8px 14px 9px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #5f6368;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  box-sizing: border-box;
  transition: color 0.15s ease;
  cursor: pointer;
}

.b24-wrap .b24-tabs-bar .b24-tab-btn:hover,
.b24-wrap .b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover,
.b24-card > .b24-tabs-bar .b24-tab-btn:hover,
.b24-card > .b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover,
.b24-tabs-bar .b24-tab-btn:hover,
.b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover {
  background: transparent;
  border-color: transparent;
  color: #202124;
}

.b24-wrap .b24-tabs-bar .b24-tab-btn--active,
.b24-wrap .b24-tabs-bar .b24-tab-btn--active:hover,
.b24-card > .b24-tabs-bar .b24-tab-btn--active,
.b24-card > .b24-tabs-bar .b24-tab-btn--active:hover,
.b24-tabs-bar .b24-tab-btn--active,
.b24-tabs-bar .b24-tab-btn--active:hover {
  z-index: 2;
  margin: 0 0 -1px;
  padding: 8px 14px 10px;
  border-radius: var(--tab-curve) var(--tab-curve) 0 0;
  background: var(--tab-active-bg);
  border-color: transparent;
  color: #2066b0;
  font-weight: 600;
}

.b24-wrap .b24-tabs-bar .b24-tab-btn--active::before,
.b24-wrap .b24-tabs-bar .b24-tab-btn--active::after,
.b24-card > .b24-tabs-bar .b24-tab-btn--active::before,
.b24-card > .b24-tabs-bar .b24-tab-btn--active::after,
.b24-tabs-bar .b24-tab-btn--active::before,
.b24-tabs-bar .b24-tab-btn--active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  width: var(--tab-curve);
  height: var(--tab-curve);
  background: var(--tab-bar-bg);
  pointer-events: none;
  opacity: 1;
}

.b24-wrap .b24-tabs-bar .b24-tab-btn--active::before,
.b24-card > .b24-tabs-bar .b24-tab-btn--active::before,
.b24-tabs-bar .b24-tab-btn--active::before {
  left: calc(-1 * var(--tab-curve));
  border-bottom-right-radius: var(--tab-curve);
  box-shadow: 5px 0 0 0 var(--tab-active-bg);
}

.b24-wrap .b24-tabs-bar .b24-tab-btn--active::after,
.b24-card > .b24-tabs-bar .b24-tab-btn--active::after,
.b24-tabs-bar .b24-tab-btn--active::after {
  right: calc(-1 * var(--tab-curve));
  top: auto;
  border-bottom-left-radius: var(--tab-curve);
  box-shadow: -5px 0 0 0 var(--tab-active-bg);
}

.b24-tabs-bar .b24-tab-btn:focus {
  outline: none;
}

.b24-tabs-bar .b24-tab-btn:focus-visible:not(.b24-tab-btn--active) {
  color: #202124;
}

.b24-tabs-bar .b24-tab-count,
.b24-tabs-bar .b24-tab-btn--active .b24-tab-count {
  color: #9a9aa3;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.b24-tabs-bar .b24-tab-btn--active .b24-tab-count {
  color: #5f7a9a;
}

.b24-tabs-bar .b24-tab-count[hidden] {
  display: none !important;
}

.b24-tabs-bar .b24-style-toggle {
  margin: 0 0 8px;
  padding: 0;
}

html.is-theme-nocturne .b24-tabs-bar,
html.is-theme-nocturne .b24-card .b24-tabs-bar {
  --tab-bar-bg: var(--noct-surface, #171a21);
  --tab-active-bg: var(--noct-bg, #111318);
  background: var(--tab-bar-bg);
  border-bottom-color: color-mix(in srgb, var(--noct-text, #e8eaed) 12%, transparent);
}

html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn,
html.is-theme-nocturne .b24-card .b24-tabs-bar .b24-tab-btn,
html.is-theme-nocturne .b24-wrap .b24-tabs-bar .b24-tab-btn {
  background: transparent;
  border-color: transparent;
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn:hover,
html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover,
html.is-theme-nocturne .b24-card .b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover,
html.is-theme-nocturne .b24-wrap .b24-tabs-bar .b24-tab-btn:not(.b24-tab-btn--active):hover,
html.is-theme-nocturne .b24-card .b24-tabs-bar .b24-tab-btn:focus-visible:not(.b24-tab-btn--active) {
  background: transparent;
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn--active,
html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn--active:hover,
html.is-theme-nocturne .b24-card .b24-tabs-bar .b24-tab-btn--active,
html.is-theme-nocturne .b24-card .b24-tabs-bar .b24-tab-btn--active:hover,
html.is-theme-nocturne .b24-wrap .b24-tabs-bar .b24-tab-btn--active,
html.is-theme-nocturne .b24-wrap .b24-tabs-bar .b24-tab-btn--active:hover {
  background: var(--tab-active-bg);
  border-color: transparent;
  color: var(--noct-accent, #5b8def);
}

html.is-theme-nocturne .b24-tabs-bar .b24-tab-count,
html.is-theme-nocturne .b24-tabs-bar .b24-tab-btn--active .b24-tab-count {
  color: var(--noct-neutral-400, #9ca3af);
}

/* ---- Mobile / WebView: drawer-меню вместо постоянного сайдбара ---- */
.app-shell-tabs__menu-btn {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #19191c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.app-shell-tabs__menu-btn:hover,
.app-shell-tabs__menu-btn.is-open {
  background: #f0f0ed;
}

.app-shell-tabs__menu-btn:focus-visible {
  outline: 2px solid #22aa79;
  outline-offset: 1px;
}

.app-shell-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body.is-shell-host {
    --shell-w: 0px;
    --shell-tabs-h: calc(52px + env(safe-area-inset-top, 0px));
  }

  html.is-shell-collapsed body.is-shell-host,
  html.is-shell-collapsed.is-shell-peek body.is-shell-host {
    --shell-w: 0px;
  }

  body.is-shell-host .app-pane {
    left: 0;
    width: 100vw;
    top: var(--shell-tabs-h);
    height: calc(100vh - var(--shell-tabs-h));
    height: calc(100dvh - var(--shell-tabs-h));
  }

  body.is-app-shell .b24-wrap,
  body.is-app-shell .crm-tasks,
  body.is-app-shell .crm-chats,
  body.is-app-shell .crm-users {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .app-shell-tabs {
    left: 0;
    right: 0;
    height: var(--shell-tabs-h, 52px);
    padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 0;
    gap: 8px;
    z-index: 45;
  }

  .app-shell-tabs[hidden] {
    display: flex !important;
  }

  .app-shell-tabs__menu-btn {
    display: inline-grid;
    align-self: flex-end;
    margin-bottom: 4px;
  }

  .app-shell-tab,
  a.app-shell-tab {
    height: auto;
    padding: 10px 14px 11px;
    font-size: 14px;
  }

  .app-shell-tab.is-active,
  .app-shell-tab.is-active:hover {
    padding-bottom: 12px;
  }

  .app-shell-tabs__item,
  a.app-shell-tabs__item {
    min-height: 44px;
    padding: 10px 12px;
  }

  .app-shell {
    width: min(320px, 88vw);
    max-width: 100%;
    transform: translateX(-105%);
    z-index: 70;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: none;
    border-right: 1px solid #ebebeb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  html.is-shell-no-motion .app-shell {
    transition: none;
  }

  html.is-shell-drawer-open .app-shell {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(25, 25, 28, 0.18);
  }

  .app-shell-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(17, 19, 24, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  html.is-shell-drawer-open .app-shell-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  html.is-shell-no-motion .app-shell-drawer-backdrop {
    transition: none;
  }

  .app-shell-hotzone,
  .app-shell__collapse {
    display: none !important;
  }

  /* Запас: если класс collapsed остался — в drawer всё равно полные подписи */
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__brand-name,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__section-label:not(.app-shell__section-label_row),
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__section-label_row > span,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__item-label,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__badge,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__mark,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-hint,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__pin-remove,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__user-meta,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__footer-lead,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__bell-count {
    display: revert !important;
  }

  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 12px;
  }

  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__item,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__footer-item,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__user {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__theme-row,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__theme-switch,
  html.is-shell-collapsed:not(.is-shell-peek) .app-shell__profile-row {
    flex-direction: row;
    width: auto;
  }

  .app-shell__section,
  a.app-shell__section,
  .app-shell__item,
  a.app-shell__item,
  .app-shell__footer-item,
  .app-shell__group-btn {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
  }

  .app-shell__brand {
    padding-top: 12px;
  }

  html.is-theme-nocturne .app-shell-tabs {
    background: var(--noct-header, #1c1f28);
    border-bottom-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  }

  html.is-theme-nocturne .app-shell-tabs__menu-btn {
    color: var(--noct-text, #e8eaed);
  }

  html.is-theme-nocturne .app-shell-tabs__menu-btn:hover,
  html.is-theme-nocturne .app-shell-tabs__menu-btn.is-open {
    background: var(--noct-hover-solid, #1e222b);
  }

  html.is-theme-nocturne .app-shell-drawer-backdrop {
    background: rgba(0, 0, 0, 0.55);
  }

  html.is-theme-nocturne.html.is-shell-drawer-open .app-shell {
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }
}
