/* Экран «Ученики» — по стайлгайду Quillon v4 (quillon-site/public/v4/styleguide.html),
 * светлая тема: тёплые off-white поверхности, hairline-границы вместо теней,
 * один акцент (индиго #5E6AD2), радиусы 8/12, Inter 510, моно для цифр и меток.
 * Всё под .st, чтобы не задеть остальной дашборд. */
.st {
  --q-bg-0: #FCFCFD; --q-bg-1: #F7F7F8; --q-bg-2: #F0F0F2; --q-bg-3: #E7E7EA;
  --q-line: rgba(0,0,0,.07); --q-line-soft: rgba(0,0,0,.04); --q-line-strong: rgba(0,0,0,.12); --q-line-hover: rgba(0,0,0,.18);
  --q-text-hi: #08090A; --q-text-mid: #52525B; --q-text-low: #71717A; --q-text-dim: #A1A1AA;
  --q-accent: #5E6AD2; --q-accent-hover: #4C58BE; --q-accent-soft: #E8EAFA;
  --q-ok: #16A34A; --q-warn: #CA8A04; --q-err: #DC2626;
  --q-font-sans: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --q-font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --q-fw: 510;
  font-family: var(--q-font-sans); color: var(--q-text-hi);
  background: var(--q-bg-0); min-height: 100%;
}
.st *, .st *::before, .st *::after { box-sizing: border-box; }
.st-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 24px; }
.st-eyebrow { font-family: var(--q-font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--q-text-low); }
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.st-head h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.1; font-weight: var(--q-fw); letter-spacing: -.02em; }
.st-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--q-text-mid); max-width: 64ch; }
.st-seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--q-line); border-radius: 9999px; background: var(--q-bg-1); }
.st-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9999px; font: inherit; font-size: 13px; font-weight: 500; color: var(--q-text-mid); cursor: pointer; }
.st-seg button[aria-pressed="true"] { background: #fff; color: var(--q-text-hi); box-shadow: 0 0 0 1px var(--q-line-strong); }
.st-seg .n { font-family: var(--q-font-mono); font-size: 12px; color: var(--q-text-low); margin-left: 4px; }

.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .st-stats { grid-template-columns: 1fr; } }
.st-stat { background: #fff; border: 1px solid var(--q-line); border-radius: 12px; padding: 16px 20px; }
.st-stat .v { margin-top: 8px; font-size: 28px; font-weight: var(--q-fw); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-stat .s { margin-top: 2px; font-size: 13px; color: var(--q-text-low); }
.st-stat.is-err { border-color: rgba(220,38,38,.25); background: #FEF7F7; }
.st-stat.is-err .v { color: var(--q-err); }

.st-table { background: #fff; border: 1px solid var(--q-line); border-radius: 12px; overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; padding: 12px 16px; font-family: var(--q-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--q-text-low); border-bottom: 1px solid var(--q-line); white-space: nowrap; }
.st-table td { padding: 14px 16px; border-bottom: 1px solid var(--q-line-soft); vertical-align: top; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover { background: var(--q-bg-1); }
.st-name { font-weight: var(--q-fw); }
.st-meta { margin-top: 3px; font-size: 13px; color: var(--q-text-low); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.st-meta a { color: var(--q-text-low); text-decoration: none; border-bottom: 1px solid var(--q-line-strong); }
.st-meta a:hover { color: var(--q-accent); border-color: var(--q-accent); }
.st-mono { font-family: var(--q-font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.st-low { color: var(--q-text-low); font-size: 13px; }
.st-dim { color: var(--q-text-dim); font-size: 13px; }

.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; border: 1px solid var(--q-line-strong); color: var(--q-text-mid); background: #fff; }
.st-chip--accent { background: var(--q-accent-soft); color: #3A4399; border-color: rgba(94,106,210,.3); }
.st-chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--q-text-dim); }
.st-chip--ok::before { background: var(--q-ok); }
.st-chip--err { color: var(--q-err); border-color: rgba(220,38,38,.3); background: #FEF7F7; }
.st-chip--err::before { background: var(--q-err); }

.st-prog { display: flex; gap: 3px; margin-top: 8px; }
.st-prog i { width: 22px; height: 4px; border-radius: 2px; background: var(--q-bg-3); }
.st-prog i.on { background: var(--q-accent); }
.st-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: var(--q-fw); line-height: 1; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.st-btn--sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.st-btn--primary { background: var(--q-accent); color: #fff; box-shadow: 0 0 0 1px rgba(94,106,210,.5), 0 1px 0 0 rgba(255,255,255,.1) inset; }
.st-btn--primary:hover { background: var(--q-accent-hover); }
.st-btn--ghost { background: transparent; color: var(--q-text-hi); border-color: var(--q-line-strong); }
.st-btn--ghost:hover { background: var(--q-bg-2); border-color: var(--q-line-hover); }
.st-btn--link { background: none; border: 0; padding: 0; font-size: 13px; color: var(--q-accent); }
.st-btn--link:hover { color: var(--q-accent-hover); text-decoration: underline; }
.st-btn[disabled] { opacity: .5; cursor: not-allowed; }
.st-btn:focus-visible, .st-input:focus-visible, .st-seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(94,106,210,.25); }

.st-input { display: block; width: 100%; padding: 9px 12px; background: #fff; color: var(--q-text-hi); font: inherit; font-size: 14px; border: 1px solid var(--q-line-strong); border-radius: 8px; outline: none; }
.st-input:focus { border-color: var(--q-accent); box-shadow: 0 0 0 3px rgba(94,106,210,.2); }
.st-input.is-err { border-color: var(--q-err); }
.st-field { display: flex; flex-direction: column; gap: 6px; }
.st-field label { font-size: 13px; font-weight: 500; color: var(--q-text-mid); }
.st-field .hint { font-size: 12px; color: var(--q-text-low); }
.st-field .err { font-size: 12px; color: var(--q-err); min-height: 0; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .st-grid2 { grid-template-columns: 1fr; } }

.st-dialog { border: 0; padding: 0; border-radius: 16px; width: min(560px, 94vw); background: var(--q-bg-0); color: var(--q-text-hi); box-shadow: 0 0 0 1px var(--q-line-strong), 0 24px 48px -20px rgba(0,0,0,.25); font-family: var(--q-font-sans); }
.st-dialog::backdrop { background: rgba(8,9,10,.35); }
.st-dialog form { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.st-dialog h2 { margin: 4px 0 0; font-size: 20px; font-weight: var(--q-fw); letter-spacing: -.01em; }
.st-dialog .foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.st-note { font-size: 13px; color: var(--q-text-mid); background: var(--q-bg-1); border: 1px solid var(--q-line); border-radius: 8px; padding: 10px 12px; }
.st-sched { border: 1px solid var(--q-line); border-radius: 12px; }
.st-sched div { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--q-line-soft); }
.st-sched div:last-child { border-bottom: 0; }
.st-sched .n { width: 18px; color: var(--q-text-low); font-family: var(--q-font-mono); font-size: 12px; }
.st-sched .paid { color: var(--q-text-low); text-decoration: line-through; }
.st-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.st-switch input { width: 34px; height: 20px; appearance: none; border-radius: 9999px; background: var(--q-bg-3); position: relative; cursor: pointer; transition: background .12s; flex: none; }
.st-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .12s; }
.st-switch input:checked { background: var(--q-accent); }
.st-switch input:checked::after { transform: translateX(14px); }
.st-switch input:disabled { opacity: .5; cursor: not-allowed; }
.st-empty { padding: 40px 16px; text-align: center; color: var(--q-text-low); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .st * { transition: none !important; } }
.st-dialog.st { min-height: 0; }
.st-pay { display: flex; flex-direction: column; gap: 6px; }
.st-pay .st-prog { margin-top: 0; }
.st-acts { display: flex; justify-content: flex-end; gap: 6px; }
.st-table td:first-child { min-width: 200px; }
.st-table td:nth-child(2) { min-width: 170px; }
.st-table td:nth-child(4) { white-space: nowrap; }
.st-more { margin-top: 16px; }
.st-more > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; padding: 10px 2px; }
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary::after { content: "▸"; color: var(--q-text-low); font-size: 12px; }
.st-more[open] > summary::after { content: "▾"; }
.st-more .st-chip--dot::before { background: var(--q-warn); }
.st-plan { display: flex; flex-direction: column; gap: 4px; min-width: 380px; }
.st-plan-row { display: grid; grid-template-columns: 12px 90px 84px 1fr auto; align-items: center; gap: 10px; min-height: 30px; }
.st-plan-row .n { color: var(--q-text-low); font-size: 12px; }
.st-plan-row .a { color: var(--q-text-mid); }
.st-plan-row.is-paid .d, .st-plan-row.is-paid .a { color: var(--q-text-low); }
.st-plan-row .b { justify-self: end; }
.st-chip--next { color: #3A4399; border-color: rgba(94,106,210,.35); background: var(--q-accent-soft); }
.st-chip--next::before { background: var(--q-accent); }
.st-undo { color: var(--q-text-low); font-size: 12px; }
.st-plan > .st-low { margin-top: 4px; }
