/* Академия AICEX — the look of the canvas «Академия AICEX»: navy menu, Inter, blue accent, status chips. */
:root {
  --bg:#f4f7fc; --ink:#0b111b; --text:#3a4760; --muted:#5f6e87; --line:#dfe7f4; --line2:#c9d5e8; --field:#f8fafe;
  --nav:#06152d; --nav2:#0d2142; --nav3:#12284d; --navtext:#c9d6ec; --navmuted:#8fa3c4;
  --accent:#0754eb; --accent2:#0646cc; --accentbg:#eaf1ff; --office:#6a2ee8; --officeink:#4a1fb0; --officebg:#f0e9ff;
  --ok:#0c7a43; --okbg:#e3f5ea; --wait:#7a4f00; --waitbg:#fff3d6; --fix:#b8430b; --fixbg:#ffeadd; --closed:#5f6e87; --closedbg:#eef2f8;
  --red:#c62f35; --redbg:#fde8e8; --hol:#fbf3e4; --holline:#ecd28a;
}
* { box-sizing:border-box; }
html, body { margin:0; }
body { background:var(--bg); color:var(--text); font:15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); } a:hover { color:var(--accent2); }
h1, h2, h3, h4 { color:var(--ink); margin:0; letter-spacing:-0.02em; }
h1 { font-size:36px; font-weight:800; letter-spacing:-0.035em; line-height:1.1; }
h2 { font-size:24px; font-weight:800; }
h3 { font-size:19px; font-weight:800; }
p { margin:0; }
b, strong { color:var(--ink); }
input, textarea, select, button { font:inherit; color:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
.muted { color:var(--muted); } .small { font-size:13px; } .nowrap { white-space:nowrap; }
.eyebrow { font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--accent); }
.stack { display:flex; flex-direction:column; gap:12px; } .stack.lg { gap:24px; } .stack.sm { gap:6px; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; } .row.between { justify-content:space-between; } .row.end { align-items:flex-end; }
.grid { display:flex; flex-wrap:wrap; gap:20px; } .grid > * { flex:1 1 300px; min-width:0; } .grid > .wide { flex:2 1 420px; }

/* ---------- layout of the Academy ---------- */
.shell { display:flex; min-height:100vh; background:linear-gradient(to right, var(--nav) 264px, var(--bg) 264px); }
.side { flex:0 0 264px; background:var(--nav); color:var(--navtext); padding:24px 16px; display:flex; flex-direction:column; gap:24px; position:sticky; top:0; height:100vh; overflow-y:auto; }
.brand { display:flex; align-items:center; gap:10px; padding:0 8px; text-decoration:none; color:inherit; }
.logo { width:34px; height:34px; border-radius:10px; background:var(--accent); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:900; flex:none; }
.brand b { color:#fff; font-size:15px; display:block; } .brand span { font-size:12px; }
.nav { display:flex; flex-direction:column; gap:4px; font-size:15px; }
.nav a { padding:10px 12px; border-radius:10px; color:var(--navtext); text-decoration:none; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.nav a:hover { background:var(--nav2); color:#fff; }
.nav a.active { background:var(--nav3); color:#fff; font-weight:600; }
.nav a.office { color:#b9a3ff; }
.nav .label { font-size:12px; color:var(--navmuted); text-transform:uppercase; letter-spacing:.08em; padding:12px 12px 4px; }
.side .card-curator { margin-top:auto; display:flex; flex-direction:column; gap:4px; padding:14px; border-radius:14px; background:var(--nav2); font-size:13.5px; }
.side .card-curator b { color:#fff; } .side .card-curator span:first-child { color:var(--navmuted); }
.main { flex:1 1 auto; min-width:0; padding:36px 40px 64px; display:flex; flex-direction:column; gap:24px; max-width:1240px; }
.topline { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:16px; }
.bottombar { display:none; }
.banner { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:12px 16px; border-radius:14px; background:var(--officebg); color:var(--officeink); font-weight:600; }

/* ---------- cards, chips, buttons ---------- */
.card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:24px; display:flex; flex-direction:column; gap:14px; min-width:0; }
.card.accent { border:2px solid var(--accent); padding:28px; }
.card.soft { background:var(--bg); border:0; }
.card.tight { padding:16px 18px; gap:8px; border-radius:16px; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:700; white-space:nowrap; background:var(--closedbg); color:var(--closed); }
.chip.ok { background:var(--okbg); color:var(--ok); } .chip.wait { background:var(--waitbg); color:var(--wait); } .chip.fix { background:var(--fixbg); color:var(--fix); }
.chip.open { background:var(--accentbg); color:var(--accent); } .chip.office { background:var(--officebg); color:var(--officeink); } .chip.red { background:var(--redbg); color:var(--red); }
.badge { min-width:22px; height:22px; padding:0 7px; border-radius:999px; background:var(--accent); color:#fff; font-size:12px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.badge.hot { background:#e5484d; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:12px; border:1px solid var(--line2); background:#fff; color:var(--ink); font-weight:700; text-decoration:none; font-size:15px; white-space:nowrap; }
.btn:hover { border-color:var(--accent); color:var(--ink); }
.btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); } .btn.primary:hover { background:var(--accent2); color:#fff; }
.btn.officebtn { background:var(--officebg); color:var(--officeink); border-color:var(--officebg); }
.btn.good { background:var(--ok); color:#fff; border-color:var(--ok); }
.btn.bad { color:var(--fix); border-color:#f1c3a8; }
.btn.tg { background:#2aabee; border-color:#2aabee; color:#fff; min-height:56px; font-size:17px; width:100%; }
.btn.sm { min-height:34px; padding:0 12px; font-size:13.5px; border-radius:10px; }
.btn.big { min-height:48px; padding:0 22px; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }
.card > .btn, form.card > .btn, .card > form > .btn { align-self:flex-start; }
.card > .btn.block { align-self:stretch; }
.dot { width:10px; height:10px; border-radius:50%; background:#e5484d; flex:none; }
.linkbtn { background:none; border:0; padding:0; color:var(--accent); font-weight:600; }
.progress { position:relative; height:8px; border-radius:999px; background:var(--accentbg); }
.progress > span { display:block; height:8px; border-radius:999px; background:var(--accent); max-width:100%; }
.progress.office { background:var(--officebg); } .progress.office > span { background:var(--office); }
.progress .mark { position:absolute; top:-4px; width:2px; height:16px; background:var(--ink); }
.kv { display:flex; justify-content:space-between; gap:12px; font-size:14px; } .kv b { text-align:right; }
.note { padding:12px 14px; border-radius:12px; background:var(--bg); font-size:14.5px; line-height:1.45; display:flex; flex-direction:column; gap:4px; }
.note.warn { background:var(--waitbg); color:var(--wait); } .note.err { background:var(--redbg); color:var(--red); } .note.good { background:var(--okbg); color:var(--ink); }
.note.fixn { background:var(--fixbg); color:var(--ink); }
.empty { padding:28px; text-align:center; color:var(--muted); background:#fff; border:1px dashed var(--line2); border-radius:16px; }
ul.clean { margin:0; padding:0 0 0 18px; display:flex; flex-direction:column; gap:6px; }

/* ---------- forms ---------- */
label.f { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; color:var(--ink); }
label.f .hint { font-weight:400; color:var(--muted); font-size:13px; }
.in, textarea.in, select.in { width:100%; min-height:46px; padding:10px 14px; border-radius:12px; border:1px solid var(--line2); background:var(--field); color:var(--ink); font-size:15.5px; }
textarea.in { min-height:84px; resize:vertical; line-height:1.45; }
.in:focus { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); background:#fff; }
.check { display:flex; gap:10px; align-items:flex-start; font-size:14.5px; } .check input { width:18px; height:18px; margin-top:2px; accent-color:var(--accent); flex:none; }
.fields2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }
.err { color:var(--red); font-size:14px; font-weight:600; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:12px 18px; border-radius:12px; font-weight:600; z-index:50; max-width:calc(100% - 32px); box-shadow:0 10px 30px rgba(6,21,45,.25); }
.toast.bad { background:var(--red); }

/* ---------- login ---------- */
.login { display:flex; flex-wrap:wrap; min-height:100vh; }
.login .left { flex:1 1 460px; background:var(--nav); color:var(--navtext); padding:56px; display:flex; flex-direction:column; justify-content:space-between; gap:40px; }
.login .left h1 { font-size:52px; line-height:1.02; font-weight:900; color:#fff; letter-spacing:-0.04em; }
.login .left .eyebrow { color:#77a7ff; }
.login .left p { font-size:18px; line-height:1.55; max-width:520px; }
.login .dots span { display:flex; gap:10px; align-items:center; } .login .dots span::before { content:''; width:8px; height:8px; border-radius:50%; background:#77a7ff; flex:none; }
.login .right { flex:999 1 560px; padding:56px 24px; display:flex; align-items:center; justify-content:center; }
.login .box { width:100%; max-width:460px; display:flex; flex-direction:column; gap:24px; }
.login .box h2 { font-size:34px; }
.forbidden { max-width:560px; margin:12vh auto; padding:24px; display:flex; flex-direction:column; gap:16px; align-items:flex-start; }

/* ---------- the verification ---------- */
.steps { display:flex; flex-wrap:wrap; gap:10px; font-size:14px; font-weight:600; }
.steps span { display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:var(--closedbg); color:var(--closed); }
.steps span i { font-style:normal; width:22px; height:22px; border-radius:50%; background:var(--line2); color:var(--text); display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.steps span.done { background:var(--okbg); color:var(--ok); } .steps span.done i { background:var(--ok); color:#fff; }
.steps span.now { background:var(--accent); color:#fff; } .steps span.now i { background:#fff; color:var(--accent); }

/* ---------- track and module ---------- */
.track { display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:10px; }
.track a { min-width:0; display:flex; flex-direction:column; gap:3px; padding:14px; border-radius:14px; background:#fff; border:1px solid var(--line); font-size:13px; text-decoration:none; color:var(--text); }
.track a b { color:var(--closed); } .track a .t { color:var(--ink); font-weight:600; font-size:14px; }
.track a.open { background:var(--accentbg); border-color:var(--accent); } .track a.open b { color:var(--accent); }
.track a.done { background:var(--okbg); border-color:#a8dcbd; } .track a.done b { color:var(--ok); }
.track a.hol { background:var(--hol); border-color:var(--holline); } .track a.hol b { color:var(--wait); }
.tabs { display:flex; flex-wrap:wrap; gap:8px; }
.tabs a, .tabs button { padding:8px 14px; border-radius:999px; background:#fff; border:1px solid var(--line); color:var(--ink); text-decoration:none; font-weight:600; font-size:14px; }
.tabs .active { background:var(--ink); color:#fff; border-color:var(--ink); }
.cols { display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start; }
.cols > .colmain { flex:2 1 520px; min-width:0; display:flex; flex-direction:column; gap:20px; }
.cols > aside { flex:1 1 300px; min-width:0; display:flex; flex-direction:column; gap:16px; }
.video { display:flex; flex-direction:column; gap:8px; }
.video .frame { position:relative; width:100%; padding-top:56.25%; border-radius:14px; overflow:hidden; background:#000; }
.video .frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video.none { padding:22px; border-radius:16px; background:var(--nav); color:var(--navtext); flex-direction:row; align-items:center; gap:14px; }
.video.none .play { width:48px; height:48px; border-radius:50%; background:var(--accent); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.video.none b { color:#fff; display:block; }
.kitstep { border:1px solid var(--line); border-radius:16px; background:#fff; }
.kitstep > summary { list-style:none; display:flex; gap:12px; align-items:center; padding:14px 16px; cursor:pointer; }
.kitstep > summary::-webkit-details-marker { display:none; }
.kitstep .n { width:30px; height:30px; border-radius:10px; background:var(--accentbg); color:var(--accent); display:inline-flex; align-items:center; justify-content:center; font-weight:800; flex:none; font-size:14px; }
.kitstep.done .n { background:var(--okbg); color:var(--ok); }
.kitstep .body { padding:0 16px 16px; display:flex; flex-direction:column; gap:10px; }
.prompt { border-radius:12px; background:var(--nav); color:#dfe8f7; overflow:hidden; }
.prompt .head { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:var(--nav2); font-size:12px; letter-spacing:.08em; color:var(--navmuted); font-weight:700; }
.prompt .head button { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:5px 10px; font-weight:700; font-size:13px; letter-spacing:0; }
.prompt pre { margin:0; padding:12px 14px; white-space:pre-wrap; word-break:break-word; font:13.5px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; max-height:320px; overflow:auto; }
.md p { margin:0 0 6px; } .md ol, .md ul { margin:0 0 6px; padding-left:20px; } .md code { background:var(--closedbg); padding:1px 5px; border-radius:6px; font-size:.92em; }

/* ---------- homework ---------- */
.timeline { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13.5px; }
.timeline span.st { display:flex; flex-direction:column; padding:8px 12px; border-radius:12px; background:#fff; border:1px solid var(--line); }
.timeline span.st b { font-size:13.5px; } .timeline .arrow { color:var(--muted); }
.timeline span.st.ok { background:var(--okbg); border-color:#a8dcbd; } .timeline span.st.fix { background:var(--fixbg); border-color:#f1c3a8; } .timeline span.st.wait { background:var(--waitbg); border-color:#ecd28a; }
.field-block { display:flex; flex-direction:column; gap:8px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.field-block:last-of-type { border-bottom:0; }
.pointc { padding:10px 12px; border-radius:10px; background:var(--fixbg); font-size:14px; }
.docpick { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.thread { display:flex; flex-direction:column; gap:10px; }
.thread .msg { padding:10px 12px; border-radius:12px; background:var(--bg); font-size:14px; } .thread .msg.staff { background:var(--accentbg); }
.thread .msg .who { font-size:12.5px; color:var(--muted); font-weight:600; }
.crit { display:flex; justify-content:space-between; gap:12px; align-items:center; font-size:14px; padding:6px 0; border-bottom:1px solid var(--line); }
.crit:last-child { border-bottom:0; }

/* ---------- tables ---------- */
.tablewrap { overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:#fff; }
table.t { width:100%; border-collapse:collapse; font-size:14px; }
table.t th { text-align:left; font-size:12.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; padding:12px 14px; border-bottom:1px solid var(--line); background:#fbfcfe; white-space:nowrap; }
table.t td { padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.t tr:last-child td { border-bottom:0; }
table.t td.c, table.t th.c { text-align:center; }
table.t tr.hot td { background:#fff6f6; }
.cell { display:inline-flex; min-width:34px; height:28px; padding:0 8px; border-radius:8px; align-items:center; justify-content:center; font-weight:700; font-size:12.5px; background:var(--closedbg); color:var(--closed); text-decoration:none; }
.cell.accepted { background:var(--okbg); color:var(--ok); } .cell.submitted { background:var(--waitbg); color:var(--wait); } .cell.changes { background:var(--fixbg); color:var(--fix); }
.cell.open { background:var(--accentbg); color:var(--accent); } .cell.overdue { background:var(--redbg); color:var(--red); }
.legend { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; }
.diff { font:13px/1.5 ui-monospace, Menlo, monospace; background:#fff; border:1px solid var(--line); border-radius:12px; max-height:420px; overflow:auto; }
.diff div { padding:0 12px; white-space:pre-wrap; word-break:break-word; } .diff .add { background:#e6f6ec; } .diff .del { background:#fdecec; text-decoration:line-through; color:#8a2b2b; } .diff .gap { color:var(--muted); background:var(--bg); }
.stat { display:flex; flex-direction:column; gap:4px; padding:18px; border-radius:16px; background:#fff; border:1px solid var(--line); flex:1 1 150px; min-width:0; }
.stat b { font-size:30px; font-weight:800; letter-spacing:-0.03em; }
.stat span { font-size:13.5px; }

/* ---------- the console «Пульт Академии» ---------- */
.pult { min-height:100vh; display:flex; flex-direction:column; }
.pbar { position:sticky; top:0; z-index:20; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; padding:12px 24px; background:var(--nav); color:var(--navtext); }
.pbar .brand b { font-size:16px; }
.pbar .btn { min-height:38px; background:var(--nav3); color:#fff; border-color:var(--nav3); }
.pbar .btn:hover { border-color:#77a7ff; color:#fff; }
.pbar select { min-height:38px; border-radius:10px; background:var(--nav2); color:#fff; border:1px solid var(--nav3); padding:0 10px; max-width:240px; }
.pbody { display:flex; flex:1 1 auto; background:linear-gradient(to right, #fff 248px, var(--bg) 248px); }
.pside { flex:0 0 248px; padding:20px 12px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:4px; position:sticky; top:62px; height:calc(100vh - 62px); overflow-y:auto; }
.pside a { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:9px 12px; border-radius:10px; color:var(--text); text-decoration:none; font-weight:500; }
.pside a:hover { background:var(--bg); color:var(--ink); }
.pside a.active { background:var(--accentbg); color:var(--accent); font-weight:700; }
.pside .label { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; padding:14px 12px 4px; }
.viewas { background:var(--waitbg); color:var(--wait); padding:10px 16px; border-radius:12px; font-weight:600; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.item { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; padding:16px 18px; border-radius:16px; background:#fff; border:1px solid var(--line); }
.item.hot { border-color:#f3b2b4; background:#fffafa; }
.item .what { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1 1 280px; }
.item .acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.confirm { display:flex; flex-wrap:wrap; gap:8px; align-items:center; width:100%; padding-top:10px; border-top:1px dashed var(--line2); }
.confirm .in { flex:1 1 220px; min-height:38px; padding:6px 10px; font-size:14px; }
.confirm select.in { flex:0 1 200px; }

/* ---------- phone ---------- */
@media (max-width:860px) {
  .side { display:none; }
  .main { padding:20px 16px 96px; gap:18px; }
  h1 { font-size:28px; }
  .card { padding:18px; } .card.accent { padding:18px; }
  .shell, .pbody { background:var(--bg); }
  .stat { flex:1 1 96px; padding:12px 14px; } .stat b { font-size:22px; }
  .bottombar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:30; background:#fff; border-top:1px solid var(--line); padding:8px 4px calc(8px + env(safe-area-inset-bottom));
    overflow-x:auto; justify-content:space-around; gap:2px; }
  .bottombar a { flex:1 0 64px; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 2px; color:var(--muted); text-decoration:none; font-size:11.5px; font-weight:600; white-space:nowrap; position:relative; }
  .bottombar a svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .bottombar a.active { color:var(--accent); }
  .bottombar a .badge { position:absolute; top:-2px; right:calc(50% - 22px); min-width:18px; height:18px; font-size:11px; padding:0 5px; }
  .mobilehead { display:flex; justify-content:space-between; align-items:center; gap:10px; }
  .pside { display:none; }
  .pbar { padding:10px 16px; } .pbar .who { display:none; }
  .login .left { padding:32px 20px; flex-basis:100%; gap:24px; } .login .left h1 { font-size:36px; } .login .right { padding:32px 16px; }
  .btn.big { min-height:46px; }
  table.t th, table.t td { padding:10px; }
}
@media (min-width:861px) { .mobilehead { display:none; } }
