/* ROSHCHIN TEAM · стили мини-аппа.
   Компоненты 1:1 с design-pack/renders/style.css + шелл приложения
   (модалка, тосты, лоадер, dev-переключатель ролей). */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #f5f3ee;
  font-family: 'Public Sans', -apple-system, system-ui, sans-serif;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}
body {
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

/* ---------- App header ---------- */
.app-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.10em;
  text-transform: uppercase; line-height: 1.1;
}
.brand-sub {
  font-size: 10px; color: #6b6862; margin-top: 4px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.role {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #c8221f;
  padding: 3px 7px; border: 1px solid rgba(200,34,31,0.3);
  border-radius: 4px; white-space: nowrap;
}
.greeting {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 21px; margin: 11px 0 1px;
  letter-spacing: -0.01em; line-height: 1.1;
}
.greeting-sub { color: #6b6862; font-size: 11px; margin-bottom: 12px; }

/* ---------- Card ---------- */
.card {
  background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px; padding: 13px; margin-bottom: 10px;
}
.card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 16px; margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.small { font-size: 11px; color: #6b6862; }
.muted { color: #6b6862; }

/* инлайновые SVG-иконки (Tabler, MIT) */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: 0 0 auto; stroke: currentColor; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.pill.ok   { background: rgba(31,107,58,0.12);  color: #1f6b3a; }
.pill.warn { background: rgba(184,101,27,0.14); color: #b8651b; }
.pill.none { background: rgba(0,0,0,0.06); color: #6b6862; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 3px; padding: 3px;
  background: #ffffff; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.06); margin-bottom: 10px;
}
.tab {
  flex: 1; padding: 6px; font-size: 11px; text-align: center;
  border-radius: 7px; color: #6b6862; font-weight: 500;
  cursor: pointer; user-select: none;
}
.tab.active { background: #0a0a0a; color: #fff; }
.count {
  display: inline-block; background: #c8221f; color: #fff;
  font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px;
  margin-left: 4px; vertical-align: middle;
}

/* ---------- Big number ---------- */
.big-stat { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big-stat .num {
  font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1;
}
.big-stat .lbl { font-size: 11px; color: #6b6862; }
.big-stat .delta { font-size: 11px; color: #1f6b3a; font-weight: 600; }
.big-stat .delta.down { color: #c8221f; }

/* ---------- Progress ---------- */
.progress {
  height: 4px; background: rgba(0,0,0,0.08);
  border-radius: 99px; overflow: hidden; margin: 10px 0 6px;
}
.progress > span { display: block; height: 100%; background: #c8221f; }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; padding: 11px; border-radius: 10px;
  background: #0a0a0a; color: #fff; width: 100%;
}
button:disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  background: transparent; color: #0a0a0a;
  border: 1px solid rgba(0,0,0,0.12); padding: 11px; border-radius: 10px;
  font-size: 12px; font-weight: 500; font-family: inherit; width: 100%;
  cursor: pointer;
}
.btn-compact { padding: 6px 11px; width: auto; font-size: 11px; border-radius: 7px; }
.btn-brand { background: #c8221f; }
.btn-ok { background: #1f6b3a; }

/* ---------- Plan row ---------- */
.plan-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.06);
}
.plan-row:first-of-type { border-top: none; padding-top: 0; }
.plan-name { font-weight: 500; font-size: 12.5px; }
.plan-sub { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.plan-price {
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Student row (journal) ---------- */
.student-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 13px;
}
.student-row:last-child { border-bottom: none; }
.check {
  width: 24px; height: 24px; border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,0.15);
  display: grid; place-items: center;
  background: #f5f3ee; color: transparent; font-size: 14px;
  cursor: pointer; flex: 0 0 24px;
  transition: background 0.12s, border-color 0.12s;
}
.check.on { background: #c8221f; border-color: #c8221f; color: #fff; }

/* ---------- Inputs ---------- */
.select-row { display: flex; gap: 8px; margin-bottom: 10px; }
.select, input, select {
  flex: 1; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; background: #f5f3ee; color: #0a0a0a;
  font-family: inherit; width: 100%;
}
input::placeholder { color: #9b988f; }

/* ---------- Group row ---------- */
.group-row { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.group-row:last-child { border-bottom: none; padding-bottom: 0; }
.group-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.group-name {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 15px; letter-spacing: -0.005em;
}
.group-meta { font-size: 11px; color: #6b6862; margin-top: 2px; }
.group-invite {
  font-size: 10px; color: #6b6862; margin-top: 6px; word-break: break-all;
  font-family: ui-monospace, monospace;
  display: flex; align-items: center; gap: 6px;
}
.group-invite .copy { color: #1a8cd8; cursor: pointer; font-size: 13px; flex: 0 0 auto; }

/* ---------- Empty state ---------- */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 14px; text-align: center;
}
.empty-state .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(200,34,31,0.08); color: #c8221f;
  display: grid; place-items: center; margin-bottom: 18px;
}
.empty-state .icon-circle .ic { font-size: 32px; }
.empty-state h2 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.empty-state .lead {
  font-size: 12px; color: #6b6862; margin-bottom: 22px;
  line-height: 1.5; max-width: 260px;
}
.empty-state button, .empty-state .btn-ghost { max-width: 280px; }

/* ---------- Awaiting banner ---------- */
.state {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px; background: #ffffff;
  border: 1px solid rgba(184,101,27,0.3);
  border-radius: 12px; margin-bottom: 10px;
}
.state .icon-w {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: rgba(184,101,27,0.15); color: #b8651b;
  display: grid; place-items: center;
}
.state .icon-w .ic { font-size: 16px; }
.state .t { font-size: 12px; font-weight: 600; }
.state .d { font-size: 11px; color: #6b6862; margin-top: 2px; line-height: 1.4; }

/* ---------- Success screen ---------- */
.success-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 22px; text-align: center; min-height: 80vh;
}
.success-screen .icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(31,107,58,0.12); color: #1f6b3a;
  display: grid; place-items: center; margin-bottom: 18px;
}
.success-screen .icon .ic { font-size: 44px; }
.success-screen h2 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.success-screen .lead { font-size: 13px; color: #6b6862; margin-bottom: 22px; }
.success-screen .summary {
  width: 100%; max-width: 320px; background: #fff;
  border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
  padding: 13px; margin-bottom: 16px; text-align: left;
}
.success-screen .summary-row {
  display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px;
}
.success-screen .summary-row + .summary-row {
  border-top: 1px solid rgba(0,0,0,0.06); margin-top: 4px; padding-top: 8px;
}
.success-screen .summary .key { color: #6b6862; }
.success-screen .summary .val { font-weight: 500; }
.success-screen .home-btn { width: 100%; max-width: 320px; }
.success-screen .brand-line {
  font-size: 11px; color: #6b6862; margin-top: 18px; letter-spacing: 0.1em;
}

/* ---------- Bank details ---------- */
.bank {
  background: #fafaf6; border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 8px; padding: 9px 11px; margin-top: 6px;
  font-size: 11px; line-height: 1.55;
}
.bank .lbl { color: #6b6862; font-size: 10px; }
.bank .val { font-weight: 600; font-family: ui-monospace, monospace; font-size: 11.5px; }
.bank-row { display: flex; justify-content: space-between; padding: 2px 0; align-items: center; gap: 10px; }
.bank-row .copy { color: #1a8cd8; font-size: 14px; cursor: pointer; flex: 0 0 auto; }

/* ---------- Payment picker ---------- */
.pay-btn {
  background: #0a0a0a; color: #fff; border: none; padding: 11px;
  border-radius: 10px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.pay-btn.ghost { background: #ffffff; color: #0a0a0a; border: 1px solid rgba(0,0,0,0.12); }
.pay-btn .ic { font-size: 16px; }
.divider { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.divider .line { flex: 1; height: 1px; background: rgba(0,0,0,0.08); }
.divider .lbl { font-size: 10.5px; color: #6b6862; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Pending row (coach queue) ---------- */
.pend-row { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.pend-row:last-child { border-bottom: none; padding-bottom: 0; }
.pend-top { display: flex; justify-content: space-between; font-size: 12.5px; }
.pend-name { font-weight: 600; }
.pend-amt { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; }
.pend-meta { font-size: 10.5px; color: #6b6862; margin-top: 2px; }
.pend-actions { display: flex; gap: 6px; margin-top: 7px; }
.pend-actions .b {
  flex: 1; padding: 7px; border-radius: 7px; font-size: 11px;
  font-weight: 600; font-family: inherit; border: none; cursor: pointer;
}
.pend-actions .ok { background: #1f6b3a; color: #fff; }
.pend-actions .no { background: #ffffff; color: #c8221f; border: 1px solid rgba(200,34,31,0.3); }

/* ---------- KPI row ---------- */
.kpi-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.kpi { padding: 4px 0; }
.kpi .v { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; line-height: 1; }
.kpi .v.ok { color: #1f6b3a; }
.kpi .v.warn { color: #c8221f; }
.kpi .k { font-size: 10px; color: #6b6862; margin-top: 4px; line-height: 1.3; }

/* ---------- Alert row ---------- */
.alert-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 11.5px;
}
.alert-row:last-child { border-bottom: none; }
.alert-row .left { display: flex; gap: 8px; align-items: center; }
.alert-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.alert-row .dot.red { background: #c8221f; }
.alert-row .dot.amber { background: #b8651b; }
.alert-row .ct { color: #6b6862; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.alert-row .ct .ic { font-size: 13px; }
.alert-row.clickable { cursor: pointer; }
.alert-grp:last-child > .alert-row { border-bottom: none; }
.names { padding: 2px 0 8px 15px; }
.nrow { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 3px 0; }
.nrow .muted { font-size: 10.5px; text-align: right; white-space: nowrap; }

/* ---------- Group attendance bar ---------- */
.grow { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.grow:last-child { border-bottom: none; padding-bottom: 0; }
.grow-top { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.grow-name { font-weight: 500; }
.grow-num { color: #6b6862; font-size: 10.5px; }
.bar { height: 5px; background: rgba(0,0,0,0.08); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #0a0a0a; }
.bar > span.warn { background: #c8221f; }

/* ---------- Top-3 ---------- */
.top-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 12px; }
.top-row .rank { font-family: 'Fraunces', serif; font-size: 14px; color: #c8221f; font-weight: 600; margin-right: 8px; }
.top-row .pc { color: #6b6862; font-size: 11px; }

/* ---------- Calendar ---------- */
.cal {
  display: grid; grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column; grid-auto-columns: 11px; gap: 2px; margin-top: 6px;
  overflow-x: auto;
}
.cal-cell { background: rgba(0,0,0,0.05); border-radius: 2px; width: 11px; height: 11px; }
.cal-cell.present { background: #c8221f; }
.cal-cell.missed  { background: #f1c8c8; }
.cal-legend { display: flex; gap: 10px; margin-top: 7px; font-size: 10px; color: #6b6862; align-items: center; }
.cal-legend .sq { width: 8px; height: 8px; border-radius: 2px; }
.cal-legend .sq.p { background: #c8221f; }
.cal-legend .sq.m { background: #f1c8c8; }

/* ---------- Monthly chart ---------- */
.chart { display: flex; gap: 5px; align-items: flex-end; height: 50px; margin-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chart .bar-c { width: 100%; background: #0a0a0a; border-radius: 2px 2px 0 0; min-height: 2px; }
.chart .col .m { font-size: 9px; color: #6b6862; }
.chart .col.now .bar-c { background: #c8221f; }

/* ---------- Payment / history row ---------- */
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.pay-row:last-child { border-bottom: none; }
.pay-row .l { font-size: 12px; font-weight: 500; }
.pay-row .sub { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.pay-row .amt { font-size: 13px; font-weight: 600; }
.pay-row .dl { color: #6b6862; font-size: 16px; margin-left: 8px; cursor: pointer; text-decoration: none; }

/* ---------- Child card ---------- */
.child {
  background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 10px;
}
.child .name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; }
.child .meta { font-size: 11px; color: #6b6862; margin-top: 2px; }
.child .pill {
  display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 99px;
  background: rgba(31,107,58,0.12); color: #1f6b3a; font-size: 10.5px; font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
  width: 100%; background: #0a0a0a; color: #fff; border: none;
  padding: 11px; border-radius: 10px; font-size: 12px; font-weight: 600;
  font-family: inherit; margin-top: 4px;
}

/* ---------- Sparkline ---------- */
.spark { display: flex; gap: 2px; align-items: flex-end; height: 22px; margin-top: 6px; }
.spark span { flex: 1; background: rgba(0,0,0,0.12); border-radius: 1px; min-height: 2px; }
.spark span.hi { background: #c8221f; }

/* ---------- Family / share box ---------- */
.share-code {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600;
  letter-spacing: 0.12em; text-align: center; padding: 6px 0;
}

/* ---------- Loader / error ---------- */
.loader { text-align: center; padding: 40px; color: #6b6862; font-size: 13px; }
.err {
  color: #c8221f; padding: 12px; background: rgba(200,34,31,0.08);
  border-radius: 10px; font-size: 13px; margin-top: 12px;
}
.err button { margin-top: 10px; background: #c8221f; }

/* ---------- Modal (bottom sheet) ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.15s ease;
}
.modal {
  width: 100%; max-width: 460px; background: #f5f3ee;
  border-radius: 18px 18px 0 0; padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto; animation: slideup 0.2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; margin: 0; }
.modal-close { background: transparent; border: none; color: #6b6862; font-size: 20px; width: auto; padding: 4px 6px; cursor: pointer; }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* prompt modal */
.modal textarea {
  width: 100%; border: 1px solid rgba(0,0,0,0.12); border-radius: 8px;
  padding: 10px; font-family: inherit; font-size: 13px; background: #fff;
  resize: vertical; min-height: 64px; margin: 8px 0;
}
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1400; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 16px;
}
.toast {
  background: #0a0a0a; color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 10px; max-width: 420px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); animation: fade 0.18s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: #1f6b3a; }
.toast.err { background: #c8221f; }
.toast .ic { font-size: 16px; }

/* ---------- Dev role switcher ---------- */
.dev-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #1a1a1a; color: #fff; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 12px; font-size: 11px;
}
.dev-bar .tag { color: #f1c8c8; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 9.5px; }
.dev-bar select { width: auto; flex: 1; background: #2a2a2a; color: #fff; border-color: #3a3a3a; font-size: 11px; }

/* ---------- Document overlay (квитанция / справка) ---------- */
.doc-ov { position: fixed; inset: 0; z-index: 1200; background: #f5f3ee; display: flex; flex-direction: column; }
.doc-ov-bar {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.doc-ov-bar .btn-ghost, .doc-ov-bar .dc-print { width: auto; flex: 1; padding: 9px; }
.doc-ov-bar .dc-print { display: flex; align-items: center; justify-content: center; gap: 6px; }
.doc-ov iframe { flex: 1; width: 100%; border: none; background: #f5f3ee; }

/* ---------- Напоминания (F1) ---------- */
.next-card { background: #0a0a0a; color: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.next-card .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.next-card .when { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; margin: 6px 0 4px; }
.next-card .where { font-size: 12px; color: rgba(255,255,255,0.7); }
.next-card .countdown { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; margin-top: 12px; display: flex; justify-content: space-around; text-align: center; }
.next-card .countdown .v { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.next-card .countdown .k { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.1em; }
.next-card .nbtn { width: 100%; margin-top: 12px; background: #c8221f; color: #fff; border: none; padding: 9px; border-radius: 9px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; }
.next-card .nbtn.ghost { background: rgba(255,255,255,0.12); }

.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .l { font-size: 12.5px; font-weight: 500; }
.toggle-row .sub { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.toggle { width: 36px; height: 20px; border-radius: 99px; background: rgba(0,0,0,0.12); position: relative; cursor: pointer; transition: background 0.15s; flex: 0 0 36px; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.toggle.on { background: #1f6b3a; }
.toggle.on::after { left: 18px; }

/* ---------- Расписание / запись (F2) ---------- */
.day-block { margin-bottom: 16px; }
.day-head { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.day-head .date { font-size: 11px; color: #6b6862; font-family: 'Public Sans', sans-serif; }
.day-head.today { color: #c8221f; }
.session { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 11px; padding: 11px 12px; display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.session.booked { border-left: 3px solid #1f6b3a; }
.session.full, .session.canceled { opacity: 0.55; }
.session .time { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; flex: 0 0 56px; }
.session .info { flex: 1; }
.session .info .nm { font-size: 12.5px; font-weight: 500; }
.session .info .sub { font-size: 10.5px; color: #6b6862; margin-top: 2px; }
.session .act { padding: 6px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; border: 1px solid rgba(0,0,0,0.12); background: transparent; color: #0a0a0a; cursor: pointer; font-family: inherit; width: auto; flex: 0 0 auto; white-space: nowrap; }
.session.booked .act { background: rgba(31,107,58,0.12); color: #1f6b3a; border-color: rgba(31,107,58,0.25); }
.session.full .act, .session.canceled .act { background: rgba(0,0,0,0.04); color: #6b6862; border-color: rgba(0,0,0,0.08); cursor: not-allowed; }

.booked-list { display: flex; flex-direction: column; }
.booked-list .br { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 12.5px; }
.booked-list .br:last-child { border-bottom: none; }
.booked-list .br .meta { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.pill-mini { font-size: 10px; padding: 2px 7px; border-radius: 99px; background: rgba(31,107,58,0.12); color: #1f6b3a; font-weight: 600; white-space: nowrap; }
.pill-mini.no { background: rgba(184,101,27,0.14); color: #b8651b; }

/* мини-редактор расписания у тренера */
.slot-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 12.5px; }
.slot-row:last-child { border-bottom: none; }
.slot-row .del { color: #c8221f; cursor: pointer; font-size: 15px; flex: 0 0 auto; }

/* ---------- F7/F8: карточка ученика, списки, шторки ---------- */
.screen-ov {
  position: fixed; inset: 0; z-index: 1150; background: #f5f3ee; overflow-y: auto;
}
.screen-ov .inner { max-width: 460px; margin: 0 auto; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
.backbar { display: flex; align-items: center; gap: 6px; color: #6b6862; font-size: 13px; cursor: pointer; padding: 2px 0 8px; }
.backbar .ic { font-size: 18px; }

/* тёмная сводка-полоса */
.summary-bar { background: #0a0a0a; color: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; }
.summary-bar .icn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; flex: 0 0 36px; }
.summary-bar .icn .ic { font-size: 20px; }
.summary-bar .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.summary-bar .v { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin-top: 1px; }
.summary-bar .lead { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* быстрые действия в карточке */
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.card-actions button { font-size: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* выбор периода */
.period-pick { display: flex; gap: 6px; margin-bottom: 10px; }
.period-pick .p { flex: 1; text-align: center; padding: 7px; font-size: 11px; font-weight: 500; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; color: #6b6862; cursor: pointer; }
.period-pick .p.on { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

/* таймлайн */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: rgba(0,0,0,0.08); }
.tl-item { position: relative; padding: 7px 0; font-size: 12px; }
.tl-item::before { content: ''; position: absolute; left: -19px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #c8221f; border: 2px solid #fff; outline: 1px solid #c8221f; }
.tl-item.miss::before { background: #f1c8c8; outline-color: #f1c8c8; }
.tl-item.event::before { background: #b8651b; outline-color: #b8651b; }
.tl-item.pay::before { background: #1f6b3a; outline-color: #1f6b3a; }
.tl-date { font-size: 10.5px; color: #6b6862; margin-bottom: 2px; }
.tl-text { font-weight: 500; }
.tl-text .acc { color: #1f6b3a; }

/* строка детального списка */
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); gap: 10px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .info { flex: 1; min-width: 0; cursor: pointer; }
.detail-row .name { font-size: 12.5px; font-weight: 500; }
.detail-row .meta { font-size: 10.5px; color: #6b6862; margin-top: 2px; }
.detail-row .right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.1); display: grid; place-items: center; color: #0a0a0a; cursor: pointer; }
.icon-btn.brand { background: #c8221f; color: #fff; border-color: #c8221f; }

/* шторка: причины-чекбоксы */
.reason-list { display: grid; gap: 6px; }
.reason-opt { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.reason-opt.on { border-color: #0a0a0a; background: rgba(0,0,0,0.02); }
.reason-opt .ck { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(0,0,0,0.25); display: grid; place-items: center; flex: 0 0 16px; }
.reason-opt.on .ck { background: #0a0a0a; border-color: #0a0a0a; }
.reason-opt.on .ck::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

/* поля в шторке */
.field-group { margin-bottom: 12px; }
.field-group label { font-size: 10.5px; color: #6b6862; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 4px; }
.field-group input, .field-group select, .field-group textarea { width: 100%; padding: 9px 11px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: #fff; font-family: inherit; font-size: 13px; color: #0a0a0a; }
.field-group textarea { min-height: 64px; resize: vertical; line-height: 1.4; }

.freeze-calc { background: rgba(31,107,58,0.08); border: 1px solid rgba(31,107,58,0.2); border-radius: 10px; padding: 10px 12px; margin-top: 4px; display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.freeze-calc .when { font-family: 'Fraunces', serif; font-size: 14px; color: #1f6b3a; font-weight: 600; }
.refund-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 12.5px; }
.refund-row:last-child { border-bottom: none; }
.refund-row .v { font-family: 'Fraunces', serif; font-weight: 600; }

/* кнопки действий в шторке */
.sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
.sheet-actions button { flex: 1; }

/* ---------- F3/F6: объявления, фильтры, экспорт ---------- */
.audience { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.aud-opt { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid rgba(0,0,0,0.08); border-radius: 9px; cursor: pointer; font-size: 12.5px; }
.aud-opt.on { border-color: #0a0a0a; background: rgba(0,0,0,0.02); }
.aud-opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.25); flex: 0 0 16px; display: grid; place-items: center; }
.aud-opt.on .radio { border-color: #0a0a0a; }
.aud-opt.on .radio::after { content: ''; width: 7px; height: 7px; background: #0a0a0a; border-radius: 50%; }
.aud-opt .meta { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.ann-text { width: 100%; min-height: 110px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 13px; line-height: 1.4; box-sizing: border-box; background: #fff; resize: vertical; }

.filter-row { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.filter-chip { padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 500; background: #fff; border: 1px solid rgba(0,0,0,0.1); color: #6b6862; white-space: nowrap; cursor: pointer; }
.filter-chip.on { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.since { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 500; color: #c8221f; }
.since.amber { color: #b8651b; }
.since.ok { color: #1f6b3a; }

.export-opt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 9px; cursor: pointer; margin-bottom: 8px; }
.export-opt:last-child { margin-bottom: 0; }
.export-opt .icn-w { width: 32px; height: 32px; border-radius: 8px; background: rgba(31,107,58,0.1); color: #1f6b3a; display: grid; place-items: center; flex: 0 0 32px; }
.export-opt .icn-w.amber { background: rgba(184,101,27,0.12); color: #b8651b; }
.export-opt .icn-w.brand { background: rgba(200,34,31,0.1); color: #c8221f; }
.export-opt .nm { font-size: 12.5px; font-weight: 500; }
.export-opt .sub { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.export-opt > .ic { color: #6b6862; font-size: 16px; }

/* ---------- F5: пояса и аттестации ---------- */
.belt-now { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 14px; margin-bottom: 12px; text-align: center; }
.belt-now .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6862; }
.belt-now .name { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; margin: 6px 0 4px; letter-spacing: -0.01em; }
.belt-now .since { font-size: 11px; color: #6b6862; }
.belt-visual { margin: 16px 0 4px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.12); position: relative; }
.belt-visual .stripe { position: absolute; right: 12%; top: 4px; bottom: 4px; width: 4px; background: #c8221f; border-radius: 1px; }
.prog-labels { display: flex; gap: 2px; font-size: 9px; color: #6b6862; margin-bottom: 4px; }
.prog-labels span { flex: 1; text-align: center; }
.prog-labels span.now { color: #c8221f; font-weight: 600; }
.progression { display: flex; gap: 2px; margin: 4px 0 4px; }
.prog-step { flex: 1; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,0.08); }
.prog-step.now { outline: 2px solid #c8221f; outline-offset: 2px; }
.attest-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 12px; }
.attest-row:last-child { border-bottom: none; }
.attest-row .when { font-size: 10.5px; color: #6b6862; margin-top: 2px; }
.belt-chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; border: 1px solid rgba(0,0,0,0.12); }
.attest-event { background: #0a0a0a; color: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.attest-event .ttl { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin-bottom: 2px; }
.attest-event .when { color: rgba(255,255,255,0.65); font-size: 11.5px; }
.attest-event .stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.attest-event .stats .v { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; }
.attest-event .stats .k { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.judge-row { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.judge-row:last-child { border-bottom: none; }
.judge-row .top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.judge-row .nm { font-weight: 500; }
.judge-row .jmeta { font-size: 10.5px; color: #6b6862; margin-top: 1px; }
.judge-row .ctrls { display: flex; gap: 4px; margin-top: 7px; }
.judge-row .ctrls button { padding: 5px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 600; border: 1px solid rgba(0,0,0,0.12); background: #fff; color: #6b6862; cursor: pointer; flex: 1; width: auto; }
.judge-row .ctrls button.pass { background: #1f6b3a; color: #fff; border-color: #1f6b3a; }
.judge-row .ctrls button.fail { background: #fff; color: #c8221f; border-color: rgba(200,34,31,0.3); }

/* ---------- Админ-панель ---------- */
.admin-bar { display: flex; align-items: center; gap: 10px; background: #0a0a0a; color: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.admin-bar .ab-back { background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 7px; padding: 6px 10px; font-size: 11px; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.admin-bar .ab-back .ic { font-size: 14px; }
.admin-bar .ab-name { font-size: 11px; color: rgba(255,255,255,0.82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi-n { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.kpi-l { font-size: 10.5px; color: #6b6862; margin-top: 3px; }
.adm-h { font-family: 'Fraunces', Georgia, serif; font-size: 16px; font-weight: 600; margin: 18px 2px 8px; }
.coach-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.06); cursor: pointer; }
.coach-row:last-child { border-bottom: none; padding-bottom: 0; }
.coach-name { font-weight: 600; font-size: 13px; }
.coach-go .ic { font-size: 18px; color: #9a968e; flex: 0 0 auto; }
