@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.lk-shell-v2 {
    min-height: 100vh;
    background: radial-gradient(circle at 85% 10%, rgba(102, 202, 165, 0.15), transparent 42%), radial-gradient(circle at 10% 100%, rgba(189, 146, 207, 0.2), transparent 38%), #f7f2f9;
    color: #26142f;
    font-family: "Plus Jakarta Sans", "Roboto", sans-serif;
}

.lk-shell-v2 *,
.lk-shell-v2 *::before,
.lk-shell-v2 *::after {
    box-sizing: border-box;
}

.lk-shell-v2 p,
.lk-shell-v2 .p1 {
    font-family: "Plus Jakarta Sans", "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

.lk-shell-v2 h1,
.lk-shell-v2 h2,
.lk-shell-v2 h3,
.lk-shell-v2 .p1-strong {
    font-family: "Manrope", "Roboto", sans-serif;
    margin: 0;
}

.lk-shell-v2 .p1-strong {
    font-size: 18px;
    line-height: 1.2;
    color: #26142f;
}

.lk-shell-v2 .lk-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(118, 80, 135, 0.2);
    background: rgba(255, 247, 252, 0.85);
    backdrop-filter: blur(20px);
}

.lk-shell-v2 .lk-topbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lk-shell-v2 .lk-topbar__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.lk-shell-v2 .lk-brand {
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    background: linear-gradient(90deg, #bd92ce 0%, #66caa5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.lk-shell-v2 .lk-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lk-shell-v2 .lk-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(38, 20, 47, 0.68) !important;
    width: auto;
    min-height: 34px;
    height: auto;
    padding: 5px 2px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.lk-shell-v2 .lk-nav-link:hover,
.lk-shell-v2 .lk-nav-link:focus-visible {
    color: #765087 !important;
    background: transparent;
}

.lk-shell-v2 .lk-nav-link.active {
    color: #765087 !important;
    border-bottom-color: #765087;
}

.lk-shell-v2 .lk-nav-link span {
    color: inherit;
}

.lk-shell-v2 #clients-new-count,
.lk-shell-v2 #archive-total-count {
    margin-left: 6px;
    font-size: 12px;
    color: #765087;
}

.lk-shell-v2 .lk-topbar__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.lk-shell-v2 .lk-search {
    display: flex;
    align-items: center;
    width: 260px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f5e8fa;
    border: 1px solid #edd6f7;
    gap: 10px;
}

.lk-shell-v2 .lk-search__icon {
    width: 16px;
    height: 16px;
    opacity: 0.65;
    flex-shrink: 0;
}

.lk-shell-v2 .lk-search__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #765087;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-shell-v2 .lk-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #26142f;
}

.lk-shell-v2 .lk-search input::placeholder {
    color: rgba(38, 20, 47, 0.55);
}

.lk-shell-v2 .lk-utility {
    position: relative;
}

.lk-shell-v2 .lk-tool-button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #765087 !important;
    font-size: 18px;
    font-weight: 700;
}

.lk-shell-v2 .lk-tool-button:hover,
.lk-shell-v2 .lk-tool-button:focus-visible {
    background: rgba(189, 146, 207, 0.2);
    color: #5f3b71 !important;
}

.lk-shell-v2 .lk-tool-button__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lk-shell-v2 .lk-tool-button__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-shell-v2 .lk-notification-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ba1a1a;
    border: 2px solid #fff7fc;
    position: absolute;
    top: 8px;
    right: 8px;
}

.lk-shell-v2 .lk-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    border: 1px solid rgba(125, 116, 126, 0.28);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(38, 20, 47, 0.12);
    padding: 14px;
    z-index: 60;
}

.lk-shell-v2 .lk-popover[hidden] {
    display: none;
}

.lk-shell-v2 .lk-popover__title {
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lk-shell-v2 .lk-popover__list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-shell-v2 .lk-popover__list li {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(38, 20, 47, 0.85);
}

.lk-shell-v2 .lk-user-block {
    min-height: auto;
    margin: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(118, 80, 135, 0.2);
    gap: 10px;
    display: flex;
    align-items: center;
}

.lk-shell-v2 .profile-link {
    align-items: flex-end;
    gap: 2px;
}

.lk-shell-v2 .profile-role {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(38, 20, 47, 0.6);
}

.lk-shell-v2 #user-name {
    font-size: 14px;
    font-weight: 600;
}

.lk-shell-v2 .lk-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #bd92ce, #66caa5);
    color: #ffffff;
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.lk-shell-v2 .lk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-shell-v2 .lk-avatar_large {
    width: 112px;
    height: 112px;
    font-size: 32px;
}

.lk-shell-v2 .lk-logout {
    width: auto;
    min-height: 32px;
    height: auto;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #ba1a1a !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    padding: 6px 8px;
}

.lk-shell-v2 .lk-logout:hover,
.lk-shell-v2 .lk-logout:focus-visible {
    background: rgba(186, 26, 26, 0.09);
}

.lk-shell-v2 #nav-burger {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
}

.lk-shell-v2 #nav-burger img {
    width: 100%;
    height: 100%;
}

.lk-shell-v2 aside {
    display: none;
}

.lk-shell-v2 .lk-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.lk-shell-v2 .lk-main-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.lk-shell-v2 .lk-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.lk-shell-v2 .lk-profile-card,
.lk-shell-v2 .lk-stats-card {
    background: #ffffff;
    border: 1px solid #e7d7ee;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(38, 20, 47, 0.04);
}

.lk-shell-v2 .lk-profile-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.lk-shell-v2 .lk-profile-card__name {
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 700;
}

.lk-shell-v2 .lk-profile-card__role {
    font-size: 15px;
    color: #765087;
}

.lk-shell-v2 .lk-profile-card__status {
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(102, 202, 165, 0.2);
    color: #0b6d51;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lk-shell-v2 .lk-stats-card {
    padding: 18px 20px;
}

.lk-shell-v2 .lk-stats-card__title {
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(38, 20, 47, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
}

.lk-shell-v2 .lk-stats-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(125, 116, 126, 0.16);
}

.lk-shell-v2 .lk-stats-card__row:last-child {
    border-bottom: none;
}

.lk-shell-v2 .lk-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.lk-shell-v2 .container {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 1px solid #e7d7ee;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(38, 20, 47, 0.04);
}

.lk-shell-v2 .lk-profile-header {
    padding: 24px 28px 0;
    position: relative;
}

.lk-shell-v2 .lk-profile-header h1 {
    font-size: 46px;
    line-height: 1.12;
    margin-bottom: 8px;
}

.lk-shell-v2 .lk-profile-header p {
    color: rgba(38, 20, 47, 0.68);
    max-width: 680px;
    margin-bottom: 8px;
}

.lk-shell-v2 .container-back {
    display: none;
    position: absolute;
    top: 18px;
    left: 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    opacity: 0.5;
}

.lk-shell-v2 .lk-profile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 20px 20px;
}

.lk-shell-v2 .lk-form-card {
    border: 1px solid #efe4f4;
    border-radius: 14px;
    padding: 20px;
}

.lk-shell-v2 #container-profile .form-title,
.lk-shell-v2 #container-open-card .form-title {
    width: 100%;
    height: auto;
    border: none;
    margin-bottom: 14px;
    display: block;
}

.lk-shell-v2 #container-profile .form-title .p1-strong,
.lk-shell-v2 #container-open-card .form-title .p1-strong {
    font-size: 30px;
    text-transform: none;
    color: #26142f;
}

.lk-shell-v2 #container-profile .content,
.lk-shell-v2 #container-open-card .content {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: end;
}

.lk-shell-v2 .input-block {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lk-shell-v2 .input-block_full {
    grid-column: 1 / -1;
}

.lk-shell-v2 .input-block p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(38, 20, 47, 0.58);
}

.lk-shell-v2 .input-block input {
    width: 100%;
    height: 44px;
    border: 1px solid #dec8e7;
    border-radius: 12px;
    background: #f3e2f8;
    padding: 0 14px;
    color: #26142f;
    font-size: 16px;
}

.lk-shell-v2 .input-block input:focus {
    outline: none;
    border-color: #765087;
    box-shadow: 0 0 0 2px rgba(118, 80, 135, 0.12);
    background: #ffffff;
}

.lk-shell-v2 .password-input {
    height: 44px;
}

.lk-shell-v2 .password-input__toggle {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
}

.lk-shell-v2 .button-wrapper {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 6px;
}

.lk-shell-v2 .button-wrapper_column {
    align-items: flex-start;
    justify-content: flex-start;
}

.lk-shell-v2 .button-wrapper > button,
.lk-shell-v2 .button-wrapper_column > button {
    width: 270px;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-family: "Manrope", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff !important;
}

.lk-shell-v2 #profile-save {
    background: linear-gradient(90deg, #bd92ce 0%, #66caa5 100%);
}

.lk-shell-v2 #password-save {
    background: #765087;
}

.lk-shell-v2 .button-wrapper > button:disabled,
.lk-shell-v2 .button-wrapper_column > button:disabled {
    background: #d9c3e2;
    color: #7f6a8a !important;
}

.lk-shell-v2 .change-password__error {
    margin-top: 10px;
    width: 100%;
    text-align: left;
    color: #ba1a1a;
    font-size: 12px;
    line-height: 1.3;
}

.lk-shell-v2 #password-form .input-block {
    position: static;
}

.lk-shell-v2 #password-form .input-block small {
    position: static;
    width: auto;
    transform: none;
    color: rgba(38, 20, 47, 0.56);
}

.lk-shell-v2 #container-clients .form-title,
.lk-shell-v2 #container-diagnostics .form-title,
.lk-shell-v2 #container-managers .form-title {
    width: 100%;
    min-height: 76px;
    border-bottom: 1px solid #ede2f2;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    position: relative;
}

.lk-shell-v2 #container-clients .content,
.lk-shell-v2 #container-diagnostics .content,
.lk-shell-v2 #container-managers .content {
    width: 100%;
    min-height: 420px;
}

.lk-shell-v2 #container-clients,
.lk-shell-v2 #container-diagnostics,
.lk-shell-v2 #container-managers {
    margin-bottom: 0;
}

.lk-shell-v2 .search-wrapper {
    width: 320px;
    margin-left: 0;
}

.lk-shell-v2 #clients-loading-count,
.lk-shell-v2 #managers-loading-count {
    margin-left: auto;
    color: rgba(38, 20, 47, 0.55);
    font-size: 14px;
}

.lk-shell-v2 .card {
    width: 100%;
    min-height: 68px;
    padding: 12px 20px;
    border-bottom: 1px solid #ede2f2;
}

.lk-shell-v2 .card-left__content {
    margin-left: 12px;
}

.lk-shell-v2 .list-person-name {
    font-size: 16px;
    font-weight: 600;
}

.lk-shell-v2 .card-right__content {
    width: auto;
    margin-left: 12px;
    gap: 4px;
}

.lk-shell-v2 .diagnostic {
    padding: 14px 20px;
    min-height: 72px;
}

.lk-shell-v2 #filter-wrapper,
.lk-shell-v2 #managers-filter-wrapper {
    z-index: 80;
}

.lk-shell-v2 #filter-clients,
.lk-shell-v2 #filter-managers {
    margin-left: 12px;
}

@media screen and (max-width: 1300px) {
    .lk-shell-v2 .lk-main-grid {
        grid-template-columns: 1fr;
    }

    .lk-shell-v2 .lk-left-column {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .lk-shell-v2 .lk-profile-card,
    .lk-shell-v2 .lk-stats-card {
        height: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .lk-shell-v2 .lk-topbar__inner {
        padding: 12px 16px;
    }

    .lk-shell-v2 .lk-brand {
        font-size: 28px;
    }

    .lk-shell-v2 .lk-header-nav,
    .lk-shell-v2 .lk-search,
    .lk-shell-v2 #user-role,
    .lk-shell-v2 #user-name,
    .lk-shell-v2 .lk-logout {
        display: none;
    }

    .lk-shell-v2 #nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lk-shell-v2 aside {
        width: 100%;
        height: 100%;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(255, 247, 252, 0.98);
        padding: 112px 24px 24px;
        overflow: auto;
    }

    .lk-shell-v2 aside.show {
        display: block;
    }

    .lk-shell-v2 aside nav {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .lk-shell-v2 aside h2 {
        font-size: 28px;
        margin-bottom: 24px;
        color: #765087;
    }

    .lk-shell-v2 aside li {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .lk-shell-v2 aside .nav-button {
        width: 100%;
        min-height: 34px;
        display: flex;
        align-items: center;
        gap: 14px;
        border: none;
        background: transparent;
        color: #26142f !important;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
        border-radius: 0;
        text-transform: none;
        font-size: 18px;
    }

    .lk-shell-v2 aside .nav-button.active,
    .lk-shell-v2 aside .nav-button:hover {
        color: #765087 !important;
    }

    .lk-shell-v2 aside .nav-button img {
        width: 24px;
        height: 24px;
    }

    .lk-shell-v2 .lk-main {
        padding: 16px;
    }

    .lk-shell-v2 .lk-left-column {
        grid-template-columns: 1fr;
    }

    .lk-shell-v2 .lk-profile-card__name {
        font-size: 26px;
    }

    .lk-shell-v2 .lk-profile-header {
        padding: 20px 16px 0 48px;
    }

    .lk-shell-v2 .lk-profile-header h1 {
        font-size: 34px;
    }

    .lk-shell-v2 .container-back {
        display: block;
    }

    .lk-shell-v2 .lk-profile-stack {
        padding: 8px 10px 10px;
        gap: 10px;
    }

    .lk-shell-v2 .lk-form-card {
        padding: 14px;
    }

    .lk-shell-v2 #container-profile .form-title .p1-strong,
    .lk-shell-v2 #container-open-card .form-title .p1-strong {
        font-size: 24px;
    }

    .lk-shell-v2 #container-profile .content,
    .lk-shell-v2 #container-open-card .content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lk-shell-v2 .input-block input,
    .lk-shell-v2 .password-input {
        height: 38px;
    }

    .lk-shell-v2 .button-wrapper > button,
    .lk-shell-v2 .button-wrapper_column > button {
        width: 100%;
        height: 40px;
    }

    .lk-shell-v2 .button-wrapper,
    .lk-shell-v2 .button-wrapper_column {
        justify-content: flex-start;
    }

    .lk-shell-v2 #container-clients .form-title,
    .lk-shell-v2 #container-diagnostics .form-title,
    .lk-shell-v2 #container-managers .form-title {
        min-height: 64px;
        padding: 10px 12px 10px 44px;
    }

    .lk-shell-v2 .search-wrapper {
        width: 100%;
    }

    .lk-shell-v2 .search-wrapper input {
        font-size: 14px;
    }

    .lk-shell-v2 #filter-clients,
    .lk-shell-v2 #filter-managers {
        width: 20px;
        height: 20px;
        padding: 0;
        margin-left: 8px;
    }

    .lk-shell-v2 #clients-loading-count,
    .lk-shell-v2 #managers-loading-count {
        font-size: 12px;
        margin-left: 8px;
    }

    .lk-shell-v2 .card {
        min-height: 60px;
        padding: 12px;
    }

    .lk-shell-v2 .diagnostic {
        min-height: 62px;
        padding: 10px 12px;
    }

    .lk-shell-v2 .lk-popover {
        width: min(290px, calc(100vw - 24px));
        right: -8px;
    }

    .lk-shell-v2 .lk-utility {
        position: static;
    }

    .lk-shell-v2 #help-popover,
    .lk-shell-v2 #notifications-popover {
        position: fixed;
        top: 64px;
        right: 12px;
    }
}
