.team-tracker-import {
  min-width: 0;
  margin: 18px 0;
  border: 1px solid var(--line, #ded4e8);
  border-radius: 12px;
  background: #fcfaff;
}
.team-tracker-import > summary {
  min-height: 44px;
  padding: 14px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.team-tracker-body { min-width: 0; padding: 0 15px 16px; }
.team-tracker-body > p,
.team-tracker-body .team-tracker-note { font-size: 12px; line-height: 1.8; }
.team-tracker-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}
.team-tracker-code-label { display: block; margin-top: 15px; }
.team-tracker-import .team-tracker-code {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 120px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line, #ded4e8);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #352746);
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
  overflow-wrap: anywhere;
}
.team-tracker-note { color: var(--muted, #716777); }
.team-tracker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.team-tracker-import button { min-height: 44px; padding: 10px 15px; font-size: 13px; white-space: normal; }
.team-tracker-status { min-height: 1.8em; margin: 8px 0; }
.team-tracker-status[data-state="error"] { color: #a03239; font-weight: 600; }
.team-tracker-status[data-state="success"] { color: #356447; font-weight: 600; }
.team-tracker-preview { min-width: 0; margin: 14px 0 18px; padding: 15px; border: 1px solid var(--line, #ded4e8); border-radius: 10px; background: #fff; }
.team-tracker-preview h4 { margin: 0 0 12px; font-size: 14px; }
.team-tracker-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; line-height: 1.8; }
.team-tracker-unmatched-count { color: #8d561d; }
.team-tracker-warning { padding: 10px 12px; border-radius: 7px; background: #fff5df; color: #785423; font-size: 12px; line-height: 1.8; }
.team-tracker-unmatched > summary { min-height: 44px; cursor: pointer; }
.team-tracker-unmatched ul { max-height: 200px; overflow-y: auto; padding-left: 20px; }
.team-tracker-unmatched li { margin: 8px 0; font-size: 12px; line-height: 1.7; }
.team-tracker-unmatched :is(code, span) { display: block; overflow-wrap: anywhere; }
.team-tracker-roster { max-height: 300px; margin-top: 14px; overflow: auto; border: 1px solid var(--line, #ded4e8); border-radius: 7px; }
.team-tracker-roster table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 12px; line-height: 1.7; }
.team-tracker-roster :is(th, td) { padding: 9px 12px; border-bottom: 1px solid var(--line, #ded4e8); text-align: left; overflow-wrap: anywhere; }
.team-tracker-roster :is(th, td):first-child { min-width: 0; width: auto; white-space: normal; }
.team-tracker-roster th { position: sticky; top: 0; background: #f3edf9; }
.team-tracker-roster :is(th, td):last-child { width: 90px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.team-tracker-import :is(button, a, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #9675c7; outline-offset: 2px; }
@media (max-width: 650px) {
  .team-tracker-import .team-tracker-code { font-size: 16px; }
  .team-tracker-body { padding: 0 12px 14px; }
  .team-tracker-preview { padding: 12px; }
  .team-tracker-actions,
  .team-tracker-actions button,
  .team-tracker-body > button { width: 100%; }
  .team-tracker-roster :is(th, td) { padding: 8px; }
}
