:root{--panel:rgba(13,26,45,.82);--text:#f7fbff;--muted:#9db0c5;--line:rgba(173,203,232,.16);--accent:#62b4ff;--accent2:#8b7cff;--good:#5ed2a0;--shadow:0 28px 70px rgba(0,0,0,.34);--radius:24px}
*{box-sizing:border-box}html,body{min-height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 12% 12%,rgba(36,123,213,.18),transparent 30%),radial-gradient(circle at 88% 18%,rgba(124,92,246,.16),transparent 30%),linear-gradient(155deg,#06101d 0%,#091728 46%,#08111d 100%);color:var(--text);overflow-x:hidden}
button,input{font:inherit}a{color:inherit}.ambient{position:fixed;pointer-events:none;filter:blur(80px);opacity:.24;border-radius:50%;z-index:-1}.ambient-a{width:340px;height:340px;background:#2f9df4;top:12%;left:-120px}.ambient-b{width:420px;height:420px;background:#765ff0;bottom:-140px;right:-140px}
.topbar{width:min(1180px,calc(100% - 36px));margin:0 auto;min-height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:760}.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 8px 28px rgba(79,147,255,.28)}
.top-actions{display:flex;align-items:center;gap:12px}.stage-badge{padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;background:rgba(255,255,255,.025)}.shell{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:58px 0 74px}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center;min-height:62vh}.eyebrow{color:var(--accent);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
h1{font-size:clamp(42px,7vw,78px);line-height:.98;margin:14px 0 22px;letter-spacing:-.045em;max-width:800px}h2{font-size:30px;line-height:1.08;margin:0 0 10px;letter-spacing:-.025em}h3{margin:0 0 6px;font-size:18px}.lead{font-size:clamp(18px,2vw,22px);line-height:1.55;color:var(--muted);max-width:720px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.button{appearance:none;border:0;border-radius:14px;padding:12px 18px;font-weight:720;cursor:pointer;color:#06111f;background:linear-gradient(135deg,#7cc7ff,#a99bff);transition:transform .15s ease,opacity .15s ease;box-shadow:0 10px 26px rgba(89,153,236,.16)}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.5;cursor:not-allowed;transform:none}.button.secondary,.button.ghost{color:var(--text);background:rgba(255,255,255,.045);border:1px solid var(--line);box-shadow:none}.button.ghost{padding:9px 13px}
.showcase,.card{border:1px solid var(--line);background:var(--panel);backdrop-filter:blur(18px);border-radius:var(--radius);box-shadow:var(--shadow)}.showcase{padding:26px}.showcase-row{display:flex;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.showcase-row:last-child{border-bottom:0}.showcase strong{font-size:15px}.showcase span{color:var(--muted);font-size:14px;text-align:right}
.auth-wrap{max-width:520px;margin:16px auto 0}.card{padding:30px}.card-head{margin-bottom:24px}.card-head p,.muted{color:var(--muted)}.form{display:grid;gap:16px}.field{display:grid;gap:8px}.field label{font-size:13px;font-weight:650;color:#d6e4f2}.field input{width:100%;border-radius:13px;border:1px solid var(--line);background:rgba(3,10,18,.62);color:var(--text);padding:13px 14px;outline:none}.field input:focus{border-color:rgba(98,180,255,.7);box-shadow:0 0 0 3px rgba(98,180,255,.09)}
.form-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.text-link{color:#9ed1ff;text-decoration:none;font-size:14px}.text-link:hover{text-decoration:underline}.message{margin-top:18px;border-radius:14px;padding:13px 15px;border:1px solid var(--line);font-size:14px;line-height:1.45}.message.good{border-color:rgba(94,210,160,.3);background:rgba(94,210,160,.08);color:#bdf3db}.message.bad{border-color:rgba(255,125,145,.32);background:rgba(255,125,145,.08);color:#ffc3cc}.message.info{background:rgba(98,180,255,.07);color:#cce8ff}.hidden{display:none!important}
.dashboard-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.workspace{padding:22px;border:1px solid var(--line);border-radius:20px;background:rgba(13,26,45,.68);display:flex;flex-direction:column;gap:18px;min-height:190px}.workspace-meta{display:flex;gap:8px;flex-wrap:wrap}.pill{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:12px;color:var(--muted)}.workspace .button{margin-top:auto;align-self:flex-start}.empty{padding:28px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}.profile-line{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:14px}.dot{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px rgba(94,210,160,.09)}
.footer{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:22px 0 30px;display:flex;justify-content:space-between;gap:18px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.loader{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite;margin:70px auto}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:820px){.hero{grid-template-columns:1fr;min-height:auto}.grid{grid-template-columns:1fr}.dashboard-head{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.topbar,.shell,.footer{width:min(100% - 24px,1180px)}.stage-badge{display:none}.shell{padding-top:34px}.card{padding:22px}h1{font-size:46px}}

/* alpha.3.0.1 – RU/EN switch */
.language-switch{
  display:flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.025);
}
.lang-button{
  appearance:none;
  border:0;
  min-width:38px;
  padding:6px 9px;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:760;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.lang-button:hover{color:var(--text)}
.lang-button.active{
  color:#06111f;
  background:linear-gradient(135deg,#7cc7ff,#a99bff);
  box-shadow:0 5px 15px rgba(89,153,236,.18);
}
@media(max-width:560px){
  .top-actions{gap:7px}
  .language-switch{padding:2px}
  .lang-button{min-width:34px;padding:5px 7px}
}

/* LiveLecture alpha.3.1 – Lectures */
.alpha31-section{margin-top:38px;padding-top:30px;border-top:1px solid rgba(255,255,255,.08)}
.alpha31-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.alpha31-lecture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.alpha31-lecture-card{display:flex;flex-direction:column;gap:14px;min-height:190px;padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(10,25,43,.72)}
.alpha31-lecture-card h3{margin:0;font-size:20px;line-height:1.25}
.alpha31-lecture-card .button{align-self:flex-start;margin-top:auto}
.alpha31-empty{padding:24px;border:1px dashed rgba(255,255,255,.12);border-radius:18px;color:rgba(255,255,255,.68)}
.alpha31-modal-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(1,7,15,.72);backdrop-filter:blur(8px)}
.alpha31-modal-card{width:min(560px,100%);padding:26px;border:1px solid rgba(255,255,255,.11);border-radius:22px;background:#0b1a2c;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.alpha31-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.alpha31-modal-head h2{margin:4px 0 0}
.alpha31-icon-button{border:0;background:transparent;color:#fff;font-size:30px;line-height:1;cursor:pointer;padding:0 4px}
.alpha31-form{display:grid;gap:18px;margin-top:24px}
.alpha31-form label{display:grid;gap:8px;color:rgba(255,255,255,.82)}
.alpha31-form input,.alpha31-form select{width:100%;box-sizing:border-box;padding:13px 14px;border-radius:13px;border:1px solid rgba(255,255,255,.13);background:#071523;color:#fff;outline:none}
.alpha31-form input:focus,.alpha31-form select:focus{border-color:rgba(98,180,255,.75);box-shadow:0 0 0 3px rgba(98,180,255,.09)}
.alpha31-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.alpha31-error{padding:12px 14px;border-radius:12px;color:#ffb6b6;background:rgba(190,45,45,.12)}
.alpha31-detail-row{margin:20px 0 14px}
@media(max-width:820px){.alpha31-lecture-grid{grid-template-columns:1fr}.alpha31-section-head{align-items:flex-start;flex-direction:column}}
