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

:root {
    --cv-font-sans: 'Golos Text', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cv-font-display: 'Rubik', 'Golos Text', system-ui, sans-serif;
}

html {
    font-family: var(--cv-font-sans);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--cv-font-display);
}

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

.card-container {
    flex: 1;
    display: flex;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

.glow {
    pointer-events: none;
    position: absolute;
    z-index: 0;
    top: -360px;
    left: 50%;
    transform: translate(-50%);
    width: 2400px;
    height: 820px;
    background: center / contain no-repeat url("data:image/svg+xml,%3csvg%20width='2600'%20height='980'%20viewBox='0%200%202600%20980'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cradialGradient%20id='g1'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1300%20420)%20rotate(90)%20scale(430%201250)'%3e%3cstop%20offset='0'%20stop-color='%2300CEFF'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.42'%20stop-color='%2300CEFF'%20stop-opacity='0.08'/%3e%3cstop%20offset='0.72'%20stop-color='%2300CEFF'%20stop-opacity='0.03'/%3e%3cstop%20offset='1'%20stop-color='%2300CEFF'%20stop-opacity='0'/%3e%3c/radialGradient%3e%3cradialGradient%20id='g2'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1300%20450)%20rotate(90)%20scale(340%20980)'%3e%3cstop%20offset='0'%20stop-color='%2300CEFF'%20stop-opacity='0.1'/%3e%3cstop%20offset='0.5'%20stop-color='%2300CEFF'%20stop-opacity='0.04'/%3e%3cstop%20offset='1'%20stop-color='%2300CEFF'%20stop-opacity='0'/%3e%3c/radialGradient%3e%3c/defs%3e%3crect%20width='2600'%20height='980'%20fill='url(%23g1)'/%3e%3crect%20width='2600'%20height='980'%20fill='url(%23g2)'/%3e%3c/svg%3e");
    opacity: .72;
    contain: paint
}

.card-index {
    width: 100%;
    padding: 30px 40px;
    border: 1px solid color-mix(in srgb, #64748b 14%, transparent);
    border-radius: 8px;
    background: rgb(255 255 255 / 4%);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
}

.dashboard-top__title {
    font-family: var(--cv-font-display);
    font-weight: 600;
}

.dashboard-top__balance {
    flex-shrink: 0;
    text-align: right;
}

.dashboard-balance {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .dashboard-balance {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.dashboard-balance__label {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cv-text-muted, #9aa4b2);
}

.dashboard-balance__value {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cv-text, #fff);
}

body[data-theme="light"] .dashboard-balance__value {
    color: #111;
}

.dashboard-balance__meta {
    font-size: 13px;
    color: var(--cv-text-muted, #9aa4b2);
}

.dashboard-balance__action {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cv-accent, #2fc6f6);
    text-decoration: none;
}

.dashboard-balance__action:hover {
    text-decoration: underline;
}

/* --- 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: "";
        pointer-events: none;
        position: absolute;
        z-index: 0;
        top: -360px;
        left: 50%;
        transform: translate(-50%);
        width: 2400px;
        height: 820px;
        background: center / contain no-repeat url("data:image/svg+xml,%3csvg%20width='2600'%20height='980'%20viewBox='0%200%202600%20980'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cradialGradient%20id='g1'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1300%20420)%20rotate(90)%20scale(430%201250)'%3e%3cstop%20offset='0'%20stop-color='%2300CEFF'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.42'%20stop-color='%2300CEFF'%20stop-opacity='0.08'/%3e%3cstop%20offset='0.72'%20stop-color='%2300CEFF'%20stop-opacity='0.03'/%3e%3cstop%20offset='1'%20stop-color='%2300CEFF'%20stop-opacity='0'/%3e%3c/radialGradient%3e%3cradialGradient%20id='g2'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1300%20450)%20rotate(90)%20scale(340%20980)'%3e%3cstop%20offset='0'%20stop-color='%2300CEFF'%20stop-opacity='0.1'/%3e%3cstop%20offset='0.5'%20stop-color='%2300CEFF'%20stop-opacity='0.04'/%3e%3cstop%20offset='1'%20stop-color='%2300CEFF'%20stop-opacity='0'/%3e%3c/radialGradient%3e%3c/defs%3e%3crect%20width='2600'%20height='980'%20fill='url(%23g1)'/%3e%3crect%20width='2600'%20height='980'%20fill='url(%23g2)'/%3e%3c/svg%3e");
        opacity: .72;
        contain: paint
}

/* --- Базовый 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;
    font-family: var(--cv-font-sans);
}

.auth-page {
    font-family: var(--cv-font-sans);
}

.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) auto;
    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: 10px 100px !important;
    background: var(--cv-sidebar-bg);
    border-bottom: 1px solid var(--cv-sidebar-border);
    flex-shrink: 0;
}

/* --- Верхняя панель кабинета (без заливки фона — только границы и типографика) --- */
.content__header.cab-topbar {
    position: relative;
    z-index: 40;
    isolation: isolate;
    background: transparent;
    padding: 0.55rem 1.25rem 0.55rem 1.5rem;
    border-bottom: 1px solid var(--cv-sidebar-border);
}

.cab-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.cab-topbar__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 220px;
    max-width: 28rem;
    min-width: 0;
    padding: 0.35rem 0.65rem 0.35rem 0.75rem;
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    background: transparent;
}

.cab-topbar__search-icon {
    flex-shrink: 0;
    display: flex;
    color: var(--cv-text-muted);
}

.cab-topbar__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--cv-text);
    font-size: 0.875rem;
    outline: none;
}

.cab-topbar__search-input::placeholder {
    color: var(--cv-text-muted);
}

.cab-topbar__search-kbd {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--cv-border);
    border-radius: 6px;
    font-size: 0.65rem;
    font-family: inherit;
    color: var(--cv-text-muted);
    line-height: 1;
}

.cab-topbar__search-kbd span {
    opacity: 0.85;
}

.cab-topbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
}

.cab-topbar__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cab-topbar__icon-btn:hover {
    color: var(--cv-text);
    border-color: var(--cv-border);
    background: color-mix(in srgb, var(--cv-text) 4%, transparent);
}

.cab-topbar__balance {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-text);
    padding: 0 0.5rem 0 0.35rem;
    white-space: nowrap;
}

/* Выпадающие блоки: <details> + панель (без JS, не перекрывается main) */
.cab-dd {
    position: relative;
}

details.cab-dd > summary {
    list-style: none;
}

details.cab-dd > summary::-webkit-details-marker {
    display: none;
}

details.cab-dd > summary::marker {
    content: '';
}

.cab-dd__btn,
summary.cab-dd__summary.cab-dd__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 40px;
    padding: 0 0.5rem 0 0.45rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--cv-text);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}

.cab-dd__btn:hover,
summary.cab-dd__summary.cab-dd__btn:hover {
    border-color: var(--cv-border);
    background: color-mix(in srgb, var(--cv-text) 4%, transparent);
}

.cab-dd__btn-ico {
    flex-shrink: 0;
    color: var(--cv-text-muted);
}

.cab-dd__chev {
    flex-shrink: 0;
    color: var(--cv-text-muted);
    margin-left: 0.1rem;
    transition: transform 0.2s ease;
}

details.cab-dd[open] > summary .cab-dd__chev {
    transform: rotate(180deg);
}

.cab-dd__btn--user {
    padding-right: 0.35rem;
}

.cab-dd__user-name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.cab-dd__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--cv-border);
    color: var(--cv-text-muted);
}

.cab-dd__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 15.5rem;
    padding: 0.4rem 0;
    margin: 0;
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    background: var(--cv-card-bg);
    box-shadow: 0 8px 28px color-mix(in srgb, #000 35%, transparent);
    z-index: 20000;
}

.cab-dd--support .cab-dd__menu {
    right: 0;
    left: auto;
}

.cab-dd__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: var(--cv-text);
    text-decoration: none;
    transition: background 0.12s;
}

.cab-dd__item:hover {
    background: color-mix(in srgb, var(--cv-text) 6%, transparent);
}

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

.cab-dd__item--link {
    color: var(--cv-link);
}

.cab-dd__item--link:hover {
    color: var(--cv-link-hover);
}

.cab-dd__item--status .cab-dd__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.cab-dd__sep {
    height: 1px;
    margin: 0.35rem 0.75rem;
    background: var(--cv-border);
}

body[data-theme="light"] .cab-dd__menu {
    box-shadow: 0 8px 24px color-mix(in srgb, #000 12%, transparent);
}

.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-gutter: stable;
    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: 5px 25px;
    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);
}

/* Сайдбар раздела «Поддержка» (/support/) */
.support-sidebar__cta-wrap {
    padding: 0 1rem 0.85rem;
    margin: 0 0 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--cv-border) 85%, transparent);
}

.support-sidebar__cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--cv-accent, #2fc6f6);
    transition: background 0.15s ease, opacity 0.15s ease;
}

.support-sidebar__cta:hover {
    color: #fff;
    background: var(--cv-accent-hover, #1eb8e8);
}

.support-sidebar__cta.active {
    opacity: 0.92;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 35%, transparent);
}

.sidebar__menu-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: inherit;
    opacity: 0.88;
}

.sidebar__menu-ico svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sidebar__menu-ico--spacer {
    opacity: 0;
    pointer-events: none;
}

.sidebar__menu-label {
    min-width: 0;
    line-height: 1.35;
}

.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 {
    position: relative;
    z-index: 0;
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 50px 100px;
    background: var(--cv-bg);
    font-family: var(--cv-font-sans);
    overflow-x: hidden;
    overflow-y: scroll;
    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;
}

/* --- Партнёрка: профиль --- */
.partner-profile {
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 12px;
    max-width: 720px;
}

.partner-profile__meta {
    margin: 0 0 1.25rem;
    padding: 0;
}

.partner-profile__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
    align-items: baseline;
}

.partner-profile__row dt {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partner-profile__row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--cv-text, #e8ecf2);
}

.partner-profile__row--block {
    grid-template-columns: 1fr;
}

.partner-profile__row--block dt {
    margin-bottom: 0.25rem;
}

.partner-profile__code {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.partner-profile__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

@media (max-width: 700px) {
    .partner-profile__fields {
        grid-template-columns: 1fr;
    }
    .partner-profile__row {
        grid-template-columns: 1fr;
    }
}

.partner-profile__field {
    margin: 0;
}

.partner-profile__field--full {
    grid-column: 1 / -1;
}

.partner-profile__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partner-profile__input {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.partner-profile__textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.25));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
    resize: vertical;
    min-height: 88px;
}

.partner-profile__actions {
    margin: 1rem 0 0;
}

/* --- Профиль пользователя (bitrix:main.profile в кабинете) --- */
.profile-page__title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text, #fff);
}

.profile-page__lead {
    margin: 0 0 1.25rem;
    max-width: 640px;
}

.profile-page__component {
    max-width: 960px;
}

.profile-page .bx-auth-profile {
    color: var(--cv-text, #e8ecf2);
}

.profile-page .bx-auth-profile .profile-table,
.profile-page .bx-auth-profile .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.profile-page .bx-auth-profile .profile-table td,
.profile-page .bx-auth-profile .data-table td {
    padding: 0.5rem 0.5rem 0.5rem 0;
    vertical-align: top;
    border: none;
    font-size: 0.875rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.profile-page .bx-auth-profile .profile-table td + td,
.profile-page .bx-auth-profile .data-table td + td {
    color: var(--cv-text, #e8ecf2);
}

.profile-page .bx-auth-profile input[type="text"],
.profile-page .bx-auth-profile input[type="password"],
.profile-page .bx-auth-profile input[type="email"],
.profile-page .bx-auth-profile input[type="url"],
.profile-page .bx-auth-profile input[type="tel"],
.profile-page .bx-auth-profile select,
.profile-page .bx-auth-profile textarea {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.25));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
}

.profile-page .bx-auth-profile input[type="submit"],
.profile-page .bx-auth-profile button[type="submit"] {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    background: var(--cv-accent, #2fc6f6);
    color: #fff;
}

.profile-page .bx-auth-profile input[type="submit"]:hover,
.profile-page .bx-auth-profile button[type="submit"]:hover {
    opacity: 0.92;
}

.profile-page .bx-auth-profile .starrequired {
    color: #f87171;
}

.profile-page .bx-auth-profile .profile-link a,
.profile-page .bx-auth-profile a {
    color: var(--cv-accent, #2fc6f6);
}

.profile-page .bx-auth-profile .profile-block-hidden {
    display: none;
}

.profile-page .bx-auth-profile .notetext {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    margin-bottom: 1rem;
}

.profile-page .bx-auth-profile .errortext {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    margin-bottom: 1rem;
}

/* --- Компании для оплаты: добавление профиля --- */
.profile-company-toolbar {
    margin: 0 0 1rem;
}

.profile-company-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: var(--cv-accent, #2fc6f6);
    color: #fff;
}

.profile-company-toolbar__btn:hover {
    opacity: 0.92;
    color: #fff;
}

.profile-company-add {
    max-width: 520px;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.2));
}

.profile-company-add__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cv-text, #fff);
}

.profile-company-add__hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.profile-company-add__error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 0.875rem;
}

.profile-company-add__empty {
    margin: 0 0 0.75rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.profile-company-add__field {
    display: block;
    margin: 0 0 1rem;
}

.profile-company-add__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.profile-company-add__req {
    color: #f87171;
}

.profile-company-add__form input[type="text"],
.profile-company-add__form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface-2, rgba(0, 0, 0, 0.35));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
}

.profile-company-add__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
}

.profile-company-add__submit {
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--cv-accent, #2fc6f6);
    color: #fff;
}

.profile-company-add__submit:hover {
    opacity: 0.92;
}

.profile-company-add__cancel {
    font-size: 0.9375rem;
    color: var(--cv-accent, #2fc6f6);
    text-decoration: none;
}

.profile-company-add__cancel:hover {
    text-decoration: underline;
}

/* --- Согласия пользователя (/profile/consents/) --- */
.profile-consents__error {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    margin-bottom: 1rem;
}

.profile-consents__empty {
    margin: 0;
}

.profile-consents__wrap {
    max-width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.profile-consents-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.profile-consents-table th,
.profile-consents-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
    color: var(--cv-text, #e8ecf2);
}

.profile-consents-table th {
    font-weight: 600;
    color: var(--cv-text-muted, #9aa4b2);
    white-space: nowrap;
}

.profile-consents-table__mono {
    font-size: 0.8125rem;
}

.profile-consents-table__url a {
    color: var(--cv-accent, #2fc6f6);
    word-break: break-all;
}

.profile-consents-table__items {
    max-width: 280px;
    word-break: break-word;
    color: var(--cv-text-muted, #9aa4b2);
}

/* --- Партнёрский кабинет (/partners/) --- */
.partners-page--cabinet .partners-cabinet__alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.partners-page--cabinet .partners-cabinet__alert--success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.partners-page--cabinet .partners-cabinet__alert--error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.partners-onboarding {
    max-width: 520px;
    margin-top: 0.5rem;
}

.partners-onboarding__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cv-text, #fff);
}

.partners-onboarding__lead {
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.partners-onboarding__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.partners-onboarding__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    max-width: 360px;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-onboarding__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.25));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
}

.partners-cabinet__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
}

.partners-cabinet__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-cabinet__h1 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--cv-text, #fff);
}

.partners-cabinet__meta {
    margin: 0;
    font-size: 0.9375rem;
}

.partners-cabinet__code {
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: var(--cv-surface, rgba(0, 0, 0, 0.35));
    font-size: 0.875rem;
}

.partners-cabinet__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.partners-cabinet__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.14));
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text, #e8ecf2);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.partners-cabinet__nav-link:hover {
    border-color: var(--cv-accent, #2fc6f6);
    color: var(--cv-accent, #2fc6f6);
}

.partners-cabinet__nav-current {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-accent, #2fc6f6);
    border: 1px solid rgba(47, 198, 246, 0.35);
    background: rgba(47, 198, 246, 0.08);
}

.partners-cabinet__header--subpage {
    margin-bottom: 1.25rem;
}

.partners-cabinet__profile-teaser {
    margin: -0.5rem 0 1.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 640px;
}

.partners-cabinet__profile-teaser a {
    color: var(--cv-accent, #2fc6f6);
    font-weight: 500;
}

.partners-page--profile .partners-cabinet__h2--page {
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.125rem;
    color: var(--cv-text, #fff);
}

.partners-cabinet__section {
    margin-bottom: 2.25rem;
}

.partners-cabinet__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.partners-cabinet__h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-cabinet__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--cv-accent, #2fc6f6);
}

.partners-cabinet__note {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 720px;
}

.partners-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.85rem;
}

.partners-kpi__item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
    background: var(--cv-block-bg, rgba(0, 0, 0, 0.2));
}

.partners-kpi__item--accent {
    border-color: rgba(47, 198, 246, 0.35);
    background: rgba(47, 198, 246, 0.08);
}

.partners-kpi__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cv-text, #fff);
}

.partners-kpi__label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--cv-text-muted, #9aa4b2);
    line-height: 1.35;
}

.partners-kpi__sub {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-kpi__sub--warn {
    color: #fbbf24;
}

.partners-cabinet__table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
}

.partners-cabinet-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--cv-block-bg, rgba(0, 0, 0, 0.2));
}

.partners-cabinet-table th,
.partners-cabinet-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--cv-border, rgba(255, 255, 255, 0.08));
    color: var(--cv-text, #e8ecf2);
}

.partners-cabinet-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cv-text-muted, #9aa4b2);
    background: rgba(0, 0, 0, 0.15);
}

.partners-cabinet-table tbody tr:last-child td {
    border-bottom: none;
}

.partners-cabinet-table__num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.partners-cabinet__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

.partners-cabinet__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.16));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--cv-text, #e8ecf2);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.partners-cabinet__btn:hover {
    border-color: var(--cv-accent, #2fc6f6);
    color: var(--cv-accent, #2fc6f6);
}

.partners-cabinet__btn--primary {
    border: none;
    background: var(--cv-accent, #2fc6f6);
    color: #fff;
}

.partners-cabinet__btn--primary:hover {
    opacity: 0.92;
    color: #fff;
}

.partners-cabinet__badge {
    font-size: 0.8125rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.partners-cabinet__inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
}

.partners-cabinet__inline-label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 220px;
    flex: 1 1 260px;
    max-width: 400px;
}

.partners-cabinet__inline-label-text {
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-cabinet__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.25));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
}

.partners-cabinet__link-danger {
    font-size: 0.875rem;
    color: #f87171;
    text-decoration: none;
}

.partners-cabinet__link-danger:hover {
    text-decoration: underline;
}

/* --- Заявки партнёра (/partners/applications/) --- */
.partners-applications__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 0.25rem;
}

.partners-applications__intro-text {
    flex: 1 1 240px;
    min-width: 0;
}

.partners-applications__open-btn {
    flex-shrink: 0;
    align-self: center;
}

.partners-applications__form {
    max-width: 560px;
    margin-bottom: 0.5rem;
}

.partners-applications__form--drawer {
    max-width: none;
    margin-bottom: 0;
}

.partners-applications__form--drawer .partners-applications__select {
    max-width: none;
}

.partners-applications__field {
    margin: 0 0 1rem;
}

.partners-applications__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
}

.partners-applications__select {
    max-width: 320px;
}

.partners-applications__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.12));
    background: var(--cv-surface, rgba(0, 0, 0, 0.25));
    color: var(--cv-text, #fff);
    font-size: 0.9375rem;
    resize: vertical;
    font-family: inherit;
}

.partners-applications__actions {
    margin: 0;
}

.partners-applications__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.partners-applications__cell-body {
    max-width: 280px;
    font-size: 0.8125rem;
    color: var(--cv-text-muted, #9aa4b2);
    vertical-align: top;
}

/* Выезжающая панель «Подать заявку» */
.pa-app-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pa-app-drawer--open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.pa-app-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
    /* Иначе при закрытом drawer дочерний слой с auto перехватывает клики по странице */
    pointer-events: none;
}

.pa-app-drawer--open .pa-app-drawer__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.pa-app-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(100vw, 440px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--cv-block-bg, rgba(22, 26, 32, 0.98));
    border-right: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.pa-app-drawer--open .pa-app-drawer__panel {
    transform: translateX(0);
    pointer-events: auto;
}

body[data-theme="light"] .pa-app-drawer__panel {
    background: var(--cv-block-bg, #f4f6f9);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.12);
}

.pa-app-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 1rem 0.75rem 1.15rem;
    border-bottom: 1px solid var(--cv-border, rgba(255, 255, 255, 0.08));
}

.pa-app-drawer__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cv-text, #fff);
    line-height: 1.25;
}

.pa-app-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--cv-text-muted, #9aa4b2);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pa-app-drawer__close:hover {
    background: color-mix(in srgb, var(--cv-text) 8%, transparent);
    color: var(--cv-text, #fff);
}

.pa-app-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* --- Страница 404 (кабинет) --- */
.cab-404 {
    max-width: 36rem;
    margin: 2.5rem auto 3rem;
    padding: 2rem 2.25rem;
    text-align: center;
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    background: var(--cv-block-bg);
}

.cab-404__label {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    border: 1px solid var(--cv-border);
    border-radius: 999px;
}

.cab-404__title {
    margin: 0 0 1rem;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.25;
}

.cab-404__text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--cv-text);
    line-height: 1.5;
}

.cab-404__path {
    display: inline;
    padding: 0.1rem 0.35rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: 1px solid var(--cv-border);
    background: color-mix(in srgb, var(--cv-text) 5%, transparent);
    word-break: break-all;
}

.cab-404__hint {
    margin: 0 0 1.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.cab-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.cab-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--cv-border);
    color: var(--cv-text);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cab-404__btn:hover {
    border-color: var(--cv-accent);
    color: var(--cv-link-hover);
}

.cab-404__btn--primary {
    border-color: var(--cv-accent);
    background: color-mix(in srgb, var(--cv-accent) 18%, transparent);
    color: var(--cv-text);
}

.cab-404__btn--primary:hover {
    background: color-mix(in srgb, var(--cv-accent) 28%, transparent);
    color: var(--cv-text);
}

/* --- Создание тикета (/support/tikket/) --- */
.st-ticket {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.st-ticket__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1.75rem 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .st-ticket__grid {
        grid-template-columns: 1fr;
    }
}

.st-ticket__title {
    margin: 0 0 1.25rem;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.2;
}

.st-ticket__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.st-ticket__types {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

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

.st-ticket__type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .st-ticket__type-grid {
        grid-template-columns: 1fr;
    }
}

.st-ticket__type {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--cv-border);
    background: var(--cv-block-bg, rgba(255, 255, 255, 0.04));
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    min-height: 4.5rem;
}

.st-ticket__type:hover {
    border-color: color-mix(in srgb, var(--cv-accent) 45%, var(--cv-border));
}

.st-ticket__type:has(.st-ticket__type-input:checked) {
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--cv-accent) 35%, transparent);
    background: color-mix(in srgb, var(--cv-accent) 10%, var(--cv-block-bg, rgba(255, 255, 255, 0.04)));
}

.st-ticket__type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.st-ticket__type-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.3;
}

.st-ticket__type-hint {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.st-ticket__callout {
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cv-accent) 8%, var(--cv-block-bg, rgba(255, 255, 255, 0.04)));
    border: 1px solid var(--cv-border);
    box-shadow: inset 3px 0 0 var(--cv-accent);
}

.st-ticket__callout-title {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-text);
}

.st-ticket__callout-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--cv-text-muted);
}

.st-ticket__row--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: end;
}

@media (max-width: 640px) {
    .st-ticket__row--split {
        grid-template-columns: 1fr;
    }

    .st-ticket__field--toggle {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.st-ticket__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.st-ticket__field--toggle {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
    padding-bottom: 0.15rem;
}

.st-ticket__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-muted);
}

.st-ticket__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.st-ticket__select-ico {
    position: absolute;
    left: 0.75rem;
    z-index: 1;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.75;
    pointer-events: none;
}

.st-ticket__select {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.25rem;
    font-size: 0.9375rem;
    color: var(--cv-text);
    background-color: var(--cv-block-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--cv-text-muted) 50%), linear-gradient(135deg, var(--cv-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.65rem) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.st-ticket__select:focus {
    outline: none;
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cv-accent) 25%, transparent);
}

.st-ticket__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.st-ticket__switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.st-ticket__switch-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cv-text-muted) 35%, transparent);
    border: 1px solid var(--cv-border);
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.st-ticket__switch-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cv-text, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.st-ticket__switch-input:checked + .st-ticket__switch-ui {
    background: color-mix(in srgb, var(--cv-accent) 55%, transparent);
    border-color: var(--cv-accent);
}

.st-ticket__switch-input:checked + .st-ticket__switch-ui::after {
    transform: translateX(20px);
}

.st-ticket__switch-input:focus-visible + .st-ticket__switch-ui {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cv-accent) 35%, transparent);
}

.st-ticket__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--cv-text);
    background: var(--cv-block-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    resize: vertical;
    min-height: 10rem;
}

.st-ticket__textarea::placeholder {
    color: var(--cv-text-muted);
    opacity: 0.85;
}

.st-ticket__textarea:focus {
    outline: none;
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cv-accent) 25%, transparent);
}

.st-ticket__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 6.5rem;
    padding: 1rem 1.25rem;
    border: 1px dashed color-mix(in srgb, var(--cv-text-muted) 50%, var(--cv-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--cv-text) 3%, transparent);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.st-ticket__drop:hover,
.st-ticket__drop:focus-within {
    border-color: var(--cv-accent);
    background: color-mix(in srgb, var(--cv-accent) 6%, transparent);
}

.st-ticket__file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    font-size: 0;
}

.st-ticket__drop-text {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    text-align: center;
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.st-ticket__drop-link {
    color: var(--cv-accent);
    font-weight: 500;
    text-decoration: none;
}

.st-ticket__drop-meta {
    font-size: 0.75rem;
    color: var(--cv-text-muted);
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.st-ticket__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: 0.25rem;
}

.st-ticket__submit {
    padding: 0.65rem 1.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    background: var(--cv-accent);
    border: 1px solid var(--cv-accent);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, filter 0.15s;
}

.st-ticket__submit:hover {
    background: var(--cv-accent-hover);
    border-color: var(--cv-accent-hover);
}

.st-ticket__submit:focus-visible {
    outline: 2px solid var(--cv-accent);
    outline-offset: 2px;
}

.st-ticket__back {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    text-decoration: none;
}

.st-ticket__back:hover {
    color: var(--cv-link-hover, var(--cv-accent));
}

.st-ticket__aside {
    position: sticky;
    top: 1rem;
}

.st-ticket__card {
    padding: 1.1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid var(--cv-border);
    background: var(--cv-block-bg, rgba(255, 255, 255, 0.04));
}

.st-ticket__card-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
}

.st-ticket__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--cv-text);
}

.st-ticket__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 35%, transparent);
    flex-shrink: 0;
}

.st-ticket__card-link {
    font-size: 0.8125rem;
    color: var(--cv-accent);
    text-decoration: none;
}

.st-ticket__card-link:hover {
    text-decoration: underline;
}

body[data-theme="light"] .st-ticket__type:has(.st-ticket__type-input:checked) {
    background: color-mix(in srgb, var(--cv-accent) 12%, #fff);
}

/* --- Статус сервисов /status/ --- */
.lx-svc-status-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.lx-svc-status-page__h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
}

.lx-svc-status-page__sub {
    margin: 0;
    font-size: 0.875rem;
}

.lx-svc-status-page__refresh {
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text);
    background: var(--cv-block-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}

.lx-svc-status-page__refresh:hover:not(:disabled) {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
}

.lx-svc-status-page__refresh:disabled {
    opacity: 0.55;
    cursor: wait;
}

.lx-svc-status {
    border-radius: 12px;
    border: 1px solid var(--cv-border, rgba(255, 255, 255, 0.1));
    background: color-mix(in srgb, var(--cv-block-bg, #0d1117) 92%, transparent);
    overflow: hidden;
    max-width: 920px;
}

.lx-svc-status__banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text);
    border-bottom: 1px solid var(--cv-border, rgba(255, 255, 255, 0.08));
    background: color-mix(in srgb, var(--cv-text) 4%, transparent);
}

.lx-svc-status__banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #2ea043;
    box-shadow: 0 0 0 3px color-mix(in srgb, #2ea043 35%, transparent);
}

.lx-svc-status--overall-degraded .lx-svc-status__banner-dot {
    background: #d29922;
    box-shadow: 0 0 0 3px color-mix(in srgb, #d29922 35%, transparent);
}

.lx-svc-status--overall-outage .lx-svc-status__banner-dot {
    background: #f85149;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f85149 35%, transparent);
}

.lx-svc-status__list {
    padding: 0;
}

.lx-svc-status__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--cv-border) 80%, transparent);
}

.lx-svc-status__row:last-child {
    border-bottom: none;
}

.lx-svc-status__info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 100%;
}

.lx-svc-status__ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--cv-text-muted, #8b949e);
    opacity: 0.92;
}

.lx-svc-status__ico--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;
}

.lx-svc-status__ico--dedicated {
    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;
}

.lx-svc-status__ico--k8s {
    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='M12 2l2 4h4l-3 3 1 4-4-2-4 2 1-4-3-3h4z'/%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='M12 2l2 4h4l-3 3 1 4-4-2-4 2 1-4-3-3h4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lx-svc-status__ico--db {
    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%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M3 5v6c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3Cpath d='M3 11v6c0 1.66 4 3 9 3s9-1.34 9-3v-6'/%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%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M3 5v6c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3Cpath d='M3 11v6c0 1.66 4 3 9 3s9-1.34 9-3v-6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lx-svc-status__ico--app {
    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='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%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='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lx-svc-status__ico--s3 {
    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='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 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='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lx-svc-status__ico--net {
    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='2'/%3E%3Ccircle cx='5' cy='8' r='2'/%3E%3Ccircle cx='19' cy='8' r='2'/%3E%3Ccircle cx='5' cy='16' r='2'/%3E%3Ccircle cx='19' cy='16' r='2'/%3E%3Cline x1='5' y1='8' x2='12' y2='12'/%3E%3Cline x1='19' y1='8' x2='12' y2='12'/%3E%3Cline x1='5' y1='16' x2='12' y2='12'/%3E%3Cline x1='19' y1='16' x2='12' y2='12'/%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='2'/%3E%3Ccircle cx='5' cy='8' r='2'/%3E%3Ccircle cx='19' cy='8' r='2'/%3E%3Ccircle cx='5' cy='16' r='2'/%3E%3Ccircle cx='19' cy='16' r='2'/%3E%3Cline x1='5' y1='8' x2='12' y2='12'/%3E%3Cline x1='19' y1='8' x2='12' y2='12'/%3E%3Cline x1='5' y1='16' x2='12' y2='12'/%3E%3Cline x1='19' y1='16' x2='12' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lx-svc-status__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    line-height: 1.35;
}

.lx-svc-status__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 200px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .lx-svc-status__tags {
        justify-content: flex-start;
        flex-basis: 100%;
    }
}

.lx-svc-status__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem 0.2rem 0.4rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cv-text, #fff);
    background: color-mix(in srgb, var(--cv-text) 8%, #010409);
    border: 1px solid color-mix(in srgb, var(--cv-border) 90%, transparent);
}

body[data-theme="light"] .lx-svc-status__tag {
    background: color-mix(in srgb, var(--cv-text) 6%, #fff);
}

.lx-svc-status__tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #2ea043;
}

.lx-svc-status__tag--degraded .lx-svc-status__tag-dot {
    background: #d29922;
}

.lx-svc-status__tag--outage .lx-svc-status__tag-dot {
    background: #f85149;
}

/* Дата-центр: проекты в сайдбаре + модальное создание */
.dc-sidebar-proj {
    padding: 0 0 0.85rem;
    margin: 0 0 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--cv-border) 85%, transparent);
}

.dc-sidebar-proj__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.dc-sidebar-proj__title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
}

.dc-sidebar-proj__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cv-accent) 18%, transparent);
    color: var(--cv-accent);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dc-sidebar-proj__icon-btn:hover {
    background: color-mix(in srgb, var(--cv-accent) 28%, transparent);
}

.dc-sidebar-proj__list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    max-height: 11rem;
    overflow-y: auto;
}

.dc-sidebar-proj__item {
    margin: 0;
    padding: 0;
}

.dc-sidebar-proj__link {
    display: block;
    padding: 0.35rem 0.4rem 0.35rem 0.15rem;
    font-size: 0.875rem;
    color: var(--cv-text);
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.3;
}

.dc-sidebar-proj__link:hover {
    background: color-mix(in srgb, var(--cv-text) 6%, transparent);
}

.dc-sidebar-proj__link.is-active {
    font-weight: 600;
    color: var(--cv-accent);
    background: color-mix(in srgb, var(--cv-accent) 12%, transparent);
}

.dc-sidebar-proj__empty {
    font-size: 0.8125rem;
    margin: 0 0 0.5rem;
}

.dc-sidebar-proj__btn {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--cv-border);
    background: var(--cv-block-bg, var(--cv-bg));
    color: var(--cv-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dc-sidebar-proj__btn:hover {
    border-color: color-mix(in srgb, var(--cv-accent) 45%, var(--cv-border));
}

.dc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 140;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dc-modal.dc-modal--open {
    display: flex;
}

.dc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.dc-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 12px;
    background: var(--cv-block-bg, #161b22);
    border: 1px solid var(--cv-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.dc-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dc-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dc-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -0.35rem -0.35rem 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--cv-text-muted);
    background: transparent;
    cursor: pointer;
}

.dc-modal__close:hover {
    color: var(--cv-text);
    background: color-mix(in srgb, var(--cv-text) 8%, transparent);
}

.dc-modal__form {
    margin: 0;
}

.dc-modal__field {
    margin: 0 0 0.85rem;
}

.dc-modal__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-muted);
}

.dc-modal__input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.9375rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border);
    background: var(--cv-bg);
    color: var(--cv-text);
}

.dc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dc-modal__submit {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--cv-accent);
    color: #fff;
    cursor: pointer;
}

.dc-modal__cancel {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--cv-border);
    background: transparent;
    color: var(--cv-text);
    cursor: pointer;
}
