:root {
  --bg: #0f1216;
  --bg-2: #161a20;
  --bg-3: #1e242c;
  --border: #2a313b;
  --text: #e6ebf2;
  --text-dim: #8a93a0;
  --accent: #ff6b00;
  --accent-2: #ff8a3d;
  --green: #2ecc71;
  --green-bg: #163d28;
  --red: #e74c3c;
  --red-bg: #3d1717;
  --blue: #4a9eff;
  --blue-bg: #17314f;
  --purple: #b266ff;
  --purple-bg: #2a1a3d;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.4;
}

/* --- Header --- */
header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* --- Логотип и название --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
header h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
  line-height: 1.15;
}
header h1 span {
  color: var(--accent);
  font-weight: 700;
}

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
nav button:hover { color: var(--text); border-color: #3a4250; }
nav button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.auth-box { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.auth-box span { font-size: 13px; color: var(--text-dim); }

main { padding: 20px; max-width: 1100px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }
h2 { font-size: 18px; margin: 0 0 16px; }
h3 { font-size: 15px; margin: 20px 0 10px; color: var(--text-dim); font-weight: 500; }

input, select, button, textarea {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="file"] { padding: 6px; }
button { cursor: pointer; transition: all 0.15s; }
button:hover { border-color: #3a4250; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.danger { background: transparent; border-color: var(--red); color: var(--red); }
button.danger:hover { background: var(--red-bg); }
button.ghost { background: transparent; color: var(--text-dim); }

.row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.row label { display: flex; gap: 8px; align-items: center; color: var(--text-dim); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card:hover { border-color: #353d49; }
.card .info { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.card .info .name { font-weight: 500; }
.card .info .num { display: inline-block; min-width: 28px; text-align: center; color: var(--accent); font-weight: 600; }
.card .actions { display: flex; gap: 6px; flex-shrink: 0; }

.player-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: var(--bg-3); border: 1px solid var(--border); flex-shrink: 0;
}
.player-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-dim);
}

.badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.yes { background: var(--green-bg); color: var(--green); }
.badge.no { background: var(--red-bg); color: var(--red); }
.badge.role { background: var(--blue-bg); color: var(--blue); }
.badge.guest { background: #3a2d17; color: #ffb84d; }

.numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.numbers span { background: var(--green-bg); color: var(--green); padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* --- Modals --- */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 22px; border-radius: 14px;
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
}
.modal-content h3 { margin: 0; font-size: 17px; color: var(--text); }
.modal-content label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-dim);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ============================================================
   КНОПКИ СОБЫТИЙ
   ============================================================ */
.training-bar { margin-bottom: 20px; }
.training-bar-label {
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 500;
}
.training-buttons {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: thin;
}
.training-buttons::-webkit-scrollbar { height: 6px; }
.training-buttons::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.training-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px; padding: 10px 16px;
  background: var(--bg-2); border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text);
  font-size: 13px; white-space: nowrap; flex-shrink: 0;
  transition: all 0.15s; min-width: 130px;
}
.training-btn:hover { border-color: #4a5260; transform: translateY(-1px); }
.training-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.training-btn.active .tb-date,
.training-btn.active .tb-title { color: #fff; }
.training-btn .tb-date { font-weight: 600; font-size: 14px; }
.training-btn .tb-title { font-size: 12px; color: var(--text-dim); }
.training-btn.today .tb-date::after {
  content: ' • сегодня'; color: var(--accent);
  font-size: 11px; font-weight: 500;
}
.training-btn.active.today .tb-date::after { color: #ffe5cc; }

/* Кнопка матча — фиолетовая */
.training-btn.match-btn .tb-title { color: #d8b3ff; }
.training-btn.match-btn:hover { border-color: var(--purple); }
.training-btn.match-btn.active {
  background: var(--purple);
  border-color: var(--purple);
}
.training-btn.match-btn.active .tb-date,
.training-btn.match-btn.active .tb-title { color: #fff; }
.training-btn.match-btn.today .tb-date::after { color: var(--purple); }
.training-btn.match-btn.active.today .tb-date::after { color: #e8d5ff; }

/* ============================================================
   БЛОК ГОЛОСОВАНИЯ
   ============================================================ */
.vote-block {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.vote-title {
  font-size: 15px; color: var(--text-dim);
  margin-bottom: 14px; text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 500;
}
.vote-roles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.role-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px;
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; min-height: 90px;
}
.role-btn:hover { border-color: #4a5260; transform: translateY(-2px); }
.role-btn .role-icon { font-size: 26px; line-height: 1; }
.role-btn.selected {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.role-btn.role-no.selected {
  border-color: var(--red); background: var(--red-bg);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.vote-input-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.vote-input-wrap { flex: 1; min-width: 0; }
.vote-input-wrap > label {
  display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px;
}
.autocomplete-wrap { position: relative; }
.autocomplete-wrap input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
}
.autocomplete-wrap input:focus { border-color: var(--accent); outline: none; }

.suggest-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; max-height: 300px; overflow-y: auto;
  z-index: 30; box-shadow: var(--shadow); display: none;
}
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--bg-3); }
.suggest-info { flex: 1; min-width: 0; }
.suggest-info .num { color: var(--accent); font-weight: 600; margin-right: 6px; }
.suggest-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.player-avatar.small { width: 34px; height: 34px; font-size: 14px; }

.vote-hint { font-size: 13px; margin-top: 8px; min-height: 18px; }
.hint-ok { color: var(--green); }
.hint-warn { color: #ffb84d; }

.vote-avatar-wrap { flex-shrink: 0; width: 96px; height: 96px; }
.vote-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--bg-3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vote-avatar .avatar-placeholder { font-size: 40px; color: var(--text-dim); opacity: 0.4; }
.vote-avatar .avatar-letter { font-size: 38px; font-weight: 600; color: var(--accent); }

.vote-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.big-btn { padding: 14px 40px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.big-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.role-group { margin-bottom: 14px; }
.role-group-title {
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.role-group-title .count {
  background: var(--bg-3); color: var(--text-dim);
  padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-size: 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text);
}
.chip-num { font-weight: 700; color: var(--accent); font-size: 13px; }
.chip.role-нападающий { border-color: #7a3a10; background: rgba(255, 107, 0, 0.10); }
.chip.role-защитник   { border-color: #1a4a7a; background: rgba(74, 158, 255, 0.10); }
.chip.role-вратарь    { border-color: #4a7a1a; background: rgba(46, 204, 113, 0.10); }
.chip.role-тренер     { border-color: #6a1a7a; background: rgba(178, 102, 255, 0.10); }
.chip-missed { background: var(--red-bg); border-color: #5a1e1e; color: #ff9a9a; opacity: 0.85; }
.chip-guest { background: #3a2d17; border-color: #5a4422; color: #ffb84d; }

/* ============================================================
   ЗАМОК ДЛЯ СПИСКА УЧАСТНИКОВ МАТЧА
   ============================================================ */
.attendance-lock {
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin-top: 10px;
}
.lock-icon { font-size: 44px; margin-bottom: 10px; opacity: 0.8; }
.lock-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lock-text {
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 20px; line-height: 1.5;
  max-width: 380px; margin-left: auto; margin-right: auto;
}
.lock-form { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lock-form input {
  width: 140px; text-align: center;
  font-size: 18px; letter-spacing: 4px;
  padding: 12px 14px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
}
.lock-form input:focus { border-color: var(--accent); outline: none; }
.pin-error { font-size: 13px; color: var(--red); margin-top: 12px; min-height: 18px; }

/* ============================================================
   КАЛЕНДАРЬ
   ============================================================ */
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px;
}
.calendar-title { font-size: 18px; font-weight: 600; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: var(--bg-2);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; padding: 0 10px; margin-bottom: 6px;
}
.calendar-weekdays div {
  text-align: center; font-size: 12px;
  color: var(--text-dim); padding: 6px 0;
}

.calendar-cell {
  min-height: 120px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 3px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.15s;
  background: var(--bg);
}
.calendar-cell:hover { border-color: #3a4250; }
.calendar-cell.empty { cursor: default; opacity: 0.25; background: transparent; }
.calendar-cell.empty:hover { border-color: transparent; }
.calendar-cell.today { border-color: var(--accent); }

.calendar-cell.has-training { background: rgba(255, 107, 0, 0.08); }
.calendar-cell.has-match    { background: rgba(178, 102, 255, 0.08); }
.calendar-cell.has-training.has-match {
  background: linear-gradient(135deg, rgba(255,107,0,0.10) 50%, rgba(178,102,255,0.10) 50%);
}

.cell-num {
  font-size: 13px; font-weight: 600; color: var(--text);
  text-align: right; margin-bottom: 2px; line-height: 1;
}
.calendar-cell.today .cell-num { color: var(--accent); }

.cell-events {
  display: flex; flex-direction: column;
  gap: 4px; overflow: hidden; flex: 1; min-width: 0;
}
.cell-event {
  font-size: 10px; line-height: 1.25;
  padding: 4px 5px; border-radius: 5px;
  font-weight: 500; overflow: hidden; min-width: 0;
}
.cell-event.training {
  background: rgba(255, 107, 0, 0.20);
  color: #ffb07a;
  border-left: 2px solid var(--accent);
}
.cell-event.match {
  background: rgba(178, 102, 255, 0.20);
  color: #d8b3ff;
  border-left: 2px solid var(--purple);
}
.cell-event .ce-top {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; margin-bottom: 1px;
}
.cell-event .ce-time { font-weight: 700; letter-spacing: 0.2px; }
.cell-event .ce-title {
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 500;
}
.cell-event .ce-place {
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; opacity: 0.75;
  font-size: 9px; margin-top: 1px;
}
.cell-more {
  font-size: 10px; color: var(--text-dim);
  text-align: right; padding-right: 2px;
}

.calendar-legend {
  display: flex; gap: 16px; margin-top: 12px;
  font-size: 13px; color: var(--text-dim);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.training { background: var(--accent); }
.legend-dot.match { background: var(--purple); }

/* ============================================================
   ОБЩИЕ БЛОКИ
   ============================================================ */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-header h3 { margin: 0; color: var(--text); font-size: 15px; }
.section-header .count { color: var(--text-dim); font-size: 13px; }

.empty-message {
  text-align: center; padding: 40px 20px;
  color: var(--text-dim); font-size: 14px;
}

/* --- Event cards --- */
.event-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.event-card.match { border-left-color: var(--purple); }
.event-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.event-icon { font-size: 20px; }
.event-title { font-weight: 600; font-size: 15px; }
.event-meta { font-size: 13px; color: var(--text-dim); margin: 6px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.event-comment { font-size: 13px; color: var(--text-dim); margin: 6px 0; font-style: italic; }
.event-body { font-size: 13px; margin-top: 8px; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translate(-50%, 30px);
  background: var(--green-bg); color: var(--green);
  border: 1px solid var(--green);
  padding: 14px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all 0.3s;
  z-index: 200; box-shadow: var(--shadow); max-width: 90vw;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.stats-header h2 { margin: 0; }

.month-block {
  margin-bottom: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.month-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.month-title { font-size: 16px; font-weight: 600; }
.month-stats { display: flex; gap: 8px; flex-wrap: wrap; }

.stats-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
.stats-scroll::-webkit-scrollbar { height: 8px; }
.stats-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.stats-table th,
.stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
}
.stats-table thead th {
  background: var(--bg-3);
  font-weight: 600;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 2;
}
.stats-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.group-header {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.group-header.training-group {
  background: rgba(255, 107, 0, 0.15) !important;
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
}
.group-header.match-group {
  background: rgba(178, 102, 255, 0.15) !important;
  color: var(--purple) !important;
  border-bottom: 2px solid var(--purple) !important;
}

.cell-header {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  min-width: 70px;
}
.cell-header small { font-size: 10px; opacity: 0.75; font-weight: 400; }
.cell-header.training-h { background: rgba(255, 107, 0, 0.06) !important; }
.cell-header.match-h { background: rgba(178, 102, 255, 0.06) !important; }

.mark-cell {
  font-size: 16px;
  min-width: 50px;
}

.sticky-col {
  position: sticky;
  left: 0;
  background: var(--bg-2);
  z-index: 1;
  text-align: center;
  min-width: 42px;
}
.sticky-col-2 {
  left: 42px;
  text-align: left !important;
  min-width: 150px;
  border-right: 2px solid var(--border) !important;
}

.stats-table thead .sticky-col {
  z-index: 4;
  background: var(--bg-3);
}

.total-col {
  background: rgba(255, 255, 255, 0.03) !important;
  font-weight: 600;
  color: var(--text);
  min-width: 90px;
  font-size: 12px;
}
.stats-table thead .total-col {
  background: var(--bg-3) !important;
  font-size: 12px;
  line-height: 1.3;
}
.total-col small { font-size: 10px; opacity: 0.7; font-weight: 400; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */
@media (max-width: 700px) {
  header { padding: 10px 12px; gap: 8px; }
  .brand { width: 100%; gap: 10px; }
  .brand-logo { height: 36px; width: 36px; }
  header h1 { font-size: 16px; width: auto; }
  nav { width: 100%; overflow-x: auto; }
  nav button { padding: 7px 11px; font-size: 13px; }
  .auth-box { width: 100%; justify-content: flex-end; margin-left: 0; }
  main { padding: 12px; }
  .row { flex-direction: column; align-items: stretch; }
  .row label { flex-direction: column; align-items: stretch; }
  .card { padding: 12px; }
  .card .info { gap: 8px; }
  .card .info .name { font-size: 14px; }
  .player-avatar { width: 36px; height: 36px; }
  .modal-content { padding: 16px; }

  .calendar-grid { padding: 6px; gap: 3px; }
  .calendar-weekdays { padding: 0 6px; gap: 3px; }
  .calendar-cell { min-height: 90px; padding: 3px; font-size: 11px; }
  .cell-num { font-size: 11px; margin-bottom: 1px; }
  .cell-event { font-size: 9px; padding: 3px 4px; }
  .cell-event .ce-top { font-size: 10px; gap: 2px; }
  .cell-event .ce-place { font-size: 8px; }
  .cell-more { font-size: 9px; }

  .vote-block { padding: 14px; }
  .vote-roles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .role-btn { min-height: 76px; padding: 12px 8px; font-size: 12px; }
  .role-btn .role-icon { font-size: 22px; }
  .vote-input-row { flex-direction: column-reverse; align-items: center; gap: 12px; }
  .vote-avatar-wrap, .vote-avatar { width: 80px; height: 80px; }
  .vote-avatar .avatar-placeholder { font-size: 32px; }
  .vote-avatar .avatar-letter { font-size: 30px; }
  .vote-input-wrap { width: 100%; }
  .autocomplete-wrap input { font-size: 15px; padding: 11px 13px; }
  .vote-actions { justify-content: stretch; }
  .big-btn { width: 100%; padding: 14px 20px; }
  .chip { font-size: 13px; padding: 7px 12px; }
  .chip-num { font-size: 12px; }
  .toast { bottom: 16px; padding: 12px 18px; font-size: 13px; }

  .training-btn { padding: 8px 12px; min-width: 110px; }
  .training-btn .tb-date { font-size: 13px; }
  .training-btn .tb-title { font-size: 11px; }

  .attendance-lock { padding: 24px 16px; }
  .lock-icon { font-size: 36px; }
  .lock-form { flex-direction: column; }
  .lock-form input { width: 100%; max-width: 200px; }
  .lock-form button { width: 100%; max-width: 200px; }

  .stats-table { font-size: 12px; }
  .stats-table th, .stats-table td { padding: 6px 8px; }
  .mark-cell { font-size: 14px; }
  .sticky-col-2 { min-width: 120px; }
}
/* ============================================================
   БЛОК УВЕДОМЛЕНИЙ В ФОРМАХ
   ============================================================ */
.notify-block {
  background: var(--bg-3);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.notify-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 500;
}
.notify-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.notify-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.notify-option span {
  color: var(--text);
}
.notify-custom {
  display: flex;
  gap: 8px;
  margin: 8px 0 8px 24px;
  flex-wrap: wrap;
}
.notify-custom input {
  background: var(--bg-2);
}

@media (max-width: 700px) {
  .notify-custom {
    flex-direction: column;
    margin-left: 0;
  }
}