.team-accounts-header {
    align-items: flex-end;
}

.team-security-mark {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(11, 11, 13, .2);
    border-radius: 8px;
    background: #f1eee9;
    color: #0b0b0d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.team-account-create,
.team-account-guide,
.team-account-list-panel {
    min-width: 0;
}

.team-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.team-account-form-grid label {
    display: grid;
    gap: 8px;
    color: #0b0b0d;
    font-size: 13px;
    font-weight: 800;
}

.team-account-email-field {
    grid-column: 1 / -1;
}

.team-account-form-grid .validation-message,
.team-account-create .validation-summary {
    color: #b6002f;
    font-size: 12px;
    font-weight: 700;
}

.team-account-create .validation-summary ul {
    margin: 0 0 18px;
    padding-left: 18px;
}

.team-account-security-note {
    margin: 22px 0 18px;
    padding: 16px 18px;
    border-left: 4px solid #ff004f;
    background: rgba(255, 0, 79, .06);
}

.team-account-security-note strong {
    display: block;
    margin-bottom: 4px;
}

.team-account-security-note p {
    margin: 0;
    color: #696560;
    line-height: 1.45;
}

.team-account-submit {
    width: 100%;
    justify-content: center;
}

.team-role-guide-list {
    display: grid;
    gap: 0;
    margin: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.team-role-guide-list article {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.team-role-guide-list strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 17px;
}

.team-role-guide-list p,
.team-account-guide small {
    margin: 0;
    color: rgba(255, 255, 255, .66);
    line-height: 1.5;
}

.team-account-list {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid rgba(11, 11, 13, .12);
}

.team-account-row {
    display: grid;
    grid-template-columns: 44px minmax(180px, 1.25fr) minmax(150px, .9fr) minmax(130px, .65fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 86px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 11, 13, .12);
}

.team-account-row .avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0b0b0d;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.team-account-identity,
.team-account-state {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.team-account-identity strong,
.team-account-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-account-identity span,
.team-account-state small {
    color: #77726d;
    font-size: 12px;
}

.team-account-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-account-state > span {
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .team-account-layout {
        grid-template-columns: 1fr;
    }

    .team-account-row {
        grid-template-columns: 44px minmax(180px, 1fr) auto;
    }

    .team-account-roles,
    .team-account-state {
        grid-column: 2 / 3;
    }

    .team-account-row > .button {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 700px) {
    .team-accounts-header {
        align-items: flex-start;
    }

    .team-account-form-grid {
        grid-template-columns: 1fr;
    }

    .team-account-email-field {
        grid-column: auto;
    }

    .team-account-row {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 18px 0;
    }

    .team-account-roles,
    .team-account-state,
    .team-account-row > .button {
        grid-column: 2;
        grid-row: auto;
        justify-self: stretch;
    }

    .team-account-row > .button {
        justify-content: center;
        margin-top: 4px;
    }
}
