/* SportAPP - a két látványterv dizájnja: világos alap, fehér kártyák, kék és piros (Gergőnek is tetszett) */
:root {
  --bg: #f4f6fb; --card: #fff; --ink: #141a2b; --ink2: #4a5368; --muted: #8a92a6; --line: #e7eaf1;
  --blue: #2F5FD0; --blue2: #1E46A8; --blue-soft: #e9effc; --red: #D9363E; --red-soft: #fdecec;
  --green: #1f8a5b; --green-soft: #e6f5ee; --r: 18px; --sh: 0 1px 2px rgba(20,26,43,.03), 0 6px 20px rgba(20,26,43,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- keret: oldalsáv ---- */
.app { min-height: 100vh; display: flex; }
.oldalsav { width: 240px; background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; padding: 2px 6px 22px; letter-spacing: -.01em; }
.logo small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.mk { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #3a6ae0, var(--blue2)); display: grid; place-items: center; flex: none; }
.mk .i { stroke: #fff; width: 22px; height: 22px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:hover { background: var(--bg); }
.nav a.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav a.halk { color: var(--muted); }
.nav a span { flex: 1; }
.hamarosan { font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; }
.oldalsav .alja { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.felh-kartya { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.felh-kartya .tart { flex: 1; min-width: 0; }
.felh-kartya b { display: block; font-size: 14px; }
.felh-kartya span { display: block; font-size: 12px; color: var(--muted); }
.felh-kartya .kilep { color: var(--muted); display: grid; place-items: center; padding: 4px; border-radius: 8px; }
.felh-kartya .kilep:hover { background: var(--bg); color: var(--ink); }
.fo { flex: 1; min-width: 0; padding: 28px 32px 90px; max-width: 1320px; }
.also-nav { display: none; }
.mobil-fej { display: none; }

/* ---- fejléc ---- */
.fejlec { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.fejlec-jobb { display: flex; gap: 12px; align-items: center; }
.kereso { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 44px; width: 300px; color: var(--muted); margin: 0; font-weight: 400; }
.kereso input { border: 0; outline: 0; background: transparent; width: 100%; padding: 0; height: 100%; }
h1 { font-size: 27px; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; }
.nincs-mb { margin-bottom: 0; }
.al { color: var(--muted); margin: 0 0 20px; }

/* ---- kártyák ---- */
.kartya { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; }
.racs { display: grid; gap: 18px; }
.racs.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.racs.k2 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.racs.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb { margin-bottom: 18px; }
.kpi .kpi-fej { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 15px; margin-bottom: 8px; }
.ikon-csempe { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; }
.ikon-csempe .i { width: 18px; height: 18px; }
.ikon-csempe.kek { background: var(--blue-soft); color: var(--blue); }
.ikon-csempe.piros { background: var(--red-soft); color: var(--red); }
.szam { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.szam small { font-size: 17px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi-al { color: var(--muted); font-size: 14px; margin-top: 4px; }
.kek-t { color: var(--blue); }
.piros-t { color: var(--red) !important; }
.sav { height: 6px; background: var(--line); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.sav i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.cim-ikon { display: flex; align-items: center; gap: 10px; }
.piros-i { color: var(--red); width: 22px; height: 22px; }
.labjegyzet { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* ---- grafikon ---- */
.graf-fej { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.graf-jobb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jm { font-size: 14px; color: var(--ink2); display: inline-flex; align-items: center; }
.jm i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; }
.jm-kek { background: var(--blue); } .jm-piros { background: var(--red); } .jm-zold { background: var(--green); } .jm-szurke { background: var(--muted); }
.valto { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.valto button { border: 0; background: var(--card); color: var(--muted); padding: 5px 12px; font-size: 14px; cursor: pointer; }
.valto button.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.graf-tarto { position: relative; }
.grafikon { width: 100%; height: auto; display: block; }
.grafikon .racsvonal { stroke: var(--line); stroke-width: 1; }
.grafikon .tengely { fill: var(--muted); font-size: 12px; }
.grafikon .vegertek { fill: var(--ink); font-size: 13px; font-weight: 700; }
.grafikon .vonal { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.grafikon .kek { stroke: var(--blue); fill: var(--blue); } .grafikon .vonal.kek { fill: none; }
.grafikon .piros { stroke: var(--red); fill: var(--red); } .grafikon .vonal.piros { fill: none; }
.grafikon .zold { stroke: var(--green); fill: var(--green); } .grafikon .vonal.zold { fill: none; }
.grafikon .szurke { stroke: var(--muted); fill: var(--muted); } .grafikon .vonal.szurke { fill: none; stroke-dasharray: 5 5; }
.felhivas { position: absolute; left: 7%; bottom: 20%; background: var(--red-soft); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--ink2); }
.felhivas b { display: block; color: var(--red); font-size: 13.5px; }
.jelmagyarazat { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---- figyelj rá ---- */
.figyel-sor { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.figyel-sor:last-child { border-bottom: 0; padding-bottom: 0; }
.figyel-sor .tart { flex: 1; min-width: 0; }
.figyel-nev { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.figyel-nev b { font-size: 16px; }
.reszlet { color: var(--ink2); font-size: 14.5px; line-height: 1.45; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 7px; }
.chip.piros { background: var(--red-soft); color: var(--red); }
.chip.kek { background: var(--blue-soft); color: var(--blue); }
.chipek { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.nagy { width: 44px; height: 44px; font-size: 15px; }

/* ---- táblázat ---- */
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
.tabla td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .nev { font-weight: 500; }
.kattinthato { cursor: pointer; }
.tabla tr.kattinthato:hover td { background: #fafbfe; }
.ertek { display: inline-block; min-width: 36px; text-align: center; padding: 4px 8px; border-radius: 9px; font-weight: 600; background: var(--bg); }
.ertek.rossz { background: var(--red-soft); color: var(--red); }
.ertek.ures-e { color: var(--muted); }
.szikravonal { width: 110px; height: 26px; display: block; }
.szikravonal polyline { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.gorgo { overflow-x: auto; }

/* ---- ülés előtt ---- */
.pontok { margin: 0 0 16px; padding-left: 20px; color: var(--ink2); }
.pontok li { margin: 6px 0; line-height: 1.45; }
.javaslat { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); border-radius: 14px; padding: 12px 14px; }
.javaslat .jav-ikon { color: var(--blue); }
.javaslat .tart { flex: 1; min-width: 0; }
.javaslat b { display: block; }
.javaslat span { color: var(--ink2); font-size: 14px; }

/* ---- elemek ---- */
.sor { display: flex; align-items: center; gap: 10px; }
.sor.ter { justify-content: space-between; }
.sor .tart { flex: 1; min-width: 0; }
.gombsor { flex-wrap: wrap; margin-top: 8px; }
.halvany { color: var(--muted); font-size: 13.5px; }
.kozep { text-align: center; }
.gomb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; cursor: pointer; background: var(--blue); color: #fff; text-decoration: none; white-space: nowrap; }
.gomb:hover { background: var(--blue2); }
.gomb.masod { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.gomb.masod:hover { background: var(--bg); }
.gomb.piros { background: var(--red); }
.gomb.kicsi { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.gomb:disabled { opacity: .5; cursor: default; }
.gomb.teli { width: 100%; }
.nagy-gomb { padding: 16px; font-size: 17px; border-radius: 16px; margin-top: 14px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
textarea { min-height: 90px; resize: vertical; }
.ket-oszlop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pipa { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink2); font-size: 14px; }
.pipa input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hiba { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0 0; }
.siker { background: var(--green-soft); color: var(--green); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0 0; }
.jelszo { background: #fff; color: var(--ink); padding: 2px 8px; border-radius: 6px; font-size: 15px; user-select: all; }
.ures { text-align: center; color: var(--muted); padding: 28px 10px; }
.rejtett { display: none !important; }
.link-doboz { word-break: break-all; background: var(--bg); border: 1px dashed var(--line); padding: 10px; border-radius: 10px; font-size: 13px; }
.keskeny { max-width: 560px; }
.verseny-lista { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.feladat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feladat:last-child { border-bottom: 0; }
.feladat .tart { flex: 1; min-width: 0; }
.feladat .cim { font-weight: 600; }
.feladat.kesz .cim { color: var(--muted); text-decoration: line-through; }
.kort { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; margin-top: 1px; }
.kort .i { width: 15px; height: 15px; }
.feladat.kesz .kort { background: var(--green); border-color: var(--green); color: #fff; }
.naplo-bej { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; }
.kartyak { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pluszk { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--blue); }
.pluszk.megvan { border-top-color: var(--green); }
.pluszk .gomb { margin-top: auto; }
.pluszk .chip { align-self: flex-start; }
.menu-sor { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-sor:last-child { border-bottom: 0; }

/* ---- belépés ---- */
.belepes-hatter { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.belepes { width: 100%; max-width: 420px; }
.belepes .logo { justify-content: center; }
.eu-jelveny { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--blue); border-radius: 999px; padding: 7px 14px 7px 10px; background: #fff; width: fit-content; margin: 18px auto 0; }
.oldalsav .eu-jelveny { margin: 0; }
.eu-jelveny b { display: block; font-size: 12.5px; }
.eu-jelveny span { display: block; font-size: 11px; color: var(--ink2); }
.eu-jelveny .i { color: var(--blue); width: 22px; height: 22px; }

/* ---- sportoló (mobilos látványterv) ---- */
.sp-app { min-height: 100vh; }
.sp-fo { max-width: 480px; margin: 0 auto; padding: 24px 16px 110px; }
.sp-cim { font-size: 28px; line-height: 1.2; margin: 2px 0 18px; }
.verseny-kartya { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #3d6be0, #5a85ea); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(47,95,208,.25); }
.verseny-kartya .napok { width: 64px; height: 72px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.verseny-kartya .napok b { font-size: 28px; line-height: 1; }
.verseny-kartya .napok span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.verseny-kartya .tart b { display: block; font-size: 18px; line-height: 1.25; }
.verseny-kartya .tart span { display: block; opacity: .92; font-size: 14.5px; margin-top: 3px; }
.csuszka { margin: 14px 0 4px; }
.csuszka .sor b { font-size: 16px; }
.csuszka .ertekszam { font-size: 20px; font-weight: 800; color: var(--blue); }
.csuszka .vegek { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
input[type=range] { --szazalek: 50%; --szin: var(--blue); -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 4px 0 0; }
input[type=range].piros { --szin: var(--red); }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--szin) 0 var(--szazalek), var(--line) var(--szazalek) 100%); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--szin) 0 var(--szazalek), var(--line) var(--szazalek) 100%); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--szin); margin-top: -9px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--szin); }
.feladat-kartya { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; }
.feladat-kartya .lejatszo { width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.feladat-kartya .lejatszo .i { fill: #fff; stroke: none; width: 20px; height: 20px; margin-left: 3px; }
.feladat-kartya .tart { flex: 1; min-width: 0; }
.feladat-kartya .tart b { display: block; font-size: 16px; }
.feladat-kartya .tart span { color: var(--muted); font-size: 14px; }
.fk-jobb { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.het { display: flex; align-items: center; gap: 8px; margin: 16px 2px 0; color: var(--ink2); }
.het span { margin-right: 4px; }
.het i { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); opacity: .6; }
.het i.tele { background: var(--blue); opacity: 1; }
.het i.jovo { opacity: .35; }
.also-nav.mindig { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 10; }
.also-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 8px; min-width: 70px; }
.also-nav a.on { color: var(--blue); font-weight: 600; }
.also-nav .i { width: 24px; height: 24px; }
.het span { white-space: nowrap; }
.het i { flex: 1 1 0; max-width: 34px; width: auto; height: auto; aspect-ratio: 1; min-width: 0; }
.rendszer-sor { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rendszer-sor:last-child { border-bottom: 0; }
.rendszer-sor span { color: var(--ink2); }
.rendszer-sor b { text-align: right; font-weight: 600; }
.szam.kisebb { font-size: 24px; }
.nav-cim { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 16px 12px 6px; border-top: 1px solid var(--line); margin-top: 10px; }
.admin-almenu { display: none; }
@media (max-width: 860px) {
  .admin-almenu { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; }
  .admin-almenu a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink2); text-decoration: none; font-size: 13.5px; }
  .admin-almenu a.on { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); font-weight: 600; }
}

/* ---- reszponzív ---- */
@media (max-width: 1150px) {
  .racs.k2, .racs.k3 { grid-template-columns: 1fr; }
  .racs.k4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .oldalsav, .csak-gep, .csak-gep-flex { display: none !important; }
  .fo { padding: 18px 16px 100px; }
  .mobil-fej { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .mobil-fej .tart { flex: 1; min-width: 0; }
  .mobil-fej b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .mobil-fej span { color: var(--muted); font-size: 14px; }
  .racs, .racs.k4 { gap: 14px; }
  .racs.k4 { grid-template-columns: 1fr 1fr; }
  .kartya { padding: 16px; }
  .szam { font-size: 30px; }
  .kereso { width: 100%; }
  .also-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 10; }
  .felhivas { position: static; margin-top: 8px; }
  .graf-jobb .valto { display: none; }
}

/* ---- jelszómező szem ikonnal (11-18) ---- */
.jelszo-mezo { position: relative; }
.jelszo-mezo input { padding-right: 46px; }
.szem-gomb { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.szem-gomb:hover { color: var(--ink); background: var(--bg); }

/* ---- kitölthető kártyák: meccsnapló (11-18) ---- */
.fulek { display: flex; gap: 8px; flex-wrap: wrap; }
.km-csoport { font-size: 15px; margin: 18px 0 2px; }
.skala5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.skala5 button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 0; font-weight: 700; cursor: pointer; min-height: 44px; }
.skala5 button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.skala5-blokk .vegek { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; gap: 8px; }
.lista3 .sor { gap: 8px; margin-bottom: 6px; }
.lista3 .sor b { width: 18px; flex: none; color: var(--ink2); }
.cel-ertekeles { margin: 8px 0 12px; }
.km-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.km-elem { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.km-elem summary { cursor: pointer; }
.km-resz { margin-top: 12px; }
.km-sor { margin: 6px 0 0 0; }
.km-sor ol, .km-sor ul { margin: 2px 0 0; padding-left: 20px; }
a.kattinthato { text-decoration: none; color: inherit; }
.feladat-kartya .lejatszo.kek { background: var(--blue); }
.feladat-kartya .lejatszo.kek .i { fill: none; stroke: #fff; stroke-width: 1.8; margin-left: 0; }

/* ---- balról bekúszó menü (IFCLab házi minta: Growth HUB + IFC Mail, 11-18) ---- */
.app { display: block; }
.fo { margin: 0 auto; }
.felso-sav { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 10px; height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.hamburger { width: 42px; height: 42px; border: 0; border-radius: 11px; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.hamburger:hover { background: var(--bg); }
.hamburger .i { width: 24px; height: 24px; stroke-width: 2.2; }
.felso-marka { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mk.kicsi { width: 32px; height: 32px; border-radius: 9px; }
.mk.kicsi .i { width: 18px; height: 18px; }
.felso-jobb { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.felso-jobb .avatar { width: 34px; height: 34px; font-size: 13px; }
.menu-fatyol { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1000; opacity: 0; transition: opacity .2s; }
.menu-fatyol.nyitva { opacity: 1; }
.fiok-menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 290px); height: 100dvh; z-index: 1001; background: var(--card);
  border-radius: 0 18px 18px 0; box-shadow: 2px 0 26px rgba(0,0,0,.20); transform: translateX(-100%); transition: transform .22s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 14px) 12px calc(env(safe-area-inset-bottom) + 16px); visibility: hidden; }
.fiok-menu.nyitva { transform: translateX(0); visibility: visible; }
body.menu-nyitva { overflow: hidden; }
.menu-fej { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-fej .logo { padding: 2px 4px 0; font-size: 18px; }
.menu-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: grid; place-items: center; cursor: pointer; flex: none; }
.menu-x:hover { background: var(--bg); color: var(--ink); }
.menu-felh { display: flex; align-items: center; gap: 10px; padding: 14px 6px; margin: 10px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-felh .tart { min-width: 0; }
.menu-felh b { display: block; font-size: 14.5px; }
.menu-felh span { display: block; font-size: 12.5px; color: var(--muted); }
.menu-cim { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 6px; }
.menu-pont { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.menu-pont .i { opacity: .75; }
.menu-pont span { flex: 1; }
.menu-pont:hover { background: var(--bg); }
.menu-pont.on { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.menu-pont.on .i { opacity: 1; }
.menu-pont.halk { color: var(--muted); }
.menu-alja { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.menu-alja .menu-csoport { margin-bottom: 4px; }
.menu-alja .eu-jelveny { margin: 10px 4px 0; }
.menu-lab { text-align: center; padding: 16px 0 2px; font-size: 10.5px; color: var(--muted); }
.menu-lab img { display: block; width: 128px; height: auto; margin: 0 auto 6px; }
.mobil-fej .mk, .mobil-fej .avatar { display: none; }
@media (max-width: 860px) { .also-nav:not(.mindig) { display: none; } }
/* iOS ne nagyítson rá a mezőkre (16 px alatt ránagyít) */
input, textarea, select { font-size: 16px; }

/* ---- saját megerősítő ablak (PWA-ban a confirm() nem jelenik meg) ---- */
.kerdes-fatyol { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1100; display: grid; place-items: center; padding: 16px; }
.kerdes { width: 100%; max-width: 380px; }
.kerdes p { margin: 0 0 6px; font-size: 15.5px; }
.kerdes .gombsor { justify-content: flex-end; }
button.menu-pont { border: 0; background: none; width: 100%; text-align: left; font: inherit; font-size: 15.5px; cursor: pointer; }
.telepites-lepesek { padding-left: 20px; margin: 8px 0 4px; }
.telepites-lepesek li { margin-bottom: 6px; }
.kerdes h2 { margin-top: 0; }
.kerdes .gomb.teli { margin: 8px 0; }
/* keskeny képernyőn a rács oszlopa ne nőjön a táblázat szélességére (különben az egész lap oldalra csúszik) */
@media (max-width: 1150px) { .racs.k2, .racs.k3 { grid-template-columns: minmax(0, 1fr); } }
.racs > * { min-width: 0; }

/* ---- plusz kártyák kategóriánként, lenyíló csoportokban (11-18) ---- */
.chip.zold { background: var(--green-soft); color: var(--green); }
.chip.szurke { background: var(--bg); color: var(--muted); }
.kat-csoport { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; box-shadow: var(--sh); }
.kat-csoport > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 16px 48px 16px 18px; position: relative; }
.kat-csoport > summary::-webkit-details-marker { display: none; }
.kat-csoport > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: translateY(-70%) rotate(45deg); transition: transform .18s; }
.kat-csoport[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.kat-nev { font-weight: 700; font-size: 17px; }
.kat-leiras { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.kat-csoport > .kartyak, .kat-csoport > .gorgo { padding: 0 18px 18px; }
.kat-csoport .pluszk { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.kat-csoport .pluszk.megvan { border-top-color: var(--green); }

/* ---- 11-18: hanganyag, tartalomtár, naptár, szülői nézet, rutin-lépések ---- */
.hang-blokk { display: flex; flex-direction: column; gap: 6px; }
.hang-blokk audio { width: 100%; max-width: 420px; }
.hang-blokk.kicsi { margin-top: 6px; }
.hang-blokk .labjegyzet { margin: 0; }
button.lejatszo { border: 0; cursor: pointer; }
.lejatszo.halk { background: var(--line) !important; }
.lejatszo.szol { background: var(--blue) !important; }
.tar-tetel { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tar-tetel:last-child { border-bottom: 0; }
.naptar-nap { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.naptar-nap:last-child { border-bottom: 0; }
.naptar-nap.mult { opacity: .55; }
.naptar-nap.ma .naptar-datum b { color: var(--blue); }
.naptar-datum { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.naptar-tetelek { display: flex; flex-direction: column; gap: 6px; }
.naptar-tetel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.athuzva { text-decoration: line-through; color: var(--muted); }
@media (max-width: 560px) { .naptar-nap { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.pipa.lepes { padding: 8px 0; font-size: 15px; color: var(--ink); }
.km-lepesek { list-style: none; padding-left: 0; margin: 4px 0 0; }
.km-lepesek li { color: var(--muted); }
.km-lepesek li.kesz { color: var(--ink); }
.szulo-nezet { max-width: 520px; }

/* ---- versenynaptár: havi nézet (11-18) ---- */
.naptar-fej { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.naptar-fej .sor { gap: 8px; flex-wrap: wrap; }
.naptar-fej select { width: auto; }
.naptar-ho { font-size: 18px; min-width: 150px; text-align: center; }
.naptar-fej .jelmagyarazat { flex-basis: 100%; }
.honap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.honap-fej { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.honap-nap { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 6px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; font: inherit; color: inherit; min-width: 0; }
.honap-nap:hover { border-color: var(--blue); }
.honap-nap.mas { opacity: .45; }
.honap-nap.ma .honap-szam { background: var(--blue); color: #fff; }
.honap-nap.kijelolt { outline: 2px solid var(--blue); outline-offset: -1px; background: var(--blue-soft); }
.honap-szam { font-weight: 700; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.honap-esemenyek { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.honap-esemeny { display: flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1.25; min-width: 0; }
.honap-esemeny i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--blue); }
.honap-esemeny.piros i { background: var(--red); }
.honap-esemeny.zold i { background: var(--green); }
.honap-esemeny em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.honap-tobb { font-size: 11px; color: var(--muted); }
.naptar-panel h2 { text-transform: none; }
.naptar-panel .naptar-tetel { padding: 8px 0; border-bottom: 1px solid var(--line); }
.naptar-panel .naptar-tetel .sor { gap: 6px; margin-left: auto; }
.verseny-urlap { margin-top: 6px; }
.mt { margin-top: 18px; }
@media (max-width: 700px) {
  .honap-nap { min-height: 52px; padding: 4px; }
  .honap-esemenyek { flex-direction: row; flex-wrap: wrap; }
  .honap-esemeny em { display: none; }
  .honap-szam { width: 22px; height: 22px; font-size: 12px; }
}
.ert-sor { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ert-sor input[type=checkbox] { width: 18px; height: 18px; margin-top: 8px; flex: none; }
.ert-szoveg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink2); font-size: 14.5px; }
.ert-szoveg input.ert-ido { width: 112px; padding: 6px 8px; }

/* ---- üzenetek, Messenger-szerű (11-18) ---- */
.jelveny { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; font-style: normal; }
.jelveny.rejtett { display: none; }
.menu-pont .jelveny { margin-left: auto; }
.also-nav a { position: relative; }
.also-nav a .jelveny { position: absolute; top: 0; right: 14px; }
.cs-cim { margin-bottom: 12px; }
.cs-elrendezes { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.cs-partnerek { padding: 10px; max-height: calc(100dvh - 150px); overflow-y: auto; }
.cs-kereso { margin-bottom: 8px; }
.cs-partner { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.cs-partner:hover { background: var(--bg); }
.cs-partner.on { background: var(--blue-soft); }
.cs-partner .tart { flex: 1; min-width: 0; }
.cs-partner .sor { gap: 8px; }
.cs-partner b { font-size: 14.5px; }
.cs-partner.uj b, .cs-partner.uj .cs-elonezet { color: var(--ink); font-weight: 700; }
.cs-elonezet { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cs-pido { color: var(--muted); font-size: 12px; flex: none; }
.cs-uresjobb { display: grid; place-items: center; min-height: 300px; }
.cs-doboz { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 420px; overflow: hidden; }
.cs-fej { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cs-fej .tart b { display: block; font-size: 15.5px; }
.cs-fej .tart span { color: var(--muted); font-size: 12.5px; }
.cs-vissza { display: none; color: var(--ink); padding: 4px; }
.cs-lista { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; background: var(--card); }
.cs-nap { text-align: center; margin: 12px 0 6px; }
.cs-nap span { font-size: 12px; color: var(--muted); background: var(--bg); padding: 3px 10px; border-radius: 999px; }
.cs-sor { display: flex; align-items: center; gap: 4px; }
.cs-sor.sajat { flex-direction: row-reverse; }
.cs-buborek { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 18px; background: var(--bg); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.cs-sor.sajat .cs-buborek { background: var(--blue); color: #fff; }
.cs-buborek.visszavont { background: none !important; color: var(--muted) !important; border: 1px dashed var(--line); font-style: italic; }
.cs-ido { display: block; font-size: 10.5px; opacity: .65; text-align: right; margin-top: 2px; }
.cs-torol { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 6px; opacity: 0; transition: opacity .15s; }
.cs-sor:hover .cs-torol, .cs-torol:focus { opacity: 1; }
@media (hover: none) { .cs-torol { opacity: .5; } }
.cs-latta { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin: 2px 4px 4px; }
.cs-ures { margin: auto; color: var(--muted); }
.cs-iro { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cs-mezo { flex: 1; resize: none; min-height: 42px !important; max-height: 140px; border-radius: 21px !important; padding: 10px 14px !important; line-height: 1.35; }
.cs-kuld { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cs-kuld:disabled { opacity: .5; }
.cs-kuld .i { width: 20px; height: 20px; }
.cs-lab { font-size: 11.5px; color: var(--muted); text-align: center; padding: 0 0 8px; }
.cs-doboz .hiba { margin: 0 12px; }
.cs-sp .cs-doboz { height: calc(100dvh - 58px - 110px - env(safe-area-inset-bottom)); border-radius: 16px; }
@media (max-width: 860px) {
  .cs-elrendezes { grid-template-columns: minmax(0, 1fr); }
  .cs-elrendezes.nyitott .cs-partnerek { display: none; }
  .cs-elrendezes.nyitott .cs-doboz { height: calc(100dvh - 58px - 90px); }
  .cs-elrendezes:not(.nyitott) .cs-uresjobb { display: none; }
  .cs-vissza { display: block; }
  .cs-elrendezes.nyitott ~ * , .fo:has(.cs-elrendezes.nyitott) .cs-cim { display: none; }
}
/* ---- szülői fiók és csevegés a sportolói/szülői keretben (11-18) ---- */
.cs-cimke { font-size: 12px; color: var(--blue); font-weight: 600; }
.sp-fo .cs-elrendezes { grid-template-columns: minmax(0, 1fr); }
.sp-fo .cs-elrendezes.nyitott .cs-partnerek { display: none; }
.sp-fo .cs-elrendezes:not(.nyitott) .cs-uresjobb { display: none; }
.sp-fo .cs-vissza { display: block; }
.sp-fo:has(.cs-elrendezes.nyitott) .cs-cim { display: none; }
.sp-fo .cs-doboz { height: calc(100dvh - 58px - 120px - env(safe-area-inset-bottom)); min-height: 380px; }
.figyel-doboz { background: var(--red-soft); border-color: transparent; }
.figyel-doboz .pipa { margin: 8px 0; }

/* belépés ujjlenyomattal (11-18) */
.pk-belep { margin-top: 12px; padding: 12px; }
.pk-belep .gomb .i { width: 22px; height: 22px; }
