.page-auth-profile [hidden] {
    display: none !important;
}

.page-auth-profile .cabinet {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: var(--layout-gap);
    width: 100%;
    min-width: 0;
    align-items: start;
}

.page-auth-profile .cabinet-side {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 12px 10px 10px;
    border: 1px solid rgba(113, 163, 230, 0.28);
    background: linear-gradient(180deg, rgba(22, 33, 61, 0.82) 0%, rgba(16, 24, 46, 0.78) 100%);
    box-shadow: 0 16px 36px rgba(4, 10, 22, 0.34), inset 0 1px 0 rgba(188, 220, 255, 0.08);
}

.page-auth-profile .cabinet-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 2px 10px 12px;
    border-bottom: 1px solid rgba(113, 163, 230, 0.22);
}

.page-auth-profile .cabinet-brand .profile-avatar {
    margin: 0;
}

.page-auth-profile .cabinet-brand .profile-avatar__trigger {
    width: 64px;
    height: 64px;
}

.page-auth-profile .cabinet-brand .profile-avatar__placeholder {
    font-size: 1.35rem;
}

.page-auth-profile .cabinet-brand .profile-avatar__hover {
    gap: 2px;
    padding: 4px;
    font-size: 0.68rem;
    text-align: center;
}

.page-auth-profile .cabinet-brand .profile-avatar__hover i {
    font-size: 0.9rem;
}

.page-auth-profile .cabinet-brand__nick {
    margin: 0;
    max-width: 100%;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-auth-profile .cabinet-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-auth-profile .cabinet-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    color: #c5d4e4;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.page-auth-profile .cabinet-nav__link i {
    width: 1.1em;
    flex: 0 0 auto;
    text-align: center;
    color: #8ecbff;
}

.page-auth-profile .cabinet-nav__link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-auth-profile .cabinet-nav__link:hover {
    color: #fff;
    background: rgba(18, 32, 58, 0.72);
}

.page-auth-profile .cabinet-nav__link.is-active {
    color: #fff;
    background: rgba(30, 51, 89, 0.88);
    border-color: rgba(142, 203, 255, 0.45);
}

.page-auth-profile .cabinet-main {
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap);
    min-width: 0;
    max-width: 100%;
}

.page-auth-profile .cabinet-main .profile-panel__head {
    margin-bottom: 16px;
}

.page-auth-profile .cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.page-auth-profile .cabinet-actions .auth-btn,
.page-auth-profile .profile-avatar-modal .auth-btn {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 14px;
}

.page-auth-profile .cabinet-actions a.auth-btn,
.page-auth-profile .cabinet-actions a.auth-btn:hover,
.page-auth-profile .cabinet-actions a.auth-btn:focus,
.page-auth-profile .cabinet-actions a.auth-btn:active {
    text-decoration: none;
}

.page-auth-profile .cabinet-main .profile-save-bar {
    margin-top: 0;
}

.profile-publics-hint {
    margin: 0 0 14px;
    color: rgba(175, 200, 228, 0.82);
    line-height: 1.45;
}

.page-auth-profile .profile-publics-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-auth-profile .profile-public-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    min-width: 0;
}

.page-auth-profile .profile-public-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: #c5d4e4;
    font-size: 0.92rem;
    font-weight: 600;
}

.page-auth-profile .profile-public-row label i {
    width: 1.15em;
    flex: 0 0 auto;
    text-align: center;
    color: #8ecbff;
}

.page-auth-profile .profile-public-row label span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-auth-profile .profile-public-row input {
    width: 100%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid rgba(113, 163, 230, 0.35);
    background: rgba(10, 18, 36, 0.65);
    color: #e8eef2;
    font: inherit;
    font-size: 0.95rem;
}

.page-auth-profile .profile-public-row input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.18);
}

.profile-articles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-article {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(125, 184, 255, 0.12);
}

.profile-article__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-article:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-article__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
}

.profile-article__title a {
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.profile-article__title a:hover {
    color: #8ecbff;
}

.profile-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    color: rgba(175, 200, 228, 0.78);
    font-size: 0.84rem;
}

.profile-article__status {
    padding: 2px 8px;
    border: 1px solid rgba(142, 203, 255, 0.35);
    color: #d5e8ff;
}

.profile-article__status--approved {
    border-color: rgba(129, 199, 132, 0.45);
    color: #b9f6ca;
}

.profile-article__status--pending {
    border-color: rgba(255, 183, 77, 0.45);
    color: #ffe082;
}

.profile-article__status--rejected {
    border-color: rgba(239, 83, 80, 0.45);
    color: #ff9eb0;
}

.profile-article__status--draft,
.profile-article__status--hidden {
    border-color: rgba(158, 158, 158, 0.4);
    color: rgba(210, 216, 224, 0.9);
}

.profile-articles-empty {
    margin: 8px 0 0;
    color: rgba(175, 200, 228, 0.82);
}

.profile-article__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    flex: 0 0 auto;
}

.profile-article__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid rgba(142, 203, 255, 0.4);
    background: rgba(20, 42, 74, 0.72);
    color: #e8f4ff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.profile-article__action:hover,
.profile-article__action:focus,
.profile-article__action:active,
.profile-article__action:visited {
    text-decoration: none;
    border-color: rgba(142, 203, 255, 0.7);
    color: #fff;
}

.profile-article__action--danger {
    border-color: rgba(255, 138, 138, 0.55);
    background: rgba(92, 28, 32, 0.72);
    color: #ffd0d0;
}

.profile-article__action--danger:hover,
.profile-article__action--danger:focus,
.profile-article__action--danger:active {
    text-decoration: none;
    border-color: #ff8a8a;
    color: #fff;
}

.profile-article__action:disabled {
    opacity: 0.55;
    cursor: default;
}

.profile-avatar {
    margin-bottom: 20px;
    min-width: 0;
}

.profile-avatar__trigger {
    position: relative;
    display: block;
    width: 96px;
    height: 96px;
    padding: 0;
    border: 1px solid rgba(113, 163, 230, 0.4);
    background: rgba(8, 14, 28, 0.72);
    color: inherit;
    font: inherit;
    line-height: 0;
    cursor: pointer;
    overflow: hidden;
    appearance: none;
}

.profile-avatar__trigger:hover,
.profile-avatar__trigger:focus-visible {
    border-color: rgba(142, 203, 255, 0.8);
}

.profile-avatar__trigger:focus-visible {
    outline: 2px solid #8ecbff;
    outline-offset: 2px;
}

.profile-avatar__preview-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 28, 0.65);
}

.profile-avatar__preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8ecbff;
    font-size: 1.6rem;
    line-height: 1;
}

.profile-avatar__preview-wrap.has-image .profile-avatar__placeholder {
    display: none;
}

.profile-avatar__hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(8, 18, 40, 0.72);
    color: #e7f3ff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.profile-avatar__hover i {
    font-size: 1rem;
    color: #8ecbff;
}

.profile-avatar__trigger:hover .profile-avatar__hover,
.profile-avatar__trigger:focus-visible .profile-avatar__hover {
    opacity: 1;
}

.profile-avatar-crop {
    display: grid;
    gap: 10px;
    justify-items: start;
    width: 100%;
    min-width: 0;
}

.profile-avatar-crop canvas {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 16px 16px;
    background-color: #0b1424;
    border: 1px solid rgba(142, 203, 255, 0.55);
    cursor: grab;
    touch-action: none;
}

.profile-avatar-crop canvas:active {
    cursor: grabbing;
}

.profile-avatar-crop__zoom {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: min(280px, 100%);
    margin: 0;
    color: #c5d4e4;
    font-size: 0.88rem;
    font-weight: 600;
}

.profile-avatar-crop__zoom input {
    width: 100%;
    min-width: 0;
    margin: 0;
    accent-color: #64b5f6;
}

.profile-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.profile-avatar-modal[hidden] {
    display: none !important;
}

body.profile-avatar-modal-open {
    overflow: hidden;
}

.profile-avatar-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(6px);
}

.profile-avatar-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(18, 28, 52, 0.98) 0%, rgba(12, 20, 38, 0.98) 100%);
    border: 1px solid rgba(141, 195, 255, 0.22);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(188, 220, 255, 0.08);
    box-sizing: border-box;
}

.profile-avatar-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(141, 195, 255, 0.12);
}

.profile-avatar-modal__header-text {
    min-width: 0;
}

.profile-avatar-modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.profile-avatar-modal__hint {
    margin: 6px 0 0;
    color: rgba(175, 200, 228, 0.82);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.4;
}

.profile-avatar-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(141, 195, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #9ab0c8;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar-modal__close:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.28);
    color: #ff8a80;
}

.profile-avatar-modal__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 16px 16px 8px;
}

.profile-avatar-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(141, 195, 255, 0.12);
}

.profile-avatar-modal__remove {
    margin-right: auto;
    color: #ffcdd2;
    border-color: rgba(229, 115, 115, 0.4);
    background: rgba(58, 24, 35, 0.35);
}

.profile-avatar-modal__remove:hover {
    color: #ffebee;
    border-color: rgba(229, 115, 115, 0.6);
    background: rgba(58, 24, 35, 0.55);
}

.page-auth-profile .cabinet-main .recruiting-contact-row {
    grid-template-columns: auto minmax(0, 1fr) 40px;
    align-items: center;
}

.page-auth-profile .cabinet-main .recruiting-contact-value,
.page-auth-profile .cabinet-main .recruiting-contact-remove,
.page-auth-profile .cabinet-main .recruiting-contact-type-btn {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
}

.page-auth-profile .cabinet-main .recruiting-contacts-add {
    min-height: 40px;
}

.page-auth-profile .profile-panel--account {
    border-color: rgba(113, 163, 230, 0.45);
}

.page-auth-profile .profile-about {
    margin: 0 0 20px;
    min-width: 0;
    max-width: 100%;
}

.page-auth-profile .profile-about__input {
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    max-height: 280px;
    padding: 10px 12px;
    border: 1px solid rgba(113, 163, 230, 0.45);
    border-radius: 0;
    background: rgba(10, 18, 36, 0.65);
    color: #e8eef2;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.45;
    resize: vertical;
}

.page-auth-profile .profile-about__input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.18);
}

.page-auth-profile .profile-about__hint {
    margin: 6px 0 0;
    color: rgba(175, 200, 228, 0.82);
    font-size: 0.95rem;
    line-height: 1.45;
}

.blog-author-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    min-width: 0;
}

.blog-author-card__id {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.blog-author-card__head .blog-author-card__kicker,
.blog-author-card__head .blog-author-card__name,
.blog-author-card__head .blog-author-card__bio {
    margin: 0;
}

.blog-author-card__head .blog-author-card__kicker {
    margin-bottom: 2px;
}

.blog-author-card__head .blog-author-card__bio {
    margin-top: 8px;
}

.blog-author-card__head .blog-author-card__links {
    margin-top: 10px;
}

.blog-author-card__avatar {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: cover;
    border: 1px solid rgba(113, 163, 230, 0.45);
    background: rgba(8, 14, 28, 0.72);
    box-sizing: border-box;
}

.blog-author-card__avatar--placeholder {
    display: grid;
    place-items: center;
    color: #8ecbff;
    font-size: 1.45rem;
    line-height: 1;
}

@media (hover: none) {
    .profile-avatar__hover {
        opacity: 1;
        justify-content: flex-end;
        padding-bottom: 8px;
        background: linear-gradient(to top, rgba(8, 18, 40, 0.88), rgba(8, 18, 40, 0.08) 70%);
    }

    .page-auth-profile .cabinet-brand .profile-avatar__hover {
        padding: 0 0 3px;
        gap: 0;
        background: linear-gradient(to top, rgba(8, 18, 40, 0.72), transparent 58%);
    }

    .page-auth-profile .cabinet-brand .profile-avatar__hover span {
        display: none;
    }
}

@media (max-width: 860px) {
    .page-auth-profile .cabinet {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-auth-profile .cabinet-side {
        position: static;
    }

    .page-auth-profile .cabinet-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-auth-profile .cabinet-nav__link {
        flex: 1 1 140px;
    }
}

@media (max-width: 640px) {
    .page-auth-profile .profile-public-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-auth-profile .cabinet-actions .auth-btn,
    .page-auth-profile .cabinet-main .profile-save-bar .auth-btn,
    .page-auth-profile .profile-avatar-modal__body .auth-btn,
    .page-auth-profile .profile-avatar-modal__footer .auth-btn {
        width: 100%;
    }

    .page-auth-profile .profile-avatar-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .page-auth-profile .profile-avatar-modal__dialog {
        max-height: min(94vh, 760px);
    }

    .page-auth-profile .profile-avatar-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .page-auth-profile .profile-avatar-modal__remove {
        margin-right: 0;
        order: 3;
    }

    .page-auth-profile .cabinet-main .recruiting-contact-row {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .page-auth-profile .cabinet-main .recruiting-contact-types {
        grid-column: 1 / -1;
    }
}

/* cabinet-list-rows */
.page-auth-profile .profile-panel--list .bracket-profile-table,
.page-auth-profile .profile-panel--list .bracket-profile-table th,
.page-auth-profile .profile-panel--list .bracket-profile-table td,
.page-auth-profile .profile-panel--list .bracket-profile-title__text,
.page-auth-profile .profile-panel--list .bracket-profile-format,
.page-auth-profile .profile-panel--list .bracket-profile-date,
.page-auth-profile .profile-panel--list .bracket-profile-link,
.page-auth-profile .profile-panel--list .bracket-profile-delete,
.page-auth-profile .profile-panel--list .bracket-profile-badge,
.page-auth-profile .profile-panel--list .bracket-meta-status,
.page-auth-profile .profile-panel--list .bracket-profile-table code,
.page-auth-profile .profile-article__title,
.page-auth-profile .profile-article__meta,
.page-auth-profile .profile-article__status,
.page-auth-profile .profile-article__time,
.page-auth-profile .profile-article__action {
    font-size: 1rem;
}

.page-auth-profile .profile-panel--list .bracket-profile-table tbody tr:last-child > td,
.page-auth-profile .profile-panel--list .bracket-profile-table tbody tr:last-child > th {
    border-bottom: 0;
}

.page-auth-profile .profile-articles > .profile-article:last-child {
    border-bottom: 0;
}
/* /cabinet-list-rows */
