:root {
  --paper: #f3f6f8;
  --surface: #ffffff;
  --ink: #182026;
  --muted: #66737d;
  --line: #cfd7dd;
  --line-soft: #e5eaee;
  --signal-red: #d51f2b;
  --signal-red-dark: #a50f1b;
  --scope-cyan: #007e8a;
  --board-green: #28604d;
  --focus: #006fb9;
  --display: "Avenir Next Condensed", "Arial Narrow", "Noto Sans KR", sans-serif;
  --body: "Avenir Next", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(33, 54, 67, 0.028) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, transparent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal-red);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wordmark-mark {
  position: relative;
  width: 30px;
  height: 18px;
  border: 2px solid var(--signal-red);
}

.wordmark-mark::before,
.wordmark-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 8px;
  height: 2px;
  background: var(--signal-red);
}

.wordmark-mark::before {
  left: -9px;
}

.wordmark-mark::after {
  right: -9px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.search-box {
  width: min(28vw, 330px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fa;
}

.search-box:focus-within {
  border-color: var(--focus);
  box-shadow: inset 0 -1px var(--focus);
}

.search-box svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.language-switch button {
  border: 0;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  overflow: hidden;
  padding: clamp(70px, 9vw, 132px) clamp(24px, 7vw, 110px) 58px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero::after {
  content: "C28x";
  position: absolute;
  right: -0.05em;
  top: -0.3em;
  color: rgba(24, 32, 38, 0.028);
  font-family: var(--display);
  font-size: clamp(11rem, 25vw, 26rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero-trace {
  position: absolute;
  inset: auto 0 35px auto;
  width: min(66vw, 900px);
  fill: var(--surface);
  stroke: color-mix(in srgb, var(--signal-red) 65%, transparent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
  pointer-events: none;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal-red-dark);
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.11em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-stretch: condensed;
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--signal-red);
}

.hero-intro {
  max-width: 720px;
  margin: 34px 0 0;
  color: #46535c;
  font-size: clamp(1rem, 1.5vw, 1.23rem);
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 3px solid var(--ink);
}

.hero-stats div {
  padding: 19px 6px 17px;
  border-bottom: 1px solid var(--line);
}

.hero-stats div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.resource-section,
.field-lab {
  padding: clamp(70px, 8vw, 112px) clamp(24px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.resource-section {
  background: #e9eef1;
}

.field-lab {
  background: var(--surface);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.resource-card {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  background: var(--surface);
}

.resource-card-current {
  border-top-color: var(--signal-red);
}

.resource-tag {
  margin: 0 0 16px;
  color: var(--signal-red-dark);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
}

.resource-card > p:not(.resource-tag) {
  min-height: 3.3em;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.download-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.download-links a {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
  background: #f9fbfc;
  text-decoration: none;
}

.download-links a:hover {
  background: #eef4f6;
}

.download-links span {
  font-size: 0.78rem;
  font-weight: 800;
}

.download-links small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.resource-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.resource-secondary-links a {
  color: var(--scope-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.compatibility-note {
  margin: 18px 0 0;
  padding: 15px 18px;
  border-left: 4px solid var(--signal-red);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.8rem;
}

.compatibility-note strong {
  margin-right: 8px;
  color: var(--signal-red-dark);
  font-family: var(--mono);
  text-transform: uppercase;
}

.lab-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.lab-status > div {
  display: grid;
  grid-template-columns: 110px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 22px;
  background: #f8fafb;
}

.lab-status span,
.lab-status small {
  color: var(--muted);
  font-size: 0.7rem;
}

.lab-status span {
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lab-status strong {
  font-family: var(--display);
  font-size: 1.5rem;
}

.status-pass strong {
  color: var(--board-green);
}

.status-blocked strong {
  color: var(--signal-red-dark);
}

.lab-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-steps figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #f7f9fa;
}

.lab-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #15191c;
  cursor: zoom-in;
}

.lab-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lab-steps figcaption {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 20px;
}

.lab-steps figcaption > span {
  color: var(--signal-red);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.lab-steps figcaption strong {
  font-size: 0.88rem;
}

.lab-steps figcaption p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.usb-check-guide {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(30px, 5vw, 72px);
  margin-top: 58px;
  padding: clamp(24px, 4vw, 48px);
  border-top: 4px solid var(--ink);
  background: #f3f6f8;
}

.usb-check-visual {
  min-width: 0;
}

.usb-check-copy,
.terminal-check {
  min-width: 0;
  max-width: 100%;
}

.usb-check-visual .lab-image-button {
  border: 1px solid #3e474d;
}

.usb-check-visual > p {
  margin: 12px 0 0;
  padding-left: 13px;
  border-left: 3px solid var(--signal-red);
  color: var(--muted);
  font-size: 0.74rem;
}

.usb-check-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.usb-check-copy > ol {
  margin: 24px 0;
  padding-left: 1.45em;
}

.usb-check-copy > ol li {
  padding: 5px 0 5px 8px;
  color: #43515a;
  font-size: 0.81rem;
  line-height: 1.65;
}

.terminal-check {
  margin-top: 25px;
  border: 1px solid #303a40;
  background: #182026;
  color: #e9f0f3;
}

.terminal-check > strong,
.terminal-check summary {
  display: block;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.terminal-label,
.terminal-result {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #3a454c;
  color: #b9c7ce;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.terminal-label {
  color: #e9f0f3;
  font-weight: 800;
}

.terminal-result code {
  color: #ffb7bd;
}

.terminal-check summary {
  border-top: 1px solid #3a454c;
  color: #b9c7ce;
  cursor: pointer;
}

.terminal-check pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  border-top: 1px solid #3a454c;
  background: #101619;
  color: #b7e4d5;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.65;
}

.usb-decision-table {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.usb-decision-table div {
  display: grid;
  grid-template-columns: minmax(135px, 0.75fr) 1.25fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.usb-decision-table dt {
  color: var(--signal-red-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.usb-decision-table dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.reconnect-checklist {
  display: grid;
  grid-template-columns: minmax(180px, 310px) 1fr;
  gap: clamp(30px, 6vw, 90px);
  margin-top: 52px;
  padding: clamp(26px, 4vw, 46px);
  border-top: 4px solid var(--scope-cyan);
  background: #eef4f5;
}

.reconnect-checklist h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.12;
}

.reconnect-checklist ol {
  margin: 0;
  padding-left: 1.5em;
}

.reconnect-checklist li {
  padding: 6px 0 6px 8px;
  color: #43525b;
  font-size: 0.83rem;
}

.workshop-layout {
  width: min(1560px, 100%);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 64px) 96px;
}

.module-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow: auto;
  border-top: 3px solid var(--ink);
}

.sidebar-heading {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.module-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 15px 8px 15px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.module-nav-link:last-child {
  border-bottom: 1px solid var(--line);
}

.module-nav-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.module-nav-link[aria-current="page"]::before {
  background: var(--signal-red);
}

.module-nav-link[aria-current="page"] {
  color: var(--signal-red-dark);
}

.nav-number {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-copy strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

.nav-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.playlist-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--scope-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.module-content {
  min-width: 0;
}

.module-header {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: 42px;
  padding: 8px 0 35px;
  border-bottom: 1px solid var(--ink);
}

.module-index {
  color: var(--signal-red);
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.module-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.module-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.module-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.69rem;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.module-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.translation-note {
  grid-column: 2;
  margin: -10px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--scope-cyan);
  color: var(--muted);
  font-size: 0.78rem;
}

.scene-list {
  position: relative;
  display: grid;
  gap: 56px;
  padding-left: 34px;
}

.scene-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--signal-red), var(--scope-cyan) 76%, transparent);
}

.scene-card {
  position: relative;
  min-width: 0;
}

.scene-card::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 24px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--signal-red);
  box-shadow: 0 0 0 1px var(--signal-red-dark);
}

.scene-card[hidden] {
  display: none;
}

.scene-image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #b9c3ca;
  background: #0e1113;
  cursor: zoom-in;
  box-shadow: 0 15px 35px rgba(25, 38, 46, 0.1);
}

.scene-image-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.scene-image-button:hover img {
  filter: brightness(0.96);
}

.scene-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 2px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.scene-time {
  color: var(--signal-red-dark);
  font-weight: 800;
  text-decoration: none;
}

.transcript-panel {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.scene-note {
  margin: 0;
  padding: clamp(16px, 2.4vw, 26px) clamp(14px, 2.8vw, 30px);
  color: #303d45;
  font-size: clamp(0.94rem, 1.2vw, 1.04rem);
  line-height: 1.78;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.scene-note-ko {
  padding-left: clamp(34px, 4.4vw, 50px);
  border-left: 3px solid var(--board-green);
  list-style: none;
}

.scene-note-ko > li {
  position: relative;
  padding-left: 0.25rem;
}

.scene-note-ko > li + li {
  margin-top: 0.72rem;
}

.scene-note-ko > li::before {
  position: absolute;
  top: 0.77em;
  left: -1.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--board-green);
  background: color-mix(in srgb, var(--board-green) 18%, white);
  content: "";
  transform: rotate(45deg) translateY(-50%);
}

.scene-note-details {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  list-style: square;
}

.scene-note-details > li + li {
  margin-top: 0.24rem;
}

.scene-note-details > li::marker {
  color: var(--scope-cyan);
}

.note-lead {
  color: var(--ink);
  font-weight: 750;
}

.scene-note-en {
  border-left: 3px solid var(--scope-cyan);
}

.no-narration {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.search-empty {
  padding: 72px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.search-empty strong,
.search-empty span {
  display: block;
}

.search-empty span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #c5d0d6;
  font-family: var(--mono);
  font-size: 0.67rem;
}

footer p {
  margin: 0;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  padding: 42px 18px 18px;
  border: 0;
  background: #0d1114;
  color: white;
}

.lightbox::backdrop {
  background: rgba(8, 12, 15, 0.86);
  backdrop-filter: blur(5px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: auto;
}

.lightbox p {
  margin: 12px 0 0;
  color: #c2ccd2;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.lightbox-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar-tools,
  .search-box {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: min(100%, 520px);
  }

  .workshop-layout {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .lab-steps,
  .lab-status {
    grid-template-columns: 1fr;
  }

  .usb-check-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-status > div {
    grid-template-columns: 110px 180px minmax(0, 1fr);
  }

  .module-sidebar {
    position: static;
    max-height: none;
  }

  #module-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .module-nav-link:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .topbar-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .language-switch {
    align-self: flex-end;
  }

  .hero {
    min-height: 520px;
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
    line-height: 0.86;
  }

  .hero-stats dd {
    font-size: 1.55rem;
  }

  .resource-section,
  .field-lab {
    padding-inline: 18px;
  }

  .download-links {
    grid-template-columns: 1fr;
  }

  .lab-status > div,
  .reconnect-checklist {
    grid-template-columns: 1fr;
  }

  .usb-decision-table div {
    grid-template-columns: minmax(0, 1fr);
  }

  .usb-check-guide {
    padding: 18px;
    overflow: hidden;
  }

  .usb-check-copy h3 {
    font-size: 2rem;
    word-break: keep-all;
  }

  .lab-status > div {
    gap: 5px;
  }

  #module-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .module-nav-link {
    flex: 0 0 236px;
    min-height: 105px;
    padding-right: 14px;
    border-bottom: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .module-nav-link + .module-nav-link {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .module-nav-link::before {
    left: 0;
  }

  .module-header {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .translation-note {
    grid-column: 1 / -1;
  }

  .scene-list {
    gap: 42px;
    padding-left: 20px;
  }

  .scene-list::before {
    left: 3px;
  }

  .scene-card::before {
    left: -23px;
    width: 12px;
    height: 12px;
  }

  .scene-note {
    padding: 15px 13px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .scene-note-ko {
    padding-left: 34px;
  }

  footer {
    flex-direction: column;
  }
}

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