/* ============================================================
   assets/css/lesson.css — стили уроков
   Подключать ТОЛЬКО в lesson.php (после style.css)
   ============================================================ */

.student{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-top:16px;position:relative;z-index:2}
.student .f{display:flex;flex-direction:column;gap:4px}
.student label{font-size:.78rem;font-weight:800;color:#4c4660;text-transform:uppercase;letter-spacing:.4px}
.student input{border:2px solid rgba(255,255,255,.85);border-radius:10px;padding:8px 13px;
  font-size:.95rem;font-family:inherit;background:rgba(255,255,255,.92);color:var(--ink);outline:none}
.student input:focus{background:#fff;border-color:#a78bfa;box-shadow:0 0 0 4px rgba(255,255,255,.55)}
#surname{width:200px} #firstname{width:180px} #klass{width:90px}

.lock{text-align:center;padding:32px 18px;border-radius:16px;
  background:linear-gradient(135deg,#fff7ed,#fef2f2);border:2px dashed var(--od)}
.lock h3{margin:10px 0 4px}
.lock p{color:var(--muted);margin:0 0 16px;font-size:.94rem}
.lockrow{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

.pmsg{min-height:22px;font-weight:600;color:var(--bad);margin-top:10px}
.pmsg.info{color:var(--muted)}

.vbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}

.res{display:none}
.res.show{display:block}
.res h3{margin:0 0 14px;color:#065f46}
.mcard.total .val{color:#047857}

#standalone{display:none}
body.exam{padding-bottom:20px}
body.exam #theory, body.exam #workbook, body.exam #practice,
body.exam #final, body.exam #homework, body.exam #standaloneGate,
body.exam .bar, body.exam .hero{display:none !important}
body.exam #standalone{display:block}

.exam-head{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);border-radius:0 0 20px 20px;padding:14px 20px;margin:-24px -16px 18px;
  box-shadow:0 6px 24px rgba(120,110,160,.18);display:flex;flex-wrap:wrap;gap:14px;
  align-items:center;justify-content:space-between}
.exam-title{font-weight:800;font-size:1.05rem}
.exam-who{font-size:.86rem;color:var(--muted)}
.timer{font-family:Consolas,monospace;font-size:1.5rem;font-weight:800;color:#047857;
  background:var(--green);padding:6px 18px;border-radius:12px;min-width:110px;text-align:center}
.timer.warn{background:var(--yellow);color:#b45309}
.timer.danger{background:#fee2e2;color:#b91c1c;animation:pulseT 1s infinite}
@keyframes pulseT{0%,100%{opacity:1}50%{opacity:.55}}

.s-task{background:#fff;border-radius:18px;padding:18px 20px;margin:14px 0;
  border:2px solid #e8e3f5;box-shadow:0 4px 18px rgba(120,110,160,.09)}
.s-task .sn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
  border-radius:50%;background:var(--purple);color:#5b21b6;font-weight:800;font-size:.85rem;margin-right:8px}
.s-task .stext{margin:0 0 12px;font-size:1rem;line-height:1.65}
.s-task input[type=text]{max-width:200px}
.s-flag{font-size:.78rem;font-weight:800;padding:2px 10px;border-radius:999px;
  background:var(--blue);color:#1d4ed8;margin-left:6px}

.no-calc-warn{background:var(--yellow);border-left:4px solid var(--yd);border-radius:12px;
  padding:12px 16px;margin:0 0 16px;font-size:.92rem;font-weight:600;color:#b45309}

.keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}
.key{background:#fbfaff;border:1.5px solid #ece8f8;border-radius:10px;padding:10px 6px;
  cursor:pointer;font-size:1.2rem;font-weight:700;color:#5b4b8a;font-family:inherit;
  line-height:1.3;transition:.15s;text-align:center}
.key:hover{background:var(--purple);border-color:var(--pd);transform:translateY(-1px)}

.calc{max-width:340px}
.calc-screen{background:#1e1b2e;color:#e9e6f5;border-radius:14px;padding:14px 16px;margin-bottom:12px;
  text-align:right;font-family:Consolas,monospace;overflow:hidden}
.calc-expr{font-size:.82rem;color:#a9a3c4;min-height:18px;word-break:break-all}
.calc-out{font-size:1.9rem;font-weight:700;word-break:break-all;line-height:1.2}
.calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cbtn{border:none;border-radius:12px;padding:15px 0;font-size:1.05rem;font-weight:700;
  font-family:inherit;cursor:pointer;background:#f5f3ff;color:#4c1d95;transition:.12s}
.cbtn:hover{background:#ede9fe}
.cbtn:active{transform:scale(.96)}
.cbtn.op{background:var(--purple);color:#5b21b6}
.cbtn.eq{background:var(--green);color:#047857;grid-column:span 2}
.cbtn.del{background:var(--orange);color:#c2410c}
.cbtn.clr{background:#fee2e2;color:#b91c1c}
.cbtn.comma{background:#e0e7ff;color:#3730a3}

.bar{background:#fff;border-radius:var(--r);padding:16px;border:1px solid #f2f0fa;
  box-shadow:0 -4px 24px rgba(120,110,160,.16);display:flex;flex-wrap:wrap;gap:10px;
  position:sticky;bottom:10px;z-index:30;margin-top:24px}

ul.schedule{margin:10px 0 0;padding-left:20px;line-height:1.9}
ul.schedule li{color:var(--muted)}
body.no-bar{padding-bottom:0}

@media(max-width:760px){
  #surname,#firstname,#klass{width:100%}
}

@media print{
  .bar{display:none !important}
  #standalone{display:none !important}
}