/* Standalone management view; PK styles and dimensions stay untouched. */
body[data-mode="team"] .scoreboard,
body[data-mode="team"] .quick-restart-button,
body[data-mode="team"] .home-button,
body[data-mode="team"] .scene { display: none; }
.team-screen { padding: clamp(14px, 3vw, 28px); border: 1px solid #bda15a66; border-radius: 16px; background: linear-gradient(140deg, #142b43f5, #09192df5); }
.team-screen[hidden] { display: none; }
.team-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.team-kicker { color: #d6ba78; font-size: 10px; letter-spacing: 2px; margin: 0 0 8px; }
.team-heading h2 { margin: 0; font-size: 30px; color: #ffe2a0; }
.team-screen button { font-family: inherit; cursor: pointer; }
.team-home, .team-assign { border: 1px solid #c5a65f99; border-radius: 8px; color: #ffe3a0; background: #152d46; padding: 11px 14px; }
.team-save-status { color: #a9bdcb; font-size: 12px; line-height: 1.7; }
.team-tabs { display: flex; gap: 8px; margin: 18px 0; }
.team-tabs button { flex: 1; padding: 12px 8px; border: 1px solid #70849a66; border-radius: 8px; background: #0d2034; color: #bdcbd8; font-weight: bold; }
.team-tabs [aria-selected="true"] { color: #ffe29a; border-color: #d6ba78; box-shadow: 0 0 12px #c8a55122; }
.team-layout { display: grid; grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.team-screen h3 { font-size: 17px; margin: 0 0 12px; }
.team-lineup-help, .team-detail-meta, .team-action-status { color: #adc0ce; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.team-slots { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.team-slot { display: flex; align-items: stretch; gap: 4px; }
.team-slot-select { flex: 1; min-width: 0; padding: 13px 10px; border: 1px solid #7890a344; border-radius: 7px; background: #10273d; color: #e6eef4; text-align: left; font-size: 12px; line-height: 1.6; }
.team-slot-select[aria-pressed="true"] { color: #ffe2a0; border-color: #cfaf69; background: #263b45; }
.team-order-button { min-width: 28px; border: 1px solid #7890a344; border-radius: 5px; background: #142b41; color: #d7c18c; }
.team-detail { padding: 18px; border: 1px solid #bda15a44; border-radius: 12px; background: #071a2ba6; margin-bottom: 22px; }
.team-detail h3 { color: #ffe4aa; font-size: 23px; margin-bottom: 6px; }
.team-attributes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.team-attributes > div { padding: 8px; border-radius: 5px; background: #20384c; }
.team-attributes dt { color: #a7bdcd; font-size: 10px; }
.team-attributes dd { margin: 5px 0 0; color: #f5dfa3; font-size: 20px; font-variant-numeric: tabular-nums; }
.team-assign { width: 100%; background: #d7b86f; color: #142439; font-weight: bold; }
.team-action-status { margin: 10px 0 0; min-height: 1.8em; }
.jersey-editor { margin: 16px 0; padding-top: 12px; border-top: 1px solid #c5a65f44; }
.jersey-editor label { display: block; margin-bottom: 8px; color: #c9d6e0; font-size: 12px; }
.jersey-editor > div { display: flex; gap: 8px; }
.jersey-editor input { min-width: 0; width: 80px; padding: 9px; border: 1px solid #8b98a26b; border-radius: 6px; background: #10273d; color: #fff; font: inherit; }
.jersey-save { border: 1px solid #c5a65f99; border-radius: 6px; background: #213a4b; color: #ffe3a0; padding: 9px 14px; }
#jersey-edit-status { color: #efcf8a; font-size: 12px; line-height: 1.7; min-height: 1.7em; }
.team-card-count { color: #bba579; font-size: 12px; font-weight: normal; }
.team-rating-notice { color: #a5b9c9; font-size: 11px; line-height: 1.7; }
.collection-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.collection-filters label { display: grid; gap: 6px; color: #b8c9d7; font-size: 11px; }
.collection-filters select { width: 100%; min-width: 0; padding: 8px 4px; border: 1px solid #70849a66; border-radius: 6px; background: #10273d; color: #f0e5ca; font: inherit; }
.collection-filters select:focus-visible { outline: 2px solid #ffe2a0; outline-offset: 2px; }
.collection-empty { grid-column: 1 / -1; color: #b8c9d7; font-size: 13px; padding: 16px 0; }
.team-collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.player-card { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 12px 7px; color: #e3ebf0; border: 1px solid #8b98a26b; border-radius: 10px; background: linear-gradient(150deg, #405365, #172a3e 65%); text-align: center; transition: border-color 150ms, box-shadow 150ms; }
.player-card[aria-pressed="true"] { border-color: #ffe2a0; box-shadow: 0 0 0 1px #ffe2a077; }
.player-card[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.player-card[data-rarity="rare"] { background: linear-gradient(150deg, #315f84, #14283c 65%); }
.player-card[data-rarity="epic"] { background: linear-gradient(150deg, #6a498a, #24213e 65%); }
.player-card[data-rarity="legendary"] { background: linear-gradient(150deg, #8b6c2f, #302a23 65%); }
.player-card-ovr { justify-self: start; color: #efdfb9; font-size: 12px; font-weight: bold; }
.player-card-position { position: absolute; right: 7px; top: 13px; color: #aec3d3; font-size: 10px; }
.player-card-avatar { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #b8cbd6; background: #66829544; font-size: 26px; font-weight: bold; }
.player-card strong { font-size: 13px; overflow-wrap: anywhere; }
.player-card small { font-size: 8px; color: #9eb4c5; }
.player-card-active { padding: 3px 6px; border-radius: 4px; background: #2a4c47; color: #b4dfc5; font-size: 9px; }
.team-screen button:disabled { opacity: 0.4; cursor: default; }
.team-screen button:focus-visible { outline: 2px solid #ffe2a0; outline-offset: 3px; }
@media (max-width: 720px) {
  .team-layout { grid-template-columns: minmax(0, 1fr); }
  .team-collection { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) { .team-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .player-card { transition: none; } }
