:root {
  --ink: #07151c;
  --ink-2: #0b202a;
  --panel: #102b36;
  --panel-2: #163744;
  --paper: #f5f2e8;
  --muted: #9db1b9;
  --cyan: #19b9e8;
  --blue: #087fb9;
  --red: #e43d3b;
  --green: #a8d42d;
  --amber: #f2bd47;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --sans: Inter, "Aptos", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --condensed: "Arial Narrow", "Aptos Narrow", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 0%, rgba(25, 185, 232, 0.13), transparent 30rem),
    var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--green);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.intro {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: auto;
  background: var(--ink);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro-image,
.intro-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-image {
  background:
    linear-gradient(90deg, rgba(7, 21, 28, 0.97) 0%, rgba(7, 21, 28, 0.82) 44%, rgba(7, 21, 28, 0.36) 100%),
    linear-gradient(0deg, rgba(7, 21, 28, 0.88), transparent 40%),
    url("media/plant-vogtle-cooling-tower.jpg") 74% 50% / cover no-repeat;
  filter: saturate(0.92) contrast(1.12);
  transform: scale(1.04);
}

.intro-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(25, 185, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 185, 232, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 79% 48%, transparent 0 8rem, rgba(25, 185, 232, 0.14) 8.08rem 8.22rem, transparent 8.3rem),
    radial-gradient(circle at 79% 48%, transparent 0 15rem, rgba(168, 212, 45, 0.08) 15.08rem 15.2rem, transparent 15.28rem);
  background-size: 52px 52px, 52px 52px, auto, auto;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.intro-header,
.course-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding: 0.85rem clamp(1rem, 3.3vw, 3.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 17, 23, 0.78);
  backdrop-filter: blur(20px);
}

.intro-header a,
.course-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.intro-header a > span:last-child,
.course-brand > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.intro-header strong,
.course-brand strong {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-header small,
.course-brand small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-header > span {
  color: #c1d0d4;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vc-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 21, 28, 0.6);
  box-shadow: 0 0 30px rgba(25, 185, 232, 0.15);
}

.vc-mark::before,
.vc-mark::after,
.vc-mark i {
  position: absolute;
  display: block;
  width: 28px;
  height: 10px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  content: "";
}

.vc-mark::before {
  transform: rotate(60deg);
}

.vc-mark::after {
  transform: rotate(-60deg);
}

.vc-mark i:nth-child(1) {
  transform: rotate(0deg);
}

.vc-mark i:nth-child(2) {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.vc-mark i:nth-child(3) {
  display: none;
}

.vc-mark--small {
  width: 38px;
  height: 38px;
}

.vc-mark--small::before,
.vc-mark--small::after,
.vc-mark--small i:nth-child(1) {
  width: 23px;
  height: 8px;
}

.intro-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(850px, calc(100% - 2rem));
  margin: 2rem clamp(1rem, 6vw, 7.4rem) 4.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(168, 212, 45, 0.65);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(168, 212, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 212, 45, 0); }
}

.intro h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(4rem, 10.5vw, 9.2rem);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.76;
  text-transform: uppercase;
  text-shadow: 0 8px 45px rgba(0, 0, 0, 0.5);
}

.intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1.7px rgba(245, 242, 232, 0.86);
  font-style: normal;
}

.intro-deck {
  max-width: 660px;
  margin: 2rem 0 0;
  color: #d9e2e2;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.58;
}

.intro-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-action,
.quiet-action,
.dialog-actions button,
.archive-links a {
  min-height: 46px;
  padding: 0.76rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.primary-action {
  min-width: 225px;
  color: #031018;
  border-color: var(--cyan);
  background: var(--cyan);
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(25, 185, 232, 0.24);
}

.primary-action:hover {
  background: #5ad5fa;
}

.primary-action span {
  float: right;
  padding-left: 1rem;
}

.quiet-action,
.dialog-actions button:not(.primary-action) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(5, 17, 23, 0.5);
  backdrop-filter: blur(12px);
}

.quiet-action:hover,
.dialog-actions button:not(.primary-action):hover {
  border-color: var(--green);
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin: 2.4rem 0 0;
}

.intro-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
}

.intro-facts dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 900;
}

.intro-facts dd {
  margin: 0;
  color: #bac8cb;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-status {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 5.2rem;
  width: min(330px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 3px solid var(--red);
  background: rgba(5, 17, 23, 0.7);
  backdrop-filter: blur(16px);
}

.intro-status p,
.intro-status strong,
.intro-status span {
  display: block;
}

.intro-status p {
  margin: 0 0 0.35rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.intro-status strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.intro-status span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.intro-disclosure {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0;
  padding: 0.85rem clamp(1rem, 3.3vw, 3.4rem);
  color: #8fa3aa;
  font-size: 0.65rem;
  line-height: 1.45;
}

.course {
  display: none;
  min-height: 100vh;
}

.course.is-active {
  display: block;
}

.course-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 70px;
  padding-block: 0.7rem;
}

.course-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.course-header nav button {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-header nav button:hover {
  border-color: var(--cyan);
}

.course-progress {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.15rem 0.75rem;
  min-width: 190px;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.course-progress > span:first-child {
  color: var(--muted);
  text-transform: uppercase;
}

.course-progress strong {
  grid-row: span 2;
  font-size: 1.2rem;
}

.progress-track {
  width: 130px;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.3s ease;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(355px, 0.78fr);
  min-height: calc(100svh - 168px);
}

.viewer-wrap {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #000;
}

.pano {
  position: absolute;
  inset: 0;
}

.viewer-hud {
  position: absolute;
  z-index: 10;
  right: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.viewer-hud--top {
  top: 1rem;
}

.viewer-hud--bottom {
  bottom: 1rem;
  color: #d7e1e3;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.viewer-hud > div {
  max-width: min(520px, 72%);
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--cyan);
  background: rgba(4, 14, 19, 0.72);
  backdrop-filter: blur(12px);
}

.viewer-hud span,
.viewer-hud strong {
  display: block;
}

.viewer-hud--top span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.viewer-hud--top strong {
  margin-top: 0.18rem;
  font-size: 0.88rem;
}

.viewer-hud button {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(4, 14, 19, 0.7);
  cursor: pointer;
  pointer-events: auto;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.viewer-hud--bottom > span {
  padding: 0.55rem 0.7rem;
  background: rgba(4, 14, 19, 0.7);
  backdrop-filter: blur(12px);
}

.video-dot {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.open-console {
  display: none;
}

.learning-console {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  max-height: calc(100svh - 70px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink-2);
  background-size: 100% 44px;
}

.console-head {
  position: relative;
  padding: 1.3rem 3.5rem 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.console-head p {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  line-height: 1.02;
}

.console-head > button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
}

.console-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.console-tabs button {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-tabs button[aria-selected="true"] {
  color: var(--paper);
  background: rgba(25, 185, 232, 0.13);
  box-shadow: inset 0 -2px var(--cyan);
}

.console-content {
  min-height: 0;
  overflow-y: auto;
  padding: 1.4rem;
  overscroll-behavior: contain;
}

.objective-label,
.layer-label,
.source-label {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.objective {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.48;
}

.lesson-copy {
  color: #ced9da;
  font-size: 0.92rem;
  line-height: 1.68;
}

.system-box,
.media-card,
.check-card {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.035);
}

.system-box h3,
.media-card h3,
.check-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.system-box p,
.media-card p {
  margin: 0;
  color: #c5d1d3;
  font-size: 0.85rem;
  line-height: 1.62;
}

.flow-chain {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-chain li {
  position: relative;
  padding: 0.65rem 0.7rem 0.65rem 2.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d5e0e1;
  font-size: 0.78rem;
  counter-increment: flow;
}

.flow-chain li::before {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cyan);
  content: counter(flow);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
}

.source-link,
.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.media-button {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cyan);
  background: rgba(25, 185, 232, 0.12);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.media-button span {
  float: right;
}

.media-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--muted);
  text-align: center;
}

.check-card > p {
  color: #e4ebeb;
  line-height: 1.55;
}

.check-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.check-options button {
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  color: #d8e1e2;
  text-align: left;
}

.check-options button:hover {
  border-color: var(--cyan);
}

.check-options button.is-correct {
  color: #07151c;
  border-color: var(--green);
  background: var(--green);
}

.check-options button.is-incorrect {
  border-color: var(--red);
  background: rgba(228, 61, 59, 0.16);
}

.check-feedback {
  min-height: 2.6rem;
  margin: 0.85rem 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.8rem;
}

.check-feedback.is-correct {
  color: var(--green) !important;
}

.check-feedback.is-incorrect {
  color: #ff8c89 !important;
}

.console-nav {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.console-nav button {
  align-self: stretch;
  border: 0;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1.25rem;
}

.console-nav button:hover {
  background: var(--cyan);
  color: var(--ink);
}

.console-nav span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-align: center;
  text-transform: uppercase;
}

.course-meter {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 98px;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #091b23;
}

.course-meter > div:not(.meter-track) {
  display: grid;
  gap: 0.2rem;
}

.course-meter span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-meter strong {
  font-size: 1.05rem;
}

.meter-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.meter-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  transition: width 0.3s ease;
}

.course-meter button {
  min-height: 45px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cyan);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.course-meter button:hover {
  color: var(--ink);
  background: var(--cyan);
}

.route-rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--cyan) var(--ink);
}

.route-track {
  display: flex;
  min-width: max-content;
  padding: 1rem;
  background: #061118;
}

.route-stop {
  position: relative;
  display: grid;
  width: 190px;
  min-height: 92px;
  padding: 0.75rem 0.8rem 0.7rem 2.65rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: #aabcbf;
  text-align: left;
}

.route-stop b {
  position: absolute;
  top: 0.7rem;
  left: 0.65rem;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.58rem;
}

.route-stop strong {
  color: #e2e9e9;
  font-size: 0.78rem;
  line-height: 1.25;
}

.route-stop small {
  align-self: end;
  margin-top: 0.4rem;
  color: #71878d;
  font-size: 0.62rem;
}

.route-stop.is-current {
  background: rgba(25, 185, 232, 0.11);
  box-shadow: inset 0 -3px var(--cyan);
}

.route-stop.is-current b {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
}

.route-stop.is-visited strong::after {
  margin-left: 0.4rem;
  color: var(--green);
  content: "✓";
}

.course-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.2rem;
  padding: 1.5rem clamp(1rem, 3vw, 3rem);
  color: #81979d;
  background: #050e13;
  font-size: 0.68rem;
  line-height: 1.5;
}

.course-footer p {
  margin: 0;
}

.course-footer nav {
  display: grid;
  gap: 0.4rem;
  text-align: right;
}

.course-footer a {
  color: #c9d7d8;
}

dialog {
  width: min(780px, calc(100% - 1.4rem));
  max-height: calc(100svh - 1.4rem);
  padding: 0;
  overflow: auto;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 6, 9, 0.78);
  backdrop-filter: blur(7px);
}

.dialog-shell {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.dialog-shell--wide {
  width: 100%;
}

.dialog-shell > h2 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.dialog-shell > p:not(.eyebrow),
.dialog-shell section p,
.dialog-shell li {
  color: #c1d0d3;
  font-size: 0.9rem;
  line-height: 1.65;
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 0.6rem;
  float: right;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.route-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  width: 100%;
  min-height: 70px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
}

.route-list button:hover {
  border-color: var(--cyan);
}

.route-list b {
  color: var(--cyan);
  font-family: var(--mono);
}

.route-list span {
  display: grid;
  gap: 0.2rem;
}

.route-list strong {
  font-size: 0.82rem;
}

.route-list small {
  color: var(--muted);
  font-size: 0.66rem;
}

.dialog-shell--notes textarea {
  width: 100%;
  resize: vertical;
  padding: 1rem;
  color: #e8efef;
  border: 1px solid var(--line);
  background: #07171e;
  line-height: 1.6;
}

.educator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.educator-grid section {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.educator-grid section:last-child {
  grid-column: 1 / -1;
}

.educator-grid h3 {
  margin-top: 0;
  color: var(--green);
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.archive-links a {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d5e1e2;
  font-size: 0.75rem;
  line-height: 1.4;
}

.dialog-shell--video {
  width: 100%;
}

.dialog-shell--video > h2 {
  max-width: none;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.video-dialog {
  width: min(1180px, calc(100% - 1.4rem));
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chain-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 80px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #07171e;
}

.chain-board span,
.chain-options button {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.chain-board span {
  position: relative;
  color: var(--ink);
  border-color: var(--green);
  background: var(--green);
}

.chain-board span:not(:last-child)::after {
  margin-left: 0.6rem;
  content: "→";
}

.chain-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.chain-options button {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: #d9e3e4;
  text-align: left;
}

.chain-options button:hover {
  border-color: var(--cyan);
}

.chain-feedback {
  min-height: 1.8rem;
  color: var(--muted);
}

.chain-feedback.is-correct {
  color: var(--green);
}

.chain-feedback.is-incorrect {
  color: #ff8c89;
}

.print-record {
  display: none;
}

.info-page {
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 90% 0%, rgba(25, 185, 232, 0.14), transparent 32rem),
    var(--ink);
  background-size: 100% 52px, auto, auto;
}

.info-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 17, 23, 0.88);
  backdrop-filter: blur(18px);
}

.info-header a,
.info-header span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-header a {
  color: var(--cyan);
}

.info-header span {
  color: var(--muted);
}

.info-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.info-main > h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-transform: uppercase;
}

.info-lead {
  max-width: 760px;
  margin: 2rem 0 0;
  color: #d0dcde;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.info-grid article,
.info-section,
.source-register article {
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.info-grid h2,
.info-section h2,
.source-register h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.info-grid p,
.info-grid li,
.info-section p,
.info-section li,
.source-register p {
  color: #bdcdcf;
  font-size: 0.9rem;
  line-height: 1.7;
}

.info-section {
  margin-top: 1rem;
}

.standards-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.standards-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.standards-table strong {
  color: var(--cyan);
}

.standards-table span {
  color: #bdcdcf;
  line-height: 1.55;
}

.prompt-list {
  columns: 2;
  column-gap: 2rem;
}

.prompt-list li {
  break-inside: avoid;
  margin-bottom: 0.7rem;
}

.notice-box {
  border-left: 4px solid var(--red);
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.info-actions a,
.info-actions button {
  min-height: 46px;
  padding: 0.75rem 1rem;
  color: var(--paper);
  border: 1px solid var(--cyan);
  background: rgba(25, 185, 232, 0.08);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.source-register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.source-register article {
  display: flex;
  flex-direction: column;
}

.source-register a {
  display: block;
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .course-progress {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .viewer-wrap {
    min-height: 58svh;
  }

  .learning-console {
    position: fixed;
    z-index: 120;
    inset: auto 0 0;
    max-height: 78svh;
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.52);
    transform: translateY(103%);
    transition: transform 0.28s ease;
  }

  .learning-console.is-open {
    transform: translateY(0);
  }

  .console-head > button,
  .open-console {
    display: block;
  }

  .open-console {
    position: absolute;
    z-index: 12;
    right: 1rem;
    bottom: 4.4rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--cyan);
    background: rgba(4, 14, 19, 0.82);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
  }

  .course-footer {
    grid-template-columns: 1fr;
  }

  .course-footer nav {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .intro-header > span,
  .course-brand small {
    display: none;
  }

  .intro-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 1rem 1rem;
  }

  .intro-copy {
    margin: 3rem 1rem 2rem;
  }

  .intro h1 {
    font-size: clamp(3.6rem, 17vw, 6.4rem);
  }

  .course-header {
    align-items: flex-start;
    padding: 0.7rem;
  }

  .course-header nav {
    justify-content: flex-end;
  }

  .course-header nav button {
    padding: 0.45rem 0.5rem;
    font-size: 0.6rem;
  }

  .course-brand strong {
    max-width: 130px;
    line-height: 1.2;
  }

  .viewer-wrap {
    min-height: 55svh;
  }

  .viewer-hud--bottom > span:last-child {
    display: none;
  }

  .viewer-hud > div {
    max-width: calc(100% - 90px);
  }

  .course-meter {
    grid-template-columns: 1fr 1fr;
  }

  .meter-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .course-meter button {
    grid-column: 1 / -1;
  }

  .route-list,
  .educator-grid,
  .archive-links,
  .chain-options,
  .info-grid,
  .source-register {
    grid-template-columns: 1fr;
  }

  .educator-grid section:last-child {
    grid-column: auto;
  }

  .dialog-shell {
    padding: 1.1rem;
  }

  .prompt-list {
    columns: 1;
  }

  .standards-table > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    color: #111;
    background: #fff;
    font-family: Arial, sans-serif;
  }

  body > :not(.print-record) {
    display: none !important;
  }

  .print-record {
    display: block;
  }

  .print-record header {
    padding-bottom: 0.2in;
    border-bottom: 4px solid #087fb9;
  }

  .print-record header p {
    margin: 0;
    color: #087fb9;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .print-record h1 {
    margin: 0.12in 0 0;
    font-size: 26pt;
  }

  .print-record h2 {
    margin: 0.04in 0 0;
    color: #444;
    font-size: 15pt;
  }

  .print-record dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.12in 0.3in;
    margin: 0.25in 0;
  }

  .print-record dl div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.12in;
  }

  .print-record dt {
    font-weight: 700;
  }

  .print-record dd {
    margin: 0;
  }

  .write-line {
    border-bottom: 1px solid #555;
  }

  .reflection-lines {
    min-height: 1.35in;
    background: repeating-linear-gradient(transparent 0 0.3in, #aaa 0.31in 0.315in);
  }

  .record-note {
    margin-top: 0.25in;
    color: #555;
    font-size: 8pt;
  }
}
