/* verified_groups.php — каталог проверенных групп (стиль ближе к rent) */

.strela-page-verified-groups {
    --vg-accent: #e8a920;
    --vg-accent-soft: rgba(232, 169, 32, 0.16);
    --vg-r: 16px;
    --vg-r-sm: 12px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.vg-main {
    padding-top: calc(var(--hv2-header-h, var(--strela-header-h, 58px)) + 2px);
    padding-bottom: calc(var(--hv2-nav-h, var(--strela-bottom-stack, 70px)) + 16px);
}

@media (min-width: 1024px) {
    .vg-main {
        padding-top: calc(var(--hv2-header-h, var(--strela-header-h, 66px)) + 6px);
    }
}

.vg-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2px 0 12px;
}

.vg-head__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vg-head__title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hv2-text, #0f172a);
    flex: 1;
    min-width: 0;
}

.vg-head__help {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--hv2-muted, #64748b);
    background: var(--hv2-surface, #fff);
    border: 1px solid var(--hv2-border, #e2e8f0);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.vg-head__help:hover,
.vg-head__help:focus-visible {
    color: #92400e;
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
    outline: none;
}

.vg-head__sub {
    margin: 4px 0 0;
    color: var(--hv2-muted, #64748b);
    font-size: 0.92rem;
    line-height: 1.45;
}

.vg-head__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.vg-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.vg-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    overflow: hidden;
    max-height: min(320px, 55vh);
    overflow-y: auto;
    background: var(--hv2-surface, #fff);
    border: 1px solid var(--hv2-border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 24, 33, 0.14);
}

.vg-suggestions.is-open {
    display: block;
}

.vg-sug-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
    background: transparent;
    color: var(--hv2-text, #0f172a);
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vg-sug-item:last-child {
    border-bottom: 0;
}

.vg-sug-item:hover,
.vg-sug-item.is-active {
    background: var(--hv2-surface-2, #f8fafc);
}

.vg-sug-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--vg-accent-soft);
    color: #92400e;
    font-size: 0.95rem;
}

.vg-sug-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    line-height: 1.3;
}

.vg-sug-label em {
    font-style: normal;
    color: #92400e;
    background: rgba(232, 169, 32, 0.18);
    border-radius: 3px;
}

.vg-sug-hint {
    flex: 0 1 auto;
    max-width: 42%;
    font-size: 0.72rem;
    color: var(--hv2-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-layout-btn {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.vg-layout-btn[aria-pressed="true"] {
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
    color: #92400e;
}

.vg-searchbar {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.vg-searchbar:hover {
    border-color: var(--hv2-border-strong, #cbd5e1);
    background: var(--hv2-surface, #fff);
}

.vg-searchbar:focus-within {
    border-color: rgba(232, 169, 32, 0.42);
    background: var(--hv2-surface, #fff);
    box-shadow: 0 0 0 2px rgba(232, 169, 32, 0.1);
}

.vg-searchbar__icon {
    flex: 0 0 auto;
    color: var(--hv2-muted, #64748b);
    font-size: 0.85rem;
    transition: color .18s ease;
}

.vg-searchbar:focus-within .vg-searchbar__icon {
    color: #92400e;
}

.vg-searchbar__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: var(--hv2-text, #0f172a);
}

/* Глобальный input:focus-visible из home-v2.css — убираем второе кольцо внутри строки */
.vg-searchbar__input:focus,
.vg-searchbar__input:focus-visible {
    outline: none;
    box-shadow: none;
}

.vg-searchbar__input::-webkit-search-cancel-button {
    display: none;
}

.vg-searchbar__params {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    color: var(--hv2-muted, #64748b);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vg-searchbar__params:hover,
.vg-searchbar__params:focus-visible {
    color: #92400e;
    border-color: var(--vg-accent);
    outline: none;
}

.vg-filter-btn__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #111;
    background: var(--vg-accent);
    box-sizing: border-box;
}

@media (min-width: 720px) {
    .vg-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }
    .vg-head__actions {
        width: auto;
        min-width: min(420px, 48vw);
    }
}

.vg-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vg-chips::-webkit-scrollbar { display: none; }

.vg-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    color: var(--hv2-text, #0f172a);
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a.vg-chip:hover {
    border-color: var(--vg-accent);
}

.vg-chip.is-active {
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
    color: #92400e;
}

.vg-list {
    display: grid;
    gap: 12px;
}

.vg-list[data-vg-layout="row"] {
    grid-template-columns: 1fr;
}

.vg-list[data-vg-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .vg-list[data-vg-layout="row"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vg-list[data-vg-layout="grid"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.vg-card {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--vg-r);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    box-shadow: var(--hv2-shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vg-card:focus-visible {
    outline: 2px solid rgba(232, 169, 32, 0.65);
    outline-offset: 2px;
}

.vg-list[data-vg-layout="grid"] .vg-card {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
}

.vg-list[data-vg-layout="grid"] .vg-card__badge {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    max-width: 64px;
    margin: 0 auto 2px;
}

.vg-list[data-vg-layout="grid"] .vg-card__body {
    width: 100%;
    min-width: 0;
}

.vg-list[data-vg-layout="grid"] .vg-card__name {
    font-size: 0.86rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-list[data-vg-layout="grid"] .vg-card__meta,
.vg-list[data-vg-layout="grid"] .vg-card__note {
    text-align: center;
    font-size: 0.74rem;
}

.vg-list[data-vg-layout="grid"] .vg-card__note {
    -webkit-line-clamp: 2;
}

.vg-list[data-vg-layout="grid"] .vg-card__foot {
    display: flex;
    justify-content: center;
}

.vg-list[data-vg-layout="grid"] .vg-card__actions {
    grid-template-columns: 1fr;
    gap: 6px;
}

.vg-list[data-vg-layout="grid"] .vg-card__actions .vg-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 8px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.vg-card__badge {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.vg-card__badge img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #0b111a;
    box-shadow: 0 0 0 2px var(--vg-accent-soft);
}

.vg-card__platform {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    color: #fff;
    background: #25d366;
    border: 2px solid var(--hv2-surface, #fff);
    z-index: 2;
    box-sizing: border-box;
}

.vg-card__platform--whatsapp {
    background: #25d366;
    color: #fff;
}

.vg-card__platform--telegram {
    background: #2aabee;
    color: #fff;
}

.vg-card__platform--telegram i {
    color: #fff;
}

.vg-card__badge--avatar img,
.vg-card__avatar {
    background: #e2e8f0;
}

.vg-card__body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
}

.vg-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vg-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    background: #f1f5f9;
    color: #334155;
}

.vg-card__status--pioneer,
.vg-card__status--verified {
    background: var(--vg-accent-soft);
    color: #92400e;
}

.vg-card__status--vacant {
    background: #ecfdf5;
    color: #047857;
}

.vg-card__status--candidate {
    background: #eff6ff;
    color: #1d4ed8;
}

.vg-card__trust {
    font-size: 0.78rem;
    font-weight: 750;
    color: #0f172a;
}

.vg-card__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--hv2-text, #0f172a);
}

.vg-card__meta,
.vg-card__note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--hv2-muted, #64748b);
}

.vg-card__note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
    font-weight: 750;
    color: #92400e;
}

.vg-card__rating i { color: var(--vg-accent); }
.vg-card__rating small {
    font-weight: 600;
    color: var(--hv2-muted, #64748b);
}

.vg-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.vg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    text-decoration: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* display:* выше перебивает UA [hidden] — иначе дубли в шторке группы */
.strela-page-verified-groups .vg-btn[hidden],
.vg-edit-form[hidden],
.vg-review-form[hidden],
.vg-detail__join-idle[hidden],
.vg-detail__join-overlay[hidden],
.vg-detail__join-rules[hidden],
.vg-detail__rules-wrap[hidden],
.vg-detail__section[hidden],
.vg-detail__edit[hidden],
.vg-detail__edit-toggle[hidden],
.vg-detail__edit-head h3[hidden],
.vg-detail__rating[hidden],
.vg-detail__stats[hidden],
.vg-detail__stat[hidden],
.vg-detail__stub-note[hidden],
.vg-detail__login-hint[hidden],
.vg-detail__login-btn[hidden],
.vg-detail__guest-cta[hidden],
.vg-detail__guest-cta-actions[hidden],
#vgDetailReviewAuth[hidden],
.vg-detail__scroll[hidden],
.vg-detail__review-panel[hidden],
.vg-edit-form__msg[hidden],
.vg-review-form__msg[hidden],
#vgEditAdminFields[hidden] {
    display: none !important;
}

.vg-btn--review {
    color: #111;
    background: var(--vg-accent);
}

.vg-btn--ghost {
    color: var(--hv2-text, #0f172a);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-btn--auth {
    color: #111;
    background: var(--vg-accent, #fbbf24);
    border: 0;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

.vg-btn--auth:active {
    transform: scale(0.98);
}

.vg-btn--wa {
    color: #fff;
    background: #16a34a;
}

.vg-btn--tg {
    color: #fff;
    background: #229ED9;
}

.vg-btn--danger {
    color: #fff;
    background: #dc2626;
}

.vg-edit-form__admin-danger {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.vg-apply-link-hint {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--hv2-muted, #64748b);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-empty {
    text-align: center;
    color: var(--hv2-muted, #64748b);
    padding: 28px 12px;
}

.vg-sheet[hidden] { display: none !important; }

.vg-sheet {
    position: fixed;
    inset: 0;
    /* Выше .hv2-header (2000), на уровне общих hv2-sheet (4000) */
    z-index: 4100;
}

.vg-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.vg-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 18px 18px 0 0;
    background: var(--hv2-surface, #fff);
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.vg-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.vg-sheet__head h2 {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1.1rem;
}

.vg-sheet__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.vg-sheet__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--hv2-surface-2, #f1f5f9);
    color: var(--hv2-text, #0f172a);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* display:* перебивает UA [hidden] */
.vg-sheet__share[hidden] {
    display: none !important;
}

.vg-sheet__share:active {
    transform: scale(0.96);
}

.vg-sheet__share.is-ok {
    background: rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.vg-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--hv2-surface-2, #f1f5f9);
    color: var(--hv2-text, #0f172a);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vg-sheet__form fieldset {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
}

.vg-sheet__form legend {
    font-size: 0.9rem;
    font-weight: 750;
    margin-bottom: 8px;
}

.vg-sheet__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vg-sheet__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.vg-sheet__chip:has(input:checked) {
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
}

.vg-sheet__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vg-sheet__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: linear-gradient(to top, var(--hv2-surface, #fff) 70%, transparent);
}

/* Filter sheet */
.vg-filter__form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vg-filter__body {
    display: grid;
    gap: 12px;
}

.vg-filter .vg-sheet__form fieldset {
    margin: 0;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-filter .vg-sheet__form legend {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hv2-muted, #64748b);
}

.vg-filter .vg-sheet__form legend::before {
    content: '';
    width: 3px;
    height: 12px;
    border-radius: 999px;
    background: var(--vg-accent, #e8a920);
    flex: 0 0 auto;
}

.vg-filter .vg-sheet__chips {
    gap: 6px;
}

.vg-filter .vg-sheet__chip {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.8rem;
    font-weight: 650;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.12s ease;
}

.vg-filter .vg-sheet__chip:hover {
    border-color: rgba(232, 169, 32, 0.42);
}

.vg-filter .vg-sheet__chip:has(input:checked) {
    color: #92400e;
    box-shadow: 0 0 0 1px rgba(232, 169, 32, 0.18);
}

.vg-filter .vg-sheet__chip:active {
    transform: scale(0.98);
}

.vg-filter__actions {
    margin-top: 4px;
}

.vg-filter__actions .hv2-btn--accent {
    min-width: 132px;
    font-weight: 750;
}

@media (min-width: 900px) {
    .vg-filter .vg-sheet__backdrop {
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .vg-filter .vg-filter__panel {
        inset: auto;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(720px, calc(100vw - 40px));
        max-height: min(86vh, 640px);
        border-radius: 20px;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    }

    .vg-filter .vg-filter__head {
        margin: 0;
        padding: 18px 22px 14px;
        border-bottom: 1px solid var(--hv2-border, #e2e8f0);
    }

    .vg-filter .vg-filter__head h2 {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .vg-filter .vg-filter__form {
        flex: 1 1 auto;
        min-height: 0;
    }

    .vg-filter .vg-filter__body {
        grid-template-columns: 1fr 1fr;
        gap: 12px 14px;
        padding: 16px 22px 8px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vg-filter .vg-filter__body fieldset:nth-of-type(1) {
        grid-column: 1;
    }

    .vg-filter .vg-filter__body fieldset:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    .vg-filter .vg-filter__body fieldset:nth-of-type(3) {
        grid-column: 1;
    }

    .vg-filter .vg-filter__body fieldset:nth-of-type(4) {
        grid-column: 2;
    }

    .vg-filter .vg-filter__body fieldset:nth-of-type(2) .vg-sheet__chips {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 6px;
        max-height: 156px;
        overflow-y: auto;
        padding-right: 2px;
    }

    .vg-filter .vg-filter__actions {
        position: static;
        margin: 0;
        padding: 14px 22px 18px;
        border-top: 1px solid var(--hv2-border, #e2e8f0);
        background: var(--hv2-surface, #fff);
    }
}

[data-theme="dark"] .strela-page-verified-groups .vg-card,
[data-theme="dark"] .strela-page-verified-groups .vg-chip,
[data-theme="dark"] .strela-page-verified-groups .vg-sheet__panel {
    background: #151d2c;
    border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-sheet__share,
[data-theme="dark"] .strela-page-verified-groups .vg-sheet__close {
    background: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-sheet__share.is-ok {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

[data-theme="dark"] .strela-page-verified-groups .vg-filter .vg-sheet__form fieldset {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-filter .vg-filter__actions {
    background: #151d2c;
    border-top-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-filter .vg-filter__head {
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-filter .vg-sheet__chip:has(input:checked) {
    color: #fde68a;
}

[data-theme="dark"] .strela-page-verified-groups .vg-head__title,
[data-theme="dark"] .strela-page-verified-groups .vg-card__name,
[data-theme="dark"] .strela-page-verified-groups .vg-card__trust {
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-card__status {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

/* ── Нижняя навигация каталога (/v_g) ── */
.vg-nav.hv2-nav {
    font-family: var(--hv2-font, "Plus Jakarta Sans", system-ui, sans-serif);
}

.vg-nav .hv2-nav-btn,
.vg-nav .hv2-nav-fab-slot,
.vg-nav .vg-nav-mod-btn,
.vg-nav .vg-nav-filter-btn {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.15;
}

.vg-nav .hv2-nav-label {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 12px;
}

.vg-nav .hv2-nav-fab-slot {
    justify-content: center;
    gap: 2px;
    padding-bottom: 0;
}

.vg-nav-fab-spacer {
    display: block;
    width: 48px;
    height: 30px;
    flex-shrink: 0;
    pointer-events: none;
}

.vg-nav-fab-slot {
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: inherit;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vg-nav-fab-yinyang {
    overflow: hidden;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, .96);
    box-shadow:
        0 8px 22px rgba(34, 158, 217, .28),
        0 8px 22px rgba(37, 211, 102, .22);
}

[data-theme="dark"] .vg-nav-fab-yinyang,
html:not([data-theme="light"]) .vg-nav-fab-yinyang {
    border-color: rgba(16, 24, 42, .96);
}

.vg-yinyang-spin {
    position: absolute;
    inset: -60%;
    background: conic-gradient(
        from 0deg,
        #229ED9 0deg 180deg,
        #25D366 180deg 360deg
    );
    animation: vgYinyangSpin 5s linear infinite;
}

.vg-yinyang-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    animation: vgYinyangSpin 5s linear infinite;
}

.vg-yinyang-dots::before,
.vg-yinyang-dots::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.vg-yinyang-dots::before {
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    background: #25D366;
}

.vg-yinyang-dots::after {
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    background: #229ED9;
}

.vg-yinyang-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

@keyframes vgYinyangSpin {
    to { transform: rotate(360deg); }
}

.vg-nav-mod-btn,
.vg-nav-filter-btn {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    color: var(--hv2-text-2);
}

.vg-nav-mod-badge {
    position: absolute;
    top: -3px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(239, 68, 68, .45);
    pointer-events: none;
    z-index: 2;
}

.vg-nav-mod-btn {
    position: relative;
}

.vg-nav-mod-btn .hv2-nav-ico,
.vg-nav-filter-btn .hv2-nav-ico {
    position: relative;
}

.vg-nav-mod-badge[hidden] {
    display: none !important;
}

.hv2-nav-ico.vg-nav-verified-ico {
    overflow: hidden;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    flex-shrink: 0;
    background: #0b111a;
}

.vg-nav-verified-ico img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
}

.vg-nav-filter-count {
    position: absolute;
    top: -2px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--vg-accent, #e8a920);
    color: #111;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(232, 169, 32, .45);
}

@media (max-width: 767px) {
    body.strela-page-verified-groups .sai-fab {
        bottom: calc(var(--hv2-nav-h, var(--strela-bottom-stack, 70px)) + 14px);
    }
}

.vg-apply-lead {
    margin-bottom: 12px;
}

.vg-apply-about {
    display: grid;
    grid-template-columns: 40px 1fr 16px;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--vg-accent-soft);
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.vg-apply-about__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0b111a;
    box-shadow: 0 0 0 1px rgba(232, 169, 32, 0.45);
}

.vg-apply-about__icon img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.vg-apply-about__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.vg-apply-about__text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-apply-about__text small {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
}

.vg-apply-about__chev {
    color: var(--hv2-muted, #64748b);
    font-size: 0.78rem;
}

.vg-apply-rules {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.vg-apply-rule {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border-radius: var(--vg-r-sm);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-apply-rule i {
    color: var(--vg-accent);
    margin-top: 2px;
    text-align: center;
}

.vg-apply-rule strong {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 2px;
    color: var(--hv2-text, #0f172a);
}

.vg-apply-rule span {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--hv2-muted, #64748b);
}

.vg-apply-rule__body {
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--hv2-muted, #64748b);
}

.vg-apply-rule__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(232, 169, 32, 0.35);
    background: rgba(232, 169, 32, 0.1);
    color: var(--hv2-text, #0f172a);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vg-apply-rule__phone span {
    font-size: inherit;
    line-height: 1.2;
    color: inherit;
}

.vg-apply-rule__phone i {
    color: var(--vg-accent);
    font-size: 0.78rem;
}

.vg-apply-rule__phone:hover,
.vg-apply-rule__phone:focus-visible {
    background: rgba(232, 169, 32, 0.18);
    border-color: rgba(232, 169, 32, 0.55);
    outline: none;
}

.vg-apply-rule__phone.is-copied {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.vg-apply-rule__phone.is-copied i {
    color: #22c55e;
}

.vg-apply-rule__phone--inline {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 4px;
    padding: 3px 8px;
    font-size: 0.76rem;
}

.vg-apply-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--vg-accent-soft);
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
}

.vg-apply-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #e8a920;
    flex-shrink: 0;
}

.vg-apply-fields[hidden] {
    display: none !important;
}

.vg-apply-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.vg-apply-discovered {
    display: grid;
    gap: 12px;
}

.vg-apply-discovered[hidden] {
    display: none !important;
}

.vg-apply-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
}

.vg-apply-meta[hidden] {
    display: none !important;
}

.vg-apply-meta__label {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--hv2-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vg-apply-meta__value {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--hv2-text, #0f172a);
}

#vgApplyNameWrap[hidden],
#vgApplyDescWrap[hidden],
#vgApplyAvatarField[hidden] {
    display: none !important;
}

.vg-wizard {
    display: grid;
    gap: 14px;
}

.vg-wizard__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.vg-wizard__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    color: var(--hv2-muted, #64748b);
    font-size: 0.72rem;
    font-weight: 650;
    text-align: center;
}

.vg-wizard__pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
    font-size: 0.68rem;
    font-weight: 750;
}

.vg-wizard__pill.is-active {
    border-color: var(--vg-accent, #e8a920);
    background: var(--vg-accent-soft, rgba(232, 169, 32, 0.14));
    color: var(--hv2-text, #0f172a);
}

.vg-wizard__pill.is-active span {
    background: var(--vg-accent, #e8a920);
    color: #111;
}

.vg-wizard__pill.is-done {
    border-color: rgba(21, 128, 61, 0.35);
    color: #15803d;
}

.vg-wizard__panel[hidden] {
    display: none !important;
}

.vg-wizard__panel {
    display: grid;
    gap: 12px;
}

.vg-apply-choice {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.vg-apply-choice legend {
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
}

.vg-apply-choice__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vg-apply-choice__item {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.vg-apply-choice__item i {
    color: var(--vg-accent, #e8a920);
    font-size: 0.85rem;
}

.vg-apply-choice__item input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
}

.vg-apply-choice__item.is-active {
    border-color: var(--vg-accent, #e8a920);
    background: var(--vg-accent-soft, rgba(232, 169, 32, 0.14));
}

.vg-apply-choice__item--all {
    border-color: rgba(232, 169, 32, 0.45);
    font-weight: 750;
}

.vg-apply-fields label {
    display: grid;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
}

.vg-apply-fields input,
.vg-apply-fields textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    color: var(--hv2-text, #0f172a);
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vg-apply-fields input:focus,
.vg-apply-fields textarea:focus {
    border-color: rgba(232, 169, 32, 0.75);
    box-shadow: 0 0 0 3px rgba(232, 169, 32, 0.18);
}

.vg-apply-fields textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}

.vg-apply-fields--step3 {
    margin-top: 2px;
    margin-bottom: 0;
}

.vg-apply-fields input:disabled,
.vg-apply-fields textarea:disabled,
.vg-apply-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vg-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18) !important;
    animation: vg-field-shake 0.42s ease;
}

.vg-apply-check.vg-field-invalid,
.vg-apply-choice.vg-field-invalid,
.vg-apply-avatar-field.vg-field-invalid,
.vg-apply-avatar-preview.vg-field-invalid {
    border-radius: 12px;
    outline: none;
}

.vg-apply-choice.vg-field-invalid .vg-apply-choice__grid {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
    border-radius: 12px;
}

.vg-apply-choice.vg-field-invalid .vg-picker-trigger {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18) !important;
}

@keyframes vg-field-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .vg-field-invalid {
        animation: none;
    }
}

.vg-apply-msg {
    margin: 0 0 10px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.vg-apply-msg.is-ok { color: #15803d; }
.vg-apply-msg.is-err { color: #b91c1c; }

.vg-apply-dup {
    margin: -4px 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.38);
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 600;
}

.vg-apply-dup[hidden] {
    display: none !important;
}

[data-theme="dark"] .strela-page-verified-groups .vg-apply-dup {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

[data-theme="dark"] .strela-page-verified-groups .vg-apply-rule,
[data-theme="dark"] .strela-page-verified-groups .vg-apply-fields input,
[data-theme="dark"] .strela-page-verified-groups .vg-apply-fields textarea {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-apply-check {
    background: rgba(232, 169, 32, 0.12);
    border-color: rgba(232, 169, 32, 0.28);
    color: #f8fafc;
}

/* Аватар в форме заявки */
.vg-apply-avatar-field {
    display: grid;
    gap: 8px;
}

.vg-apply-avatar-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
}

.vg-apply-avatar-stage {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: start;
}

.vg-apply-avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hv2-surface-2, #f1f5f9);
    border: 2px solid var(--hv2-border, #e2e8f0);
    color: var(--hv2-muted, #94a3b8);
    flex-shrink: 0;
    position: relative;
}

.vg-apply-avatar-preview.is-loaded {
    border-color: var(--vg-accent);
}

.vg-apply-avatar-preview.is-error {
    border-color: #f87171;
    color: #f87171;
}

.vg-apply-avatar-preview img,
.vg-apply-avatar-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Знак превью — только CSS (без SVG-img: на мобилке давал белый оверлей / битые иконки). */
.vg-apply-avatar-preview .vg-apply-avatar-stamp {
    display: none;
    position: absolute;
    right: 8%;
    bottom: 8%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
    background: #0b111a;
    border: 2px solid #e8a920;
}

.vg-apply-avatar-preview[data-badge="frame_plain"]::after,
.vg-apply-avatar-preview[data-badge="frame"]::after,
.vg-apply-avatar-preview[data-badge="logo_frame"]::after {
    content: '';
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    border: 3px solid #e8a920;
    box-shadow: 0 0 0 2px #0b111a;
}

.vg-apply-avatar-preview[data-badge="seal"] .vg-apply-avatar-stamp,
.vg-apply-avatar-preview[data-badge="frame"] .vg-apply-avatar-stamp,
.vg-apply-avatar-preview[data-badge="logo"] .vg-apply-avatar-stamp,
.vg-apply-avatar-preview[data-badge="logo_frame"] .vg-apply-avatar-stamp {
    display: block;
}

.vg-apply-avatar-preview[data-badge="seal"] .vg-apply-avatar-stamp::before,
.vg-apply-avatar-preview[data-badge="frame"] .vg-apply-avatar-stamp::before {
    content: '';
    position: absolute;
    left: 22%;
    top: 28%;
    width: 46%;
    height: 28%;
    border-left: 2.5px solid #e8a920;
    border-bottom: 2.5px solid #e8a920;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

.vg-apply-avatar-preview[data-badge="logo"] .vg-apply-avatar-stamp,
.vg-apply-avatar-preview[data-badge="logo_frame"] .vg-apply-avatar-stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8a920;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: Arial, sans-serif;
    line-height: 1;
    border: 0;
    background-color: transparent;
}

.vg-apply-avatar-preview[data-badge="logo"] .vg-apply-avatar-stamp:not([data-has-mark])::before,
.vg-apply-avatar-preview[data-badge="logo_frame"] .vg-apply-avatar-stamp:not([data-has-mark])::before {
    content: 'S';
}

.vg-apply-avatar-preview[data-badge="logo"] .vg-apply-avatar-stamp[data-has-mark]::before,
.vg-apply-avatar-preview[data-badge="logo_frame"] .vg-apply-avatar-stamp[data-has-mark]::before {
    content: none;
}

.vg-apply-avatar-preview canvas[hidden],
.vg-apply-avatar-preview img[hidden],
.vg-apply-avatar-preview i[hidden] {
    display: none !important;
}

.vg-apply-avatar-tools {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.vg-apply-avatar-hint {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
}

.vg-apply-avatar-hint.is-ok { color: #15803d; }
.vg-apply-avatar-hint.is-err { color: #b91c1c; }
.vg-apply-avatar-hint.is-loading { color: #a16207; }

.vg-apply-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px dashed var(--hv2-border, #cbd5e1);
    background: var(--hv2-surface, #fff);
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
}

.vg-apply-file input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.vg-apply-file span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vg-apply-badges {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.vg-apply-badge {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    font-size: 0.70rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    overflow: hidden;
    grid-template: none;
}

.vg-apply-fields .vg-apply-badge input,
.vg-apply-badge input {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.vg-apply-badge img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #0b111a;
}

.vg-apply-badge.is-active {
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
}

.vg-apply-dl {
    justify-self: start;
    min-height: 40px;
}

.vg-apply-dl.is-busy,
.vg-apply-dl[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.78;
    cursor: wait;
}

.vg-apply-dl .fa-spinner {
    margin-right: 2px;
}

@media (max-width: 520px) {
    .vg-apply-avatar-stage {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .vg-apply-avatar-preview {
        width: 112px;
        height: 112px;
    }
    .vg-apply-avatar-tools {
        width: 100%;
    }
    .vg-apply-file {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .vg-apply-badges {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .vg-apply-dl {
        width: 100%;
        justify-self: stretch;
    }
}

/* Full-page apply */
.vg-apply__panel {
    inset: 0;
    max-height: none;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.vg-apply-loading {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: all;
}

.vg-apply-loading[hidden] {
    display: none !important;
}

.vg-apply-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    max-width: min(280px, 82vw);
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--hv2-surface, #fff);
    color: var(--hv2-text, #0f172a);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.vg-apply-loading__box i {
    font-size: 1.7rem;
    color: var(--vg-accent, #e8a920);
}

.vg-apply-loading__box span {
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
}

.vg-apply__panel > .vg-sheet__head {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-apply__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 14px 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.vg-apply__foot {
    flex: 0 0 auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.vg-apply__actions {
    position: static;
    padding-top: 0;
    background: transparent;
    justify-content: stretch;
}

.vg-apply__actions .hv2-btn {
    flex: 1 1 0;
    min-height: 44px;
}

.vg-apply__actions .hv2-btn[hidden] {
    display: none !important;
    pointer-events: none !important;
}

/* Модерация заявок */
.vg-mod-panel {
    max-height: min(92vh, 820px);
}

.vg-mod-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}

.vg-mod-tab {
    flex: 1;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    color: var(--hv2-text, #0f172a);
    font: inherit;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}

.vg-mod-tab.is-active {
    border-color: var(--vg-accent);
    background: var(--vg-accent-soft);
}

.vg-mod-status {
    margin: 0 0 10px;
    font-size: 0.84rem;
}

.vg-mod-status.is-ok { color: #15803d; }
.vg-mod-status.is-err { color: #b91c1c; }

.vg-mod-list {
    display: grid;
    gap: 12px;
    max-height: 52vh;
    overflow: auto;
    padding-right: 2px;
    margin-bottom: 12px;
}

.vg-mod-card {
    padding: 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
}

.vg-mod-card__head {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.vg-mod-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
}

.vg-mod-card__avatar--empty,
.vg-mod-card__avatar.is-broken {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
}

.vg-mod-card__avatar.is-broken {
    visibility: hidden;
    position: relative;
}

.vg-mod-card__meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.vg-mod-card__status {
    display: inline-flex;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(234, 179, 8, 0.18);
    color: #a16207;
}

.vg-mod-card__status--approved {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.vg-mod-card__status--rejected {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.vg-mod-card__title {
    font-size: 0.92rem;
    line-height: 1.3;
    word-break: break-word;
}

.vg-mod-card__phone,
.vg-mod-card__time,
.vg-mod-card__tags {
    font-size: 0.78rem;
    color: var(--hv2-muted, #64748b);
}

.vg-mod-card__tags {
    font-weight: 600;
}

.vg-mod-card__comment {
    margin: 4px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
}

.vg-mod-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vg-mod-empty {
    margin: 18px 0;
    text-align: center;
    color: var(--hv2-muted, #64748b);
    font-size: 0.9rem;
}

.vg-seo-nav {
    margin: 28px 0 8px;
    padding-top: 18px;
    border-top: 1px solid var(--hv2-border, #e2e8f0);
}

.vg-seo-nav--groups {
    margin-top: 8px;
}

.vg-seo-nav--groups .vg-seo-nav__list a {
    font-weight: 600;
}

.vg-seo-nav__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-seo-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.vg-seo-nav__list a {
    font-size: 0.8rem;
    color: var(--hv2-muted, #64748b);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.vg-seo-nav__list a:hover {
    color: var(--hv2-text, #0f172a);
    border-bottom-color: var(--vg-accent);
}

/* Full-page group detail */
.vg-detail__panel {
    inset: 0;
    max-height: none;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.vg-detail__panel > .vg-sheet__head {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
    align-items: flex-start;
}

.vg-detail__head-main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 6px;
}

.vg-detail__head-main h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.vg-detail__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 14px 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.vg-detail__content {
    width: 100%;
    min-width: 0;
}

.vg-detail__hero {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.vg-detail__hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vg-detail__hero-badge .vg-card__badge {
    width: 64px;
    height: 64px;
}

.vg-detail__edit {
    margin-top: 4px;
    margin-bottom: 8px;
}

.vg-detail__edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vg-detail__edit-head h3 {
    margin: 0;
}

.vg-edit-form {
    display: grid;
    gap: 10px;
    padding: 12px;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
}

.vg-edit-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .vg-edit-form__row {
        grid-template-columns: 1fr;
    }
}

.vg-edit-form__field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.vg-edit-form__field > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hv2-muted, #64748b);
}

.vg-edit-form__field input,
.vg-edit-form__field textarea,
.vg-edit-form__field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--hv2-border, #e2e8f0);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: var(--hv2-text, #0f172a);
}

.vg-edit-form__field textarea {
    resize: vertical;
    min-height: 72px;
}

.vg-edit-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.vg-edit-form__msg {
    margin: 0;
    font-size: 0.86rem;
    color: #15803d;
}

.vg-edit-form__msg.is-err {
    color: #b91c1c;
}

.vg-detail__edit-toggle {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.vg-detail__hero-text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.vg-detail__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 22px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
}

.vg-detail__status[hidden] {
    display: none !important;
}

.vg-detail__status--pioneer,
.vg-detail__status--verified {
    background: var(--vg-accent-soft);
    color: #92400e;
}

.vg-detail__status--vacant {
    background: #ecfdf5;
    color: #047857;
}

.vg-detail__status--candidate {
    background: #eff6ff;
    color: #1d4ed8;
}

.vg-detail__meta,
.vg-detail__rating {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--hv2-muted, #64748b);
}

.vg-detail__rating {
    font-weight: 750;
    color: #92400e;
}

.vg-detail__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
}

.vg-detail__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.vg-detail__stat i {
    opacity: 0.72;
    font-size: 0.82em;
}

.vg-detail__section {
    margin: 0 0 18px;
}

.vg-detail__section h3 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-detail__section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--hv2-text, #0f172a);
    white-space: pre-wrap;
    word-break: break-word;
}

.vg-detail__reviews {
    display: grid;
    gap: 10px;
}

.vg-detail__reviews-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 18px 12px;
}

.vg-detail__reviews-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    padding: 22px 24px;
    border-radius: var(--vg-r-sm);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px dashed var(--hv2-border, #e2e8f0);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.vg-detail__reviews-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(232, 169, 32, 0.22);
    border-top-color: var(--vg-accent, #e8a920);
    border-radius: 50%;
    animation: vgReviewsSpin 0.75s linear infinite;
}

.vg-detail__reviews-loading-text {
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
    text-align: center;
}

@keyframes vgReviewsSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .vg-detail__reviews-spinner {
        animation-duration: 1.4s;
    }
}

.vg-detail__review-empty {
    margin: 0;
    padding: 14px;
    border-radius: var(--vg-r-sm);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px dashed var(--hv2-border, #e2e8f0);
    color: var(--hv2-muted, #64748b);
    font-size: 0.86rem;
    line-height: 1.45;
}

.vg-detail__review-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--vg-r-sm);
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
}

.vg-detail__review-summary i {
    color: var(--vg-accent);
}

.vg-detail__review-panel {
    flex: 0 0 auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.vg-detail__review-panel.is-focus {
    box-shadow:
        0 -8px 24px rgba(15, 23, 42, 0.06),
        0 0 0 2px rgba(232, 169, 32, 0.35) inset;
}

.vg-detail__review-copy {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
}

.vg-detail__review-copy strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-detail__review-copy span {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--hv2-muted, #64748b);
}

.vg-detail__review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vg-detail__review-actions .vg-btn[hidden],
.vg-detail__review-actions .vg-detail__login-btn[hidden] {
    display: none !important;
}

.vg-detail__review-actions .vg-btn {
    min-height: 42px;
}

.vg-detail__review-actions .vg-detail__login-btn {
    grid-column: 1 / -1;
}

.vg-detail__review-actions .vg-btn--review:only-of-type,
.vg-detail__review-actions .vg-btn--wa:only-of-type {
    grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .vg-detail__review-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .vg-detail .vg-sheet__backdrop {
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(2px);
    }

    .vg-detail__panel {
        inset: auto;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(840px, calc(100vw - 48px));
        max-height: min(88vh, 860px);
        height: auto;
        border-radius: 20px;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    }

    .vg-detail__panel > .vg-sheet__head {
        padding: 20px 28px 14px;
    }

    .vg-detail__head-main h2 {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .vg-detail__scroll {
        padding: 8px 28px 24px;
    }

    .vg-detail__content,
    .vg-detail__review-panel > .vg-detail__join-idle {
        width: 100%;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .vg-detail__hero {
        grid-template-columns: 96px 1fr;
        gap: 20px;
        padding: 18px 20px;
        margin-bottom: 20px;
        border-radius: var(--vg-r);
        background: var(--hv2-surface-2, #f8fafc);
        border: 1px solid var(--hv2-border, #e2e8f0);
    }

    .vg-detail__hero-badge .vg-card__badge {
        width: 96px;
        height: 96px;
    }

    .vg-detail__meta {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .vg-review-form__text:focus {
        outline: none;
        border-color: rgba(232, 169, 32, 0.55);
        box-shadow: 0 0 0 2px rgba(232, 169, 32, 0.18);
    }

    .vg-review-form__submit {
        width: auto;
        min-width: 220px;
        justify-self: start;
    }

    .vg-detail__review-panel {
        padding: 14px 28px 18px;
        border-radius: 0 0 20px 20px;
    }

    .vg-detail__review-panel.is-form-inline .vg-detail__review-copy,
    .vg-detail__review-panel.is-form-inline .vg-btn--review {
        display: none !important;
    }

    .vg-detail__review-panel.is-form-inline .vg-detail__review-actions {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .vg-detail__review-panel.is-form-inline .vg-detail__join-reg-hint {
        grid-column: 1 / -1;
    }

    .vg-detail__review-panel.is-form-inline .vg-btn--wa,
    .vg-detail__review-panel.is-form-inline .vg-btn--tg {
        min-width: 240px;
        max-width: 320px;
        justify-self: end;
    }
}

.vg-detail__stub-note {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--hv2-muted, #64748b);
}

.vg-review-card {
    padding: 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    display: grid;
    gap: 6px;
}

.vg-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vg-review-card__name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-review-card__stars {
    color: var(--vg-accent);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.vg-review-card__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--hv2-text, #0f172a);
}

.vg-review-card__date {
    font-size: 0.72rem;
    color: var(--hv2-muted, #64748b);
}

.vg-review-card.is-stub {
    border-style: dashed;
}

.vg-review-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
}

.vg-review-form__stars {
    display: flex;
    gap: 4px;
}

.vg-review-star {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--hv2-surface-2, #f1f5f9);
    color: #94a3b8;
    font-size: 1.05rem;
    cursor: pointer;
}

.vg-review-star.is-on {
    color: #92400e;
    background: var(--vg-accent-soft);
}

.vg-review-form__text {
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    color: var(--hv2-text, #0f172a);
    font: inherit;
    resize: vertical;
}

.vg-review-form__submit {
    width: 100%;
    min-height: 44px;
}

.vg-review-form__msg {
    margin: 0;
    font-size: 0.82rem;
}

.vg-review-form__msg.is-ok { color: #15803d; }
.vg-review-form__msg.is-err { color: #b91c1c; }

.vg-detail__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    min-height: 44px;
    text-decoration: none;
    font-weight: 750;
}

.vg-detail__register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    min-height: 42px;
    text-decoration: none;
    font-weight: 700;
}

.vg-detail__guest-cta {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--vg-r-sm);
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    display: grid;
    gap: 10px;
}

.vg-detail__guest-cta[hidden],
.vg-detail__guest-cta-actions[hidden],
.vg-detail__register-btn[hidden] {
    display: none !important;
}

.vg-detail__guest-cta-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--hv2-muted, #64748b);
}

.vg-detail__guest-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vg-detail__guest-cta-actions--panel {
    grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .vg-detail__guest-cta-actions {
        grid-template-columns: 1fr;
    }
}

.vg-detail__login-btn[hidden] {
    display: none !important;
}

.vg-detail__join-reg-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #92400e;
    background: var(--vg-accent-soft, #fef3c7);
}

.vg-detail__join-reg-hint[hidden] {
    display: none !important;
}

.vg-detail__join-reg-hint i {
    margin-top: 2px;
    flex: 0 0 auto;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__join-reg-hint {
    background: rgba(232, 169, 32, 0.14);
    color: #fcd34d;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__guest-cta {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-btn--auth {
    color: #111;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__status--pioneer,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__status--verified {
    background: rgba(232, 169, 32, 0.18);
    color: #fcd34d;
}

[data-theme="dark"] .strela-page-verified-groups .vg-card__status--vacant,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__status--vacant {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__status--candidate {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

[data-theme="dark"] .strela-page-verified-groups .vg-suggestions,
[data-theme="dark"] .strela-page-verified-groups .vg-review-card,
[data-theme="dark"] .strela-page-verified-groups .vg-review-form,
[data-theme="dark"] .strela-page-verified-groups .vg-review-star,
[data-theme="dark"] .strela-page-verified-groups .vg-review-form__text {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-apply__foot {
    background: #0b111a;
    border-top-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-seo-nav {
    border-top-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-seo-nav__title {
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-mod-card,
[data-theme="dark"] .strela-page-verified-groups .vg-mod-tab,
[data-theme="dark"] .strela-page-verified-groups .vg-apply-avatar-preview,
[data-theme="dark"] .strela-page-verified-groups .vg-searchbar,
[data-theme="dark"] .strela-page-verified-groups .vg-head__help,
[data-theme="dark"] .strela-page-verified-groups .vg-searchbar__params,
[data-theme="dark"] .strela-page-verified-groups .vg-apply-about,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__review-empty,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__review-summary,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__reviews-loading-box {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__reviews-loading-text {
    color: #94a3b8;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__review-panel {
    background: #0b111a;
    border-top-color: rgba(148, 163, 184, 0.22);
}

@media (min-width: 900px) {
    [data-theme="dark"] .strela-page-verified-groups .vg-detail__hero {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.22);
    }
}

[data-theme="dark"] .strela-page-verified-groups .vg-apply-about__text strong,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__section h3,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__section p,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__review-copy strong {
    color: #f8fafc;
}

/* Правила группы — свёрнутая плашка */
.vg-rules-panel {
    border: 1px solid var(--hv2-border, #e2e8f0);
    border-radius: 14px;
    background: var(--hv2-surface-2, #f8fafc);
    overflow: hidden;
}

.vg-rules-panel__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.vg-rules-panel__summary::-webkit-details-marker {
    display: none;
}

.vg-rules-panel__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-rules-panel__title i {
    color: var(--vg-accent, #e8a920);
}

.vg-rules-panel__chev {
    color: var(--hv2-muted, #64748b);
    transition: transform 0.2s ease;
}

.vg-rules-panel[open] .vg-rules-panel__chev {
    transform: rotate(180deg);
}

.vg-rules-panel__body {
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
}

.vg-rules-panel__text,
.vg-detail__join-rules-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--hv2-text, #0f172a);
}

.vg-rules-panel__text code,
.vg-detail__join-rules-text code,
.vg-detail__section p code,
.vg-card__note code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 0.05em 0.3em;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.06);
}

.vg-detail__section p strong,
.vg-rules-panel__text strong,
.vg-detail__join-rules-text strong,
.vg-card__note strong {
    font-weight: 800;
}

.vg-detail__section p em,
.vg-rules-panel__text em,
.vg-detail__join-rules-text em,
.vg-card__note em {
    font-style: italic;
}

.vg-detail__section p s,
.vg-rules-panel__text s,
.vg-detail__join-rules-text s,
.vg-card__note s {
    text-decoration: line-through;
}

.vg-rules-panel__copy {
    justify-self: start;
    min-height: 36px;
}

.vg-apply-check--compact {
    margin: 4px 0 8px;
    align-items: flex-start;
}

.vg-edit-form__check {
    margin: 0 0 12px;
}

.vg-detail__join-consent {
    display: grid;
    gap: 10px;
}

.vg-detail__join-foot {
    display: grid;
    gap: 10px;
}

.vg-detail__join-rules {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hv2-surface-2, #f8fafc);
    border: 1px solid var(--hv2-border, #e2e8f0);
    max-height: 160px;
    overflow: auto;
}

.vg-detail__join-rules strong {
    font-size: 0.86rem;
    font-weight: 800;
}

/* Режим «Вступить»: отдельный полноэкранный слой правил */
.vg-detail__join-overlay[hidden] {
    display: none !important;
}

.vg-detail__join-overlay {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    background: var(--hv2-surface, #fff);
}

.vg-detail__panel.is-join-mode .vg-detail__scroll,
.vg-detail__panel.is-join-mode .vg-detail__review-panel {
    display: none !important;
}

.vg-detail__panel.is-join-mode .vg-detail__join-overlay {
    display: flex !important;
}

.vg-detail__panel.is-join-mode .vg-detail__join-rules {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    padding: 18px 16px 20px;
    gap: 12px;
}

.vg-detail__panel.is-join-mode .vg-detail__join-rules strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-detail__panel.is-join-mode .vg-detail__join-rules-text {
    font-size: 0.95rem;
    line-height: 1.55;
}

.vg-detail__panel.is-join-mode .vg-detail__join-foot {
    flex: 0 0 auto;
    display: grid;
    gap: 0;
    background: var(--hv2-surface, #fff);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.vg-detail__panel.is-join-mode #vgJoinAgreeLabel {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
}

.vg-detail__panel.is-join-mode .vg-detail__join-foot > .vg-detail__review-actions {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--hv2-surface, #fff);
}

.vg-detail__panel.is-join-mode .vg-detail__join-rules[hidden] ~ .vg-detail__join-foot {
    margin-top: auto;
}

.vg-detail__edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.vg-join-modal.guest-auth-modal-overlay {
    z-index: 12050;
    display: none;
}

.vg-join-modal.guest-auth-modal-overlay.show {
    display: flex;
}

[data-theme="dark"] .strela-page-verified-groups .vg-rules-panel,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__join-rules {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__panel.is-join-mode .vg-detail__join-overlay,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__panel.is-join-mode .vg-detail__join-rules,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__panel.is-join-mode .vg-detail__join-foot,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__panel.is-join-mode #vgJoinAgreeLabel,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__panel.is-join-mode .vg-detail__join-foot > .vg-detail__review-actions {
    background: #0b1220;
}

[data-theme="dark"] .strela-page-verified-groups .vg-rules-panel__title,
[data-theme="dark"] .strela-page-verified-groups .vg-rules-panel__text,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__join-rules-text,
[data-theme="dark"] .strela-page-verified-groups .vg-detail__join-rules strong {
    color: #f8fafc;
}



/* Multi-select picker (fullscreen) */
.vg-picker-sheet[hidden] { display: none !important; }
.vg-picker-sheet {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: flex;
    flex-direction: column;
}
.vg-picker-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.vg-picker-sheet__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--hv2-surface, #fff);
}
.vg-picker-sheet__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hv2-border, #e2e8f0);
}
.vg-picker-sheet__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}
.vg-picker-sheet__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px 16px 20px;
    display: grid;
    gap: 8px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}
.vg-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface-2, #f8fafc);
    cursor: pointer;
    user-select: none;
}
.vg-picker-item.is-on {
    border-color: rgba(232, 169, 32, 0.55);
    background: rgba(232, 169, 32, 0.12);
}
.vg-picker-item input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: #e8a920;
}
.vg-picker-item i {
    width: 22px;
    text-align: center;
    color: var(--vg-accent, #e8a920);
}
.vg-picker-item span {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
    overflow-wrap: anywhere;
}
.vg-picker-sheet__foot {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
}
.vg-picker-sheet__foot .vg-btn { min-height: 44px; }

.vg-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--hv2-border, #e2e8f0);
    background: var(--hv2-surface, #fff);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hv2-text, #0f172a);
    text-align: left;
    cursor: pointer;
}
.vg-picker-trigger i { flex: 0 0 auto; color: var(--hv2-muted, #64748b); }
.vg-picker-trigger__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.vg-apply-choice__legend {
    display: block;
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--hv2-text, #0f172a);
}

.vg-edit-avatar__row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}
.vg-edit-avatar__preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: grid;
    place-items: center;
}
.vg-edit-avatar__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vg-edit-avatar__ph {
    color: #94a3b8;
    font-size: 1.4rem;
}
.vg-edit-avatar__tools {
    display: grid;
    gap: 8px;
}
.vg-edit-avatar__upload {
    position: relative;
    cursor: pointer;
}
.vg-edit-avatar__upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

[data-theme="dark"] .strela-page-verified-groups .vg-picker-sheet__panel,
[data-theme="dark"] .strela-page-verified-groups .vg-picker-sheet__foot,
[data-theme="dark"] .strela-page-verified-groups .vg-picker-trigger {
    background: #0b1220;
}
[data-theme="dark"] .strela-page-verified-groups .vg-picker-item {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}
[data-theme="dark"] .strela-page-verified-groups .vg-picker-item span {
    color: #f8fafc;
}

.vg-detail__vacant-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #065f46;
    font-size: 0.84rem;
    line-height: 1.45;
}

.vg-detail__vacant-note[hidden] {
    display: none !important;
}

.vg-detail__vacant-note > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 1rem;
    color: #059669;
}

.vg-detail__vacant-note strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #047857;
}

.vg-review-ok {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vg-review-ok[hidden] {
    display: none !important;
}

.vg-review-ok__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.vg-review-ok__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    padding: 28px 22px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.vg-review-ok__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.8rem;
}

.vg-review-ok__title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
}

.vg-review-ok__text {
    margin: 0 0 18px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.vg-review-ok__btn {
    width: 100%;
}

.vg-review-card.is-mine {
    border-color: rgba(232, 169, 32, 0.45);
    box-shadow: 0 0 0 1px rgba(232, 169, 32, 0.12);
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__vacant-note {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
}

[data-theme="dark"] .strela-page-verified-groups .vg-detail__vacant-note strong {
    color: #6ee7b7;
}

[data-theme="dark"] .strela-page-verified-groups .vg-review-ok__panel {
    background: #111827;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .strela-page-verified-groups .vg-review-ok__title {
    color: #f8fafc;
}

[data-theme="dark"] .strela-page-verified-groups .vg-review-ok__text {
    color: #94a3b8;
}

[data-theme="dark"] .strela-page-verified-groups .vg-review-ok__icon {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}
