/* Turnier-App: Grund-Styles (ausgelagert aus index.html) */
  :root{
    --accent:#0f766e;
    --ink:#0b0f19;
    --bg:#f1f2f5;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --border:#e5e7eb;
    --danger:#b91c1c;
    --ring:rgba(15,118,110,.18);
    --shadow:0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.06);
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    letter-spacing:-.01em;
  }
  .wrap{max-width:960px;margin:0 auto;padding:0 18px 72px;}
  .topbar{
    position:sticky;top:0;z-index:10;background:rgba(241,242,245,.85);backdrop-filter:blur(8px);
    display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;margin-bottom:6px;flex-wrap:wrap;
  }
  .brandMark{display:flex;align-items:center;gap:10px;}
  .brandMark .dot{width:34px;height:34px;border-radius:9px;background:var(--ink);display:flex;align-items:center;justify-content:center;font-size:16px;flex:none;overflow:hidden;}
  .brandMark .dot img{width:100%;height:100%;object-fit:contain;padding:5px;}
  .brandMark h1{font-size:16px;margin:0;font-weight:700;letter-spacing:-.01em;}
  .brandMark .sub{font-size:11.5px;color:var(--muted);margin-top:1px;}
  .exportBtn{
    display:inline-flex;align-items:center;gap:7px;border:none;background:var(--ink);color:#fff;
    padding:10px 16px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;box-shadow:var(--shadow);
  }
  .exportBtn:hover{background:#1f2937;}
  .podiumActiveBadge{display:inline-flex;align-items:center;gap:6px;border:1px solid #99e6c5;background:#ecfdf5;color:#0f766e;padding:8px 12px;border-radius:10px;font-size:12.5px;font-weight:700;cursor:pointer;}
  .podiumActiveBadge:hover{background:#d8f7e9;}
  .banner{background:#fffaf0;border:1px solid #fde8b6;color:#7c4a03;border-radius:12px;padding:13px 16px;font-size:12.5px;line-height:1.6;margin-bottom:18px;}
  .playerList input.seedPosInput{width:48px;-moz-appearance:textfield;padding:4px 6px;}
  .playerList input.seedPosInput::-webkit-outer-spin-button,.playerList input.seedPosInput::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
  .saveBar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:12px;padding:8px 14px;margin-bottom:14px;}
  .saveBar .txt{font-size:12px;color:var(--muted);}
  .menuDetails{position:relative;display:inline-block;}
  .menuDetails > summary{list-style:none;cursor:pointer;}
  .menuDetails > summary::-webkit-details-marker{display:none;}
  .menuPop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.16);padding:14px;width:320px;max-width:86vw;}
  .helpDetails{display:block;margin-top:8px;font-size:12.5px;color:var(--muted);}
  .helpDetails > summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:12px;}
  .card.genCard{position:sticky;bottom:14px;z-index:6;padding:14px 18px 12px;border-color:var(--accent);box-shadow:0 10px 30px rgba(15,23,42,.16);}
  .genRow{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
  .genCard .cardHead{margin-bottom:0;}
  .genCard .note{margin-top:8px;border:none;background:none;padding:0;}
  .genCard .helpDetails{margin-top:4px;}
  .tournamentBar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
  .tournamentTabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
  .tournamentTab{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--border);background:#fff;color:var(--text);border-radius:10px;padding:8px 10px 8px 14px;font-size:12.5px;font-weight:700;cursor:pointer;}
  .tournamentTab.active{border-color:var(--ink);background:var(--ink);color:#fff;}
  .tournamentTab .tFormat{font-weight:500;color:var(--muted);font-size:11px;}
  .tournamentTab.active .tFormat{color:#c7cbd4;}
  .tournamentTab .tClose{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:6px;color:inherit;opacity:.6;font-size:11px;}
  .tournamentTab .tClose:hover{opacity:1;background:rgba(255,255,255,.15);}
  .tournamentTab.active .tClose:hover{background:rgba(255,255,255,.2);}
  .tournamentTabAdd{border:1.5px dashed var(--border);background:transparent;color:var(--muted);border-radius:10px;padding:8px 14px;font-size:12.5px;font-weight:700;cursor:pointer;}
  .tournamentTabAdd:hover{border-color:var(--ink);color:var(--ink);}
  .card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:22px 22px 24px;margin-bottom:18px;box-shadow:var(--shadow);}
  .cardHead{display:flex;align-items:center;gap:12px;margin-bottom:4px;}
  .stepNum{width:26px;height:26px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none;}
  .card h2{font-size:16px;margin:0;font-weight:700;letter-spacing:-.01em;}
  .card h3{font-size:11.5px;margin:20px 0 10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;}
  .card .desc{font-size:12.5px;color:var(--muted);margin:4px 0 16px 38px;line-height:1.5;}
  label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px;font-weight:600;}
  input[type=text],input[type=url],input[type=email],input[type=tel],input[type=date],input[type=datetime-local],input[type=number],input[type=time],select,textarea{
    width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px;background:#fff;color:var(--text);
    font-family:inherit;transition:border-color .12s,box-shadow .12s;
  }
  input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);}
  input[type=number]{width:80px;text-align:center;}
  .timeStepRow{display:flex;align-items:center;gap:4px;}
  .timeStepRow input[type=time]{flex:1 1 110px;min-width:100px;}
  .timeStepBtn{flex:none;border:1px solid var(--border);background:#fff;border-radius:8px;padding:0 9px;height:40px;font-size:11.5px;font-weight:700;color:var(--muted);cursor:pointer;transition:border-color .12s,color .12s;}
  /* Start/Ende brauchen spürbar mehr Platz als die generische Spalten-
     Mindestbreite (150px) -- sonst quetscht das native Zeit-Eingabefeld
     zwischen den beiden ±15-Buttons so stark, dass nur die ersten ein/zwei
     Ziffern sichtbar sind (siehe timeRow -- eigene Zeile statt gemeinsam
     mit Plätze/Rundendauer/Pause, plus höhere Mindestbreite hier). */
  .timeRow{gap:20px;}
  .timeCol{flex:1 1 220px;min-width:200px;}
  .timeStepBtn:hover{border-color:var(--ink);color:var(--ink);}
  textarea{resize:vertical;min-height:84px;font-size:13px;line-height:1.6;}
  .row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px;}
  .row > div{flex:1;min-width:150px;}
  .formatChoice{display:flex;gap:10px;flex-wrap:wrap;}
  .formatChoice label{flex:1;border:1.5px solid var(--border);border-radius:12px;padding:12px 14px;cursor:pointer;font-size:13.5px;color:var(--text);font-weight:600;display:flex;align-items:center;gap:8px;transition:border-color .12s,background .12s;}
  .formatChoice label.selected{border-color:var(--ink);background:#f8f9fb;}
  .formatChoice input{margin:0;}
  .btn{border:1px solid var(--ink);background:var(--ink);color:#fff;padding:10px 18px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;transition:background .12s;}
  .btn:hover{background:#1f2937;}
  .btn:disabled{opacity:.35;cursor:not-allowed;}
  .btn.secondary{background:#fff;color:var(--text);border-color:var(--border);}
  .btn.secondary:hover{background:#f8f9fb;}
  .btn.danger{background:#fff;color:var(--danger);border-color:#fecaca;}
  .btn.small{padding:6px 12px;font-size:12px;border-radius:8px;}
  .btnRow{display:flex;gap:8px;flex-wrap:wrap;}
  .linkBtn{background:none;border:none;color:var(--accent);font-size:12.5px;font-weight:600;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px;}

  .genderPills{display:flex;gap:4px;flex:none;}
  .genderPills button{
    width:32px;height:38px;border:1px solid var(--border);background:#fff;border-radius:8px;font-size:12px;font-weight:700;
    color:var(--muted);cursor:pointer;
  }
  .genderPills button.active{background:var(--ink);color:#fff;border-color:var(--ink);}
  .playerForm{display:flex;gap:8px;margin-bottom:14px;align-items:center;}
  .playerForm input[type=text]{flex:1;}
  .playerForm .formOr{flex:none;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:0 1px;}
  .playerForm .formDivider{flex:none;width:1px;align-self:stretch;background:var(--border);margin:2px 2px;}
  .playerList{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
  .playerList li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f8f9fb;border:1px solid var(--border);border-radius:20px;padding:6px 6px 6px 13px;font-size:13px;font-weight:500;overflow-wrap:anywhere;max-width:100%;}
  .playerList .g{color:var(--muted);font-size:11px;font-weight:700;}
  .playerList .seedNum{color:var(--muted);font-size:11px;font-weight:700;background:#eef0f4;border-radius:10px;padding:1px 6px;}
  /* Editierbares Namensfeld (siehe renamePlayer()/playerNameEditHtml()) --
     bewusst wie reiner Text gestylt (keine sichtbare Eingabefeld-Umrandung),
     damit die Team-Pille optisch unverändert bleibt; erst bei Hover/Fokus
     wird erkennbar, dass sich der Name bearbeiten lässt. */
  .playerList input.playerNameEdit{border:1px solid transparent;background:transparent;font:inherit;font-weight:500;color:inherit;padding:2px 5px;border-radius:7px;min-width:0;}
  .playerList input.playerNameEdit:hover{background:#eef0f4;}
  .playerList input.playerNameEdit:focus{background:#fff;border-color:var(--accent);outline:none;}
  /* Team-Eintrag: Team-Name · Spieler 1 & Spieler 2 (siehe playerNameEditHtml()) */
  .teamNameEdit{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:0 2px;}
  .playerList .teamNameEdit input.playerNameEdit{width:100% !important;height:28px;}
  .playerList .teamNameEdit input.playerNameEdit.tnTeam{grid-column:1 / -1;font-weight:700;font-size:14px;}
  .playerList .teamNameEdit input.playerNameEdit.tnMember{color:var(--muted);font-size:12.5px;font-weight:500;}
  .playerList input.playerNameEdit::placeholder{color:#b8b6ad;font-weight:500;font-style:italic;}
  .teamNameEdit .tnSep{display:none;}
  .teamNameEdit .tnAmp{color:var(--muted);font-size:12px;}
  .teamNameEdit .tnMemberCell{display:flex;align-items:center;gap:3px;min-width:0;}
  .playerLogoThumb.photo,.playerLogoAdd.photo{width:20px !important;height:20px !important;border-radius:50% !important;}
  .playerList button{border:none;background:transparent;color:var(--muted);cursor:pointer;font-size:15px;width:20px;height:20px;line-height:1;border-radius:50%;}
  .playerList button:hover{background:#e5e7eb;color:var(--danger);}
  .playerList button:disabled{opacity:.3;cursor:default;}
  .playerList button:disabled:hover{background:transparent;color:var(--muted);}
  .playerList.removedList li{opacity:.7;}
  .playerList.removedList button{font-size:13px;}
  .playerList.removedList button:hover{background:#e5e7eb;color:var(--accent);}
  .count{font-size:12px;color:var(--muted);margin-top:10px;}
  .bulkBox{background:#f8f9fb;border:1px dashed var(--border);border-radius:12px;padding:14px;margin-top:4px;}
  .bulkBox .hint{font-size:11.5px;color:var(--muted);margin:6px 0 10px;line-height:1.5;}

  .round{border:1px solid var(--border);border-radius:14px;padding:14px 16px;margin-bottom:12px;}
  .round .roundTitle{font-size:13px;font-weight:700;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;}
  .roundTime{font-size:11px;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0;margin-left:6px;}
  .pill{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:99px;background:#f1f5f9;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;}
  .pill.done{background:#ecfdf5;color:#0f766e;}
  .pill.live{background:var(--accent);color:#fff;}
  .breakCard{background:#fffbeb;border-style:dashed;border-color:#f2d492;}
  .breakCard .roundTitle{margin-bottom:0;}
  .breakCard.live{border-style:solid;border-color:var(--accent);}
  .breakCard.unreached{opacity:.6;}
  .breaksSection .note{margin-bottom:0;}
  .breaksList{display:flex;flex-direction:column;gap:10px;}
  .breakRow{border:1px solid var(--border);border-radius:10px;padding:8px 10px;}
  .breakRowFields{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
  .breakRowLabel{font-size:11.5px;color:var(--muted);white-space:nowrap;}
  .breakRowNote{margin:6px 0 0;}
  .breakModeToggle{display:flex;gap:2px;flex:none;}
  .breakModeBtn{border:1px solid var(--border);background:#fff;border-radius:8px;padding:0 8px;height:28px;font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;}
  .breakModeBtn.active{background:var(--ink);color:#fff;border-color:var(--ink);}
  .agendaList{display:flex;flex-direction:column;gap:8px;}
  .agendaRow{display:flex;align-items:center;gap:8px;}
  .match{display:flex;align-items:center;gap:10px;font-size:13.5px;padding:8px 0;border-top:1px solid #f1f2f5;flex-wrap:wrap;}
  .match:first-of-type{border-top:none;}
  .match .court{color:var(--muted);font-size:11px;font-weight:700;min-width:56px;text-transform:uppercase;letter-spacing:.03em;}
  .match .team{flex:1;min-width:120px;font-weight:500;}
  .match input{width:46px;padding:6px;text-align:center;font-weight:700;}
  .match .vs{color:var(--muted);font-size:11px;}
  .setsInputs{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center;}
  .setPair{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--muted);}
  .setPair input{width:34px;padding:5px 4px;text-align:center;font-weight:700;}
  .setPair.ctb input{border-style:dashed;}
  .setPair.ctb::before{content:"CTB";font-size:9px;font-weight:800;letter-spacing:.04em;color:var(--muted);margin-right:3px;}
  .sitOuts{font-size:11.5px;color:var(--muted);margin-top:10px;padding-top:10px;border-top:1px dashed var(--border);}
  .koRound{margin-bottom:18px;}
  .koRoundTitle{font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:8px;}
  .koMatches{display:flex;flex-direction:column;gap:10px;}
  .koMatch{border:1px solid var(--border);border-radius:12px;padding:10px 14px;}
  .koMatch.koPending{background:#f8f9fb;border-style:dashed;}
  .koMatch.koTerminal{border-color:#111;}
  .koMatchLabel{font-size:11px;font-weight:700;color:var(--muted);margin-bottom:6px;display:flex;justify-content:space-between;gap:8px;}
  .koMatchLabel > span:last-child{white-space:nowrap;}
  .koMatch .match{border-top:none;padding:2px 0;}
  .koMatch .pending-team{color:var(--muted);font-style:italic;font-weight:400;}
  .pending-team{color:var(--muted);font-style:italic;}
  .koByeNote{font-size:11.5px;color:var(--muted);}
  .match .matchMeta{display:contents;}
  /* Dialog „Neues Turnier anlegen“ (siehe addTournament()) */
  .ntOpts{display:flex;flex-direction:column;gap:8px;}
  .ntOpt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer;margin:0;}
  .ntOpt:has(input:checked){border-color:var(--accent);background:var(--accent-soft,#eef6f3);}
  .ntOpt input{margin-top:3px;}
  .ntOpt span{display:flex;flex-direction:column;gap:2px;font-size:13.5px;}
  .ntOpt small{color:var(--muted);font-size:12px;}
  /* Spielübersicht: Ansichtsauswahl + Listen (siehe renderOverviewTab()) */
  .ovViews{display:inline-flex;flex-wrap:wrap;gap:4px;padding:3px;border:1px solid var(--border);border-radius:11px;background:var(--surface-soft, #f4f3ee);}
  .ovViews button{border:0;background:transparent;padding:6px 12px;border-radius:8px;font:inherit;font-size:12.5px;font-weight:650;color:var(--muted);cursor:pointer;}
  .ovViews button.on{background:#fff;color:var(--ink,#111);box-shadow:0 1px 2px rgba(0,0,0,.08);}
  .cardHead:has(.ovViews){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
  table.ovGames td,table.ovMatrix td{vertical-align:middle;}
  .ovGames .ovgT{font-weight:600;}
  .ovgS{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap;}
  .ovgR{white-space:nowrap;font-weight:600;}
  .ovgTime{font-size:11px;color:var(--muted);font-weight:500;}
  .ovMatrix .ovCourtCell{font-size:12.5px;line-height:1.35;min-width:140px;}
  .ovMatrix .ovVs{font-size:10.5px;color:var(--muted);}
  .ovMatrix .ovCourtCell .ovgS{margin-top:3px;font-size:12px;}
  .ovMatrix tr.ovCurrentRow td{background:var(--accent-soft,#eef6f3);}
  .walkoverTag{font-size:11.5px;font-weight:700;color:#b45309;background:#fef3c7;border-radius:6px;padding:2px 8px;}
  .koWalkoverRow{font-size:11px;color:var(--muted);margin-top:8px;}
  .round .koWalkoverRow{display:none;margin-top:0;padding:0 0 8px;}
  .round .koWalkoverRow.open{display:block;}
  .walkoverToggle{border:none;background:transparent;color:var(--muted);cursor:pointer;font-size:16px;line-height:1;padding:2px 8px;border-radius:8px;}
  .walkoverToggle:hover{background:#eef0f4;color:var(--text);}
  .note{font-size:12px;color:var(--muted);background:#f8f9fb;border:1px dashed var(--border);border-radius:10px;padding:10px 12px;margin-top:10px;line-height:1.5;}
  /* Auffälligere Variante von .note für Hinweise, die tatsächlich Aufmerksamkeit
     brauchen (z.B. eine stillschweigend gekappte Eingabe, eine automatisch
     zurückgesetzte manuelle Zuordnung) -- die normale .note ist dafür farblich
     zu unauffällig und geht neben reinem Beschreibungstext leicht unter. */
  .noteWarn{font-size:12px;color:#92400e;background:#fef3c7;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;margin-top:10px;line-height:1.5;font-weight:600;}
  .ruleReport{font-size:12.5px;background:#f8f9fb;border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-top:12px;}
  .ruleReport .rrTitle{font-weight:700;margin-bottom:8px;font-size:12.5px;}
  .ruleReport ul{margin:0;padding-left:18px;}
  .ruleReport li{margin-bottom:4px;}
  .ok{color:#0f766e;}
  .warn{color:#b45309;}

  table.standings{width:100%;border-collapse:collapse;font-size:13px;}
  table.standings th,table.standings td{padding:9px 8px;text-align:left;border-bottom:1px solid var(--border);}
  table.standings th{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;}
  table.standings td.num,table.standings th.num{text-align:right;font-variant-numeric:tabular-nums;}
  table.standings tbody tr:hover{background:#f8f9fb;}
  table.standings td.rankNum{font-weight:800;font-variant-numeric:tabular-nums;color:var(--text);}
  .rankBadge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;font-weight:800;font-size:12px;font-variant-numeric:tabular-nums;}
  .rankBadge.r1{background:#fde68a;color:#92400e;}
  .rankBadge.r2{background:#e2e8f0;color:#334155;}
  .rankBadge.r3{background:#fed7aa;color:#9a3412;}
  .fairMark{color:var(--accent);font-weight:800;margin-left:2px;cursor:help;}
  .groupTag{background:#eef2ff;color:#4338ca;font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:6px;text-transform:uppercase;letter-spacing:.03em;min-width:0;}
  .groupStandingsWrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:4px;}
  /* min-width:0 + table-layout:fixed: siehe ausführlicher Kommentar bei der
     gleichnamigen Export-Regel in publicCss() -- verhindert, dass eine Karte
     bei langen, echten Team-/Spielernamen über ihre Grid-Spalte hinausläuft
     und Spalten (v.a. Diff ganz rechts) abgeschnitten werden. Der Mindestwert
     der Karte (minmax-Untergrenze oben) ist bewusst auf 300px angehoben (statt
     knapp 240px): bei echten "Vorname Nachname & Vorname Nachname"-Teamnamen
     reichen ~240px nicht annähernd, das Team wird dann über 5-6 Zeilen
     zerstückelt statt max. 1-2 -- siehe auch die kompakteren Spaltenbreiten/
     Schriftgröße direkt unten, die dem Team-Namen zusätzlichen Raum geben. */
  .groupStandingsBlock{border:1px solid var(--border);border-radius:12px;padding:12px 14px;min-width:0;}
  .groupStandingsBlock h4{margin:0 0 8px;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);}
  .groupStandingsBlock table.standings{table-layout:fixed;font-size:12.5px;}
  .groupStandingsBlock table.standings th,.groupStandingsBlock table.standings td{padding:7px 6px;}
  /* 40px statt der schmaleren 28-32px eines früheren Versuchs: bei
     box-sizing:border-box frisst das Zellen-Padding vom Breitenbudget mit,
     und "RANG"/"DIFF" (Großbuchstaben, text-transform:uppercase) brauchen
     bei 12.5px Schrift real ~30px -- darunter überlappt die Kopfzeile
     sichtbar mit der Team-Spalte ("RANGTEAM" ohne Lücke). */
  .groupStandingsBlock table.standings th:first-child,.groupStandingsBlock table.standings td:first-child{width:40px;padding-left:4px;padding-right:2px;}
  .groupStandingsBlock table.standings th.num,.groupStandingsBlock table.standings td.num{width:40px;padding-left:2px;padding-right:6px;}
  .groupStandingsBlock table.standings td{word-break:break-word;}
  table.standings tr.groupQualified{background:#ecfdf5;}
  table.standings tr.groupQualified td.rankNum{color:#0f766e;}
  .qualMark{color:#0f766e;font-weight:800;margin-left:4px;cursor:help;display:inline-flex;vertical-align:middle;}
  .h2hMark{color:var(--muted);font-weight:800;margin-left:3px;cursor:help;}
  .heroAutoInfo{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
  .heroAutoBadge{display:inline-flex;align-items:center;gap:6px;background:#e8f5ee;color:#1a6b3d;border:1px solid #bfe3cd;border-radius:999px;padding:3px 11px;font-size:12px;font-weight:700;}
  .heroAutoBadge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}
  .heroPosGrid{display:grid;grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,28px);gap:4px;}
  .heroPosBtn{border:1.5px solid var(--border);border-radius:6px;background:#fff;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--muted);transition:border-color .12s,background .12s,color .12s;}
  .heroPosBtn:hover{border-color:var(--ink);color:var(--text);}
  .heroPosBtn.selected{border-color:var(--ink);background:var(--ink);color:#fff;}
  .groupSizesGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;max-width:420px;}
  .groupSizeRow{display:flex;flex-direction:column;gap:2px;}
  .groupSizeRow label{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;}
  .groupSizeRow input{width:100%;box-sizing:border-box;}
  .manualPickList{display:flex;flex-direction:column;gap:4px;}
  .manualPickRow{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;cursor:pointer;transition:border-color .12s,background .12s;}
  .manualPickRow:hover{border-color:var(--ink);}
  .manualPickRow input{margin:0;flex:none;}
  .manualPickRow span:nth-child(2){flex:1;font-weight:600;}
  .manualPickStats{color:var(--muted);font-size:11.5px;flex:none;}
  .fairNote{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.5;}
  .removedTag{font-size:10.5px;color:var(--muted);font-weight:400;}
  .akTag{font-size:10px;font-weight:700;letter-spacing:.03em;color:#6b5400;background:#fff3cd;border:1px solid #f0dea3;border-radius:5px;padding:1px 5px;margin-left:6px;white-space:nowrap;}
  /* .playerList button (siehe dort) ist auf einzelne Icon-Zeichen (×, ↑, ↓)
     zugeschnitten: fest 20x20px, kreisrund. Der AK-Umschalter zeigt aber ZWEI
     Buchstaben ("AK") -- ohne diese Überschreibung quetschte ihn die geerbte
     20px-Breite in einen Kreis, "A" und "K" wurden dadurch sichtbar
     übereinander (statt nebeneinander) umgebrochen (Rückmeldung: "AK ist
     etwas zu groß ... am besten AK und nicht die Buchstaben übereinander").
     Jetzt eine ovale Pille wie .seedNum, breit genug für beide Buchstaben in
     einer Zeile. */
  /* Selektor bewusst "button.akToggle" (Element+Klasse, wie ".playerList
     button") statt nur ".akToggle" -- bei gleicher Spezifität gewinnt die
     spätere Regel im Stylesheet, das ist hier absichtlich diese. Eine
     schwächere Spezifität (nur ".akToggle") hätte z.B. die geerbte
     font-size:15px NICHT überschrieben, wodurch "AK" trotz breiterer Box
     wieder zu knapp geworden wäre. */
  button.akToggle{opacity:.45;font-size:10.5px;font-weight:700;letter-spacing:.01em;width:auto;min-width:28px;height:20px;padding:0 6px;border-radius:10px;white-space:nowrap;}
  button.akToggle.active{opacity:1;color:#8a6d00;font-weight:700;background:#fff3cd;}

  .teamLogo{width:22px;height:22px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:6px;border:1px solid var(--border);background:#fff;display:inline-block;}
  .playerLogoThumb{width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:middle;border:1px solid var(--border);background:#fff;cursor:pointer;flex:none;}
  .playerLogoAdd{width:20px;height:20px;border-radius:50%;border:1.5px dashed var(--border);background:#fff;color:var(--muted);font-size:11px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none;}
  .playerLogoAdd:hover{border-color:var(--ink);color:var(--ink);}
  .playerLogoRemove{width:15px;height:15px;border-radius:50%;border:none;background:#fee2e2;color:#b91c1c;font-size:10px;line-height:1;cursor:pointer;padding:0;flex:none;}
  .playerLogoRemove:hover{background:#fecaca;}
  .playerLogoDrop{display:inline-flex;align-items:center;border-radius:8px;transition:background .12s,box-shadow .12s;}
  .playerLogoDrop.dragOver{background:#eef2ff;box-shadow:0 0 0 2px #4338ca inset;}

  .fileUploadBtn{margin-top:6px;}
  .brandLogoBgToggle{margin-top:6px;margin-left:6px;}
  .brandRow{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end;}
  .brandRow > div{flex:1;min-width:160px;}
  .brandRow{align-items:flex-start !important;}
  input[type=color]{width:100%;height:38px;padding:2px;border:1px solid var(--border);border-radius:9px;background:#fff;cursor:pointer;}
  .sponsorList{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
  .sponsorList li{display:flex;align-items:center;gap:8px;background:#f8f9fb;border:1px solid var(--border);border-radius:12px;padding:6px 8px 6px 10px;font-size:12.5px;font-weight:500;}
  .sponsorList img{height:18px;max-width:64px;object-fit:contain;background:#fff;border-radius:4px;padding:2px 4px;box-sizing:content-box;}
  .sponsorList img.sponsorLogoDark{background:#1c2230;}
  .sponsorList button{border:none;background:transparent;color:var(--muted);cursor:pointer;font-size:14px;width:18px;height:18px;line-height:1;border-radius:50%;}
  .sponsorList button:hover{background:#e5e7eb;color:var(--danger);}
  .sponsorList button.sponsorBgToggle{font-size:12px;width:auto;padding:0 2px;border-radius:6px;}
  .sponsorList button.sponsorBgToggle:hover{background:#e5e7eb;color:var(--text);}
  .sponsorForm{display:flex;gap:8px;flex-wrap:wrap;}
  .sponsorForm input{flex:1;min-width:140px;}
  /* Eingaben und beide Knöpfe auf einer Linie, gleich hoch */
  .sponsorForm{align-items:center;}
  .playDays{display:flex;flex-direction:column;gap:8px;margin:8px 0 4px;}
  .playDayRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
  .playDayRow input[type=date]{width:170px;}.playDayRow input[type=time]{width:110px;}
  .playDayNo{font-weight:700;font-size:13px;min-width:44px;}
  .playDays > .btn{align-self:flex-start;}
  .sponsorForm .btn,.sponsorForm .fileUploadBtn{margin:0;height:40px;flex:none;}

  input[type=file]{display:none;}
  .emptyState{font-size:13px;color:var(--muted);text-align:center;padding:24px 10px;}
  .displayOpts{display:flex;flex-wrap:wrap;gap:12px 22px;}
  .checkOpt{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:500;color:var(--text);cursor:pointer;text-transform:none;margin:0;}
  .checkOpt input[type=checkbox]{width:16px;height:16px;margin:0;cursor:pointer;accent-color:var(--ink);flex:none;}
  .checkOpt .inlineNum{width:56px;padding:5px 6px;margin-left:2px;}
  .checkOpt .inlineNum:disabled{opacity:.4;}

  .tabNav{display:flex;gap:4px;margin-bottom:18px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:5px;box-shadow:var(--shadow);}
  .tabBtn{flex:1;border:none;background:transparent;color:var(--muted);font-size:13px;font-weight:700;padding:11px 12px;border-radius:9px;cursor:pointer;transition:background .12s,color .12s;}
  .tabBtn.active{background:var(--accent);color:#fff;}
  .tabBtn:hover:not(.active){background:#f1f5f9;}

  .round .roundTitle{cursor:pointer;user-select:none;}
  .roundChevron{display:inline-block;margin-right:7px;color:var(--muted);transition:transform .15s;}
  .round.collapsed .roundChevron{transform:rotate(-90deg);}
  .round.collapsed .roundBody{display:none;}
  .round.collapsed .roundTitle{margin-bottom:0;}
  /* K.O.-Runden einzeln (Zählweise) */
  .koStages{display:flex;flex-direction:column;gap:6px;margin-top:6px;}
  .koStageRow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;}
  .koStageRow .koStageName{min-width:130px;font-weight:600;font-size:13px;}
  .koStageRow select{width:auto;min-width:220px;}
  .koStageRow select + select{min-width:0;}
  .koStageNum{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;color:var(--muted);}
  .koStageNum .inlineNum{width:56px;}
  .koFormat{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#eef6f3;color:var(--accent);font-size:11px;font-weight:600;}
  /* Fixierte Rundentimer-Leiste oben im Ergebnisse-Tab (siehe timerDockHtml());
     --hdrH = Höhe des klebenden Seitenkopfs, gesetzt in render() */
  .timerDock{position:sticky;top:calc(var(--hdrH, 0px) + 8px);z-index:30;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:9px 14px;margin:0 0 16px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 20px rgba(13,21,18,.08);font-size:13px;}
  .timerDock.running{border-color:var(--accent);box-shadow:0 0 0 3px rgba(15,118,110,.12),0 6px 20px rgba(13,21,18,.08);}
  .timerDock .tdLabel{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap;}
  .timerDock .tdRound{font-weight:600;color:var(--muted);}
  .timerDock .tdSeg{display:inline-flex;border:1px solid var(--border);border-radius:9px;overflow:hidden;}
  .timerDock .tdSeg button{border:0;background:#fff;padding:5px 10px;font:inherit;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;}
  .timerDock .tdSeg button.on{background:var(--ink);color:#fff;}
  .timerDock .tdReadout{flex:1;min-width:120px;color:var(--muted);}
  .timerDock .tdTime{font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink);font-size:15px;}
  .timerDock .tdBtns{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
  .timerDock .tdMin{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--muted);margin:0;}
  .timerDock .inlineNum{width:56px;height:32px;padding:4px 6px;}
  .timerDock .tdNext{white-space:nowrap;}
  .timerDock .tdNext.off{opacity:.45;cursor:not-allowed;}
  .timerDock .tdShow{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--muted);margin:0;white-space:nowrap;cursor:pointer;}
  .round.collapsed{padding-top:12px;padding-bottom:12px;}

  /* Wiederverwendbarer einklappbarer Abschnitt -- Banner + "erweiterte"
     Setup-Bereiche (siehe collapsibleSection()/toggleSection()). Standard-
     Optik neutral/grau; .banner überschreibt die Farben für den Info-Hinweis
     oben. */
  .collapsibleSection{border:1px solid var(--border);border-radius:12px;margin-bottom:16px;overflow:hidden;background:#fff;}
  .collapsibleSection .sectionHead{display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:pointer;user-select:none;font-size:13px;font-weight:700;color:var(--text);}
  .collapsibleSection .sectionHead:hover{background:#f8f9fb;}
  .collapsibleSection .sectionChevron{display:inline-block;color:var(--muted);transition:transform .15s;flex:none;}
  .collapsibleSection.closed .sectionChevron{transform:rotate(-90deg);}
  .collapsibleSection .sectionSubtitle{font-weight:500;color:var(--muted);font-size:12px;margin-left:auto;}
  .collapsibleSection .sectionBody{padding:0 16px 16px;}
  .collapsibleSection.closed .sectionBody{display:none;}
  .collapsibleSection.banner{background:transparent;border-color:transparent;margin-top:8px;}
  .collapsibleSection.banner .sectionHead{color:var(--muted);font-weight:600;font-size:12px;}
  .collapsibleSection.banner .sectionBody{color:var(--muted);font-size:12.5px;line-height:1.6;}
  .collapsibleSection.subSection{border-style:dashed;background:#fbfbfc;margin-top:14px;margin-bottom:0;}
  .collapsibleSection.subSection .sectionHead{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:10px 14px;}
  .collapsibleSection.subSection .sectionBody{padding:2px 14px 14px;}

  .ovScroll{overflow-x:auto;margin-top:2px;}
  table.playerOverview{border-collapse:separate;border-spacing:0;font-size:12px;white-space:nowrap;}
  table.playerOverview th,table.playerOverview td{padding:7px 10px;text-align:center;border-bottom:1px solid var(--border);border-right:1px solid var(--border);}
  table.playerOverview th{background:#f8f9fb;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700;}
  table.playerOverview .ovName{text-align:left;font-weight:600;position:sticky;left:0;background:#fff;z-index:1;}
  table.playerOverview thead .ovName{background:#f8f9fb;z-index:2;}
  table.playerOverview th.ovCurrent{background:#e0e7ff;}
  table.playerOverview td.ovCurrent{box-shadow:inset 0 0 0 1.5px var(--ink);}
  .ovCell.ov-pause{color:var(--muted);font-style:italic;background:#f8f9fb;}
  .ovCell.ov-na{color:#d1d5db;}
  .ovLegend{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin-top:10px;}
  .ovLegend span{display:inline-flex;align-items:center;gap:5px;}
  .ovSwatch{width:11px;height:11px;border-radius:3px;display:inline-block;}
