@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Bold.woff2') format('woff2'),
        url('/fonts/PTSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-BoldItalic.woff2') format('woff2'),
        url('/fonts/PTSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Regular.woff2') format('woff2'),
        url('/fonts/PTSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Italic.woff2') format('woff2'),
        url('/fonts/PTSans-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

.pt-sans-regular {font-family: "PT Sans", sans-serif;font-weight: 400;font-style: normal;}
.pt-sans-bold {font-family: "PT Sans", sans-serif;font-weight: 700;font-style: normal;}
.pt-sans-regular-italic {font-family: "PT Sans", sans-serif;font-weight: 400;font-style: italic;}
.pt-sans-bold-italic {font-family: "PT Sans", sans-serif;font-weight: 700;font-style: italic;}

:root {
  --greeny: #07c0a1; 
  --blacky: #22272a;  
  --bg: #1e1e1e; /* Цвет фона */
  --maintext: #22272a;
}

html, body {font-family: 'PT Sans', 'Arial', Tahoma, Geneva, sans-serif;width:100%;min-width:360px;margin:0;color:#444444;font-size:14px;font-weight:400;background: linear-gradient(to top, #65cd9a, #339a99) fixed;background-attachment: fixed;line-height:1.2;font-feature-settings: 'pnum' on, 'lnum' on;touch-action: manipulation;overscroll-behavior: none;height: 100%;}

/* Исправление двойного скролла при открытии offcanvas */
body.offcanvas-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Предотвращение двойного скролла на мобильных устройствах */
@media (max-width: 991.98px) {
  body.offcanvas-open {
    position: fixed;
    width: 100%;
  }
}

/* Поддержка телефонов с "чёлкой" */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .header_block {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-top: max(0px, env(safe-area-inset-top));
  }
  
}
a:link, a:visited, a:active  {color:var(--maintext);text-decoration:none;}
a:hover {color:var(--greeny);text-decoration:none;}
b {display:contents;}
p {padding:0;margin:10px 0;}
h1 {display:inline-block;font-family:'PT Sans', sans-serif;color:var(--maintext);font-weight:700;font-size:30px;margin:0px;word-wrap: break-word;}
h2 {display:inline-block;font-family:'PT Sans', sans-serif;color:var(--maintext);font-weight:700;font-size:20px;margin:0px;word-wrap: break-word;}
h3 {display:inline-block;font-family:'PT Sans', sans-serif;color:var(--maintext);font-weight:700;font-size:18px;margin:0px;word-wrap: break-word;}
h5 {display:inline-block;font-family:'PT Sans', sans-serif;color:var(--maintext);font-weight:700;font-size:16px;margin:0px;word-wrap: break-word;padding:5px 0;}
img {vertical-align: inherit !important;}
form {display: contents;}
select, select option {color:#000000;}
select:invalid {color: #bababa !important;}
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {-webkit-appearance: none; appearance: none; margin: 0;}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.mainbody {background-color: #edeef0; overflow-x: hidden;}
.footer {color:#999999; background-color:#222222;}
.contents {display:contents;}
.no-scroll {overflow:hidden;}
.error {color: red;text-align:center;}
.white {color:#ffffff;}
.black {color:#000000;}

/* Иконка HH.ru */
.bi-headhunter::before {
    content: "";
    background-image: url('/img/hh_logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
}

/* Специальные размеры для логотипа HH.ru */
.bi-headhunter.bi-lg::before {
    width: 2em;
    height: 2em;
}

.bi-headhunter.bi-xl::before {
    width: 3em;
    height: 3em;
}

.bi-headhunter.bi-xxl::before {
    width: 4em;
    height: 4em;
}
.p0 {padding:0;}
.alert-floating {position:absolute;top:20px;}

/* Стили для блока пользователей онлайн */
.online-users-container {
    padding: 0;
}

.online-users-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.online-users-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.online-users-list {
    max-height: 400px;
    overflow-y: auto;
}

.online-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.online-user-item:last-child {
    border-bottom: none;
}

.online-user-item:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.user-name:hover {
    color: #007bff;
    text-decoration: none;
}

.user-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-type-specialist {
    background-color: #e3f2fd;
    color: #1976d2;
}

.user-type-team {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.user-type-developer {
    background-color: #e8f5e8;
    color: #388e3c;
}

.user-type-default {
    background-color: #f5f5f5;
    color: #757575;
}

.last-activity {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.online-users-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.online-users-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.online-users-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.online-users-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

.online-users-error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.online-users-error p {
    margin: 0;
    font-size: 0.9rem;
}

/* Адаптивность для пользователей онлайн */
@media (max-width: 768px) {
    .online-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-info {
        width: 100%;
    }
    
    .last-activity {
        align-self: flex-end;
    }
    
    .online-users-list {
        max-height: 300px;
    }
}

/* Стили для скроллбара пользователей онлайн */
.online-users-list::-webkit-scrollbar {
    width: 6px;
}

.online-users-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Анимация появления пользователей онлайн */
.online-user-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Индикатор онлайн статуса */
.online-user-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

/* Стили для гостей */
.guest-info {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Стили для тега "онлайн" */
.online-badge {
    position: absolute;
    top: 17px;
    right: 20px;
    background-color: var(--greeny);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    animation: pulse-green 2s infinite;
    box-shadow: 0 1px 3px rgba(7, 192, 161, 0.3);
    z-index: 10;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 1px 3px rgba(7, 192, 161, 0.3), 0 0 0 0 rgba(7, 192, 161, 0.7);
    }
    70% {
        box-shadow: 0 1px 3px rgba(7, 192, 161, 0.3), 0 0 0 6px rgba(7, 192, 161, 0);
    }
    100% {
        box-shadow: 0 1px 3px rgba(7, 192, 161, 0.3), 0 0 0 0 rgba(7, 192, 161, 0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* header */
.header_block {background:#222222;height:40px;}
.navbar-brand {margin-right: 0;}
a.header_link:link, a.header_link:visited, a.header_link:active, a.header_link:hover {color:#ffffff;text-decoration:none;}
a.header_icon:link, a.header_icon:visited, a.header_icon:active, a.header_icon:hover {color:#ffffff;text-decoration:none;}

.header-early-access-badge {
    border: 1px solid rgba(7, 192, 161, 0.5);
    border-radius: 999px;
    background: rgba(7, 192, 161, 0.12);
    color: #8ff5df;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-early-access-badge:hover,
.header-early-access-badge:focus {
    background: rgba(7, 192, 161, 0.2);
    border-color: rgba(7, 192, 161, 0.85);
    color: #ffffff;
}

.header-early-access-badge__icon {
    display: none;
}

.header-early-access {
    position: relative;
    z-index: 11000;
    padding: 0;
}

.header-early-access-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 11000;
    width: 360px;
    max-width: min(360px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid rgba(7, 192, 161, 0.45);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(34, 34, 34, 0.98) 0%, rgba(25, 44, 42, 0.98) 100%);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.header-early-access-popover::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 24px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(7, 192, 161, 0.45);
    border-left: 1px solid rgba(7, 192, 161, 0.45);
    background: rgba(30, 41, 39, 0.98);
    transform: rotate(45deg);
}

.header-early-access-popover__title {
    margin-bottom: 8px;
    color: #8ff5df;
    font-size: 1rem;
    font-weight: 700;
}

.header-early-access-popover__text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.5;
}

.header-early-access-popover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-early-access-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(7, 192, 161, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8fff6;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-early-access-action:link,
.header-early-access-action:visited,
.header-early-access-action:active {
    color: #d8fff6;
}

.header-early-access-action:hover,
.header-early-access-action:focus {
    border-color: rgba(7, 192, 161, 0.9);
    background: rgba(7, 192, 161, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.header-early-access-action--primary {
    background: #07c0a1;
    border-color: #07c0a1;
    color: #0f2522;
}

.header-early-access-action--primary:link,
.header-early-access-action--primary:visited,
.header-early-access-action--primary:active {
    color: #0f2522;
}

.header-early-access-action--primary:hover,
.header-early-access-action--primary:focus {
    background: #18d7b8;
    border-color: #18d7b8;
    color: #0f2522;
}

@media (max-width: 575.98px) {
    .header-early-access-popover {
        position: fixed;
        top: 48px;
        left: 10px;
        width: 340px;
        min-width: 340px;
        max-width: none;
    }

    .header-early-access-popover::before {
        left: 86px;
    }
}

@media (max-width: 430px) {
    .header-early-access-badge {
        width: 30px;
        height: 26px;
        padding: 0;
        border-color: transparent;
        background: transparent;
    }

    .header-early-access-badge:hover,
    .header-early-access-badge:focus {
        border-color: transparent;
        background: transparent;
        color: #ffffff;
    }

    .header-early-access-badge__text {
        display: none;
    }

    .header-early-access-badge__icon {
        display: block;
    }

    .header-early-access-popover::before {
        left: 67px;
    }
}

.header_block_unauthorized {display:flex;align-items:center;background:#222222;height:40px;z-index: 1030;}


/* Фиксированный header на мобильных устройствах */
@media (max-width: 991.98px) {
    
.header_block_unauthorized {position: fixed;top:0;left:10px;right:10px;display:flex;align-items:center;background:#222222;height:40px;z-index: 1030;min-width: 370px;}

    .header_block {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        min-width: 370px;
    }
        
    /* Альтернативный способ - добавить отступ к mainbody */
    .mainbody {
        margin-top: 40px;
    }
    .header_link {
        padding: 0 10px;
    }
}
.navbar-toggler-icon {background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;}

/* Исправление проблемы с dropdown меню на iOS */
.dropdown-menu {
    z-index: 9999 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 991px) {
    .dropdown-menu {
        z-index: 99999 !important;
        position: fixed !important;
        top: 50px !important;
        right: 10px !important;
        left: auto !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    
    /* Уменьшаем z-index для mainbody на мобильных */
    .mainbody {
        position: relative;
        z-index: 1;
    }
}

/* Специальные стили для iOS */
@supports (-webkit-touch-callout: none) {
    .dropdown-menu {
        z-index: 999999 !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Принудительное создание нового слоя для iOS */
    .dropdown-menu.show {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

.dropdown-item {color: #000000;background-color:#ffffff;}
.dropdown-item:hover, .dropdown-item:focus {color: #ffffff;background-color: #07c0a1;}
.nav-item .nav-link {color:#000000;background-color: transparent;}
.nav-item .nav-link:hover, .nav-item .nav-link:focus {color: #ffffff;background-color: #07c0a1;}

/* footer */
.footer_logo {color:#ffffff;}
.footer_logo a:link, .footer_logo a:visited, .footer_logo a:active {color:#ffffff;font-size: 36px;font-weight: 700;}
.footer_logo a:hover {color:#07c0a1;}
.footer_links {color:#999999;}
.footer_links a:link, .footer_links a:visited, .footer_links a:active {color:#999999;}
.footer_links a:hover {color:#ffffff;}
.lastsection {box-sizing: border-box;position: relative;background: #ffffff;content: " ";height: 5px;background-image: url(/img/bgf.jpg);background-size: cover;background-repeat: repeat-x;display: block;bottom: 0px;}

.logo {color:var(--greeny);font-size:32px;font-weight:700;}
/*.body_guest {background-image:linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1)), url(/img/bg_login.jpg);background-repeat:no-repeat; background-position:center; background-size:cover;} */

/* Общий фон и карточка для гостевых (авторизационных) страниц */
body.body_guest {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--greeny) 0%, #00796b 50%, #005a4a 100%);
    display: flex;
    align-items: center;
}

body.body_guest .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.login-box {
    position: relative;
    top: 15%;
}

/* Специальные стили для страниц авторизации - поднимаем контент выше и делаем «карточку» */
body.body_guest .login-box {
    top: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

body.body_guest .sub {
    color: #4a4a4a;
    font-size: 1.1rem;
}

body.body_guest a {
    color: #077c63;
}

body.body_guest a:hover {
    color: #055846;
    text-decoration: none;
}

/* Дополнительная оптимизация для мобильных устройств */
@media (max-width: 768px) {
    body.body_guest .login-box {
        top: 0;
        padding: 1.75rem 1.5rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Специальный layout для страницы регистрации (без bootstrap-вертикального центрирования) */
/* Фон на html, чтобы градиент не обрезался внизу (не показывался дефолтный фон html) */
html:has(body.body_guest.body_register) {
    min-height: 100%;
    background: linear-gradient(135deg, var(--greeny) 0%, #00796b 50%, #005a4a 100%);
    background-attachment: fixed;
}
body.body_guest.body_register {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    background-attachment: fixed;
}

body.body_guest.body_register .auth-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

@media (max-width: 768px) {
    body.body_guest.body_register .auth-container {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }
}

body.body_guest.body_register .auth-box {
    margin: 0 auto;
    padding: 2.25rem 2rem 2rem;
}

body.body_guest.body_register .register-page-title {
    color: #1a2332;
    font-size: clamp(1.85rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0.85rem 0 0;
}

@media (max-width: 768px) {
    body.body_guest.body_register .register-page-title {
        font-size: 1.75rem;
        margin-top: 0.65rem;
    }
}

@media (max-width: 768px) {
    body.body_guest.body_register .auth-box {
        padding: 1.75rem 1.4rem 1.5rem;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }
}

/* Регистрация: поля ввода — явно активные, не «заблокированные» */
body.body_guest.body_register .form-control {
    background-color: #ffffff;
    border: 1px solid #b0bec5;
    border-radius: 8px;
    color: #1a2332;
    font-size: 1rem;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

body.body_guest.body_register .form-control:hover:not(:focus):not(:disabled) {
    border-color: #90a4ae;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

body.body_guest.body_register .form-control:focus {
    border-color: var(--greeny, #07c0a1);
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 0 0 2px rgba(7, 192, 161, 0.16);
    outline: 0;
}

body.body_guest.body_register .form-control::placeholder {
    color: #607d8b;
    opacity: 1;
    font-weight: 400;
}

body.body_guest.body_register .form-control:disabled {
    background-color: #eceff1;
    border-color: #b0bec5;
    color: #78909c;
    box-shadow: none;
    cursor: not-allowed;
}

body.body_guest.body_register .form-check-input {
    border: 1px solid #b0bec5;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

body.body_guest.body_register .form-check-input:checked {
    background-color: var(--greeny, #07c0a1);
    border-color: var(--greeny, #07c0a1);
}

body.body_guest.body_register .form-check-input:focus {
    border-color: var(--greeny, #07c0a1);
    box-shadow: 0 0 0 2px rgba(7, 192, 161, 0.16);
}

body.body_guest.body_register .form-check-label {
    color: #374151;
    cursor: pointer;
}

/* Карточки выбора роли пользователя (регистрация / гостевые страницы) — светлый дизайн в стиле главной */
.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .role-choice-grid {
        grid-template-columns: 1fr;
    }
}

.role-option {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cfd8dc;
    padding: 1.35rem 1.4rem 1.2rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.18s ease,
        background-color 0.2s ease;
    outline: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 6px 20px rgba(15, 23, 42, 0.09);
    color: #1f2933;
}

.role-option:hover {
    border-color: rgba(7, 192, 161, 0.55);
    background: #fafdfc;
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.07),
        0 10px 28px rgba(15, 23, 42, 0.11);
    transform: translateY(-2px);
}

.role-option.active {
    border-color: var(--greeny, #07c0a1);
    box-shadow:
        0 4px 10px rgba(7, 192, 161, 0.12),
        0 12px 32px rgba(7, 192, 161, 0.16);
    background: linear-gradient(160deg, #f4fbf9 0%, #ffffff 60%);
}

.role-option:focus-visible {
    border-color: var(--greeny, #07c0a1);
    box-shadow:
        0 0 0 2px rgba(7, 192, 161, 0.2),
        0 6px 20px rgba(15, 23, 42, 0.09);
}

.role-option-title {
    font-weight: 600;
    font-size: 1.04rem;
    color: #111827;
}

.role-option-desc {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.role-option-hint {
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: rgba(107, 114, 128, 0.7);
}

.role-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(7, 192, 161, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #077c63;
    font-size: 1.2rem;
}

.role-option.active .role-option-icon {
    background: rgba(7, 192, 161, 0.14);
    color: #00695c;
}

.role-choice-header {
    margin-bottom: 1rem;
}

.role-choice-title {
    font-weight: 600;
    font-size: 1.12rem;
    color: #111827;
}

.role-choice-helper {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Индикатор выбора в правом верхнем углу карточки */
.role-option::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: none;
}

.role-option.active::after {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07c0a1;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    content: '✓';
}

.role-warning-text {
    font-size: 0.85rem;
    color: #0c5460;
    padding: 0.25rem 0;
}


/* Специальные стили для иконок в формах */
.form-control + .bi,
.form-select + .bi {
    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) !important;
    color: #aaa;
}

.bi img {pointer-events: none;}

.form-control, .form-select {height:44px;border-radius:4px;}
.form-control::-webkit-input-placeholder {color: #BABABA;font-weight:light;}
.form-control::-moz-placeholder {color: #BABABA;font-weight:light;}
.form-control:-ms-input-placeholder {color: #BABABA;font-weight:light;}
.form-control::-ms-input-placeholder {color: #BABABA;font-weight:light;}
.form-control::placeholder {color: #BABABA;font-weight:light;}
/* Светлые стили для всех модальных окон */
.modal-content {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    color: #212529 !important;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    color: #212529 !important;
    background-color: #ffffff;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Темная кнопка закрытия модального окна */
.modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.293.293.707.707L8 7.586 15.293 1.293l.707.707L8.707 8.5l7.293 7.293-.707.707L8 9.207.707 16.5l-.707-.707L7.293 8.5.293 1.207z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    filter: none !important;
    opacity: 0.75;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25);
    opacity: 1;
}
.form-check-label {color:#ffffff;}
.btn {
    padding: 0 10px;
    background-color: #ffffff;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    height: 36px;
    border: 1px solid var(--greeny);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn:link, .btn:active, .btn:visited {
    background-color: #fff;
    color: #000;
    border: 1px solid var(--greeny);
}

.btn:hover {
    background-color: var(--greeny);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--greeny);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--greeny);
    --bs-btn-border-color: var(--greeny);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--greeny);
    --bs-btn-hover-border-color: var(--greeny);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--greeny);
    --bs-btn-active-border-color: var(--greeny);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--greeny);
    --bs-btn-disabled-border-color: var(--greeny);
    border: 1px solid var(--greeny);
}

.btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
    border: 1px solid #6c757d;
}

.explain-text {font-size:12px;}
.sms-text {font-size:12px;}
.sms-text a:link, .sms-text a:active, .sms-text a:visited {text-decoration:none;color:var(--greeny);font-weight:700;}
.sms-text a:hover {text-decoration:underline;font-weight:700;}
.sms-index-text {font-size:12px;}
.sms-index-text a:link, .sms-index-text a:active, .sms-index-text a:visited {text-decoration:none;color:white;font-weight:700;}
.sms-index-text a:hover {text-decoration:underline;font-weight:700;}
.reg-text {font-size:12px;}
.reg-text a:link, .reg-text a:active, .reg-text a:visited {text-decoration:none;color:var(--greeny);font-weight:700;}
.reg-text a:hover {text-decoration:underline;font-weight:700;}
.selector {color:black;}

/* Global */
span.specialist,
span.team,
span.developer {
    color: #22272a;
    font-size: 14px;
}

/* Стили для премиум-пользователей — аккуратный градиентный текст без подчёркиваний/иконок */
span.premium-user {
    font-weight: 700;
    background: linear-gradient(45deg, #07c0a1, #339a99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

span.premium-user:hover {
    opacity: 0.9;
}

i
ine-height /* Menu top */ine-heioght
.main_menu {background-color:#1C1C1C;color:#ffffff;font-size:16px;text-align:center;height:40px;}
.main_menu_item {display:inline-block;padding:0 20px;white-space:nowrap;}
.main_menu_item a:link, .main_menu_item a:visited, .main_menu_item a:active {color:#ffffff;text-decoration:none;}
.main_menu_item a:hover {color:#ffffff;text-decoration:none;}
.main_menu_item_active {display:inline-block;padding:0 30px;background-color:#00DFA1;white-space:nowrap;}
.main_menu_item_active a:link, .main_menu_item_active a:visited, .main_menu_item_active a:active {color:#1C1C1C;text-decoration:none;}
.main_menu_item_active a:hover {color:#1C1C1C;text-decoration:none;}
.navbar-toggler-icon {--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");background-image: var(--bs-navbar-toggler-icon-bg);background-repeat: no-repeat;background-position: center;background-size: 100% 100%;width: 1.5em;height: 1.5em;}

/* Главная страница*/
.mainpage_block {margin-bottom: 10px;padding: 17px 20px 20px 20px;background-color: #ffffff;border-top: 1px solid #e3e4e8;border-left: 1px solid #e3e4e8;border-right: 1px solid #e3e4e8;border-bottom: 1px solid #d7d8db;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;}
.mainpage_block_item {padding:3px;}
.mainpage_block_item img {max-width: 100%;}
.mainpage_block_title {padding:8px;}
.mainpage_small_sub {color:#aaaaaa;font-size: 12px;}
.mainpage_small_sub a:link, .mainpage_small_sub a:active, .mainpage_small_sub a:visited {color:#aaaaaa;font-size: 12px;}
.mainpage_small_sub a:hover {color:#aaaaaa;font-size: 12px;text-decoration:underline;}
.mainpage_post_title {font-size: 14px;}
.mainpage_post_title a:visited, div.mainpage_post_title a:active {text-decoration: none;}

/* CTA Join */
.cta-join {background: linear-gradient(135deg, rgba(7,192,161,0.08), rgba(51,154,153,0.08)); border: 1px solid rgba(7,192,161,0.25);} 
.cta-join .cta-inner {position: relative;}
.role-card {border: 1px solid #e9ecef; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.03);} 
.role-card:hover {transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: var(--greeny);} 
.role-icon {font-size: 40px; line-height: 1;}
.badge-soft {display:inline-block; padding:6px 10px; border-radius: 999px; background: rgba(7,192,161,0.12); color: #0f8c7a; font-weight: 600; font-size: 12px; border: 1px solid rgba(7,192,161,0.3);} 
.stepper {position: relative;}
.stepper-track {display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;}
.stepper-item {text-align: center; padding: 10px 12px; border: 1px dashed #cfe8e4; border-radius: 8px; background: #fff;}
.stepper-item.active {border-style: solid; border-color: var(--greeny); background: linear-gradient(0deg, rgba(7,192,161,0.06), rgba(7,192,161,0.06)); color: #0f8c7a; font-weight: 600;}

/* Публикация блога*/
.blog_post_block {
    padding: 16px 20px 14px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3e4e8;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.blog_post_block:hover {
    border-color: rgba(7, 192, 161, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}
.blog_post_title {
    font-size: 18px;
    padding: 0;
    margin-bottom: 6px;
    font-weight: 600;
}
.blog_post_title h3 {
    font-size: inherit;
    margin: 0;
}
.blog_post_block_item {padding: 0;}
.blog_post_block_item img {max-width: 100%;}
.blog_post_created {
    color: #8c8f99;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.blog_post_author {color:#666666;font-size: 14px;margin-bottom: 10px;padding: 0 25px;}
.blog_post_contents {
    padding: 6px 0 0 0;
    text-align: justify;
    line-height: 1.65;
}
.blog_post_contents br {display: block;margin: 8px 0;content: "";}
.blog_post_contents p {margin: 0 0 0.85em;}
.blog_post_contents p:last-child {margin-bottom: 0;}

.project-description-block {
    font-size: 14px;
    line-height: 1.65;
    color: #3f4555;
    text-align: left;
}
.resume-view-block .project-description-block p:last-child {
    margin-bottom: 0;
}

/* Адрес объекта — строка над текстом описания на странице проекта */
.project-view-object-address {
    margin: 0 0 0.9rem 0;
    padding: 0 0 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.project-view-object-address__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 1rem;
    min-height: 1.5rem;
}
.project-view-object-address__label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
    line-height: 1.2;
}
.project-view-object-address__value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.35;
}
.project-view-object-address__value .bi {
    flex-shrink: 0;
    font-size: 1rem;
    color: #6c757d;
    opacity: 0.95;
}
a.project-view-object-address__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}
a.project-view-object-address__map-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}
a.project-view-object-address__map-link:hover .bi {
    color: #0d6efd;
    opacity: 1;
}
a.project-view-object-address__map-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
    border-radius: 0.2rem;
}
.project-view-object-address__text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 576px) {
    .project-view-object-address__inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .project-view-object-address__text {
        white-space: normal;
    }
}
.project-materials-title {
    font-size: 1.33rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-gallery-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(17, 24, 39, 0.9);
    z-index: 2100;
}
body.project-gallery-open {
    overflow: hidden;
}
.project-gallery-overlay.is-open {
    display: block;
}
.project-gallery-overlay-dialog {
    position: absolute;
    inset: 0;
    padding: 14px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.project-gallery-close {
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
    top: calc(max(8px, env(safe-area-inset-top)) + 52px);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-gallery-meta {
    text-align: center;
    color: rgba(255, 255, 255, 0.86) !important;
    padding-right: 34px;
    min-height: 1.35rem;
    line-height: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-gallery-main-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}
.project-gallery-main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.project-gallery-nav-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18%;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    user-select: none;
    z-index: 3;
    transition: background 0.16s ease, color 0.16s ease;
}
.project-gallery-nav-area.left { left: 0; }
.project-gallery-nav-area.right { right: 0; }
.project-gallery-nav-area .bi {
    font-size: 38px;
    line-height: 1;
}
.project-gallery-nav-area:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.95);
}
.project-gallery-file-card {
    text-align: center;
    padding: 1.4rem;
    color: #fff;
}
.project-gallery-file-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 800;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-gallery-generic-icon {
    width: 120px;
    height: auto;
}
.project-gallery-thumbs {
    display: none;
}
.project-gallery-thumbs-rows {
    flex: 0 0 auto;
    max-height: 32vh;
    overflow-y: auto;
    padding-top: 2px;
}
.project-gallery-thumbs-row + .project-gallery-thumbs-row {
    margin-top: 8px;
}
.project-gallery-thumbs-row-title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    margin-bottom: 4px;
}
.project-gallery-thumbs-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.project-gallery-thumb {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    overflow: hidden;
}
.project-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-gallery-thumb-file {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
}
.project-gallery-thumb.active {
    border-color: #07c0a1;
    box-shadow: 0 0 0 2px rgba(7, 192, 161, 0.65);
}
@media (max-width: 768px) {
    .project-gallery-overlay-dialog {
        padding: 10px 10px 8px;
    }
    .project-gallery-close {
        right: max(8px, env(safe-area-inset-right));
        top: calc(max(6px, env(safe-area-inset-top)) + 48px);
        width: 34px;
        height: 34px;
    }
    .project-gallery-nav-area {
        width: 22%;
        min-width: 48px;
    }
    .project-gallery-nav-area .bi {
        font-size: 30px;
    }
    .project-gallery-thumbs-rows {
        max-height: 34vh;
    }
}

/* Мастер добавления: заголовок шага «запрос / возврат участия» внутри .dash-card */
.project-add-wizard-join__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--blacky, #212529);
    margin: 0 0 1.125rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

/* Мастер добавления проекта: карточка похожего — мета/текст как у блока «Материалы по участникам» на project.php */
.project-add-wizard-similar-card .mainpage_block_title h2 {
    margin-bottom: 0;
}
.project-add-wizard-similar-fragment {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.45;
}
.project-add-wizard-similar-fragment-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
}

/* Страница проекта: блок «Запросы на участие» — мета как у карточек «Материалы по участникам», по строке */
.project-join-requests-fire-main .project-join-request-item + .project-join-request-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.project-join-request-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.project-join-request-item-main {
    flex: 1 1 200px;
    min-width: 0;
}
.project-join-request-user-row {
    margin-bottom: 0.5rem;
}
.project-join-request-meta-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 0.75rem;
}
.project-join-request-meta-lines strong {
    color: #495057;
    font-weight: 600;
}

/* формы */
.form-check-label {color: #000000;}
.accordion-item .form-check-label {color: #ffffff;}
.form_textarea {height:250px;}

/* Стили для заголовков модальных окон */
.modal-title {
    color: #212529 !important;
    font-weight: 600;
}

/* Стили для форм в модальных окнах */
.modal-body .form-label {
    color: #212529 !important;
    font-weight: 500;
}

.modal-body .form-control {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

.modal-body .form-control:focus {
    border-color: #07c0a1;
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25);
}

.modal-body .form-select {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

.modal-body .form-select:focus {
    border-color: #07c0a1;
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25);
}

.modal-body .form-check-label {
    color: #212529 !important;
    cursor: pointer;
}

.modal-body .form-check-label:hover {
    color: #07c0a1;
}

.modal-body .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Убираем padding-left для form-check в модальных окнах выбора города и специализации */
#cityModal .modal-body .form-check,
#specModal .modal-body .form-check,
#specsModal .modal-body .form-check {
    padding-left: 0 !important;
}

.modal-body .form-check-input {
    margin: 0;
    border-color: #ced4da;
    cursor: pointer;
}

.modal-body .form-check-input:checked {
    background-color: #07c0a1;
    border-color: #07c0a1;
}

.modal-body .form-check-input:focus {
    border-color: #07c0a1;
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25);
}

/* Кнопки BS */

.btn:link, .btn:active, .btn:visited {background-color:#fff;color:#000;}
.btn:hover {background-color:var(--greeny);color:#fff;text-decoration:none;border: 1px solid var(--greeny);}
.btn-primary {--bs-btn-color: #fff;--bs-btn-bg: var(--greeny);--bs-btn-border-color: var(--greeny);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: var(--greeny);--bs-btn-hover-border-color: var(--greeny);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: var(--greeny);--bs-btn-active-border-color: var(--greeny);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: var(--greeny);--bs-btn-disabled-border-color: var(--greeny);}
.btn-outline-primary {--bs-btn-color: var(--greeny);--bs-btn-border-color: var(--greeny);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: var(--greeny);--bs-btn-hover-border-color: var(--greeny);--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: var(--greeny);--bs-btn-active-border-color: var(--greeny);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: var(--greeny);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: var(--greeny);--bs-gradient: none;}

/* Стили для маленьких кнопок */
.btn-sm {
    height: 28px;
    font-size: 12px;
    padding: 0 8px;
    border: 1px solid var(--greeny);
}

/* Поиск вакансий */
.vacancy-card {margin-bottom: 10px;padding: 17px 20px 20px 20px;background-color: #ffffff;border-top: 1px solid #e3e4e8;border-left: 1px solid #e3e4e8;border-right: 1px solid #e3e4e8;border-bottom: 1px solid #d7d8db;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;}

/* Карточки резюме */
.resume-card {margin-bottom: 10px;padding: 17px 20px 20px 20px;background-color: #ffffff;border-top: 1px solid #e3e4e8;border-left: 1px solid #e3e4e8;border-right: 1px solid #e3e4e8;border-bottom: 1px solid #d7d8db;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;}

.resume-card h5 {margin-bottom: 8px;}

.resume-card h5 a {color: #333;text-decoration: none;font-weight: 600;}

.resume-card h5 a:hover {color: var(--greeny);text-decoration: underline;}

.resume-card div {margin-bottom: 4px;color: #666;}

.resume-card p {margin-bottom: 8px;color: #666;}

.resume-card div:last-child {margin-bottom: 0;color: #999;font-size: 12px;}

/* Стили для заблокированных чекбоксов */
.form-check-input:disabled + .form-check-label {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-check-input:disabled {
  cursor: not-allowed;
}
.filter-block {color:#000000;padding:15px;min-width: 300px;max-width: 339px;flex-shrink: 0;}
.results-block {flex-grow: 1;padding-left: 1rem;}

/* ——— Поиск вакансий (/vacancies_list): макет и карточки в стиле dash ——— */
/* Отступ от крошек как у страницы публикации: только margin-bottom у .breadcrumb-nav (1rem) */
.mainbody .vacancies-search-page {
    padding-top: 0;
    margin-top: 0;
}
.mainbody > .row > .col-12.vacancies-search-page {
    padding-top: 0;
    margin-top: 0;
}
.vacancies-search-header {
    margin-top: 0;
    margin-bottom: 1rem;
}
.vacancies-search-page .vacancies-search-header .dash-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blacky);
}
.vacancies-search-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .vacancies-search-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.75rem;
    }
}
.vacancies-search-filters.dash-card {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 1.3rem 1.35rem 1.35rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .vacancies-search-filters.dash-card {
        width: 308px;
        max-width: 328px;
        align-self: flex-start;
    }
}
.vacancies-search-main {
    flex: 1;
    min-width: 0;
}
.vacancies-filter-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin: 0 0 0.65rem 0;
}
.vacancies-search-filters > .vacancies-filter-heading:first-child {
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--blacky);
    margin-bottom: 0.75rem;
}
.vacancies-filter-section + .vacancies-filter-section {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f3f5;
}
.vacancies-search-filters .form-check {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}
.vacancies-search-filters .form-check-label {
    color: var(--maintext);
}
.saved-filters-toolbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}
.saved-filters-toolbar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.saved-filters-section {
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f3f5;
}
.saved-filters-section__title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
}
.saved-filters-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.saved-filter-chip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.5rem 0.45rem 0.65rem;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--maintext);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.saved-filter-chip:hover,
.saved-filter-chip:focus-visible {
    background: #fff;
    border-color: #ced4da;
    outline: none;
}
.saved-filter-chip__label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.45;
}
.saved-filter-chip__remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #868e96;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.saved-filter-chip__remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
.vacancies-search-input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-color: #e8eaed;
    font-size: 0.875rem;
}
.vacancies-search-input-group .btn-accent {
    border-radius: 0 10px 10px 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}
.vacancies-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.vacancies-search-empty {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    font-size: 0.9375rem;
}
.vacancies-search-pagination .vacancies-page-ellipsis {
    display: inline-flex;
    align-items: center;
    color: #868e96;
    font-size: 0.875rem;
    line-height: 1;
    user-select: none;
}
.vacancies-search-pagination .vacancies-page-btn {
    min-width: 2.25rem;
    border-radius: 10px;
}

/* Карточка вакансии / резюме в выдаче поиска */
.vacancy-search-card.dash-list-card,
.resume-search-card.dash-list-card,
.team-catalog-card.dash-list-card {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding: 1rem 1.15rem 0.95rem;
    transition: box-shadow 0.2s ease;
}
.vacancy-search-card.dash-list-card:hover,
.resume-search-card.dash-list-card:hover,
.team-catalog-card.dash-list-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
/* Премиум-карточка без отдельного фона — как обычная (.dash-list-card) */
.vacancy-search-card--premium.dash-list-card,
.resume-search-card--premium.dash-list-card,
.team-catalog-card.resume-search-card--premium.dash-list-card {
    background: #fff;
    border-color: #e8eaed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Лента и бейдж премиума в разметке есть; на страницах поиска не показываем */
.vacancies-search-page .vacancy-search-card__ribbon,
.vacancies-search-page .vacancy-search-card__premium-badge,
.resume-list-page .resume-search-card__ribbon,
.resume-list-page .resume-search-card__premium-badge {
    display: none !important;
}
.vacancy-search-card__ribbon,
.resume-search-card__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.vacancy-search-card__ribbon-text,
.resume-search-card__ribbon-text {
    position: absolute;
    top: 1.1rem;
    right: -1.75rem;
    width: 7.5rem;
    padding: 0.28rem 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(73, 80, 87, 0.85);
    background: rgba(7, 192, 161, 0.11);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: rotate(45deg);
}
.vacancy-search-card__inner,
.resume-search-card__inner {
    position: relative;
    z-index: 1;
}
.vacancy-search-card__head,
.resume-search-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.55rem;
}
.vacancy-search-card__title,
.resume-search-card__title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--blacky);
    text-decoration: none;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.vacancy-search-card__title:hover,
.resume-search-card__title:hover {
    color: var(--greeny);
}
.vacancy-search-card__premium-badge,
.resume-search-card__premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(7, 192, 161, 0.2);
}
.vacancy-search-card__premium-badge .bi,
.resume-search-card__premium-badge .bi {
    font-size: 0.85rem;
    color: var(--greeny);
    opacity: 0.9;
}
.resume-search-card__invited {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #0c5460;
    background: rgba(13, 202, 240, 0.12);
    border: 1px solid rgba(13, 202, 240, 0.35);
}
.vacancy-search-card__pills,
.resume-search-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}
.resume-search-card__extra {
    font-size: 0.8125rem;
    color: #868e96;
    line-height: 1.4;
    margin-bottom: 0.45rem;
}
.vacancy-search-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #495057;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
}
.vacancy-search-pill--muted {
    color: #868e96;
    background: #f8f9fa;
    border-color: #e9ecef;
    font-weight: 400;
}
.vacancy-search-card__meta,
.resume-search-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0.45rem;
}
.vacancy-search-card__meta-item,
.resume-search-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.vacancy-search-card__meta-item .bi,
.resume-search-card__meta-item .bi {
    font-size: 0.95rem;
    opacity: 0.85;
}
.vacancy-search-card__footer,
.resume-search-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f3f5;
    font-size: 0.8125rem;
    color: #6c757d;
}
.vacancy-search-card__author,
.resume-search-card__author {
    min-width: 0;
}
.vacancy-search-card__author a,
.resume-search-card__author a {
    color: var(--maintext);
    text-decoration: none;
    font-weight: 500;
}
.vacancy-search-card__author a:hover,
.resume-search-card__author a:hover {
    color: var(--greeny);
}
.vacancy-search-card__date,
.resume-search-card__date {
    color: #868e96;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Страница вакансии */
.vacancy_page_title {font-size: 16px;padding:0 25px 10px 25px;}
.vacancy_page_block {margin-bottom: 10px;padding: 17px 20px 20px 20px;background-color: #ffffff;border-top: 1px solid #e3e4e8;border-left: 1px solid #e3e4e8;border-right: 1px solid #e3e4e8;border-bottom: 1px solid #d7d8db;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;}
.vacancy_info_item {padding: 4px 0;}

/* Добавление вакансии */
.custom-form .form-control, .custom-form .form-select {padding-left:15px;background-color: #1e1e1e;border: 1px solid #00bfa6;color: #e0e0e0;  border-radius: 4px;}
.custom-form .form-select:disabled {color: #2f2f2f;border: 1px solid #2f2f2f;background-color: #1e1e1e;}
.custom-form .form-select {height:44px;color: #BABABA;background-color: #1e1e1e;}
.custom-form .form-select option {color: #BABABA;background-color: #1e1e1e;}
.custom-form .form-select option selected {color: #BABABA;background-color: #1e1e1e;}
.custom-form .form-select option:disabled {color: #BABABA;background-color: #1e1e1e;}
.custom-form .form-check-input {background-color: #1e1e1e;border: 1px solid #00bfa6;color: #e0e0e0;  border-radius: 4px;}
.custom-form .form-check-input:checked {background-color: #00bfa6;border-color: #00bfa6;}
.text-accent {color: #00bfa6;}
.btn-accent {
    background: var(--greeny) !important;
    border: 1px solid var(--greeny) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background: #ffffff !important;
    border-color: transparent !important;
    color: #000000 !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.section-title {color: #00bfa6;font-weight: 500;}

/* --- Страницы резюме: список, просмотр, создание/редактирование --- */

/* Список резюме /myresumes */
.resume-list-page .dash-section-title { margin-bottom: 1rem; }
/* Приглашения: тот же вертикальный ритм, что у .dash-section на главной */
.myinv-page.resume-list-page .dash-section-title,
.invitation-detail-page.resume-list-page .dash-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* /myinvitations: уменьшаем зазор после заголовка перед первым блоком */
.myinv-page.resume-list-page .dash-section-title {
    margin-bottom: 0.9rem;
}
.myinv-page.resume-list-page .myinv-vacancy-section {
    margin-bottom: 1.25rem;
}
.myinv-page.resume-list-page .myinv-vacancy-section .resume-list-card.mainpage_block {
    border-radius: 16px;
}
.resume-list-page .mainpage_block {
  border-radius: 14px;
  border: 1px solid #e8eaed;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.resume-list-stats.mainpage_block {
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(7, 192, 161, 0.02) 100%);
  border: 1px solid rgba(7, 192, 161, 0.12);
  border-radius: 14px;
}
.resume-list-stats-inner { padding: 0.5rem 0; }
.resume-list-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: var(--blacky);
}
.resume-list-stats-row.resume-list-stats-status { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(7, 192, 161, 0.15); }
.resume-list-stat-value { font-weight: 700; color: var(--blacky); margin-right: 0.25rem; }
.resume-list-stat-label { color: #6c757d; }
.resume-list-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8125rem;
}
.resume-list-stat-badge .resume-list-stat-value { font-weight: 600; }
.resume-list-stat-active { background: rgba(25, 135, 84, 0.12); color: #198754; }
.resume-list-stat-draft { background: rgba(108, 117, 125, 0.12); color: #6c757d; }
.resume-list-stat-hidden { background: rgba(255, 193, 7, 0.2); color: #856404; }
/* Сводка приглашений (/myinvitations) — второй ряд метрик */
.resume-list-stat-badge.resume-list-stat-inv-pending { background: rgba(255, 193, 7, 0.2); color: #856404; }
.resume-list-stat-badge.resume-list-stat-inv-accept { background: rgba(25, 135, 84, 0.12); color: #198754; }
.resume-list-stat-badge.resume-list-stat-inv-decline { background: rgba(220, 53, 69, 0.12); color: #b02a37; }
.resume-list-stat-badge.resume-list-stat-inv-revoke { background: rgba(108, 117, 125, 0.14); color: #495057; }
.resume-list-stat-badge.resume-list-stat-inv-expire { background: rgba(253, 126, 20, 0.14); color: #984c0c; }
.resume-list-card-inner { padding: 1.25rem 1.35rem; }
.resume-list-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.resume-list-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blacky);
  margin: 0;
  text-decoration: none;
}
.resume-list-card-title:hover { color: var(--greeny); }

/* /myinvitations: заголовок вакансии не должен менять цвет при наведении */
.myinv-page .resume-list-card-title:hover { color: var(--blacky); }
.resume-list-card-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2em 0.5em;
  border-radius: 6px;
}
.resume-list-card-status-active { color: #198754; background: rgba(25, 135, 84, 0.1); }
.resume-list-card-status-draft { color: #6c757d; background: rgba(108, 117, 125, 0.1); }
.resume-list-card-status-hidden { color: #856404; background: rgba(255, 193, 7, 0.15); }
.vacancy-applied-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(7, 192, 161, 0.32);
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.14) 0%, rgba(7, 192, 161, 0.08) 100%);
  color: #0d8a77;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.vacancy-applied-badge .bi {
  font-size: 0.84em;
  line-height: 1;
}
.resume-list-card-head .vacancy-applied-badge {
  margin-left: 0;
}
.dash-resume-card .dash-resume-meta .vacancy-applied-badge {
  margin-left: 0.2rem;
}
.resume-list-card.tender-card-active {
  background: rgba(25, 135, 84, 0.07) !important;
  border-color: rgba(25, 135, 84, 0.18) !important;
}
.resume-list-card.tender-card-draft {
  background: rgba(108, 117, 125, 0.07) !important;
  border-color: rgba(108, 117, 125, 0.18) !important;
}
.resume-list-card.tender-card-hidden {
  background: rgba(255, 193, 7, 0.10) !important;
  border-color: rgba(255, 193, 7, 0.22) !important;
}

/* /myvacancies — опубликованные вакансии заметнее черновиков */
.resume-list-page .resume-list-card.vacancy-list-card--published {
  background: linear-gradient(135deg, rgba(22, 157, 142, 0.11) 0%, rgba(22, 157, 142, 0.04) 100%);
  border: 1px solid rgba(22, 157, 142, 0.32);
  border-left: 4px solid #169d8e;
  box-shadow: 0 4px 16px rgba(22, 157, 142, 0.14);
}
.resume-list-page .resume-list-card.vacancy-list-card--published .resume-list-card-title {
  color: #0d5c56;
}
.resume-list-page .resume-list-card.vacancy-list-card--published .resume-view-hero-status-active {
  background: rgba(22, 157, 142, 0.18);
  color: #117b72;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(22, 157, 142, 0.12);
}
.resume-list-page .resume-list-card.vacancy-list-card--draft {
  background: #fafbfc;
  border-color: #e3e6ea;
  box-shadow: none;
}

.resume-list-card-specs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  align-items: center;
  margin: 0 0 0.75rem 0;
  line-height: 1.1;
}
.resume-list-card-specs .resume-spec-tag { margin-bottom: 0; margin-right: 0; }
.resume-list-card-specs .text-muted { font-size: 0.875rem; }
.resume-list-card-meta {
  font-size: 0.8125rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.resume-list-card-meta i { margin-right: 0.25rem; }
.resume-list-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.resume-list-card-actions .resume-card-btn,
.resume-list-page .resume-card-btn { text-decoration: none; }
.resume-list-page .mainpage_block_item .btn-link { text-decoration: none; }
.resume-list-page .mainpage_post_title a { font-weight: 600; color: var(--blacky); }
.resume-list-page .mainpage_post_title a:hover { color: var(--greeny); }

/* Страница обращений /feedback */
.feedback-page .feedback-ticket-header {
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(7, 192, 161, 0.02) 100%);
  border-color: rgba(7, 192, 161, 0.15);
}
.feedback-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feedback-message {
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 0.75rem 0.9rem;
  background: #fff;
}
.feedback-message-user {
  border-color: rgba(13, 110, 253, 0.15);
  background: rgba(13, 110, 253, 0.04);
}
.feedback-message-admin {
  border-color: rgba(7, 192, 161, 0.2);
  background: rgba(7, 192, 161, 0.06);
}
.feedback-message-system {
  border-color: rgba(108, 117, 125, 0.2);
  background: rgba(108, 117, 125, 0.06);
}
.feedback-message-meta {
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: 0.35rem;
}
.feedback-message-text {
  white-space: pre-wrap;
  line-height: 1.45;
}
.feedback-message-origin {
  margin-top: 0.45rem;
  display: inline-block;
  font-size: 0.75rem;
  color: #6c757d;
  border: 1px dashed rgba(108, 117, 125, 0.3);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}
.feedback-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feedback-ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feedback-ticket-item:hover {
  border-color: rgba(7, 192, 161, 0.35);
  box-shadow: 0 4px 12px rgba(7, 192, 161, 0.12);
  transform: translateY(-1px);
}
.feedback-ticket-main {
  min-width: 0;
}
.feedback-ticket-title {
  font-weight: 600;
  color: var(--blacky);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.feedback-ticket-meta {
  font-size: 0.8125rem;
  color: #6c757d;
}
.feedback-ticket-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
@media (max-width: 767.98px) {
  .feedback-ticket-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Просмотр резюме: герой-блок */
.resume-view-hero {
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.08) 0%, rgba(7, 192, 161, 0.04) 100%);
  border: 1px solid rgba(7, 192, 161, 0.15);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.resume-view-hero--with-fav {
  position: relative;
}

/* Иконка избранного в hero — как на публичном профиле (без обводки .btn) */
.resume-view-hero--with-fav > .team-catalog-fav-btn.dash-profile-fav-btn,
.dash-profile-hero--view > .team-catalog-fav-btn.dash-profile-fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s;
  height: auto;
  min-height: 0;
  font-size: 1.25rem;
  font-weight: 400;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.resume-view-hero--with-fav > .team-catalog-fav-btn.dash-profile-fav-btn:hover,
.resume-view-hero--with-fav > .team-catalog-fav-btn.dash-profile-fav-btn:focus,
.dash-profile-hero--view > .team-catalog-fav-btn.dash-profile-fav-btn:hover,
.dash-profile-hero--view > .team-catalog-fav-btn.dash-profile-fav-btn:focus {
  color: var(--greeny, #07c0a1);
  background: none;
  border: none;
  box-shadow: none;
}

.resume-view-hero--with-fav > .team-catalog-fav-btn.dash-profile-fav-btn .bi-bookmark-fill.text-primary,
.dash-profile-hero--view > .team-catalog-fav-btn.dash-profile-fav-btn .bi-bookmark-fill.text-primary {
  color: #0d6efd !important;
}

.resume-page .btn.hg-cta-fill,
.vacancy-page .btn.hg-cta-fill,
.tender-page .btn.hg-cta-fill,
.resume-page a.btn.hg-cta-fill,
.vacancy-page a.btn.hg-cta-fill,
.tender-page a.btn.hg-cta-fill {
  background: #169d8e;
  border: 1px solid #169d8e;
  color: #fff !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: none;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

.resume-page .btn.hg-cta-fill:hover,
.resume-page .btn.hg-cta-fill:focus,
.vacancy-page .btn.hg-cta-fill:hover,
.vacancy-page .btn.hg-cta-fill:focus,
.tender-page .btn.hg-cta-fill:hover,
.tender-page .btn.hg-cta-fill:focus,
.resume-page a.btn.hg-cta-fill:hover,
.vacancy-page a.btn.hg-cta-fill:hover,
.tender-page a.btn.hg-cta-fill:hover {
  background: #148a7d;
  border-color: #148a7d;
  color: #fff !important;
}

.tender-page .btn.hg-cta-outline,
.tender-page a.btn.hg-cta-outline {
  background: transparent;
  color: #117b72 !important;
  border: 2px solid #18b9a7;
  font-weight: 600;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  box-shadow: none;
}

.tender-page .btn.hg-cta-outline:hover,
.tender-page .btn.hg-cta-outline:focus,
.tender-page a.btn.hg-cta-outline:hover {
  background: rgba(22, 157, 142, 0.08);
  color: #0d5c56 !important;
  border-color: #169d8e;
}

.tender-page .btn.hg-cta-outline--danger,
.tender-page a.btn.hg-cta-outline--danger {
  color: #dc3545 !important;
  border-color: #dc3545;
}

.tender-page .btn.hg-cta-outline--danger:hover,
.tender-page .btn.hg-cta-outline--danger:focus,
.tender-page a.btn.hg-cta-outline--danger:hover {
  background: rgba(220, 53, 69, 0.08);
  color: #bb2d3b !important;
  border-color: #bb2d3b;
}

.tender-page .d-flex.flex-wrap.gap-2.mb-4 .btn {
  min-height: 2.25rem;
}

body:has(.tender-page) #customModalFooter .btn-primary {
  background: #169d8e;
  border: 1px solid #169d8e;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.tender-page) #customModalFooter .btn-primary:hover {
  background: #148a7d;
  border-color: #148a7d;
  color: #fff !important;
}

body:has(.tender-page) #customModalFooter .btn-danger {
  background: #dc3545;
  border: 1px solid #dc3545;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.tender-page) #customModalFooter .btn-danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
  color: #fff !important;
}

body:has(.tender-page) #customModalFooter .btn-outline-secondary {
  background: transparent;
  color: #117b72 !important;
  border: 2px solid #18b9a7;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.tender-page) #customModalFooter .btn-outline-secondary:hover {
  background: rgba(22, 157, 142, 0.08);
  color: #0d5c56 !important;
  border-color: #169d8e;
}

body:has(.vacancy-page) #customModalFooter .btn-primary,
body:has(.resume-list-page) #customModalFooter .btn-primary {
  background: #169d8e;
  border: 1px solid #169d8e;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.vacancy-page) #customModalFooter .btn-primary:hover,
body:has(.resume-list-page) #customModalFooter .btn-primary:hover {
  background: #148a7d;
  border-color: #148a7d;
  color: #fff !important;
}

body:has(.vacancy-page) #customModalFooter .btn-danger,
body:has(.resume-list-page) #customModalFooter .btn-danger {
  background: #dc3545;
  border: 1px solid #dc3545;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.vacancy-page) #customModalFooter .btn-danger:hover,
body:has(.resume-list-page) #customModalFooter .btn-danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
  color: #fff !important;
}

body:has(.vacancy-page) #customModalFooter .btn-outline-secondary,
body:has(.resume-list-page) #customModalFooter .btn-outline-secondary {
  background: transparent;
  color: #117b72 !important;
  border: 2px solid #18b9a7;
  font-weight: 600;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0.38rem 0.85rem;
}

body:has(.vacancy-page) #customModalFooter .btn-outline-secondary:hover,
body:has(.resume-list-page) #customModalFooter .btn-outline-secondary:hover {
  background: rgba(22, 157, 142, 0.08);
  color: #0d5c56 !important;
  border-color: #169d8e;
}

.resume-view-hero-cta,
.vacancy-view-hero-cta {
  margin: 0 0 1.5rem;
}

/* Двухколоночная разметка HERO: слева основные данные, справа карточка приглашения */
.resume-view-hero-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.resume-view-hero-left {
  flex: 1 1 420px;
  min-width: 280px;
}

.resume-view-hero-right {
  flex: 0 0 380px;
  max-width: 420px;
}

@media (max-width: 991.98px) {
  .resume-view-hero-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* HERO (страница резюме): карточка последнего отправленного приглашения */
.resume-view-hero-invite-card {
  position: relative;
  padding: 1.25rem 1rem 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(7, 192, 161, 0.42);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(7, 192, 161, 0.10);
}

.resume-view-hero-invite-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.resume-view-hero-invite-sent {
  margin-top: 0.75rem;
  color: #6c757d;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.resume-view-hero-invite-desc {
  color: var(--blacky);
  margin-bottom: 0.75rem;
}

.resume-view-hero-invite-desc-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.resume-view-hero-invite-desc-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 600;
  line-height: 1.2;
}

.resume-view-hero-invite-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--greeny);
}

.resume-view-hero-invite-open:hover {
  background: transparent;
  color: var(--greeny);
}

/* Раскрывающийся список приглашений внутри HERO */
.resume-view-hero-invite-details {
  margin-top: 0.95rem;
}

.resume-view-hero-invite-details summary {
  cursor: pointer;
  user-select: none;
  color: var(--greeny);
  font-weight: 700;
  font-size: 0.9rem;
}

.resume-view-hero-invite-list {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resume-view-hero-invite-list-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(7, 192, 161, 0.14);
}

.resume-view-hero-invite-list-item:first-child {
  padding-top: 0;
  border-top: none;
}

.resume-view-hero-invite-list-left {
  flex: 1 1 auto;
  min-width: 0;
}

.resume-view-hero-invite-list-vacancy {
  font-weight: 700;
  color: var(--blacky);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.resume-view-hero-invite-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.resume-view-hero-invite-list-sent {
  margin-top: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.resume-view-hero-invite-open-link {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--greeny);
  text-decoration: none;
  border-radius: 10px;
}

.resume-view-hero-invite-open-link:hover {
  color: var(--greeny);
  background: rgba(7, 192, 161, 0.10);
}

/* Hero вакансии: персональные статусы специалиста (как карточка приглашения на резюме) */
.vacancy-hero-personal-card .vacancy-hero-personal-kind {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blacky);
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.vacancy-hero-personal-card .vacancy-hero-personal-kind .bi {
  color: var(--greeny);
  opacity: 0.95;
}
.vacancy-hero-application-card .resume-view-hero-invite-desc-title.vacancy-hero-personal-kind {
  font-size: 1.05rem;
  line-height: 1.25;
}
.application-item[id^="vacancy-my-application-"] {
  scroll-margin-top: 5.5rem;
}

/* Hero вакансии: кликабельная сводка и drawer деталей */
.vacancy-hero-personal-summary {
  cursor: pointer;
  transition: none;
  padding-bottom: 1.25rem;
}
.vacancy-hero-personal-summary:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(7, 192, 161, 0.10);
}

/* Убираем анимацию при открытом модальном окне (чтобы не было "фликеринга") */
.modal-open .vacancy-hero-personal-summary,
.modal-open .vacancy-hero-personal-summary:hover,
.vacancy-drawer-open .vacancy-hero-personal-summary,
.vacancy-drawer-open .vacancy-hero-personal-summary:hover {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}
.vacancy-hero-personal-summary-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  flex-wrap: wrap;
}
.vacancy-hero-personal-summary-line .vacancy-hero-summary-subline {
  flex-basis: 100%;
  margin-left: 1.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #6c757d;
}
.vacancy-hero-personal-summary-hint {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.55rem;
}

.vacancy-personal-drawer-title {
  font-weight: 800;
  color: var(--greeny);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.vacancy-personal-drawer-item {
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
}
.vacancy-personal-drawer-item-actions .btn {
  white-space: nowrap;
}

/* Кастомный drawer (overlay/panel) */
.vacancy-personal-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  display: none;
  padding: 0;
  cursor: default;
}
.vacancy-personal-drawer-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vacancy-personal-drawer-panel {
  position: relative;
  height: auto;
  width: min(720px, 96vw);
  min-width: 360px; /* как у портала */
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  overflow: hidden;
  cursor: auto;
}
.vacancy-personal-drawer-overlay a,
.vacancy-personal-drawer-overlay button,
.vacancy-personal-drawer-overlay .btn {
  cursor: pointer;
}

.vacancy-personal-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.vacancy-personal-drawer-header-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--greeny);
}
.vacancy-personal-drawer-close {
  border: 0;
  background: transparent;
  padding: 0.25rem 0.35rem;
  color: #4b5563;
}
.vacancy-personal-drawer-close:hover {
  color: var(--greeny);
}

.vacancy-personal-drawer-body {
  height: calc(100% - 64px);
  overflow: auto;
  padding: 1rem;
}

/* <= 992: хедер фиксированный (40px), поэтому сдвигаем панель ниже */
@media (max-width: 991.98px) {
  .vacancy-personal-drawer-overlay.open {
    align-items: flex-start;
    justify-content: center;
    padding-top: 55px; /* > 40px высоты хедера */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1rem;
  }
  .vacancy-personal-drawer-panel {
    width: min(720px, calc(100vw - 1.5rem));
    min-width: 360px;
    max-height: calc(100vh - 55px - 1rem);
    border-radius: 16px;
  }
  .vacancy-personal-drawer-body {
    height: calc(100% - 58px);
    padding: 0.9rem 0.9rem 1rem;
  }
}

/* Vacancy page: фикс вертикальных отступов секций */
.vacancy-page .resume-view-section-title {
  display: block;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}
.vacancy-page .resume-view-section-title:first-of-type {
  margin-top: 0;
}
.vacancy-page .resume-view-block.dash-card,
.vacancy-page .resume-view-conditions.dash-card {
  margin-bottom: 1.15rem;
  padding: 1.5rem 1.5rem !important;
}
.vacancy-page .vacancy-hero-single-app-meta-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.vacancy-page .vacancy-hero-single-app-meta-main {
  min-width: 0;
}
.vacancy-page .vacancy-hero-single-app-meta-row .vacancy-hero-personal-actions {
  margin-top: 0;
  flex: 0 0 auto;
}
.vacancy-page .vacancy-hero-single-app-meta-row .vacancy-hero-personal-actions .btn {
  white-space: nowrap;
}
.vacancy-page .resume-view-conditions .resume-section,
.vacancy-page .resume-view-block .resume-section {
  padding: 0 !important;
}
.vacancy-page .mainpage_block_item.resume-section {
  padding: 0 !important;
}
@media (max-width: 767.98px) {
  .vacancy-page .vacancy-hero-single-app-meta-row {
    flex-wrap: wrap;
  }
}

/* Слои поверх кастомного drawer (z-index drawer = 10000) */
#respondBackdrop {
  z-index: 11000 !important;
}
#respondModal {
  z-index: 11010 !important;
}
#customModalBackdrop,
.custom-modal-backdrop {
  z-index: 12000 !important;
}
#customModalBackdrop .custom-modal,
.custom-modal-backdrop .custom-modal {
  z-index: 12010 !important;
}

/* Пилюли статусов как на странице приглашения */
.resume-view-hero-invite-card .myinv-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  height: 1.4rem;
  min-height: 1.4rem;
  box-sizing: border-box;
}

.resume-view-hero-invite-card .myinv-metric-badge-neutral {
  background: #f1f3f5;
  color: #495057;
  border-color: #e9ecef;
}

.resume-view-hero-invite-card .myinv-metric-badge-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
  border-color: rgba(255, 193, 7, 0.45);
}

.resume-view-hero-invite-card .myinv-metric-badge-accepted {
  background: rgba(7, 192, 161, 0.14);
  color: #057a66;
  border-color: rgba(7, 192, 161, 0.35);
}

.resume-view-hero-invite-card .myinv-metric-badge-declined {
  background: rgba(220, 53, 69, 0.1);
  color: #842029;
  border-color: rgba(220, 53, 69, 0.25);
}

.resume-view-hero-invite-card .myinv-metric-badge-revoked {
  background: rgba(108, 117, 125, 0.12);
  color: #495057;
  border-color: #dee2e6;
}

.resume-view-hero-invite-card .myinv-metric-badge-expired {
  background: rgba(253, 126, 20, 0.12);
  color: #984c0c;
  border-color: rgba(253, 126, 20, 0.3);
}

.resume-view-hero-invite-card .myinv-view-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.18rem 0.45rem;
  line-height: 1.2;
  white-space: nowrap;
  height: 1.4rem;
  min-height: 1.4rem;
  box-sizing: border-box;
}

.resume-view-hero-invite-card .myinv-view-flag .bi {
  font-size: 0.95rem;
}

.resume-view-hero-invite-card .myinv-view-flag-seen {
  color: #0c5460;
  background: rgba(13, 202, 240, 0.16);
  border: 1px solid rgba(13, 202, 240, 0.42);
}

.resume-view-hero-invite-card .myinv-view-flag-unseen {
  color: #432874;
  background: linear-gradient(180deg, rgba(111, 66, 193, 0.22) 0%, rgba(111, 66, 193, 0.12) 100%);
  border: 1px solid rgba(111, 66, 193, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* Фоны героя страницы тендера (по статусу) */
.resume-view-hero.tender-hero-bg-active {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.10) 0%, rgba(25, 135, 84, 0.05) 100%);
  border-color: rgba(25, 135, 84, 0.18);
}
.resume-view-hero.tender-hero-bg-draft {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.10) 0%, rgba(108, 117, 125, 0.05) 100%);
  border-color: rgba(108, 117, 125, 0.18);
}
.resume-view-hero.tender-hero-bg-hidden {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.06) 100%);
  border-color: rgba(255, 193, 7, 0.20);
}
.resume-view-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.resume-view-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blacky);
  margin: 0;
}
.resume-view-hero-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.resume-view-hero-status-active { background: rgba(25, 135, 84, 0.12); color: #198754; }
.resume-view-hero-status-draft { background: rgba(108, 117, 125, 0.12); color: #6c757d; }
.resume-view-hero-status-hidden { background: rgba(255, 193, 7, 0.2); color: #856404; }
/* Страница предложения по тендеру: статусы и KPI */
.resume-view-hero.tender-proposal-hero-accepted {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
  border-color: rgba(13, 110, 253, 0.2);
}
.resume-view-hero.tender-proposal-hero-rejected {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.04) 100%);
  border-color: rgba(220, 53, 69, 0.2);
}
.resume-view-hero-status-accepted { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.resume-view-hero-status-rejected { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.resume-view-hero-status-withdrawn { background: rgba(108, 117, 125, 0.15); color: #495057; }
.proposal-view-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0.5rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
/* Hero страницы предложения: цена и срок столбиком */
.proposal-view-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.proposal-view-kpi-stack .proposal-view-kpi {
  min-width: 0;
}
.proposal-view-kpi-stack .proposal-view-kpi-label {
  text-transform: none;
  font-size: 0.875rem;
  letter-spacing: normal;
  margin-bottom: 0.35rem;
}
.proposal-view-kpi-stack .proposal-view-kpi-value {
  font-size: 1.25rem;
}
.proposal-view-kpi {
  min-width: 140px;
}
.proposal-view-kpi-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  margin-bottom: 0.2rem;
}
.proposal-view-kpi-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blacky);
  line-height: 1.2;
}
/* Страница предложения: равномерные отступы между секциями */
.proposal-view-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.proposal-view-body h2.resume-view-section-title {
  margin-top: 0;
  margin-bottom: 0;
}
.proposal-view-body .dash-card.resume-view-block {
  margin-bottom: 0;
}
.proposal-file-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proposal-file-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.proposal-file-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.proposal-file-row:first-child {
  padding-top: 0;
}
.proposal-tender-gallery-thumb,
.tender-file-gallery-thumb {
  text-decoration: none;
  color: inherit;
}
.proposal-tender-gallery-thumb:focus-visible,
.tender-file-gallery-thumb:focus-visible {
  outline: 2px solid var(--greeny, #07c0a1);
  outline-offset: 2px;
}

/* Список предложений по тендеру (автор тендера) */
.tender-proposals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tender-proposal-card.dash-card.resume-view-block {
  /* Компактная карточка для каждого предложения */
  padding: 0.9rem 1rem !important;
  margin-bottom: 0 !important; /* разрывы задаём через gap */
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.tender-proposal-card.dash-card.resume-view-block:last-child {
  margin-bottom: 0 !important;
}
.tender-proposal-list-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
}
.tender-proposal-list-item:first-child {
  padding-top: 0;
}
.tender-proposal-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tender-proposal-list-date {
  font-size: 0.72rem;
  line-height: 1.25;
  min-width: 4.35rem;
  letter-spacing: 0.01em;
}
.tender-proposal-list-date--top {
  /* дата уже в "верхней строке", поэтому ширину фиксировать не нужно */
  min-width: auto;
}
.tender-proposal-list-time {
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.1rem;
}
.tender-proposal-list-time--inline {
  display: inline;
  margin-top: 0;
}
.tender-proposal-list-date-relative {
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
  white-space: nowrap;
}
.tender-proposal-list-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
}
.tender-proposal-list-title:hover {
  color: var(--greeny) !important;
  text-decoration: none !important;
}
.tender-proposal-list-kpi {
  font-size: 0.78rem;
  line-height: 1.35;
}
.tender-proposal-list-status {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.tender-proposal-list-status--active {
  color: var(--bs-primary);
}
.tender-proposal-list-status--accepted {
  color: var(--bs-success);
}
.tender-proposal-list-status--rejected {
  color: var(--bs-danger);
}
.tender-proposal-list-status--withdrawn,
.tender-proposal-list-status--other {
  color: var(--bs-secondary);
}
.tender-proposal-list-author {
  font-size: 0.8125rem;
}
.tender-proposal-list-author a {
  font-weight: 500;
}
/* Страница предложения: карточка «Информация о тендере» справа от hero, уже основной колонки */
.proposal-hero-tender-info-row {
  align-items: stretch;
}
@media (min-width: 992px) {
  .proposal-hero-tender-info-row {
    flex-wrap: nowrap;
  }
}
/* Не задавать width:100% на lg+ — ломает долю .col-lg-5 и раздувает колонку за контейнер */
.proposal-tender-info-col {
  min-width: 0;
}
.proposal-tender-info-card {
  max-width: 100%;
  box-sizing: border-box;
}
.proposal-tender-info-card .mainpage_block_item {
  min-height: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.resume-view-hero-author,
.resume-view-hero-meta {
  font-size: 0.9375rem;
  color: #6c757d;
  margin: 0 0 0.75rem 0;
}
.resume-view-hero-location-line .bi { color: var(--greeny); }
.resume-view-hero-specs-line { margin: 0 0 0.75rem 0; }
.resume-view-hero-specs {
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  align-items: center;
}
.resume-view-hero-specs .resume-spec-tag { margin: 0; }
.resume-view-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}
.resume-view-hero-stats span { display: inline-flex; align-items: center; }

/* Страница проекта: фон hero по статусу подтверждения (пастельнее бейджей) */
.project-page .resume-view-hero.project-hero-bg-none {
    background: linear-gradient(135deg, #f8f9fb 0%, #fcfcfd 100%);
    border-color: rgba(222, 226, 230, 0.65);
}
.project-page .resume-view-hero.project-hero-bg-partial {
    background: linear-gradient(135deg, #fffdf6 0%, #fffbf0 100%);
    border-color: rgba(255, 193, 7, 0.22);
}
.project-page .resume-view-hero.project-hero-bg-confirmed {
    background: linear-gradient(135deg, #f9fffd 0%, #f5fffc 100%);
    border-color: rgba(7, 192, 161, 0.22);
}

/* Страница проекта: hero в стиле резюме/вакансии */
.project-page .project-view-hero-stats {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.75rem 1rem;
}
.project-page .project-view-hero-invite-btn {
  margin-top: 0.85rem;
  font-weight: 600;
}
.project-page .project-view-hero-invite-card .resume-view-hero-invite-desc {
  margin-bottom: 0;
}
.project-page .team-catalog-fav-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s;
}

.project-page .team-catalog-fav-btn:hover {
  color: var(--greeny, #07c0a1);
}

.project-page .team-catalog-fav-btn .bi-bookmark-fill.text-primary {
  color: #0d6efd !important;
}

.project-page .project-view-hero-publisher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.project-page .project-view-hero-publisher__label {
  flex-shrink: 0;
  line-height: 1.35;
}
.project-page .project-view-hero-publisher__user {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}
.project-page .project-view-hero-publisher__user .user-render,
.project-page .project-view-hero-publisher__user a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.resume-view-hero-name-line { font-weight: 500; color: var(--blacky); }
.resume-view-hero-dob-line { font-size: 0.875rem; }
/* Заголовки блоков — как на главной (dash-section-title) */
.resume-view-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blacky);
  margin-bottom: 1rem;
  margin-top: 1.75rem;
  padding: 0;
}
.resume-view-section-title:first-of-type { margin-top: 0; }
.resume-view-block.dash-card { margin-bottom: 1rem; }
/* Опыт работы (.resume-experience-list): разделители между местами */
.resume-experience-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e8eaed;
}
.resume-experience-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
/* Блок "Условия трудоустройства" — иконки и вертикальные отступы */
.resume-view-conditions .resume-section { padding: 0; }
.resume-conditions-list { margin: 0; padding: 0; list-style: none; }
.resume-conditions-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 2.5rem;
}
.resume-conditions-item:last-child { border-bottom: none; }
.resume-conditions-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.12), rgba(7, 192, 161, 0.06));
  color: var(--greeny);
  font-size: 1rem;
  flex-shrink: 0;
}
.resume-conditions-label {
  font-weight: 600;
  color: var(--blacky);
  min-width: 10rem;
  font-size: 0.9375rem;
}
.resume-conditions-value {
  color: #495057;
  font-size: 0.9375rem;
}
/* О себе: ФИО выделено размером */
.resume-view-about-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blacky);
  margin-bottom: 0.35rem;
}
.resume-view-about-dob { margin-bottom: 0.5rem; }
.resume-actions-wrap { margin-top: 1.5rem; }
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}
.resume-actions .btn { margin: 0; }

/* Специализации: массивные блочки (просмотр и форма) */
.resume-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.12), rgba(7, 192, 161, 0.06));
  border: 1px solid rgba(7, 192, 161, 0.25);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f8c7a;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.resume-spec-tag-editable {
  padding: 0.2rem 0.6rem;
}
.resume-spec-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  opacity: 0.8;
}
.resume-spec-tag-remove:hover {
  color: #dc3545;
  opacity: 1;
}
.resume-specs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }


/* Блоки образования/опыта: крестик удаления (как в других местах) */
.resume-block-card {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
}
.resume-block-remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  opacity: 0.7;
}
.resume-block-remove-btn:hover {
  color: #dc3545;
  opacity: 1;
}

/* Валидация: красная рамка + пастельно-розовый фон */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.06) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}
#selectedSpecsContainer.is-invalid {
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 0.5rem;
  background-color: rgba(220, 53, 69, 0.06);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}
.resume_add_block .form-control.is-invalid,
.resume_add_block .form-select.is-invalid { background-color: rgba(220, 53, 69, 0.06) !important; }

/* Адрес объекта: ошибка (DaData оборачивает input — стили на обёртке) */
.project-address-field-wrap .project-object-address-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #dc3545;
}
.project-address-field-wrap.project-address-field--error .project-object-address-error {
  display: block !important;
}
.project-address-field-wrap.project-address-field--error .form-control,
.project-address-field-wrap.project-address-field--error .suggestions-input {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.06) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

/* Модальные окна создания/редактирования резюме — консистентность */
.resume_add_block .modal-content.modal-vacancies,
.resume_add_block .modal-content.bg-dark {
  border-radius: 12px;
  overflow: hidden;
}
.resume_add_block .modal-vacancies .modal-header {
  border-bottom: 1px solid #e8eaed;
  padding: 1rem 1.25rem;
}
.resume_add_block .modal-vacancies .modal-footer {
  border-top: 1px solid #e8eaed;
  padding: 1rem 1.25rem;
}
.resume_add_block #locationModal .modal-content { border-radius: 12px; }
.resume_add_block #locationModal .modal-header,
.resume_add_block #locationModal .modal-footer { padding: 1rem 1.25rem; }

/* страница резюме (legacy) */
.resume-header {padding:8px;}
.resume-section {margin-bottom: 0; padding: 0; border: none; background: none; }
.mainpage_block .resume-section { padding: 3px; }
.resume-section ul { margin-bottom: 0; }


/* Добавление резюме */
.resume_add_title {font-size: 16px;padding:0 25px 10px 25px;}
.resume_add_block {margin-bottom: 10px;padding: 17px 20px 20px 20px;background-color: #ffffff;border-top: 1px solid #e3e4e8;border-left: 1px solid #e3e4e8;border-right: 1px solid #e3e4e8;border-bottom: 1px solid #d7d8db;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;}


/* Селектор региона/города */
.location-selector {position:relative;border: var(--bs-border-width) solid var(--bs-border-color);border-radius: var(--bs-border-radius);transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;padding:0 15px;height:44px;background-color: var(--bs-body-bg);color: var(--bs-body-color);cursor: pointer;display: flex;justify-content: space-between;align-items: center;}
.location-selector i {font-size: 1.2rem;color:var(--bs-border-color);}
.location-selector span {color: #6c757d;}
.location-selector span.selected {color: #000;}

/* Попап выбора региона / города */
.modal-body .accordion-item .accordion-header {width: 100%;}
.accordion-item {background-color: #212529;}
#citiesListContainer .accordion-header {width: 100%;}
#citiesListContainer {width: 100%;}

/* Light theme for selection modals (cities/specs) */
.modal-body .accordion-item,
#citiesListContainer .accordion-item {
  background-color: #ffffff !important;
  border: 1px solid #e9ecef !important;
}
.modal-body .accordion-body,
#citiesListContainer .accordion-body {
  background-color: #ffffff !important;
}
.modal-body .accordion-item .form-check-label,
#citiesListContainer .accordion-item .form-check-label {
  color: #212529 !important;
}

/* White background for inner lists (cities, options) */
.modal-body .list-group,
.modal-body .list-group-item,
#citiesListContainer .list-group,
#citiesListContainer .list-group-item,
#citiesListContainer .form-check {
  background-color: #ffffff !important;
}

/* Light search fields inside selection modals */
#locationSearch,
#specSearch,
#citySearchInput,
#searchSpecInput,
#citySearch {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
}

/* Inactive radio buttons in specialization popup: gray borders like checkboxes */
.modal-body .form-check-input[type="radio"] {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
}

/* Radio appearance and checked dot visibility */
.form-check-input[type="radio"] {
  border-radius: 50% !important;
}
.form-check-input[type="radio"]:checked,
.modal-body .form-check-input[type="radio"]:checked {
  background-color: var(--greeny) !important;
  border-color: var(--greeny) !important;
  background-image: radial-gradient(#ffffff 45%, rgba(255,255,255,0) 47%) !important;
}

/* Match borders for selectors with other inputs on create/edit pages */
/* Default: light borders for selectors to match other inputs */
.location-selector,
#specTrigger {
  border: 1px solid #ced4da !important;
  background-color: #ffffff !important;
  color: #212529 !important;
  border-radius: 4px !important;
}
.location-selector i {
  color: #6c757d !important;
}

/* Dark theme override inside .custom-form containers */
.custom-form .location-selector,
.custom-form #specTrigger {
  border: 1px solid #00bfa6 !important;
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-radius: 4px !important;
}
.custom-form .location-selector i {
  color: #00bfa6 !important;
}

/* Resume add/edit modals: use light styles */
.resume_add_block .modal-body .form-check-label {
  color: #212529 !important;
}
.resume_add_block .modal-body .form-check-input {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
}

/* Стили для чекбоксов в modal-vacancies */
.modal-vacancies .form-check {
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-vacancies .form-check-input {
    margin: 0 !important;
    border-color: #ced4da !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
}

.modal-vacancies .form-check-input:checked {
    background-color: #07c0a1 !important;
    border-color: #07c0a1 !important;
}

.modal-vacancies .form-check-input:focus {
    border-color: #07c0a1 !important;
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25) !important;
}

.modal-vacancies .form-check-label {
    color: #212529 !important;
    cursor: pointer !important;
    margin-left: 8px !important;
}

.modal-vacancies .form-check-label:hover {
    color: #07c0a1 !important;
}

.location-popup-backdrop {position: fixed;inset: 0;background-color: rgba(0,0,0,0.7);z-index: 1050;display: none;justify-content: center;align-items: center;}
.location-popup {background-color: #2a2a2a;border: 1px solid #00bfa6;border-radius: 8px;padding: 20px;max-width: 600px;max-height: 80vh;overflow-y: auto;color: var(--maintext);z-index: 1060;}
.location-popup h3 {font-size: 20px;margin-bottom: 1rem;color: #00bfa6;}
.location-popup .location-option {padding: 8px 12px;cursor: pointer;border-radius: 4px;}
.location-popup .location-option:hover {background-color: #3a3a3a;}
.location-popup .region-group {margin-bottom: 1rem;}
.location-popup .region-title {font-weight: bold;margin-top: 1rem;margin-bottom: 0.5rem;}
.location-popup-close {background: none;border: none;color: #00bfa6;font-size: 16px;position: absolute;top: 15px;right: 20px;cursor: pointer;}

/* Стили для попапов на странице резюме */
.resume_add_block .modal-body .form-check-label {color:#ffffff;cursor: pointer;}
.resume_add_block .modal-body .form-check-label:hover {color:#00bfa6;}
.resume_add_block .modal-body .form-check {display: flex;align-items: center;gap: 8px;}
.resume_add_block .modal-body .form-check[style*="display: none"] {display: none !important;}
.resume_add_block .modal-body .form-check.search-hidden {display: none !important;}

/* Универсальные правила для поиска в модальных окнах специализаций */
.modal-vacancies .form-check[style*="display: none"] {display: none !important;}
.modal-vacancies .form-check.search-hidden {display: none !important;}
.modal-body .form-check[style*="display: none"] {display: none !important;}
.modal-body .form-check.search-hidden {display: none !important;}
.resume_add_block .modal-body .form-check-input {margin: 0;border-color: #ffffff;cursor: pointer;}
.resume_add_block .modal-body .form-check-input:checked {background-color: #00bfa6;border-color: #00bfa6;}
.resume_add_block .modal-body .form-check-input:focus {border-color: #00bfa6;box-shadow: 0 0 0 0.25rem rgba(0, 191, 166, 0.25);}

@media (max-width: 575px) {
h1 {font-size:32px;}
h2 {font-size:20px;}

/* Мобильные стили для кнопок */
.btn {
    margin: 0;
}

/* Группа кнопок на мобильных */
.mt-2 .btn {
    margin: 0;
}
}

@media (min-width: 576px) and (max-width: 767px) {
h1 {font-size:32px;}
h2 {font-size:20px;}

/* Планшетные стили для кнопок */
.btn {
    margin: 0;
}

/* Группа кнопок на планшетах */
.mt-2 .btn {
    margin: 0;
}
}
 
@media (min-width: 768px) and (max-width: 991px) {

}

@media (min-width: 992px) and (max-width: 1199px) {

}

@media (min-width: 1200px) and (max-width: 1399px) {

}

@media (min-width: 1400px) {

}



/* Мобильное меню в стиле сайта */
.offcanvas {
  background: linear-gradient(to bottom, #222222, #1a1a1a);
  color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Предотвращение двойного скролла в offcanvas */
.offcanvas-backdrop {
  z-index: 1039;
}

.offcanvas {
  z-index: 1040;
}

.offcanvas-header {
  border-bottom: 1px solid #333333;
  background-color: #222222;
  padding: 15px 20px;
}

.offcanvas-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  font-family: 'PT Sans', sans-serif;
}



.offcanvas-body {
  padding: 0;
}

.offcanvas-body .nav {
  margin: 0;
}

.offcanvas-body .nav-item {
  border-bottom: 1px solid #333333;
}

.offcanvas-body .nav-item:last-child {
  border-bottom: none;
}

.offcanvas-body .nav-link {
  color: #ffffff;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'PT Sans', sans-serif;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}

.offcanvas-body .nav-link:hover {
  color: var(--greeny);
  background-color: rgba(7, 192, 161, 0.1);
  text-decoration: none;
}

.offcanvas-body .nav-link:active {
  background-color: rgba(7, 192, 161, 0.2);
}

/* Улучшения для мобильных кнопок */
@media (max-width: 575px) {
  
  /* Улучшенные отступы для мобильных */
  .mainbody {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  /* Улучшенный скролл для мобильных */
  body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Предотвращение двойного скролла на мобильных */
  .row {
    overflow-x: hidden;
  }
  

}

.vacancy-section {
    margin-bottom: 10px;
    padding: 17px 20px 20px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e3e4e8;
    border-left: 1px solid #e3e4e8;
    border-right: 1px solid #e3e4e8;
    border-bottom: 1px solid #d7d8db;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
}
.vacancy-section h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--greeny, #00bfa6);
    font-weight: 600;
}

.vacancy-header {padding:8px;}

/* Стандартный класс для кнопок-ссылок с центрированием текста */
.btn-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.btn-link:hover {
    text-decoration: none !important;
}

/* Стили для иконок на страницах ошибок */
.error-page-icon {
    display: block !important;
    position: static !important;
    font-size: 4rem !important;
    margin: 0 auto 1rem auto !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    color: inherit !important;
}

.error-page-icon.bi-search {
    color: #6c757d !important;
}

.error-page-icon.bi-shield-exclamation {
    color: #dc3545 !important;
}

.btn > .bi {
    position: relative !important;
    top: 1px !important;
    right: auto !important;
    transform: none !important;
    color: inherit !important;
}

/* Кастомное модальное окно */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 20000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Дополнительные исправления для модальных окон на iOS и мобильных */
@media (max-width: 768px) {
  .modal {
    padding: 0 !important;
    padding-left: env(safe-area-inset-left) !important;
    padding-right: env(safe-area-inset-right) !important;
  }
  
  .modal-dialog {
    margin: 60px 15px 120px 15px !important;
    margin-left: max(15px, env(safe-area-inset-left)) !important;
    margin-right: max(15px, env(safe-area-inset-right)) !important;
    max-height: calc(100vh - 180px) !important;
    max-width: calc(100vw - 30px) !important;
    width: 100% !important;
  }
  
  .modal-content {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    max-height: calc(100vh - 180px) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .modal-body {
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .modal-header,
  .modal-footer {
    flex-shrink: 0 !important;
  }
  
  /* Попап подтверждения участия в проекте (приглашённый пользователь) */
  #projectAcceptInviteModal .modal-dialog {
    margin: 20px 12px 80px 12px !important;
    margin-left: max(12px, env(safe-area-inset-left)) !important;
    margin-right: max(12px, env(safe-area-inset-right)) !important;
    max-height: calc(100vh - 100px) !important;
    max-width: none !important;
  }
  
  #projectAcceptInviteModal .modal-content {
    max-height: calc(100vh - 100px) !important;
  }
  
  #projectAcceptInviteModal .modal-header {
    padding: 12px 16px !important;
  }
  
  #projectAcceptInviteModal .modal-title {
    font-size: 1rem !important;
    padding-right: 28px !important;
  }
  
  #projectAcceptInviteModal .modal-body {
    padding: 12px 16px !important;
  }
  
  #projectAcceptInviteModal .modal-footer {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  #projectAcceptInviteModal .modal-footer .btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  
  #projectAcceptInviteModal #projectAcceptRoleDropdown {
    max-height: 160px !important;
  }
}

/* Предотвращение скролла при открытом модальном окне */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}
.custom-modal-backdrop.show {
  display: flex !important;
}
.custom-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  z-index: 3100;
}
.custom-modal-backdrop.show .custom-modal {
    transform: scale(1);
}
.custom-modal-body {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding: 0 0.125rem;
}
.custom-modal-message {
    width: 100%;
    text-align: center;
    word-break: break-word;
}
/* Подтверждение отмены участия / удаления участника (project.php) */
.custom-modal-confirm-participation {
    width: 100%;
    text-align: left;
}
.custom-modal-confirm-participation__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    color: #212529;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.custom-modal-confirm-participation__text {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}
.custom-modal-confirm-participation__note {
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #495057;
}
.custom-modal-confirm-participation__note strong {
    font-weight: 600;
    color: #212529;
}

/* Модальное окно приглашения: блок результата (ссылка + копирование) */
.project-invite-link-result__panel {
    border: 1px solid rgba(25, 135, 84, 0.45);
    background: linear-gradient(
        180deg,
        rgba(25, 135, 84, 0.08) 0%,
        rgba(25, 135, 84, 0.04) 100%
    );
    border-radius: 0.5rem;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.project-invite-link-result__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #146c43;
    margin-bottom: 0.25rem;
}
.project-invite-link-result__head-icon {
    font-size: 1.05rem;
    line-height: 1;
}
.project-invite-link-result__hint {
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
/* Одна высота у поля и кнопки */
.project-invite-link-row {
    --project-invite-link-ctrl-h: 2.375rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}
.project-invite-link-row .project-invite-link-row__input.form-control {
    flex: 1 1 0%;
    min-width: 0;
    height: var(--project-invite-link-ctrl-h);
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.project-invite-link-row .project-invite-link-row__copy.btn {
    flex: 0 0 auto;
    height: var(--project-invite-link-ctrl-h);
    min-width: 7.5rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Страница: проект acceptance по ссылке (наш блок с копированием) */
#inviteUrlInputBlocked {
    min-width: 0;
    font-size: 0.875rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#inviteUrlCopyBtnBlocked {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
}
#inviteUrlInputBlocked + #inviteUrlCopyBtnBlocked {
    margin-left: 0.5rem; /* отступ между полем ссылки и кнопкой */
}
#inviteUrlInputBlocked,
#inviteUrlCopyBtnBlocked {
    border-radius: 0.375rem;
}

/* Зелёная расцветка плашки на странице принятия инвайт-ссылки */
.project-invite-green-cta {
    background: linear-gradient(
        135deg,
        rgba(7, 192, 161, 0.10) 0%,
        rgba(51, 154, 153, 0.10) 38%,
        rgba(7, 192, 161, 0.08) 72%,
        rgba(51, 154, 153, 0.08) 100%
    ) !important;
    border: 1px solid rgba(7, 192, 161, 0.5) !important;
    color: #000;
}
.project-invite-green-cta::before {
    background: linear-gradient(180deg, #34d399 0%, #10b981 45%, #059669 100%) !important;
}
.project-invite-green-cta .project-view-invite-cta-title,
.project-invite-green-cta .project-view-invite-cta-text {
    color: #000;
}

/* Попап лимита файлов проекта */
.custom-modal-limit-popup {
    width: 100%;
    max-width: 21rem;
    margin: 0 auto;
    text-align: left;
}
.custom-modal-limit-popup__lead {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 0.625rem;
    color: #212529;
}
.custom-modal-limit-popup__count {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: #495057;
}
.custom-modal-limit-popup__premium {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #6c757d;
}
.custom-modal-limit-popup__link {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.custom-modal-limit-popup__link:hover {
    color: #0a58ca;
}
.custom-modal-confirm-popup__text {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    color: #495057;
}
.custom-modal-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.25rem;
}
.custom-modal-footer .btn {
    min-width: 120px;
}


/* Стили для иконок на страницах ошибок */
.error-page-icon {
    font-size: 5rem;
}

/* Тост-уведомления (всплывашки) */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-message {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    font-size: 15px;
    border-left: 5px solid var(--greeny);
}
.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-message.error {
    border-left-color: #dc3545; /* Красный для ошибок */
}
.toast-message.success {
    border-left-color: #28a745; /* Зеленый для успеха */
}
.toast-message.warning {
    border-left-color: #ffc107; /* Желтый для предупреждений */
}
.toast-message.info {
    border-left-color: #17a2b8; /* Синий для информации */
}
.toast-message.fade-out {
    opacity: 0;
    transform: translateX(100%);
}



/* Информационная строка публикации */
.post-info-bar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.post-info-bar .d-flex {
    gap: 10px;
}

.post-info-bar span {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-info-bar i {
    font-size: 16px;
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    color: #666 !important;
}

.post-info-bar .btn {
    height: 32px;
    padding: 4px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-info-bar .btn i {
    font-size: 14px;
}

.post-info-bar .likes-count {
    font-weight: 600;
    color: #000;
}

/* Анимация для кнопок */
.post-info-bar .btn {
    transition: all 0.2s ease;
}

.post-info-bar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-info-bar .btn:active {
    transform: translateY(0);
}

/* Стили для иконки уведомлений в заголовке */
.header_icon {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_icon:hover {
    color: var(--greeny);
}

.header_icon .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    min-width: 1.2rem;
}

/* Специальные стили для SVG иконок в header - исключаем их из глобальных стилей .bi */
.header_icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
    box-sizing: content-box !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: auto !important;
}

/* Специальные стили для иконок с классом bi в header */
.header_icon .bi,
.header_icon svg.bi {
    position: static !important;
    transform: none !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    pointer-events: auto !important;
    box-sizing: content-box !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: auto !important;
    flex-shrink: 0 !important;
}

/* Дополнительные стили для мобильной версии header */
@media (max-width: 991.98px) {
    .header_icon {
        min-width: 24px;
        min-height: 24px;
    }
    
    .header_icon svg,
    .header_icon .bi {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Стили для страницы уведомлений */
.notification-item {
    transition: opacity 0.3s ease, background-color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item .bi {
    font-size: 1.2rem;
}

.notification-item .bi-heart-fill {
    color: #dc3545;
}

.notification-item .bi-star-fill {
    color: #ffc107;
}

.notification-item .bi-heart,
.notification-item .bi-star {
    color: #6c757d;
}

.notification-item .bi-briefcase-fill {
    color: #17a2b8;
}

.notification-item .bi-briefcase {
    color: #6c757d;
}

/* Ссылки внутри текста уведомлений (кроме кнопок) */
.notification-text a:not(.btn) {
    color: var(--greeny);
    text-decoration: underline;
    font-weight: 600;
}

.notification-text a:not(.btn):hover {
    color: #0f8c7a;
    text-decoration: underline;
}

/* --- Notification icon fix --- */
.mainpage_block_item.notification-item {
    position: relative;
    padding-right: 48px;
}
.notification-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- end notification icon fix --- */

/* --- Notification hover fix --- */
.mainpage_block_item.notification-item:hover {
    background: #f3f6fa !important;
    cursor: default !important;
}
/* --- end notification hover fix --- */

/* --- Единые стили для модальных окон подтверждения и тост-уведомлений (резюме, публикации) --- */
.custom-modal-backdrop {
  display: none;
  position: fixed; z-index: 1050; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4); align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.custom-modal-backdrop.show { display: flex; }
/* .custom-modal / .custom-modal-footer — основные правила выше (дублирование убрано) */


.comment-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: #888;
  vertical-align: middle;
  line-height: 1.2;
}
.comment-likes .bi {
  position: static !important;
  vertical-align: middle !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
}
.comment-likes .likes-count {
  font-size: 16px;
  line-height: 1.2;
  vertical-align: middle;
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
}
.comment-actions { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.comment-actions .bi-heart,
.comment-actions .likes-count {
  font-size: 13px !important;
  line-height: 1.1;
  vertical-align: middle;
  color: #888;
}

.comment-like-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 2px 0 0 !important;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-width: 32px;
  gap: 4px;
}
.comment-like-btn .bi-heart,
.comment-like-btn .bi-heart-fill {
  font-size: 13px !important;
  line-height: 1.1;
  vertical-align: middle;
  color: #888;
  width: 16px;
  text-align: center;
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}
.comment-like-btn .bi-heart-fill.text-success {
  color: #07c0a1 !important;
}
.comment-like-btn .likes-count {
  font-size: 13px;
  line-height: 1.1;
  vertical-align: middle;
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
}
.comment-like-btn:hover .bi-heart {
  color: #07c0a1 !important;
  transform: scale(1.15);
}

.comment-item {
  padding-left: 16px;
  padding-right: 16px;
}

.comment-action-link, .comment-like-btn .likes-count {
  font-size: 13px !important;
  color: #888 !important;
  opacity: 0.85;
  font-weight: 500;
  text-decoration: none !important;
  margin-left: 8px;
  margin-right: 0;
  transition: color 0.2s, opacity 0.2s;
}
.comment-action-link:hover {
  color: #333 !important;
  opacity: 1;
  text-decoration: none !important;
}
.comment-link {
  margin-left: 8px;
  margin-right: 0;
  text-decoration: none !important;
}

textarea#commentContent,
textarea.comment-edit-area {
  min-height: 100px;
  height: 100px;
  resize: vertical;
}

.post-like-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-like-btn,
.post-fav-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.post-like-btn:hover .bi-heart,
.post-like-btn:hover .bi-heart-fill,
.post-fav-btn:hover .bi-bookmark,
.post-fav-btn:hover .bi-bookmark-fill {
  transform: scale(1.1);
  transition: transform 0.2s;
}
.post-like-btn .bi-heart {
  color: #888;
  transition: color 0.2s;
  font-size: 14px;
  padding-top: 2px;
}
.post-like-btn .bi-heart-fill.text-danger {
  color: #dc3545 !important;
  transition: color 0.2s;
  font-size: 14px;
  padding-top: 2px;
}
.post-fav-btn .bi-bookmark {
  color: #888;
  transition: color 0.2s;
}
.post-fav-btn .bi-bookmark-fill.text-primary {
  color: #0d6efd !important;
  transition: color 0.2s;
}
.post-like-btn:hover .bi-heart,
.post-fav-btn:hover .bi-bookmark {
  color: #333;
}
.likes-count-post {
  color: #6c757d;
  font-size: 14px;
  font-weight: normal;
}

#gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.gallery-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-bottom: 8px;
}
.gallery-thumb.active {
  border-color: var(--greeny) !important;
}

/* Стили для блога: обрезка превью только в списке публикаций */
.blog_post_list_item .mainpage_block_title {
    padding: 8px 0 4px;
}

.blog_post_list_title,
.blog_post_list_title:hover {
    color: var(--maintext);
}

.blog_post_list_item .blog_post_block {
    position: relative;
}

.blog-post-preview {
    position: relative;
    overflow: hidden;
    max-height: 26rem;
}

.blog_post_page .blog_post_contents {
    overflow: visible;
    max-height: none;
}

.content-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.read-more-indicator {
    margin-left: 0;
    margin-top: 10px;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
}

.read-more-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-text::after {
    content: "→";
    font-weight: bold;
}

.blog_post_block {
    color: #444444;
}

/* Страница одной публикации: без hover-анимации карточки */
.blog_post_page .blog_post_block {
    transition: none;
}
.blog_post_page .blog_post_block:hover {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transform: none;
    border-color: #e3e4e8;
}

/* Блок комментариев на странице одной публикации */
.blog-comments-block {
    background: #ffffff;
    border: 1px solid #e3e4e8;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    padding: 18px 20px 20px 20px;
}
.blog-comments-block h4 {
    margin-bottom: 14px;
    font-weight: 700;
}

/* Пагинация блога */
.blog-page-btn {
    border-radius: 999px;
    padding-inline: 0.9rem;
    border-width: 1px;
}
.blog-page-btn-current {
    background: var(--greeny);
    color: #fff;
    border-color: var(--greeny);
    font-weight: 600;
}
.blog-page-btn:not(.blog-page-btn-current) {
    background: transparent;
    color: var(--greeny);
    border-color: rgba(7,192,161,0.4);
}
.blog-page-btn:not(.blog-page-btn-current):hover {
    background: rgba(7,192,161,0.08);
}

/* Стили для чекбоксов с ошибками - убираем подсветку самих чекбоксов */
.form-check.is-invalid .form-check-input {
  border-color: #dee2e6 !important;
}

.form-check.is-invalid .form-check-label {
  color: #000 !important;
}

/* Стили для чекбоксов в стиле портала */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}

.form-check-input {
  margin: 0;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-check-input:checked {
  background-color: var(--greeny);
  border-color: var(--greeny);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  border-color: var(--greeny);
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 166, 0.25);
}

.form-check-label {
  cursor: pointer;
  margin: 0;
  line-height: 1.2;
  color: #000;
  font-size: 14px;
}

.form-check:hover .form-check-input {
  border-color: var(--greeny);
}

/* Иконка ошибки для заголовков блоков */
.form-label.error-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc3545;
}

.form-label.error-icon::before {
  content: "!";
  font-size: 14px;
  color: #fff;
  background-color: #dc3545;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Подсветка селекторов при ошибках (+ пастельно-розовый фон) */
.location-selector.is-invalid,
#specTrigger.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
  background-color: rgba(220, 53, 69, 0.06) !important;
}

/* CTA Join Block */
.cta-join {
    background: linear-gradient(135deg, var(--greeny) 0%, #00796b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.text-accent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    background: white;
    color: #333;
}

.role-card:hover {
    transform: translateY(-5px);
    border-color: var(--greeny);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.role-card .h5 {
    color: #333;
    font-weight: 600;
}

.role-card .text-muted {
    color: #6c757d !important;
}

/* Стили для заголовков полей в белых блоках */
.bg-white .form-label {
    color: #333 !important;
    font-weight: 500;
}

.bg-white .explain-text {
    color: #6c757d !important;
}

.bg-white .sms-text {
    color: #6c757d !important;
}

.badge-soft {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stepper {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.stepper-track {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.stepper-item {
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.stepper-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

/* Стили для кнопок навигации в стиле stepper */
.btn-back-step {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-step:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-back-step::before {
    content: '←';
    font-weight: bold;
}

/* Стили для кнопок навигации в стиле stepper */
.btn-next-step {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-next-step:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.registration-step {
    transition: all 0.3s ease;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    
    .stepper-track {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stepper-item:not(:last-child)::after {
        display: none;
    }
}

/* Убираем красный цвет текста в селекторах при ошибках */
.location-selector.is-invalid span,
#specTrigger.is-invalid span {
  color: inherit !important;
}

/* Стили для контейнеров с городами и специализациями */
#selectedCitiesContainer.loading,
#selectedSpecsContainer.loading {
  opacity: 0;
}

#selectedCitiesContainer,
#selectedSpecsContainer {
  transition: opacity 0.3s ease;
}

/* Стили для поля поиска */
.input-group .form-control {
  height: 44px;
  padding-right: 35px;
}

.search-clear-btn {
  background: none !important;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-clear-btn:hover {
  color: #28a745 !important;
  background: none !important;
}

.input-group .btn {
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стили для пагинации */
.pagination {
  margin-top: 20px;
  justify-content: center;
}

.page-link {
  color: var(--greeny);
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  margin: 0 2px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover {
  color: #fff;
  background-color: var(--greeny);
  border-color: var(--greeny);
  text-decoration: none;
}

.page-link:focus {
  color: #fff;
  background-color: var(--greeny);
  border-color: var(--greeny);
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 166, 0.25);
}

.page-item.active .page-link {
  background-color: var(--greeny);
  border-color: var(--greeny);
  color: #fff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
}

/* Исправление цветов для кнопок закрытия попапов */
.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
  filter: invert(1);
}

/* Исправление цветов для заголовков аккордеонов в попапах */
.accordion-button {
  color: #333333 !important;
  background-color: #e8f5f3 !important;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  color: #333333 !important;
  background-color: #e8f5f3 !important;
  box-shadow: none !important;
}

.accordion-button:hover {
  color: var(--greeny) !important;
  background-color: #e8f5f3 !important;
}

.accordion-button:focus {
  color: #333333 !important;
  background-color: #e8f5f3 !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 166, 0.25) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Стили для кнопки отправки сообщений */
#send-message {
    background: var(--greeny);
    border: 1px solid var(--greeny);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 44px;
    height: 44px;
}

#send-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

#send-message:hover {
    background: #00bfa6;
    border-color: #00bfa6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(7, 192, 161, 0.25);
}

#send-message:hover::before {
    left: 100%;
}

#send-message:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(7, 192, 161, 0.2);
}

#send-message svg {
    transition: transform 0.2s ease;
}

#send-message:hover svg {
    transform: translateX(1px);
}

/* Анимация при отправке */
#send-message.sending {
    animation: sendPulse 0.6s ease-in-out;
}

@keyframes sendPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Стили для сообщений пользователя */
.user-message {
    background: var(--greeny) !important;
    color: white !important;
}

/* Отступ перед юзернеймом в уведомлениях */
.notification-item .user-render {
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Единый цвет текста уведомлений */
.notification-item .mainpage_post_title a {
    color: #444 !important;
    font-weight: 400;
}
.notification-item .mainpage_post_title a:hover {
    color: var(--greeny) !important;
    text-decoration: underline;
}

/* Светлые стили для модального окна откликов */
.application-modal .modal-content {
    background: #ffffff !important;
    color: #212529 !important;
}

.application-modal .modal-header {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-bottom: 1px solid #dee2e6;
}

/* Темная кнопка закрытия для application-modal */
.application-modal .modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.293.293.707.707L8 7.586 15.293 1.293l.707.707L8.707 8.5l7.293 7.293-.707.707L8 9.207.707 16.5l-.707-.707L7.293 8.5.293 1.207z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    filter: none !important;
    opacity: 0.75;
}

.application-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.application-modal .modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25) !important;
    opacity: 1;
}
.application-modal .modal-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.application-modal .modal-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

.application-modal .form-label {
    color: #212529 !important;
    font-weight: 500 !important;
}

.application-modal .form-control {
    color: #212529 !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

.application-modal .form-control:focus {
    border-color: #07c0a1 !important;
    box-shadow: 0 0 0 0.25rem rgba(7, 192, 161, 0.25) !important;
}

.application-modal .form-control-plaintext {
    color: #212529 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

.application-modal .text-muted {
    color: #6c757d !important;
}

/* Увеличенный размер textarea для сопроводительного письма */
.application-modal #cover-letter {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Стандартные стили кнопок для модального окна откликов */
.application-modal .btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--greeny) !important;
    --bs-btn-border-color: var(--greeny) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--greeny) !important;
    --bs-btn-hover-border-color: var(--greeny) !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--greeny) !important;
    --bs-btn-active-border-color: var(--greeny) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: var(--greeny) !important;
    --bs-btn-disabled-border-color: var(--greeny) !important;
}

.application-modal .btn-outline-primary {
    --bs-btn-color: var(--greeny) !important;
    --bs-btn-border-color: var(--greeny) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--greeny) !important;
    --bs-btn-hover-border-color: var(--greeny) !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--greeny) !important;
    --bs-btn-active-border-color: var(--greeny) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: var(--greeny) !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--greeny) !important;
    --bs-gradient: none !important;
}

.application-modal .btn-secondary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #6c757d !important;
    --bs-btn-border-color: #6c757d !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #5c636a !important;
    --bs-btn-hover-border-color: #565e64 !important;
    --bs-btn-focus-shadow-rgb: 108, 117, 125 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #565e64 !important;
    --bs-btn-active-border-color: #51585e !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #6c757d !important;
    --bs-btn-disabled-border-color: #6c757d !important;
}

/* Светлые стили для блока информации */
.application-modal .alert-info {
    background-color: #d1ecf1 !important;
    border: 1px solid #bee5eb !important;
    color: #0c5460 !important;
}

.application-modal .alert-info a {
    color: #07c0a1 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.application-modal .alert-info a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Стили для блока информации о слотах вакансий */
#slots-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.slots-info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--greeny);
}

.slots-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slots-info-item.subscription {
    border-left-color: var(--greeny);
}

.slots-info-item.packages {
    border-left-color: #ffc107;
}

.slots-info-item.total {
    border-left-color: #6c757d;
}

.slots-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.slots-info-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    color: inherit !important;
}

.slots-info-icon i.bi {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    color: inherit !important;
    font-size: 14px !important;
}

.slots-info-icon.subscription {
    background-color: var(--greeny);
    color: white;
}

.slots-info-icon.packages {
    background-color: #ffc107;
    color: #212529;
}

.slots-info-icon.total {
    background-color: #6c757d;
    color: white;
}

.slots-info-icon i.bi {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    color: inherit !important;
    font-size: 14px !important;
}

/* Специальные цвета для иконок в зависимости от типа */
.slots-info-icon.subscription i.bi {
    color: white !important;
}

.slots-info-icon.packages i.bi {
    color: #212529 !important;
}

.slots-info-icon.total i.bi {
    color: white !important;
}

.slots-info-content {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.slots-info-numbers {
    font-weight: 600;
    color: #495057;
}

.slots-info-date {
    color: var(--greeny);
    font-weight: 500;
}

.slots-info-warning {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.slots-info-warning a {
    color: var(--greeny);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.slots-info-warning a:hover {
    text-decoration: underline;
    color: #059b8a;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #slots-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .slots-info-item {
        padding: 12px;
    }
}

/* Стили для разных статусов пакетов */
.slots-info-item.packages.active {
    border-left-color: #28a745;
}

.slots-info-item.packages.inactive {
    border-left-color: #6c757d;
}

.slots-info-item.packages.expired {
    border-left-color: #dc3545;
}

.slots-info-icon.packages.active {
    background-color: #28a745;
    color: white;
}

.slots-info-icon.packages.inactive {
    background-color: #6c757d;
    color: white;
}

.slots-info-icon.packages.expired {
    background-color: #dc3545;
    color: white;
}

.slots-info-icon.packages.active i.bi {
    color: white !important;
}

.slots-info-icon.packages.inactive i.bi {
    color: white !important;
}

.slots-info-icon.packages.expired i.bi {
    color: white !important;
}

.slots-info-content .package-item {
    padding: 0 0 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.slots-info-content .package-item:last-child {
    border-bottom: none;
}

.slots-info-content .package-item strong {
    color: #333;
}

.slots-info-content .package-item small {
    display: block;
    margin-top: 2px;
}

/* Дополнительные стили для iOS - исправление проблем с z-index */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 991px) {
    /* Специальные стили для WebKit браузеров (Safari, Chrome на iOS) только на мобильных */
    .dropdown-menu {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* Принудительное создание нового слоя для dropdown */
    .dropdown-menu.show {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        will-change: transform;
    }
}

@media (min-width: 991px) {
    .profile_avatar_block {
        width:346px;min-width:346px;
    }

}

/* Обрезка аватара / логотипа */
.avatar-crop-image-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}
.avatar-crop-image-wrap .cropper-container {
    min-height: 320px;
}
.avatar-crop-image-wrap.avatar-crop-loading {
    opacity: 0;
    pointer-events: none;
}
.avatar-crop-image {
    display: block;
    max-width: 100%;
}
/* Квадратная сетка для всех: видно края, за которые тянуть; для специалиста круг задаёт оверлей */
.avatar-crop-shape-circle .cropper-crop-box,
.avatar-crop-shape-circle .cropper-view-box,
.avatar-crop-shape-square .cropper-crop-box,
.avatar-crop-shape-square .cropper-view-box {
    border-radius: 0;
}
.avatar-crop-image-wrap .cropper-crop-box {
    border: 1px dashed rgba(255, 255, 255, 0.7);
}
.avatar-crop-image-wrap .cropper-dashed {
    display: block;
}
.avatar-crop-image-wrap .cropper-dashed::before {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.35);
}
/* Угловые точки — ресайз по диагонали с сохранением пропорций; стиль без зелёных квадратов */
.avatar-crop-image-wrap .cropper-point {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}
/* Линии краёв — зона ресайза: увеличена для удобного захвата мышкой */
.avatar-crop-image-wrap .cropper-line {
    background: rgba(255, 255, 255, 0.25);
    min-width: 12px;
    min-height: 12px;
}
.avatar-crop-image-wrap .cropper-line.cropper-line-n,
.avatar-crop-image-wrap .cropper-line.cropper-line-s {
    height: 12px;
    margin-top: -6px;
}
.avatar-crop-image-wrap .cropper-line.cropper-line-e,
.avatar-crop-image-wrap .cropper-line.cropper-line-w {
    width: 12px;
    margin-left: -6px;
}
/* Оверлей: на всё фото; .avatar-crop-overlay-circle — маска radial-gradient в JS, .avatar-crop-overlay-square — рамка */
.avatar-crop-overlay {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
}
.avatar-crop-overlay-square {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
}

/* Модалка обрезки аватара: всегда поверх всех кастомных backdrop'ов */
#avatarCropModal {
    z-index: 21000 !important;
}

/* Отдельно поднимаем именно контент кропера над фэйдом Bootstrap/кастомного backdrop'а */
#avatarCropModal .modal-dialog,
#avatarCropModal .modal-content {
    position: relative;
    z-index: 21010 !important;
}

@media (max-width: 768px) {
    /* Чуть выше и компактнее на мобильных, чтобы полностью влезать по высоте */
    #avatarCropModal .modal-dialog {
        margin: 24px 12px 24px 12px !important;
        max-height: calc(100vh - 64px) !important;
    }

    #avatarCropModal .modal-content {
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto;
    }
}

/* Блок аватара на /settings: центрирование и единый размер с загруженным аватаром */
.settings-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.settings-avatar-block .avatar-img-circle {
    width: 346px;
    height: 346px;
    object-fit: cover;
    border-radius: 50%;
}
.settings-avatar-block .avatar-img-square {
    width: 346px;
    height: 346px;
    object-fit: cover;
    border-radius: 0;
}

/* Заглушка на /settings: белый фон, значок — сплошной цвет, ближайший к градиенту .dash-profile-hero (#e8f9f6) */
.settings-avatar-placeholder {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(7, 192, 161, 0.15);
}
.settings-avatar-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #e8f9f6;
    -webkit-mask: url('../img/profile.svg') center / 55% no-repeat;
    mask: url('../img/profile.svg') center / 55% no-repeat;
}
.settings-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    visibility: hidden;
}
.settings-avatar-placeholder.dash-profile-avatar-circle {
    width: 346px;
    height: 346px;
    border-radius: 999px;
}
.settings-avatar-placeholder.dash-profile-avatar-square {
    width: 346px;
    height: 346px;
    border-radius: 0;
}

.avatar-img-circle { border-radius: 50%; }
.avatar-img-square { border-radius: 0; }

.profile-avatar-circle { border-radius: 50%; overflow: hidden; }
.profile-avatar-square { border-radius: 0; overflow: hidden; }

/* Аватар в форме приглашения в проект: фон как на /settings, чтобы иконка была видна */
.project-invite-avatar {
    background: #e8f9f6;
    border: 1px solid rgba(7, 192, 161, 0.2);
    overflow: hidden;
    display: inline-block;
}
.project-invite-chip-clear {
    color: #6c757d;
    cursor: pointer;
}
.project-invite-chip-clear:hover {
    color: #000;
}

/* «Важное объявление с огоньком» — паттерн .fire-important-announce (+ вёрстка .project-view-invite-cta-*).
   Страница проекта: приглашение; главная: плашка email. */
.fire-important-announce,
.project-view-invite-cta {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 1.2rem 1.25rem 1.25rem;
    background: linear-gradient(
        135deg,
        #fffbeb 0%,
        #fef3c7 38%,
        #ffedd5 72%,
        #fff7ed 100%
    );
    border: 1px solid rgba(245, 158, 11, 0.65);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 6px 22px rgba(234, 88, 12, 0.18),
        0 2px 8px rgba(180, 83, 9, 0.08);
}
.fire-important-announce::before,
.project-view-invite-cta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #fbbf24 0%, #f97316 45%, #ea580c 100%);
    box-shadow: 2px 0 14px rgba(234, 88, 12, 0.45);
}
.fire-important-announce .btn-close,
.project-view-invite-cta .btn-close {
    opacity: 0.55;
    flex-shrink: 0;
}
.fire-important-announce .btn-close:hover,
.project-view-invite-cta .btn-close:hover {
    opacity: 1;
}
.fire-important-announce-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}
.fire-important-announce-head .project-view-invite-cta-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.fire-important-announce-main {
    min-width: 0;
    width: 100%;
}
/* Без grid + display:contents (ломается на части моб. браузеров): одна строка flex — иконка | колонка */
.fire-important-announce.project-view-invite-cta {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.project-view-invite-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.project-view-invite-cta-icon-wrap {
    flex-shrink: 0;
}
.project-view-invite-cta-stack {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}
.project-view-invite-cta-stack > .project-view-invite-cta-title,
.project-view-invite-cta-stack > .project-view-invite-cta-text,
.project-view-invite-cta-stack > .project-view-invite-cta-actions {
    margin: 0;
}
.project-view-invite-cta-lead {
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.project-view-invite-cta-lead .fire-important-announce-head {
    margin-bottom: 0;
}
.project-view-invite-cta-lead .project-view-invite-cta-text {
    margin-top: 0.35rem;
    margin-bottom: 0;
}
.project-view-invite-cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7c2d12;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.project-view-invite-cta-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #9a3412;
}
@media (min-width: 576px) {
    .project-view-invite-cta-inner {
        gap: 1rem;
    }
}
.project-view-invite-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(160deg, #fffbeb 0%, #fed7aa 55%, #fdba74 100%);
    border: 1px solid rgba(234, 88, 12, 0.45);
    box-shadow:
        0 2px 8px rgba(234, 88, 12, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.project-view-invite-cta-icon .bi {
    font-size: 1.7rem;
    line-height: 1;
    color: #ea580c;
    filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.75)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}
@media (max-width: 575.98px) {
    .fire-important-announce,
    .project-view-invite-cta {
        padding: 1rem 1rem 1.1rem;
        border-radius: 12px;
    }
    .fire-important-announce::before,
    .project-view-invite-cta::before {
        border-radius: 12px 0 0 12px;
    }
    .project-view-invite-cta-icon {
        width: 48px;
        height: 48px;
        border-radius: 11px;
    }
    .project-view-invite-cta-icon .bi {
        font-size: 1.55rem;
    }
}

/* ——— Подтверждение опыта: onboarding (страница проекта) ——— */
.project-confirmation-onboarding-wrap {
    padding-left: 0;
    padding-right: 0;
}
.project-confirmation-onboarding.dash-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 192, 161, 0.38);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(7, 192, 161, 0.14) 0%,
        rgba(51, 154, 153, 0.09) 45%,
        rgba(255, 255, 255, 0.92) 100%
    );
    box-shadow: 0 4px 18px rgba(7, 192, 161, 0.1);
}
.project-confirmation-onboarding-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1.1rem 1.15rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.15s ease;
}
.project-confirmation-onboarding-header:hover {
    background: rgba(7, 192, 161, 0.06);
}
.project-confirmation-onboarding-header:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.55);
    outline-offset: -2px;
}
.project-confirmation-onboarding:not(.project-confirmation-onboarding--collapsed) .project-confirmation-onboarding-header {
    border-bottom-color: rgba(7, 192, 161, 0.18);
}
.project-confirmation-onboarding-header__main {
    flex: 1 1 12rem;
    min-width: 0;
}
.project-confirmation-onboarding-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #0c4a42;
    margin: 0;
}
.project-confirmation-onboarding-teaser {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #3d5c56;
    margin-top: 0.35rem;
}
.project-confirmation-onboarding-header__actions {
    flex: 0 1 auto;
    margin-left: auto;
    align-self: center;
}
.project-confirmation-onboarding-toolbar {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    vertical-align: middle;
}
.page-project-view .project-confirmation-onboarding-toolbar .project-confirmation-onboarding-invite.btn.btn-sm.hg-cta-fill {
    height: 2.25rem;
    min-height: 2.25rem;
    max-height: 2.25rem;
    padding: 0 0.85rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.875rem;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 1 auto;
}
.project-confirmation-onboarding-deco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
    background: #fff;
    color: #0d9488;
    font-size: 1.45rem;
    line-height: 1;
    border: 1px solid rgba(7, 192, 161, 0.18);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 0 0 4px rgba(7, 192, 161, 0.07);
}
.project-confirmation-onboarding-deco::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(7, 192, 161, 0.12) 0%, transparent 55%);
    pointer-events: none;
}
.project-confirmation-onboarding-deco .bi {
    position: relative;
    z-index: 1;
}
.project-confirmation-onboarding-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    max-width: 2.25rem;
    max-height: 2.25rem;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    color: #0a7a68;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(7, 192, 161, 0.22);
    transition: transform 0.2s ease;
    line-height: 1;
}
.project-confirmation-onboarding-chevron .bi {
    font-size: 1rem;
    line-height: 1;
}
.project-confirmation-onboarding:not(.project-confirmation-onboarding--collapsed) .project-confirmation-onboarding-chevron {
    transform: rotate(180deg);
}
.project-confirmation-onboarding-invite {
    cursor: pointer;
    user-select: auto;
    position: relative;
    z-index: 1;
}
.project-confirmation-onboarding-body {
    padding: 0 1.15rem 1.15rem;
}
.project-confirmation-onboarding-body[hidden] {
    display: none !important;
}
.project-confirmation-onboarding-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(7, 192, 161, 0.12);
}
.project-confirmation-onboarding-section:last-of-type {
    border-bottom: none;
}
.project-confirmation-onboarding-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0a7a68;
    margin: 0 0 0.75rem;
}
.project-confirmation-onboarding-lead,
.project-confirmation-onboarding-examples-label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}
.project-confirmation-onboarding-examples-label {
    font-weight: 600;
    color: #3d5c56;
}
.project-confirmation-onboarding-section--invite {
    padding: 1rem;
    margin-top: 0.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(7, 192, 161, 0.15);
    border-bottom: 1px solid rgba(7, 192, 161, 0.15);
}
.project-confirmation-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem 1rem;
}
@media (min-width: 576px) {
    .project-confirmation-benefits {
        grid-template-columns: 1fr 1fr;
    }
}
.project-confirmation-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #212529;
}
.project-confirmation-benefits .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--greeny, #07c0a1);
    font-size: 1.05rem;
}
.project-confirmation-invite-examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #495057;
}
@media (min-width: 576px) {
    .project-confirmation-invite-examples {
        grid-template-columns: 1fr 1fr;
    }
}
.project-confirmation-invite-examples li {
    position: relative;
    padding-left: 0.9rem;
}
.project-confirmation-invite-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--greeny, #07c0a1);
    opacity: 0.85;
}
.project-confirmation-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
@media (min-width: 768px) {
    .project-confirmation-steps {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
}
.project-confirmation-step {
    display: flex;
    gap: 0.65rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(7, 192, 161, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
}
.project-confirmation-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--greeny, #07c0a1);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-confirmation-step-content strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #212529;
    margin-bottom: 0.2rem;
}
.project-confirmation-step-content p {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #6c757d;
}
.project-confirmation-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 100%;
    min-height: 1.75rem;
    color: #94a3b8;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.project-confirmation-step-arrow::after {
    content: '↓';
}
@media (min-width: 768px) {
    .project-confirmation-step-arrow {
        width: auto;
        min-width: 1.25rem;
        max-width: 1.5rem;
        min-height: 0;
        align-self: center;
        padding: 0 0.15rem;
        margin-top: 0;
    }
    .project-confirmation-step-arrow::after {
        content: '→';
    }
}
.project-confirmation-onboarding-footer {
    padding-top: 1rem;
    margin-top: 0.25rem;
}
@media (max-width: 767.98px) {
    .project-confirmation-onboarding-header {
        align-items: center;
    }
    .project-confirmation-onboarding-header__main {
        flex: 1 1 calc(100% - 4.5rem);
    }
    .project-confirmation-onboarding-header__actions {
        flex: 1 1 100%;
        margin-left: 0;
    }
    .project-confirmation-onboarding-toolbar {
        width: 100%;
        justify-content: space-between;
    }
    .page-project-view .project-confirmation-onboarding-toolbar .project-confirmation-onboarding-invite.btn.btn-sm.hg-cta-fill {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
    }
}
.project-members-solo-state {
    border-color: rgba(7, 192, 161, 0.25) !important;
}
.project-invite-modal-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}
.project-invite-modal-info-list li:last-child {
    margin-bottom: 0;
}
.project-invite-modal-info-list .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.project-invite-modal-section-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #868e96;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    user-select: none;
}
.project-invite-modal-section-divider::before,
.project-invite-modal-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}
.project-invite-modal-section-divider--portal {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}
.project-invite-modal-or-divider {
    margin: 0.85rem 0 1rem;
    text-transform: uppercase;
}
.project-invite-delivery-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(7, 192, 161, 0.28);
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.14) 0%, rgba(7, 192, 161, 0.06) 100%);
    color: #0c4a42;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(7, 192, 161, 0.08);
}
.project-invite-delivery-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.45em;
    height: 1.45em;
    font-size: 1.125em;
    line-height: 1;
    color: #0a7a68;
    transform: translateY(-0.06em);
}
.project-invite-delivery-notice__icon::before {
    line-height: 1;
    vertical-align: 0;
}
.project-invite-delivery-notice-text {
    flex: 1 1 auto;
    min-width: 0;
}
.project-invite-delivery-notice--portal {
    border-color: rgba(7, 192, 161, 0.38);
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.18) 0%, rgba(7, 192, 161, 0.08) 100%);
}
.project-invite-delivery-notice--email {
    border-color: rgba(13, 110, 253, 0.28);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0.05) 100%);
    color: #0b3d91;
}
.project-invite-delivery-notice--email .project-invite-delivery-notice__icon {
    color: #0d6efd;
}
.project-invite-delivery-notice--phone {
    border-color: rgba(255, 193, 7, 0.38);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.16) 0%, rgba(255, 248, 232, 0.85) 100%);
    color: #7a5a00;
}
.project-invite-delivery-notice--phone .project-invite-delivery-notice__icon {
    color: #b8860b;
}
.resume-view-hero-invite-confirmed-count {
    line-height: 1.35;
}
.project-created-banner .project-view-invite-cta-icon {
    background: linear-gradient(160deg, #ecfdf5 0%, #a7f3d0 55%, #6ee7b7 100%);
    border-color: rgba(7, 192, 161, 0.45);
}
.project-created-banner .project-view-invite-cta-icon .bi {
    color: #059669;
    filter: none;
}

/* ——— Страница проекта: кнопки hg-cta (как на главной авторизованного пользователя) ——— */
.page-project-view .hg-cta-fill,
.page-project-view .hg-cta-outline,
.page-project-view .hg-cta-danger-outline,
#projectInviteModal .hg-cta-fill,
#projectInviteModal .hg-cta-outline,
#projectInviteModal .hg-cta-danger-outline,
#projectEditMyRoleModal .hg-cta-fill,
#projectEditMyRoleModal .hg-cta-outline,
#projectAcceptInviteModal .hg-cta-fill,
#projectAcceptInviteModal .hg-cta-outline,
#projectInviteDuplicateModal .hg-cta-fill,
#projectInviteDuplicateModal .hg-cta-outline,
#projectAddMaterialsModal .hg-cta-fill,
#projectAddMaterialsModal .hg-cta-outline,
#projectGalleryOverlay .hg-cta-fill {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.page-project-view .hg-cta-fill,
#projectInviteModal .hg-cta-fill,
#projectEditMyRoleModal .hg-cta-fill,
#projectAcceptInviteModal .hg-cta-fill,
#projectInviteDuplicateModal .hg-cta-fill,
#projectAddMaterialsModal .hg-cta-fill,
#projectGalleryOverlay .hg-cta-fill {
    background: #169d8e;
    border: 1px solid #169d8e;
    color: #fff !important;
}
.page-project-view .hg-cta-fill:hover,
#projectInviteModal .hg-cta-fill:hover,
#projectEditMyRoleModal .hg-cta-fill:hover,
#projectAcceptInviteModal .hg-cta-fill:hover,
#projectInviteDuplicateModal .hg-cta-fill:hover,
#projectAddMaterialsModal .hg-cta-fill:hover,
#projectGalleryOverlay .hg-cta-fill:hover {
    background: #148a7d;
    border-color: #148a7d;
    color: #fff !important;
}
.page-project-view .hg-cta-fill:focus-visible,
#projectInviteModal .hg-cta-fill:focus-visible,
#projectEditMyRoleModal .hg-cta-fill:focus-visible,
#projectAcceptInviteModal .hg-cta-fill:focus-visible,
#projectInviteDuplicateModal .hg-cta-fill:focus-visible,
#projectAddMaterialsModal .hg-cta-fill:focus-visible,
#projectGalleryOverlay .hg-cta-fill:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.35);
}
.page-project-view .hg-cta-outline,
#projectInviteModal .hg-cta-outline,
#projectEditMyRoleModal .hg-cta-outline,
#projectAcceptInviteModal .hg-cta-outline,
#projectInviteDuplicateModal .hg-cta-outline,
#projectAddMaterialsModal .hg-cta-outline {
    background: transparent;
    color: #117b72 !important;
    border: 2px solid #18b9a7;
}
.page-project-view .hg-cta-outline:hover,
#projectInviteModal .hg-cta-outline:hover,
#projectEditMyRoleModal .hg-cta-outline:hover,
#projectAcceptInviteModal .hg-cta-outline:hover,
#projectInviteDuplicateModal .hg-cta-outline:hover,
#projectAddMaterialsModal .hg-cta-outline:hover {
    background: rgba(22, 157, 142, 0.08);
    color: #0d5c56 !important;
    border-color: #169d8e;
}
.page-project-view .hg-cta-outline:focus-visible,
#projectInviteModal .hg-cta-outline:focus-visible,
#projectEditMyRoleModal .hg-cta-outline:focus-visible,
#projectAcceptInviteModal .hg-cta-outline:focus-visible,
#projectInviteDuplicateModal .hg-cta-outline:focus-visible,
#projectAddMaterialsModal .hg-cta-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.22);
}
.page-project-view .hg-cta-danger-outline,
#projectInviteModal .hg-cta-danger-outline {
    background: transparent;
    color: #b42318 !important;
    border: 2px solid #f87171;
    font-weight: 600;
}
.page-project-view .hg-cta-danger-outline:hover,
#projectInviteModal .hg-cta-danger-outline:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #991b1b !important;
    border-color: #ef4444;
}
.page-project-view .hg-cta-danger-outline:focus-visible,
#projectInviteModal .hg-cta-danger-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}
.page-project-view .btn-sm.hg-cta-fill,
.page-project-view .btn-sm.hg-cta-outline,
.page-project-view .btn-sm.hg-cta-danger-outline,
#projectInviteModal .btn-sm.hg-cta-fill,
#projectInviteModal .btn-sm.hg-cta-outline,
#projectEditMyRoleModal .btn-sm.hg-cta-fill,
#projectEditMyRoleModal .btn-sm.hg-cta-outline,
#projectAddMaterialsModal .btn-sm.hg-cta-fill,
#projectAddMaterialsModal .btn-sm.hg-cta-outline {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}
.page-project-view .btn-lg.hg-cta-fill {
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
}
.page-project-view #customModalFooter .btn-primary {
    background: #169d8e;
    border: 1px solid #169d8e;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
}
.page-project-view #customModalFooter .btn-primary:hover {
    background: #148a7d;
    border-color: #148a7d;
    color: #fff !important;
}
.page-project-view #customModalFooter .btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
}
.page-project-view #customModalFooter .btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    color: #fff !important;
}
.page-project-view #customModalFooter .btn-outline-secondary {
    background: transparent;
    color: #117b72 !important;
    border: 2px solid #18b9a7;
    font-weight: 600;
    border-radius: 8px;
}
.page-project-view #customModalFooter .btn-outline-secondary:hover {
    background: rgba(22, 157, 142, 0.08);
    color: #0d5c56 !important;
    border-color: #169d8e;
}

/* ——— Участники проекта: шапка и статусы (страница проекта) ——— */
#project-members-block .project-members-toolbar {
    row-gap: 0.5rem;
}
#project-members-block .project-members-confirmation-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.project-members-confirmation-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px !important;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    background: #f8f9fa;
    color: #495057;
}
.project-members-confirmation-pill .bi {
    font-size: 0.95rem;
}
.project-members-confirmation-pill--owner,
.project-members-confirmation-pill--confirmed,
.project-members-confirmation-pill--verified {
    background: #f3fffc;
    color: #0a7a68;
    border-color: rgba(7, 192, 161, 0.35);
}
.project-members-confirmation-pill--partial,
.project-members-confirmation-pill--self {
    background: #fff8e8;
    color: #9a6700;
    border-color: rgba(255, 193, 7, 0.35);
}
.project-members-confirmation-pill--none {
    background: #f1f3f5;
    color: #5c6570;
    border-color: #dee2e6;
}
#project-members-block .project-members-confirmation-pill .bi {
    color: var(--greeny, #07c0a1);
    font-size: 0.95rem;
}
#project-members-block .project-members-title-wrap {
    min-width: 0;
}
#project-members-block .project-members-confirmation-pill--header {
    font-size: 0.8rem;
    padding: 0.34rem 0.7rem;
}
#project-members-block .project-members-summary {
    line-height: 1.35;
}

/* Большой бейдж статуса подтверждения состава проекта (слева от списка участников) */
#project-members-block .project-members-layout {
    align-items: flex-start;
}
#project-members-block .project-members-confirmation-big-wrap {
    flex: 0 0 auto;
}
#project-members-block .project-members-confirmation-big {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    min-width: 220px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(7, 192, 161, 0.10), rgba(51, 154, 153, 0.06));
    border: 1px solid rgba(7, 192, 161, 0.25);
    box-shadow: 0 2px 8px rgba(7, 192, 161, 0.10);
    color: #212529;
}
#project-members-block .project-members-confirmation-big .bi {
    color: var(--greeny, #07c0a1);
    font-size: 1.35rem;
}
#project-members-block .project-members-confirmation-big-text {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}
#project-members-block .project-members-list {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    #project-members-block .project-members-confirmation-big {
        min-width: 0;
        width: 100%;
    }
}

#project-members-block .project-members-counts .project-members-counts-sep {
    margin: 0 0.35rem;
    color: #ced4da;
    font-weight: 400;
}
#project-members-block .project-member-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem 1rem;
}
#project-members-block .project-member-body {
    flex: 1 1 auto;
    min-width: 0;
}
#project-members-block .project-member-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
    margin-bottom: 0.2rem;
}
#project-members-block .project-member-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}
#project-members-block .project-member-user .user-render-link,
#project-members-block .project-member-user .user-render-wrapper {
    min-width: 0;
}
#project-members-block .project-member-user .user-render-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
}
#project-members-block .project-member-user .user-render-wrapper {
    gap: 0.45rem !important;
}
#project-members-block .project-member-guest-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--maintext);
    line-height: 1.3;
}
#project-members-block .project-member-meta {
    word-break: break-word;
    overflow-wrap: anywhere;
}
#project-members-block .project-member-actions {
    flex: 0 0 auto;
    align-self: flex-start;
}
#project-members-block .project-member-status-wrap {
    flex: 0 1 auto;
    margin-left: auto;
    max-width: 100%;
}
#project-members-block .project-member-status-wrap--with-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    max-width: 100%;
}
@media (max-width: 767.98px) {
    #project-members-block .project-member-identity {
        flex: 1 1 100%;
    }
    #project-members-block .project-member-status-wrap,
    #project-members-block .project-member-status-wrap--with-actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}
@media (max-width: 575.98px) {
    #project-members-block .project-member-status-wrap--with-actions .btn {
        white-space: normal;
        text-align: center;
    }
}
#project-members-block .project-member-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid transparent;
}
#project-members-block .project-member-status .bi {
    font-size: 0.95em;
    opacity: 0.92;
}
#project-members-block .project-member-status--confirmed {
    background: #f3fffc;
    color: #0a7a68;
    border-color: rgba(7, 192, 161, 0.35);
}
#project-members-block .project-member-status--owner {
    background: #f3fffc;
    color: #0a7a68;
    border-color: rgba(7, 192, 161, 0.35);
}
#project-members-block .project-member-status--linked {
    background: #f0f7ff;
    color: #0b5cad;
    border-color: rgba(13, 110, 253, 0.22);
}
#project-members-block .project-member-status--hidden {
    background: #f1f3f5;
    color: #495057;
    border-color: #e9ecef;
}
#project-members-block .project-member-self {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #6c757d;
    background: #fff;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}
#project-members-block .project-member-self .bi {
    font-size: 0.85em;
    opacity: 0.85;
}

/* Специальные стили для iOS Safari на мобильных устройствах */
@media (max-width: 991px) {
    @supports (-webkit-touch-callout: none) and (not (translate: none)) {
        .dropdown-menu {
            z-index: 999999 !important;
            position: fixed !important;
            top: 50px !important;
            right: 10px !important;
            left: auto !important;
            width: auto !important;
            min-width: 200px !important;
            max-width: calc(100vw - 20px) !important;
            margin: 0 !important;
            transform: none !important;
            -webkit-transform: none !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
            border: 1px solid rgba(0,0,0,0.1) !important;
            -webkit-overflow-scrolling: touch;
        }
        
        /* Убеждаемся, что контент не перекрывает dropdown */
        .mainbody {
            position: relative;
            z-index: 1 !important;
        }
        
        header {
            position: static !important;
            z-index: 1000 !important;
        }
    }
}

/* Дополнительные стили для мобильных устройств с высоким DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
}

/* Иконки .bi: не вешаем position на всех потомков .position-relative — ломает кнопки, карточки, ссылки.
   Префикс в полях: только .bi.position-absolute (как в login/register) или сосед после input.ps-5. */

/* Переопределяем все Bootstrap стили для .bi */
.bi {
    display: inline !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: inherit;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box !important;
}

/* Переопределяем vertical-align для ::before псевдоэлементов Bootstrap Icons */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    vertical-align: 0 !important;
}

/* Картинка внутри префикс-иконки поля (SVG в <i class="bi position-absolute ...">) */
.bi.position-absolute img {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
}

/* Исправление для всех полей с иконками */
.position-relative input.form-control.ps-5 + .bi {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1rem !important;
    height: 100% !important;
    margin: 0 !important;
}

.input-group {
    flex-wrap: nowrap !important;
}
/* Максимально агрессивное переопределение Bootstrap стилей для .bi */
.bi.position-absolute,
.bi.position-absolute.top-50,
.bi.position-absolute.start-0,
.bi.position-absolute.translate-middle-y,
.bi.position-absolute.ps-3,
.bi.position-absolute.text-muted {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 1rem !important;
    height: 100% !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Стили для breadcrumbs */
.breadcrumb-nav {
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: normal;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

/* Переопределяем Bootstrap стили для breadcrumbs */
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ' > ' !important;
    color: #6c757d !important;
    float: none !important;
    padding-right: 1rem !important;
    padding-left: 0.5rem !important;
}

.breadcrumb-link {
    color: #6c757d !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-weight: normal;
}

.breadcrumb-link:hover {
    color: var(--greeny);
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: normal;
}

.breadcrumb-home {
    font-size: 1.1rem;
    padding: 0 0.25rem;
}

.breadcrumb-home:hover {
    color: var(--greeny) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.25rem;
    }
}

/* Глобальные стили для предотвращения сжатия чекбоксов */
.form-check-input {
    flex-shrink: 0 !important;
    min-width: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
}

.form-check-label {
    flex: 1 !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* Sticky Footer - прилипающий футер */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

main .container.mainbody {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Для страниц с контентом, который должен растягиваться - только для stretch-to-footer */
.stretch-to-footer > .row {
    flex: 1;
    display: flex;
    flex-direction: row; /* Возвращаем горизонтальное расположение для Bootstrap grid */
    align-items: stretch; /* Растягиваем колонки по высоте */
}

/* Убеждаемся, что колонки Bootstrap растягиваются по высоте */
.stretch-to-footer .col-md-4,
.stretch-to-footer .col-md-8 {
    display: flex;
    flex-direction: column;
}

/* Специальный класс для страниц, где контент должен растягиваться до футера */
.stretch-to-footer {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

footer {
    flex-shrink: 0;
}

/* Дополнительная поддержка для старых браузеров */
@supports not (display: flex) {
    body {
        min-height: 100vh;
    }
    
    main {
        min-height: calc(100vh - 200px); /* Примерная высота футера */
    }
    
    .mainbody {
        min-height: calc(100vh - 300px); /* Примерная высота футера + отступы */
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    main .container.mainbody {
        min-height: calc(100vh - 150px);
    }
    
    /* На мобильных устройствах возвращаем вертикальное расположение */
    .stretch-to-footer > .row {
        flex-direction: column;
    }
    
    .stretch-to-footer .col-md-4,
    .stretch-to-footer .col-md-8 {
        flex: none; /* Убираем flex для мобильных */
    }
}

/* --- Дашборд специалиста на главной --- */
.dash-hero-cta {
    background: linear-gradient(135deg, var(--greeny) 0%, #00796b 48%, #005a4a 100%);
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(7, 192, 161, 0.25);
}
.dash-hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.dash-hero-cta .btn-light {
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-hero-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    background: #fff;
    color: #005a4a;
}

.dash-profile-hero {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.08) 0%, rgba(7, 192, 161, 0.04) 100%);
    border: 1px solid rgba(7, 192, 161, 0.15);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}
.dash-profile-hero--view {
    position: relative;
}
.dash-profile-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0;
}

.dash-profile-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-profile-row .dash-profile-hero {
    flex: 1 1 0;
    min-width: 0;
}

.dash-profile-row .dash-premium-block {
    margin-top: 0;
    flex: 0 0 auto;
}

.dash-profile-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.dash-profile-avatar {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
}
.dash-profile-avatar__inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.dash-profile-avatar-circle .dash-profile-avatar__inner {
    border-radius: 999px;
}
.dash-profile-avatar-square .dash-profile-avatar__inner {
    border-radius: 0;
}
.dash-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dash-profile-avatar--owner .dash-profile-avatar__edit-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.dash-profile-avatar--owner:hover .dash-profile-avatar__edit-layer,
.dash-profile-avatar--owner:focus-visible .dash-profile-avatar__edit-layer {
    opacity: 1;
}
.dash-profile-avatar--owner .dash-profile-avatar__edit-layer .bi {
    color: #fff;
    font-size: 1.35rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.dash-profile-avatar-circle {
    border-radius: 999px;
}
.dash-profile-avatar-square {
    border-radius: 0;
}
.dash-section-secondary {
    /* 
     * Этот модификатор используется для части секций на дашборде,
     * но добавление margin-top ломало единый вертикальный ритм между блоками
     * (особенно когда секции показываются в разном порядке по ролям).
     * Вертикальный интервал задает базовый .dash-section (margin-bottom).
     */
    margin-top: 0;
}
.dash-profile-main {
    flex: 1;
    min-width: 0;
}
.dash-profile-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.dash-profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}
.dash-profile-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}
.dash-profile-meta-item i {
    margin-right: 0.25rem;
}
.dash-profile-meta-sep {
    margin: 0 0.4rem;
    color: #adb5bd;
}
.dash-profile-meta-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.dash-profile-type-label--editing {
    outline: none;
    padding: 0 0 0.1rem;
    border-bottom: 1px solid var(--greeny);
    color: inherit;
    min-width: 6rem;
}
.dash-profile-meta-type--editing .dash-profile-type-label {
    cursor: text;
}
.dash-profile-type-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}
.dash-profile-type-btn {
    border: none;
    background: none;
    color: #6c757d;
    padding: 0;
    line-height: 1;
    font-size: 0.7rem;
    cursor: pointer;
    vertical-align: middle;
}
.dash-profile-type-btn:hover,
.dash-profile-type-btn:focus {
    background: none;
    color: var(--greeny);
}
.dash-profile-type-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.dash-profile-about {
    font-size: 0.9375rem;
    color: #343a40;
    margin: 0;
}

.dash-author-public-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.15rem;
}

.dash-author-public-badge__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
}

.dash-author-public-badge__cloud {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0.28rem 0.7rem 0.32rem 0.55rem;
    border-radius: 999px;
    background: #f0f9f7;
    border: none;
    box-shadow: none;
    text-decoration: none;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: #1d5d53;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dash-author-public-badge__cloud:hover {
    background: #e2f3ef;
    color: #1d5d53;
}

.dash-author-public-badge__cloud-ico {
    flex-shrink: 0;
    font-size: 0.8125rem;
    line-height: 1;
    color: rgba(29, 93, 83, 0.5);
    margin-top: 0.5px;
}

.dash-author-public-badge__cloud:hover .dash-author-public-badge__cloud-ico {
    color: rgba(29, 93, 83, 0.62);
}

.dash-author-public-badge__cloud-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.dash-author-public-badge__cloud--empty {
    font-weight: 500;
    color: #5c726d;
    background: #f0f4f3;
    align-items: flex-start;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dash-author-public-badge__cloud--empty .dash-author-public-badge__cloud-ico {
    color: rgba(92, 114, 109, 0.5);
    margin-top: 0.15rem;
}

.dash-author-public-badge__cloud--empty .dash-author-public-badge__cloud-text {
    white-space: normal;
    line-height: 1.4;
}

.dash-author-public-badge__cloud--empty:hover {
    background: #e6eeec;
    color: #3d524e;
}

/* Блок статуса премиум‑подписки на дашборде */
.dash-premium-block {
    margin-top: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.08) 0%, rgba(7, 192, 161, 0.04) 100%);
    border: 1px solid rgba(7, 192, 161, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem 1rem;
}

.dash-premium-block--lite {
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    gap: 0.4rem 0.75rem;
}

.dash-premium-block--lite .dash-premium-text {
    font-size: 0.82rem;
    color: #475569;
}

.dash-premium-block--lite .dash-premium-cta .btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
}

/* Активная премиум-плашка на дашборде — переход на «Подписка и возможности» */
.dash-premium-block--click-paid {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dash-premium-block--click-paid:hover {
    border-color: rgba(7, 192, 161, 0.35);
    box-shadow: 0 2px 10px rgba(7, 192, 161, 0.12);
}

.dash-premium-block--click-paid:focus {
    outline: none;
}

.dash-premium-block--click-paid:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.65);
    outline-offset: 2px;
}

.dash-premium-block--click-paid .dash-premium-cta {
    cursor: auto;
}

.dash-premium-block--click-paid .dash-premium-cta .btn {
    cursor: pointer;
}

.dash-premium-block--click-paid .dash-premium-text,
.dash-premium-block--click-paid .dash-premium-days {
    cursor: pointer;
}

.dash-profile-row .dash-premium-block.dash-premium-block--click-paid {
    cursor: pointer;
}

.dash-premium-text {
    font-size: 0.92rem;
    color: #0f4c4a;
}

.dash-premium-days {
    font-weight: 600;
    color: #0f8c7a;
}

.dash-premium-cta .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .dash-profile-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .dash-profile-row .dash-premium-block {
        display: none;
    }
    .dash-profile-hero-inner {
        align-items: center;
    }
    .dash-profile-avatar {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 768px) {
    .dash-profile-row .dash-premium-block {
        display: none;
    }
}

.dash-resumes-block .dash-section-title {
    margin-bottom: 1rem;
}
.dash-resume-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.04) 0%, rgba(7, 192, 161, 0.02) 100%);
    border: 1px solid rgba(7, 192, 161, 0.12);
    border-radius: 16px;
}

.dash-resume-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    text-decoration: none;
    color: var(--maintext);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 260px;
    max-width: 380px;
    flex: 1 1 auto;
}
.dash-resume-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--greeny);
    color: var(--maintext);
}
.dash-resume-card .dash-resume-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.dash-resume-card .dash-resume-meta {
    font-size: 0.8125rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dash-resume-card .dash-resume-meta .bi {
    font-size: 0.9em;
}
.dash-resume-card .dash-resume-status {
    font-size: 0.75rem;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}
.dash-resume-card .dash-resume-status-invited {
    /* Пилюля как на сайте для бейджей статусов */
    background: rgba(7, 192, 161, 0.12);
    color: #0f8c7a;
    border: 1px solid rgba(7, 192, 161, 0.30);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}
.dash-resume-status-active { color: var(--greeny); }
.dash-resume-status-draft { color: #6c757d; }
.dash-resume-status-hidden { color: #856404; }
.dash-resume-card .dash-resume-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.dash-resume-card:hover .dash-resume-arrow {
    transform: translateX(4px);
    color: var(--greeny);
}

.dash-resume-card-all {
    min-width: 130px;
    max-width: 200px;
    color: var(--greeny);
    font-weight: 500;
}
.dash-resume-card-all:hover {
    color: #059377;
}

.dash-resume-card-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 160px;
    padding: 1rem 1.25rem;
    background: rgba(7, 192, 161, 0.1);
    border: 2px dashed rgba(7, 192, 161, 0.4);
    border-radius: 14px;
    color: var(--greeny);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.dash-resume-card-add .bi {
    font-size: 1.25rem;
}
.dash-resume-card-add:hover {
    background: rgba(7, 192, 161, 0.18);
    border-color: var(--greeny);
    color: #057a66;
    transform: translateY(-2px);
}

.dash-resume-card-import {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 200px;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.12) 0%, rgba(7, 192, 161, 0.06) 100%);
    border: 2px solid rgba(7, 192, 161, 0.35);
    border-radius: 14px;
    color: var(--blacky);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.dash-resume-card-import .bi:first-of-type {
    font-size: 1.35rem;
    color: var(--greeny);
}
.dash-resume-card-import > div {
    flex: 1;
    min-width: 0;
}
.dash-resume-card-import span {
    display: block;
    color: var(--blacky);
}
.dash-resume-buttons-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .dash-resume-buttons-wrap {
        flex-wrap: wrap;
        flex-shrink: 1;
        width: 100%;
        min-width: 0;
    }
}
.dash-resume-card-import .dash-resume-arrow {
    color: var(--greeny);
    flex-shrink: 0;
}
.dash-resume-card-import:hover {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.18) 0%, rgba(7, 192, 161, 0.1) 100%);
    border-color: var(--greeny);
    box-shadow: 0 6px 20px rgba(7, 192, 161, 0.15);
    transform: translateY(-2px);
    color: var(--blacky);
}
.dash-resume-card-import:hover .dash-resume-arrow {
    transform: translateX(4px);
}

.dash-section {
    margin-bottom: 1.25rem;
}
.dash-section-confirmed-experience {
    margin-bottom: 1.5rem;
}
.dash-section-confirmed-experience + .dash-section-portfolio-projects {
    margin-top: 1.25rem !important;
}

/* Портфолио проектов на главной (Team / Developer / Specialist) */
.dash-section-portfolio-projects .sd-portfolio-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
@media (min-width: 576px) {
    .dash-section-portfolio-projects .sd-portfolio-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.85rem;
    }
}
.dash-section-portfolio-projects .sd-portfolio-card {
    display: block;
    padding: 1rem 1.15rem;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.dash-section-portfolio-projects .sd-portfolio-card:hover {
    border-color: rgba(7, 192, 161, 0.45);
    box-shadow: 0 4px 14px rgba(7, 192, 161, 0.12);
    color: inherit;
    text-decoration: none;
}
.dash-section-portfolio-projects .sd-portfolio-card--member {
    border-left: 3px solid rgba(108, 117, 125, 0.45);
}
.dash-section-portfolio-projects .sd-portfolio-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}
.dash-section-portfolio-projects .sd-portfolio-card__year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.dash-section-portfolio-projects .sd-portfolio-card__badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
    margin-left: auto;
}
.dash-section-portfolio-projects .sd-portfolio-card__badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0a7a68;
    background: #f3fffc;
    border: 1px solid rgba(7, 192, 161, 0.35);
    white-space: nowrap;
}
.dash-section-portfolio-projects .sd-portfolio-card__status {
    color: #07c0a1;
    font-weight: 600;
}
.dash-section-portfolio-projects .sd-portfolio-card__name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.45rem;
    color: var(--blacky);
}
.dash-section-portfolio-projects .sd-portfolio-card__address {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.dash-section-portfolio-projects .sd-portfolio-card__meta {
    font-size: 0.8125rem;
    color: #5c6b73;
    line-height: 1.4;
}
.dash-section-portfolio-projects .dash-card {
    padding: 1.25rem 1.35rem 1.35rem;
}
.dash-section-portfolio-projects .dash-portfolio-footer {
    margin-top: 1rem;
    padding-top: 1rem;
}
@media (max-width: 575.98px) {
    .dash-section-portfolio-projects .dash-portfolio-footer .dash-portfolio-footer__all {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .dash-section-portfolio-projects .dash-portfolio-actions {
        width: 100%;
    }
    .dash-section-portfolio-projects .dash-portfolio-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.dash-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blacky);
    margin-bottom: 1rem;
    padding: 0;
}
.dash-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}
.dash-card-confirmed-experience {
    margin-bottom: 1.25rem;
}
.dash-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dash-portfolio-header,
.dash-portfolio-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.dash-portfolio-header {
    margin-bottom: 1.25rem;
}
.dash-portfolio-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(7, 192, 161, 0.15);
}
.dash-portfolio-count {
    font-size: 0.9375rem;
    color: #6c757d;
}
.dash-portfolio-count strong {
    color: var(--blacky);
}
.dash-portfolio-actions {
    display: flex;
    gap: 0.5rem;
}
.dash-portfolio-footer .dash-portfolio-footer__all {
    margin-left: auto;
}
.dash-timeline-year {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--greeny);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}
.dash-timeline-year:first-child { margin-top: 0; }
.dash-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dash-timeline-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.dash-timeline-list li:last-child { border-bottom: none; }
.dash-timeline-list a {
    font-size: 0.9375rem;
    color: var(--maintext);
    text-decoration: none;
    transition: color 0.2s ease;
}
.dash-timeline-list a:hover {
    color: var(--greeny);
}

/* Портфолио: десктоп — линия с перерывами по годам, точки на линии, тултипы */
.dash-timeline-segments {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0;
    padding: 6rem 0 0;
    margin-top: 1rem;
    overflow: visible;
}
.dash-timeline-mobile {
    display: none;
}
@media (min-width: 992px) {
    .dash-timeline-mobile { display: none !important; }
}
@media (max-width: 991.98px) {
    .dash-timeline-segments { display: none !important; }
    .dash-timeline-mobile { display: block !important; }
}
.dash-timeline-segment-gap {
    width: 2px;
    flex-shrink: 0;
}
.dash-timeline-segment {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    overflow: visible;
}
.dash-timeline-total-left {
    margin-top: 0.45rem;
    text-align: left;
}
.dash-timeline-segment-track {
    position: relative;
    width: 100%;
    min-height: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.dash-timeline-segment-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-1px);
    height: 2px;
    background: linear-gradient(90deg, rgba(7, 192, 161, 0.4) 0%, var(--greeny) 15%, var(--greeny) 85%, rgba(7, 192, 161, 0.4) 100%);
    z-index: 0;
}
.dash-timeline-segment-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--greeny);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    text-align: center;
}
.dash-timeline-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.dash-timeline-dot:hover {
    background: rgba(7, 192, 161, 0.12);
}
.dash-timeline-dot .dash-timeline-item-node {
    margin: 0;
    transition: transform 0.2s ease;
}
.dash-timeline-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: var(--blacky);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    min-width: 100px;
    max-width: 200px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(7, 192, 161, 0.2);
    opacity: 1;
    visibility: visible;
    transition: z-index 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 1;
}
.dash-timeline-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}
.dash-timeline-dot:hover .dash-timeline-tooltip::before {
    border-top-color: rgba(7, 192, 161, 0.25);
}
.dash-timeline-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(7, 192, 161, 0.15);
}
.dash-timeline-dot:hover .dash-timeline-tooltip {
    z-index: 101;
    background: #e6f7f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-color: rgba(7, 192, 161, 0.2);
}
.dash-timeline-dot:hover .dash-timeline-tooltip::after {
    border-top-color: #e6f7f5;
}
.dash-timeline-dot:hover {
    background: rgba(7, 192, 161, 0.12);
    border-radius: 8px;
    z-index: 100;
}
.dash-timeline-dot:hover .dash-timeline-item-node {
    transform: scale(1.15);
}

/* Вертикальный таймлайн проектов на странице /{pagename}/projects */
.projects-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 2rem;
}
.projects-timeline::before {
    content: '';
    position: absolute;
    left: 158px; /* ось таймлайна выровнена с точками (колонка года 108px) */
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(7,192,161,0.3), rgba(7,192,161,0.7));
    pointer-events: none;
}
.projects-timeline-year-row,
.projects-timeline-item-row {
    display: grid;
    grid-template-columns: 108px 32px 1fr; /* год | линия/точка | контент */
    align-items: flex-start;
    column-gap: 1rem;
    position: relative;
}
.projects-timeline-section-title {
    font-weight: 700;
    color: var(--blacky);
    margin: 0.2rem 0 0.45rem;
}
.projects-timeline-section-divider {
    height: 1px;
    background: rgba(7, 192, 161, 0.22);
    margin: 0.6rem 0 0.85rem;
}
.project-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    vertical-align: middle;
}
.project-role-badge .bi {
    font-size: 0.72rem;
    position: static !important;
    transform: none !important;
}
.project-role-badge--author {
    background: rgba(255, 193, 7, 0.14);
    color: #7a5a00;
    border-color: rgba(255, 193, 7, 0.28);
}
.project-role-badge--member {
    background: transparent;
    border-color: transparent;
    padding: 0;
}
.project-role-badge--member .project-role-badge__label {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.24);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.project-role-badge--has-tip {
    position: relative;
    cursor: help;
    z-index: 1;
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
}
.project-role-badge__label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}
.project-role-badge__label .bi {
    font-size: 0.72rem;
    position: static !important;
    transform: none !important;
}
.project-role-badge--has-tip:hover,
.project-role-badge--has-tip:focus,
.project-role-badge--has-tip:focus-within {
    z-index: 130;
}
.sd-portfolio-card:has(.project-role-badge--has-tip:hover),
.sd-portfolio-card:has(.project-role-badge--has-tip:focus-within) {
    position: relative;
    z-index: 5;
}
.project-role-badge-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    width: min(17rem, 78vw);
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #fff;
    color: #343a40;
    border: 1px solid rgba(108, 117, 125, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.project-role-badge-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}
.project-role-badge--has-tip:hover .project-role-badge-tip,
.project-role-badge--has-tip:focus .project-role-badge-tip,
.project-role-badge--has-tip:focus-within .project-role-badge-tip {
    opacity: 1;
    visibility: visible;
}
.project-role-badge-tip__title {
    display: block;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.35rem;
}
.project-role-badge-tip__text {
    display: block;
    margin-bottom: 0.45rem;
    color: #495057;
}
.project-role-badge-tip__actions-title {
    display: block;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
}
.project-role-badge-tip__list {
    margin: 0;
    padding-left: 1rem;
    color: #495057;
}
.project-role-badge-tip__list li + li {
    margin-top: 0.2rem;
}
.project-view-hero-badges .project-role-badge--member .project-role-badge__label {
    padding: 0.32rem 0.72rem;
    font-size: 0.78rem;
}
.project-view-hero-badges .project-role-badge--member .project-role-badge__label .bi {
    font-size: 0.95rem;
}
.project-view-hero-badges {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.project-view-hero-badges:has(.project-role-badge--has-tip:hover),
.project-view-hero-badges:has(.project-role-badge--has-tip:focus-within) {
    z-index: 1100;
}
.project-view-hero-badges .project-role-badge--has-tip:hover,
.project-view-hero-badges .project-role-badge--has-tip:focus,
.project-view-hero-badges .project-role-badge--has-tip:focus-within {
    z-index: 1100;
}
.project-view-hero-badges .project-role-badge-tip {
    bottom: auto;
    top: calc(100% + 0.55rem);
    z-index: 1100;
}
.project-view-hero-badges .project-role-badge-tip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #fff;
}
.project-page .resume-view-hero-top {
    overflow: visible;
}
.project-page .resume-view-hero {
    overflow: visible;
}
@media (max-width: 767.98px) {
    .project-role-badge--has-tip {
        cursor: default;
    }
    .project-role-badge-tip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .project-role-badge--has-tip:hover .project-role-badge-tip,
    .project-role-badge--has-tip:focus .project-role-badge-tip,
    .project-role-badge--has-tip:focus-within .project-role-badge-tip {
        display: none !important;
        margin-top: 0;
    }
    .project-role-badge-tip::after {
        display: none;
    }
    .project-view-hero-badges:has(.project-role-badge--has-tip:hover),
    .project-view-hero-badges:has(.project-role-badge--has-tip:focus-within),
    .project-view-hero-badges .project-role-badge--has-tip:hover,
    .project-view-hero-badges .project-role-badge--has-tip:focus,
    .project-view-hero-badges .project-role-badge--has-tip:focus-within {
        z-index: 1;
    }
}
.dash-timeline-item-node--member,
.dash-timeline-dot--member .dash-timeline-item-node {
    background: #868e96;
    box-shadow: 0 0 0 1px rgba(108, 117, 125, 0.45);
}
.timeline-item-dot--member {
    background: #868e96;
    box-shadow: 0 0 0 1px rgba(108, 117, 125, 0.45);
}
.dash-timeline-tooltip__role-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
}
.dash-timeline-item-role {
    display: block;
    margin: 0.15rem 0 0.25rem;
    width: fit-content;
    max-width: 100%;
}
.sd-portfolio-card__badges .project-role-badge--member,
.dash-timeline-item-role .project-role-badge--member {
    flex-shrink: 0;
    width: auto;
}
.timeline-col-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--greeny);
    text-align: right;
    padding-top: 0.25rem;
}
.projects-timeline-year-row .timeline-col-year {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    padding-top: 0;
}
.projects-timeline-item-row .timeline-col-year {
    font-weight: 400;
    color: var(--mutedtext, #6c757d);
}
.timeline-col-line {
    position: relative;
    display: flex;
    justify-content: center;
}
.projects-timeline-item-row .timeline-col-line {
    align-items: flex-start;
}
.timeline-year-dot,
.timeline-item-dot {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--greeny);
}
.timeline-year-dot {
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(7,192,161,0.45);
    margin-top: 0.25rem;
}
.timeline-item-dot {
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(7,192,161,0.35);
    margin-top: 0.75rem;
}
.projects-timeline-item-row .timeline-item-dot {
    margin-top: calc(0.45rem - 3px);
}
.timeline-col-content {
    padding-bottom: 1rem;
}
.project-confirmation-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}
.project-confirmation-badge--none {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    border-color: rgba(108, 117, 125, 0.24);
}
.project-confirmation-badge--partial {
    background: rgba(255, 193, 7, 0.16);
    color: #7a5a00;
    border-color: rgba(255, 193, 7, 0.3);
}
.project-confirmation-badge--confirmed {
    background: rgba(7, 192, 161, 0.14);
    color: #0a7f6c;
    border-color: rgba(7, 192, 161, 0.3);
}
.project-confirmation-badge--organization {
    background: rgba(13, 110, 253, 0.14);
    color: #0d4fb5;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Горизонтальная временная шкала (линия сквозь все проекты) */
.dash-timeline-horizontal {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 1rem;
    position: relative;
    padding: 0 0 0.5rem;
}
.dash-timeline-horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 1.125rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(7, 192, 161, 0.4) 0%, var(--greeny) 15%, var(--greeny) 85%, rgba(7, 192, 161, 0.4) 100%);
    z-index: 0;
}
.dash-timeline-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}
.dash-timeline-item-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--greeny);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(7, 192, 161, 0.35);
    flex-shrink: 0;
    margin-top: 0.625rem;
    margin-bottom: 0.5rem;
}
.dash-timeline-item-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--greeny);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}
.dash-timeline-item-link {
    font-size: 0.875rem;
    color: var(--maintext);
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-timeline-item-link:hover {
    color: var(--greeny);
}
@media (max-width: 991.98px) {
    .dash-timeline-horizontal {
        flex-direction: column;
        margin-top: 0.5rem;
        padding: 0;
    }
    .dash-timeline-horizontal::before {
        left: 0.4rem;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(7, 192, 161, 0.4) 0%, var(--greeny) 20%, var(--greeny) 80%, rgba(7, 192, 161, 0.4) 100%);
    }
    .dash-timeline-item {
        flex: none;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0.75rem 0 0.75rem 1.5rem;
        position: relative;
    }
    .dash-timeline-item-node {
        position: absolute;
        left: calc(0.4rem + 1px - 1.5rem + 21px);
        margin: 0;
        transform: translateX(-50%);
    }
    .dash-timeline-item-year {
        margin-bottom: 0;
        margin-right: 0.75rem;
        min-width: 2.5rem;
    }
    .dash-timeline-item-link {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        flex: 1;
    }
    .dash-section-portfolio-projects .dash-timeline-item-role {
        margin: 0 0.65rem 0 0;
        flex-shrink: 0;
    }
    .dash-section-portfolio-projects .dash-timeline-item:has(.dash-timeline-item-role) {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.4rem;
    }
    .dash-section-portfolio-projects .dash-timeline-item:has(.dash-timeline-item-role) .dash-timeline-item-link {
        flex: 1 1 100%;
        margin-top: 0.15rem;
        padding-left: calc(2.5rem + 0.75rem);
    }
    .dash-section-portfolio-projects .sd-portfolio-card:has(.project-role-badge) .sd-portfolio-card__name {
        margin-top: 0.5rem;
    }
    /* Мобилка: фэйд, ссылка «ещё Х проектов», следующие 5 из фэйда */
    .dash-timeline-mobile-fade {
        position: relative;
        padding: 1rem 0 1rem 1.5rem;
        margin-left: 0.4rem;
    }
    .dash-timeline-mobile-fade::before {
        content: '';
        position: absolute;
        left: -1.5rem;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.6) 25%, rgba(255,255,255,0.6) 75%, transparent 100%);
        pointer-events: none;
    }
    .dash-timeline-mobile-more {
        position: relative;
        z-index: 1;
        display: inline-block;
        font-size: 0.875rem;
        font-weight: 400;
        color: #6c757d;
        text-decoration: none;
        padding: 0.35rem 0;
    }
    .dash-timeline-mobile-more:hover {
        color: #495057;
        text-decoration: underline;
    }
    .dash-timeline-item-from-fade {
        animation: dash-timeline-fade-in 0.4s ease-out;
    }
}
@keyframes dash-timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-cta-empty {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(7, 192, 161, 0.12) 100%);
    border: 1px dashed rgba(7, 192, 161, 0.35);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.dash-section .dash-cta-empty,
.col-12 > .dash-cta-empty {
    margin-top: 0;
    margin-bottom: 0;
}
.dash-cta-empty .dash-cta-title {
    font-weight: 600;
    color: var(--blacky);
    margin-bottom: 0.35rem;
}
.dash-cta-empty .dash-cta-desc {
    font-size: 0.9375rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
}
.dash-early-community-note {
    margin-top: .75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(7, 192, 161, .22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    position: relative;
}
.dash-early-community-note__close {
    position: absolute;
    right: .75rem;
    top: .75rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent !important;
    background-image: none !important;
    opacity: 1;
    filter: none !important;
    box-shadow: none !important;
}
.dash-early-community-note__close::before {
    content: '×';
    display: block;
    text-align: center;
    line-height: 1.5rem;
    font-size: 1.35rem;
    color: #5f6b7a;
}
.dash-early-community-note__close:hover {
    background: rgba(95, 107, 122, .08) !important;
}
.dash-early-community-note__close:hover::before {
    color: #2f3b4a;
}
.dash-early-community-note__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(7, 192, 161, .14);
    color: #0b8f78;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-early-community-note__title {
    margin: 0 0 .3rem;
    font-weight: 600;
    color: var(--blacky);
}
.dash-early-community-note__text {
    margin: 0 0 .3rem;
    color: #5f6b7a;
    font-size: .95rem;
}
/* Единый стиль блоков требований/подписок */
.subscription-requirement {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed #d0d7de;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.9rem;
}
.subscription-requirement-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #111827;
}
.subscription-requirement-text {
    margin-bottom: 0;
    color: #4b5563;
}
.subscription-requirement--inactive {
    background: #fffbeb;
    border-color: #facc15;
    color: #854d0e;
}
.subscription-requirement a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Компактный статус публикации на форме вакансии */
.vacancy-quota-hint {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.45;
}
.vacancy-quota-hint__label {
    font-weight: 600;
    color: #111827;
}
.vacancy-form-actions__buttons {
    margin-top: 0.25rem;
}

/* Компактный лимит на «Мои вакансии» */
.vacancy-list-quota {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Empty state «Мои вакансии» */
.vacancy-empty-state {
    margin-top: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: left;
}
.vacancy-empty-state__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.vacancy-empty-state__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    border-radius: 14px;
    background: rgba(7, 192, 161, 0.12);
    color: #0f766e;
    font-size: 1.75rem;
}
.vacancy-empty-state__body {
    min-width: 0;
    flex: 1;
}
.vacancy-empty-state__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}
.vacancy-empty-state__text {
    max-width: 36rem;
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.55;
}
.vacancy-empty-state__cta {
    min-width: 14rem;
}

/* Блок подсказок по роли на главной (свёрнутые панели) */
.dash-role-guide__stack {
    display: grid;
    gap: 0.65rem;
}
.dash-role-guide-panel {
    border-radius: 14px;
    border: 1px solid rgba(22, 157, 142, 0.22);
    background: linear-gradient(165deg, #ffffff 0%, #f6fffc 100%);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.dash-role-guide-panel__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.dash-role-guide-panel__summary::-webkit-details-marker {
    display: none;
}
.dash-role-guide-panel__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(22, 157, 142, 0.12);
    color: #0f766e;
    font-size: 1.05rem;
}
.dash-role-guide-panel__title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}
.dash-role-guide-panel__chevron {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}
.dash-role-guide-panel[open] .dash-role-guide-panel__chevron {
    transform: rotate(180deg);
    background: rgba(22, 157, 142, 0.12);
    color: #0f766e;
}
.dash-role-guide-panel__body {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.15rem 1rem;
    border-top: 1px solid rgba(22, 157, 142, 0.12);
}
.dash-role-guide-panel__content {
    flex: 1 1 auto;
    min-width: 0;
}
.dash-role-guide-panel__steps {
    margin: 0.1rem 0 0.65rem;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #334155;
}
/* Шаги 1–3 → итог (визуальная цепочка) */
.dash-role-guide-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
}
.dash-role-guide-flow__steps {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    counter-reset: drg-step;
}
.dash-role-guide-flow__steps li {
    position: relative;
    padding: 0.15rem 0 0.15rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #334155;
}
.dash-role-guide-flow__steps li:not(.dash-role-guide-flow__outcome)::before {
    counter-increment: drg-step;
    content: counter(drg-step);
    position: absolute;
    left: 0;
    top: 0.12rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f766e;
    background: rgba(22, 157, 142, 0.14);
    border: 1px solid rgba(22, 157, 142, 0.28);
}
.dash-role-guide-flow__steps li.dash-role-guide-flow__outcome::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(22, 157, 142, 0.2);
    border: 2px solid #169d8e;
    box-shadow: inset 0 0 0 2px #fff;
}
.dash-role-guide-flow__steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 1.55rem;
    bottom: -0.2rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(22, 157, 142, 0.45) 0%, rgba(22, 157, 142, 0.15) 100%);
    transform: translateX(-50%);
}
.dash-role-guide-flow__steps li.dash-role-guide-flow__outcome {
    font-weight: 600;
    color: #0f5c54;
}
.dash-role-guide-panel__result {
    margin: 0 0 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(22, 157, 142, 0.08);
    border-left: 3px solid #169d8e;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: #0f5c54;
}
.dash-role-guide-panel__channels {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.5rem;
}
.dash-role-guide-panel__channels li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: #1e293b;
}
.dash-role-guide-panel__channels .bi-check-circle-fill {
    color: #169d8e;
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
}
.dash-role-guide-panel__summary:hover {
    background: rgba(22, 157, 142, 0.04);
}
.dash-role-guide-panel__summary:focus-visible {
    outline: 2px solid rgba(22, 157, 142, 0.45);
    outline-offset: -2px;
}
.dash-role-guide-panel__actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(22, 157, 142, 0.12);
}
.dash-role-guide-panel__dismiss-link {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #169d8e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}
.dash-role-guide-panel__dismiss-link:hover {
    color: #117b72;
    text-decoration: underline;
}
.dash-role-guide-panel__dismiss-link:focus-visible {
    outline: 2px solid rgba(22, 157, 142, 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Карточка организации на главной (Team / Developer) */
.dash-org-card {
    padding: 1.1rem 1.2rem 1.15rem;
    border: 1px solid rgba(22, 157, 142, 0.18);
    background: linear-gradient(165deg, #ffffff 0%, #f8fffd 100%);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.dash-org-card--ready {
    border-color: rgba(22, 157, 142, 0.28);
}
.dash-org-card__main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.dash-org-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #0f766e;
    background: rgba(22, 157, 142, 0.12);
    border: 1px solid rgba(22, 157, 142, 0.22);
}
.dash-org-card--ready .dash-org-card__icon {
    color: #169d8e;
    background: rgba(22, 157, 142, 0.16);
}
.dash-org-card__content {
    flex: 1;
    min-width: 0;
    padding-top: 0.08rem;
}
.dash-org-card__lead {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}
.dash-org-card__text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}
.dash-org-card__status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(22, 157, 142, 0.1);
    border: 1px solid rgba(22, 157, 142, 0.22);
}
.dash-org-card__status .bi {
    font-size: 0.75rem;
}
.dash-org-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.dash-org-card .hg-cta-fill,
.dash-profile-hero-actions .hg-cta-fill,
.dash-profile-name-row .hg-cta-fill,
.dash-profile-message-form .hg-cta-fill,
.dash-list-actions--hg-cta .hg-cta-fill,
.dash-section-portfolio-projects .hg-cta-fill,
.ppe-empty .hg-cta-fill,
.resume-list-page .hg-cta-fill {
    background: #169d8e;
    border: 1px solid #169d8e;
    color: #fff !important;
    font-weight: 600;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
}
.dash-org-card .hg-cta-fill:hover,
.dash-profile-hero-actions .hg-cta-fill:hover,
.dash-profile-name-row .hg-cta-fill:hover,
.dash-profile-message-form .hg-cta-fill:hover,
.dash-list-actions--hg-cta .hg-cta-fill:hover,
.dash-section-portfolio-projects .hg-cta-fill:hover,
.ppe-empty .hg-cta-fill:hover,
.resume-list-page .hg-cta-fill:hover {
    background: #148a7d;
    border-color: #148a7d;
    color: #fff !important;
}
.dash-org-card .hg-cta-fill:focus-visible,
.dash-profile-hero-actions .hg-cta-fill:focus-visible,
.dash-profile-name-row .hg-cta-fill:focus-visible,
.dash-profile-message-form .hg-cta-fill:focus-visible,
.dash-list-actions--hg-cta .hg-cta-fill:focus-visible,
.dash-section-portfolio-projects .hg-cta-fill:focus-visible,
.ppe-empty .hg-cta-fill:focus-visible,
.resume-list-page .hg-cta-fill:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.35);
}
.dash-org-card .hg-cta-outline,
.dash-profile-hero-actions .hg-cta-outline,
.dash-profile-name-row .hg-cta-outline,
.dash-profile-message-form .hg-cta-outline,
.dash-list-actions--hg-cta .hg-cta-outline,
.dash-portfolio-footer .hg-cta-outline,
.dash-section-portfolio-projects .hg-cta-outline {
    background: transparent;
    color: #117b72 !important;
    border: 2px solid #18b9a7;
    font-weight: 600;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
}
.dash-org-card .hg-cta-outline:hover,
.dash-profile-hero-actions .hg-cta-outline:hover,
.dash-profile-name-row .hg-cta-outline:hover,
.dash-profile-message-form .hg-cta-outline:hover,
.dash-list-actions--hg-cta .hg-cta-outline:hover,
.dash-portfolio-footer .hg-cta-outline:hover,
.dash-section-portfolio-projects .hg-cta-outline:hover {
    background: rgba(22, 157, 142, 0.08);
    color: #0d5c56 !important;
    border-color: #169d8e;
}
.dash-org-card .hg-cta-outline:focus-visible,
.dash-profile-hero-actions .hg-cta-outline:focus-visible,
.dash-profile-name-row .hg-cta-outline:focus-visible,
.dash-profile-message-form .hg-cta-outline:focus-visible,
.dash-list-actions--hg-cta .hg-cta-outline:focus-visible,
.dash-portfolio-footer .hg-cta-outline:focus-visible,
.dash-section-portfolio-projects .hg-cta-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.22);
}
.dash-profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
@media (max-width: 575.98px) {
    .dash-org-card__main {
        flex-wrap: wrap;
    }
    .dash-org-card__status {
        margin-left: calc(2.5rem + 0.85rem);
    }
    .dash-org-card__actions .btn,
    .dash-profile-hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.sd-resume-owner-note {
    font-size: 0.9rem;
    line-height: 1.45;
}

.dash-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.dash-activity-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "value icon" "label label";
    align-items: start;
    gap: 0 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    min-height: 100px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.dash-activity-item:hover {
    background: rgba(7, 192, 161, 0.06);
    border-color: rgba(7, 192, 161, 0.2);
}
.dash-activity-card-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
}
.dash-activity-card-link:hover {
    color: inherit;
    text-decoration: none;
}
.dash-activity-card-link:hover .dash-activity-item {
    background: rgba(7, 192, 161, 0.06);
    border-color: rgba(7, 192, 161, 0.2);
}
.dash-activity-card-link:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.45);
    outline-offset: 2px;
}
.dash-activity-card-link .dash-activity-item {
    height: 100%;
}
.dash-activity-value-wrap {
    grid-area: value;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}
.dash-activity-value {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--blacky);
    line-height: 1;
    white-space: nowrap;
}
.dash-activity-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 400;
}
.dash-activity-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(7, 192, 161, 0.12);
    color: var(--greeny);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}
.dash-activity-label-wrap {
    grid-area: label;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}
.dash-activity-label {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.35;
}
.dash-activity-total {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blacky);
    flex-shrink: 0;
}

.dash-list-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}
.dash-card + .dash-list-card,
.dash-connections-section + .dash-list-card,
.dash-section + .dash-list-card {
    margin-top: 1.25rem;
}
.dash-list-card .dash-section-title {
    margin-bottom: 1rem;
}
.dash-list-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9375rem;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item .dash-list-meta {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-bottom: 0.2rem;
}
.dash-list-item a {
    color: var(--maintext);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.dash-list-item a:hover {
    color: var(--greeny);
}
.dash-list-actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .dash-hero-cta .h2 { font-size: 1.35rem; }
    .dash-hero-cta .lead { font-size: 1rem; }
    .dash-resume-cards { padding: 1rem; }
    .dash-resume-card { min-width: 100%; max-width: 100%; }
    .dash-resume-card-import { min-width: 120px; flex: 1 1 0; }
    .dash-resume-card-add { min-width: 120px; flex: 1 1 0; }
    .dash-activity-grid { grid-template-columns: 1fr 1fr; }
    .dash-activity-value { font-size: 2rem; }
    .dash-portfolio-header,
    .dash-portfolio-footer { flex-direction: column; align-items: flex-start; }
}

/* ——— Отправленные приглашения (/myinvitations) — в стиле дашборда главной ——— */
.myinv-page .myinv-global-total {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important; /* убираем базовый margin у p */
}
.myinv-page .myinv-global-total-value {
    color: var(--blacky);
    font-size: 1rem;
    margin-left: 0.25rem;
}
/* Единые бейджи: сводка по вакансии и строка приглашения */
.myinv-page .myinv-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid transparent;
}
.myinv-page .myinv-metric-badge-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.myinv-page .myinv-metric-badge-neutral {
    background: #f1f3f5;
    color: #495057;
    border-color: #e9ecef;
}
.myinv-page .myinv-metric-badge-pending {
    background: #FFFBF0;
    color: #856404;
    border-color: #F6E3A9;
}
.myinv-page .myinv-metric-badge-accepted {
    background: #F3FFFC;
    color: #057a66;
    border-color: #B6EFE4;
}
.myinv-page .myinv-metric-badge-declined {
    background: #FFF3F6;
    color: #842029;
    border-color: #F1BCC3;
}
.myinv-page .myinv-metric-badge-revoked {
    background: #F6F7F9;
    color: #495057;
    border-color: #E0E4EA;
}
.myinv-page .myinv-metric-badge-expired {
    background: #FFF9F1;
    color: #984c0c;
    border-color: #F4D7A9;
}
.myinv-page .myinv-invite-foot-left .myinv-row-status-main.myinv-metric-badge {
    /* Чтобы бейдж статуса ответа (Ждём ответа / Принято / ...) совпадал
       по размерам с бейджем статуса просмотра (.myinv-view-flag) */
    font-size: 0.75rem;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    font-weight: 600;
    min-height: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    white-space: nowrap;
}
/* Сводка: воронка + строка просмотров */
.myinv-page .myinv-stats-funnel {
    gap: 0.55rem 0.65rem;
}
.myinv-page .myinv-stats-view-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e8eaed;
    gap: 0.75rem 1.1rem;
    align-items: center;
}
.myinv-page .myinv-view-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #6c757d;
}
.myinv-page .myinv-view-stat .bi {
    font-size: 1rem;
    opacity: 0.85;
}
.myinv-page .myinv-view-stat-seen .myinv-view-stat-value {
    font-weight: 700;
    color: #495057;
    margin-right: 0.2rem;
}
.myinv-page .myinv-view-stat-unseen {
    color: #6c757d;
    font-weight: 400;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.myinv-page .myinv-view-stat-unseen .bi {
    color: inherit;
    opacity: 0.85;
}
.myinv-page .myinv-view-stat-unseen .myinv-view-stat-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #495057;
    margin-right: 0.2rem;
}
/* Индикатор просмотра в строке приглашения */
.myinv-page .myinv-view-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    min-height: 1.4rem;
    height: 1.4rem;
    box-sizing: border-box;
    white-space: nowrap;
}
.myinv-page .myinv-view-flag .bi {
    font-size: 0.95rem;
}
.myinv-page .myinv-view-flag-seen {
    color: #0c5460;
    background: rgba(13, 202, 240, 0.16);
    border: 1px solid rgba(13, 202, 240, 0.42);
}
.myinv-page .myinv-view-flag-unseen {
    color: #432874;
    background: linear-gradient(180deg, rgba(111, 66, 193, 0.22) 0%, rgba(111, 66, 193, 0.12) 100%);
    border: 1px solid rgba(111, 66, 193, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.myinv-page .myinv-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0;
    margin-top: 0.9rem;
    border: 1px solid rgba(7, 192, 161, 0.24);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    width: fit-content;
    max-width: 100%;
}
/* Фильтры /myinvitations: базовые стили — Bootstrap btn btn-sm btn-primary | btn-outline-primary */
.myinv-page .myinv-filter-bar .myinv-filter-btn {
    font-weight: 500;
    border-radius: 0;
    border: 0;
    border-right: 1px solid rgba(7, 192, 161, 0.2);
    margin: 0;
    box-shadow: none !important;
    white-space: nowrap;
    flex: 0 0 auto;
}
.myinv-page .myinv-filter-bar .myinv-filter-btn.active {
    font-weight: 600;
}
.myinv-page .myinv-filter-bar .myinv-filter-btn:last-child {
    border-right: 0;
}
.myinv-page .myinv-invite-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.1rem;
}
.myinv-page .myinv-invite-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1.35rem 1.5rem;
    padding-right: 2.85rem;
    margin-bottom: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
/* /myinvitations только: едва заметный фон плашки в тоне статуса (страница без .recvinv-page) */
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="pending"] {
    background: #FFFBF0;
    border-color: #F6E3A9;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="accepted"] {
    background: #F3FFFC;
    border-color: #B6EFE4;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="rejected"] {
    background: #FFF3F6;
    border-color: #F1BCC3;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="revoked"] {
    background: #F6F7F9;
    border-color: #E0E4EA;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="expired"] {
    background: #FFF9F1;
    border-color: #F4D7A9;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="other"] {
    background: #FAFBFC;
    border-color: #E8EDF2;
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="pending"]:hover {
    border-color: rgba(255, 193, 7, 0.28) !important;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.06);
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="accepted"]:hover {
    border-color: rgba(7, 192, 161, 0.28) !important;
    box-shadow: 0 6px 18px rgba(7, 192, 161, 0.07);
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="rejected"]:hover {
    border-color: rgba(220, 53, 69, 0.22) !important;
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.05);
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="revoked"]:hover {
    border-color: rgba(108, 117, 125, 0.28) !important;
    box-shadow: 0 6px 18px rgba(108, 117, 125, 0.06);
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="expired"]:hover {
    border-color: rgba(253, 126, 20, 0.25) !important;
    box-shadow: 0 6px 18px rgba(253, 126, 20, 0.06);
}
.myinv-page:not(.recvinv-page) .dash-card.myinv-invite-row[data-funnel="other"]:hover {
    border-color: rgba(134, 142, 150, 0.35) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
/* Hover для плашек вне /myinvitations (ниже специфичность, чем data-funnel выше) */
.myinv-page .myinv-invite-row:hover {
    border-color: rgba(7, 192, 161, 0.35) !important;
    box-shadow: 0 6px 20px rgba(7, 192, 161, 0.1);
}
.myinv-page .myinv-invite-open-corner {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease;
}
.myinv-page .myinv-invite-open-corner:hover {
    background: rgba(7, 192, 161, 0.12);
    color: var(--greeny);
}
.myinv-page .myinv-invite-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}
.myinv-page .myinv-invite-member.dash-list-item {
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0;
    font-size: 0.9375rem;
}
.myinv-page .myinv-invite-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1rem;
    padding-top: 0.75rem;
    margin-top: 0.15rem;
    border-top: 1px solid #eef0f2;
    min-width: 0;
}
.myinv-page .myinv-invite-foot-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
}
.myinv-page .myinv-invite-foot-left .myinv-sent-at {
    margin-top: 0;
}
.myinv-page .myinv-invite-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.35rem, 1fr));
    gap: 0.5rem;
    flex: 0 1 auto;
    justify-content: end;
    width: auto;
    min-width: min(100%, 17.75rem);
    max-width: 100%;
    margin-left: 0 !important;
}
.myinv-page .myinv-invite-actions .btn {
    width: 100%;
    min-height: 2.2rem;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.myinv-page .myinv-invite-preview {
    font-size: 0.78rem;
    color: #868e96;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.35;
}
.myinv-page .myinv-sent-at {
    font-size: 0.8125rem;
    color: #6c757d;
}
.myinv-page .myinv-filter-empty {
    margin-top: 1rem;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    background: rgba(7, 192, 161, 0.04);
    border: 1px dashed rgba(7, 192, 161, 0.28);
    border-radius: 12px;
}

.myinv-page .myinv-mobile-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.myinv-page .myinv-mobile-filter-label {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

.myinv-page .myinv-mobile-filter-select {
    max-width: 260px;
    height: 2rem;
    min-height: 2rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.55rem;
    padding-right: 1.7rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    border-radius: 6px;
}

/* /myinvitations: фильтр по резюме/статусу (табличный) */
.myinv-page .myinv-filter-form .form-select {
    height: 2.2rem;
    min-height: 2.2rem; /* чтобы не было выше кнопок */
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    padding-left: 0.65rem;
    padding-right: 2rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    border-radius: 10px;
    box-sizing: border-box;
}
.myinv-page .myinv-filter-form .form-label {
    font-size: 0.875rem;
    color: #6c757d;
}
.myinv-page .myinv-filter-form .myinv-filter-reset-btn {
    height: 2.2rem;
    min-height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}
/* Мобильная вёрстка /myinvitations: по 2 элемента в ряд, выровненные блоки */
@media (max-width: 767.98px) {
    .myinv-page .resume-list-stats .resume-list-stats-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        align-items: stretch;
    }
    .myinv-page .resume-list-stats .resume-list-stats-row.resume-list-stats-status {
        margin-top: 0.5rem;
        padding-top: 0.65rem;
    }
    .myinv-page .resume-list-stats .resume-list-stat {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-height: 3.15rem;
        padding: 0.45rem 0.55rem;
        margin: 0;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #e8eaed;
        border-radius: 10px;
        box-sizing: border-box;
        font-size: 0.8125rem;
        line-height: 1.25;
    }
    .myinv-page .resume-list-stats .resume-list-stat .resume-list-stat-value {
        margin-right: 0;
    }
    .myinv-page .resume-list-stats .resume-list-stat-badge {
        width: 100%;
        min-height: 2.85rem;
        margin: 0;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
        flex-wrap: wrap;
    }
    .myinv-page .myinv-mobile-filter {
        margin-top: 0.75rem;
    }
    .myinv-page .myinv-mobile-filter-select {
        width: 100%;
        max-width: none;
        height: 2rem;
        min-height: 2rem;
    }
    .myinv-page .myinv-invite-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .myinv-page .myinv-invite-foot-left {
        flex: none;
    }
    .myinv-page .myinv-vacancy-stats .myinv-stats-funnel,
    .myinv-page .myinv-vacancy-stats .myinv-stats-view-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        align-items: stretch;
    }
    .myinv-page .myinv-vacancy-stats .myinv-stats-view-row {
        margin-top: 0.45rem;
        padding-top: 0.45rem;
    }
    .myinv-page .myinv-vacancy-stats .myinv-metric-badge,
    .myinv-page .myinv-vacancy-stats .myinv-view-stat {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        white-space: normal;
    }
    .myinv-page .myinv-invite-row .resume-list-card-actions,
    .myinv-page .myinv-invite-row .myinv-invite-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
        min-width: 0;
        max-width: none;
        justify-content: stretch;
    }
    .myinv-page .myinv-invite-row .resume-list-card-actions .btn,
    .myinv-page .myinv-invite-row .myinv-invite-actions .btn {
        width: 100%;
        min-height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        padding: 0.35rem 0.45rem;
        font-size: 0.78rem;
    }
}

/* Сводка внутри карточки вакансии на /myinvitations */
.myinv-page .myinv-vacancy-section .resume-list-card-inner {
    padding: 0;
}
.myinv-page .myinv-vacancy-stats {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e8eaed;
}
.myinv-page .myinv-global-stats-card .myinv-vacancy-stats {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.myinv-page .myinv-vacancy-stats > .resume-list-stats-inner {
    padding: 0;
}
.myinv-page .myinv-vacancy-section .resume-list-card-head {
    margin-bottom: 0.85rem;
    gap: 0.65rem;
}

/* ——— Приглашения соискателя (/invitations) ——— */
.recvinv-page .recvinv-field {
    margin-bottom: 0.5rem;
}
.recvinv-page .recvinv-field:last-child {
    margin-bottom: 0;
}
.recvinv-page .recvinv-field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #868e96;
    margin-bottom: 0.15rem;
}
.recvinv-page .recvinv-field-value {
    font-size: 0.9rem;
    color: var(--maintext);
    line-height: 1.35;
}
.recvinv-page .recvinv-field-value .myinv-invite-preview {
    margin-top: 0.15rem;
}

/* Верхняя строка: дата слева, статус и иконка справа (/invitations) */
.recvinv-page .myinv-invite-row {
    padding-right: 1.5rem;
    gap: 0;
}
.recvinv-page .recvinv-invite-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    width: 100%;
    margin-bottom: 0;
}
.recvinv-page .recvinv-invite-sent-at {
    font-size: 0.8125rem;
    color: #6c757d;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
}
.recvinv-page .recvinv-invite-sent-at .bi {
    opacity: 0.85;
}
.recvinv-page .recvinv-invite-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
    flex: 0 1 auto;
    max-width: min(100%, 19rem);
}
.recvinv-page .recvinv-invite-top-right .myinv-invite-open-corner {
    position: static;
    flex-shrink: 0;
}
.recvinv-page .recvinv-invite-status-corner {
    max-width: none;
    text-align: right;
}
.recvinv-page .recvinv-invite-top-right .myinv-row-status-main.myinv-metric-badge {
    font-size: 0.75rem;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    font-weight: 600;
    min-height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
}
.recvinv-page .recvinv-invite-foot {
    justify-content: flex-end;
}
/* Строка «Откликнуться / Отклонить» слева, «Чат с работодателем» справа — /invitation/{id} */
.invitation-detail-page.recvinv-page .recvinv-invite-foot.recvinv-invite-foot--detail-row {
    justify-content: space-between;
    align-items: center;
}
.invitation-detail-page.recvinv-page .recvinv-invite-foot.recvinv-invite-foot--detail-row .recvinv-invite-foot-primary {
    flex: 1 1 auto;
    min-width: 0;
}
.invitation-detail-page.recvinv-page .recvinv-invite-foot.recvinv-invite-foot--detail-row .recvinv-invite-foot-chat.myinv-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    grid-template-columns: none;
}
.invitation-detail-page.recvinv-page .recvinv-invite-foot.recvinv-invite-foot--detail-row .recvinv-invite-foot-chat .btn {
    width: auto;
}
.recvinv-page .recvinv-invite-top-right--detail {
    max-width: min(100%, 22rem);
}
.recvinv-page .recvinv-invite-top-right--detail .recvinv-invite-status-corner {
    max-width: 100%;
}
.invitation-detail-page.recvinv-page .recvinv-invite-detail-hero.myinv-invite-row {
    padding-right: 1.5rem;
    gap: 0.5rem;
}

/* ——— Карточка приглашения /invitation/{id} (как карточка в /myinvitations) ——— */
.invitation-detail-page .inv-detail-hero-card.myinv-invite-row {
    padding: 1.35rem 1.5rem;
    padding-right: 1.5rem;
    gap: 0.7rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.invitation-detail-page .inv-detail-hero-card {
    margin-bottom: 1.25rem;
}
.invitation-detail-page .inv-detail-hero-vacancy {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0.85rem;
    gap: 0.65rem;
}
.invitation-detail-page .inv-detail-vacancy-link {
    color: var(--blacky);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.35;
}
.invitation-detail-page .inv-detail-vacancy-link:hover {
    color: var(--blacky);
}
.invitation-detail-page .inv-detail-candidate-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--maintext);
    text-decoration: none;
}
.invitation-detail-page .inv-detail-candidate-name:hover {
    color: var(--greeny);
}
.invitation-detail-page .inv-detail-role-accent {
    font-weight: 600;
    color: #495057 !important;
    margin-top: 0.15rem;
}
.invitation-detail-page .inv-detail-status-foot {
    margin-top: 0.45rem;
    padding-top: 0.75rem;
}
.invitation-detail-page .inv-detail-status-main.myinv-metric-badge {
    /* Подгоняем размеры под бейдж статуса просмотра (.myinv-view-flag),
       не трогая цвета, задаваемые .myinv-metric-badge-* */
    font-size: 0.75rem;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    font-weight: 600;
    /* Поднимаем минимальную высоту до уровня бейджа со значком (eye/eye-slash),
       чтобы оба статуса визуально совпадали по высоте. */
    min-height: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
}

.invitation-detail-page .myinv-view-flag {
    /* Делаем статусы одинаковыми по высоте даже с учётом размера иконки внутри. */
    font-size: 0.75rem;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    min-height: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.invitation-detail-page .inv-detail-status-main.myinv-metric-badge,
.invitation-detail-page .myinv-view-flag {
    box-sizing: border-box;
}
.invitation-detail-page .inv-detail-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.invitation-detail-page .inv-detail-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}
.invitation-detail-page .inv-detail-actions-row-3 {
    grid-template-columns: none;
}
.invitation-detail-page .inv-detail-actions-row-2 {
    grid-template-columns: none;
}
.invitation-detail-page .inv-detail-actions-row .btn {
    width: auto;
    min-width: 0;
    min-height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.invitation-detail-page .inv-detail-actions-placeholder {
    display: none;
}
.invitation-detail-page .resume-list-card.mainpage_block {
    border-radius: 16px;
}
.invitation-detail-page .inv-detail-section.mainpage_block {
    margin-bottom: 1.25rem;
}
.invitation-detail-page .inv-detail-section-inner {
    padding: 1.35rem 1.5rem;
}
.invitation-detail-page .inv-detail-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blacky);
    margin: 0 0 0.85rem 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #eef0f2;
}
.invitation-detail-page .inv-detail-section-body {
    font-size: 0.9375rem;
}
.invitation-detail-page .inv-detail-prose {
    line-height: 1.5;
    color: #343a40;
}
.invitation-detail-page .inv-detail-prose-muted {
    padding: 0.65rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.invitation-detail-page .inv-detail-prose-info {
    padding: 0.65rem 0.75rem;
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 8px;
}
.invitation-detail-page .inv-detail-meta-line {
    font-size: 0.8125rem;
    color: #6c757d;
}
.invitation-detail-page .inv-detail-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.invitation-detail-page .inv-detail-message-edit-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--greeny);
    text-decoration: none;
    white-space: nowrap;
}
.invitation-detail-page .inv-detail-message-edit-link:hover {
    color: var(--greeny);
    text-decoration: underline;
}
.invitation-detail-page .inv-detail-sender-own-msg {
    margin-top: 0;
}
.invitation-detail-page .recvinv-field-value.inv-detail-sender-own-msg .myinv-invite-preview {
    margin-top: 0;
}
.invitation-detail-page .inv-detail-sender-msg-inline {
    display: inline-block;
    max-width: 100%;
    vertical-align: baseline;
}
.invitation-detail-page .inv-detail-sender-msg-editing {
    display: block;
    width: 100%;
    max-width: 100%;
}
.invitation-detail-page .inv-detail-sender-own-msg textarea.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Вакансия: табы — белая «плашка», slate-нейтрали, активный = светлый мятный + зелёный текст */
/* min-width: 0 — иначе flex-ребёнок раздувает колонку и появляется горизонтальный скролл страницы */
.col-12:has(.vacancy-tabs-nav) {
    min-width: 0;
}

.vacancy-tabs-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 1.25rem 0 1.1rem;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(30, 41, 59, 0.07), 0 1px 2px rgba(30, 41, 59, 0.04);
    overflow: hidden;
    flex-wrap: nowrap;
}

.vacancy-tabs-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Bootstrap: li.nav-item */
.vacancy-tabs-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

/* Прямые ссылки в nav (без ul) */
.vacancy-tabs-nav > .vacancy-tab-link {
    flex: 1 1 0;
    min-width: 0;
}

.vacancy-tab-link {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.vacancy-tab-link:hover:not(.active) {
    color: #334155;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.vacancy-tab-link:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.5);
    outline-offset: 2px;
    z-index: 2;
}

/* Активный — палитра портала: --greeny, градиент как у фона body / карточек */
.vacancy-tab-link.active {
    z-index: 1;
    color: #055846;
    background: linear-gradient(180deg, rgba(101, 205, 154, 0.14) 0%, rgba(51, 154, 153, 0.12) 100%);
    border-color: rgba(7, 192, 161, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Связь с контентом под переключателем (карточка / tab-content) */
.vacancy-tab-content {
    margin-top: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.vacancy-tabs-card .vacancy-tabs-nav {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.vacancy-tabs-card .vacancy-tab-content {
    border-top-color: #e2e8f0;
    padding-top: 1.1rem;
    margin-top: 0;
}

.vacancy-tabs-nav + .dash-section-title {
    margin-top: 0.45rem;
}

@media (max-width: 767.98px) {
    .vacancy-tabs-nav {
        padding: 5px;
        margin: 1rem 0 0.85rem;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Равная ширина + min-width: 0 — вкладки остаются в пределах экрана, длинный текст переносится */
    .vacancy-tabs-nav > .vacancy-tab-link {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        width: auto;
    }

    .vacancy-tabs-nav .nav-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .vacancy-tabs-nav .nav-item .vacancy-tab-link {
        min-width: 0;
        max-width: 100%;
    }

    .vacancy-tab-link {
        min-height: 40px;
        font-size: 0.625rem;
        letter-spacing: 0.01em;
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
        text-align: center;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-hyphens: none;
        hyphens: none;
        word-break: normal;
    }

    .vacancy-tab-link:focus-visible {
        outline-offset: 1px;
    }
}

/* Воронка откликов: «Все отклики» — компенсация симметричного padding у .candidates-funnel-row-body */
.candidates-funnel-row.candidates-funnel-row--all {
    margin-left: -0.35rem;
}

/* Список откликов: шаг между карточками как у .myinv-invite-list (gap: 1rem) */
.candidates-page #candidates-container,
.vacancy-replies-page #candidates-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.candidates-page #candidates-container .candidate-card,
.vacancy-replies-page #candidates-container .candidate-card {
    margin-bottom: 0;
}

/* Страница откликов по конкретной вакансии (/vacancy/{id}/replies) */
.vacancy-replies-page .candidates-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.vacancy-replies-page .candidates-funnel {
    --funnel-track: 18px;
    --funnel-line-w: 2px;
    --funnel-line-left: calc((var(--funnel-track) - var(--funnel-line-w)) / 2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
}

.vacancy-replies-page .candidates-funnel::before {
    content: '';
    position: absolute;
    left: var(--funnel-line-left);
    top: 0;
    bottom: 0;
    width: var(--funnel-line-w);
    background: #c5cdd6;
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

.vacancy-replies-page .candidates-funnel-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.28rem 0.35rem 0.28rem 0;
    border-radius: 8px;
    color: #4f5861;
    text-decoration: none;
}

.vacancy-replies-page .candidates-funnel-dot-cell {
    position: relative;
    flex: 0 0 var(--funnel-track);
    width: var(--funnel-track);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 2rem;
}

.vacancy-replies-page .candidates-funnel-dot-cell--blank {
    min-height: 1.75rem;
}

.vacancy-replies-page .candidates-funnel-dot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b8c0ca;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #c5ccd4;
    box-sizing: border-box;
}

.vacancy-replies-page .candidates-funnel-row-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vacancy-replies-page .candidates-funnel-row:hover {
    color: #29323b;
}

.vacancy-replies-page .candidates-funnel-row:hover .candidates-funnel-row-body {
    background: rgba(0, 0, 0, 0.04);
}

.vacancy-replies-page .candidates-funnel-row.active {
    color: #0f3f3a;
    font-weight: 700;
}

.vacancy-replies-page .candidates-funnel-row.active .candidates-funnel-row-body {
    background: rgba(7, 192, 161, 0.1);
}

.vacancy-replies-page .candidates-funnel-row.active .candidates-funnel-dot {
    background: var(--greeny);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(7, 192, 161, 0.4);
}

.vacancy-replies-page .candidates-stage-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.vacancy-replies-page .status-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    line-height: 1;
}

.vacancy-replies-page .candidate-card {
    margin-bottom: 0;
    border: 1px solid #e2e7ec;
    border-radius: 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vacancy-replies-page .candidate-card:hover {
    border-color: #cfd6dd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vacancy-replies-page .candidate-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.vacancy-replies-page .candidate-primary {
    min-width: 0;
}

.vacancy-replies-page .candidate-primary .dash-list-item {
    border: 0;
    padding: 0;
}

/* Как на /candidates: мета из .dash-list-item .dash-list-meta (0.75rem, #adb5bd) */
.vacancy-replies-page .candidate-primary .dash-list-meta.candidate-meta-line {
    margin-top: 0.3rem;
}

.vacancy-replies-page .candidate-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.vacancy-replies-page .candidate-status-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.vacancy-replies-page .candidate-letter-label {
    margin-top: 0.6rem;
}

.vacancy-replies-page .candidate-letter {
    margin-top: 0.25rem;
}

.vacancy-replies-page .candidate-letter summary {
    cursor: pointer;
    list-style: none;
    color: #5d6873;
}

.vacancy-replies-page .candidate-letter summary::-webkit-details-marker {
    display: none;
}

.vacancy-replies-page .candidate-letter summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.35rem;
    color: #7b8590;
    transition: transform 0.15s ease;
}

.vacancy-replies-page .candidate-letter[open] summary::before {
    transform: rotate(90deg);
}

.vacancy-replies-page .candidate-actions {
    margin-top: 0.55rem;
    text-align: left;
}

.vacancy-replies-page .candidate-reply-link {
    color: #4d5965;
    font-size: 0.875rem;
    text-decoration: underline;
    cursor: pointer;
}

.vacancy-replies-page .candidate-reply-link:hover {
    color: var(--greeny);
}

.vacancy-replies-page .message-form {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #e5e7eb;
    display: none;
}

.vacancy-replies-page .message-form.show {
    display: block;
}

.vacancy-replies-page .message-sent-info {
    margin-top: 0.6rem;
}

/* Ссылка на тред после ответа кандидату по отклику (в зелёном alert ссылка должна читаться как ссылка) */
.alert-success a.application-message-messenger-link {
    color: #047a6b;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.alert-success a.application-message-messenger-link:hover {
    color: #035e53;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .vacancy-replies-page .candidate-card-head {
        flex-direction: column;
        align-items: stretch;
    }
    .vacancy-replies-page .candidate-right {
        align-items: flex-start;
    }
}
.invitation-detail-page .inv-detail-message-edit-link--inline {
    margin-left: 0.35rem;
    vertical-align: baseline;
}
.invitation-detail-page .inv-detail-hero-card.recvinv-invite-detail-hero .recvinv-invite-top-right--detail {
    max-width: min(100%, 28rem);
}
@media (max-width: 767.98px) {
    .invitation-detail-page .inv-detail-actions-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- /responses: объединённая лента откликов и приглашений (специалист) --- */
.responses-page .responses-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
.responses-page .responses-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.responses-page .responses-summary-pill--out {
    background: rgba(13, 110, 253, 0.1);
    color: #0a58ca;
    border: 1px solid rgba(13, 110, 253, 0.22);
}
.responses-page .responses-summary-pill--in {
    background: rgba(7, 192, 161, 0.12);
    color: #047a6b;
    border: 1px solid rgba(7, 192, 161, 0.28);
}
.responses-page .responses-kind-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -0.25rem 0 0.65rem;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.responses-page .responses-kind-banner--out {
    background: rgba(13, 110, 253, 0.12);
    color: #084298;
}
.responses-page .responses-kind-banner--in {
    background: rgba(7, 192, 161, 0.14);
    color: #035e53;
}
.responses-page .responses-kind-banner__icon {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.95;
}
.responses-page .responses-feed-list {
    margin-top: 1rem;
}

/* ===========================
   Связи и совместные проекты
   =========================== */

.dash-connections-section {
    margin-top: 0.75rem;
}

.connections-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.connections-header-left {
    min-width: 0;
}

.connections-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.connections-subtitle--dashboard {
    max-width: 32rem;
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.connections-list-accordion {
    margin-top: 0.75rem;
}

.connections-list-accordion-toggle {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e7edf3;
    border-radius: 0;
    background: transparent;
    color: var(--maintext);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.1rem;
}

.connections-list-accordion-toggle i {
    transition: transform 0.2s ease;
}

.connections-list-accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.connections-list-accordion-body {
    margin-top: 0.7rem;
}

.connections-list-collapsible {
    position: relative;
}

.connections-list-collapsible.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95) 65%, #fff 100%);
}

.connections-list-show-more-btn {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    background: transparent;
    color: var(--greeny);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 0.6rem;
}

.connections-list-head-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.1rem 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b96a3;
}
.connections-list-head-meta {
    margin-left: auto;
    text-align: right;
}

.connections-dashboard-meaning {
    margin-top: 0;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    background: rgba(7, 192, 161, 0.06);
    border: 1px solid rgba(7, 192, 161, 0.18);
}
.connections-dashboard-meaning-title {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blacky);
    margin-bottom: 0.42rem;
}
.connections-dashboard-meaning-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #495057;
}
.connections-dashboard-meaning-list li {
    margin-bottom: 0.25rem;
}
.connections-dashboard-meaning-list li:last-child {
    margin-bottom: 0;
}

.connections-conn-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.connections-conn-item:hover {
    border-color: rgba(7,192,161,0.24);
    background: rgba(7,192,161,0.03);
}
.connections-conn-item.is-selected {
    border-color: rgba(7,192,161,0.28);
    background: rgba(7,192,161,0.04);
}
.connections-conn-item.is-selected::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: var(--greeny);
}

.connections-conn-item--row {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.42rem 0.55rem;
    border-radius: 10px;
    font-size: 0.84rem;
}

.connections-conn-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
    line-height: 1.15;
}
.connections-conn-user {
    min-width: 0;
    flex: 1 1 auto;
}
.connections-conn-user .user-render-wrapper {
    width: 100%;
    min-width: 0;
    gap: 0.45rem !important;
}
.connections-conn-user .project-invite-avatar {
    width: 22px !important;
    height: 22px !important;
}
.connections-conn-user .user-render-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 600;
}
.connections-conn-name-text {
    font-weight: 600;
    color: var(--maintext);
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.connections-conn-count-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(47, 158, 68, 0.35);
    background: rgba(47, 158, 68, 0.1);
    color: #2f9e44;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}
.connections-conn-count-badge .bi {
    font-size: 0.78rem;
    position: static !important;
    transform: none !important;
}
.connections-conn-strength-pill {
    margin-top: 0.18rem;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--greeny);
}
.connections-conn-project-status {
    margin-top: 0.16rem;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.16;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.connections-conn-project-status .bi {
    font-size: 0.82rem;
    color: #868e96;
    position: static !important;
    transform: none !important;
}
.connections-conn-item[data-strength-level="3"] .connections-conn-project-status .bi { color: #2f9e44; }
.connections-conn-item[data-strength-level="2"] .connections-conn-project-status .bi { color: #e0a800; }
.connections-conn-item[data-strength-level="1"] .connections-conn-project-status .bi { color: #adb5bd; }

.connections-conn-item--row:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.45);
    outline-offset: 1px;
}

.connections-avatar-link {
    display: inline-flex;
    text-decoration: none;
}

.connections-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
}
.connections-avatar--fallback {
    background: linear-gradient(135deg, rgba(7,192,161,0.12) 0%, rgba(7,192,161,0.2) 100%);
    border-color: rgba(7,192,161,0.35);
}

.connections-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connections-avatar--2 {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.connections-avatar--3 {
    box-shadow: 0 0 0 3px rgba(7, 192, 161, 0.18);
}

.connections-conn-main {
    flex: 1 1 auto;
    min-width: 0;
}

.connections-conn-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.connections-conn-name {
    font-weight: 700;
    color: var(--maintext);
    text-decoration: none;
}

.connections-conn-name:hover {
    color: var(--greeny);
    text-decoration: underline;
}

.connections-conn-subtitle {
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 0.25rem;
}

.connections-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.connections-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(7, 192, 161, 0.18);
    background: rgba(7, 192, 161, 0.08);
    color: #035e53;
}

.connections-chip--real {
    border: 1px solid rgba(7, 192, 161, 0.18);
    background: rgba(7, 192, 161, 0.08);
    color: #035e53;
}

.connections-chip--placeholder {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #6c757d;
    font-weight: 600;
    opacity: 0.95;
}

.connections-chip--hide-mobile {
    display: inline-flex;
}

@media (max-width: 576px) {
    .connections-chip--hide-mobile {
        display: none;
    }
}

.connections-projects-preview {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #4b5563;
}

.connections-strength-indicator {
    width: 64px;
    height: 8px;
    border-radius: 999px;
    background: #edf0f3;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.connections-strength-indicator > span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 999px;
}

.connections-strength-1 > span {
    width: 38%;
    background: #adb5bd;
}

.connections-strength-2 > span {
    width: 68%;
    background: #f59e0b;
}

.connections-strength-3 > span {
    width: 100%;
    background: var(--greeny);
}

.connections-overflow {
    margin-top: 0.25rem;
}

.connections-graph-expand-btn {
    white-space: nowrap;
}

/* Пустое состояние */
.dash-connections-empty {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(7, 192, 161, 0.12) 100%);
    border: 1px dashed rgba(7, 192, 161, 0.35);
    border-radius: 16px;
    padding: 1.25rem 1.1rem;
    text-align: center;
}

.dash-connections-empty-title {
    font-weight: 700;
    color: var(--blacky);
}

.dash-connections-empty-actions {
    margin-top: 1rem;
}

/* Dashboard-версия */
.dash-connections-dashboard .connections-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.connections-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.connections-dashboard-stat {
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 14px;
    padding: 0.8rem 0.85rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.connections-dashboard-stat:hover {
    background: rgba(7, 192, 161, 0.06);
    border-color: rgba(7, 192, 161, 0.2);
}
.connections-dashboard-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}
.connections-dashboard-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(7, 192, 161, 0.12);
    color: var(--greeny);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.connections-dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blacky);
    line-height: 1.1;
}

.connections-dashboard-stat-label {
    margin-top: 0.42rem;
    padding-top: 0.42rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.3;
}

.connections-list--dashboard .connections-conn-item {
    padding: 0.65rem 0.8rem;
}

.connections-graph-inline {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 0;
}

.connections-graph-toggle-btn {
    font-weight: 700;
    display: none;
}

.connections-graph-inline-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.85rem;
}

.connections-graph-inline-body--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 760px);
    gap: 0.85rem;
}
.connections-graph-inline-body--split > * {
    min-width: 0;
}

.connections-graph-canvas {
    min-width: 0;
    max-width: 760px;
    width: 100%;
}

@media (max-width: 1999px) {
    .connections-graph-inline-body--split {
        grid-template-columns: 1fr;
    }
    .connections-graph-canvas {
        order: 1;
        max-width: 100%;
    }
    .connections-graph-details {
        order: 2;
        min-height: auto;
        max-width: 100%;
    }
}

.connections-graph-canvas-inner {
    background-color: #f7fbfa;
    background-image:
        linear-gradient(rgba(7, 192, 161, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 192, 161, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(7, 192, 161, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 192, 161, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(7, 192, 161, 0.02) 100%);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    border: 1px solid rgba(7, 192, 161, 0.12);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.connections-graph-details {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 0.9rem 0.9rem;
    min-height: 320px;
    max-width: none;
    width: 100%;
}

.connections-graph-inline .connections-graph-details {
    max-width: none;
}

@media (max-width: 991px) {
    .connections-graph-inline .connections-graph-details {
        min-height: auto !important;
        height: auto !important;
        max-width: none !important;
        width: 100%;
    }
    .connections-graph-canvas {
        width: 100%;
        max-width: 100%;
    }
    .connections-graph-canvas-inner {
        width: 100%;
        max-width: 100%;
    }
}

.connections-graph-details-empty {
    color: #6c757d;
}

.connections-graph-details-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.connections-graph-details-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.06);
}
.connections-graph-details-avatar {
    display: inline-flex;
    text-decoration: none;
}
.connections-graph-details-avatar--fallback img {
    background: linear-gradient(135deg, rgba(7,192,161,0.12) 0%, rgba(7,192,161,0.2) 100%);
    border-color: rgba(7,192,161,0.35);
}

.connections-graph-details-name {
    font-weight: 900;
    color: var(--blacky);
    line-height: 1.2;
    text-decoration: none;
}
.connections-graph-details-name:hover {
    color: var(--greeny);
    text-decoration: underline;
}

.connections-graph-details-subtitle {
    color: #6c757d;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.25;
}

.connections-graph-details-strength {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: #6c757d;
    font-weight: 700;
}
.connections-graph-details-strength .bi {
    font-size: 0.9rem;
    position: static !important;
    transform: none !important;
}
.connections-graph-details-strength.is-strong .bi { color: #2f9e44; }
.connections-graph-details-strength.is-medium .bi { color: #e0a800; }
.connections-graph-details-strength.is-weak .bi { color: #adb5bd; }

.connections-graph-strength-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.connections-graph-metric {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 700;
}

.connections-graph-projects-preview {
    color: #6c757d;
}
.connections-graph-projects-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #495057;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}
.connections-graph-projects-list {
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
}
.connections-graph-projects-list li {
    margin: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
    font-size: 0.84rem;
    line-height: 1.45;
}
.connections-graph-projects-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--greeny);
    box-shadow: 0 0 0 2px rgba(7,192,161,0.18);
}
.connections-graph-project-link {
    color: var(--maintext);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 991px) {
    .connections-graph-project-link {
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }
}
@media (max-width: 1199px) {
    .connections-dashboard-stats {
        grid-template-columns: 1fr;
    }
}
.connections-graph-project-link:hover {
    color: var(--greeny);
    text-decoration: underline;
}

.connections-graph-project-link--locked {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.connections-graph-project-link--locked:hover {
    color: var(--greeny);
    text-decoration: underline;
}

button.connections-graph-details-avatar.connections-graph-profile-link--locked,
button.connections-graph-details-name.connections-graph-profile-link--locked {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

button.connections-graph-details-name.connections-graph-profile-link--locked {
    display: block;
    width: 100%;
}

button.connections-graph-details-avatar.connections-graph-profile-link--locked:hover,
button.connections-graph-details-name.connections-graph-profile-link--locked:hover {
    color: var(--greeny);
}

button.connections-graph-details-name.connections-graph-profile-link--locked:hover {
    text-decoration: underline;
}

.connections-graph-project-popover {
    position: absolute;
    z-index: 6;
    max-width: min(280px, calc(100% - 1rem));
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    background: #fff;
    border: 1px solid rgba(22, 157, 142, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

.connections-graph-project-popover[hidden] {
    display: none !important;
}

.connections-graph-svg {
    display: block;
    width: 100%;
}
.connections-node-wave {
    opacity: 0;
    transform-origin: center center;
    transform-box: fill-box;
    stroke-width: 2.5;
    fill-opacity: 0;
    stroke-opacity: 0.45;
}
.connections-graph-node.selected .connections-node-wave {
    opacity: 0.8;
    animation: connections-node-wave 2.1s linear infinite;
}
.connections-graph-node.selected .connections-node-wave-2 {
    animation-delay: 1.05s;
}
@keyframes connections-node-wave {
    0% { transform: scale(1); opacity: 0.82; fill-opacity: 0.52; stroke-opacity: 0.26; stroke-width: 2.3; }
    100% { transform: scale(1.75); opacity: 0; fill-opacity: 0.2; stroke-opacity: 0.1; stroke-width: 1; }
}
.connections-node-burst {
    opacity: 0;
    fill-opacity: 0;
    stroke-opacity: 0;
    transform-origin: center center;
    transform-box: fill-box;
    pointer-events: none;
}
.connections-graph-node.burst-active .connections-node-burst {
    animation: connections-node-burst 0.7s ease-out 1;
}
@keyframes connections-node-burst {
    0% { transform: scale(1); opacity: 0.95; fill-opacity: 0.72; stroke-opacity: 0.45; stroke-width: 3.4; }
    100% { transform: scale(2.35); opacity: 0; fill-opacity: 0.12; stroke-opacity: 0; stroke-width: 1.2; }
}

/* Промо «месяц премиум за шаги» — в фирменных цветах портала, рекламный акцент */
@keyframes trial-month-promo-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.75; }
}

.trial-month-conditions-wrap {
    position: relative;
}

.trial-month-promo {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: solid 2px transparent;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6fffc 55%, #eefbf6 100%) padding-box,
        linear-gradient(135deg, var(--greeny) 0%, #00796b 52%, #005a4a 100%) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 14px 36px -10px rgba(7, 192, 161, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.trial-month-promo--accordion {
    display: block;
}

.trial-month-promo__glow {
    pointer-events: none;
    position: absolute;
    inset: -35% -15% auto -15%;
    height: 65%;
    background:
        radial-gradient(ellipse 90% 55% at 18% 0%, rgba(7, 192, 161, 0.22), transparent 52%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(0, 90, 74, 0.12), transparent 48%);
    animation: trial-month-promo-pulse 4.5s ease-in-out infinite;
}

.trial-month-promo__summary {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1.1rem 0.95rem 1.15rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    font-family: inherit;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 254, 251, 0.99) 100%);
    border-bottom: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.trial-month-promo__summary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f3fdf9 100%);
}

.trial-month-promo__summary:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.45);
    outline-offset: 2px;
}

.trial-month-promo--accordion.is-open .trial-month-promo__summary {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

.trial-month-promo__summary-text {
    display: flex;
    align-items: center;
    gap: 0.55rem 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
}

.trial-month-promo__summary-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 11px;
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.92);
    background: rgba(7, 192, 161, 0.14);
}

.trial-month-promo__summary:hover .trial-month-promo__summary-icon {
    background: rgba(7, 192, 161, 0.2);
    color: #0f766e;
}

.trial-month-promo__summary-title {
    margin: 0;
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.trial-month-promo__summary-chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    color: rgba(15, 118, 110, 0.85);
    background: rgba(7, 192, 161, 0.1);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.22s ease, background 0.18s ease, color 0.18s ease;
}

.trial-month-promo__summary:hover .trial-month-promo__summary-chevron {
    background: rgba(7, 192, 161, 0.16);
    color: #0d9488;
}

.trial-month-promo--accordion.is-open .trial-month-promo__summary-chevron {
    transform: rotate(180deg);
}

/* Плавное раскрытие панели (0fr → 1fr) */
.trial-month-promo__expand-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-month-promo--accordion.is-open .trial-month-promo__expand-shell {
    grid-template-rows: 1fr;
}

.trial-month-promo__expand {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.3s ease,
        transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-month-promo--accordion.is-open .trial-month-promo__expand {
    opacity: 1;
    transform: translateY(0);
}

.trial-month-promo__lead {
    margin: 0;
    padding: 0.85rem 1.15rem 0.5rem;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #334155;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.trial-month-promo__list {
    position: relative;
    padding: 0.35rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.trial-month-promo__row {
    font-size: 1.05rem;
    line-height: 1.45;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
}

.trial-month-promo__label {
    font-weight: 400;
    color: #334155;
    min-width: 0;
}

/* Галочки: серая — не готово; зелёная — готово (тонкие линии, крупнее) */
.trial-month-promo__tick {
    width: 1.95rem;
    height: 1.95rem;
    flex-shrink: 0;
    position: relative;
    align-self: flex-start;
    margin-top: 0.12rem;
}

.trial-month-promo__tick::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.52rem;
    height: 0.92rem;
    margin-top: -0.08rem;
    margin-left: 0.02rem;
    border-style: solid;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 3px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    box-sizing: border-box;
}

.trial-month-promo__tick--todo::after {
    border-color: rgba(100, 116, 139, 0.55);
    opacity: 0.9;
}

.trial-month-promo__tick--done::after {
    border-color: #0d9488;
    border-width: 0 2px 2px 0;
}

.trial-month-promo__go {
    color: var(--greeny);
    font-size: 1.45rem;
    line-height: 1;
    padding: 0.1rem;
    border-radius: 50%;
    transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.trial-month-promo__go:hover {
    color: #00796b;
    background: rgba(7, 192, 161, 0.14);
    transform: scale(1.08);
}

/* Модалка «поздравление» за условия — в стиле портала */
.trial-month-splash .trial-month-splash__dialog-wrap {
    max-width: 420px;
}

.trial-month-splash__dialog {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    font-family: 'PT Sans', 'Arial', Tahoma, Geneva, sans-serif;
    border: solid 2px transparent;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fffc 55%, #f0faf7 100%) padding-box,
        linear-gradient(135deg, var(--greeny) 0%, #00796b 55%, #005a4a 100%) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 22px 50px -12px rgba(0, 90, 74, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.trial-month-splash__accent {
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(7, 192, 161, 0.55), var(--greeny), rgba(7, 192, 161, 0.55), transparent);
}

.trial-month-splash__body {
    padding: 1.75rem 1.5rem 1.65rem;
    color: var(--maintext);
}

.trial-month-splash__icon {
    position: relative;
    width: 5.25rem;
    height: 5.25rem;
    margin: 0 auto 1.15rem;
}

.trial-month-splash__icon-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 192, 161, 0.45) 0%, transparent 68%);
    animation: trial-month-splash-glow 2.8s ease-in-out infinite;
}

@keyframes trial-month-splash-glow {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

.trial-month-splash__icon-disk {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #ecfdf8 40%, #d1fae5 100%);
    box-shadow:
        0 4px 14px rgba(7, 192, 161, 0.35),
        0 0 0 3px rgba(7, 192, 161, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.trial-month-splash__icon-main {
    font-size: 2.45rem;
    line-height: 1;
    color: #0d9488;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 3px 12px rgba(7, 192, 161, 0.45);
    filter: drop-shadow(0 2px 2px rgba(0, 90, 74, 0.18));
}

.trial-month-splash__title {
    margin: 0 0 0.65rem;
    font-family: 'PT Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--blacky);
    line-height: 1.2;
}

.trial-month-splash__lead {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #334155;
    margin: 0;
}

.trial-month-splash__lead strong {
    color: #0f766e;
    font-weight: 700;
}

.trial-month-splash__meta {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.trial-month-splash__btn-primary {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.5rem 1.15rem;
}

.trial-month-splash__btn-close {
    font-family: 'PT Sans', sans-serif;
    border-radius: 12px;
    padding: 0.5rem 1rem;
}

/* --- Страница импорта резюме (/resume/import) в стиле дашборда --- */
.resume-import-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.resume-import-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.12) 0%, rgba(51, 154, 153, 0.08) 100%);
    border: 1px solid rgba(7, 192, 161, 0.22);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(7, 192, 161, 0.08);
}

.resume-import-hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--greeny) 0%, #0d9488 100%);
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 4px 14px rgba(7, 192, 161, 0.35);
}

.resume-import-hero-text {
    min-width: 0;
}

.resume-import-hero-title {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    display: block;
}

.resume-import-hero-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #475569;
}

.resume-import-step-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.resume-import-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border-radius: 8px;
    background: rgba(7, 192, 161, 0.15);
    color: #0f766e;
    font-weight: 700;
    font-size: 0.8125rem;
}

.resume-import-card.dash-card {
    padding: 1.75rem 1.75rem 1.5rem;
}

.resume-import-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0.4rem;
    gap: 0.5rem;
    background: linear-gradient(180deg, #eef1f4 0%, #e4e8ec 100%);
    border-radius: 14px;
    border: 1px solid #d8dee6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.resume-import-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.resume-import-tabs .nav-link {
    border-radius: 11px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.65rem 0.5rem;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.resume-import-tabs .nav-link:hover:not(.active) {
    background: #fff;
    border-color: #c5cdd8;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.resume-import-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(7, 192, 161, 0.55);
    outline-offset: 2px;
}

.resume-import-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.28) 0%, rgba(51, 154, 153, 0.18) 100%);
    color: #0d5c52;
    border-color: rgba(7, 192, 161, 0.5);
    box-shadow: 0 2px 10px rgba(7, 192, 161, 0.18);
}

.resume-import-tab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
    min-height: 4.25rem;
}

.resume-import-tab-icon {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.92;
}

.resume-import-tabs .nav-link.active .resume-import-tab-icon {
    color: #0f766e;
}

.resume-import-tab-label {
    line-height: 1.15;
}

.resume-import-tab-hint {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    max-width: 100%;
    padding: 0 0.15rem;
}

.resume-import-tabs .nav-link.active .resume-import-tab-hint {
    color: #0f766e;
}

.resume-import-hh-logo {
    display: block;
    width: 2.5rem;
    height: 1.25rem;
    line-height: 0;
}

.resume-import-hh-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.resume-import-tab-panes {
    min-height: 0;
}

.resume-import-tab-panes > .tab-pane:not(.active) {
    display: none !important;
}

#pane-file .resume-import-file-name {
    margin-bottom: 0.35rem;
}

#pane-file .resume-import-form-text {
    margin-top: 0;
    margin-bottom: 0;
}

.resume-import-control,
.resume-import-textarea {
    border-radius: 12px;
    border-color: #ced4da;
}

/* Кнопка «Выберите файл»: высота как у .form-control (44px), псевдо-кнопка на всю высоту поля */
input[type="file"].resume-import-file-input.resume-import-control {
    height: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 44px;
    overflow: hidden;
    box-sizing: border-box;
}

input[type="file"].resume-import-file-input.resume-import-control::file-selector-button {
    margin: 0;
    margin-inline-end: 0.875rem;
    min-height: 44px;
    height: 100%;
    padding: 0 1rem;
    border: 0;
    border-right: 1px solid #ced4da;
    border-radius: 11px 0 0 11px;
    background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

input[type="file"].resume-import-file-input.resume-import-control:hover::file-selector-button {
    background: linear-gradient(180deg, #e9ecef 0%, #dee2e6 100%);
    color: #0f172a;
}

input[type="file"].resume-import-file-input.resume-import-control::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    margin-inline-end: 0.875rem;
    min-height: 44px;
    height: 100%;
    padding: 0 1rem;
    border: 0;
    border-right: 1px solid #ced4da;
    border-radius: 11px 0 0 11px;
    background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-sizing: border-box;
}

input[type="file"].resume-import-file-input.resume-import-control:hover::-webkit-file-upload-button {
    background: linear-gradient(180deg, #e9ecef 0%, #dee2e6 100%);
    color: #0f172a;
}

/* Перебиваем глобальное .form-control { height: 44px } — для резюме нужна высота от 400px */
textarea.form-control.resume-import-textarea {
    height: auto;
    min-height: 400px;
    max-height: 70vh;
    resize: vertical;
    background: #fafbfc;
    font-size: 0.875rem;
    line-height: 1.45;
}

.resume-import-textarea:focus {
    background: #fff;
}

.resume-import-form-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.resume-import-note.mainpage_block {
    padding: 10px 14px;
    border-radius: 8px;
}

.resume-import-alert {
    border-radius: 12px;
}

.resume-import-loading {
    display: none;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--greeny) 0%, #0d9488 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(7, 192, 161, 0.25);
}

.resume-import-loading-spin {
    border-color: rgba(255, 255, 255, 0.35);
    border-right-color: #fff;
}

.resume-import-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(7, 192, 161, 0.12);
}

.resume-import-actions-primary,
.resume-import-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.resume-import-actions-secondary {
    margin-left: auto;
}

.resume-import-actions-secondary .btn {
    font-weight: 400;
}

#btnImport.resume-import-btn-idle {
    background: #eef2f1;
    border: 1px solid #c8d4d0;
    color: #64748b;
    font-weight: 500;
    box-shadow: none;
    opacity: 1;
}

#btnImport.resume-import-btn-idle:hover,
#btnImport.resume-import-btn-idle:focus {
    background: #e4ebe9;
    border-color: #b8c9c3;
    color: #475569;
}

/* Готовое состояние — цвета как .hg-cta-fill, размер как у неготовой кнопки */
#btnImport.resume-import-btn-ready,
#btnImport.hg-cta-fill {
    background: #169d8e;
    border: 1px solid #169d8e;
    color: #fff !important;
    font-weight: 600;
    box-shadow: none;
    opacity: 1;
}

.resume-import-actions-primary #btnImport {
    height: 36px;
    min-height: 36px;
    padding: 0 1rem;
    font-size: 14px;
    line-height: 1.2;
}

#btnImport.resume-import-btn-ready:hover,
#btnImport.hg-cta-fill:hover {
    background: #148a7d;
    border-color: #148a7d;
    color: #fff !important;
}

#btnImport.resume-import-btn-ready:focus-visible,
#btnImport.hg-cta-fill:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.35);
}

.resume-import-pre {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid #e8eaed;
    font-size: 0.8125rem;
}

.resume-import-details summary {
    cursor: pointer;
}

/* --- Страница добавления резюме (/resume/add): hero как на импорте --- */
.resume-add-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.resume-add-hero {
    margin-bottom: 1.25rem;
}

.resume-add-page .resume-import-embed {
    margin-bottom: 0;
}

.resume-add-manual-card {
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
}


/* Страница добавления проекта (/project/add): hero как на /resume/add */
.project-add-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.project-add-hero {
    margin-bottom: 1.25rem;
}

/* Подсказка про импорт на /resume/add — жёлтый информационный блок без заголовка и иконки */
.resume-add-import-callout {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(253, 224, 71, 0.14) 55%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(217, 119, 6, 0.38);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(245, 158, 11, 0.12);
}

.resume-add-import-callout-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #78350f;
}

.resume-add-import-callout-text a {
    font-weight: 600;
    color: #b45309;
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 83, 9, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.resume-add-import-callout-text a:hover {
    color: #92400e;
    border-bottom-color: rgba(146, 64, 14, 0.55);
}

@media (max-width: 575.98px) {
    .resume-add-import-callout {
        text-align: center;
    }

    .resume-import-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resume-import-hero-text {
        text-align: center;
    }

    .resume-import-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-import-actions-primary,
    .resume-import-actions-secondary {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }

    .resume-import-actions-primary .btn,
    .resume-import-actions-secondary .btn {
        width: 100%;
    }
}

/* Блок «Услуги» проектной команды (профиль / главная) */
.dash-team-services-section .dash-team-services-card {
    padding: 1.25rem 1.5rem;
}
.dash-team-services-tags {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.dash-team-services-tags:empty {
    margin-bottom: 0;
}
.dash-team-services-tags:not(:empty) + .dash-team-services-add {
    margin-top: 0;
}
.dash-team-services-group__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--greeny, #07c0a1);
    margin-bottom: 0.45rem;
}
.dash-team-services-group__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.dash-team-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.35;
}
.dash-team-service-tag--editable {
    padding-right: 0.35rem;
}
.dash-team-service-tag--draggable {
    cursor: grab;
    padding-left: 0.25rem;
}
.dash-team-service-tag--draggable:active,
.dash-team-service-tag--dragging {
    cursor: grabbing;
    opacity: 0.55;
}
.dash-team-service-tag__drag {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1;
    margin-right: 0.1rem;
}
.dash-team-services-root--dragging .dash-team-services-group__tags--empty-drop {
    min-height: 2.75rem;
    border: 1px dashed rgba(7, 192, 161, 0.45);
    border-radius: 10px;
    background: rgba(7, 192, 161, 0.04);
    position: relative;
}
.dash-team-services-root--dragging .dash-team-services-group__tags--empty-drop::after {
    content: 'Переместить сюда';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: #94a3b8;
    pointer-events: none;
}
.dash-team-services-group--drag-over .dash-team-services-group__tags {
    outline: 2px solid rgba(7, 192, 161, 0.45);
    outline-offset: 2px;
    border-radius: 10px;
    background: rgba(7, 192, 161, 0.06);
}
.dash-team-services-root--dragging .dash-team-services-group {
    transition: opacity 0.15s ease;
}
.dash-team-service-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    border-radius: 4px;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.dash-team-service-tag__remove:hover {
    color: #dc3545;
    opacity: 1;
}
.dash-team-services-add {
    max-width: 32rem;
}
.dash-team-services-field {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dash-team-services-field:focus-within {
    border-color: rgba(7, 192, 161, 0.55);
    box-shadow: 0 0 0 3px rgba(7, 192, 161, 0.12);
}
.dash-team-services-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 12px 0 0 12px;
    background: transparent;
    font-size: 0.875rem;
    color: var(--blacky, #212529);
    box-shadow: none;
}
.dash-team-services-input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}
.dash-team-services-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.dash-team-services-add-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid #e8eaed;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.14), rgba(7, 192, 161, 0.06));
    color: #0f8c7a;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.dash-team-services-add-btn:hover {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.22), rgba(7, 192, 161, 0.1));
    color: #07c0a1;
}
.dash-team-services-add-btn:active {
    background: rgba(7, 192, 161, 0.2);
}
.dash-team-services-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.dash-team-services-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.dash-team-services-dropdown[hidden] {
    display: none !important;
}
.dash-team-services-dropdown__item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.dash-team-services-dropdown__item:hover,
.dash-team-services-dropdown__item:focus {
    background: rgba(7, 192, 161, 0.1);
    color: #0f8c7a;
    outline: none;
}
.dash-team-services-dropdown__group {
    padding: 0.15rem 0;
}
.dash-team-services-dropdown__group + .dash-team-services-dropdown__group {
    border-top: 1px solid #eef1f4;
    margin-top: 0.2rem;
    padding-top: 0.35rem;
}
.dash-team-services-dropdown__group-title {
    padding: 0.25rem 0.65rem 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--greeny, #07c0a1);
}
.dash-team-services-dropdown__empty {
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    color: #6c757d;
}

/* Пустое портфолио проектов — Hero и онбординг */
.ppe-empty {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.ppe-empty--dashboard {
    margin-top: 0;
}

.ppe-hero {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.1) 0%, rgba(7, 192, 161, 0.04) 100%);
    border: 1px dashed rgba(7, 192, 161, 0.35);
    margin-bottom: 0;
}

.ppe-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.ppe-hero__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(7, 192, 161, 0.1);
    color: var(--greeny);
    font-size: 1.75rem;
    pointer-events: none;
    user-select: none;
}

.ppe-hero__text {
    min-width: 0;
    flex: 1;
}

.ppe-hero__title {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blacky);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.ppe-hero__lead {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #475569;
}

.ppe-hero__cta {
    white-space: nowrap;
}

.ppe-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ppe-section__title {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.ppe-benefit-card {
    padding: 1.25rem 1.35rem;
    margin-bottom: 0;
}

.ppe-benefit-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.ppe-benefit-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(7, 192, 161, 0.12);
    color: var(--greeny);
    font-size: 1.15rem;
}

.ppe-benefit-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0;
    line-height: 1.3;
    padding-top: 0.35rem;
}

.ppe-benefit-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #6c757d;
}

.ppe-checklist-card {
    padding: 1.35rem 1.5rem;
    margin-bottom: 0;
}

.ppe-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .ppe-checklist {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.25rem;
    }
}

.ppe-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--blacky);
}

.ppe-checklist__icon {
    flex-shrink: 0;
    color: var(--greeny);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.ppe-checklist__note {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(7, 192, 161, 0.08);
    border-left: 3px solid var(--greeny);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.ppe-step-card {
    padding: 1.35rem 1.25rem;
    margin-bottom: 0;
    position: relative;
}

.ppe-step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--greeny);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.ppe-step-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ppe-step-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #6c757d;
}

.ppe-final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.08) 0%, rgba(7, 192, 161, 0.14) 100%);
    border: 1px solid rgba(7, 192, 161, 0.25);
    margin-bottom: 0;
}

.ppe-final-cta__title {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blacky);
    margin: 0 0 1.25rem;
    line-height: 1.3;
    width: 100%;
}

.ppe-final-cta__actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 575.98px) {
    .ppe-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vacancy-empty-state__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vacancy-empty-state__text {
        margin-left: auto;
        margin-right: auto;
    }

    .ppe-hero__title {
        font-size: 1.35rem;
    }

    .ppe-hero__cta,
    .ppe-hero__actions .btn {
        width: 100%;
        white-space: normal;
    }

    .ppe-final-cta .btn {
        width: 100%;
        white-space: normal;
    }
}
