.team-builder-shell{max-width:1180px;margin:0 auto;min-width:0}
.team-builder-modes{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.team-builder-modes .button{min-height:44px;min-width:104px}
.three-team-builder .three-intro{margin-bottom:16px}
.three-team-builder .three-selection-toolbar{margin-top:16px;gap:14px;align-items:flex-end}
.three-selection-toolbar>.button{flex:none;margin-bottom:2px;white-space:nowrap}
.three-mercenaries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.three-mercenary-row{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #e4d7e2;border-radius:9px;background:#fff8fc;padding:12px}
.three-mercenary-row .team-mercenary-name{flex:1}.three-mercenary-row .text-button{flex:none;white-space:nowrap}
.three-team-builder .three-role-row{align-items:start}.three-role-row .team-role-identity{gap:12px}.three-role-row .team-role-controls{min-width:0}
.three-team-builder .three-participation-field{width:100%;min-width:0}.three-team-builder .three-participation-field legend{margin-bottom:6px}
.three-participation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}
.three-participation-option{min-height:36px;min-width:0;border:1px solid #e0e4ec;border-radius:6px;background:#fff;color:#64738a;padding:6px 3px;cursor:pointer;font-size:11px!important;line-height:1.5;white-space:nowrap}
.three-participation-option[aria-pressed=true]{border-color:#c66a94;background:#fcecf4;color:#973663;font-weight:650}
.three-participation-limits{margin:0 0 14px;padding:0;color:#6c7a8f}.three-participation-limits>summary{display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;min-height:36px;font-size:12px;cursor:pointer;list-style:none}.three-participation-limits>summary::-webkit-details-marker{display:none}.three-participation-limits>summary::after{content:'⌄';font-size:12px}.three-participation-limits[open]>summary::after{transform:rotate(180deg)}.three-participation-limits>summary>span{font-size:11px;color:#8a95a5}
.three-limits-detail{display:flex;flex-direction:column;gap:9px;padding:8px 0 8px 12px;margin:2px 0 5px;border-left:2px solid #e5e9f0}.three-limits-detail>div{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:11px;line-height:1.7}.three-limits-detail strong{font-size:11px;font-weight:600;color:#68778e}.three-limits-detail span{font-variant-numeric:tabular-nums}.three-required-limit-note{font-size:11px;line-height:1.6;color:#77869a}
.three-role-row .team-player-scores{margin-top:14px}.three-role-row .team-score-grid{gap:8px}.three-role-row .team-score-grid>label{flex:1 1 70px;flex-direction:column;align-items:flex-start;gap:5px}.three-role-row .team-score-grid input{width:100%}
.three-team-builder .three-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.three-result-team>h3{padding:14px 12px}.three-result-team-0>h3{background:#edf3ff;color:#3266d7}.three-result-team-1>h3{background:#fff0f4;color:#ba4564}.three-result-team-2>h3{background:#edf8f2;color:#397158}
.three-team-builder .three-result-team .team-result-player{grid-template-columns:40px minmax(0,1fr) auto;gap:7px;padding:14px 10px;min-height:95px}
.three-result-team .team-result-position{flex-direction:column;gap:3px;font-size:11px}.three-result-team .team-result-person{gap:7px}.three-result-team .team-result-identity>strong{font-size:13px}.three-result-team .team-result-identity>small{font-size:11px}
.three-repeat-badge{font-size:10px;line-height:1.5;color:#718096;background:#f0f2f5;padding:2px 5px;border-radius:4px;white-space:nowrap;align-self:start;font-weight:400}
.three-primary-summary{margin:10px 0 26px}.three-team-builder .three-primary-summary>h3{font-size:18px;font-weight:700}.three-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.three-primary-card{min-width:0;padding:16px 17px;border:1px solid #dce3ee;border-top:3px solid #dce3ee;border-radius:10px;background:#fff}.three-primary-card h4{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 15px;padding-bottom:11px;border-bottom:1px solid #edf0f5;font-size:16px;font-weight:700}.three-primary-card h4>span{font-size:12px;font-weight:500;color:#6c7a8e}
.three-primary-card-A{border-top-color:#6694df}.three-primary-card-B{border-top-color:#d4829c}.three-primary-card-C{border-top-color:#70a48c}.three-primary-card-A h4{color:#3266d7}.three-primary-card-B h4{color:#ba4564}.three-primary-card-C h4{color:#397158}
.three-primary-names{display:flex;flex-direction:column;gap:12px}.three-primary-person{display:flex;align-items:center;gap:10px;width:100%;min-width:0;font-size:14px;font-weight:600;line-height:1.6}.three-primary-person>span:last-child{min-width:0;overflow-wrap:anywhere}
.three-match-tabs{display:flex;gap:8px;margin-bottom:16px}.three-match-tabs .button{flex:1;min-width:0;font-size:13px;padding:10px 8px;line-height:1.5}
.three-match-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.three-match-heading>span{font-size:12px;font-weight:600;color:#65758b}.three-result-team .three-support-origin{color:#78869a}
.three-assignments{margin-top:18px;padding:0 16px;border:1px solid #e0e5ef;border-radius:9px;background:#fff}.three-assignments>summary{display:flex;align-items:center;gap:10px;min-height:52px;cursor:pointer;font-size:13px;font-weight:600;list-style:none}.three-assignments>summary::-webkit-details-marker{display:none}.three-assignments>summary::after{content:'⌄';margin-left:auto;color:#7a8595}.three-assignments[open]>summary::after{transform:rotate(180deg)}.three-assignments>summary>span{font-size:11px;color:#788598;font-weight:400}
.three-assignment-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,80px);align-items:center;gap:12px;padding:12px 0;border-top:1px solid #edf0f5}.three-assignment-name{display:flex;gap:8px;align-items:center;min-width:0;flex-wrap:wrap}.three-assignment-name strong{font-size:12px;min-width:0;overflow-wrap:anywhere}.three-required-badge{padding:2px 5px;border-radius:4px;background:#f7e8f0;color:#9d426d;font-size:10px;white-space:nowrap}.three-assignment-stat{display:flex;flex-direction:column;gap:3px;font-size:12px}.three-assignment-stat small{font-size:10px;color:#788598}
@media(max-width:1000px){.three-mercenaries{grid-template-columns:repeat(2,minmax(0,1fr))}.three-team-builder .three-result-grid{grid-template-columns:1fr}.three-team-builder .three-result-team .team-result-player{grid-template-columns:66px minmax(0,1fr) auto;padding:14px 16px;min-height:85px}.three-result-team .team-result-position{flex-direction:row}.three-result-team .team-result-identity>strong{font-size:14px}}
@media(max-width:700px){.three-team-builder .three-participation-limits{padding:0}.three-team-builder .three-participation-option{font-size:12px!important;padding:6px 3px}.three-limits-detail>div{flex-direction:column;gap:2px}}
@media(max-width:700px){.team-builder-modes{margin-bottom:16px}.team-builder-modes .button{flex:1}.three-team-builder .three-steps{display:grid}.three-team-builder .three-selection-toolbar{align-items:stretch}.three-selection-toolbar>.button{align-self:flex-start}.three-mercenaries{grid-template-columns:1fr}.three-participation-option{min-height:42px}.three-team-builder .three-role-row .team-score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.three-team-builder .three-result-team .team-result-player{grid-template-columns:52px minmax(0,1fr) auto;padding:14px 10px}.three-result-team .team-result-position{flex-direction:column}.three-role-row .team-role-identity{gap:10px}.three-primary-grid{grid-template-columns:1fr;gap:8px}.three-primary-card{padding:12px}.three-primary-card h4{margin-bottom:7px}.three-match-tabs{gap:5px}.three-match-tabs .button{font-size:12px;padding:9px 5px}.three-assignments{padding:0 12px}.three-assignment-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.three-assignment-name{grid-column:1/-1}.three-assignment-stat{flex-direction:row;align-items:center;gap:6px}}
