/* Общие стили личных кабинетов Батыл бол */
:root {
  --blue: #0088ff; --blue-soft: #e8f3ff; --tg: #2aabee;
  --green: #08ae40; --green-soft: #e6f6ec; --red: #c3352b; --red-soft: #fdecea;
  --amber: #b26a00; --amber-soft: #fff4e0;
  --text: #1f2328; --muted: #6a737d; --line: #e6e8eb; --bg: #f5f7fa; --card: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.4; }
a { color: var(--blue); }
/* Шапка: фон на всю ширину, а логотип и ссылки — по краям колонки содержимого (760 px), чтобы не тянуться в углы широкого экрана */
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px max(16px, calc((100% - 760px) / 2 + 16px)); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: auto; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1200px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.btn { display: inline-block; border: 1px solid transparent; border-radius: 24px; padding: 10px 20px; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; font-family: inherit; }
.btn.tg { background: var(--tg); color: #fff; font-weight: bold; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.danger { background: var(--red); color: #fff; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.staff { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-left: 6px; vertical-align: middle; }
.badge.expelled, .badge.left { background: var(--red-soft); color: var(--red); }
.badge.finished { background: var(--green-soft); color: var(--green); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.tile b { display: block; font-size: 26px; color: var(--blue); }
.tile span { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: none; }
.row .title { flex: 1; min-width: 0; }
.row .title small { display: block; color: var(--muted); font-size: 12px; }
.score { min-width: 44px; text-align: center; font-weight: bold; border-radius: 8px; padding: 3px 6px; }
.score.good { background: var(--green-soft); color: var(--green); }
.score.ok { background: var(--blue-soft); color: var(--blue); }
.score.low { background: var(--amber-soft); color: var(--amber); }
.score.none { color: var(--muted); }
.go { min-width: 60px; text-align: right; font-size: 14px; }
.att { display: flex; flex-wrap: wrap; gap: 6px; }
.att span { font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.att .yes { background: var(--green-soft); color: var(--green); }
.att .no { background: var(--red-soft); color: var(--red); }

/* ---------- Журнал ---------- */
.jhead .jrow, .jrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sel { font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; font-family: inherit; }
.sel.big { font-size: 18px; font-weight: bold; flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 10px -16px 8px; padding: 0 16px; }
.tabs button { background: none; border: none; border-bottom: 3px solid transparent; padding: 10px 12px; font-size: 15px; cursor: pointer; color: var(--muted); white-space: nowrap; font-family: inherit; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: bold; }
.chk { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nameBtn { background: none; border: none; padding: 0; font-size: 15px; color: var(--text); cursor: pointer; text-align: left; font-family: inherit; }
.nameBtn:hover { color: var(--blue); text-decoration: underline; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.att-row .title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pair { display: flex; gap: 6px; flex-shrink: 0; }
.mark { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 15px; cursor: pointer; font-family: inherit; min-width: 72px; }
.mark.yes.on { background: var(--green); border-color: var(--green); color: #fff; }
.mark.no.on { background: var(--red); border-color: var(--red); color: #fff; }
.tableWrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.grid th, table.grid td { border: none; border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; font-size: 14px; background: #fff; }
table.grid th { font-size: 12px; color: var(--muted); font-weight: normal; vertical-align: bottom; }
table.grid .sticky { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 170px; max-width: 220px; box-shadow: 1px 0 0 var(--line); }
table.grid.compact td { padding: 4px 4px; }
table.grid th.vert { height: 150px; width: 34px; padding: 4px 2px; }
table.grid th.vert span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 145px; display: inline-block; }
input.num { width: 56px; font-size: 16px; padding: 6px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
input.num:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,136,255,.2); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1f2328; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; z-index: 2000; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.toast.bad { background: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 1500; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modalBox { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; padding: 20px; position: relative; margin: auto 0; }
.modalBox h3 { margin: 18px 0 8px; font-size: 16px; }
.modalClose { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 12px 0; font-size: 14px; }
dl.info dt { color: var(--muted); } dl.info dd { margin: 0; word-break: break-word; }
details { margin: 6px 0; } summary { cursor: pointer; color: var(--blue); }
.ta { width: 100%; min-height: 70px; padding: 8px; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; margin-bottom: 6px; }
.comment { border-top: 1px solid var(--line); padding: 8px 0; }
.comment p { margin: 0 0 4px; white-space: pre-wrap; }
.comment small { color: var(--muted); }
a.link { color: var(--muted); font-size: 14px; }

/* ---------- Формы и кабинет организатора ---------- */
.inp { font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; min-width: 0; flex: 1; }
.inp:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,136,255,.2); }
.manage { background: var(--bg); border-radius: 12px; padding: 12px; }
.form label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.form .inp, .form .sel { width: 100%; }
.form .hint { font-size: 12px; color: var(--muted); margin: 3px 0 0; }
.stream-card h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--text); border-radius: 16px; padding: 4px 6px 4px 12px; font-size: 14px; }
.chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.chip.warn { background: var(--amber-soft); }
.badge.open { background: var(--green-soft); color: var(--green); }
.badge.closed { background: #eee; color: var(--muted); }
.preview { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; font-size: 14px; white-space: pre-line; }

/* ---------- Кабинет администратора ---------- */
.warnbox { background: var(--amber-soft); border-color: #f0d49b; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.grid2 .card { margin-bottom: 0; }
.grid2 + * { margin-top: 14px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 44px; align-items: center; gap: 8px; font-size: 14px; cursor: default; outline: none; }
.hbar:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: 4px; }
.hlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htrack { height: 12px; }
.hfill { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.hbar:hover .hfill { background: #0070d6; }
.hval { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.vcol { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.vcol:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.vfill { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; }
.vcol:hover .vfill { background: #0070d6; }
.vaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tip { position: fixed; z-index: 3000; background: #1f2328; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; pointer-events: none; line-height: 1.35; max-width: 260px; }
tr.dim td { color: var(--muted); }
table.grid td a { color: var(--text); text-decoration: none; }
table.grid td a:hover { color: var(--blue); text-decoration: underline; }
.person { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0; flex-wrap: wrap; }
.person.blocked { opacity: .6; }
.pmain { flex: 1; min-width: 220px; }
.pmain .muted { margin: 2px 0; }
.pact { display: flex; gap: 6px; flex-wrap: wrap; }
.rolechip { border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue); border-radius: 14px; padding: 3px 10px; font-size: 13px; cursor: pointer; font-family: inherit; }
.rolechip.off { border-color: var(--line); background: #fff; color: var(--muted); text-decoration: line-through; }
.row.audit { align-items: flex-start; }
.row.audit .when { color: var(--muted); font-size: 13px; min-width: 110px; font-variant-numeric: tabular-nums; }
.row.audit .title small { color: var(--muted); }

/* ---------- Домашние тренажёры в посещаемости ---------- */
.hwhead { background: var(--bg); border-radius: 10px; padding: 8px 12px; margin: 4px 0 8px; font-size: 14px; line-height: 1.5; }
.hwnum { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: bold; }
.hwline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex-basis: 100%; margin-top: 4px; }
.hw { display: inline-block; font-size: 12px; font-weight: bold; padding: 2px 7px; border-radius: 8px; min-width: 26px; text-align: center; }
.hw.good { background: var(--green-soft); color: var(--green); }
.hw.ok { background: var(--blue-soft); color: var(--blue); }
.hw.low { background: var(--amber-soft); color: var(--amber); }
.hw.miss { background: var(--red-soft); color: var(--red); }
.debt { font-size: 12px; border: 1px dashed var(--red); color: var(--red); background: #fff; border-radius: 8px; padding: 1px 7px; cursor: pointer; font-family: inherit; }

/* ---------- Разделение потока ---------- */
.modalBox.wideModal { max-width: 1100px; }
.splitGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.splitCol { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.splitCol .inp, .splitCol .sel { width: 100%; font-size: 14px; }
.splitCol .gname { font-weight: bold; }
.gstats { font-size: 13px; color: var(--muted); line-height: 1.5; }
.gstats b { color: var(--text); font-size: 15px; }
.bandchip { display: inline-block; background: var(--bg); border-radius: 6px; padding: 0 6px; margin: 2px 2px 0 0; font-size: 12px; color: var(--text); }
.glist { max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 4px; }
.gp { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; padding: 3px 0; }
.gp small { color: var(--muted); }
.gmove { font-size: 12px; padding: 1px 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- Расписание и план ---------- */
.plansum { background: var(--bg); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 14px; line-height: 1.6; }
.plansum .muted { margin: 0; font-size: 13px; }
.plist { margin-top: 10px; }
.prow { gap: 12px; }
.prow .pdate { min-width: 96px; font-variant-numeric: tabular-nums; font-size: 14px; }
.prow .pdate small { display: block; color: var(--muted); font-size: 12px; }
.prow.exam { background: var(--amber-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.prow.today { background: var(--blue-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.prow.cancelled { color: var(--muted); }
.prow.cancelled .title small { color: var(--red); }
.prow button.link { white-space: nowrap; }
.schedEd { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.wdrow { display: flex; align-items: center; gap: 10px; padding: 3px 0; cursor: pointer; }
.wdrow input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.wdname { min-width: 120px; }
.wdrow .wdtime { flex: 0 0 110px; width: 110px; }
.wdrow input[type=checkbox]:not(:checked) ~ .wdtime { opacity: .35; }
.addExtra { margin: 8px 0; }

/* ---------- План и подготовка к экзамену в кабинете ученика ---------- */
.nextLesson { background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.examPrep { border: 1px solid #f0d49b; background: var(--amber-soft); border-radius: 12px; padding: 12px; margin: 10px 0; }
.examPrep .row { border-top-color: rgba(0,0,0,.06); }
.prog { height: 8px; background: rgba(255,255,255,.7); border-radius: 4px; overflow: hidden; }
.prog span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.prow.pastrow { color: var(--muted); }
.prow.pastrow b { font-weight: normal; }

/* ---------- Массовый выбор учеников ---------- */
.pickrow { cursor: pointer; gap: 10px; }
.pickrow input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; margin: 0; }
.pickrow.on { background: var(--blue-soft); border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.pickall { border-bottom: 1px solid var(--line); }
.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #1f2328; color: #fff; border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.bulkbar[hidden] { display: none; }
.bulkbar .sel, .bulkbar .inp { flex: 1; min-width: 160px; }
.bulkbar .muted { color: #c9d1d9; margin: 0; }
.bulkbar button.link { color: #c9d1d9; }

/* ---------- Заметки и комментарии во вкладке «Ученики» ---------- */
.snotes { display: flex; flex-direction: column; gap: 3px; flex-basis: 100%; margin-top: 4px; }
.snote { font-size: 13px; line-height: 1.35; background: var(--bg); border-radius: 8px; padding: 3px 8px; color: var(--text); word-break: break-word; }
.snote.legacy { background: var(--amber-soft); }
.snote small { color: var(--muted); }
.snote.more { background: none; color: var(--muted); padding: 0 8px; }
.pickrow .title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }

/* ---------- Напоминания ---------- */
.remItems { background: var(--bg); border-radius: 12px; padding: 6px 12px; max-height: 220px; overflow-y: auto; }
.remSum { background: var(--blue-soft); border-radius: 12px; padding: 10px 12px; margin: 12px 0 6px; line-height: 1.6; }
.remSum .muted { margin: 0; }
.warnTxt { color: var(--amber); }

/* Кнопки над таблицей оценок: на телефоне — во всю ширину, одна под другой */
@media (max-width: 560px) {
  .gradeActions { flex-direction: column; align-items: stretch; }
  .gradeActions .btn { width: 100%; }
}

/* Закреплённый столбец с именами прилипает к самому краю прокрутки —
   без щели, в которую раньше «проскальзывали» баллы соседних столбцов */
.tableWrap { padding: 0; }
table.grid .sticky { padding-left: 16px; }
table.grid tr > :last-child { padding-right: 16px; }

/* Дополнительные (необязательные) тренажёры */
.optcard { border-style: dashed; }
table.grid th.opt span { color: var(--amber); }
table.grid td.opt { background: #fffbf3; }

/* Допуск к экзамену */
.examPrep.debt { background: var(--red-soft); border-color: #f3c1bb; }
.examPrep.clear { background: var(--green-soft); border-color: #b7dfc0; }
.debtWarn { margin: 8px 0 6px; color: var(--red); line-height: 1.45; }

/* Список упражнений в кабинете: пройдено по программе / текущее задание / впереди */
.row.exrow { border-radius: 10px; padding-left: 10px; padding-right: 8px; margin: 3px 0; border-top: none; border-left: 3px solid transparent; }
.row.exrow.passed { background: var(--bg); }
.row.exrow.current { background: var(--blue-soft); border-left-color: var(--blue); }
.exlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.exlegend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; vertical-align: -2px; margin-right: 4px; }
.exlegend .lg.passed { background: var(--bg); }
.exlegend .lg.current { background: var(--blue-soft); border-color: var(--blue); }

.exlegend .lgi { white-space: nowrap; }

/* Правка балла администратором в таблице оценок */
.cellEdit { background: none; border: 1px dashed transparent; border-radius: 8px; padding: 0 2px; margin: 0; cursor: pointer; min-width: 36px; min-height: 24px; font: inherit; }
.cellEdit:hover { border-color: var(--blue); background: var(--blue-soft); }

/* ---------- Фото и отчёт занятия (журнал) ---------- */
.repGrid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-top: 10px; }
@media (max-width: 560px) { .repGrid { grid-template-columns: 1fr; } }
.repPhoto { position: relative; }
.repPhoto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.repNo { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.repHint { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(31,35,40,.8); color: #fff; font-size: 12px; border-radius: 8px; padding: 4px 8px; text-align: center; }
.repFields label.f { margin-top: 10px; }
.repPick { cursor: pointer; margin-right: 8px; }
.repFields .ta { min-height: 70px; }
.repFields #repSave { margin-top: 6px; }

/* Скрытое остаётся скрытым, даже если у элемента свой display (например, .btn) */
[hidden] { display: none !important; }

/* Адрес по дням недели в редакторе расписания; адрес следующего занятия у ученика */
.wdrow { flex-wrap: wrap; }
.wdrow .wdaddr { flex: 1 1 220px; min-width: 0; font-size: 14px; }
.wdrow input[type=checkbox]:not(:checked) ~ .wdaddr { display: none; }
.nextAddr { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Поток → группы (кабинет организатора) */
.cohort-card .groups { margin-top: 12px; display: grid; gap: 10px; }
.grp { border: 1px solid #e3e6ea; border-left: 4px solid var(--blue); border-radius: 10px; padding: 10px 12px; background: rgba(0,0,0,.015); }
.grp.intake { border-left-color: var(--amber); background: var(--amber-soft); }
.grp .grpHead { margin-bottom: 4px; line-height: 1.5; }
.grp .plansum { margin: 6px 0; }
.grp .jrow { margin-top: 8px; }
.pact { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* Разговорные клубы */
#rf .repPhoto { max-width: 200px; }
.fmtPick { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fmtPick .chk { margin: 2px 0; }
.sprep { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sprep:last-child { border-bottom: none; }
.sprepPhoto img, .sprepPhoto .repNo { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: flex; }
.sprepBody { display: grid; gap: 4px; min-width: 0; }
.sprepTopic { font-weight: bold; font-size: 16px; }
.sprepDesc { white-space: pre-line; font-size: 14px; }
@media (max-width: 560px) { .sprep { grid-template-columns: 96px 1fr; } .sprepPhoto img, .sprepPhoto .repNo { width: 96px; } }
.club-card .vols { margin: 8px 0; }.avail { margin: 10px 0; }
.avail summary { cursor: pointer; margin-bottom: 6px; }
.avTable { border-collapse: collapse; font-size: 13px; }
.avTable th { font-weight: normal; color: var(--muted); padding: 4px 6px; text-align: center; line-height: 1.25; white-space: nowrap; }
.avTable td { padding: 5px 6px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.avTable .sticky { position: sticky; left: 0; background: #fff; text-align: left; min-width: 130px; box-shadow: 1px 0 0 var(--line); z-index: 1; }
.avTable .av.yes { color: var(--green); background: var(--green-soft); font-weight: bold; }
.avTable .av.no { color: var(--red); background: var(--red-soft); }
.avTable .av { color: #b5bcc4; }
.avTable .av.sum { color: var(--green); font-weight: bold; }
.avTable .av.sum.zero { color: var(--red); background: var(--red-soft); }
.avRow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avRow:last-child { border-bottom: none; }
.avRow .avWhen { min-width: 140px; }
.avRow .avWhen small { display: block; color: var(--muted); }
.avRow .avWho { flex: 1 1 160px; font-size: 13px; color: var(--muted); }
.avBtns { display: flex; gap: 6px; }
.avBtns button { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.avBtns button.on.yes { background: var(--green); border-color: var(--green); color: #fff; }
.avBtns button.on.no { background: var(--red); border-color: var(--red); color: #fff; }
/* Волонтёры: медали (логотип ББ в цвете металла), отметки, команда */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 4px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.25); }
.medal img { width: 72%; height: 72%; object-fit: contain; }
.medal.big { width: 64px; height: 64px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.25); }
.medal.bronze { background: radial-gradient(circle at 35% 30%, #f3c79b, #b8733a 60%, #7d4a22); }
.medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c3c8cf 55%, #8a9099); }
.medal.gold   { background: radial-gradient(circle at 35% 30%, #fff5c2, #e6b422 55%, #a87b0c); }
.medal.bronze img { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg) brightness(.55); }
.medal.silver img { filter: grayscale(1) brightness(.55) contrast(1.2); }
.medal.gold img   { filter: grayscale(1) sepia(1) saturate(4) hue-rotate(5deg) brightness(.6); }
.voltag { display: inline-block; font-size: 11px; line-height: 1.5; padding: 0 7px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: normal; vertical-align: 1px; }
.medalLegend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.medalLegend .medal { margin-left: 10px; }
.medalLegend .medal:first-child { margin-left: 0; }
.teamRow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 170px; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.teamRow .teamWho { display: flex; align-items: center; gap: 6px; }
.teamRow > div:last-child { text-align: right; }
.teamRow small { display: block; color: var(--muted); font-size: 12px; }
.teamRow.on .teamWho b { color: var(--green); }
@media (max-width: 640px) { .teamRow { grid-template-columns: 1fr; } .teamRow > div:last-child { text-align: left; } }
.avTable .av.yes.auto, .av.auto { color: var(--green); background: transparent; font-weight: normal; opacity: .75; }
.volCard { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.volCard .volNums { display: flex; gap: 8px; flex-wrap: wrap; }.medal.mid { width: 44px; height: 44px; margin: 0 0 4px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 1px 4px rgba(0,0,0,.25); }
.medalPath { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.medalPath .mp { display: flex; flex-direction: column; align-items: center; min-width: 72px; text-align: center; font-size: 13px; line-height: 1.3; }
.medalPath .mp small { color: var(--muted); font-size: 12px; }
.medalPath .mp.got small { color: var(--green); }
.medalPath .mp.locked .medal { filter: grayscale(.65); opacity: .5; }
.medalPath .mp.locked b { color: var(--muted); font-weight: normal; }/* Ведущие встречи (1–3) в формах отчёта */
.hostRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.hostRow .sel { max-width: 300px; flex: 1 1 200px; }
.hostRow .chk { margin: 0; white-space: nowrap; }
.hostRow .hostName { font-weight: bold; flex: 1 1 200px; }
.hostRow [data-hx] { font-size: 20px; line-height: 1; color: var(--muted); }/* Звёзды за тренажёры */
.xstar { vertical-align: -2px; margin-left: 3px; flex-shrink: 0; }
.hw .xstar { margin-left: 2px; vertical-align: -1px; }
.exscore { display: inline-flex; align-items: center; gap: 2px; min-width: 64px; justify-content: flex-end; }
.starTally { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; margin: 4px 0 10px; }
.starTally > span { display: inline-flex; align-items: center; gap: 3px; font-weight: bold; }
.starTally .xstar { margin: 0; }
.starHow { flex-basis: 100%; }
.starHow summary { cursor: pointer; color: var(--blue); font-size: 13px; display: inline; }
.starHow p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }.gcell { display: inline-flex; align-items: center; white-space: nowrap; }
.gcell .xstar { margin-left: 1px; }
.xstar.gold { filter: drop-shadow(0 0 2px rgba(255, 190, 0, .75)); }
.starTally .ratingPlace { font-weight: normal; gap: 8px; }
.starTally .ratingPlace a { font-size: 13px; }
