/* Scoped to the three reusable teaching modules. */
.hall-teaching {
  --ht-red: #c71932;
  --ht-ink: #171719;
  --ht-muted: #64646b;
  --ht-line: #dcdce0;
  --ht-paper: #f5f5f6;
  min-width: 0;
  color: var(--ht-ink);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.hall-teaching *, .hall-teaching *::before, .hall-teaching *::after { box-sizing: border-box; }
.hall-teaching .ht-figure { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--ht-line); border-radius: 8px; }
.hall-teaching .ht-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hall-teaching .ht-heading h3 { margin: 0; padding: 0; color: var(--ht-ink); font-size: 18px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.hall-teaching .ht-model-label { flex: 0 0 auto; padding: 2px 7px; border: 1px solid var(--ht-line); color: var(--ht-muted); font-size: 10px; letter-spacing: .04em; }
.hall-teaching .ht-note { margin: 10px 0 18px; color: var(--ht-muted); font-size: 12px; }
.hall-teaching .ht-svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto 12px; overflow: visible; }
.hall-teaching .ht-svg text { fill: var(--ht-ink); font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; font-size: 15px; }
.hall-teaching .ht-node > rect { fill: var(--ht-paper); stroke: var(--ht-line); stroke-width: 1.3; }
.hall-teaching .ht-node.is-active > rect { fill: #fff4f5; stroke: var(--ht-red); stroke-width: 2; }
.hall-teaching .ht-svg .ht-node-title { font-size: 15px; font-weight: 650; }
.hall-teaching .ht-svg .ht-node-detail { font-size: 12px; fill: var(--ht-muted); }
.hall-teaching .ht-svg .ht-small { font-size: 12px; }
.hall-teaching .ht-svg .ht-mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.hall-teaching .ht-svg .ht-result { font-size: 22px; fill: var(--ht-red); font-weight: 650; font-variant-numeric: tabular-nums; }
.hall-teaching .ht-connections { color: #a7a7ad; }
.hall-teaching .ht-magnet { fill: var(--ht-red); }
.hall-teaching .ht-adc-cell rect { fill: #fff; stroke: var(--ht-line); }
.hall-teaching .ht-adc-cell text { font-size: 12px; fill: var(--ht-muted); }
.hall-teaching .ht-adc-cell.is-active rect { fill: var(--ht-red); stroke: var(--ht-red); }
.hall-teaching .ht-adc-cell.is-active text { fill: #fff; font-weight: 700; }
.hall-teaching .ht-adc-cell.is-complete rect { fill: #e5e5e8; stroke: #bdbdc3; }
.hall-teaching .ht-inline-note { margin: 12px 0; color: var(--ht-muted); font-size: 11px; line-height: 1.7; }
.hall-teaching .ht-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.hall-teaching .ht-controls button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 15px; border: 1px solid #b9b9c0; border-radius: 4px; background: #fff; color: var(--ht-ink); font: inherit; font-size: 13px; line-height: 1.3; cursor: pointer; touch-action: manipulation; }
.hall-teaching .ht-controls button:hover { border-color: var(--ht-red); color: var(--ht-red); }
.hall-teaching .ht-controls button:focus-visible { outline: 3px solid var(--ht-red); outline-offset: 3px; }
.hall-teaching .ht-controls button[data-action="play"], .hall-teaching .ht-controls button[data-action="capture"] { border-color: var(--ht-red); background: var(--ht-red); color: #fff; }
.hall-teaching .ht-controls button[data-action="play"]:hover, .hall-teaching .ht-controls button[data-action="capture"]:hover { background: #a51026; color: #fff; }
.hall-teaching .ht-caption { display: block; min-height: 7em; margin: 0; padding: 12px 14px; border-left: 3px solid var(--ht-red); background: var(--ht-paper); color: var(--ht-ink); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hall-teaching .ht-playback-state { min-height: 1.7em; margin: 9px 0 0; color: var(--ht-muted); font-size: 10px; }
.hall-teaching .ht-board-line { fill: none; stroke: #3c3c42; stroke-width: 2; }
.hall-teaching .ht-field-guides path { fill: none; stroke: #c9a6ac; stroke-width: 1.5; stroke-dasharray: 3 5; }
.hall-teaching .is-hidden { visibility: hidden; }
.hall-teaching .ht-hall-chip { fill: #252529; }
.hall-teaching .ht-axis { fill: none; stroke: var(--ht-line); }
.hall-teaching .ht-raw-bar { fill: #c6c6cd; }
.hall-teaching .ht-signal-bar { fill: var(--ht-red); }
.hall-teaching [data-role="magnet"], .hall-teaching .ht-baseline-line { transition: transform 360ms ease; }
.hall-teaching .ht-raw-bar, .hall-teaching .ht-signal-bar { transition: y 360ms ease, height 360ms ease; }
.hall-teaching .ht-signal-bar.is-negative { fill: #fff; stroke: var(--ht-red); stroke-width: 1.5; }
.hall-teaching .ht-baseline-line { fill: none; stroke: #171719; stroke-width: 2; stroke-dasharray: 4 3; }
.hall-teaching .ht-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 17px; margin: 8px 0 15px; color: var(--ht-muted); font-size: 11px; }
.hall-teaching .ht-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hall-teaching .ht-legend i { display: inline-block; width: 14px; height: 8px; }
.hall-teaching .ht-key-raw { background: #c6c6cd; }
.hall-teaching .ht-key-baseline { border-top: 2px dashed #171719; }
.hall-teaching .ht-key-signal { background: var(--ht-red); }
.hall-teaching .ht-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hall-teaching .ht-value-card { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--ht-line); background: #fff; min-width: 0; }
.hall-teaching .ht-value-card strong { margin-bottom: 4px; font-size: 13px; }
.hall-teaching .ht-value-card span { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-size: 11px; color: var(--ht-muted); white-space: nowrap; }
.hall-teaching .ht-value-card b { color: var(--ht-ink); font: 12px/1.6 Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.hall-teaching .ht-value-card .ht-signal-number, .hall-teaching .ht-signal-number b { color: var(--ht-red); }
.hall-teaching .ht-cal-state { min-height: 3em; color: var(--ht-muted); font-size: 11px; margin: 12px 0 0; }
.hall-teaching .ht-lifeline { fill: none; stroke: var(--ht-line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hall-teaching .ht-bus-arrow { color: #bebec4; }
.hall-teaching .ht-bus-arrow path { fill: none; stroke: currentColor; stroke-width: 2; }
.hall-teaching .ht-bus-arrow text { fill: #85858d; }
.hall-teaching .ht-bus-arrow.is-active { color: var(--ht-red); }
.hall-teaching .ht-bus-arrow.is-active text { fill: var(--ht-red); font-weight: 650; }
.hall-teaching .ht-bus-arrow.is-active path { stroke-dasharray: 7 5; }
.hall-teaching[data-playing="true"] .ht-bus-arrow.is-active path { animation: ht-frame-flow 900ms linear infinite; }
@keyframes ht-frame-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -24; } }
.hall-teaching .ht-pb5-panel { fill: var(--ht-paper); stroke: var(--ht-line); }
.hall-teaching .ht-svg .ht-pb5-value { font-size: 19px; font-weight: 650; }
.hall-teaching .ht-direction-light { fill: #66666e; }
.hall-teaching .ht-direction-light.is-transmitting { fill: var(--ht-red); }
.hall-teaching .ht-frame { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--ht-line); border-radius: 4px; background: #fff; min-width: 0; }
.hall-teaching .ht-frame.is-active { border-color: var(--ht-red); background: #fff8f8; }
.hall-teaching .ht-frame > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; margin-bottom: 5px; font-size: 12px; }
.hall-teaching .ht-frame > div span { color: var(--ht-muted); font: 10px/1.6 Consolas, "Courier New", monospace; }
.hall-teaching .ht-frame code { display: block; padding: 0; margin: 0; border: 0; background: transparent; color: var(--ht-ink); font: 11px/1.8 Consolas, "Courier New", monospace; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .hall-teaching .ht-figure { padding: 16px 12px; }
  .hall-teaching .ht-heading { align-items: flex-start; gap: 6px; }
  .hall-teaching .ht-heading h3 { font-size: 16px; }
  .hall-teaching .ht-model-label { font-size: 9px; }
  .hall-teaching .ht-note { font-size: 11px; }
  .hall-teaching .ht-controls button { min-height: 44px; padding-inline: 13px; }
  .hall-teaching .ht-value-card { padding: 8px 6px; }
  .hall-teaching .ht-value-card span { font-size: 10px; }
  .hall-teaching .ht-value-card b { font-size: 11px; }
  .hall-teaching .ht-caption { min-height: 9em; padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hall-teaching *, .hall-teaching *::before, .hall-teaching *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
