.q02-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.q02-head h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q02-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  align-items: center;
  padding: 30px 0 18px;
}

.q02-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 560px;
  padding: 40px 42px 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.q02-panel-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q02-param {
  color: var(--muted);
  font-weight: 500;
}

.q02-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  min-height: 42px;
  margin-top: 12px;
}

.q02-note {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.q02-update {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(164, 118, 36, 0.45);
  border-radius: 8px;
  background: #fbf4e6;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
}

.q02-update.is-on {
  visibility: visible;
  opacity: 1;
}

.q02-code {
  flex: 0 0 auto;
  margin: 44px 0 0;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q02-code code {
  display: block;
  width: 100%;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre;
}

.q02-rail {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.q02-relation {
  width: 100%;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--navy);
  text-align: center;
  visibility: hidden;
  opacity: 0;
}

.q02-relation.is-on {
  visibility: visible;
  opacity: 1;
}

.q02-link {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
  visibility: hidden;
  opacity: 0;
}

.q02-link.is-on {
  visibility: visible;
  opacity: 1;
}

.q02-link-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
}

.q02-link-head {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q02-link-origin {
  fill: var(--gold);
}

.q02-material {
  flex: 0 0 auto;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.q02-material li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 34px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}

.q02-material li:last-child {
  border-bottom: 1px solid var(--line);
}

.q02-material li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.q02-mobile h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q02-m-lede {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

.q02-m-box {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q02-m-box h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q02-m-note {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.q02-m-update {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(164, 118, 36, 0.45);
  border-radius: 8px;
  background: #fbf4e6;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.q02-m-code {
  margin: 18px 0 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.q02-m-code code {
  display: block;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre;
}

.q02-m-bridge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
}

.q02-m-bridge::before,
.q02-m-bridge::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: var(--gold);
}

.q02-m-material {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.q02-m-material li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}

.q02-m-material li:last-child {
  border-bottom: 1px solid var(--line);
}

.q02-m-material li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
}

.q02-m-state {
  margin: 26px 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.q02-m-link {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Coordinator Q02: reserve mobile reveal geometry across both cues. */
.q02-m-update, .q02-m-bridge { visibility: hidden; }
.q02-m-update.is-on, .q02-m-bridge.is-on { visibility: visible; }

/* L07 teaching bridge: preserve the two-panel mechanism. */
.q02-course-question{margin:8px 0 0;font-size:21px;line-height:1.5;color:var(--muted)}
.q02-head{padding-bottom:14px}
.q02-body{padding:16px 0 10px}
.q02-panel{height:510px;padding:30px 34px}
.q02-next-question{margin:0;min-height:54px;padding-top:14px;border-top:2px solid var(--gold);font-size:29px;line-height:1.45;font-weight:600;color:var(--navy)}
.q02-mobile .q02-next-question{margin-top:22px;font-size:20px;line-height:1.6}
