*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

.team-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--main-font);
    color: #fff;
    background:
        radial-gradient(55% 45% at 50% 0%, rgba(2, 207, 92, 0.14), rgba(5, 5, 9, 0) 65%),
        radial-gradient(28% 24% at 15% 20%, rgba(2, 207, 92, 0.06), rgba(5, 5, 9, 0) 70%),
        radial-gradient(20% 18% at 85% 16%, rgba(2, 207, 92, 0.05), rgba(5, 5, 9, 0) 70%),
        #050509;
    padding-top: 96px;
    overflow-x: hidden;
}

.team-page {
    flex: 1 0 auto;
}

.team-body footer,
.team-body .footer,
.team-body .site-footer {
    margin-top: auto;
}

.team-body ::selection {
    background: rgba(2, 207, 92, 0.24);
    color: #fff;
}

.team-no-scroll {
    overflow: hidden !important;
}

.team-hero {
    position: relative;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 18px;
}

.team-hero__bg {
    position: absolute;
    inset: 26px 0 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
        rgba(10, 10, 12, 0.74);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.team-hero__bg::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(65% 90% at 50% 0%, rgba(2, 207, 92, 0.16), rgba(2, 207, 92, 0) 60%);
    pointer-events: none;
}

.team-hero__bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
    pointer-events: none;
}

.team-hero__content {
    position: relative;
    z-index: 1;
    padding: 56px 56px 42px;
}

.team-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(2, 207, 92, 0.98);
    background: rgba(2, 207, 92, 0.1);
    border: 1px solid rgba(2, 207, 92, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.team-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.team-hero__title {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

.team-hero__title span {
    display: block;
    background: linear-gradient(90deg, var(--servername-gradient));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-hero__text {
    margin: 18px 0 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.76);
}

.team-hero__actions {
    flex-shrink: 0;
    margin-top: 6px;
}

.team-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.05);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.team-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    border-color: rgba(2,207,92,0.24);
}

.team-btn--primary {
    background: linear-gradient(135deg, #02cf5c, #019643);
    border-color: rgba(2,207,92,0.3);
    box-shadow: 0 14px 30px rgba(2,207,92,0.2);
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.team-stat {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(8, 9, 12, 0.64);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.34);
}

.team-stat__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.team-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.54);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(10,10,12,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    box-shadow: 0 18px 48px rgba(0,0,0,0.38);
}

.team-alert-success {
    border-color: rgba(2,207,92,0.22);
    background: rgba(2,207,92,0.08);
}

.team-alert-error {
    border-color: rgba(220,78,78,0.22);
    background: rgba(220,78,78,0.08);
}

.team-content {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.team-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
}

.team-section-head__eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(2, 207, 92, 0.9);
}

.team-section-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.team-section-head__text {
    margin: 0;
    max-width: 460px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
    text-align: right;
}

.team-empty {
    padding: 34px 24px;
    border-radius: 22px;
    text-align: center;
    background: rgba(10,10,12,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.36);
}

.team-empty h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.team-empty p {
    margin: 0;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
}

.team-section {
    margin-top: 26px;
}

.team-section:first-of-type {
    margin-top: 0;
}

.team-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.team-section-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(2, 207, 92, 0.88);
}

.team-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.team-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.76);
    font-size: 0.82rem;
    font-weight: 800;
}

.team-section-empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(10,10,12,0.7);
    border: 1px dashed rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.68);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(10, 10, 12, 0.76);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.team-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(2,207,92,0), rgba(2,207,92,0.7), rgba(2,207,92,0));
    opacity: 0.55;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(2, 207, 92, 0.16);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.team-card__glow {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(2,207,92,0.1), rgba(0,0,0,0) 62%);
    pointer-events: none;
}

.team-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 62px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-fallback {
    width: 100%;
    height: 100%;
    display: block;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 55%),
        rgba(255,255,255,0.04);
}

.team-headings {
    min-width: 0;
}

.team-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(2, 207, 92, 0.1);
    border: 1px solid rgba(2, 207, 92, 0.16);
    color: rgba(2, 207, 92, 0.96);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.team-name {
    margin: 0 0 4px;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.28;
    color: #fff;
}

.team-role {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(255,255,255,0.74);
}

.team-role-muted {
    color: rgba(255,255,255,0.58);
}

.team-divider {
    margin: 16px 0;
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.team-info {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-col-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: rgba(2, 207, 92, 0.12);
    border: 1px solid rgba(2, 207, 92, 0.22);
    color: rgba(2, 207, 92, 0.95);
    -webkit-tap-highlight-color: transparent;
}

.team-muted {
    color: rgba(255,255,255,0.62);
    font-size: 0.92rem;
}

.team-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.team-discord-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(2, 207, 92, 0.12);
    border: 1px solid rgba(2, 207, 92, 0.18);
    color: rgba(2, 207, 92, 0.95);
}

.team-discord-icon svg {
    width: 18px;
    height: 18px;
}

.team-contact-text {
    min-width: 0;
}

.team-contact-name {
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.2;
}

.team-contact-handle {
    margin-top: 2px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    word-break: break-word;
}

.team-admin-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    font-family: var(--main-font);
}

.team-admin-modal.open {
    display: block;
}

.team-admin-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 55% at 50% 8%, rgba(2,207,92,0.18), rgba(5,5,9,0) 58%),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team-admin-dialog {
    position: relative;
    width: min(980px, calc(100% - 36px));
    margin: 92px auto 28px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 10, 12, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.team-admin-dialog::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(2, 207, 92, 0.95), rgba(1, 150, 67, 0.15));
    opacity: 0.55;
}

.team-admin-header {
    padding: 18px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-admin-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.team-admin-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.team-admin-close:hover {
    background: rgba(2,207,92,0.14);
    border-color: rgba(2,207,92,0.40);
    box-shadow: 0 0 16px rgba(2,207,92,0.18);
    transform: translateY(-1px);
}

.team-admin-close:focus,
.team-admin-close:focus-visible {
    outline: none;
}

.team-admin-tabs {
    padding: 0 18px 12px;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.team-admin-tab {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.team-admin-tab:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
}

.team-admin-tab-active {
    color: #04140a;
    background: linear-gradient(135deg, #02cf5c, #019643);
    border-color: rgba(2, 207, 92, 0.40);
    box-shadow: 0 0 0 1px rgba(2, 207, 92, 0.10) inset;
}

.team-admin-body {
    padding: 0 18px 18px;
    overflow: auto;
}

.team-admin-body::-webkit-scrollbar {
    width: 10px;
}

.team-admin-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.25);
}

.team-admin-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    border: 2px solid rgba(10,10,12,0.86);
}

.team-admin-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.16);
}

.team-admin-panel {
    display: none;
}

.team-admin-panel-active {
    display: block;
}

.team-admin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.team-admin-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 16px;
    background: rgba(10, 10, 12, 0.68);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 46px rgba(0,0,0,0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.team-admin-card-title {
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.team-admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.team-admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-admin-field label {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(255,255,255,0.8);
}

.team-admin-field input,
.team-admin-field select,
.team-admin-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.92);
    padding: 12px 12px;
    outline: none;
    font-family: var(--main-font);
}

.team-admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.team-admin-check {
    justify-content: flex-end;
}

.team-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 64px;
    height: 36px;
}

.team-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.team-switch-ui {
    width: 64px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: 0.2s ease;
}

.team-switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    transition: 0.2s ease;
}

.team-switch input:checked + .team-switch-ui {
    background: rgba(2,207,92,0.22);
    border-color: rgba(2,207,92,0.32);
}

.team-switch input:checked + .team-switch-ui::after {
    transform: translateX(28px);
    background: #02cf5c;
}

.team-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.team-admin-submit,
.team-admin-ghost,
.team-mini-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    transition: 0.16s ease;
}

.team-admin-submit {
    background: linear-gradient(135deg, #02cf5c, #019643);
    border-color: rgba(2,207,92,0.3);
}

.team-admin-ghost {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.team-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.team-admin-empty {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.66);
}

.team-admin-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.team-admin-item-main {
    min-width: 0;
}

.team-admin-item-title {
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
}

.team-admin-item-meta {
    margin-top: 4px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
}

.team-admin-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2,207,92,0.1);
    border: 1px solid rgba(2,207,92,0.16);
    color: rgba(2,207,92,0.95);
    font-size: 0.72rem;
    font-weight: 900;
}

.team-admin-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.team-mini-form {
    margin: 0;
}

.team-mini-btn {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.team-mini-btn:hover,
.team-admin-submit:hover,
.team-admin-ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.4);
}

.team-mini-edit {
    border-color: rgba(255,255,255,0.1);
}

.team-mini-delete {
    background: rgba(220,78,78,0.14);
    border-color: rgba(220,78,78,0.26);
}

.reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .team-stats {
        grid-template-columns: 1fr;
    }

    .team-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-section-head__text {
        text-align: left;
        max-width: none;
    }

    .team-admin-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-body {
        padding-top: 88px;
    }

    .team-hero,
    .team-content {
        width: min(100% - 24px, 1240px);
    }

    .team-hero__content {
        padding: 28px 18px 22px;
    }

    .team-hero__top {
        flex-direction: column;
    }

    .team-hero__title {
        line-height: 1.02;
    }

    .team-section-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-admin-row {
        grid-template-columns: 1fr;
    }

    .team-admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-admin-item-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .team-hero__badge {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .team-card {
        border-radius: 18px;
        padding: 18px;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-btn,
    .team-admin-submit,
    .team-admin-ghost,
    .team-mini-btn {
        width: 100%;
    }

    .team-admin-actions,
    .team-admin-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .team-admin-dialog {
        width: min(100% - 16px, 980px);
        margin: 72px auto 16px;
        max-height: calc(100vh - 88px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}