/* Self-hosted fonts (site/tools/make_fonts.py): renamed Latin subsets of Carlito (= Calibri metrics)
   and Liberation Mono (= Courier New metrics), the two fonts of the decks. SIL OFL 1.1, see fonts/OFL.txt. */
@font-face { font-family: "AIiP Sans"; src: url(fonts/sans-400.woff2?v=38e74185) format("woff2"); font-weight: 100 550; font-style: normal; font-display: swap; }
@font-face { font-family: "AIiP Sans"; src: url(fonts/sans-700.woff2?v=972d0629) format("woff2"); font-weight: 551 900; font-style: normal; font-display: swap; }
@font-face { font-family: "AIiP Sans"; src: url(fonts/sans-400i.woff2?v=0a668002) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "AIiP Mono"; src: url(fonts/mono-400.woff2?v=2b75a63f) format("woff2"); font-weight: 100 550; font-style: normal; font-display: swap; }
@font-face { font-family: "AIiP Mono"; src: url(fonts/mono-700.woff2?v=486d1c83) format("woff2"); font-weight: 551 900; font-style: normal; font-display: swap; }
@font-face { font-family: "AIiP Mono"; src: url(fonts/mono-400i.woff2?v=41540468) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Layout: one long page lit like the lecture decks. Sticky command bar, 1160px column,
   every section opens with the shell command that would print it. Single dark theme on purpose:
   it is the same visual system as the slides (slides/build/helpers.js). */
:root {
  --bg: #0A0A0A; --panel: #151515; --panel2: #1D1D1D; --edge: #2A2A2A; --ghost: #181818;
  --ink: #F4F4F5; --muted: #9CA3AF; --dim: #6B7280; --on-accent: #0A0A0A;
  --pf: #4ADE80;   /* Paweł's lectures, "available", the prompt */
  --ms: #7DD3FC;   /* Michał's lectures */
  --lab: #FBBF24;  /* labs, as on the LAB slides */
  --off: #F87171;  /* no lecture */
  --font-body: "AIiP Sans", Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  --font-mono: "AIiP Mono", "Courier New", "Liberation Mono", ui-monospace, monospace;
  --s-1: .8125rem; --s0: 1.0625rem; --s1: 1.25rem; --s2: 1.6rem; --s3: 2.2rem; --s4: clamp(2.7rem, 7vw, 4.6rem);
  --r: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s0)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pf); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); }
.g { color: var(--pf); } .b { color: var(--ms); } .a { color: var(--lab); } .r { color: var(--off); } .m { color: var(--muted); } .d { color: var(--dim); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.08; font-weight: 700; }
p { margin: 0; }


/* command bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10,10,10,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--edge); }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { font: 700 15px/1 var(--font-mono); text-decoration: none; white-space: nowrap; }
.brand .g { margin-right: 6px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.nav a { font: 500 13px/1 var(--font-mono); color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 4px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; flex: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { font: 600 12px/1 var(--font-mono); color: var(--muted); padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.seg label ~ label { border-left: 1px solid var(--edge); }
.seg input:checked + label { background: var(--pf); color: var(--on-accent); }
.seg input:focus-visible + label { outline: 2px solid var(--pf); outline-offset: -2px; }
@media (max-width: 760px) { .bar .wrap { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; } .nav { order: 3; flex-basis: 100%; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--edge); }
.hero .ghost { position: absolute; right: -2vw; top: 10px; font: 700 clamp(160px, 30vw, 380px)/.85 var(--font-mono); color: var(--ghost); pointer-events: none; user-select: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; padding-block: 64px 48px; align-items: start; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 32px; } }
.eyebrow { font: 500 12.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: var(--s4); letter-spacing: -.015em; margin-top: 18px; }
.hero .tag { font-size: var(--s1); color: var(--ink); margin-top: 18px; max-width: 36ch; }
.hero .lead { color: var(--muted); margin-top: 14px; max-width: 58ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--font-mono); padding: 12px 16px; border-radius: var(--r); text-decoration: none; border: 1px solid var(--edge); color: var(--ink); background: var(--panel); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--pf); color: var(--on-accent); border-color: var(--pf); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; font: 500 13px/1.3 var(--font-mono); color: var(--muted); }
.stats b { color: var(--ink); font-size: 20px; display: block; }

.term { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.term-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1 var(--font-mono); color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--edge); }
.term-body { padding: 18px 16px 20px; display: grid; gap: 18px; }
.nx { display: grid; gap: 4px; }
.nx-cmd { font: 500 12.5px/1.4 var(--font-mono); color: var(--dim); }
.nx-when { font: 600 12.5px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.nx-when .now { color: var(--on-accent); background: var(--pf); padding: 1px 6px; border-radius: 3px; margin-right: 6px; }
.nx-what { font-size: var(--s1); font-weight: 700; line-height: 1.2; }
.nx-what a { text-decoration: none; } .nx-what a:hover { text-decoration: underline; }
.nx-sub { color: var(--muted); font-size: 15px; }
.strip { display: grid; gap: 6px; }
.strip-row { display: grid; grid-template-columns: 34px repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; position: relative; }
.strip-row span.lbl { font: 600 10.5px/1 var(--font-mono); color: var(--dim); }
.seg-w { height: 14px; border-radius: 2px; background: var(--panel2); border: 1px solid transparent; }
.seg-w.pf { background: color-mix(in srgb, var(--pf) 70%, var(--bg)); }
.seg-w.ms { background: color-mix(in srgb, var(--ms) 60%, var(--bg)); }
.seg-w.off { background: transparent; border-color: var(--edge); border-style: dashed; }
.seg-w.past { opacity: .35; }
.seg-w.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.strip-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11px/1.4 var(--font-mono); color: var(--dim); margin-top: 4px; }
.strip-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dim-row { opacity: .3; }

/* sections */
section.sec { padding-block: 72px; border-bottom: 1px solid var(--edge); }
.prompt { font: 500 13px/1.4 var(--font-mono); color: var(--dim); }
.sec h2 { font-size: var(--s3); margin-top: 10px; }
.sec .lede { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 32px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

.badge { display: inline-block; font: 700 11px/1 var(--font-mono); letter-spacing: .04em; padding: 4px 6px 3px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.badge.pf { color: var(--pf); } .badge.ms { color: var(--ms); } .badge.lab { color: var(--lab); } .badge.off { color: var(--off); }
.badge.fill { background: var(--pf); color: var(--on-accent); border-color: var(--pf); }

/* schedule */
.sched { border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.srow { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--edge); }
.srow:first-child { border-top: 0; }
.srow.head { background: var(--panel2); font: 600 11.5px/1.35 var(--font-mono); color: var(--muted); letter-spacing: .03em; }
.srow.head > div { padding: 12px 14px; }
.srow.head b { color: var(--ink); display: block; font-size: 12.5px; }
.wk { font: 600 12px/1 var(--font-mono); color: var(--dim); padding: 16px 14px; }
.cell { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 12px; padding: 13px 14px; align-items: baseline; border-left: 1px solid var(--edge); position: relative; }
.cell .dt { font: 600 12.5px/1.5 var(--font-mono); color: var(--muted); }
.cell .what { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; min-width: 0; }
.cell .what a { text-decoration: none; } .cell .what a:hover { text-decoration: underline; }
.cell .t { font-weight: 700; }
.cell.ms .t { font-weight: 400; color: var(--ink); }
.cell.off .t { color: var(--dim); font-style: italic; font-weight: 400; }
.cell.past > * { opacity: .45; }
.cell.today { background: color-mix(in srgb, var(--pf) 9%, var(--panel)); box-shadow: inset 2px 0 0 var(--pf); }
.cell .flag { font: 700 10.5px/1 var(--font-mono); letter-spacing: .06em; padding: 3px 6px; border-radius: 3px; }
.cell.today .flag { background: var(--pf); color: var(--on-accent); }
.cell.next .flag { border: 1px solid var(--pf); color: var(--pf); }
body[data-group="mon"] .col-wed, body[data-group="wed"] .col-mon { display: none; }
body[data-group="mon"] .srow, body[data-group="wed"] .srow { grid-template-columns: 64px minmax(0, 1fr); }
@media (max-width: 720px) {
  .srow { grid-template-columns: 44px minmax(0, 1fr); }
  .srow > .cell { grid-column: 2; }
  .srow > .wk { grid-row: span 2; padding-inline: 10px; }
  body[data-group="mon"] .srow > .wk, body[data-group="wed"] .srow > .wk { grid-row: auto; }
  .srow.head { display: none; }
  .cell { grid-template-columns: 1fr; gap: 4px; }
  .cell .dt::after { content: attr(data-slot); color: var(--dim); font-weight: 500; margin-left: 8px; }
  .cell + .cell { border-top: 1px dashed var(--edge); }
}
.src { font: 500 12px/1.5 var(--font-mono); color: var(--dim); margin-top: 12px; }

/* lectures */
.lecs { display: grid; gap: 20px; }
.lec { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lec.is-next { border-color: color-mix(in srgb, var(--pf) 55%, var(--edge)); }
.lec.ms.is-next { border-color: color-mix(in srgb, var(--ms) 55%, var(--edge)); }
.lec .num { position: absolute; left: 18px; bottom: -34px; font: 700 190px/1 var(--font-mono); color: var(--ghost); pointer-events: none; user-select: none; }
.lec-l { position: relative; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lec-r { padding: 28px; border-left: 1px solid var(--edge); display: grid; gap: 22px; align-content: start; min-width: 0; background: color-mix(in srgb, var(--panel2) 55%, var(--panel)); }
@media (max-width: 860px) { .lec { grid-template-columns: minmax(0, 1fr); } .lec-r { border-left: 0; border-top: 1px solid var(--edge); padding: 22px; } .lec-l { padding: 22px; } }
.lec h3 { font-size: var(--s2); }
.lec .sub { color: var(--muted); max-width: 52ch; }
.lec .when { display: grid; gap: 4px; font: 500 13px/1.5 var(--font-mono); color: var(--muted); margin-top: auto; padding-top: 8px; }
.lec .when .hl { color: var(--ink); }
.lec .gag { font: italic 400 12.5px/1.5 var(--font-mono); color: var(--dim); }
.status { align-self: flex-start; }
.kicker { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agenda li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.35; }
.agenda .min { font: 500 12px/1.6 var(--font-mono); color: var(--dim); }
.labrows { display: grid; gap: 6px; }
.labrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); color: inherit; font: inherit; text-align: left; width: 100%; }
button.labrow { cursor: pointer; } button.labrow:hover { border-color: var(--lab); }
.labrow .ttl { font-size: 15.5px; line-height: 1.3; }
.labrow .meta { font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.labrow .meta.locked { color: var(--dim); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font-mono); padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--edge); color: var(--ink); text-decoration: none; background: var(--panel); }
.file .ext { color: var(--pf); }
.file[aria-disabled="true"] { color: var(--dim); border-style: dashed; cursor: not-allowed; }
.file[aria-disabled="true"] .ext { color: var(--dim); }

/* lab videos */
.labgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .labgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .labgrid { grid-template-columns: minmax(0, 1fr); } }
.tile { display: grid; gap: 10px; align-content: start; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
button.tile { cursor: pointer; }
.shot { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); background: var(--panel2); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: transform .3s ease, filter .3s ease; }
button.tile:hover .shot img { transform: scale(1.03); filter: saturate(1.1); }
button.tile:hover .shot { border-color: var(--lab); }
.shot .chip { position: absolute; left: 10px; top: 10px; background: rgba(10,10,10,.85); }
.shot .dur { position: absolute; right: 10px; bottom: 10px; font: 600 12px/1 var(--font-mono); background: rgba(10,10,10,.85); padding: 5px 7px; border-radius: 4px; }
.shot .cc { position: absolute; left: 10px; bottom: 10px; font: 700 10.5px/1 var(--font-mono); background: rgba(10,10,10,.85); padding: 5px 6px; border-radius: 4px; color: var(--muted); border: 1px solid var(--edge); }
.shot .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.shot .play span { width: 54px; height: 54px; border-radius: 50%; background: var(--lab); display: grid; place-items: center; }
.shot .play span::after { content: ""; border-left: 15px solid var(--on-accent); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
button.tile:hover .play, button.tile:focus-visible .play { opacity: 1; }
.shot.locked { display: grid; align-content: center; padding: 18px; font: 500 12.5px/1.6 var(--font-mono); color: var(--dim); background: repeating-linear-gradient(135deg, var(--panel) 0 10px, var(--panel2) 10px 20px); }
.shot.locked .chip { opacity: .7; }
.shot.locked pre { margin: 0; white-space: pre-wrap; background: rgba(10,10,10,.85); padding: 10px 12px; border-radius: 4px; border: 1px solid var(--edge); }
.tile .tt { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.tile .tt h3 { font-size: var(--s1); line-height: 1.2; }
.tile .from { font: 500 11.5px/1.3 var(--font-mono); color: var(--dim); white-space: nowrap; }
.tile .bl { color: var(--muted); font-size: 15.5px; line-height: 1.45; }


/* setup */
.setup { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 32px; align-items: start; }
@media (max-width: 920px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; counter-increment: st; }
.steps > li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lab); color: var(--lab); font: 700 13px/28px var(--font-mono); text-align: center; background: var(--panel2); }
.steps h3 { font-size: var(--s1); line-height: 1.3; margin-top: 2px; }
.steps p { color: var(--muted); margin-top: 4px; }
.code { margin-top: 10px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.code + .code { margin-top: 8px; }
.code-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 11.5px/1 var(--font-mono); color: var(--dim); padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--edge); }
.code-h button { font: 600 11.5px/1 var(--font-mono); color: var(--muted); background: var(--panel2); border: 1px solid var(--edge); border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.code-h button:hover { color: var(--ink); border-color: var(--muted); }
.code pre { margin: 0; padding: 12px; overflow-x: auto; font: 500 13.5px/1.55 var(--font-mono); color: var(--ink); }
.code pre .p { color: var(--pf); user-select: none; }
.note { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.note h3 { font-size: var(--s1); }
.note ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.note b { color: var(--ink); font-weight: 700; }
.note code, .faq code, .lede code { font: 500 .88em var(--font-mono); color: var(--ink); background: var(--panel2); padding: 1px 5px; border-radius: 3px; }

/* project */
.road { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--panel); }
@media (max-width: 960px) { .road { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .road { grid-template-columns: minmax(0, 1fr); } }
.stop { padding: 20px 18px; border-left: 1px solid var(--edge); display: grid; gap: 8px; align-content: start; position: relative; }
.stop:first-child { border-left: 0; }
@media (max-width: 960px) { .stop { border-left: 0; border-top: 1px solid var(--edge); } .stop:nth-child(-n+2) { border-top: 0; } .stop:nth-child(even) { border-left: 1px solid var(--edge); } }
@media (max-width: 520px) { .stop:nth-child(2) { border-top: 1px solid var(--edge); } .stop:nth-child(even) { border-left: 0; } }
.stop .k { font: 700 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--pf); }
.stop h3 { font-size: 18px; line-height: 1.25; }
.stop p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.stop .dt { font: 500 12px/1.5 var(--font-mono); color: var(--dim); }
.stop.past .k { color: var(--dim); }
.rubric { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: 15.5px; }

/* resources */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .res { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--edge); border-radius: var(--r); text-decoration: none; background: var(--panel); min-width: 0; }
a.card:hover { border-color: var(--muted); }
.card .k { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.card h3 { font-size: var(--s1); line-height: 1.25; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.card .url { font: 500 12px/1.4 var(--font-mono); color: var(--pf); overflow-wrap: anywhere; }
.faq { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 40px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq h3 { font-size: var(--s2); }
.faq-list { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; padding: 14px 4px; font: 600 14px/1.45 var(--font-mono); list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 16px; color: var(--muted); max-width: 70ch; }

/* people */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { padding: 24px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); display: grid; gap: 10px; align-content: start; }
.person .who { display: flex; gap: 14px; align-items: center; }
.person .ini { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; font: 700 16px/1 var(--font-mono); border: 1px solid currentColor; flex: none; }
.person h3 { font-size: var(--s1); }
.person .role { color: var(--muted); font-size: 15px; }
.person ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.pending { font: 500 12.5px/1.5 var(--font-mono); color: var(--lab); border: 1px dashed color-mix(in srgb, var(--lab) 50%, var(--edge)); border-radius: var(--r); padding: 10px 12px; }

footer { padding-block: 40px 56px; color: var(--dim); font: 500 12.5px/1.7 var(--font-mono); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }

/* player dialog */
dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.78); }
.dlg { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); max-height: calc(100dvh - 42px); }
@media (max-width: 820px) { .dlg { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } }
.dlg-v { padding: 18px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--edge); }
@media (max-width: 820px) { .dlg-v { border-right: 0; border-bottom: 1px solid var(--edge); } }
.dlg-v .shot .pnote { position: absolute; inset: auto 10px 10px 10px; font: 500 11.5px/1.45 var(--font-mono); background: rgba(10,10,10,.9); color: var(--muted); padding: 8px 10px; border-radius: 4px; border: 1px dashed var(--edge); }
.dlg-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.dlg-top h3 { font-size: var(--s1); }
.x { background: var(--panel2); border: 1px solid var(--edge); color: var(--ink); width: 34px; height: 34px; border-radius: var(--r); cursor: pointer; font: 600 16px/1 var(--font-mono); flex: none; }
.dlg-t { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.dlg-t .kicker { padding: 18px 18px 0; }
.cues { list-style: none; margin: 0; padding: 4px 8px 18px; overflow-y: auto; max-height: 62dvh; }
.cues li button { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--muted); font: 400 15px/1.45 var(--font-body); padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.cues li button:hover { background: var(--panel2); color: var(--ink); }
.cues li button.on { background: color-mix(in srgb, var(--lab) 12%, var(--panel)); color: var(--ink); }
.cues .ts { font: 600 12px/1.6 var(--font-mono); color: var(--lab); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 600 13px/1 var(--font-mono); padding: 10px 14px; border-radius: var(--r); z-index: 40; }

/* ---- additions for the generated site (not in the prototype) ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--pf); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r); font: 700 13px/1 var(--font-mono); }
.skip:focus { left: 16px; }
.noscript { font: 500 12.5px/1.5 var(--font-mono); color: var(--muted); }
a.tile, a.labrow { text-decoration: none; }
a.tile:hover .shot img { transform: scale(1.03); filter: saturate(1.1); }
a.tile:hover .shot { border-color: var(--lab); }
a.tile:hover .play, a.tile:focus-visible .play { opacity: 1; }
a.labrow:hover { border-color: var(--lab); }
.locked-note { font: 500 12.5px/1.6 var(--font-mono); color: var(--dim); }

/* README fragments rendered as Markdown (labs/README.md between <!-- site:… --> markers) */
.md p { margin: 0; }
.md p + p, .md p + ol, .md ol + p { margin-top: 14px; }
.md a { color: var(--pf); text-decoration: none; overflow-wrap: anywhere; } .md a:hover { text-decoration: underline; }
.md code { font: 500 .88em var(--font-mono); color: var(--ink); background: var(--panel2); padding: 1px 5px; border-radius: 3px; }
.md pre code { background: none; padding: 0; font: inherit; }
.md strong { color: var(--ink); }
.setup-md { color: var(--muted); }
.setup-md ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: st; }
.setup-md ol > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; counter-increment: st; }
.setup-md ol > li::before { content: counter(st); grid-row: 1 / span 9; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lab); color: var(--lab); font: 700 13px/28px var(--font-mono); text-align: center; background: var(--panel2); }
.setup-md ol > li > * { grid-column: 2; }
.setup-md ol > li > p:first-child strong { font-size: var(--s1); display: inline; }
.note .md ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }

/* player */
.dlg-v .player { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); }
.dlg-v .player video { width: 100%; height: 100%; display: block; }
.cues li.none { padding: 10px; color: var(--dim); }
.road .stop.past .dt { color: var(--dim); }
body[data-group="mon"] .gd[data-group="wed"], body[data-group="wed"] .gd[data-group="mon"], body:not([data-group="both"]) .gd-sep { display: none; }
.lec .when span[data-group].hl { color: var(--ink); }
