/* Demo aplikacji klubowej — style. Kolory klubu w zmiennych --klub i --akcent (przemalowanie na żywo w Ustawieniach). */
:root {
  --klub: #1f7a3a; --klub-ciemny: #155c2b; --klub-jasny: #e6f2ea; --akcent: #f2b705;
  --tlo: #f3f5f4; --karta: #ffffff; --tekst: #16201b; --szary: #5d6964; --szary2: #8a9590; --linia: #e1e7e4;
  --czerwony: #c42b2b; --czerwony-tlo: #fdecec; --zolty-tlo: #fff6d6; --zolty: #8a6400; --niebieski: #1f5fbf; --niebieski-tlo: #e8f0fc; --zielony-tlo: #e5f4ea; --zielony: #16703a;
  --karta2: #fafbfb; --pole: #ffffff; --chip: #eef1f0; --tab: #e8ecea; --tor: #cfd8d4; --tor2: #e9eeec; --hover: #f7faf8; --wiersz-nowy: #f3faf5;
  --podp-tlo: #fffaea; --podp-ramka: #d6b85a; --podp-tekst: #5c4a10; --rama: #1a2224; --klub-tekst: #1f7a3a;
  --czerwony-pelny: #c42b2b; --zielony-pelny: #16703a; --zolty-pelny: #f2c230;
  --r: 14px; --cien: 0 1px 2px rgba(16,32,24,.06), 0 4px 14px rgba(16,32,24,.06);
  --demo: #10171a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--tekst); background: var(--tlo); -webkit-text-size-adjust: 100%; }
a { color: var(--klub-tekst); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.ukryj { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── pasek demo (poza aplikacją) ── */
.demo-bar { position: sticky; top: 0; z-index: 50; background: var(--demo); color: #e8eeeb; display: flex; align-items: center; gap: 10px; padding: 8px 14px; flex-wrap: wrap; font-size: 13.5px; }
.demo-bar .znak { font-weight: 700; letter-spacing: .06em; background: var(--akcent); color: #1b1400; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.demo-bar .opis { color: #b9c5c0; margin-right: auto; }
.demo-bar .role { display: flex; gap: 4px; background: #1d2629; border-radius: 10px; padding: 3px; }
.demo-bar .role a { color: #cfd9d5; text-decoration: none; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.demo-bar .role a.akt { background: #fff; color: var(--demo); font-weight: 600; }
.demo-bar button { background: #26323a; border: 0; color: #e8eeeb; padding: 6px 10px; border-radius: 8px; }
.demo-bar button:hover { background: #33424b; }
@media (max-width: 720px) { .demo-bar .opis { display: none; } .demo-bar { gap: 6px; } .demo-bar .role a { padding: 5px 7px; } .demo-bar .db-tekst { display: none; } }

/* ── układ: telefon (rodzic, trener) ── */
.scena { display: flex; justify-content: center; gap: 28px; padding: 22px 16px 60px; align-items: flex-start; }
.telefon { width: 100%; max-width: 430px; background: var(--tlo); border-radius: 34px; box-shadow: 0 0 0 10px var(--rama), 0 24px 60px rgba(0,0,0,.25); overflow: hidden; position: relative; min-height: 780px; display: flex; flex-direction: column; }
.boczny-opis { width: 330px; position: sticky; top: 70px; }
.boczny-opis h3 { font-size: 17px; margin-bottom: 8px; }
.boczny-opis p { color: var(--szary); margin: 0 0 10px; }
.boczny-opis ul { padding-left: 18px; color: var(--szary); margin: 0 0 12px; }
.boczny-opis li { margin: 4px 0; }
@media (max-width: 860px) {
  .scena { padding: 0; display: block; }
  .telefon { max-width: none; border-radius: 0; box-shadow: none; min-height: calc(100vh - 44px); }
  .boczny-opis { display: none; }
}
.app-head { background: var(--klub); color: #fff; padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px; }
.app-head .herb { width: 36px; height: 36px; flex: none; }
.app-head .nazwa { font-weight: 700; font-size: 15.5px; line-height: 1.15; }
.app-head .pod { font-size: 12.5px; opacity: .85; }
.app-head .dzwonek { margin-left: auto; position: relative; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.licznik { position: absolute; top: -4px; right: -4px; background: var(--akcent); color: #1b1400; font-size: 11px; font-weight: 700; border-radius: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.app-tresc { flex: 1; padding: 14px 14px 90px; overflow-y: auto; }
.dolne-menu { position: sticky; bottom: 0; background: var(--karta); border-top: 1px solid var(--linia); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.dolne-menu a { text-decoration: none; color: var(--szary2); display: grid; justify-items: center; gap: 2px; font-size: 11.5px; padding: 4px 0; position: relative; }
.dolne-menu a svg { width: 23px; height: 23px; }
.dolne-menu a.akt { color: var(--klub-tekst); font-weight: 600; }
.dolne-menu .kropka { position: absolute; top: 2px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--czerwony); }

/* ── układ: panel zarządu ── */
.panel { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 44px); }
.panel-menu { background: var(--karta); border-right: 1px solid var(--linia); padding: 16px 10px; position: sticky; top: 44px; height: calc(100vh - 44px); overflow-y: auto; }
.panel-menu .klub-nag { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.panel-menu .klub-nag .herb { width: 38px; height: 38px; }
.panel-menu a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--szary); padding: 9px 10px; border-radius: 10px; font-size: 14.5px; }
.panel-menu a svg { width: 19px; height: 19px; flex: none; }
.panel-menu a.akt { background: var(--klub-jasny); color: var(--klub-ciemny); font-weight: 600; }
.panel-menu a .ile { margin-left: auto; background: var(--czerwony-pelny); color: #fff; border-radius: 10px; font-size: 11.5px; padding: 0 7px; font-weight: 600; }
.panel-glowny { padding: 22px 26px 60px; max-width: 1240px; min-width: 0; }
.panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-top h1 { font-size: 23px; margin-right: auto; }
.panel-top .dzwonek { position: relative; background: var(--karta); border: 1px solid var(--linia); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tekst); }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel-menu { position: static; height: auto; display: flex; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--linia); }
  .panel-menu .klub-nag { display: none; }
  .panel-menu a { white-space: nowrap; padding: 7px 10px; }
  .panel-glowny { padding: 16px 14px 60px; }
}

/* ── elementy ── */
.karta { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: 14px 15px; margin-bottom: 12px; }
.karta h3 { font-size: 15.5px; margin-bottom: 6px; }
.karta .meta { color: var(--szary); font-size: 13.5px; }
.sekcja-tytul { font-size: 13px; font-weight: 700; color: var(--szary); text-transform: uppercase; letter-spacing: .05em; margin: 18px 2px 8px; }
.wiersz { display: flex; align-items: center; gap: 10px; }
.wiersz .rozciagnij { flex: 1; min-width: 0; }
.przerwa { height: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px; padding: 9px 14px; font-weight: 600; font-size: 14px; background: var(--klub); color: #fff; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.jasny { background: var(--klub-jasny); color: var(--klub-ciemny); }
.btn.obrys { background: var(--karta); color: var(--tekst); border: 1px solid var(--linia); }
.btn.czerwony { background: var(--czerwony-tlo); color: var(--czerwony); }
.btn.maly { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn.pelny { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.przyciski { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; background: var(--chip); color: var(--szary); white-space: nowrap; }
.chip.ok { background: var(--zielony-tlo); color: var(--zielony); }
.chip.uwaga { background: var(--zolty-tlo); color: var(--zolty); }
.chip.zle { background: var(--czerwony-tlo); color: var(--czerwony); }
.chip.info { background: var(--niebieski-tlo); color: var(--niebieski); }
.chip.klub { background: var(--klub-jasny); color: var(--klub-ciemny); }
.wybor-dzieci { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 10px; }
.wybor-dzieci button { border: 1px solid var(--linia); background: var(--karta); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.wybor-dzieci button.akt { background: var(--klub); border-color: var(--klub); color: #fff; }
.alert { border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.alert.zolty { background: var(--zolty-tlo); }
.alert.czerwony { background: var(--czerwony-tlo); }
.alert.niebieski { background: var(--niebieski-tlo); }
.alert.zielony { background: var(--zielony-tlo); }
.alert .ikona { font-size: 20px; line-height: 1.2; }
.alert b { display: block; }
.wydarzenie { display: flex; gap: 12px; }
.wydarzenie .data-blok { width: 52px; flex: none; align-self: flex-start; text-align: center; background: var(--klub-jasny); color: var(--klub-ciemny); border-radius: 12px; padding: 6px 0; }
.wydarzenie .data-blok .dzien { font-size: 20px; font-weight: 800; line-height: 1.1; }
.wydarzenie .data-blok .mies { font-size: 11.5px; text-transform: uppercase; font-weight: 700; }
.wydarzenie.odwolane .data-blok { background: var(--czerwony-tlo); color: var(--czerwony); }
.wydarzenie.odwolane h3 { text-decoration: line-through; color: var(--szary); }
.lista { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); overflow: hidden; margin-bottom: 12px; }
.lista .poz { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--linia); }
.lista .poz:first-child { border-top: 0; }
.lista .poz .rozciagnij { flex: 1; min-width: 0; }
.lista .poz .maly { color: var(--szary); font-size: 13px; }
.awatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: #fff; background: var(--klub); flex: none; }
.obecnosc-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--linia); background: var(--karta); font-size: 19px; font-weight: 800; }
.obecnosc-btn.o { background: var(--zielony-tlo); border-color: #9fd4b0; color: var(--zielony); }
.obecnosc-btn.n { background: var(--czerwony-tlo); border-color: #f0b3b3; color: var(--czerwony); }
.obecnosc-btn.u { background: var(--zolty-tlo); border-color: #ecd486; color: var(--zolty); }
.pasek-postepu { height: 8px; border-radius: 6px; background: var(--tor2); overflow: hidden; }
.pasek-postepu > i { display: block; height: 100%; background: var(--klub); border-radius: 6px; }
.kropki { display: inline-flex; gap: 3px; }
.kropki i { width: 10px; height: 10px; border-radius: 50%; background: var(--tor2); }
.kropki i.pelna { background: var(--klub); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: 0; background: var(--tab); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--szary); white-space: nowrap; }
.tabs button.akt { background: var(--tekst); color: var(--tlo); }
.pole { display: block; margin-bottom: 12px; }
.pole > span { display: block; font-size: 13px; font-weight: 600; color: var(--szary); margin-bottom: 4px; }
.pole input, .pole select, .pole textarea { width: 100%; border: 1px solid var(--linia); border-radius: 10px; padding: 9px 11px; background: var(--pole); }
.pole textarea { min-height: 90px; resize: vertical; }
.pole input[type=checkbox], .pole input[type=radio] { width: auto; padding: 0; flex: none; }
.przelacznik { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linia); }
.przelacznik:first-child { border-top: 0; }
.przelacznik .rozciagnij { flex: 1; }
.przelacznik input { display: none; }
.przelacznik .tor { width: 44px; height: 26px; border-radius: 13px; background: var(--tor); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.przelacznik .tor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.przelacznik input:checked + .tor { background: var(--klub); }
.przelacznik input:checked + .tor::after { left: 21px; }

/* tabele (zarząd) */
.tabela-wrap { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); overflow-x: auto; margin-bottom: 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12.5px; color: var(--szary); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--linia); background: var(--karta2); white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--linia); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.klik { cursor: pointer; }
table.t tr.klik:hover td { background: var(--hover); }
.kpi-siatka { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: 14px 16px; }
.kpi .etykieta { color: var(--szary); font-size: 13px; font-weight: 600; }
.kpi .wartosc { font-size: 27px; font-weight: 800; margin: 2px 0; letter-spacing: -.01em; }
.kpi .pod { color: var(--szary); font-size: 12.5px; }
.siatka2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.siatka3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .siatka2, .siatka3 { grid-template-columns: 1fr; } }
.slupki { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 4px 0; }
.slupki .s { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.slupki .s i { display: block; width: 100%; max-width: 46px; background: var(--klub); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.slupki .s b { font-size: 12.5px; }
.slupki .s span { font-size: 11.5px; color: var(--szary); text-align: center; }
.grafik { display: grid; grid-template-columns: 110px repeat(7, minmax(92px, 1fr)); font-size: 12.5px; min-width: 820px; }
.grafik > div { border-bottom: 1px solid var(--linia); border-right: 1px solid var(--linia); padding: 6px; min-height: 58px; }
.grafik .nag { background: var(--karta2); font-weight: 700; color: var(--szary); min-height: 0; }
.grafik .blok { background: var(--klub-jasny); color: var(--klub-ciemny); border-radius: 7px; padding: 4px 6px; margin-bottom: 4px; font-weight: 600; }
.grafik .blok.mecz { background: var(--niebieski-tlo); color: var(--niebieski); }
.szukaj { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.szukaj input, .szukaj select { border: 1px solid var(--linia); border-radius: 10px; padding: 8px 11px; background: var(--pole); }
.szukaj input { flex: 1; min-width: 180px; }

/* modal, toast, podpowiedzi */
.zaslona { position: fixed; inset: 0; background: rgba(12,20,16,.45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .zaslona { align-items: center; padding: 20px; } }
.okno { background: var(--karta); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 18px 18px 22px; max-height: 90vh; overflow-y: auto; animation: wjazd .2s ease; }
@media (min-width: 640px) { .okno { border-radius: 20px; } }
.okno.szerokie { max-width: 760px; }
.okno h2 { font-size: 19px; margin-bottom: 4px; }
.okno .zamknij { float: right; border: 0; background: var(--chip); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; }
@keyframes wjazd { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.tosty { position: fixed; top: 56px; right: 14px; z-index: 90; display: grid; gap: 8px; max-width: 360px; pointer-events: none; /* komunikat nie może zasłaniać przycisków pod sobą */ }
.tost { background: #182226; color: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; display: flex; gap: 10px; animation: wjazd .25s ease; }
.tost .z { opacity: .7; font-size: 12px; display: block; }
@media (max-width: 640px) { .tosty { left: 10px; right: 10px; max-width: none; } }
.podpowiedz { border: 1px dashed var(--podp-ramka); background: var(--podp-tlo); color: var(--podp-tekst); border-radius: 12px; padding: 9px 12px; font-size: 13.2px; margin: 0 0 12px; display: flex; gap: 8px; }
.podpowiedz::before { content: "💡"; }
body.bez-podpowiedzi .podpowiedz { display: none; }
.dzwonki { position: absolute; right: 10px; top: 58px; width: min(360px, calc(100% - 20px)); background: var(--karta); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.22); z-index: 70; overflow: hidden; }
.dzwonki .poz { padding: 11px 14px; border-top: 1px solid var(--linia); display: block; text-decoration: none; color: var(--tekst); font-size: 14px; }
.dzwonki .poz.nowe { background: var(--wiersz-nowy); }
.dzwonki .poz small { color: var(--szary); display: block; font-size: 12px; }
.pusto { text-align: center; color: var(--szary); padding: 22px 10px; }
.czat { display: grid; gap: 8px; margin-bottom: 12px; }
.dymek { max-width: 82%; padding: 9px 12px; border-radius: 16px; background: var(--karta); box-shadow: var(--cien); font-size: 14.2px; }
.dymek.moj { margin-left: auto; background: var(--klub); color: #fff; }
.dymek small { display: block; opacity: .7; font-size: 11.5px; margin-top: 3px; }
.scenariusz { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--karta); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.22); width: min(370px, calc(100% - 32px)); padding: 14px 16px; }
.scenariusz ol { padding-left: 20px; margin: 8px 0 0; }
.scenariusz li { margin: 6px 0; color: var(--szary); }
.scenariusz li.zrobione { color: var(--zielony); }
.scenariusz li.zrobione::marker { content: "✓  "; }
.scenariusz a { font-weight: 600; }
.paragon { border: 1px dashed var(--linia); border-radius: 12px; padding: 14px; font-size: 14px; }
.paragon .r { display: flex; justify-content: space-between; padding: 3px 0; }
@media print {
  body * { visibility: hidden !important; }
  .do-druku, .do-druku * { visibility: visible !important; }
  .do-druku { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ── tryb ciemny (przełącznik na pasku demo; domyślnie jak w systemie) ── */
:root[data-motyw="ciemny"] {
  color-scheme: dark;
  --tlo: #0f1517; --karta: #172024; --karta2: #1c272b; --pole: #111a1d; --tekst: #e6eeea; --szary: #a3b3ad; --szary2: #7f908a; --linia: #2a373c;
  --chip: #22302f; --tab: #22302f; --tor: #3a4a4f; --tor2: #26343a; --hover: #1f2a2e; --wiersz-nowy: #163024;
  --czerwony: #ff8f8f; --czerwony-tlo: #3a1d1f; --zolty-tlo: #3a3010; --zolty: #f2cf6b; --niebieski: #93b8ff; --niebieski-tlo: #17263d; --zielony-tlo: #143222; --zielony: #7bd69c;
  --podp-tlo: #2a2512; --podp-ramka: #7a6527; --podp-tekst: #efdc9a; --rama: #000000;
  --cien: 0 1px 2px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.35);
}
:root[data-motyw="ciemny"] .obecnosc-btn.o { border-color: #2f7a4c; }
:root[data-motyw="ciemny"] .obecnosc-btn.n { border-color: #8a3a3a; }
:root[data-motyw="ciemny"] .obecnosc-btn.u { border-color: #8a7230; }
.stopka-demo { text-align: center; color: var(--szary); font-size: 12.5px; padding: 18px 10px 30px; }

/* ── rozbudowa 11.10.2026 ── */
.tabs a.tab-link { border: 0; background: var(--tab); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--szary); white-space: nowrap; text-decoration: none; }
.tabs a.tab-link.akt { background: var(--tekst); color: var(--tlo); }
.wybor-dzieci a { border: 1px solid var(--linia); background: var(--karta); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--tekst); }
.wybor-dzieci a.akt { background: var(--klub); border-color: var(--klub); color: #fff; }
.filtr-pasek { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--niebieski-tlo); color: var(--tekst); border-radius: 12px; padding: 8px 12px; margin: -4px 0 12px; font-size: 14px; }
.filtr-pasek > span { flex: 1; min-width: 180px; }
table.t tr.swieze td { background: var(--wiersz-nowy); }
.karta.wyrozniona { outline: 2px solid var(--klub); outline-offset: 2px; }
.link-btn { border: 0; background: none; color: var(--klub-tekst); font-weight: 600; font-size: 12.5px; padding: 0 0 0 6px; cursor: pointer; }

@media (max-width: 560px) { .kpi-siatka { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi { padding: 11px 12px; } .kpi .wartosc { font-size: 21px; } .kpi .pod { font-size: 12px; } }
details.lista-zap > summary { cursor: pointer; font-weight: 700; color: var(--klub-tekst); margin: 4px 2px 10px; font-size: 14.5px; }

/* grafik obiektów — edycja kliknięciem */
.grafik .kom { position: relative; cursor: pointer; }
.grafik .kom:hover { background: var(--hover); }
.grafik .kom .dodaj { position: absolute; right: 6px; bottom: 4px; font-size: 15px; font-weight: 700; color: var(--szary2); opacity: .45; }
.grafik .kom:hover .dodaj { opacity: 1; color: var(--klub-tekst); }
.grafik button.blok { display: block; width: 100%; text-align: left; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.grafik button.blok:hover { outline: 2px solid var(--klub); }
.grafik .blok.mecz { cursor: help; }
.grafik .obj { position: sticky; left: 0; z-index: 1; background: var(--karta2); }

/* historia obecności */
.hist-ob { margin-top: 8px; }
.hist-proc { font-size: 34px; font-weight: 800; line-height: 1; color: var(--zielony); }
.hist-proc.slaba { color: var(--czerwony); }
.hist-kafle { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.hist-kafle .hk { display: grid; justify-items: center; gap: 1px; min-width: 46px; padding: 5px 4px; border-radius: 10px; border: 1px solid var(--linia); background: var(--karta2); }
.hist-kafle .hk b { font-size: 16px; }
.hist-kafle .hk small { font-size: 10.5px; color: var(--szary); white-space: nowrap; }
.hist-kafle .hk.o { background: var(--zielony-tlo); } .hist-kafle .hk.o b { color: var(--zielony); }
.hist-kafle .hk.n { background: var(--czerwony-tlo); } .hist-kafle .hk.n b { color: var(--czerwony); }
.hist-kafle .hk.u { background: var(--zolty-tlo); } .hist-kafle .hk.u b { color: var(--zolty); }
.hist-pelna { margin-top: 8px; }
.hist-pelna summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--klub-tekst); }

/* e-mail z podsumowaniem tygodnia */
.sekcje-pods { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 4px; }
@media (max-width: 640px) { .sekcje-pods { grid-template-columns: 1fr; } }
.mail { border: 1px solid var(--linia); border-radius: var(--r); overflow: hidden; background: var(--karta); box-shadow: var(--cien); }
.mail-nag { background: var(--karta2); padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--linia); display: grid; gap: 2px; }
.mail-tresc { padding: 14px 16px; font-size: 14px; }
.mail-tresc p { margin: 0 0 10px; }
.mail-blok { border-top: 1px solid var(--linia); padding: 10px 0 4px; }
.mail-t { font-weight: 700; margin-bottom: 4px; }
.mail-blok ul { margin: 0; padding-left: 18px; }
.mail-blok li { margin: 3px 0; }
.mail-btn { display: inline-block; margin: 8px 0 4px; background: var(--klub); color: #fff; border-radius: 10px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; }

/* sklep — magazyn */
.magazyn { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.magazyn .karta { margin: 0; }
.mag-rozm { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 10px; }
.mag-r { border: 1px solid var(--linia); border-radius: 10px; padding: 6px; display: grid; justify-items: center; gap: 1px; background: var(--karta2); }
.mag-r .mr { font-size: 12px; color: var(--szary); font-weight: 600; }
.mag-r b { font-size: 18px; }
.mag-r small { font-size: 10.5px; color: var(--szary); }
.mag-r.malo { background: var(--zolty-tlo); } .mag-r.malo b { color: var(--zolty); }
.mag-r.brak { background: var(--czerwony-tlo); } .mag-r.brak b { color: var(--czerwony); }
.mag-pm { display: flex; gap: 4px; margin-top: 3px; }
.mag-pm button { width: 28px; height: 26px; border-radius: 8px; border: 1px solid var(--linia); background: var(--karta); font-weight: 700; line-height: 1; }
.dostawa-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }

/* rozmowy (zarząd) */
.siatka-czat { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.siatka-czat .lista .poz.akt-poz { background: var(--klub-jasny); }
@media (max-width: 900px) { .siatka-czat { grid-template-columns: 1fr; } }

/* trener — start, trening, plan */
.hero-tr { background-color: var(--klub-gleboki); background-image: linear-gradient(135deg, var(--klub), var(--klub-gleboki)); color: #fff; border-radius: 18px; padding: 16px 16px 14px; margin-bottom: 12px; box-shadow: var(--cien); }
.hero-tr .meta-j { opacity: .85; font-size: 13.5px; }
.hero-tr .data-j { font-size: 22px; font-weight: 800; margin: 2px 0; line-height: 1.2; }
.hero-tr .pig { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.hero-tr .pig.mocny { background: rgba(255,255,255,.28); letter-spacing: .03em; }
.hero-tr .btn.jasny { background: rgba(255,255,255,.92); color: #13301e; }
.kafle3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kafel { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: 12px 8px; text-align: center; display: grid; gap: 2px; }
.kafel b { font-size: 26px; line-height: 1.1; }
.kafel span { font-size: 11.5px; color: var(--szary); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.obecni { display: flex; gap: 6px; flex-wrap: wrap; }
.rocznik-nag { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--szary); text-transform: uppercase; letter-spacing: .05em; margin: 10px 4px 6px; }
.nagrody .nagroda { margin-top: 8px; }
.nagrody .nagroda .ik { font-size: 20px; width: 28px; text-align: center; flex: none; }
.nagrody select, .nagrody input { flex: 1; min-width: 0; border: 1px solid var(--linia); border-radius: 10px; padding: 9px 10px; background: var(--pole); }
.nagrody input { flex: none; }
.btn.zakoncz { background: var(--zielony-pelny); padding: 14px; font-size: 16px; margin-top: 4px; }
.ocena-opcja { display: block; margin: 6px 0; cursor: pointer; }
.ocena-opcja input { position: absolute; opacity: 0; pointer-events: none; }
.ocena-opcja span { display: block; border: 1px solid var(--linia); border-radius: 12px; padding: 10px 12px; background: var(--karta2); font-weight: 600; font-size: 14px; }
.ocena-opcja input:checked + span { border-color: var(--klub); background: var(--klub-jasny); color: var(--klub-ciemny); }
.ocena-opcja input:focus-visible + span { outline: 2px solid var(--klub); }

/* ── telefon: pasek demo przewija się z treścią, menu zarządu zostaje na górze ── */
@media (max-width: 900px) {
  .demo-bar { position: relative; }
  .panel-menu { position: sticky; top: 0; z-index: 45; box-shadow: 0 6px 14px rgba(0,0,0,.08); -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); padding-right: 28px; }
  .panel-menu a.akt { box-shadow: inset 0 -2px 0 var(--klub); }
}

/* ── telefon: tabele jako karty (etykiety kolumn z nagłówka) ── */
@media (max-width: 700px) {
  .panel-glowny .tabela-wrap, .okno .tabela-wrap { overflow: visible; background: none; box-shadow: none; }
  .panel-glowny .tabela-wrap.grafik-wrap { overflow-x: auto; background: var(--karta); box-shadow: var(--cien); }
  .panel-glowny table.t, .okno table.t, .panel-glowny table.t tbody, .okno table.t tbody, .panel-glowny table.t thead, .okno table.t thead { display: block; width: 100%; }
  .panel-glowny table.t tr.nag-wiersz, .okno table.t tr.nag-wiersz { display: none; }
  .panel-glowny table.t tr, .okno table.t tr { display: block; background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: 10px 12px; margin-bottom: 10px; }
  .okno table.t tr { box-shadow: none; border: 1px solid var(--linia); }
  .panel-glowny table.t td, .okno table.t td { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border: 0; text-align: right; flex-wrap: wrap; width: auto !important; min-width: 0 !important; }
  .panel-glowny table.t td:first-child, .okno table.t td:first-child { justify-content: flex-start; text-align: left; font-size: 15px; padding-top: 0; }
  .panel-glowny table.t td[data-l]::before, .okno table.t td[data-l]::before { content: attr(data-l); font-size: 12.5px; color: var(--szary); font-weight: 600; text-align: left; flex: none; max-width: 48%; }
  .panel-glowny table.t td:not([data-l]):not(:first-child), .okno table.t td:not([data-l]):not(:first-child) { justify-content: flex-start; text-align: left; }
  .panel-glowny table.t td > input, .panel-glowny table.t td > select, .panel-glowny table.t td > textarea { flex: 1 1 160px; min-width: 0; text-align: left; }
  /* tabele ustawień bez nagłówków: etykieta, pole, opis, przycisk — jedno pod drugim */
  .panel-glowny table.t:not(.ma-naglowki) td { display: block; text-align: left; }
  .panel-glowny table.t:not(.ma-naglowki) td:empty { display: none; }
  .panel-glowny table.t:not(.ma-naglowki) td > input, .panel-glowny table.t:not(.ma-naglowki) td > select, .panel-glowny table.t:not(.ma-naglowki) td > textarea { width: 100%; }
  .panel-glowny table.t td .tv, .okno table.t td .tv { display: block; text-align: right; min-width: 0; }
  .panel-glowny table.t td[data-l]:empty { display: none; }
  .panel-glowny table.t tr.klik { cursor: pointer; }
  .panel-glowny table.t tr.klik:hover td { background: none; }
}
