/* Faustball Zähler – mobile-first, hell/dunkel */

:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #e9ede7;
  --text: #17201b;
  --muted: #5d6a62;
  --border: #d5dcd3;
  --accent: #1b7a43;
  --accent-text: #ffffff;
  --danger: #c4312b;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .05);
  --radius: 14px;
  --tabbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614;
    --surface: #1b211e;
    --surface-2: #252d29;
    --text: #e8eee9;
    --muted: #97a59c;
    --border: #2f3934;
    --accent: #3fb36d;
    --accent-text: #08130c;
    --danger: #ef6b62;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121614;
  --surface: #1b211e;
  --surface-2: #252d29;
  --text: #e8eee9;
  --muted: #97a59c;
  --border: #2f3934;
  --accent: #3fb36d;
  --accent-text: #08130c;
  --danger: #ef6b62;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Kopf- und Tab-Leiste ---------- */

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.update-banner {
  margin-left: auto; font-size: .85rem; display: flex; align-items: center; gap: 8px;
}
.update-banner.warn { color: var(--danger); font-weight: 600; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* ---------- Seiten-Layout ---------- */

.page {
  max-width: 640px; margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px;
}
.page-title { margin: 4px 0 0; font-size: 1.5rem; letter-spacing: -.02em; }
.section-title { margin: 10px 0 -4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin: 0; min-width: 0;
}
fieldset.card { padding-top: 6px; }
legend { font-weight: 700; padding: 0 4px; }
.card-title { margin: 0 0 10px; font-size: 1rem; }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.back { text-decoration: none; font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-weight: 650; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform .06s ease, background-color .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.dialog .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-large { min-height: 56px; font-size: 1.1rem; }
.btn-small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem;
}
.icon-btn:active { background: var(--surface-2); }
.file-btn { position: relative; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ---------- Formulare ---------- */

.field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field input:not([type="color"]):not([type="radio"]), .field select {
  width: 100%; min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); font-size: 16px;
}
.field input[readonly] { color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field.wide { grid-column: 1 / -1; }
.hint { font-style: normal; font-weight: 400; }
input[type="color"] {
  width: 56px; height: 46px; padding: 3px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); cursor: pointer;
}
.field-row { display: flex; gap: 12px; align-items: flex-end; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; padding-block: 6px 14px; }
.inline-form .field { margin-bottom: 0; }
.inline-form .btn { flex: none; }
.num-field { width: 64px; flex: none; }
.form-error { color: var(--danger); font-weight: 600; margin: 0; }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; text-align: center; padding: 9px 4px; border-radius: 9px;
  font-weight: 600; cursor: pointer; color: var(--muted);
}
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Listen ---------- */

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 4px 4px 14px; box-shadow: var(--shadow); min-height: 56px;
}
.game-link, .team-link {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0; color: inherit; text-decoration: none;
}
.team-link { flex-direction: row; align-items: center; gap: 12px; padding-right: 10px; }
.game-teams { display: flex; align-items: center; gap: 6px; font-weight: 600; flex-wrap: wrap; }
.game-result { font-variant-numeric: tabular-nums; padding: 0 6px; font-size: 1.05rem; }
.badge {
  display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-size: .72rem; font-weight: 700;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.swatch { width: 28px; height: 28px; border-radius: 8px; background: var(--c); flex: none; }
/* Rand, damit auch weiße/helle Teamfarben sichtbar bleiben */
.dot, .swatch, .swatch-btn:not(.custom) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent); }
.chev { color: var(--muted); font-size: 1.4rem; }
.player-item { padding-left: 10px; }
.num {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 8px; background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums;
}

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c);
  cursor: pointer; position: relative; display: inline-block;
}
.swatch-btn[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.swatch-btn.custom {
  background: conic-gradient(#e5484d, #f5a524, #30a46c, #0091ff, #8e4ec6, #e5484d);
  overflow: hidden;
}
.swatch-btn.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- Scoreboard ---------- */

/* Im Spiel Kopfleiste ausblenden – außer es gibt einen Hinweis (Update, Datenproblem) */
body[data-route="game"] .topbar:not(:has(.update-banner:not([hidden]))):has(+ main .scoreboard) { display: none; }

.scoreboard {
  display: flex; flex-direction: column; gap: 10px;
  height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right)) 10px max(10px, env(safe-area-inset-left));
  max-width: 900px; margin: 0 auto;
}
.score-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.set-total {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.set-total small {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px;
}
.set-history {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0;
}
.set-history li {
  font-variant-numeric: tabular-nums; font-size: .85rem; padding: 2px 9px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.set-history .win, .sets-table .win { color: var(--text); font-weight: 800; }

.panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.pane { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.pane-tap {
  flex: 1; min-height: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; border-radius: 22px; cursor: pointer; padding: 12px 8px;
  background: var(--team); color: var(--team-text, #fff);
  box-shadow: inset 0 -6px 0 rgb(0 0 0 / .18), inset 0 0 0 1px rgb(0 0 0 / .12);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .07s ease, filter .07s ease;
  position: relative; overflow: hidden;
  /* Größe als Bezug für die Punktzahl: sie passt sich der verfügbaren Fläche an */
  container-type: size;
}
.pane-tap::before {
  /* leichte Linienstruktur wie ein Spielfeld */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .14), transparent 40%);
}
.pane-tap:active { transform: scale(.975); filter: brightness(1.12); }
.pane-name {
  font-size: clamp(1rem, 4.6vw, 1.5rem); font-weight: 750; text-align: center; line-height: 1.2;
  max-width: 100%; overflow-wrap: anywhere; hyphens: auto;
  /* Lange Vereinsnamen auf höchstens zwei Zeilen umbrechen statt abschneiden */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  text-shadow: 0 1px 2px var(--team-shadow, rgb(0 0 0 / .3));
}
/* Sehr lange Namen (z. B. Spielgemeinschaften): etwas kleiner, bis zu drei Zeilen */
.pane-name.long { font-size: clamp(.9rem, 3.9vw, 1.25rem); -webkit-line-clamp: 3; line-clamp: 3; }
/* Kennzeichen „2“, „Frauen“, „Frauen 2“: eigene Zeile, wird nie abgeschnitten */
.pane-suffix {
  font-size: clamp(.85rem, 3.6vw, 1.1rem); font-weight: 800; line-height: 1.2; white-space: nowrap;
  text-shadow: 0 1px 2px var(--team-shadow, rgb(0 0 0 / .3));
}
/* Platz für das Angabe-Abzeichen oben links, damit es den Namen nicht überdeckt */
.pane-tap:has(.serve-badge) { padding-top: 34px; }
.pane-sets { font-size: .95rem; letter-spacing: .2em; opacity: .9; }
.pane-score {
  font-size: clamp(5rem, 30vw, 13rem); line-height: 1; font-weight: 800;
  font-size: clamp(2.5rem, min(48cqh, 62cqw), 13rem);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em;
  text-shadow: 0 2px 8px var(--team-shadow, rgb(0 0 0 / .25));
}
.pane-flag {
  min-height: 1.6em; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
/* Badge in invertierten Teamfarben – lesbar auf hellen und dunklen Trikots */
.pane-flag:not(:empty) { background: var(--team-text, #fff); color: var(--team); padding: 2px 10px; border-radius: 999px; }
.serve-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 2px 9px 2px 22px; border-radius: 999px;
  background: var(--team-text, #fff); color: var(--team);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.serve-badge::before {
  /* stilisierter Faustball */
  content: ""; position: absolute; left: 6px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  border-radius: 50%; background: currentColor;
}
.pane-actions { display: flex; gap: 8px; }
.pane-action {
  flex: 1 1 0; min-width: 0; min-height: 46px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 650; cursor: pointer; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px;
}
.pane-action:disabled { opacity: .45; cursor: default; }
.timeout-bar, .serve-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 12px; font-weight: 650;
}
.timeout-bar { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid var(--accent); }
.serve-bar { border: 1px dashed var(--border); }
.serve-bar .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.timeout-bar strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: center; }
.hint-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.hint-card p { margin: 0; flex: 1 1 220px; }
.pill {
  min-width: 24px; padding: 0 6px; border-radius: 999px; background: var(--surface-2);
  font-variant-numeric: tabular-nums; font-size: .85rem;
}
.controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.controls .btn { min-height: 50px; }

@media (orientation: landscape) and (max-height: 520px) {
  :root { --tabbar-h: 44px; }
  .tabbar a { flex-direction: row; gap: 6px; }
  .scoreboard { gap: 6px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: 6px; }
  .score-head { flex-direction: row; justify-content: center; gap: 12px; }
  .score-head > p { display: none; }
  .set-total { font-size: 1.3rem; }
  .pane { gap: 6px; }
  .pane-tap { padding: 4px 8px; gap: 0; border-radius: 16px; }
  .pane-name, .pane-name.long { font-size: .95rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .pane-suffix { font-size: .85rem; }
  .pane-tap:has(.serve-badge) { padding-top: 26px; }
  .pane-sets { font-size: .8rem; }
  .pane-score { font-size: clamp(3rem, 30vh, 9rem); font-size: clamp(2rem, min(46cqh, 40cqw), 9rem); }
  .pane-flag { font-size: .72rem; min-height: 1.4em; }
  .pane-action, .controls .btn { min-height: 40px; }
  .timeout-bar, .serve-bar { padding: 3px 10px; }
  .timeout-bar strong { font-size: 1.1rem; }
  .serve-badge { top: 6px; left: 6px; }
  .controls { gap: 6px; }
}

/* ---------- Zusammenfassung ---------- */

.summary { display: flex; flex-direction: column; gap: 8px; }
.summary p { margin: 0; }
.summary-score {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  font-weight: 700;
}
.summary-score strong { font-size: 2.4rem; font-variant-numeric: tabular-nums; }
.summary-team { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.summary-team:last-child { justify-content: flex-end; text-align: right; }
.table-wrap { overflow-x: auto; }
.sets-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sets-table th, .sets-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.sets-table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sets-table td { color: var(--muted); }

/* ---------- Dialog & Toast ---------- */

.dialog {
  border: 0; padding: 0; border-radius: 20px; width: min(420px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}
.dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog-inner { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dialog h2 { margin: 0; font-size: 1.25rem; }
.dialog-body p { margin: 0 0 8px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dialog-actions .btn { flex: 1 1 auto; }
.big-result { font-size: 1.15rem; }
.license-text {
  margin: 0; max-height: 50dvh; overflow: auto; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.about p { margin: 0 0 10px; }
.roster { margin-top: 8px; }
.roster summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.roster ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; transition: opacity .2s, transform .2s; z-index: 20;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Im Spiel oben anzeigen, damit die Bedienelemente frei bleiben */
body[data-route="game"]:has(.scoreboard) .toast { bottom: auto; top: calc(56px + env(safe-area-inset-top, 0px)); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Vorschlagsliste (Combobox) ---------- */

.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px;
  list-style: none; max-height: min(320px, 50dvh); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .18);
}
.combo-option {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer;
}
.combo-option[aria-selected="true"], .combo-option:hover { background: var(--surface-2); }
.combo-name { flex: 1 1 10ch; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.combo-meta { flex: 0 1 auto; min-width: 0; font-size: .78rem; color: var(--muted); text-align: right; }
.field-hint { margin: 0; }
/* Neben dem Namen steht ein Farbfeld bzw. ein Button: Liste über die ganze Zeile */
.team-fieldset .field-row, #add-team { position: relative; }
.team-fieldset .combo, #add-team .combo { position: static; }
#add-team .combo-list { left: 16px; right: 16px; top: calc(100% - 10px); }

/* ---------- Teamliste: Suche, Filter, Gruppen ---------- */

.team-tools { display: flex; flex-direction: column; gap: 10px; }
.search-input {
  width: 100%; min-height: 46px; padding: 8px 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.team-group { border-top: 1px solid var(--border); padding-top: 4px; }
.team-group > summary {
  cursor: pointer; padding: 12px 2px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 10px; min-height: 48px;
}
.team-group > summary::-webkit-details-marker { display: none; }
/* Auf/Zu-Symbol (der Standard-Marker entfällt durch display: flex) */
.team-group > summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.team-group[open] > summary::before { transform: rotate(45deg); }
.team-group > summary .count {
  margin-left: auto; min-width: 28px; padding: 0 8px; border-radius: 999px; text-align: center;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.team-group > .list { padding-bottom: 10px; }
.team-item.sub { margin-left: 22px; min-height: 48px; }
.team-item.sub strong { font-weight: 600; }
