:root {
    --team-ink: #15231d;
    --team-muted:#6c747f;
    --team-line: #e4ebe7;
    --team-soft: #f5f8f6;
    --team-green: #4caf50;
    --team-green-dark:#3d8e41;
    --team-lime: #b9f44a;
    --team-white: #fff;
    --team-danger: #d2122e;
    --team-shadow: 0 22px 60px rgba(19, 65, 45, .1);
    --team-content-gutter: clamp(10px, 2vw, 18px);
}

/* Shared controls */
.team-primary-button,
.team-secondary-button {
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.team-primary-button {
    color: #fff !important;
    background: linear-gradient(135deg, var(--team-green), var(--team-green-dark)) !important;
    box-shadow: 0 12px 28px rgba(21, 145, 93, .24);
}

.team-primary-button:hover,
.team-secondary-button:hover { transform: translateY(-1px); }
.team-primary-button:disabled { opacity: .68; cursor: wait; transform: none; }

.team-secondary-button {
    color: var(--team-ink) !important;
    background: var(--team-white) !important;
    border: 1px solid var(--team-line);
}

/* Shared team creation CTA */
.premium-add-team.addTeam {
    position: relative;
    min-height: 52px;
    padding: 8px 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(185, 244, 74, .34) !important;
    border-radius: 16px !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 12% 0, rgba(185, 244, 74, .26), transparent 34%),
        linear-gradient(135deg, #15915d 0%, #0c6843 72%) !important;
    box-shadow: 0 14px 30px rgba(12, 104, 67, .26), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
    font-weight: 850;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.premium-add-team.addTeam::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -18%;
    width: 36%;
    height: 240%;
    background: rgba(255, 255, 255, .15);
    transform: rotate(20deg);
    transition: left .45s ease;
}

.premium-add-team.addTeam:hover {
    color: #fff !important;
    filter: saturate(1.08);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(12, 104, 67, .32), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

.premium-add-team.addTeam:hover::after { left: 105%; }
.premium-add-team.addTeam > span { position: relative; color: #fff !important; }
.premium-add-team.addTeam > span:not(.premium-add-team-icon) { display: grid; gap: 2px; text-align: left; }
.premium-add-team.addTeam strong,
.premium-add-team.addTeam small { display: block; color: #fff !important; }
.premium-add-team.addTeam small { opacity: .72; font-weight: 650; }
.premium-add-team-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .12);
}

.team-page-eyebrow,
.team-create-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--team-green);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Create sheet */
.custom-modal.team-create-modal {
    background: rgba(8, 22, 16, .46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.team-create-modal .custom-modal-content {
    width: min(720px, 100%) !important;
    min-width: 0 !important;
    max-width: 720px !important;
    height: min(92vh, 920px);
    border-radius: 26px 26px 0 0;
    background: #f7faf8;
    box-shadow: 0 -24px 80px rgba(4, 28, 18, .3);
}

.team-create-modal .custom-modal-header {
    min-height: 58px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--team-line);
    background: rgba(255, 255, 255, .94);
}

.team-create-modal .custom-modal-header > span {
    color: var(--team-ink) !important;
}

.team-create-modal .custom-modal-body { background: #f7faf8; }

.team-create-form { padding: 26px 26px calc(28px + env(safe-area-inset-bottom)); }
.team-create-intro { padding: 6px 2px 20px; }
.team-create-intro h2,
.team-create-success h2,
.team-create-load-error h3 {
    margin: 8px 0 7px;
    color: var(--team-ink);
    font-weight: 900;
    letter-spacing: -.035em;
}

.team-create-intro p,
.team-create-success > p,
.team-create-load-error p {
    margin: 0;
    color: var(--team-muted);
    line-height: 1.65;
}

.team-create-location {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 14px;
    color: var(--team-ink);
    background: linear-gradient(135deg, #effaf4, #f7fcf9);
    border: 1px solid #cfe8da;
    border-radius: 17px;
}

.team-create-location.is-expanded {
    background: #fff;
    border-color: rgba(21, 145, 93, .38);
    box-shadow: 0 10px 28px rgba(31, 68, 51, .07);
}

.team-create-location-icon,
.team-privacy-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--team-green);
    background: rgba(21, 145, 93, .1);
}

.team-create-location small,
.team-create-location strong { display: block; }
.team-create-location small { color: var(--team-muted); }
.team-create-location strong { margin-top: 2px; }
.team-create-location-toggle {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(21, 145, 93, .2);
    border-radius: 10px;
    color: var(--team-green);
    background: rgba(255, 255, 255, .72);
    font-weight: 850;
}
.team-create-location-toggle i { transition: transform .2s ease; }
.team-create-location-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.team-create-location-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--team-line);
}
.team-create-location-fields[hidden] { display: none; }

.team-create-section {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--team-line);
    border-radius: 20px;
    background: var(--team-white);
    box-shadow: 0 8px 24px rgba(31, 68, 51, .045);
}

fieldset.team-create-section { min-width: 0; }
.team-create-section legend { float: none; width: 100%; margin: 0 0 14px; }
.team-create-section legend > span { display: block; color: var(--team-ink); font-weight: 850; }
.team-create-section legend > small { display: block; margin-top: 3px; color: var(--team-muted); }
.team-create-section b,
.team-create-field > span b { color: #dd4655; }

.team-create-logo-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    gap: 14px;
    padding-bottom: 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid var(--team-line);
}

.team-create-logo-button,
.team-edit-logo {
    position: relative;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 20px;
    background: #eaf1ed;
    box-shadow: 0 0 0 1px var(--team-line), 0 10px 25px rgba(20, 72, 48, .12);
}

.team-create-logo-button img,
.team-edit-logo img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; }
.team-create-logo-button > span,
.team-edit-logo > span {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--team-green);
}

.team-create-logo-row strong,
.team-create-logo-row p { display: block; margin: 0; }
.team-create-logo-row strong { color: var(--team-ink); }
.team-create-logo-row p { margin: 3px 0 5px; color: var(--team-muted); line-height: 1.45; }
.team-create-logo-link { padding: 0; border: 0; color: var(--team-green); background: none; font-weight: 800; }

.team-create-field { position: relative; display: block; margin: 0; }
.team-create-field > span:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--team-ink);
    font-weight: 800;
}
.team-create-field > span em { color: var(--team-muted); font-style: normal; font-weight: 600; }

.team-create-input-wrap,
.team-premium-input {
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid var(--team-line);
    border-radius: 14px;
    background: #fbfdfc;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.team-create-input-wrap:focus-within,
.team-premium-input:focus-within {
    border-color: rgba(21, 145, 93, .7);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 145, 93, .09);
}

.team-create-input-wrap > i,
.team-premium-input > i { color: var(--team-green); }
.team-create-input-wrap input,
.team-create-input-wrap select,
.team-premium-input input,
.team-premium-input select {
    width: 100%;
    height: 47px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--team-ink);
    background: transparent;
    font-weight: 700;
}
.team-create-input-wrap input::placeholder { color: #a8b4ad; font-weight: 500; }
.team-create-input-wrap input.is-invalid { color: var(--team-danger); }
.team-create-field-error { min-height: 0; display: block; margin: 5px 2px 0; color: var(--team-danger); }

.team-format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team-level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team-choice-card { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.team-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.team-choice-card > strong,
.team-choice-card > small,
.team-choice-card > .team-level-icon { position: relative; z-index: 1; }
.team-choice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--team-line);
    border-radius: 14px;
    background: #fbfdfc;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.team-choice-card:has(input:checked)::before {
    border-color: var(--team-green);
    background: #effaf4;
    box-shadow: 0 0 0 3px rgba(21, 145, 93, .08);
}
.team-choice-card:hover::before { transform: translateY(-1px); }
.team-choice-check {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 7px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--team-green);
    opacity: 0;
    transform: scale(.7);
    transition: .18s;
}
.team-choice-card:has(input:checked) .team-choice-check { opacity: 1; transform: scale(1); }
.team-format-card { min-height: 74px; padding: 18px 6px 9px; text-align: center; }
.team-format-card strong { display: block; color: var(--team-ink); font-weight: 900; }
.team-format-card strong span { padding: 0 1px; color: var(--team-green); }
.team-format-card small { display: block; margin-top: 2px; overflow: hidden; color: var(--team-muted); white-space: nowrap; text-overflow: ellipsis; }
.team-level-card { min-height: 83px; padding: 13px 6px 9px; text-align: center; }
.team-level-icon { width: 27px; height: 27px; margin: 0 auto 5px; display: grid; place-items: center; border-radius: 9px; color: var(--team-green); background: rgba(21,145,93,.1); }
.team-level-card strong { display: block; overflow: hidden; color: var(--team-ink); font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }

.team-create-field textarea,
.team-premium-field textarea {
    width: 100%;
    padding: 13px 14px 25px;
    resize: vertical;
    border: 1px solid var(--team-line);
    border-radius: 14px;
    outline: 0;
    color: var(--team-ink);
    background: #fbfdfc;
    line-height: 1.55;
}
.team-create-field textarea:focus,
.team-premium-field textarea:focus { border-color: var(--team-green); box-shadow: 0 0 0 4px rgba(21,145,93,.08); }
.team-create-counter { position: absolute; right: 12px; bottom: 8px; color: var(--team-muted); }

.team-privacy-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--team-line); }
.team-privacy-copy strong,
.team-privacy-copy small { display: block; }
.team-privacy-copy strong { color: var(--team-ink); }
.team-privacy-copy small { margin-top: 3px; color: var(--team-muted); line-height: 1.4; }
.team-privacy-row.is-private .team-privacy-icon { color: #7a5c21; background: #fff6df; }
.team-switch { position: relative; width: 46px; height: 27px; margin: 0; }
.team-switch input { position: absolute; opacity: 0; }
.team-switch > span { position: absolute; inset: 0; border-radius: 99px; background: #ced8d2; transition: .2s; }
.team-switch > span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.17); transition: .2s; }
.team-switch input:checked + span { background: var(--team-green); }
.team-switch input:checked + span::after { transform: translateX(19px); }

.team-create-advanced {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--team-line);
    border-radius: 20px;
    background: var(--team-white);
    box-shadow: 0 8px 24px rgba(31, 68, 51, .045);
}
.team-create-advanced > summary {
    min-height: 76px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: var(--team-ink);
    cursor: pointer;
    list-style: none;
}
.team-create-advanced > summary::-webkit-details-marker { display: none; }
.team-create-advanced > summary > span:nth-child(2) strong,
.team-create-advanced > summary > span:nth-child(2) small { display: block; }
.team-create-advanced > summary > span:nth-child(2) small { margin-top: 3px; color: var(--team-muted); line-height: 1.4; }
.team-create-advanced-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--team-green);
    background: rgba(21, 145, 93, .1);
}
.team-create-advanced-chevron { color: var(--team-green); transition: transform .2s ease; }
.team-create-advanced[open] .team-create-advanced-chevron { transform: rotate(180deg); }
.team-create-advanced-content { padding: 17px; border-top: 1px solid var(--team-line); background: #fbfdfc; }
.team-create-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.team-create-option-toggles { margin-top: 17px; padding-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border-top: 1px solid var(--team-line); }
.team-create-option-toggle {
    min-width: 0;
    padding: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--team-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.team-create-option-toggle > span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--team-green);
    background: rgba(21, 145, 93, .09);
}
.team-create-option-toggle strong,
.team-create-option-toggle small { display: block; }
.team-create-option-toggle strong { color: var(--team-ink); }
.team-create-option-toggle small { margin-top: 2px; overflow: hidden; color: var(--team-muted); white-space: nowrap; text-overflow: ellipsis; }
.team-create-option-toggle .team-switch { transform: scale(.88); transform-origin: right center; }

.team-create-error { display: none; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #f3c9ce; border-radius: 13px; color: #a82f3c; background: #fff3f4; font-weight: 700; }
.team-create-error.is-visible { display: block; }
.team-create-actions .team-primary-button { width: 100%; }
.team-create-actions > small { display: block; margin-top: 10px; color: var(--team-muted); text-align: center; }
.team-create-actions > small i { color: var(--team-green); margin-right: 4px; }

.team-create-success,
.team-create-load-error { min-height: 460px; padding: 50px 30px calc(34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.team-create-success-mark,
.team-create-load-error > span {
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 27px;
    color: #fff;
    background: linear-gradient(135deg, var(--team-green), #0c6c46);
    box-shadow: 0 18px 45px rgba(21,145,93,.28);
    transform: rotate(-4deg);
}
.team-create-load-error > span { color: var(--team-danger); background: #fff0f2; box-shadow: none; }
.team-create-success-summary { width: 100%; max-width: 390px; margin: 24px 0; display: grid; gap: 9px; text-align: left; }
.team-create-success-summary span { padding: 11px 13px; border-radius: 12px; color: var(--team-ink); background: #eef8f2; font-weight: 750; }
.team-create-success-summary i { margin-right: 7px; color: var(--team-green); }
.team-create-success-actions { width: 100%; display: grid; grid-template-columns: .8fr 1.4fr; gap: 10px; }

/* Team management page */
.team-premium-page {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 80px;
    color: var(--team-ink);
}

.team-premium-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 26px 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 76% 8%, rgba(255,255,255,.2), transparent 33%),
        radial-gradient(circle at 18% 110%, rgba(185,244,74,.1), transparent 39%),
        linear-gradient(135deg, #285a47 0%, #347258 56%, #48876a 100%);
    box-shadow: 0 24px 60px rgba(16,69,48,.18), 0 7px 20px rgba(18,70,51,.09), inset 0 1px 0 rgba(255,255,255,.2);
    backdrop-filter: blur(18px) saturate(.9);
    -webkit-backdrop-filter: blur(18px) saturate(.9);
}
.team-premium-hero::before,
.my-teams-hero::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 30%, transparent 70%, rgba(226,255,191,.09)); }
.team-premium-hero::after,
.my-teams-hero::after { content: ""; position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent); opacity: .65; }
.team-hero-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.team-hero-glow-one { top: -112px; right: -58px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 70px rgba(203,255,111,.05); }
.team-hero-glow-two { bottom: -150px; left: 27%; width: 330px; height: 330px; background: rgba(185,244,74,.065); filter: blur(5px); }
.team-hero-topbar { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; }
.team-icon-button { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 9px 22px rgba(3,30,19,.14); backdrop-filter: blur(12px); transition: transform .18s, background .18s, border-color .18s; }
.team-icon-button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.16); }
.team-owner-badge { justify-self: center; padding: 7px 11px; border-radius: 99px; color: #e8ffc0; background: rgba(185,244,74,.12); border: 1px solid rgba(185,244,74,.2); font-weight: 800; }
.team-owner-badge i { margin-right: 5px; color: var(--team-lime); }
.team-hero-main { position: relative; z-index: 1; padding: 30px 2px 25px; display: flex; align-items: center; gap: 20px; }
.team-hero-logo-wrap { position: relative; flex: 0 0 auto; }
.team-hero-logo { width: 94px; height: 94px; padding: 4px; border: 1px solid rgba(255,255,255,.32); border-radius: 26px; background: rgba(255,255,255,.16); object-fit: cover; box-shadow: 0 20px 42px rgba(0,0,0,.24), 0 0 0 5px rgba(255,255,255,.045); }
.team-hero-logo-wrap > span { position: absolute; right: -4px; bottom: -3px; width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid #106441; border-radius: 50%; color: var(--team-lime); background: #fff; }
.team-hero-copy .team-page-eyebrow { color: #cfff89; }
.team-hero-copy h1 { margin: 6px 0 10px; color: #fff; font-weight: 900; letter-spacing: -.04em; }
.team-hero-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.team-hero-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; color: rgba(255,255,255,.9); background: rgba(22,70,50,.15); font-weight: 650; }
.team-hero-meta i { margin-right: 5px; color: var(--team-lime); }
.team-hero-stats { position: relative; z-index: 1; margin-inline: -26px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.13); background: linear-gradient(180deg, rgba(2,24,15,.08), rgba(2,24,15,.2)); backdrop-filter: blur(14px); }
.team-hero-stats div { padding: 15px 10px 17px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.team-hero-stats div:last-child { border: 0; }
.team-hero-stats strong,
.team-hero-stats span { display: block; }
.team-hero-stats strong { color: #fff; font-weight: 900; }
.team-hero-stats span { margin-top: 2px; color: rgba(255,255,255,.6); font-weight: 650; }

.team-command-center { margin: 0; }
.team-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.team-section-heading h2 { margin: 2px 0 3px; color: var(--team-ink); font-weight: 900; letter-spacing: -.025em; }
.team-section-heading p { max-width: 650px; margin: 0; color: var(--team-muted); line-height: 1.55; }
.team-content-heading-card { margin-inline: var(--team-content-gutter); margin-bottom: 12px; padding: 13px 15px; border: 1px solid var(--team-line); border-radius: 15px; background: #fff; box-shadow: 0 6px 18px rgba(25, 75, 51, .045); }

.team-premium-tabs { margin-top: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding: 6px; border: 1px solid var(--team-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(25, 75, 51, .055); }
.team-premium-tabs button { min-width: 0; min-height: 58px; padding: 7px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 12px; color: var(--team-muted); background: transparent; text-align: center; transition: .2s; }
.team-premium-tabs button > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #839189; background: #e8eeea; }
.team-premium-tabs button span { overflow: hidden; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.team-premium-tabs button.active { color: var(--team-ink); border-color: #d8e7de; background: #fff; box-shadow: 0 6px 18px rgba(28,76,53,.08); }
.team-premium-tabs button.active > i { color: #fff; background: var(--team-green); }
.team-tab-content { margin-top: 14px; }
.team-partial-shell { min-height: 180px; }
.team-staff-tab,
.team-staff-editor-host { margin: 0 !important; padding: 0 !important; }
.team-staff-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.team-staff-toolbar-copy { min-width: 0; }
.team-staff-toolbar-copy h2 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-staff-toolbar .team-secondary-button { min-height: 38px; padding: 0 12px; border-radius: 11px; }

.team-inline-setting { margin: 0; padding: 5px 6px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 11px; background: var(--team-soft); }
.team-inline-setting-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--team-green); background: #fff; }
.team-inline-setting strong,
.team-inline-setting small { display: block; }
.team-inline-setting small { color: var(--team-muted); }
.team-inline-setting select { min-width: 86px; height: 32px; padding: 0 8px; border: 1px solid var(--team-line); border-radius: 9px; color: var(--team-ink); background: #fff; font-weight: 800; }

.team-staff-role-section { padding: 0 !important; }
.team-staff-role-grid { margin: 10px var(--team-content-gutter) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.team-staff-role-card { min-width: 0; padding: 10px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; overflow: hidden; border: 1px solid var(--team-line); border-radius: 14px; color: var(--team-ink); background: linear-gradient(145deg, #fff, #f7fbf9); box-shadow: 0 8px 20px rgba(25, 75, 51, .055); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.team-staff-role-card:hover { transform: translateY(-1px); border-color: #c9ddd2; box-shadow: 0 11px 24px rgba(25, 75, 51, .085); }
.team-staff-role-avatar { width: 42px; height: 42px; padding: 2px; overflow: hidden; border: 1px solid #dce9e1; border-radius: 13px; background: #fff; }
.team-staff-role-avatar img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.team-staff-role-copy,
.team-staff-role-copy strong,
.team-staff-role-copy small { min-width: 0; display: block; }
.team-staff-role-copy strong,
.team-staff-role-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-staff-role-label { margin-bottom: 2px; color: var(--team-green); font-weight: 850; }
.team-staff-role-label i { margin-right: 3px; }
.team-staff-role-meta { margin-top: 2px; color: var(--team-muted); }
.team-staff-role-owner { border-top-color: #9fd8bc; }
.team-staff-role-coach { border-top-color: #b9d8c8; }
.team-staff-role-captain { border-top-color: #a9cd79; }

/* Settings partial */
.team-settings-form { display: grid; gap: 0; }
.team-settings-form > .team-section-heading { margin-bottom: 12px; }
.team-autosave-note { flex: 0 0 auto; padding: 7px 10px; border-radius: 99px; color: var(--team-green); background: #edf8f2; font-weight: 800; }
.team-autosave-note i { margin-right: 4px; }
.team-settings-card { margin-inline: var(--team-content-gutter); padding: 18px 0; border-bottom: 1px solid var(--team-line); }
.team-settings-card:last-of-type { border-bottom: 0; }
.team-settings-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.team-settings-card-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--team-green); background: #eaf7f0; }
.team-settings-card-heading h3,
.team-settings-card-heading p { margin: 0; }
.team-settings-card-heading h3 { color: var(--team-ink); font-weight: 900; }
.team-settings-card-heading p { margin-top: 2px; color: var(--team-muted); }
.team-edit-logo-row { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--team-line); }
.team-edit-logo-row strong,
.team-edit-logo-row small { display: block; }
.team-edit-logo-row small { margin-top: 2px; color: var(--team-muted); }
.team-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.team-field-wide { grid-column: 1 / -1; }
.team-premium-field { min-width: 0; margin: 0; }
.team-premium-field > span:first-child { min-height: 18px; margin: 0 2px 5px; display: flex; justify-content: space-between; color: var(--team-ink); font-weight: 800; }
.team-premium-field > span em { color: var(--team-muted); font-style: normal; font-weight: 500; }
.team-premium-input { min-height: 44px; background: #fff; }
.team-premium-input input,
.team-premium-input select { height: 42px; }
.team-description-editor .ck.ck-editor { width: 100%; border-radius: 15px; box-shadow: 0 8px 24px rgba(25,75,51,.055); }
.team-description-editor .ck.ck-toolbar { border: 1px solid var(--team-line); border-bottom: 0; border-radius: 15px 15px 0 0; background: #f7fbf9; }
.team-description-editor .ck.ck-editor__main > .ck-editor__editable { min-height: 145px; padding: 12px 15px; border: 1px solid var(--team-line); border-radius: 0 0 15px 15px; color: var(--team-ink); background: #fff; box-shadow: none; }
.team-description-editor .ck.ck-editor__main > .ck-editor__editable:focus { border-color: var(--team-green); box-shadow: 0 0 0 4px rgba(21,145,93,.08); }
.team-toggle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.team-setting-toggle { position: relative; min-width: 0; margin: 0; padding: 12px; display: grid; grid-template-columns: 35px 1fr 40px; align-items: center; gap: 10px; border: 1px solid var(--team-line); border-radius: 14px; background: #fff; cursor: pointer; }
.team-setting-toggle > span:first-child { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--team-green); background: #edf8f2; }
.team-setting-toggle strong,
.team-setting-toggle small { display: block; }
.team-setting-toggle strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-setting-toggle small { margin-top: 2px; overflow: hidden; color: var(--team-muted); white-space: nowrap; text-overflow: ellipsis; }
.team-setting-toggle input { position: absolute; opacity: 0; }
.team-setting-toggle > i { position: relative; width: 40px; height: 23px; border-radius: 99px; background: #d1dbd5; transition: .2s; }
.team-setting-toggle > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.14); transition: .2s; }
.team-setting-toggle input:checked + i { background: var(--team-green); }
.team-setting-toggle input:checked + i::after { transform: translateX(17px); }
.team-settings-actions { position: sticky; z-index: 5; bottom: 8px; margin: 8px var(--team-content-gutter) 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.team-settings-actions > span { margin-right: auto; }
.team-settings-actions > span { color: var(--team-muted); }
.team-settings-actions > span i { margin-right: 4px; color: var(--team-green); }
.team-settings-actions .team-primary-button { min-height: 43px; }

/* Availability */
.team-availability-tip,
.team-location-tip { margin-bottom: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #d8ebdf; border-radius: 15px; color: var(--team-ink); background: #f1faf5; line-height: 1.45; }
.team-availability-tip > i { color: var(--team-green); }
.team-availability-tip strong { margin-right: 3px; }
.team-day-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.team-day-card { margin: 0 !important; overflow: hidden; border: 1px solid var(--team-line) !important; border-radius: 17px !important; background: #fff !important; box-shadow: none !important; }
.team-day-card .card-body { padding: 12px !important; background: #fff !important; }
.team-day-card .card-body.bg-half-primary { background: #f1faf5 !important; }
.team-day-toggle { width: 100%; padding: 0; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; border: 0; color: var(--team-ink); background: transparent; text-align: left; }
.team-day-monogram { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--team-muted); background: var(--team-soft); font-weight: 900; }
.team-day-toggle strong,
.team-day-toggle small { display: block; }
.team-day-toggle small { margin-top: 2px; color: var(--team-muted); }
.team-day-toggle > i { color: #b5c0ba; }
.team-day-card .bg-half-primary .team-day-monogram { color: #fff; background: var(--team-green); }
.team-day-card .bg-half-primary .team-day-toggle > i { color: var(--team-green); }
.team-day-hours { margin-top: 11px; padding-top: 11px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; border-top: 1px solid #dfe9e3; }
.team-day-hours > i { padding-bottom: 9px; color: #9caaa2; }
.team-day-hours label { margin: 0; }
.team-day-hours label span { display: block; margin-bottom: 4px; color: var(--team-muted); font-weight: 700; }
.team-day-hours input { width: 100%; height: 34px; padding: 0 6px; border: 1px solid var(--team-line); border-radius: 9px; color: var(--team-ink); background: #fff; font-weight: 750; }

.team-legacy-day-grid .card { border-color: var(--team-line) !important; background: var(--team-white) !important; }
.team-legacy-day-grid .card-body { color: var(--team-ink); background: var(--team-white) !important; }
.team-legacy-day-grid .card-body.bg-half-primary { background: #edf8f2 !important; }
.team-legacy-day-grid .text-primary { color: var(--team-green) !important; }
.team-legacy-day-grid input.bg-half-primary { border-color: #d8e8df !important; color: var(--team-ink) !important; background: #f7fbf9 !important; }

/* Location, squad and rivals */
.team-location-tip > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--team-green); background: #fff; }
.team-location-tip strong,
.team-location-tip small { display: block; }
.team-location-tip small { margin-top: 2px; color: var(--team-muted); }
.team-location-relation { min-height: 140px; padding: 2px 0; }
.team-rivals-grid { margin-inline: var(--team-content-gutter); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.team-rivals-grid > section { min-width: 0; padding: 10px 2px; }
.team-rivals-grid > section + section { border-left: 1px solid var(--team-line); padding-left: 16px; }
.team-rivals-grid h3 { margin: 0 0 12px; color: var(--team-ink); font-weight: 900; }
.team-rivals-grid h3 i { margin-right: 5px; color: var(--team-green); }
.team-request-list,
.team-rival-list { display: grid; gap: 8px; }
.team-request-item { min-width: 0; }
.team-compact-empty { min-height: 145px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.team-compact-empty > span { width: 43px; height: 43px; margin-bottom: 9px; display: grid; place-items: center; border-radius: 13px; color: var(--team-green); background: #edf8f2; }
.team-compact-empty strong { color: var(--team-ink); }
.team-compact-empty small { max-width: 240px; margin-top: 3px; color: var(--team-muted); line-height: 1.45; }
.team-rival-card { width: 100%; padding: 9px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--team-line); border-radius: 13px; color: var(--team-ink); background: #fff; text-align: left; }
.team-rival-card img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.team-rival-card strong,
.team-rival-card small { display: block; }
.team-rival-card strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-rival-card small { margin-top: 3px; color: var(--team-muted); }
.team-rival-card small i { margin-right: 4px; color: var(--team-green); }
.team-rival-card > i { color: #a4b0a9; }
.team-potential-rivals { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--team-line); }
.team-potential-rivals h4 { margin: 0 0 8px; color: var(--team-muted); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.team-potential-rivals .team-rival-card + .team-rival-card { margin-top: 8px; }

.team-operations-grid { margin-inline: var(--team-content-gutter); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.team-operation-card { position: relative; min-width: 0; min-height: 100px; padding: 13px 38px 13px 13px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; overflow: hidden; border: 1px solid var(--team-line); border-radius: 15px; color: var(--team-ink); background: linear-gradient(145deg, #fff, #f6faf8); text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.team-operation-card:first-child { border-color: #cce6d7; background: linear-gradient(145deg, #f1faf5, #fff); }
.team-operation-card:hover { transform: translateY(-1px); border-color: #cbded3; box-shadow: 0 9px 22px rgba(25,75,51,.08); }
.team-operation-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--team-green); background: #eaf7f0; }
.team-operation-card > div { min-width: 0; }
.team-operation-card strong,
.team-operation-card small { display: block; }
.team-operation-card strong { overflow: hidden; color: var(--team-ink); font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.team-operation-card small { margin-top: 3px; display: -webkit-box; overflow: hidden; color: var(--team-muted); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.team-operation-card > i { position: absolute; top: 50%; right: 13px; color: #9eaba4; transform: translateY(-50%); }

.team-danger-zone { margin-top: 16px; padding: 14px 16px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; border: 1px solid #f0d7da; border-radius: 17px; background: #fff9fa; }
.team-danger-zone > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--team-danger); background: #ffedef; }
.team-danger-zone strong,
.team-danger-zone small { display: block; }
.team-danger-zone strong { color: #912d37; }
.team-danger-zone small { margin-top: 2px; color: #9a7378; }
.team-danger-zone button { padding: 8px 11px; border: 1px solid #efc6cb; border-radius: 10px; color: var(--team-danger); background: #fff; font-weight: 800; }

.team-empty-page { min-height: 70vh; display: grid; place-items: center; }
.team-empty-state { width: min(590px,100%); padding: 48px 30px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--team-line); border-radius: 28px; background: radial-gradient(circle at 50% 0, #e7faef, #fff 45%); box-shadow: var(--team-shadow); text-align: center; }
.team-empty-visual { width: 92px; height: 92px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 28px; color: #fff; background: linear-gradient(135deg,var(--team-green),var(--team-green-dark)); box-shadow: 0 20px 45px rgba(21,145,93,.25); transform: rotate(-4deg); }
.team-empty-state h1 { margin: 7px 0 8px; color: var(--team-ink); font-weight: 900; letter-spacing: -.04em; }
.team-empty-state p { max-width: 430px; margin: 0 0 20px; color: var(--team-muted); line-height: 1.6; }
.team-empty-state > small { margin-top: 11px; color: var(--team-muted); }
.team-empty-state > small i { color: var(--team-green); }

/* My teams */
.my-teams-premium-page {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 80px;
    color: var(--team-ink);
}

.my-teams-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 24px 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, .2), transparent 32%),
        radial-gradient(circle at 18% 112%, rgba(185, 244, 74, .1), transparent 40%),
        linear-gradient(135deg, #285a47 0%, #347258 56%, #48876a 100%);
    box-shadow: 0 24px 60px rgba(16, 69, 48, .18), 0 7px 20px rgba(18, 70, 51, .09), inset 0 1px 0 rgba(255, 255, 255, .2);
    backdrop-filter: blur(18px) saturate(.9);
    -webkit-backdrop-filter: blur(18px) saturate(.9);
}

.my-teams-hero-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.my-teams-hero-glow-one { top: -170px; right: -82px; width: 360px; height: 360px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 90px rgba(203,255,111,.045); }
.my-teams-hero-glow-two { right: 22%; bottom: -195px; width: 390px; height: 390px; background: rgba(185, 244, 74, .065); filter: blur(6px); }
.my-teams-topbar { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.my-teams-back { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 13px; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 9px 22px rgba(3,30,19,.14); backdrop-filter: blur(12px); transition: transform .18s, background .18s, border-color .18s; }
.my-teams-back:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.16); }
.my-teams-eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 7px; color: #d9ffa4 !important; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.my-teams-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; color: rgba(255, 255, 255, .76) !important; background: rgba(255, 255, 255, .07); font-weight: 750; }
.my-teams-status i { color: var(--team-lime); }
.my-teams-hero-content { position: relative; z-index: 1; padding: 31px 2px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.my-teams-hero-copy { max-width: 650px; }
.my-teams-hero-copy h1 { margin: 0 0 9px; color: #fff; font-weight: 900; letter-spacing: -.035em; }
.my-teams-hero-copy p { max-width: 590px; margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.65; }
.my-teams-hero-content .premium-add-team { flex: 0 0 auto; min-width: 235px; }

.my-teams-content {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--team-line);
    border-radius: 25px;
    background: #fff;
    box-shadow: var(--team-shadow);
}

.my-teams-section-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.my-teams-section-heading h2 { margin: 4px 0; color: var(--team-ink); font-weight: 900; letter-spacing: -.02em; }
.my-teams-section-heading p { margin: 0; color: var(--team-muted); }
.my-teams-section-kicker { color: var(--team-green) !important; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.my-teams-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d7e7de; border-radius: 99px; color: var(--team-green) !important; background: #eff8f3; font-weight: 800; }
.my-teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.my-team-premium-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--team-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 70, 47, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.my-team-premium-card:hover { border-color: #cee1d6; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(20, 70, 47, .12); }
.my-team-premium-card.is-owner { border-color: rgba(21, 145, 93, .26); }
.my-team-card-cover {
    position: relative;
    min-height: 132px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(185, 244, 74, .18), transparent 28%),
        linear-gradient(135deg, #16372a, #0d6b46);
}

.my-team-premium-card:not(.is-owner) .my-team-card-cover { background: radial-gradient(circle at 78% 15%, rgba(255, 255, 255, .1), transparent 28%), linear-gradient(135deg, #263c33, #49645a); }
.my-team-card-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.my-team-card-cover img { position: relative; z-index: 1; width: 76px; height: 76px; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px; background: rgba(255, 255, 255, .14); object-fit: cover; box-shadow: 0 16px 32px rgba(0, 0, 0, .2); }
.my-team-role,
.my-team-privacy { position: absolute; z-index: 2; top: 13px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; color: rgba(255, 255, 255, .84) !important; background: rgba(5, 23, 16, .24); backdrop-filter: blur(8px); font-weight: 750; }
.my-team-role { left: 13px; }
.my-team-privacy { right: 13px; }
.my-team-role i { margin-right: 4px; color: var(--team-lime); }
.my-team-privacy i { margin-right: 4px; }
.my-team-card-body { padding: 17px; }
.my-team-card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.my-team-card-title h3 { margin: 3px 0 0; overflow: hidden; color: var(--team-ink); font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.my-team-format { flex: 0 0 auto; min-width: 48px; height: 42px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--team-green) !important; background: #edf8f2; font-weight: 900; }
.my-team-format span { margin: 0 1px; color: var(--team-green) !important; }
.my-team-description { min-height: 42px; margin: 12px 0; display: -webkit-box; overflow: hidden; color: var(--team-muted); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.my-team-description p { margin: 0; }
.my-team-description > :last-child { margin-bottom: 0; }
.my-team-meta { min-height: 27px; padding-bottom: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-bottom: 1px solid var(--team-line); }
.my-team-meta > span { padding: 5px 7px; border-radius: 8px; color: var(--team-muted) !important; background: var(--team-soft); font-weight: 700; }
.my-team-meta > span i { margin-right: 4px; }
.my-team-meta > .is-searching { color: var(--team-green) !important; background: #eaf8f0; }
.my-team-card-actions { padding-top: 13px; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.my-team-primary-action,
.my-team-icon-action,
.my-team-leave-action { min-height: 42px; border: 0; border-radius: 12px; font-weight: 800; }
.my-team-primary-action { padding: 0 14px; color: #fff !important; background: linear-gradient(135deg, var(--team-green), var(--team-green-dark)); box-shadow: 0 9px 20px rgba(21, 145, 93, .2); }
.my-team-primary-action i { margin-right: 6px; }
.my-team-icon-action,
.my-team-leave-action { width: 42px; padding: 0; color: var(--team-ink); background: var(--team-soft); }
.my-team-leave-action { color: var(--team-danger); background: #fff0f2; }

.my-teams-profile-callout {
    margin-top: 18px;
    padding: 22px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #d4e8dc;
    border-radius: 22px;
    background: linear-gradient(135deg, #f1faf5, #fff);
    box-shadow: var(--team-shadow);
    cursor: pointer;
}

.my-teams-callout-icon,
.my-teams-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff !important; background: linear-gradient(135deg, var(--team-green), var(--team-green-dark)); box-shadow: 0 12px 26px rgba(21, 145, 93, .22); }
.my-teams-profile-callout h2 { margin: 4px 0; color: var(--team-ink); font-weight: 900; }
.my-teams-profile-callout p { margin: 0; color: var(--team-muted); }
.my-teams-callout-action { color: var(--team-green) !important; font-weight: 850; }
.my-teams-callout-action i { margin-left: 6px; }
.my-teams-empty { min-height: 330px; padding: 35px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #cfe0d6; border-radius: 20px; background: linear-gradient(180deg, #f7fbf9, #fff); text-align: center; }
.my-teams-empty-icon { margin-bottom: 15px; }
.my-teams-empty h2 { margin: 6px 0; color: var(--team-ink); font-weight: 900; }
.my-teams-empty p { max-width: 430px; margin: 0 0 18px; color: var(--team-muted); line-height: 1.6; }
.my-teams-empty .premium-add-team { min-width: 250px; }

body.dark-mode .team-premium-page,
body.dark-mode .team-create-form,
body.dark-mode .my-teams-premium-page { --team-ink: #eaf4ee; --team-muted: #91a49a; --team-line: #2a3d34; --team-soft: #1b2b23; --team-white: #17251e; }
body.dark-mode .team-create-modal .custom-modal-content,
body.dark-mode .team-create-modal .custom-modal-body { background: #101b16; }
body.dark-mode .team-create-modal .custom-modal-header,
body.dark-mode .team-create-advanced,
body.dark-mode .team-day-card .card-body,
body.dark-mode .team-empty-state,
body.dark-mode .my-teams-content,
body.dark-mode .my-team-premium-card,
body.dark-mode .my-teams-profile-callout,
body.dark-mode .team-content-heading-card,
body.dark-mode .team-premium-tabs { background: #17251e !important; }
body.dark-mode .team-create-input-wrap,
body.dark-mode .team-create-advanced-content,
body.dark-mode .team-create-option-toggle,
body.dark-mode .team-premium-input,
body.dark-mode .team-create-field textarea,
body.dark-mode .team-premium-field textarea,
body.dark-mode .team-choice-card::before,
body.dark-mode .team-setting-toggle,
body.dark-mode .team-rival-card,
body.dark-mode .my-team-format,
body.dark-mode .my-team-icon-action,
body.dark-mode .my-teams-empty { background: #111d17; }
body.dark-mode .premium-add-team.addTeam { color: #fff !important; background: radial-gradient(circle at 12% 0, rgba(185, 244, 74, .26), transparent 34%), linear-gradient(135deg, #15915d 0%, #0c6843 72%) !important; }
body.dark-mode .my-team-primary-action { color: #fff !important; background: linear-gradient(135deg, var(--team-green), var(--team-green-dark)) !important; }
body.dark-mode .team-premium-tabs button { color: var(--team-muted); }
body.dark-mode .team-premium-tabs button > i { color: #a7b7ae; background: transparent; }
body.dark-mode .team-premium-tabs button.active { color: #64d67f; border-color: transparent; background: transparent; box-shadow: none; }
body.dark-mode .team-premium-tabs button.active > i,
body.dark-mode .team-premium-tabs button.active span { color: #64d67f !important; background: transparent; }
body.dark-mode .team-description-editor .ck.ck-toolbar,
body.dark-mode .team-description-editor .ck.ck-editor__main > .ck-editor__editable { color: var(--team-ink); background: #111d17 !important; border-color: var(--team-line) !important; }
body.dark-mode .team-inline-setting,
body.dark-mode .team-staff-role-card,
body.dark-mode .team-operation-card { color: var(--team-ink); background: linear-gradient(145deg, #17251e, #111d17); }
body.dark-mode .team-inline-setting-icon,
body.dark-mode .team-inline-setting select,
body.dark-mode .team-staff-role-avatar { color: var(--team-ink); border-color: var(--team-line); background: #101b16; }
body.dark-mode .team-legacy-day-grid .card,
body.dark-mode .team-legacy-day-grid .card-body { color: var(--team-ink); border-color: var(--team-line) !important; background: #17251e !important; }
body.dark-mode .team-legacy-day-grid .card-body.bg-half-primary { background: #20352a !important; }
body.dark-mode .team-legacy-day-grid input.bg-half-primary { border-color: var(--team-line) !important; color: var(--team-ink) !important; background: #101b16 !important; }

@media (max-width: 767px) {
    .team-create-modal .custom-modal-content { height: 94%; border-radius: 22px 22px 0 0; }
    .team-create-form { padding: 20px 14px calc(25px + env(safe-area-inset-bottom)); }
    .team-create-section { padding: 15px; border-radius: 17px; }
    .team-create-location-fields,
    .team-create-advanced-grid { grid-template-columns: 1fr; }
    .team-create-option-toggles { grid-template-columns: 1fr; }
    .team-create-advanced-content { padding: 14px; }
    .team-create-success { padding-inline: 18px; }
    .team-create-success-actions { grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); }

    .team-premium-page { width: 100%; margin: 0 auto 70px; }
    .team-premium-hero { padding: 12px 13px 0; border-radius: 0px; box-shadow: 0 18px 42px rgba(12, 70, 45, .18); }
    .team-hero-topbar { grid-template-columns: 38px 1fr 38px; }
    .team-icon-button { width: 38px; height: 38px; border-radius: 12px; }
    .team-hero-main { padding: 18px 0 16px; gap: 12px; }
    .team-hero-logo { width: 68px; height: 68px; border-radius: 19px; }
    .team-hero-copy h1 { margin-block: 4px 7px; }
    .team-hero-meta span:nth-child(3) { display: none; }
    .team-hero-stats { margin-inline: -13px; }
    .team-hero-stats div { padding: 11px 3px 13px; }

    .team-command-center { margin: 0; }
    .team-premium-tabs { position: sticky; z-index: 18; top: calc(var(--mobileHeaderPx) + var(--maui-safe-area-top)); margin: 10px 9px 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 5px; border-radius: 15px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
    .team-premium-tabs button { min-height: 53px; padding: 6px 2px; gap: 4px; border-radius: 10px; }
    .team-premium-tabs button > i { width: 25px; height: 25px; border-radius: 8px; }
    .team-tab-content { margin-top: 11px; }
    .team-section-heading { align-items: flex-start; }
    .team-section-heading .team-secondary-button { min-height: 39px; padding: 0 11px; }
    .team-content-heading-card { margin-bottom: 11px; padding: 13px 14px; border-radius: 15px; }
    .team-staff-toolbar { grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: 6px; padding: 9px 10px; }
    .team-staff-toolbar-copy .team-page-eyebrow,
    .team-staff-toolbar .team-inline-setting > span,
    .team-staff-toolbar .team-secondary-button span { display: none; }
    .team-staff-toolbar .team-inline-setting { padding: 3px; }
    .team-staff-toolbar .team-inline-setting select { min-width: 76px; }
    .team-staff-toolbar .team-secondary-button { width: 38px; padding: 0; }
    .team-staff-role-grid { gap: 6px; }
    .team-staff-role-card { padding: 8px 5px; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; text-align: center; }
    .team-staff-role-avatar { width: 40px; height: 40px; }
    .team-staff-role-copy { width: 100%; }
    .team-staff-role-meta { display: none !important; }

    .team-settings-card { padding: 14px 2px; }
    .team-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 8px; }
    .team-toggle-grid,
    .team-day-grid,
    .team-rivals-grid { grid-template-columns: 1fr; }
    .team-operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .team-operation-card { min-height: 126px; padding: 11px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 38px 1fr; align-items: start; gap: 8px; }
    .team-operation-card > span { width: 38px; height: 38px; }
    .team-operation-card strong { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .team-operation-card > i { top: 22px; right: 12px; transform: none; }
    .team-field-wide { grid-column: 1 / -1; }
    .team-premium-field > span:first-child { min-height: 24px; align-items: end; }
    .team-premium-input { padding-inline: 9px; gap: 7px; }
    .team-settings-actions { bottom: calc(60px + var(--maui-safe-area-bottom)); flex-direction: column; align-items: stretch; }
    .team-settings-actions > span { display: none; }
    .team-inline-setting { grid-template-columns: 38px 1fr auto; }
    .team-rivals-grid > section { padding: 10px 2px; }
    .team-rivals-grid > section + section { padding-top: 15px; padding-left: 2px; border-top: 1px solid var(--team-line); border-left: 0; }
    .team-danger-zone { margin-inline: 10px; }
    .team-danger-zone small { display: none; }

    .my-teams-premium-page { width: 100%; margin: 0 auto 70px; }
    .my-teams-hero { padding: 16px 15px 0; border-radius: 0px; }
    .my-teams-hero-content { padding: 24px 0 20px; display: grid; gap: 17px; }
    .my-teams-hero-content .premium-add-team { width: 100%; min-width: 0; }
    
    .my-teams-content { margin: 12px 10px 0; padding: 16px 12px; border-radius: 21px; }
    .my-teams-grid { grid-template-columns: 1fr; }
    .my-teams-profile-callout { margin: 12px 10px 0; padding: 17px; grid-template-columns: 48px 1fr; }
    .my-teams-callout-icon { width: 48px; height: 48px; }
    .my-teams-callout-action { grid-column: 2; }
}

@media (min-width: 768px) and (max-width: 1120px) {
    .team-premium-page,
    .my-teams-premium-page { width: 100%; margin-top: 0; }
    .team-premium-hero,
    .my-teams-hero { border-radius: 0 0 26px 26px; }
}

@media (max-width: 390px) {
    .team-create-location { grid-template-columns: 38px 1fr auto; }
    .team-create-location-icon { width: 38px; height: 38px; }
    .my-teams-topbar { grid-template-columns: 42px 1fr; }
    .my-teams-status { display: none; }
    .my-team-role,
    .my-team-privacy { top: 10px; }
    .my-team-role { left: 10px; }
    .my-team-privacy { right: 10px; }
}

/* Reference-aligned team experience */
.team-premium-page,
.my-teams-premium-page {
    --team-green: #21a63b;
    --team-green-dark: #087c35;
    --team-lime: #b9ef18;
    --team-ink: #111814;
    --team-muted: #687183;
    --team-line: #e2e7e4;
    --team-soft: #f3f7f4;
    width: min(940px, 100%);
    margin: 0 auto 84px;
    background: #fbfcfb;
}

.my-teams-hero,
.team-premium-hero {
    border: 0;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 86% 8%, rgba(52, 210, 92, .2), transparent 32%),
        radial-gradient(circle at 20% 115%, rgba(28, 164, 74, .2), transparent 38%),
        linear-gradient(135deg, #003d27 0%, #006031 58%, #087c35 100%);
    box-shadow: none;
}

.my-teams-hero { min-height: 250px; padding: 34px 34px 25px; }
.my-teams-topbar { grid-template-columns: 54px 1fr; align-items: start; gap: 22px; }
.my-teams-back { width: 54px; height: 54px; border-radius: 17px; font-size: 1.1em; }
.my-teams-title-copy { position: relative; z-index: 1; padding-top: 4px; }
.my-teams-title-copy h1 { margin: 0 0 8px; color: #fff; font-size: clamp(1.35rem, 4vw, 2rem) !important; font-weight: 950; letter-spacing: -.035em; text-transform: uppercase; }
.my-teams-title-copy p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.5; }

.my-team-onboarding-card {
    position: relative;
    width: calc(100% - 28px);
    margin: -72px auto 20px;
    padding: 50px clamp(18px, 5vw, 54px) 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--team-line);
    border-radius: 34px 34px 24px 24px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(12, 60, 36, .11);
    text-align: center;
}

.my-team-onboarding-visual {
    position: relative;
    width: 210px;
    height: 198px;
    margin-bottom: 15px;
    color: var(--team-green);
}
.my-team-shield-back { position: absolute; inset: 4px 18px 0; border: 8px double #0c6337; border-radius: 50% 50% 48% 48% / 28% 28% 64% 64%; background: linear-gradient(145deg,#fff,#eaf8ee); clip-path: polygon(50% 0,100% 18%,94% 72%,50% 100%,6% 72%,0 18%); }
.my-team-person { position: absolute; z-index: 2; top: 65px; width: 64px; height: 82px; display: grid; place-items: center; color: #3db255; font-size: 2.4em; }
.my-team-person-left { left: 30px; opacity: .72; }
.my-team-person-center { top: 42px; left: 73px; color: #07542f; font-size: 3.1em; }
.my-team-person-right { right: 30px; opacity: .72; }
.my-team-ball { position: absolute; z-index: 3; right: 67px; bottom: 9px; width: 76px; height: 76px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #0b542f; background: #fff; font-size: 3.3em; box-shadow: 0 10px 25px rgba(11,84,47,.18); }
.my-team-onboarding-card > h2 { margin: 8px 0 9px; color: #064b2d; font-size: clamp(1.45rem, 4.5vw, 2.15rem) !important; font-weight: 950; }
.my-team-onboarding-card > p { max-width: 610px; margin: 0 0 22px; color: #454b48; line-height: 1.65; }
.my-team-onboarding-card > .premium-add-team { width: min(100%, 620px); min-height: 65px; border-radius: 18px !important; justify-content: center; font-size: 1.08em !important; }
.my-team-onboarding-card > .premium-add-team > i { margin-left: auto; }
.my-team-onboarding-time { margin: 14px 0 24px; color: #414a45; }
.my-team-onboarding-time i { margin-right: 6px; color: var(--team-green); }
.my-team-benefits { width: min(100%, 620px); padding: 22px 28px; border: 1px solid var(--team-line); border-radius: 22px; text-align: left; }
.my-team-benefits h3 { margin: 0 0 10px; color: #07542f; font-weight: 900; }
.my-team-benefits > div { min-height: 58px; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 13px; border-top: 1px solid var(--team-line); }
.my-team-benefits > div span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #087c35; background: #eaf7ed; }
.my-teams-secondary-create { width: min(100%, 360px); margin: 22px auto 0; }

.team-premium-hero { min-height: 255px; padding: 20px 28px 18px; }
.team-hero-topbar { grid-template-columns: 46px 1fr 46px; }
.team-icon-button { width: 46px; height: 46px; border-radius: 15px; }
.team-owner-badge { padding: 8px 15px; border-color: rgba(190,235,23,.45); color: #fff; background: rgba(2,67,33,.55); }
.team-hero-main { padding: 26px 6px 4px; gap: 20px; }
.team-hero-logo { width: 112px; height: 112px; border: 4px solid #fff; border-radius: 30px; background: #fff; }
.team-hero-logo-edit { position: absolute; z-index: 2; right: -5px; bottom: -4px; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #087c35; border-radius: 50%; color: #fff; background: #23a943; }
.team-hero-copy h1 { margin: 0 0 13px; font-size: clamp(1.55rem,5vw,2.4rem) !important; text-transform: uppercase; }
.team-hero-meta span { padding: 8px 12px; border-color: rgba(255,255,255,.25); border-radius: 12px; background: rgba(1,63,32,.32); }

.team-premium-tabs {
    position: relative;
    z-index: 10;
    margin: -45px 12px 0;
    overflow: hidden;
    padding: 0;
    gap: 0;
    border: 1px solid #e1e6e3;
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 12px 32px rgba(24,65,44,.11);
    backdrop-filter: blur(16px);
}
.team-premium-tabs.targetDivSwitch { padding: 0 !important; background: rgba(255,255,255,.98) !important; }
.team-premium-tabs button,
.team-premium-tabs .targetDivSelector,
.team-premium-tabs.targetDivSwitch .targetDivSelector { position: relative; min-height: 76px; padding: 10px 3px 12px; gap: 6px; border: 0 !important; border-radius: 0; color: #4f595f !important; background: transparent !important; box-shadow: none !important; }
.team-premium-tabs button::after { content: ""; position: absolute; right: 18%; bottom: 0; left: 18%; height: 4px; border-radius: 4px 4px 0 0; background: var(--team-green); opacity: 0; transform: scaleX(.45); transition: opacity .2s, transform .2s; }
.team-premium-tabs button:hover { color: #28322d !important; background: #f7faf8 !important; }
.team-premium-tabs button > i { width: auto; height: 27px; border-radius: 0; color: #5f696e !important; background: transparent !important; font-size: 1.22rem; }
.team-premium-tabs button.active,
.team-premium-tabs .targetDivSelector.active:not(.outline) { color: var(--team-green) !important; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.team-premium-tabs button.active::after { opacity: 1; transform: scaleX(1); }
.team-premium-tabs button.active > i { color: var(--team-green) !important; background: transparent !important; }
.team-premium-tabs button.active span { color: var(--team-green) !important; }
.team-tab-content { margin: 20px 0 0; }
.team-tab-content > .target { padding-bottom: 4px; }

.team-overview-panel { padding: 0 18px; display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.team-overview-panel > * { min-width: 0; width: 100%; }
.team-ready-card,
.team-invite-card,
.team-summary-card,
.team-squad-preview,
.team-next-match,
.team-rival-search-card {
    border: 1px solid var(--team-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(28,68,48,.055);
}
.team-ready-card { padding: 20px; display: grid; grid-template-columns: 70px minmax(0,1fr) minmax(220px,.75fr); align-items: center; gap: 18px; }
.team-ready-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--team-green); background: #eaf7ee; font-size: 1.7em; }
.team-ready-card h2,
.team-invite-card h2 { margin: 0 0 5px; color: var(--team-ink); font-weight: 950; }
.team-ready-card p,
.team-invite-card p { margin: 0; color: var(--team-muted); line-height: 1.5; }
.team-profile-progress > span { display: flex; justify-content: space-between; gap: 8px; color: var(--team-muted); }
.team-profile-progress > span strong { color: var(--team-green-dark); }
.team-profile-progress > i { height: 8px; margin: 9px 0; display: block; overflow: hidden; border-radius: 99px; background: #e7ece9; }
.team-profile-progress > i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#27b142,#078237); }
.team-profile-progress button { float: right; padding: 0; border: 0; color: var(--team-green-dark); background: transparent; font-weight: 850; }

.team-invite-card { padding: 23px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 25px; }
.team-invite-visual { width: 130px; height: 130px; display: grid; place-items: center; border: 3px dashed #d8ece0; border-radius: 50%; color: var(--team-green); background: radial-gradient(circle,#edf9f0 0 54%,transparent 55%); font-size: 3em; }
.team-invite-actions { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-invite-actions .team-secondary-button { color: var(--team-green-dark) !important; border-color: var(--team-green); }

.team-overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-overview-action { min-height: 128px; padding: 18px; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--team-line); border-radius: 18px; color: var(--team-ink); background: #fff; text-align: left; }
.team-overview-action > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--team-green); background: #edf8ef; font-size: 1.45em; }
.team-overview-action strong,
.team-overview-action small { display: block; }
.team-overview-action strong { font-weight: 900; }
.team-overview-action small { margin-top: 4px; color: var(--team-muted); line-height: 1.35; }
.team-overview-action > i { color: var(--team-green-dark); }

.team-summary-card,
.team-squad-preview { padding: 20px; }
.team-summary-card > header,
.team-squad-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-summary-card h2,
.team-squad-preview h2 { margin: 0; color: var(--team-ink); font-weight: 900; }
.team-summary-card header button,
.team-squad-preview header button { padding: 0; border: 0; color: var(--team-green-dark); background: transparent; font-weight: 800; }
.team-summary-grid { margin: 18px 0 14px; display: grid; grid-template-columns: repeat(4,1fr); }
.team-summary-grid > div { min-width: 0; padding: 8px 14px; display: grid; grid-template-columns: 20px 1fr; border-right: 1px solid var(--team-line); }
.team-summary-grid > div:last-child { border-right: 0; }
.team-summary-grid i { grid-row: 1/3; align-self: start; margin-top: 2px; color: var(--team-green); }
.team-summary-grid span,
.team-summary-grid strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-summary-grid span { color: var(--team-muted); }
.team-summary-more { width: 100%; padding: 14px 3px 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--team-line); color: var(--team-ink); background: transparent; font-weight: 750; }
.team-squad-slots { margin-top: 17px; display: flex; gap: 15px; overflow-x: auto; }
.team-squad-slot { position: relative; flex: 0 0 56px; width: 56px; height: 70px; display: grid; place-items: center; border: 1px dashed #889a90; border-radius: 50%; color: #5e6b64; background: #fff; }
.team-squad-slot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-squad-slot.is-filled { border-style: solid; }
.team-squad-slot.is-filled > i { position: absolute; top: -5px; right: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--team-green); font-size: .65em; }
.team-next-match { padding: 16px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.team-next-match > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--team-green); background: #edf8ef; }
.team-next-match strong,
.team-next-match small { display: block; }
.team-next-match small { margin-top: 3px; color: var(--team-muted); }
.team-next-match button { min-height: 39px; padding: 0 18px; border: 1px solid var(--team-green); border-radius: 11px; color: var(--team-green-dark); background: #fff; font-weight: 800; }

.team-settings-panel { padding: 0 18px; }
.team-settings-backbar { margin-bottom: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--team-line); border-radius: 17px; background: #fff; }
.team-settings-backbar button { width: 40px; height: 40px; border: 0; border-radius: 12px; color: var(--team-green-dark); background: #edf8ef; }
.team-settings-backbar strong,
.team-settings-backbar small { display: block; }
.team-settings-backbar small { margin-top: 2px; color: var(--team-muted); }

.team-content-heading-card { margin-inline: 18px; padding: 18px 20px; border-radius: 18px; }
.team-staff-toolbar { grid-template-columns: 1fr auto auto; }
.team-staff-toolbar-copy small { color: var(--team-muted); }
.team-inline-setting { padding: 5px; }

.team-day-grid { padding: 0 18px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.team-day-card { border-radius: 18px !important; }
.team-day-card .card-body { padding: 18px !important; }
.team-day-card .card-body.bg-half-primary { border-color: #bfe2c8; background: linear-gradient(90deg,#f1faf3,#fff) !important; }
.team-day-toggle { grid-template-columns: 1fr auto; }
.team-day-name strong,
.team-day-name small { display: block; }
.team-day-name strong { color: var(--team-ink); font-weight: 900; }
.team-day-name small { margin-top: 4px; color: var(--team-muted); }
.team-day-card .bg-half-primary .team-day-name strong { color: var(--team-green-dark); }
.team-day-toggle > i { font-size: 2rem !important; color: #bdc5c0; }
.team-day-card .bg-half-primary .team-day-toggle > i { color: var(--team-green); }
.team-day-hours { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(130px,.8fr); align-items: center; gap: 12px; }
.team-day-hours label span i { margin-right: 4px; }
.team-day-hours input { height: 46px; padding: 0 12px; border-radius: 12px; }
.team-add-time { color: var(--team-green-dark); text-align: center; font-weight: 800; }
.team-availability-footer-note { margin: 20px 18px 0; color: var(--team-muted); text-align: center; }

.team-location-editor { padding-bottom: 4px; }
.team-location-relation { padding: 0 10px; }
.team-location-relation > .row { margin: 0; }
.team-location-relation .card { border-color: var(--team-line) !important; border-radius: 17px !important; background: #fff; box-shadow: 0 8px 24px rgba(28,68,48,.05) !important; }
.team-location-relation .mini-cat-header { padding: 12px !important; }
.team-location-relation .btn { border-radius: 11px; font-weight: 750; }
.team-location-tip { margin: 16px 18px 0; }

.team-rival-search-card { margin: 0 18px 22px; padding: 24px; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.team-rival-search-visual { grid-row: 1/3; width: 150px; height: 125px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--team-green); background: linear-gradient(145deg,#eef9f1,#fff); clip-path: polygon(50% 0,96% 22%,90% 78%,50% 100%,10% 78%,4% 22%); }
.team-rival-search-visual i { font-size: 2.15em; }
.team-rival-search-visual i:last-child { color: #71808b; }
.team-rival-search-visual b { color: #17492e; }
.team-rival-search-card h2 { margin: 0 0 6px; color: var(--team-ink); font-weight: 950; }
.team-rival-search-card p { margin: 0; color: var(--team-muted); line-height: 1.55; }
.team-rival-search-card button { grid-column: 1/-1; }
.team-rivals-grid { margin-inline: 18px; grid-template-columns: 1fr; gap: 22px; }
.team-rivals-grid > section { padding: 0; }
.team-rivals-grid > section + section { padding: 0; border: 0; }
.team-count-badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-left: 7px; border-radius: 10px; color: var(--team-green-dark); background: #edf8ef; font-size: .72em; }
.team-request-list,
.team-rival-groups { overflow: hidden; border: 1px solid var(--team-line); border-radius: 20px; background: #fff; }
.team-compact-empty { min-height: 225px; }

.team-operations-shell { padding-bottom: 16px; }
.team-operation-group-title { margin: 23px 24px 10px; color: #2c923d; font-weight: 900; }
.team-operation-group-title > i { width: 5px; height: 22px; margin-right: 10px; display: inline-block; vertical-align: middle; border-radius: 99px; background: #35ad45; }
.team-operation-group-title.is-danger { color: #df3c3c; }
.team-operation-group-title.is-danger > i { background: #ef4343; }
.team-operations-grid { margin-inline: 18px; grid-template-columns: 1fr; gap: 10px; }
.team-operation-card { min-height: 92px; padding: 14px 48px 14px 16px; grid-template-columns: 54px 1fr; border-radius: 17px; background: #fff; }
.team-operation-card:first-child,
.team-operation-card.is-primary { border-color: #bee4c8; background: linear-gradient(90deg,#eff9f1,#fff); }
.team-operation-card > span { width: 50px; height: 50px; border-radius: 50%; font-size: 1.15em; }
.team-operation-card > b { position: absolute; right: 42px; padding: 6px 10px; border-radius: 10px; color: var(--team-muted); background: #f1f3f2; }
.team-operation-card > i { right: 18px; }
.team-danger-zone { margin: 0 18px; }

.team-create-modal .custom-modal-content { width: min(760px,100%) !important; max-width: 760px !important; height: min(96vh,1040px); }
.team-create-form { background: #fbfcfb; }
.team-create-intro { margin: -26px -26px 22px; padding: 30px 28px 56px; color: #fff; background: linear-gradient(135deg,#004126,#087c35); }
.team-create-intro .team-create-kicker { color: #c2f14d; }
.team-create-intro h2 { color: #fff; text-transform: uppercase; }
.team-create-intro p { color: rgba(255,255,255,.88); }
.team-create-location { position: relative; z-index: 2; margin-top: -52px; }
.team-create-section,
.team-create-advanced { border-radius: 18px; box-shadow: 0 7px 20px rgba(28,68,48,.045); }
.team-create-section { padding: 20px; }
.team-choice-card:has(input:checked)::before { background: linear-gradient(145deg,#22aa40,#078238); }
.team-choice-card:has(input:checked) strong,
.team-choice-card:has(input:checked) small,
.team-choice-card:has(input:checked) .team-level-icon { color: #fff; }
.team-choice-card:has(input:checked) .team-level-icon { background: rgba(255,255,255,.18); }

.team-create-success { min-height: 0; padding: 38px 30px calc(25px + env(safe-area-inset-bottom)); justify-content: flex-start; }
.team-create-success-mark { width: 100px; height: 100px; border-radius: 30px; font-size: 1.5em; }
.team-create-success > h2 { font-size: 1.55rem !important; }
.team-create-success-steps { width: 100%; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; align-items: start; }
.team-create-success-steps > i { height: 2px; margin-top: 22px; background: #dfe5e1; }
.team-create-success-steps > span { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--team-muted); }
.team-create-success-steps > span > i,
.team-create-success-steps > span > b { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--team-line); border-radius: 50%; background: #fff; }
.team-create-success-steps > span strong,
.team-create-success-steps > span > b:last-child { font-weight: 800; }
.team-create-success-steps > span.is-complete,
.team-create-success-steps > span.is-current { color: var(--team-green-dark); }
.team-create-success-steps > span.is-complete > i,
.team-create-success-steps > span.is-current > b { border-color: var(--team-green); color: #fff; background: var(--team-green); }
.team-create-next-title { width: 100%; margin: 0 0 12px; text-align: left; font-weight: 900; }
.team-create-invite-next { box-sizing: border-box; width: 100%; padding: 20px; display: grid; grid-template-columns: 72px 1fr 1fr 1fr; align-items: center; gap: 12px; border-radius: 20px; color: #fff; background: linear-gradient(135deg,#38ae45,#168f39); text-align: left; }
.team-create-invite-next > span { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; font-size: 1.5em; }
.team-create-invite-next strong,
.team-create-invite-next small { display: block; color: #fff; }
.team-create-invite-next small { margin-top: 4px; opacity: .85; line-height: 1.4; }
.team-create-invite-next button { min-height: 48px; padding: 0 12px; }
.team-create-next-grid { width: 100%; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-create-next-card { position: relative; min-height: 150px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--team-line); border-radius: 18px; color: var(--team-ink); background: #fff; text-align: left; }
.team-create-next-card > span { width: 52px; height: 52px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 14px; color: var(--team-green); background: #edf8ef; font-size: 1.3em; }
.team-create-next-card strong,
.team-create-next-card small { display: block; }
.team-create-next-card small { margin-top: 4px; color: var(--team-muted); }
.team-create-next-card > i { position: absolute; right: 18px; bottom: 23px; color: var(--team-green); }
.team-create-complete-card { width: 100%; min-height: 95px; padding: 15px 18px; display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 13px; border: 1px solid var(--team-line); border-radius: 18px; color: var(--team-ink); background: #fff; text-align: left; }
.team-create-complete-card > span:first-child { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: var(--team-green); background: #edf8ef; }
.team-create-complete-card strong,
.team-create-complete-card small { display: block; }
.team-create-complete-card small { margin-top: 3px; color: var(--team-muted); }
.team-create-complete-card > b { width: 54px; height: 54px; display: grid; place-items: center; border: 5px solid #d7efdc; border-top-color: var(--team-green); border-radius: 50%; color: var(--team-green-dark); }
.team-create-complete-card > i { color: var(--team-green); }
.team-create-success-actions { margin-top: 18px; }

body.dark-mode .team-ready-card,
body.dark-mode .team-invite-card,
body.dark-mode .team-overview-action,
body.dark-mode .team-summary-card,
body.dark-mode .team-squad-preview,
body.dark-mode .team-next-match,
body.dark-mode .team-rival-search-card,
body.dark-mode .team-request-list,
body.dark-mode .team-rival-groups,
body.dark-mode .team-settings-backbar,
body.dark-mode .team-create-next-card,
body.dark-mode .team-create-complete-card { color: var(--team-ink); border-color: var(--team-line); background: var(--team-white); }

@media (max-width: 767px) {
    .my-teams-hero { min-height: 205px; padding: 22px 18px; }
    .my-teams-topbar { grid-template-columns: 46px 1fr; gap: 15px; }
    .my-teams-back { width: 46px; height: 46px; border-radius: 14px; }
    .my-team-onboarding-card { width: 100%; margin: -55px 0 0; padding: 36px 18px 25px; border-right: 0; border-left: 0; border-radius: 30px 30px 0 0; box-shadow: none; }
    .my-team-onboarding-visual { width: 185px; height: 174px; transform: scale(.9); }
    .my-team-benefits { padding: 18px; }

    .team-premium-hero { min-height: 235px; padding: 15px 17px 14px; border-radius: 0; }
    .team-hero-main { padding-top: 28px; align-items: center; }
    .team-hero-logo { width: 88px; height: 88px; border-radius: 25px; }
    .team-hero-copy { min-width: 0; }
    .team-hero-copy h1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .team-hero-meta { gap: 6px; }
    .team-hero-meta span { padding: 6px 8px; }
    .team-hero-meta span:nth-child(3) { display: inline-flex; }
    .team-premium-tabs { position: sticky; top: calc(var(--mobileHeaderPx) + var(--maui-safe-area-top)); margin: -39px 9px 0; padding: 6px 3px; border-radius: 18px; }
    .team-premium-tabs button { min-height: 69px; padding-inline: 1px; }
    .team-premium-tabs button > i { width: 30px; height: 30px; }
    .team-premium-tabs button span { font-size: .65rem !important; }
    .team-overview-panel,
    .team-settings-panel { padding: 0 10px; }
    .team-ready-card { padding: 16px; grid-template-columns: 54px 1fr; gap: 12px; }
    .team-ready-icon { width: 52px; height: 52px; }
    .team-profile-progress { grid-column: 1/-1; }
    .team-invite-card { padding: 18px; grid-template-columns: 100px 1fr; gap: 15px; }
    .team-invite-visual { width: 92px; height: 92px; font-size: 2.2em; }
    .team-invite-actions { grid-column: 1/-1; grid-template-columns: 1fr; }
    .team-overview-actions { gap: 10px; }
    .team-overview-action { min-height: 145px; padding: 14px; grid-template-columns: 1fr auto; grid-template-rows: 54px 1fr; align-items: start; }
    .team-overview-action > span { width: 52px; height: 52px; }
    .team-overview-action > div { grid-column: 1/-1; }
    .team-overview-action > i { position: absolute; margin: 18px 15px 0 0; right: 0; }
    .team-summary-card,
    .team-squad-preview { padding: 17px 15px; }
    .team-summary-grid { grid-template-columns: 1fr 1fr; gap: 0; }
    .team-summary-grid > div { border-bottom: 1px solid var(--team-line); }
    .team-summary-grid > div:nth-child(2) { border-right: 0; }
    .team-summary-grid > div:nth-child(n+3) { border-bottom: 0; }
    .team-next-match { grid-template-columns: 44px 1fr; }
    .team-next-match button { grid-column: 1/-1; width: 100%; }
    .team-content-heading-card { margin-inline: 10px; }
    .team-staff-toolbar { grid-template-columns: 1fr auto 42px; }

    .team-day-grid { padding: 0 10px; }
    .team-day-card .card-body { padding: 15px !important; }
    .team-day-hours { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .team-add-time { grid-column: 1/-1; padding-top: 6px; }

    .team-location-tip { margin-inline: 10px; }
    .team-rival-search-card { margin-inline: 10px; padding: 19px; grid-template-columns: 104px 1fr; gap: 14px; }
    .team-rival-search-visual { width: 100px; height: 95px; }
    .team-rivals-grid,
    .team-operations-grid { margin-inline: 10px; }
    .team-operation-group-title { margin-inline: 16px; }
    .team-operation-card { min-height: 88px; padding: 13px 42px 13px 13px; grid-template-columns: 46px 1fr; grid-template-rows: auto; }
    .team-operation-card > span { width: 44px; height: 44px; }
    .team-operation-card > i { top: 50%; right: 14px; transform: translateY(-50%); }
    .team-operation-card > b { display: none; }
    .team-danger-zone { margin-inline: 10px; }

    .team-create-modal .custom-modal-content { height: 98%; }
    .team-create-intro { margin: -20px -14px 20px; padding: 25px 20px 50px; }
    .team-create-success { padding: 28px 14px calc(22px + env(safe-area-inset-bottom)); }
    .team-create-success-steps { grid-template-columns: 1fr 25px 1fr 25px 1fr; }
    .team-create-success-steps strong,
    .team-create-success-steps > span > b:last-child { font-size: .64rem; }
    .team-create-invite-next { grid-template-columns: 58px minmax(0,1fr) minmax(76px,.68fr) minmax(80px,.72fr); padding: 16px; gap: 7px; }
    .team-create-invite-next > span { width: 54px; height: 54px; }
    .team-create-invite-next button { min-width: 0; padding-inline: 6px; grid-column: auto; font-size: .6rem !important; line-height: 1.15; }
    .team-create-next-card { min-height: 140px; }
}

@media (max-width: 430px) {
    .team-owner-badge { padding-inline: 10px; font-size: .62rem !important; }
    .team-hero-main { gap: 11px; }
    .team-hero-logo { width: 76px; height: 76px; }
    .team-hero-meta span { font-size: .61rem !important; }
    .team-premium-tabs button span { font-size: .58rem !important; }
    .team-invite-card { grid-template-columns: 1fr; text-align: center; }
    .team-invite-visual { margin: 0 auto; }
    .team-summary-grid > div { padding-inline: 8px; }
    .team-rival-search-card { grid-template-columns: 1fr; text-align: center; }
    .team-rival-search-visual { grid-row: auto; margin: 0 auto; }
    .team-create-success-steps > i { display: none; }
    .team-create-success-steps { grid-template-columns: repeat(3,1fr); gap: 5px; }
    .team-create-invite-next button { grid-column: auto; }
    .team-create-next-grid { gap: 8px; }
    .team-create-next-card { padding: 14px; }
}

/* Full-page team creation flow */
body.team-create-overlay-open { overflow: hidden !important; }

.team-create-overlay {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #111a16;
    background: #f6f8f6;
    -webkit-overflow-scrolling: touch;
}

/* Oyuncu bul sheet'i, takım oluşturma başarı ekranından açıldığında üstte kalmalı. */
.custom-modal.team-find-member-modal {
    z-index: 2147483200 !important;
}

.team-create-overlay-shell {
    width: min(900px, 100%);
    min-height: 100%;
    margin: 0 auto;
    background: #f8faf8;
    box-shadow: 0 0 70px rgba(4, 52, 30, .16);
}

.team-create-overlay-loading,
.team-create-load-error {
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #526159;
    background: #fff;
    text-align: center;
}

.team-create-overlay-loading > span,
.team-create-load-error > span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, #35b74a, #0d8738);
    box-shadow: 0 18px 40px rgba(19, 148, 62, .24);
}

.team-create-form { min-height: 100vh; padding: 0 !important; color: #121b17; background: #f7f9f7 !important; }
.team-create-step[hidden] { display: none !important; }

.team-create-page-hero {
    position: relative;
    min-height: 226px;
    padding: max(28px, env(safe-area-inset-top)) 42px 74px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-content: start;
    gap: 24px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 72% 125%, rgba(31, 197, 78, .25) 0 17%, transparent 50%),
        radial-gradient(ellipse at 12% -10%, rgba(0, 0, 0, .25), transparent 48%),
        linear-gradient(135deg, #003d24 0%, #006c30 65%, #064d2b 100%);
}

.team-create-page-hero::before,
.team-create-page-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -48%;
    left: -18%;
    height: 78%;
    border: 1px solid rgba(102, 235, 120, .24);
    border-radius: 50%;
    transform: rotate(-6deg);
    pointer-events: none;
}

.team-create-page-hero::after { right: -22%; bottom: -68%; left: 7%; border-color: rgba(129, 244, 145, .16); }

.team-create-page-back {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    color: #fff;
    background: rgba(1, 48, 28, .66);
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.team-create-page-hero > div { position: relative; z-index: 1; padding-top: 7px; }
.team-create-page-hero h1 { margin: 0; color: #fff; font-size: clamp(1.55rem, 4vw, 2.25rem) !important; font-weight: 950; letter-spacing: -.025em; text-transform: uppercase; }
.team-create-page-hero h1:focus { outline: none; }
.team-create-page-hero p { margin: 10px 0 13px; color: rgba(255,255,255,.9); font-size: 1rem !important; }
.team-create-page-hero > div > span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.9); }
.team-create-page-hero > div > span i { color: #21bd4c; }

.team-create-page-body {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    margin: -42px auto 0;
    padding: 38px 46px calc(34px + env(safe-area-inset-bottom));
    border: 1px solid #edf0ee;
    border-radius: 34px 34px 0 0;
    background: #fff;
    box-shadow: 0 -12px 35px rgba(3, 45, 26, .05);
}

.team-create-logo-center { margin: 0 0 22px; display: flex; flex-direction: column; align-items: center; }
.team-create-logo-center .team-create-logo-button { width: 108px; height: 108px; border-color: #cfe6d6; border-radius: 50%; background: #f5fbf6; box-shadow: none; }
.team-create-logo-center .team-create-logo-button img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.team-create-logo-center .team-create-logo-button > span { right: -3px; bottom: 7px; width: 40px; height: 40px; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #12a53f; }
.team-create-logo-center .team-create-logo-link { margin-top: 9px; color: #078c34; text-decoration: underline; }
.team-create-logo-center .team-create-logo-link small { font-size: inherit; }

.team-create-page-body > .team-create-field,
.team-create-page-body > .team-create-location,
.team-create-page-body > .team-create-section,
.team-create-page-body > .team-privacy-row,
.team-create-page-body > .team-create-advanced-launch { margin-bottom: 20px; }
.team-create-page-body > label[for="CreateTeamName"] { min-height: 92px; }

.team-create-section-label { margin-bottom: 7px; }
.team-create-section-label > span,
.team-create-section-label > small { display: block; }
.team-create-section-label > small { margin-top: 3px; color: #89948e; }

.team-create-page-body .team-create-location {
    margin-top: 0;
    padding: 0;
    display: block;
    border: 0;
    background: none;
    box-shadow: none;
}

.team-create-page-body .team-create-location-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.team-create-page-body .team-create-location-fields .team-create-field > span:first-child { margin-bottom: 6px; color: #56645c; }
.team-create-page-body .team-create-input-wrap { min-height: 58px; border: 1px solid #d9dfe0; border-radius: 14px; background: #fff; }
.team-create-page-body .team-create-input-wrap:focus-within { border-color: #0e9e3b; box-shadow: 0 0 0 3px rgba(14,158,59,.08); }
.team-create-page-body .team-create-input-wrap > i { color: #0da13b; }
.team-create-page-body .team-create-input-wrap input,
.team-create-page-body .team-create-input-wrap select { min-width: 0; min-height: 56px; color: #17201b; background: transparent; }
.team-create-page-body .team-create-field textarea { min-height: 92px; padding: 15px 17px; border: 1px solid #d9dfe0; border-radius: 14px; background: #fff; }

.team-create-compact-section { padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.team-create-compact-section legend { margin-bottom: 9px; }
.team-create-page-body .team-format-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.team-create-page-body .team-choice-card { min-height: 76px; border: 1px solid #dde2e0; border-radius: 14px; background: #fff; box-shadow: none; }
.team-create-page-body .team-choice-card::before { display: none; }
.team-create-page-body .team-choice-card:hover { border-color: #a9d7b5; transform: translateY(-1px); }
.team-create-page-body .team-choice-card:has(input:focus-visible) { outline: 3px solid rgba(14,158,59,.16); outline-offset: 2px; }
.team-create-page-body .team-format-card strong { color: #121b17; font-weight: 600; }
.team-create-page-body .team-choice-card:has(input:checked) { border-color: #0a9a39; color: #fff; background: linear-gradient(145deg,#16a540,#31bb4d); box-shadow: 0 8px 18px rgba(21,166,63,.17); }
.team-create-page-body .team-choice-card:has(input:checked) strong { color: #fff; }
.team-create-page-body .team-choice-card:has(input:checked) strong span { color: #fff; opacity: .82; }
.team-create-page-body .team-choice-check { top: 6px; right: 6px; width: 21px; height: 21px; border: 2px solid #fff; font-size: .58rem !important; box-shadow: 0 2px 7px rgba(0,93,35,.18); }
.team-create-page-body .team-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.team-create-page-body .team-level-card { min-height: 60px; }

.team-create-page-body .team-privacy-row {
    min-height: 76px;
    padding: 14px 17px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    border: 1px solid #dde2e0;
    border-radius: 14px;
    background: #fff;
}

.team-create-page-body .team-privacy-copy strong,
.team-create-page-body .team-privacy-copy small { display: block; }
.team-create-page-body .team-privacy-copy { min-width: 0; }
.team-create-page-body .team-privacy-copy small { margin-top: 3px; color: #7f8a84; }
.team-create-page-body .team-privacy-value { margin-right: 7px; color: #078b34; font-weight: 600; white-space: nowrap; }

.team-create-advanced-launch {
    width: 100%;
    min-height: 76px;
    padding: 13px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #dde2e0;
    border-radius: 14px;
    color: #18211c;
    background: #fff;
    text-align: left;
}

.team-create-advanced-launch > span:first-child { color: #087f31; font-size: 1.4rem; text-align: center; }
.team-create-advanced-launch strong,
.team-create-advanced-launch small { display: block; }
.team-create-advanced-launch small { margin-top: 3px; color: #7f8a84; }
.team-create-advanced-launch > i { color: #33433a; }
.team-create-advanced-launch.is-complete { border-color: #a8d9b6; background: #f4fbf6; }
.team-create-advanced-launch.is-complete small { color: #16883c; }

.team-create-page-body .team-create-actions .team-primary-button,
.team-create-advanced-actions .team-primary-button { min-height: 61px; border-radius: 13px; font-size: 1rem !important; box-shadow: 0 12px 24px rgba(10,145,51,.2); }

.team-create-advanced-hero { min-height: 218px; }
.team-create-advanced-body { padding-top: 30px; }
.team-create-preference-card { margin-bottom: 20px; padding: 18px 22px 4px; border: 1px solid #dfe4e1; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(16,56,35,.04); }
.team-create-preference-card h2 { margin: 0 0 9px; color: #101a15; font-weight: 900; letter-spacing: -.03em; }

.team-create-preference-row {
    min-height: 66px;
    margin: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(130px, 1fr) minmax(140px, auto) 20px;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border-bottom: 1px solid #e9ecea;
}

.team-create-preference-row:last-child { border-bottom: 0; }
.team-create-preference-row > i:first-child { color: #079336; font-size: 1.25rem; text-align: center; }
.team-create-preference-row > i:last-child { color: #4d5b53; text-align: right; pointer-events: none; }
.team-create-preference-row select,
.team-create-preference-row input { width: 100%; min-width: 0; height: 50px; padding: 0 4px; overflow: hidden; border: 0; outline: 0; color: #16201a; background: transparent; text-align: right; text-align-last: right; text-overflow: ellipsis; white-space: nowrap; appearance: none; }
.team-create-preference-row input { padding-right: 0; }

.team-create-notification-card { padding-bottom: 4px; }
.team-create-notification-card .team-create-option-toggle { min-height: 66px; margin: 0; padding: 9px 5px; border: 0; border-bottom: 1px solid #e9ecea; border-radius: 0; background: transparent; }
.team-create-notification-card .team-create-option-toggle > span:first-child { color: #079336; background: transparent; }
.team-create-notification-card .team-create-option-toggle .team-switch { transform: none; }
.team-create-advanced-actions { padding: 0 0 8px; display: flex; flex-direction: column; align-items: center; }
.team-create-advanced-actions .team-primary-button { width: 100%; }
.team-create-skip { margin-top: 17px; padding: 5px 20px; border: 0; color: #078d35; background: transparent; font-weight: 850; }
.team-create-advanced-actions > small { margin-top: 3px; color: #7f8a84; }

.team-create-success-page { min-height: 100vh; background: #f8faf8; }
.team-create-success-topbar {
    min-height: 74px;
    padding: max(15px, env(safe-area-inset-top)) 28px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e9e6;
    background: rgba(255,255,255,.96);
}

.team-create-success-topbar > strong { color: #101914; font-weight: 900; }
.team-create-success-topbar > button { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #079436; background: #fff; font-size: 1.45rem; box-shadow: 0 8px 24px rgba(9,55,31,.08); }
.team-create-overlay .team-create-success { min-height: 0; padding: 55px 34px calc(28px + env(safe-area-inset-bottom)); justify-content: flex-start; }
.team-create-overlay .team-create-success-mark { width: 106px; height: 106px; margin-bottom: 30px; border-radius: 30px; font-size: 2rem; transform: rotate(-2deg); }
.team-create-overlay .team-create-success > .team-create-kicker { letter-spacing: .12em; text-transform: uppercase; }
.team-create-overlay .team-create-success > h2 { margin: 12px 0 8px; color: #111a16; font-size: 1.8rem !important; }
.team-create-overlay .team-create-success > p { max-width: 630px; }
.team-create-overlay .team-create-success-steps { max-width: 690px; }
.team-create-overlay .team-create-next-title { margin-top: 10px; }
.team-create-overlay .team-create-invite-next { box-sizing: border-box; padding: 24px; grid-template-columns: 82px minmax(0, 1fr) minmax(140px, .72fr) minmax(145px, .78fr); border-radius: 25px; }
.team-create-overlay .team-create-invite-next > span { grid-row: auto; width: 72px; height: 72px; border-radius: 21px; font-size: 2rem; }
.team-create-overlay .team-create-invite-next > div { min-width: 0; align-self: center; }
.team-create-overlay .team-create-invite-next > button { min-width: 0; grid-column: auto; align-self: center; }
.team-create-overlay .team-create-invite-next .team-secondary-button { color: #118e39; background: #fff; }
.team-create-overlay .team-create-invite-next .team-primary-button { border: 1px solid rgba(255,255,255,.9); background: transparent; box-shadow: none; }
.team-create-placeholder-action { cursor: default; }
.team-create-overlay .team-create-success-actions { position: static; bottom: auto; margin-top: 25px; padding: 14px 0 max(5px, env(safe-area-inset-bottom)); background: transparent; backdrop-filter: none; }

.my-team-onboarding-visual > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(9, 88, 44, .16));
}

@media (max-width: 767px) {
    .team-create-overlay-shell { width: 100%; box-shadow: none; }
    .team-create-page-hero { min-height: 184px; padding: max(17px, env(safe-area-inset-top)) 18px 58px; grid-template-columns: 48px minmax(0,1fr); gap: 14px; }
    .team-create-page-back { width: 48px; height: 48px; border-radius: 15px; }
    .team-create-page-hero > div { padding-top: 3px; }
    .team-create-page-hero h1 { font-size: 1.32rem !important; }
    .team-create-page-hero p { margin: 7px 0 9px; font-size: .84rem !important; }
    .team-create-page-body { width: 100%; margin-top: -30px; padding: 25px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; }
    .team-create-logo-center .team-create-logo-button { width: 94px; height: 94px; }
    .team-create-logo-center .team-create-logo-button img { width: 80px; height: 80px; }
    .team-create-logo-center .team-create-logo-button > span { width: 37px; height: 37px; }
    .team-create-page-body > .team-create-field,
    .team-create-page-body > .team-create-location,
    .team-create-page-body > .team-create-section,
    .team-create-page-body > .team-privacy-row,
    .team-create-page-body > .team-create-advanced-launch { margin-bottom: 17px; }
    .team-create-page-body .team-create-location-fields { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .team-create-page-body .team-create-input-wrap { min-height: 52px; }
    .team-create-page-body .team-create-input-wrap input,
    .team-create-page-body .team-create-input-wrap select { min-height: 50px; }
    .team-create-page-body .team-format-grid { gap: 7px; }
    .team-create-page-body .team-choice-card { min-height: 66px; padding-inline: 5px; }
    .team-create-page-body .team-level-grid { gap: 8px; }
    .team-create-page-body .team-level-card { min-height: 54px; }
    .team-create-page-body .team-privacy-row { min-height: 69px; padding: 11px 12px; gap: 7px; }
    .team-create-page-body .team-privacy-copy small { max-width: 180px; }
    .team-create-page-body .team-privacy-value { font-size: .72rem !important; }
    .team-create-advanced-launch { min-height: 70px; padding: 11px 13px; }
    .team-create-advanced-hero { min-height: 184px; }
    .team-create-advanced-body { padding-top: 22px; }
    .team-create-preference-card { margin-bottom: 15px; padding: 16px 15px 3px; border-radius: 18px; }
    .team-create-preference-row { min-height: 61px; grid-template-columns: 33px minmax(95px,1fr) minmax(105px,auto) 14px; gap: 5px; }
    .team-create-preference-row select,
    .team-create-preference-row input { font-size: .75rem !important; }
    .team-create-notification-card .team-create-option-toggle { min-height: 61px; }
    .team-create-success-topbar { min-height: 64px; padding-inline: 18px; }
    .team-create-success-topbar > button { width: 44px; height: 44px; }
    .team-create-overlay .team-create-success { padding: 35px 18px calc(22px + env(safe-area-inset-bottom)); }
    .team-create-overlay .team-create-success-mark { width: 86px; height: 86px; margin-bottom: 22px; border-radius: 25px; }
    .team-create-overlay .team-create-success > h2 { font-size: 1.4rem !important; }
    .team-create-overlay .team-create-success-steps { grid-template-columns: 1fr 25px 1fr 25px 1fr; }
    .team-create-overlay .team-create-success-steps > i { display: block; }
    .team-create-overlay .team-create-invite-next { padding: 14px; grid-template-columns: 50px minmax(0,1fr) minmax(76px,.68fr) minmax(80px,.72fr); gap: 7px; }
    .team-create-overlay .team-create-invite-next > span { width: 48px; height: 48px; border-radius: 15px; font-size: 1.25rem; }
    .team-create-overlay .team-create-invite-next strong { font-size: .76rem !important; }
    .team-create-overlay .team-create-invite-next small { font-size: .62rem !important; line-height: 1.25; }
    .team-create-overlay .team-create-invite-next > button { min-height: 44px; padding: 0 6px; grid-column: auto; font-size: .58rem !important; line-height: 1.15; }
    .team-create-overlay .team-create-success-actions { grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); }
    .team-create-overlay .team-create-success-actions > button { min-width: 0; padding-inline: 8px; }

    .team-ready-card { padding: 14px; grid-template-columns: 48px minmax(0,1fr) minmax(88px,.72fr); gap: 9px; }
    .team-ready-icon { width: 46px; height: 46px; }
    .team-profile-progress { min-width: 0; grid-column: auto; }
    .team-profile-progress > span { gap: 3px; font-size: .62rem !important; }
    .team-profile-progress button { font-size: .62rem !important; }
    .team-invite-card { padding: 14px; grid-template-columns: 82px minmax(0,1fr); gap: 12px; text-align: left; }
    .team-invite-visual { width: 76px; height: 76px; margin: 0; font-size: 1.9em; }
    .team-invite-actions { grid-column: auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .team-invite-actions button { min-width: 0; min-height: 44px; padding: 0 6px; gap: 4px; font-size: .62rem !important; line-height: 1.15; }
    .team-overview-action { min-height: 112px; padding: 10px; grid-template-columns: 42px minmax(0,1fr) 10px; grid-template-rows: auto; align-items: center; gap: 7px; }
    .team-overview-action > span { width: 42px; height: 42px; font-size: 1.1em; }
    .team-overview-action > div { min-width: 0; grid-column: auto; }
    .team-overview-action > i { position: static; margin: 0; }
    .team-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .team-summary-grid > div { padding: 6px; grid-template-columns: 14px minmax(0,1fr); border-right: 1px solid var(--team-line); border-bottom: 0; }
    .team-summary-grid > div:nth-child(2) { border-right: 1px solid var(--team-line); }
    .team-summary-grid > div:last-child { border-right: 0; }
    .team-summary-grid i { font-size: .7rem; }
    .team-summary-grid span,
    .team-summary-grid strong { font-size: .6rem !important; }
    .team-next-match { grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; }
    .team-next-match > span { width: 38px; height: 38px; }
    .team-next-match button { width: auto; min-width: 0; padding: 0 8px; grid-column: auto; font-size: .62rem !important; }
    .team-rival-search-card { grid-template-columns: 90px minmax(0,1fr); text-align: left; }
    .team-rival-search-visual { width: 86px; height: 82px; margin: 0; grid-row: 1/3; }
    .team-day-hours { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(90px,.8fr); }
    .team-add-time { padding-top: 0; grid-column: auto; }
}

@media (max-width: 410px) {
    .team-create-page-body { padding-inline: 14px; }
    .team-create-page-body .team-privacy-copy small { display: none; }
    .team-create-preference-row { grid-template-columns: 30px minmax(86px,1fr) minmax(92px,auto) 12px; }
    .team-create-overlay .team-create-invite-next { padding: 11px; grid-template-columns: 42px minmax(32px,1fr) minmax(68px,.68fr) minmax(72px,.72fr); gap: 5px; }
    .team-create-overlay .team-create-invite-next > span { width: 40px; height: 40px; border-radius: 13px; font-size: 1.05rem; }
    .team-create-overlay .team-create-invite-next strong { font-size: .64rem !important; }
    .team-create-overlay .team-create-invite-next small { margin-top: 2px; font-size: .54rem !important; }
    .team-create-overlay .team-create-invite-next > button { min-height: 42px; padding-inline: 4px; grid-column: auto; font-size: .52rem !important; }
    .team-invite-card { grid-template-columns: 72px minmax(0,1fr); text-align: left; }
    .team-invite-visual { width: 66px; height: 66px; margin: 0; }
    .team-invite-actions button { padding-inline: 4px; font-size: .56rem !important; }
    .team-ready-card { grid-template-columns: 42px minmax(0,1fr) minmax(78px,.65fr); gap: 7px; }
    .team-ready-icon { width: 40px; height: 40px; font-size: 1.15em; }
    .team-profile-progress > span { display: block; text-align: right; }
    .team-profile-progress > span strong { display: block; }
    .team-overview-action { padding: 8px; grid-template-columns: 36px minmax(0,1fr) 8px; gap: 5px; }
    .team-overview-action > span { width: 36px; height: 36px; }
    .team-next-match { padding: 12px; grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; }
    .team-next-match > span { width: 34px; height: 34px; }
    .team-rival-search-card { padding: 14px; grid-template-columns: 72px minmax(0,1fr); gap: 10px; text-align: left; }
    .team-rival-search-visual { width: 68px; height: 68px; margin: 0; grid-row: 1/3; }
}

@media (max-width: 360px) {
    .team-create-page-body .team-choice-check { top: 5px; right: 5px; width: 18px; height: 18px; font-size: .5rem !important; }
    .team-create-overlay .team-create-invite-next { grid-template-columns: 36px minmax(78px,1fr) minmax(56px,.6fr) minmax(60px,.62fr); gap: 4px; }
    .team-create-overlay .team-create-invite-next > span { width: 34px; height: 34px; }
    .team-create-overlay .team-create-invite-next small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .team-create-overlay .team-create-invite-next > button { padding-inline: 2px; font-size: .48rem !important; }
}

/* Keep the full-page flow coherent when the application is using dark mode. */
body.dark-mode .team-create-overlay {
    color: #eaf4ee;
    background: #0b1510;
}

body.dark-mode .team-create-overlay-shell,
body.dark-mode .team-create-form,
body.dark-mode .team-create-success-page {
    color: #eaf4ee;
    background: #0f1a14 !important;
}

body.dark-mode .team-create-page-body {
    color: #eaf4ee;
    border-color: #263a30;
    background: #14231b;
    box-shadow: 0 -12px 35px rgba(0,0,0,.18);
}

body.dark-mode .team-create-logo-center .team-create-logo-button {
    border-color: #315342;
    background: #172a20;
}

body.dark-mode .team-create-logo-center .team-create-logo-button > span { border-color: #14231b; }
body.dark-mode .team-create-logo-center .team-create-logo-link,
body.dark-mode .team-create-page-body .team-privacy-value,
body.dark-mode .team-create-skip { color: #65d881 !important; }

body.dark-mode .team-create-page-hero > div > span { color: rgba(255,255,255,.88) !important; }
body.dark-mode .team-create-logo-center .team-create-logo-link small { color: inherit !important; }
body.dark-mode .team-create-section-label > span { color: #eef7f1 !important; }
body.dark-mode .team-create-section-label > small,
body.dark-mode .team-create-page-body .team-create-location-fields .team-create-field > span:first-child { color: #91a49a !important; }
body.dark-mode .team-create-page-body .team-format-card strong span { color: #68d783 !important; }
body.dark-mode .team-create-page-body .team-choice-card:has(input:checked) strong span,
body.dark-mode .team-create-page-body .team-choice-check { color: #fff !important; }
body.dark-mode .team-create-advanced-launch > span:first-child { color: #65d881 !important; }
body.dark-mode .team-create-preference-row > span { color: #dce9e1 !important; }
body.dark-mode .team-create-notification-card .team-create-option-toggle > span:first-child { color: #65d881 !important; }

body.dark-mode .team-create-section legend > span,
body.dark-mode .team-create-field > span:first-child,
body.dark-mode .team-create-page-body .team-format-card strong,
body.dark-mode .team-create-page-body .team-privacy-copy strong,
body.dark-mode .team-create-advanced-launch,
body.dark-mode .team-create-preference-card h2,
body.dark-mode .team-create-preference-row,
body.dark-mode .team-create-option-toggle strong,
body.dark-mode .team-create-success-topbar > strong,
body.dark-mode .team-create-overlay .team-create-success > h2 { color: #eef7f1 !important; }

body.dark-mode .team-create-section-label > small,
body.dark-mode .team-create-page-body .team-create-location-fields .team-create-field > span:first-child,
body.dark-mode .team-create-page-body .team-privacy-copy small,
body.dark-mode .team-create-advanced-launch small,
body.dark-mode .team-create-advanced-actions > small { color: #91a49a !important; }

body.dark-mode .team-create-page-body .team-create-input-wrap,
body.dark-mode .team-create-page-body .team-create-field textarea,
body.dark-mode .team-create-page-body .team-choice-card,
body.dark-mode .team-create-page-body .team-privacy-row,
body.dark-mode .team-create-advanced-launch,
body.dark-mode .team-create-preference-card {
    border-color: #30483b;
    background: #101c16;
}

body.dark-mode .team-create-page-body .team-create-input-wrap input,
body.dark-mode .team-create-page-body .team-create-input-wrap select,
body.dark-mode .team-create-page-body .team-create-field textarea,
body.dark-mode .team-create-preference-row select,
body.dark-mode .team-create-preference-row input { color: #eaf4ee !important; }

body.dark-mode .team-create-page-body .team-create-input-wrap input,
body.dark-mode .team-create-page-body .team-create-input-wrap select,
body.dark-mode .team-create-preference-row select,
body.dark-mode .team-create-preference-row input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .team-create-page-body .team-create-field textarea {
    border-color: #30483b !important;
    background: #101c16 !important;
    box-shadow: none !important;
}

body.dark-mode .team-create-page-body .team-create-input-wrap input::placeholder,
body.dark-mode .team-create-page-body .team-create-field textarea::placeholder { color: #7f9388; }
body.dark-mode .team-create-page-body .team-choice-card input { width: 1px; height: 1px; background: transparent !important; box-shadow: none !important; }

body.dark-mode .team-create-page-body .team-create-input-wrap:focus-within,
body.dark-mode .team-create-page-body .team-create-field textarea:focus {
    border-color: #4bc56b;
    box-shadow: 0 0 0 3px rgba(75,197,107,.12);
}

body.dark-mode .team-create-page-body .team-choice-card:hover { border-color: #4a705c; }
body.dark-mode .team-create-page-body .team-choice-card:has(input:checked) {
    border-color: #43c463;
    background: linear-gradient(145deg,#158f3b,#2ab84b);
}

body.dark-mode .team-create-page-body .team-choice-check { border-color: #14231b; }
body.dark-mode .team-create-preference-row,
body.dark-mode .team-create-notification-card .team-create-option-toggle { border-bottom-color: #294034; }
body.dark-mode .team-create-preference-row > i:last-child,
body.dark-mode .team-create-advanced-launch > i { color: #9cb0a5; }

body.dark-mode .team-create-success-topbar {
    border-bottom-color: #263b30;
    background: rgba(15,26,20,.96);
}

body.dark-mode .team-create-success-topbar > button {
    color: #64d67f;
    background: #17281f;
    box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}

body.dark-mode .team-create-page-back { box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important; }
body.dark-mode .team-create-logo-link,
body.dark-mode .team-create-skip { box-shadow: none !important; }
body.dark-mode .team-create-page-body .team-create-actions .team-primary-button,
body.dark-mode .team-create-advanced-actions .team-primary-button { box-shadow: 0 12px 24px rgba(10,145,51,.24) !important; }

body.dark-mode .team-create-overlay .team-create-success-actions {
    background: transparent;
}

body.dark-mode .team-create-overlay-loading,
body.dark-mode .team-create-load-error {
    color: #a6b8ae;
    background: #101c16;
}

/* Secure team invitations and mobile-first team management refinements */
.team-hero-topbar { grid-template-columns: 46px minmax(0,1fr) auto; gap: 9px; }
.team-hero-actions { display: flex; align-items: center; gap: 8px; }

.team-squad-slots {
    margin-top: 17px;
    padding: 3px 2px 8px;
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.team-squad-person {
    flex: 0 0 78px;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 0;
    color: var(--team-ink);
    background: transparent;
    text-align: center;
    scroll-snap-align: start;
}

.team-squad-avatar {
    position: relative;
    width: 62px;
    height: 62px;
    margin-bottom: 3px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    color: var(--team-green);
    background: #edf7f0;
    box-shadow: 0 0 0 1px #d7e7dc, 0 8px 18px rgba(18,80,47,.11);
}

.team-squad-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.team-squad-avatar > i.fa-crown { position: absolute; top: -6px; right: -5px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--team-green); font-size: .58rem; }
.team-squad-person strong,
.team-squad-person small { width: 100%; overflow: hidden; display: block; white-space: nowrap; text-overflow: ellipsis; }
.team-squad-person strong { font-weight: 850; }
.team-squad-person small { color: var(--team-muted); }
.team-squad-person.is-empty .team-squad-avatar { border: 1px dashed #8ba597; box-shadow: none; }

.team-squad-invite-card {
    margin: 0 var(--team-content-gutter) 14px;
    padding: 18px;
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid #bfe2c8;
    border-radius: 19px;
    background: linear-gradient(115deg,#effaf2,#fff);
    box-shadow: 0 8px 22px rgba(28,68,48,.05);
}

.team-squad-invite-card > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#23ad43,#087e35); font-size: 1.3rem; }
.team-squad-invite-card strong,
.team-squad-invite-card small { display: block; }
.team-squad-invite-card strong { color: var(--team-ink); font-weight: 900; }
.team-squad-invite-card small { margin-top: 4px; color: var(--team-muted); line-height: 1.4; }
.team-squad-invite-card > button { min-height: 46px; }

.team-invitation-page { min-height: 100vh; padding-bottom: max(28px, env(safe-area-inset-bottom)); color: var(--team-ink); background: #f4f7f5; }
.team-invitation-topbar { min-height: 82px; padding: max(16px, env(safe-area-inset-top)) 22px 12px; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 10px; color: #fff; background: linear-gradient(135deg,#0b442b,#0b8140); }
.team-invitation-topbar > span:nth-child(2) { justify-self: center; font-weight: 850; }
.team-invitation-topbar > span:nth-child(2) i { margin-right: 5px; color: #c8f15b; }
.team-invitation-lock { width: 42px; height: 42px; display: grid; place-items: center; justify-self: end; border-radius: 13px; color: #d7f59c; background: rgba(255,255,255,.1); }
.team-invitation-shell { width: min(620px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 0; }
.team-invitation-brand { text-align: center; }
.team-invitation-logo { width: 112px; height: 112px; margin: 0 auto 18px; padding: 5px; display: block; border: 1px solid #d4e5da; border-radius: 31px; background: #fff; box-shadow: 0 18px 38px rgba(16,72,43,.16); }
.team-invitation-logo img { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; }
.team-invitation-brand h1 { margin: 7px 0 5px; color: #10271b; font-weight: 950; letter-spacing: -.035em; }
.team-invitation-brand p { margin: 0; color: var(--team-muted); }
.team-invitation-details { margin: 25px 0 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.team-invitation-details > div { min-width: 0; padding: 13px; display: grid; grid-template-columns: 38px minmax(0,1fr); column-gap: 9px; border: 1px solid var(--team-line); border-radius: 16px; background: #fff; }
.team-invitation-details > div > span { grid-row: 1/3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--team-green); background: #edf8f0; }
.team-invitation-details small,
.team-invitation-details strong { min-width: 0; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-invitation-details small { color: var(--team-muted); }
.team-invitation-details strong { color: var(--team-ink); font-weight: 850; }
.team-invitation-from { padding: 13px 15px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--team-line); border-radius: 16px; background: #fff; }
.team-invitation-from > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--team-green); background: #edf8f0; }
.team-invitation-from small,
.team-invitation-from strong { display: block; }
.team-invitation-from small { color: var(--team-muted); }
.team-invitation-from strong { font-weight: 850; }
.team-invitation-from > i { color: var(--team-green); }
.team-invitation-action-card,
.team-invitation-result { margin-top: 14px; padding: 24px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--team-line); border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 10px 28px rgba(22,70,43,.07); }
.team-invitation-state-icon,
.team-invitation-result > span { width: 66px; height: 66px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#2cb74a,#078239); box-shadow: 0 10px 24px rgba(20,149,58,.22); font-size: 1.45rem; }
.team-invitation-state-icon.is-blocked { color: #cf7b17; background: #fff5e6; box-shadow: none; }
.team-invitation-state-icon.is-pending { color: #178a3c; background: #edf8f0; box-shadow: none; }
.team-invitation-action-card h2,
.team-invitation-result h2 { margin: 0 0 7px; color: var(--team-ink); font-weight: 950; }
.team-invitation-action-card p,
.team-invitation-result p { max-width: 430px; margin: 0 0 19px; color: var(--team-muted); line-height: 1.55; }
.team-invitation-action-card > .team-primary-button,
.team-invitation-action-card > .team-secondary-button,
.team-invitation-result > button { width: 100%; min-height: 52px; margin-top: 8px; justify-content: center; }
.team-invitation-footnote { margin: 17px 10px 0; color: var(--team-muted); text-align: center; }
.team-invitation-footnote i { margin-right: 5px; color: var(--team-green); }

body.dark-mode .team-squad-invite-card,
body.dark-mode .team-invitation-details > div,
body.dark-mode .team-invitation-from,
body.dark-mode .team-invitation-action-card,
body.dark-mode .team-invitation-result { color: var(--team-ink); border-color: var(--team-line); background: var(--team-white); }
body.dark-mode .team-invitation-page { background: #0e1913; }
body.dark-mode .team-invitation-brand h1 { color: var(--team-ink); }

@media (max-width: 767px) {
    .team-premium-page { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
    .team-hero-topbar { grid-template-columns: 38px minmax(0,1fr) auto; gap: 7px; }
    .team-hero-actions { gap: 6px; }
    .team-hero-actions .team-icon-button { width: 38px; height: 38px; }
    .team-owner-badge { min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

    .team-premium-tabs {
        z-index: 8;
        top: calc(var(--mobileHeaderPx, 0px) + max(var(--maui-safe-area-top, 0px), env(safe-area-inset-top, 0px)) + 6px);
        margin-top: -39px;
    }
    body.page-chrome-navigation-hidden .team-premium-tabs { top: calc(max(var(--maui-safe-area-top, 0px), env(safe-area-inset-top, 0px)) + 6px); }
    .team-tab-content { position: relative; z-index: 1; scroll-margin-top: 92px; }
    .team-tab-content > .target { scroll-margin-top: calc(max(var(--maui-safe-area-top, 0px), env(safe-area-inset-top, 0px)) + 88px); }

    .team-summary-grid { margin: 15px 0 13px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .team-summary-grid > div,
    .team-summary-grid > div:nth-child(2),
    .team-summary-grid > div:nth-child(n+3) { min-height: 68px; padding: 11px; grid-template-columns: 30px minmax(0,1fr); align-content: center; border: 1px solid #e2ebe5; border-radius: 13px; background: #f8fbf9; }
    .team-summary-grid i { grid-row: 1/3; width: 27px; height: 27px; margin: 0; display: grid; place-items: center; border-radius: 9px; background: #eaf7ee; font-size: .72rem; }
    .team-summary-grid span,
    .team-summary-grid strong { font-size: .64rem !important; }
    .team-summary-grid strong { margin-top: 2px; }

    .team-squad-preview { overflow: hidden; }
    .team-squad-slots { margin-right: -15px; padding-right: 15px; }
    .team-squad-person { flex-basis: 72px; }
    .team-squad-avatar { width: 58px; height: 58px; }

    .team-squad-invite-card { margin: 0 10px 12px; padding: 14px; grid-template-columns: 48px minmax(0,1fr); gap: 10px; }
    .team-squad-invite-card > span { width: 46px; height: 46px; border-radius: 14px; }
    .team-squad-invite-card > button { min-height: 46px; grid-column: 1/-1; justify-content: center; }

    .team-invitation-topbar { min-height: 72px; padding-inline: 15px; grid-template-columns: 40px minmax(0,1fr) 40px; }
    .team-invitation-topbar .team-icon-button,
    .team-invitation-lock { width: 38px; height: 38px; }
    .team-invitation-shell { width: min(100% - 22px, 560px); padding-top: 25px; }
    .team-invitation-logo { width: 94px; height: 94px; border-radius: 27px; }
    .team-invitation-logo img { border-radius: 21px; }
    .team-invitation-details { margin-top: 20px; gap: 8px; }
    .team-invitation-details > div { padding: 10px; grid-template-columns: 32px minmax(0,1fr); column-gap: 7px; }
    .team-invitation-details > div > span { width: 30px; height: 30px; border-radius: 9px; }
    .team-invitation-details small { font-size: .6rem !important; }
    .team-invitation-details strong { font-size: .68rem !important; }
    .team-invitation-action-card,
    .team-invitation-result { padding: 21px 17px; }
}

@media (max-width: 380px) {
    .team-hero-actions { gap: 4px; }
    .team-hero-actions .team-icon-button { width: 34px; height: 36px; }
    .team-owner-badge { padding-inline: 7px; }
    .team-summary-grid { gap: 7px; }
    .team-summary-grid > div,
    .team-summary-grid > div:nth-child(2),
    .team-summary-grid > div:nth-child(n+3) { padding: 8px; grid-template-columns: 25px minmax(0,1fr); }
    .team-summary-grid i { width: 23px; height: 23px; }
    .team-invitation-details { grid-template-columns: 1fr; }
}

/* Takım detay ve oluşturma referans düzeni */
.team-summary-card { padding: 14px 18px; }
.team-summary-grid { margin: 10px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-summary-grid > div { min-height: 48px; padding: 5px 10px; align-content: center; }
.team-squad-preview { padding: 15px 18px; }
.team-squad-slots { gap: 10px; }
.team-squad-person { flex: 0 0 70px; min-width: 0; padding: 4px 2px; }
.team-squad-avatar { width: 50px; height: 50px; margin-bottom: 5px; }
.team-squad-person strong,
.team-squad-person small { position: static; display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }

.team-create-success-logo { width: 112px; height: 112px; margin: 24px auto 16px; display: block; object-fit: cover; border: 4px solid #dff3e4; border-radius: 30px; box-shadow: 0 16px 40px rgba(12,139,55,.2); }
.team-create-overlay .team-create-success-steps { max-width: 620px; margin-block: 18px 22px; grid-template-columns: 1fr 42px 1fr 42px 1fr; }
.team-create-overlay .team-create-success-steps > i { margin-top: 15px; }
.team-create-overlay .team-create-success-steps > span { gap: 5px; }
.team-create-overlay .team-create-success-steps > span > i,
.team-create-overlay .team-create-success-steps > span > b { width: 32px; height: 32px; }
.team-create-overlay .team-create-invite-next { min-height: 185px; padding: 24px 28px; grid-template-columns: 76px minmax(0,1fr) minmax(150px,.7fr) minmax(150px,.7fr); grid-template-rows: 1fr auto; align-items: start; }
.team-create-overlay .team-create-invite-next > span { grid-row: 1; }
.team-create-overlay .team-create-invite-next > div { grid-column: 2 / -1; align-self: start; }
.team-create-overlay .team-create-invite-next > button { grid-row: 2; align-self: end; }
.team-create-overlay .team-create-invite-next > button:nth-of-type(1) { grid-column: 2; }
.team-create-overlay .team-create-invite-next > button:nth-of-type(2) { grid-column: 3 / -1; }
.team-create-success-actions { justify-content: flex-end; }
.team-create-success-actions .team-primary-button { width: min(100%, 420px); }

.team-location-manager { display: grid; gap: 16px; padding: 4px; color: #101512; }
.team-location-manager__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.team-location-manager__heading h2,
.team-location-manager__heading p { margin: 0; }
.team-location-manager__heading p { margin-top: 3px; color: #69746e; }
.team-location-manager__heading > strong { white-space: nowrap; font-size: 1.05rem; }
.team-location-manager__selected { display: grid; gap: 14px; }
.team-location-city-card,
.team-location-add-card { padding: 22px; border: 1px solid #e4e9e6; border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(20,45,29,.06); }
.team-location-city-card h3,
.team-location-add-card h3 { margin: 0 0 13px; font-size: 1.05rem; }
.team-location-district-row { min-height: 56px; margin-top: 9px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dfe6e2; border-radius: 12px; }
.team-location-district-row span { display: flex; align-items: center; gap: 12px; font-weight: 750; }
.team-location-district-row span i { color: #0aa340; font-size: 1.15rem; }
.team-location-district-row button { width: 38px; height: 38px; border: 0; background: transparent; color: #526176; }
.team-location-add-card { display: grid; gap: 12px; }
.team-location-add-card label { display: grid; gap: 6px; font-weight: 750; }
.team-location-add-card select { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #aab6c5; border-radius: 12px; background: #fff; }
.team-location-add-card select:disabled { background: #f1f3f4; color: #9ba3af; }
.team-location-add-button { min-height: 52px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#08a844,#038435); color: #fff; font-weight: 850; }
.team-location-note { padding: 15px 18px; display: flex; align-items: center; gap: 12px; border-radius: 14px; background: #edf8f1; color: #34463b; }
.team-location-note i { color: #07963c; font-size: 1.3rem; }

@media (max-width: 767px) {
    .team-summary-card { padding: 11px 10px; }
    .team-summary-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; }
    .team-summary-grid > div,
    .team-summary-grid > div:nth-child(2),
    .team-summary-grid > div:nth-child(n+3) { min-height: 50px; padding: 5px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-right: 1px solid #e2ebe5; border-radius: 0; background: transparent; text-align: center; }
    .team-summary-grid > div:last-child { border-right: 0; }
    .team-summary-grid i { display: none; }
    .team-summary-grid span,
    .team-summary-grid strong { max-width: 100%; font-size: .55rem !important; }
    .team-squad-person { flex-basis: 62px; }
    .team-squad-avatar { width: 44px; height: 44px; }
    .team-create-success-logo { width: 88px; height: 88px; margin-top: 18px; border-radius: 24px; }
    .team-create-overlay .team-create-success-steps { grid-template-columns: 1fr 18px 1fr 18px 1fr; }
    .team-create-overlay .team-create-success-steps > i { display: block; }
    .team-create-overlay .team-create-invite-next { min-height: 205px; padding: 16px; grid-template-columns: 54px 1fr 1fr; grid-template-rows: 1fr auto; }
    .team-create-overlay .team-create-invite-next > span { width: 50px; height: 50px; }
    .team-create-overlay .team-create-invite-next > div { grid-column: 2 / -1; }
    .team-create-overlay .team-create-invite-next > button:nth-of-type(1) { grid-column: 1 / 3; }
    .team-create-overlay .team-create-invite-next > button:nth-of-type(2) { grid-column: 3; }
    .team-location-city-card,
    .team-location-add-card { padding: 15px; border-radius: 15px; }
}

/* Arkadaş daveti: oluşturma ve yönetim ekranlarında ortak referans görünümü */
.team-invite-reference-card,
.team-create-overlay .team-invite-reference-card {
    box-sizing: border-box;
    width: 100%;
    min-height: 158px;
    margin: 0;
    padding: 11px 16px 9px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-areas:
        "visual copy"
        "actions actions"
        "note note";
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(20, 135, 52, .2);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(118deg, #48b951 0%, #2d9c40 100%);
    box-shadow: 0 8px 22px rgba(22, 126, 55, .14);
    text-align: left;
}

.team-squad-invite-card.team-invite-reference-card {
    margin: 0 var(--team-content-gutter) 14px;
    width: calc(100% - (var(--team-content-gutter) * 2));
}

.team-invite-reference-card > .team-invite-reference-visual,
.team-create-overlay .team-invite-reference-card > .team-invite-reference-visual {
    grid-area: visual;
    width: 66px;
    height: 66px;
    margin: 0;
    display: grid;
    place-items: center;
    align-self: start;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    font-size: 1.75rem;
}

.team-invite-reference-card > .team-invite-reference-copy,
.team-create-overlay .team-invite-reference-card > .team-invite-reference-copy {
    grid-area: copy;
    min-width: 0;
    align-self: center;
}

.team-invite-reference-copy h2,
.team-invite-reference-copy p {
    margin: 0;
    color: #fff;
}

.team-invite-reference-copy h2 {
    font-size: .92rem;
    line-height: 1.2;
    font-weight: 900;
}

.team-invite-reference-copy p {
    margin-top: 4px;
    font-size: .68rem;
    line-height: 1.35;
    opacity: .94;
}

.team-invite-reference-card > .team-invite-reference-actions,
.team-create-overlay .team-invite-reference-card > .team-invite-reference-actions {
    grid-area: actions;
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.team-invite-reference-actions > button,
.team-create-overlay .team-invite-reference-actions > button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 37px;
    margin: 0;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    box-shadow: none;
    font-size: .72rem;
    line-height: 1.1;
    font-weight: 850;
    white-space: nowrap;
}

.team-invite-reference-actions > .team-invite-reference-select,
.team-create-overlay .team-invite-reference-actions > .team-invite-reference-select {
    border: 1px solid rgba(255, 255, 255, .96);
    color: #2aa243;
    background: #fff;
}

.team-invite-reference-actions > .team-invite-reference-share,
.team-create-overlay .team-invite-reference-actions > .team-invite-reference-share {
    border: 1px solid rgba(255, 255, 255, .94);
    color: #fff;
    background: transparent;
}

.team-invite-reference-card > .team-invite-reference-note,
.team-create-overlay .team-invite-reference-card > .team-invite-reference-note {
    grid-area: note;
    margin: 0;
    display: block;
    color: rgba(255, 255, 255, .9);
    font-size: .62rem;
    line-height: 1.25;
    text-align: center;
}

body.dark-mode .team-invite-reference-card {
    color: #fff;
    border-color: rgba(105, 220, 125, .25);
    background: linear-gradient(118deg, #3aab49 0%, #197f35 100%);
}

/* Kadro kartında avatar, ad ve mevki birbirinin alanına taşmaz. */
.team-squad-preview {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.team-squad-preview > header,
.team-squad-preview > header > * {
    min-width: 0;
}

.team-squad-preview > header > button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.team-squad-preview .team-squad-slots {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 13px 0 0;
    padding: 4px 2px 8px;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
}

.team-squad-preview .team-squad-person {
    box-sizing: border-box;
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    min-height: 94px;
    margin: 0;
    padding: 2px;
    display: grid;
    grid-template-rows: 52px auto auto;
    justify-items: center;
    align-content: start;
    gap: 3px;
    overflow: hidden;
    line-height: 1.2;
}

.team-squad-preview .team-squad-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0;
    flex: none;
    box-sizing: border-box;
    isolation: isolate;
}

.team-squad-preview .team-squad-avatar-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    border-radius: inherit;
}

.team-squad-preview .team-squad-avatar-image > img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.team-squad-preview .team-squad-avatar > i.fa-crown {
    z-index: 1;
}

.team-squad-preview .team-squad-person strong,
.team-squad-preview .team-squad-person small {
    position: static;
    max-width: 100%;
    margin: 0;
    line-height: 1.2;
}

.team-rival-search-card.OpenSheepPopup { cursor: pointer; }
.team-rival-search-card.OpenSheepPopup:focus-visible { outline: 3px solid rgba(7, 151, 58, .28); outline-offset: 3px; }

@media (max-width: 520px) {
    .team-invite-reference-card,
    .team-create-overlay .team-invite-reference-card {
        min-height: 158px;
        padding: 10px 15px 8px;
        grid-template-columns: 66px minmax(0, 1fr);
        column-gap: 13px;
        row-gap: 7px;
        border-radius: 14px;
    }

    .team-squad-invite-card.team-invite-reference-card {
        margin: 0 10px 12px;
        width: calc(100% - 20px);
    }

    .team-invite-reference-card > .team-invite-reference-visual,
    .team-create-overlay .team-invite-reference-card > .team-invite-reference-visual {
        width: 62px;
        height: 62px;
        border-radius: 12px;
        font-size: 1.55rem;
    }

    .team-invite-reference-copy h2 { font-size: .78rem; }
    .team-invite-reference-copy p { margin-top: 3px; font-size: .6rem; }
    .team-invite-reference-card > .team-invite-reference-actions,
    .team-create-overlay .team-invite-reference-card > .team-invite-reference-actions { gap: 18px; }
    .team-invite-reference-actions > button,
    .team-create-overlay .team-invite-reference-actions > button { min-height: 35px; padding-inline: 6px; gap: 6px; font-size: .62rem; }
    .team-invite-reference-card > .team-invite-reference-note,
    .team-create-overlay .team-invite-reference-card > .team-invite-reference-note { font-size: .56rem; }

    .team-squad-preview { padding: 13px 12px; }
    .team-squad-preview .team-squad-slots { margin-right: 0; padding-right: 2px; gap: 8px; }
    .team-squad-preview .team-squad-person { flex-basis: 64px; width: 64px; min-width: 64px; grid-template-rows: 46px auto auto; }
    .team-squad-preview .team-squad-avatar { width: 44px; height: 44px; }
}

/* Takımlarım — supplied-reference layout */
.my-teams-reference-page {
    --my-team-green: #07953b;
    --my-team-dark: #003c29;
    --my-team-ink: #0a0c0b;
    --my-team-muted: #687181;
    box-sizing: border-box;
    width: min(940px, 100%);
    min-height: calc(100dvh - 53px - var(--maui-safe-area-bottom));
    margin: 0 auto 53px;
    color: var(--my-team-ink);
    background: #fff;
}

.my-teams-reference-hero {
    position: relative;
    box-sizing: border-box;
    min-height: clamp(150px, 35.5vw, 306px);
    padding: clamp(18px, 4.5vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,52,37,.98), rgba(0,91,47,.93)), radial-gradient(circle at 82% 15%, #158350, #00452e 68%);
}

.my-teams-reference-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30%;
    background: linear-gradient(0deg, rgba(14,92,45,.24), transparent);
    pointer-events: none;
}

.my-teams-reference-back {
    position: relative;
    z-index: 3;
    width: clamp(40px, 8.8vw, 78px);
    height: clamp(40px, 8.8vw, 78px);
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: clamp(13px, 2.6vw, 22px);
    color: #fff;
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    font-size: clamp(1rem, 2.6vw, 1.45rem);
    backdrop-filter: blur(10px);
}

.my-teams-reference-ball {
    position: absolute;
    z-index: 1;
    top: clamp(-42px, -4.5vw, -8px);
    right: clamp(-45px, -3vw, -12px);
    width: clamp(180px, 39vw, 355px);
    height: clamp(180px, 39vw, 355px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: rgba(7,55,40,.56);
    font-size: clamp(176px, 39vw, 350px);
    line-height: 1;
    transform: rotate(-11deg);
    filter: drop-shadow(-16px 18px 20px rgba(0,31,22,.15));
}

.my-teams-reference-hero-copy { position: relative; z-index: 2; width: 70%; }
.my-teams-reference-hero-copy h1 { margin: 0 0 clamp(5px,1.1vw,10px); color: #fff !important; font-size: clamp(1.55rem,5.5vw,3.35rem) !important; font-weight: 950; line-height: 1; letter-spacing: -.035em; }
.my-teams-reference-hero-copy p { margin: 0; color: rgba(255,255,255,.96) !important; font-size: clamp(.72rem,2.3vw,1.25rem) !important; font-weight: 700; line-height: 1.35; }

.my-teams-reference-content { padding: clamp(20px,4.5vw,40px) clamp(16px,4.5vw,40px) clamp(110px,16vw,150px); background: #fff; }
.my-teams-reference-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.my-teams-reference-heading h2 { margin: 0 0 6px; color: #080b09; font-size: clamp(1.25rem,3.7vw,2rem) !important; font-weight: 900; letter-spacing: -.025em; }
.my-teams-reference-heading p { margin: 0; color: var(--my-team-muted); font-size: clamp(.68rem,2.15vw,1.06rem) !important; font-weight: 550; line-height: 1.4; }
.my-teams-reference-heading > span { flex: 0 0 auto; padding: clamp(7px,1.4vw,12px) clamp(10px,2vw,17px); border: 1px solid #d3ecdc; border-radius: clamp(11px,2vw,17px); color: var(--my-team-green) !important; background: #eff9f2; font-size: clamp(.7rem,2vw,1rem) !important; font-weight: 850; white-space: nowrap; }

.my-teams-reference-filters { margin: clamp(18px,3.3vw,32px) 0 clamp(15px,3vw,28px); display: flex; flex-wrap: wrap; gap: clamp(7px,1.5vw,13px); }
.my-teams-reference-filters button { min-height: clamp(38px,6vw,53px); padding: 0 clamp(13px,2.6vw,23px); display: inline-flex; align-items: center; gap: clamp(6px,1.2vw,10px); border: 1px solid #dde2e0; border-radius: 999px; color: #151817; background: #fff; font-size: clamp(.72rem,2.2vw,1.05rem) !important; font-weight: 750; }
.my-teams-reference-filters button b { color: #687181; font-weight: 850; }
.my-teams-reference-filters button.active { border-color: var(--my-team-green); color: #fff !important; background: linear-gradient(135deg,#13aa45,#048831); box-shadow: 0 8px 18px rgba(4,136,49,.18); }
.my-teams-reference-filters button.active b { color: #fff !important; }

.my-teams-reference-list { display: grid; gap: clamp(12px,2.6vw,23px); }
.my-team-reference-card {
    position: relative;
    box-sizing: border-box;
    min-height: clamp(148px,32.5vw,282px);
    padding: clamp(13px,3vw,28px) clamp(38px,5vw,50px) clamp(13px,3vw,28px) clamp(12px,2.5vw,22px);
    display: grid;
    grid-template-columns: clamp(82px,18vw,158px) minmax(0,1fr);
    align-items: center;
    gap: clamp(12px,3vw,30px);
    border: 1px solid #e0e3e1;
    border-radius: clamp(18px,3.4vw,28px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(16,37,26,.055);
}
.my-team-reference-card[hidden] { display: none !important; }
.my-team-reference-logo { width: 100%; height: clamp(98px,23vw,205px); display: grid; place-items: center; }
.my-team-reference-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.09)); }
.my-team-reference-main { min-width: 0; }
.my-team-reference-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.my-team-reference-role { min-width: 0; padding: clamp(5px,1vw,8px) clamp(7px,1.4vw,12px); display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9ead5; border-radius: clamp(9px,1.7vw,13px); color: #0b9740 !important; background: #effaf3; font-size: clamp(.62rem,1.9vw,.95rem) !important; font-weight: 800; white-space: nowrap; }
.my-team-reference-role.member { border-color: #c9dfff; color: #0867df !important; background: #f1f6ff; }
.my-team-reference-role.coach { border-color: #f2cdcd; color: #d01b1b !important; background: #fff2f2; }

.my-team-reference-action { flex: 0 0 auto; min-height: clamp(34px,5.7vw,49px); padding: 0 clamp(9px,2vw,17px); border: 0; border-radius: clamp(9px,1.8vw,14px); color: #0a963d !important; background: #eff9f2; font-size: clamp(.62rem,1.9vw,.96rem) !important; font-weight: 850; white-space: nowrap; }
.my-team-reference-main h3 { margin: clamp(6px,1.2vw,11px) 0 3px; overflow: hidden; color: #090b0a; font-size: clamp(1.02rem,3.1vw,1.65rem) !important; font-weight: 950; line-height: 1.1; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.my-team-reference-location { margin: 0; overflow: hidden; color: var(--my-team-muted); font-size: clamp(.6rem,1.95vw,.98rem) !important; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.my-team-reference-location i { margin-right: 5px; }

.my-team-reference-stats { margin-top: clamp(9px,2vw,18px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.my-team-reference-stats > div { min-width: 0; padding: 0 clamp(6px,1.5vw,14px); display: grid; grid-template-columns: clamp(17px,3.2vw,29px) minmax(0,1fr); align-items: start; border-right: 1px solid #e5e7e6; }
.my-team-reference-stats > div:first-child { padding-left: 0; }
.my-team-reference-stats > div:last-child { padding-right: 0; border-right: 0; }
.my-team-reference-stats i { grid-row: 1 / 3; margin-top: 2px; color: #687181; font-size: clamp(.78rem,2.3vw,1.16rem); }
.my-team-reference-stats strong,
.my-team-reference-stats small { min-width: 0; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.my-team-reference-stats strong { color: #161918; font-size: clamp(.6rem,2vw,1rem); font-weight: 850; }
.my-team-reference-stats strong span { margin: 0 1px; }
.my-team-reference-stats small { margin-top: 2px; color: var(--my-team-muted); font-size: clamp(.57rem,1.65vw,.82rem); }
.my-team-reference-stats strong.searching,
.my-team-reference-stats strong.active { width: fit-content; padding: 3px 7px; border-radius: 7px; color: #07953b; background: #edf8f0; }
.my-team-reference-stats strong.searching { color: #ef8500; background: #fff6e8; }

.my-team-reference-chevron { position: absolute; top: 50%; right: clamp(12px,2vw,20px); width: 28px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; color: #151817; background: transparent; font-size: clamp(.85rem,2.4vw,1.25rem); transform: translateY(-50%); }
.my-teams-reference-create { box-sizing: border-box; width: 100%; min-height: clamp(52px,9vw,78px); margin-top: clamp(15px,3.3vw,30px); border: 2px solid #07953b; border-radius: clamp(13px,2.4vw,19px); color: #078e38 !important; background: #fff; font-size: clamp(.8rem,2.8vw,1.45rem) !important; font-weight: 900; }
.my-teams-reference-create i { margin-right: 9px; }

.my-teams-reference-empty { width: calc(100% - 32px); min-height: 370px; margin: 28px auto 120px; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid #dce7df; border-radius: 24px; background: #fff; text-align: center; }
.my-teams-reference-empty > span { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: #07953b; font-size: 1.35rem; }
.my-teams-reference-empty h2 { margin: 8px 0 0; font-weight: 900; }
.my-teams-reference-empty p { max-width: 520px; margin: 0; color: var(--my-team-muted); line-height: 1.5; }
.my-teams-reference-empty .my-teams-reference-create { width: min(360px,100%); }

body.dark-mode .my-teams-reference-page,
body.dark-mode .my-teams-reference-content,
body.dark-mode .my-team-reference-card,
body.dark-mode .my-teams-reference-empty { color: var(--my-team-ink) !important; background: #fff !important; }

@media (max-width: 560px) {
    .my-teams-reference-heading p { max-width: 245px; }
    .my-team-reference-card { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding-left: 10px; padding-right: 31px; }
    .my-team-reference-action { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
    .my-team-reference-stats > div { padding-inline: 4px; grid-template-columns: 17px minmax(0,1fr); }
    .my-team-reference-stats strong.searching,
    .my-team-reference-stats strong.active { padding: 2px 4px; }
}
