:root {
  --bg: #f5f7f5; --card: #fff; --ink: #1a2420; --muted: #5f6b66; --line: #e2e8e4;
  --green: #14532d; --green2: #1f7a45; --green-soft: #e3f1e8;
  --blue: #2563eb; --blue-soft: #e5edfd; --gold: #b7791f; --gold-soft: #fdf3dc;
  --red: #b42318; --red-soft: #fdecea; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412; --card: #18201c; --ink: #e7ece9; --muted: #9aa7a1; --line: #2a3530;
    --green: #3fae6a; --green2: #4cc27a; --green-soft: #1d3326;
    --blue: #6b9bff; --blue-soft: #1c2740; --gold: #e0a84a; --gold-soft: #3a2e18;
    --red: #f07167; --red-soft: #3b1f1d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--green2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #14532d; color: #fff; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; display: flex; gap: 8px; align-items: center; font-size: 17.5px; }
.topbar #account-link { font-size: 22.5px; padding: 4px 8px; }
main { max-width: 760px; margin: 0 auto; padding: 10px 14px 80px; }
h1 { font-size: 23.5px; margin: 4px 0 14px; line-height: 1.2; }
h2 { font-size: 18.5px; margin: 20px 0 10px; }
h3 { font-size: 16.5px; margin: 0 0 6px; }
.back { display: inline-flex; align-items: center; min-height: 48px; padding-right: 16px; text-decoration: none; color: var(--muted); font-size: 15.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
a.card.row { display: flex; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:active { transform: scale(.99); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; margin-bottom: 20px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 14px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; min-height: 54px;
  background: var(--card); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green2); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.check input { width: 26px; height: 26px; margin-top: 1px; flex: none; }
button, .btn { font: inherit; border: 0; border-radius: 12px; padding: 13px 18px; min-height: 52px; cursor: pointer; font-weight: 600;
  background: var(--accent, var(--green)); color: var(--accent-ink, #fff); text-decoration: none; display: inline-block; text-align: center; }
button.secondary, .btn.secondary { background: var(--green-soft); color: var(--green); }
button.ghost { background: transparent; color: var(--muted); padding: 8px 12px; min-height: 44px; }
button.danger { background: var(--red-soft); color: var(--red); }
button.big { width: 100%; padding: 16px; font-size: 15.5px; }
button:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px; }
.tabs { margin-top: 18px; }
.tabs button { border: 2px solid var(--line); white-space: nowrap; padding: 10px 8px; flex: 1; }
.tabs button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--ink); }
.badge.pending { background: var(--gold-soft); color: var(--gold); }
.badge.active { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; background: var(--green-soft);
  color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.avatar.lg { width: 84px; height: 84px; font-size: 24.5px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .v { font-size: 24.5px; font-weight: 750; }
.tile .k { font-size: 11.5px; color: var(--muted); }

/* тренинг: присуство */
.att { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; }
.att.absent { opacity: .55; }
.att .who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: none; color: var(--ink);
  padding: 4px; text-align: left; font-weight: 600; }
.att .who .nm { line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.att .avatar { width: 36px; height: 36px; font-size: 11.5px; }
.att .mark { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-size: 14px; }
.att.absent .mark { background: var(--line); color: var(--muted); }
.rate { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.rate button { padding: 7px 0; width: 36px; background: var(--bg); border: 1px solid var(--line); font-size: 15.5px; line-height: 1; }
.rate button.on { border-color: var(--green2); background: var(--green-soft); }
.att .more { background: none; color: var(--muted); padding: 6px 8px; font-size: 15.5px; }
.att .flags { font-size: 11.5px; color: var(--muted); }
.counter { position: sticky; top: 52px; z-index: 3; background: var(--bg); padding: 8px 0; }

/* оценување */
.skill { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.skill .nm { width: 120px; font-size: 12px; }
.seg { display: flex; gap: 4px; flex: 1; }
.seg button { flex: 1; padding: 9px 0; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.seg button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }

/* мини графици */
.spark-row { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.spark-row:last-child { border-bottom: 0; }
.spark-row .val { font-weight: 700; text-align: right; font-size: 15.5px; }
.spark-row .delta { font-size: 11px; display: block; font-weight: 600; }
.up { color: var(--green2); } .down { color: var(--red); }
.spark { width: 100%; height: 40px; display: block; overflow: visible; }
.spark .ln { fill: none; stroke: var(--green2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .pt { fill: var(--green2); stroke: var(--card); stroke-width: 2; }
.spark .grid { stroke: var(--line); stroke-width: 1; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { width: 14px; height: 14px; border-radius: 4px; background: var(--green2); }
.dot.no { background: var(--line); }
.dot.match { border-radius: 50%; }

table.list { width: 100%; border-collapse: collapse; font-size: 12px; }
table.list td, table.list th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }

/* модал */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px; }
@media (min-width: 640px) { .overlay { align-items: center; } .modal { border-radius: 18px; } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1a2420; color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 30; max-width: 90vw; }
.toast.err { background: var(--red); }
.code { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: 4px; font-weight: 700; }
.consent { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 12px; }

/* ---------- големи екрани за тренери ---------- */
.big-card { padding: 18px; min-height: 76px; }
.big-card-title { font-size: 18.5px; font-weight: 700; }
.chev { font-size: 28px; color: var(--muted); line-height: 1; }
.count { font-size: 17.5px; font-weight: 700; color: var(--muted); }
.action-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.huge, .btn.huge { width: 100%; min-height: 68px; font-size: 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pill { background: var(--gold); color: #fff; border-radius: 99px; font-size: 13px; padding: 3px 10px; }
.alert-card { background: var(--red-soft); border-color: transparent; color: var(--ink); }
.center-block { display: block; margin: 8px auto 0; }

.photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--green-soft); }
.photo.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: clamp(36px, 12vw, 56px); letter-spacing: 1px; }
.ph0 { background: #1f7a45; } .ph1 { background: #2563eb; } .ph2 { background: #b45309; } .ph3 { background: #7c3aed; }
.ph4 { background: #be185d; } .ph5 { background: #0e7490; } .ph6 { background: #c2410c; } .ph7 { background: #4d7c0f; }
.photo.md { width: 160px; margin: 0 auto; border-radius: 20px; }
.photo.xl { width: min(56vw, 230px); margin: 0 auto; border-radius: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.photo.md.ph, .photo.xl.ph { font-size: 62.5px; }

.kid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .kid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kid { background: var(--card); border: 1px solid #7e7d7d; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.kid.here { border-color: var(--green2); }
.kid-link { color: inherit; text-decoration: none; }
.kid-photo { position: relative; display: block; width: 100%; padding: 0; margin: 0; border-radius: 0; background: none; min-height: 0; }
.kid.absent .photo { filter: grayscale(1); opacity: .35; }
.corner-flag { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.corner-flag.ok { background: var(--green2); color: #fff; }
.corner-flag.warn { background: var(--red); color: #fff; }
.corner-flag.right { left: auto; right: 8px; background: #fff; }
.absent-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--red); color: #fff; font-weight: 800;
  font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.kid-name { padding: 10px 12px 2px; line-height: 1.15; }
.kid-name b { display: block; font-size: 18.5px; }
.kid-name span { font-size: 14px; color: var(--muted); }
.kid-sub { padding: 2px 12px 12px; font-size: 13px; color: var(--muted); }
.kid-rate { display: flex; gap: 6px; padding: 8px 10px 4px; }
.kid-rate button { flex: 1; min-height: 56px; padding: 0; font-size: 24.5px; background: var(--bg); border: 3px solid var(--line); border-radius: 14px; }
.kid-rate button.on { border-color: var(--green2); background: var(--green-soft); transform: scale(1.04); }
.kid-off { padding: 18px 12px 10px; font-size: 13px; color: var(--muted); text-align: center; flex: 1; }
.kid-note { background: none; color: var(--muted); font-weight: 500; font-size: 13px; min-height: 44px; padding: 6px 10px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 10px; }
.legend-r { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 15px; }
.counter { position: sticky; top: 56px; z-index: 3; background: var(--bg); padding: 10px 0; display: flex; gap: 10px; }
.cnt { flex: 1; text-align: center; font-weight: 800; font-size: 16.5px; padding: 10px; border-radius: 12px; }
.cnt.yes { background: var(--green-soft); color: var(--green); }
.cnt.no { background: var(--red-soft); color: var(--red); }
.done-btn { margin-top: 18px; }
.big-check { font-size: 16.5px; }

.progress { position: relative; background: var(--line); border-radius: 99px; height: 30px; overflow: hidden; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 30px; margin-bottom: 12px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; background: var(--green-soft); width: 0; transition: width .3s; z-index: 0; }
.progress { isolation: isolate; } .progress .bar { z-index: -1; }
.assess-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: 16.5px; }
.assess-nav button { min-width: 64px; font-size: 24.5px; padding: 6px 0; }
.assess-head { text-align: center; margin-bottom: 8px; }
.assess-name { font-size: 23.5px; font-weight: 800; margin: 10px 0 4px; line-height: 1.2; }
.skill-block { margin: 14px 0; border: 1px solid #DDD; border-radius: 10px; padding: 5px 14px; background-color: #ededed; }
.skill-block .lbl { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.seg5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seg5 button { min-height: 36px; font-size: 14.5px; background: var(--card); color: var(--ink); border: 1px solid #8e9b92; border-radius: 11px; padding: 0; }
.seg5 button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.sticky-save { position: sticky; bottom: 14px; margin-top: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
main:has(.sticky-save) { padding-bottom: 30px; }

/* ---------- календар ---------- */
.top-icons { display: flex; gap: 4px; align-items: center; }
.topbar .top-icons a { font-size: 22px; padding: 4px 8px; position: relative; }
.bell-count { position: absolute; top: -2px; right: -2px; background: #e11d48; color: #fff; font-size: 11.5px; font-weight: 800;
  min-width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.week-nav > button { min-width: 64px; font-size: 26px; padding: 4px 0; }
.week-label { text-transform: capitalize;  flex: 1; text-align: center; font-weight: 800; font-size: 17.5px; }
.week-label button { display: block; margin: 0 auto; font-size: 13px; min-height: 32px; padding: 2px 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -14px 12px; padding: 14px 14px; }
.chips button { white-space: nowrap; background: var(--card); color: var(--ink); border: 2px solid var(--line); min-height: 46px; padding: 8px 16px; }
.chips button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.action-row .huge { font-size: 16.5px; min-height: 60px; }
.cal-day { margin-bottom: 14px; }
.cal-day-h { font-weight: 800; font-size: 15.5px; margin: 0 2px 6px; display: flex; align-items: center; gap: 8px; }
.cal-day.empty .cal-day-h { color: var(--muted); font-weight: 600; }
.cal-day.today .cal-day-h { color: var(--green2); }
.cal-none { color: var(--muted); font-size: 13px; margin: -4px 2px 0; }
.pill.green { background: var(--green2); }
.ev { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-left: 8px solid var(--green2); border-radius: 16px; padding: 12px 12px 12px 14px; margin-bottom: 40px; font-weight: 400; }
.ev.match { border-left-color: var(--gold); background: var(--gold-soft); }
.ev.cancelled { border-left-color: var(--red); opacity: .75; }
.ev.cancelled .ev-title, .ev.cancelled .ev-time b { text-decoration: line-through; }
.ev-time { display: flex; flex-direction: column; align-items: center; min-width: 62px; }
.ev-time b { font-size: 20px; }
.ev-time span { font-size: 13px; color: var(--muted); }
.ev-body { flex: 1; min-width: 0; }
.ev-title { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.ev-sub { font-size: 14px; color: var(--muted); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ev-detail-when { font-size: 17.5px; }
.ev-detail-when b { font-size: 26px; }
.big-badge { font-size: 15.5px; padding: 6px 12px; }
.seg-choice { display: flex; gap: 6px; }
.seg-choice button { flex: 1; background: var(--card); color: var(--ink); border: 1px solid #9fa7a2; padding: 6px 4px; }
.seg-choice button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.seg-choice.wd7 button { font-size: 14px; padding: 6px 0; }
.modal .row.wrap > button { flex: 1 1 100%; }
.modal .row.wrap > button.grow { flex: 1 1 40%; }
.notif.unread { border-left: 6px solid #e11d48; }
.notif-title { font-weight: 800; font-size: 16.5px; margin-bottom: 4px; }
.next-card { border: 2px solid var(--green2); }
.next-item { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.next-item:first-of-type { border-top: 0; }
input[type=date], input[type=time] { font-size: 17.5px; }

/* ---------- термини и одложен тренинг ---------- */
.day-toggle { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day-toggle button { padding: 0; min-height: 58px; font-size: 14px; background: var(--card); color: var(--ink); border: 3px solid var(--line); }
.day-toggle button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.day-toggle button.taken:not(.on) { border-style: dashed; }
.slot-row { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.slot-day { font-weight: 800; font-size: 17.5px; margin-bottom: 4px; }
button.postpone, .btn.postpone { background: #c2410c; color: #fff; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); color: var(--ink);
  border: 3px solid var(--line); font-weight: 400; font-size: 16.5px; }
.pick.on { border-color: #c2410c; background: #fff4ec; }
@media (prefers-color-scheme: dark) { .pick.on { background: #3a2316; } }
.pick-dot { font-size: 19px; color: #c2410c; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.setup-card { border: 2px dashed var(--green2); background: var(--green-soft); }
.setup-card b { font-size: 16.5px; display: block; margin-bottom: 4px; }
.next-line { font-size: 15.5px; margin: -6px 0 12px; color: var(--muted); }
.next-line b { color: var(--ink); }

/* ---------- лого на клуб ---------- */
.club-logo { object-fit: contain; display: block; }
.club-logo.top { width: 34px; height: 34px; background: #fff; border-radius: 8px; padding: 2px; }
.brand-name { font-size: 18.5px; font-weight: 500; }
.club-logo.card-logo { width: 52px; height: 52px; flex: none; }
.club-logo.head-logo { width: 56px; height: 56px; flex: none; }
.club-logo.big-logo { width: 180px; height: 180px; margin: 0 auto; }
.logo-empty { width: 180px; height: 180px; margin: 0 auto; border: 3px dashed var(--line); border-radius: 20px; display: flex;
  align-items: center; justify-content: center; color: var(--muted); }

/* ---------- Metro плочки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.crumb { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; background: #5f5c5c; border: 2px solid var(--line);
  color: #FFF; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 20px; }
.crumb.home { background: #1E7145; border-color: #1E7145; color: #fff; }
.crumb:not(.home)::before { content: "›"; margin-right: 8px; color: var(--muted); font-size: 19px; line-height: 1; }
.metro-title { font-size: 28px; font-weight: 300; letter-spacing: -.5px; margin: 4px 0 6px; }
.metro-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.metro-head { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 300; margin: 22px 0 10px; }
.metro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 620px) { .metro { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1;
  padding: 14px; color: #fff; text-decoration: none; text-align: left; border: 0; border-radius: 0; min-height: 0;
  font-weight: 400; overflow: hidden; transition: transform .08s; }
.tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.tile:active { transform: scale(.97); }
.tile:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.t-top { display: flex; justify-content: space-between; align-items: flex-start; }
.t-icon { font-size: 29.5px; line-height: 1; }
.t-big { font-size: 42px; font-weight: 300; line-height: 1; }
.t-unit { font-size: 17.5px; }
.t-label { font-size: 17.5px; font-weight: 600; line-height: 1.15; }
.tile.wide .t-label { font-size: 22.5px; }
.t-info { font-size: 13px; opacity: .92; margin-top: 3px; line-height: 1.25; }
.tile.wide .t-info { font-size: 15px; }
.c-green { background: #1E7145; } .c-blue { background: #2B5797; } .c-purple { background: #603CBA; }
.c-teal { background: #00706E; } .c-magenta { background: #8E1A8F; } .c-steel { background: #3B4A5A; }
.c-orange { background: #C2410C; } .c-red { background: #B91D47; } .c-gold { background: #8A5A00; }
a.alert-card { display: block; color: var(--ink); text-decoration: none; }
.tile { aspect-ratio: auto; min-height: 172px; gap: 6px; border-radius: 17px; }
.tile.wide { aspect-ratio: auto; min-height: 172px; }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.or { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.role-chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border: 2px solid currentColor; border-radius: 99px; white-space: nowrap;
  max-width: 42vw; overflow: hidden; text-overflow: ellipsis; margin-right: 4px; }
.topbar { transition: background .2s; border-bottom: 0px solid var(--bg); }
.topbar .brand, .topbar .top-icons a { color: inherit; }
.color-preview { padding: 16px; font-weight: 800; font-size: 17.5px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.swatch { min-height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 0; }
input[type=color] { width: 72px; height: 48px; padding: 2px; border: 2px solid var(--line); background: var(--card); }
.topbar .brand { min-width: 0; flex: 1; }
.brand-name, .topbar .brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .topbar .brand { font-size: 15px; } .role-chip { font-size: 11px; padding: 3px 8px; } }
.crumb.home { background: var(--club, #1E7145); border-color: var(--club, #1E7145); color: var(--club-ink, #fff); }

/* ---------- голем календар и време (телефон) ---------- */
.dp-quick, .tp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dp-quick button, .tp-quick button { flex: 1 0 auto; min-height: 48px; padding: 6px 12px; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 0; font-size: 15px; }
.dp-quick button.on, .tp-quick button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }
.tp-quick button { flex: 1 0 22%; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; }
.dp-head b { font-size: 17.5px; }
.dp-head button { min-width: 56px; font-size: 24.5px; padding: 0; background: var(--green-soft); color: var(--green); border-radius: 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-wd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.dp-day { min-height: 48px; padding: 0; font-size: 16.5px; font-weight: 600; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 0; }
.dp-day.today { border-color: var(--green2); color: var(--green2); }
.dp-day.past { opacity: .45; }
.dp-day.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); opacity: 1; }
.dp-chosen { margin-top: 8px; font-size: 15px; }
.tp-main { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.tp-col { display: flex; flex-direction: column; align-items: center; }
.tp-col button { min-width: 84px; min-height: 48px; font-size: 17.5px; padding: 0; background: var(--green-soft); color: var(--green); border-radius: 0; }
.tp-num { font-size: 40px; font-weight: 300; line-height: 1.15; min-width: 84px; text-align: center; }
.tp-colon { font-size: 40px; font-weight: 300; }
.dur button { font-size: 15px; }
.modal { padding-bottom: 28px; }
.consent-card { border: 3px solid var(--gold); background: var(--gold-soft); }

/* ---------- дете на почетниот екран ---------- */
.tile.kid-home { flex-direction: row; justify-content: flex-start; align-items: stretch; padding: 0; gap: 0; min-height: 190px; }
.kid-home .photo.kh { width: 42%; max-width: 220px; aspect-ratio: auto; height: auto; min-height: 190px; object-fit: cover; flex: none; }
.kid-home .photo.kh.ph { font-size: 47px; background: rgba(255,255,255,.18); }
.kh-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.kh-name { font-size: 22.5px; font-weight: 700; line-height: 1.1; }
.kh-name span { font-weight: 300; }
.kh-next { font-size: 15px; line-height: 1.3; }
textarea { font: inherit; min-height: 120px; }
.pick-list { max-height: 50vh; overflow: auto; }
.pick-row { background: var(--bg); padding: 10px 12px; }
.send-count { font-weight: 800; font-size: 15.5px; text-align: center; }
.preview { margin: 0; }
.notif-body { white-space: pre-wrap; }
.send-btn { margin-bottom: 12px; background: #B91D47; }

/* ---------- бои на известувањата ---------- */
.notif { border-left: 6px solid var(--line); }
.notif.kind-postpone { background: #fdecec; border-left-color: #e57373; }
.notif.kind-match { background: #fff1e0; border-left-color: #f0a040; }
.notif.kind-club { background: #e9f6ea; border-left-color: #66bb6a; }
.notif.kind-parent { background: #e8f0fe; border-left-color: #6b9bff; }
@media (prefers-color-scheme: dark) {
  .notif.kind-postpone { background: #3a2222; } .notif.kind-match { background: #3a2c18; }
  .notif.kind-club { background: #1f3322; } .notif.kind-parent { background: #1c2740; }
}
.notif.unread .notif-title::after { content: " • ново"; color: #e11d48; font-size: 12px; font-weight: 700; }
.reply-hint { margin-top: 6px; font-weight: 700; color: var(--blue); }

/* ---------- прочитани / непрочитани ---------- */
div.notif { cursor: pointer; }
.notif-head { display: flex; align-items: flex-start; gap: 10px; }
.notif-head .notif-title { flex: 1; }
.notif.read .notif-title { font-weight: 500; }
.notif.read { opacity: .82; }
.notif.unread .notif-title { font-weight: 800; }
.notif.unread .notif-title::after { content: none; }
.unread-dot { width: 14px; height: 14px; border-radius: 50%; background: #1877f2; flex: none; margin-top: 6px; }
.notif-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.notif-foot .mark { min-height: 36px; padding: 4px 8px; white-space: nowrap; }
.notif-tools { margin-bottom: 4px; }
.seen { font-weight: 700; color: var(--green2); margin-top: 4px; }

/* ---------- известување: голем панел прочитано / непрочитано ---------- */
.notif-row { display: flex; align-items: stretch; margin-bottom: 10px; border: 1px solid var(--line); border-left: 6px solid var(--line);
  background: var(--card); border-radius: var(--radius); overflow: hidden; }
.notif-row.kind-postpone { background: #fdecec; border-left-color: #e57373; }
.notif-row.kind-match { background: #fff1e0; border-left-color: #f0a040; }
.notif-row.kind-club { background: #e9f6ea; border-left-color: #66bb6a; }
.notif-row.kind-parent, .notif-row.kind-direct { background: #e8f0fe; border-left-color: #6b9bff; }
@media (prefers-color-scheme: dark) {
  .notif-row.kind-postpone { background: #3a2222; } .notif-row.kind-match { background: #3a2c18; }
  .notif-row.kind-club { background: #1f3322; } .notif-row.kind-parent, .notif-row.kind-direct { background: #1c2740; }
}
.notif-main { flex: 1; min-width: 0; padding: 14px; cursor: pointer; }
.notif-row.unread .notif-title { font-weight: 800; }
.notif-row.read .notif-title { font-weight: 500; }
.notif-row.read .notif-main { opacity: .8; }
.read-panel { flex: none; width: 92px; min-height: 0; border-radius: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 8px 4px; background: #c9ced3; color: #3f474e; font-size: 12px; font-weight: 700; }
.read-panel.is-unread { background: #1f9d55; color: #fff; }
.read-panel .rp-icon { font-size: 26px; line-height: 1; }
@media (prefers-color-scheme: dark) { .read-panel { background: #3a4249; color: #c9d1d7; } }
.archive-btn { margin-top: 10px; min-height: 40px; padding: 6px 14px; background: rgba(0,0,0,.06); color: var(--ink); font-size: 13px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .archive-btn { background: rgba(255,255,255,.1); } }

/* ---------- одложен термин во календарот ---------- */
.ev.cancelled { background: #fdecec; border-color: #f3b4b4; border-left-color: #d32f2f; opacity: 1; }
.ev.cancelled .ev-title, .ev.cancelled .ev-time b { text-decoration: line-through; text-decoration-color: #d32f2f; color: #8a1c1c; }
@media (prefers-color-scheme: dark) { .ev.cancelled { background: #3a2222; border-color: #5a2a2a; } .ev.cancelled .ev-title, .ev.cancelled .ev-time b { color: #f3b4b4; } }
.postponed-tag { display: inline-block; background: #d32f2f; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 6px; }
.postponed-tag.big { font-size: 19px; padding: 10px 14px; text-align: center; display: block; }
.cal-day { scroll-margin-top: 70px; }

/* ---------- календар: месечни коцки ---------- */
.cal-mode { margin-bottom: 10px; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-left: -6px; margin-right: -6px; margin-bottom: 8px; }
.mwd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.mday { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  border-radius: 0; background: var(--card); color: var(--ink); border: 2px solid #484c49; font-weight: 400; }
.mday .mnum { font-size: 15px; font-weight: 700; }
.mday .micon { font-size: 15px; line-height: 1; }
.mday .mlabel { font-size: 8.5px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.mday .mcount { position: absolute; top: 2px; right: 3px; font-size: 10px; font-weight: 800; color: var(--muted); }
.mday.out { opacity: .4; }
.mday.past:not(.today) { opacity: .65; }
.mday.k-training { background: #e7f5ec; border-color: #8fd0a6; }
.mday.k-match { background: #fff1e0; border-color: #f0b46a; }
.mday.k-postponed { background: #fdecec; border-color: #ef9a9a; }
.mday.k-postponed .mlabel { color: #b71c1c; }
.mday.today { border-color: var(--green2); border-width: 3px; }
.mday.sel { outline: 3px solid var(--ink); outline-offset: -1px; z-index: 1; }
@media (prefers-color-scheme: dark) {
  .mday.k-training { background: #1d3326; border-color: #2f6b45; } .mday.k-match { background: #3a2c18; border-color: #8a5a20; }
  .mday.k-postponed { background: #3a2222; border-color: #7a3030; } .mday.k-postponed .mlabel { color: #f3b4b4; }
}
.mlegend { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; }
.mlegend span { border: none; }
.mlegend .k-training { background: #e7f5ec; border-color: #8fd0a6; }
.mlegend .k-match { background: #fff1e0; border-color: #f0b46a; }
.mlegend .k-postponed { background: #fdecec; border-color: #ef9a9a; }
@media (prefers-color-scheme: dark) { .mlegend span { background: transparent !important; } }
.day-panel { scroll-margin-top: 70px; margin-bottom: 14px; }
@media (min-width: 620px) { .mday { min-height: 84px; } .mday .mlabel { font-size: 11.5px; } }

/* ---------- календар: покомпактно за телефон ---------- */
.cal-mode button { min-height: 42px; font-size: 14px; border-width: 2px; padding: 4px; }
.week-nav { margin-bottom: 8px; }
.week-nav > button { min-width: 48px; min-height: 40px; font-size: 21px; padding: 0; }
.week-label { font-size: 15px; }
.cal-chips { margin-bottom: 8px; }
.cal-chips button { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.mcal { gap: 2px; }
.mwd { font-size: 10px; }
.mday { min-height: 50px; padding: 2px 0; border-width: 1px; gap: 0; }
.mday .mnum { font-size: 12px; }
.mday .micon { font-size: 11.5px; }
.mday .mlabel { font-size: 9px; letter-spacing: -.5px; }
.mday .mcount { font-size: 8px; top: 1px; right: 2px; }
.mday.today { border-width: 2px; }
.mday.sel { outline-width: 2px; }
.mlegend { font-size: 10px; gap: 4px; margin-bottom: 25px; margin-top: 11px; }
.mlegend span { padding: 2px 6px; border-width: 1px; }
.cal-actions button.huge { min-height: 48px; font-size: 15px; padding: 6px 8px; }
@media (min-width: 620px) { .mday { min-height: 70px; } .mday .mnum { font-size: 14px; } .mday .mlabel { font-size: 11px; } }

/* ---------- вештини по месеци: коцки ---------- */
.sk-grid { display: grid; gap: 5px; margin: 6px 0 10px; }
.sk-row { display: grid; grid-template-columns: 92px repeat(var(--n), minmax(0, 1fr)) 26px; gap: 5px; align-items: center; }
.sk-name { font-weight: 700; font-size: 13px; line-height: 1.15; }
.sk-mon { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.1; }
.sk-mon small { display: block; font-size: 10px; font-weight: 600; }
.sk { display: flex; align-items: center; justify-content: center; font-weight: 500;
  border: 1px solid transparent; color: #1b2a20; }
.sk-1 { background: #fbd5d5; border-color: #ef9a9a; }
.sk-2 { background: #fde3c8; border-color: #f0b46a; }
.sk-3 { background: #fdf3c4; border-color: #e6cf6a; }
.sk-4 { background: #d9f0df; border-color: #8fd0a6; }
.sk-5 { background: #b5e3c2; border-color: #4caf73; }
.sk-trend { text-align: center; font-size: 15.5px; font-weight: 800; color: var(--muted); }
.sk-trend.up { color: var(--green2); } .sk-trend.down { color: var(--red); }
.sk-legend { display: flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--muted); margin: 20px 0px; }
.sk-legend .sk { width: 20px; height: 20px; font-size: 11px; font-weight: 400; }
.sk-legend::before { content: "Лошо"; margin-right: 4px; }
.sk-legend::after { content: "Одлично"; margin-left: 4px; }
@media (prefers-color-scheme: dark) {
  .sk { color: #fff; }
  .sk-1 { background: #4a2424; border-color: #8a3a3a; } .sk-2 { background: #4a3420; border-color: #8a5a20; }
  .sk-3 { background: #45401f; border-color: #8a7a2a; } .sk-4 { background: #1f3d2a; border-color: #2f6b45; }
  .sk-5 { background: #1d5232; border-color: #3f9a62; }
}

/* ---------- последни тренинзи: поголемо ---------- */
.dots { gap: 6px; }
.dots .dot { width: 38px; height: 38px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; }
.dots .dot.no { color: var(--muted); }
.dots .dot.match { border-radius: 50%; }
.dot-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.dot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-legend .dot { width: 20px; height: 20px; display: inline-block; }
.hist-table td { font-size: 14px; padding: 8px 6px; }
.add-kid-btn { margin: 6px 0 14px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.stat { background: var(--card); border: 2px solid var(--line); padding: 10px 14px; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--green); }
.stat .k { font-size: 13px; color: var(--muted); }

/* ---------- почетна за тренер: следна активност + табла ---------- */
.next-act { background: var(--card); border: 1px solid #c4cfc7; border-left: 10px solid var(--green2); padding: 14px 14px 12px; margin-bottom: 14px; border-radius: 15px; }
.next-act.k-match { border-left-color: #e8913a; }
.na-when { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--muted); }
.na-what { font-size: 19.5px; font-weight: 700; margin-top: 2px; }
.na-squad { font-size: 15.5px; font-weight: 600; }
.na-squad.strong { display: inline-block; background: var(--club, var(--green)); color: var(--club-ink, #fff); padding: 3px 12px; margin-top: 8px; margin-bottom: 8px; border-radius: 20px; }
.na-loc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.na-note { margin: 10px 0 0; }
.tb-tabs { margin: 12px 0 10px; }
.tb-tabs button { min-height: 60px; font-size: 16.5px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tboard .legend { font-size: 14px; }
.kid.kid-tap { padding: 0; margin: 0; min-height: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--card); border-radius: 20px; }
.kid-note.has { color: var(--ink); font-weight: 600; text-align: left; }
.big-rating { font-size: 19px; font-weight: 700; align-self: center; }
.tboard textarea { width: 100%; font-size: 16px; }
.photo.sm { width: 64px; flex: none; border-radius: 12px; } .photo.sm.ph { font-size: 21px; }
.modal textarea { width: 100%; font-size: 16px; }
.tboard .kid-note { font-size: 14px; }
.dots .dot { flex-direction: column; line-height: 1; }
.dot-ic { font-size: 19px; line-height: 1; }
.dot-d.sm { font-size: 9px; margin-top: 1px; opacity: .9; }
.dots .dot { width: 42px; height: 42px; }
.dot-ic { border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 2px solid #FFF; }
/* вештини: коцките и месеците точно една под друга, помал размак */
.sk-grid { gap: 3px; }
.sk-row { grid-template-columns: 80px repeat(var(--n), minmax(0, 48px)) 22px; gap: 3px; justify-content: start; }
.sk-mon { justify-self: stretch; text-align: center; }
.sk { width: 100%; max-height: none; aspect-ratio: 1; font-size: 17px; justify-self: stretch; }
.sk-trend { justify-self: center; }
.sk-name { font-size: 13px; }
.sk-head { align-items: end; }
.sk-overall { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin: 6px 0 12px; border: 2px solid; }
.sk-ov-num { font-size: 40px; font-weight: 800; line-height: 1; white-space: nowrap; }
.sk-ov-num small { font-size: 16px; font-weight: 700; opacity: .7; }
.sk-ov-txt { font-size: 14px; line-height: 1.3; }
.sk-ov-txt b { font-size: 15px; }
.sk-ov-d { font-weight: 700; }
.sk-total { margin-top: 4px; padding-top: 6px; border-top: 2px solid var(--line); }
.sk-total .sk { font-size: 14px; }
.sk-total .sk-name { font-weight: 800; }
.hist-toggle { width: 100%; margin-top: 10px; }
.fee-input { display: flex; align-items: center; gap: 8px; }
.fee-input input { flex: 1; }
.fee-input span { font-weight: 700; color: var(--muted); }
.badge.fee { background: #fff1e0; color: #8a4b0f; }
.fee-line { font-size: 17px; }
@media (prefers-color-scheme: dark) { .badge.fee { background: #3a2c18; color: #f5c88a; } }

/* ---------- потврда за учество ---------- */
.rsvp { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.rsvp-kid { background: var(--card); border: 2px solid #f0b46a; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rsvp-kid.s-yes { border-color: var(--green2); background: var(--green-soft); }
.rsvp-kid.s-no { border-color: #ef9a9a; background: var(--red-soft); }
.rsvp-name { font-weight: 800; font-size: 18px; }
.rsvp-done { font-weight: 700; font-size: 17px; }
.rsvp-yes { background: var(--green2); color: #fff; }
.rsvp-no { background: var(--red-soft); color: var(--red); border: 2px solid #ef9a9a; font-size: 16px; }
.rsvp-sum { margin: 10px 0; }
.rsvp-counts { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; background: none; padding: 0; min-height: 0; color: var(--ink); }
.rsvp-counts span { padding: 5px 10px; font-weight: 500; font-size: 12px; border: 2px solid var(--line); border-radius: 20px; }
.rsvp-counts .c-yes { background: var(--green-soft); color: var(--green); border-color: #8fd0a6; }
.rsvp-counts .c-no { background: var(--red-soft); color: var(--red); border-color: #ef9a9a; }
.rsvp-counts .c-pend { background: #fff1e0; color: #8a4b0f; border-color: #f0b46a; }
.rsvp-list { font-size: 15px; margin-top: 6px; }
.badge.rsvp-need { background: #e8913a; color: #fff; }
.rsvp-card-head { display: block; color: inherit; text-decoration: none; }
.match-page { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.match-page h1 { margin-bottom: 0; }
.match-page .na-squad.strong { align-self: flex-start; }
@media (prefers-color-scheme: dark) { .rsvp-counts .c-pend { background: #3a2c18; color: #f5c88a; } }
.t-counts { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tc { font-weight: 700; font-size: 14px; padding: 3px 8px; white-space: nowrap; }
.tc.att { background: var(--green-soft); color: var(--green); }
.tc.rate { background: #fff1e0; color: #8a4b0f; }
.tc.rate.full, .badge.rated.full { background: #fdf3c4; color: #6b5200; }
.badge.rated { background: #fff1e0; color: #8a4b0f; }
.na-counts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Права по улоги ---------- */
.pm-card h3 { margin-bottom: 2px; }
.pm-grid { display: flex; flex-direction: column; }
.pm-row { display: grid; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.pm-row.pm-n3 { grid-template-columns: 1fr repeat(3, 58px); }
.pm-row.pm-n1 { grid-template-columns: 1fr 70px; }
.pm-head { border-top: 0; padding-top: 0; position: sticky; top: 56px; background: var(--card); z-index: 1; }
.pm-role { font-size: 12px; font-weight: 800; text-align: center; color: var(--muted); }
.pm-label { font-size: 15px; line-height: 1.25; }
.pm-tg { min-height: 46px; padding: 0; font-size: 20px; font-weight: 800; background: var(--red-soft); color: var(--red); border: 2px solid #ef9a9a; }
.pm-tg.on { background: var(--green2); color: #fff; border-color: var(--green2); }
.pm-na { text-align: center; color: var(--muted); }
/* права: помали копчиња */
.pm-row.pm-n3 { grid-template-columns: 1fr repeat(3, 46px); gap: 5px; }
.pm-row.pm-n2 { grid-template-columns: 1fr repeat(2, 56px); gap: 5px; }
.pm-row.pm-n1 { grid-template-columns: 1fr 56px; }
.pm-row { padding: 6px 0; }
.pm-tg { min-height: 34px; font-size: 15px; border-width: 1.5px; }
.pm-label { font-size: 14px; }
.pm-role { font-size: 11px; }
.next-act.k-cancel { border-left-color: var(--red); background: var(--red-soft); }
.na-what.struck { text-decoration: line-through; text-decoration-color: var(--red); }
.ann .postponed-tag { display: inline-block; margin: 4px 0; }
.ann-ans { margin-top: 8px; font-weight: 700; font-size: 15px; }
/* ---------- контакти на родители ---------- */
.contact { padding: 10px 0; border-top: 1px solid var(--line); }
.contact:first-of-type { border-top: 0; }
.c-name { font-weight: 800; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-lines { margin: 4px 0 8px; font-size: 15px; word-break: break-all; }
.c-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.c-btns .btn { flex: 1; min-width: 90px; text-align: center; padding: 10px 8px; }
.c-call { background: var(--green2); color: #fff; }
.phone-hint { display: block; background: #fff1e0; border-color: #f0b46a; color: inherit; text-decoration: none; }
@media (prefers-color-scheme: dark) { .phone-hint { background: #3a2c18; } }
.c-btns .btn { white-space: nowrap; font-size: 15px; }
.link-btn { width: 100%; margin-top: 6px; }
.cand-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.cand { border: 2px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.cand.match { border-color: #f0b46a; background: #fff8ee; }
.cand-name { font-weight: 800; font-size: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cand-hint { font-size: 14px; }
.cand button { align-self: flex-start; }
@media (prefers-color-scheme: dark) { .cand.match { background: #3a2c18; } }

/* ---------- живо известување (без освежување) ---------- */
.live-toast { position: fixed; left: 10px; right: 10px; top: 64px; z-index: 50; display: block; max-width: 520px; margin: 0 auto;
  background: var(--card); color: var(--ink); text-decoration: none; padding: 12px 40px 12px 14px; border: 2px solid var(--line);
  border-left: 10px solid #4caf73; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: lt-in .25s ease-out; }
.live-toast.kind-postponed { border-left-color: #e57373; }
.live-toast.kind-match { border-left-color: #e8913a; }
.live-toast.kind-parent, .live-toast.kind-direct { border-left-color: #5b8def; }
.lt-title { font-weight: 800; font-size: 16px; }
.lt-body { font-size: 15px; margin-top: 2px; }
.lt-more { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lt-x { position: absolute; top: 6px; right: 6px; min-height: 0; padding: 4px 8px; background: none; color: var(--muted); font-size: 18px; }
@keyframes lt-in { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.dup-box { background: #fff1e0; border: 2px solid #f0b46a; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
@media (prefers-color-scheme: dark) { .dup-box { background: #3a2c18; } }

/* ---------- колор шема на клубот ---------- */
.scheme .c-blue { background: var(--tc-blue); color: var(--tc-blue-ink); }
.scheme .c-green { background: var(--tc-green); color: var(--tc-green-ink); }
.scheme .c-purple { background: var(--tc-purple); color: var(--tc-purple-ink); }
.scheme .c-teal { background: var(--tc-teal); color: var(--tc-teal-ink); }
.scheme .c-magenta { background: var(--tc-magenta); color: var(--tc-magenta-ink); }
.scheme .c-steel { background: var(--tc-steel); color: var(--tc-steel-ink); }
.scheme .c-orange { background: var(--tc-orange); color: var(--tc-orange-ink); }
.scheme .c-red { background: var(--tc-red); color: var(--tc-red-ink); }
.scheme .c-gold { background: var(--tc-gold); color: var(--tc-gold-ink); }
.scheme-prev { border: 1px solid var(--line); overflow: hidden; }
.sp-bar { padding: 8px 12px; font-weight: 800; }
.sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; }
.sp-tile { min-height: 54px; padding: 6px; font-size: 12px; font-weight: 700; display: flex; align-items: flex-end; }
.scheme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scheme-btn { display: flex; align-items: center; gap: 8px; justify-content: flex-start; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); min-height: 46px; padding: 6px 8px; font-size: 14px; text-align: left; }
.sb-dots { display: inline-flex; gap: 2px; flex: none; }
.sb-dots i { width: 14px; height: 22px; display: inline-block; }
.color-rows { display: flex; flex-direction: column; gap: 6px; }
.color-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.color-row input[type=color] { width: 64px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; }

/* ---------- линиски икони ---------- */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; }
.t-icon .ico { width: 30px; height: 30px; opacity: .95; }
.tile.wide .t-icon .ico { width: 34px; height: 34px; }
.ico-sm { width: 18px; height: 18px; vertical-align: -3px; }
.ico-top { width: 26px; height: 26px; }
#notif-link, #account-link { display: inline-flex; align-items: center; color: inherit; position: relative; }
h1.with-ico { display: flex; align-items: center; gap: 10px; }
.ico-title { width: 30px; height: 30px; color: var(--club, var(--green)); }
.topbar.dark-text .ico-top { color: #111; }
.crumb.home { display: inline-flex; align-items: center; gap: 6px; } .cal-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- код за родител ---------- */
.code-box { border: 2px dashed var(--club, var(--green)); padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.code-digits { font-size: 40px; font-weight: 800; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.code-input { font-size: 24px !important; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; flex: 1; min-width: 0; }
.code-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.code-field { background: #fff8ee; border: 2px solid #f0b46a; padding: 10px; }
@media (prefers-color-scheme: dark) { .code-field { background: #3a2c18; } }
.add-mode { margin: 2px 0; } .add-mode button { min-height: 48px; font-size: 15px; }

/* ---------- избор на генерација со квадратчиња ---------- */
.gen-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 4px; }
.gen-sq { min-height: 64px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 10px; }
.gen-sq b { font-size: 20px; font-weight: 800; }
.gen-sq span { font-size: 11px; color: var(--muted); line-height: 1.1; text-align: center; }
.gen-sq.on { background: var(--club, var(--green)); color: var(--club-ink, #fff); border-color: var(--club, var(--green)); }
.gen-sq.on span { color: inherit; opacity: .85; }
.google-btn { min-height: 44px; display: flex; justify-content: center; } .google-btn svg { width: 18px; height: 18px; }

/* ---------- добредојде на порталот на клубот ---------- */
.welcome-card { border-left: 8px solid var(--club, var(--green)); display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.wc-head { display: flex; align-items: center; gap: 12px; }
.wc-logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.wc-small { font-size: 14px; color: var(--muted); }
.wc-club { font-size: 22px; font-weight: 800; line-height: 1.15; }
.welcome-card p { margin: 0; }
.code-card.in-welcome { border: 0; padding: 0; margin: 0; box-shadow: none; background: none; }
.code-card.in-welcome h3, .code-card.in-welcome > p { display: none; }
.wc-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-toggle { align-self: flex-start; }

/* Измени / Избриши дете */
.kid-acts { display: flex; flex-direction: column; gap: 6px; }
.kid-acts button { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
.manage-bar { display: flex; gap: 10px; }
.manage-bar button { flex: 1; }

/* Breadcrumbs: Дома › Генерација › Деца › Име */
.crumbs { align-items: center; gap: 4px 2px; }
.crumb:not(.home) { min-height: 38px; padding: 6px 15px;
  font-size: 13.5px; text-underline-offset: 3px; max-width: 62vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 26px;
  margin: 0px 0px; }
.crumb:not(.home)::before { content: "›"; display: inline-block; margin-right: 4px; color: #FFF; text-decoration: none; }
.crumb.cur { color: #FFF; text-decoration: none; font-weight: 500; background: #5f5c5c; border: 0px solid #000000; border-radius: 20px; }
.crumb.home { min-height: 50px; padding: 6px 14px; margin-right: 4px; border-radius: 50%; }

/* Месечна оценка: Листа (едно по едно) / Мрежа (сите деца + popup) */
.assess-mode { margin: 4px 0 12px; }
.assess-mode button { min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.as-grid .as-kid { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px; color: var(--ink); cursor: pointer; font: inherit; text-align: center; }
.as-grid .as-kid.done { border-color: var(--green2, #3f9a62); }
.as-kid .kid-photo { position: relative; }
.as-score { display: inline-block; min-width: 38px; padding: 3px 8px; border-radius: 8px; border: 2px solid var(--line); font-weight: 800; color: #111; }
.as-pop .assess-head { margin-bottom: 4px; }
.as-pop .skill-block { margin: 8px 0; }
.kid-grid.as-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.as-grid .as-kid { padding: 5px; border-radius: 12px; }
.as-grid .kid-name b { font-size: 14px; } .as-grid .kid-name span { font-size: 12px; }
.as-grid .kid-sub { font-size: 11.5px; }
.as-grid .corner-flag { width: 26px; height: 26px; top: 4px; left: 4px; font-size: 13px; }
.as-pop .assess-head > :first-child { width: 96px; height: 96px; font-size: 34px; }
.as-pop .assess-head { flex-direction: row; justify-content: center; gap: 12px; }
@media (min-width: 700px) { .kid-grid.as-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Свои теми */
.my-theme { padding: 0; gap: 0; overflow: hidden; }
.my-theme .mt-use { flex: 1; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 13px;
  padding: 8px; min-height: 44px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.my-theme .mt-del { flex: none; width: 36px; min-height: 44px; padding: 0; background: none; border: 0; border-left: 1px solid var(--line);
  color: var(--muted); font-size: 20px; cursor: pointer; }
.my-theme .mt-del:hover { color: var(--red); }
.add-theme { border: 2px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.add-theme .row { gap: 8px; align-items: center; }
.add-theme .lbl { font-weight: 700; }
.wc-hint { background: #fff7e0; border: 1px solid #f2d27a; border-radius: 10px; padding: 8px 10px; font-weight: 600; }

/* Транспарентно заглавје */
.topbar.clear { background: rgba(245, 247, 245, .9); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 760px; margin: auto; }
.topbar.clear a, .topbar.clear .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) {  /* темен режим на телефонот: темно проѕирно заглавје со светол текст */
  .topbar.clear { background: rgba(15, 20, 18, .88); }
  .topbar.clear.dark-text .ico-top { color: var(--ink); }
}
.sp-bar.clear { background: transparent; color: var(--ink); border: 2px dashed var(--line); }
.clear-row { font-size: 14px; }
.topbar.own-ink a, .topbar.own-ink .brand, .topbar.own-ink .ico-top { color: inherit; }
.topbar.own-ink #role-chip { color: inherit; border-color: currentColor; }

/* Иконите на Известувања */
.ico-btn { width: 24px; height: 24px; vertical-align: -5px; }
.send-btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.read-panel .rp-icon .ico { width: 26px; height: 26px; }
.archive-btn, .reply-hint, .seen, .notif-tools .ghost { display: inline-flex; align-items: center; gap: 4px; }
.notif-title { display: flex; align-items: flex-start; gap: 6px; }
.ico-notif { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--club, #1E7145); }

/* Турнири */
.add-tourney { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; }
.tourney { padding: 0; overflow: hidden; }
.tourney.focused { outline: 3px solid var(--club, #1E7145); }
.t-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #eee; }
.t-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.t-date { font-weight: 700; color: var(--club, #1E7145); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.t-days { margin-left: 6px; font-size: 12px; font-weight: 700; background: #fff3cd; color: #7a5a00; border-radius: 99px; padding: 2px 8px; }
.t-title { font-size: 19px; font-weight: 800; line-height: 1.2; }
.t-gens { display: flex; flex-wrap: wrap; gap: 4px; }
.t-gens .na-squad.strong { margin: 0; font-size: 13px; }
.t-note { margin: 2px 0; white-space: pre-wrap; }
.t-interest { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.t-int { min-height: 52px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--club, #1E7145); color: var(--club-ink, #fff); }
.t-int.on { background: #e7f6ec; color: #14532d; border: 2px solid #4caf73; font-size: 14px; }
.t-staff { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.t-staff .t-count { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.t-staff .small { flex: 1; }
.t-list { border-top: 1px solid var(--line); padding-top: 8px; }
.t-group { margin-bottom: 8px; }
.t-gname { font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.t-kid { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 14px; }
.t-prev img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
.gen-pick .gen-sq.on { outline: none; }
.kid-acts .btn { padding: 7px 10px; font-size: 13px; white-space: nowrap; min-height: 0; justify-content: center; text-align: center; }
.kid-acts > * { min-height: 40px; display: flex; align-items: center; justify-content: center; }
.t-count-pub { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
/* Барање за бришење */
.del-req { border-left: 5px solid var(--red, #c8102e); background: #fff5f5; display: flex; flex-direction: column; gap: 6px; }
.del-req.mine { padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.del-req .row { gap: 8px; }
.del-q { font-weight: 800; font-size: 17px; }

/* Чланарина */
.bill-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: #e5e7eb; color: #374151; border: 0; font-weight: 700; }
.bill-toggle .bt-knob { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.bill-toggle.on { background: #16a34a; color: #fff; flex-direction: row-reverse; padding: 6px 6px 6px 14px; }
.bill-row { align-items: center; gap: 12px; }
.bill-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bill-sum .stat.warn .v { color: #b91c1c; }
.bill-tools { gap: 8px; margin-bottom: 8px; }
.bill-tools select, .bill-tools input { flex: 1; min-width: 0; }
.bill-inv { display: flex; align-items: center; gap: 10px; cursor: pointer; border-left: 5px solid #f59e0b; }
.bill-inv.paid { border-left-color: #16a34a; }
.bill-amt { font-weight: 800; white-space: nowrap; }
.bill-pay { min-height: 44px; padding: 8px 12px; background: #16a34a; color: #fff; border: 0; border-radius: 10px; font-weight: 700; }
.bill-badge { font-weight: 800; color: #16a34a; font-size: 20px; padding: 0 6px; }
.bill-badge.unpaid { color: #b45309; }
.paid-line { color: #15803d; }
.bill-due { text-align: center; padding: 18px; }
.bill-due.owe { background: #fff7ed; border: 2px solid #fdba74; }
.bill-due.ok { background: #ecfdf5; border: 2px solid #86efac; }
.bill-big { font-size: 30px; font-weight: 900; margin: 4px 0; }
.bill-dlg-status { font-weight: 800; padding: 8px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; }
.bill-dlg-status.paid { background: #ecfdf5; color: #166534; }
.bill-tools input[type=search] { min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 15px; }
.read-panel.done { cursor: default; opacity: .85; }

/* Турнири во календарот: една спојна лента преку деновите */
.mday.has-t { padding-bottom: 18px; }
.mday.has-t.t2 { padding-bottom: 34px; }
.mtour { align-self: end; z-index: 2; display: flex; align-items: center; gap: 3px; min-height: 0; height: 15px; margin: 0 1px 2px;
  padding: 0 5px; border: 0; border-radius: 0; background: #6d28d9; color: #fff; font-size: 9.5px; font-weight: 800;
  overflow: hidden; white-space: nowrap; text-align: left; cursor: pointer; }
.mtour.second { margin-bottom: 18px; background: #0e7490; }
.mtour.start { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.mtour.end { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.mtour span { overflow: hidden; text-overflow: ellipsis; }
.mtour .ico-sm { width: 11px; height: 11px; flex: none; }
.mlegend .k-tour { color: #6d28d9; font-weight: 700; }
.ev.tour { border-left-color: #6d28d9; background: #f5f3ff; }
.ev.tour .ev-time { color: #6d28d9; display: flex; align-items: center; justify-content: center; }
.badge.tour-tag { background: #6d28d9; color: #fff; }

/* Сите „✕“ за затворање/отстранување – поголеми и појасни */
button.x-btn { font-size: 24px; line-height: 1; font-weight: 700; min-width: 44px; min-height: 44px; padding: 6px 10px; }
button.ghost.x-btn { color: var(--ink); opacity: .75; }
button.ghost.x-btn:hover, button.ghost.x-btn:focus-visible { opacity: 1; }
.lt-x.x-btn { font-size: 24px; padding: 4px 10px; min-height: 40px; min-width: 40px; color: var(--ink); opacity: .7; }
.my-theme .mt-del.x-btn { font-size: 24px; width: 44px; min-width: 44px; padding: 0; }

/* Календар: прекинувач Месец ⇄ Листа (мал, како switch) */
.view-switch-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 2px 0 10px; }
.view-switch { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--line); }
.view-switch button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 14px; border-radius: 99px;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; border: 0; transition: background .15s, color .15s; }
.view-switch button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* Чланарина по дете */
.bill-kid { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-left: 5px solid #f59e0b; }
.bill-kid.ok { border-left-color: #16a34a; }
.bill-kid-amt { text-align: right; }
.bill-amt.owe { color: #b91c1c; font-size: 17px; }
.bill-ok { color: #15803d; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.bill-chev { font-size: 22px; color: var(--muted); }
.bill-profile { display: flex; align-items: center; color: inherit; text-decoration: none; border-left: 5px solid #16a34a; }
.bill-profile.owe { border-left-color: #dc2626; }
.bill-profile.owe b { color: #b91c1c; }
.remind-preview p { margin: 0 0 8px; font-size: 14px; }
.remind-preview p:last-child { margin: 0; }
@media (prefers-color-scheme: dark) { .bill-amt.owe, .bill-profile.owe b { color: #f87171; } .bill-ok { color: #4ade80; } }
a.card.bill-kid, a.card.bill-profile { display: flex; }
.bill-sum .stat .v { font-size: 22px; white-space: nowrap; }

/* Општа оцена: стрелки за месеците */
.sk-overall { align-items: center; }
.sk-nav { flex: none; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.55); color: inherit;
  font-size: 26px; line-height: 1; font-weight: 700; border: 0; }
.sk-nav:disabled { opacity: .25; }
.sk-sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.sk-mon.sk-sel { outline: 0; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sk-overall .sk-ov-txt { flex: 1; }
/* стрелките на краевите, повеќе простор за оцената */
.sk-overall { gap: 10px; padding: 10px 6px; }
.sk-overall .sk-nav:first-child { margin-right: 6px; }
.sk-overall .sk-nav:last-child { margin-left: auto; }
.sk-overall .sk-ov-num { font-size: 32px; }
.sk-overall .sk-ov-num small { font-size: 14px; }

/* Јавено отсуство од тренинг */
.badge.absence-tag { background: #fdecea; color: #b42318; }
.kid-absence { font-size: 11px; font-weight: 700; color: #b42318; line-height: 1.2; padding: 0 4px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (prefers-color-scheme: dark) { .badge.absence-tag { background: #3b1f1d; color: #f3b4b4; } .kid-absence { color: #f3b4b4; } }

/* Клубови и локации */
.sug-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sug-chips:empty { display: none; }
.sug { min-height: 36px; padding: 4px 12px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 13.5px; font-weight: 600; border: 0; }
.sug small { font-weight: 400; opacity: .8; }
.manage-places { align-self: flex-start; }
.places-link { display: block; text-align: right; font-size: 14px; font-weight: 600; margin: -2px 0 10px; text-decoration: none; }
.place-row { display: flex; align-items: center; gap: 8px; }
.place-row button.secondary.small { min-height: 44px; min-width: 44px; padding: 0; }
.loc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.map-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Родител: плочка за детето и следна активност */
.kh-stat { font-size: 14px; margin-top: 2px; }
.kh-stat b { font-size: 15.5px; }
.next-act.k-tour { display: block; color: inherit; text-decoration: none; border-left: 6px solid #7c3aed; }
.na-map { display: inline-block; margin: 6px 0 2px; }
.kh-month { font-size: 12px; opacity: .8; }

/* Пауза во тренинзите */
.cal-links { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -2px 0 10px; }
.cal-links .places-link { margin: 0; }
.break-btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.mday.in-break { background: repeating-linear-gradient(135deg, var(--card) 0 6px, rgba(120,120,120,.16) 6px 9px); }
.mday.k-break .mlabel { color: var(--muted); }
.mlegend .k-break { color: var(--muted); font-weight: 700; }
.ev.brk { border-left-color: #6b7280; background: repeating-linear-gradient(135deg, var(--card) 0 10px, rgba(120,120,120,.08) 10px 14px); }
.ev.brk .ev-time { font-size: 22px; display: flex; align-items: center; justify-content: center; }
.check-row { align-items: center; gap: 8px; font-weight: 600; }
.check-row input { width: 22px; height: 22px; }

/* Календар: филтер по вид на активност */
.kind-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.kf { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 4px 6px 4px 6px;
  border: 1px solid #dcdfdd; font-size: 11.5px; font-weight: 400; cursor: pointer; user-select: none; }
.kf input { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 50%;
  border: 2px solid #adb7b1; background: transparent; cursor: pointer; }
.kf input:checked { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 2px var(--card); }
.kf input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.kf:not(.on) { opacity: .6; }
.kf.on { border-color: #adb7b1; }
.t-sub { font-size: 11.5px; font-weight: 600; opacity: .9; margin: 1px 0 2px; }

/* 👥 Корисници */
.u-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; color: inherit; }
.u-roles { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.u-role { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.u-role-x { min-height: 28px; min-width: 28px; padding: 0; background: none; border: 0; color: inherit; font-size: 15px; font-weight: 800; }
.newcomers { border: 2px solid #f59e0b; background: #fffbeb; }
.nc-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.nc-acts { display: flex; gap: 6px; align-items: center; }
.nc-acts .small { min-height: 40px; padding: 6px 10px; font-size: 13px; }
@media (prefers-color-scheme: dark) { .newcomers { background: #3a2e18; } }

/* Управување: мени со плочки */
.adm-head { align-items: center; gap: 10px; }
.adm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.adm-quick .btn { flex: 1; min-height: 48px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) { .adm-grid { grid-template-columns: repeat(3, 1fr); } }
.adm-tile { display: flex; flex-direction: column; gap: 4px; min-height: 118px; padding: 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.adm-tile:active { transform: scale(.98); }
.adm-tile.hot { border: 2px solid #f59e0b; background: #fffbeb; }
.adm-ic { position: relative; font-size: 28px; line-height: 1; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 8px; }
.adm-n { font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); }
.adm-tile.hot .adm-n { background: #dc2626; color: #fff; }
.adm-t { font-weight: 600; font-size: 15px; line-height: 1.2; }
.adm-d { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
@media (prefers-color-scheme: dark) { .adm-tile.hot { background: #3a2e18; } }
.adm-ic-box { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-soft); color: var(--green); }
.adm-tile.hot .adm-ic-box { background: #fde68a; color: #92400e; }
.ico-adm { width: 24px; height: 24px; stroke-width: 1.8; }
.badge.exempt { background: #e0f2fe; color: #075985; margin-top: 4px; display: inline-block; }
@media (prefers-color-scheme: dark) { .badge.exempt { background: #0c2a3d; color: #7dd3fc; } }
.find-maps { margin-top: 8px; min-height: 44px; }

/* Известувања на телефон */
.push-on { color: var(--green); font-weight: 800; margin: 0; }
.ios-steps { margin: 0; padding-left: 22px; }
.ios-steps li { margin: 4px 0; }
.push-banner { display: flex; align-items: center; gap: 8px; border-left: 5px solid var(--green); margin: 8px 0 12px; }
.push-banner button:not(.x-btn) { min-height: 44px; padding: 6px 14px; }

/* „🔎 Побарај“ локација/клуб */
.search-btn { margin-top: 6px; min-height: 40px; padding: 6px 14px; font-size: 14px; }
.ps-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.ps-item { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; font: inherit; }

/* Натпревар: лога, резултат, Google Maps */
.team-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 15px; overflow: hidden; }
.team-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.team-logo.big { width: 64px; height: 64px; font-size: 26px; }
.match-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: 2px 0 4px; }
.match-board .mb-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.match-board .mb-team:last-child { flex-direction: row-reverse; text-align: right; }
.mb-name { font-weight: 700; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.mb-score { font-weight: 800; font-size: 15px; color: var(--muted); padding: 2px 8px; }
.mb-score.done { color: var(--ink); font-size: 18px; background: var(--green-soft); border-radius: 8px; }
.match-board.big { margin: 6px 0 10px; }
.match-board.big .mb-team { flex-direction: column; text-align: center; gap: 6px; }
.match-board.big .mb-team:last-child { flex-direction: column; text-align: center; }
.match-board.big .mb-name { font-size: 15px; }
.match-board.big .mb-score { font-size: 22px; }
.match-board.big .mb-score.done { font-size: 30px; padding: 4px 14px; }
.scorers { text-align: center; font-size: 14px; color: var(--muted); }
.gmaps-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; color: #1a73e8; white-space: nowrap; }
.gmaps-link.small { font-size: 13px; }
.place-row .team-logo { width: 40px; height: 40px; }
.ps-item { display: flex; align-items: center; gap: 10px; }
.logo-pick { align-items: center; gap: 12px; }
.rs-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.rs-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rs-step { display: flex; align-items: center; gap: 6px; }
.rs-step button { min-width: 44px; min-height: 44px; font-size: 22px; padding: 0; }
.rs-val { font-size: 32px; font-weight: 800; min-width: 36px; text-align: center; }
.rs-colon { font-size: 30px; font-weight: 800; color: var(--muted); }
.sc-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.sc-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; }
.sc-row.on { background: var(--green-soft); }
.sc-row button { min-height: 40px; min-width: 44px; padding: 0 8px; }
.sc-n { min-width: 22px; text-align: center; }

.match-board-sm { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; margin: 2px 0 4px; }
.mbs-team { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.team-logo.md { width: 42px; height: 42px; font-size: 18px; }
.mbs-name { font-weight: 700; font-size: 13px; line-height: 1.2; word-break: break-word; }
.mbs-sc { font-size: 17px; min-width: 22px; text-align: center; }
.sc-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sc-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip { background: var(--green-soft); border-radius: 14px; padding: 4px 10px; font-size: 14px; font-weight: 600; }

a.card.client-row { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.client-row .card-logo, .client-row .team-logo { width: 44px; height: 44px; }
.client-row .chev { font-size: 22px; color: var(--muted); }
.client-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.client-head h1 { margin: 0; }
.client-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.warn-t { color: #b45309; font-weight: 600; }

.sent-btn { margin-top: 14px; }
.reply-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 10px 12px; background: var(--green-soft); border-radius: 10px; }
.reply-orig { border-left: 4px solid var(--line); padding: 6px 10px; color: var(--muted); font-size: 14px; }

/* Нова верзија + Што е ново */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 60;
  width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #1f2937; color: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 15px; font-weight: 600; }
.update-bar .ub-btn { background: #fff; color: #111827; border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 700; min-height: 40px; }
.whats-new .wn-date { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.wn-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.35; }

/* Избор на играчи за натпревар */
.pick-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pick-info { font-size: 14px; background: var(--green-soft); border-radius: 10px; padding: 8px 10px; }
.pick-groups { max-height: 50vh; overflow-y: auto; }
.pick-group .pg-head { position: sticky; top: 0; background: var(--card); padding: 6px 0; z-index: 1; }
.sel-badge { background: #ede9fe; color: #5b21b6; }

/* Предлози додека се пишува */
.ts-wrap { position: relative; }
.ts-list { margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ts-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 10px 12px; min-height: 48px; font-size: 15px; color: inherit; border-radius: 0; }
.ts-item:last-child { border-bottom: 0; }
.ts-item:active, .ts-item:hover { background: var(--green-soft); }
.ts-pin { width: 24px; text-align: center; }

/* Голови на играчот */
.goals-sum b { font-size: 22px; }
.goals-list { display: flex; flex-direction: column; margin-top: 6px; }
.goal-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.goal-row:last-child { border-bottom: 0; }
.gr-date { color: var(--muted); font-size: 13px; min-width: 52px; }
.gr-score { margin-left: 8px; font-weight: 700; font-size: 13px; padding: 1px 7px; border-radius: 8px; background: #f3f4f6; }
.gr-score.res-w { background: #dcfce7; color: #166534; }
.gr-score.res-l { background: #fee2e2; color: #991b1b; }
.gr-goals { white-space: nowrap; }

/* Избор на играчи со слики */
.pk-chosen { background: var(--green-soft); border-radius: 12px; padding: 10px; }
.pk-chosen-head { font-weight: 700; font-size: 14px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 10px 3px 3px; font-size: 14px; font-weight: 600; color: inherit; min-height: 36px; }
.pk-chip .avatar { width: 28px; height: 28px; font-size: 11px; }
.pk-x { color: var(--muted); font-size: 13px; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; background: var(--card); border: 2px solid var(--line);
  border-radius: 12px; overflow: hidden; color: inherit; text-align: center; }
.pk-card:active { border-color: var(--green); }
.pk-card .photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; margin: 0; font-size: 22px;
  display: flex; align-items: center; justify-content: center; }
.pk-name { font-size: 13px; font-weight: 700; line-height: 1.2; padding: 2px 4px 7px; }
.pk-name .muted { font-weight: 500; }

/* Бришење известувања/пораки */
.del-btn { color: #b91c1c; }
.danger-t { color: #b91c1c; }
.notif-tools { gap: 6px; justify-content: space-between; }
.del-btn { margin-left: 6px; }
.notif-tools .danger-t { color: #b91c1c; }

/* Преглед на пораката со кодот */
.mp-label { margin-top: 10px; text-align: left; }
.msg-preview { text-align: left; background: #f3f4f6; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; color: #111827; }
.msg-preview .mp-link { color: #1a73e8; word-break: break-all; }
.msg-preview .mp-gap { margin-top: 12px; }
.msg-preview .mp-code { font-size: 30px; font-weight: 800; letter-spacing: 3px; line-height: 1.2; }
.msg-preview .mp-small { font-size: 12px; color: #6b7280; }

/* Натпревари */
.match-row { display: flex; flex-direction: column; gap: 8px; }
.match-row .mr-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.match-row .mr-when { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.match-row.cancelled { opacity: .6; }

/* Изминати: филтер по период */
.past-filter { gap: 10px; }
.pf-nav { align-items: center; justify-content: space-between; gap: 8px; }
.pf-arrow { min-width: 52px; min-height: 44px; font-size: 24px; padding: 0; }
.pf-label { flex: 1; text-align: center; font-size: 16px; }

/* Стрелци еден под друг */
.scorer-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.scorer-list .sl-head { font-weight: 700; padding: 8px 12px; background: var(--green-soft); }
.scorer-list .sl-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 15px; }
.scorer-list .sl-goals { white-space: nowrap; }

/* Табови: избраниот таб е нијанса посветол, со бела линија долу (да се знае каде сте) */
.tabs button { background: var(--green); border-color: var(--green); color: rgba(255,255,255,.85); }
.tabs button.on { background: #3a9d63; border-color: #3a9d63; color: #fff; box-shadow: inset 0 -4px 0 rgba(255,255,255,.75); }
@media (prefers-color-scheme: dark) {
  .tabs button { background: #1f5c38; border-color: #1f5c38; color: rgba(255,255,255,.8); }
  .tabs button.on { background: #4cc27a; border-color: #4cc27a; color: #0b1f13; box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
}

.tourney-intro { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin: 0 0 12px; }

/* Доказ за уплата */
.bill-inv.with-proof { flex-direction: column; align-items: stretch; }
.bill-inv .bi-top { align-items: center; gap: 10px; }
.proof-state { font-size: 14px; font-weight: 600; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.proof-state.pending { background: #fef3c7; color: #92400e; }
.proof-state.rejected { background: #fee2e2; color: #991b1b; }
.proof-btn { margin-top: 8px; width: 100%; }
.proof-img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.proof-file { font-weight: 600; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.proof-pill { margin-top: 6px; min-height: 36px; padding: 6px 12px; font-size: 13px; background: #fef3c7; color: #92400e; border-radius: 18px; }

/* Тренер со код */
.coach-invite-card { border: 2px solid var(--green-soft); }
.invite-row { align-items: center; gap: 10px; }
.viber-btn { background: #7360f2; color: #fff; }

/* Платени: коцки по месеци */
.paid-box { margin-top: 14px; }
.paid-toggle { width: 100%; }
.yg-kid { font-weight: 700; margin: 14px 2px 6px; }
.year-grid { margin-top: 10px; }
.yg-head b { font-size: 18px; }
.yg-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.yg-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 2px;
  border-radius: 12px; border: 2px solid transparent; font-weight: 700; color: inherit; font-size: 14px; }
.yg-cell .yg-s { font-size: 16px; line-height: 1; min-height: 16px; }
.yg-paid { background: #dcfce7; color: #166534; }
.yg-unpaid { background: #fee2e2; color: #991b1b; }
.yg-pending { background: #fef3c7; color: #92400e; }
.yg-none { background: #f3f4f6; color: #9ca3af; font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .yg-paid { background: #14532d; color: #bbf7d0; } .yg-unpaid { background: #5b1a1a; color: #fecaca; }
  .yg-pending { background: #5a3f0a; color: #fde68a; } .yg-none { background: rgba(255,255,255,.06); color: #6b7280; }
}
button.yg-cell { cursor: pointer; } button.yg-cell:active { border-color: var(--green); }
.yg-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.yg-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }

/* Мониторинг */
.mon-big { font-size: 34px; font-weight: 800; color: var(--green); }
.mon-chips { gap: 6px; }
.mon-online { display: flex; flex-direction: column; }
.mon-u { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.mon-u .right { text-align: right; white-space: nowrap; }
.dot-on { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); flex: none; }
.heat { display: flex; flex-direction: column; gap: 3px; overflow-x: auto; }
.heat-row { display: grid; grid-template-columns: 34px repeat(24, minmax(9px, 1fr)); gap: 2px; align-items: center; }
.heat-l { font-size: 11px; color: var(--muted); }
.heat-h { font-size: 9px; color: var(--muted); text-align: left; }
.heat-c { display: inline-block; aspect-ratio: 1; border-radius: 3px; background: #eef2ef; min-width: 9px; }
.heat-c[data-l="1"] { background: #c9e9d3; } .heat-c[data-l="2"] { background: #94d3a8; } .heat-c[data-l="3"] { background: #5cb87c; }
.heat-c[data-l="4"] { background: #2f9558; } .heat-c[data-l="5"] { background: #14532d; }
.heat-legend { display: flex; align-items: center; gap: 4px; } .heat-legend .heat-c { width: 12px; }
@media (prefers-color-scheme: dark) { .heat-c { background: rgba(255,255,255,.07); } }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-top: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { background: #2f9558; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-l { font-size: 9px; color: var(--muted); text-align: center; height: 13px; overflow: visible; white-space: nowrap; }
.mon-stats { flex-wrap: wrap; }
.mon-stats .stat { min-width: calc(33% - 8px); flex: 1 1 calc(33% - 8px); }
.mon-stats .stat .v { font-size: 20px; }
.mon-stats .stat.warn .v { color: #b45309; }
.mon-table { font-size: 13px; width: 100%; }
.mon-table th { text-align: left; color: var(--muted); font-weight: 600; }
.mon-route { font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.mon-line { padding: 6px 0; border-top: 1px solid var(--line); }
.mon-err { border-left: 3px solid #b91c1c; padding: 4px 8px; margin: 4px 0; }
.ok-t { color: #15803d; font-weight: 600; }
.msg-preview .mp-gap2 { margin-top: 10px; }

/* Бренд од линкот на клубот */
.brand-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; }
.brand-head-logo { width: 84px; height: 84px; object-fit: contain; }
.brand-head-name { font-weight: 800; font-size: 20px; text-align: center; }
.brand-logo-k { object-fit: contain; border-radius: 6px; background: #fff; }
.club-link { font-family: ui-monospace, monospace; background: var(--green-soft); padding: 8px 10px; border-radius: 10px; word-break: break-all; }

/* 📅 Тренинзи на генерацијата */
.period-nav { margin: 10px 0; align-items: center; }
.period-nav b { font-size: 16px; }
.tr-row { padding: 10px 12px; margin: 8px 0; border-left: 5px solid #2e7d4f; }
.tr-row.tr-today { border-left-color: #f0a500; box-shadow: 0 0 0 2px #f0a50055; }
.tr-row.tr-past { opacity: .85; }
.tr-row.tr-cancel { opacity: .55; border-left-color: #999; }
.tr-row.tr-cancel .tr-when { text-decoration: line-through; }
.tr-cancel-note { color: #b45309; font-weight: 600; font-size: 13px; }
.tr-row .postpone-btn { width: 100%; margin-top: 8px; background: #fff4e5; color: #b45309; border: 2px solid #f0c27a; font-weight: 700; }
.tr-head { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.tr-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.1; }
.tr-date b { font-size: 22px; }
.tr-date span { font-size: 12px; color: var(--muted, #6b7280); text-transform: uppercase; }
.tr-when { font-weight: 700; }
.tr-go { font-size: 24px; color: var(--muted, #6b7280); }
.tr-row .tb-tabs { margin-top: 10px; }

/* 📝 Оценки по тренинг / натпревар */
.rt-sum { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rt-kid { display: flex; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line, #e5e7eb); color: inherit; text-decoration: none; }
.rt-c { font-size: 13px; font-weight: 700; min-width: 40px; text-align: right; }
.rt-sess .rt-line { display: flex; gap: 8px; margin-top: 6px; align-items: baseline; }
.rt-ic { min-width: 22px; }
.tr-row.tr-match { border-left-color: #c58b00; }

/* темно сиви коцки (Календар, Историја, Термини во генерацијата) */
.c-graphite, .scheme .c-graphite { background: #313131; color: #fff; }

/* ⭐ Оцени ги играчите (натпревар) */
.mr-row { padding: 10px 12px; margin: 8px 0; }
.mr-row.absent { opacity: .6; }
.mr-row .row { align-items: center; gap: 10px; }
.mr-absent { background: var(--card); color: var(--ink); border: 1px solid #9fa7a2; padding: 6px 10px; font-size: 13px; }
.mr-absent.on { background: #b42318; color: #fff; border-color: #b42318; }
.mr-stars { display: flex; gap: 6px; margin-top: 10px; }
.mr-v { flex: 1; padding: 10px 0; font-size: 18px; font-weight: 800; background: var(--card); color: var(--ink); border: 1px solid #9fa7a2; }
.mr-v.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--green)); }

/* ⭐ Оценети 9/10 */
.rated-line { text-align: center; font-weight: 700; margin-top: 6px; padding: 6px 10px; border-radius: 12px; background: #fff4e5; color: #8a5a00; }
.rated-line.full, .rated-badge.full { background: #e3f4e9; color: #1d6b3d; }
.rated-line.none { background: #f1f1f1; color: #6b7280; }
.rated-badge { background: #fff4e5; color: #8a5a00; }

/* 🏆 Натпревари во генерацијата: тенки редови */
.smr { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-left: 5px solid #c58b00; border-radius: 12px; padding: 8px 10px; margin: 6px 0; min-height: 0; font-weight: 400; }
.smr.win { border-left-color: #1d8a4c; } .smr.loss { border-left-color: #c0392b; } .smr.draw { border-left-color: #8a8f94; }
.smr.cancelled { opacity: .6; }
.smr-date { display: flex; flex-direction: column; align-items: center; min-width: 42px; line-height: 1.1; }
.smr-date b { font-size: 15px; } .smr-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.smr .team-logo.sm { width: 26px; height: 26px; font-size: 12px; flex: none; }
.smr { gap: 6px; }
.smr-team { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; }
.smr-team.r { justify-content: flex-start; }
.smr-team.me { font-weight: 800; }
.smr-name { min-width: 0; overflow: hidden; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.smr-team:not(.r) .smr-name { text-align: right; }
.smr-score { flex: none; font-weight: 800; font-size: 15px; padding: 4px 8px; border-radius: 10px; background: #eef0f2; white-space: nowrap; }
.smr-score.win { background: #e3f4e9; color: #1d6b3d; } .smr-score.loss { background: #fde8e6; color: #a8281c; }
.smr-score.time { background: #fff4e5; color: #8a5a00; font-size: 14px; } .smr-score.off { font-size: 12px; font-weight: 700; }
.smr-go { font-size: 22px; color: var(--muted); line-height: 1; }

/* Сите / Официјални / Пријателски */
.mt-switch { display: flex; background: #e9ecef; border-radius: 999px; padding: 4px; gap: 4px; margin: 12px 0 4px; }
.mt-switch button { flex: 1; border: 0; background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 6px; font-size: 14px; font-weight: 600; min-height: 0; }
.mt-switch button.on { background: var(--accent, var(--green)); color: var(--accent-ink, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* оценето дете во мрежата: картичката избледена, само оценката истакната */
.as-grid .as-kid.done .kid-photo, .as-grid .as-kid.done .kid-name { opacity: .4; }
.as-grid .as-kid.done .as-score { opacity: 1; font-size: 18px; transform: scale(1.1); box-shadow: 0 2px 6px rgba(0,0,0,.18); }

/* Први чекори за нов член */
.wz { max-width: 520px; margin: 0 auto; }
.wz-dots { display: flex; justify-content: center; gap: 10px; margin: 8px 0 14px; }
.wz-dots span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #e5e7eb; color: #6b7280; }
.wz-dots span.on { background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgba(46,125,79,.2); }
.wz-dots span.done { background: #cfe9d9; color: #1d6b3d; }
.wz-title { text-align: center; margin: 4px 0; }
.wz > .muted { text-align: center; }
.wz-card { padding: 16px; }
.wz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; cursor: pointer; }
.wz-check input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--green); }
.wz-kid { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.wz-ios li { margin: 6px 0; }
.ios-share { display: inline-block; font-size: 18px; color: #0a84ff; }

/* Управување → Оценки */
.feat-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer; margin: 0; }
.feat-row input { width: 26px; height: 26px; flex: none; accent-color: var(--green); margin-top: 2px; }

/* 📏 Физички тестови */
.ph-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-top: 3px; }
.ph-badge.above { background: #fff4d6; color: #8a5a00; } .ph-badge.in { background: #e3f4e9; color: #1d6b3d; } .ph-badge.below { background: #e6eefc; color: #1e4fa8; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ph-chips button { min-height: 0; padding: 8px 12px; border-radius: 20px; border: 1px solid #9fa7a2; background: var(--card); color: var(--ink); font-size: 13px; }
.ph-chips button.on { background: var(--accent, var(--green)); border-color: var(--accent, var(--green)); color: var(--accent-ink, #fff); }
.ph-what { margin: 2px 0 8px; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0; }
.ph-inp { width: 86px; font-size: 18px; font-weight: 700; text-align: center; padding: 8px 4px; }
.ph-inp.saved { outline: 3px solid #3f9a62; }
.ph-unit { min-width: 26px; }
.ph-table-wrap { overflow-x: auto; }
.ph-table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--card); }
.ph-table th, .ph-table td { border: 1px solid var(--line); padding: 6px 6px; text-align: center; white-space: nowrap; }
.ph-table td:first-child, .ph-table th:first-child { text-align: left; }
.ph-cell.above { background: #fff4d6; font-weight: 800; } .ph-cell.in { background: #e3f4e9; } .ph-cell.below { background: #e6eefc; }
.ph-res { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ph-val { font-weight: 800; font-size: 16px; }
.ph-up { color: #1d6b3d; font-weight: 700; } .ph-down { color: #a8281c; font-weight: 700; }
.ph-row .ph-inp { width: 84px; flex: none; }
.ph-row > .grow { min-width: 0; }
.ph-row .avatar, .ph-row img { flex: none; }

/* Избор на клуб на главната адреса */
.choose-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.choose-club { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: var(--card); color: var(--ink); border: 1px solid #c4cfc7; border-radius: 15px; }
.choose-club img { width: 84px; height: 84px; object-fit: contain; }
.choose-noimg { font-size: 56px; line-height: 84px; }
.choose-name { font-weight: 700; font-size: 1.05rem; text-align: center; }

/* Физички тестови: коцки со тестовите (2 во ред на телефон, 3 на поширок екран) */
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 16px; }
@media (min-width: 560px) { .ph-grid { grid-template-columns: repeat(3, 1fr); } }
.ph-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; min-height: 120px; padding: 14px 12px;
  background: #313131; color: #fff; border: 0; border-radius: 15px; text-align: left; }
.ph-tile.done { background: var(--accent, var(--green)); }
.ph-tile-all { background: var(--card); color: var(--ink); border: 1px solid #c4cfc7; }
.ph-tile-ico { font-size: 28px; line-height: 1; margin-bottom: auto; }
.ph-tile-name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.ph-tile-cnt { font-size: 12px; opacity: .85; }
.ph-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--club, #1E7145); color: var(--club-ink, #fff); border: 0; border-radius: 12px; padding: 8px 16px; min-height: 40px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ph-new-lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--muted, #5f6b63); font-size: 14px; }
.ph-new-lbl input { width: 100%; font-size: 18px; }
.ph-new .huge { width: 100%; }
a.ph-item, a.ph-item * { text-decoration: none; color: var(--ink); }
a.ph-item .muted { color: #5f6b63; }
.ph-by { margin: 6px 0 4px; }
.ph-by button { padding: 10px 4px; font-weight: 700; }
.ph-kid { align-items: center; text-align: center; justify-content: flex-start; gap: 6px; }
.ph-kid .ph-tile-name { font-size: 14px; }
.ph-row-ico { font-size: 26px; width: 34px; text-align: center; flex: none; }
.ph-kidhead { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }

/* Лекарско уверение */
.med-img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; border: 1px solid #c4cfc7; background: #fff; }
.med-ok { color: var(--green2); font-weight: 700; margin: 0; }
.med-no { color: var(--red); font-weight: 700; margin: 0; }
.choose-super { background: #313131; color: #fff; border-color: #313131; }

/* Легенда 1–5 при оценување на вештини */
.scale-legend { background: var(--card); border: 1px solid #DDD; border-radius: 10px; padding: 10px 8px 8px; margin: 6px 0 4px; }
.sl-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sl-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sl-num { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 48px; height: 30px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; color: #1b2a20; font-size: 15px; }
.sl-lbl { font-size: 12px; color: #5f6b63; min-height: 15px; text-align: center; line-height: 1.2; }
.sl-note { text-align: center; font-size: 12px; color: #5f6b63; margin-top: 4px; }
.goals-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); text-align: left; }
.goals-title { font-size: 18px; font-weight: 700; flex: 1; }
.goals-arrow { font-size: 26px; color: #5f6b63; transition: transform .15s; line-height: 1; }
.goals-arrow.open { transform: rotate(90deg); }
/* Рамка околу општата оцена и табелата со вештини */
.sk-frame { padding: 10px; border: 1px solid #bdbbbb; background-color: #f2fff2; border-radius: 20px; }
/* Општа оцена: тенка светла рамка (наместо јака) */
.sk-overall, .sk-overall[class*="sk-"] { border: 1px solid #DDD; }
/* Профил (родител): генерацијата во аголот на сликата */
.photo-wrap { position: relative; display: inline-block; align-self: center; }
.photo-gens { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.photo-gen { background: #fff; color: var(--green); font-weight: 800; font-size: 15px; padding: 5px 12px; border: 1px solid #DDD; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); white-space: nowrap; }
/* Промени клиент (паѓачко мени на почетната) */
.client-switch { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid #DDD; border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
.client-switch span { font-weight: 700; font-size: 14px; white-space: nowrap; }
.client-switch .cs-select { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
/* Управување: кој клуб (лого + име) */
.club-banner { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid #DDD; border-radius: 15px; padding: 12px 14px; margin: 4px 0 14px; }
.club-banner .cb-logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.cb-noimg { font-size: 40px; line-height: 56px; width: 56px; text-align: center; flex: none; }
.cb-sub { font-size: 13px; color: #5f6b63; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cb-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
/* Историја: табови и деца кои не се веќе во клубот */
.hist-tabs { flex-wrap: wrap; margin-bottom: 12px; }
.hist-tabs button { padding: 10px 6px; font-weight: 700; font-size: 14px; }
.hist-tabs button:last-child { flex-basis: 100%; }
.hist-search { width: 100%; margin: 4px 0 12px; font-size: 16px; }
.left-kid { align-items: center; gap: 12px; }

/* Тема на клубот: копчињата и избраните полиња ја имаат бојата на клубот (ако е поставена) */
body.accent .tabs button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.accent .tabs button.on { filter: brightness(1.15); }