/*
 * HumanFlow — дизайн-основа «как Хантфлоу» (Э0.42). Только CSS-переменные поверх Bootstrap 5, без Sass/Node.
 * Референсы: img/главная/главная.png, img/настройки/*, img/компания/профиль1.png; описание — docs/ui/main-screens.md §1.
 */
:root {
    --hf-black: #000;
    --hf-ink: #111;
    --hf-muted: #8c8c8c;
    --hf-muted-2: #b3b3b3;
    --hf-line: #e6e6e6;
    --hf-line-soft: #efefef;
    --hf-bg: #f2f2f2;
    --hf-row: #f4f4f4;
    --hf-accent: #00c2dd;        /* логотип, «+», активная вкладка */
    --hf-link: #1597ae;          /* ссылки-вакансии */
    --hf-link-hover: #0e7b8f;
    --hf-green: #3fb34f;
    --hf-red: #e8412c;
    --hf-yellow: #f5b300;
    --hf-sidebar-hover: #262626;
    --hf-radius: 12px;
    --hf-radius-sm: 8px;
    --hf-header-h: 56px;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-color: var(--hf-ink);
    --bs-body-bg: #fff;            /* фон компонентов (поля, меню, модальные окна); фон страницы — --hf-bg на body */
    --bs-secondary-color: var(--hf-muted);
    --bs-border-color: #d9d9d9;
    --bs-border-radius: 6px;
    --bs-border-radius-lg: var(--hf-radius);
    --bs-link-color: var(--hf-link);
    --bs-link-color-rgb: 21, 151, 174;
    --bs-link-hover-color: var(--hf-link-hover);
    --bs-link-hover-color-rgb: 14, 123, 143;
    --bs-link-decoration: none;
    --bs-focus-ring-color: rgba(0, 194, 221, .25);
}

body { min-height: 100vh; background: var(--hf-bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
h1, .h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
h2, .h2 { font-size: 1.375rem; font-weight: 600; }
h3, .h3 { font-size: 1.0625rem; font-weight: 600; }
.hf-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.hf-icon--sm { width: 16px; height: 16px; vertical-align: -3px; }
.hf-icon--lg { width: 28px; height: 28px; }
.text-muted, .text-secondary { color: var(--hf-muted) !important; }

/* ---------- Кнопки и поля ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-font-size: .875rem; --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .8rem;
    --bs-btn-border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn-dark { --bs-btn-bg: var(--hf-black); --bs-btn-border-color: var(--hf-black); --bs-btn-hover-bg: #262626;
    --bs-btn-hover-border-color: #262626; --bs-btn-active-bg: #333; }
.btn-light, .btn-outline-secondary { --bs-btn-bg: #fff; --bs-btn-color: var(--hf-ink); --bs-btn-border-color: #d9d9d9;
    --bs-btn-hover-bg: #f5f5f5; --bs-btn-hover-color: var(--hf-ink); --bs-btn-hover-border-color: #c4c4c4;
    --bs-btn-active-bg: #eee; --bs-btn-active-color: var(--hf-ink); }
.btn-green { --bs-btn-bg: var(--hf-green); --bs-btn-color: #fff; --bs-btn-border-color: var(--hf-green);
    --bs-btn-hover-bg: #35a045; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #35a045; }
.btn-link-muted { background: none; border: 0; color: var(--hf-muted); padding: 0; font-weight: 400; }
.btn-link-muted:hover { color: var(--hf-ink); }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 6px; border: 1px solid transparent; background: none;
    color: var(--hf-muted); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover, .btn-icon[aria-expanded="true"] { background: var(--hf-row); color: var(--hf-ink); }
.form-control, .form-select { min-height: 40px; border-color: #d9d9d9; font-size: .9375rem; }
.form-control:focus, .form-select:focus { border-color: var(--hf-accent); box-shadow: none; }
.form-control-sm, .form-select-sm { min-height: 32px; font-size: .875rem; }
.form-label, .col-form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--hf-muted); font-size: .8125rem; }
.invalid-feedback { font-size: .8125rem; }
.alert { border-radius: var(--hf-radius-sm); border: 0; padding: .7rem 1rem; font-size: .875rem; }
.alert-success { background: #e8f6ea; color: #1f6b2a; }
.alert-warning { background: #fff5d9; color: #7a5a00; }
.alert-danger { background: #fdeceb; color: #a3261a; }
.badge-hf { display: inline-block; font-size: .75rem; font-weight: 500; line-height: 1; padding: .3rem .5rem;
    border-radius: 999px; background: var(--hf-row); color: var(--hf-muted); vertical-align: 1px; }
.badge-hf--warn { background: #fff1c7; color: #8a6400; }
.badge-hf--off { background: #eee; color: #777; }
.hf-counter { font-size: .75rem; font-weight: 600; padding: .15rem .4rem; border-radius: 999px; background: #e9e9e9; color: #8c8c8c; }

/* ---------- Выпадающие меню ---------- */
.dropdown-menu { --bs-dropdown-border-color: transparent; --bs-dropdown-border-radius: var(--hf-radius);
    --bs-dropdown-box-shadow: 0 8px 28px rgba(0, 0, 0, .14); --bs-dropdown-link-active-bg: var(--hf-row);
    --bs-dropdown-link-active-color: var(--hf-ink); --bs-dropdown-link-hover-bg: var(--hf-row);
    --bs-dropdown-item-padding-y: .5rem; --bs-dropdown-item-padding-x: 1.25rem; --bs-dropdown-font-size: .9375rem;
    box-shadow: var(--bs-dropdown-box-shadow); padding: .5rem 0; }
.dropdown-item { display: flex; align-items: center; gap: .6rem; color: var(--hf-ink); }
.dropdown-item .hf-icon { color: #555; }
button.dropdown-item { width: 100%; background: none; border: 0; text-align: left; }
.dropdown-header { color: var(--hf-muted); font-size: .8125rem; padding: .5rem 1.25rem .25rem; }
.dropdown-divider { border-color: var(--hf-line); }
.dropdown-toggle::after { display: none; }

/* ---------- Шапка ---------- */
.hf-header { position: sticky; top: 0; z-index: 1030; height: var(--hf-header-h); background: var(--hf-black); color: #fff;
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 14px; }
.hf-header a { color: #fff; }
.hf-header .dropdown-menu .dropdown-item { color: var(--hf-ink); }
.hf-header .dropdown-menu .dropdown-item.text-secondary { color: var(--hf-muted) !important; }
.hf-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.hf-brand__logo { width: 36px; height: 36px; }
.hf-header__back { margin-left: 92px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, .8); line-height: 1.2; }
.hf-header__right { display: flex; align-items: center; height: 100%; }
.hf-header__icon { width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
    opacity: .95; border-radius: 6px; }
.hf-header__icon:hover { background: #1c1c1c; }
.hf-header__sep { width: 1px; height: 28px; background: #333; margin: 0 10px; }
.hf-header__menu-btn { background: none; border: 0; color: #fff; font-weight: 700; font-size: .9375rem; display: inline-flex;
    align-items: center; gap: 4px; padding: 6px 8px; border-radius: 6px; }
.hf-header__menu-btn:hover { background: #1c1c1c; }
.hf-project-menu .dropdown-menu { min-width: 300px; margin-top: 8px !important; }
.hf-project-menu__title { display: flex; align-items: center; gap: 8px; padding: .5rem 1.25rem .9rem; font-weight: 700;
    border-bottom: 1px solid var(--hf-line); margin-bottom: .4rem; }
.hf-project-menu__title .hf-brand__logo { width: 26px; height: 26px; }
.hf-project-menu .dropdown-item small { color: var(--hf-muted); margin-left: auto; font-size: .75rem; }

/* ---------- Рабочая область: меню слева + контент ---------- */
.hf-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 8px; padding: 8px;
    min-height: calc(100vh - var(--hf-header-h)); }
.hf-sidebar { position: sticky; top: calc(var(--hf-header-h) + 8px); align-self: start; height: calc(100vh - var(--hf-header-h) - 16px);
    background: var(--hf-black); color: #fff; border-radius: var(--hf-radius); padding: 16px 14px; display: flex; flex-direction: column; }
.hf-nav { list-style: none; margin: 0; padding: 0; }
.hf-nav__link { display: flex; align-items: center; gap: 12px; color: #fff; padding: 9px 12px; border-radius: var(--hf-radius-sm);
    font-size: .9375rem; line-height: 1.25; }
.hf-nav__link:hover { background: var(--hf-sidebar-hover); color: #fff; }
.hf-nav__link.active { background: var(--hf-sidebar-hover); }
.hf-nav__sep { height: 1px; background: #2e2e2e; margin: 12px 12px; }
.hf-nav__sub { color: #fff; font-size: .8125rem; padding: 4px 12px 2px 46px; opacity: .95; }
.hf-nav__chevron { margin-left: 4px; width: 20px; height: 20px; border-radius: 4px; background: #2e2e2e; display: inline-flex;
    align-items: center; justify-content: center; }
.hf-plus { margin-top: auto; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--hf-accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 194, 221, .35); }
.hf-plus .hf-icon { width: 30px; height: 30px; stroke-width: 2.2; }
.hf-plus:hover { filter: brightness(1.05); }
.hf-plus-menu .dropdown-menu { min-width: 260px; }

.hf-workspace { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hf-tabs { display: flex; gap: 8px; }
.hf-tabs__home { width: 68px; height: 52px; border-radius: var(--hf-radius); background: #fff; display: inline-flex; align-items: center;
    justify-content: center; color: var(--hf-accent); position: relative; }
.hf-tabs__home::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 2px; background: var(--hf-accent); }
.hf-tabs__bar { flex: 1; height: 52px; background: #fff; border-radius: var(--hf-radius); display: flex; align-items: center; gap: 28px;
    padding: 0 24px; overflow: hidden; white-space: nowrap; }
.hf-tabs__item { color: var(--hf-muted-2); font-size: 1rem; font-weight: 500; }
.hf-tabs__item.active { color: var(--hf-ink); font-weight: 600; }
.hf-main { background: #fff; border-radius: var(--hf-radius); padding: 32px; flex: 1; min-height: 60vh; }
.hf-page-title { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.hf-page-title .hf-icon { width: 30px; height: 30px; }
.hf-empty { color: var(--hf-muted); padding: 2rem 0; }

/* ---------- Страницы настроек (без левого меню) ---------- */
.hf-sheet { background: #fff; border-radius: var(--hf-radius); margin: 8px; min-height: calc(100vh - var(--hf-header-h) - 16px); padding: 48px 24px 64px; }
.hf-sheet__inner { max-width: 1336px; margin: 0 auto; padding: 0 56px; }
.hf-crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--hf-muted); font-size: 1rem; margin-bottom: 1.2rem; }
.hf-crumb:hover { color: var(--hf-ink); }
.hf-sheet__title { font-size: 1.75rem; font-weight: 600; margin: 0 0 1.25rem; }
.hf-sheet__rule { border: 0; border-top: 1px solid var(--hf-line); margin: 0 0 2rem; opacity: 1; }
.hf-sheet__sub { color: var(--hf-muted); margin: -.75rem 0 1.25rem; }
.hf-section-title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 1rem; }

/* плитки «Настройки»: иконка + заголовок + описание */
.hf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; max-width: 1000px; }
.hf-tile { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; color: var(--hf-ink); }
.hf-tile__title { font-weight: 600; font-size: 1.0625rem; }
.hf-tile__text { grid-column: 2; color: var(--hf-muted); font-size: .9375rem; line-height: 1.55; }
.hf-tile:hover .hf-tile__title { color: var(--hf-link); }
.hf-tile .hf-icon { margin-top: 2px; }
.hf-tiles__heading { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
/* Панель шестерёнки (как «Настройки» в Хантфлоу) */
.hf-settings-menu button.hf-header__icon { border: 0; padding: 0; background: transparent; }
.hf-bell button.hf-header__icon { border: 0; padding: 0; background: transparent; position: relative; }
.hf-bell__count { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.hf-bell__menu { width: 380px; max-height: 70vh; overflow-y: auto; padding: 0; }
.hf-bell__head { padding: 10px 14px; font-weight: 600; border-bottom: 1px solid var(--bs-border-color); }
.hf-bell__item.is-unread { background: #eef4ff; }
.hf-bell__item + .hf-bell__item { border-top: 1px solid var(--bs-border-color); }
.hf-bell__link { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 14px; border: 0; background: transparent; text-align: left; }
.hf-bell__link:hover { background: rgba(0, 0, 0, .04); }
.hf-bell__preview { color: var(--bs-secondary-color); font-size: .875em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-bell__time { color: var(--bs-secondary-color); font-size: .8em; }
.hf-bell__empty { padding: 14px; margin: 0; color: var(--bs-secondary-color); }
.hf-bell__all { padding: 6px 8px; border-top: 1px solid var(--bs-border-color); text-align: right; }
.hf-settings-menu button.hf-header__icon:hover, .hf-settings-menu button.hf-header__icon[aria-expanded="true"] { background: #1c1c1c; }
.hf-tiles + .hf-sheet__rule { margin-top: 2.5rem; }
.hf-header .hf-settings-panel .hf-tile { color: var(--hf-ink); }
.hf-settings-panel { width: min(800px, calc(100vw - 32px)); padding: 0; color: var(--hf-ink); white-space: normal; margin-top: 12px !important; border: 0;
    border-radius: var(--hf-radius); box-shadow: 0 8px 32px rgba(0, 0, 0, .18); }
.hf-settings-panel__head { padding: 20px 32px 16px; border-bottom: 1px solid var(--hf-line); }
.hf-settings-panel__title { font-weight: 600; font-size: 1.1rem; }
.hf-settings-panel__meta { color: var(--hf-muted); font-size: .875rem; }
.hf-settings-panel__body { padding: 24px 32px 28px; max-height: calc(100vh - 120px); overflow-y: auto; }
.hf-settings-panel .hf-tiles { gap: 24px 32px; }
.hf-settings-panel .hf-sheet__rule { margin: 24px 0; }
.hf-c-red { color: var(--hf-red); } .hf-c-violet { color: #7a4cf0; } .hf-c-pink { color: #e03ab8; }
.hf-c-green { color: var(--hf-green); } .hf-c-blue { color: #1596f0; } .hf-c-yellow { color: #f5a300; } .hf-c-teal { color: var(--hf-accent); }

/* раскладка «подменю слева + содержимое» (Рекрутеры и заказчики) */
.hf-split { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 80px; }
.hf-subnav { list-style: none; padding: 0; margin: 0; }
.hf-subnav a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--hf-radius-sm); color: var(--hf-ink);
    font-weight: 600; font-size: 1rem; }
.hf-subnav a.active, .hf-subnav a:hover { background: #f3f3f3; }
.hf-split__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.hf-split__head h2 { margin: 0; }

/* Настройки: хаб и страница раздела (spec Э1-списки §3) */
.hf-settings-hub__meta { color: var(--hf-muted); margin-bottom: 1rem; }
.hf-settings-search { position: relative; display: block; max-width: 420px; margin-bottom: 2rem; }
.hf-settings-search .hf-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hf-muted); pointer-events: none; }
.hf-settings-search .form-control { padding-left: 36px; }
.hf-settings-pane { min-width: 0; }
.hf-settings-pane__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .75rem; }
.hf-settings-pane__head h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.hf-settings-pane__actions { display: flex; gap: 8px; }
.hf-settings-pane__hint { color: var(--hf-muted); max-width: 640px; margin-bottom: 1.5rem; }

.hf-tiles[hidden], .hf-tile[hidden] { display: none; }
/* настройки на узком экране: меню раздела над содержимым, одна колонка плиток, панели переносятся */
@media (max-width: 576px) {
    .hf-sheet { padding: 24px 12px 48px; }
    .hf-tiles { grid-template-columns: 1fr; gap: 24px; }
    .hf-settings-pane__head, .hf-dict__bar { flex-wrap: wrap; }
    .hf-dict__toggle { margin-left: 0; }
    .hf-subnav a { padding: 12px 14px; }
    .hf-elist__add--sortable { margin-left: 0; }
    .hf-dict__list--nested { padding-left: 16px; }
}

/* Настройки: редактируемый список (spec Э1-списки §4.1) */
.hf-elist { max-width: 720px; }
.hf-elist__rows { list-style: none; padding: 0; margin: 0; }
.hf-elist__row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.hf-elist__row.is-dragging { opacity: .4; }
.hf-elist__field { position: relative; flex: 1 1 auto; min-width: 0; }
.hf-elist__row.is-locked .hf-elist__name { color: var(--hf-muted); background: #fff; }
.hf-elist__field.has-lock .hf-elist__name { padding-right: 36px; }   /* отступ — под замок, а не под «нельзя переименовать» (ревью М7) */
.hf-elist__row.is-deleted .hf-elist__name { color: var(--hf-muted-2); text-decoration: line-through; background: var(--hf-row); }
.hf-elist__lock { position: absolute; right: 12px; top: 11px; color: var(--hf-muted-2); }
.hf-elist__handle, .hf-elist__remove { flex: 0 0 32px; width: 32px; height: 38px; padding: 0; border: 0; background: none; color: var(--hf-muted-2);
    display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.hf-elist__handle { cursor: grab; touch-action: none; }
.hf-elist__handle-gap { flex: 0 0 32px; }   /* место ручки у закреплённой строки: без курсора и подсветки */
.hf-elist__handle:hover, .hf-elist__handle:focus-visible, .hf-elist__remove:hover, .hf-elist__remove:focus-visible { color: var(--hf-ink); background: var(--hf-row); }
.hf-elist__remove--ban { cursor: help; }   /* особая метка (Э8.19 §3.5) */
.hf-elist__icon-restore, .hf-elist__row.is-deleted .hf-elist__icon-remove { display: none; }
.hf-elist__row.is-deleted .hf-elist__icon-restore { display: inline; }
.hf-elist__color { flex: 0 0 38px; }
.hf-elist__swatch, .hf-palette__color { --hf-tag: #fff; background: var(--hf-tag); border: 1px solid rgba(0, 0, 0, .12); border-radius: 6px; padding: 0; }
.hf-elist__swatch { width: 38px; height: 38px; }
.hf-palette { padding: 12px; min-width: 0; width: 196px; }
.hf-palette__grid { display: grid; grid-template-columns: repeat(6, 24px); gap: 6px; margin-bottom: 10px; }
.hf-palette__color { width: 24px; height: 24px; }
.hf-palette__color:hover, .hf-palette__color:focus-visible { outline: 2px solid var(--hf-ink); outline-offset: 1px; }
.hf-elist__rule { margin: 16px 0; }
/* Настройки: время на этапе (spec Э1-воронка §5.1) */
.hf-time__pick { max-width: 720px; margin-bottom: 16px; }
.hf-time { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.hf-time__row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--hf-line); background: none; text-align: left; color: var(--hf-ink); }
.hf-time__row:hover { background: var(--hf-row); }
.hf-time__icon { color: var(--hf-muted); }
.hf-time__value { margin-left: auto; white-space: nowrap; }
.hf-time__value--common { color: var(--hf-muted); }
.hf-time__same { color: var(--hf-muted); font-size: .8125rem; white-space: nowrap; }
/* Настройки: наборы этапов (spec Э1-воронка §4.1) */
.hf-sets { max-width: 720px; }
.hf-sets__list { list-style: none; padding: 0; margin: 0; }
.hf-sets__item { border-bottom: 1px solid var(--hf-line); }
.hf-sets__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 4px; border: 0; background: none; text-align: left; color: var(--hf-ink); }
.hf-sets__head:hover .hf-sets__name { color: var(--hf-link); }
.hf-sets__name { font-weight: 600; }
.hf-sets__meta { margin-left: auto; color: var(--hf-muted); font-size: .875rem; white-space: nowrap; }
.hf-sets__form { padding: 16px 20px; margin: 0 0 12px; border-radius: var(--hf-radius-sm); box-shadow: 0 2px 12px rgba(0, 0, 0, .12); background: #fff; }
.hf-sets__form .form-label { display: block; }
.hf-sets__pick { font-weight: 600; margin: 16px 0 8px; }
.hf-sets__checks { max-height: 360px; overflow-y: auto; }
.hf-sets__system { color: var(--hf-muted); font-size: .875rem; margin: 8px 0 0; }
.hf-sets__actions { display: flex; flex-direction: column; }
.hf-sets__actions > .hf-elist__confirm { order: -1; }   /* в разметке — после кнопок (ревью К1), на экране — над ними */
.hf-sets__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }   /* 375 px: «Удалить набор» переносится (ревью К4) */
.hf-sets__delete { margin-left: auto; color: var(--hf-red); }
.hf-sets__add { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0; border: 0; background: none; padding: 0; color: var(--hf-link); }
.hf-elist__rows--pinned { margin-top: 8px; }
.hf-elist__rows--pinned:empty { margin: 0; }   /* в списках без закреплённых строк отступа нет (ревью М9) */
.hf-elist__row { flex-wrap: wrap; }
.hf-elist__row--hired .hf-elist__name, .hf-elist__row--hired .hf-elist__name[readonly] { background: #fff8d6; }
.hf-elist__note { flex: 0 0 calc(100% - 80px); margin: 4px 40px 0;   /* поля 40 px с двух сторон входят в ширину строки (ревью К3) */ padding: 8px 12px; border-radius: var(--hf-radius-sm); background: #fff8d6; color: var(--hf-ink); font-size: .875rem; }
.hf-elist__link { position: absolute; right: 36px; top: 9px; color: var(--hf-link); font-size: .875rem; }
.hf-elist__link:hover { color: var(--hf-link-hover); }
@media (max-width: 576px) { .hf-elist__link { position: static; display: block; margin-top: 4px; } }   /* 375 px: ссылка под полем, не поверх «Отказа» */
.hf-elist__add { margin: 0 40px 0 0; }
.hf-elist__add--color { margin-right: 86px; }
.hf-elist__add--sortable { margin-left: 40px; }
.hf-elist__actions { display: flex; flex-direction: column; }
.hf-elist__buttons { display: flex; gap: 8px; margin-top: 24px; }
.hf-elist__actions > .hf-elist__confirm { order: -1; }   /* в разметке — после кнопок (ревью К1), на экране — над ними */
.hf-elist__footnote { display: flex; gap: 8px; color: var(--hf-muted); border-top: 1px solid var(--hf-line); margin-top: 24px; padding-top: 16px; }
.hf-elist__confirm { border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); background: #fffaf0; padding: 16px 20px; margin-top: 24px; }
.hf-elist__confirm-title { font-weight: 600; margin-bottom: .5rem; }
.hf-elist__confirm ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.hf-elist__confirm li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 0; }
.hf-elist__confirm-name { font-weight: 600; }
.hf-elist__confirm-used { color: var(--hf-muted); }
/* Настройки: справочник (spec Э1-списки §4.2) */
.hf-dict { max-width: 820px; }
.hf-dict__bar { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--hf-line); padding-bottom: 12px; margin-bottom: 4px; }
.hf-dict__action { border: 0; background: none; padding: 0; color: var(--hf-ink); font-weight: 500; }
.hf-dict__action:hover { color: var(--hf-link); }
.hf-dict__action:disabled { color: var(--hf-muted-2); cursor: default; }
.hf-dict__toggle { margin-left: auto; color: var(--hf-muted); }
.hf-dict__toggle:hover { color: var(--hf-ink); }
.hf-dict__list, .hf-dict__groups { list-style: none; padding: 0; margin: 0; }
.hf-dict__list--nested { padding-left: 32px; }
.hf-dict__row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; border-radius: var(--hf-radius-sm); }
.hf-dict__row:hover, .hf-dict__row:focus-within { background: var(--hf-row); }
.hf-dict__row.is-dragging, .hf-dict__group.is-dragging { opacity: .4; }
.hf-dict__handle { flex: 0 0 24px; width: 24px; height: 28px; padding: 0; border: 0; background: none; color: var(--hf-muted-2);
    display: inline-flex; align-items: center; justify-content: center; }
button.hf-dict__handle { cursor: grab; touch-action: none; }
button.hf-dict__handle:hover, button.hf-dict__handle:focus-visible { color: var(--hf-ink); }
.hf-dict__check { flex: 0 0 18px; margin: 0; display: inline-flex; color: var(--hf-muted); }
.hf-dict__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hf-dict__row--group .hf-dict__name { font-weight: 600; }
.hf-dict__row.is-archived .hf-dict__name, .hf-dict__group.is-archived > .hf-dict__row .hf-dict__name { color: var(--hf-muted-2); text-decoration: line-through; }
.hf-dict__lock { color: var(--hf-muted-2); }
.hf-dict__actions { display: inline-flex; align-items: center; gap: 4px; opacity: 0; }
.hf-dict__actions form { margin: 0; }
.hf-dict__row:hover .hf-dict__actions, .hf-dict__row:focus-within .hf-dict__actions { opacity: 1; }
@media (hover: none) { .hf-dict__actions { opacity: 1; } }
.hf-dict__restore { padding: 0 4px; }
.hf-dict__keep { margin-bottom: .5rem; }
/* причины отказа с группами в фильтре поиска */
.hf-search__check--nested { padding-left: 2rem; }
.hf-search__group { font-weight: 600; }
.hf-dict__add-group { padding-left: 10px; padding-right: 10px; }
.hf-dict__add-group .hf-icon { margin: 0; }
.hf-elist__confirm label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.hf-elist__confirm select { max-width: 100%; }   /* 375 px: длинные названия замен не вылезают за край (ревью М13) */

/* список людей */
.hf-people { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hf-line); }
.hf-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.hf-person + .hf-person { border-top: 1px solid var(--hf-line-soft); }
.hf-avatar { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #ececec; color: #c9c9c9; flex: none;
    display: inline-flex; align-items: center; justify-content: center; overflow: visible; }
.hf-avatar .hf-icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.hf-avatar__crown { position: absolute; top: -9px; left: 6px; width: 16px; height: 12px; fill: var(--hf-yellow); stroke: none; }
.hf-person__body { flex: 1; min-width: 0; }
.hf-person__name { font-size: .9375rem; }
.hf-person__meta { color: var(--hf-muted); font-size: .9375rem; }
.hf-person__actions { display: flex; align-items: center; gap: 6px; }
.hf-person--off .hf-person__name { color: var(--hf-muted); }

/* дропдаун действий с формами внутри */
.hf-actions-menu { min-width: 280px; }
.hf-actions-menu form { padding: .35rem 1.25rem; }
.hf-actions-menu .dropdown-item { width: 100%; background: none; border: 0; text-align: left; }
.hf-actions-menu .dropdown-item--danger { color: var(--hf-red); }
.hf-rights { max-width: 340px; }
.hf-rights .form-check { margin-bottom: .4rem; white-space: normal; }

/* формы «подпись слева — значение справа» (профиль) */
.hf-profile { display: grid; grid-template-columns: 170px 400px; gap: 32px; margin-left: 82px; }
.hf-profile__photo { width: 145px; height: 145px; border-radius: var(--hf-radius); background: #f3f3f3; color: #d4d4d4;
    display: flex; align-items: center; justify-content: center; }
.hf-profile__photo .hf-icon { width: 96px; height: 96px; fill: currentColor; stroke: none; }
.hf-kv { border-top: 1px dashed var(--hf-line); margin-top: 2rem; }
.hf-kv__row { display: grid; grid-template-columns: 257px minmax(0, 1fr); gap: 0; padding: 2rem 0; border-bottom: 1px dashed var(--hf-line); }
.hf-kv__label { font-size: .9375rem; }
.hf-kv__value { font-weight: 600; }
.hf-kv__hint { color: var(--hf-muted); font-weight: 400; font-size: .9375rem; }
.hf-sessions { list-style: none; padding: 0; margin: 0; }
.hf-sessions li { display: flex; align-items: center; gap: 12px; padding: .5rem 0; font-weight: 400; }
.hf-sessions li + li { border-top: 1px solid var(--hf-line-soft); }

/* список проектов («Мои проекты», /_team) */
.hf-rows { list-style: none; padding: 0; margin: 0; }
.hf-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hf-line); }
.hf-row__main { flex: 1; min-width: 0; }
.hf-row__title { font-size: 1.125rem; font-weight: 600; color: var(--hf-link); }
.hf-row__meta { color: var(--hf-muted); margin-top: 2px; }
.hf-row__owners { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.hf-group-head { display: flex; gap: 8px; align-items: baseline; background: var(--hf-row); border-radius: var(--hf-radius-sm);
    padding: 10px 12px; font-weight: 600; font-size: .9375rem; margin-top: 1.5rem; }
.hf-group-head span { color: var(--hf-muted); font-weight: 400; }
.hf-card-form { background: #fafafa; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); padding: 24px; max-width: 900px; }

/* ---------- Вход и страницы ошибок ---------- */
.hf-auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--hf-bg); }
.hf-auth__top { height: var(--hf-header-h); background: var(--hf-black); display: flex; align-items: center; padding: 0 14px; }
.hf-auth__lang { margin-left: auto; color: rgba(255,255,255,.5); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.hf-auth__lang a { color: rgba(255,255,255,.7); text-decoration: none; }
.hf-auth__lang a:hover { color: #fff; }
.hf-auth__lang [aria-current] { color: #fff; }
.hf-auth__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 64px; }
.hf-auth__card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--hf-radius); padding: 40px 40px 32px; }
.hf-auth__card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.hf-auth__hint { color: var(--hf-muted); font-size: .875rem; margin-top: 1.25rem; }
.hf-auth__wait { text-align: center; }
.hf-spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #e8e8e8; border-top-color: var(--hf-accent);
    animation: hf-spin .9s linear infinite; margin: 0 auto 1.25rem; }
@keyframes hf-spin { to { transform: rotate(360deg); } }
.hf-reddy-mark { width: 56px; height: 56px; border-radius: 16px; background: #e6f9fc; color: var(--hf-accent); display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 1rem; }

/* ---------- Модальные окна ---------- */
.modal { --bs-modal-border-radius: var(--hf-radius); --bs-modal-border-width: 0; --bs-modal-padding: 24px; --bs-modal-header-padding: 20px 24px; }
.modal-header { border-bottom: 1px solid var(--hf-line); }
.modal-title { font-weight: 600; font-size: 1.25rem; }
.modal-footer { border-top: 1px solid var(--hf-line); justify-content: flex-start; padding: 16px 24px; }
/* форма между .modal-content и .modal-body: без flex-колонки Bootstrap не ограничивает тело — низ окна обрезается */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; }

@media (max-width: 992px) {
    .hf-shell { grid-template-columns: 1fr; }
    .hf-sidebar { position: static; height: auto; }
    .hf-tiles { grid-template-columns: 1fr 1fr; }
    .hf-settings-panel__head, .hf-settings-panel__body { padding-left: 16px; padding-right: 16px; }
    .hf-split { grid-template-columns: 1fr; gap: 24px; }
    .hf-profile { grid-template-columns: 1fr; margin-left: 0; }
    .hf-kv__row { grid-template-columns: 1fr; gap: .5rem; }
    .hf-sheet__inner { padding: 0; }
    .hf-header__back { margin-left: 24px; }
}

/* Вакансии */
.hf-vacancy-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hf-vacancy-filters .form-select, .hf-vacancy-filters .form-control { width: auto; min-width: 160px; }
.hf-vacancy-card { padding: 16px 0; border-bottom: 1px solid var(--hf-line); }
.hf-vacancy-card__head { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; }
.hf-vacancy-card__title { color: var(--hf-accent, #00a3b4); text-decoration: none; }
.hf-vacancy-card--overdue .hf-vacancy-card__title { color: #d93b3b; }
.hf-badge-closed { font-size: .7rem; font-weight: 700; text-transform: uppercase; background: #e9e9e9; color: #6b6b6b; border-radius: 4px; padding: 2px 6px; }
.hf-deadline--overdue { color: #d93b3b; font-weight: 600; }
.hf-deadline--today { color: #c77700; font-weight: 600; }
.hf-nav__vacancy { display: block; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-pager { display: flex; gap: 8px; margin-top: 16px; }
.hf-pager a.active { font-weight: 700; }
.hf-vacancy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.hf-vacancy-head__crumbs { font-size: 1.25rem; font-weight: 600; }
.hf-vacancy-head__crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hf-vacancy-head__meta { display: flex; gap: 16px; color: var(--hf-muted); }
.hf-vacancy-actions { margin-left: auto; }
.hf-vacancy-state--hold { color: #c77700; }
.hf-vacancy-state--closed { color: var(--hf-muted); }
.hf-vacancy-members { min-width: 280px; }
.hf-tabs__sep { width: 1px; align-self: stretch; background: var(--hf-line); margin: 0 8px; }
/* Свёрнутые пустые этапы: раскрываются в той же строке (не <details> — тот переносит содержимое на новую строку) */
.hf-tabs__collapsed { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; flex-shrink: 0; }
.hf-tabs__toggle { background: none; border: 0; padding: 0; cursor: pointer; }
.hf-tabs__hidden { display: none; align-items: center; gap: 28px; }
.hf-tabs__collapsed.is-open .hf-tabs__hidden { display: inline-flex; }
trix-toolbar .trix-button-group--file-tools,
trix-toolbar .trix-button-group--history-tools,
trix-toolbar .trix-button--icon-strike, trix-toolbar .trix-button--icon-heading-1,
trix-toolbar .trix-button--icon-quote, trix-toolbar .trix-button--icon-code,
trix-toolbar .trix-button--icon-decrease-nesting-level, trix-toolbar .trix-button--icon-increase-nesting-level { display: none; }
trix-editor { min-height: 8rem; background: #fff; }



/* Вакансия: крошки в шапке, вкладки-«пилюли», сетка страницы */
.hf-header__crumbs { margin-left: 92px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1rem; }
.hf-header__crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.hf-header__crumb-sep { color: #8c8c8c; }
.hf-flag { color: #e0322f; fill: #e0322f; }
.hf-tabs__bar--side { flex: 0 0 auto; }
.hf-tabs--vacancy .hf-tabs__item { position: relative; height: 52px; display: inline-flex; align-items: center; gap: 6px; color: var(--hf-ink); font-weight: 600; text-decoration: none; }
.hf-tabs--vacancy .hf-tabs__item--empty { color: var(--hf-muted-2); font-weight: 500; }
.hf-tabs--vacancy .hf-tabs__item.active { color: var(--hf-accent); }
.hf-tabs--vacancy .hf-tabs__item.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--hf-accent); }
.hf-tabs--vacancy .hf-tabs__item.active .hf-counter { background: var(--hf-accent); color: #fff; }
/* «Мои кандидаты / Все кандидаты» (Э8.23 §5.1): своим блоком справа от полосы вкладок, до 1440 px — своей строкой над ней */
.hf-tabs__own { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; background: #fff; border-radius: var(--hf-radius); white-space: nowrap; }
.hf-tabs__own button { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 1440px) {
    .hf-tabs { flex-wrap: wrap; }
    .hf-tabs__own { order: -1; flex-basis: 100%; flex-wrap: wrap; height: auto; min-height: 52px; justify-content: flex-end; }
}
.hf-vacancy-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
@media (max-width: 992px) { .hf-vacancy-body { grid-template-columns: 1fr; } }

/* Поиск вакансий и форма-модалка */
.hf-filterbar__select, .hf-filterbar__btn { border: 0; background: transparent; font-weight: 500; color: var(--hf-ink); padding: 6px 4px; cursor: pointer; }
.hf-filterbar__btn { display: inline-flex; align-items: center; gap: 4px; }
.hf-filterbar__select:focus, .hf-filterbar__btn:focus { outline: 2px solid var(--hf-accent); border-radius: 6px; }
.hf-filterbar__sort { margin-left: auto; }
.hf-vacancy-card { border-bottom: 0; padding: 12px 0; }
.hf-vacancy-card__line { color: var(--hf-ink); font-size: .9375rem; }
.hf-vacancy-card__muted { color: var(--hf-muted); }
.hf-vacancy-card--hold .hf-vacancy-card__title, .hf-vacancy-card--closed .hf-vacancy-card__title { color: var(--hf-muted); }
.hf-modal-page { position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .45); overflow: auto; padding: 32px 16px; }
.hf-modal-page__dialog { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--hf-radius); }
.hf-modal-page__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--hf-line); }
.hf-modal-page__title { font-size: 1.25rem; font-weight: 700; margin: 0 auto 0 0; }
.hf-modal-page__foot { display: flex; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--hf-line); }
.hf-vacancy-form__cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.hf-vacancy-form__main { padding: 24px; border-right: 1px solid var(--hf-line); }
.hf-vacancy-form__side { padding: 24px; }
.hf-vacancy-form__section { border-bottom: 1px solid var(--hf-line); margin-bottom: 16px; padding-bottom: 8px; }
.hf-vacancy-form__quota { display: flex; gap: 8px; }
.hf-vacancy-form__quota input[type=number] { width: 70px; }
.hf-input-narrow { max-width: 250px; }
@media (max-width: 760px) { .hf-vacancy-form__cols { grid-template-columns: 1fr; } .hf-vacancy-form__main { border-right: 0; } }

.hf-vacancy-members .hf-person { flex-wrap: wrap; }
.hf-vacancy-members .hf-person__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hf-stage-picker summary { color: var(--hf-accent); cursor: pointer; font-size: .875rem; }
.hf-stage-picker form { padding: 8px 0; }
trix-editor.form-control { min-height: 8rem; height: auto; }
.hf-vacancy-form__cols { grid-template-columns: minmax(0, 1fr) 290px; }
.hf-vacancy-form__quota input[type=date] { min-width: 0; flex: 1; }
.hf-tabs--vacancy .hf-tabs__bar { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }   /* полоса прокрутки съедала высоту и сдвигала пункты */
.hf-tabs--vacancy .hf-tabs__bar::-webkit-scrollbar { display: none; }
.hf-tabs--vacancy .hf-tabs__item { flex-shrink: 0; }

/* Кандидаты (Э3а-1): список + карточка */
.hf-split-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.hf-split-card--open { grid-template-columns: clamp(260px, 38%, 400px) minmax(0, 1fr); }
.hf-list__rows { display: flex; flex-direction: column; }
.hf-applicant-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--hf-radius); color: var(--hf-ink); text-decoration: none; }
.hf-applicant-row:hover, .hf-applicant-row.active { background: var(--hf-line-soft); }
.hf-applicant-row__body { display: flex; flex-direction: column; min-width: 0; }
.hf-applicant-row__name { font-weight: 600; }
.hf-applicant-row__meta { color: var(--hf-muted); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-list__more { display: block; padding: 12px 14px; }
.hf-sla { display: inline-flex; align-items: center; gap: 2px; color: #fff; background: var(--hf-red); border-radius: 6px; padding: 0 5px; font-size: .75rem; font-weight: 600; }
.hf-card { background: #fff; border-radius: var(--hf-radius); padding: 24px; }
.hf-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hf-card__head { display: flex; justify-content: space-between; gap: 16px; }
.hf-card__name { font-size: 1.75rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.hf-card__job { margin: 4px 0 0; }
.hf-card__photo { width: 160px; height: 160px; border-radius: var(--hf-radius); background: var(--hf-line-soft); display: flex; align-items: center; justify-content: center; color: var(--hf-muted-2); flex-shrink: 0; }
.hf-icon--xl { width: 80px; height: 80px; }
.hf-kv--card { margin: 16px 0; }
.hf-kv--card .hf-kv__row { grid-template-columns: 110px 1fr; }
.hf-messengers { display: inline-flex; gap: 4px; margin-left: 8px; }
.hf-messenger { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: .625rem; font-weight: 700; text-decoration: none; }
.hf-messenger--wa { background: #25d366; }
.hf-messenger--tg { background: #229ed9; }
.hf-messenger--max { background: #8c8c8c; }
.hf-messenger--viber { background: #7360f2; }
.hf-tag { display: inline-block; padding: 1px 8px; margin: 0 4px 4px 0; border-radius: 6px; background: color-mix(in srgb, var(--hf-tag) 18%, #fff); color: var(--hf-ink); font-size: .8125rem; }
/* Чёрный список (Э8.19 §3.2): ярлык у имени в строках и дублях — не переносится, переносится строка */
.hf-tag--blacklist { background: var(--bs-danger); color: #fff; white-space: nowrap; margin: 0 0 0 4px; vertical-align: baseline; }
/* Чёрный список (Э8.19 §3.1): красная плашка с полосой слева; длинная причина сворачивается без JS */
.hf-blacklist { display: flex; align-items: flex-start; gap: 12px; border-left: 4px solid var(--bs-danger); }
.hf-blacklist__body { min-width: 0; }
.hf-blacklist__text, .hf-blacklist__preview, .hf-blacklist__reason > div { overflow-wrap: anywhere; margin-top: 4px; }
.hf-blacklist__preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hf-blacklist:has(details[open]) .hf-blacklist__preview { display: none; }
.hf-blacklist__reason summary { color: var(--bs-danger); cursor: pointer; }
.hf-blacklist__meta { color: var(--hf-muted); font-size: .8125rem; margin-top: 4px; }
.hf-vblock { border-left: 4px solid var(--hf-green, #1db954); background: #f4fbe9; border-radius: var(--hf-radius); padding: 20px 24px; margin: 16px 0; }
.hf-vblock--hired { border-left-color: #2f6fed; background: #eef4ff; }
.hf-vblock--trash { border-left-color: #9aa0a6; background: #f4f5f6; }
.hf-vblock--past { opacity: .75; }
.hf-vblock__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.hf-vblock__stage { font-size: 1.375rem; font-weight: 700; margin: 0; color: var(--hf-green, #1db954); }
.hf-vblock--hired .hf-vblock__stage { color: #2f6fed; }
.hf-vblock--trash .hf-vblock__stage { color: #6b7280; }
.hf-vblock__vacancy { color: var(--hf-green, #1db954); }
.hf-vblock__meta { margin: 4px 0 0; color: var(--hf-muted); font-size: .875rem; }
.hf-feed__filter { display: flex; gap: 12px; margin: 12px 0; font-size: .875rem; }
.hf-feed__filter a { color: var(--hf-muted); text-decoration: none; }
.hf-feed__filter a.active { color: var(--hf-ink); font-weight: 600; }
.hf-feed__entry { padding: 10px 0; }
.hf-feed__entry + .hf-feed__entry { border-top: 1px solid var(--hf-line-soft); }
.hf-feed__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--hf-muted); font-size: .8125rem; }
.hf-feed__meta strong { color: var(--hf-ink); font-weight: 600; }
.hf-feed__comment { margin-top: 4px; }
.hf-feed__comment p:last-child { margin-bottom: 0; }
.hf-feed__mail > summary { cursor: pointer; color: var(--bs-secondary-color); font-size: .875rem; }
.hf-changelog { margin-bottom: 32px; max-width: 760px; }
.hf-changelog__date { color: var(--bs-secondary-color); font-size: .875rem; }
.hf-changelog__title { font-size: 1.25rem; margin: 2px 0 8px; }
.hf-changelog__body h3 { font-size: 1rem; font-weight: 600; margin: 12px 0 4px; }
.hf-changelog__body ul { margin-bottom: 8px; padding-left: 20px; }
.hf-feed__comment a[data-mention-id], .hf-mention { color: var(--bs-link-color); font-weight: 500; }
.hf-mention-host { position: relative; }
.hf-mention-menu { position: absolute; left: 0; top: 100%; z-index: 1060; max-height: 260px; overflow-y: auto; }
.hf-pinned { background: #fffbea; border-radius: var(--hf-radius); padding: 4px 12px; margin-bottom: 8px; }
.hf-double-match { background: var(--bs-warning-bg-subtle); border-radius: 3px; padding: 0 2px; }
.hf-notes { margin-top: 24px; }
@media (max-width: 992px) { .hf-split-card--open { grid-template-columns: 1fr; } }
.hf-vblock__actions { display: flex; gap: 8px; align-items: center; }
.hf-comment-form { margin-top: 12px; }
.hf-comment-form trix-editor { min-height: 3.5rem; background: #fff; }
.hf-feed__menu { margin-left: auto; }
.btn-icon--sm { width: 24px; height: 24px; }
.hf-stage-picker__body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.hf-stage-picker__list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.hf-stage-picker__list label { display: block; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.hf-stage-picker__list label:has(input:checked) { background: var(--hf-ink); color: #fff; }
.hf-stage-picker__list input { display: none; }
.hf-stage-picker:not(:has(input[data-kind="trash"]:checked)) .hf-stage-picker__reason { display: none; }
.hf-stage-picker:not(:has(input[data-kind="hired"]:checked)) .hf-stage-picker__hire { display: none; }
/* чёрный список (Э8.19 §3.3): предупреждение не нужно, когда переводят в отказ; блоки над сеткой — во всю ширину */
.hf-stage-picker:has(input[data-kind="trash"]:checked) .hf-stage-picker__blacklist { display: none; }
.hf-stage-picker__body > .alert { grid-column: 1 / -1; }
.hf-take__group { font-size: .875rem; color: var(--hf-muted); margin: 12px 0 4px; }
.hf-take__item { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; }
.hf-take__item:hover:not([disabled]) { background: var(--hf-line-soft); }
.hf-take__item small { color: var(--hf-muted); }
.hf-take__item[disabled] { opacity: .6; }
.hf-take__attached { margin-top: 12px; color: var(--hf-muted); font-size: .875rem; }
.hf-modal-page { max-width: 720px; margin: 0 auto; }
@media (max-width: 768px) { .hf-stage-picker__body { grid-template-columns: 1fr; } }
.hf-applicant-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.hf-contacts__row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; margin-bottom: 8px; }
.hf-card--deleted .hf-card__name { color: var(--hf-muted); }
.hf-tags__add { padding: 0 8px; }
@media (max-width: 768px) { .hf-applicant-form { grid-template-columns: 1fr; } }
.hf-applicant-row--wide { align-items: flex-start; }
.hf-applicant-row--wide .hf-applicant-row__body { flex: 1; }
.hf-applicant-row__stage { display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 45%; }
.hf-vacancy-list .hf-split-card--open .hf-applicant-row__stage { display: none; }
.hf-kv--card .hf-kv__row { padding: 6px 0; border: 0; align-items: center; }
.hf-kv--card dt { font-weight: 400; color: var(--hf-muted); }
.hf-stage-picker .modal-header { flex-direction: column; align-items: flex-start; gap: 2px; }
/* Баги пилота-2: вакансия с открытой карточкой — две колонки; карточка перестраивается по ширине своей колонки */
.hf-vacancy-body--card { grid-template-columns: minmax(0, 1fr); }
.hf-card-frame { min-width: 0; container-type: inline-size; scroll-margin-top: calc(var(--hf-header-h) + 8px); }
@container (max-width: 520px) {
    .hf-card__head { flex-direction: column-reverse; align-items: flex-start; }
    .hf-card__photo { width: 96px; height: 96px; }
    .hf-kv--card .hf-kv__row { grid-template-columns: 1fr; gap: 2px; }
    .hf-vblock__head { flex-wrap: wrap; }
}
@media (max-width: 992px) { .hf-split-card--open .hf-card-frame { order: -1; } }

/* Э3а-2: окно кандидата с резюме справа (как в HF), загрузка файлов */
.hf-resume-side { border-left: 1px solid var(--bs-border-color); padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.hf-resume-side.is-over { outline: 2px dashed var(--bs-primary); outline-offset: 4px; }
.hf-resume-side.is-loading, .hf-photo-field.is-loading { opacity: .6; pointer-events: none; }
.hf-dropzone { display: flex; align-items: center; gap: 12px; }
.hf-dropzone__file { display: flex; align-items: center; gap: 8px; font-weight: 500; }
/* разбор резюме (Э3а-2б): поля, подставленные из резюме, до правки рекрутером */
.hf-from-resume { background: #f0f7ff; }
.hf-resume-text { white-space: pre-wrap; font: inherit; margin: 0; }
.hf-resume-text--side { max-height: 420px; overflow: auto; color: var(--bs-secondary-color); }
.hf-photo-field { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hf-photo-field__preview { width: 64px; height: 64px; border-radius: 50%; background: var(--bs-tertiary-bg); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.hf-photo-field__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .hf-resume-side { border-left: 0; padding-left: 0; } }
.hf-resume-tabs { margin-top: 24px; }
.hf-resume { padding-top: 16px; }
.hf-resume__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hf-resume-side--solo { border-left: 0; padding-left: 0; }
.hf-card__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hf-avatar--photo { overflow: hidden; }
.hf-avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
@media print {
    body.hf-print * { visibility: hidden; }
    body.hf-print .hf-print-target, body.hf-print .hf-print-target * { visibility: visible; }
    body.hf-print .hf-print-target { position: absolute; inset: 0; display: block !important; }
    body.hf-print .hf-resume__actions { display: none; }
    body.hf-print .hf-print-target .hf-resume__views, body.hf-print .hf-print-target .tab-pane:not(.active) { display: none !important; }
}
/* вкладка «Резюме» со структурой (Э3а-2б) */
.hf-resume__views { margin: 8px 0 12px; }
.hf-resume__actions form { display: inline; }
.hf-resume-structured__item { margin-bottom: 12px; }
.hf-resume-structured__text { white-space: pre-line; }
.hf-attach { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hf-attach a { display: inline-flex; align-items: center; gap: 4px; }
.hf-attach-zone { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.hf-attach-zone__list { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.hf-attach-zone__list:empty { display: none; }
.hf-attach__row { display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.hf-tabs__settings { margin-left: auto; align-self: center; padding: 0 12px; }
.hf-applicant-row__col { color: var(--bs-secondary-color); font-size: .875rem; white-space: nowrap; margin-left: 16px; align-self: center; }
/* Э3а-3: «Картина дня» */
.hf-day { display: flex; flex-direction: column; gap: 16px; }
.hf-day__filters { display: flex; gap: 12px; max-width: 560px; }
.hf-day__group { background: #fff; border-radius: var(--hf-radius); overflow: hidden; }
.hf-day__head, .hf-day__row { display: grid; grid-template-columns: 1fr 120px 120px; gap: 12px; padding: 10px 16px; align-items: start; }
.hf-day__head { background: var(--bs-tertiary-bg); font-weight: 600; font-size: .875rem; }
.hf-day__row + .hf-day__row { border-top: 1px solid var(--hf-line); }
.hf-day__col { text-align: right; color: var(--bs-secondary-color); }
.hf-day__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hf-day__names { font-size: .875rem; margin-top: 4px; color: var(--bs-secondary-color); }
@media (max-width: 768px) { .hf-day__head, .hf-day__row { grid-template-columns: 1fr 70px 70px; } .hf-day__filters { flex-direction: column; } }
/* Э3а-3: групповые действия */
.hf-select { display: inline-flex; cursor: pointer; border-radius: 50%; position: relative; }
.hf-select.is-selected .hf-avatar { outline: 3px solid var(--bs-primary); outline-offset: 1px; opacity: .6; }
.hf-select.is-selected::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bs-primary); }
.hf-bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: var(--bs-tertiary-bg); border-radius: var(--hf-radius); margin-bottom: 8px; }

/* Э3б-3: страница массовой загрузки */
.hf-import__header { background: #fff; border-radius: var(--hf-radius); padding: 16px; margin-bottom: 12px; }
.hf-import__progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.hf-import__bar { width: 240px; max-width: 100%; height: 8px; }
.hf-import__state { color: var(--hf-muted); font-size: .875rem; text-align: right; }
.hf-import__state--parsed { color: var(--hf-green); }
.hf-import__state--failed { color: var(--bs-danger); }
.hf-import__row--gone { opacity: .6; }

/* Поиск по базе кандидатов (Э3б-1) */
/* Режим поиска «как в Хантфлоу»: поле в шапке над колонкой контента, левое меню скрыто, фильтры — белая полоса */
.hf-header__left { display: flex; align-items: center; min-width: 0; }
.hf-header--search .hf-header__left { flex: 1; }
/* 250 px меню + отступы .hf-shell (8 + 8) минус левый отступ шапки (14) — поле начинается над колонкой контента */
.hf-header--search .hf-brand { flex: none; width: 252px; }
.hf-header__searchzone { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.hf-header__search-icon { flex: none; width: 22px; height: 22px; opacity: .85; }
.hf-header__scope { border: 0; background: none; color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; padding: 6px 4px;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; white-space: nowrap; }
.hf-header__scope::after { content: ""; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.hf-header__scope:hover, .hf-header__scope[aria-expanded="true"] { background: #1c1c1c; }
.hf-header__scope-menu { margin-top: 10px !important; }
.hf-header .hf-header__scope-menu .dropdown-item.active { background: #f0f2f4; color: var(--hf-ink); font-weight: 600; }
.hf-header__search { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; color: #fff; font-size: .9375rem; padding: 0 8px; }
.hf-header__search::placeholder { color: rgba(255, 255, 255, .55); }
.hf-header__search::-webkit-search-cancel-button { display: none; }
.hf-header--search .hf-header__right { margin-left: 16px; }
.hf-shell--search .hf-workspace { grid-column: 2; }
.hf-sidebar--search { background: transparent; }   /* в режиме поиска колонка меню пустая, остаётся только «+» */
.hf-searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 52px; padding: 6px 16px; background: #fff;
    border-radius: var(--hf-radius); }
.hf-searchbar__excel { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--hf-ink); text-decoration: none; font-size: .9375rem; }
.hf-searchbar__excel:hover { color: var(--hf-accent, var(--hf-ink)); }
.hf-searchbar__menu { min-width: 260px; max-height: 360px; overflow: auto; padding: 8px 0; border: 0; border-radius: var(--hf-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14); }
.hf-searchbar__menu--area { width: 450px; max-height: none; overflow: visible; padding: 16px; }
.hf-searchbar__menu--area.show { display: flex; flex-direction: column; gap: 16px; }
.hf-main--bare { background: transparent; padding: 0; min-height: 0; }
.hf-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 8px; }
.hf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; background: #fff; color: var(--hf-ink); font-size: .8125rem; }
.hf-search__total { margin: -16px 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--hf-line); color: var(--hf-muted); font-weight: 600; font-size: .875rem; }
.hf-search__hint { padding: 4px 0; margin: 0; }
@media (max-width: 992px) {
    .hf-shell--search .hf-workspace { grid-column: 1; }
    .hf-sidebar--search { display: none; }
    .hf-header--search .hf-brand { width: auto; margin-right: 12px; }
}
@media (max-width: 575px) { .hf-header--search .hf-brand { font-size: 0; gap: 0; } .hf-header__search-icon { display: none; } .hf-header__search { min-width: 60px; }
    .hf-header--search .hf-bell, .hf-header--search .hf-header__sep { display: none; } }

/* волшебная кнопка (spec Э3б-2 §3.1): «клавиши» Alt + S */
.hf-magic-keys { font-size: 1.25rem; margin-bottom: .5rem; }
.hf-magic-keys kbd { padding: .3rem .7rem; }
.hf-import-drop { border: 2px dashed var(--hf-border, #ccc); border-radius: var(--hf-radius); padding: 32px 16px; text-align: center; cursor: pointer; }
.hf-import-drop.is-over { border-color: var(--bs-primary); background: rgba(0, 0, 0, .03); }
.hf-import-files li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.hf-import-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-import-files__state { color: var(--hf-muted); font-size: .875rem; }
.hf-import-files__state--error { color: var(--bs-danger); }
.hf-import-window { display: contents; }

/* Блок живого обновления — обёртка без своей коробки: вёрстка вкладок и колокольчика не меняется (spec Э3б-3 §5.2) */
.hf-live-block { display: contents; }
.hf-live-notice:empty { display: none; }
.hf-live-notice { padding: 6px 12px; font-size: 13px; background: #fff8e1; border-bottom: 1px solid #f0e2a8; }

/* Календарь и события (spec Э5-интервью): поля окна события, блок «Интервью» в окне «Сменить этап» */
.hf-stage-picker__interview { margin-top: 12px; }
.hf-stage-picker__interview-fields { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hf-line); }
.hf-event-fields__people { max-height: 160px; overflow-y: auto; padding: 6px 10px; border: 1px solid var(--hf-line); border-radius: 8px; }
.hf-event-fields__people.is-invalid { border-color: var(--bs-danger); }
.hf-event-fields__people .form-check[hidden] { display: none; }
.hf-comment-form__event.is-busy { opacity: .45; cursor: not-allowed; }
.hf-event-window__head { flex-direction: column; align-items: flex-start; gap: 2px; }
/* форма окна события лежит во вкладке, а не прямо в .modal-content: flex-колонка по всей цепочке — иначе подвал
   с «Сохранить» обрезается, а тело не прокручивается (ревью К1) */
.hf-event-window .tab-content, .hf-event-window .tab-pane.active { display: flex; flex-direction: column; min-height: 0; }
.hf-event-window .tab-pane > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.hf-event-window .tab-pane > form > .modal-body { overflow-y: auto; }
.hf-event-window__tabs { padding: 0 16px; }
.hf-event-show__list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.hf-event-show__list dt { color: var(--hf-muted); font-weight: 400; }
.hf-event-show__list dd { margin: 0; overflow-wrap: anywhere; }
/* событие под записью ленты */
.hf-feed-event { margin-top: 4px; }
.hf-feed-event__open { color: inherit; text-decoration: none; font-weight: 600; }
.hf-feed-event__open:hover { text-decoration: underline; }
.hf-feed-event--cancelled .hf-feed-event__open { text-decoration: line-through; color: var(--hf-muted); }
.hf-feed-event__mark { margin-left: 6px; color: var(--bs-danger); font-size: .8125rem; }
.hf-feed-event__line { color: var(--hf-muted); font-size: .875rem; overflow-wrap: anywhere; }
/* страница «Календарь»: сетка пн–вс; уже 768 px — список дней с событиями */
.hf-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hf-cal__nav { display: flex; align-items: center; gap: 8px; }
.hf-cal__title { margin: 0 0 0 8px; font-size: 1.5rem; }
.hf-cal__who { min-width: 220px; }
.hf-cal__grid { border-top: 1px solid var(--hf-line); border-left: 1px solid var(--hf-line); }
.hf-cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hf-cal__weekday { padding: 6px 8px; border-right: 1px solid var(--hf-line); border-bottom: 1px solid var(--hf-line); color: var(--hf-muted); font-size: .8125rem; text-transform: capitalize; }
.hf-cal__cell { position: relative; min-height: 112px; padding: 4px 6px; border-right: 1px solid var(--hf-line); border-bottom: 1px solid var(--hf-line); display: flex; flex-direction: column; gap: 2px; }
.hf-cal__cell--weekend, .hf-cal__weekday--weekend { background: rgba(0, 0, 0, .03); }
.hf-cal__cell--out .hf-cal__date { color: var(--hf-muted); opacity: .6; }
.hf-cal__date { align-self: flex-end; min-width: 24px; height: 24px; line-height: 22px; text-align: center; font-size: .8125rem; border: 1px solid transparent; border-radius: 50%; }
.hf-cal__cell--today .hf-cal__date { border-color: var(--hf-accent); color: var(--hf-accent); font-weight: 600; }
.hf-cal__event { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--hf-ink); text-decoration: none; border-radius: 4px; padding: 0 4px; }
a.hf-cal__event:hover { background: rgba(0, 0, 0, .06); }
.hf-cal__event--busy { color: var(--hf-muted); }
.hf-cal__time { color: var(--hf-muted); }
.hf-cal__more { align-self: flex-start; padding: 0 4px; border: 0; background: none; color: var(--hf-accent); font-size: .8125rem; }
.hf-cal__all { position: absolute; z-index: 5; top: 28px; left: 4px; min-width: 220px; max-width: 320px; padding: 8px; background: #fff; border: 1px solid var(--hf-line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.hf-cal__all[hidden] { display: none; }
/* суббота и воскресенье — список дня открывается влево, внутри сетки (ревью К5) */
.hf-cal__cell:nth-child(n+6) .hf-cal__all { left: auto; right: 4px; }
.hf-cal__all-title { margin-bottom: 4px; color: var(--hf-muted); font-size: .8125rem; }
.hf-cal__list { display: none; }
.hf-cal__list-day { padding: 8px 0; border-bottom: 1px solid var(--hf-line); }
.hf-cal__list-date { margin: 0 0 4px; font-size: .9375rem; }
.hf-cal__list-day--today .hf-cal__list-date { color: var(--hf-accent); }
@media (max-width: 767.98px) {
    .hf-cal__grid { display: none; }
    .hf-cal__list { display: block; }
    .hf-cal__title { font-size: 1.125rem; }
}

/* участники (spec «Доделки пилота» §4): поиск на всю ширину, «В Excel» под ним справа */
.hf-members-search { margin-bottom: 4px; }
.hf-members-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; font-size: .875rem; }
.hf-person[hidden] { display: none; }

/* шаблоны мессенджеров (spec «Доделки пилота» §2.3) */
.hf-templates__heading { font-size: 1.25rem; margin: 0 0 4px; }
.hf-templates__list { list-style: none; margin: 0; padding: 0; }
.hf-templates__row { border-bottom: 1px solid var(--hf-line); }
.hf-templates__row[hidden] { display: none; }
.hf-templates__open { display: flex; flex-direction: column; padding: 10px 4px; color: inherit; text-decoration: none; }
a.hf-templates__open:hover { background: rgba(0, 0, 0, .03); }
.hf-templates__name { font-weight: 600; }
.hf-templates__preview { color: var(--hf-muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-template-form { display: grid; grid-template-columns: 1fr 200px; gap: 24px; }
.hf-template-form__vars { width: auto; }
@media (max-width: 768px) { .hf-template-form { grid-template-columns: 1fr; } }

/* Центр аналитики (spec Э6 §5): селекты и фильтры переносятся на узком экране, широкие таблицы прокручиваются внутри
   карточки с закреплённой первой колонкой, «Среднее время на этапе» — полосы шириной --w (CSS, без библиотеки графиков) */
.hf-analytics__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hf-analytics__head .hf-page-title { margin-bottom: 1rem; }
.hf-report__export { margin-bottom: 1rem; }
.hf-report__export .btn { display: inline-flex; align-items: center; gap: 6px; }
.hf-report__filters { margin-bottom: 16px; }
.hf-report__pick { margin-bottom: 12px; }
.hf-report__pick .form-select { width: auto; min-width: 0; max-width: 100%; }
.hf-report__field { min-width: 0; max-width: 100%; }
.hf-report__field .form-label { margin-bottom: 2px; color: var(--hf-muted); font-size: .8125rem; }
.hf-report__field .form-select { width: auto; max-width: 100%; }
.hf-report { min-width: 0; }
.hf-report__title { font-size: 1.375rem; margin: 0 0 4px; }
.hf-report__conditions { color: var(--hf-muted); font-size: .875rem; padding-bottom: 12px; border-bottom: 1px solid var(--hf-line); }
.hf-report__subtitle { font-size: 1.125rem; margin: 24px 0 8px; }
.hf-report__hint { color: var(--hf-muted); cursor: help; }
.hf-report__kpis { gap: 16px 40px; margin: 8px 0 16px; }
.hf-report__kpi-value { font-size: 2.5rem; font-weight: 700; line-height: 1.1; }
.hf-report__kpi-label { color: var(--hf-muted); font-size: .875rem; }
.hf-report__scroll { overflow-x: auto; max-width: 100%; margin-bottom: 8px; }
.hf-report__table { width: auto; min-width: 100%; margin: 0; font-size: .875rem; }
.hf-report__table th, .hf-report__table td { white-space: nowrap; vertical-align: top; }
.hf-report__table thead th { font-weight: 600; color: var(--hf-muted); }
.hf-report__group { text-align: left; }
.hf-report__num { text-align: right; }
.hf-report__sticky { position: sticky; left: 0; z-index: 1; background: #fff; max-width: 260px; white-space: normal !important; }
.hf-report__total > * { font-weight: 600; background: var(--hf-row); }
.hf-report__total > .hf-report__sticky { background: var(--hf-row); }
.hf-report__former { color: var(--hf-muted); font-size: .75rem; font-weight: 400; }
.hf-report__others > * { color: var(--hf-muted); }
.hf-report__stage-avg { margin-bottom: 16px; }
.hf-report__bars { margin: 0; max-width: 720px; }
.hf-report__bar-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 3rem; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--hf-line-soft); }
.hf-report__bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.hf-report__bar-track { display: block; height: 18px; }
.hf-report__bar { display: block; height: 100%; width: var(--w, 0); min-width: 2px; background: var(--hf-yellow); }
.hf-report__bar-value { font-size: .875rem; }
@media (max-width: 575.98px) {
    .hf-report__bar-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 2.5rem; }
    .hf-report__kpi-value { font-size: 1.75rem; }
}
