/* All detail-page presentation stays inside the team workspace. */
.team-workspace {
    --team-ground: #121214;
    --team-surface: #1c1b20;
    --team-raised: #26262d;
    --team-selected: #242335;
    --team-ink: #f5f5f8;
    --team-muted: #b9bbcb;
    --team-line: #41414d;
    --team-control: #777887;
    --team-accent: #7567ff;
    --team-accent-ink: #c1baff;
    --team-accent-fill: #302a50;
    --team-primary: #2c12d9;
    --team-primary-hover: #4933e4;
    --team-danger: #ff9ba5;
    --team-danger-fill: #cf1730;
    --team-notice: #f4bc73;

    min-height: 60vh;
    background: var(--team-ground);
    color: var(--team-ink);
    color-scheme: dark;
    font-family: var(--font-family-body, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.5;
}

html[data-theme='light'] .team-workspace {
    --team-ground: #f3f5f7;
    --team-surface: #ffffff;
    --team-raised: #f4f6f9;
    --team-selected: #f0f1fc;
    --team-ink: #16171d;
    --team-muted: #526184;
    --team-line: #d4dbe8;
    --team-control: #a5afc3;
    --team-accent: #2c12d9;
    --team-accent-ink: #2612c5;
    --team-accent-fill: #eeedff;
    --team-primary: #2c12d9;
    --team-primary-hover: #4029d9;
    --team-danger: #bd1230;
    --team-danger-fill: #d10c25;
    --team-notice: #8d510c;

    color-scheme: light;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme='dark']):not([data-theme='light']) .team-workspace {
        --team-ground: #f3f5f7;
        --team-surface: #ffffff;
        --team-raised: #f4f6f9;
        --team-selected: #f0f1fc;
        --team-ink: #16171d;
        --team-muted: #526184;
        --team-line: #d4dbe8;
        --team-control: #a5afc3;
        --team-accent: #2c12d9;
        --team-accent-ink: #2612c5;
        --team-accent-fill: #eeedff;
        --team-primary: #2c12d9;
        --team-primary-hover: #4029d9;
        --team-danger: #bd1230;
        --team-danger-fill: #d10c25;
        --team-notice: #8d510c;

        color-scheme: light;
    }
}

.team-workspace,
.team-workspace * {
    box-sizing: border-box;
    border-radius: 0;
}

.team-workspace [hidden] {
    display: none !important;
}

.team-workspace .team-shell {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding: 32px 24px 64px;
}

.team-workspace :is(h1, h2, h3, p, dl, dd) {
    margin: 0;
}

.team-workspace :is(h1, h2, h3) {
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-weight: 700;
}

.team-workspace h1 {
    overflow-wrap: anywhere;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.team-workspace h2 {
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-workspace h3 {
    font-size: 15px;
    line-height: 1.3;
}

.team-workspace :is(.team-muted, .team-help, .team-member-login, .team-count) {
    color: var(--team-muted);
}

.team-workspace .team-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 24px;
    background: var(--team-surface);
}

.team-workspace .team-logo {
    flex: none;
    width: 96px;
    height: 96px;
    border: 1px solid var(--team-line);
    background: var(--team-ground);
    object-fit: contain;
}

.team-workspace .team-identity-copy {
    flex: 1 1 240px;
    min-width: 0;
}

.team-workspace .team-context {
    margin-bottom: 8px;
    color: var(--team-muted);
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-workspace .team-roster-summary {
    display: flex;
    align-self: stretch;
    align-items: center;
    margin-left: auto;
}

.team-workspace .team-roster-summary > div {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 5px;
    min-width: 92px;
    padding: 8px 18px;
    border-left: 1px solid var(--team-line);
}

.team-workspace .team-roster-summary > div:first-child {
    border-left: 0;
}

.team-workspace .team-roster-summary dt {
    color: var(--team-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.team-workspace .team-roster-summary dd {
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.team-workspace .team-identity-actions {
    display: grid;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 194px;
    padding-left: 20px;
    border-left: 1px solid var(--team-line);
}

.team-workspace .team-identity-actions .team-button {
    width: 100%;
}

.team-workspace .team-viewer-roles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.team-workspace .team-viewer-roles > div {
    min-width: 0;
}

.team-workspace .team-viewer-roles :is(.team-tag, .team-status) {
    width: 100%;
    justify-content: center;
}

.team-workspace .team-access.team-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 16px;
    padding: 12px 24px 16px;
    border: 0;
    border-top: 1px solid var(--team-line);
    background: var(--team-surface);
}

.team-workspace .team-access-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.team-workspace .team-access h2 {
    font-size: 13px;
}

.team-workspace .team-access-role {
    padding: 5px 9px;
    background: var(--team-accent-fill);
    color: var(--team-accent-ink);
    font-size: 13px;
    font-weight: 700;
}

.team-workspace .team-access-copy .team-muted,
.team-workspace .team-access-copy .team-help {
    font-size: 13px;
}

.team-workspace .team-join {
    flex: 0 1 400px;
    min-width: 0;
}

.team-workspace .team-join-form {
    margin-top: 8px;
}

.team-workspace .team-grid {
    display: grid;
    gap: 16px;
}

.team-workspace .team-panel {
    min-width: 0;
    padding: 24px;
    background: var(--team-surface);
}

.team-workspace .team-section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.team-workspace .team-section-heading h2,
.team-workspace .team-competition-note h2 {
    padding-left: 12px;
    border-left: 4px solid var(--team-accent);
    font-size: 24px;
    letter-spacing: -0.02em;
}

.team-workspace .team-section-heading .team-muted {
    margin-top: 6px;
    padding-left: 16px;
    font-size: 13px;
}

.team-workspace .team-count {
    flex: none;
    padding-top: 4px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.team-workspace .team-roster-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--team-line);
    background: var(--team-line);
}

.team-workspace .team-member {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    grid-template-areas:
        'identity identity profile'
        'governance sport own';
    align-content: start;
    align-items: end;
    gap: 14px 12px;
    min-width: 0;
    padding: 17px 18px 18px;
    border-top: 3px solid transparent;
    background: var(--team-surface);
}

.team-workspace .team-member.is-selected {
    border-top-color: var(--team-accent);
    background: var(--team-selected);
}

.team-workspace .team-member-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--team-ink);
    text-align: left;
    text-decoration: none;
}

.team-workspace .team-member-select {
    grid-area: identity;
    width: 100%;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.team-workspace .team-member-identity img {
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--team-line);
    background: var(--team-raised);
    object-fit: cover;
}

.team-workspace .team-member-identity-copy {
    display: block;
    min-width: 0;
}

.team-workspace :is(.team-member-name, .team-member-login) {
    display: block;
    overflow-wrap: anywhere;
}

.team-workspace .team-member-name {
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.team-workspace .team-member-login {
    margin-top: 4px;
    font-size: 12px;
}

html:not([data-theme='light']) .team-workspace .mp-col {
    color: var(--mc-d, var(--team-ink)) !important;
}

html[data-theme='light'] .team-workspace .mp-col {
    color: var(--mc-l, var(--team-ink)) !important;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme='dark']):not([data-theme='light']) .team-workspace .mp-col {
        color: var(--mc-l, var(--team-ink)) !important;
    }
}

.team-workspace .team-member-profile {
    display: inline-flex;
    grid-area: profile;
    align-items: center;
    justify-content: end;
    min-height: 44px;
    color: var(--team-accent-ink);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
}

.team-workspace .team-member-governance {
    grid-area: governance;
    min-width: 0;
}

.team-workspace .team-member-sport {
    grid-area: sport;
    min-width: 0;
}

.team-workspace .team-field-label {
    display: block;
    margin-bottom: 5px;
    color: var(--team-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.team-workspace :is(.team-tag, .team-status) {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--team-line);
    background: var(--team-raised);
    color: var(--team-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.team-workspace .team-tag-captain {
    border-color: var(--team-accent);
    background: var(--team-accent-fill);
    color: var(--team-accent-ink);
}

.team-workspace .team-own-role {
    grid-area: own;
    white-space: nowrap;
}

.team-workspace .team-own-role-indicator::before {
    content: '+';
}

.team-workspace .team-own-role[aria-pressed='true'] .team-own-role-indicator::before {
    content: '−';
}

.team-workspace .team-player-panels {
    display: grid;
}

.team-workspace :is(.team-player-panel, .team-no-selection) {
    min-width: 0;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--team-line);
    background: var(--team-surface);
}

.team-workspace .team-no-selection {
    background: var(--team-raised);
}

.team-workspace .team-no-selection p {
    margin-top: 10px;
}

.team-workspace .team-player-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px 20px;
    margin-top: 20px;
}

.team-workspace .team-player-identity {
    flex: 0 1 210px;
    min-height: 64px;
}

.team-workspace .team-player-identity img {
    width: 64px;
    height: 64px;
}

.team-workspace .team-player-governance {
    align-self: stretch;
    min-width: 105px;
    padding-left: 20px;
    border-left: 1px solid var(--team-line);
}

.team-workspace .team-member-controls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.team-workspace .team-player-panel > .team-help {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--team-line);
}

.team-workspace form {
    margin: 0;
}

.team-workspace .team-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.team-workspace .team-sport-form {
    display: grid;
    grid-template-columns: minmax(132px, 170px) auto;
    align-items: end;
    gap: 5px 10px;
}

.team-workspace .team-sport-form label {
    grid-column: 1 / -1;
}

.team-workspace .team-form {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.team-workspace :is(.team-form, .team-inline-form) label:not(.team-checkbox) {
    color: var(--team-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.team-workspace input:not([type='hidden']):not([type='checkbox']),
.team-workspace select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--team-control);
    background: var(--team-surface);
    color: var(--team-ink);
    font: inherit;
}

.team-workspace input[type='file'] {
    max-width: 100%;
    padding: 5px;
    font-size: 12px;
}

.team-workspace input[type='file']::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid var(--team-control);
    background: var(--team-raised);
    color: var(--team-ink);
    cursor: pointer;
}

.team-workspace .team-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--team-control);
    background: var(--team-surface);
    color: var(--team-ink);
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.team-workspace .team-button-primary {
    border-color: var(--team-primary);
    background: var(--team-primary);
    color: #ffffff;
}

.team-workspace .team-button-danger {
    border-color: var(--team-danger);
    color: var(--team-danger);
}

.team-workspace :is(.team-button, .team-tab):hover {
    border-color: var(--team-accent);
    background: var(--team-accent-fill);
}

.team-workspace .team-button-primary:hover {
    border-color: var(--team-primary-hover);
    background: var(--team-primary-hover);
    color: #ffffff;
}

.team-workspace .team-button-danger:hover {
    border-color: var(--team-danger);
    background: color-mix(in srgb, var(--team-danger) 10%, var(--team-surface));
    color: var(--team-danger);
}

.team-workspace :is(.team-member-identity, .team-member-profile, .team-text-link):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.team-workspace :is(a, button, input, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--team-accent);
    outline-offset: 3px;
}

.team-workspace .team-button:disabled,
.team-workspace .team-button[aria-busy='true'] {
    opacity: 0.7;
    cursor: wait;
}

.team-workspace .team-help {
    font-size: 12px;
}

.team-workspace .team-tab-list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    border: 1px solid var(--team-line);
    background: var(--team-raised);
}

.team-workspace .team-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-right: 1px solid var(--team-line);
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--team-ink);
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.team-workspace .team-tab:last-child {
    border-right: 0;
}

.team-workspace .team-tab[aria-selected='true'] {
    border-bottom-color: var(--team-accent);
    background: var(--team-surface);
    color: var(--team-accent-ink);
}

.team-workspace .team-tab-indicator {
    flex: none;
    color: var(--team-accent-ink);
    font-size: 18px;
    line-height: 1;
}

.team-workspace .team-tab-indicator::before {
    content: '+';
}

.team-workspace .team-tab[aria-selected='true'] .team-tab-indicator::before {
    content: '';
}

.team-workspace .team-tab-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--team-line);
    border-top: 0;
    background: var(--team-surface);
}

.team-workspace .team-tab-panel > p {
    margin-top: 10px;
    font-size: 13px;
}

.team-workspace .team-add-panel {
    display: grid;
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 24px;
}

.team-workspace .team-add-panel > h3 {
    grid-column: 1 / -1;
}

.team-workspace .team-add-panel > p {
    margin: 0;
}

.team-workspace .team-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 5px 12px;
    margin: 0;
}

.team-workspace .team-add-form label {
    grid-column: 1 / -1;
}

.team-workspace .team-form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.team-workspace .team-settings-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(150px, 0.65fr);
    align-items: start;
    gap: 12px;
}

.team-workspace :is(.team-settings-form, .team-logo-form) > .team-button {
    margin-top: 23px;
}

.team-workspace .team-logo-form {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.65fr);
    align-items: start;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--team-line);
}

.team-workspace .team-captain-form {
    gap: 8px;
}

.team-workspace .team-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--team-muted);
    font-size: 13px;
}

.team-workspace .team-checkbox input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--team-accent);
}

.team-workspace .team-competition-note {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: var(--team-surface);
}

.team-workspace .team-competition-note p {
    max-width: 100ch;
    margin-top: 12px;
    padding-left: 16px;
    font-size: 13px;
}

.team-workspace .team-competition-note nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 16px;
}

.team-workspace .team-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 180px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--team-accent);
    color: var(--team-accent-ink);
    font-family: var(--font-family-chakra, 'Chakra Petch', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.team-workspace .team-notice,
.team-workspace .team-recovery {
    margin-bottom: 16px;
    padding: 18px 24px;
    border-left: 4px solid var(--team-accent);
    background: var(--team-surface);
}

.team-workspace .team-recovery {
    border-left-color: var(--team-notice);
}

.team-workspace .team-recovery h2 {
    color: var(--team-notice);
    font-size: 18px;
}

.team-workspace .team-recovery p {
    max-width: 100ch;
    margin-top: 8px;
    color: var(--team-muted);
    font-size: 13px;
}

.team-workspace .team-empty {
    padding: 24px 16px;
    border: 1px solid var(--team-line);
    color: var(--team-muted);
}

.team-workspace .team-danger-zone {
    padding: 0 24px 20px;
    border-top: 1px solid var(--team-line);
    background: var(--team-surface);
    color: var(--team-danger);
}

.team-workspace .team-danger-zone > summary {
    width: fit-content;
    min-height: 44px;
    padding-block: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.team-workspace .team-danger-zone p {
    max-width: 80ch;
    margin-bottom: 16px;
    color: var(--team-muted);
}

.team-workspace .team-confirm-dialog {
    position: fixed;
    inset: 0;
    width: min(440px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 28px;
    border: 1px solid var(--team-control);
    background: var(--team-surface);
    color: var(--team-ink);
    box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
}

.team-workspace .team-confirm-dialog:not([open]) {
    display: none;
}

.team-workspace .team-confirm-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}

.team-workspace .team-confirm-dialog h2 {
    font-family: var(--font-family-body, 'Inter', sans-serif);
    font-size: 24px;
    line-height: 1.2;
    text-transform: none;
}

.team-workspace .team-confirm-dialog p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.team-workspace .team-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.team-workspace .team-confirm-actions [data-team-confirm-accept] {
    border-color: var(--team-danger-fill);
    background: var(--team-danger-fill);
    color: #ffffff;
}

.team-workspace .team-confirm-actions [data-team-confirm-accept]:hover {
    border-color: var(--team-danger-fill);
    background: var(--team-danger-fill);
    filter: brightness(0.9);
}

@media (max-width: 1100px) {
    .team-workspace .team-identity {
        flex-wrap: wrap;
    }

    .team-workspace .team-identity-copy {
        flex-basis: calc(100% - 120px);
    }

    .team-workspace .team-roster-summary {
        margin-left: 120px;
    }

    .team-workspace .team-identity-actions {
        flex: 1 1 220px;
        max-width: 320px;
        margin-left: auto;
    }

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

@media (max-width: 760px) {
    .team-workspace .team-shell {
        padding: 24px 16px 48px;
    }

    .team-workspace .team-identity {
        gap: 16px;
        padding: 20px;
    }

    .team-workspace .team-logo {
        width: 72px;
        height: 72px;
    }

    .team-workspace .team-identity-copy {
        flex-basis: calc(100% - 88px);
    }

    .team-workspace .team-roster-summary {
        flex: 1 1 100%;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--team-line);
    }

    .team-workspace .team-roster-summary > div {
        flex: 1;
        min-width: 0;
        padding-inline: 8px;
    }

    .team-workspace .team-identity-actions {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--team-line);
        border-left: 0;
    }

    .team-workspace .team-access.team-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 18px;
    }

    .team-workspace .team-join {
        flex-basis: auto;
    }

    .team-workspace :is(.team-panel, .team-competition-note) {
        padding: 20px 16px;
    }

    .team-workspace .team-section-heading h2,
    .team-workspace .team-competition-note h2 {
        font-size: 22px;
    }

    .team-workspace .team-add-panel,
    .team-workspace .team-settings-form,
    .team-workspace .team-logo-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-workspace .team-add-panel > h3 {
        grid-column: auto;
    }

    .team-workspace :is(.team-settings-form, .team-logo-form) > .team-button {
        margin-top: 0;
    }

    .team-workspace .team-tab-list {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .team-workspace .team-tab {
        flex: 1 0 150px;
    }

    .team-workspace .team-competition-note nav {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .team-workspace .team-roster-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-workspace .team-player-detail {
        align-items: start;
    }

    .team-workspace .team-player-identity {
        flex-basis: 100%;
    }

    .team-workspace .team-player-governance {
        padding-left: 0;
        border-left: 0;
    }

    .team-workspace .team-member-controls {
        flex-basis: 100%;
    }

    .team-workspace .team-member-controls > form,
    .team-workspace .team-member-controls > form .team-button {
        width: 100%;
    }

    .team-workspace .team-sport-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .team-workspace .team-add-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-workspace .team-add-form label {
        grid-column: auto;
    }

    .team-workspace .team-notice,
    .team-workspace .team-recovery {
        padding: 16px;
    }
}

@media (max-width: 400px) {
    .team-workspace .team-member {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            'identity profile'
            'governance sport'
            'own own';
    }

    .team-workspace .team-own-role {
        width: 100%;
    }

    .team-workspace .team-confirm-dialog {
        padding: 20px;
    }
}
