@font-face {
  font-family: DM;
  src: url("/assets/DM-Sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --sans: DM, Arial, sans-serif;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  --paper: #f4f6fa;
  --mute: #b0bccb;
  --forward: #8baeff;
  --backward: #f3b18a;
  --rule: #303a47;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090c11;
  color: var(--paper);
  font: 18px/1.4 var(--sans);
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--forward);
  outline-offset: 4px;
}
a {
  color: var(--forward);
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
em {
  font-family: inherit;
  font-style: normal;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    color 0.16s,
    background-color 0.16s,
    border-color 0.16s;
}
button:hover {
  color: var(--forward);
}
#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
#frame {
  width: 1440px;
  height: 810px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  background: #0d1117;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 78px;
  overflow: hidden;
  isolation: isolate;
}
#scene {
  min-height: 0;
  position: relative;
  isolation: isolate;
}
#scene.transition > * {
  animation: arrive 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes arrive {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Window controls surround a fixed 16:9 scientific plate. In audience mode
   those controls leave layout entirely; C temporarily places them over the plate. */
#mast,
.mast-right,
.tool,
.slidect,
.transport-chunk,
#controls,
.footer-modes,
.eyebrow {
  display: flex;
  align-items: center;
}
#mast {
  padding: 0 62px;
  justify-content: space-between;
  background: #0d1117;
}
.session-label {
  color: #a0aec1;
  font-size: 15px;
  font-weight: 450;
}
.mast-right {
  gap: 22px;
}
.tool {
  gap: 9px;
  padding: 7px 1px;
  font: 500 16px var(--sans);
  color: #c7d1df;
}
.tool:last-child {
  color: var(--forward);
}
#scene {
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
:is(:fullscreen, .presentation-view) #frame {
  grid-template-rows: minmax(0, 1fr);
}
:is(:fullscreen, .presentation-view) #scene {
  grid-row: 1;
}
:is(:fullscreen, .presentation-view) #mast,
:is(:fullscreen, .presentation-view) #transport {
  display: none;
}
:is(:fullscreen, .presentation-view) .controls-visible #mast,
:is(:fullscreen, .presentation-view) .controls-visible #transport {
  display: flex;
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  background: #12171ef5;
}
:is(:fullscreen, .presentation-view) .controls-visible #mast {
  top: 0;
  height: 52px;
  border-bottom: 1px solid var(--rule);
}
:is(:fullscreen, .presentation-view) .controls-visible #transport {
  bottom: 0;
  height: 62px;
  padding-top: 4px;
}
:is(:fullscreen, .presentation-view) #frame:not([data-overlay]) #scene {
  cursor: default;
}
.eyebrow {
  gap: 14px;
  color: #b0bccb;
  font: 500 20px/1.3 var(--sans);
}
.opening {
  height: 100%;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  padding: 0 46px 0 80px;
  overflow: hidden;
}
.opening-copy {
  position: relative;
  z-index: 1;
}
.course-line {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--forward);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 580;
}
.course-line span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #a0aec1;
  font-weight: 450;
}
.course-line span:before {
  content: "";
  height: 1px;
  width: 23px;
  background: #576a83;
}
.opening h1 {
  margin: 36px 0 20px;
  font: 590 58px/1.02 var(--sans);
  white-space: nowrap;
  letter-spacing: -0.022em;
  word-spacing: 0.022em;
}
.opening h1 span {
  color: var(--forward);
}
.official-topic {
  font: 440 26px/1.32 var(--sans);
  letter-spacing: -0.022em;
  color: #dce3ef;
}
.opening-q {
  padding-top: 20px;
  margin-top: 30px;
  max-width: 510px;
  color: #b0bccb;
  font: 420 26px/1.35 var(--sans);
  letter-spacing: -0.018em;
}
.opening-q:before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: #576a83;
  margin: -19px 0 17px;
}
.instrument {
  min-width: 0;
  position: relative;
  align-self: center;
}
.plate {
  width: 100%;
  display: block;
  overflow: visible;
}
.plate-label {
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.04em;
}
.plate-wire {
  stroke-dasharray: 200;
  animation: trace-in 0.75s var(--delay) cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
@keyframes trace-in {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.instrument figcaption {
  position: absolute;
  width: 100%;
  bottom: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #b0bccb;
  font: 450 21px var(--sans);
}
.flow-key {
  color: var(--forward);
  font-size: 29px;
}
.opening[data-cover-stage="2"] .flow-key {
  color: var(--backward);
}
.problem {
  padding: 36px 72px 42px;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 100px;
  align-content: center;
}
.problem-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
}
.problem h1 {
  font: 540 61px/1.06 var(--sans);
  letter-spacing: -0.018em;
  word-spacing: 0.025em;
}
.problem-title p {
  font-size: 26px;
  font-weight: 550;
}
.problem-title span {
  font-weight: 420;
  color: var(--mute);
}
.problem-process {
  display: grid;
  grid-template-columns: 1.02fr 0.96fr 1fr;
  align-content: center;
}
.station {
  min-width: 0;
  padding-bottom: 16px;
}
.station-track {
  position: relative;
  height: 2px;
  background: #576a83;
  margin: 0 0 35px;
}
.station:last-child .station-track {
  background: linear-gradient(to right, #576a83, transparent);
}
.station-track i {
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8baeff;
}
.station h2 {
  font: 500 26px var(--sans);
  color: #b0bccb;
}
.station-value {
  font: 500 62px/1.2 var(--sans);
  letter-spacing: 0;
  height: 122px;
  padding: 12px 0 0;
  color: var(--paper);
}
.station.current .station-value {
  color: var(--forward);
}
.station-value sub {
  font-size: 0.48em;
  line-height: 0;
  vertical-align: -0.28em;
}
.station .min-operator {
  display: inline-grid;
  grid-template-rows: auto auto;
  row-gap: 0.02em;
  justify-items: center;
  vertical-align: baseline;
  line-height: 0.98;
  margin-right: 0.04em;
}
.station .min-operator sub {
  position: static;
  line-height: 1;
  font-size: 0.38em;
}
.station p {
  font-size: 24px;
  color: #b0bccb;
}
.station.pending .station-track {
  background: #303a47;
}
.station.pending .station-track i {
  background: #4a5b72;
}
.station.pending .station-value,
.station.pending p {
  visibility: hidden;
}
.station.pending h2 {
  color: #8595a9;
}
.problem-question {
  max-width: 1160px;
  color: #bad0ff;
  font: 480 33px/1.28 var(--sans);
  letter-spacing: -0.022em;
  animation: arrive 0.25s ease-out;
}
:is(:fullscreen, .presentation-view) .problem {
  padding-top: 65px;
  padding-bottom: 80px;
}
#transport {
  position: relative;
  background: #12171e;
  padding: 15px 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.timeline {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 0;
  display: flex;
  gap: 6px;
}
.timeline button {
  position: relative;
  flex: 1;
  height: 14px;
  top: -6px;
  padding: 0;
}
.timeline button:after {
  content: "";
  display: block;
  height: 2px;
  background: #303a47;
}
.timeline button.past:after {
  background: #576a83;
}
.timeline button.current:after {
  background: var(--forward);
  height: 3px;
}
.timeline button:hover:after {
  background: #a8bddd;
}
.transport-chunk {
  gap: 22px;
}
.slidect {
  padding: 6px 0;
  gap: 13px;
  font: 16px var(--mono);
  color: #dce3ef;
}
.slidect small {
  font-size: 13px;
  color: #a0aec1;
}
.slidect svg {
  color: #c7d1df;
}
.footer-title {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #a0aec1;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
#controls {
  gap: 10px;
}
.footer-modes {
  gap: 8px;
  margin-right: 14px;
}
.round-tool {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  border-radius: 3px;
  color: #b0bccb;
}
.round-tool:hover,
.tool:hover {
  background: #1d2632;
  color: var(--paper);
}
.playctl,
.prevctl,
.nextctl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 37px;
  font-size: 15px;
  border-radius: 3px;
}
.playctl {
  margin-right: 9px;
  color: #c7d1df;
}
.playctl .cue {
  margin-left: 3px;
  font: 12px var(--mono);
  color: #a0aec1;
}
.prevctl {
  width: 40px;
  border: 1px solid #3c4859;
}
.nextctl {
  border: 1px solid #4a5b72;
  padding: 0 14px;
  background: #202d41;
  color: #dce3ef;
}
.nextctl:hover {
  background: #202d41;
}
#overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #080b10e8;
  display: grid;
  place-items: center;
}
#overlay[hidden] {
  display: none;
}
.panel {
  background: #12171e;
  border: 1px solid #3c4859;
  max-width: 1160px;
  width: 88%;
  padding: 32px 40px;
  max-height: 740px;
  overflow: auto;
  box-shadow: 0 14px 80px #070a1066;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.panel-head h2 {
  font: 500 43px/1.1 var(--sans);
  letter-spacing: -0.055em;
}
.panel-head em {
  color: var(--forward);
}
.close-panel {
  border: 1px solid #3c4859;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.contents {
  columns: 2;
  column-gap: 40px;
}
.contents button {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  text-align: left;
  width: 100%;
  font-size: 20px;
  break-inside: avoid;
}
.contents button span,
.contents time {
  font: 13px var(--mono);
  color: var(--mute);
}
.contents time {
  margin-left: auto;
}
.contents button[aria-current="true"] {
  color: var(--forward);
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
}
.help-grid p {
  border-top: 1px solid var(--rule);
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}
.help-grid kbd {
  font: 16px var(--mono);
  color: var(--forward);
}
.panel-foot {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.panel-foot button {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--forward);
}
.lab-panel {
  position: absolute;
  inset: 0;
  background: #0d1117;
  display: flex;
  flex-direction: column;
}
.lab-panel .panel-head {
  height: 58px;
  flex: none;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  padding: 0 42px;
  gap: 28px;
}
.lab-panel .panel-head h2 {
  font: 560 22px var(--sans);
  letter-spacing: -0.025em;
}
.lab-jumps {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-left: auto;
}
.lab-jumps button {
  color: #b0bccb;
  font: 470 16px var(--sans);
  padding: 7px 0;
}
.lab-jumps button:hover {
  color: var(--forward);
}
#lab-body {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  padding: 0 42px 42px;
  scrollbar-color: #4a5b72 #12171e;
  scrollbar-gutter: stable;
}
#lab-body [id^="lab-"] {
  scroll-margin-top: 20px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.status-error {
  position: absolute;
  left: 70px;
  bottom: 10px;
  background: #33251e;
  color: #ffd5b3;
  font-size: 16px;
  padding: 6px 13px;
}
.notes-mode #frame {
  display: block;
  padding: 46px 65px;
  background: #12171e;
}
.notes-mode #mast,
.notes-mode #transport {
  display: none;
}
.notes-mode #scene {
  height: 100%;
}
.presenter-head,
.presenter-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.presenter-head {
  justify-content: space-between;
  color: var(--forward);
  font: 16px var(--mono);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}
.notes-mode h1 {
  font-size: 65px;
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 33px 0;
}
.note-text {
  font-size: 35px;
  line-height: 1.45;
  max-width: 1200px;
}
.note-handoff {
  margin: 27px 0;
  font-size: 25px;
  color: var(--forward);
}
.presenter-controls button {
  border: 1px solid var(--rule);
  padding: 8px 16px;
}
.presenter-warning {
  color: var(--backward);
  font-size: 19px;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
  }
}
