/**
 * CabinetVue / CloudVue — шаблон Bitrix на Vue
 * Белая (светлая) и чёрная (тёмная) тема
 * Шрифт: Golos Text (Google Fonts, подключение в header.php)
 */

html {
    font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    display: block;
    margin: 0;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* --- Body: белая / чёрная тема --- */
body[data-theme="light"] {
    background: #fff;
}

body[data-theme="dark"],
body:not([data-theme]) {
    background: #000;
}

/* #bx-panel {
    display: none !important;
} */


.home-docs-root-sections__cell {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-docs-root-sections__item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    background: #00000054;
    padding: 20px 24px 18px;
    border-radius: 18px;
    text-align: left;
    width: 260px;
    min-height: 110px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, transform 0.15s;
}

.home-docs-root-sections__item:hover {
    background: rgb(0 0 0 / 40%);
}

.home-docs-root-sections__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.home-docs-root-sections__icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.home-docs-root-sections__icon--svg svg {
    fill: white;
    position: relative;
    left: -9px;
    display: block;
    width: 24px;
    height: 24px;
    color: inherit;
}

.home-docs-root-sections__icon--text {
    font-size: 26px;
    line-height: 1.1;
}

.home-docs-root-sections__link {
    position: static;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
}

body[data-theme="light"] .home-docs-root-sections__item {
    background: rgb(0 0 0 / 6%);
}

body[data-theme="light"] .home-docs-root-sections__item:hover {
    background: rgb(0 0 0 / 10%);
}

body[data-theme="light"] .home-docs-root-sections__link {
    color: var(--cv-text, #1a1a1a) !important;
}


/* --- Переменные: белая тема (светлая) --- */
body[data-theme="light"] .layout {
    --cv-bg: #f5f6f8;
    --cv-surface: #ffffff;
    --cv-border: #e8eaed;
    --cv-text: #1a1a1a;
    --cv-text-muted: #5f6368;
    --cv-sidebar-bg: #ffffff;
    --cv-sidebar-border: #e8eaed;
    --cv-block-bg: rgba(0, 0, 0, 0.05);
    --cv-accent: #2fc6f6;
    --cv-accent-hover: #1eb8e8;
    --cv-support-bg: #f0f7ff;
    --cv-support-text: #1a73e8;
    --cv-link: #1a73e8;
    --cv-link-hover: #1557b0;
    --cv-card-bg: #ffffff;
    --cv-card-border: #e8eaed;
}

/* --- Переменные: чёрная тема (тёмная), по умолчанию --- */
body[data-theme="dark"] .layout,
body:not([data-theme]) .layout {
    --cv-bg: transparent;
    --cv-surface: #1a1a1a;
    --cv-border: #2d2d2d;
    --cv-text: #e4e4e7;
    --cv-text-muted: #a1a1aa;
    --cv-sidebar-bg: transparent;
    --cv-sidebar-border: #ffffff05;
    --cv-block-bg: rgba(255, 255, 255, 0.04);
    --cv-accent: #2fc6f6;
    --cv-accent-hover: #5dd4ff;
    --cv-support-bg: #1e2a3a;
    --cv-support-text: #7eb8f0;
    --cv-link: #7eb8f0;
    --cv-link-hover: #9ecaff;
    --cv-card-bg: #1a1a1a;
    --cv-card-border: #2d2d2d;
}
body::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120px;
    left: 50%;
    width: 1980px;
    height: 600px;
    border-radius: 50%;
    background: #00ceff1a;
    filter: blur(120px);
    transform: translateX(-50%);
}

/* --- Базовый layout: слева left_block, справа content (шапка + main) --- */
.layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    background: var(--cv-bg);
    color: var(--cv-text);
    overflow: hidden;
}

.menu-wrap.menu-wrap--narrow {
    grid-template-columns: 1fr;
    width: 280px;
    min-width: 280px;
}

.menu-wrap.menu-wrap--narrow.menu-wrap--dual {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 8px;
}

.menu-wrap.menu-wrap--narrow.menu-wrap--dual > .lx-section-sidebar__primary.mail-menu {
    grid-column: 1;
    grid-row: 1;
}

.menu-wrap.menu-wrap--narrow.menu-wrap--dual > .lx-section-sidebar__secondary.mail-menu {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
}

.menu-wrap.menu-wrap--contacts {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

/* Контакты, календарь и диск: два столбца в сайдбаре (как «Профиль») */
.menu-wrap.menu-wrap--narrow.menu-wrap--dual.menu-wrap--contacts,
.menu-wrap.menu-wrap--narrow.menu-wrap--dual.menu-wrap--calendar,
.menu-wrap.menu-wrap--narrow.menu-wrap--dual.menu-wrap--disk {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
}

.menu-wrap.menu-wrap--contacts .lx-section-sidebar__secondary.mail-menu .lx-co-side__head--secondary,
.menu-wrap.menu-wrap--calendar .lx-section-sidebar__secondary.mail-menu .lx-co-side__head--secondary,
.menu-wrap.menu-wrap--disk .lx-section-sidebar__secondary.mail-menu .lx-co-side__head--secondary {
    padding: 0 4px 8px 10px;
    margin-bottom: 4px;
}

.menu-wrap.menu-wrap--contacts button.mail-menu__item.lx-co-side__link {
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.menu-wrap.menu-wrap--contacts button.mail-menu__item.lx-co-side__link > span {
    flex: 1;
    text-align: left;
}

.menu-wrap.menu-wrap--contacts .lx-co-side,
.menu-wrap.menu-wrap--calendar .lx-section-sidebar__primary.mail-menu.lx-cal-sidebar,
.menu-wrap.menu-wrap--calendar .lx-section-sidebar__secondary.mail-menu.lx-cal-sidebar-secondary,
.menu-wrap.menu-wrap--disk .lx-section-sidebar__primary.mail-menu.lx-disk-sidebar,
.menu-wrap.menu-wrap--disk .lx-section-sidebar__secondary.mail-menu.lx-disk-sidebar-secondary {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0 6px;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.menu-wrap.menu-wrap--calendar .lx-cal-sidebar__primary-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 2px;
}

.menu-wrap.menu-wrap--disk .lx-disk-sidebar__primary-scroll,
.menu-wrap.menu-wrap--disk .lx-disk-sidebar__secondary-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 2px 8px 0;
}

.menu-wrap.menu-wrap--calendar .lx-co-side__nav {
    flex-shrink: 0;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__head-row,
.menu-wrap.menu-wrap--calendar .lx-co-side__head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.search-block-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__title-main,
.menu-wrap.menu-wrap--calendar .lx-co-side__title-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--cv-text, #e2e8f0);
    line-height: 1.3;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__btn-create,
.menu-wrap.menu-wrap--calendar .lx-co-side__btn-create {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--cv-accent, #2fc6f6);
    color: #0f172a;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__btn-create:hover,
.menu-wrap.menu-wrap--calendar .lx-co-side__btn-create:hover {
    filter: brightness(1.06);
}

.menu-wrap.menu-wrap--contacts .lx-co-side__subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 4px 10px;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted, #94a3b8);
}

.menu-wrap.menu-wrap--contacts .lx-co-side__icon-add {
    width: 28px;
    height: 28px;
    border: 1px solid #ffffff14;
    border-radius: 8px;
    background: transparent;
    color: var(--cv-text, #e2e8f0);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.menu-wrap.menu-wrap--contacts .lx-co-side__icon-add:hover {
    background: rgba(47, 198, 246, 0.12);
}

.menu-wrap.menu-wrap--contacts .lx-co-side__folders-empty {
    display: block;
    padding: 6px 10px 10px;
    font-size: 12px;
    color: var(--cv-text-muted, #64748b);
}


.lx-co-side__head--secondary {
    padding-top: 0;
}

.lx-co-side__head {
    padding: 0 10px 4px;
}

.lx-co-side__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

a.mail-menu__item.lx-co-side__link {
    text-decoration: none;
    box-sizing: border-box;
}

/* Футер в конце колонки .main (не absolute — иначе не «снизу контента», а относительно вьюпорта) */
.footer {
    width: 100%;
    background: black;
    max-width: 100%;
    display: block;
    position: relative;
    bottom: 0px;
    padding-bottom: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 1.25rem 120px 1.75rem;
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.footer a {
    color: white;
    text-decoration: none;
}

body[data-theme="light"] .footer {
    border-top-color: rgb(0 0 0 / 10%);
}

.footer .information {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 30px;
    font-size: 13px;
}

.footer-more {
    position: relative;
    flex-shrink: 0;
}

.footer-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgb(255 255 255 / 8%);
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.footer-more__btn:hover {
    background: rgb(255 255 255 / 14%);
}

body[data-theme="light"] .footer-more__btn {
    background: rgb(0 0 0 / 6%);
    color: var(--cv-text, #1a1a1a);
}

body[data-theme="light"] .footer-more__btn:hover {
    background: rgb(0 0 0 / 10%);
}

.footer-more.is-open .footer-more__btn {
    background: rgb(255 255 255 / 16%);
}

body[data-theme="light"] .footer-more.is-open .footer-more__btn {
    background: rgb(0 0 0 / 12%);
}

.footer-more__menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    z-index: 200;
    min-width: 280px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px 0;
    margin: 0;
    border-radius: 10px;
    background: #0b0d10;
    box-shadow: 0 8px 32px rgb(0 0 0 / 45%), 0 0 0 1px rgb(255 255 255 / 8%);
    box-sizing: border-box;
}

body[data-theme="light"] .footer-more__menu {
    background: #2c2c30;
    box-shadow: 0 8px 32px rgb(0 0 0 / 28%), 0 0 0 1px rgb(0 0 0 / 12%);
}

.footer-more__menu[hidden] {
    display: none !important;
}

.footer-more__link {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.35;
    color: #f4f4f5 !important;
    text-decoration: none !important;
    transition: background 0.12s;
}

.footer-more__link:hover {
    background: rgb(255 255 255 / 8%);
}

.menu-wrap {
    width: 320px;
    min-width: 320px;
    border-left: 1px solid #ffffff05;
    border-right: 1px solid #ffffff05;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    box-shadow: rgb(0 0 0 / 56%) -9px -1px 40px 0px;
    gap: 0;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    padding: 20px 0px;
    box-sizing: border-box;
    background: rgb(74 74 74 / 5%);
    z-index: 10000;
    overflow: hidden;
}

.menu-wrap > .mail-menu {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 5;
}

.menu-wrap > .mail-list {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
}

.menu-wrap > .mail-compose-drawer-backdrop,
.menu-wrap > .mail-compose-drawer {
    grid-column: 1 / -1;
    grid-row: 1;
}

/* Документация: одна колонка, дерево разделов ИБ (см. iblock_docs_menu.php) */
.menu-wrap.menu-wrap--docs {
    grid-template-columns: minmax(0, 1fr);
    /* Первая строка — заголовок (высота по контенту), вторая — скролл меню */
    grid-template-rows: auto minmax(0, 1fr);
    padding: 12px 0 16px;
}

.menu-wrap.menu-wrap--docs .docs-nav-head {
    flex-shrink: 0;
    padding: 0 14px 6px;
    box-sizing: border-box;
}

.menu-wrap.menu-wrap--docs .docs-nav-head__title {
    margin: 0;
    padding: 10px 10px 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
}

.menu-wrap.menu-wrap--docs .docs-nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 0 14px;
    scrollbar-gutter: stable;
}

.docs-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav__list--root {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-nav__list:not(.docs-nav__list--root) {
    margin-top: 4px;
    margin-bottom: 2px;
    padding-left: 12px;
}

.docs-nav__item {
    margin: 0;
}

.docs-nav__row {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.docs-nav__toggle {
    flex-shrink: 0;
    width: 30px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px 0 0 6px;
    background: transparent;
    color: var(--cv-text-muted, #a1a1aa);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.docs-nav__toggle:hover {
    background: rgb(255 255 255 / 8%);
    color: var(--cv-text, #e8e8e8);
}

.docs-nav__toggle:focus-visible {
    outline: 2px solid var(--cv-accent, #2fc6f6);
    outline-offset: 1px;
}

.docs-nav__chevron {
    display: block;
    transition: transform 0.2s ease;
}

.docs-nav__item--parent:not(.docs-nav__branch--open) .docs-nav__chevron {
    transform: rotate(-90deg);
}

body[data-theme="light"] .docs-nav__toggle:hover {
    background: rgb(0 0 0 / 6%);
    color: var(--cv-text, #1a1a1a);
}

.docs-nav__row .docs-nav__link {
    flex: 1;
    min-width: 0;
    border-radius: 6px;
    padding-left: 4px;
    padding-left: 10px;
}

/* Плавное раскрытие подменю без «прыжка» (grid 0fr → 1fr) */
.docs-nav__collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
    min-height: 0;
}

.docs-nav__item--parent.docs-nav__branch--open > .docs-nav__collapse {
    grid-template-rows: 1fr;
}

.docs-nav__collapse > .docs-nav__list {
    min-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .docs-nav__collapse {
        transition: none;
    }

    .docs-nav__item--parent:not(.docs-nav__branch--open) > .docs-nav__collapse {
        display: none;
    }

    .docs-nav__item--parent.docs-nav__branch--open > .docs-nav__collapse {
        display: block;
    }
}


.search-block-container {
    backdrop-filter: blur(20px);
    background: #ffffff0a;
    border-top: 1px solid #2828284a;
    border-bottom: 1px solid #2828284a;
    border-radius: 16px;
    padding: 12px 16px 12px 20px;
    width: 820px;
}

.search-block input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.search-block input:focus,
.search-block input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-block button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #4b5563;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-block button:focus,
.search-block button:focus-visible {
    outline: none;
}

/* Поле suggest (search.suggest.input) — те же визуальные правила, что у input */
.search-block .search-suggest {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.search-block .search-suggest:focus,
.search-block .search-suggest:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Страница поиска: тот же блок, что на главной */
.search-page__search-wrap {
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;
}

.search-page__extra {
    margin: 16px 0 0;
}

.search-page .search-language-guess {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--cv-text-muted, #a1a1aa);
}

body[data-theme="light"] .search-page .search-language-guess {
    color: var(--cv-text-muted, #5f6368);
}

body[data-theme="light"] .search-page .search-block input[type="search"],
body[data-theme="light"] .search-page .search-block .search-suggest {
    color: var(--cv-text, #1a1a1a);
}

/* Главная: корневые разделы ИБ документации (index.php) */
.home-docs-root-sections {
    margin-top: 48px;
    max-width: 100%;
}

.home-docs-root-sections__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.container {
	margin: 80px 120px;
}

.docs-nav__link {
    display: block;
    padding: 6px 40px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--cv-text, #e8e8e8);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.docs-nav__link:hover {
    background: rgb(255 255 255 / 6%);
    color: var(--cv-text, #fff);
}

.docs-nav__link.is-active {
    background: rgb(255 255 255 / 10%);
    color: var(--cv-text, #fff);
    font-weight: 600;
    display: flex;
    align-items: center;
}

body[data-theme="light"] .docs-nav__link {
    color: var(--cv-text, #1a1a1a);
}

body[data-theme="light"] .docs-nav__link:hover {
    background: rgb(0 0 0 / 5%);
}

body[data-theme="light"] .docs-nav__link.is-active {
    background: rgb(0 0 0 / 8%);
}

.mail-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 8px;
    border-right: 1px solid #ffffff05;
    min-height: 0;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.mail-menu__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 6px;
}

.mail-menu__submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
}

.mail-menu__section {
    font-size: 14px;
    color: var(--cv-text);
    padding: 2px 10px 6px;
}

.mail-menu__title {
    font-size: 14px;
    color: var(--cv-text);
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--cv-text);
    font-size: 14px;
    text-align: left;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}

.mail-menu__item-left,
.mail-menu__item-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mail-menu__item:hover {
    background: var(--cv-block-bg);
}

.senderBtn {
    position: relative;
    background: #000000a3;
    border: none;
    color: white;
    height: 45px;
    min-height: 45px;
    width: 100%;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.senderBtn__label {
    position: relative;
    z-index: 2;
}

.senderBtn__stroke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.senderBtn__stroke rect {
    fill: none;
    stroke: rgb(212, 255, 0);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 140 860;
    animation: senderBtnDash 3.2s linear infinite;
    filter: drop-shadow(0 0 4px rgba(212, 255, 0, 0.85));
}

@keyframes senderBtnDash {
    to {
        stroke-dashoffset: -1000;
    }
}

.mail-menu__item--active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.mail-menu__item--sub {
    font-size: 13px;
    color: var(--cv-text-muted);
    padding-left: 18px;
}

.mail-menu__count {
    color: var(--cv-text-muted);
    font-size: 13px;
}

.mail-menu__count-badge {
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    padding: 4px 8px;
}

.mail-menu__section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 4px;
    margin-top: 6px;
}

.mail-menu__section-title {
    color: var(--cv-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.mail-menu__section-action {
    border: 0;
    background: transparent;
    color: var(--cv-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mail-menu__section-action--link {
    text-decoration: none;
}

.mail-menu__labels-root {
    display: flex;
    flex-direction: column;
}

.mail-menu__folder-row {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin: 0 0 8px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mail-menu__folder-row .mail-menu__item--folder {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border-bottom: 0;
    padding-right: 4px;
}

.mail-menu__item--folder {
    padding-top: 10px;
    padding-bottom: 10px;
}

.mail-menu__folder-name {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-menu__folder-actions {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
}

.mail-menu__folder-more {
    border: 0;
    background: transparent;
    color: var(--cv-text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    right: 7px;
    position: relative;
}

.mail-menu__folder-more:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cv-text);
}

.mail-menu__folder-more-dots {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.mail-menu__folder-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    min-width: 160px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 50;
}

.mail-menu__folder-dropdown li {
    margin: 0;
    padding: 0;
}

.mail-menu__folder-dropdown-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--cv-text);
    font-size: 14px;
    text-align: left;
    padding: 8px 14px;
    cursor: pointer;
}

.mail-menu__folder-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mail-menu__folder-dropdown-item--danger {
    color: #ff8a8a;
}

.mail-menu__folder-dropdown-item--danger:hover {
    background: rgba(255, 80, 80, 0.12);
}

.mail-menu__promo {
    margin-top: auto;
    margin-bottom: 50px;
    flex-shrink: 0;
    border-radius: 18px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--cv-text-muted);
    font-size: 13px;
}

.mail-list {
    margin-top: 0;
    margin-bottom: 20px;
    border-top: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    min-width: 0;
    align-self: stretch;
    max-height: 100%;
    overflow: hidden;
}

.mail-list__search-wrap {
    flex-shrink: 0;
}

.mail-list__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mail-list__search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--cv-block-bg, rgba(0, 0, 0, 0.25));
    color: var(--cv-text);
    font-size: 13px;
    outline: none;
}

.mail-list__search-input::placeholder {
    color: var(--cv-text-muted);
}

.mail-list__search-input:focus {
    border-color: rgba(47, 198, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(47, 198, 246, 0.2);
}

.mail-list__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
}

/* Скроллбар: навигация и список писем (Firefox + WebKit) */
.menu-wrap .mail-menu,
.menu-wrap .mail-list__body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

body[data-theme="light"] .menu-wrap .mail-menu,
body[data-theme="light"] .menu-wrap .mail-list__body {
    scrollbar-color: rgba(0, 0, 0, 0.28) rgba(0, 0, 0, 0.04);
}

.menu-wrap .mail-menu::-webkit-scrollbar,
.menu-wrap .mail-list__body::-webkit-scrollbar {
    width: 8px;
}

.menu-wrap .mail-menu::-webkit-scrollbar-track,
.menu-wrap .mail-list__body::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.menu-wrap .mail-menu::-webkit-scrollbar-thumb,
.menu-wrap .mail-list__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.menu-wrap .mail-menu::-webkit-scrollbar-thumb:hover,
.menu-wrap .mail-list__body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 255, 0, 0.45);
}

.menu-wrap .mail-menu::-webkit-scrollbar-thumb:active,
.menu-wrap .mail-list__body::-webkit-scrollbar-thumb:active {
    background: rgba(47, 198, 246, 0.5);
}

body[data-theme="light"] .menu-wrap .mail-menu::-webkit-scrollbar-thumb,
body[data-theme="light"] .menu-wrap .mail-list__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .menu-wrap .mail-menu::-webkit-scrollbar-thumb:hover,
body[data-theme="light"] .menu-wrap .mail-list__body::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 198, 246, 0.45);
}

body[data-theme="light"] .menu-wrap .mail-menu::-webkit-scrollbar-thumb:active,
body[data-theme="light"] .menu-wrap .mail-list__body::-webkit-scrollbar-thumb:active {
    background: rgba(26, 115, 232, 0.5);
}

/* Модалка: новая папка на сервере IMAP */
.mail-folder-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.mail-folder-modal[hidden] {
    display: none !important;
}

.mail-folder-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mail-folder-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: var(--cv-surface, #1e1e24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.mail-folder-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cv-text);
}

.mail-folder-modal__hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--cv-text-muted);
}

.mail-folder-modal__hint--compact {
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
}

.mail-folder-modal__hint a {
    color: var(--cv-accent, #6b9fff);
    text-decoration: none;
}

.mail-folder-modal__hint a:hover {
    text-decoration: underline;
}

.mail-folder-modal__label {
    display: block;
    font-size: 0.78rem;
    color: var(--cv-text-muted);
    margin-bottom: 0.35rem;
}

.mail-folder-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, #333);
    background: var(--cv-bg, #121214);
    color: var(--cv-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.mail-folder-modal__input:focus {
    outline: none;
    border-color: rgba(47, 198, 246, 0.45);
}

.mail-folder-modal__input--color {
    max-width: 120px;
    height: 44px;
    padding: 4px 6px;
    cursor: pointer;
}

.mail-folder-modal__error {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: #f87171;
}

.mail-folder-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.mail-folder-modal__btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.mail-folder-modal__btn--secondary {
    background: var(--cv-block-bg, #2a2a30);
    color: var(--cv-text);
}

.mail-folder-modal__btn--primary {
    background: var(--cv-accent, #2fc6f6);
    color: #0a0a0a;
}

/* Модалка: создать метку (цвет + название) */
.mail-label-modal {
    position: fixed;
    inset: 0;
    z-index: 100110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.mail-label-modal[hidden] {
    display: none !important;
}

.mail-label-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.mail-label-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.mail-label-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mail-label-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.mail-label-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mail-label-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mail-label-modal__body {
    padding: 18px 16px 20px;
}

.mail-label-modal__field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.mail-label-modal__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mail-label-modal__swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.mail-label-modal__swatch.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.mail-label-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #000;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.mail-label-modal__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
}

.mail-label-modal__error {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #f87171;
}

.mail-label-modal__submit {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.mail-label-modal__submit:hover {
    opacity: 0.9;
}

.mail-menu__user-labels-root {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mail-menu__item.js-mail-label-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-menu__label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--mail-label-color, #888);
}

.mail-list__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.mail-list__label-chip {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--lb, #444);
}

.project-ring {
    --accent: rgb(212, 255, 0);
    --value: 72;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) calc(var(--value) * 1%), #2b3753 0);
    padding: 4px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* Кнопка-строка: Bitrix/браузерные стили иногда сбивают display — держим сетку явно */
.menu-wrap .mail-list__body button.mail-list__item {
    display: grid;
}

.mail-list__item {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 18px 36px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 10px;
    align-items: center;
    text-align: left;
    color: var(--cv-text);
    cursor: pointer;
    min-height: 60px;
    box-sizing: border-box;
}

.mail-list__state-dot {
    grid-column: 1;
    grid-row: 1 / -1;
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    align-self: center;
    justify-self: center;
    flex-shrink: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.mail-list__state-dot:focus {
    outline: none;
}

.mail-list__state-dot:focus-visible {
    outline: 2px solid var(--cv-accent, #2fc6f6);
    outline-offset: 2px;
}

.mail-list__state-dot--unread {
    background: var(--cv-accent, #2fc6f6);
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.2);
}

.mail-list__state-dot--read {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-sizing: border-box;
}

body[data-theme="light"] .mail-list__state-dot--read {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.22);
}

.mail-list__item--unread .mail-list__subject {
    font-weight: 600;
}

.mail-list__item:hover {
    background: var(--cv-block-bg);
}

.mail-list__item--active {
    background: rgba(47, 198, 246, 0.1);
    box-shadow: inset 3px 0 0 var(--cv-accent);
}

.mail-ctx-menu {
    position: fixed;
    z-index: 2000;
    min-width: 180px;
    background: var(--cv-block-bg, #1e2530);
    border: 1px solid var(--cv-border, #333);
    border-radius: 10px;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.mail-ctx-menu[hidden] { display: none; }
.mail-ctx-menu__item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--cv-text, #e0e0e0);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.mail-ctx-menu__item:hover {
    background: rgba(47, 198, 246, 0.12);
}
.mail-ctx-menu__item--danger {
    color: #f87171;
}
.mail-ctx-menu__item--danger:hover {
    background: rgba(248, 113, 113, 0.12);
}
.mail-ctx-menu__sep {
    border: none;
    border-top: 1px solid var(--cv-border, #333);
    margin: 4px 0;
}

.mail-list__avatar {
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-list__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mail-list__avatar--letter {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.mail-list__content {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mail-list__row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.mail-list__from {
    font-size: 13px;
    color: var(--cv-text-muted);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-list__time {
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.mail-list__subject {
    font-size: 13px;
    color: var(--cv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mail-list__labels {
    min-width: 0;
}

.mail-list__empty {
    padding: 14px 12px;
    color: var(--cv-text-muted);
    font-size: 13px;
}

.mail-list__item--ctx-selected {
    box-shadow: inset 0 0 0 2px rgba(47, 198, 246, 0.45);
}

/* Контекстное меню письма (ПКМ по строке списка) */
.mail-ctx-menu {
    position: fixed;
    z-index: 200000;
    min-width: 268px;
    max-width: min(320px, calc(100vw - 16px));
    padding: 6px 0;
    margin: 0;
    box-sizing: border-box;
    background: black;
    color: var(--cv-text, #e8e8ec);
    border: none;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .mail-ctx-menu {
    background: #fff;
    color: #1a1a1a;
    border-color: var(--cv-border, #e8eaed);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.mail-ctx-menu--sub {
    padding: 6px 0;
    max-height: min(70vh, 420px);
    overflow-y: auto;
}

.mail-ctx-menu--floating {
    position: fixed;
    z-index: 200001;
}

.mail-ctx-menu__sep {
    height: 1px;
    margin: 6px 10px;
    background: var(--cv-border, rgba(255, 255, 255, 0.08));
}

body[data-theme="light"] .mail-ctx-menu__sep {
    background: var(--cv-border, #e8eaed);
}

.mail-ctx-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    text-align: left;
    padding: 9px 14px;
    cursor: pointer;
    line-height: 1.25;
}

.mail-ctx-menu__item:hover,
.mail-ctx-menu__item:focus-visible {
    background: var(--cv-block-bg, rgba(255, 255, 255, 0.06));
    outline: none;
}

.mail-ctx-menu__item--sub {
    justify-content: flex-start;
}

.mail-ctx-menu__text {
    flex: 1;
    min-width: 0;
}

.mail-ctx-menu__chev {
    margin-left: auto;
    opacity: 0.55;
    font-size: 18px;
    line-height: 1;
}

.mail-ctx-menu__svg {
    flex-shrink: 0;
    opacity: 0.88;
}

.mail-ctx-menu__ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Правая часть: шапка сверху + основной контент --- */
.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--cv-sidebar-bg);
    border-bottom: 1px solid var(--cv-sidebar-border);
    flex-shrink: 0;
}

.content__brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.content__icon {
    width: 42px;
    height: 42px;
    display: block;
}

.content__title {
    color: var(--cv-text);
    font-size: 13px;
    width: 150px;
}

.content__order-btn {
    display: block;
    padding: 12px 24px;
    background: #00000069;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.rail-bottom {
    margin-top: auto;
    margin-bottom: 24px;
}

.project-ring {
    --value: 72;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) calc(var(--value) * 1%), #2b3753 0);
    padding: 4px;
    cursor: pointer;
}

.ring-core {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #8ab1ff;
}

.project-capacity {
    font-size: 0.72rem;
    color: var(--muted);
}
.rail-bottom {
    margin-bottom: 50px;
}


.rail-item:hover, .rail-item.active {
    color: var(--text);
    border-right: 2px solid yellow;
    position: relative;
}

.rail-top, .rail-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    border: none;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: var(--muted);
    cursor: pointer;
    margin-top: 30px;
    height: 90px;
    width: 42px;
    padding: 10px;
    border-radius: 20px !important;
}

.theme-icon {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.theme-icon.is-active {
    opacity: 1;
}

.theme-toggle:hover .theme-icon {
    opacity: 0.7;
}

.theme-toggle:hover .theme-icon.is-active {
    opacity: 1;
}
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 125px;
}
.rail-top {
    margin-top: 24px;
    height: auto;
    flex: 1;
    justify-content: flex-start;
}

.content__order-btn:hover {
    background: var(--cv-accent-hover);
    color: #fff;
    opacity: 0.95;
}
.rail-item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0px;
    cursor: pointer;
}

/* --- Левая колонка (left_block) — обёртка схлопывается, контент из left_block.php --- */
.left_block-wrap {
    width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.layout--sidebar-collapsed .left_block-wrap {
    width: 0;
    min-width: 0;
}

.left_block {
    height: 100vh;
    background: var(--cv-sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* --- Содержимое левого блока (sidebar внутри left_block) --- */
.sidebar__brand {
    padding: 35px 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.sidebar__icon {
    width: 42px;
    height: 42px;
    display: block;
}

.sidebar__title {
    color: white;
    font-size: 13px;
    width: 150px;
}

.sidebar__order-btn {
    display: block;
    width: 205px;
    margin: 0 1rem 1rem;
    padding: 15px;
    background: #00000069;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.sidebar__order-btn:hover {
    background: var(--cv-accent-hover);
    color: #fff;
    opacity: 0.95;
}

.layout--sidebar-collapsed .left_block {
    transform: translateX(-100%);
}

/* --- Кнопка сворачивания меню (круглая, по центру) --- */
.sidebar-toggle {
    flex-shrink: 0;
    align-self: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--cv-border);
    border-radius: 50%;
    background: var(--cv-surface);
    color: var(--cv-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    left: -17px;
    position: relative;
}

.sidebar-toggle:hover {
    background: var(--cv-accent);
    color: var(--cv-text);
    border-color: var(--cv-accent);
}

/* Стрелка влево (меню открыто — нажать чтобы свернуть) */
.sidebar-toggle__icon {
    width: 18px;
    height: 18px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(133deg);
    transition: transform 0.25s ease;
}

/* Стрелка вправо (меню свёрнуто — нажать чтобы развернуть) */
.layout--sidebar-collapsed .sidebar-toggle__icon {
    transform: rotate(315deg);
}

.sidebar__nav {
    flex: 1;
    min-height: 0;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

.sidebar__nav:hover {
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Скоролл только при наведении (WebKit) */
.sidebar__nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.sidebar__nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar__menu li {
    margin: 0;
}

.sidebar__nav .sidebar__menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    padding: 4px 40px;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar__nav .sidebar__menu a:hover,
.sidebar__nav .sidebar__menu a.active {
    color: var(--cv-text);
    background: var(--cv-bg);
}

.sidebar__nav-divider {
    height: 1px;
    background: var(--cv-border);
    margin: 1rem 1.5rem;
}

/* Блок «Облачные решения» в стиле референса (иконка + текст, сворачиваемый) */
.sidebar__block {
    margin-bottom: 0.5rem;
}

.sidebar__block--cloud {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding: 0.25rem 0;
    background: var(--cv-block-bg);
    border-radius: 10px;
}

.sidebar__block-title {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    margin: 0;
    border: none;
    background: none;
    color: var(--cv-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
}

.sidebar__block-title:hover {
    color: var(--cv-text);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.sidebar__block-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: currentColor;
    opacity: 0.85;
}

.sidebar__block-icon--cloud {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__block-text {
    flex: 1;
}

#sidebar-cloud-block .sidebar__menu a {
    padding: 4px 30px !important;
}

#sidebar-cloud-toggle {
    padding: 4px 30px !important;
    font-weight: 600 !important;
}

#sidebar-cloud-toggle:hover {
    background: transparent !important;
}

.sidebar__block-chevron {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
}

.sidebar__block--collapsed .sidebar__block-chevron {
    transform: rotate(45deg);
}

.sidebar__block--collapsed .sidebar__menu {
    display: none;
}

.sidebar__menu--block {
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    list-style: none;
}

.sidebar__menu--block li {
    margin: 0;
}

.sidebar__menu--block a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar__menu--block a:hover,
.sidebar__menu--block a.active {
    color: var(--cv-text);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: currentColor;
    opacity: 0.8;
}

.sidebar__item-icon--domains {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--ssl {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--hosting {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3Cline x1='10' y1='6' x2='10.01' y2='6'/%3E%3Cline x1='10' y1='18' x2='10.01' y2='18'/%3E%3Cline x1='14' y1='6' x2='14.01' y2='6'/%3E%3Cline x1='14' y1='18' x2='14.01' y2='18'/%3E%3Cline x1='18' y1='6' x2='18.01' y2='6'/%3E%3Cline x1='18' y1='18' x2='18.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3Cline x1='10' y1='6' x2='10.01' y2='6'/%3E%3Cline x1='10' y1='18' x2='10.01' y2='18'/%3E%3Cline x1='14' y1='6' x2='14.01' y2='6'/%3E%3Cline x1='14' y1='18' x2='14.01' y2='18'/%3E%3Cline x1='18' y1='6' x2='18.01' y2='6'/%3E%3Cline x1='18' y1='18' x2='18.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--vms {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='15' x2='23' y2='15'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='15' x2='4' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='15' x2='23' y2='15'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='15' x2='4' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__footer {
    padding: 20px;
}

.sidebar__footer p {
    background: linear-gradient(180deg, #ffffff, #6b778d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: block;
    line-height: normal;
}

.sidebar__footer span {
    color: #6e788a !important;
    margin: 0;
    font-size: 12px;
    padding: 5px 0;
    line-height: normal;
}

.sidebar__support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 20px;
    border: 1px solid #00ceff1a;
    color: var(--cv-support-text);
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.sidebar__support:hover {
    opacity: 0.9;
}

.sidebar__support-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Основной контент: прокрутка только здесь (body без вертикального скролла) --- */
.main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 0;
    padding-bottom: 1.5rem;
    background: var(--cv-bg);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

body[data-theme="light"] .main {
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.04);
}

.main::-webkit-scrollbar {
    width: 10px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.main::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 198, 246, 0.42);
    box-shadow: 0 0 0 1px rgba(47, 198, 246, 0.25) inset;
}

.main::-webkit-scrollbar-thumb:active {
    background: rgba(47, 198, 246, 0.58);
}

body[data-theme="light"] .main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

body[data-theme="light"] .main::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 115, 232, 0.4);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.2) inset;
}

body[data-theme="light"] .main::-webkit-scrollbar-thumb:active {
    background: rgba(26, 115, 232, 0.55);
}

/* Пустое меню: заглушка пунктов для демо */
.sidebar__nav:empty::before {
    content: 'Меню';
    display: block;
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cv-text-muted);
}

/* --- Контент: общие стили для белой и чёрной темы --- */
.main h1,
.main h2,
.main h3 {
    color: var(--cv-text);
    margin-top: 0;
    margin-bottom: 0.5em;
}

.main a {
    color: white;
    text-decoration: none !important;
}

.main a:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

.main .cv-card {
    color: var(--cv-text);
}

.main .cv-text-muted {
    color: var(--cv-text-muted);
}

/* --- Блоки в вашем стиле (как sidebar__block--cloud) --- */
.cv-block {
    background: var(--cv-block-bg);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--cv-text);
}

.cv-block--bordered {
    border: 1px solid var(--cv-sidebar-border);
}

/* --- Дашборд: аналитика по разделам --- */
.dashboard__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dashboard__desc {
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
}

.dashboard__section {
    margin-bottom: 2rem;
}

.dashboard__section-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.dashboard__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cv-text);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dashboard__card:hover {
    border-color: var(--cv-accent);
    background: var(--cv-card-bg);
    transform: translateY(-2px);
}

.dashboard__card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.dashboard__card-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard__card-icon--domains {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--ssl {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--hosting {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--licenses {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.dashboard__card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cv-text);
}

.dashboard__card-value--ai { color: #8b5cf6; }
.dashboard__card-value--bitrix,
.dashboard__card-value--bitrix_site { color: #22c55e; }
.dashboard__card-value--1c { color: #3b82f6; }

.dashboard__card-label {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-top: 0.25rem;
}

.dashboard__card--main {
    grid-column: span 1;
}

.dashboard__card--sub .dashboard__card-value {
    font-size: 1.35rem;
}

.dashboard__section--links .dashboard__section-title {
    margin-bottom: 0.5rem;
}

.dashboard__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard__links li {
    margin: 0 0 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cv-border);
    font-size: 0.9375rem;
}

.dashboard__links li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.dashboard__links a {
    color: var(--cv-link);
    text-decoration: none;
}

.dashboard__links a:hover {
    text-decoration: underline;
}

/* --- Дата-центр: Домены (ваш дизайн — cv-переменные) --- */
.dc-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dc-actions--hosting {
    grid-template-columns: repeat(2, 1fr);
}

.dc-action {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--cv-text);
    transition: border-color 0.2s, background 0.2s;
}

.dc-action:hover {
    border-color: var(--cv-accent);
    background: var(--cv-bg);
}

.dc-action__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cv-block-bg);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-action__icon svg {
    width: 24px;
    height: 24px;
}

.dc-action__title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.dc-action__desc {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin: 0;
}

.dc-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
}

.dc-toolbar__filter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--cv-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.dc-toolbar__filter::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--cv-text-muted);
}

.dc-toolbar__search {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    background: var(--cv-bg);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    color: var(--cv-text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.dc-toolbar__search:focus {
    outline: none;
    border-color: var(--cv-accent);
}

.dc-toolbar__search::placeholder {
    color: var(--cv-text-muted);
}

.dc-table-block {
    border-radius: 10px;
    overflow: hidden;
    background: var(--cv-block-bg);
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cv-block-bg);
}

.dc-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted);
    border-bottom: 1px solid var(--cv-border);
}

.dc-table td {
    padding: 0;
    border-bottom: 1px solid var(--cv-border);
    vertical-align: middle;
}

.dc-table tbody tr {
    background: var(--cv-block-bg);
    transition: background 0.15s;
}

.dc-table tbody tr:hover {
    background: var(--cv-bg);
}

/* Заголовки таблицы доменов: чекбокс + подпись + сортировка */
.dc-table__th-check,
.dc-row__check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.dc-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-table__th--service .dc-table__th-inner,
.dc-table__th--date .dc-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dc-table__th-check {
    margin-right: 0.25rem;
}

.dc-table__check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--cv-accent);
}

.dc-table__th-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted);
}

.dc-table__sort {
    display: inline-flex;
    color: var(--cv-text-muted);
    opacity: 0.7;
}

.dc-table__sort svg {
    width: 12px;
    height: 12px;
}

/* Колонка «Услуга»: чекбокс + иконка глобуса + домен */
.dc-table__td--service {
    padding: 0.75rem 1rem;
}

.dc-table__td--service {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dc-row__icon--globe {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--globe svg {
    width: 18px;
    height: 18px;
}

.dc-row__icon--shield {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--shield svg {
    width: 18px;
    height: 18px;
}

.dc-row__icon--hosting {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--hosting svg {
    width: 18px;
    height: 18px;
}

.dc-row__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--cv-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.dc-row__action-icon:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__domain {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--cv-text);
}

.dc-row__domain--link {
    color: var(--cv-text);
    text-decoration: none;
}

.dc-row__domain--link:hover {
    color: var(--cv-link);
    text-decoration: underline;
}

/* Колонка «Действует до»: замочек + дата */
.dc-table__td--date {
    padding: 0.75rem 1rem;
}

.dc-row__date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-row__padlock {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-row__padlock svg {
    width: 100%;
    height: 100%;
}

.dc-row__padlock--gold {
    color: #eab308;
}

.dc-row__padlock--grey {
    color: var(--cv-text-muted);
    opacity: 0.7;
}

.dc-row__date {
    font-size: 0.875rem;
    color: var(--cv-text);
}

.dc-row__date--soon {
    color: #ea580c;
}

.dc-row__date--expired {
    color: #c0392b;
}

/* Автопродление: галочка */
.dc-table__td--autorenew {
    padding: 0.75rem 1rem;
}

.dc-row__autorenew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-row__toggle-off {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    text-decoration: none;
}

.dc-row__toggle-off:hover {
    color: var(--cv-link);
    text-decoration: underline;
}

.dc-row__check-icon {
    width: 18px;
    height: 18px;
    color: var(--cv-text-muted);
}

/* Подробности (NS) */
.dc-table__td--details {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-row__details {
    color: var(--cv-text-muted);
}

/* Действия: три точки + выпадающее меню */
.dc-table__td--actions {
    padding: 0.5rem 1rem;
    text-align: right;
}

.dc-row__actions-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.dc-row__dropdown {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.dc-row__menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
}

.dc-row__menu:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--cv-card-bg);
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    padding: 0.25rem 0;
    min-width: 140px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dc-row__dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--cv-text);
    text-decoration: none;
}

.dc-row__dropdown-menu a:hover {
    background: var(--cv-block-bg);
    color: var(--cv-link);
}

.dc-row__dropdown-item--danger {
    color: #c0392b !important;
}

.dc-row__dropdown-item--danger:hover {
    color: #e74c3c !important;
}

/* Совместимость со старыми строками (если остались) */
.dc-row__name {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.dc-row__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cv-block-bg);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon svg {
    width: 20px;
    height: 20px;
}

.dc-row__status {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-top: 0.15rem;
}

.dc-row__cell {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-row__ssl a {
    color: var(--cv-link);
    text-decoration: none;
}

.dc-row__ssl a:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

.dc-row__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: flex-end;
}

.dc-row__btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    color: var(--cv-text);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dc-row__btn:hover {
    border-color: var(--cv-accent);
    background: var(--cv-block-bg);
    color: var(--cv-accent);
}

.dc-row__menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    border-radius: 6px;
}

.dc-row__menu:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__dropdown {
    position: relative;
}

.dc-form-toggle {
    margin-bottom: 1.5rem;
}

.dc-form-toggle__form {
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.dc-form-toggle__form .dc-btn--primary {
    background: var(--cv-accent);
    border-color: var(--cv-accent);
    color: var(--cv-text);
}

.dc-form-toggle__form .dc-btn--primary:hover {
    background: var(--cv-accent-hover);
    border-color: var(--cv-accent-hover);
}

.dc-empty {
    padding: 2rem;
    text-align: center;
    color: var(--cv-text-muted);
    background: var(--cv-block-bg);
    border-radius: 10px;
}

/* --- Страница управления доменом (detail) --- */
.dc-page--detail {
    max-width: 900px;
}

.dc-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.dc-detail-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dc-detail-header__back:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-detail-header__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-detail-header__icon svg {
    width: 24px;
    height: 24px;
}

.dc-detail-header__main {
    flex: 1;
    min-width: 0;
}

.dc-detail-header__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.15rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dc-detail-header__link-icon {
    color: var(--cv-text-muted);
    opacity: 0.8;
}

.dc-detail-header__link-icon svg {
    display: block;
}

.dc-detail-header__status {
    margin: 0;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-detail-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dc-detail-header__action {
    font-size: 0.875rem;
    color: var(--cv-link);
    text-decoration: none;
}

.dc-detail-header__action:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

/* Вкладки */
.dc-detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cv-border);
}

.dc-detail-tabs__item {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.dc-detail-tabs__item:hover {
    color: var(--cv-text);
}

.dc-detail-tabs__item--active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

/* Карточки блоков */
.dc-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dc-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.dc-detail-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text-muted);
}

.dc-detail-card__icon svg {
    width: 20px;
    height: 20px;
}

.dc-detail-card__icon--renew {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dc-detail-card__icon--autorenew {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--dns {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--yandex {
    background: #fc3f1d;
    color: #fff;
}

.dc-detail-card__icon--lock {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--cert {
    background: var(--cv-block-bg);
}

.dc-detail-card__ya {
    font-size: 1.125rem;
    font-weight: 700;
}

.dc-detail-card__body {
    flex: 1;
    min-width: 0;
}

.dc-detail-card__title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dc-detail-card__text {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--cv-text);
    line-height: 1.4;
}

.dc-detail-card__text:last-child {
    margin-bottom: 0;
}

.dc-detail-card__text--muted {
    color: var(--cv-text-muted);
    font-size: 0.8125rem;
}

.dc-detail-card__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-detail-card__action--row {
    align-items: center;
}

.dc-detail-card__btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text);
    background: var(--cv-block-bg);
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dc-detail-card__btn:hover {
    border-color: var(--cv-accent);
    background: var(--cv-bg);
    color: var(--cv-accent);
}

.dc-detail-card__btn--link {
    background: transparent;
    border-color: transparent;
}

.dc-detail-card__btn--link:hover {
    background: transparent;
}

.dc-detail-card__gear {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--cv-text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dc-detail-card__gear:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

/* Переключатель автопродления */
.dc-detail-card__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.dc-detail-card__toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dc-detail-card__toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--cv-border);
    border-radius: 24px;
    transition: background 0.2s;
}

.dc-detail-card__toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: var(--cv-surface);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dc-detail-card__toggle-input:checked + .dc-detail-card__toggle-slider {
    background: #22c55e;
}

.dc-detail-card__toggle-input:checked + .dc-detail-card__toggle-slider::before {
    transform: translateX(20px);
}

.dc-detail-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--cv-text-muted);
    background: var(--cv-block-bg);
    border-radius: 12px;
}

/* --- Лицензии (Мои лицензии) --- */
.lic-page__title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
}

.lic-toolbar {
    flex-wrap: wrap;
}

.lic-toolbar__label {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    margin-right: 0.5rem;
}

.lic-toolbar__filter {
    display: inline-flex;
    align-items: center;
}

.lic-toolbar__select {
    max-width: 240px;
}

.lic-toolbar__count {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.lic-row__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lic-row__icon svg {
    width: 18px;
    height: 18px;
}

.lic-row__icon--ai {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.lic-row__icon--bitrix,
.lic-row__icon--bitrix_site {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.lic-row__icon--1c {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.lic-row__type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.lic-row__type-badge--ai {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.lic-row__type-badge--bitrix,
.lic-row__type-badge--bitrix_site {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.lic-row__type-badge--1c {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.dc-table--licenses .dc-table__td--service .dc-row__domain {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
