.fa-team-identity {
    max-width: 1180px;
    margin: 22px auto 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.fa-team-identity-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
}

.fa-team-identity-heading {
    margin-bottom: 14px;
    color: #111111;
    font-family: Rajdhani, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.fa-team-identity-name-field {
    margin-bottom: 14px;
}

.fa-team-identity-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.fa-team-identity-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #222222;
    font-family: Rajdhani, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.fa-team-identity-field input[type="text"],
.fa-team-identity-field select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-family: Rajdhani, sans-serif;
    font-size: 17px;
    letter-spacing: 0;
}

.fa-team-identity-field input[type="color"] {
    width: 100%;
    min-height: 42px;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.fa-team-identity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

#save-team-identity-btn {
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-family: Rajdhani, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

#save-team-identity-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

#team-identity-status {
    min-height: 20px;
    color: #2e7d32;
    font-family: Rajdhani, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

#team-identity-status.is-error {
    color: #b71c1c;
}

.fa-team-identity-preview {
    display: grid;
    justify-items: center;
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f6f7f9;
}

.fa-team-identity-preview-name {
    width: 100%;
    min-height: 28px;
    margin-bottom: 8px;
    overflow: hidden;
    color: #111111;
    font-family: Rajdhani, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fa-team-kit {
    width: min(100%, 330px);
    height: auto;
}

.fa-kit-ground-shadow {
    fill: rgba(9, 22, 33, 0.16);
}

.fa-kit-shirt,
.fa-kit-cap,
.fa-kit-pants {
    transform-box: fill-box;
    transform-origin: center;
}

.fa-kit-cap {
    transform: translateY(1px) rotate(-2deg);
}

.fa-kit-pants {
    transform: translateY(2px) rotate(1deg);
}

.fa-shirt-main {
    fill: var(--fa-shirt-color);
}

.fa-shirt-side-left,
.fa-shirt-side-right,
.fa-shirt-collar,
.fa-shirt-placket {
    fill: var(--fa-shirt-color);
    opacity: 0.82;
}

.fa-shirt-sleeve-left,
.fa-shirt-sleeve-right {
    fill: var(--fa-shirt-color);
    opacity: 0.92;
}

.fa-shirt-button {
    fill: #0c1218;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
}

.fa-shirt-highlight,
.fa-pants-highlight {
    fill: url(#faKitLight);
    pointer-events: none;
}

.fa-shirt-hem,
.fa-cap-stitch {
    fill: none;
    stroke: rgba(255, 255, 255, 0.32);
    stroke-dasharray: 2 3;
    stroke-linecap: round;
    stroke-width: 2;
}

.fa-cap-main,
.fa-cap-brim {
    fill: var(--fa-cap-color);
}

.fa-cap-back {
    fill: #b9bec2;
}

.fa-cap-panel-line,
.fa-pants-center {
    fill: none;
    stroke: rgba(0, 0, 0, 0.28);
    stroke-linecap: round;
    stroke-width: 2;
}

.fa-cap-mesh {
    fill: none;
    opacity: 0.65;
    stroke: rgba(20, 24, 28, 0.58);
    stroke-linecap: round;
    stroke-width: 1.4;
}

.fa-cap-patch {
    fill: #d7d2bf;
    stroke: rgba(0, 0, 0, 0.32);
    stroke-width: 2;
}

.fa-cap-patch-line,
.fa-cap-patch-crown {
    fill: none;
    stroke: rgba(22, 30, 36, 0.72);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.fa-pants-main {
    fill: var(--fa-pants-color);
}

.fa-pants-waist {
    fill: var(--fa-pants-color);
    opacity: 0.82;
}

.fa-shirt-facets,
.fa-cap-facets,
.fa-pants-facets {
    display: none;
}

.fa-shirt-facets path,
.fa-cap-facets path,
.fa-pants-facets path {
    fill: #ffffff;
    opacity: 0.18;
}

.fa-shirt-facets path:nth-child(2n),
.fa-cap-facets path:nth-child(2n),
.fa-pants-facets path:nth-child(2n) {
    fill: #020a12;
    opacity: 0.18;
}

.fa-shirt-facets path:nth-child(3n),
.fa-cap-facets path:nth-child(3n),
.fa-pants-facets path:nth-child(3n) {
    fill: #ffffff;
    opacity: 0.28;
}

.fa-cap-stripes,
.fa-cap-diagonal,
.fa-shirt-stripes,
.fa-shirt-diagonal,
.fa-pants-stripes,
.fa-pants-diagonal {
    display: none;
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-linecap: round;
    stroke-width: 6;
    mix-blend-mode: screen;
    opacity: 0.72;
}

.fa-cap-stripes,
.fa-cap-diagonal {
    stroke-width: 4;
}

.fa-team-identity-preview[data-cap-pattern="facets"] .fa-cap-facets,
.fa-team-identity-preview[data-shirt-pattern="facets"] .fa-shirt-facets,
.fa-team-identity-preview[data-pants-pattern="facets"] .fa-pants-facets,
.fa-team-identity-preview[data-cap-pattern="stripes"] .fa-cap-stripes,
.fa-team-identity-preview[data-cap-pattern="diagonal"] .fa-cap-diagonal,
.fa-team-identity-preview[data-shirt-pattern="stripes"] .fa-shirt-stripes,
.fa-team-identity-preview[data-shirt-pattern="diagonal"] .fa-shirt-diagonal,
.fa-team-identity-preview[data-pants-pattern="stripes"] .fa-pants-stripes,
.fa-team-identity-preview[data-pants-pattern="diagonal"] .fa-pants-diagonal {
    display: block;
}

@media (max-width: 760px) {
    .fa-team-identity-content {
        grid-template-columns: 1fr;
    }

    .fa-team-identity-preview {
        order: -1;
    }
}

@media (max-width: 520px) {
    .fa-team-identity {
        padding: 14px;
    }

    .fa-team-identity-heading {
        font-size: 24px;
    }

    .fa-team-identity-row {
        grid-template-columns: 1fr;
    }
}
