/* =============================================================================
   OBSERVER: Стили раздела «Поиск напарников» (Доска вербовки 1896)
   Дизайн-система: Bayou Lantern (v5)
   
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ ПАЛИТРЫ (из bayou.css):
   --bg: #090f11           (глубокий темный графитовый фон байу)
   --panel: #111a19        (базовые панели карточек)
   --raised: #1c2421       (приподнятые элементы, ховеры)
   --line: #4e4735         (тонкие гравированные разделители)
   --line-strong: #7b6748  (акцентные рамки)
   --text: #f6efde         (теплый пергаментный текст)
   --muted: #b8b4ab        (приглушенные подписи)
   --faint: #a39e91        (второстепенные метки)
   --brass: #c5a071        (тусклая латунь — акцент)
   --bright: #efd4a4       (светлая латунь — активный акцент)
   --fire: #ff8b3e         (теплый огонь)
   
   СВЕЧЕНИЕ:
   Теплый amber-glow (0 0 16px rgba(224,184,108,.28)) только на активных
   кнопках, выбранных чипах фильтров и звездах MMR. Холодный неон запрещен.
   
   БРЕЙКПОИНТЫ АДАПТИВНОСТИ:
   - <= 390px (мобильные телефоны): карточка на всю ширину, кнопки переносятся
   - <= 760px (планшеты / мобильный лейаут): скрывается сайдбар, компактные ники
   - <= 1200px: адаптация строки быстрого подбора и рекомендаций
   ============================================================================= */

/* Доска вербовки — специфичные доборки поверх bayou.css */
/* Штамп состояния — в правом верхнем углу, но не поверх года «1896»
   в шапке жетона. Фон непрозрачный: повёрнутый штамп иначе просвечивает текст. */
.hunter .stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: #1a221c;
}
.hunter:has(> .stamp) .hunter-label { padding-right: 112px; }
.hunter.mine { border-color: #c8a06a; }

/* подстрока «ПК · 840 ч» под именем */
.hunter .sub { display: block; color: var(--faint); font-size: 12px; margin-top: 3px; }
.hunter .identity > div { min-width: 0; }
.hunter .identity { align-items: flex-start; }
.hunter .identity .name { line-height: 1.15; overflow-wrap: anywhere; }
/* «⋯» не должен отъедать ширину у ника: иначе длинное имя рвётся в три строки */
.more-wrap { position: absolute; top: 50px; right: 14px; z-index: 3; }
.hunter:has(.more-wrap) .identity { padding-right: 40px; }
.team-page .queue-summary { flex-wrap: wrap; align-items: center; }
.team-page .queue-summary .metric-inline { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 760px) {
    /* 27px из bayou на узкой карточке рвёт длинный ник в три обрубка */
    .hunter .name { font-size: 22px; }
}

/* меню «⋯»: пункт не наследует ширину кнопки-троеточия, иначе подпись вылезает. */
.more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10;
    width: max-content;
    min-width: 168px;
    max-width: 220px;
    box-sizing: border-box;
    background: linear-gradient(140deg, #253024, #0c1715);
    border: 1px solid var(--brass);
    box-shadow: inset 0 0 0 3px #152018, 0 12px 40px #000b;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    padding: 6px;
}
.more-menu .btn,
.team-page .hunter.compact .more-menu .btn {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    padding: 8px 12px;
    justify-content: flex-start;
    white-space: nowrap;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* строки списков в шторке «Зовы и сборы» */
.drawer-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #a5844b35;
    background: transparent;
    color: var(--text);
    padding: 12px 4px;
    min-height: 44px;
    cursor: pointer;
}
.drawer-row:hover { background: #9d79441a; }
.drawer-row:last-child { border-bottom: 0; }

/* быстрый подбор: три селекта + кнопка в один ряд.
   Пока сайдбар на экране (прячется только с 760), колонка уже не вмещает
   «звёзды: не знаю» в третьем селекте — текст обрезается. С 1200 сворачиваем
   в две колонки и кнопку на всю ширину. */
.quick-form select { flex: 1; min-width: 130px; }
.quick-form .btn { flex-shrink: 0; }
@media (max-width: 1200px) {
    .quick-form { flex-wrap: wrap; }
    .quick-form select { flex: 1 1 calc(50% - 8px); min-width: calc(50% - 8px); }
    .quick-form .btn { flex: 1 1 100%; width: 100%; }
}

/* шапка панели: в узкой колонке (телефон и планшет с сайдбаром) заголовок
   и подпись не делят одну строку — «Быстрый подбор» ломался пополам. */
.team-page .panel { container-type: inline-size; }
@container (max-width: 640px) {
    .panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 6px;
    }
    .panel-head > h2 { flex: 1 1 100%; min-width: 0; }
}

/* бейдж внутри плитки роли визарда */
.choice .badge { margin-top: 8px; align-self: flex-start; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.choice small { color: var(--muted); }

/* часы в строке времени карточки (18×18, как в стандарте v5) */
.hunter .time .ic { color: var(--brass); }

/* системная строка чата сбора — центрированная, без рамки */
.bubble.sys {
    background: transparent;
    border: 0;
    box-shadow: none;
    align-self: center;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    max-width: 100%;
}

/* привязка Steam в визарде: текст и кнопки переносятся на узком экране */
.steam-bound { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.steam-bound-text { flex: 1 1 180px; min-width: 0; }
.steam-bound-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-steam { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
    .steam-bound-actions, .chat-steam { width: 100%; }
    .steam-bound-actions .btn, .chat-steam .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- компактный обзор кандидатов ---------- */
/* Жетон в онбординге остаётся плакатом. На доске та же информация укладывается
   в карточку, которую можно пробежать глазами: кто, жёсткие условия, роль, когда. */
.team-page .board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.team-page .board-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.team-page .board-title h2 { margin: 0; }
.team-page .board-count { color: var(--muted); font: 14px/1.5 Inter, sans-serif; }
.team-page > #onboard:first-child { margin-top: 8px; }
.team-page .quick-match > .pad:has(> #qm-grid:empty) { display: none; }
.team-page .quick-match .panel-head > .meta { max-width: 480px; font-size: 12px; line-height: 1.5; }
.board-views { display: flex; gap: 12px; flex-wrap: wrap; }
.saved-hint { margin: 0 0 12px; }

.hunter.compact {
    padding: 12px 14px;
    gap: 8px;
}
.hunter.compact .hc-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.hunter.compact .hc-av {
    width: 36px;
    height: 36px;
    flex: none;
    object-fit: cover;
}
.hunter.compact .hc-id { min-width: 0; flex: 1; }
.hunter.compact .name {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hunter.compact .hc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin-top: 2px;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.3;
}
.hunter.compact .stars { font-size: 12px; letter-spacing: 0; }
.hunter.compact .hc-mic.talk { color: var(--brass); }
.hunter.compact .hc-mic.none { color: var(--blood); }
.hunter.compact .hc-tools {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    margin: -6px -6px 0 0;
}
.hunter.compact .more-wrap { position: relative; top: auto; right: auto; }
.hunter.compact .more-wrap .btn { width: 36px; min-width: 36px; padding: 0; justify-content: center; }
.hunter.compact .hc-facts .chip { display: inline-flex; align-items: center; }
.hunter.compact .fav-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.hunter.compact .fav-btn.on,
.hunter.compact .fav-btn:hover { color: var(--brass); }
.hunter.compact .fav-btn:focus-visible { outline: 1px solid var(--brass); outline-offset: 2px; }
.hunter.compact .hc-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.hunter.compact .hc-facts .chip {
    font-size: 11px;
    padding: 1px 6px;
    line-height: 1.45;
    gap: 4px;
}
.hunter.compact .hc-when {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
}
.hunter.compact .hc-when .when {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hunter.compact .hc-when .ic { color: var(--brass); flex: none; }
.hunter.compact blockquote,
.hunter.compact .phrase {
    margin: 0;
    padding: 0;
    min-height: 0;
    font-family: inherit;
    font-style: normal;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hunter.compact .match {
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.35;
}
.hunter.compact .raid-line { margin: 0; font-size: 12px; }
.hunter.compact .hc-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 6px 8px;
    border-left: 2px solid var(--brass);
    background: #b18a2b14;
}
.hunter.compact .hc-note span {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brass);
}
.hunter.compact .fav-note {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    min-height: 32px;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 2px 0;
}
.hunter.compact .fav-note:focus { outline: none; border-bottom-color: var(--brass); }
.hunter.compact .hc-act { margin-top: auto; }
.hunter.compact .hc-act .btn { width: 100%; margin-top: 0; }
.hunter.compact.cold .hc-id,
.hunter.compact.cold .hc-facts,
.hunter.compact.cold blockquote { opacity: .55; }
.hunter.compact.off { border-style: dashed; }

@media (max-width: 760px) {
    .hunter.compact { padding: 12px; gap: 8px; }
    .hunter.compact .name { font-size: 16px; }
    .hunter.compact .fav-btn,
    .hunter.compact .more-wrap .btn { width: 44px; height: 44px; min-height: 44px; }
    .hunter.compact .hc-act .btn { min-height: 44px; }
    .board-views { width: 100%; }
    .board-views .btn.sm { flex: 1; justify-content: center; min-height: 44px; }
}

/* ---------- единый ритм отступов доски ---------- */
/* Локальные правила: общая дизайн-система и структура страниц не меняются. */
.team-page {
    --team-section-gap: 32px;
    --team-panel-pad: 20px;
    --team-card-pad: 16px;
}
.team-page .section-space { margin-top: var(--team-section-gap); }
.team-page .section-title { margin-bottom: 16px; }
.team-page .panel-head { padding: 16px var(--team-panel-pad); gap: 8px 16px; }
.team-page .panel-head h2 { line-height: 1.3; }
.team-page .pad { padding: var(--team-panel-pad); }
.team-page .grid3 { gap: 16px; }
.team-page .queue-summary { padding: 12px var(--team-panel-pad); gap: 12px 20px; margin-bottom: 0; }
.team-page #onboard { scroll-margin-top: 24px; }
.team-page #onboard > .stack { gap: 16px; }
.team-page #onboard > .stack > .actions { gap: 8px 12px; }

/* В шапке две вложенные группы действий: мобильный margin не суммируется. */
.content:has(> .team-page) > .page-head .head-actions .head-actions {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
}
.section-team .footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    margin-top: 32px;
    padding: 20px 0 24px;
    gap: 16px 24px;
    border-top: 1px solid #b4915d44;
    background: none;
}
.section-team .footer > .flex { justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.section-team .footer .foot-req { grid-column: 1 / -1; line-height: 1.6; }

/* Текст и действия отступают от внутренней декоративной рамки. */
.team-page .hunter.compact { padding: var(--team-card-pad); gap: 12px; }
.team-page .hunter.compact .hc-top { gap: 12px; }
.team-page .hunter.compact .hc-tools { margin: -4px -4px 0 0; gap: 4px; }
.team-page .hunter.compact .hc-facts { gap: 6px; }
.team-page .hunter.compact .hc-facts .chip { padding: 2px 6px; }
.team-page .hunter.compact .hc-when { align-items: flex-start; gap: 8px; line-height: 1.4; }
.team-page .hunter.compact .hc-when .when { white-space: normal; overflow-wrap: anywhere; }
.team-page .hunter.compact blockquote { line-height: 1.45; }
.team-page .hunter.compact .match,
.team-page .hunter.compact .hc-note { padding: 8px 10px; line-height: 1.45; }
.team-page .hunter.compact .hc-act { padding-top: 4px; }

/* Подписи фильтров, поля и счётчик получают отдельные интервалы. */
.team-page .filterbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    padding: var(--team-panel-pad);
    gap: 16px 12px;
    margin-bottom: 20px;
}
.team-page .filterbar .field { min-width: 0; gap: 8px; }
.team-page .filterbar #fcount { grid-column: 1 / -1; white-space: nowrap; }
.team-page .quick-form { padding: 16px var(--team-panel-pad); gap: 12px; }
.team-page .quick-form select { min-width: 0; }

/* Раскрытое меню — часть палитры Bayou; сохраняем нативные клавиши и select. */
@supports (appearance: base-select) {
    .team-page select,
    .team-page select::picker(select) { appearance: base-select; }
    .team-page select { background-image: none; padding-inline-end: 12px; }
    .team-page select::picker-icon { color: var(--brass); transition: transform .15s ease; }
    .team-page select:open::picker-icon { transform: rotate(180deg); }
    .team-page select::picker(select) {
        margin-block: 6px;
        padding: 6px;
        border: 1px solid #aa8c57;
        border-radius: 2px;
        background: #101a16;
        color: var(--text);
        box-shadow: 0 12px 32px #0009, inset 0 0 0 2px #1e281d;
        max-height: 320px;
        overflow-y: auto;
        font: 14px/1.4 Inter, sans-serif;
    }
    .team-page select option { min-height: 40px; padding: 9px 12px; gap: 12px; color: var(--text); background: transparent; }
    .team-page select option:hover,
    .team-page select option:focus-visible { background: #303a29; color: var(--bright); outline: 1px solid #a88d5055; outline-offset: -1px; }
    .team-page select option:checked { background: #a584492e; color: var(--bright); }
    .team-page select option::checkmark { color: var(--brass); margin-left: auto; order: 1; }
    .team-page select option:disabled { color: var(--faint); opacity: .5; }
}

/* Анкета: одинаковые поля панелей, спокойные интервалы, свободные кнопки. */
.team-page .wizard { gap: 24px; }
.team-page .wizard { align-items: start; }
/* container-type у .panel обнуляет min-content: колонка визарда иначе схлопывается в 0. */
.team-page .wizard > #wiz-main,
.team-page .wizard > .sticky { width: 100%; min-width: 0; }
.team-page .wizard .panel { width: 100%; }
.team-page .when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-page .when-row > select { flex: 1 1 108px; min-width: 0; width: auto; }
.team-page .step-track { gap: 12px; padding-bottom: 16px; margin-bottom: 24px; }
.team-page .wizard .field { margin-bottom: 20px; }
.team-page .wizard .field:last-child { margin-bottom: 0; }
.team-page .wizard .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-page .wizard .choice { min-width: 0; padding: 16px; gap: 8px; }
.team-page .wizard .choice strong { margin: 0; line-height: 1.25; }
.team-page .wizard .choice small { line-height: 1.45; }
.team-page .wizard .choice .badge { margin-top: 4px; }
.team-page .wizard .field .stack > .flex > select { width: auto; min-width: 0; flex: 1 1 96px; }
.team-page .wizard-foot { margin-top: 24px; padding-top: 16px; gap: 8px; flex-wrap: wrap; }
.team-page .wizard-foot .btn { min-height: 44px; }
.team-page .wizard-foot .btn.primary { margin-left: auto; }
.team-page .wizard > .sticky { gap: 16px; }

/* У шторки единая ось заголовка и кнопки закрытия. */
#tdrawer .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
#tdrawer .drawer-head > .flex { min-width: 0; gap: 12px; }
#tdrawer .drawer-head h3 { margin: 0; line-height: 1.3; }
#tdrawer .drawer-head > .btn { flex-shrink: 0; min-height: 44px; }
#tdrawer .chat-body { min-height: 0; padding: 20px; gap: 16px; }
#tdrawer .drawer-row { padding: 16px 0; gap: 12px; }
#tdrawer .chat-input { padding: 16px 20px; gap: 12px; }
#tdrawer .chat-input input { min-width: 0; }

@media (min-width: 1251px) {
    .team-page .filterbar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .team-page { --team-section-gap: 24px; --team-panel-pad: 16px; }
    .team-page .section-title { margin-bottom: 12px; }
    .team-page .panel-head { padding-block: 16px; }
    .team-page .filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-page .filterbar .field:last-of-type { grid-column: 1 / -1; }
    .team-page .quick-form select { flex: 1 1 calc(50% - 6px); }
    .team-page .wizard .choice { padding: 14px; }
    .team-page .wizard-foot .btn.primary { flex: 1 1 100%; }
    .section-team .footer { grid-template-columns: minmax(0, 1fr); margin-top: 24px; padding: 20px 0 calc(96px + env(safe-area-inset-bottom)); }
    .section-team .footer > .flex { justify-content: flex-start; gap: 12px 16px; }
    #tdrawer .drawer-head,
    #tdrawer .chat-body { padding: 16px; }
    #tdrawer .chat-input { padding: 16px; }
}

/* ---------- портретные вербовочные жетоны ---------- */
.team-page .hunter.compact {
    padding: 18px;
    gap: 12px;
    min-height: 560px;
    background: linear-gradient(160deg, #19211b, #0e1715 65%);
    border-color: #89724b;
    box-shadow: inset 0 0 0 3px #111a16, 0 12px 28px #0005;
}
.team-page .hunter.compact::before { z-index: 1; border-color: #a78c5640; }
.team-page .hunter::after { content: none; }
.team-page .hunter.compact > :not(.hc-cover) { position: relative; z-index: 2; }
.team-page .hc-cover {
    position: relative;
    height: 188px;
    flex: none;
    margin: -18px -18px 0;
    overflow: hidden;
    background: #0d1712;
    border-top: 2px solid #ac8750;
}
.team-page .hc-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    opacity: .92;
    mask-image: linear-gradient(#000 42%, #000c 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(#000 42%, #000c 70%, transparent 100%);
}
.team-page .hc-portrait.is-empty {
    background: radial-gradient(ellipse at 50% 28%, #2a3328 0%, transparent 62%), #101915;
}
.team-page .hc-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0e171544, transparent 35%, #0e171522), linear-gradient(0deg, #19211b, transparent 45%);
    pointer-events: none;
}
.team-page .hc-register {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    color: var(--bright);
    font: 9px/1.4 var(--numeric);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.team-page .hc-status,
.team-page .hc-number { padding: 3px 6px; border: 1px solid #ad8a4d80; background: #0c1512c9; }
.team-page .hc-status { display: inline-flex; align-items: center; gap: 6px; }
.team-page .hc-status::before { content: ''; width: 4px; height: 4px; flex: none; background: #b6ba8a; border-radius: 50%; }
.team-page .hc-number { white-space: nowrap; color: var(--brass); }
.team-page .hunter.compact > .more-wrap { position: absolute; top: 48px; right: 14px; bottom: auto; z-index: 6; }
.team-page .hunter.compact > .more-wrap > .btn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; background: #0e1715cc; border-color: #9d835855; }
.team-page .hunter.compact .hc-top { align-items: center; gap: 12px; margin-top: -42px; padding-right: 0; }
.team-page .hunter.compact .hc-av { width: 48px; height: 56px; border-color: #b3945e; background-color: #17201b; font-size: 25px; position: relative; z-index: 3; }
.team-page .hunter.compact .hc-av.has-pic { display: block; overflow: hidden; padding: 0; }
.team-page .hunter.compact .hc-av.has-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.team-page .hc-role { display: block; margin-bottom: 3px; font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); }
.team-page .hunter.compact .name { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; white-space: normal; overflow-wrap: anywhere; }
.team-page .hunter.compact .hc-meta { font-size: 10px; gap: 3px 5px; margin-top: 5px; }
.team-page .hunter.compact .hc-meta .stars { color: #d1b57c; font-size: 10px; }
.team-page .hunter.compact .hc-facts { gap: 5px; }
.team-page .hunter.compact .hc-facts .chip { font-size: 10px; padding: 2px 5px; border-color: #9b845755; background: #0e171580; }
.team-page .hunter.compact .hc-facts .chip.selected { background: #a7844720; color: #d9c299; border-color: #ab8a4b80; box-shadow: none; }
.team-page .hunter.compact blockquote {
    -webkit-line-clamp: 3;
    padding: 5px 0 5px 10px;
    border-left: 1px solid #b49b68;
    background: linear-gradient(90deg, #b69b6010, transparent);
    font: italic 15px/1.5 var(--serif);
    color: #c6c0ad;
}
.team-page .hunter.compact .match { padding: 8px 10px; font-size: 11px; background: #a1a3760c; border-left-color: #8b916a; color: #b6bba1; }
.team-page .hunter.compact .raid-line { color: var(--brass); font-size: 11px; }
.team-page .hc-bottom { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 16px; }
.team-page .hunter.compact .hc-when { padding-top: 12px; border-top: 1px solid #b2965735; font-size: 11px; gap: 6px; }
.team-page .hunter.compact .hc-when .ic svg { width: 14px; height: 14px; }
.team-page .hunter.compact .hc-act { display: flex; align-items: stretch; gap: 8px; padding: 0; margin: 0; }
.team-page .hunter.compact .hc-act > .btn {
    width: auto;
    min-width: 0;
    flex: 1;
    min-height: 44px;
    padding: 10px 8px;
    background: linear-gradient(180deg, #d0ad73, #987642);
    color: #171a12;
    border-color: #c2a16a;
    box-shadow: inset 0 0 0 2px #c9ac7540;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 10px;
    font-weight: 700;
}
.team-page .hunter.compact .hc-act > .btn:hover { background: linear-gradient(180deg, #e4c58e, #b08d55); }
.team-page .hunter.compact .hc-act > .btn:disabled { background: #18211a; color: var(--faint); border-color: #87765355; }
.team-page .hunter.compact .hc-act .fav-btn { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #a18a5855; background: #101914; color: var(--brass); }
.team-page .hunter.compact .hc-act .fav-btn.on { background: #b18a2b25; color: var(--bright); border-color: var(--brass); }
.team-page .hunter.compact.cold .hc-portrait,
.team-page .hunter.compact.off .hc-portrait { opacity: .35; filter: grayscale(1); }
.team-page .hunter.compact.mine { border-color: #c5a071; }
.team-page #feed,
.team-page #reco-grid,
.team-page #qm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
    justify-content: start;
    align-items: stretch;
    gap: 16px;
}
.team-page #feed > .hunter,
.team-page #reco-grid > .hunter,
.team-page #qm-grid > .hunter { min-width: 0; max-width: 260px; }
.team-page .wizard .hunter.compact { min-height: 480px; }
.team-card-example { min-width: 0; }
.team-card-example .hunter.compact { width: 100%; max-width: 380px; margin-inline: auto; }
.team-card-example .panel-head h2 { font-size: 22px; }
.team-about-hero.hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 0 40px;
}
.team-about-copy { min-width: 0; padding-top: 20px; }
.team-about-hero .eyebrow { line-height: 1.6; font-size: 10px; letter-spacing: .16em; margin-bottom: 16px; }
.team-about-hero h1 { font-size: clamp(42px, 4vw, 62px); line-height: 1.05; }
.team-about-hero .team-about-copy > p { max-width: 480px; margin: 20px 0 24px; line-height: 1.65; font-size: 16px; }
.team-about-hero .actions { gap: 12px; }
.team-about-hero .team-about-copy > p.meta { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.team-about-proof { margin-top: 28px; padding-top: 24px; border-top: 1px solid #a58d5840; max-width: 480px; }
.team-about-proof h2 { font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
.team-about-proof ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.team-about-proof li { display: flex; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.team-about-proof li > span:first-child { color: var(--brass); flex: none; }
.team-about-hero .team-card-example { margin: 0; }
.team-about-hero .team-card-example figcaption { max-width: 300px; margin: 16px auto 0; font-size: 11px; line-height: 1.6; color: var(--faint); text-align: center; }
@media (max-width: 1100px) and (min-width: 761px) {
    .team-about-hero.hero { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
    .team-about-hero .actions { align-items: flex-start; }
}
@media (max-width: 900px) and (min-width: 761px) {
    .team-about-hero.hero { grid-template-columns: minmax(0, 1fr); }
    .team-about-hero .team-card-example { width: 340px; justify-self: center; }
}
@media (max-width: 1000px) and (min-width: 761px) {
    .section-team .footer { grid-template-columns: minmax(0, 1fr); }
    .section-team .footer > .flex { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .team-about-hero.hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 16px 0 28px; }
    .team-about-copy { padding-top: 0; }
    .team-about-hero h1 { font-size: clamp(38px, 10vw, 48px); }
    .team-about-hero .team-about-copy > p { margin: 18px 0 20px; }
    .team-about-proof { padding-top: 20px; margin-top: 24px; }
    .team-about-hero .team-card-example { width: 100%; max-width: 380px; margin-inline: auto; }
}
@media (max-width: 760px) {
    .team-page #feed { grid-template-columns: minmax(0, 1fr); }
    .team-page #feed > .hunter,
    .team-page #reco-grid > .hunter,
    .team-page #qm-grid > .hunter { max-width: none; }
    .team-page .hunter.compact { min-height: 520px; }
    .team-page .hc-cover { height: 200px; }
    .team-page .hunter.compact > .more-wrap { top: 46px; right: 12px; }
    .team-page .hunter.compact > .more-wrap > .btn { width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 400px) {
    .team-page .filterbar { grid-template-columns: minmax(0, 1fr); }
    .team-page .filterbar .field:last-of-type { grid-column: auto; }
    .team-page .wizard .segments { flex-direction: column; }
    .team-page .wizard .segments button { flex: 1 1 auto; width: 100%; min-height: 44px; }
    .team-page .when-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "hint hint hint" "from dash to" "tzl tzs tzs";
        align-items: center;
        gap: 8px;
    }
    .team-page .when-row > :nth-child(1) { grid-area: hint; }
    .team-page .when-row > :nth-child(2) { grid-area: from; width: 100%; }
    .team-page .when-row > :nth-child(3) { grid-area: dash; text-align: center; }
    .team-page .when-row > :nth-child(4) { grid-area: to; width: 100%; }
    .team-page .when-row > :nth-child(5) { grid-area: tzl; }
    .team-page .when-row > :nth-child(6) { grid-area: tzs; width: 100%; }
}
@media (max-width: 360px) {
    .team-page .wizard .choices { grid-template-columns: minmax(0, 1fr); }
}
