/* League dashboard treatment; retains the established roster and scoring behavior. */
.team-metrics{display:contents}
.team-card{border-color:#275273;background:#061629}
.team-card.expanded{border-color:#169de5;box-shadow:0 0 0 1px #169de538,0 20px 55px #0008}
.team-card.expanded .team-summary{background:linear-gradient(120deg,#082f55,#061c33 48%,#061427)}
.team-summary:focus-visible{outline:2px solid #e8bd55;outline-offset:-3px}
.power-number strong{display:inline-block;width:max-content;min-width:62px;padding:2px 7px;border:1px solid #178fe0;border-radius:7px;background:#071b31;box-shadow:inset 0 0 16px #0762af33}
.team-identity strong{font-weight:850}
.team-avatar{border-color:#4388bd;background:#0a2644}
.team-details{background:linear-gradient(180deg,#051d35,#071727 35%,#061522)}
.details-heading{align-items:start;flex-direction:column;gap:4px}
.details-heading h3{color:#fff}
.position-group{--room-accent:#319bdf;border-color:#245274;background:#06182a}
.position-group.qb{--room-accent:#df174d}
.position-group.rb{--room-accent:#13b878}
.position-group.wr{--room-accent:#159dfa}
.position-group.te{--room-accent:#e6aa19}
.position-group.picks{--room-accent:#a363ed}
.position-group-header{padding:8px 10px;border-left:4px solid var(--room-accent);background:linear-gradient(90deg,color-mix(in srgb,var(--room-accent) 16%,#071b2f),#06182a 67%)}
.position-group-header h4{color:#fff}
.room-rank-number{display:inline-grid;place-items:center;min-width:43px;min-height:29px;padding:3px 8px;border:1px solid var(--room-accent);border-radius:7px;background:color-mix(in srgb,var(--room-accent) 22%,#061629);box-shadow:inset 0 0 11px color-mix(in srgb,var(--room-accent) 18%,transparent);color:#fff;font-size:.85rem;font-weight:900;line-height:1}
.player-asset-row{grid-template-columns:minmax(0,1fr) auto auto;min-height:52px;padding:6px 10px;border-bottom-color:#3560834f}
.rank-badge{font-weight:900}
@media(max-width:640px){
  .power-rankings{gap:10px}
  .team-card{border-radius:12px}
  .team-summary,.team-card.without-rooms .team-summary,.team-card.without-score .team-summary,.team-card.without-grade .team-summary,.team-card.without-score.without-grade .team-summary,.team-card.without-rooms.without-score .team-summary,.team-card.without-rooms.without-grade .team-summary,.team-card.without-rooms.without-score.without-grade .team-summary{grid-template-columns:76px minmax(0,1fr) 22px;column-gap:10px;row-gap:12px;padding:13px 11px}
  .power-number{grid-column:1;grid-row:1;min-width:0;border-right:1px solid #3679aa66}
  .power-number small{font-size:.56rem}
  .power-number strong{min-width:57px;font-size:1.55rem}
  .team-identity{grid-column:2;grid-row:1;gap:8px}
  .team-avatar{width:48px;height:48px;flex-basis:48px}
  .summary-chevron{grid-column:3;grid-row:1;justify-self:center;font-size:1.4rem}
  .team-metrics{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;min-height:66px;padding:8px;border:1px solid #16466d;border-radius:10px;background:#061b31}
  .team-card.without-score .team-metrics,.team-card.without-grade .team-metrics{grid-template-columns:1fr}
  .team-card.without-score.without-grade .team-metrics{display:none}
  .score-stat,.grade-stat{grid-column:auto;grid-row:auto;align-self:center;align-content:center;margin:0;padding:0;border:0;text-align:center;justify-items:center}
  .score-stat{border-right:1px solid #46729966}
  .score-stat small,.grade-stat small{width:auto;text-align:center;font-size:.56rem}
  .score-stat strong{font-size:1.16rem}
  .grade-stat{grid-template-columns:max-content max-content;justify-content:center;justify-items:center;column-gap:5px}
  .grade-stat .chef-stars,.grade-stat strong{justify-self:center}
  .chef-stars{font-size:.85rem}
  .grade-stat strong{font-size:1.05rem}
  .mobile-room-grid{grid-column:1/-1;grid-row:3;gap:4px}
  .mobile-room-grid .room-tile{min-height:48px;padding:5px 2px;border-width:1px;box-shadow:inset 0 0 12px #ffffff12}
  .mobile-room-grid .room-tile small{font-size:.55rem}
  .mobile-room-grid .room-tile strong{font-size:.96rem}
  .team-details{padding:12px 10px;border-top:1px solid #16466d}
  .details-heading{margin-bottom:10px}
  .details-heading h3{font-size:.95rem}
  .position-groups{gap:8px}
  .position-group-header{padding:7px 8px}
  .position-group-header h4{font-size:.7rem}
  .room-badge{min-width:82px;min-height:30px;padding:4px 6px;font-size:.6rem}
  .room-badge strong{font-size:.8rem}
  .player-asset-row{grid-template-columns:minmax(0,1fr) auto auto;gap:5px;min-height:48px;padding:5px 7px}
  .asset-identity{grid-column:1;grid-row:1;gap:7px}
  .asset-identity strong{font-size:.76rem}
  .asset-identity small{font-size:.62rem}
  .asset-avatar{width:34px;height:34px;flex-basis:34px}
  .rank-badge{grid-column:2;grid-row:1}
  .position-badge{grid-column:3;grid-row:1}
  .rank-badge,.position-badge{min-width:44px;padding:4px 5px;font-size:.6rem}
  .draft-pick-row .position-badge{grid-row:1;grid-column:3}
}
@media(max-width:370px){.team-summary,.team-card.without-rooms .team-summary,.team-card.without-score .team-summary,.team-card.without-grade .team-summary,.team-card.without-score.without-grade .team-summary,.team-card.without-rooms.without-score .team-summary,.team-card.without-rooms.without-grade .team-summary,.team-card.without-rooms.without-score.without-grade .team-summary{grid-template-columns:67px minmax(0,1fr) 18px}.team-avatar{width:40px;height:40px;flex-basis:40px}.chef-stars{font-size:.72rem}}
@media(min-width:641px) and (max-width:900px){
  .mobile-room-grid{display:grid;grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .mobile-room-grid .room-tile{display:grid}
  .summary-chevron{grid-column:5;grid-row:1}
}

.analyzer-position-sort{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:14px 0;color:#c5d7e8}
.analyzer-position-sort>span{margin-right:5px;font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.analyzer-position-sort button{min-height:38px;padding:7px 14px;border:1px solid #356382;border-radius:8px;background:#0a2238;color:#e4edf6;font:850 .78rem Inter,system-ui,sans-serif;cursor:pointer}
.analyzer-position-sort button.active{border-color:#e8bd55;background:#17476b;color:#fff;box-shadow:0 0 0 1px #e8bd5540}
.analyzer-position-sort button:focus-visible{outline:2px solid #e8bd55;outline-offset:2px}
.room-tile[data-room-sort]{cursor:pointer}
.room-tile.sort-selected{outline:2px solid #e8bd55;outline-offset:-2px}
@media(max-width:640px){.analyzer-position-sort{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.analyzer-position-sort>span{grid-column:1/-1}.analyzer-position-sort button{min-width:0;padding:7px 2px;font-size:.72rem}}
