@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;0,8..60,800;1,8..60,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');
/* live-class.css — the look of a live class page (Unit 3 onwards).
   Projector first: large type, strong contrast, calm motion. Every
   animation stops for readers who ask for reduced motion. */
:root
{
  --ink: #0F172A;
  --ink-2: #0F172A;
  --soft: #0F172A;
  --line: #E2E8F0;
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --blue: #1B4F8A;
  --blue-2: #2563EB;
  --blue-t: #EFF5FF;
  --orange: #E76F00;
  --orange-t: #FFF4E8;
  --teal: #0F766E;
  --teal-t: #E8F7F4;
  --rose: #BE123C;
  --rose-t: #FFF1F3;
  --gold: #B7791F;
  --gold-t: #FFF8E6;
  --violet: #6D28D9;
  --r: 18px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
}

*
{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden]
{
  display: none !important;
}

html
{
  scroll-behavior: smooth;
}

body
{
  font-family: "Source Serif 4", Georgia, serif;
  font-size: calc(clamp(15.5px, 0.42vw + 12.5px, 19px) * var(--fs, 1));
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* code fonts must never join == or != into one symbol: beginners read each character */
code,
pre,
.lc-svg-mono,
.lc-code-val,
.lc-clock,
.jr-space
{
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

/* the fuller write-up of a step (past questions with model answers, interview corners):
   never shown during the class; when the class ends it opens on the page of every student
   who was in it (the notes PDF was dropped, 26 Sep 2026 - the page is the review) */
.lc-notes-only
{
  display: none !important;
}
body.is-ended:not(.is-projector) .lc-notes-only
{
  display: block !important;
}

/* "Common doubts" and "Interview corner" as cards (live-class.js tags them; instructor, 3 Oct 2026) */
.lc-qa
{
  margin: 22px 0 6px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--accent-t, #F1F5F9) 0, #fff 88px);
  max-width: 980px;
}
.lc-qa-interview
{
  background: linear-gradient(180deg, #FEF6E7 0, #fff 88px);
  border-color: #F3DFB6;
}
.lc-qa h3
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--accent-ink, var(--ink));
}
.lc-qa-interview h3
{
  color: #8A5A10;
}
.lc-qa-badge
{
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent, var(--teal));
  color: #fff;
  font: 800 15px/1 "Plus Jakarta Sans", sans-serif;
}
.lc-qa-interview .lc-qa-badge
{
  background: var(--gold);
}
.lc-qa-list
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.lc-qa-card
{
  padding: 12px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.lc-qa .lc-qa-q
{
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 6px;
  font: 700 15.5px/1.45 "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
}
.lc-qa-n
{
  flex: none;
  margin-top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-t, #E2E8F0);
  color: var(--accent-ink, var(--ink));
  font: 700 11.5px/1 "Plus Jakarta Sans", sans-serif;
}
.lc-qa-interview .lc-qa-n
{
  background: #FDECC8;
  color: #8A5A10;
}
.lc-qa .lc-qa-a
{
  margin: 0 0 0 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}
@media (max-width: 640px)
{
  .lc-qa { padding: 14px 12px 14px; }
  .lc-qa-list { grid-template-columns: 1fr; }
  .lc-qa .lc-qa-a { margin-left: 0; }
}

/* the projector shows results, never an answer box (nor the words to tap, nor "Something else") */
.is-projector .lc-cloud-in,
.is-projector .lc-cloud-pick,
.is-projector .lc-cloud-own
{
  display: none;
}

.is-projector .lc-opt
{
  cursor: default;
}

code
{
  font-family: var(--mono);
  font-size: .88em;
  background: var(--blue-t);
  color: var(--blue);
  padding: 1px 7px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.wrap
{
  width: min(1560px, calc(100vw - 32px));
  margin: 0 auto;
}

/* ----- top bar ----- */
.lc-bar
{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, .96);
  color: #fff;
  backdrop-filter: blur(6px);
}

.lc-bar-in
{
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.lc-brand
{
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}

.lc-brand small
{
  display: block;
  font-weight: 600;
  font-size: 11.5px;
  color: #94A3B8;
}

.lc-logo
{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #F59E0B);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.lc-status
{
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-status.on::before
{
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34D399;
  animation: lcPulse 1.8s ease-in-out infinite;
}

@keyframes lcPulse
{
  50%
  {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, .25);
  }
}

.lc-who
{
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
}

.lc-track
{
  height: 7px;
  background: #1E293B;
}

.lc-track i
{
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #F59E0B, #34D399);
  transition: width .6s ease;
}

/* projector-only pieces in the bar */
.lc-pj
{
  display: none;
}

.is-projector .lc-pj
{
  display: flex;
}

.is-projector .lc-st
{
  display: none;
}

.lc-code-box
{
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 6px 14px 8px;
  position: relative;
  overflow: hidden;
}

.lc-code-box.closed
{
  opacity: .5;
}

.lc-code-val
{
  font-family: var(--mono);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .18em;
  line-height: 1.1;
}

.lc-code-note
{
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  max-width: 190px;
  line-height: 1.3;
}

.lc-code-left
{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--orange);
  transition: width 1s linear;
}

.lc-meter
{
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.lc-clock
{
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.lc-pace
{
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.lc-pace.ok
{
  background: #064E3B;
  color: #A7F3D0;
}

.lc-pace.warn
{
  background: #78350F;
  color: #FDE68A;
}

.lc-pace.late
{
  background: #7F1D1D;
  color: #FECACA;
}

.lc-chip-btn
{
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid #475569;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.lc-chip-btn:hover
{
  border-color: #CBD5E1;
}

/* ----- the class ----- */
.lc-hero
{
  padding: clamp(28px, 5vw, 64px) 0 10px;
}

.lc-kicker
{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

.lc-hero h1
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: calc(clamp(34px, 4.6vw, 62px) * var(--fs, 1));
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 10px 0 12px;
}

.lc-hero p
{
  color: var(--ink-2);
  max-width: 60ch;
}

.lc-step
{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 38px);
  margin: 22px 0;
  scroll-margin-top: 90px;
  position: relative;
}

.lc-step.seen
{
  animation: lcIn .55s cubic-bezier(.22, .9, .3, 1);
}

@keyframes lcIn
{
  from
  {
    opacity: 0;
    transform: translateY(22px);
  }
}

.lc-part
{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-t);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.lc-step h2
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: calc(clamp(26px, 2.6vw, 38px) * var(--fs, 1));
  line-height: 1.15;
  margin-bottom: 10px;
}

.lc-step h3
{
  font-size: calc(clamp(19px, 1.4vw, 23px) * var(--fs, 1));
  font-weight: 800;
  margin: 18px 0 8px;
}

.lc-step p
{
  margin: 8px 0;
  max-width: 68ch;
}

/* the opening of a class: the situation students already know, then what today answers */
.lc-hero .lc-story
{
  font-size: calc(clamp(17px, 1vw + 13px, 21px) * var(--fs, 1));
  line-height: 1.55;
  max-width: 62ch;
  margin: 10px 0 0;
}

.lc-hero .lc-ask
{
  font-size: calc(clamp(16px, .8vw + 13px, 19px) * var(--fs, 1));
  line-height: 1.55;
  max-width: 62ch;
  margin: 12px 0 2px;
  padding: 12px 16px 12px 18px;
  border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--orange-t, #FFF7ED);
}

.lc-hero .lc-ask b
{
  font-weight: 800;
}

.lc-big-idea
{
  font-size: calc(clamp(21px, 1.8vw, 28px) * var(--fs, 1));
  font-weight: 700;
  line-height: 1.35;
  border-left: 6px solid var(--orange);
  padding: 6px 0 6px 18px;
  margin: 14px 0;
  max-width: 34ch;
}

.lc-remember
{
  background: var(--teal-t);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 14px 0;
  font-weight: 600;
}

.lc-remember b:first-child
{
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.lc-warn
{
  background: var(--rose-t);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 14px 0;
}

.lc-warn b:first-child
{
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 4px;
}

.lc-two
{
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* a program beside a picture: a little smaller so no line has to scroll */
.lc-two .lc-code pre,
.lc-two .lc-console-body
{
  font-size: calc(clamp(14px, 0.46vw + 10.5px, 17.5px) * var(--fs, 1));
}

@media (max-width: 860px)
{
  .lc-two
  {
    grid-template-columns: 1fr;
  }
}

/* two programs side by side (wrong and right, before and after): half the width each, so the
   second is not squeezed into the picture's narrow column; stacked where half is too narrow
   for a short line to fit without scrolling (instructor, 29 Sep 2026) */
.lc-two:has(> .lc-code + .lc-code),
.lc-two:has(> div:first-child > .lc-code):has(> div:nth-child(2) > .lc-code)
{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1180px)
{
  .lc-two:has(> .lc-code + .lc-code),
.lc-two:has(> div:first-child > .lc-code):has(> div:nth-child(2) > .lc-code)
  {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lc-cards
{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 860px)
{
  .lc-cards
  {
    grid-template-columns: 1fr;
  }
}

.lc-card
{
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.lc-step.seen .lc-card
{
  animation: lcIn .5s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-step.seen .lc-card:nth-child(2)
{
  animation-delay: .25s;
}

.lc-step.seen .lc-card:nth-child(3)
{
  animation-delay: .5s;
}

.lc-card .lc-icon
{
  font-size: 30px;
  line-height: 1;
}

.lc-card b
{
  display: block;
  margin: 8px 0 4px;
  font-size: 1.05em;
}

.lc-card span
{
  color: var(--ink-2);
  font-size: .95em;
}

/* ----- programs and consoles ----- */
.lc-code
{
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  background: #fff;
}

.lc-code-head
{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EEF2F7;
  border-bottom: 1px solid #D5DDE8;
  padding: 7px 14px;
}

.lc-dots
{
  width: 42px;
  height: 11px;
  background: radial-gradient(circle at 5px 5.5px, #F87171 4.5px, transparent 5px), radial-gradient(circle at 20px 5.5px, #FBBF24 4.5px, transparent 5px), radial-gradient(circle at 35px 5.5px, #34D399 4.5px, transparent 5px);
}

.lc-file
{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.lc-code pre
{
  font-family: var(--mono);
  font-size: calc(clamp(14.5px, 0.5vw + 11px, 18px) * var(--fs, 1));
  line-height: 1.6;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}

/* a long line scrolls sideways on a phone; its number stays pinned at the left
   edge (the line box spans the whole scroll width so the pin holds to the end) */
.lc-code .ln
{
  display: inline-block;
  box-sizing: content-box;
  width: var(--gut, 2.2em);
  /* the orange edge of a lit line sits in this gap, never over the code's first letter */
  padding-right: .7em;
  color: #94A3B8;
  user-select: none;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  background-clip: content-box;
}

.lc-code pre .cl
{
  min-width: 100%;
  width: max-content;
}

/* bright, readable code colours (the same in the PDF notes) */
.hl-k { color: #7C3AED; font-weight: 700; }
.hl-t { color: #0E7490; font-weight: 700; }
.hl-s { color: #C2410C; }
.hl-n { color: #15803D; font-weight: 700; }
.hl-c { color: #166534; font-style: italic; }
.hl-m { color: #1D4ED8; }
.hl-v { color: #0F172A; }
.hl-ln { color: #94A3B8; user-select: none; }
.hl-b { color: #B45309; font-weight: 800; }
/* SQL, coloured by what a word does (js/dbms/sql-runner.js, SQL_WORDS): every keyword dark and bold, one colour per
   family (instructor, 6 Nov 2026: "coloured keywords for different categories, dark and bold, in labs and regular
   classes"); no teal green (same day) */
.hl-ddl { color: #6D28D9; font-weight: 800; }
.hl-dml { color: #1D4ED8; font-weight: 800; }
.hl-dcl { color: #BE123C; font-weight: 800; }
.hl-tcl { color: #C2410C; font-weight: 800; }
.hl-plsql { color: #15803D; font-weight: 800; }
.hl-clause { color: #1E293B; font-weight: 800; }
.hl-op { color: #A21CAF; font-weight: 800; }
.hl-fn { color: #A16207; font-weight: 800; }
.hl-type { color: #0369A1; font-weight: 800; }
.hl-blank { color: #B45309; background: #FEF3C7; border-radius: 3px; font-weight: 800; }
.hl-str { color: #7C2D12; }
.hl-num { color: #475569; }
.hl-note { color: #64748B; font-style: italic; }

.lc-console
{
  /* light, like every code panel (instructor, 27 Sep 2026: "don't use dark background for
     outputs or snippets") */
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  color: #0F172A;
}

.lc-console-head
{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #64748B;
  padding: 8px 16px 0;
}

.lc-console-body
{
  font-family: var(--mono);
  font-size: calc(clamp(14.5px, 0.5vw + 11px, 18px) * var(--fs, 1));
  line-height: 1.55;
  padding: 6px 16px 14px;
  min-height: 3.4em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.lc-cmd
{
  color: #15803D;
  font-weight: 700;
}

.lc-line
{
  animation: lcType .3s ease-out;
}

@keyframes lcType
{
  from
  {
    opacity: 0;
    transform: translateX(-6px);
  }
}

/* ----- pictures ----- */
.lc-figure
{
  margin: 14px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #F8FAFF, #FFFFFF);
  border: 1px solid var(--line);
  padding: 12px;
}

.lc-figure svg
{
  width: 100%;
  height: auto;
  display: block;
}

/* phones: a picture shrunk to the screen had 5px text, so it keeps a readable size and the
   picture box scrolls sideways instead (instructor, 26 Sep 2026: "letting pictures scroll
   sideways on phones"); the page itself never scrolls sideways */
@media (max-width: 600px)
{
  .lc-figure
  {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .lc-figure svg
  {
    min-width: 640px;
  }
}

.lc-figure figcaption
{
  text-align: center;
  font-size: .9em;
  color: var(--soft);
  font-weight: 600;
  margin-top: 6px;
}

.lc-svg-text
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lc-svg-mono
{
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* build-ups inside a picture: .pop (appears), .draw (a line that draws itself) */
.lc-step.seen .pop
{
  animation: lcPop .5s cubic-bezier(.3, 1.4, .5, 1) both;
}

.lc-step.seen .draw
{
  stroke-dasharray: 400;
  animation: lcDraw 1s ease-out both;
}

.lc-step.seen .fade-late
{
  animation: lcFadeLate 3.2s ease-in both;
}

@keyframes lcPop
{
  from
  {
    opacity: 0;
    transform: scale(.4);
  }
}

@keyframes lcDraw
{
  from
  {
    stroke-dashoffset: 400;
  }
  to
  {
    stroke-dashoffset: 0;
  }
}

@keyframes lcFadeLate
{
  0%
  {
    opacity: 0;
  }
  25%
  {
    opacity: 1;
  }
  75%
  {
    opacity: 1;
  }
  100%
  {
    opacity: .28;
  }
}

.pop
{
  transform-box: fill-box;
  transform-origin: center;
}

.d1 { animation-delay: .15s !important; }
.d2 { animation-delay: .45s !important; }
.d3 { animation-delay: .75s !important; }
.d4 { animation-delay: 1.05s !important; }
.d5 { animation-delay: 1.35s !important; }
.d6 { animation-delay: 1.65s !important; }
.d7 { animation-delay: 1.95s !important; }
.d8 { animation-delay: 2.4s !important; }

/* ----- activities ----- */
.lc-act
{
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, var(--orange-t), #FFFFFF 60%);
  border-radius: var(--r);
  padding: 18px 20px 16px;
  margin: 14px 0 4px;
}

.lc-act-head
{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lc-act-tag
{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
}

.lc-act-time
{
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}

.lc-timer
{
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 20px;
  color: var(--orange);
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 0 10px;
}

.lc-q
{
  font-size: calc(clamp(19px, 1.5vw, 24px) * var(--fs, 1));
  font-weight: 800;
  line-height: 1.35;
  margin: 4px 0 10px;
}

.lc-opts
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* choices that are lines of code: one per row where two per row would make a line scroll
   (instructor, 29 Sep 2026) */
@media (max-width: 1320px)
{
  .lc-opts:has(.lc-opt-body pre)
  {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px)
{
  .lc-opts
  {
    grid-template-columns: 1fr;
  }
}

.lc-opt
{
  font: inherit;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, transform .15s, background .15s;
  min-width: 0;
}

.lc-opt:hover:not(:disabled)
{
  border-color: var(--blue-2);
  transform: translateY(-2px);
}

.lc-opt:disabled
{
  cursor: default;
}

.lc-opt.picked
{
  border-color: var(--blue-2);
  background: var(--blue-t);
}

.lc-opt.right
{
  border-color: var(--teal);
  background: var(--teal-t);
}

.lc-opt.wrong
{
  border-color: var(--rose);
  background: var(--rose-t);
}

.lc-opt-key
{
  font-family: var(--mono);
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 0 8px;
  flex: none;
}

.lc-opt.right .lc-opt-key
{
  background: var(--teal);
}

.lc-opt pre
{
  font-family: var(--mono);
  font-size: .9em;
  white-space: pre;
  overflow-x: auto;
}

.lc-opt svg
{
  width: 100%;
  height: auto;
  max-width: 320px;
}

.lc-opt-body
{
  min-width: 0;
  flex: 1;
}

.lc-act-note
{
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink-2);
}

/* Next pressed before the question was tried: the note asks for an answer, and is seen */
.lc-act-note.lc-nudge
{
  color: #9a3412;
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: 10px;
  padding: 8px 12px;
  animation: lc-nudge .45s ease-in-out 2;
}

@keyframes lc-nudge
{
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.lc-why
{
  background: var(--teal-t);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  font-weight: 600;
}

.lc-cloud-in
{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lc-cloud-in input
{
  font: inherit;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 0;
  flex: 1 1 220px;
}

.lc-cloud-in input:focus
{
  outline: none;
  border-color: var(--blue-2);
}

.lc-btn
{
  font: inherit;
  font-weight: 800;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
}

.lc-btn:hover:not(:disabled)
{
  background: #143D6B;
}

.lc-btn:disabled
{
  opacity: .5;
  cursor: default;
}

.lc-ghost
{
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  margin-top: 10px;
}

.lc-ghost:hover:not(:disabled)
{
  background: var(--blue-t);
}

.lc-results
{
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.lc-bar-row
{
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) 7em;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.lc-bar-key
{
  font-family: var(--mono);
  font-weight: 800;
}

.lc-bar-track
{
  height: 18px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.lc-bar-fill
{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  border-radius: 999px;
  transition: width .6s ease;
}

.lc-bar-n
{
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
}

.lc-count
{
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
  margin-top: 6px;
}

.lc-cloud
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  min-height: 120px;
  padding: 10px;
}

.lc-word
{
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  background: none;
  border: none;
  animation: lcPop .45s cubic-bezier(.3, 1.4, .5, 1) both;
}

button.lc-word
{
  cursor: pointer;
}

button.lc-word:hover
{
  text-decoration: line-through;
}

.lc-big
{
  font-weight: 700;
}

.lc-big b
{
  font-size: 44px;
  color: var(--teal);
}

.lc-act .jr-space
{
  margin-top: 14px;
}

/* ----- projector controls ----- */
.lc-controls
{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  gap: 8px;
  align-items: center;
}

.is-projector .lc-controls
{
  display: flex;
}

.lc-controls .lc-btn
{
  padding: 10px 14px;
}

.lc-act-go
{
  background: var(--orange);
}

.lc-act-go:hover:not(:disabled)
{
  background: #C25E00;
}

.lc-att
{
  position: fixed;
  right: 16px;
  top: 84px;
  z-index: 45;
  width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.lc-att h3
{
  font-size: 16px;
  font-weight: 800;
}

.lc-att-row
{
  display: grid;
  grid-template-columns: 12px 9.5em minmax(0, 1fr) 3.4em;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.lc-att-roll
{
  font-family: var(--mono);
  font-size: 12.5px;
}

.lc-att-name
{
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lc-att-time
{
  color: var(--soft);
  font-size: 13px;
}

.lc-dot
{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CBD5E1;
}

.lc-dot.on
{
  background: #10B981;
}

.lc-toast
{
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  max-width: min(640px, calc(100vw - 32px));
}

.lc-new
{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  font: inherit;
  font-weight: 800;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 10px 24px rgba(231, 111, 0, .35);
  cursor: pointer;
}

/* ----- join / start panels ----- */
.lc-panel
{
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, .66);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lc-panel-box
{
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  padding: clamp(20px, 3vw, 34px);
  width: min(520px, 100%);
}

.lc-panel-box h2
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.lc-panel-box label
{
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 12px 0 5px;
}

.lc-panel-box input
{
  font: inherit;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}

.lc-panel-box input:focus
{
  outline: none;
  border-color: var(--blue-2);
}

.lc-panel-box .lc-btn
{
  width: 100%;
  margin-top: 16px;
  padding: 12px;
}

.lc-join-msg
{
  min-height: 1.5em;
  margin-top: 10px;
  font-weight: 700;
  color: var(--rose);
  font-size: 15px;
}

.lc-small
{
  font-size: 14px;
  color: var(--soft);
}

.lc-ended
{
  background: var(--teal);
  color: #fff;
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 22px 0;
  font-weight: 700;
}

/* ----- the end, said plainly: one card at the top of the page, in view ----- */
.lc-done
{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ECFDF5;
  border: 2px solid #059669;
  border-radius: var(--r);
  padding: 20px 24px;
  margin: 18px 0 26px;
  box-shadow: 0 10px 28px -14px rgba(5, 150, 105, .55);
  animation: lcRise .5s ease-out both;
}

.lc-done-tick
{
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.lc-done-tick circle
{
  fill: #059669;
}

.lc-done-tick path
{
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lc-done .lc-kicker
{
  color: #047857;
  margin: 0 0 4px;
}

.lc-done h2
{
  margin: 0 0 8px;
  color: #064E3B;
}

.lc-done p
{
  margin: 4px 0 0;
  color: #1F2937;
}

.lc-status.lc-status-done
{
  color: #047857;
  font-weight: 800;
}

.lc-status.lc-status-done::before
{
  content: "✓ ";
}

/* the projector's last point is shown: End is the next thing to press */
.lc-end.lc-end-ready
{
  background: #BE123C;
  color: #fff;
  border-color: #BE123C;
  animation: lcEndPulse 1.6s ease-in-out infinite;
}

@keyframes lcEndPulse
{
  50%
  {
    box-shadow: 0 0 0 6px rgba(190, 18, 60, .22);
  }
}

@media (max-width: 600px)
{
  .lc-done
  {
    padding: 16px;
    gap: 12px;
  }

  .lc-done-tick
  {
    width: 40px;
    height: 40px;
  }
}

/* ----- self-study ----- */
.lc-self
{
  border-top: 3px dashed #CBD5E1;
  margin-top: 36px;
  padding-top: 18px;
}

.lc-self > h2
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: calc(clamp(28px, 3vw, 42px) * var(--fs, 1));
}

.lc-self details
{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 10px 0;
}

.lc-self summary
{
  cursor: pointer;
  font-weight: 800;
}

.lc-self details p,
.lc-self details ul
{
  margin-top: 8px;
}

.lc-self li
{
  margin-left: 22px;
}

.lc-foot
{
  text-align: center;
  color: var(--soft);
  font-size: 14px;
  padding: 40px 0 70px;
}

@media (prefers-reduced-motion: reduce)
{
  *,
  *::before,
  *::after
  {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Java inside a class: the output terminal gets the full width, below the editor ----- */
.lc-act .jr-grid,
.lc-self .jr-grid
{
  grid-template-columns: minmax(0, 1fr) !important;
}

.lc-act .jr-term,
.lc-self .jr-term
{
  border-left: none !important;
  border-top: 2px solid var(--ink);
}

.lc-act .jr-out,
.lc-self .jr-out
{
  min-height: 200px;
  max-height: 440px;
  font-size: calc(clamp(14px, 0.45vw + 10px, 17px) * var(--fs, 1));
}

/* ----- smart checker: the likely mistake, hints, and the projector's most common mistake ----- */
.jr-mistake
{
  background: #FFF7ED;
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
}

.jr-mistake-cap
{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--orange);
}

.jr-mistake-msg
{
  font-weight: 700;
  margin: 4px 0 6px;
}

.jr-hintbox
{
  background: var(--blue-t);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 8px 12px;
  margin: 8px 0;
}

.jr-hint-line
{
  margin: 3px 0;
}

.lc-top-mistake
{
  margin-top: 8px;
  background: #FFF7ED;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}

.lc-top-mistake b
{
  color: var(--orange);
}

/* ================================================================== */
/* Motion: every step builds up in order; everything stops for reduced motion */
/* ================================================================== */

/* the parts of a step arrive one after another: heading, idea, picture, program */
.lc-step.seen > *
{
  animation: lcRise .6s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-step.seen > *:nth-child(2) { animation-delay: .12s; }
.lc-step.seen > *:nth-child(3) { animation-delay: .28s; }
.lc-step.seen > *:nth-child(4) { animation-delay: .44s; }
.lc-step.seen > *:nth-child(5) { animation-delay: .6s; }
.lc-step.seen > *:nth-child(6) { animation-delay: .76s; }
.lc-step.seen > *:nth-child(n+7) { animation-delay: .9s; }

@keyframes lcRise
{
  from
  {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    filter: blur(4px);
  }
}

/* a program types in line by line, then the lines being explained glow in turn */
.lc-code .cl
{
  display: block;
  border-radius: 4px;
}

.lc-step.seen .lc-code .cl
{
  animation: lcLine .32s ease-out both;
  animation-delay: calc(var(--i) * 70ms + .45s);
}

.lc-step.seen .lc-code .cl.fl
{
  animation: lcLine .32s ease-out both, lcFocus 1.8s ease-in-out both;
  animation-delay: calc(var(--i) * 70ms + .45s), calc(var(--n, 10) * 70ms + 1.3s + var(--f, 0) * 1s);
}

@keyframes lcLine
{
  from
  {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes lcFocus
{
  0%
  {
    background: transparent;
  }
  35%
  {
    /* the tint and its orange edge start after the line-number gutter, so the numbers stay readable */
    background: linear-gradient(90deg, transparent 0 calc(var(--gut, 2.2em) + .25em), #E76F00 calc(var(--gut, 2.2em) + .25em), #E76F00 calc(var(--gut, 2.2em) + .25em + 3px), rgba(250, 204, 21, .5) calc(var(--gut, 2.2em) + .25em + 3px));
  }
  100%
  {
    background: linear-gradient(90deg, transparent 0 calc(var(--gut, 2.2em) + .25em), #E76F00 calc(var(--gut, 2.2em) + .25em), #E76F00 calc(var(--gut, 2.2em) + .25em + 3px), rgba(250, 204, 21, .2) calc(var(--gut, 2.2em) + .25em + 3px));
  }
}

/* pictures: letters drop into their boxes, key objects glow */
.drop
{
  transform-box: fill-box;
  transform-origin: center bottom;
}

.lc-step.seen .drop
{
  animation: lcDrop .75s cubic-bezier(.3, 1.55, .5, 1) both;
}

@keyframes lcDrop
{
  from
  {
    opacity: 0;
    transform: translateY(-70px) scale(.7);
  }
  60%
  {
    opacity: 1;
  }
}

.glow
{
  transform-box: fill-box;
  transform-origin: center;
}

.lc-step.seen .glow
{
  animation: lcGlow 1.6s ease-in-out 2.4s 2;
}

@keyframes lcGlow
{
  50%
  {
    filter: drop-shadow(0 0 10px rgba(231, 111, 0, .8));
    transform: scale(1.06);
  }
}

/* word-cloud words drift gently once they have landed */
.lc-word
{
  animation: lcPop .45s cubic-bezier(.3, 1.4, .5, 1) both, lcFloat 3.6s ease-in-out .5s infinite alternate;
}

.lc-word:nth-child(2n)
{
  animation-duration: .45s, 4.4s;
}

@keyframes lcFloat
{
  to
  {
    transform: translateY(-6px);
  }
}

/* a short burst of colour when a program passes or an answer is right */
.lc-burst
{
  position: fixed;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 90;
  animation: lcBurst 1.15s cubic-bezier(.2, .8, .3, 1) forwards;
}

@keyframes lcBurst
{
  to
  {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
    opacity: 0;
  }
}

/* a slow, soft light behind the class */
body::before
{
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  background: radial-gradient(40vw 30vh at 15% 20%, rgba(231, 111, 0, .07), transparent 70%), radial-gradient(45vw 35vh at 85% 70%, rgba(27, 79, 138, .08), transparent 70%);
  animation: lcSky 26s ease-in-out infinite alternate;
}

@keyframes lcSky
{
  to
  {
    transform: translate(4vw, -3vh);
  }
}

/* the Java logo in the bar */
.lc-logo
{
  background: #fff !important;
}

.lc-logo img
{
  width: 24px;
  height: 24px;
  display: block;
}

/* ----- instructor: link on the join screen, and the "join now" screen ----- */
.lc-inst
{
  text-align: center;
  margin-top: 14px;
}

.lc-inst a
{
  color: var(--blue-2);
  font-weight: 700;
}

.is-live .lc-code-box
{
  cursor: pointer;
}

.lc-share-box
{
  width: min(760px, 100%);
}

.lc-share-steps
{
  margin: 10px 0 6px;
  padding-left: 1.4em;
  font-size: calc(clamp(20px, 2.4vw, 28px) * var(--fs, 1));
  font-weight: 700;
  line-height: 1.35;
}

.lc-share-steps li
{
  margin: 10px 0;
}

.lc-share-link
{
  font-family: var(--mono);
  color: var(--blue-2);
  word-break: break-all;
}

.lc-share-code
{
  display: block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: calc(clamp(56px, 9vw, 96px) * var(--fs, 1));
  letter-spacing: .2em;
  line-height: 1.1;
  color: var(--ink);
}

.lc-share-count
{
  font-size: 18px;
  margin: 8px 0 0;
}

.lc-share-btns
{
  display: flex;
  gap: 12px;
}

.lc-share-btns .lc-btn
{
  flex: 1;
}

/* ----- a live class: one press shows one point ----- */
.lc-stepped .rv-wait
{
  display: none !important;
}

/* a point plays its motion the moment it appears, not on a timer */
.lc-stepped .lc-step,
.lc-stepped .lc-step *
{
  animation-delay: 0s !important;
}

.lc-stepped .lc-step .fade-late
{
  animation-delay: 1.4s !important;
}

.lc-stepped .lc-two > div > *,
.lc-stepped .lc-step [data-pt]:not(.pop):not(.drop):not(.draw),
.lc-stepped .lc-step figcaption,
.lc-stepped .lc-step .lc-console,
.lc-stepped .lc-step .lc-console-body .lc-line
{
  animation: lcRise .5s cubic-bezier(.22, .9, .3, 1) both;
}

/* ending the class: a small, quiet button in the top bar */
.lc-chip-btn.lc-end
{
  color: #94A3B8;
  border-color: #0F172A;
  font-weight: 700;
}

.lc-chip-btn.lc-end:hover
{
  color: #FECACA;
  border-color: #F87171;
}

.lc-controls .lc-act-go
{
  box-shadow: 0 10px 26px rgba(231, 111, 0, .35);
}

/* drawn card icons */
.lc-sprite
{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lc-card .lc-icon svg
{
  display: block;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, .12));
}

.lc-chip-ic
{
  width: 15px;
  height: 15px;
  vertical-align: -3px;
}

/* the first screen: numbered steps for students, one clear panel for the teacher */
.lc-panel-box label .lc-num
{
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue-2);
  color: #fff;
  font-size: 13px;
  vertical-align: 1px;
}

.lc-panel-box label .lc-small
{
  font-weight: 600;
}

.lc-or
{
  text-align: center;
  margin: 18px 0 0;
}

.lc-or + .lc-btn
{
  margin-top: 8px;
}

.lc-help
{
  margin-top: 14px;
  line-height: 1.5;
}

/* the teacher's prompt inside an activity: what students do, and one clear button (projector only) */
.lc-cue
{
  display: none;
}

.is-projector .lc-cue
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0F172A;
  color: #E2E8F0;
}

.lc-cue-what
{
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.lc-cue .lc-cue-go
{
  flex: 0 0 auto;
  margin: 0;
  background: var(--orange);
  font-size: 17px;
  padding: 10px 18px;
}

.lc-cue.done .lc-cue-go
{
  background: #334155;
}

/* the prompt inside the card replaces the corner button */
.lc-controls .lc-act-go
{
  display: none !important;
}

/* where the class is: part name + step number, in the top bar (live class only) */
.lc-prog
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin-left: 18px;
  padding: 4px 12px;
  border-left: 2px solid #334155;
  color: #E2E8F0;
  line-height: 1.15;
  min-width: 0;
}

.lc-prog[hidden]
{
  display: none;
}

.lc-prog b
{
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}

.lc-prog span
{
  font-size: 12.5px;
  color: #94A3B8;
  font-weight: 600;
}

@media (max-width: 1080px)
{
  .lc-prog
  {
    display: none;
  }
}

.lc-panel-box .lc-prep-link
{
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
}

/* four parts: four cards in a row on a wide screen, two by two on a narrower one */
.lc-cards.lc-cards-4
{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px)
{
  .lc-cards.lc-cards-4
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px)
{
  .lc-cards.lc-cards-4
  {
    grid-template-columns: 1fr;
  }
}

/* a class has as many parts as its ideas need (R112), so the opening and the recap lay out
   three, five or six cards as well as four */
.lc-cards.lc-cards-3
{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lc-cards.lc-cards-5
{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lc-cards.lc-cards-6
{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px)
{
  .lc-cards.lc-cards-5
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px)
{
  .lc-cards.lc-cards-3,
  .lc-cards.lc-cards-5,
  .lc-cards.lc-cards-6
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px)
{
  .lc-cards.lc-cards-3,
  .lc-cards.lc-cards-5,
  .lc-cards.lc-cards-6
  {
    grid-template-columns: 1fr;
  }
}

/* no countdown in the top bar: the code box stays calm */
.lc-code-left
{
  display: none;
}

/* panels fit any screen: the box scrolls when it is taller than the window */
.lc-panel
{
  overflow-y: auto;
  align-items: flex-start;
}

.lc-panel-box
{
  margin: auto 0;
  max-height: none;
}

.lc-panel-box h2
{
  font-size: calc(clamp(22px, 3vh + 8px, 30px) * var(--fs, 1));
}

.lc-panel-box .lc-btn
{
  margin-top: 10px;
}

/* a React program's page: what the browser shows */
.lc-preview
{
  border-top: 2px solid var(--ink);
  background: #fff;
}

.lc-preview-head
{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0E7490;
  background: #ECFEFF;
  padding: 6px 14px;
  border-bottom: 1px solid #CFFAFE;
}

.lc-preview-body
{
  padding: 14px 18px;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: #0F172A;
  line-height: 1.5;
}

.lc-preview-body h1
{
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 28px;
  margin: 0 0 6px;
}

/* the page reset takes list indent to zero, which left the bullets sitting
   on the card's edge; a browser page gives a list its indent, so this does */
.lc-preview-body ul,
.lc-preview-body ol
{
  padding-left: 1.5em;
}

.lc-stepped .lc-step .lc-preview
{
  animation: lcRise .5s cubic-bezier(.22, .9, .3, 1) both;
}

/* ===== React runner: code on the left, the real page on the right ===== */
.rx-space
{
  margin-top: 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.rx-head
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #F1F5F9;
  color: #0F172A;
  font-size: 15px;
}

.rx-dot
{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #61DAFB;
  box-shadow: 0 0 0 3px rgba(97, 218, 251, .25);
}

.rx-file
{
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #475569;
}

.rx-grid
{
  display: grid;
  /* the code gets the wider side, so a short task never scrolls sideways (instructor,
     29 Sep 2026); the drawn page beside it needs less room */
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.rx-left
{
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--ink);
}

/* the editor is a see-through textarea over a coloured copy of the same text */
.rx-edit
{
  position: relative;
  flex: 1;
  min-height: 260px;
  background: #FBFCFE;
  overflow: hidden;
}

/* the line-number gutter: same font and line height as the code, so every
   number sits on its line at every screen width; it scrolls only up and down */
.rx-gut
{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rx-gut, 3.6ch);
  margin: 0;
  padding: 14px 0.6ch 14px 0;
  box-sizing: content-box;
  overflow: hidden;
  text-align: right;
  color: #94A3B8;
  background: #F1F5F9;
  border-right: 1px solid #E2E8F0;
  font-family: var(--mono);
  font-size: calc(clamp(14px, 0.45vw + 10px, 17px) * var(--fs, 1));
  line-height: 1.6;
  white-space: pre;
  user-select: none;
  pointer-events: none;
}

.rx-gut-err
{
  display: inline-block;
  min-width: 100%;
  background: #FEE2E2;
  color: #B91C1C;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #DC2626;
}

.rx-hl,
.rx-code
{
  margin: 0;
  padding: 14px 16px 14px 10px;
  font-family: var(--mono);
  font-size: calc(clamp(14px, 0.45vw + 10px, 17px) * var(--fs, 1));
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
  font-variant-ligatures: none;
  letter-spacing: 0;
}

/* text and caret start after the gutter (its width + padding + border, in the
   same monospace font), so a sideways scroll never slides code under the numbers */
.rx-hl
{
  position: absolute;
  inset: 0 0 0 calc(var(--rx-gut, 3.6ch) + 0.6ch + 1px);
  overflow: hidden;
  pointer-events: none;
  color: #0F172A;
  /* room to scroll as far as the textarea can: a sideways scrollbar makes the textarea's scroll height taller,
     and a copy that could not follow stopped short, so near the foot the letters sat half a line below the
     caret (instructor, 15 Oct 2026, Class 6: "cursor blinking ... a little upward"). The Java editor has the same. */
  padding-bottom: calc(14px + 48px);
  padding-right: calc(16px + 48px);
}

.rx-code
{
  position: relative;
  z-index: 1;
  display: block;
  margin-left: calc(var(--rx-gut, 3.6ch) + 0.6ch + 1px);
  width: calc(100% - var(--rx-gut, 3.6ch) - 0.6ch - 1px);
  height: 100%;
  min-height: 260px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #0F172A;
  overflow: auto;
}

.rx-code::selection
{
  background: rgba(97, 218, 251, .35);
}

@media (forced-colors: active)
{
  .rx-hl
  {
    display: none;
  }

  .rx-code
  {
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

.rx-code:focus
{
  outline: 3px solid #61DAFB;
  outline-offset: -3px;
}

.rx-bar
{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid #E2E8F0;
}

.rx-bar button
{
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.rx-run
{
  background: #0E7490;
  color: #fff;
  border: 0;
}

.rx-run:disabled
{
  opacity: .6;
}

.rx-ghost
{
  background: #fff;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
}

.rx-right
{
  display: flex;
  flex-direction: column;
  background: #fff;
}

.rx-page-head
{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0E7490;
  background: #ECFEFF;
  padding: 6px 14px;
  border-bottom: 1px solid #CFFAFE;
}

.rx-frame
{
  flex: 1;
  width: 100%;
  min-height: 260px;
  border: 0;
  background: #fff;
}

/* the target page in a lab: the same frame, marked so it is never mistaken for the
   student's own page */
.rx-target-head
{
  color: #3730A3;
  background: #EEF2FF;
  border-bottom-color: #C7D2FE;
}

.rx-target-frame
{
  flex: none;
  min-height: 220px;
  border-bottom: 3px dashed #C7D2FE;
}

.rx-status
{
  padding: 10px 14px;
  font-weight: 700;
  border-top: 2px solid var(--ink);
  background: #F8FAFC;
}

.rx-status.good
{
  background: #E8F7F4;
  color: #0F766E;
}

.rx-status.bad
{
  background: #FFF1F3;
  color: #BE123C;
}

.rx-checks
{
  list-style: none;
  margin: 0;
  padding: 6px 14px 10px;
  display: grid;
  gap: 4px;
  font-size: 14.5px;
}

.rx-checks .ok { color: #0F766E; }
.rx-checks .no { color: #BE123C; }
.rx-checks .warn { color: #B45309; }

.rx-hints .rx-hint
{
  margin: 0 14px 10px;
  padding: 8px 12px;
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
}

@media (max-width: 820px)
{
  .rx-grid
  {
    /* minmax(0, …) as on wide screens: a plain 1fr lets the longest line of a
       task's App.css widen the column past a phone's edge (7px at 375) */
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-left
  {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
}

/* a photo or poster inside a step fills the step's width: no frame round it and no empty bands at its sides
   (instructor, 30 Sep 2026: "remove unnecessary left and right side padding") */
.lc-figure.lc-photo
{
  padding: 0;
  background: none;
  border: 0;
}

.lc-figure.lc-photo img
{
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
}

/* a person's photo beside a story (Java Unit 1 Class 2: James Gosling) is a portrait, not a poster: it keeps to
   the middle of the step at a modest width, so the story under it is on the same screen */
.lc-figure.lc-photo.lc-portrait
{
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- text size: A- A A+ A++ , kept on this device ----- */
.lc-fs
{
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 2px;
  flex: none;
}

.lc-fs button
{
  font: inherit;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  color: #E2E8F0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
}

.lc-fs button:hover
{
  background: rgba(255, 255, 255, .16);
}

.lc-fs button.on
{
  background: #fff;
  color: #0F172A;
}

/* a bigger size must never push the page sideways */
.lc-code pre,
.lc-console-body,
.jr-space,
.rx-space
{
  max-width: 100%;
}

.lc-step,
.tp-stop
{
  overflow-wrap: break-word;
}

/* ----- put the lines in order ----- */
.lc-order
{
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
}

.lc-order li
{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: calc(clamp(13.5px, 0.4vw + 10.5px, 16.5px) * var(--fs, 1));
  background: #F8FAFC;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: pre;
  overflow-x: auto;
}

.lc-order li:hover
{
  border-color: var(--blue);
}

.lc-order li.picked
{
  background: var(--blue-t);
  border-color: var(--blue);
}

.lc-order-no
{
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
}

.lc-order li.picked .lc-order-no
{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.lc-order-bar
{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

/* ----- fill the blank ----- */
.lc-blank-in
{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.lc-blank-in input
{
  font-family: var(--mono);
  font-size: calc(16px * var(--fs, 1));
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  min-width: min(320px, 100%);
}

.lc-blank-in input:focus
{
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}

/* ----- spot the mistake ----- */
.lc-code .cl.lc-pick
{
  cursor: pointer;
}

.lc-code .cl.lc-pick:hover
{
  background: rgba(250, 204, 21, .25);
}

.lc-code .cl.picked
{
  background: rgba(231, 111, 0, .18);
  box-shadow: inset 3px 0 0 var(--orange);
}

.lc-bar-row.lc-bar-right .lc-bar-fill
{
  background: var(--teal);
}

/* what the class answered instead: the part worth talking about */
.lc-wrongs
{
  margin: 10px 0 4px;
}

.lc-wrongs-h
{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 4px;
}

.lc-wrong
{
  margin: 2px 0;
}

/* =====================================================================
   The look changes with the class
   ---------------------------------------------------------------------
   Every class carries data-theme on <body>. The theme sets the accent
   colours, the page wash behind the white cards, the way a step arrives
   and the colour of the icons drifting in the background, so that two
   classes never look the same. The cards themselves stay white and the
   type stays black: only what surrounds the teaching changes.

   To theme a new class: pick the closest recipe below, or add one, and
   set data-theme plus data-ambient (a list of that page's own symbol
   ids) on <body>.
   ===================================================================== */
:root
{
  --accent: #E76F00;
  --accent-2: #F59E0B;
  --accent-3: #34D399;
  --accent-ink: #1B4F8A;
  --accent-t: #EFF5FF;
  --wash-a: rgba(231, 111, 0, .07);
  --wash-b: rgba(27, 79, 138, .06);
  --amb: #1B4F8A;
  --amb-op: .10;
  --enter: lcIn;
}

/* Java Class 1 — a box of letters nobody may change: ink and amber, still and solid */
body[data-theme="letters"]
{
  --accent: #B45309;
  --accent-2: #F59E0B;
  --accent-3: #1B4F8A;
  --accent-ink: #7C3E00;
  --accent-t: #FFF6E6;
  --wash-a: rgba(180, 83, 9, .08);
  --wash-b: rgba(15, 23, 42, .05);
  --amb: #B45309;
  --amb-op: .10;
  --enter: lcIn;
}

/* Java Class 2 — a workbench of tools: teal, steel and a cut of orange */
body[data-theme="workshop"]
{
  --accent: #0F766E;
  --accent-2: #14B8A6;
  --accent-3: #E76F00;
  --accent-ink: #115E56;
  --accent-t: #E8F7F4;
  --wash-a: rgba(15, 118, 110, .08);
  --wash-b: rgba(231, 111, 0, .06);
  --amb: #0F766E;
  --amb-op: .11;
  --enter: lcSlide;
}

/* Java Class 3 — a value wrapped in a labelled box: kraft brown, string red, ink */
body[data-theme="parcel"]
{
  --accent: #92400E;
  --accent-2: #D97706;
  --accent-3: #B91C1C;
  --accent-ink: #78350F;
  --accent-t: #FEF3E2;
  --wash-a: rgba(146, 64, 14, .08);
  --wash-b: rgba(185, 28, 28, .05);
  --amb: #92400E;
  --amb-op: .11;
  --enter: lcLift;
}

/* React Class 5 — a switch that is pressed and a number that moves: indigo, with teal for what comes back up */
body[data-theme="switch"]
{
  --accent: #4338CA;
  --accent-2: #6366F1;
  --accent-3: #0D9488;
  --accent-ink: #312E81;
  --accent-t: #EEF2FF;
  --wash-a: rgba(67, 56, 202, .08);
  --wash-b: rgba(13, 148, 136, .06);
  --amb: #4338CA;
  --amb-op: .11;
  --enter: lcSlide;
}

/* React Class 6 — rows drawn from a list: deep green, with amber for the key */
body[data-theme="rows"]
{
  --accent: #047857;
  --accent-2: #10B981;
  --accent-3: #B45309;
  --accent-ink: #064E3B;
  --accent-t: #ECFDF5;
  --wash-a: rgba(4, 120, 87, .08);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #047857;
  --amb-op: .11;
  --enter: lcRise;
}

/* React Class 7 — a component's day, from first light: violet, with amber for what is still on its way */
body[data-theme="dawn"]
{
  --accent: #6D28D9;
  --accent-2: #8B5CF6;
  --accent-3: #B45309;
  --accent-ink: #4C1D95;
  --accent-t: #F5F3FF;
  --wash-a: rgba(109, 40, 217, .08);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #6D28D9;
  --amb-op: .11;
  --enter: lcLift;
}

/* React Class 8 — finding the way from one view to another: deep blue, with orange for the address */
body[data-theme="compass"]
{
  --accent: #1D4ED8;
  --accent-2: #3B82F6;
  --accent-3: #EA580C;
  --accent-ink: #1E3A8A;
  --accent-t: #EFF6FF;
  --wash-a: rgba(29, 78, 216, .08);
  --wash-b: rgba(234, 88, 12, .05);
  --amb: #1D4ED8;
  --amb-op: .11;
  --enter: lcSlide;
}

/* React Class 9 — a net under the page: crimson for what breaks, slate, and green for what is put right */
body[data-theme="net"]
{
  --accent: #BE123C;
  --accent-2: #E11D48;
  --accent-3: #15803D;
  --accent-ink: #881337;
  --accent-t: #FFF1F2;
  --wash-a: rgba(190, 18, 60, .07);
  --wash-b: rgba(51, 65, 85, .05);
  --amb: #BE123C;
  --amb-op: .10;
  --enter: lcRise;
}

/* Node Class 1 — an engine taken out of the browser: Node's green, slate, and amber for what is still waiting */
body[data-theme="engine"]
{
  --accent: #3F7D33;
  --accent-2: #5FA04E;
  --accent-3: #B45309;
  --accent-ink: #14532D;
  --accent-t: #ECF7E9;
  --wash-a: rgba(63, 125, 51, .08);
  --wash-b: rgba(51, 65, 85, .05);
  --amb: #3F7D33;
  --amb-op: .10;
  --enter: lcRise;
}

/* Node Class 2 — a queue at a counter: the amber of waiting, Node's green for what moves on, and slate */
body[data-theme="queue"]
{
  --accent: #B45309;
  --accent-2: #D97706;
  --accent-3: #3F7D33;
  --accent-ink: #78350F;
  --accent-t: #FFFBEB;
  --wash-a: rgba(180, 83, 9, .07);
  --wash-b: rgba(63, 125, 51, .05);
  --amb: #B45309;
  --amb-op: .10;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 3 — an address typed into a browser and the reply that comes back: the blue of a link
   for what is asked, Node's green for what the server answers, slate for the rest */
body[data-theme="address"]
{
  --accent: #1D4ED8;
  --accent-2: #3F7D33;
  --accent-3: #334155;
  --accent-ink: #1E3A8A;
  --accent-t: #EFF6FF;
  --wash-a: rgba(29, 78, 216, .07);
  --wash-b: rgba(63, 125, 51, .05);
  --amb: #1D4ED8;
  --amb-op: .10;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 4 — a parcel fetched from a shared shelf: the red of npm for what is fetched, Node's green
   for what is yours, a warm amber for the list that records it */
body[data-theme="parcel"]
{
  --accent: #B91C1C;
  --accent-2: #3F7D33;
  --accent-3: #B45309;
  --accent-ink: #7F1D1D;
  --accent-t: #FEF2F2;
  --wash-a: rgba(185, 28, 28, .06);
  --wash-b: rgba(63, 125, 51, .05);
  --amb: #B91C1C;
  --amb-op: .09;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 5 — a request passing through gates on its way in: violet for what a request carries and
   the gates it passes, Node's green for the route that answers, slate for the rest */
body[data-theme="gate"]
{
  --accent: #6D28D9;
  --accent-2: #3F7D33;
  --accent-3: #334155;
  --accent-ink: #4C1D95;
  --accent-t: #F5F3FF;
  --wash-a: rgba(109, 40, 217, .06);
  --wash-b: rgba(63, 125, 51, .05);
  --amb: #6D28D9;
  --amb-op: .09;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 6 — data that stays: a warm amber for the database where the tickets are kept, Node's green
   for the server that asks it, slate for the rest */
body[data-theme="vault"]
{
  --accent: #B45309;
  --accent-2: #3F7D33;
  --accent-3: #334155;
  --accent-ink: #78350F;
  --accent-t: #FEF3C7;
  --wash-a: rgba(180, 83, 9, .06);
  --wash-b: rgba(63, 125, 51, .05);
  --amb: #B45309;
  --amb-op: .09;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 7 — the program reaches the database: a teal line for the connection between them,
   the database's amber at its far end, slate for the rest */
body[data-theme="wire"]
{
  --accent: #0F766E;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #134E4A;
  --accent-t: #F0FDFA;
  --wash-a: rgba(15, 118, 110, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #0F766E;
  --amb-op: .09;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 8 — a student signs in: a deep rose for the door that opens only to a registered student,
   the database's amber behind it, slate for the rest */
body[data-theme="pass"]
{
  --accent: #BE123C;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #881337;
  --accent-t: #FFF1F2;
  --wash-a: rgba(190, 18, 60, .05);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #BE123C;
  --amb-op: .08;
  --enter: lcRise;
}

/* FSWD Unit 4 Class 9 — an answer kept close by: the warm orange of a sticky note on the counter,
   the database's amber behind it, slate for the rest */
body[data-theme="note"]
{
  --accent: #C2410C;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #7C2D12;
  --accent-t: #FFF7ED;
  --wash-a: rgba(194, 65, 12, .05);
  --wash-b: rgba(161, 98, 7, .05);
  --amb: #C2410C;
  --amb-op: .08;
  --enter: lcRise;
}

/* Java Unit 4 Class 1 — a list that grows: the blue of a row of boxes, a warm amber for the box that
   has just arrived, slate for the rest */
body[data-theme="shelf"]
{
  --accent: #1D4ED8;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #1E3A8A;
  --accent-t: #EFF6FF;
  --wash-a: rgba(29, 78, 216, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #1D4ED8;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 2: a train of coaches - teal for the links, amber for a coach */
body[data-theme="train"]
{
  --accent: #0F766E;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #134E4A;
  --accent-t: #F0FDFA;
  --wash-a: rgba(15, 118, 110, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #0F766E;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 3: a cursor between the boxes - violet for the cursor, amber for where it lands */
body[data-theme="cursor"]
{
  --accent: #6D28D9;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #4C1D95;
  --accent-t: #F5F3FF;
  --wash-a: rgba(109, 40, 217, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #6D28D9;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 4: a row of bins - green for a bin, amber for the item dropped into it */
body[data-theme="bins"]
{
  --accent: #15803D;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #14532D;
  --accent-t: #F0FDF4;
  --wash-a: rgba(21, 128, 61, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #15803D;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 5: a price board - indigo for a key, amber for its value */
body[data-theme="board"]
{
  --accent: #4338CA;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #312E81;
  --accent-t: #EEF2FF;
  --wash-a: rgba(67, 56, 202, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #4338CA;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 6: a judge's scale - teal for "a comes first", amber for "b comes first" */
body[data-theme="judge"]
{
  --accent: #0E7490;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #164E63;
  --accent-t: #ECFEFF;
  --wash-a: rgba(14, 116, 144, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #0E7490;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 7: an old ledger - rust for what is from 1996, blue for the framework of 1998 */
body[data-theme="archive"]
{
  --accent: #9A3412;
  --accent-2: #1D4ED8;
  --accent-3: #334155;
  --accent-ink: #7C2D12;
  --accent-t: #FFF7ED;
  --wash-a: rgba(154, 52, 18, .06);
  --wash-b: rgba(29, 78, 216, .05);
  --amb: #9A3412;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 8: a strip of paper - violet for a token, amber for a cut */
body[data-theme="tape"]
{
  --accent: #6D28D9;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #4C1D95;
  --accent-t: #F5F3FF;
  --wash-a: rgba(109, 40, 217, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #6D28D9;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 9: a club's register - green for a yes, amber for a draw */
body[data-theme="club"]
{
  --accent: #166534;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #14532D;
  --accent-t: #F0FDF4;
  --wash-a: rgba(22, 101, 52, .06);
  --wash-b: rgba(180, 83, 9, .05);
  --amb: #166534;
  --amb-op: .09;
  --enter: lcRise;
}

/* Java Unit 4 Class 10: a bell on the hour - deep red for a ring, slate for the wait */
body[data-theme="bell"]
{
  --accent: #B91C1C;
  --accent-2: #334155;
  --accent-3: #B45309;
  --accent-ink: #7F1D1D;
  --accent-t: #FEF2F2;
  --wash-a: rgba(185, 28, 28, .05);
  --wash-b: rgba(51, 65, 85, .05);
  --amb: #B91C1C;
  --amb-op: .08;
  --enter: lcRise;
}

/* Java Class 4 — every class hangs from one root, the Object class: a family tree in deep green,
   slate and a warm gold for the methods every class gets for free */
body[data-theme="lineage"]
{
  --accent: #166534;
  --accent-2: #CA8A04;
  --accent-3: #334155;
  --accent-ink: #14532D;
  --accent-t: #ECFDF3;
  --wash-a: rgba(22, 101, 52, .08);
  --wash-b: rgba(202, 138, 4, .06);
  --amb: #166534;
  --amb-op: .11;
  --enter: lcRise;
}

/* Java Class 5 — one mould, many castings: a class with a type left open. Violet for the mould,
   amber for the type that is dropped into it, slate for the rest */
body[data-theme="mould"]
{
  --accent: #6D28D9;
  --accent-2: #D97706;
  --accent-3: #334155;
  --accent-ink: #4C1D95;
  --accent-t: #F5F3FF;
  --wash-a: rgba(109, 40, 217, .08);
  --wash-b: rgba(217, 119, 6, .06);
  --amb: #6D28D9;
  --amb-op: .10;
  --enter: lcRise;
}

/* Java Class 6 — a blank with a fence round it: only some types may fill it. Rose for the limit,
   sky blue for what is let through */
body[data-theme="limit"]
{
  --accent: #BE123C;
  --accent-2: #0369A1;
  --accent-3: #334155;
  --accent-ink: #881337;
  --accent-t: #FFF1F2;
  --wash-a: rgba(190, 18, 60, .07);
  --wash-b: rgba(3, 105, 161, .06);
  --amb: #BE123C;
  --amb-op: .10;
  --enter: lcRise;
}

/* Java Class 7 — a pipe that carries data one way: a stream. Teal for the pipe, amber for the
   bytes that travel in it */
body[data-theme="pipe"]
{
  --accent: #0F766E;
  --accent-2: #B45309;
  --accent-3: #334155;
  --accent-ink: #134E4A;
  --accent-t: #F0FDFA;
  --wash-a: rgba(15, 118, 110, .08);
  --wash-b: rgba(180, 83, 9, .06);
  --amb: #0F766E;
  --amb-op: .10;
  --enter: lcRise;
}

/* Java Class 8 — a file kept in a folder: indigo for the file, burnt orange for what is
   written in it */
body[data-theme="folder"]
{
  --accent: #4338CA;
  --accent-2: #C2410C;
  --accent-3: #334155;
  --accent-ink: #312E81;
  --accent-t: #EEF2FF;
  --wash-a: rgba(67, 56, 202, .08);
  --wash-b: rgba(194, 65, 12, .06);
  --amb: #4338CA;
  --amb-op: .10;
  --enter: lcRise;
}

/* Java Class 9 — an object packed whole into a crate and unpacked again: bronze for the crate,
   blue for the object inside it */
body[data-theme="crate"]
{
  --accent: #854D0E;
  --accent-2: #1D4ED8;
  --accent-3: #334155;
  --accent-ink: #713F12;
  --accent-t: #FEFCE8;
  --wash-a: rgba(133, 77, 14, .08);
  --wash-b: rgba(29, 78, 216, .06);
  --amb: #854D0E;
  --amb-op: .10;
  --enter: lcRise;
}

/* React Class 1 — the library itself: React cyan on deep navy */
body[data-theme="atom"]
{
  --accent: #087EA4;
  --accent-2: #22D3EE;
  --accent-3: #1B4F8A;
  --accent-ink: #065E7C;
  --accent-t: #E6F6FB;
  --wash-a: rgba(8, 126, 164, .09);
  --wash-b: rgba(34, 211, 238, .06);
  --amb: #087EA4;
  --amb-op: .12;
  --enter: lcOrbit;
}

/* React Class 3 — styling: a painter's palette, coral and teal on ink */
body[data-theme="palette"]
{
  --accent: #C2410C;
  --accent-2: #FB923C;
  --accent-3: #0F766E;
  --accent-ink: #9A3412;
  --accent-t: #FFF1EA;
  --wash-a: rgba(194, 65, 12, .08);
  --wash-b: rgba(15, 118, 110, .07);
  --amb: #C2410C;
  --amb-op: .11;
  --enter: lcIn;
}

/* React Class 2 — HTML written inside JavaScript: violet braces, amber tags */
body[data-theme="braces"]
{
  --accent: #6D28D9;
  --accent-2: #A855F7;
  --accent-3: #F59E0B;
  --accent-ink: #5B21B6;
  --accent-t: #F3EBFF;
  --wash-a: rgba(109, 40, 217, .08);
  --wash-b: rgba(245, 158, 11, .06);
  --amb: #6D28D9;
  --amb-op: .11;
  --enter: lcLift;
}

/* the wash: a soft field of the class colour behind the white cards */
body[data-theme]::before
{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 10% -6%, var(--wash-a), transparent 65%),
    radial-gradient(820px 560px at 94% 8%, var(--wash-b), transparent 62%),
    radial-gradient(760px 520px at 50% 108%, var(--wash-a), transparent 60%);
}

/* the accents that make one class unmistakably itself */
body[data-theme] .lc-kicker
{
  color: var(--accent);
}

body[data-theme] .lc-big-idea
{
  border-left-color: var(--accent);
}

body[data-theme] .lc-part
{
  color: var(--accent-ink);
  background: var(--accent-t);
}

body[data-theme] .lc-hero .lc-ask
{
  border-left-color: var(--accent);
  background: var(--accent-t);
}

body[data-theme] .lc-track i
{
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

body[data-theme] .lc-brand .lc-logo
{
  box-shadow: 0 0 0 2px var(--accent-2);
}

body[data-theme] .lc-brand small
{
  color: var(--accent-2);
}

body[data-theme] .lc-step.seen
{
  animation-name: var(--enter);
}

/* the class number, written large and faint in the corner of the welcome card */
body[data-theme] .lc-hero
{
  overflow: hidden;
}

body[data-theme] .lc-hero::after
{
  content: attr(data-ghost);
  position: absolute;
  right: -.06em;
  top: -.34em;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(120px, 17vw, 260px);
  line-height: 1;
  color: var(--accent);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

@keyframes lcSlide
{
  from
  {
    opacity: 0;
    transform: translateX(-26px);
  }
}

@keyframes lcOrbit
{
  from
  {
    opacity: 0;
    transform: scale(.965);
  }
}

@keyframes lcLift
{
  from
  {
    opacity: 0;
    transform: translateY(26px) rotate(-.35deg);
  }
}

/* ----- the icons drifting behind the class ----- */
.lc-amb
{
  --gut: calc((100vw - min(1560px, 100vw - 32px)) / 2);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.lc-amb svg
{
  position: absolute;
  width: calc(var(--gut) * var(--k));
  height: calc(var(--gut) * var(--k));
  color: var(--amb);
  opacity: var(--amb-op);
  animation: lcDrift var(--dur) ease-in-out var(--delay) infinite alternate;
}

@keyframes lcDrift
{
  from
  {
    transform: translate3d(0, 0, 0) rotate(var(--r0));
  }
  to
  {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r1));
  }
}

/* they belong in the margins: on a narrow screen there are no margins */
@media (max-width: 1680px)
{
  .lc-amb
  {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce)
{
  .lc-amb
  {
    display: none;
  }
}

/* on the projector the room is the audience: a little more presence */
.is-projector .lc-amb svg
{
  opacity: calc(var(--amb-op) * 1.35);
}

/* a preparation page is read close up, so the background stays quieter.
   Its drifting shapes are the same drawn-line icons the headings use, so they
   need the same stroke convention; a class page brings its own painted shapes
   and is left alone. */
body.tp .lc-amb svg
{
  opacity: calc(var(--amb-op) * .6);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.tp[data-theme] .lc-brand small
{
  color: var(--accent-2);
}

/* the welcome card carries the class's own shape, large and faint, behind
   the words — the one piece of the background that a laptop screen also gets */
body[data-theme] .lc-hero
{
  isolation: isolate;
}

.lc-hero-mark
{
  position: absolute;
  z-index: -1;
  right: 4%;
  top: 34%;
  width: clamp(120px, 12vw, 200px);
  height: clamp(120px, 12vw, 200px);
  color: var(--amb);
  opacity: calc(var(--amb-op) * .72);
  pointer-events: none;
  animation: lcFloat 26s ease-in-out infinite alternate;
}

@keyframes lcFloat
{
  from
  {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  to
  {
    transform: translate3d(-14px, -18px, 0) rotate(3deg);
  }
}

@media (max-width: 1180px)
{
  .lc-hero-mark
  {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce)
{
  .lc-hero-mark
  {
    animation: none;
  }
}

/* ----- a new part announces itself ----- */
.lc-chapter
{
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  position: relative;
}

.lc-chapter svg
{
  width: 52px;
  height: 52px;
  flex: none;
  padding: 7px;
  border-radius: 14px;
  background: var(--accent-t, #EFF5FF);
}

.lc-chapter b
{
  font-family: var(--mono);
  font-size: calc(clamp(15px, .9vw + 8px, 21px) * var(--fs, 1));
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink, #1B4F8A);
}

.lc-chapter i
{
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent, #E76F00);
}

.lc-step.seen .lc-chapter svg
{
  animation: lcChapIn .6s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-step.seen .lc-chapter b
{
  animation: lcChapWord .6s cubic-bezier(.22, .9, .3, 1) .1s both;
}

.lc-step.seen .lc-chapter i
{
  animation: lcChapRule .9s cubic-bezier(.22, .9, .3, 1) .2s both;
}

@keyframes lcChapIn
{
  from
  {
    opacity: 0;
    transform: scale(.7) rotate(-8deg);
  }
}

@keyframes lcChapWord
{
  from
  {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes lcChapRule
{
  from
  {
    width: 0;
  }
  to
  {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce)
{
  .lc-chapter i
  {
    width: 100%;
  }
}

/* ----- what one student should look at again (their own phone, after the class) ----- */
.lc-fb
{
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent, #E76F00);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 30px);
  margin: 22px 0;
}

.lc-fb h2
{
  font-size: calc(clamp(21px, 1.8vw, 28px) * var(--fs, 1));
  margin: 6px 0 12px;
}

.lc-fb-again
{
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.lc-fb-again li
{
  background: var(--accent-t, #FFF7ED);
  border-radius: 12px;
  padding: 12px 16px;
}

.lc-fb-again b
{
  display: block;
  margin-bottom: 3px;
}

.lc-fb-again span
{
  display: block;
  font-size: .95em;
}

.lc-fb-note
{
  font-size: .95em;
  margin-bottom: 10px;
}

.lc-fb-good
{
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: .97em;
}

/* =====================================================================
   Colour where it helps, black where it is read
   ---------------------------------------------------------------------
   Two instructions that look opposed, and are not. "Type is black, never
   grey" was about readability: washed-out grey prose is hard work on a
   projector and in a PDF. "Use more colours" is about a page that is all
   one flat tone having nothing for the eye to hold on to.

   So: every sentence that is READ stays black. Headings, labels, the
   terms being defined and the edges of boxes take the class's own accent.
   Nothing that carries meaning is left to colour alone.
   ===================================================================== */
body[data-theme] .lc-step h2,
body.tp[data-theme] .tp-screen h2
{
  color: var(--accent-ink);
}

body[data-theme] .lc-step h3
{
  color: var(--accent-ink);
}

/* the word being defined, inside a sentence that stays black */
body[data-theme] .lc-step .lc-rule b,
body[data-theme] .lc-big-idea code
{
  color: var(--accent-ink);
}

body[data-theme] .lc-remember
{
  border-left: 5px solid var(--accent-2);
}

body[data-theme] .lc-remember b:first-child
{
  color: var(--accent-ink);
}

/* a figure's caption and a code panel's file name carry the accent too */
body[data-theme] .lc-code .lc-file,
body[data-theme] figure figcaption
{
  color: var(--accent-ink);
}

/* =====================================================================
   Type, 2026 rather than 1890
   ---------------------------------------------------------------------
   These pages were set in Libre Baskerville, a book face. It is lovely
   on paper and dated on a projector, and the instructor asked for the
   modern pairing the study modules already use:

     Source Serif 4    everything that is read (Placement Brahmastra's faces, 18 Nov 2026)
     Plus Jakarta Sans headings, the hero, labels, buttons and figures
     JetBrains Mono    code, dates, labels and numbers — unchanged

   The notes PDF is unaffected: jsPDF draws it with its own built-in
   faces, not with anything loaded here.
   ===================================================================== */
.lc-hero h1,
.lc-step h2,
.lc-step h3,
.lc-brand,
.tp-screen h2,
.nd-hero h1,
h1, h2, h3
{
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -.018em;
}

body
{
  letter-spacing: -.006em;
}

/* figures were drawn with the serif named inside the SVG: bring them over
   too, so a diagram does not sit in a different century from its caption */
.lc-figure text[font-family*="Libre"],
figure svg text[font-family*="Libre"]
{
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* counts, dates and timers line up as they change */
.lc-meter,
.lc-clock,
.tp-meter,
.tp-clock,
.lc-part
{
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   The header is a strip, not a band
   ---------------------------------------------------------------------
   Asked for twice: the header was too tall and pulled the eye away from
   the teaching. It had grown because its chips were allowed to wrap onto
   a second row, and a second row doubles the height of the thing the
   reader is meant to ignore.

   So: one row, always. Anything that does not fit scrolls sideways
   inside the strip rather than pushing it taller, and on a phone the
   least important chips step aside entirely.
   ===================================================================== */
.lc-bar-in,
.tp-bar-in
{
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  gap: 6px 10px;
}

.lc-bar-in::-webkit-scrollbar,
.tp-bar-in::-webkit-scrollbar
{
  display: none;
}

.lc-brand,
.tp-bar .lc-brand
{
  font-size: 13px;
  min-width: 0;
  gap: 7px;
}

.lc-brand > div,
.lc-brand small
{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-brand small
{
  font-size: 11.5px;
}

.lc-logo img
{
  width: 20px;
  height: 20px;
}

.lc-st,
.lc-chip-btn,
.lc-code-box,
.lc-meter
{
  flex: none;
  padding-top: 3px;
  padding-bottom: 3px;
}

.lc-track
{
  height: 4px;
}

/* the projector wants the session code big; a phone does not want it at all */
@media (max-width: 720px)
{
  .lc-brand small,
  .tp-meter
  {
    display: none;
  }
}

/* on a phone the text-size pill and the status took the whole strip and the
   class title shrank to two letters; tighten both so the title stays readable */
@media (max-width: 480px)
{
  .lc-bar .lc-brand
  {
    min-width: 110px;
  }

  .lc-bar .lc-fs button
  {
    padding: 5px 6px;
  }

  .lc-bar .lc-status
  {
    font-size: 11.5px;
    line-height: 1.15;
    max-width: 84px;
    text-align: right;
  }
}

/* ----- Submit, in the header strip -----
   Submit is the one button in this strip that cannot be taken back, so it is
   the one that looks like it means something: the same warm orange the
   preparation sessions use, so a teacher moving between the two pages is
   looking for the same thing in the same corner. It is also told, like every
   other chip here, not to stretch and not to break its word across two lines -
   the strip stays one row, and the row stays short. */
.lc-chip-btn.lc-submit
{
  flex: none;
  white-space: nowrap;
  border-color: #E76F00;
  background: #E76F00;
  color: #fff;
}

.lc-chip-btn.lc-submit:hover:not(:disabled)
{
  border-color: #FFB25E;
}

.lc-chip-btn.lc-submit:disabled
{
  opacity: .6;
  cursor: default;
}

/* ----- breathing room, put back -----
   Same correction as the preparation sessions and the study classes. The one
   row rule stays; the air around the reading comes back. */
.lc-bar-in
{
  padding: 6px 0;
}

/* The class's own container is main.wrap, not an .lc-main - there is no such
   element, and a rule written for one styles nothing at all. */
main.wrap
{
  padding-top: 10px;
  padding-bottom: 40px;
}

.lc-step
{
  scroll-margin-top: 74px;
}

/* ----- a little air at the glass -----
   The class column was told to take the screen less thirty-two pixels, which
   is a gutter in the arithmetic and almost nothing to the eye: at the front
   of the room the first character of a program sat about a fingernail from
   the bezel. Forty is still modest, and it reads as a margin somebody chose
   rather than as an edge somebody forgot.

   Only main.wrap is asked for this. The header strip is a .wrap as well, and
   it was slimmed today on purpose, so it is left exactly as it is. The
   fifteen-sixty cap is untouched too, which means that on a projector every
   code panel and every diagram is as wide as it was an hour ago. */
main.wrap
{
  width: min(1560px, calc(100vw - 40px));
}

/* A phone has nothing to spare, so it gives back half of it. */
@media (max-width: 560px)
{
  main.wrap
  {
    width: calc(100vw - 26px);
  }
}

/* =====================================================================
   THE TOPIC INDEX ON A LIVE CLASS  (built by js/topic-index.js)

   The instructor asked for a topic index at the beginning of every class.
   It is page content and it sits at the top of main.wrap, above the
   welcome screen — deliberately NOT in the header strip, which is one row
   and stays one row.

   A white card, black reading text, the class's own accent on the heading
   and on the small labels only, and no icons: eight topic names read
   faster on their own than they would beside eight drawings of nothing in
   particular. Nothing here moves.
   ===================================================================== */
.lc-index
{
  background: var(--card, #fff);
  border: 1px solid var(--line, #E2E8F0);
  border-radius: var(--r, 18px);
  box-shadow: var(--shadow);
  padding: 16px clamp(14px, 2vw, 22px) 14px;
  margin: 0 0 22px;
}

.lc-index-h
{
  margin: 0 0 12px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--accent-ink, #1B4F8A);
}

.lc-index-list
{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 8px;
}

.lc-index-row
{
  margin: 0;
  min-width: 0;
}

/* one topic: the number, the name, and where the class is with it */
.lc-index-go
{
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  text-align: left;
  font: inherit;
  font-size: .96rem;
  color: #0F172A;
  background: var(--card, #fff);
  border: 1.5px solid var(--line, #E2E8F0);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.lc-index-go:hover
{
  border-color: var(--accent, #1B4F8A);
  background: var(--accent-t, #EFF5FF);
}

.lc-index-go:focus-visible
{
  outline: 3px solid var(--accent-ink, #1B4F8A);
  outline-offset: 2px;
}

.lc-index-n
{
  flex: 0 0 auto;
  font-family: var(--mono);
  font-weight: 800;
  font-size: .82rem;
  color: var(--accent-ink, #1B4F8A);
}

.lc-index-mid
{
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lc-index-t
{
  color: #0F172A;
  font-weight: 600;
}

/* "covered", "on screen now", "not yet": a label, so it may carry colour */
.lc-index-state
{
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--accent-ink, #1B4F8A);
}

.lc-index-state:empty
{
  display: none;
}

/* a topic the class has not reached: still readable, plainly not ready */
.lc-index-go.is-shut
{
  border-style: dashed;
  cursor: default;
}

.lc-index-go.is-shut:hover
{
  border-color: var(--line, #E2E8F0);
  background: var(--card, #fff);
}

.lc-index-go.is-shut .lc-index-n,
.lc-index-go.is-shut .lc-index-state
{
  color: #475569;
}

.lc-index-go[aria-current="true"]
{
  border-color: var(--accent, #1B4F8A);
  border-width: 2px;
  background: var(--accent-t, #EFF5FF);
}

.lc-index-note
{
  margin: 12px 0 0;
  font-size: .86rem;
  color: #0F172A;
}

/* A phone gets one column, and the state word drops under the topic name
   rather than squeezing it: a long topic wraps, and nothing ever scrolls
   sideways. */
@media (max-width: 560px)
{
  .lc-index
  {
    padding: 14px 13px 12px;
  }

  .lc-index-go
  {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .lc-index-state
  {
    flex: 1 1 100%;
    padding-left: 26px;
  }
}

/* the project's App.css, given with a className task: read-only, under the editor */
.rx-sheet
{
  margin: 8px 12px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
}

.rx-sheet-head
{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #0F172A;
  background: #F1F5F9;
  padding: 6px 12px;
  border-bottom: 1px solid #E2E8F0;
}

/* read-only code with numbers in a column of their own: the numbers stay
   put while the code beside them scrolls sideways */
.rx-num
{
  display: flex;
  align-items: flex-start;
  max-width: 100%;
}

.rx-num-gut,
.rx-num-body
{
  margin: 0;
  font: inherit;
  white-space: pre;
}

.rx-num-gut
{
  flex: none;
  padding-right: 1ch;
  margin-right: 1ch;
  text-align: right;
  color: #94A3B8;
  border-right: 1px solid #E2E8F0;
  user-select: none;
}

.rx-num-body
{
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.rx-sheet-body
{
  margin: 0;
  padding: 8px 12px;
  font: 700 13px/1.6 var(--mono);
  color: #0F172A;
}

/* code finished in an earlier part: folded, read-only, run in front of the editor's code */
.rx-given
{
  margin: 12px 12px 0;
  border: 1px dashed #A5B4FC;
  border-radius: 10px;
  background: #F5F7FF;
}

.rx-given summary
{
  cursor: pointer;
  padding: 7px 12px;
  font: 700 12px/1.4 var(--mono);
  color: #3730A3;
}

.rx-given-body
{
  margin: 0;
  padding: 4px 12px 10px;
  font: 600 12.5px/1.6 var(--mono);
  color: #0F172A;
}

/* ===== sample screen: a real tool's screen, with where to look =====

   A class that sends students (or the teacher) into a real tool - MongoDB
   Atlas, the AWS console, a terminal, a deploy dashboard - shows that
   tool's screen first, framed like a browser window, with numbered cues
   drawn over it. Each cue is an SVG group with data-pt, so the cues arrive
   one press at a time through the same engine that builds every diagram,
   and the figcaption's numbered list arrives last as the recap.

     <figure class="lc-figure lc-screen">
       <div class="lc-screen-bar"><i></i><i></i><i></i><span>cloud.mongodb.com</span></div>
       <div class="lc-screen-view">
         <img src="images/screens/atlas-clusters.png" alt="...">
         <svg viewBox="0 0 1280 800" preserveAspectRatio="none">
           <g data-pt="1" class="lc-screen-cue"><rect x=".." y=".." width=".." height=".."/>
             <circle cx=".." cy=".." r="22"/><text x=".." y="..">1</text></g>
         </svg>
       </div>
       <figcaption><ol class="lc-screen-cues"><li>...</li></ol></figcaption>
     </figure>

   The overlay's viewBox is the screenshot's own pixel size, so a cue's
   numbers are read straight off the image. qa/check-visuals.pl S1-S3. */

.lc-screen
{
  margin: 14px auto;
  max-width: 980px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  background: #fff;
}

.lc-screen-bar
{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #e8ebf0;
  border-bottom: 1px solid rgba(15, 23, 42, .12);
  font: 600 .8rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #334155;
}

.lc-screen-bar i
{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.lc-screen-bar i:nth-child(1) { background: #f87171; }
.lc-screen-bar i:nth-child(2) { background: #fbbf24; }
.lc-screen-bar i:nth-child(3) { background: #34d399; }

.lc-screen-bar span
{
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-screen-view
{
  position: relative;
  line-height: 0;
}

.lc-screen-view img
{
  display: block;
  width: 100%;
  height: auto;
}

.lc-screen-view svg
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* the cue: a ring round the thing to press, and its number */
.lc-screen-cue rect
{
  fill: rgba(250, 204, 21, .14);
  stroke: #eab308;
  stroke-width: 5;
  rx: 10;
}

.lc-screen-cue circle
{
  fill: #b45309;
  stroke: #fff;
  stroke-width: 4;
}

.lc-screen-cue text
{
  fill: #fff;
  font: 800 26px/1 system-ui, sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}

/* the newest cue pulses once, so the eye goes to it */
.lc-screen-cue:not(.rv-wait):not(.nm-hide) rect
{
  animation: lcCuePulse 1.1s ease-out 1;
}

@keyframes lcCuePulse
{
  0%   { stroke-width: 14; }
  100% { stroke-width: 5; }
}

.lc-screen figcaption
{
  text-align: left;
  padding: 10px 16px 12px;
  line-height: 1.5;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, .1);
}

.lc-screen-cues
{
  margin: 0;
  padding-left: 22px;
}

@media (prefers-reduced-motion: reduce)
{
  .lc-screen-cue rect { animation: none; }
}

/* ===== SQL runner (js/dbms/sql-runner.js): the editor is the React runner's (rx-*);
   the right side is what Oracle answers, one card per statement, built like the Java
   runner's console cards (jr-ecard / jr-outblock in java/js/lc-runner.js): a coloured
   edge and a pill to land on, the answer itself on a white ground. Cyan = rows came
   back, green = Oracle did it, red = Oracle refused it. ===== */
.sq-dot
{
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
}

.sq-given
{
  border-bottom: 2px solid var(--ink);
  background: #FFFBEB;
}

.sq-given > summary
{
  cursor: pointer;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: #92400E;
}

.sq-given-body
{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 2px 14px 14px;
  font-size: 14px;
}

.sq-given-one
{
  min-width: 0;
  max-width: 100%;
}

.sq-given-name
{
  margin: 4px 0 5px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  color: #92400E;
}

/* what the editor's colours mean, one word of each */
.sq-key
{
  padding: 0 14px 10px;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.7;
}

.sq-key span
{
  font-family: var(--mono);
}

.sq-panel
{
  flex: 1;
  min-height: 260px;
  max-height: 460px;
  overflow: auto;
  padding: 12px 14px;
  background: #F8FAFC;
}

.sq-idle
{
  margin: 0;
  color: #64748B;
}

/* how the run went: 4 ran, 1 refused, of 5 statements */
.sq-sum
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.sq-sum-ok
{
  color: #15803D;
  font-weight: 800;
}

.sq-sum-bad
{
  color: #B91C1C;
  font-weight: 800;
}

.sq-res
{
  margin-bottom: 12px;
  min-width: 0;
}

.sq-card
{
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-left: 5px solid #94A3B8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.sq-card.sq-rows
{
  border-color: #A5F3FC;
  border-left-color: #0891B2;
  background: #F5FDFF;
}

.sq-card.sq-ok
{
  border-color: #BBF7D0;
  border-left-color: #16A34A;
  background: #F4FCF6;
}

.sq-card.sq-bad
{
  border-color: #FECACA;
  border-left-color: #DC2626;
  background: #FFF6F6;
  cursor: pointer;
}

.sq-card.sq-bad:hover
{
  border-color: #F87171;
}

.sq-card.sq-bad:focus-visible
{
  outline: 2px solid #DC2626;
  outline-offset: 2px;
}

.sq-card-head
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

/* the pill the eye lands on first, sized like the Line chip of a Java error card */
.sq-pill,
.sq-chip,
.sq-code
{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.sq-rows .sq-pill
{
  background: #CFFAFE;
  color: #155E75;
}

.sq-ok .sq-pill
{
  background: #16A34A;
  color: #fff;
  white-space: normal;
}

.sq-chip
{
  background: #DC2626;
  color: #fff;
}

.sq-code
{
  background: #fff;
  color: #B91C1C;
  border: 1.5px solid #FCA5A5;
}

.sq-cap
{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #475569;
}

.sq-echo
{
  font-family: var(--mono);
  font-size: 12.5px;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.sq-prompt
{
  color: #94A3B8;
  font-weight: 700;
}

/* the rows: a real table on white, scrolling sideways inside its box on a phone */
.sq-table-wrap
{
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #fff;
}

.sq-table
{
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: calc(14px * var(--fs, 1));
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
}

.sq-table th,
.sq-table td
{
  padding: 6px 14px;
  text-align: left;
  white-space: pre;
}

.sq-table th
{
  background: #E0E7FF;
  color: #1E1B4B;
  font-weight: 800;
  font-size: .9em;
  letter-spacing: .03em;
  border-bottom: 2px solid #A5B4FC;
}

.sq-table td
{
  color: #0F172A;
  border-top: 1px solid #E2E8F0;
}

.sq-table tbody tr:nth-child(even) td
{
  background: #F8FAFC;
}

.sq-table tbody tr:hover td
{
  background: #EEF2FF;
}

.sq-table th + th,
.sq-table td + td
{
  border-left: 1px solid #E2E8F0;
}

.sq-table .num
{
  text-align: right;
}

.sq-count
{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #0E7490;
}

.sq-note
{
  font-size: 12.5px;
  color: #64748B;
}

.sq-out
{
  margin: 0;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 14px;
  color: #0F172A;
  white-space: pre-wrap;
}

/* a refused statement: Oracle's words, the line it names, and what the code means */
.sq-emsg
{
  font-weight: 800;
  font-size: 14.5px;
  color: #7F1D1D;
  overflow-wrap: anywhere;
}

.sq-esrc
{
  overflow-x: auto;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #FECACA;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  color: #0F172A;
}

.sq-eln
{
  display: inline-block;
  min-width: 2.2em;
  margin-right: 8px;
  padding-right: 8px;
  border-right: 2px solid #DC2626;
  color: #DC2626;
  font-weight: 800;
  text-align: right;
}

.sq-emean
{
  padding: 6px 10px;
  background: #FFFBEB;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #78350F;
}

/* DBMS Class 0 — a register of records: indigo ink, a gold ruling line, teal */
body[data-theme="ledger"]
{
  --accent: #4338CA;
  --accent-2: #F59E0B;
  --accent-3: #0F766E;
  --accent-ink: #312E81;
  --accent-t: #EEF0FF;
  --wash-a: rgba(67, 56, 202, .08);
  --wash-b: rgba(245, 158, 11, .06);
  --amb: #4338CA;
  --amb-op: .11;
  --enter: lcLift;
}

/* =====================================================================
   The first screen of a class (java/js/lc-landing.js)
   ---------------------------------------------------------------------
   Live classes, preparations and NPTEL classes all open on it: the class
   name, what it covers with the page's own icons, how long, what to have
   ready and the way in: one button, or the page's own join / admin key /
   sign-in form asked right in the screen (.lcl-form). It wears the class's
   own theme colours.
   ===================================================================== */

/* The page is painted before its script runs, so the old join / key box flashed up for a
   moment before the welcome screen covered it (instructor, 27 Sep 2026: "whenever I click a
   class landing page it still shows a spark of the previous join class page"). No panel shows
   until the engine has decided what comes first (it adds html.lc-ready); if the script never
   runs at all, the panel appears after 2.5 s anyway, so nobody is locked out. Only pages
   run by a class engine (body[data-class-id]) wait; the desk and the dashboard do not. */
html:not(.lc-ready) body[data-class-id] .lc-panel
{
  animation: lcPanelLate 2.5s steps(1, end) both;
}

@keyframes lcPanelLate
{
  from { visibility: hidden; }
  to { visibility: visible; }
}

/* while the screen is coming, the panel underneath waits out of sight */
html[data-landing] .lc-panel
{
  visibility: hidden;
}

body.lcl-open
{
  overflow: hidden;
}

.lcl
{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  overflow-y: auto;
  padding: clamp(16px, 3.4vw, 48px) 16px;
  background:
    radial-gradient(900px 620px at 8% -8%, var(--wash-a, rgba(231, 111, 0, .07)), transparent 65%),
    radial-gradient(820px 560px at 96% 6%, var(--wash-b, rgba(27, 79, 138, .06)), transparent 62%),
    radial-gradient(760px 520px at 50% 110%, var(--wash-a, rgba(231, 111, 0, .07)), transparent 60%),
    var(--paper, #FAFAF7);
  color: var(--ink, #0F172A);
  animation: lclFade .35s ease both;
}

.lcl.lcl-leave
{
  animation: lclOut .38s ease forwards;
}

.lcl-in
{
  position: relative;
  margin: auto;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas:
    "head today"
    "side today";
  gap: 26px clamp(28px, 4vw, 64px);
  align-items: start;
}

/* ----- who and what ----- */
.lcl-head
{
  grid-area: head;
  position: relative;
  isolation: isolate;
}

.lcl-ghost
{
  position: absolute;
  z-index: -1;
  right: 0;
  top: -.3em;
  font-weight: 800;
  font-size: clamp(130px, 17vw, 280px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent, #E76F00);
  opacity: .08;
  pointer-events: none;
  user-select: none;
  animation: lclGhost 1.2s cubic-bezier(.22, .9, .3, 1) .1s both;
}

.lcl-course
{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink, #1B4F8A);
  animation: lclRise .5s cubic-bezier(.22, .9, .3, 1) both;
}

.lcl-logo
{
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--accent-2, #F59E0B), 0 6px 16px rgba(15, 23, 42, .12);
  animation: lclBob 5.5s ease-in-out 1s infinite alternate;
}

.lcl-logo img
{
  width: 26px;
  height: 26px;
}

.lcl-kicker
{
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent, #E76F00);
  animation: lclRise .5s cubic-bezier(.22, .9, .3, 1) .08s both;
}

.lcl-title
{
  margin: 4px 0 0;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  animation: lclRise .6s cubic-bezier(.22, .9, .3, 1) .14s both;
}

.lcl-facts
{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.lcl-facts li
{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line, #E2E8F0);
  font-size: .9em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  animation: lclRise .45s cubic-bezier(.22, .9, .3, 1) both;
  animation-delay: calc(.3s + var(--i, 0) * 70ms);
}

.lcl-ic
{
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent, #E76F00);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- what today covers ----- */
.lcl-today
{
  grid-area: today;
}

.lcl-h
{
  font-size: .78em;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink, #1B4F8A);
  margin: 0 0 12px;
}

.lcl-cards
{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lcl-card
{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid var(--line, #E2E8F0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px -14px rgba(15, 23, 42, .22);
  animation: lclCard .55s cubic-bezier(.22, .9, .3, 1) both;
  animation-delay: calc(.35s + var(--i, 0) * 110ms);
}

.lcl-part-ic
{
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-t, #EFF5FF);
  color: var(--accent, #E76F00);
}

.lcl-part-svg
{
  width: 40px;
  height: 40px;
  overflow: visible;
  animation: lclBob 4.8s ease-in-out infinite alternate;
  animation-delay: calc(1.2s + var(--i, 0) * .6s);
}

.lcl-card .lcl-part-svg
{
  animation-delay: calc(1.2s + var(--i, 0) * .6s);
}

.lcl-line
{
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcl-card-words b
{
  display: block;
  font-size: 1.04em;
  line-height: 1.3;
}

.lcl-card-sub
{
  display: block;
  margin-top: 3px;
  font-size: .9em;
  line-height: 1.45;
  color: #334155;
}

/* many parts (a preparation, an NPTEL class): a numbered list, not cards */
.lcl-compact .lcl-cards
{
  gap: 8px;
}

.lcl-compact .lcl-card
{
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  animation-delay: calc(.3s + var(--i, 0) * 55ms);
}

.lcl-compact .lcl-part-ic
{
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.lcl-compact .lcl-part-svg
{
  width: 26px;
  height: 26px;
}

.lcl-compact .lcl-line
{
  width: 22px;
  height: 22px;
}

.lcl-compact .lcl-card-words
{
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.lcl-compact .lcl-card-words b
{
  font-size: .95em;
}

.lcl-card-n
{
  flex: none;
  font-weight: 800;
  font-size: .85em;
  color: var(--accent, #E76F00);
  font-variant-numeric: tabular-nums;
}

/* ----- have ready, and the button ----- */
.lcl-side
{
  grid-area: side;
}

.lcl-ready
{
  list-style: none;
  display: grid;
  gap: 8px;
}

.lcl-ready li
{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1.5px dashed var(--line, #E2E8F0);
  font-weight: 600;
  line-height: 1.4;
  animation: lclRise .45s cubic-bezier(.22, .9, .3, 1) both;
  animation-delay: calc(.55s + var(--i, 0) * 80ms);
}

.lcl-ready li > span
{
  min-width: 0;
  overflow-wrap: anywhere;
}

.lcl-strong
{
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent-ink, #1B4F8A);
  font-variant-ligatures: none;
}

.lcl-act
{
  margin-top: 20px;
  animation: lclRise .5s cubic-bezier(.22, .9, .3, 1) .8s both;
}

.lcl-go
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(340px, 100%);
  padding: 16px 28px;
  border: none;
  border-radius: 16px;
  background: var(--accent, #E76F00);
  color: #fff;
  font: inherit;
  font-size: 1.14em;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px var(--accent, #E76F00);
  animation: lclCall 2.6s ease-in-out 1.6s 2;
  transition: transform .15s ease, filter .15s ease;
}

.lcl-go:hover
{
  filter: brightness(1.08);
}

.lcl-go:active
{
  transform: translateY(1px);
}

.lcl-go:focus-visible
{
  outline: 3px solid var(--accent-ink, #1B4F8A);
  outline-offset: 3px;
}

.lcl-go-ic
{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.lcl-go:hover .lcl-go-ic
{
  transform: translateX(4px);
}

.lcl-note
{
  margin-top: 10px;
  font-size: .88em;
  color: #475569;
}

/* ----- the page's own form, asked right here (join, admin key, sign in) -----
   The panel's form moves into this column as it is; these rules make it look
   like the screen's own: white boxes on the paper, the send button as the
   screen's big button, the other ways in as quiet outlined buttons. */
.lcl-form
{
  width: min(500px, 100%);
}

.lcl-form form
{
  margin: 0;
}

.lcl-form label
{
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: .95em;
}

.lcl-form label:first-child
{
  margin-top: 0;
}

.lcl-form label .lc-num
{
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent, #E76F00);
  color: #fff;
  font-size: 13px;
  vertical-align: 1px;
}

.lcl-form label .lc-small
{
  font-weight: 600;
}

.lcl-form input:not([type="checkbox"]):not([type="radio"])
{
  display: block;
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  padding: 11px 14px;
  border: 2px solid var(--line, #E2E8F0);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #0F172A);
}

.lcl-form input:focus
{
  outline: none;
  border-color: var(--accent, #E76F00);
  box-shadow: 0 0 0 4px var(--accent-t, #EFF5FF);
}

.lcl-form .lcl-go
{
  width: 100%;
  min-width: 0;
  margin-top: 16px;
}

.lcl-form .lc-join-msg
{
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: .95em;
}

.lcl-form .lc-join-msg:empty
{
  min-height: 0;
  margin: 0;
}

.lcl-form .lc-btn:not(.lcl-go)
{
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--line, #E2E8F0);
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  color: var(--accent-ink, #1B4F8A);
  box-shadow: none;
  font-size: .9em;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.lcl-form .lc-btn:not(.lcl-go):hover
{
  background: #fff;
  border-color: var(--accent, #E76F00);
}

.lcl-form .lc-btn:focus-visible,
.lcl-form a:focus-visible
{
  outline: 3px solid var(--accent-ink, #1B4F8A);
  outline-offset: 2px;
}

.lcl-form .lc-small
{
  font-size: .88em;
  color: #475569;
}

.lcl-form .lc-or,
.lcl-form .lc-help
{
  margin: 10px 0 0;
  line-height: 1.5;
  text-align: left;
}

.lcl-form .lc-inst
{
  margin-top: 14px;
  text-align: left;
}

.lcl-form .lc-inst a
{
  color: var(--accent-ink, #1B4F8A);
  font-weight: 700;
}

/* ----- motion ----- */
@keyframes lclFade
{
  from
  {
    opacity: 0;
  }
}

@keyframes lclOut
{
  to
  {
    opacity: 0;
    transform: scale(1.015);
  }
}

@keyframes lclRise
{
  from
  {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes lclCard
{
  from
  {
    opacity: 0;
    transform: translateY(22px) scale(.97);
  }
}

@keyframes lclGhost
{
  from
  {
    opacity: 0;
    transform: translateX(40px);
  }
}

@keyframes lclBob
{
  from
  {
    transform: translateY(0) rotate(-2deg);
  }
  to
  {
    transform: translateY(-5px) rotate(2deg);
  }
}

@keyframes lclCall
{
  50%
  {
    box-shadow: 0 10px 26px -8px var(--accent, #E76F00), 0 0 0 8px var(--accent-t, #EFF5FF);
  }
}

@media (prefers-reduced-motion: reduce)
{
  .lcl,
  .lcl.lcl-leave,
  .lcl *
  {
    animation: none !important;
    transition: none !important;
  }
}

/* a projector: the room reads it from the back */
@media (min-width: 1500px)
{
  .lcl-in
  {
    font-size: 1.1em;
  }
}

/* a screen that asks something (join, admin key, sign in): the form takes the right column and
   the parts of today sit under the title, so the two columns are the same height and the whole
   screen, button included, fits a laptop without scrolling (instructor, 28 Sep 2026: "poor css
   at the bottom" - the join button had fallen below the fold on a 1366 x 630 window) */
@media (min-width: 901px)
{
  .lcl-has-form .lcl-in
  {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    /* the title row keeps its own height; a taller form column stretches the second row */
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head side"
      "today side";
  }

  /* the screen is exactly the window: nothing is cut at the foot (28 Sep 2026, on DBMS Class 0's
     six cards). Each part is one row, its picture beside its words; a long list of parts
     scrolls inside its own box instead of pushing the page */
  .lcl-has-form .lcl-in
  {
    height: 100%;
    margin: 0 auto;
  }

  .lcl-has-form .lcl-today
  {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
  }

  .lcl-has-form .lcl-today .lcl-cards
  {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 4px 4px 2px;
    margin: -2px -4px -4px -2px;
    scrollbar-width: thin;
  }

  .lcl-has-form .lcl-today .lcl-cards.lcl-more
  {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  }
}

/* a short laptop screen (768 px or less, less again with the browser's bars): tighter spacing */
@media (min-width: 901px) and (max-height: 820px)
{
  .lcl
  {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .lcl-in
  {
    row-gap: 16px;
  }

  .lcl-kicker
  {
    margin-top: 10px;
  }

  .lcl-title
  {
    font-size: clamp(32px, 3.4vw, 48px);
  }

  .lcl-facts
  {
    margin-top: 12px;
  }

  .lcl-cards
  {
    gap: 10px;
  }

  .lcl-act
  {
    margin-top: 14px;
  }

  .lcl-form label
  {
    margin: 10px 0 5px;
  }

  .lcl-form input:not([type="checkbox"]):not([type="radio"])
  {
    padding: 8px 12px;
    font-size: 17px;
  }

  .lcl-form .lcl-go
  {
    margin-top: 12px;
  }

  .lcl-card
  {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
  }

  .lcl-card .lcl-part-ic
  {
    flex: none;
    width: 40px;
    height: 40px;
  }

  .lcl-card .lcl-part-svg
  {
    width: 26px;
    height: 26px;
  }

  .lcl-card-sub
  {
    font-size: .85em;
  }

  /* the form column: the same things, closer together, so the teacher's and the
     preparation's screens fit too */
  .lcl-ready li
  {
    padding: 4px 12px;
  }

  .lcl-form .lc-btn:not(.lcl-go)
  {
    margin-top: 6px;
    padding: 6px 12px;
  }

  .lcl-form .lc-help,
  .lcl-form .lc-inst,
  .lcl-note
  {
    margin-top: 6px;
  }

  .lcl-go
  {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .lcl-form .lc-help,
  .lcl-form .lc-or
  {
    font-size: .8em;
    line-height: 1.4;
  }

  .lcl-ready
  {
    gap: 6px;
  }

  .lcl-h
  {
    margin-bottom: 8px;
  }

  .lcl-act
  {
    margin-top: 10px;
  }

  /* the quiet ways out (prepare, dashboard) sit side by side */
  .lcl-form .lc-btn.lc-prep-link:not(.lcl-go)
  {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }

  .lcl-form .lc-btn.lc-prep-link + .lc-btn.lc-prep-link:not(.lcl-go)
  {
    margin-left: 8px;
  }
}

/* the address to open is one piece: it moves to its own line whole, never broken in two
   (instructor, 28 Sep 2026: "rishi-fswd-java.pages.dev/dbms-c0 should be in a single line") */
.lcl-ready .lcl-strong
{
  white-space: nowrap;
}

@media (max-width: 420px)
{
  .lcl-ready .lcl-strong
  {
    white-space: normal;
    font-size: .92em;
  }
}

/* a tablet or a narrow window: one column, the button last */
@media (max-width: 900px)
{
  .lcl-in
  {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "today"
      "side";
    gap: 22px;
  }

  /* a screen that asks something: the form comes before the list of parts */
  .lcl-has-form .lcl-in
  {
    grid-template-areas:
      "head"
      "side"
      "today";
  }
}

/* a phone: the button stays in reach at the foot of the screen */
@media (max-width: 560px)
{
  .lcl
  {
    padding-bottom: 150px;
  }

  .lcl-cards
  {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lcl-card
  {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }

  .lcl-part-ic
  {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .lcl-part-svg
  {
    width: 32px;
    height: 32px;
  }

  .lcl-ghost
  {
    font-size: 120px;
  }

  /* however long the list of parts, the button is on the screen from the start */
  .lcl-act
  {
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 22px 16px 14px;
    background: linear-gradient(to top, var(--paper, #FAFAF7) 76%, rgba(250, 250, 247, 0));
  }

  .lcl-note
  {
    margin-top: 6px;
    text-align: center;
  }

  .lcl-go
  {
    width: 100%;
  }

  /* a form is taller than one button: it stays in the column, right under the title */
  .lcl-has-form
  {
    padding-bottom: 32px;
  }

  .lcl-has-form .lcl-act
  {
    position: static;
    margin-top: 16px;
    padding: 0;
    background: none;
  }

  .lcl-form
  {
    width: 100%;
  }

  .lcl-has-form .lcl-note
  {
    text-align: left;
  }
}

/* on a short screen with room to the side, the two columns stay */
@media (min-width: 901px) and (max-height: 760px)
{
  .lcl-card
  {
    padding: 12px 14px;
  }

  .lcl-part-ic
  {
    width: 46px;
    height: 46px;
  }

  .lcl-part-svg
  {
    width: 32px;
    height: 32px;
  }
}

/* =====================================================================
   The join code steps aside once the room has joined
   ---------------------------------------------------------------------
   Instructor, 26 Sep 2026: "the class code should disappear after 2-3
   minutes at the top; it need not be present always". Three minutes after
   the start (or after the last student joined, if later) the code folds
   into a small "Show code" chip; a tap shows it again for a minute for a
   latecomer. When joining closes (10 minutes) the chip says so, quietly.
   ===================================================================== */
.is-projector .lc-code-box.mini
{
  padding: 4px 12px;
  gap: 6px;
  background: rgba(255, 255, 255, .14);
  color: #E2E8F0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.lc-code-box.mini .lc-code-val
{
  display: none;
}

.lc-code-box.mini .lc-code-note
{
  color: inherit;
  font-size: 12.5px;
  max-width: none;
  white-space: nowrap;
}

.lc-code-box.mini.closed
{
  cursor: default;
  opacity: .6;
}

.lc-code-box.peek
{
  animation: lclRise .35s cubic-bezier(.22, .9, .3, 1) both;
}

@media (prefers-reduced-motion: reduce)
{
  .lc-code-box.peek
  {
    animation: none;
  }
}

/* =====================================================================
   A live class, looked at again from the back row and from a phone
   ---------------------------------------------------------------------
   Instructor, 26 Sep 2026: "if you find you can enhance the visual appeal
   and CSS, please do that". Everything here is for the live classes only.
   This sheet is also read by the preparation sessions,
   the NPTEL pages, a lab and the dashboard, and none of them is
   meant to change, so every rule starts from a body that carries a class
   number and is not a preparation page: body[data-class-no]:not(.tp).

   What was wrong, and what each block below does about it:
     1  the class number behind the welcome card was pushed so far past the
        corner that a "1" showed as a pale block and a "2" as half a curve;
        it now sits whole inside the corner, still faint;
     2  a poll with three answers left a hole where a fourth would go; three
        answers now stand in one row when the screen is wide enough;
     3  the small labels (the part pill, POLL, the minute count, a file name)
        stayed 12-13px on a 1920 projector; they now grow a little with it;
     4  the question of a poll or a quiz was smaller than a step's heading,
        although on that step it is the heading; it now reads like one;
     5  the take-home cards at the end looked exactly like the welcome cards,
        so the recap felt like the start again; they now carry the class
        colour and a stripe, and read as the summary;
     6  on a phone a card inside a box inside a card lost a third of the
        width to padding, and a program in a poll showed half a line; the
        padding is trimmed at each level instead;
     7  on a phone each part card stood 170px tall with its drawing on a
        line of its own; the drawing now sits beside the words;
     8  on a phone the topic index ran to eight tall rows before the class
        began; the rows are tighter and "covered" sits on the same line.
   ===================================================================== */

/* 1 · the class number, whole and faint in the corner */
body[data-class-no]:not(.tp)[data-theme] .lc-hero::after
{
  top: .06em;
  right: .16em;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(96px, 11vw, 200px);
  letter-spacing: -.04em;
  opacity: .08;
}

/* the floating shape sits lower so the number and the shape do not meet */
body[data-class-no]:not(.tp) .lc-hero-mark
{
  top: auto;
  bottom: 30%;
}

/* 2 · three answers in one row on a wide screen; four stay two by two */
@media (min-width: 1100px)
{
  body[data-class-no]:not(.tp) .lc-opts:has(> .lc-opt:nth-child(3):last-child)
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ... but three lines of code in a row would scroll below 1320px wide: one per row there */
@media (max-width: 1320px)
{
  body[data-class-no]:not(.tp) .lc-opts:has(> .lc-opt:nth-child(3):last-child):has(.lc-opt-body pre)
  {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 3 · the small labels grow with a projector, and never shrink below today */
body[data-class-no]:not(.tp) .lc-part,
body[data-class-no]:not(.tp) .lc-act-tag
{
  font-size: clamp(12px, .42vw + 6px, 15px);
}

body[data-class-no]:not(.tp) .lc-act-time,
body[data-class-no]:not(.tp) .lc-file
{
  font-size: clamp(13px, .4vw + 7.5px, 16px);
}

body[data-class-no]:not(.tp) .lc-remember b:first-child,
body[data-class-no]:not(.tp) .lc-warn b:first-child
{
  font-size: clamp(12px, .36vw + 7px, 14.5px);
}

/* 4 · on a question step the question is the heading */
body[data-class-no]:not(.tp) .lc-q
{
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: calc(clamp(20px, 1.25vw + 5px, 30px) * var(--fs, 1));
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.3;
  margin: 6px 0 14px;
}

/* 5 · the recap reads as the summary, in the class's own colour */
body[data-class-no]:not(.tp) .lc-step[data-part="Recap"]
{
  background: linear-gradient(180deg, var(--accent-t, #EFF5FF), var(--card) 46%);
  border-color: color-mix(in srgb, var(--accent, #1B4F8A) 22%, var(--line));
}

body[data-class-no]:not(.tp) .lc-step[data-part="Recap"] .lc-card
{
  position: relative;
  overflow: hidden;
  background: #fff;
  border-color: color-mix(in srgb, var(--accent, #1B4F8A) 26%, var(--line));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 20px rgba(15, 23, 42, .05);
  padding-top: 20px;
}

body[data-class-no]:not(.tp) .lc-step[data-part="Recap"] .lc-card::before
{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent, #1B4F8A), var(--accent-2, #E76F00));
}

body[data-class-no]:not(.tp) .lc-step[data-part="Recap"] .lc-card b
{
  color: var(--accent-ink, #1B4F8A);
}

/* 6, 7 and 8 · a phone */
@media (max-width: 560px)
{
  /* 6 · padding trimmed at each level, so the reading gets the width */
  body[data-class-no]:not(.tp) .lc-step
  {
    padding: 18px 14px;
    margin: 16px 0;
  }

  body[data-class-no]:not(.tp) .lc-act
  {
    padding: 14px 12px 12px;
  }

  body[data-class-no]:not(.tp) .lc-figure
  {
    padding: 6px;
  }

  body[data-class-no]:not(.tp) .lc-code pre
  {
    padding: 12px 12px 12px 8px;
  }

  body[data-class-no]:not(.tp) .lc-code
  {
    --gut: 1.9em;
  }

  body[data-class-no]:not(.tp) .lc-opt
  {
    padding: 10px 12px;
  }

  /* 7 · a part card: its drawing beside its words */
  body[data-class-no]:not(.tp) .lc-cards
  {
    gap: 10px;
  }

  body[data-class-no]:not(.tp) .lc-card:has(> .lc-icon)
  {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 14px;
  }

  body[data-class-no]:not(.tp) .lc-card > .lc-icon
  {
    grid-row: 1 / span 2;
  }

  body[data-class-no]:not(.tp) .lc-card .lc-icon svg
  {
    width: 52px;
    height: 52px;
  }

  body[data-class-no]:not(.tp) .lc-card:has(> .lc-icon) b
  {
    margin: 2px 0 2px;
  }

  body[data-class-no]:not(.tp) .lc-step[data-part="Recap"] .lc-card
  {
    padding-top: 18px;
  }

  /* 8 · the topic index: tighter rows, "covered" on the same line */
  body[data-class-no]:not(.tp) .lc-index-list
  {
    gap: 6px;
  }

  body[data-class-no]:not(.tp) .lc-index-go
  {
    flex-wrap: nowrap;
    align-items: baseline;
    padding: 7px 10px;
    font-size: .92rem;
  }

  body[data-class-no]:not(.tp) .lc-index-state
  {
    flex: 0 0 auto;
    padding-left: 0;
    font-size: .68rem;
    letter-spacing: .02em;
  }
}

/* a printed sheet shown word for word (the syllabus, the lab list, the exam pattern), as in
   an orientation class: a quiet two-column table, the row name on the left */
.lc-sheet
{
  width: 100%;
  margin: 12px 0 6px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: .96em;
  line-height: 1.5;
}
.lc-sheet th,
.lc-sheet td
{
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.lc-sheet tr:first-child th,
.lc-sheet tr:first-child td { border-top: 0; }
.lc-sheet th
{
  width: 22%;
  background: var(--accent-t, #EEF2FF);
  color: var(--accent-ink, #1E3A8A);
  font-weight: 700;
}
@media (max-width: 600px)
{
  .lc-sheet th, .lc-sheet td { display: block; width: auto; }
  .lc-sheet td { border-top: 0; }
}

/* =====================================================================
   A syllabus, point by point (an orientation class: aims, outcomes, units,
   the lab, the marks). Each .lc-item is one press: an icon on the left, a
   short tag (CO1, Unit I), the syllabus's own words, then a plain line.
   The list is an .lc-cards, so each item is its own point; a .lc-kicker
   inside it heads a group and takes no press.
   ===================================================================== */
.lc-cards.lc-items
{
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.lc-cards.lc-items > .lc-kicker,
.lc-cards.lc-tools > .lc-kicker
{
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--accent-ink, #1E3A8A);
  font-size: 13.5px;
  letter-spacing: .03em;
  text-transform: none;
}

.lc-cards.lc-items > .lc-kicker:first-child,
.lc-cards.lc-tools > .lc-kicker:first-child
{
  margin-top: 0;
}

.lc-item
{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 14px 18px 14px 14px;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--accent, #4338CA);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  animation: lcIn .45s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-item.lc-item-gold
{
  border-left-color: var(--accent-2, #F59E0B);
}

.lc-item-ic svg
{
  display: block;
  width: 52px;
  height: 52px;
}

.lc-item-body > * + *
{
  margin-top: 4px;
}

.lc-item-head
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
}

.lc-item-tag
{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-t, #EEF0FF);
  color: var(--accent-ink, #312E81);
  font-family: var(--mono);
  font-size: .8em;
  font-weight: 800;
  letter-spacing: .02em;
}

.lc-item-count
{
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  font-size: .8em;
  font-weight: 600;
}

.lc-item-words
{
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.lc-item-plain
{
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.lc-item-plain::before
{
  content: "\2192\00a0";
  color: var(--accent-2, #D97706);
  font-weight: 800;
}

.lc-item-syl
{
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: #475569;
  font-size: .86em;
  line-height: 1.5;
}

.lc-item-syl b
{
  color: var(--accent-ink, #312E81);
}

/* marks laid out as small tiles, one per part of the assessment */
.lc-marks
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 6px 0 2px;
}

.lc-marks > span
{
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent-t, #EEF0FF);
  color: #334155;
  font-size: .92em;
  line-height: 1.4;
}

.lc-marks > span b
{
  display: block;
  margin-bottom: 2px;
  color: var(--accent-ink, #312E81);
  font-family: var(--mono);
  font-size: .9em;
}

.lc-item ol
{
  margin: 4px 0 0;
  padding-left: 1.4em;
  line-height: 1.5;
}

/* two items side by side on a wide screen (the two objectives, the two exercise lists) */
@media (min-width: 900px)
{
  .lc-cards.lc-items.lc-items-2
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-cards.lc-items.lc-items-2 > .lc-kicker
  {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px)
{
  .lc-item
  {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 12px 12px 12px 10px;
  }

  .lc-item-ic svg
  {
    width: 40px;
    height: 40px;
  }
}

/* ----- a tool, with a small sample of what it looks like ----- */
.lc-cards.lc-tools
{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px)
{
  .lc-cards.lc-tools
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px)
{
  .lc-cards.lc-tools
  {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lc-tool
{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  animation: lcIn .45s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-tool-look
{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #F8FAFC;
  overflow: hidden;
}

.lc-tool-look svg
{
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

.lc-tool-look pre
{
  width: 100%;
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  color: #0F172A;
}

.lc-tool-when
{
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-t, #EEF0FF);
  color: var(--accent-ink, #312E81);
  font-family: var(--mono);
  font-size: .74em;
  font-weight: 800;
}

.lc-tool-when.lc-tool-now
{
  background: #DCFCE7;
  color: #14532D;
}

.lc-tool b
{
  color: var(--ink);
  font-size: 1.02em;
}

.lc-tool > span:last-child
{
  color: #475569;
  font-size: .92em;
  line-height: 1.45;
}

/* ----- the hashing stepper, a first look that really computes ----- */
/* inside a poll it waits for the answer: predict first, then try */
.lc-stepped .lc-act:not(.revealed) .lc-hash
{
  display: none;
}

.lc-act .lc-hash
{
  margin-top: 12px;
}

.lc-hash
{
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.lc-hash-row
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lc-hash-row input
{
  width: 7em;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 1em;
}

.lc-hash-say
{
  margin: 10px 0 0;
  min-height: 1.5em;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-ink, #312E81);
}

.lc-hash-buckets
{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lc-hash-b
{
  min-height: 92px;
  border: 1.5px solid var(--accent, #4338CA);
  border-radius: 10px;
  background: var(--accent-t, #EEF0FF);
  overflow: hidden;
}

.lc-hash-b > b
{
  display: block;
  padding: 3px 0;
  background: var(--accent, #4338CA);
  color: #fff;
  font-family: var(--mono);
  font-size: .8em;
  text-align: center;
}

.lc-hash-b > i
{
  display: block;
  margin: 5px 6px 0;
  padding: 2px 0;
  border-radius: 6px;
  background: #fff;
  color: #0F172A;
  font-family: var(--mono);
  font-size: .9em;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  animation: lcIn .35s cubic-bezier(.22, .9, .3, 1) both;
}

.lc-hash-b > i.lc-hash-new
{
  background: #FEF3C7;
  outline: 2px solid var(--accent-2, #F59E0B);
}

@media (max-width: 560px)
{
  .lc-hash-buckets
  {
    gap: 5px;
  }

  .lc-hash-b > b
  {
    font-size: .68em;
  }
}

/* ----- the course plan as one bar, split by unit in proportion to its classes ----- */
.lc-plan
{
  grid-column: 1 / -1;
  padding: 16px;
  border: 1.5px solid color-mix(in srgb, var(--accent, #4338CA) 26%, var(--line));
  border-radius: 14px;
  background: #fff;
}

.lc-plan > b
{
  color: var(--accent-ink, #312E81);
}

.lc-plan-bar
{
  display: grid;
  grid-template-columns: 8fr 10fr 10fr 8fr 8fr;
  gap: 4px;
  margin: 10px 0 8px;
}

.lc-plan-bar > span
{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: var(--accent-t, #EEF0FF);
  color: var(--accent-ink, #312E81);
  font-size: .82em;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.lc-plan-bar > span b
{
  font-family: var(--mono);
  font-size: 1.05em;
}

@media (max-width: 560px)
{
  .lc-plan-bar
  {
    grid-template-columns: minmax(0, 1fr);
  }

  .lc-plan-bar > span
  {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 10px;
  }
}

/* =====================================================================
   Slim chrome: one quiet row at the top, a thin rail at the foot
   ---------------------------------------------------------------------
   Instructor, 27 Sep 2026: "header and footer in the ENTIRE LMS should be
   slim", "header and footer should not be distracting at all". The strips
   had been made shorter three times and grew back each time, because each
   sheet (this one, teacher-prep.css, module.css, furniture.css, rapid.css,
   the theme rules) re-dressed them later with heavier selectors. So this
   is the one last word on the strips, and it is measured on every push by
   tools/audit/chrome.mjs (qa/check-chrome.pl): header 48-56 px, foot
   44-52 px, neither more than 12% of the screen.

   Every selector starts with html:not(#lc-chrome). That id is on no
   element; the :not() only lifts these rules above the class-only rules
   of the sheets that load after this one (a later sheet cannot quietly
   make the strip tall again). It never sets display on a control, so the
   browser's own [hidden] and the projector-only .lc-pj keep working.

   One look everywhere: white strip, a hairline under it, a small title
   with its subtitle after it (only the subtitle is cut short), small text
   buttons, the text size and the rarer actions in two small menus
   (js/text-size.js). The foot: a small Back, a quiet position line, one
   clear Next. The A- A A+ A++ sizes change the reading, never the strips.
   ===================================================================== */
html:not(#lc-chrome) .lc-bar,
html:not(#lc-chrome) .tp-bar,
html:not(#lc-chrome) .nm-bar,
html:not(#lc-chrome) .rp-bar
{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  color: #0F172A;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: none;
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

html:not(#lc-chrome) .lc-bar-in,
html:not(#lc-chrome) .tp-bar-in,
html:not(#lc-chrome) .nm-bar-in
{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  /* the menus open below the strip; a strip that scrolls would cut them off */
  overflow: visible;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
}

html:not(#lc-chrome) .tp-bar-in
{
  max-width: 1100px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ----- the title: small, one line; the subtitle gives way, the title never does ----- */
html:not(#lc-chrome) .lc-bar .lc-brand,
html:not(#lc-chrome) .tp-bar .lc-brand,
html:not(#lc-chrome) .nm-bar .lc-brand,
html:not(#lc-chrome) .rp-bar .rp-brand
{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: auto;
  margin-right: 8px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: #0F172A;
}

html:not(#lc-chrome) .lc-bar .lc-brand > div,
html:not(#lc-chrome) .tp-bar .lc-brand > div,
html:not(#lc-chrome) .nm-bar .lc-brand > div,
html:not(#lc-chrome) .rp-bar .rp-brand > div
{
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  gap: 0;
  min-width: auto;
  white-space: nowrap;
}

html:not(#lc-chrome) .lc-bar .lc-brand small,
html:not(#lc-chrome) .tp-bar .lc-brand small,
html:not(#lc-chrome) .nm-bar .lc-brand small,
html:not(#lc-chrome) .rp-bar .rp-brand small
{
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  /* its width never holds the title back: only the title sets how narrow the brand may get */
  contain: inline-size;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748B;
}

html:not(#lc-chrome) .lc-bar .lc-brand small::before,
html:not(#lc-chrome) .tp-bar .lc-brand small::before,
html:not(#lc-chrome) .nm-bar .lc-brand small::before,
html:not(#lc-chrome) .rp-bar .rp-brand small::before
{
  content: "·";
  margin: 0 7px;
  color: #CBD5E1;
}

html:not(#lc-chrome) .lc-bar .lc-logo,
html:not(#lc-chrome) .tp-bar .lc-logo,
html:not(#lc-chrome) .nm-bar .lc-logo
{
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none;
}

html:not(#lc-chrome) .lc-bar .lc-logo img,
html:not(#lc-chrome) .tp-bar .lc-logo img,
html:not(#lc-chrome) .nm-bar .lc-logo img,
html:not(#lc-chrome) .rp-bar .rp-brand img
{
  flex: none;
  width: 22px;
  height: 22px;
}

/* ----- small text buttons and quiet labels ----- */
html:not(#lc-chrome) .lc-bar .lc-chip-btn,
html:not(#lc-chrome) .lc-bar .lc-menu-btn,
html:not(#lc-chrome) .tp-bar .lc-menu-btn,
html:not(#lc-chrome) .nm-bar .lc-menu-btn,
html:not(#lc-chrome) .rp-bar .lc-menu-btn,
html:not(#lc-chrome) .rp-bar .rp-chip,
html:not(#lc-chrome) .tp-bar .tp-clock-btn,
html:not(#lc-chrome) .nm-bar .nm-clock-btn,
html:not(#lc-chrome) .nm-bar .nm-submit-btn,
html:not(#lc-chrome) .nm-bar-in > a.nm-where,
html:not(#lc-chrome) .tp-bar .tp-dash-top,
html:not(#lc-chrome) .tp-bar #np-ss-reset,
html:not(#lc-chrome) .nm-bar #np-ss-reset
{
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  min-height: 0;
  padding: 0 10px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  opacity: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  filter: none;
}

html:not(#lc-chrome) .lc-bar .lc-chip-btn:hover:not(:disabled),
html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-menu-btn:hover,
html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-menu.open > .lc-menu-btn,
html:not(#lc-chrome) .rp-bar .rp-chip:hover,
html:not(#lc-chrome) .tp-bar .tp-clock-btn:hover:not(:disabled),
html:not(#lc-chrome) .nm-bar .nm-clock-btn:hover,
html:not(#lc-chrome) .nm-bar-in > a.nm-where:hover
{
  background: #F1F5F9;
  color: #0F172A;
}

html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) :is(button, a):focus-visible
{
  outline: 2px solid #2563EB;
  outline-offset: 1px;
}

html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-menu-btn
{
  display: inline-flex;
}

html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-fs > .lc-menu-btn
{
  min-width: 36px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 650;
}

/* quiet words: who is here, the status, where the reader is */
html:not(#lc-chrome) .lc-bar .lc-status,
html:not(#lc-chrome) .lc-bar .lc-who,
html:not(#lc-chrome) .tp-bar .tp-who,
html:not(#lc-chrome) .tp-bar .tp-meter,
html:not(#lc-chrome) .tp-bar .tp-meter span,
html:not(#lc-chrome) .rp-bar .rp-where,
html:not(#lc-chrome) .nm-bar .nm-where,
html:not(#lc-chrome) .nm-bar .np-ss-tag
{
  flex: none;
  padding: 0 6px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  color: #64748B;
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
}

html:not(#lc-chrome) .lc-bar .lc-status.on
{
  color: #166534;
}

html:not(#lc-chrome) .lc-bar .lc-status.on::before
{
  width: 7px;
  height: 7px;
  background: #22C55E;
}

html:not(#lc-chrome) .tp-bar .tp-meter
{
  display: flex;
  flex-direction: row;
  margin-left: auto;
  padding: 0;
}

/* where the reader is: the one label allowed to give way, a little at a time */
html:not(#lc-chrome) .nm-bar #nm-where,
html:not(#lc-chrome) .rp-bar .rp-where
{
  flex: 0 1 auto;
  order: 0;
  min-width: 0;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px;
}

/* the progress line under the strip: a hairline */
html:not(#lc-chrome) .lc-bar .lc-track,
html:not(#lc-chrome) .tp-bar .lc-track,
html:not(#lc-chrome) .rp-bar .rp-track
{
  height: 2px;
  background: transparent;
}

/* ----- the session clock (preparations and NPTEL classes) ----- */
html:not(#lc-chrome) .tp-bar .tp-clock,
html:not(#lc-chrome) .nm-bar .nm-clock
{
  flex: none;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #334155;
  background: #F1F5F9;
  border-radius: 6px;
}

html:not(#lc-chrome) .tp-bar .tp-clock.ok,
html:not(#lc-chrome) .nm-bar .nm-clock.ok
{
  color: #166534;
  background: #DCFCE7;
}

html:not(#lc-chrome) .tp-bar .tp-clock.near,
html:not(#lc-chrome) .nm-bar .nm-clock.near
{
  color: #92400E;
  background: #FEF3C7;
}

html:not(#lc-chrome) .tp-bar .tp-clock.slow,
html:not(#lc-chrome) .nm-bar .nm-clock.slow
{
  color: #991B1B;
  background: #FEE2E2;
}

html:not(#lc-chrome) .nm-bar .np-prog
{
  color: #475569;
  font-family: var(--mono);
  font-size: 12px;
  background: transparent;
  padding: 0 6px;
}

html:not(#lc-chrome) .nm-bar .np-prog-track
{
  background: #E2E8F0;
}

/* ----- the live class, projector side: what the teacher must see, compact ----- */
html:not(#lc-chrome) .lc-bar .lc-prog
{
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  margin-left: 4px;
  padding: 0 10px;
  border-left: 1px solid #E5E7EB;
  color: #0F172A;
}

html:not(#lc-chrome) .lc-bar .lc-prog b
{
  font-size: 13px;
  font-weight: 600;
}

html:not(#lc-chrome) .lc-bar .lc-prog span
{
  font-size: 12px;
  color: #64748B;
}

/* the join code: the one thing in the strip the back row must read */
html:not(#lc-chrome) .lc-bar .lc-code-box
{
  flex: none;
  gap: 8px;
  padding: 2px 10px;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: none;
}

html:not(#lc-chrome) .lc-bar .lc-code-val
{
  font-size: 26px;
  letter-spacing: .14em;
  line-height: 1.15;
}

html:not(#lc-chrome) .lc-bar .lc-code-note
{
  max-width: 120px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #64748B;
}

html:not(#lc-chrome) .lc-bar .lc-code-box.mini
{
  padding: 0 10px;
  height: 32px;
  color: #334155;
  background: transparent;
  border-color: #E2E8F0;
}

html:not(#lc-chrome) .lc-bar .lc-code-box.mini .lc-code-note
{
  font-size: 12.5px;
  color: inherit;
}

html:not(#lc-chrome) .lc-bar .lc-meter
{
  flex: none;
  gap: 6px;
  padding: 0 4px;
  font-size: 12px;
}

html:not(#lc-chrome) .lc-bar .lc-clock
{
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

html:not(#lc-chrome) .lc-bar .lc-pace
{
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
}

html:not(#lc-chrome) .lc-bar .lc-pace.ok
{
  color: #166534;
  background: #DCFCE7;
}

html:not(#lc-chrome) .lc-bar .lc-pace.warn
{
  color: #92400E;
  background: #FEF3C7;
}

html:not(#lc-chrome) .lc-bar .lc-pace.late
{
  color: #991B1B;
  background: #FEE2E2;
}

html:not(#lc-chrome) .lc-bar .lc-chip-btn.lc-end
{
  color: #B91C1C;
  border: 1px solid #FECACA;
}

html:not(#lc-chrome) .lc-bar .lc-chip-btn.lc-end:hover
{
  color: #fff;
  background: #DC2626;
  border-color: #DC2626;
}

/* ----- the two small menus (js/text-size.js) ----- */
html:not(#lc-chrome) .lc-menu
{
  position: relative;
  flex: none;
}

/* the text-size menu shows at every width (older rules hid the A- A A+ A++ row on a phone) */
html:not(#lc-chrome) .lc-menu.lc-fs
{
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

html:not(#lc-chrome) .lc-menu[hidden]
{
  display: none;
}

html:not(#lc-chrome) .lc-menu-pop
{
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px;
  background: #fff;
  color: #0F172A;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

html:not(#lc-chrome) .lc-menu-pop[hidden]
{
  display: none;
}

/* every item in More reads as one row of a list, whatever it was in the strip */
html:not(#lc-chrome) .lc-more .lc-menu-pop > *
{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  height: auto;
  margin: 0;
  padding: 8px 10px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  color: #0F172A;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  opacity: 1;
  filter: none;
  cursor: pointer;
  box-sizing: border-box;
}

html:not(#lc-chrome) .lc-more .lc-menu-pop > [hidden]
{
  display: none;
}

html:not(#lc-chrome) .lc-more .lc-menu-pop > :is(button, a):hover:not(:disabled)
{
  background: #F1F5F9;
}

html:not(#lc-chrome) .lc-more .lc-menu-pop > :is(button, a):disabled
{
  color: #94A3B8;
  cursor: default;
}

/* a count or a label moved in from the strip is information, not an action */
html:not(#lc-chrome) .lc-more .lc-menu-pop > span
{
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: #475569;
  cursor: default;
}

html:not(#lc-chrome) .lc-more .lc-menu-pop > :is(button, a) + span
{
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #EEF2F6;
  border-radius: 0;
}

/* Submit sends the record: the one item that looks like it means something */
html:not(#lc-chrome) .lc-more .lc-menu-pop > :is(#lc-submit, #tp-submit, #nm-submit)
{
  font-weight: 650;
  color: #C2410C;
}

html:not(#lc-chrome) .lc-more .lc-menu-pop > #rp-sign.in
{
  color: #0F766E;
}

/* the four text sizes, side by side */
html:not(#lc-chrome) .lc-fs .lc-menu-pop
{
  flex-direction: row;
  min-width: 0;
  padding: 4px;
  gap: 2px;
}

html:not(#lc-chrome) .lc-fs .lc-menu-pop button
{
  min-width: 40px;
  height: 36px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

html:not(#lc-chrome) .lc-fs .lc-menu-pop button:hover
{
  background: #F1F5F9;
}

html:not(#lc-chrome) .lc-fs .lc-menu-pop button.on
{
  color: #fff;
  background: #0F172A;
}

/* ----- a phone: the same one row, tap-sized, the least needed words step aside ----- */
@media (max-width: 720px)
{
  html:not(#lc-chrome) .lc-bar-in,
  html:not(#lc-chrome) .tp-bar-in,
  html:not(#lc-chrome) .nm-bar-in
  {
    min-height: 52px;
    gap: 2px;
  }

  html:not(#lc-chrome) .tp-bar-in
  {
    padding-left: 12px;
    padding-right: 8px;
  }

  html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) :is(.lc-menu-btn, .lc-chip-btn, .rp-chip, .tp-clock-btn, .nm-clock-btn, .nm-submit-btn, .tp-dash-top)
  {
    height: 40px;
    min-width: 40px;
    line-height: 40px;
    padding: 0 8px;
  }

  html:not(#lc-chrome) .lc-more .lc-menu-pop > *
  {
    min-height: 44px;
  }

  html:not(#lc-chrome) .lc-fs .lc-menu-pop button
  {
    height: 44px;
    min-width: 48px;
  }

  html:not(#lc-chrome) .lc-bar .lc-brand small,
  html:not(#lc-chrome) .tp-bar .lc-brand small,
  html:not(#lc-chrome) .nm-bar .lc-brand small,
  html:not(#lc-chrome) .rp-bar .rp-brand small,
  html:not(#lc-chrome) .tp-bar .tp-meter,
  html:not(#lc-chrome) .tp-bar .tp-who,
  html:not(#lc-chrome) .tp-bar #tp-pace,
  html:not(#lc-chrome) .rp-bar .rp-where,
  html:not(#lc-chrome) .nm-bar .nm-clock
  {
    display: none;
  }

  /* More becomes the three dots a phone reader knows */
  html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-more > .lc-menu-btn > :is(span, .lc-more-down)
  {
    display: none;
  }

  html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) .lc-more > .lc-menu-btn > .lc-more-dots
  {
    display: block;
  }

  html:not(#lc-chrome) .nm-bar #nm-where
  {
    display: none;
  }

  html:not(#lc-chrome) .lc-bar .lc-status
  {
    max-width: 96px;
    white-space: normal;
    font-size: 11.5px;
    text-align: right;
  }

  html:not(#lc-chrome) .lc-bar .lc-code-val
  {
    font-size: 20px;
  }

  html:not(#lc-chrome) .lc-bar .lc-code-note
  {
    display: none;
  }
}

html:not(#lc-chrome) .lc-more-dots
{
  display: none;
}

/* a projector strip opened on a phone: the join code, the clock, the count and End
   are what the teacher needs; the class name is on the screen below */
@media (max-width: 560px)
{
  html:not(#lc-chrome) .is-projector .lc-bar .lc-brand,
  html:not(#lc-chrome) .is-projector .lc-bar .lc-pace
  {
    display: none;
  }

  html:not(#lc-chrome) .is-projector .lc-bar .lc-code-box
  {
    margin-right: auto;
  }
}

@media (max-width: 420px)
{
  html:not(#lc-chrome) .lc-bar .lc-who
  {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce)
{
  html:not(#lc-chrome) :is(.lc-bar, .tp-bar, .nm-bar, .rp-bar) *
  {
    transition: none;
    animation: none;
  }
}

/* Self mode: the button beside "Join the live class", and the thin rail the student drives with */
.lc-self-btn
{
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lc-self-ic
{
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Self mode's bar at the foot: one thin, quiet row (instructor, 3 Oct 2026: "make the footer Next button slim
   and not distracting"). Fixed sizes, so the page's text-size control does not swell it; on a phone the two
   buttons keep a 40px tap height. Slimmer again on 4 Oct 2026 ("slim enough, without a distracted feel", every
   Self-mode session): no shadow, a 26px row, and the step count is left to the header, which already shows it. */
.lc-self-bar
{
  position: fixed;
  left: 50%;
  bottom: 6px;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(203, 213, 225, .7);
  max-width: calc(100vw - 24px);
  font-size: 11.5px;
  line-height: 1;
}

/* 4 Oct 2026, a second time ("should be slim, less height; the Next and Back labels stylish and slim enough"):
   a 20px row, light labels with fine chevrons, and no filled button until the pointer is on it */
.lc-self-bar .lc-btn
{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  height: 20px;
  margin: 0;                 /* a ghost button elsewhere sits 10px lower: here Back and Next share one line */
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 11.5px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: none;
}

.lc-self-bar .lc-btn:not(.lc-ghost)
{
  color: var(--accent-ink, #1E3A8A);
  font-weight: 600;
}

.lc-self-bar .lc-btn:not(.lc-ghost):hover,
.lc-self-bar .lc-btn:not(.lc-ghost):focus-visible
{
  background: var(--accent-t, #EEF2FF);
  color: var(--accent-ink, #1E3A8A);
}

.lc-self-bar .lc-btn.lc-ghost
{
  color: #64748B;
}

.lc-self-bar .lc-btn.lc-ghost:hover,
.lc-self-bar .lc-btn.lc-ghost:focus-visible
{
  background: #F1F5F9;
  color: #334155;
}

.lc-self-bar .lc-btn[disabled]
{
  opacity: .4;
}

/* the header already says "step N of M"; here it is kept for a screen reader only */
.lc-self-where
{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.is-self main
{
  padding-bottom: 44px;
}

.lc-self-clock
{
  padding: 0 8px;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  font: 500 10.5px/1 var(--mono, 'JetBrains Mono', monospace);
  font-variant-numeric: tabular-nums;
  color: #64748B;
  white-space: nowrap;
}

.lc-self-clock.low
{
  color: #BE123C;
}

@media (max-width: 640px)
{
  .lc-self-bar
  {
    left: 8px;
    right: 8px;
    transform: none;
    justify-content: space-between;
  }

  .lc-self-bar .lc-btn
  {
    height: 40px;
  }

}

/* The official syllabus line on a class's opening screen: always shown, never a press
   (instructor, 28 Sep 2026: each live class says which part of the official syllabus it covers) */
body .lc-hero .lc-kicker.lc-syllabus
{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  margin: 4px 0 0;
  max-width: 70ch;
}

/* The official syllabus wording, highlighted (instructor, 29 Sep 2026: "highlight the official
   syllabus wording clearly"): a label naming the syllabus and unit, then the syllabus's own words */
body .lc-hero .lc-kicker.lc-syllabus
{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0 0;
  padding: 6px 14px 6px 6px;
  max-width: 100%;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(14px, .35vw + 10px, 17px);
  letter-spacing: 0;
  text-transform: none;
  color: #1F2937;
}

body .lc-hero .lc-kicker.lc-syllabus .syl-tag
{
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #B45309;
  color: #FFFFFF;
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .02em;
}

body .lc-hero .lc-kicker.lc-syllabus .syl-sep
{
  display: none;
}

body .lc-hero .lc-kicker.lc-syllabus .syl-topics
{
  font-weight: 700;
  color: #111827;
}

/* a word cloud's words to tap (no typing: instructor, 29 Sep 2026) */
.lc-cloud-pick
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.lc-cloud-chip
{
  font: 600 clamp(15px, .3vw + 12px, 18px) "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  cursor: pointer;
}

.lc-cloud-chip:hover
{
  border-color: #6366F1;
}

.lc-cloud-chip.on
{
  background: #4338CA;
  border-color: #4338CA;
  color: #FFFFFF;
}

.lc-cloud-chip:focus-visible
{
  outline: 3px solid #818CF8;
  outline-offset: 2px;
}

/* the student's own word under a cloud: to the teacher only */
.lc-cloud-own
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 4px;
}

.lc-cloud-own input
{
  flex: 1 1 220px;
  font: 500 15px "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 8px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
}

.lc-cloud-own .lc-small
{
  flex-basis: 100%;
  margin: 0;
  color: #64748B;
}

/* ====================================================================== */
/* Room mode and the taught answer (instructor, 30 Sep 2026)               */
/* ====================================================================== */

/* room + live: the join code stays small in the corner for the few with laptops; the results
   show after Stop only when someone answered (live-class.js) */

/* what to write, in every mode: the notebook line under the question */
.lc-note-do { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 4px; padding: 8px 12px; border-left: 4px solid #0F766E; background: #F0FDFA; border-radius: 8px; font-weight: 600; color: #134E4A; }
.lc-note-do::before { content: "✎"; font-weight: 700; }

/* the answer, taught one press at a time; hidden until the answer is shown */
.lc-act:not(.revealed) .lc-teach { display: none; }
.lc-teach { margin-top: 14px; padding: 14px 16px 6px; border: 1px solid #C7D2FE; border-radius: 14px; background: #F8FAFF; }
.lc-teach::before { content: "The answer, step by step"; display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4338CA; }
.lc-teach[data-once] { margin-top: 10px; padding: 0; border: 0; background: none; }
.lc-teach[data-once]::before { content: none; }
.lc-teach > p { margin: 0 0 10px; }
.lc-teach .lc-mistake { border-left: 4px solid #B4460E; background: #FFF7ED; padding: 8px 12px; border-radius: 8px; }
.lc-teach .lc-mistake b:first-child { color: #9A3412; }
.lc-teach .lc-marks { display: block; border-left: 4px solid #15803D; background: #F0FDF4; padding: 8px 12px; border-radius: 8px; }
.lc-teach .lc-marks b:first-child { color: #166534; }

/* a fix: the wrong line is struck through on its own press, the right one types in on the next */
.lc-code .cl-del { position: relative; background: #FEF2F2; }
.lc-code .cl-strike { position: absolute; left: 3.2em; right: 8px; top: 52%; height: 3px; border-radius: 3px; background: #DC2626; transform-origin: left center; animation: lcStrike .5s ease-out both; }
.lc-code .cl-add { background: #ECFDF5; box-shadow: inset 4px 0 0 #16A34A; }
@keyframes lcStrike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* a trace table: the heading, then one row per press */
.lc-trace { border-collapse: collapse; margin: 6px 0 12px; font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 15px; background: #fff; }
.lc-trace th, .lc-trace td { border: 1px solid #CBD5E1; padding: 6px 12px; text-align: left; }
.lc-trace th { background: #EEF2FF; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 13px; }
.lc-stepped .lc-trace tbody tr { animation: lcRise .45s cubic-bezier(.22, .9, .3, 1) both; }

/* write in your notes: a ruled notebook page the room copies from */
.lc-notebook { margin: 14px 0; padding: 12px 18px 12px 46px; border: 1px solid #E7D9B8; border-radius: 12px; background: repeating-linear-gradient(#FFFDF6 0 30px, #EFE6CF 30px 31px); position: relative; line-height: 31px; }
.lc-notebook::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: #F4A5A5; }
.lc-notebook h3 { margin: 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #92400E; line-height: 31px; }
.lc-notebook ol, .lc-notebook ul { margin: 0; padding-left: 20px; }
.lc-notebook p { margin: 0; }

/* room mode: the key points inside the teaching say "write this down" as they appear */
body.is-room .lc-big-idea::after,
body.is-room .lc-remember::after { content: "✎ Note this"; display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; font: 700 12px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .02em; vertical-align: middle; }

/* room mode: a coding activity's program is there to read; nobody runs it, so the runner's controls go */
body.is-room .lc-act .jr-badges,
body.is-room .lc-act .jr-badge,
body.is-room .lc-act .jr-actions,
body.is-room .lc-act .jr-bar,
body.is-room .lc-act .jr-input,
body.is-room .lc-act .jr-inbox,
body.is-room .lc-act .jr-out,
body.is-room .lc-act .jr-hintbox,
body.is-room .lc-act .jr-results,
body.is-room .lc-act .jr-status,
body.is-room .lc-act .jr-term { display: none !important; }
body.is-room .lc-act .jr-editor { pointer-events: none; }

/* on the projector a task's program shows every line: the box grows to the program, so nothing sits below
   a box the teacher cannot scroll, and the mouse wheel scrolls the page through it (instructor, 29 Oct 2026) */
.is-projector .jr-code { field-sizing: content; resize: none; }
@supports not (field-sizing: content)
{
  /* a browser that cannot grow the box lets the teacher scroll inside it instead */
  body.is-room .lc-act .jr-editor { pointer-events: auto; }
}

/* a taught step that holds several things plays them in order: the strike, then the right line
   typing in; a program, then its output */
.lc-stepped .lc-step .lc-teach .lc-code .cl-add { animation-delay: .55s !important; }
.lc-stepped .lc-step .lc-teach .lc-console,
.lc-stepped .lc-step .lc-teach .lc-console-body .lc-line,
.lc-stepped .lc-step .lc-teach .lc-preview { animation-delay: .45s !important; }
.lc-stepped .lc-step .lc-teach .lc-code .cl-add { animation-name: lcRise; animation-duration: .45s; animation-fill-mode: both; }

/* a code figure whose page is the real program, running (data-live): see js/react-runner.js */
.lc-preview-head .rx-live-again
{
  float: right;
  margin: -2px 0 0;
  font: 700 11px/1 var(--mono);
  letter-spacing: .04em;
  color: #0E7490;
  background: #fff;
  border: 1px solid #A5F3FC;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.lc-preview-head .rx-live-again:hover { background: #CFFAFE; }
.lc-preview-body.rx-live-body { padding: 0; position: relative; }
.rx-live-still { padding: 14px 18px; }
.rx-frame.rx-live
{
  display: block;
  width: 100%;
  height: 110px;
  min-height: 0;
  border: 0;
  background: #fff;
}
.rx-live-log { border-top: 1px solid #E2E8F0; background: #F8FAFC; }
.rx-live-log-head
{
  font: 800 11px/1 var(--mono);
  letter-spacing: .12em;
  color: #475569;
  padding: 7px 14px 0;
}
.rx-live-log-body
{
  margin: 0;
  padding: 6px 14px 10px;
  min-height: 1.5em;
  font: 600 14px/1.5 var(--mono);
  color: #0F172A;
  background: transparent;
  white-space: pre-wrap;
}

/* Preparations are reached only from the teacher dashboard (instructor, 2 Oct 2026): no page a student can
   open shows a link to one. The link stays in the page for the checks that read its minutes. */
a.lc-prep-link:not(.lc-dash-link) { display: none !important; }

/* a self-only class (body[data-self-only]): one learner, one button to start, no room */
.lc-self-start,
.lcl-form .lc-btn.lc-self-start:not(.lcl-go)
{
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--accent, #1D4ED8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  font-size: 1.12em;
  font-weight: 800;
  text-align: center;
}
.lcl-form .lc-btn.lc-self-start:not(.lcl-go):hover
{
  background: var(--accent-ink, #1E3A8A);
  border-color: transparent;
}
body[data-self-only] .lcl-note:empty
{
  display: none;
}
body[data-self-only] .lc-or,
body[data-self-only] #lc-start
{
  display: none !important;
}

/* "Start again" for a learner going through a class alone: a quiet text button, never a call to action */
.lc-reset
{
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .86em;
  color: #64748B;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lc-reset:hover,
.lc-reset:focus-visible
{
  color: #B91C1C;
}

.lc-panel-box .lc-reset
{
  display: block;
  margin: 10px auto 0;
}

.lc-done-body .lc-reset
{
  display: inline-block;
  margin-top: 6px;
}

/* ---- a finished class: its two tabs, and the past questions it answers (R141; instructor, 4 Oct 2026) ---- */
.lc-tabs
{
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.lc-tab
{
  font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 9px 16px;
  cursor: pointer;
}
.lc-tab:hover
{
  color: #0f172a;
}
.lc-tab.is-on
{
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.lc-tab:focus-visible,
.lc-pq-head:focus-visible
{
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
}
body.is-pq main > *:not(#lc-done):not(#lc-tabs):not(#lc-pq):not(#lc-dq):not(#lc-bq)
{
  display: none !important;
}
.lc-pq[hidden]
{
  display: none !important;
}
.lc-pq > h2
{
  font-size: 22px;
  margin: 0 0 4px;
}
.lc-pq-lead
{
  color: #475569;
  margin: 0 0 16px;
}
.lc-pq-item
{
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin: 0 0 12px;
  overflow: hidden;
  scroll-margin-top: 70px;
}
.lc-pq-item.is-open
{
  border-color: var(--accent, #2563eb);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .07);
}
.lc-pq-head
{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.lc-pq-top
{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: #64748b;
}
.lc-pq-n
{
  font-weight: 700;
  color: #fff;
  background: var(--accent, #2563eb);
  border-radius: 6px;
  padding: 2px 7px;
}
.lc-pq-m
{
  margin-left: auto;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 2px 9px;
}
.lc-pq-text
{
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
}
.lc-pq-open
{
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #2563eb);
  white-space: nowrap;
}
.lc-pq-body
{
  padding: 2px 16px 16px;
  border-top: 1px solid #e2e8f0;
}
/* an answer arrives a point a press: what has not arrived yet takes no room */
.lc-pq-body .lc-pq-wait
{
  display: none !important;
}
/* the read-only panel a program was built in, once the editor with the same program has taken its place */
.lc-pq-body .lc-pq-gone
{
  display: none !important;
}
.lc-pq-bar
{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 4px;
}
.lc-pq-bar[hidden]
{
  display: none;
}
.lc-pq-next
{
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #B91C1C;
  color: #FFFFFF;
  cursor: pointer;
}
.lc-pq-next::after
{
  content: " \25B8";
}
.lc-pq-count
{
  color: #64748B;
  font-size: .9em;
}
.lc-pq-rest
{
  font: inherit;
  font-size: .9em;
  margin-left: auto;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: #64748B;
  text-decoration: underline;
  cursor: pointer;
}
.lc-pq-body .lc-pq-plain > .lc-pyq-q,
.lc-pq-body .lc-pq-plain > .lc-doubt-q
{
  display: none;
}
.lc-pq-body .lc-pyq-q,
.lc-pq-body .lc-doubt-q
{
  font-weight: 600;
}
.lc-pyq-run
{
  margin: 14px 0 6px;
}
.lc-pyq-runhead
{
  font-size: 14px;
  color: #475569;
  margin: 0 0 6px;
}
@media (max-width: 640px)
{
  .lc-pq-head
  {
    grid-template-columns: 1fr;
  }
}
.lc-js-out
{
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: 14px/1.5 "JetBrains Mono", Consolas, monospace;
  color: #0f172a;
  white-space: pre-wrap;
  min-height: 1.5em;
}
.lc-js-bad
{
  color: #b91c1c;
}
/* an answer set out in points (instructor, 4 Oct 2026: "organised bullet-wise and highlighted properly") */
.lc-pyq-lead
{
  font-size: 17px;
  line-height: 1.55;
  margin: 14px 0 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 4px solid var(--accent, #2563eb);
  border-radius: 0 10px 10px 0;
}
.lc-pyq-h
{
  font: 700 12.5px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
  margin: 18px 0 6px;
}
.lc-pyq-pts
{
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}
.lc-pyq-pts li
{
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 16.5px;
  line-height: 1.55;
}
.lc-pyq-pts li::before
{
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
}
.lc-pyq-a b,
.lc-doubt-a b
{
  color: #0f172a;
  background: linear-gradient(transparent 62%, #fde68a 62%);
}
.lc-pyq-a code,
.lc-doubt-a code
{
  font: 600 .92em "JetBrains Mono", Consolas, monospace;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 5px;
  padding: 1px 5px;
}
.lc-pyq-run b
{
  background: none;
}
/* what the question paper itself printed with the question: shown as printed */
.lc-pyq-printed
{
  margin: 8px 0 12px;
  padding: 10px 14px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #fff;
}
.lc-pyq-printed > span
{
  display: block;
  font: 700 11.5px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px;
}
.lc-pyq-printed ol
{
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
}

/* ---- Interesting doubts: the Past questions panel in its own colour, so that the two are told apart at a glance
   (R186; instructor, 10 Oct 2026: "an Interesting doubts tab, like the PYQs tab"). Past questions wear the class's
   own accent and a red Next button; the doubts wear deep teal on the palest teal, and a round badge. Light
   backgrounds only, the same fonts. ---- */
.lc-dq,
.lc-dq-btn
{
  --accent: #0F766E;                 /* deep teal */
}
.lc-dq .lc-pq-item
{
  border-color: #99F6E4;             /* pale teal */
}
.lc-dq .lc-pq-item.is-open
{
  border-color: #0F766E;             /* deep teal */
}
.lc-dq .lc-pq-head
{
  background: #F0FDFA;               /* the palest teal */
}
.lc-dq .lc-pq-n
{
  border-radius: 999px;
  padding: 2px 9px;
}
.lc-dq .lc-pq-top
{
  color: #115E59;                    /* dark teal: the idea a doubt is about */
  font-weight: 600;
}
.lc-dq .lc-pq-next
{
  background: #0F766E;               /* deep teal, where a past question's button is red */
}
.lc-dq .lc-pyq-lead
{
  background: #F0FDFA;               /* the palest teal */
}
.lc-dq .lc-trace
{
  margin: 12px 0;
}
/* the tab of the doubts, when it is the one in front */
.lc-tab-dq.is-on
{
  color: #0F766E;                    /* deep teal */
}

/* ----- wider text in a step, and less empty space beside it -----
   Instructor, 5 Oct 2026: "remove unnecessary padding, margins and space ... left and right ... in live classes as
   well". A paragraph in a step stopped at 68 characters, about three quarters of a laptop's width, with the rest of
   the row empty; the card had 38 px of padding and the column 20 px of margin. A line now runs to 96 characters
   (still capped, so a projector's very wide row is not one endless line), and both gutters are smaller. */
.lc-step p
{
  max-width: 96ch;
}

.lc-step
{
  padding: clamp(16px, 2vw, 28px);
}

main.wrap
{
  width: min(1560px, calc(100vw - 24px));
}

@media (max-width: 560px)
{
  main.wrap
  {
    width: calc(100vw - 20px);
  }
}

/* an activity not yet started, or already stopped: its controls are closed and look it */
.lc-act.lc-locked [inert]
{
  opacity: 0.6;
  cursor: not-allowed;
}

/* Past questions, in the top bar through the whole class (instructor, 6 Oct 2026). Small and quiet, as the bar is. */
.lc-pq-btn
{
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--accent, #2563eb);
  background: transparent;
  color: var(--accent, #2563eb);
  cursor: pointer;
}

.lc-pq-btn:hover,
.lc-pq-btn.is-on
{
  background: var(--accent, #2563eb);
  color: #fff;
}

/* before anyone has joined or started, there is no class to go back to: the first screen stays as it is */
html[data-landing] .lc-pq-btn,
body:not(.is-live):not(.is-ended) .lc-pq-btn
{
  display: none;
}

@media (max-width: 600px)
{
  .lc-pq-btn
  {
    min-height: 40px;
    padding: 0 12px;
  }
}

/* The teacher's bar never loses Submit and End off the right edge (instructor, 6 Oct 2026, of Java Unit 4 Class 6 on
   a zoomed screen: "I am unable to see the Submit and End buttons"). A long class title would not shrink, because
   the words inside it were held on one line with no leave to give way; the bar then ran past the window and its
   last buttons went with it. The title now gives way first: it may take two lines, and in a narrower window the
   course line under it and the note beside the session code step aside. */
.lc-brand > div
{
  min-width: 0;
}

/* the bar's own rule holds the title on one line and never lets it give way; on the teacher's screen, in a
   narrower window, Submit and End matter more than the title's last words */
@media (max-width: 1180px)
{
  html:not(#lc-chrome) .is-projector .lc-bar .lc-brand
  {
    min-width: 0;
    flex: 1 1 0;
  }

  html:not(#lc-chrome) .is-projector .lc-bar .lc-brand > div
  {
    display: block;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
    max-height: 2.3em;
    overflow: hidden;
  }

  html:not(#lc-chrome) .is-projector .lc-bar .lc-brand small,
  .is-projector .lc-code-box:not(.mini) .lc-code-note
  {
    display: none;
  }
}

/* ----- on a phone a long title gives way (8 Oct 2026) -----
   "The title never gives way" is right on a laptop and on the projector. On a phone a long title
   ("Class 7 · Regular expressions at work: PAN, phone, password, and a filtered list") pushed the
   status and the text-size button off the screen and the whole page scrolled sideways. There the
   title keeps one line and ends in three dots; the full title is on the opening screen below it. */
@media (max-width: 720px)
{
  html:not(#lc-chrome) .lc-bar .lc-brand,
  html:not(#lc-chrome) .tp-bar .lc-brand,
  html:not(#lc-chrome) .nm-bar .lc-brand
  {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  html:not(#lc-chrome) .lc-bar .lc-brand > div,
  html:not(#lc-chrome) .tp-bar .lc-brand > div,
  html:not(#lc-chrome) .nm-bar .lc-brand > div
  {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* what a hard idea is for, said in one line where the idea is taught (qa/check-tricky.pl TR3) */
.lc-purpose
{
  border-left: 6px solid #15803D;
  background: #F0FDF4;
  border-radius: 0 12px 12px 0;
  padding: 10px 16px;
  margin: 14px 0;
  max-width: 60ch;
}

/* ----- bit rows that move (instructor, 8 Oct 2026: "add proper animations where required, like the bitwise
   session"): a shifted row slides in from where it stood, the box at the far end falls off, the new box pops in;
   a flipped row turns box by box; adding 1 ripples from the right; a combined row drops in column by column ----- */
.bit-slide
{
  animation: bitSlide 1s cubic-bezier(.3, .8, .3, 1) both;
}

.bit-new,
.bit-flip,
.bit-carry,
.bit-drop
{
  transform-box: fill-box;
  transform-origin: center;
}

.lc-step .bit-new,
.lc-stepped .lc-step .bit-new
{
  animation: bitNew .5s ease-out both;
  animation-delay: 1s !important;
}

.lc-step .bit-off,
.lc-stepped .lc-step .bit-off
{
  animation: bitOff 1.1s ease-in both;
  opacity: 0;
}

.lc-step .bit-flip,
.lc-stepped .lc-step .bit-flip
{
  animation: bitFlip .5s ease-out both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .bit-carry,
.lc-stepped .lc-step .bit-carry
{
  animation: bitCarry .6s ease-out both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .bit-drop,
.lc-stepped .lc-step .bit-drop
{
  animation: bitDrop .45s ease-out both;
  animation-delay: var(--d, 0ms) !important;
}

@keyframes bitSlide
{
  from
  {
    transform: translateX(var(--x, 0));
  }
}

@keyframes bitNew
{
  from
  {
    opacity: 0;
    transform: scale(.3);
  }
}

@keyframes bitOff
{
  0%
  {
    opacity: 1;
    transform: translate(0, 0);
  }
  100%
  {
    opacity: 0;
    transform: translate(var(--x, 0), 20px);
  }
}

@keyframes bitFlip
{
  0%
  {
    transform: scaleY(0);
    opacity: 0;
  }
  100%
  {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes bitCarry
{
  0%
  {
    opacity: 0;
    transform: scale(.6);
  }
  60%
  {
    opacity: 1;
    transform: scale(1.22);
  }
  100%
  {
    transform: scale(1);
  }
}

@keyframes bitDrop
{
  from
  {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@media (prefers-reduced-motion: reduce), print
{
  .bit-off
  {
    display: none;
  }

  .lc-step .bit-slide,
  .lc-step .bit-new,
  .lc-step .bit-flip,
  .lc-step .bit-carry,
  .lc-step .bit-drop
  {
    animation: none !important;
  }
}

/* a tool's own logo beside its name, and a technology's own logo in its row (instructor, 8 Oct 2026: "use real
   icons for Notepad++, JShell, the JDK, Eclipse"; "FSWD class zero must contain the MERN icons") */
.lc-tool-logo
{
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

.lc-item-ic.lc-item-logo
{
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

.lc-item-ic.lc-item-logo img
{
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  margin: 15%;
}

/* ----- parts of a picture that move, for any idea that is a movement (instructor, 8 Oct 2026: "add animation and
   real motion effects where required in future courses and classes, I will not tell explicitly"). A part is drawn
   where it ends up. lc-mv-go brings it there from where it started: style="--x:-140px; --y:0px" is how far away
   that was, in the picture's own units. lc-mv-pop makes it appear, lc-mv-fade lets it come into view, lc-mv-pulse
   draws the eye to it twice. --d is a wait before it starts (style="--d:600ms"). lc-mv-loop beside lc-mv-go
   repeats the journey. ----- */
.lc-mv-go,
.lc-mv-pop,
.lc-mv-fade,
.lc-mv-pulse
{
  transform-box: fill-box;
  transform-origin: center;
}

.lc-step .lc-mv-go,
.lc-stepped .lc-step .lc-mv-go
{
  animation: lcMvGo var(--t, 1.2s) cubic-bezier(.3, .8, .3, 1) both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .lc-mv-go.lc-mv-loop,
.lc-stepped .lc-step .lc-mv-go.lc-mv-loop
{
  animation: lcMvLoop var(--t, 2.4s) ease-in-out infinite both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .lc-mv-pop,
.lc-stepped .lc-step .lc-mv-pop
{
  animation: lcMvPop .5s ease-out both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .lc-mv-fade,
.lc-stepped .lc-step .lc-mv-fade
{
  animation: lcMvFade .6s ease-out both;
  animation-delay: var(--d, 0ms) !important;
}

.lc-step .lc-mv-pulse,
.lc-stepped .lc-step .lc-mv-pulse
{
  animation: lcMvPulse .7s ease-in-out 2 both;
  animation-delay: var(--d, 0ms) !important;
}

@keyframes lcMvGo
{
  from
  {
    opacity: .25;
    transform: translate(var(--x, 0), var(--y, 0));
  }
}

@keyframes lcMvLoop
{
  0%
  {
    opacity: 0;
    transform: translate(var(--x, 0), var(--y, 0));
  }
  12%
  {
    opacity: 1;
    transform: translate(var(--x, 0), var(--y, 0));
  }
  70%,
  92%
  {
    opacity: 1;
    transform: translate(0, 0);
  }
  100%
  {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes lcMvPop
{
  from
  {
    opacity: 0;
    transform: scale(.3);
  }
}

@keyframes lcMvFade
{
  from
  {
    opacity: 0;
  }
}

@keyframes lcMvPulse
{
  50%
  {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce)
{
  .lc-step .lc-mv-go,
  .lc-step .lc-mv-pop,
  .lc-step .lc-mv-fade,
  .lc-step .lc-mv-pulse
  {
    animation: none !important;
  }
}

/* a plain HTML task: the name the page gives the browser's tab, shown beside "YOUR PAGE" after a Run */
.rx-tab
{
  float: right;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 1px 10px;
  font: 600 12px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* a plain page's console, under the page it belongs to; a task that only prints shows the console alone */
.rx-console .rx-live-log-body
{
  min-height: 3.2em;
  max-height: 14em;
  overflow: auto;
  white-space: pre-wrap;
}

.rx-console-only .rx-right > .rx-frame:not(.rx-target-frame),
.rx-console-only .rx-right > .rx-page-head:not(.rx-target-head)
{
  display: none;
}

/* HTML tags by family: each family of tags has its own colour, the same in every panel and every editor */
.hl-t.hl-tag-frame { color: #475569; }
.hl-t.hl-tag-head { color: #B45309; }
.hl-t.hl-tag-text { color: #0F766E; }
.hl-t.hl-tag-list { color: #15803D; }
.hl-t.hl-tag-media { color: #1D4ED8; }
.hl-t.hl-tag-table { color: #A21CAF; }
.hl-t.hl-tag-form { color: #BE123C; }
.hl-t.hl-tag-region { color: #4338CA; }

/* CSS by category: a class, an id and an @ rule in a selector; a property by its family (colour, text, box, place) */
/* a class selector in cyan, apart from the green of numbers; in a stylesheet the braces step back to grey, so each
   family of property keeps its own colour (instructor, 24 Oct 2026: "css and html like snippets must be properly
   coloured for different category of tags") */
.hl-t.hl-css-class { color: #0E7490; }
figure.lc-code[data-file$=".css"] .hl-b { color: #64748B; }
figure.lc-code[data-file$=".css"] .hl-s { color: #334155; }
.hl-t.hl-css-id { color: #BE123C; }
.hl-t.hl-css-at { color: #7C3AED; }
.hl-m.hl-css-colour { color: #A21CAF; }
.hl-m.hl-css-text { color: #1D4ED8; }
.hl-m.hl-css-box { color: #B45309; }
.hl-m.hl-css-place { color: #4338CA; }

/* JavaScript by category: words that declare, words that steer, ready-made values, objects the browser gives */
.hl-k.hl-kw-decl { color: #7C3AED; }
.hl-k.hl-kw-flow { color: #BE123C; }
.hl-k.hl-kw-value { color: #B45309; }
.hl-v.hl-js-given { color: #0F766E; font-weight: 700; }

/* JSX: a component's own tag, apart from the HTML tags */
.hl-t.hl-tag-comp { color: #0E7490; }

.hl-k.hl-kw-type { color: #0369A1; }

/* A teacher's screen as narrow as a phone: with Past questions and Interesting doubts both in the bar, End ran
   26px past the edge and the page slid sideways (found by the page-chrome audit on a class that had just gained
   its doubts, 11 Oct 2026). The two buttons take less room there, and the bar's gaps close up. */
@media (max-width: 480px)
{
  html:not(#lc-chrome) .is-projector .lc-bar .lc-pq-btn
  {
    padding: 0 5px;
    font-size: 11px;
    letter-spacing: 0;
  }
  html:not(#lc-chrome) .is-projector .lc-bar .lc-bar-in
  {
    gap: 3px;
    column-gap: 3px;
  }
}

/* the notes of the class, on the finished card (13 Oct 2026) */

/* Sign out beside the student's name in Self mode (instructor, 17 Oct 2026: cross device, "just like labs with sign out
   option"): small and quiet in the slim top bar */
.lc-bar .lc-signout
{
  font-size: 12px;
  margin: 0 0 0 8px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* The instructor's own sign-in on an NPTEL class (21 Oct 2026): a quiet link under Start this class, opening a small
   form for the username and the admin key. Students go by roll number only. */
.lc-inst-start
{
  display: block;
  margin: 12px auto 0;
}

.lc-inst-form
{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  max-width: 360px;
  margin: 10px auto 0;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  text-align: left;
}

.lc-inst-form[hidden]
{
  display: none;
}

.lc-inst-form label
{
  font-size: .86em;
  color: #334155;
}

.lc-inst-form input
{
  padding: 7px 9px;
  border: 1px solid #94A3B8;
  border-radius: 7px;
  font: inherit;
}

.lc-inst-form .lc-inst-go
{
  grid-column: 1 / -1;
  justify-self: end;
}

/* a blank, an order or a spot-the-bug marked right or wrong once its answer opens, in a poll's colours */
.lc-verdict
{
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1.5px solid var(--line, #e5e7eb);
  border-radius: 10px;
  font-weight: 600;
}

.lc-verdict.right
{
  border-color: var(--teal);
  background: var(--teal-t);
}

.lc-verdict.wrong
{
  border-color: var(--rose);
  background: var(--rose-t);
}

.lc-blank-in input.right
{
  border-color: var(--teal);
  background: var(--teal-t);
}

.lc-blank-in input.wrong
{
  border-color: var(--rose);
  background: var(--rose-t);
}

/* a round's opening: only the result it builds, the code out of sight (24 Oct 2026) */
.lc-code.lc-result-only > pre,
.lc-code.lc-result-only > .lc-code-head
{
  display: none;
}

.lc-code.lc-result-only .lc-preview
{
  margin-top: 0;
}

/* Build it alone, a tab after a marathon round (R227): the task card sits in the panel as it is */
.lc-bq .lc-build
{
  display: block;
  margin-top: 12px;
}
.lc-bq .lc-build .lc-solution
{
  margin-top: 14px;
}
/* a phone's top bar has room for two panel buttons; Build it alone stays in the tabs under the finished round */
@media (max-width: 600px)
{
  .lc-bq-btn
  {
    display: none !important;
  }
}

/* The step counter keeps its place (instructor, 26 Oct 2026, of a marathon round with three tab buttons in the bar:
   "why part number 3 of 31 is not showing properly at all"; "decrease the header size"). It reads on one line,
   "Why a backend · 3 of 31", and never shrinks: the class title gives way first, with an ellipsis. The panel
   buttons are a little smaller, so the bar stays one slim row. */
.lc-prog
{
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 10px;
  padding: 2px 10px;
}
.lc-prog b
{
  font-size: 13.5px;
  max-width: 22ch;
}
.lc-prog span
{
  font-size: 12px;
  white-space: nowrap;
}
.lc-pq-btn
{
  font-size: 12px;
  padding: 4px 9px;
}

/* A doubt a student really asks, answered where it arises (Java Unit 3 marathon, 29 Oct 2026): two speech bubbles,
   the question on the left and the answer on the right, each with the speaker's name on its own line. Light grounds
   and a dark border, so the pair reads the same on a projector and in black-and-white print. */
.lc-chat
{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-width: 62ch;
}
.lc-chat .lc-chat-q,
.lc-chat .lc-chat-a
{
  position: relative;
  max-width: 88%;
  padding: 10px 16px 12px;
  border: 2px solid var(--blue);
  border-radius: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.lc-chat .lc-chat-q
{
  align-self: flex-start;
  background: var(--blue-t);
  border-bottom-left-radius: 4px;
}
.lc-chat .lc-chat-a
{
  align-self: flex-end;
  background: var(--card);
  border-color: var(--teal);
  border-bottom-right-radius: 4px;
}
.lc-chat .lc-chat-q > b:first-child,
.lc-chat .lc-chat-a > b:first-child
{
  display: block;
  font-size: .82em;
  letter-spacing: .02em;
  color: var(--blue);
}
.lc-chat .lc-chat-a > b:first-child
{
  color: var(--teal);
  text-align: right;
}
@media print
{
  .lc-chat .lc-chat-q,
  .lc-chat .lc-chat-a
  {
    border-color: #000;
    background: #FFF;
  }
}

/* the mind map at the end of a marathon part: each line draws itself, then its node arrives */
.lc-mindmap .mm-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lc-mindmap .mm-node:not(.rv-wait) .mm-draw { animation: mm-draw .55s ease-out both; }
.lc-mindmap .mm-pop { transform-box: fill-box; transform-origin: center; }
.lc-mindmap .mm-node:not(.rv-wait) .mm-pop { animation: mm-pop .45s .3s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes mm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lc-mindmap .mm-draw, .lc-mindmap .mm-pop { animation: none !important; } }

/* the mind map on one screen: the view flies to each new branch (js/lc-flymap.js); students copy it */
.lc-flymap svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 14px; }
.lc-flymap-say { min-height: 3em; padding: 10px 4px 2px; font-size: 1.12em; font-weight: 600; line-height: 1.4; }
.lc-flymap .rv-wait { display: none; }
.lc-flymap-bar { display: flex; gap: 10px; margin-top: 8px; }

/* Placement Brahmastra's faces (18 Nov 2026): figure text set in Inter by attribute is drawn in Plus Jakarta Sans */
svg text[font-family^="Inter"], svg text[font-family^="'Inter"], svg[font-family^="Inter"] text { font-family: "Plus Jakarta Sans", Arial, sans-serif; }
