/* Team role badges and assignment workspace, using derived appyJunto interface colors. */
.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}
.role-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.role-badge-captain {
    color: #075dd6;
    background: #e9f2ff;
}
.role-badge-admin {
    color: #50617d;
    background: #eef1f6;
}
.team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid #dce6f6;
    padding-bottom: 12px;
}
.team-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #506687;
    font-weight: 600;
}
.team-tabs a[aria-current="page"] {
    color: #075dd6;
    background: #e9f2ff;
}
.team-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 2px 8px;
    border-radius: 9px;
    background: #e9f2ff;
    color: #075dd6;
    font-size: 13px;
    font-weight: 700;
}
.captain-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin-bottom: 30px;
    border: 1px solid #dce7fb;
    border-radius: 24px;
    background: linear-gradient(115deg, #ffffff, #eaf3ff);
}
.captain-hero p {
    max-width: 660px;
    margin: 10px 0 20px;
    color: #536b8b;
    line-height: 1.6;
}
.captain-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}
.captain-perks > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #294b7c;
    font-size: 13px;
    font-weight: 600;
}
.captain-perks svg {
    width: 18px;
    height: 18px;
}
.captain-hero-mark .role-badge {
    width: 92px;
    height: 92px;
    background: white;
    box-shadow: 0 12px 35px #2b6ddc12;
    transform: rotate(-8deg);
}
.captain-hero-mark svg {
    width: 44px;
    height: 44px;
}
.captain-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
    align-items: start;
    gap: 28px;
}
.captain-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.captain-section-heading h2 {
    margin: 0;
    font-size: 20px;
}
.captain-card {
    padding: 22px;
    margin-bottom: 16px;
}
.captain-person {
    display: flex;
    gap: 14px;
    align-items: center;
}
.captain-person > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.captain-person h3 {
    margin: 0 0 4px;
    font-size: 17px;
}
.captain-person p {
    margin: 0 0 3px;
    color: #536b8b;
    font-size: 14px;
}
.captain-person small {
    color: #536b8b;
}
.captain-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2fa;
}
.captain-remove {
    color: #9d3544;
}
.captain-empty {
    text-align: center;
    padding: 42px 24px;
}
.captain-empty > .role-badge {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
}
.captain-empty h3 {
    font-size: 18px;
}
.captain-empty p,
.captain-assign > p,
.captain-assignment-note,
.captain-boundaries p {
    color: #536b8b;
    font-size: 14px;
    line-height: 1.6;
}
.captain-assign label {
    display: block;
    margin: 18px 0 8px;
}
.captain-assign select {
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}
.captain-assignment-note {
    margin-top: 16px;
}
.captain-assign .btn {
    width: 100%;
}
.captain-boundaries {
    padding: 22px 8px;
}
.captain-boundaries h3 {
    font-size: 16px;
}
.team-tabs a:focus-visible,
.captain-remove:focus-visible {
    outline: 3px solid #86b5fc;
    outline-offset: 3px;
}
@media (max-width: 1100px) {
    .captain-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 600px) {
    .captain-hero {
        padding: 24px;
    }
    .captain-hero-mark {
        display: none;
    }
    .captain-card {
        padding: 18px;
    }
    .captain-person h3 {
        font-size: 16px;
    }
}
