
/* Character-first Full Team Trainer: one chooser, available teams, then gameplay. */
.ps-team-refreshed .team-choose-setup{display:block}
.ps-team-refreshed .team-choose-setup>.team-section-head{margin-bottom:16px}
.ps-team-refreshed .team-character-first-row{display:flex;align-items:end;gap:13px;flex-wrap:wrap}
.ps-team-refreshed .team-character-first-label{display:flex;flex:1 1 300px;max-width:550px;flex-direction:column;gap:8px;font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#abb5c4}
.ps-team-refreshed #team-resonator-select{min-height:48px;font-size:14px;font-weight:650;background:#121821;border:1px solid #4b5262;border-radius:12px;padding:11px 14px;color:#f1f2f6;width:100%}
.ps-team-refreshed .team-resonator-identity{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;margin-bottom:2px}
.ps-team-refreshed .team-resonator-identity[hidden]{display:none}
.ps-team-refreshed .team-resonator-identity img{width:44px;height:44px;object-fit:cover;border-radius:9px;background:#262e3b;border:1px solid #52565f}
.ps-team-refreshed .team-resonator-identity strong{font-size:13px;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ps-team-refreshed .team-character-first-actions{display:flex;gap:8px;align-items:center;margin-left:auto;flex-wrap:wrap}
.ps-team-refreshed .team-team-feedback{font-size:11px;color:#aeb5c3;line-height:1.55;margin:16px 1px 8px}
.ps-team-refreshed .team-team-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,385px),1fr));gap:12px}
.ps-team-refreshed .team-team-results:empty{display:none}
.ps-team-refreshed .team-reco-card{background:#171b24;border:1px solid #393e4b;border-radius:13px;padding:15px;min-width:0;display:flex;flex-direction:column;gap:16px;justify-content:space-between}
.ps-team-refreshed .team-reco-card.selected{border-color:#e9cf88}
.ps-team-refreshed .team-reco-info{display:flex;align-items:center;gap:12px;min-width:0}
.ps-team-refreshed .team-reco-members{display:flex;align-items:center;flex:0 0 auto;padding-left:5px}
.ps-team-refreshed .team-reco-members img{width:41px;height:46px;object-fit:cover;border:2px solid #343a46;border-radius:9px;background:#252c39;margin-left:-5px}
.ps-team-refreshed .team-reco-members img:nth-child(2){z-index:1}
.ps-team-refreshed .team-reco-members img:nth-child(3){z-index:2}
.ps-team-refreshed .team-reco-titles{min-width:0;flex:1}
.ps-team-refreshed .team-reco-titles strong{display:block;font-size:13px;line-height:1.4;color:#f2f2f5;font-weight:800}
.ps-team-refreshed .team-reco-titles small{display:block;font-size:10px;color:#b1b7c5;margin-top:5px}
.ps-team-refreshed .team-reco-choose{display:flex;gap:9px;align-items:flex-end}
.ps-team-refreshed .team-reco-choose label{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;font-size:10px;font-weight:800;color:#aab3c2;text-transform:uppercase;letter-spacing:.05em}
.ps-team-refreshed .team-reco-choose select{width:100%;height:41px;font-size:12px;border-radius:9px;min-width:0}
.ps-team-refreshed .team-reco-choose .team-primary{min-width:92px;height:41px;min-height:41px;padding:8px 15px}
.ps-team-refreshed .team-no-rotations{padding:18px;display:flex;align-items:center;gap:13px;background:#171b24;border:1px dashed #494d55;border-radius:12px;grid-column:1/-1}
.ps-team-refreshed .team-no-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;color:#e9cf88;font-size:28px;background:#252a34;border-radius:10px}
.ps-team-refreshed .team-no-rotations strong{display:block;font-size:13px;color:#f1f2f6}
.ps-team-refreshed .team-no-rotations p{font-size:11px;color:#a9b1c1;line-height:1.6;margin-top:4px}
.ps-team-refreshed .team-legacy-controls[hidden],.ps-team-refreshed #team-play-panel[hidden],.ps-team-refreshed #team-guide-details[hidden]{display:none!important}
.ps-team-refreshed #team-guide-details{margin-top:12px}
.ps-team-refreshed #team-guide-details:not([open]){padding-bottom:0}
@media(max-width:700px){
 .ps-team-refreshed .team-character-first-actions{margin-left:0}
 .ps-team-refreshed .team-character-first-label{flex-basis:100%;max-width:100%}
 .ps-team-refreshed .team-resonator-identity{margin:0}
 .ps-team-refreshed .team-character-first-actions{margin-left:auto}
 .ps-team-refreshed .team-team-results{grid-template-columns:1fr}
}
@media(max-width:420px){
 .ps-team-refreshed .team-reco-card{padding:12px;gap:12px}
 .ps-team-refreshed .team-reco-info{gap:8px}
 .ps-team-refreshed .team-reco-members img{width:35px;height:42px}
 .ps-team-refreshed .team-reco-titles strong{font-size:12px}
 .ps-team-refreshed .team-reco-choose .team-primary{min-width:80px}
 .ps-team-refreshed .team-character-first-actions>*{flex:1}
}

.ps-team-refreshed .team-team-results{grid-template-columns:repeat(auto-fit,minmax(min(100%,395px),1fr))}
.ps-team-refreshed .team-section-label{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;font-size:12px;font-weight:850;color:#f1f2f6;margin:9px 1px -1px}
.ps-team-refreshed .team-section-label small{font-size:10px;font-weight:500;color:#aeb5c3}
.ps-team-refreshed .team-sourced-card{background:#1c2029;border-color:#414653}
.ps-team-refreshed .team-sourced-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.ps-team-refreshed .team-sourced-footer a{font-size:11px;color:#e9cf88;text-decoration:underline;text-underline-offset:3px}
.ps-team-refreshed .team-unverified{color:#a5b0be;flex:1;min-width:120px;font-size:10px;line-height:1.5}
.ps-team-refreshed .team-sourced-footer button{min-height:36px;padding:8px 13px}
.ps-team-refreshed .team-personal-card{border-style:dashed;border-color:#68646a}
@media(max-width:580px){.ps-team-refreshed .team-section-label{font-size:11px;flex-wrap:wrap;gap:3px 10px}.ps-team-refreshed .team-unverified{min-width:80px}}

/* Direct play and editable-draft actions; destructive delete stands out clearly. */
.ps-team-refreshed #team-delete-my.team-danger{color:#ffc0c4;background:#47242b;border:1px solid #b85660;font-weight:850}
.ps-team-refreshed #team-delete-my.team-danger:hover{color:#fff1f2;background:#b43d4d;border-color:#e57a81}
.ps-team-refreshed #team-delete-my.team-danger:focus-visible{outline:2px solid #ff8590;outline-offset:2px}
.ps-team-refreshed .team-reco-choose>.team-quiet{white-space:nowrap;min-height:41px}
.ps-team-refreshed .team-sourced-footer>.team-primary{min-height:36px;font-size:11px;padding:8px 14px}
.ps-team-refreshed .team-sourced-footer>.team-quiet{white-space:nowrap}
.ps-team-refreshed .team-setup-foot>#team-load-preset{min-width:115px}
@media(max-width:540px){
 .ps-team-refreshed .team-reco-choose{flex-wrap:wrap}
 .ps-team-refreshed .team-reco-choose>label{flex:1 0 100%}
 .ps-team-refreshed .team-reco-choose>button{flex:1}
 .ps-team-refreshed .team-sourced-footer{justify-content:flex-start}
 .ps-team-refreshed .team-sourced-footer>a{margin-right:auto}
 .ps-team-refreshed .team-sourced-footer>button{flex:1}
}

/* Source actions such as bare Outro do not need the action name repeated as a note. */
.ps-team-refreshed .team-track .track-body small:empty{display:none}

/* Searchable portrait picker. Render only on demand. */
.ps-team-refreshed .team-choose-setup{overflow:visible}
.ps-team-refreshed .team-resonator-picker{position:relative;min-width:0;z-index:4}
.ps-team-refreshed .team-resonator-picker #team-resonator-select[hidden],.ps-team-refreshed .team-picker-menu[hidden],.ps-team-refreshed .team-picker-empty[hidden]{display:none!important}
.ps-team-refreshed .team-picker-field{display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 13px 5px 10px;border:1px solid #4b5262;background:#121821;border-radius:12px;min-width:0}
.ps-team-refreshed .team-picker-field:focus-within{border-color:#e9cf88;box-shadow:0 0 0 2px #e9cf8824}
.ps-team-refreshed #team-resonator-search{width:100%;min-width:0;flex:1;background:transparent;border:0;box-shadow:none;outline:none;padding:7px 3px;min-height:36px;color:#f1f2f6;font:inherit;font-size:14px;font-weight:650;letter-spacing:0;text-transform:none}
.ps-team-refreshed #team-resonator-search::placeholder{color:#aeb5c3;font-weight:500}
.ps-team-refreshed .team-picker-field .team-resonator-identity{margin:0;flex:0 0 34px}
.ps-team-refreshed .team-picker-field .team-resonator-identity img{width:34px;height:34px;border-radius:7px}
.ps-team-refreshed .team-picker-field #team-resonator-name{display:none}
.ps-team-refreshed .team-picker-search-icon{flex:0 0 19px;color:#aeb5c3}
.ps-team-refreshed .team-picker-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;padding:7px;background:#1b1f28;border:1px solid #4b5262;border-radius:12px;box-shadow:0 14px 32px #0007;z-index:30}
.ps-team-refreshed .team-picker-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:min(300px,48vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ps-team-refreshed .team-picker-option{display:flex;align-items:center;gap:9px;min-width:0;width:100%;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#f1f2f6;text-align:left;text-transform:none;letter-spacing:0;font-size:12px;font-weight:650;cursor:pointer}
.ps-team-refreshed .team-picker-option img{flex:0 0 38px;width:38px;height:38px;object-fit:cover;background:#29303b;border:1px solid #4b5262;border-radius:7px}
.ps-team-refreshed .team-picker-option span{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.ps-team-refreshed .team-picker-option:hover,.ps-team-refreshed .team-picker-option[data-active="true"]{background:#303745;border-color:#717b8d}
.ps-team-refreshed .team-picker-option[aria-selected="true"]{border-color:#e9cf88;color:#e9cf88}
.ps-team-refreshed .team-picker-empty{padding:13px 9px;margin:0;color:#aeb5c3;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none}
@media(max-width:440px){.ps-team-refreshed .team-picker-results{grid-template-columns:1fr}.ps-team-refreshed .team-picker-option{min-height:48px}}
