/* Talent portal (apps.outstaffing.talent) — own shell on the ITS UI kit.
   Layout after the 2026-09-28 mockup: 236px sidebar with the talent's card,
   1040px page column, stat cards, event feed, completion ring, tabs.
   Shell and sidebar after the 2026-09-29 mockup («PRO Talent» header, white
   sidebar on a light-grey page, accent-tinted active item). */

/* Shell ------------------------------------------------------------------- */
.talent-shell {
    /* Accent as text: `--accent` itself measures ~2.2:1 on white and fails
       WCAG AA (see the kit's .its-menu__item.is-active note), so labels in
       the accent hue are mixed toward `--text` (≈5.9:1 light, legible dark). */
    --talent-accent-ink: color-mix(in srgb, var(--accent) 60%, var(--text));
}

.talent-shell .its-shell__body:not(.its-shell__body--no-aside) {
    grid-template-columns: 236px 1fr;
}

[data-aside="collapsed"] .talent-shell .its-shell__body:not(.its-shell__body--no-aside) {
    grid-template-columns: 56px 1fr;
}

.talent-brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.talent-brand:hover {
    text-decoration: none;
}

.talent-brand__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 26px;
    border: 2px solid var(--text-heading);
    border-radius: var(--radius-pill);
    color: var(--text-heading);
    font-family: var(--font-text);
    font-size: var(--fs-11-5);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    line-height: 1;
}

.talent-brand__word {
    font-family: var(--font-num);
    font-size: var(--fs-17);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
    color: var(--talent-accent-ink);
}

.talent-main {
    background: var(--bg-elevated);
}

.talent-page {
    max-width: 65rem;
}

/* Signed-out shell has no aside, so the main is full-width: centre the 65rem
   column (the login card sat in the left third, see
   specs/_intake/260930-hub-260930-spec/media/p7-talent-login-left-aligned.png). */
.talent-shell .its-shell__body--no-aside .talent-page {
    margin-inline: auto;
}

/* Sidebar ----------------------------------------------------------------- */
.talent-aside {
    position: sticky;
    top: var(--its-shell-header-h);
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: calc(100vh - var(--its-shell-header-h));
    padding: var(--s-4) var(--s-3);
    background: var(--bg);
    border-right: 1px solid var(--border);
}

.talent-aside__me {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-width: 0;
    padding: var(--s-1) var(--s-2) var(--s-4);
}

.talent-aside__me .its-avatar {
    flex-shrink: 0;
}

.talent-aside__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: var(--lh-snug);
}

/* A full ФИО does not fit 236px on one line: wrap to at most two lines and
   only then clamp, so «Мякотин Игорь Сергеевич» reads whole. */
.talent-aside__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: var(--fs-13-5);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
}

.talent-aside__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-11-5);
    color: var(--text-muted);
}

/* The kit menu is a white bordered column of its own; inside the sidebar it
   is just the list. */
.talent-aside .talent-menu {
    gap: 2px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border-right: 0;
}

.talent-menu .its-menu__item {
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--radius-control);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-13-5);
    font-weight: var(--fw-medium);
}

.talent-menu .its-menu__item:hover {
    background: var(--bg-elevated);
}

.talent-menu .its-menu__icon {
    width: 18px;
    font-size: var(--fs-13);
    text-align: center;
    opacity: 0.75;
}

.talent-menu .its-menu__item.is-active {
    background: var(--bg-accent-soft);
    color: var(--talent-accent-ink);
    font-weight: var(--fw-bold);
}

.talent-menu .its-menu__item.is-active .its-menu__icon {
    opacity: 1;
}

.talent-menu__badge {
    margin-left: auto;
    padding: 1px var(--s-2);
    border-radius: var(--radius-pill);
    background: var(--bg-accent-soft);
    color: var(--talent-accent-ink);
    font-family: var(--font-text);
    font-size: var(--fs-11-5);
    font-weight: var(--fw-bold);
    line-height: 1.4;
}

/* On the active row the item is already tinted: the pill keeps its shape
   with the page surface behind it. */
.talent-menu .is-active .talent-menu__badge {
    background: var(--bg);
}

.talent-aside__spacer {
    flex: 1;
}

.talent-menu--footer .its-menu__item {
    color: var(--text-muted);
}

.talent-aside__version {
    padding: var(--s-2) var(--s-3) 0;
    font-family: var(--font-num);
    font-size: var(--fs-11-5);
    color: var(--text-muted);
}

[data-aside="collapsed"] .talent-aside__me {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

[data-aside="collapsed"] .talent-aside__who,
[data-aside="collapsed"] .talent-menu__badge,
[data-aside="collapsed"] .talent-aside__version {
    display: none;
}

/* «Команда подбора ITS»: the staffing-team contact under the menu (sidebar) and as a
   home-page card. Collapsed sidebar keeps only the two icon buttons. */
.talent-contact--aside {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    min-width: 0;
    margin-top: var(--s-4);
    padding: var(--s-3);
    border-top: 1px solid var(--border);
}

.talent-contact__name {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-13-5);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
}

.talent-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-1);
}

.talent-contact__btn {
    gap: var(--s-1);
}

.talent-contact__channels {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-1) var(--s-3);
    margin: var(--s-2) 0;
}

.talent-contact__value {
    margin: 0;
    overflow-wrap: anywhere;
}

.talent-contact__hint {
    margin-bottom: var(--s-3);
}

[data-aside="collapsed"] .talent-contact--aside {
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

[data-aside="collapsed"] .talent-contact--aside .talent-contact__name,
[data-aside="collapsed"] .talent-contact--aside .talent-contact__btn-label {
    display: none;
}

[data-aside="collapsed"] .talent-contact--aside .talent-contact__actions {
    flex-direction: column;
    align-items: center;
}

/* Page furniture ---------------------------------------------------------- */
.talent-page__title {
    margin: 0 0 var(--s-1);
    font-size: var(--fs-24);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-page__lead {
    margin: 0 0 var(--s-6);
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.talent-page__lead--tight {
    margin-bottom: var(--s-1);
}

.talent-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.talent-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.talent-page__back {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: var(--s-4) 0 0;
}

.talent-muted {
    margin: 0;
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.talent-card {
    padding: var(--s-5) var(--s-6);
}

.talent-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}

.talent-card__title {
    margin: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-card__link {
    font-size: var(--fs-13);
}

/* Banners ----------------------------------------------------------------- */
.talent-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
}

.talent-banner__form {
    margin: 0;
}

.talent-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
    padding: var(--s-2) var(--s-4);
    border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border));
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--warning) 12%, var(--bg-elevated));
    font-size: var(--fs-14);
}

.talent-notice__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
}

.talent-notice__body {
    flex: 1;
    min-width: 0;
}

.talent-notice__link {
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

/* Home -------------------------------------------------------------------- */
.talent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.talent-stat {
    display: flex;
    flex-direction: column;
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--bg);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--motion-base);
}

.talent-stat:hover,
.talent-stat:focus-visible {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--text-heading) 8%, transparent);
}

.talent-stat--info { border-top-color: var(--accent); }
.talent-stat--success { border-top-color: var(--success); }
.talent-stat--warning { border-top-color: var(--warning); }
.talent-stat--neutral { border-top-color: var(--border-strong); }

.talent-stat__label {
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.talent-stat__value {
    margin-top: var(--s-1);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--text-heading);
}

.talent-stat__sub {
    margin-top: var(--s-1);
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.talent-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
}

@media (min-width: 900px) {
    .talent-home__grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
    }
}

.talent-home__side {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    min-width: 0;
}

/* «Мой статус»: radio list of the self-service statuses; read-only while paused. */
.talent-status__form {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.talent-status__option {
    display: flex;
    gap: var(--s-2);
    align-items: flex-start;
    padding: var(--s-2);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    cursor: pointer;
}

.talent-status__option:has(:checked) {
    background: var(--bg-accent-soft);
    border-color: var(--border);
}

.talent-status__radio {
    margin-top: 3px;
    accent-color: var(--accent);
}

.talent-status__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: var(--lh-snug);
}

.talent-status__name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-14);
    color: var(--text-heading);
}

.talent-status__hint {
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.talent-status__save {
    align-self: flex-start;
    margin-top: var(--s-2);
}

.talent-home__paused {
    margin-bottom: var(--s-4);
}

.talent-home__paused-link {
    margin-left: var(--s-2);
    font-weight: var(--fw-bold);
}

/* «Заполните резюме»: shown under the pause slot until the CV has a filled section. */
.talent-home__cv-required {
    margin-bottom: var(--s-4);
}

.talent-home__cv-required-link {
    margin-left: var(--s-2);
    font-weight: var(--fw-bold);
}

/* «ИИ-бюджет»: the tone colours the sum, the bar and the note. */
.talent-budget {
    --budget-tone: var(--accent);
}

.talent-budget--warning { --budget-tone: var(--warning); }
.talent-budget--exhausted { --budget-tone: var(--danger); }

.talent-budget__resets {
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.talent-budget__sum {
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
    font-family: var(--font-num);
}

.talent-budget__spent {
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--budget-tone);
}

.talent-budget__limit {
    font-size: var(--fs-16);
    color: var(--text-muted);
}

.talent-budget__percent {
    margin-left: auto;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--budget-tone);
}

.talent-budget__bar,
.talent-budget__line-bar {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--border);
    appearance: none;
    overflow: hidden;
}

.talent-budget__bar {
    height: 8px;
    margin-top: var(--s-3);
}

.talent-budget__line-bar {
    grid-column: 1 / -1;
    height: 3px;
}

.talent-budget__bar::-webkit-progress-bar,
.talent-budget__line-bar::-webkit-progress-bar {
    background: var(--border);
}

.talent-budget__bar::-webkit-progress-value { background: var(--budget-tone); }
.talent-budget__bar::-moz-progress-bar { background: var(--budget-tone); }
.talent-budget__line-bar::-webkit-progress-value { background: var(--border-strong); }
.talent-budget__line-bar::-moz-progress-bar { background: var(--border-strong); }

.talent-budget__note {
    margin: var(--s-3) 0 0;
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.talent-budget--warning .talent-budget__note,
.talent-budget--exhausted .talent-budget__note {
    color: var(--budget-tone);
}

.talent-budget__lines {
    margin: var(--s-4) 0 0;
    padding: 0;
    list-style: none;
}

.talent-budget__line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-1) var(--s-3);
    padding: var(--s-2) 0;
    border-top: 1px solid var(--border);
    font-size: var(--fs-14);
}

.talent-budget__amount {
    font-family: var(--font-num);
    color: var(--text-muted);
}

.talent-budget__foot {
    margin: var(--s-4) 0 0;
    font-size: var(--fs-12);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.talent-event {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: var(--s-3);
    align-items: start;
    padding: var(--s-3) 0;
    border-top: 1px solid var(--border);
}

.talent-event__dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--border-strong);
}

.talent-event__dot--info { background: var(--accent); }
.talent-event__dot--success { background: var(--success); }
.talent-event__dot--warning { background: var(--warning); }

.talent-event__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.talent-event__title {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-event__sub {
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.talent-event__date {
    font-size: var(--fs-12);
    color: var(--text-muted);
    white-space: nowrap;
}

.talent-completion {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-3);
}

.talent-ring {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
}

.talent-ring__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.talent-ring__track,
.talent-ring__value {
    fill: none;
    stroke-width: 4;
}

.talent-ring__track {
    stroke: var(--border);
}

.talent-ring__value {
    stroke: var(--accent);
    stroke-linecap: round;
    transition: stroke-dasharray var(--motion-base);
}

.talent-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.talent-checklist__item {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-2) 0;
    border-top: 1px solid var(--border);
    font-size: var(--fs-14);
    color: var(--text);
    text-decoration: none;
}

.talent-checklist__item:hover,
.talent-checklist__item:focus-visible {
    color: var(--accent);
    text-decoration: none;
}

.talent-checklist__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    font-size: var(--fs-12);
}

.talent-checklist__item.is-done .talent-checklist__mark {
    border-color: var(--success);
    background: var(--success);
    color: var(--white);
}

.talent-checklist__item.is-done .talent-checklist__label {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Forms (profile, view-as) ------------------------------------------------ */
.talent-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
}

@media (min-width: 900px) {
    .talent-profile__grid {
        grid-template-columns: minmax(0, 1fr) 17.5rem;
    }
}

.talent-card--form {
    padding: var(--s-6);
}

.talent-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.talent-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--s-4);
}

.talent-form__field {
    min-width: 0;
}

.talent-form__actions {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-2);
}

.talent-profile__avatar {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.talent-aside-card__text {
    margin: var(--s-2) 0 var(--s-4);
    font-size: var(--fs-13);
}

.talent-aside-card__meta {
    font-size: var(--fs-13);
    color: var(--text-muted);
}

/* First-login questionnaire («Анкета», /welcome/) -------------------------- */
.talent-onboarding__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
}

@media (min-width: 900px) {
    .talent-onboarding__steps {
        grid-template-columns: minmax(0, 1fr) 17.5rem;
    }
}

.talent-onboarding__step {
    margin: 0 0 var(--s-4);
    font-size: var(--fs-16);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-onboarding__cv {
    padding: var(--s-6);
}

.talent-onboarding__cv-status,
.talent-onboarding__cv-status:hover {
    padding-top: 0;
    border-top: 0;
    color: var(--text);
}

.talent-onboarding__cv-hint {
    margin: var(--s-2) 0 var(--s-4);
    color: var(--text-muted);
}

/* Resume ------------------------------------------------------------------ */
.talent-resume__version {
    margin-top: var(--s-1);
    font-size: var(--fs-13);
}

.talent-resume__history-link {
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.talent-resume__versions-count {
    font-family: var(--font-num);
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.talent-resume__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
    align-items: start;
}

/* Right-hand column (option B, mockup aside): section nav, then the «О чём написать» card.
   Below 900px it stacks above the form in normal flow. */
.talent-resume__aside {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    min-width: 0;
    order: -1;
}

@media (min-width: 900px) {
    .talent-resume__layout {
        grid-template-columns: minmax(0, 1fr) 15.625rem;
    }

    .talent-resume__aside {
        position: sticky;
        top: calc(var(--its-shell-header-h) + var(--s-5));
        order: 0;
    }

    /* The kit's `.its-shell__main` is a dead scrollport (`overflow: auto`
       with no bounded height; the document scrolls), so a sticky descendant
       never sticks. Free it on the resume page only, as crm.css and
       opportunity/detail.css do for their sticky rails. */
    .talent-main:has(.talent-resume__layout) {
        overflow: visible;
    }
}

.talent-resume__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

@media (min-width: 900px) {
    .talent-resume__nav {
        flex-direction: column;
    }
}

.talent-resume__nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--radius-control);
    font-size: var(--fs-14);
    color: var(--text);
    text-decoration: none;
}

.talent-resume__nav-item:hover,
.talent-resume__nav-item:focus-visible {
    background: var(--bg-elevated);
    color: var(--accent);
    text-decoration: none;
}

.talent-resume__nav-count {
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.talent-resume__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    min-width: 0;
}

.talent-resume__form {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

/* The shared CV editor / view inside the portal: cards spaced like the rest,
   empty repeated sections show a dashed hint (the shared markup has no
   Python-side empty state; the hint is pure CSS on the empty rows box). */
.talent-shell .outstaffing-cv {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.talent-shell .outstaffing-cv__section {
    padding: var(--s-5) var(--s-6);
}

/* The card title already names a scalar section («О кандидате (Summary)»),
   so its single field keeps the label for screen readers only. */
.talent-shell .outstaffing-cv__section--scalar .its-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.talent-shell .outstaffing-cv__section--scalar .its-field {
    position: relative;
}

/* Row fields flow like the mockup: short inputs share a line, the wide
   textareas take the full row (cv.css marks them `--wide`). */
.talent-shell .outstaffing-cv__grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.talent-shell .outstaffing-cv__textarea {
    min-height: calc(var(--control-h) * 2.5);
}

/* The rows box is never literally `:empty` (template whitespace), so the
   dashed hint keys on the absence of a row instead. */
.talent-shell .outstaffing-cv__rows:not(:has(.outstaffing-cv__row)) {
    padding: var(--s-4);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-control);
    text-align: center;
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.talent-shell #cv-rows-experience:not(:has(.outstaffing-cv__row))::before { content: "Пока пусто. Добавьте место работы."; }
.talent-shell #cv-rows-education:not(:has(.outstaffing-cv__row))::before { content: "Пока пусто. Добавьте вуз, курсы или сертификаты."; }
.talent-shell #cv-rows-achievements:not(:has(.outstaffing-cv__row))::before { content: "Пока пусто. Публикации, награды, open-source."; }

.talent-generated__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2) var(--s-4);
    padding: var(--s-3) 0;
    border-top: 1px solid var(--border);
}

.talent-generated__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    min-width: 0;
}

.talent-generated__label {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-generated__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-1);
    font-size: var(--fs-13);
}

/* Proposals --------------------------------------------------------------- */
.talent-tabs {
    margin-bottom: var(--s-5);
}

.talent-tabs__tab {
    gap: var(--s-1);
    text-decoration: none;
}

.talent-tabs__tab.is-active {
    font-weight: var(--fw-semibold);
}

.talent-tabs__count {
    font-size: var(--fs-12);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
}

.talent-table {
    padding: 0;
    overflow: hidden;
}

.talent-table__head,
.talent-table__row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr 7rem;
    gap: var(--s-3);
    align-items: center;
    padding: var(--s-3) var(--s-5);
}

@media (min-width: 721px) {
    .talent-table--referrals .talent-table__head,
    .talent-table--referrals .talent-table__row {
        grid-template-columns: minmax(0, 2fr) 1.2fr 1.2fr 0.8fr repeat(3, 0.9fr);
    }
}

.talent-referrals__budget--warning { color: var(--warning); }
.talent-referrals__budget--exhausted { color: var(--danger); font-weight: var(--fw-semibold); }

.talent-table__head {
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-12);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.talent-table__item {
    border-bottom: 1px solid var(--border);
}

.talent-table__item:last-child {
    border-bottom: 0;
}

.talent-table__title {
    min-width: 0;
    overflow: hidden;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.talent-table__cell {
    font-size: var(--fs-14);
    color: var(--text);
}

.talent-table__note {
    padding: 0 var(--s-5);
}

.talent-table__comment {
    margin: 0 var(--s-5) var(--s-4);
    padding: var(--s-3) var(--s-4);
    border-left: 2px solid var(--border);
}

.talent-table__comment-head {
    margin: 0 0 var(--s-1);
}

.talent-table__comment-title {
    font-weight: var(--fw-bold);
}

.talent-table__comment-text {
    margin: 0;
    overflow-wrap: anywhere;
}

.talent-table__item .talent-notes {
    padding: 0 var(--s-5) var(--s-4);
}

@media (max-width: 720px) {
    .talent-table__head {
        display: none;
    }

    .talent-table__row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--s-1);
    }

    .talent-table__cell[data-label]::before {
        content: attr(data-label) ": ";
        color: var(--text-muted);
    }
}

.talent-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-8) var(--s-4);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--bg);
    text-align: center;
}

.talent-empty__title {
    font-size: var(--fs-16);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-empty__link {
    margin-top: var(--s-3);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

/* Referral link ----------------------------------------------------------- */
.talent-referral-link {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.talent-referral-link__row {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.talent-referral-link__input {
    flex: 1 1 auto;
    min-width: 0;
}

.talent-referral-link__hint {
    margin: 0;
    font-size: var(--fs-13);
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .talent-referral-link__row {
        flex-direction: row;
        align-items: center;
    }
}

/* Not matched ------------------------------------------------------------- */
.talent-attempt {
    margin-bottom: var(--s-4);
}

.talent-attempt__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    align-items: center;
    margin-bottom: var(--s-4);
}

@media (min-width: 640px) {
    .talent-attempt__head {
        grid-template-columns: minmax(0, 1fr) 10rem;
    }
}

.talent-attempt__title {
    margin: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-attempt__meta {
    font-size: var(--fs-13);
}

.talent-attempt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    align-items: center;
    margin-top: var(--s-4);
}

.talent-attempt__retry-form {
    margin: 0;
}

.talent-attempt__retry-note {
    font-size: var(--fs-13);
}

.talent-match {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.talent-match__row {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-12);
}

.talent-match__bar {
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.talent-match__bar::-webkit-progress-bar {
    background: var(--border);
    border-radius: 3px;
}

.talent-match__bar--success::-webkit-progress-value { background: var(--success); border-radius: 3px; }
.talent-match__bar--success::-moz-progress-bar { background: var(--success); border-radius: 3px; }
.talent-match__bar--warning::-webkit-progress-value { background: var(--warning); border-radius: 3px; }
.talent-match__bar--danger::-webkit-progress-value { background: var(--danger); border-radius: 3px; }
.talent-match__bar--warning::-moz-progress-bar { background: var(--warning); border-radius: 3px; }
.talent-match__bar--danger::-moz-progress-bar { background: var(--danger); border-radius: 3px; }

.talent-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--s-5);
    margin-top: var(--s-3);
}

.talent-notes__h {
    margin: 0 0 var(--s-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.talent-notes__h--plus { color: var(--success); }
.talent-notes__h--minus { color: var(--danger); }

.talent-notes__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text);
}

.talent-notes__list li {
    display: flex;
    gap: var(--s-2);
    padding: 2px 0;
}

.talent-notes__list li::before {
    flex: none;
    font-weight: var(--fw-semibold);
}

.talent-notes__list--plus li::before { content: "+"; color: var(--success); }
.talent-notes__list--minus li::before { content: "\2212"; color: var(--danger); }

/* Position details -------------------------------------------------------- */
.talent-position__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: var(--s-3) 0;
}

.talent-position__description {
    margin-top: var(--s-3);
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text);
}

/* Public auth screens (login / signed-out / sign-in failed / deactivated) - */
.talent-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--s-8) var(--s-4);
}

.talent-auth__card {
    width: 100%;
    max-width: 26rem;
    padding: var(--s-10) var(--s-8);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg);
}

.talent-auth__icon {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.talent-auth__title {
    margin: var(--s-4) 0 var(--s-2);
    font-size: var(--fs-24);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-auth__text {
    margin: 0 0 var(--s-6);
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.talent-auth__action {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-6);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    color: var(--accent-contrast);
    background: var(--accent);
    border-radius: var(--radius-control);
    transition: background var(--motion-base);
}

.talent-auth__action:hover,
.talent-auth__action:focus-visible {
    color: var(--accent-contrast);
    background: color-mix(in srgb, var(--accent) 85%, black);
}

.talent-auth__divider {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: var(--s-6) 0;
    font-size: var(--fs-14);
    color: var(--text-muted);
}

.talent-auth__divider::before,
.talent-auth__divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.talent-auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    text-align: left;
}

.talent-auth__hint {
    margin: var(--s-4) 0 0;
    font-size: var(--fs-14);
    color: var(--text-muted);
}

/* Registration form (/register/) */
.talent-auth__file .its-field__control {
    padding: var(--s-1) var(--s-2);
    font-size: var(--fs-14);
    cursor: pointer;
}

.talent-auth__file .its-field__control::file-selector-button {
    margin-right: var(--s-3);
    padding: var(--s-1) var(--s-3);
    font: inherit;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    cursor: pointer;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.talent-auth__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.talent-auth__consent {
    margin: 0;
    font-size: var(--fs-12);
    line-height: var(--lh-loose);
    color: var(--text-muted);
    text-align: center;
}

/* Sidebar on phones. The kit hides .its-shell__aside below 720px (hub tools
   have the tools widget); the portal has no other way to navigate, so the
   menu becomes a horizontally scrolling strip above the page instead. */
@media (max-width: 720px) {
    /* The 236px / 56px tracks above outrank the kit's one-column phone rule
       (a media query adds no specificity), so repeat both selectors here. */
    .talent-shell .its-shell__body:not(.its-shell__body--no-aside),
    [data-aside="collapsed"] .talent-shell .its-shell__body:not(.its-shell__body--no-aside) {
        grid-template-columns: 1fr;
    }

    .talent-shell .its-shell__aside.talent-aside {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        height: auto;
        padding: 0;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        scrollbar-width: none;
    }

    /* Each menu keeps its natural width so the strip scrolls instead of the
       two menus shrinking into each other. */
    .talent-shell .talent-aside .its-menu {
        flex: 0 0 auto;
        flex-direction: row;
        min-width: 0;
        padding: var(--s-1) var(--s-2);
        border-right: 0;
    }

    .talent-shell .talent-aside .its-menu__item {
        flex: 0 0 auto;
    }

    .talent-shell .talent-aside .its-menu__label {
        display: inline;
    }

    .talent-shell .talent-aside .its-aside-toggle,
    .talent-shell .talent-aside .talent-aside__me,
    .talent-shell .talent-aside .talent-contact--aside,
    .talent-shell .talent-aside .talent-aside__spacer,
    .talent-shell .talent-aside .talent-aside__version {
        display: none;
    }
}

/* FAQ («Вопросы и ответы») ------------------------------------------------ */
.talent-faq__head {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.talent-faq__intro {
    min-width: 0;
}

.talent-faq__search {
    width: 100%;
}

@media (min-width: 900px) {
    .talent-faq__head {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--s-5) var(--s-8);
    }

    .talent-faq__search {
        flex: 1 1 15rem;
        max-width: 22rem;
    }
}

.talent-faq__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.talent-faq__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2rem;
    padding: 0 var(--s-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg);
    font-size: var(--fs-13);
    font-weight: var(--fw-medium);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--motion-fast), color var(--motion-fast);
}

.talent-faq__chip:hover {
    border-color: var(--accent);
    color: var(--text-heading);
    text-decoration: none;
}

.talent-faq__chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.talent-faq__chip.is-active {
    border-color: var(--accent);
    background: var(--bg-accent-soft);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
}

.talent-faq__chip-count {
    font-size: var(--fs-11-5);
    color: var(--text-muted);
}

.talent-faq__list {
    display: grid;
    gap: var(--s-6);
}

.talent-faq__heading {
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
    margin: 0 0 var(--s-2) var(--s-1);
}

.talent-faq__title {
    margin: 0;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.talent-faq__heading-count {
    font-size: var(--fs-11-5);
    color: var(--text-muted);
}

.talent-faq__card {
    padding: 0;
    overflow: hidden;
}

.talent-faq__item + .talent-faq__item {
    border-top: 1px solid var(--border);
}

.talent-faq__item[open] {
    background: var(--bg-elevated);
    box-shadow: inset 3px 0 0 var(--accent);
}

.talent-faq__question {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5) var(--s-4) var(--s-6);
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
}

.talent-faq__question::-webkit-details-marker {
    display: none;
}

.talent-faq__question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.talent-faq__text {
    flex: 1 1 auto;
    min-width: 0;
}

.talent-faq__chevron {
    flex: 0 0 auto;
    color: var(--text-muted);
    transition: transform var(--motion-base);
}

.talent-faq__item[open] .talent-faq__chevron {
    color: var(--accent);
    transform: rotate(180deg);
}

.talent-faq__answer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    max-width: 48rem;
    padding: 0 var(--s-12) var(--s-5) var(--s-6);
    font-size: var(--fs-14);
    line-height: var(--lh-loose);
    color: var(--text);
}

.talent-faq__answer p {
    margin: 0;
}

.talent-faq__link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-1);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

.talent-faq__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4);
    margin-top: var(--s-8);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--radius-card);
    background: var(--bg-accent-soft);
}

.talent-faq__contact-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    color: var(--accent-contrast);
}

.talent-faq__contact-body {
    flex: 1 1 12rem;
    min-width: 0;
}

.talent-faq__contact-title {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
}

.talent-faq__contact-text {
    margin: var(--s-1) 0 0;
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.talent-faq__contact-btn {
    white-space: nowrap;
}

/* Self-service account linking on the unlinked home card (/link-account/) */
.talent-link-account {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    max-width: 28rem;
    margin-top: var(--s-4);
}

.talent-link-account__title {
    margin: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}

.talent-link-account__fallback {
    margin-top: var(--s-4);
}
