.team-page {
    display: grid;
    gap: 20px;
}

.team-page__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-height: 190px;
    padding: 30px;
    overflow: hidden;
    color: #fff;
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 18%, rgba(239, 198, 75, 0.34), transparent 26%),
        linear-gradient(125deg, #112653 0%, #244393 58%, #0c4da2 100%);
    box-shadow: 0 24px 48px rgba(17, 42, 84, 0.2);
}

.team-page__hero::before,
.team-page__hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.team-page__hero::before {
    width: 360px;
    height: 150px;
    right: -86px;
    bottom: -98px;
}

.team-page__hero::after {
    width: 470px;
    height: 210px;
    right: -128px;
    bottom: -134px;
}

.team-page__hero-copy {
    display: grid;
    gap: 9px;
}

.team-page__eyebrow,
.team-page__panel-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.team-page__hero h2 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 0.9;
}

.team-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.team-page__meta span {
    padding: 5px 9px;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
}

.team-page__manager {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.team-page__selector {
    display: grid;
    flex: 0 1 330px;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(7, 22, 52, 0.28);
    backdrop-filter: blur(10px);
}

.team-page__selector label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-page__selector select {
    width: 100%;
    min-width: 0;
    color: var(--text);
    border: 0;
    background-color: #fff;
}

.team-page__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.team-page__stat {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 112px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(25, 49, 95, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 26px rgba(17, 42, 84, 0.08);
    text-align: center;
}

.team-page__stat::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 4px;
    right: 0;
    top: 0;
    background: var(--primary);
}

.team-page__stat--accent::after {
    background: var(--accent);
}

.team-page__stat span {
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-page__stat strong {
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.35rem;
    line-height: 1;
}

.team-page__stat small {
    color: var(--text-soft);
    font-size: 0.7rem;
}

.team-page__spotlight,
.team-page__details {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.72fr);
    gap: 16px;
    align-items: start;
}

.team-page__details {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.team-page__panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(25, 49, 95, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 34px rgba(17, 42, 84, 0.08);
}

.team-page__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.team-page__panel-head > div {
    display: grid;
    gap: 3px;
}

.team-page__panel-head > .team-page__panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.team-page__panel h3 {
    color: var(--text);
    font-size: 1.65rem;
}

.team-page__panel-copy {
    margin: -6px 0 14px;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.team-page__next-card .session-card {
    max-width: none;
    margin: 0;
}

.team-page__weather {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 243, 252, 0.94)),
        #fff;
}

.team-page__weather-date {
    margin: -4px 0 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.team-page__weather-frame {
    display: block;
    width: 100%;
    height: 210px;
    border: 0;
    border-radius: 14px;
    background: #e7eef8;
}

.team-page__weather-note {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.7rem;
    line-height: 1.45;
}

.team-page__effective-chip {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #71540b;
    border: 1px solid rgba(239, 198, 75, 0.46);
    border-radius: 6px;
    background: rgba(239, 198, 75, 0.18);
    font-size: 0.68rem;
    font-weight: 800;
}

.team-ranking {
    display: grid;
    gap: 7px;
    max-height: 470px;
    margin: 0;
    padding: 2px 4px 2px 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: rgba(45, 65, 144, 0.28) transparent;
}

.team-ranking__item {
    display: grid;
    grid-template-columns: 28px 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(25, 49, 95, 0.08);
    border-radius: 12px;
    background: rgba(245, 248, 253, 0.88);
}

.team-ranking__item.is-current-user {
    border-color: rgba(239, 198, 75, 0.7);
    background: linear-gradient(90deg, rgba(239, 198, 75, 0.18), rgba(255, 255, 255, 0.94));
}

.team-ranking__position {
    color: var(--text-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.team-ranking__position--top {
    color: #9c7311;
}

.team-ranking__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-deep));
    font-size: 0.68rem;
    font-weight: 800;
}

.team-ranking__member {
    display: grid;
    min-width: 0;
}

.team-ranking__member strong {
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-ranking__member small {
    color: var(--text-soft);
    font-size: 0.64rem;
}

.team-ranking__track {
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(45, 65, 144, 0.1);
}

.team-ranking__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.team-ranking__percentage {
    min-width: 52px;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    text-align: right;
}

.team-upcoming-list {
    display: grid;
    gap: 9px;
}

.team-upcoming-list__item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px;
    border: 1px solid rgba(25, 49, 95, 0.09);
    border-radius: 13px;
    background: rgba(247, 249, 253, 0.92);
}

.team-upcoming-list__item time {
    display: grid;
    padding-right: 10px;
    border-right: 1px solid rgba(25, 49, 95, 0.1);
}

.team-upcoming-list__item time strong {
    color: var(--text);
    font-size: 0.72rem;
}

.team-upcoming-list__item time span {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.24rem;
    font-weight: 700;
}

.team-upcoming-list__item > div {
    display: grid;
    min-width: 0;
}

.team-upcoming-list__item > div strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-upcoming-list__item > div small {
    color: var(--text-soft);
    font-size: 0.65rem;
}

.team-upcoming-list__jump {
    padding: 6px 8px;
    color: var(--primary);
    border: 1px solid rgba(45, 65, 144, 0.2);
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    cursor: pointer;
}

.team-upcoming-list__jump:hover {
    border-color: var(--primary);
    background: rgba(45, 65, 144, 0.06);
}

.team-page__empty {
    display: grid;
    place-items: center;
    min-height: 290px;
    padding: 28px;
    color: var(--text-soft);
    border: 1px dashed rgba(25, 49, 95, 0.18);
    border-radius: 16px;
    text-align: center;
}

.team-page__empty strong {
    color: var(--text);
}

.team-page__empty--compact {
    min-height: 120px;
}

@media (max-width: 980px) {
    .team-page__spotlight,
    .team-page__details {
        grid-template-columns: 1fr;
    }

    .team-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .team-page {
        gap: 14px;
    }

    .team-page__hero {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .team-page__hero h2 {
        font-size: clamp(2.3rem, 15vw, 3.6rem);
    }

    .team-page__selector {
        flex-basis: auto;
    }

    .team-page__stats {
        gap: 8px;
    }

    .team-page__stat {
        min-height: 96px;
        padding: 14px;
        border-radius: 13px;
    }

    .team-page__stat strong {
        font-size: 1.9rem;
    }

    .team-page__panel {
        padding: 14px;
        border-radius: 16px;
    }

    .team-page__panel-head > .team-page__panel-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .team-page__weather-frame {
        height: 190px;
    }

    .team-ranking__item {
        grid-template-columns: 24px 30px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 8px;
    }

    .team-ranking__avatar {
        width: 30px;
        height: 30px;
    }

    .team-ranking__percentage {
        min-width: 46px;
        font-size: 1rem;
    }

    .team-upcoming-list__item {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .team-upcoming-list__jump {
        grid-column: 1 / -1;
        width: 100%;
    }
}
