.teams-view.ts-active > :not(.ts-root) { display: none !important; }
.ts-root {
  --ts-text: #e9ecf2;
  --ts-muted: #a8b4c5;
  --ts-panel: #121d2b;
  --ts-line: #334052;
  --ts-accent: #f08c80;
  --ts-on-accent: #1b1414;
  --ts-positive: #88d5b9;
  --ts-soft: #202c3c;
  color: var(--ts-text);
  max-width: 100%;
  min-width: 0;
}
html.light-mode .ts-root,
html[data-ft-mode="paper"] .ts-root {
  --ts-text: #262a31;
  --ts-muted: #5c6573;
  --ts-panel: #fffaf1;
  --ts-line: #d4cabd;
  --ts-accent: #9e372e;
  --ts-on-accent: #fffaf1;
  --ts-positive: #24664c;
  --ts-soft: #eee7db;
}
.ts-root *, .ts-root *::before, .ts-root *::after { box-sizing: border-box; }
.ts-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ts-heading > div { min-width: 0; }
.ts-eyebrow { color: var(--ts-accent); font-size: 12px; letter-spacing: .13em; margin: 0 0 8px; }
.ts-heading h2 { color: var(--ts-text); font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 0 0 8px; }
.ts-intro, .ts-counts, .ts-footnote, .ts-found { line-height: 1.65; }
.ts-intro { color: var(--ts-muted); font-size: 14px; margin: 0; }
.ts-counts { margin: 20px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ts-line); font-size: 14px; }
.ts-button { border: 1px solid var(--ts-line); background: var(--ts-panel); color: var(--ts-text); min-height: 44px; padding: 10px 15px; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ts-button:hover { border-color: var(--ts-accent); }
.ts-button[aria-pressed="true"] { background: var(--ts-accent); color: var(--ts-on-accent); border-color: var(--ts-accent); }
.ts-root :is(button, input, summary):focus-visible { outline: 3px solid var(--ts-accent); outline-offset: 3px; }
.ts-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ts-search { color: var(--ts-muted); font-size: 12px; display: grid; gap: 6px; flex: 1 1 250px; min-width: 0; }
.ts-search input { width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; border: 1px solid var(--ts-line); border-radius: 6px; background: var(--ts-panel); color: var(--ts-text); font: inherit; font-size: 14px; }
.ts-search input::placeholder { color: var(--ts-muted); opacity: 1; }
.ts-button-group { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-footnote { color: var(--ts-muted); font-size: 12px; margin: 14px 0 0; }
.ts-found { color: var(--ts-muted); font-size: 12px; margin: 14px 0; }
.ts-group { margin: 26px 0 0; }
.ts-group h3 { color: var(--ts-text); font-size: 17px; font-weight: 700; margin: 0 0 12px; border-left: 3px solid var(--ts-accent); padding-left: 10px; }
.ts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.ts-card { border: 1px solid var(--ts-line); border-radius: 8px; background: var(--ts-panel); padding: 18px; min-width: 0; overflow-wrap: anywhere; }
.ts-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.ts-stage { color: var(--ts-muted); font-size: 12px; font-weight: 600; }
.ts-stage[data-active="true"] { color: var(--ts-positive); }
.ts-seed { color: var(--ts-muted); font-size: 12px; }
.ts-team-name { color: var(--ts-text); font-size: 17px; font-weight: 700; line-height: 1.5; margin: 12px 0 6px; }
.ts-leader { color: var(--ts-muted); font-size: 12px; margin: 0 0 12px; }
.ts-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ts-line); }
.ts-stats dt { color: var(--ts-muted); font-size: 11px; }
.ts-stats dd { color: var(--ts-text); font-size: 21px; font-weight: 700; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.ts-record-note, .ts-people { color: var(--ts-muted); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.ts-history { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ts-line); }
.ts-history summary { min-height: 44px; cursor: pointer; color: var(--ts-accent); font-size: 13px; padding: 12px 0; }
.ts-history ul { list-style: none; margin: 6px 0 0; padding: 0; }
.ts-history li { background: var(--ts-soft); border-radius: 4px; padding: 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.6; }
.ts-history li span, .ts-history li strong { display: block; }
.ts-history li span { color: var(--ts-muted); }
.ts-empty, .ts-warning { color: var(--ts-text); padding: 20px; border: 1px solid var(--ts-line); border-radius: 6px; line-height: 1.7; }
.ts-warning { border-left: 3px solid var(--ts-accent); }
@media (max-width: 1050px) { .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .ts-heading { flex-direction: column; gap: 12px; }
  .ts-grid { grid-template-columns: minmax(0, 1fr); }
  .ts-controls { align-items: stretch; flex-direction: column; }
  .ts-search { flex-basis: auto; }
  .ts-card { padding: 16px; }
  .ts-button { padding-inline: 12px; }
}
