/* =========================================================================
   Общие элементы: плашка «Скопировано», окно приглашения ученика
   ========================================================================= */

/* --- Плашка внизу экрана --- */
#mini-toast-box {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 3000000; display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.mini-toast {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(13, 15, 31, .96); color: #fff;
  border: 1.5px solid rgba(52, 211, 153, .55);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 28px rgba(16,185,129,.25);
  font-family: 'Onest', sans-serif;
  transform: translateY(16px) scale(.96); opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s;
}
.mini-toast.show { transform: none; opacity: 1; }
.mini-toast-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10b981, #22d3ee); color: #fff;
  box-shadow: 0 0 14px rgba(16,185,129,.6);
}
.mini-toast-icon svg { width: 18px; height: 18px; stroke-width: 3; }
.mini-toast-text { display: flex; flex-direction: column; line-height: 1.25; }
.mini-toast-text b { font-size: 13.5px; font-weight: 900; letter-spacing: .01em; }
.mini-toast-text small { font-size: 11.5px; font-weight: 600; color: #94a3b8; }
.mini-toast.is-error { border-color: rgba(244,63,94,.55); box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 28px rgba(244,63,94,.25); }
.mini-toast.is-error .mini-toast-icon { background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 0 14px rgba(244,63,94,.6); }
body.light .mini-toast { background: #ffffff; color: #0f172a; box-shadow: 0 12px 40px rgba(15,23,42,.14), 0 0 24px rgba(16,185,129,.18); }
body.light .mini-toast-text small { color: #64748b; }

/* --- Окно «Пригласить ученика» --- */
.invite-panel {
  position: fixed; top: 64px; right: 16px; z-index: 2500000;
  width: 380px; max-width: calc(100vw - 32px);
  background: #0d0f1f; border: 2px solid rgba(99,102,241,.6); border-radius: 1.75rem;
  padding: 18px; font-family: 'Onest', sans-serif; color: #cbd5e1;
  box-shadow: 0 25px 70px rgba(0,0,0,.75), 0 0 50px rgba(99,102,241,.3);
  transform: translateY(-8px) scale(.97); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s, visibility .3s;
}
.invite-panel.open { transform: none; opacity: 1; visibility: visible; }
.invite-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invite-title { font-size: 15px; font-weight: 900; color: #fff; }
.invite-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.invite-copied {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  color: #34d399; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4);
  transition: opacity .2s, transform .3s cubic-bezier(.16,1,.3,1);
}
.invite-copied svg { width: 13px; height: 13px; stroke-width: 3; }
.invite-copied.hide { opacity: 0; transform: scale(.85); }
.invite-copied.pulse { animation: invitePulse .5s ease; }
@keyframes invitePulse { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.invite-link {
  margin-top: 14px; display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px; border-radius: 1rem;
  background: #0a0a0f; border: 1px solid rgba(255,255,255,.14);
}
.invite-link input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #e2e8f0; font-size: 12.5px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.invite-copy-btn {
  height: 36px; padding: 0 14px; border-radius: .8rem; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #fff;
  background: linear-gradient(#4B55E8,#4B55E8); box-shadow: 0 0 16px rgba(99,102,241,.4);
  transition: transform .15s;
}
.invite-copy-btn:active { transform: scale(.96); }
.invite-copy-btn svg { width: 15px; height: 15px; }
.invite-share { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.invite-share a {
  height: 38px; border-radius: .9rem; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: #e2e8f0; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .2s;
}
.invite-share a:hover { background: rgba(99,102,241,.18); border-color: rgba(129,140,248,.5); color: #fff; }
.invite-share svg { width: 15px; height: 15px; }
.invite-note { margin-top: 12px; font-size: 11.5px; color: #64748b; display: flex; gap: 6px; align-items: flex-start; }
.invite-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #818cf8; }
.invite-close { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.invite-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.invite-close svg { width: 18px; height: 18px; }

body.light .invite-panel { background: #fff; box-shadow: 0 20px 60px rgba(99,102,241,.2); color: #334155; }
body.light .invite-title { color: #0f172a; }
body.light .invite-sub, body.light .invite-note { color: #64748b; }
body.light .invite-link { background: #f8fafc; border-color: #e2e8f0; }
body.light .invite-link input { color: #0f172a; }
body.light .invite-share a { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
body.light .invite-share a:hover { background: #eef2ff; color: #4338ca; }
body.light .invite-close:hover { background: #f1f5f9; color: #0f172a; }

/* --- Поле для 6-значного кода из письма --- */
.code-boxes { display: flex; gap: 8px; justify-content: center; }
.code-boxes input {
  width: 48px; height: 58px; border-radius: 14px; text-align: center;
  font-size: 26px; font-weight: 900; font-family: 'Onest', sans-serif;
  background: var(--input, #0a0a0f); color: var(--strong, #fff);
  border: 1.5px solid var(--line2, rgba(255,255,255,.15)); outline: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.code-boxes input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px); }
.code-boxes input.filled { border-color: rgba(129,140,248,.7); }
.code-boxes.error input { border-color: #f43f5e; animation: codeShake .35s; }
@keyframes codeShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 400px) { .code-boxes { gap: 5px; } .code-boxes input { width: 40px; height: 50px; font-size: 22px; } }
.link-btn { color: var(--accent, #818cf8); font-weight: 800; font-size: 13px; background: none; border: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { color: var(--dim, #64748b); cursor: default; text-decoration: none; }
body.mb-page #mini-toast-box { bottom: 100px; }

/* Сводка по ученикам (кабинет) */
.ov-card { padding: 24px; }
.ov-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-titlebox { display: flex; align-items: center; gap: 14px; }
.ov-ic { width: 46px; height: 46px; border-radius: 14px; }
.ov-h2 { margin-top: 2px; font-size: 24px; font-weight: 900; color: var(--strong); line-height: 1.15; }
.ov-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(15,23,42,.05); border: 1px solid var(--line); }
.ov-tab { height: 34px; padding: 0 16px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: var(--muted); transition: all .15s; }
.ov-tab:hover { color: var(--strong); }
.ov-tab.on { color: #fff; background: linear-gradient(#4B55E8,#4B55E8); box-shadow: 0 4px 14px rgba(99,102,241,.35); }
.ov-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ov-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--line); }
.ov-tile-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6366f1; background: rgba(99,102,241,.1); }
.ov-tile.cyan .ov-tile-ic { color: #0891b2; background: rgba(6,182,212,.1); }
.ov-tile.amber .ov-tile-ic { color: #d97706; background: rgba(245,158,11,.12); }
.ov-tile.rose .ov-tile-ic { color: #e11d48; background: rgba(244,63,94,.1); }
.ov-tile.emerald .ov-tile-ic { color: #059669; background: rgba(16,185,129,.1); }
.ov-tile-v { font-size: 24px; font-weight: 900; color: var(--strong); line-height: 1.05; }
.ov-tile-v small, .ov-metric b small { font-size: 14px; font-weight: 800; color: var(--dim); }
.ov-tile-l { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.ov-tile.rose .ov-tile-v { color: #e11d48; }
.ov-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ov-row { display: grid; grid-template-columns: 44px minmax(150px, 1.3fr) 76px 84px minmax(0, 2.2fr) 76px auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.ov-row:hover { border-color: rgba(129,140,248,.45); box-shadow: 0 6px 22px rgba(99,102,241,.1); }
.ov-ava { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; box-shadow: 0 6px 14px rgba(99,102,241,.25); }
.ov-name { min-width: 0; }
.ov-name > a { display: block; font-weight: 900; font-size: 15px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-name > a:hover { color: #6366f1; }
.ov-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.ov-sub span { display: inline-flex; align-items: center; gap: 4px; }
.ov-mob { display: none !important; }
.ov-exam { padding: 1px 7px; border-radius: 7px; font-size: 10.5px; font-weight: 900; color: #4f46e5; background: rgba(99,102,241,.1); }
.ov-warn { color: #e11d48 !important; font-weight: 800; }
.ov-metric { display: flex; flex-direction: column; }
.ov-metric b { font-size: 20px; font-weight: 900; color: var(--strong); line-height: 1.1; }
.ov-metric span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ov-metric em { font-style: normal; font-weight: 900; }
.ov-metric em.g { color: #059669; } .ov-metric em.m { color: #d97706; } .ov-metric em.b { color: #e11d48; }
.ov-muted { color: var(--dim) !important; font-weight: 700 !important; }
.ov-score { background: linear-gradient(#4B55E8,#4B55E8); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.ov-none { font-size: 12px; color: var(--dim); }
.ov-weak { width: 100%; display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: #e11d48; margin-top: 2px; }
.ov-k { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 8px; font-size: 11px; font-weight: 900; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; }
.ov-k.m-full { color: #047857; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); }
.ov-k.m-mostly { color: #b45309; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.ov-k.m-repeat { color: #be123c; background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.35); }
.ov-k.now { box-shadow: 0 0 0 2px rgba(99,102,241,.3); }
.ov-act { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ov-done { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: #059669; white-space: nowrap; }
.ov-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; font-size: 12px; font-weight: 800; color: #4f46e5; background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25); white-space: nowrap; transition: all .15s; }
.ov-btn:hover { color: #fff; background: linear-gradient(#4B55E8,#4B55E8); border-color: transparent; }
.ov-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ov-legend-note { color: var(--dim); font-weight: 600; }
.ov-dot { width: 10px; height: 10px; border-radius: 4px; background: #e2e8f0; border: 1px solid #cbd5e1; }
.ov-dot.m-full { background: #34d399; border-color: #10b981; } .ov-dot.m-mostly { background: #fcd34d; border-color: #f59e0b; } .ov-dot.m-repeat { background: #fda4af; border-color: #f43f5e; }
.ov-empty { padding: 22px; border-radius: 20px; border: 1.5px dashed rgba(129,140,248,.4); background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(168,85,247,.05)); }
.ov-empty-h { font-size: 16px; font-weight: 900; color: var(--strong); }
.ov-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ov-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); color: #6366f1; }
.ov-step > div { display: flex; flex-direction: column; }
.ov-step b { font-size: 13.5px; font-weight: 900; color: var(--strong); }
.ov-step span:not(.ov-step-n) { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.ov-step-n { position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(#4B55E8,#4B55E8); }
body:not(.light) .ov-tabs { background: rgba(0,0,0,.3); }
body:not(.light) .ov-tile, body:not(.light) .ov-row, body:not(.light) .ov-step { background: rgba(15,17,35,.7); border-color: rgba(255,255,255,.08); }
body:not(.light) .ov-k { color: #cbd5e1; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body:not(.light) .ov-k.m-full { color: #34d399; } body:not(.light) .ov-k.m-mostly { color: #fbbf24; } body:not(.light) .ov-k.m-repeat { color: #fb7185; }
body:not(.light) .ov-exam { color: #c7d2fe; background: rgba(99,102,241,.2); }
body:not(.light) .ov-btn { color: #c7d2fe; background: rgba(99,102,241,.15); border-color: rgba(129,140,248,.3); }
body:not(.light) .ov-dot:not(.m-full):not(.m-mostly):not(.m-repeat) { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }
body:not(.light) .ov-tile.rose .ov-tile-v, body:not(.light) .ov-warn, body:not(.light) .ov-weak { color: #fb7185 !important; }
body:not(.light) .ov-metric em.g { color: #34d399; } body:not(.light) .ov-metric em.m { color: #fbbf24; } body:not(.light) .ov-metric em.b { color: #fb7185; }
@media (max-width: 1100px) {
  .ov-row { grid-template-columns: 44px minmax(0, 1fr) 70px 76px 70px; }
  .ov-chips { grid-column: 2 / -1; }
  .ov-act { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .ov-card { padding: 18px 14px; }
  .ov-totals { grid-template-columns: 1fr 1fr; }
  .ov-tile { padding: 12px; }
  .ov-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .ov-ava { width: 40px; height: 40px; }
  .ov-metric { display: none; }
  .ov-mob { display: inline-flex !important; }
  .ov-metric.ov-fc { display: flex; text-align: right; align-items: flex-end; grid-row: 1; grid-column: 3; }
  .ov-metric.ov-fc.is-empty { display: none; }
  .ov-chips, .ov-act { grid-column: 1 / -1; }
  .ov-steps { grid-template-columns: 1fr; }
}

/* Последние сдачи ДЗ в кабинете */
.ov-hw { margin-top: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(245,158,11,.07), rgba(249,115,22,.05)); border: 1px solid rgba(245,158,11,.28); }
.ov-hw-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #d97706; }
.ov-hw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-top: 10px; }
.ov-hwi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.ov-hwi:hover { border-color: rgba(245,158,11,.6); transform: translateY(-1px); }
.ov-hwi-score { flex-shrink: 0; min-width: 48px; height: 40px; padding: 0 8px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; }
.ov-hwi-score.g { background: linear-gradient(135deg, #10b981, #34d399); } .ov-hwi-score.m { background: linear-gradient(135deg, #f59e0b, #fbbf24); } .ov-hwi-score.b { background: linear-gradient(135deg, #f43f5e, #fb7185); } .ov-hwi-score.w { background: linear-gradient(#4B55E8,#4B55E8); }
.ov-hwi-main { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-hwi-main b { color: var(--strong); }
.ov-hwi-main small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ov-hwi-main em { font-style: normal; font-weight: 800; color: #d97706; }
.ov-hwi-go { color: var(--dim); flex-shrink: 0; }
.ov-metric-link { border-radius: 10px; padding: 2px 6px; margin: -2px -6px; transition: background .15s; }
.ov-metric-link:hover { background: rgba(245,158,11,.1); }
.ov-btn-hw { color: #b45309 !important; background: rgba(245,158,11,.1) !important; border-color: rgba(245,158,11,.35) !important; }
.ov-btn-hw:hover { color: #fff !important; background: linear-gradient(135deg, #f59e0b, #f97316) !important; }
body:not(.light) .ov-hwi { background: rgba(15,17,35,.7); border-color: rgba(255,255,255,.08); }
body:not(.light) .ov-btn-hw { color: #fcd34d !important; }

/* ===== Выпадающие списки и календарь в стиле сайта (ui-kit.js) ===== */
.mb-nice-hidden { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mb-dd { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer;
  color: #0f172a; background: #fff; border: 1px solid #cbd5e1; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.mb-dd:hover { border-color: #a5b4fc; }
.mb-dd.open { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.mb-dd-v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-dd-v.ph { color: #94a3b8; font-weight: 600; }
.mb-dd-ch { flex-shrink: 0; color: #6366f1; transition: transform .15s; }
.mb-dd.open .mb-dd-ch { transform: rotate(180deg); }
.mb-dd-ic { flex-shrink: 0; color: #6366f1; }
body:not(.light) .mb-dd { color: #fff; background: #0a0a0f; border-color: rgba(255,255,255,.14); }
body:not(.light) .mb-dd-ch, body:not(.light) .mb-dd-ic { color: #a5b4fc; }

.mb-pop { position: fixed; z-index: 2147483000; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 18px 50px rgba(15,23,42,.18), 0 2px 8px rgba(15,23,42,.06); font-family: 'Onest', sans-serif; animation: mbPopIn .14s ease; }
@keyframes mbPopIn { from { opacity: 0; transform: translateY(-4px); } }
body:not(.light) .mb-pop { background: #121426; border-color: rgba(129,140,248,.3); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.mb-dd-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; max-width: min(460px, calc(100vw - 16px)); }
.mb-dd-opt { text-align: left; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-dd-opt:hover { background: #eef2ff; color: #4338ca; }
.mb-dd-opt.on { color: #fff; background: linear-gradient(#4B55E8,#4B55E8); }
body:not(.light) .mb-dd-opt { color: #cbd5e1; }
body:not(.light) .mb-dd-opt:hover { background: rgba(99,102,241,.18); color: #fff; }

.mb-cal { width: 304px; padding: 12px; }
.mb-cal-quick { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.mb-cal-q { height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; }
.mb-cal-q:hover { color: #fff; background: linear-gradient(#4B55E8,#4B55E8); border-color: transparent; }
.mb-cal-q.none { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }
.mb-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.mb-cal-head b { font-size: 14.5px; font-weight: 900; color: #0f172a; }
.mb-cal-nav { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; font-weight: 700; line-height: 1; color: #6366f1; }
.mb-cal-nav:hover { background: #eef2ff; }
.mb-cal-wd, .mb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mb-cal-wd span { text-align: center; font-size: 10.5px; font-weight: 900; text-transform: uppercase; color: #94a3b8; padding: 4px 0; }
.mb-cal-d { height: 36px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #334155; }
.mb-cal-d.we { color: #e11d48; }
.mb-cal-d:hover:not(:disabled) { background: #eef2ff; color: #4338ca; }
.mb-cal-d.today { box-shadow: inset 0 0 0 1.5px #a5b4fc; }
.mb-cal-d.on { color: #fff !important; background: linear-gradient(#4B55E8,#4B55E8); }
.mb-cal-d:disabled { color: #cbd5e1; cursor: default; }
body:not(.light) .mb-cal-quick { border-color: rgba(255,255,255,.1); }
body:not(.light) .mb-cal-q { color: #c7d2fe; background: rgba(99,102,241,.15); border-color: rgba(129,140,248,.3); }
body:not(.light) .mb-cal-q.none { color: #94a3b8; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
body:not(.light) .mb-cal-head b { color: #fff; }
body:not(.light) .mb-cal-d { color: #e2e8f0; }
body:not(.light) .mb-cal-d.we { color: #fb7185; }
body:not(.light) .mb-cal-d:hover:not(:disabled) { background: rgba(99,102,241,.2); color: #fff; }
body:not(.light) .mb-cal-d:disabled { color: #475569; }
/* Защита от общих правил кнопок доски */
.mb-pop .mb-dd-opt { flex-shrink: 0; min-height: 38px; line-height: 1.35; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.mb-pop .mb-dd-opt:hover { background: #eef2ff !important; color: #4338ca !important; }
.mb-pop .mb-dd-opt.on { color: #fff !important; background: linear-gradient(#4B55E8,#4B55E8) !important; }
body:not(.light) .mb-pop .mb-dd-opt:hover { background: rgba(99,102,241,.18) !important; color: #fff !important; }
.mb-pop .mb-cal-d, .mb-pop .mb-cal-nav { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.mb-pop .mb-cal-d:hover:not(:disabled), .mb-pop .mb-cal-nav:hover { background: #eef2ff !important; }
body:not(.light) .mb-pop .mb-cal-d:hover:not(:disabled), body:not(.light) .mb-pop .mb-cal-nav:hover { background: rgba(99,102,241,.2) !important; }
.mb-pop .mb-cal-d.today { box-shadow: inset 0 0 0 1.5px #a5b4fc !important; }
.mb-pop .mb-cal-d.on { color: #fff !important; background: linear-gradient(#4B55E8,#4B55E8) !important; }
.mb-pop .mb-cal-d:disabled { color: #cbd5e1 !important; opacity: 1 !important; }
body:not(.light) .mb-pop .mb-cal-d:disabled { color: #3f4660 !important; }
body .mb-pop button.mb-cal-d:disabled { background-color: transparent !important; background-image: none !important; color: #cbd5e1 !important; }
body:not(.light) .mb-pop button.mb-cal-d:disabled { color: #3f4660 !important; }
.ov-rec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6366f1; margin-right: 6px; }
.ov-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; animation: ovRecP 1s ease-in-out infinite alternate; }
@keyframes ovRecP { from { opacity: .3; } to { opacity: 1; } }
/* Карта номеров ученика */
.ov-map { display: flex; flex-wrap: wrap; gap: 3px; max-width: 330px; }
.ov-map .ov-k { width: 27px; height: 22px; padding: 0; justify-content: center; font-size: 10.5px; border-radius: 6px; }
.ov-map .ov-k.wide { width: auto; padding: 0 5px; }
.ov-k.m-worked { color: #4338ca; background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.35); }
.ov-k.m-none { color: #cbd5e1; background: transparent; border-style: dashed; }
.ov-dot.m-worked { background: #c7d2fe; border-color: #818cf8; }
.ov-dot.m-none { background: transparent; border-style: dashed; }
body:not(.light) .ov-k.m-worked { color: #a5b4fc; background: rgba(99,102,241,.16); }
body:not(.light) .ov-k.m-none { color: #475569; background: transparent; }
.ov-metric .ov-streak { display: block; margin-top: 2px; font-size: 11px; font-weight: 800; color: #ea580c; }
