﻿.teams-shell {
    display: grid;
    gap: 1.15rem;
}

.teams-hero {
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(109, 162, 255, 0.16), transparent 32%), linear-gradient(180deg, rgba(16,24,39,0.98), rgba(10,15,27,0.98));
    box-shadow: 0 22px 50px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}

.teams-hero-main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.teams-hero-copy {
    min-width: 0;
}

.teams-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(170, 190, 230, 0.78);
    margin-bottom: 0.35rem;
}

.teams-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.teams-subtitle {
    margin-top: 0.45rem;
    color: rgba(214, 222, 244, 0.78);
    line-height: 1.55;
    max-width: 820px;
}

.teams-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.teams-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: rgba(229, 234, 248, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.teams-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.teams-toolbar {
    padding: 1.05rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.teams-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.teams-toolbar-label {
    color: rgba(214, 222, 244, 0.74);
    font-size: 0.88rem;
    font-weight: 700;
}

.teams-search-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.teams-search-input {
    width: 280px;
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #eef3ff;
    box-shadow: none;
}

    .teams-search-input::placeholder {
        color: rgba(205, 214, 238, 0.52);
    }

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.teams-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.teams-card {
    height: 100%;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(98, 144, 255, 0.10), transparent 34%), linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    box-shadow: 0 16px 36px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.teams-card-link:hover .teams-card {
    transform: translateY(-3px);
    border-color: rgba(122, 177, 255, 0.20);
    box-shadow: 0 22px 42px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

.teams-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.teams-card-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.teams-logo-wrap {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teams-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.teams-logo-fallback-mark {
    display: none;
    font-size: 0.82rem;
    font-weight: 900;
    color: #f8fbff;
    text-align: center;
    padding: 0.4rem;
}

.teams-logo-fallback .teams-logo-fallback-mark {
    display: block;
}

.teams-card-copy {
    min-width: 0;
}

.teams-card-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: #f8fbff;
    line-height: 1.15;
}

.teams-card-subtitle {
    margin-top: 0.25rem;
    color: rgba(206, 215, 240, 0.72);
    line-height: 1.45;
    font-size: 0.9rem;
}

.teams-abbr {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #dce7ff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teams-card-divider {
    height: 1px;
    margin: 1rem 0 0.95rem;
    background: rgba(255,255,255,0.07);
}

.teams-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teams-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(228, 234, 248, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
}

.teams-card-foot {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.teams-card-hint {
    color: rgba(214, 222, 244, 0.70);
    font-size: 0.86rem;
    font-weight: 700;
}

.teams-card-arrow {
    color: #cfe1ff;
    font-size: 1rem;
    font-weight: 900;
}

.teams-empty {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
}

.teams-empty-title {
    font-size: 1rem;
    font-weight: 900;
    color: #f8fbff;
}

.teams-empty-text {
    margin-top: 0.35rem;
    color: rgba(214, 222, 244, 0.74);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .teams-hero-main,
    .teams-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .teams-search-form {
        width: 100%;
    }

    .teams-search-input {
        width: 100%;
    }
}

.teams-shell {
    display: grid;
    gap: 1.15rem;
}

.teams-hero {
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(109, 162, 255, 0.16), transparent 32%), linear-gradient(180deg, rgba(16,24,39,0.98), rgba(10,15,27,0.98));
    box-shadow: 0 22px 50px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}

.teams-hero-main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.teams-hero-copy {
    min-width: 0;
}

.teams-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(170, 190, 230, 0.78);
    margin-bottom: 0.35rem;
}

.teams-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.teams-subtitle {
    margin-top: 0.45rem;
    color: rgba(214, 222, 244, 0.78);
    line-height: 1.55;
    max-width: 820px;
}

.teams-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.teams-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: rgba(229, 234, 248, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.teams-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.teams-toolbar {
    padding: 1.05rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.teams-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.teams-toolbar-label {
    color: rgba(214, 222, 244, 0.74);
    font-size: 0.88rem;
    font-weight: 700;
}

.teams-search-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.teams-search-input {
    width: 280px;
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #eef3ff;
    box-shadow: none;
}

    .teams-search-input::placeholder {
        color: rgba(205, 214, 238, 0.52);
    }

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.teams-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.teams-card {
    height: 100%;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(98, 144, 255, 0.10), transparent 34%), linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    box-shadow: 0 16px 36px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.teams-card-link:hover .teams-card {
    transform: translateY(-3px);
    border-color: rgba(122, 177, 255, 0.20);
    box-shadow: 0 22px 42px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

.teams-card.is-featured {
    border-color: rgba(120, 176, 255, 0.22);
    box-shadow: 0 18px 38px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.06);
}

.teams-card.is-stale {
    border-color: rgba(255,255,255,0.06);
    background: radial-gradient(circle at top right, rgba(115, 125, 146, 0.08), transparent 34%), linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
}

.teams-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.teams-card-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.teams-logo-wrap {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teams-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.teams-logo-fallback-mark {
    display: none;
    font-size: 0.82rem;
    font-weight: 900;
    color: #f8fbff;
    text-align: center;
    padding: 0.4rem;
}

.teams-logo-fallback .teams-logo-fallback-mark {
    display: block;
}

.teams-card-copy {
    min-width: 0;
}

.teams-card-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: #f8fbff;
    line-height: 1.15;
}

.teams-card-subtitle {
    margin-top: 0.25rem;
    color: rgba(206, 215, 240, 0.72);
    line-height: 1.45;
    font-size: 0.9rem;
}

.teams-card-summary {
    margin-top: 0.45rem;
    color: rgba(222, 230, 248, 0.78);
    font-size: 0.82rem;
    line-height: 1.5;
}

.teams-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.teams-abbr {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #dce7ff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teams-side-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .teams-side-badge.is-featured {
        border: 1px solid rgba(118, 177, 255, 0.24);
        background: rgba(89, 144, 255, 0.12);
        color: #d7e7ff;
    }

.teams-card-divider {
    height: 1px;
    margin: 1rem 0 0.95rem;
    background: rgba(255,255,255,0.07);
}

.teams-card-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.teams-card-badge,
.teams-card-metric {
    display: inline-flex;
    align-items: center;
    padding: 0.44rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    font-size: 0.76rem;
    font-weight: 800;
}

    .teams-card-badge.is-fresh {
        color: #d9f7e7;
        border-color: rgba(86, 196, 124, 0.24);
        background: rgba(37, 104, 61, 0.18);
    }

    .teams-card-badge.is-stale {
        color: rgba(230, 236, 248, 0.76);
        border-color: rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.04);
    }

.teams-card-metric {
    color: rgba(228, 234, 248, 0.82);
}

.teams-card-metric-net {
    color: #f8fbff;
    border-color: rgba(120, 176, 255, 0.18);
    background: rgba(91, 143, 255, 0.10);
}

.teams-card-foot {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.teams-card-hint {
    color: rgba(214, 222, 244, 0.70);
    font-size: 0.86rem;
    font-weight: 700;
}

.teams-card-arrow {
    color: #cfe1ff;
    font-size: 1rem;
    font-weight: 900;
}

.teams-empty {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
}

.teams-empty-title {
    font-size: 1rem;
    font-weight: 900;
    color: #f8fbff;
}

.teams-empty-text {
    margin-top: 0.35rem;
    color: rgba(214, 222, 244, 0.74);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .teams-hero-main,
    .teams-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .teams-search-form {
        width: 100%;
    }

    .teams-search-input {
        width: 100%;
    }

    .teams-card-top {
        align-items: flex-start;
    }

    .teams-card-side {
        align-items: flex-end;
    }
}