/* Computer lab (roadmap Plans 13-14): the teacher's start page, live board and projector view,
 * the student agent's dock, message drawer, full-screen cover and notices, and the share window.
 *
 * Page-scoped plain CSS. The teacher pages link it; the student agent (static/js/lab-agent.js)
 * adds it to a page only while a session runs, so nobody else downloads it. The agent's elements
 * are injected into arbitrary pages, which is why they set their own font, sizes and box model
 * instead of inheriting whatever the host page styles. Accent: violet, as on /teach.
 */

:root {
  --lab-accent: 167, 139, 250;   /* violet-400 */
  --lab-ok: 52, 211, 153;        /* emerald-400 */
  --lab-warn: 251, 191, 36;      /* amber-400 */
  --lab-bad: 251, 113, 133;      /* rose-400 */
}

#site-main.lab-wide { max-width: 96rem; }

/* A display rule on a class would beat the [hidden] attribute; these elements toggle it. */
.lab-board [hidden], .lab-detail[hidden], [data-lab-ui][hidden], [data-lab-ui] [hidden], .lab-share [hidden],
.lab-packs-grid [hidden], .lab-player [hidden], .lab-projector [hidden], .lab-duel [hidden] {
  display: none !important;
}

/* ── shared controls ──────────────────────────────────────────────────────── */
.lab-card {
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}
.lab-card--tight { margin: 0 0 1rem; padding: 0.9rem 1rem; }
.lab-h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}
summary.lab-h2 { margin: 0; cursor: pointer; }
details[open] > summary.lab-h2 { margin-bottom: 0.75rem; }
.lab-form { display: grid; gap: 0.85rem; }
.lab-field { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; font-size: 0.875rem; color: #cbd5e1; }
.lab-field > span, .lab-field > legend { margin-bottom: 0.2rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.lab-field--short { max-width: 14rem; }
.lab-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.875rem;
}
.lab-input:focus { outline: 2px solid rgba(var(--lab-accent), 0.6); outline-offset: 1px; }
textarea.lab-input { min-height: 2.6rem; resize: vertical; }
.lab-check, .lab-radio { display: flex; align-items: center; gap: 0.55rem; font-size: 0.875rem; color: #cbd5e1; }
.lab-radio { display: inline-flex; margin: 0 1rem 0.25rem 0; }
.lab-check input, .lab-radio input { width: 1rem; height: 1rem; accent-color: rgb(var(--lab-accent)); }
.lab-hint { margin: 0; font-size: 0.8rem; line-height: 1.5; color: #94a3b8; }
.lab-hint a { color: rgb(196, 181, 253); }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lab-status { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.lab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.lab-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lab-btn:focus-visible { outline: 2px solid rgba(var(--lab-accent), 0.7); outline-offset: 2px; }
.lab-btn:disabled { opacity: 0.5; cursor: default; }
.lab-btn--primary { border-color: rgba(var(--lab-accent), 0.5); background: rgba(var(--lab-accent), 0.22); color: #ede9fe; }
.lab-btn--primary:hover { background: rgba(var(--lab-accent), 0.32); }
.lab-btn--danger { border-color: rgba(var(--lab-bad), 0.45); background: rgba(var(--lab-bad), 0.12); color: #fecdd3; }
.lab-btn--small { min-height: 1.9rem; padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.lab-btn--big { min-height: 2.9rem; padding: 0.6rem 1.4rem; font-size: 1rem; }
.lab-file-name { max-width: 12rem; overflow: hidden; font-size: 0.75rem; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.lab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}
.lab-pill--live { border-color: rgba(var(--lab-ok), 0.45); color: #6ee7b7; }
.lab-pill--live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgb(var(--lab-ok));
  animation: lab-pulse 2s infinite;
}
@keyframes lab-pulse { 50% { opacity: 0.35; } }

/* ── start page ───────────────────────────────────────────────────────────── */
.lab-sessions { display: grid; margin: 0; padding: 0; list-style: none; }
.lab-sessions li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.8rem;
  padding: 0.6rem 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: #94a3b8;
}
.lab-sessions li:first-child { border-top: 0; }
.lab-sessions a { font-weight: 600; color: #e2e8f0; text-decoration: none; }
.lab-sessions a:hover { text-decoration: underline; }
.lab-sessions .lab-pill { margin-left: auto; }

/* ── live board ───────────────────────────────────────────────────────────── */
.lab-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.lab-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #c4b5fd; }
.lab-board-title h1 { margin: 0.2rem 0 0.35rem; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; color: #f8fafc; }
.lab-board-meta { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.8rem; color: #94a3b8; }
.lab-board-controls { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.lab-inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.5rem 0 1.25rem; }
.lab-inline-form .lab-input { flex: 1 1 18rem; width: auto; }
.lab-ended { margin: 0 0 1rem; padding: 0.7rem 1rem; border-radius: 0.75rem; background: rgba(var(--lab-bad), 0.12); font-size: 0.875rem; color: #fecdd3; }
.lab-board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; gap: 1.25rem; }
.lab-side { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.lab-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.lab-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.62;
  transition: opacity 0.2s, border-color 0.2s;
}
.lab-tile.is-online { opacity: 1; }
.lab-tile.is-warn { border-color: rgba(var(--lab-warn), 0.6); }
.lab-tile--flash { animation: lab-flash 1.2s ease-out 2; }
.lab-tile--hand { box-shadow: 0 0 0 2px rgba(var(--lab-accent), 0.85); }
@keyframes lab-flash {
  0% { box-shadow: 0 0 0 3px rgba(var(--lab-bad), 0.9); }
  100% { box-shadow: 0 0 0 3px rgba(var(--lab-bad), 0); }
}
.lab-tile-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.6);
  cursor: zoom-in;
}
.lab-tile-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lab-tile-noshot { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.75rem; color: #64748b; }
.lab-tile-body { display: grid; gap: 0.4rem; padding: 0.6rem 0.75rem 0.7rem; }
.lab-tile-head { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.lab-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #475569; }
.is-online .lab-dot { background: rgb(var(--lab-ok)); }
.is-warn .lab-dot { background: rgb(var(--lab-warn)); }
.lab-tile-name { overflow: hidden; font-size: 0.9rem; font-weight: 600; color: #f1f5f9; text-overflow: ellipsis; white-space: nowrap; }
.lab-tile-count { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: #fda4af; white-space: nowrap; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; min-height: 1.2rem; }
.lab-chip { padding: 0.1rem 0.45rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; font-size: 0.68rem; font-weight: 600; color: #94a3b8; }
.lab-chip--ok { border-color: rgba(var(--lab-ok), 0.4); color: #6ee7b7; }
.lab-chip--warn { border-color: rgba(var(--lab-warn), 0.5); background: rgba(var(--lab-warn), 0.08); color: #fcd34d; }
.lab-tile-page { min-height: 1em; overflow: hidden; font-size: 0.72rem; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.lab-tile-actions { display: flex; gap: 0.35rem; }
.lab-empty { padding: 0.8rem 0; font-size: 0.85rem; color: #94a3b8; list-style: none; }

.lab-feed { display: grid; gap: 0.3rem; max-height: 22rem; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.lab-ev {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: #cbd5e1;
}
.lab-ev--incident { background: rgba(var(--lab-bad), 0.08); }
.lab-ev--hand { background: rgba(var(--lab-accent), 0.12); }
.lab-ev-time { font-size: 0.7rem; font-variant-numeric: tabular-nums; color: #64748b; }
.lab-ev-who { font-weight: 600; color: #f1f5f9; }
.lab-ev-url { flex-basis: 100%; overflow: hidden; font-size: 0.7rem; color: #64748b; text-overflow: ellipsis; white-space: nowrap; }
.lab-ev-link { font-size: 0.72rem; color: #c4b5fd; }

.lab-messages, .lab-thread { display: flex; flex-direction: column; gap: 0.4rem; max-height: 18rem; margin: 0 0 0.6rem; padding: 0; overflow-y: auto; list-style: none; }
.lab-msg { align-self: flex-start; max-width: 88%; padding: 0.45rem 0.65rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.05); font-size: 0.82rem; color: #e2e8f0; }
.lab-messages .lab-msg:not(.lab-msg--mine) { cursor: pointer; }
.lab-msg--mine { align-self: flex-end; background: rgba(var(--lab-accent), 0.18); }
.lab-msg-meta { display: flex; gap: 0.5rem; font-size: 0.68rem; color: #94a3b8; }
.lab-msg-who { font-weight: 600; }
.lab-msg-body { margin: 0.15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-msg-file { display: grid; gap: 0.3rem; margin-top: 0.3rem; font-size: 0.78rem; }
.lab-msg-file a { color: #c4b5fd; overflow-wrap: anywhere; }
.lab-msg-img { max-width: 100%; max-height: 10rem; border-radius: 0.4rem; }
.lab-compose { display: grid; gap: 0.45rem; }

.lab-detail { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.5rem; background: rgba(2, 6, 23, 0.72); }
.lab-detail-panel {
  width: min(64rem, 100%);
  max-height: calc(100vh - 3rem);
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: #0b1120;
}
.lab-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lab-detail-head h2 { margin: 0; font-size: 1.2rem; color: #f8fafc; }
.lab-detail-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.7rem; margin: 0.8rem 0 1rem; }
.lab-shot { margin: 0; }
.lab-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0.5rem; background: rgba(2, 6, 23, 0.6); }
.lab-shot figcaption { margin-top: 0.25rem; font-size: 0.7rem; color: #94a3b8; }

@media (max-width: 1023px) {
  .lab-board-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-side { position: static; max-height: none; }
}

/* ── projector view ───────────────────────────────────────────────────────── */
.lab-proj-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.lab-proj-head h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); color: #f8fafc; }
.lab-proj-count { margin: 0; font-size: clamp(1rem, 1.8vw, 1.5rem); color: #94a3b8; }
.lab-proj-leaderboard { margin-bottom: 1.5rem; }
.lab-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.lab-proj-tile {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: #64748b;
}
.lab-proj-tile.is-online { border-color: rgba(var(--lab-ok), 0.45); color: #f1f5f9; }
.lab-proj-tile.is-warn { border-color: rgba(var(--lab-warn), 0.6); }

/* ── student agent (injected into any page while a session runs) ─────────── */
.lab-root, .lab-toasts {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #e2e8f0;
}
.lab-root *, .lab-root *::before, .lab-root *::after, .lab-toasts * { box-sizing: border-box; }
/* The banner is what is left of the student dock (roadmap Plan 20): messages, files, hand-raise,
   sharing and full screen all moved into the feedback dialog's Messages tab, and the bottom-left
   corner belongs to the Ask-AI button now. Only the two things a student still needs *in view*
   stay: that they are being supervised, and the way back into full screen. */
.lab-banner-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem calc(0.3rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(var(--lab-accent), 0.35);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  color: #cbd5e1;
}
.lab-banner-top.is-warn { border-bottom-color: rgba(var(--lab-warn), 0.7); }
.lab-banner-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--lab-ok)); animation: lab-pulse 2s infinite; }
.lab-banner-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-banner-btn {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.7rem;
  border: 1px solid rgba(var(--lab-warn), 0.6);
  border-radius: 999px;
  background: rgba(var(--lab-warn), 0.14);
  color: #fcd34d;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.lab-banner-btn:hover { background: rgba(var(--lab-warn), 0.24); }
/* The banner floats over the page, so push the shell down while it is there. */
html.lab-supervised body { padding-top: 2.1rem; }

.lab-cover {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lab-cover-box { display: grid; justify-items: center; gap: 1rem; max-width: 26rem; text-align: center; }
.lab-cover-text { margin: 0; font-size: 1.1rem; font-weight: 600; color: #f8fafc; }
.lab-modal { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; padding: 1.5rem; background: rgba(2, 6, 23, 0.6); }
.lab-modal-box {
  width: min(30rem, 100%);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(var(--lab-accent), 0.4);
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.lab-modal-title { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 600; color: #f8fafc; }
.lab-modal-body { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.55; color: #cbd5e1; white-space: pre-wrap; }
.lab-toasts {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 2147483647;
  display: grid;
  gap: 0.5rem;
  width: min(26rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}
.lab-toast {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(var(--lab-accent), 0.45);
  border-radius: 0.75rem;
  background: #1e1b4b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font: inherit;
  font-size: 0.85rem;
  color: #ede9fe;
  text-align: left;
  pointer-events: auto;
}
button.lab-toast { width: 100%; cursor: pointer; }
@media (max-width: 640px) {
  .lab-dock-title { max-width: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-dock-dot, .lab-pill--live::before, .lab-tile--flash { animation: none; }
}

/* ── share window (/lab/share/<id>) ───────────────────────────────────────── */
.lab-share-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 1.2rem;
  background: #0b1120;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e2e8f0;
}
.lab-share { display: grid; gap: 0.8rem; max-width: 26rem; text-align: center; }
.lab-share h1 { margin: 0; font-size: 1.05rem; }
.lab-share p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #94a3b8; }
.lab-share .lab-warn-text { color: #fcd34d; }
.lab-share .lab-actions { justify-content: center; }

/* ── lesson packs: builder, board launch row and player (Plan 15) ───────── */
.lab-launch-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin: -0.25rem 0 1.25rem; }
.lab-field--inline { min-width: 16rem; }
.lab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lab-row--between { justify-content: space-between; margin-bottom: 0.5rem; }
.lab-row--between .lab-h2 { margin: 0; }
.lab-grow-2 { flex: 2 1 16rem; }
.lab-grow-1 { flex: 1 1 12rem; }
.lab-packs-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.lab-editor { display: grid; gap: 1rem; }
.lab-editor .lab-card { margin: 0; }
.lab-pack-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.lab-pack-list li {
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}
.lab-pack-list li.is-current { border-color: rgba(var(--lab-accent), 0.55); }
.lab-pack-name { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; }
.lab-pack-meta { font-size: 0.72rem; color: #94a3b8; }
.lab-blocks { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; counter-reset: lab-block; }
.lab-block {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  counter-increment: lab-block;
}
.lab-block::before { content: counter(lab-block); min-width: 1.4rem; font-size: 0.75rem; font-weight: 700; color: #c4b5fd; text-align: center; }
.lab-block-title { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 0.85rem; color: #e2e8f0; text-overflow: ellipsis; white-space: nowrap; }
.lab-icon-btn { min-width: 1.9rem; padding: 0.2rem 0.45rem; }
.lab-kind {
  flex: none;
  padding: 0.08rem 0.45rem;
  border: 1px solid rgba(var(--lab-accent), 0.35);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.lab-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.lab-tab[aria-selected="true"] { border-color: rgba(var(--lab-accent), 0.55); background: rgba(var(--lab-accent), 0.22); color: #ede9fe; }
.lab-results { display: grid; gap: 0.3rem; max-height: 24rem; margin: 0.6rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.lab-result { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.02); font-size: 0.82rem; color: #cbd5e1; }
.lab-result-main { flex: 1 1 auto; min-width: 0; }
.lab-result-title { display: block; overflow: hidden; color: #e2e8f0; text-overflow: ellipsis; white-space: nowrap; }
.lab-result-meta { display: block; font-size: 0.7rem; color: #94a3b8; }

.lab-player { display: grid; grid-template-columns: 16rem minmax(0, 1fr); align-items: start; gap: 1.25rem; padding-bottom: 3.5rem; }
.lab-player-side { position: sticky; top: 5rem; display: grid; gap: 0.5rem; }
.lab-player-name { margin: 0; font-size: 1.05rem; font-weight: 600; color: #f8fafc; }
.lab-player-bar { height: 0.4rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.lab-player-bar > span { display: block; width: 0; height: 100%; background: rgb(var(--lab-accent)); transition: width 0.3s; }
.lab-steps { display: grid; gap: 0.3rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.lab-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.lab-step:hover { background: rgba(255, 255, 255, 0.05); }
.lab-step.is-current { border-color: rgba(var(--lab-accent), 0.55); background: rgba(var(--lab-accent), 0.12); color: #f8fafc; }
.lab-step-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}
.lab-step.is-done .lab-step-mark { border-color: rgb(var(--lab-ok)); background: rgb(var(--lab-ok)); color: #052e1a; }
.lab-step-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage { display: grid; gap: 0.75rem; min-width: 0; }
.lab-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.lab-stage-head h1 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; color: #f8fafc; }
.lab-stage-step { font-size: 0.8rem; color: #94a3b8; }
.lab-stage-body { display: grid; gap: 0.6rem; }
.lab-stage-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.lab-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 19rem);   /* leaves the action row clear of the corner widgets */
  min-height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: #0b1120;
}
.lab-frame-open { justify-self: end; font-size: 0.75rem; color: #94a3b8; }
.lab-note {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(var(--lab-accent), 0.3);
  border-radius: 0.8rem;
  background: rgba(var(--lab-accent), 0.08);
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
}
.lab-banner { margin: 0; padding: 0.5rem 0.8rem; border-radius: 0.6rem; background: rgba(var(--lab-warn), 0.1); font-size: 0.82rem; color: #fcd34d; }
.lab-item { padding: 1rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.8rem; background: rgba(255, 255, 255, 0.03); line-height: 1.6; color: #e2e8f0; }
.lab-item-prompt p { margin: 0 0 0.6rem; }
.lab-item-prompt img { max-width: 100%; height: auto; border-radius: 0.4rem; background: #fff; }
.lab-item-form { display: grid; gap: 0.6rem; }
.lab-item-options { display: grid; gap: 0.4rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.lab-item-option label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  cursor: pointer;
}
.lab-item-option label:hover { background: rgba(255, 255, 255, 0.04); }
.lab-item-option input { margin-top: 0.35rem; accent-color: rgb(var(--lab-accent)); }
.lab-item-option-text { display: flex; gap: 0.5rem; }
.lab-item-option-text p { display: inline; margin: 0; }
.lab-item-letter { color: #c4b5fd; }
.lab-result-box { margin-top: 0.4rem; padding: 0.7rem 0.9rem; border-radius: 0.7rem; background: rgba(255, 255, 255, 0.04); }
.lab-result-box.is-right { border: 1px solid rgba(var(--lab-ok), 0.45); }
.lab-result-box.is-wrong { border: 1px solid rgba(var(--lab-warn), 0.5); }
.lab-result-marks { font-weight: 700; color: #f8fafc; }
.lab-result-reason { margin: 0.35rem 0 0; font-size: 0.88rem; color: #cbd5e1; white-space: pre-wrap; }
.lab-solution { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; color: #cbd5e1; }
.lab-solution p { margin: 0.3rem 0 0; }

@media (max-width: 900px) {
  .lab-packs-grid, .lab-player { grid-template-columns: minmax(0, 1fr); }
  .lab-player-side { position: static; }
  .lab-frame { height: 70vh; }
}

.lab-tutor { margin-left: auto; }

/* ── lab tests (Plan 17) ───────────────────────────────────────────────────── */
.lab-timer {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(var(--lab-accent), 0.35);
  border-radius: 0.8rem;
  background: rgba(var(--lab-accent), 0.08);
}
.lab-timer-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.lab-timer-value { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #f8fafc; }
.lab-timer.is-low { border-color: rgba(var(--lab-warn), 0.7); background: rgba(var(--lab-warn), 0.12); }
.lab-timer.is-low .lab-timer-value { color: #fcd34d; }
.lab-results-card { margin: 0 0 1rem; }
.lab-results-title { font-weight: 500; letter-spacing: 0; text-transform: none; color: #cbd5e1; }
.lab-table-wrap { overflow-x: auto; }
.lab-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; color: #cbd5e1; }
.lab-table th { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.7rem; font-weight: 600; text-align: left; color: #94a3b8; }
.lab-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; }
.lab-state--in_progress { color: #fcd34d; }
.lab-state--finished { color: #6ee7b7; }
.lab-state--not_started { color: #64748b; }

/* ── duels and class competitions (Plan 18) ───────────────────────────────── */
.lab-duel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: 1.25rem; }
.lab-duel-grid .lab-card { margin: 0; }
.lab-duel-stage { display: grid; gap: 0.8rem; min-height: 22rem; }
.lab-duel-q { display: grid; gap: 0.8rem; }
.lab-duel-direction { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.lab-duel-prompt { font-size: 1.05rem; line-height: 1.55; color: #f1f5f9; }
.lab-duel-prompt p { margin: 0 0 0.4rem; }
.lab-duel-prompt img { max-width: 100%; height: auto; border-radius: 0.4rem; background: #fff; }
.lab-duel-term { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; text-align: center; color: #f8fafc; }
.lab-duel-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.lab-duel-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.6rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.lab-duel-option:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.lab-duel-option:disabled { cursor: default; }
.lab-duel-option p { display: inline; margin: 0; }
.lab-duel-letter {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  font-weight: 800;
  color: #0b1120;
}
.lab-duel-option--A .lab-duel-letter { background: rgb(251, 113, 133); }
.lab-duel-option--B .lab-duel-letter { background: rgb(96, 165, 250); }
.lab-duel-option--C .lab-duel-letter { background: rgb(251, 191, 36); }
.lab-duel-option--D .lab-duel-letter { background: rgb(52, 211, 153); }
.lab-duel-option--E .lab-duel-letter { background: rgb(167, 139, 250); }
.lab-duel-option-text { flex: 1 1 auto; min-width: 0; }
.lab-duel-option.is-picked { border-color: rgba(var(--lab-accent), 0.9); background: rgba(var(--lab-accent), 0.16); }
.lab-duel-option.is-key { border-color: rgb(var(--lab-ok)); background: rgba(var(--lab-ok), 0.16); }
.lab-duel-option.is-wrong { border-color: rgb(var(--lab-bad)); background: rgba(var(--lab-bad), 0.12); }
.lab-duel-count { padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.8rem; font-weight: 700; }
.lab-duel-bar { height: 0.45rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.lab-duel-bar > span { display: block; height: 100%; background: rgb(var(--lab-accent)); transition: width 0.2s linear; }
.lab-duel-status { margin: 0; font-size: 1rem; font-weight: 600; color: #e2e8f0; }
.lab-duel-teams { margin: 0; font-weight: 700; color: #e2e8f0; }
.lab-team { padding: 0.08rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.lab-team--A { background: rgba(251, 113, 133, 0.2); color: #fda4af; }
.lab-team--B { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }
.lab-leaderboard { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.lab-leader { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.04); font-size: 0.9rem; color: #e2e8f0; }
.lab-leader.is-me { outline: 2px solid rgba(var(--lab-accent), 0.7); }
.lab-leader-rank { min-width: 2rem; font-weight: 800; color: #c4b5fd; }
.lab-leader-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-leader-points { font-weight: 700; font-variant-numeric: tabular-nums; }
.lab-leaderboard--big .lab-leader { padding: 0.7rem 1rem; font-size: clamp(1.1rem, 2vw, 1.6rem); }
.lab-duel-row { display: grid; gap: 0.4rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.lab-duel-row p { margin: 0; font-size: 0.88rem; color: #e2e8f0; }
.lab-duel-result--win { color: #6ee7b7 !important; }
.lab-duel-result--lose { color: #fda4af !important; }
.lab-duel-mates { display: grid; gap: 0.35rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.lab-duel-mates li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; color: #e2e8f0; }
.lab-duel-card { margin: 0 0 1rem; }
.lab-duel-live { display: grid; gap: 0.4rem; margin: 0.4rem 0 0.6rem; }
.lab-duel-question .lab-duel-prompt { font-size: 0.95rem; }
.lab-duel-teacher-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.lab-duel-teacher-options li { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.03); }
.lab-duel-teacher-options li.is-key { outline: 2px solid rgb(var(--lab-ok)); }
.lab-duel-teacher-options p { display: inline; margin: 0; }
.lab-duel-meta { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.lab-proj-question { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.lab-proj-question .lab-duel-prompt { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.lab-proj-question .lab-duel-option { min-height: 5rem; font-size: clamp(1.1rem, 2vw, 1.6rem); }
@media (max-width: 900px) {
  .lab-duel-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-duel-options, .lab-duel-teacher-options { grid-template-columns: minmax(0, 1fr); }
}

/* The start page's list of what a session can do: the lab's features are otherwise only visible
   once a session is running. */
.lab-features { display: grid; gap: 0.4rem; margin: 0.6rem 0 0; padding-left: 1.15rem; list-style: disc; color: rgb(203, 213, 225); font-size: 0.9rem; line-height: 1.5; }
.lab-features li::marker { color: rgb(167, 139, 250); }
/* ── supervision status pills (roadmap Plan 20) ──────────────────────────── */
.lab-status--muted, .lab-status--ok, .lab-status--warn, .lab-status--bad {
  justify-self: start;
  padding: 0.1rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.lab-status--muted { border-color: rgba(255, 255, 255, 0.12); color: #94a3b8; }
.lab-status--ok { border-color: rgba(var(--lab-ok), 0.45); background: rgba(var(--lab-ok), 0.12); color: #6ee7b7; }
.lab-status--warn { border-color: rgba(var(--lab-warn), 0.5); background: rgba(var(--lab-warn), 0.1); color: #fcd34d; }
.lab-status--bad { border-color: rgba(var(--lab-bad), 0.55); background: rgba(var(--lab-bad), 0.12); color: #fda4af; }
.lab-btn--ghost { background: transparent; }
.lab-btn--danger { border-color: rgba(var(--lab-bad), 0.5); background: rgba(var(--lab-bad), 0.14); color: #fecdd3; }

/* ── the Supervise tab ───────────────────────────────────────────────────── */
.supervise-panel { display: grid; gap: 1rem; }
.sv-live { display: grid; gap: 0.8rem; }
.sv-live-head { display: grid; gap: 0.5rem; }
.sv-live-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: #f8fafc; }
.sv-live-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgb(var(--lab-ok)); animation: lab-pulse 2s infinite; }
.sv-live-meta { font-size: 0.78rem; font-weight: 500; color: #94a3b8; }
.sv-counts { margin: 0; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; }
.sv-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sv-start { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 0.7rem 0.9rem; }
.sv-start-summary { cursor: pointer; font-size: 0.95rem; font-weight: 600; color: #f1f5f9; }
.sv-form { display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.7rem; }
.sv-field { display: grid; gap: 0.3rem; }
.sv-hint { font-size: 0.7rem; color: #94a3b8; }
.sv-checks { display: grid; gap: 0.4rem; margin: 0; padding: 0.6rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.8rem; }
.sv-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #cbd5e1; }
.sv-check input { width: 1.05rem; height: 1.05rem; }
.sv-allowed { margin-top: 0.3rem; }
.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.sv-error { font-size: 0.82rem; font-weight: 600; color: #fda4af; }
.sv-recent { display: grid; gap: 0.5rem; }
.sv-recent-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sv-recent-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.sv-recent-meta { font-size: 0.75rem; color: #94a3b8; }

/* ── the target picker (shared with the assignment form) ─────────────────── */
.target-picker { display: grid; gap: 0.55rem; padding: 0.7rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; }
.tp-count { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: #a5b4fc; }
.tp-modes { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tp-mode { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #cbd5e1; cursor: pointer; }
.tp-class-row { display: grid; gap: 0.3rem; }
.tp-list { display: grid; gap: 0.6rem; max-height: 17rem; overflow-y: auto; padding-right: 0.2rem; }
.tp-group { display: grid; gap: 0.25rem; }
.tp-group-head { display: flex; align-items: center; gap: 0.6rem; }
.tp-group-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #94a3b8; }
.tp-link { border: 0; background: none; color: #a5b4fc; font: inherit; font-size: 0.75rem; cursor: pointer; }
.tp-student { display: flex; align-items: center; gap: 0.45rem; min-height: 2.1rem; padding: 0.15rem 0.35rem; border-radius: 0.5rem; font-size: 0.86rem; color: #e2e8f0; cursor: pointer; }
.tp-student:hover { background: rgba(255, 255, 255, 0.05); }
.tp-student input { width: 1.05rem; height: 1.05rem; }
.tp-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #475569; }
.tp-dot.is-online { background: rgb(var(--lab-ok)); }
.tp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-busy { margin-left: auto; font-size: 0.7rem; color: #fcd34d; }
.tp-empty { margin: 0; font-size: 0.82rem; color: #94a3b8; }

/* Every class above sets `display`, which beats the UA's `[hidden] { display: none }` — the
   trap this repo has hit before (13-account.css:117). Make `hidden` authoritative. */
.sv-live[hidden],
.tp-list[hidden],
.tp-class-row[hidden],
.tp-empty[hidden],
.tp-count[hidden],
.lab-banner-top[hidden],
.lab-status[hidden],
.sv-error[hidden] { display: none; }

@media (max-width: 640px) {
  /* Touch targets: 44 px everywhere a finger lands (the checkbox rows are labels, so the row
     is the target, not the box). */
  .sv-toolbar .lab-btn,
  .sv-live .lab-tile-actions .lab-btn { flex: 1 1 auto; min-height: 2.75rem; }
  .tp-student, .tp-mode, .sv-check { min-height: 2.75rem; }
  .tp-mode, .sv-check { align-items: center; }
  .lab-tiles { grid-template-columns: 1fr; }
}

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .lab-card{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .lab-h2{color:rgb(61 75 94)}
html[data-theme="light"] .lab-field{color:rgb(48 65 85)}
html[data-theme="light"] .lab-field > span,html[data-theme="light"] .lab-field > legend{color:rgb(61 75 94)}
html[data-theme="light"] .lab-input{border:1px solid rgb(15 23 42/0.168);background-color:rgb(250 251 252/0.55);color:rgb(44 63 88)}
html[data-theme="light"] .lab-check,html[data-theme="light"] .lab-radio{color:rgb(48 65 85)}
html[data-theme="light"] .lab-hint{color:rgb(61 75 94)}
html[data-theme="light"] .lab-hint a{color:rgb(28 0 132)}
html[data-theme="light"] .lab-status{color:rgb(61 75 94)}
html[data-theme="light"] .lab-btn{border:1px solid rgb(15 23 42/0.196);background-color:rgb(15 23 42/0.05);color:rgb(44 63 88)}
html[data-theme="light"] .lab-btn:hover{background-color:rgb(15 23 42/0.1)}
html[data-theme="light"] .lab-btn--primary{color:rgb(27 3 130)}
html[data-theme="light"] .lab-btn--danger{color:rgb(133 0 16)}
html[data-theme="light"] .lab-file-name{color:rgb(61 75 94)}
html[data-theme="light"] .lab-pill{border:1px solid rgb(15 23 42/0.168);color:rgb(61 75 94)}
html[data-theme="light"] .lab-pill--live{color:rgb(16 111 73)}
html[data-theme="light"] .lab-sessions li{border-top:1px solid rgb(15 23 42/0.084);color:rgb(61 75 94)}
html[data-theme="light"] .lab-sessions a{color:rgb(44 63 88)}
html[data-theme="light"] .lab-eyebrow{color:rgb(28 0 132)}
html[data-theme="light"] .lab-board-title h1{color:rgb(38 66 94)}
html[data-theme="light"] .lab-board-meta{color:rgb(61 75 94)}
html[data-theme="light"] .lab-ended{color:rgb(133 0 16)}
html[data-theme="light"] .lab-tile{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .lab-tile-shot{background-color:rgb(250 251 252/0.6)}
html[data-theme="light"] .lab-tile-noshot{color:rgb(87 101 122)}
html[data-theme="light"] .lab-tile-name{color:rgb(38 66 94)}
html[data-theme="light"] .lab-tile-count{color:rgb(133 0 16)}
html[data-theme="light"] .lab-chip{border:1px solid rgb(15 23 42/0.14);color:rgb(61 75 94)}
html[data-theme="light"] .lab-chip--ok{color:rgb(16 111 73)}
html[data-theme="light"] .lab-chip--warn{color:rgb(126 96 0)}
html[data-theme="light"] .lab-tile-page{color:rgb(61 75 94)}
html[data-theme="light"] .lab-empty{color:rgb(61 75 94)}
html[data-theme="light"] .lab-ev{background-color:rgb(15 23 42/0.02);color:rgb(48 65 85)}
html[data-theme="light"] .lab-ev-time{color:rgb(87 101 122)}
html[data-theme="light"] .lab-ev-who{color:rgb(38 66 94)}
html[data-theme="light"] .lab-ev-url{color:rgb(87 101 122)}
html[data-theme="light"] .lab-ev-link{color:rgb(28 0 132)}
html[data-theme="light"] .lab-msg{background-color:rgb(15 23 42/0.05);color:rgb(44 63 88)}
html[data-theme="light"] .lab-msg-meta{color:rgb(61 75 94)}
html[data-theme="light"] .lab-msg-file a{color:rgb(28 0 132)}
html[data-theme="light"] .lab-detail{background-color:rgb(250 251 252/0.72)}
html[data-theme="light"] .lab-detail-panel{border:1px solid rgb(15 23 42/0.14);background-color:rgb(247 248 251)}
html[data-theme="light"] .lab-detail-head h2{color:rgb(38 66 94)}
html[data-theme="light"] .lab-shot img{background-color:rgb(250 251 252/0.6)}
html[data-theme="light"] .lab-shot figcaption{color:rgb(61 75 94)}
html[data-theme="light"] .lab-proj-head h1{color:rgb(38 66 94)}
html[data-theme="light"] .lab-proj-count{color:rgb(61 75 94)}
html[data-theme="light"] .lab-proj-tile{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.03);color:rgb(87 101 122)}
html[data-theme="light"] .lab-proj-tile.is-online{color:rgb(38 66 94)}
html[data-theme="light"] .lab-root,html[data-theme="light"] .lab-toasts{color:rgb(44 63 88)}
html[data-theme="light"] .lab-banner-top{background-color:rgb(244 245 249/0.96);box-shadow:0 4px 18px rgb(0 0 0/0.122);color:rgb(48 65 85)}
html[data-theme="light"] .lab-banner-btn{color:rgb(126 96 0)}
html[data-theme="light"] .lab-cover{background-color:rgb(250 251 252/0.72)}
html[data-theme="light"] .lab-cover-text{color:rgb(38 66 94)}
html[data-theme="light"] .lab-modal{background-color:rgb(250 251 252/0.6)}
html[data-theme="light"] .lab-modal-box{background-color:rgb(244 245 249);box-shadow:0 20px 60px rgb(0 0 0/0.193)}
html[data-theme="light"] .lab-modal-title{color:rgb(38 66 94)}
html[data-theme="light"] .lab-modal-body{color:rgb(48 65 85)}
html[data-theme="light"] .lab-toast{background-color:rgb(235 235 245);box-shadow:0 10px 30px rgb(0 0 0/0.158);color:rgb(27 3 130)}
html[data-theme="light"] .lab-share-page{background-color:rgb(247 248 251);color:rgb(44 63 88)}
html[data-theme="light"] .lab-share p{color:rgb(61 75 94)}
html[data-theme="light"] .lab-share .lab-warn-text{color:rgb(126 96 0)}
html[data-theme="light"] .lab-pack-list li{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.02)}
html[data-theme="light"] .lab-pack-name{color:rgb(38 66 94)}
html[data-theme="light"] .lab-pack-meta{color:rgb(61 75 94)}
html[data-theme="light"] .lab-block{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .lab-block::before{color:rgb(28 0 132)}
html[data-theme="light"] .lab-block-title{color:rgb(44 63 88)}
html[data-theme="light"] .lab-kind{color:rgb(28 0 132)}
html[data-theme="light"] .lab-tab[aria-selected="true"]{color:rgb(27 3 130)}
html[data-theme="light"] .lab-result{background-color:rgb(15 23 42/0.02);color:rgb(48 65 85)}
html[data-theme="light"] .lab-result-title{color:rgb(44 63 88)}
html[data-theme="light"] .lab-result-meta{color:rgb(61 75 94)}
html[data-theme="light"] .lab-player-name{color:rgb(38 66 94)}
html[data-theme="light"] .lab-player-bar{background-color:rgb(15 23 42/0.08)}
html[data-theme="light"] .lab-step{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.02);color:rgb(48 65 85)}
html[data-theme="light"] .lab-step:hover{background-color:rgb(15 23 42/0.05)}
html[data-theme="light"] .lab-step.is-current{color:rgb(38 66 94)}
html[data-theme="light"] .lab-step-mark{border:1px solid rgb(15 23 42/0.308)}
html[data-theme="light"] .lab-stage-head h1{color:rgb(38 66 94)}
html[data-theme="light"] .lab-stage-step{color:rgb(61 75 94)}
html[data-theme="light"] .lab-frame{border:1px solid rgb(15 23 42/0.112);background-color:rgb(247 248 251)}
html[data-theme="light"] .lab-frame-open{color:rgb(61 75 94)}
html[data-theme="light"] .lab-note{color:rgb(44 63 88)}
html[data-theme="light"] .lab-banner{color:rgb(126 96 0)}
html[data-theme="light"] .lab-item{border:1px solid rgb(15 23 42/0.112);background-color:rgb(15 23 42/0.03);color:rgb(44 63 88)}
html[data-theme="light"] .lab-item-option label{border:1px solid rgb(15 23 42/0.14)}
html[data-theme="light"] .lab-item-option label:hover{background-color:rgb(15 23 42/0.04)}
html[data-theme="light"] .lab-item-letter{color:rgb(28 0 132)}
html[data-theme="light"] .lab-result-box{background-color:rgb(15 23 42/0.04)}
html[data-theme="light"] .lab-result-marks{color:rgb(38 66 94)}
html[data-theme="light"] .lab-result-reason{color:rgb(48 65 85)}
html[data-theme="light"] .lab-solution{border-top:1px solid rgb(15 23 42/0.112);color:rgb(48 65 85)}
html[data-theme="light"] .lab-timer-label{color:rgb(61 75 94)}
html[data-theme="light"] .lab-timer-value{color:rgb(38 66 94)}
html[data-theme="light"] .lab-timer.is-low .lab-timer-value{color:rgb(126 96 0)}
html[data-theme="light"] .lab-results-title{color:rgb(48 65 85)}
html[data-theme="light"] .lab-table{color:rgb(48 65 85)}
html[data-theme="light"] .lab-table th{border-bottom:1px solid rgb(15 23 42/0.14);color:rgb(61 75 94)}
html[data-theme="light"] .lab-table td{border-bottom:1px solid rgb(15 23 42/0.07)}
html[data-theme="light"] .lab-state--in_progress{color:rgb(126 96 0)}
html[data-theme="light"] .lab-state--finished{color:rgb(16 111 73)}
html[data-theme="light"] .lab-state--not_started{color:rgb(87 101 122)}
html[data-theme="light"] .lab-duel-direction{color:rgb(61 75 94)}
html[data-theme="light"] .lab-duel-prompt{color:rgb(38 66 94)}
html[data-theme="light"] .lab-duel-term{color:rgb(38 66 94)}
html[data-theme="light"] .lab-duel-option{border:2px solid rgb(15 23 42/0.14);background-color:rgb(15 23 42/0.04);color:rgb(38 66 94)}
html[data-theme="light"] .lab-duel-option:hover:not(:disabled){background-color:rgb(15 23 42/0.08)}
html[data-theme="light"] .lab-duel-count{background-color:rgb(15 23 42/0.1)}
html[data-theme="light"] .lab-duel-bar{background-color:rgb(15 23 42/0.08)}
html[data-theme="light"] .lab-duel-status{color:rgb(44 63 88)}
html[data-theme="light"] .lab-duel-teams{color:rgb(44 63 88)}
html[data-theme="light"] .lab-team--A{color:rgb(133 0 16)}
html[data-theme="light"] .lab-team--B{color:rgb(0 63 133)}
html[data-theme="light"] .lab-leader{background-color:rgb(15 23 42/0.04);color:rgb(44 63 88)}
html[data-theme="light"] .lab-leader-rank{color:rgb(28 0 132)}
html[data-theme="light"] .lab-duel-row{border-bottom:1px solid rgb(15 23 42/0.084)}
html[data-theme="light"] .lab-duel-row p{color:rgb(44 63 88)}
html[data-theme="light"] .lab-duel-result--win{color:rgb(16 111 73)!important}
html[data-theme="light"] .lab-duel-result--lose{color:rgb(133 0 16)!important}
html[data-theme="light"] .lab-duel-mates li{color:rgb(44 63 88)}
html[data-theme="light"] .lab-duel-teacher-options li{background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .lab-duel-meta{color:rgb(61 75 94)}
html[data-theme="light"] .lab-features{color:rgb(48 65 85)}
html[data-theme="light"] .lab-features li::marker{color:rgb(35 2 130)}
html[data-theme="light"] .lab-status--muted{border-color:rgb(15 23 42/0.168);color:rgb(61 75 94)}
html[data-theme="light"] .lab-status--ok{color:rgb(16 111 73)}
html[data-theme="light"] .lab-status--warn{color:rgb(126 96 0)}
html[data-theme="light"] .lab-status--bad{color:rgb(133 0 16)}
html[data-theme="light"] .lab-btn--danger{color:rgb(133 0 16)}
html[data-theme="light"] .sv-live-title{color:rgb(38 66 94)}
html[data-theme="light"] .sv-live-meta{color:rgb(61 75 94)}
html[data-theme="light"] .sv-counts{color:rgb(48 65 85)}
html[data-theme="light"] .sv-start{border:1px solid rgb(15 23 42/0.14)}
html[data-theme="light"] .sv-start-summary{color:rgb(38 66 94)}
html[data-theme="light"] .sv-hint{color:rgb(61 75 94)}
html[data-theme="light"] .sv-checks{border:1px solid rgb(15 23 42/0.14)}
html[data-theme="light"] .sv-check{color:rgb(48 65 85)}
html[data-theme="light"] .sv-error{color:rgb(133 0 16)}
html[data-theme="light"] .sv-recent-meta{color:rgb(61 75 94)}
html[data-theme="light"] .target-picker{border:1px solid rgb(15 23 42/0.14)}
html[data-theme="light"] .tp-count{color:rgb(1 24 131)}
html[data-theme="light"] .tp-mode{color:rgb(48 65 85)}
html[data-theme="light"] .tp-group-name{color:rgb(61 75 94)}
html[data-theme="light"] .tp-link{color:rgb(1 24 131)}
html[data-theme="light"] .tp-student{color:rgb(44 63 88)}
html[data-theme="light"] .tp-student:hover{background-color:rgb(15 23 42/0.05)}
html[data-theme="light"] .tp-busy{color:rgb(126 96 0)}
html[data-theme="light"] .tp-empty{color:rgb(61 75 94)}
/* ▲▲ LIGHT THEME END ▲▲ */
