:root{
  /* Минимальная палитра: тёмная база + один синий + нейтральные */
  --bg:#0a0d16;
  --bg-2:#0e131f;
  --card:#151a26;
  --card-2:#1b2130;
  --line:rgba(255,255,255,.09);
  --text:#f2f5fb;
  --muted:#98a1b3;
  --muted-2:#69707f;
  --accent:#3b82f6;          /* единственный акцент */
  --accent-2:#8fb4ff;        /* светлый синий: ссылки, активные состояния, доодлы */
  --accent-soft:rgba(59,130,246,.14);
  --accent-line:rgba(59,130,246,.32);
  --grad:var(--accent);
  --grad-soft:var(--accent-soft);
  --grad-prog:var(--accent);
  --ok:var(--accent);        /* успех = синий */
  --warn:var(--accent-2);    /* «нужно внимание» = светлый синий, без янтарного */
  --ink:#0b1020;
  --radius:20px;
  --shadow:0 18px 40px -18px rgba(59,130,246,.4);
  --font:"Onest","Onest Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --hand:"Caveat","Onest",cursive;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--text);
  font-family:var(--font);letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
img{max-width:100%}

#app-shell{
  max-width:480px;margin:0 auto;min-height:100vh;
  background:
    radial-gradient(120% 60% at 80% -10%,rgba(59,130,246,.16),transparent 60%),
    radial-gradient(120% 50% at -10% 0%,rgba(59,130,246,.12),transparent 55%),
    var(--bg);
  display:flex;flex-direction:column;position:relative;
  box-shadow:0 0 80px rgba(0,0,0,.6);
}

/* ── Topbar ─────────────────────────────────────────── */
#topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px 12px;
  background:linear-gradient(180deg,rgba(7,11,24,.92),rgba(7,11,24,.6));
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line);
}
.brand-logo{font-size:20px;font-weight:800;letter-spacing:-.03em}
.brand-logo b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand-sub{display:block;font-size:10px;color:var(--muted);margin-top:1px;letter-spacing:.14em;text-transform:uppercase;font-weight:600}
.role-switch{display:flex;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:3px}
.role-switch button{font-size:12px;padding:8px 13px;border-radius:999px;color:var(--muted);font-weight:600}
.role-switch button.active{background:var(--accent);color:#fff}

/* ── Layout ─────────────────────────────────────────── */
#view{flex:1;padding:20px 18px 110px;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.loader{color:var(--muted);text-align:center;padding:60px 0}

h1.page-t{font-size:25px;font-weight:800;letter-spacing:-.03em;margin-bottom:4px}
.page-sub{color:var(--muted);font-size:14px;margin-bottom:18px;line-height:1.5}
.section-t{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-2);margin:22px 2px 12px;font-weight:700}

/* ── Cards ──────────────────────────────────────────── */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.card + .card{margin-top:12px}

.hero{
  position:relative;overflow:hidden;border-radius:var(--radius);
  background:
    radial-gradient(80% 120% at 100% 10%,rgba(59,130,246,.32),transparent 62%),
    linear-gradient(160deg,#1a2547,#101733);
  border:1px solid var(--line);padding:20px 18px 22px;margin-bottom:16px;min-height:168px;
}
.hero h2{font-size:21px;font-weight:800;letter-spacing:-.02em;position:relative}
.hero p{color:var(--muted);font-size:13px;margin-top:6px;line-height:1.5;max-width:60%;position:relative}
.hero .mascot{position:absolute;right:-8px;bottom:0;width:146px;height:154px;pointer-events:none}
.hero .mascot svg,.hero .mascot img{width:100%;height:100%;object-fit:contain;object-position:bottom right;
  filter:drop-shadow(0 12px 24px rgba(59,130,246,.35))}

/* progress */
.prog-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.prog-row .pct{font-size:27px;font-weight:800;color:var(--accent)}
.prog-row .cnt{font-size:12px;color:var(--muted)}
.bar{height:10px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}
.bar > i{display:block;height:100%;border-radius:999px;background:var(--grad-prog);box-shadow:0 0 16px rgba(59,130,246,.5);transition:width .6s cubic-bezier(.4,0,.2,1)}

/* main CTA card */
.next-card{
  margin-top:16px;border-radius:var(--radius);padding:18px;
  background:linear-gradient(160deg,rgba(59,130,246,.16),rgba(59,130,246,.12));
  border:1px solid rgba(59,130,246,.28);
}
.next-card .tag{font-size:11px;color:var(--accent-2);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.next-card h3{font-size:18px;font-weight:800;margin:6px 0 4px;letter-spacing:-.01em}
.next-card .meta{font-size:12.5px;color:var(--muted);display:flex;gap:10px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.12);color:#eef2fb;font-weight:600;white-space:nowrap}

.btn{
  display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  padding:15px 18px;border-radius:15px;font-weight:700;font-size:15px;
  background:var(--accent);color:#fff;box-shadow:0 12px 30px -14px rgba(59,130,246,.7);
  transition:transform .12s ease,filter .12s ease;
}
.btn:active{transform:scale(.98)}
.btn:hover{filter:brightness(1.06)}
.btn.secondary{background:var(--card-2);border:1px solid var(--line);box-shadow:none;color:var(--text)}
.btn.ghost{background:transparent;border:1px solid var(--line);box-shadow:none;color:var(--muted)}
.btn[disabled]{pointer-events:none;background:var(--card-2);color:var(--muted-2);box-shadow:none;border:1px solid var(--line)}
.btn-wrap{margin-top:16px}

/* ── Course map ─────────────────────────────────────── */
.map{margin-top:6px}
.map-stage{display:flex;gap:14px;padding:2px 0}
.map-rail{display:flex;flex-direction:column;align-items:center;width:26px}
.map-dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;
  background:var(--card-2);border:1px solid var(--line);color:var(--muted);flex:none}
.map-dot.completed{background:var(--accent);color:#fff;border:0}
.map-dot.active{border-color:var(--accent);color:var(--accent-2);box-shadow:0 0 0 4px rgba(59,130,246,.15)}
.map-line{flex:1;width:2px;background:var(--line);margin:4px 0;min-height:14px}
.map-line.done{background:var(--accent)}
.map-body{padding-bottom:16px;flex:1}
.map-body h4{font-size:15px;font-weight:700}
.map-body .st-status{font-size:12px;color:var(--muted-2);margin-top:2px}
.map-body.active h4{color:var(--accent-2)}
.map-lessons{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.map-lesson{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted);
  padding:9px 11px;background:var(--card);border:1px solid var(--line);border-radius:12px}
.map-lesson .ico{flex:none;width:18px;height:18px;display:grid;place-items:center;color:var(--muted-2)}
.map-lesson .ico svg{width:15px;height:15px;stroke:currentColor;fill:none}
.map-lesson .ico .li[href*="play"],.map-lesson.completed .ico svg{fill:currentColor}
.map-lesson .ml-t{flex:1;min-width:0}
.map-lesson.completed .ico{color:var(--ok)}
.map-lesson.active .ico{color:var(--accent-2)}
.map-lesson.locked{opacity:.72}
.map-lesson.locked .ml-t,.map-lesson.locked small{color:var(--muted-2)}
.map-lesson.active{border-color:rgba(59,130,246,.4);color:var(--text);cursor:pointer}
.map-lesson.completed .ico{color:var(--ok)}
.map-lesson small{margin-left:auto;color:var(--muted);font-size:11.5px;flex:none}
.map-dot.code{border-color:var(--accent);color:var(--accent-2)}
.map-dot svg{width:13px;height:13px;stroke:currentColor;fill:none}
.map-dot.completed svg{fill:#fff;stroke:#fff}

/* свёрнутый пул по просмотрам */
.pool-details{border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden}
.pool-details > summary{list-style:none;cursor:pointer;padding:13px 14px}
.pool-details > summary::-webkit-details-marker{display:none}
.pd-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pd-title h4{font-size:14.5px;font-weight:700}
.pd-title .st-status{margin-top:2px}
.pd-chev{width:18px;height:18px;flex:none;stroke:var(--muted-2);fill:none;transition:transform .2s ease}
.pool-details[open] .pd-chev{transform:rotate(90deg)}
.pool-details .pool-locked{margin:0 14px 14px;border-radius:12px}

.plan-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.plan-head .section-t{margin:22px 2px 12px}
.doodle-inline.sm{font-size:13.5px;margin:0 2px 12px 0;max-width:52%;line-height:1.1}
.doodle-inline.sm .crown{width:20px;height:13px}
.bonus-tag{font-style:normal;font-size:9px;text-transform:uppercase;letter-spacing:.04em;
  padding:1px 5px;border-radius:5px;background:rgba(255,255,255,.08);color:var(--muted-2);margin-left:4px;vertical-align:middle}

.pool-locked{margin-top:10px;padding:14px;border-radius:14px;
  background:linear-gradient(160deg,rgba(59,130,246,.12),rgba(59,130,246,.08));
  border:1px solid rgba(59,130,246,.25);font-size:13px;line-height:1.5}
.pool-locked p{color:var(--muted);margin-bottom:8px}
.pool-locked ol{margin:0 0 12px 16px;color:var(--text);display:flex;flex-direction:column;gap:5px}
.pool-locked ol b{color:var(--accent-2)}
.pool-code-row{display:flex;gap:8px}
.pool-code-input{flex:1;background:var(--bg-2);border:1px solid var(--line);border-radius:11px;
  padding:11px 12px;color:var(--text);font:inherit;font-size:13px}
.pool-code-input:focus{outline:0;border-color:var(--accent)}
.pool-unlock-btn{width:auto;flex:none;padding:11px 16px;font-size:13px;border-radius:11px}

/* ── Lesson ─────────────────────────────────────────── */
.lesson-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.lesson-top .back{color:var(--muted);width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--card);border:1px solid var(--line)}
.lesson-top .back svg{width:20px;height:20px;stroke:currentColor;fill:none}
.lesson-top .counter{font-size:13px;color:var(--muted);font-weight:600}
.lesson-top .l-dots{margin-left:auto;color:var(--muted-2)}
.lesson-top .l-dots svg{width:20px;height:20px;fill:currentColor}
.lesson-h1{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.lesson-meta{color:var(--muted);font-size:13px;margin:6px 0 16px}

.player{
  position:relative;aspect-ratio:16/10;border-radius:16px;overflow:hidden;
  background:radial-gradient(circle at 50% 40%,#24345f,#0c1430);
  border:1px solid var(--line);display:grid;place-items:center;
}
.player .play-btn{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.12);
  backdrop-filter:blur(6px);display:grid;place-items:center;font-size:22px;color:#fff;
  border:1px solid rgba(255,255,255,.25)}
.player.playing .play-btn{opacity:0}
.player .scrim{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.55))}
.player .pbar{position:absolute;left:12px;right:12px;bottom:34px;height:4px;border-radius:999px;background:rgba(255,255,255,.2)}
.player .pbar > i{display:block;height:100%;border-radius:999px;background:var(--grad)}
.player .ptime{position:absolute;left:12px;bottom:12px;font-size:12px;color:#dfe6ff;font-variant-numeric:tabular-nums}
.player .note{position:absolute;right:14px;top:14px;max-width:44%;font-size:12px;color:#cdd6ff;
  font-style:italic;text-align:right;opacity:.8}
.video-el{width:100%;border-radius:16px;border:1px solid var(--line);background:#000;display:block;max-height:60vh}

.summary{margin-top:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 15px}
.summary h3{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:10px}
.summary h4{font-size:13px;font-weight:700;color:var(--accent-2);margin:12px 0 6px}
.summary p{font-size:13.5px;line-height:1.5;color:var(--text);margin:6px 0}
.summary ol{list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:7px}
.summary ol li{counter-increment:s;display:flex;gap:9px;font-size:13.5px;line-height:1.4;color:var(--text)}
.summary ol li::before{content:counter(s);flex:none;width:19px;height:19px;border-radius:6px;
  background:var(--grad-soft);border:1px solid var(--line);display:grid;place-items:center;
  font-size:11px;font-weight:700;color:var(--accent-2)}

.gate-note{display:flex;gap:9px;align-items:center;margin:14px 0 6px;padding:12px 14px;
  border-radius:12px;font-size:13px;font-weight:600;line-height:1.4;
  background:linear-gradient(135deg,rgba(59,130,246,.14),rgba(59,130,246,.12));
  border:1px solid rgba(59,130,246,.28);color:var(--text)}
.gate-note .gn-ic{width:16px;height:16px;flex:none;stroke:var(--accent-2);fill:none}

.info-note{display:flex;gap:8px;margin:12px 0;padding:11px 13px;border-radius:11px;
  font-size:12.5px;line-height:1.45;color:var(--muted);
  background:rgba(255,255,255,.04);border:1px solid var(--line)}

.revision-banner{display:block;margin-bottom:14px;padding:13px 15px;border-radius:14px;
  font-size:13.5px;line-height:1.45;color:var(--text);
  background:var(--accent-soft);border:1px solid var(--accent-line);border-left:3px solid var(--accent)}
.revision-banner b{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--accent-2);margin-bottom:4px}
.revision-banner .rb-lesson{display:block;font-weight:700}
.revision-banner .rb-comment{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12.5px;margin-top:3px}
.revision-banner .rb-cta{display:block;color:var(--accent-2);font-weight:600;font-size:12.5px;margin-top:6px}

.events{padding:6px 4px}
.ev-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:7px 12px;border-bottom:1px solid var(--line)}
.ev-row:last-child{border:0}
.ev-row code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:var(--accent-2);word-break:break-all}
.ev-row span{flex:none;font-size:11px;color:var(--muted-2)}
.prose{font-size:14.5px;line-height:1.6;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:8px;white-space:pre-line}

/* quiz */
.quiz h3{font-size:16px;font-weight:800;margin:20px 0 12px}
.opt{display:flex;align-items:center;gap:12px;padding:14px;border-radius:13px;background:var(--card);
  border:1px solid var(--line);margin-bottom:9px;font-size:14px;transition:border-color .15s}
.opt .radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--muted-2);flex:none}
.opt.sel{border-color:var(--accent)}
.opt.sel .radio{border-color:var(--accent);background:var(--accent);box-shadow:inset 0 0 0 3px var(--card)}
.opt.correct{border-color:var(--accent);background:rgba(59,130,246,.1)}
.opt.wrong{border-color:var(--muted-2);background:rgba(255,255,255,.03);opacity:.7}
.quiz-result{margin-top:12px;padding:14px;border-radius:13px;font-size:14px;line-height:1.5}
.quiz-result.ok{background:rgba(59,130,246,.12);border:1px solid var(--accent-line)}
.quiz-result.no{background:rgba(255,255,255,.04);border:1px solid var(--line)}
.quiz-result b{display:block;margin-bottom:4px;font-size:15px}

/* practice / assignment */
.assign-desc{font-size:14px;line-height:1.55;color:var(--muted);margin:10px 0 14px}
.hint{display:flex;gap:10px;font-size:13px;line-height:1.5;color:var(--muted);
  background:var(--card);border:1px solid var(--line);border-radius:13px;padding:13px 14px}
.hint .b{color:var(--warn);flex:none;display:grid;place-items:center}
.hint .b svg{width:16px;height:16px;stroke:currentColor;fill:none}
.field-tabs{display:flex;gap:8px;margin:16px 0 10px}
.field-tabs button{flex:1;padding:10px;border-radius:11px;font-size:13px;font-weight:600;
  background:var(--card);border:1px solid var(--line);color:var(--muted)}
.field-tabs button.active{background:var(--grad-soft);border-color:rgba(59,130,246,.4);color:var(--text)}
textarea,input[type=url],input[type=text]{
  width:100%;background:var(--card);border:1px solid var(--line);border-radius:13px;
  padding:14px;color:var(--text);font:inherit;font-size:14px;resize:vertical}
textarea:focus,input:focus{outline:0;border-color:var(--accent)}
textarea{min-height:110px}

.status-badge{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;white-space:nowrap;flex:none;
  padding:5px 11px;border-radius:999px}
.status-badge.submitted{background:rgba(255,255,255,.07);color:var(--muted);border:1px solid var(--line)}
.status-badge.revision{background:var(--accent-soft);color:var(--accent-2);border:1px solid var(--accent-line)}
.status-badge.approved{background:var(--accent);color:#fff}
.status-badge.draft{background:rgba(255,255,255,.07);color:var(--muted-2)}

.attempt{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:10px}
.attempt .a-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted-2)}
.attempt .a-body{font-size:13.5px;margin-top:8px;line-height:1.5;word-break:break-word}
.attempt .a-body a{color:var(--accent-2)}
.review-note{margin-top:10px;padding:12px;border-radius:11px;background:rgba(143,180,255,.08);
  border:1px solid rgba(143,180,255,.25);font-size:13px;line-height:1.5}
.review-note.ok{background:rgba(59,130,246,.08);border-color:rgba(59,130,246,.25)}
.review-note b{display:block;margin-bottom:4px}

/* ── Library ────────────────────────────────────────── */
.search{width:100%;margin-bottom:12px}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:14px;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;font-size:12.5px;font-weight:600;padding:8px 14px;border-radius:999px;
  background:var(--card);border:1px solid var(--line);color:var(--muted)}
.chip.active{background:var(--accent);color:#fff;border:0}
.lib-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lib-item{border-radius:16px;padding:15px;min-height:118px;display:flex;flex-direction:column;justify-content:space-between;
  border:1px solid var(--line);background:linear-gradient(160deg,var(--card),var(--card-2))}
.lib-item .li-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(150deg,rgba(59,130,246,.25),rgba(59,130,246,.18));border:1px solid var(--line)}
.lib-item .li-ico svg{width:22px;height:22px;stroke:var(--accent-2);fill:none}
.lib-item.c-mont .li-ico{background:linear-gradient(150deg,rgba(59,130,246,.25),rgba(59,130,246,.16))}
.lib-item.c-plat .li-ico{background:linear-gradient(150deg,rgba(59,130,246,.25),rgba(59,130,246,.16))}
.lib-item.c-case .li-ico{background:linear-gradient(150deg,rgba(59,130,246,.22),rgba(59,130,246,.14))}
.lib-item h4{font-size:13.5px;font-weight:700;line-height:1.25;margin-top:10px}
.lib-item .li-meta{font-size:11px;color:var(--muted-2);margin-top:6px}
.search-wrap{position:relative;margin-bottom:12px}
.search-wrap svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;stroke:var(--muted-2);fill:none;pointer-events:none}
.search{width:100%;padding-left:38px!important}

/* ── Completion / stage modal ───────────────────────── */
.celebrate{text-align:center;padding:14px 6px}
.badge-hex{width:170px;height:170px;margin:6px auto 14px;position:relative}
.badge-hex svg{width:100%;height:100%;overflow:visible}
.celebrate h2{font-size:27px;font-weight:800;letter-spacing:-.03em}
.celebrate .big-pct{font-size:13px;font-weight:700;color:var(--accent-2);margin-top:4px}
.celebrate p{color:var(--muted);font-size:14px;line-height:1.55;margin:10px auto 0;max-width:88%}
.checklist{text-align:left;margin:20px 0 8px;display:flex;flex-direction:column;gap:11px}
.checklist div{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--text);line-height:1.4}
.checklist div i{color:var(--ok);flex:none}
.checklist div .ck{flex:none;width:20px;height:20px;border-radius:6px;background:rgba(59,130,246,.16);display:grid;place-items:center}
.checklist div .ck svg{width:13px;height:13px;color:var(--ok)}

/* ── Admin ──────────────────────────────────────────── */
.admin-tabs{display:flex;gap:8px;margin-bottom:14px;overflow-x:auto;padding-bottom:2px}
.admin-tabs::-webkit-scrollbar{display:none}
.admin-tabs button{flex:none;font-size:12.5px;font-weight:600;padding:9px 14px;border-radius:10px;background:var(--card);border:1px solid var(--line);color:var(--muted)}
.admin-tabs button.active{background:var(--grad-soft);border-color:rgba(59,130,246,.45);color:var(--text)}
.rev-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}
.rev-card .r-top{display:flex;justify-content:space-between;align-items:flex-start}
.rev-card .r-user{font-weight:700;font-size:14px}
.rev-card .r-lesson{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}
.rev-card .r-top{gap:10px}
.rev-card .r-payload{margin:12px 0;font-size:13.5px;line-height:1.5;background:var(--bg-2);border:1px solid var(--line);border-radius:11px;padding:12px;word-break:break-word}
.rev-card .r-payload a{color:var(--accent-2)}
.rev-actions{display:flex;gap:9px;margin-top:6px}
.rev-actions .btn{padding:12px}
.mini-comment{margin-top:10px}

/* ── Profile ────────────────────────────────────────── */
.prof-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}
.prof-row:last-child{border:0}
.prof-row > span:first-child{color:var(--muted)}
.prof-row .v{color:var(--text);font-weight:600;text-align:right}

/* ── Bottom nav ─────────────────────────────────────── */
#bottomnav{
  position:sticky;bottom:0;z-index:20;display:flex;justify-content:space-around;
  padding:10px 8px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(0deg,rgba(7,11,24,.96),rgba(7,11,24,.75));
  backdrop-filter:blur(14px);border-top:1px solid var(--line);
}
#bottomnav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:11px;font-weight:600;padding:4px 10px;border-radius:12px}
#bottomnav a .ni{width:23px;height:23px;stroke:currentColor;fill:none}
#bottomnav a.active{color:var(--accent-2)}
#bottomnav a.active .ni{filter:drop-shadow(0 0 7px rgba(59,130,246,.55))}
.ni{width:22px;height:22px;display:inline-block;vertical-align:middle}

.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:60;
  background:var(--card-2);border:1px solid var(--line);border-radius:12px;padding:12px 18px;
  font-size:13px;box-shadow:var(--shadow);animation:fade .2s ease}

.confetti{position:fixed;inset:0;pointer-events:none;z-index:50;overflow:hidden}
.confetti i{position:absolute;top:-10px;width:8px;height:12px;border-radius:2px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(600deg)}}

/* ── Рукописные пометки (в стиле маркера из прототипа) ── */
.doodle{position:absolute;font-family:var(--hand);font-weight:700;color:var(--accent-2);
  font-size:15px;line-height:1.15;letter-spacing:0;pointer-events:none;
  text-shadow:0 0 12px rgba(143,180,255,.35);opacity:.92;z-index:3}
.doodle .crown{display:block;width:26px;height:16px;margin:2px auto 0;stroke:var(--accent-2);fill:none;stroke-width:1.6}
.doodle.d-tr{top:0;right:4px;text-align:right;transform:rotate(4deg);max-width:60%}
.doodle.d-br{bottom:8px;right:6px;text-align:right;transform:rotate(-3deg);max-width:55%}
.doodle.d-bl{bottom:10px;left:4px;text-align:left;transform:rotate(-4deg);max-width:45%}
.has-doodle{position:relative}
.doodle-inline{font-family:var(--hand);font-weight:700;color:var(--accent-2);font-size:16px;
  text-align:right;transform:rotate(-2deg);margin:2px 6px 8px 0;
  text-shadow:0 0 12px rgba(143,180,255,.3);display:flex;gap:6px;align-items:center;justify-content:flex-end}
.doodle-inline .crown{width:24px;height:15px;stroke:var(--accent-2);fill:none;stroke-width:1.6}

/* блоки «Загрузи свою работу» — строки с иконкой (стиль прототипа) */
.upload-row{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;
  background:var(--card);border:1px solid var(--line);margin-bottom:9px}
.upload-row .ur-ic{width:38px;height:38px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(150deg,rgba(59,130,246,.22),rgba(59,130,246,.16));border:1px solid var(--line)}
.upload-row .ur-ic svg{width:19px;height:19px;stroke:var(--accent-2);fill:none}
.upload-row .ur-t{font-size:13.5px;font-weight:600}
.upload-row .ur-s{font-size:11px;color:var(--muted-2);margin-top:2px}
.upload-row .ur-chev{margin-left:auto;width:18px;height:18px;stroke:var(--muted-2);fill:none}
.upload-row.active{border-color:rgba(59,130,246,.45);background:var(--grad-soft)}

/* иконка-плашка у заголовка практики */
.assign-ic{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;margin-bottom:12px;
  background:var(--grad);box-shadow:0 10px 26px -10px rgba(59,130,246,.7)}
.assign-ic svg{width:22px;height:22px;stroke:#fff;fill:none}

.done-gift{display:flex;gap:12px;align-items:center;margin:18px 0 4px;padding:14px;border-radius:14px;
  background:var(--card);border:1px solid var(--line);text-align:left;font-size:12.5px;color:var(--muted);line-height:1.5}
.done-gift svg{width:40px;height:40px;flex:none}
.big-pct{font-size:13px;font-weight:700;color:var(--accent-2);margin-top:4px}
