:root {
  --bg: #f4f6f5; --card: #ffffff; --text: #17201b; --muted: #66726b; --line: #dfe5e1;
  --accent: #0f7a4f; --accent-text: #ffffff; --accent-soft: #e2f3ea;
  --free: #22a861; --free-soft: #dff5e8; --busy: #d64545; --busy-soft: #fbe3e3;
  --part: #e6a21a; --part-soft: #fdf1d6; --mine: #2f6fd6; --mine-soft: #e1ebfb;
  --table: #1d6b8f; --net: #ffffff;
  --danger: #c53030; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101413; --card: #1a201e; --text: #e8eeea; --muted: #94a19a; --line: #2b3431;
    --accent: #2fb57a; --accent-text: #08130e; --accent-soft: #173327;
    --free: #34c274; --free-soft: #16301f; --busy: #ef6464; --busy-soft: #3a1d1d;
    --part: #f0b43c; --part-soft: #3a2f14; --mine: #6b9cf0; --mine-soft: #1b2a45;
    --table: #22566e; --net: #dfe7ea; --danger: #ff6b6b; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101413; --card: #1a201e; --text: #e8eeea; --muted: #94a19a; --line: #2b3431;
  --accent: #2fb57a; --accent-text: #08130e; --accent-soft: #173327;
  --free: #34c274; --free-soft: #16301f; --busy: #ef6464; --busy-soft: #3a1d1d;
  --part: #f0b43c; --part-soft: #3a2f14; --mine: #6b9cf0; --mine-soft: #1b2a45;
  --table: #22566e; --net: #dfe7ea; --danger: #ff6b6b; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
main { max-width: 640px; margin: 0 auto; padding: 12px 16px calc(84px + env(safe-area-inset-bottom)); }
h1 { font-size: 22px; margin: 6px 0 12px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 18px 0 8px; }
h3 { font-size: 15px; margin: 12px 0 6px; }
p { margin: 0 0 8px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.loading, .empty { color: var(--muted); text-align: center; padding: 40px 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.stack > * + * { margin-top: 10px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border: 1px solid var(--line); }
.card + .card { margin-top: 10px; }
.card.tap { cursor: pointer; }
.card.tap:active { transform: scale(.99); }

button, .btn {
  font: inherit; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button.secondary, .btn.secondary { background: var(--accent-soft); color: var(--accent); }
button.ghost { background: transparent; color: var(--accent); padding: 8px 10px; }
button.danger { background: var(--busy-soft); color: var(--danger); }
button.block { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
button.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
label.field { display: block; margin-bottom: 10px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* полоса дат */
.dates { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 54px; padding: 8px 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; color: var(--text); font-weight: 400; display: block; }
.date b { display: block; font-size: 18px; }
.date small { font-size: 12px; color: var(--muted); }
.date.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.date.on small { color: inherit; opacity: .85; }
.date .dot { display: block; width: 6px; height: 6px; border-radius: 3px; margin: 3px auto 0; background: transparent; }
.date .dot.has { background: var(--free); }
.date.on .dot.has { background: var(--accent-text); }

/* карточка занятия */
.slot { display: flex; align-items: center; gap: 12px; }
.slot .time { font-size: 20px; font-weight: 700; width: 66px; flex: none; }
.slot .time small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--free-soft); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: var(--busy); border-radius: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pill.free { background: var(--free-soft); color: var(--free); }
.pill.busy { background: var(--busy-soft); color: var(--busy); }
.pill.part { background: var(--part-soft); color: var(--part); }
.pill.mine { background: var(--mine-soft); color: var(--mine); }
.pill.gray { background: var(--line); color: var(--muted); }
.event { border-left: 4px solid var(--part); }

/* схема зала */
.hall-head { position: sticky; top: var(--bar-h); z-index: 2; background: var(--bg); padding: 6px 0 8px; }
.counter { font-size: 15px; }
.counter b { font-size: 22px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.hall { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 4px; }
.hall-wall { font-size: 11px; color: var(--muted); text-align: center; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.tbl { display: grid; grid-template-columns: 26px 1fr 6px 1fr; align-items: stretch; gap: 0; margin-bottom: 10px; }
.tbl .no { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.tbl .net { background: var(--net); border-top: 1px solid var(--table); border-bottom: 1px solid var(--table); }
.half { border: 0; border-radius: 0; padding: 0; background: var(--table); display: flex; flex-direction: column; align-items: stretch; justify-content: stretch; min-height: 58px; color: var(--text); font-weight: 400; }
.half.L { border-radius: 10px 0 0 10px; padding: 3px 0 3px 3px; }
.half.R { border-radius: 0 10px 10px 0; padding: 3px 3px 3px 0; }
.hcell { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 2px 4px; line-height: 1.15; overflow: hidden; }
.half.L .hcell { border-radius: 7px 0 0 7px; }
.half.R .hcell { border-radius: 0 7px 7px 0; }
.hcell + .hcell { margin-top: 2px; }
.hcell.free { background: var(--free-soft); color: var(--free); font-weight: 600; }
.hcell.busy { background: var(--busy-soft); color: var(--busy); }
.hcell.mine { background: var(--mine-soft); color: var(--mine); font-weight: 600; }
.hcell .h { font-size: 10px; opacity: .75; margin-right: 4px; }
.half:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* шапка */
:root { --bar-h: 52px; }
.bar { position: sticky; top: 0; z-index: 11; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar-in { max-width: 640px; margin: 0 auto; height: var(--bar-h); display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.bar-title { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.bar .icon { position: relative; width: 40px; height: 40px; border-radius: 12px; padding: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.bar .icon:active { background: var(--line); }
.bar .icon svg { width: 24px; height: 24px; }
.icon-sp { width: 8px; }
.logo { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.logo svg { width: 28px; height: 28px; }
.ava { width: 34px; height: 34px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-left: 2px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--busy); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 17px; text-align: center; }

/* нижнее меню */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs-in { display: flex; max-width: 640px; margin: 0 auto; }
.tabs a { flex: 1; text-align: center; padding: 8px 0 7px; color: var(--muted); text-decoration: none; font-size: 11px; position: relative; }
.tabs a span { position: relative; }
.tabs a .badge { top: -30px; right: -14px; }
.tabs a svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
.tabs a.on { color: var(--accent); font-weight: 600; }
.tabs a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }

/* переходы между экранами */
@keyframes in-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes in-tab { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main.in-fwd { animation: in-fwd .22s ease-out; }
main.in-back { animation: in-back .22s ease-out; }
main.in-tab { animation: in-tab .18s ease-out; }
@media (prefers-reduced-motion: reduce) { main.in-fwd, main.in-back, main.in-tab { animation: none; } }
.skel i { display: block; height: 76px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line), var(--card), var(--line)); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-bottom: 10px; }
.skel i.short { width: 60%; height: 40px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* главный экран */
.hello h1 { margin: 2px 0 12px; }
.next { border-left: 4px solid var(--mine); }
.next-when { font-size: 22px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.01em; }
.empty-next { border-left-color: var(--accent); }
.empty-next p { margin: 6px 0 12px; }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { display: flex; width: 100%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.tile:active { transform: scale(.98); }
.tile svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.tile b { font-size: 15px; }
.tile span { font-size: 12px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .badge { top: 8px; right: 8px; }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 10px; }
.tile.wide svg { margin: 0; }
.tile.wide span { margin-left: auto; }
/* главный экран: пять кнопок потребностей и «когда» с числом вариантов */
.needs { display: grid; gap: 8px; }
.need { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; color: var(--text); }
.need:active { transform: scale(.98); }
.need svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.need b { display: block; font-size: 15px; }
.need small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.need .chev { margin-left: auto; color: var(--muted); }
.home-lbl { font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 500; }
.chip.zero { opacity: .45; }
.invite-strip { display: block; text-decoration: none; color: var(--text); background: var(--part-soft); border-color: var(--part); margin-bottom: 10px; }
.tips { margin-top: 12px; }
.tips ol { margin: 8px 0; padding-left: 20px; }
.tips li + li { margin-top: 4px; }
.list-card { padding: 4px 14px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lrow:last-child { border-bottom: 0; }
.lrow.more { color: var(--accent); font-weight: 600; font-size: 14px; justify-content: center; }
.lt { width: 70px; flex: none; }
.lt b { font-size: 17px; display: block; }
.lt small { font-size: 12px; color: var(--muted); }
.hero { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.hero h1 { margin: 0; font-size: 26px; }
.hero-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hero-logo svg { width: 34px; height: 34px; }
.msg.unread { border-left: 4px solid var(--accent); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; }

/* компьютер: та же колонка по центру, чуть просторнее */
@media (min-width: 900px) {
  body { font-size: 16px; }
  main { padding-top: 20px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile.wide { grid-column: 1 / -1; }
}

/* нижняя шторка */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: up .18s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.sheet h2 { margin-top: 0; }
.sheet .actions { display: grid; gap: 8px; margin-top: 12px; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

.seg { display: flex; background: var(--line); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 12px; }
.seg button { flex: 1; background: transparent; color: var(--text); font-weight: 500; padding: 8px 4px; border-radius: 8px; font-size: 14px; white-space: nowrap; min-width: 0; }
@media (max-width: 400px) { .seg button { font-size: 13px; } }
.seg button.on { background: var(--card); box-shadow: var(--shadow); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 30; max-width: 90vw; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.err { background: var(--danger); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.warn { background: var(--part-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.bad { background: var(--busy-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.sched-row { display: grid; grid-template-columns: 62px 50px 50px 1fr 40px; gap: 6px; margin-bottom: 6px; align-items: center; }
.sched-row input, .sched-row select { padding: 9px 6px; }
.pass-row { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.pass-row label input { margin-top: 2px; }
.sched-row button { padding: 8px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* запись: шаги «где — когда — во сколько» */
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }
.step-n { width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.picker { display: flex; gap: 8px; align-items: center; padding: 8px; }
.picker .secondary { line-height: 1.15; text-align: center; }
.pick { background: transparent; color: var(--text); font-weight: 400; text-align: left; display: block; position: relative; padding: 6px 28px 6px 6px; }
.pick b { font-size: 16px; }
.pick .chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--muted); }
.date.cal { position: relative; cursor: pointer; }
.date.cal b { font-size: 16px; line-height: 22px; }
.date.cal input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 500; padding: 8px 14px; border-radius: 99px; font-size: 14px; }
.chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.place { display: flex; align-items: center; gap: 6px; width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 8px; font-weight: 400; text-align: left; }
button.place { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
.place .pv { background: transparent; color: var(--text); font-weight: 400; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px; }
.place.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.place .ok { color: var(--free); font-weight: 600; }

/* неделя */
table.week { border-collapse: collapse; width: 100%; font-size: 13px; }
table.week th { font-weight: 600; padding: 4px 2px; text-align: center; font-size: 12px; }
table.week th.vn { text-align: left; padding-right: 6px; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
td.wk { text-align: center; padding: 2px; }
td.wk button { width: 100%; min-width: 38px; padding: 6px 2px; border-radius: 8px; font-size: 14px; flex-direction: column; gap: 0; line-height: 1.1; }
td.wk button small { font-size: 9px; font-weight: 400; opacity: .8; }
td.wk.has button { background: var(--free-soft); color: var(--free); }
td.wk.full button { background: var(--busy-soft); color: var(--busy); }
td.wk.none { color: var(--muted); }

/* карточка клуба */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 10px; background: var(--line); }
.map iframe { display: block; width: 100%; height: 220px; border: 0; }
.route3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.route3 button { flex-direction: column; gap: 2px; font-size: 20px; padding: 10px 4px; }
.route3 button span { font-size: 12px; font-weight: 600; }

/* поиск пары */
.hcell.seeking { box-shadow: inset 0 -3px 0 var(--part); flex-direction: column; }
.hcell .seek { display: block; font-size: 10px; font-weight: 700; color: var(--part); }
.seek-txt { color: var(--part); font-weight: 600; }
.pairbox { background: var(--part-soft); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.pairbox p { margin: 4px 0 10px; }
.prow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .pill { vertical-align: 1px; }

/* список на вход: печать недели вместо PDF */
.print-only { display: none; }
@media print {
  .bar, .tabs, .no-print, .toast, #sheet-root { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
  main { padding: 0 !important; max-width: none !important; animation: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* аренда стола по часам: сетка часов дня */
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hours .hr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; font-size: 15px; }
.hours .hr small { font-size: 11px; font-weight: 500; }
.hours .hr.free { background: var(--free-soft); color: var(--free); }
.hours .hr.mine { background: var(--mine-soft); color: var(--mine); }
.hours .hr.busy { background: var(--busy-soft); color: var(--busy); opacity: .75; }
.hours .hr.past, .hours .hr.closed { background: var(--line); color: var(--muted); opacity: .6; }

/* «Мои занятия» тренера — таблица: ученик × дни недели */
.ctab-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ctab { width: 100%; min-width: 340px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.ctab col.cn-col { width: 27%; }
.ctab th, .ctab td { border-bottom: 1px solid var(--line); padding: 5px 1px; text-align: center; vertical-align: middle; }
.ctab th { color: var(--muted); font-weight: 600; }
.ctab th small { display: block; font-weight: 400; font-size: 10px; }
.ctab th.td { color: var(--accent); }
.ctab .nm { text-align: left; padding-left: 8px; line-height: 1.25; word-break: break-word; }
.ctab tr.tot td { font-weight: 700; border-bottom: none; }
.lc { display: inline-block; white-space: nowrap; letter-spacing: -0.3px; margin: 1px 0; padding: 2px 1px; min-height: 0; border-radius: 6px; border: 0; font-size: 11px; line-height: 1.2; font-weight: 600; background: var(--free-soft); color: var(--free); }
.lc i { font-style: normal; font-size: 9px; margin-left: 1px; opacity: .8; }
.lc.mv { background: var(--part-soft); color: var(--part); }
.lc.cn { background: var(--busy-soft); color: var(--busy); text-decoration: line-through; }
.lc-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin: 8px 0 4px; }
.ctab td.stu { cursor: pointer; color: var(--accent); text-decoration: underline dotted; text-underline-offset: 2px; }
/* карточка ученика и «Мои успехи»: оценка техники точками 1–5 */
.sk-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-top: 6px; }
.sk-dots { display: inline-flex; gap: 6px; }
.sk-dot { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.sk-dot.on { background: var(--accent); border-color: var(--accent); }
span.sk-dot { display: inline-block; width: 12px; height: 12px; }
