/* Таблица лидеров: public/js/leaders.js, страница #/leaders */
.lb { max-width: 820px; }
.lb-head h1 { margin-bottom: 4px; }
.lb-tabs { display: flex; gap: 4px; margin: 14px 0 10px; border-bottom: 1px solid var(--line); }
.lb-tabs a { padding: 8px 16px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.lb-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.lb-ctrl { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.lb-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.lb-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.lb-seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.lb-me { margin: 6px 0 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.lb-me-pl { font-weight: 800; color: var(--accent); }
.lb-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th, .lb-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table td.num { white-space: nowrap; }
.lb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lb-table .pl { width: 2.6em; text-align: center; font-weight: 700; color: var(--muted); }
.lb-table tr.lb-top .pl { font-size: 1.3rem; }
.lb-table .xp { font-weight: 800; color: var(--accent); }
.lb-table tr.me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lb-who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.lb-who a { text-decoration: none; color: inherit; }
.lb-nick { font-weight: 600; }
.lb-grp { flex-basis: 100%; color: var(--muted); font-size: .78rem; }
.lb-hard { color: var(--muted); }
.lb-empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
@media (max-width: 560px) {
  .lb-table { font-size: .9rem; }
  .lb-table th, .lb-table td { padding: 8px 5px; }
  .lb-table th { font-size: .66rem; letter-spacing: 0; }
  .lb-table td b { white-space: nowrap; }
  .lb-table .hide-sm { display: none; }
  .lb-hard { display: block; }
  .lb-seg button { padding: 5px 9px; }
}
/* окно «Имя и группа студента» у преподавателя (app.js editStudentProfile) */
.form-stack label { display: block; margin: 10px 0; font-size: .9rem; color: var(--muted); }
.form-stack input, .form-stack select { display: block; width: 100%; margin-top: 4px; box-sizing: border-box; }
.lb-who .streak-fire { font-size: .78rem; padding: 0 7px; }
