/* /recruiters: сцены «чат», «этапы», «закрепление» */

/* Чат отклика: пузыри из recruiter_chat */
.rl-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 352px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-primary);
}

.rl-chat-head,
.rl-stages-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--filter-divider);
}

.rl-stages-head {
    border: none;
    border-radius: 16px;
    background: var(--surface-primary);
}

.rl-chat-head .rl-cand-info,
.rl-stages-head .rl-cand-info {
    flex: 1;
}

.rl-chat-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
}

.rl-chat-body > * {
    flex: none;
}

.rl-chat-body .is-entering {
    animation: rl-fade-up .4s cubic-bezier(.22, 1, .36, 1) both;
}

.rl-chat-system {
    align-self: center;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--surface-secondary);
    color: var(--text-muted);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
}

.rl-typing {
    display: inline-flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 14px;
    border-radius: 16px 16px 16px 4px;
    background: var(--surface-secondary);
}

.rl-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: rl-typing 1s ease-in-out infinite;
}

.rl-typing span:nth-child(2) { animation-delay: .15s; }
.rl-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes rl-typing {
    30% { transform: translateY(-4px); opacity: .5; }
}

.rl-chat-composer {
    margin: 0 12px 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--surface-secondary);
    color: var(--placeholder-color);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

/* Этапы: строка отклика и открытое меню статуса (.status-dropdown кабинета) */
.rl-stages {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.rl-stages-head {
    align-self: stretch;
}

.rl-menu {
    width: 226px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.rl-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 16px;
    color: var(--text-color);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    transition: background-color .25s ease;
}

.rl-menu-item.is-hover {
    background: var(--surface-secondary);
}

.rl-menu-item svg {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .25s ease, transform .25s ease;
}

.rl-menu-item.is-active svg {
    opacity: 1;
    transform: none;
}

.rl-status.is-changed > span {
    animation: rl-fade-up .35s cubic-bezier(.22, 1, .36, 1) both;
}

/* Закрепление: лента строками фиксированной высоты, первая закреплена */
.rl-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 328px;
    overflow: hidden;
}

.rl-feed .job-card.rl-job {
    display: grid;
    flex: none;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    gap: 0 12px;
    width: 100%;
    height: 76px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 20px;
    opacity: 1;
    transform: none;
    animation: none;
    cursor: default;
}

.rl-feed .job-card.rl-job[hidden] {
    display: none;
}

.rl-feed .job-company-logo {
    grid-row: 1 / span 2;
    margin: 0;
}

.rl-feed .job-company-name {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rl-feed .job-published-date {
    justify-self: end;
}

.rl-feed .premium-pin-chip {
    width: 20px;
    height: 20px;
    margin: 0 !important;
}

.rl-feed .job-title {
    margin: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    white-space: nowrap;
    /* На узкой карточке длинное название обрезается, а не наезжает на зарплату */
    overflow: hidden;
    text-overflow: ellipsis;
}

.rl-feed .job-salary {
    justify-self: end;
    margin: 0;
    white-space: nowrap;
}

/* Демо-лента не кликается: без тени при наведении от общей .job-card:hover */
.rl-feed .job-card.rl-job:hover {
    box-shadow: none;
}

.rl-feed .job-card.premium,
.rl-feed .job-card.rl-job.premium:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 119, 51, .35);
}

.rl-feed .job-card.is-entering {
    animation: rl-feed-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rl-feed-in {
    from { height: 0; margin-top: -8px; opacity: 0; }
}
