.company-shell {
    --company-muted: #64748b;
    --company-border: rgba(15, 23, 42, 0.12);
}

.company-shell .card {
    height: auto;
    border-color: var(--company-border);
}

.company-shell .card:hover {
    transform: none;
}

.company-filter-panel {
    position: sticky;
    top: 104px;
    overflow: hidden;
}

.company-directory-header {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.company-directory-header > div {
    max-width: 720px;
}

.company-filter-toggle {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 44px;
}

.company-filter-count {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
}

.company-search-control {
    position: relative;
}

.company-search-control .bi {
    color: #64748b;
    left: 0.8rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.company-search-control .form-control {
    padding-left: 2.35rem;
}

.company-industry-options {
    display: grid;
    gap: 0.35rem;
    max-height: 19rem;
    overflow-y: auto;
    padding: 0.15rem 0.25rem 0.15rem 0;
    scrollbar-width: thin;
}

.company-filter-panel .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
}

.company-filter-option {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #334155;
}

.company-filter-option + .company-filter-option {
    margin-top: 0.2rem;
}

.company-filter-option:hover {
    background: #f8fafc;
    border-color: var(--company-border);
}

.company-filter-option:has(.form-check-input:checked) {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.company-filter-option .form-check-input {
    margin-left: 0;
}

.company-filter-option .form-check-label {
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.company-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
}

.company-verified-pill-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
}

.company-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 550;
}

.company-logo-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.company-logo-mark-lg {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: 0 0 auto;
}

.admin-company-logo {
    height: 72px;
    object-fit: contain;
    width: 72px;
}

.company-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eff6ff;
}

.company-card-title {
    min-width: 0;
}

.company-results-heading {
    align-items: center;
    color: #475569;
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    min-height: 32px;
}

.company-clear-filters {
    font-weight: 650;
    text-decoration: none;
}

.company-results-list {
    background: #fff;
    border: 1px solid var(--company-border);
    border-radius: 14px;
    overflow: hidden;
}

.company-directory-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    min-height: 148px;
    padding: 1.15rem 1.25rem;
    position: relative;
    transition: background-color 160ms ease;
}

.company-directory-row + .company-directory-row {
    border-top: 1px solid var(--company-border);
}

.company-directory-row:hover {
    background: #f8fafc;
}

.company-directory-logo {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--company-border);
    border-radius: 12px;
    display: grid;
    height: 64px;
    place-items: center;
    width: 64px;
}

.company-directory-logo .company-logo-mark {
    border: 0;
    border-radius: 9px;
    padding: 0.3rem;
}

.company-directory-content,
.company-directory-title-row {
    min-width: 0;
}

.company-directory-title-row h2 {
    align-items: center;
    display: flex;
    gap: 0.4rem;
    min-width: 0;
}

.company-directory-title-row h2 a {
    color: #0f172a;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.company-directory-title-row h2 a:hover,
.company-directory-title-row h2 a:focus {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-verified-icon {
    color: #16a34a;
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.company-directory-tagline {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-directory-summary {
    color: #64748b;
    display: -webkit-box;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.45rem 0 0.7rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.company-directory-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
}

.company-industry-tag {
    max-width: min(100%, 36rem);
    overflow-wrap: anywhere;
    white-space: normal;
}

.company-hiring-tag {
    background: #ecfdf5;
    color: #166534;
}

.company-meta-text {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.company-directory-arrow {
    align-items: center;
    border-radius: 50%;
    color: #2563eb;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    width: 36px;
}

.company-directory-arrow:hover,
.company-directory-arrow:focus {
    background: #dbeafe;
    color: #1d4ed8;
}

.company-directory-empty {
    border: 0;
    border-radius: 0;
    min-height: 300px;
    text-align: center;
}

.company-profile-hero {
    border: 1px solid var(--company-border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #ffffff;
}

.company-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.company-founder-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
}

.company-founder-row + .company-founder-row {
    border-top: 1px solid var(--company-border);
}

.company-founder-strip {
    border-top: 1px solid var(--company-border);
    display: block;
    margin-top: 1rem;
    padding-top: 0.95rem;
}

.company-founder-label {
    color: #64748b;
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    margin-bottom: 0.55rem;
}

.company-founder-list {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.company-founder-link {
    align-items: center;
    border-radius: 8px;
    color: inherit;
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.2rem 0;
    text-decoration: none;
}

.company-founder-link-clickable {
    background: transparent;
}

.company-founder-link-clickable:hover,
.company-founder-link-clickable:focus {
    background: transparent;
}

.company-founder-avatar {
    align-items: center;
    border: 1px solid var(--company-border);
    border-radius: 50%;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    object-fit: cover;
    width: 34px;
}

.company-founder-name {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.company-founder-role {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 550;
    line-height: 1.1;
}

.company-founder-arrow {
    color: #2563eb;
    font-size: 0.78rem;
    opacity: 0.78;
}

.company-founder-link-clickable:hover .company-founder-name,
.company-founder-link-clickable:focus .company-founder-name {
    color: #2563eb;
}

.company-profile-section {
    background: #ffffff;
    border: 1px solid var(--company-border);
    border-radius: 12px;
    padding: 1.15rem;
}

.company-side-card {
    background: #ffffff;
    border: 1px solid var(--company-border);
    border-radius: 12px;
    padding: 1rem;
}

.company-side-card .company-section-kicker {
    margin-bottom: 0.45rem;
}

.company-side-line,
.company-side-muted {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.company-side-muted {
    color: #64748b;
}

.company-section-kicker {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.company-rich-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.company-rich-text p:last-child {
    margin-bottom: 0;
}

.company-product-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.company-product-card {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    padding: 1rem;
}

.company-product-card h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.company-product-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.6rem;
}

.company-product-card a {
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.company-social-feed {
    display: grid;
    gap: 1rem;
}

.company-social-card {
    background: #fff;
    border: 1px solid var(--company-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 0.95rem;
    scroll-margin-top: 104px;
}

.company-social-card:target {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.company-post-header,
.company-comment,
.company-comment-compose {
    display: flex;
    gap: 0.75rem;
}

.company-post-header {
    align-items: center;
}

.company-social-avatar,
.company-comment-avatar {
    align-items: center;
    border: 1px solid var(--company-border);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    object-fit: cover;
}

.company-social-avatar {
    background: #fff;
    height: 40px;
    padding: 0.25rem;
    width: 40px;
}

.company-comment-avatar {
    height: 34px;
    width: 34px;
}

.company-comment-avatar-fallback {
    background: #f8fafc;
    color: #64748b;
}

.company-post-body {
    color: #1f2937;
    padding: 0.85rem 0 0.35rem;
}

.company-post-body h3 {
    color: #0f172a;
    font-size: 1.15rem;
    line-height: 1.35;
}

.company-post-body p:last-child {
    margin-bottom: 0;
}

.company-post-stats {
    align-items: center;
    border-bottom: 1px solid var(--company-border);
    color: #64748b;
    display: flex;
    font-size: 0.82rem;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.45rem 0;
}

.company-post-stats .bi {
    color: #2563eb;
}

.company-post-actions {
    border-bottom: 1px solid var(--company-border);
    display: grid;
    gap: 0.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.25rem 0;
}

.company-post-actions form {
    margin: 0;
}

.company-comment-checkbox {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.company-comment-panel {
    display: none;
    grid-column: 1 / -1;
    padding-top: 0.55rem;
}

.company-comment-checkbox:checked + .company-post-action {
    background: #f1f5f9;
    color: #0a2540;
}

.company-comment-checkbox:checked ~ .company-comment-panel {
    display: block;
}

.company-post-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 650;
    gap: 0.35rem;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
    width: 100%;
}

.company-post-action:hover,
.company-post-action:focus {
    background: #f1f5f9;
    color: #0a2540;
}

.company-post-action.is-active {
    color: #2563eb;
}

.company-comments {
    display: grid;
    gap: 0.6rem;
    padding-top: 0.85rem;
}

.company-comment-bubble {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.8rem;
}

.company-comment-compose {
    align-items: flex-start;
    background: #fbfdff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
}

.company-empty-state {
    align-items: center;
    background: #fff;
    border: 1px dashed var(--company-border);
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.min-w-0 {
    min-width: 0;
}

/* Member company workspace */
.company-workspace-shell {
    --company-workspace-border: rgba(15, 23, 42, 0.12);
}

.company-workspace-header {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.company-workspace-back {
    color: #64748b;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 650;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
    text-decoration: none;
}

.company-workspace-back:hover,
.company-workspace-back:focus {
    color: #2563eb;
}

.company-workspace-label {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.company-workspace-name {
    color: #0f172a;
    display: block;
    font-size: 1.2rem;
    line-height: 1.25;
}

.company-workspace-nav-shell {
    background: #f8fafc;
    border: 1px solid var(--company-workspace-border);
    border-radius: 12px;
    margin-bottom: 1.75rem;
    overflow: hidden;
    padding: 0.35rem;
}

.company-workspace-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.company-workspace-nav .nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475569;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 650;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
}

.company-workspace-nav .nav-link:hover,
.company-workspace-nav .nav-link:focus {
    background: #fff;
    border-color: #cbd5e1;
    color: #1d4ed8;
}

.company-workspace-nav .nav-link.active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
    color: #fff;
}

.company-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.35rem;
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
}

.company-status-draft {
    background: #f1f5f9;
    color: #475569;
}

.company-status-submitted {
    background: #fff7ed;
    color: #9a3412;
}

.company-status-approved {
    background: #dcfce7;
    color: #166534;
}

.company-status-needs_changes,
.company-status-rejected,
.company-status-suspended {
    background: #fef2f2;
    color: #b91c1c;
}

.company-next-step {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 1.5rem;
    padding: 1.15rem;
}

.company-next-step-icon {
    align-items: center;
    background: #2563eb;
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.company-setup-card {
    border: 1px solid var(--company-workspace-border);
    border-radius: 14px;
}

.company-glance-card {
    overflow: hidden;
}

.company-glance-card .user-section__header {
    background: #f8fafc;
}

.company-glance-card .user-section__body {
    padding: 1rem;
}

.company-setup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.company-setup-item {
    align-items: center;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 0.9rem 0;
}

.company-setup-item + .company-setup-item {
    border-top: 1px solid var(--company-workspace-border);
}

.company-setup-state {
    align-items: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.company-setup-item.is-complete .company-setup-state {
    background: #dcfce7;
    color: #15803d;
}

.company-stat-card {
    background: #fff;
    border: 1px solid var(--company-workspace-border);
    border-radius: 12px;
    height: 100%;
    min-width: 0;
    padding: 1rem;
}

.company-stat-card .bi {
    color: #2563eb;
}

.my-companies-intro {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 72%);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.my-companies-steps {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.15rem;
}

.my-companies-step {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
}

.my-companies-step-number {
    align-items: center;
    background: #dbeafe;
    border-radius: 50%;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 750;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.my-company-card {
    border: 1px solid var(--company-workspace-border);
    border-radius: 14px;
    height: 100%;
}

.my-company-logo {
    align-items: center;
    background: #fff;
    border: 1px solid var(--company-workspace-border);
    border-radius: 10px;
    display: flex;
    flex: 0 0 auto;
    height: 48px;
    justify-content: center;
    object-fit: contain;
    width: 48px;
}

@media (max-width: 991.98px) {
    .company-filter-panel {
        position: static;
    }

    .company-filter-panel:not(.show) {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .company-directory-row {
        align-items: start;
        gap: 0.75rem;
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 0;
        padding: 1rem;
    }

    .company-directory-logo {
        border-radius: 10px;
        height: 52px;
        width: 52px;
    }

    .company-directory-logo .company-logo-mark {
        height: 46px;
        width: 46px;
    }

    .company-directory-arrow {
        display: none;
    }

    .company-directory-summary {
        -webkit-line-clamp: 3;
    }

    .company-directory-tagline {
        white-space: normal;
    }

    .company-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-workspace-nav-shell {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        border-left: 0;
        border-radius: 0;
        border-right: 0;
    }

    .company-next-step {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .company-next-step .btn,
    .company-next-step form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .company-next-step form .btn {
        width: 100%;
    }

    .company-setup-item {
        align-items: start;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .company-setup-item .btn {
        grid-column: 2;
        justify-self: start;
    }

    .my-companies-steps {
        grid-template-columns: 1fr;
    }

    .company-profile-section,
    .company-social-card {
        border-radius: 10px;
        padding: 0.9rem;
    }

    .company-post-action {
        font-size: 0.8rem;
        gap: 0.25rem;
        min-height: 32px;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}
