body[data-page="player-stats"] .public-stats-view-nav[role="tablist"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  body[data-page="player-stats"] .public-stats-view-nav[role="tablist"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.troops-general { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.troops-general h3, .troops-section-heading h3 { margin: 0 0 8px; }
.troops-general p, .troops-section-heading p { margin-bottom: 0; }
.troops-general > div:first-child { max-width: 560px; }
.troops-drone { display: flex; align-items: center; gap: 14px; padding-left: 24px; border-left: 1px solid var(--panel-border); flex-shrink: 0; }
.troops-drone small, .troops-drone strong { display: block; }
.troops-drone small { color: var(--muted); font-size: .75rem; }
.troops-drone strong { font-size: 1.6rem; margin: 4px 0; }
.troops-drone-icon { font-size: 2.2rem; color: var(--primary); }
.troops-section-heading { margin: 8px 0 0; }
.troops-section-heading h3 { font-size: 1rem; }
.troops-section-heading h3 span { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: .8rem; }
.troops-section-heading p { font-size: .8rem; }
.troops-list { display: grid; gap: 12px; min-width: 0; }
.troops-card { padding: 0; min-width: 0; overflow: hidden; }
.troops-card > summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.troops-card > summary::-webkit-details-marker { display: none; }
.troops-card > summary:hover { background: var(--panel-soft); }
.troops-card > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.troops-card[open] > summary { border-bottom: 1px solid var(--panel-border); }
.troops-number { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: var(--primary-soft); border: 1px solid var(--panel-border-strong); color: var(--primary); font-size: 1.15rem; font-weight: 800; }
.troops-summary-copy { flex: 1; min-width: 0; }
.troops-summary-copy strong { display: block; font-size: 1rem; }
.troops-summary-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.troops-summary-copy .troops-earlier { color: var(--primary); }
.troops-power { text-align: right; font-variant-numeric: tabular-nums; }
.troops-power small { display: block; color: var(--muted); font-size: .72rem; }
.troops-power strong { display: block; font-size: 1.25rem; color: var(--primary); margin-top: 3px; }
.troops-chevron { margin-left: 8px; color: var(--muted); transition: transform .15s; }
.troops-card[open] .troops-chevron { transform: rotate(180deg); }
.troops-card-body { padding: 18px 22px 12px; }
.troops-lineup-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.troops-lineup-heading h4 { margin: 0; font-size: .86rem; }
.troops-lineup-heading span { font-size: .75rem; }
.troops-table { width: 100%; min-width: 550px; }
.troops-table th:first-child { width: 100px; }
.troops-label-mobile { display: none; }
.troops-slot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--panel-soft); border: 1px solid var(--panel-border); color: var(--muted-strong); font-size: .78rem; }
.troops-stars { white-space: nowrap; color: var(--primary); letter-spacing: 2px; font-size: .88rem; }
.troops-stars-empty { color: var(--muted); }
.troops-star { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }
.troops-star-base { fill: var(--muted); opacity: .35; }
.troops-star-fill { fill: var(--primary); }
.troops-weapon { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 700; }
.troops-card-footnote { margin: 12px 0 0; color: var(--muted); font-size: .72rem; }
.troops-unseen { padding: 18px 22px; display: flex; align-items: center; gap: 16px; }
.troops-unseen .troops-number { background: var(--panel-soft); color: var(--muted); }
.troops-unseen p { margin: 4px 0 0; font-size: .75rem; }
.troops-unseen > span:last-child { margin-left: auto; font-size: .75rem; }
.troops-preview-note { padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--panel-border-strong); border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: .8rem; line-height: 1.6; }
@media (max-width: 760px) {
  .troops-general { flex-direction: column; align-items: stretch; padding: 18px; gap: 18px; }
  .troops-drone { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--panel-border); }
  .troops-card > summary { gap: 10px; padding: 14px; flex-wrap: wrap; }
  .troops-number { width: 34px; height: 34px; }
  .troops-summary-copy small { max-width: 180px; line-height: 1.5; }
  .troops-power strong { font-size: 1.05rem; }
  .troops-chevron { margin-left: 0; }
  .troops-card-body { padding: 14px 12px; }
  .troops-table { min-width: 0; table-layout: fixed; }
  .troops-table th, .troops-table td { padding: 10px 3px; }
  .troops-table th { font-size: .58rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .troops-table th:first-child { width: 10%; }
  .troops-table th:nth-child(2) { width: 27%; }
  .troops-table th:nth-child(3) { width: 12%; }
  .troops-table th:nth-child(4) { width: 24%; }
  .troops-table th:nth-child(5) { width: 27%; }
  .troops-table td { font-size: .72rem; overflow-wrap: anywhere; }
  .troops-slot { width: 23px; height: 25px; font-size: .7rem; }
  .troops-stars { font-size: .7rem; letter-spacing: 0; }
  .troops-weapon { padding: 4px 5px; font-size: .7rem; white-space: nowrap; }
  .troops-label-full { display: none; }
  .troops-label-mobile { display: inline; }
  .troops-unseen { padding: 14px; gap: 10px; }
  .troops-unseen > span:last-child { display: none; }
}
