/* ==========================================================================
   Winner Games — ranking gier treningowych (moduł klubowy)
   Własny wygląd, niezależny od systemu wfm/*: biały, niebieski, czerwony.
   Ładowany wyłącznie przez resources/views/winner-games/layout.blade.php.
   ========================================================================== */

@font-face {
  font-family: 'WG Display';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/BarlowCondensed/BarlowCondensed-Bold-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'WG Display';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/BarlowCondensed/BarlowCondensed-Bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'WG Text';
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Geist/Geist-Variable.woff2') format('woff2');
}

:root {
  --wg-blue: #1B4FA0;
  --wg-blue-deep: #101820;
  --wg-blue-soft: #E8EFFA;
  --wg-red: #C8102E;
  --wg-red-deep: #9E0C24;
  --wg-red-soft: #FCEBEE;
  --wg-ink: #101820;
  --wg-muted: #5E6B85;
  --wg-line: #E2E7F0;
  --wg-bg: #F3F5FA;
  --wg-surface: #FFFFFF;
  --wg-gold: #E0A100;
  --wg-green: #16894A;
  --wg-radius: 16px;
  --wg-shadow: 0 1px 2px rgba(14, 26, 51, .05), 0 8px 24px rgba(14, 26, 51, .06);
  --wg-display: 'WG Display', 'Arial Narrow', sans-serif;
  --wg-text: 'WG Text', system-ui, 'Segoe UI', sans-serif;
}

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

body.wg {
  margin: 0;
  min-height: 100vh;
  background: var(--wg-bg);
  color: var(--wg-ink);
  font-family: var(--wg-text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.wg a { color: var(--wg-blue); }
.wg h1, .wg h2, .wg h3 { margin: 0; font-family: var(--wg-display); letter-spacing: .01em; text-transform: uppercase; }
.wg h1 { font-size: 38px; line-height: 1; }
.wg h2 { font-size: 24px; line-height: 1.1; }
.wg h3 { font-size: 18px; }
.wg button, .wg input, .wg select, .wg textarea { font: inherit; color: inherit; }
/* Atrybut hidden ukrywa zawsze — klasy z display (np. .wg-btn, .wg-switch) inaczej go przebijały
   (przycisk „Usuń” był widoczny w oknie nowego dyżuru). */
.wg [hidden] { display: none !important; }
.wg-num { font-variant-numeric: tabular-nums; }
.wg-muted { color: var(--wg-muted); }
.wg-small { font-size: 13px; }

/* ---------- Pasek górny ---------- */
.wg-top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(100deg, var(--wg-red) 0%, #9E0C24 55%, #6E0A16 100%);
  color: #fff;
}
/* Pasek w trzech barwach klubu: niebieski, biały, czerwony. */
.wg-top::after { content: ''; display: block; height: 6px; background: linear-gradient(90deg, #2C4E9C 0 33.333%, #FFFFFF 33.333% 66.666%, #B8302A 66.666% 100%); }
.wg-top .wg-btn--red { background: #fff; color: var(--wg-red-deep) !important; }
.wg-top .wg-btn--red:hover { background: #FCEBEE; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.wg-top__in { width: max(80%, min(100%, 1320px)); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 22px; }
.wg-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none; flex: none; }
.wg-brand__star { width: 42px; height: 42px; border-radius: 10px; flex: none; display: block; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.wg-brand__star img { width: 100%; height: 100%; display: block; }
.wg-brand__name { font-family: var(--wg-display); font-size: 25px; line-height: .95; text-transform: uppercase; letter-spacing: .03em; }
.wg-brand__sub { display: block; font-family: var(--wg-text); font-size: 11px; letter-spacing: .12em; opacity: .75; font-weight: 500; }
.wg-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wg-nav::-webkit-scrollbar { display: none; }
.wg-nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: 14px;
}
.wg-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.wg-nav a.is-active { background: #fff; color: var(--wg-ink); }
.wg-nav .mdi { font-size: 18px; }
.wg-top__side { display: flex; align-items: center; gap: 10px; flex: none; }
.wg-top__user { font-size: 13px; opacity: .8; }

.wg-main { width: max(80%, min(100%, 1320px)); margin: 0 auto; padding: 28px 20px 64px; }
.wg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.wg-head__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wg-red); margin-bottom: 6px; }
.wg-head__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Przyciski, pola ---------- */
.wg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--wg-blue); color: #fff !important; font-weight: 650; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.wg-btn:hover { background: #163F82; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 79, 160, .25); }
.wg-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.wg-btn .mdi { font-size: 18px; }
.wg-btn--red { background: var(--wg-red); }
.wg-btn--red:hover { background: var(--wg-red-deep); box-shadow: 0 6px 16px rgba(215, 20, 26, .28); }
.wg-btn--ghost { background: var(--wg-surface); color: var(--wg-ink) !important; border-color: var(--wg-line); }
.wg-btn--ghost:hover { background: var(--wg-blue-soft); border-color: #C5D4EE; box-shadow: none; }
.wg-btn--danger { background: var(--wg-surface); color: var(--wg-red) !important; border-color: #F3C4C6; }
.wg-btn--danger:hover { background: var(--wg-red-soft); box-shadow: none; }
.wg-btn--sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.wg-btn--icon { width: 34px; min-height: 34px; padding: 0; border-radius: 10px; }
.wg-btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }

.wg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wg-field > span, .wg-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wg-muted); }
.wg-input, .wg-select, .wg-textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--wg-line); background: var(--wg-surface);
}
.wg-textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.wg-input:focus, .wg-select:focus, .wg-textarea:focus { outline: 2px solid var(--wg-blue); outline-offset: 1px; border-color: transparent; }
.wg-input--narrow { width: 96px; text-align: center; }
.wg :focus-visible { outline: 2px solid var(--wg-blue); outline-offset: 2px; }

.wg-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.wg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wg-switch__track { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #C9D1E0; position: relative; transition: background .15s; margin-top: 1px; }
.wg-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.wg-switch input:checked + .wg-switch__track { background: var(--wg-blue); }
.wg-switch input:checked + .wg-switch__track::after { transform: translateX(18px); }
.wg-switch input:focus-visible + .wg-switch__track { outline: 2px solid var(--wg-blue); outline-offset: 2px; }
.wg-switch b { display: block; font-weight: 650; }
.wg-switch small { color: var(--wg-muted); font-size: 13px; }

.wg-choice { display: grid; gap: 10px; }
.wg-choice label { display: block; cursor: pointer; }
.wg-choice input { position: absolute; opacity: 0; }
.wg-choice__box { display: block; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--wg-line); background: var(--wg-surface); }
.wg-choice__box b { display: block; margin-bottom: 3px; }
.wg-choice__box small { color: var(--wg-muted); font-size: 13px; }
.wg-choice input:checked + .wg-choice__box { border-color: var(--wg-blue); background: var(--wg-blue-soft); }
.wg-choice input:focus-visible + .wg-choice__box { outline: 2px solid var(--wg-blue); outline-offset: 2px; }

/* ---------- Karty, komunikaty ---------- */
.wg-card { background: var(--wg-surface); border: 1px solid var(--wg-line); border-radius: var(--wg-radius); box-shadow: var(--wg-shadow); }
.wg-card__body { padding: 22px; }
.wg-card__head { padding: 18px 22px; border-bottom: 1px solid var(--wg-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wg-grid { display: grid; gap: 20px; }
.wg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.wg-stack { display: grid; gap: 16px; }
.wg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wg-flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; background: #E7F6EE; color: #0F6B3A; border: 1px solid #BFE5CF; }
.wg-flash--error { background: var(--wg-red-soft); color: var(--wg-red-deep); border-color: #F3C4C6; }
.wg-empty { text-align: center; padding: 56px 20px; color: var(--wg-muted); }
.wg-empty .mdi { font-size: 48px; color: #B9C4DA; display: block; margin-bottom: 8px; }
.wg-empty b { display: block; color: var(--wg-ink); font-size: 17px; margin-bottom: 4px; }
.wg-note { padding: 12px 14px; border-radius: 12px; background: var(--wg-blue-soft); color: #1A3B78; font-size: 13.5px; }

/* ---------- Awatar, pozycja ---------- */
.wg-av {
  --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, var(--wg-red), #F0484D); color: #fff;
  font-family: var(--wg-display); font-size: calc(var(--s) * .42); letter-spacing: .02em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wg-line);
}
.wg-av img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.wg-av--gk { background: linear-gradient(140deg, #E0A100, #F5CB3D); color: #2B2100; }
.wg-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 999px; background: #EEF1F7; color: #48556E; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; }
.wg-pos--gk { background: #FBE9EA; color: var(--wg-red-deep); }
.wg-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #E7F6EE; color: #0F6B3A; }
.wg-status--injured { background: var(--wg-red-soft); color: var(--wg-red-deep); }
.wg-status--first_team { background: var(--wg-blue-soft); color: var(--wg-blue); }
.wg-status--out { background: #EEF1F7; color: var(--wg-muted); }

/* ---------- Tabele ---------- */
.wg-tablewrap { overflow-x: auto; border-radius: var(--wg-radius); }
.wg-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.wg-table th {
  position: sticky; top: 0; padding: 12px 14px; text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wg-muted); background: #F8F9FC; border-bottom: 1px solid var(--wg-line);
}
.wg-table td { padding: 10px 14px; border-bottom: 1px solid var(--wg-line); vertical-align: middle; }
.wg-table tr:last-child td { border-bottom: 0; }
.wg-table tbody tr:hover td { background: #FAFBFE; }
.wg-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.wg-table .is-center { text-align: center; }
.wg-table .is-avg { font-family: var(--wg-display); font-size: 24px; color: var(--wg-blue); }
.wg-table .is-day { text-align: center; font-variant-numeric: tabular-nums; min-width: 46px; padding-left: 4px; padding-right: 4px; border-left: 1px solid #F0F2F7; }
.wg-table th.is-day { font-size: 11px; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.wg-table td.is-day.is-absent { color: #C3CADB; }
.wg-table td.is-day.is-top { font-weight: 750; color: var(--wg-green); }
.wg-table .is-sticky { position: sticky; left: 0; background: var(--wg-surface); z-index: 1; }
.wg-table th.is-sticky { background: #F8F9FC; z-index: 2; }
.wg-table tbody tr:hover td.is-sticky { background: #FAFBFE; }
.wg-table tr.is-unranked td { color: var(--wg-muted); }
.wg-table tr.is-unranked .wg-av { filter: grayscale(.6); opacity: .8; }

.wg-place { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #EEF1F7; font-family: var(--wg-display); font-size: 19px; }
.wg-place--1 { background: var(--wg-gold); color: #fff; }
.wg-place--2 { background: #9AA6BC; color: #fff; }
.wg-place--3 { background: #B7733A; color: #fff; }
.wg-delta { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; margin-left: 4px; }
.wg-delta--up { color: var(--wg-green); }
.wg-delta--down { color: var(--wg-red); }
.wg-who { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.wg-who__name { font-weight: 650; white-space: nowrap; }

/* ---------- Drużyny (chipy w historii, tablica w edytorze) ---------- */
/* Każda drużyna w osobnym wierszu — składy czyta się z góry na dół. */
.wg-teamline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wg-teamchip { display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; border: 1px solid var(--wg-line); background: var(--wg-surface); font-size: 13px; max-width: 100%; }
.wg-teamchip__pts { display: grid; place-items: center; min-width: 38px; padding: 0 8px; font-family: var(--wg-display); font-size: 19px; background: var(--c, #8A93A6); color: var(--ink, #fff); }
.wg-teamchip__who { padding: 5px 10px; color: #33405A; }

.wg-blocks { display: inline-flex; gap: 8px; }
.wg-blocks label { cursor: pointer; }
.wg-blocks input { position: absolute; opacity: 0; }
.wg-blocks span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #C5CEE0; font-family: var(--wg-display); font-size: 21px; color: var(--wg-muted); background: var(--wg-surface); transition: all .12s; }
.wg-blocks label:hover span { border-color: var(--wg-blue); color: var(--wg-blue); }
.wg-blocks input:checked + span { border-color: var(--wg-blue); background: var(--wg-blue); color: #fff; }
.wg-blocks input:focus-visible + span { outline: 2px solid var(--wg-blue); outline-offset: 2px; }
.wg-blockbadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--wg-blue); color: var(--wg-blue); font-family: var(--wg-display); font-size: 15px; }

.wg-stepper { display: inline-flex; align-items: center; border: 1px solid var(--wg-line); border-radius: 12px; background: var(--wg-surface); overflow: hidden; }
.wg-stepper button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--wg-blue); }
.wg-stepper button:hover { background: var(--wg-blue-soft); }
.wg-stepper input { width: 56px; height: 42px; border: 0; text-align: center; font-family: var(--wg-display); font-size: 22px; background: transparent; -moz-appearance: textfield; }
.wg-stepper input::-webkit-outer-spin-button, .wg-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wg-formgrid { display: grid; grid-template-columns: minmax(200px, 2fr) 170px auto auto; gap: 18px; align-items: end; }

.wg-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.wg-team { border-radius: var(--wg-radius); background: var(--wg-surface); border: 1px solid var(--wg-line); box-shadow: var(--wg-shadow); overflow: hidden; }
.wg-team__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--c); color: var(--ink); }
.wg-team__name { font-family: var(--wg-display); font-size: 21px; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-team__count { font-size: 12px; font-weight: 700; opacity: .85; }
.wg-team__head select { max-width: 132px; min-height: 30px; border-radius: 8px; border: 1px solid rgba(127, 127, 127, .45); background: rgba(255, 255, 255, .92); color: var(--wg-ink); font-size: 12.5px; padding: 2px 6px; }
.wg-team__x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(127, 127, 127, .25); color: inherit; cursor: pointer; display: grid; place-items: center; }
.wg-team__pts { padding: 12px 14px; border-bottom: 1px solid var(--wg-line); }
.wg-ptsbtn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px dashed #B9C4DA; background: #FAFBFE; cursor: pointer; }
.wg-ptsbtn b { font-family: var(--wg-display); font-size: 30px; line-height: 1; color: var(--wg-blue); }
.wg-ptsbtn.is-empty b { color: #B9C4DA; }
.wg-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.wg-tile { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #C5CEE0; background: var(--wg-surface); font-weight: 700; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.wg-tile:hover { border-color: var(--wg-blue); background: var(--wg-blue-soft); }
.wg-tile.is-on { background: var(--wg-red); border-color: var(--wg-red); color: #fff; }
.wg-tiles__other { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--wg-muted); }
.wg-tiles__other input { width: 84px; min-height: 34px; border-radius: 10px; border: 1px solid var(--wg-line); text-align: center; }

.wg-list { min-height: 64px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.wg-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #F6F8FC; border: 1px solid transparent; cursor: grab; user-select: none; touch-action: manipulation; }
.wg-chip:hover { border-color: #C5D4EE; background: var(--wg-blue-soft); }
.wg-chip .wg-av { --s: 36px; }
.wg-chip__name { font-weight: 650; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-chip__meta { font-size: 11.5px; color: var(--wg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-chip__flag { font-size: 11px; font-weight: 750; padding: 1px 6px; border-radius: 6px; background: var(--wg-red); color: #fff; }
.wg-chip--ghost { opacity: .35; }
.wg-chip--drag { box-shadow: 0 10px 28px rgba(14, 26, 51, .25); background: #fff; }
.wg-chip__more { border: 0; background: transparent; cursor: pointer; color: var(--wg-muted); width: 24px; height: 24px; border-radius: 6px; padding: 0; }
.wg-chip__more:hover { background: #fff; color: var(--wg-blue); }
.wg-bench { border: 2px dashed #C5CEE0; border-radius: var(--wg-radius); background: transparent; }
.wg-bench .wg-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.wg-bench__head { padding: 12px 14px 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wg-muted); }

.wg-savebar { position: sticky; bottom: 0; z-index: 20; margin: 24px -20px -64px; padding: 14px 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--wg-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Okna ---------- */
dialog.wg-dialog { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--wg-ink); box-shadow: 0 30px 80px rgba(8, 20, 48, .4); }
dialog.wg-dialog--wide { width: min(1180px, calc(100vw - 24px)); }
dialog.wg-dialog::backdrop { background: rgba(8, 20, 48, .55); backdrop-filter: blur(3px); }
.wg-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--wg-line); position: sticky; top: 0; background: var(--wg-surface); z-index: 2; }
.wg-dialog__body { padding: 22px; }
.wg-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--wg-line); position: sticky; bottom: 0; background: var(--wg-surface); }
.wg-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #EEF1F7; cursor: pointer; font-size: 18px; }

.wg-attend { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.wg-attend label { cursor: pointer; }
.wg-attend input { position: absolute; opacity: 0; }
.wg-attend .wg-chip { cursor: pointer; border: 2px solid transparent; opacity: .5; }
.wg-attend input:checked + .wg-chip { opacity: 1; border-color: var(--wg-blue); background: var(--wg-blue-soft); }
.wg-attend input:focus-visible + .wg-chip { outline: 2px solid var(--wg-blue); }

.wg-photo { display: flex; align-items: center; gap: 16px; }
.wg-photo .wg-av { --s: 84px; }
.wg-swatch { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wg-line); background: var(--c); }
.wg-colorrow { display: grid; grid-template-columns: 52px 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--wg-line); }
.wg-colorrow:last-of-type { border-bottom: 0; }
.wg-colorrow input[type=color] { width: 46px; height: 42px; padding: 2px; border-radius: 12px; border: 1px solid var(--wg-line); background: #fff; cursor: pointer; }
.wg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.wg-linkbox { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #F6F8FC; border: 1px solid var(--wg-line); font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; overflow: hidden; }
.wg-linkbox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .wg-top__in { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px 12px; }
  .wg-nav { order: 3; flex-basis: 100%; }
  .wg-top__user { display: none; }
  .wg-top__side { margin-left: auto; }
  .wg-main { padding: 20px 14px 56px; }
  .wg h1 { font-size: 30px; }
  .wg-formgrid { grid-template-columns: 1fr 1fr; }
  .wg-savebar { margin: 24px -14px -56px; padding: 12px 14px; }
  .wg-table th, .wg-table td { padding: 9px 10px; }
  .wg-who { min-width: 150px; gap: 8px; }
  .wg-who .wg-av { --s: 36px; }
  .wg-colorrow { grid-template-columns: 52px 1fr; }
}
@media (max-width: 520px) {
  .wg-formgrid { grid-template-columns: 1fr; }
  .wg-brand__sub { display: none; }
  .wg-table .is-optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wg *, .wg *::before, .wg *::after { transition: none !important; }
}

/* ---------- Logowanie ---------- */
body.wg-login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; background: var(--wg-surface); }
.wg-login__brand { background: var(--wg-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.wg-login__star { width: min(220px, 46vw); height: auto; display: block; }
.wg-login__title { font-family: var(--wg-display); font-size: 58px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.wg-login__sub { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.wg-login__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; border-left: 6px solid var(--wg-ink); }
.wg-login__box { width: min(400px, 100%); }
@media (max-width: 800px) {
  body.wg-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wg-login__brand { padding: 26px 20px 30px; }
  .wg-login__star { width: 110px; }
  .wg-login__title { font-size: 40px; }
  .wg-login__panel { border-left: 0; border-top: 6px solid var(--wg-ink); align-items: flex-start; padding: 32px 20px; }
}

/* Wyrazna kreska miedzy podsumowaniem a kolumnami treningow. */
.wg-table .is-day.is-day-first { border-left: 2px solid #9AA6BC; }

/* ---------- Ustawienia: spis treści + sekcje (wzór: strona Pomocy) ---------- */
.wg-set { display: flex; gap: 24px; align-items: flex-start; }
.wg-set-nav { display: none; }
.wg-set-main { flex: 1 1 0; min-width: 0; }
@media (min-width: 1100px) {
  .wg-set-nav { display: block; width: 240px; flex: 0 0 240px; position: sticky; top: 96px; }
}
.wg-set-nav__title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wg-muted); margin: 0 0 8px 12px; }
.wg-set-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; color: var(--wg-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.wg-set-nav a:hover { background: #E9EDF4; color: var(--wg-ink); }
.wg-set-nav a.is-active { background: var(--wg-red); color: #fff; }
.wg-set-nav a .mdi { font-size: 18px; }
.wg-set-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.wg-set-quick a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--wg-muted); background: var(--wg-surface); border: 1px solid var(--wg-line); border-radius: 999px; padding: 5px 12px; }
.wg-set-quick a:hover { color: var(--wg-ink); }
@media (min-width: 1100px) { .wg-set-quick { display: none; } }
.wg-set-sec { padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 96px; }
.wg-set-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 4px; }
.wg-set-sec h2 .mdi { color: var(--wg-red); font-size: 24px; }
.wg-set-lead { color: var(--wg-muted); font-size: 14px; margin: 0 0 18px; }
.wg-set-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (max-width: 520px) { .wg-set-sec { padding: 18px 16px; } }
.wg-set-hint { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--wg-blue-soft); color: #1A3B78; font-size: 13.5px; }
.wg-set-hint .mdi { font-size: 18px; flex: none; }
.wg-set-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--wg-line); }

/* ---------- Menu „Zarządzaj” ---------- */
/* Poza .wg-nav celowo: tamten pasek przewija się w poziomie i obciąłby rozwijany panel. */
.wg-menu { position: relative; flex: none; }
.wg-menu summary {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer; list-style: none;
  padding: 9px 8px 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-weight: 600; font-size: 14px; user-select: none;
}
.wg-menu summary::-webkit-details-marker { display: none; }
.wg-menu summary:hover, .wg-menu[open] summary { background: rgba(255, 255, 255, .15); }
.wg-menu summary.is-active { background: #fff; color: var(--wg-ink); border-color: #fff; }
.wg-menu summary .mdi { font-size: 18px; }
.wg-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; padding: 6px;
  background: var(--wg-surface); border: 1px solid var(--wg-line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(8, 20, 48, .28);
}
.wg-menu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--wg-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.wg-menu__panel a:hover { background: var(--wg-blue-soft); }
.wg-menu__panel a.is-active { background: var(--wg-red); color: #fff; }
.wg-menu__panel a .mdi { font-size: 19px; color: var(--wg-muted); }
.wg-menu__panel a.is-active .mdi { color: inherit; }

/* ---------- Dyżury: kalendarz miesiąca ---------- */
.wg-cal { border-radius: 0 0 var(--wg-radius) var(--wg-radius); overflow: hidden; }
.wg-cal__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #F8F9FC; border-bottom: 1px solid var(--wg-line); }
.wg-cal__dow span { padding: 10px 12px; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--wg-muted); }
.wg-cal__week { position: relative; min-height: 124px; border-bottom: 1px solid var(--wg-line); }
.wg-cal__week:last-child { border-bottom: 0; }
.wg-cal__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wg-cal__day { padding: 8px 12px; border-left: 1px solid #F0F2F7; font-variant-numeric: tabular-nums; }
.wg-cal__day:first-child { border-left: 0; }
.wg-cal__day b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font-weight: 650; font-size: 14px; }
.wg-cal__day.is-weekend { background: #FAFBFD; }
.wg-cal__day.is-out b { color: #B9C4DA; font-weight: 500; }
.wg-cal__day.is-today b { background: var(--wg-red); color: #fff; }
.wg-cal__week.is-current .wg-cal__day { background: #FFF8E6; }
.wg-cal__bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 5px; padding: 44px 0 12px; }
.wg-cal__bar {
  display: block; min-width: 0; margin: 0 6px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: var(--c); color: var(--ink); text-align: left; font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 2px 6px rgba(14, 26, 51, .16);
}
/* `.wg button { color: inherit }` jest mocniejsze od samej klasy — stąd podwójny selektor. */
.wg .wg-cal__bar { color: var(--ink); }
button.wg-cal__bar { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
button.wg-cal__bar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 26, 51, .24); }
.wg-cal__bar b { display: block; font-family: var(--wg-display); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; }
.wg-cal__bar span { font-weight: 650; }
/* Dyżur przechodzący przez granicę tygodnia: płaska krawędź = ciąg dalszy obok. */
.wg-cal__bar.is-cont-prev { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wg-cal__bar.is-cont-next { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }

.wg-dutynow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 20px; }
.wg-dutynow__card { padding: 16px 18px; border-radius: var(--wg-radius); background: var(--wg-surface); border: 1px solid var(--wg-line); border-left: 8px solid var(--c); box-shadow: var(--wg-shadow); display: grid; gap: 10px; align-content: start; }
.wg-dutynow__who { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.wg-dutynow__p { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.wg-dutynow__p .wg-av { --s: 36px; }
.wg-dutynow__names { font-weight: 650; }

.wg-dutylist__row { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--wg-line); }
.wg-dutylist__row:last-child { border-bottom: 0; }
.wg-dutylist__row.is-current { background: #FFF8E6; }
.wg-dutylist__when { flex: none; width: 104px; font-weight: 700; }
.wg-dutylist__who { flex: 1; min-width: 0; }

dialog.wg-dialog--mid { width: min(820px, calc(100vw - 24px)); }
.wg-dutyform { display: grid; grid-template-columns: 170px 170px minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.wg-colorinput { width: 56px; height: 42px; padding: 2px; border-radius: 12px; border: 1px solid var(--wg-line); background: #fff; cursor: pointer; }
.wg-dutyswap { padding: 14px 16px; border-radius: 14px; background: #F6F8FC; border: 1px solid var(--wg-line); }
.wg-team__nameinput { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(127, 127, 127, .45); background: rgba(255, 255, 255, .92); color: var(--wg-ink) !important; font-weight: 650; font-size: 14px; }
.wg-team__nameinput::placeholder { color: #6B7690; font-weight: 600; }

@media (max-width: 900px) {
  .wg-menu { order: 2; margin-left: auto; }
  .wg-top__side { margin-left: 0; }
  .wg-menu summary { padding: 7px 6px 7px 12px; }
}
@media (max-width: 700px) {
  .wg-cal__dow span, .wg-cal__day { padding: 8px 4px; text-align: center; }
  .wg-cal__week { min-height: 96px; }
  .wg-cal__bar { margin: 0 3px; padding: 6px 8px; font-size: 12.5px; }
  .wg-dutyform { grid-template-columns: 1fr 1fr; }
  .wg-dutylist__row { padding: 12px 14px; flex-wrap: wrap; }
  .wg-dutylist__who { flex-basis: 100%; order: 5; }
}

/* ---------- Menu konta, przełącznik drużyn ---------- */
.wg-menu__panel form { margin: 0; }
.wg-menu__panel button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--wg-ink); font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.wg-menu__panel button:hover { background: var(--wg-blue-soft); }
.wg-menu__panel button .mdi { font-size: 19px; color: var(--wg-muted); }
.wg-menu__label { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wg-muted); }
.wg-menu__sep { height: 1px; margin: 6px 4px; background: var(--wg-line); }
#wg-account .wg-top__user { max-width: 160px; overflow: hidden; text-overflow: ellipsis; opacity: 1; font-size: 14px; }
.wg-flash--info { background: var(--wg-blue-soft); color: #1A3B78; border-color: #C5D4EE; }

/* ---------- Lista drużyn dla gości ---------- */
.wg-squadgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wg-squadcard { display: grid; gap: 6px; padding: 24px; border-radius: var(--wg-radius); background: var(--wg-surface); border: 1px solid var(--wg-line); border-left: 8px solid var(--wg-red); box-shadow: var(--wg-shadow); text-decoration: none; color: var(--wg-ink) !important; transition: transform .12s ease, box-shadow .12s ease; }
.wg-squadcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 26, 51, .14); }
.wg-squadcard__name { font-family: var(--wg-display); font-size: 34px; line-height: 1; text-transform: uppercase; }

/* ---------- Koło ---------- */
/* Barwy tablicy klubu: granat, czerwień, biel. */
.wg { --wg-navy: #1B2F6B; --wg-navy-deep: #12214F; }
.wg-main--wide { width: min(100%, 1760px); }
.wg-wheelpage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.wg-wheelcol { position: sticky; top: 92px; display: grid; gap: 18px; justify-items: center; }
.wg-wheelbox { display: grid; gap: 8px; justify-items: center; transition: opacity .2s ease, filter .2s ease; }
.wg-wheelbox.is-dim { opacity: .38; filter: grayscale(.5); }
.wg-wheelbox__title { font-family: var(--wg-display); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: var(--wg-navy); }
.wg-wheelbox__title span { font-family: var(--wg-text); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--wg-muted); margin-left: 6px; }

.wg-wheel { --size: clamp(230px, 19vw, 300px); position: relative; width: var(--size); height: var(--size); border-radius: 50%; background: #fff; padding: calc(var(--size) * .028); box-shadow: 0 0 0 3px var(--wg-navy), 0 14px 34px rgba(18, 33, 79, .28); }
.wg-wheel--big { --size: clamp(250px, 21.5vw, 340px); }
.wg-wheelbox.is-active .wg-wheel { box-shadow: 0 0 0 3px var(--wg-navy), 0 0 0 9px rgba(200, 16, 46, .28), 0 14px 34px rgba(18, 33, 79, .28); }
.wg-wheel__rotor { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; transition: transform 4.4s cubic-bezier(.12, .72, .12, 1); will-change: transform; }
.wg-wheel__rotor svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wg-wheel__rotor path { stroke: #fff; stroke-width: .8; }
.wg-wheel__rotor path.is-won { animation: wg-won .42s ease-in-out 5 alternate; }
@keyframes wg-won { to { filter: brightness(1.45); } }
/* Podpis biegnie wzdłuż promienia, od środka na zewnątrz — jak na tablicy trenerów. */
.wg-wheel__label { position: absolute; left: 50%; top: 50%; width: 50%; height: 0; transform-origin: 0 0; transform: rotate(calc(var(--a) - 90deg)); pointer-events: none; }
.wg-wheel__label span { position: absolute; left: 30%; right: 5%; top: 0; transform: translateY(-50%); display: flex; align-items: center; justify-content: flex-end; gap: .35em; font-size: calc(var(--size) * .048); line-height: 1.05; white-space: nowrap; }
.wg-wheel__label b { font-family: var(--wg-display); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.wg-wheel__label .mdi { font-size: 1.25em; flex: none; }
.wg-wheel__pointer { position: absolute; right: calc(var(--size) * -.045); top: 50%; transform: translateY(-50%); width: 0; height: 0; border-style: solid; border-width: calc(var(--size) * .05) calc(var(--size) * .1) calc(var(--size) * .05) 0; border-color: transparent var(--wg-red) transparent transparent; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); z-index: 2; }
.wg .wg-wheel__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; height: 30%; border-radius: 50%; border: 4px solid #fff; background: var(--wg-navy-deep); color: #fff; font-family: var(--wg-display); font-size: calc(var(--size) * .075); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); z-index: 3; transition: transform .12s ease, background .12s ease; }
.wg .wg-wheel__hub:not(:disabled) { background: var(--wg-red); }
.wg .wg-wheel__hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.07); }
.wg .wg-wheel__hub:disabled { cursor: not-allowed; color: rgba(255, 255, 255, .55); }
.wg-wheel__empty { display: grid; place-items: center; height: 100%; padding: 18%; text-align: center; color: var(--wg-muted); font-size: 13px; }
.wg-wheelhint { max-width: 320px; min-height: 42px; padding: 10px 14px; border-radius: 12px; background: var(--wg-surface); border: 1px solid var(--wg-line); text-align: center; font-size: 13.5px; }
.wg-wheelwin { display: grid; justify-items: center; gap: 6px; }
.wg-wheelwin .mdi { font-size: 64px; color: var(--wg-red); line-height: 1; }
.wg-wheelwin p { margin: 0; }

/* Tablica: zawodnik | liczba kręceń | pola małego koła | pola dużego koła */
.wg-wb-scroll { overflow-x: auto; border-radius: var(--wg-radius); border: 2px solid var(--wg-navy); background: var(--wg-surface); box-shadow: var(--wg-shadow); }
.wg-wb { border-collapse: separate; border-spacing: 0; width: 100%; }
.wg-wb th { background: var(--wg-navy); color: #fff; padding: 10px 6px; font-family: var(--wg-display); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; text-align: center; vertical-align: bottom; border-left: 1px solid rgba(255, 255, 255, .22); }
.wg-wb th.wg-wb__who { position: sticky; left: 0; z-index: 3; text-align: left; padding-left: 16px; border-left: 0; font-size: 17px; vertical-align: middle; }
.wg-wb th.wg-wb__count { background: var(--wg-red); width: 132px; min-width: 132px; line-height: 1.1; vertical-align: middle; }
.wg-wb th.wg-wb__field { min-width: 62px; }
.wg-wb th.wg-wb__field .mdi { display: block; font-size: 26px; line-height: 1.1; }
.wg-wb th.wg-wb__field span { display: block; font-size: 12px; line-height: 1.1; margin-top: 3px; white-space: nowrap; }
.wg-wb th.is-big { background: var(--wg-navy-deep); }
.wg-wb td { border-top: 1px solid #D5DCEC; border-left: 1px solid #D5DCEC; padding: 4px; height: 48px; }
.wg-wb .is-big-first { border-left: 3px solid var(--wg-red); }
.wg-wb td.wg-wb__who { position: sticky; left: 0; z-index: 1; background: var(--wg-surface); border-left: 0; padding: 0; min-width: 190px; }
.wg-wb tr.is-selected td { background: #FFF3C9; }
.wg-wb tr.is-selected td.wg-wb__who { box-shadow: inset 5px 0 0 var(--wg-red); }
.wg .wg-wb__pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 12px; border: 0; background: transparent; cursor: pointer; font-weight: 700; text-align: left; white-space: nowrap; }
.wg-wb__pick .wg-av { --s: 36px; }
.wg-wb td.wg-wb__count { text-align: center; cursor: pointer; }
.wg-wb__num { font-family: var(--wg-display); font-size: 24px; color: var(--wg-red); }
.wg-wb__edit { display: inline-flex; align-items: center; gap: 3px; }
.wg-wb__edit b { min-width: 24px; font-family: var(--wg-display); font-size: 22px; text-align: center; }
.wg .wg-wb__edit button { width: 28px; height: 28px; padding: 0; border-radius: 8px; border: 1px solid #B9C4DA; background: #fff; color: var(--wg-navy); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.wg .wg-wb__edit button:hover { background: var(--wg-blue-soft); }
.wg .wg-wb__edit button.is-ok { background: var(--wg-green); border-color: var(--wg-green); color: #fff; }
.wg-wb__cell { text-align: center; white-space: nowrap; }
.wg .wg-mark { width: 24px; height: 24px; padding: 0; margin: 0 1px; border-radius: 50%; border: 0; background: #AEB6C6; color: #fff; cursor: pointer; display: inline-grid; place-items: center; font-size: 14px; vertical-align: middle; }
.wg .wg-mark:hover { background: #8E97AA; }
.wg .wg-mark.is-done { background: var(--wg-green); }
.wg-mark__more { font-size: 11px; font-weight: 700; color: var(--wg-muted); margin-left: 2px; }

/* Ustawienia koła: lista pól */
.wg-wf__head, .wg-wf__row { display: grid; grid-template-columns: 56px minmax(150px, 1fr) minmax(140px, 1.4fr) minmax(150px, 1fr) auto; gap: 10px; align-items: center; }
.wg-wf__head { padding: 0 0 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--wg-muted); }
.wg-wf__rows { display: grid; gap: 8px; margin-bottom: 14px; }
.wg-wf__iconwrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wg-wf__icon { font-size: 26px; width: 30px; text-align: center; color: var(--wg-navy); flex: none; }
.wg-wf__tools { display: inline-flex; gap: 4px; }

@media (max-width: 1100px) {
  .wg-wheelpage { grid-template-columns: minmax(0, 1fr); }
  .wg-wheelcol { position: static; grid-template-columns: repeat(2, auto); justify-content: center; gap: 14px 22px; }
  .wg-wheelhint { grid-column: 1 / -1; max-width: none; width: 100%; }
  .wg-wheel { --size: clamp(150px, 40vw, 280px); }
  .wg-wheel--big { --size: clamp(160px, 43vw, 300px); }
}
@media (max-width: 700px) {
  .wg-wf__head { display: none; }
  .wg-wf__row { grid-template-columns: 56px minmax(0, 1fr); padding: 10px; border: 1px solid var(--wg-line); border-radius: 12px; }
  .wg-wf__row > .wg-input, .wg-wf__row > select.wg-select, .wg-wf__tools { grid-column: 1 / -1; }
  .wg-wb td.wg-wb__who { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .wg .wg-wheel__rotor { transition: transform .6s ease-out !important; }
  .wg-wheel__rotor path.is-won { animation: none; }
}

/* Koło: wynik „leci” z koła do komórki tablicy i maleje do rozmiaru znaczka (wheel.js → fly()). */
.wg-fly { position: fixed; z-index: 60; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 14px; text-align: center; pointer-events: none; border: 4px solid #fff; box-shadow: 0 18px 44px rgba(18, 33, 79, .45); transform: translate(-50%, -50%); }
.wg-fly .mdi { font-size: 52px; line-height: 1; }
.wg-fly b { font-family: var(--wg-display); font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.wg .wg-mark.is-new { animation: wg-mark-in .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wg-mark-in { from { transform: scale(2.2); } to { transform: scale(1); } }
/* Dłuższe nazwy pól („Pranie koszulek”) łamią się w nagłówku zamiast rozpychać kolumnę. */
.wg-wb th.wg-wb__field span { white-space: normal; max-width: 74px; margin-left: auto; margin-right: auto; }
.wg-wheelhint[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .wg .wg-mark.is-new { animation: none; } }

/* Podpis pola skaluje się z liczbą pól (--fs ustawia wheel.js). */
.wg-wheel__label span { left: 26%; font-size: calc(var(--size) * var(--fs, .048)); }

/* Okna SweetAlert2: `.wg button { color: inherit }` zabierało przyciskom biały tekst (szary na granacie i czerwieni). */
.wg .swal2-actions .swal2-styled { color: #fff; font-weight: 700; }

/* ---------- Koło: własne ikony ---------- */
/* Rysunki SVG podpięte pod zwykłą klasę `mdi mdi-wg-…`, żeby widoki i wheel.js nie musiały
   rozróżniać ikon z fontu i własnych. Maska + currentColor = ikona bierze kolor tekstu. */
.mdi-wg-izo::before, .mdi-wg-gel::before, .mdi-wg-bottle::before, .mdi-wg-bar::before,
.mdi-wg-fortune::before, .mdi-wg-ball-plus::before {
  content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; background: currentColor;
  -webkit-mask: var(--wg-icon) center / contain no-repeat; mask: var(--wg-icon) center / contain no-repeat;
}
.mdi-wg-izo::before { --wg-icon: url("../images/winner-games/icons/izo.svg"); }
.mdi-wg-gel::before { --wg-icon: url("../images/winner-games/icons/bear.svg"); }
.mdi-wg-bottle::before { --wg-icon: url("../images/winner-games/icons/bottle.svg"); }
.mdi-wg-bar::before { --wg-icon: url("../images/winner-games/icons/bar.svg"); }
.mdi-wg-fortune::before { --wg-icon: url("../images/winner-games/icons/fortune.svg"); }
.mdi-wg-ball-plus::before { --wg-icon: url("../images/winner-games/icons/ball-plus.svg"); }

/* ---------- Koło: większe koła, zawijane podpisy, kolumny stałej szerokości ---------- */
.wg-wheel { --size: clamp(280px, 24vw, 400px); }
.wg-wheel--big { --size: clamp(300px, 26vw, 440px); }
.wg-wheel__label span { left: 25%; right: 4%; white-space: normal; }
.wg-wheel__label b { overflow: visible; text-overflow: clip; text-align: center; line-height: .98; overflow-wrap: anywhere; }
.wg-wheel__label .mdi { font-size: 1.35em; }

.wg-wb { table-layout: fixed; width: max-content; min-width: 100%; }
.wg-wb th.wg-wb__who, .wg-wb td.wg-wb__who { width: 200px; min-width: 200px; }
.wg-wb th.wg-wb__count { width: 96px; min-width: 96px; font-size: 13px; white-space: normal; padding: 8px 6px; }
.wg-wb th.wg-wb__field { width: 70px; min-width: 70px; max-width: 70px; }
.wg-wb th.wg-wb__field span { max-width: none; overflow-wrap: anywhere; }
.wg-wb td.wg-wb__count { padding: 2px; }
.wg-wb__edit { display: grid; grid-template-columns: 26px 22px 26px; gap: 2px; justify-content: center; align-items: center; }
.wg-wb__edit b { min-width: 0; font-size: 20px; }
.wg .wg-wb__edit button { width: 26px; height: 22px; border-radius: 6px; font-size: 15px; }
.wg .wg-wb__edit button.is-ok { grid-column: 1 / -1; width: 100%; height: 18px; }
.wg .wg-wb__pick span:last-child { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .wg-wheel { --size: clamp(160px, 44vw, 340px); }
  .wg-wheel--big { --size: clamp(170px, 46vw, 360px); }
}
@media (max-width: 700px) {
  .wg-wb th.wg-wb__who, .wg-wb td.wg-wb__who { width: 160px; min-width: 160px; }
}

/* ---------- Koło: poprawki układu (2026-11-17) ---------- */
/* Koła o krok mniejsze — tablica ma się mieścić obok nich bez przewijania w poziomie. */
.wg-wheel { --size: clamp(240px, 20vw, 330px); }
.wg-wheel--big { --size: clamp(260px, 22vw, 360px); }
.wg .wg-wheel__hub { width: 22%; height: 22%; border-width: 3px; font-size: calc(var(--size) * .055); }
/* Podpis na środku pola (między przyciskiem a krawędzią): ikona, mała przerwa, tekst zawinięty do lewej. */
.wg-wheel__label span { left: 25%; right: 5%; justify-content: center; gap: .28em; }
.wg-wheel__label b { max-width: 4.7em; text-align: left; }
.wg-wheel__label .mdi { font-size: 1.3em; }

/* Tablica na całą dostępną szerokość: kolumny pól równe, nazwy zawijane. Poniżej minimum przewija się. */
.wg-wb { table-layout: fixed; width: 100%; min-width: calc(242px + var(--cols, 15) * 46px); }
.wg-wb th.wg-wb__who, .wg-wb td.wg-wb__who { width: 190px; min-width: 190px; }
.wg-wb th.wg-wb__count { width: 52px; min-width: 52px; padding: 6px 2px; font-size: 11px; line-height: 1.05; overflow-wrap: anywhere; }
.wg-wb th.wg-wb__field { width: auto; min-width: 0; max-width: none; padding: 8px 2px; }
.wg-wb th.wg-wb__field .mdi { font-size: 24px; }
.wg-wb th.wg-wb__field span { font-size: 11px; }
/* Czerwona kreska oddziela liczbę kręceń od kar; granatowa — małe koło od dużego. */
.wg-wb th.wg-wb__count + th, .wg-wb td.wg-wb__count + td { border-left: 3px solid var(--wg-red); }
.wg-wb .is-big-first { border-left: 3px solid var(--wg-navy); }
.wg-wb th.is-big-first { border-left-color: #fff; }
.wg-wb td.wg-wb__count { position: relative; padding: 0; overflow: visible; }
.wg-wb__num { font-size: 22px; }
/* Przyciski − liczba + ✓ nie mieszczą się w wąskiej kolumnie — wysuwają się jako dymek nad sąsiednie komórki. */
.wg-wb__edit { position: absolute; left: 3px; top: 50%; transform: translateY(-50%); z-index: 4; display: inline-flex; grid-template-columns: none; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 12px; background: #fff; border: 2px solid var(--wg-navy); box-shadow: 0 8px 20px rgba(18, 33, 79, .28); white-space: nowrap; }
.wg-wb__edit b { min-width: 26px; font-size: 22px; }
.wg .wg-wb__edit button { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
.wg .wg-wb__edit button.is-ok { grid-column: auto; width: 30px; height: 30px; }
.wg-mark__more { display: block; margin: 0; line-height: 1; }

@media (max-width: 1100px) {
  .wg-wheel { --size: clamp(150px, 42vw, 300px); }
  .wg-wheel--big { --size: clamp(160px, 44vw, 320px); }
}
@media (max-width: 700px) {
  .wg-wb th.wg-wb__who, .wg-wb td.wg-wb__who { width: 150px; min-width: 150px; }
  .wg-wb { min-width: calc(202px + var(--cols, 15) * 46px); }
}

/* ---------- Kartka z kodem QR (widok zawodników) ---------- */
body.wg-qr { background: #E9EDF4; }
.wg-qr__tools { display: flex; gap: 10px; justify-content: center; padding: 18px 16px 0; }
.wg-qr__sheet { width: min(100% - 32px, 620px); margin: 18px auto 40px; padding: 44px 36px 40px; background: #fff; border-radius: 18px; border-top: 14px solid var(--wg-red); box-shadow: var(--wg-shadow); text-align: center; }
.wg-qr__brand { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; margin-bottom: 26px; }
.wg-qr__brand img { border-radius: 16px; display: block; }
.wg-qr__name { font-family: var(--wg-display); font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.wg-qr__squad { font-family: var(--wg-display); font-size: 26px; text-transform: uppercase; color: var(--wg-red); }
.wg-qr__lead { margin: 0 0 18px; font-size: 19px; color: var(--wg-muted); }
.wg-qr__code svg { width: min(100%, 260px); height: auto; display: block; margin: 0 auto; }
@media print {
  @page { size: A4 portrait; margin: 18mm; }
  body.wg-qr { background: #fff; }
  .wg-qr__tools { display: none; }
  .wg-qr__sheet { width: 100%; margin: 0; box-shadow: none; border-radius: 0; padding-top: 30px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Logowanie: „Zapamiętaj mnie” */
.wg-login__remember { white-space: normal; font-size: 14px; }
.wg-login__remember input { width: 18px; height: 18px; accent-color: var(--wg-red); flex: none; }
.wg-login__remember small { color: var(--wg-muted); font-size: 13px; }

/* Ustawienia koła: podgląd trybu dużego koła („5 → duże, potem małe”). */
.wg-modeplan { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--wg-navy); }
.wg-modeplan b { font-family: var(--wg-display); font-size: 15px; }

/* ---------- Tablica: urodziny ---------- */
.wg-bday-today { padding: 22px 24px; border-radius: var(--wg-radius); background: var(--wg-surface); border: 1px solid var(--wg-line); box-shadow: var(--wg-shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.wg-bday-today h2 { flex-basis: 100%; display: flex; align-items: center; gap: 10px; font-size: 24px; }
.wg-bday-today h2 .mdi { color: var(--wg-red); font-size: 28px; }
.wg-bday-today.has-party { background: linear-gradient(110deg, var(--wg-red) 0%, #9E0C24 60%, #6E0A16 100%); color: #fff; border-color: transparent; }
.wg-bday-today.has-party h2 .mdi { color: #fff; }
.wg-bday-card { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.wg-bday-card .wg-av { --s: 56px; }
.wg-bday-card__name { font-family: var(--wg-display); font-size: 24px; text-transform: uppercase; line-height: 1; }
.wg-bday-card__age { font-size: 14px; opacity: .9; margin-top: 3px; }
.wg-bday-list { list-style: none; margin: 0; padding: 0; }
.wg-bday-list li { display: grid; grid-template-columns: 128px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 22px; border-bottom: 1px solid var(--wg-line); }
.wg-bday-list li:last-child { border-bottom: 0; }
.wg-bday-list .wg-av { --s: 38px; }
.wg-bday-list__when { font-size: 13px; color: var(--wg-muted); }
.wg-bday-list__when b { font-family: var(--wg-display); font-size: 20px; color: var(--wg-ink); margin-right: 4px; }
.wg-bday-list__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-bday-list__age { font-size: 13px; color: var(--wg-muted); }
.wg-bday-list li.is-past { opacity: .55; }
.wg-bday-list li.is-today { background: #FFF3C9; }
@media (max-width: 520px) { .wg-bday-list li { grid-template-columns: 92px 34px minmax(0, 1fr); padding: 10px 14px; } .wg-bday-list__age { display: none; } }

/* Kartka QR: co zawodnik znajdzie pod kodem. */
.wg-qr__list { list-style: none; display: inline-grid; gap: 8px; margin: 0 0 22px; padding: 0; text-align: left; font-size: 18px; font-weight: 600; }
.wg-qr__list .mdi { color: var(--wg-red); font-size: 22px; margin-right: 10px; vertical-align: -3px; }
.wg-wb--public .wg-wb__pick { cursor: default; }
.wg-wb--public .wg-mark { cursor: default; }

/* Kalendarz do pól daty (datepicker.js) — pole „dd.mm.rrrr” + dymek w stylu bootstrap-datepicker. */
.wg .wg-dp { position: relative; display: block; min-width: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.wg .wg-dp > .wg-dp__text { padding-right: 44px; font-variant-numeric: tabular-nums; }
.wg .wg-dp.is-open > .wg-dp__text { outline: 2px solid var(--wg-blue); outline-offset: 1px; border-color: transparent; }
.wg .wg-dp__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--wg-muted); font-size: 20px; cursor: pointer; }
.wg .wg-dp__btn:hover, .wg .wg-dp.is-open > .wg-dp__btn { background: var(--wg-blue-soft); color: var(--wg-blue); }
.wg .wg-dp-pop { position: fixed; z-index: 1000; width: 300px; padding: 12px; background: var(--wg-surface); color: var(--wg-ink); border: 1px solid var(--wg-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(14, 26, 51, .18), 0 2px 6px rgba(14, 26, 51, .08); font-family: var(--wg-text); user-select: none; }
.wg .wg-dp-pop[hidden] { display: none; }
.wg .wg-dp-pop__head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.wg .wg-dp-pop__nav, .wg .wg-dp-pop__title { height: 36px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.wg .wg-dp-pop__nav { flex: none; width: 36px; display: grid; place-items: center; font-size: 22px; color: var(--wg-muted); }
.wg .wg-dp-pop__title { flex: 1; font-size: 15px; font-weight: 750; }
.wg .wg-dp-pop__title:disabled { cursor: default; }
.wg .wg-dp-pop__nav:hover, .wg .wg-dp-pop__title:hover:not(:disabled) { background: #EEF1F7; color: var(--wg-ink); }
.wg .wg-dp-pop__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wg .wg-dp-pop__grid--wide { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wg .wg-dp-pop__dow { padding: 4px 0 6px; text-align: center; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--wg-muted); }
.wg .wg-dp-pop__dow:nth-child(n+6):nth-child(-n+7) { color: var(--wg-red); }
.wg .wg-dp-pop__cell { height: 36px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.wg .wg-dp-pop__grid--wide .wg-dp-pop__cell { height: 50px; font-weight: 600; }
.wg .wg-dp-pop__cell:hover:not(:disabled) { background: #EEF1F7; }
.wg .wg-dp-pop__cell.is-other { color: #A9B2C4; }
.wg .wg-dp-pop__cell.is-range { background: var(--wg-red-soft); border-radius: 0; }
.wg .wg-dp-pop__cell.is-edge { background: #F3C5CD; color: var(--wg-red-deep); font-weight: 750; }
.wg .wg-dp-pop__cell.is-today { box-shadow: inset 0 0 0 2px var(--wg-blue); color: var(--wg-blue); font-weight: 750; }
.wg .wg-dp-pop__cell.is-sel { background: var(--wg-red); color: #fff; font-weight: 750; box-shadow: none; }
.wg .wg-dp-pop__cell.is-sel:hover { background: var(--wg-red-deep); }
.wg .wg-dp-pop__cell:disabled { color: #CDD4E1; cursor: not-allowed; }
.wg .wg-dp-pop__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wg-line); }
.wg .wg-dp-pop__link { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--wg-blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wg .wg-dp-pop__link:hover { background: var(--wg-blue-soft); }
.wg .wg-dp-pop__link--muted { color: var(--wg-muted); }
.wg .wg-dp-pop__link--muted:hover { background: #EEF1F7; color: var(--wg-ink); }
@media (max-width: 380px) { .wg-dp-pop { width: calc(100vw - 16px); } }

/* ---------- Urodziny: bieżący miesiąc + cały rok, przypomnienie ---------- */
.wg-bday-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 920px) { .wg-bday-cols { grid-template-columns: minmax(0, 1fr); } }
.wg-bday-month__title { margin: 0; padding: 10px 22px 8px; background: #F6F8FC; border-bottom: 1px solid var(--wg-line); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--wg-muted); }
.wg-bday-month.is-current .wg-bday-month__title { color: var(--wg-red); }
.wg-bday-month + .wg-bday-month .wg-bday-month__title { border-top: 1px solid var(--wg-line); }
.wg-card.is-hide-past .is-past { display: none; }
.wg-bday-remind { width: min(600px, calc(100vw - 24px)); }
.wg-bday-remind .wg-dialog__head h2 { display: flex; align-items: center; gap: 10px; }
.wg-bday-remind .wg-dialog__head h2 .mdi { color: var(--wg-red); font-size: 26px; }
.wg-bday-remind__title { margin: 0 0 4px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--wg-muted); }
.wg-bday-list--compact li { padding: 9px 0; grid-template-columns: 118px 38px minmax(0, 1fr) auto; }
.wg-bday-list--compact li.is-today { margin: 0 -10px; padding: 9px 10px; border-radius: 12px; }
.wg-bday-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.wg-bday-tag.is-today { background: var(--wg-gold); color: #fff; }
.wg-bday-tag.is-soon { background: var(--wg-blue-soft); color: var(--wg-blue); }
.wg-bday-tag.is-gone { background: #EEF1F7; color: var(--wg-muted); }
@media (max-width: 520px) { .wg-bday-list--compact li { grid-template-columns: 86px 34px minmax(0, 1fr); } .wg-bday-list--compact .wg-bday-list__age { display: block; grid-column: 3; } }


/* ---------- Historia zmian ---------- */
.wg-hist-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 18px 20px; }
.wg-hist-filter__tools { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .wg-hist-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wg-hist-filter__tools { grid-column: 1 / -1; } }
@media (max-width: 560px) { .wg-hist-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wg-hist-filter > .wg-field:first-child, .wg-hist-filter > .wg-field:nth-child(2), .wg-hist-filter > .wg-field:nth-child(5) { grid-column: 1 / -1; } }
.wg-hist { list-style: none; margin: 0; padding: 0; }
.wg-hist__day { padding: 10px 22px 8px; background: #F6F8FC; border-bottom: 1px solid var(--wg-line); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--wg-muted); }
.wg-hist__row + .wg-hist__day { border-top: 1px solid var(--wg-line); }
.wg-hist__row { display: grid; grid-template-columns: 52px 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 22px; border-bottom: 1px solid var(--wg-line); }
.wg-hist__row:last-child { border-bottom: 0; }
.wg-hist__time { padding-top: 6px; font-weight: 700; color: var(--wg-muted); }
.wg-hist__area { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--wg-blue-soft); color: var(--wg-blue); font-size: 18px; }
.wg-hist__body { min-width: 0; padding-top: 5px; }
.wg-hist__what { overflow-wrap: anywhere; }
.wg-hist__change { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--wg-ink); }
.wg-hist__change .mdi { color: var(--wg-muted); }
.wg-hist__old { color: var(--wg-muted); text-decoration: line-through; text-decoration-color: rgba(94, 107, 133, .45); }
.wg-hist__details { margin-top: 6px; font-size: 13px; }
.wg-hist__details summary { cursor: pointer; color: var(--wg-blue); font-weight: 650; }
.wg-hist__details > div { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #F6F8FC; white-space: pre-line; color: var(--wg-ink); }
.wg-hist__who { padding-top: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .wg-hist__row { grid-template-columns: 44px 30px minmax(0, 1fr); padding: 12px 14px; }
  .wg-hist__who { grid-column: 3; padding-top: 0; color: var(--wg-muted); font-weight: 600; }
  .wg-hist__area { width: 30px; height: 30px; font-size: 16px; }
}

/* Ustawienia: „Drukuj kod QR dla zawodników” pod spisem sekcji (i w skrótach na węższych ekranach). */
.wg-set-nav a.wg-set-nav__qr { margin-top: 12px; padding: 10px 12px; background: var(--wg-red-soft); color: var(--wg-red-deep); font-weight: 700; }
.wg-set-nav a.wg-set-nav__qr:hover { background: var(--wg-red); color: #fff; }
.wg-set-quick a.wg-set-quick__qr { background: var(--wg-red-soft); color: var(--wg-red-deep); }
.wg-set-quick a.wg-set-quick__qr:hover { background: var(--wg-red); color: #fff; }

/* Koło: „+” w kratce — ręczne dopisanie znaczka. Na komputerze widać go po najechaniu na kratkę,
   na ekranie dotykowym (bez najechania) w wybranym wierszu. W pustej kratce na środku, przy znaczkach z boku. */
.wg-wb__cell { position: relative; }
.wg .wg-mark-add {
  display: none; position: absolute; top: 50%; right: 3px; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1.5px dashed #9AA3B5; background: #fff;
  color: #6B7489; font-size: 15px; line-height: 1; cursor: pointer; place-items: center;
}
.wg .wg-mark-add:only-child { right: auto; left: 50%; transform: translate(-50%, -50%); }
.wg .wg-mark-add:hover, .wg .wg-mark-add:focus-visible { border-style: solid; border-color: var(--wg-red); background: var(--wg-red); color: #fff; }
.wg .wg-mark-add:focus-visible, .wg-wb tr.is-selected .wg-mark-add { display: inline-grid; }
@media (hover: hover) { .wg-wb__cell:hover .wg-mark-add { display: inline-grid; } }
