
.visual-chapter {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid #dce3d8;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 100% 0, #f0f4eb18, transparent 65%), #fbfcf8;
  position: relative;
  overflow: hidden;
}
.visual-chapter:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#d8eee603 1px, transparent 1px),
    linear-gradient(90deg, #d8eee603 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}
.visual-chapter > * {
  position: relative;
}
.visual-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.visual-eyebrow {
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.15em;
  color: #286c4f;
}
.visual-badge {
  font: 9px var(--mono);
  color: #607366;
  letter-spacing: 0.06em;
  padding: 5px 7px;
  border: 1px solid #dce3d8;
  border-radius: 4px;
}
.visual-chapter h2 {
  font-size: clamp(31px, 3.5vw, 48px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.06em;
  margin: 23px 0 20px;
  color: #193a2c;
}
.visual-chapter h2 > span {
  color: #286c45;
}
.visual-chapter > p {
  font-size: 13px !important;
  line-height: 1.95 !important;
  color: #607366 !important;
  margin: 0 0 28px;
  max-width: 760px;
}
.visual-simulator {
  padding: 24px 20px;
  border: 1px solid #dce3d8;
  border-radius: 9px;
  background: #fbfcf8;
}
.visual-controls {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 25px;
}
.visual-controls > button,
.visual-controls button,
.visual-exercise > button {
  font: 11px/1.5 var(--mono);
  min-height: 38px;
  padding: 10px 12px;
  background: #f0f4eb;
  border: 1px solid #dce3d8;
  color: #375d4c;
}
.visual-controls button:hover,
.visual-exercise > button:hover {
  border-color: #a8bca8;
  background: #f0f4eb;
}
.visual-controls button.visual-primary,
.visual-primary {
  background: #d8eee4;
  border-color: #a8bca8;
  color: #244634;
  font-weight: 600;
}
.visual-controls button.visual-primary:hover,
.visual-primary:hover {
  background: #d8eee3;
  border-color: #a8bca8;
  color: #244634;
}
.visual-segment {
  display: flex;
  gap: 0;
  border: 1px solid #dce3d8;
  border-radius: 7px;
  padding: 3px;
  background: #fbfcf8;
}
.visual-segment button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
  padding: 7px 9px;
  min-height: 30px;
  color: #607366;
}
.visual-segment button[aria-pressed="true"] {
  background: #e7eee2;
  color: #193a2c;
}
.visual-controls > label {
  font: 9px var(--mono);
  color: #607366;
  display: flex;
  align-items: center;
  gap: 6px;
}
.visual-controls select {
  font-size: 10px;
  padding: 6px;
  min-height: 32px;
}
.encapsulation-rows {
  display: grid;
  gap: 12px;
}
.encap-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 13px 10px;
  border: 1px solid #dce3d8;
  border-radius: 7px;
  background: #f0f4eb;
  transition:
    border-color 0.3s,
    background 0.3s,
    opacity 0.3s;
  opacity: 0.7;
}
.encap-row.encap-seen {
  opacity: 0.85;
}
.encap-row.encap-active {
  opacity: 1;
  border-color: #a8bca8;
  background: #f0f4eb;
  box-shadow: 0 0 20px #234d3608;
}
.encap-layer > span {
  font: 9px var(--mono);
  color: #607366;
  display: block;
  margin-bottom: 4px;
}
.encap-layer > b {
  font: 11px var(--mono);
  color: #607366;
  display: block;
}
.encap-layer > small {
  font-size: 9px;
  color: #607366;
  display: block;
  margin-top: 4px;
}
.encap-pieces {
  display: flex;
  gap: 4px;
  align-items: stretch;
  flex-wrap: wrap;
  min-width: 0;
}
.encap-pieces .packet-piece {
  font: 9px/1.7 var(--mono);
  padding: 9px 8px;
  border-radius: 4px;
  min-height: 40px;
  min-width: 0;
  flex: 1;
  letter-spacing: 0.02em;
  white-space: normal;
}
.packet-piece.piece-data {
  color: #286c45;
  border: 1px solid #a8bca8;
  background: #f0f4eb66;
}
.packet-piece.piece-tcp {
  color: #285c6c;
  border: 1px solid #a8bca8;
  background: #e7eee266;
}
.packet-piece.piece-ip {
  color: #44286c;
  border: 1px solid #a8bca8;
  background: #e7eee266;
}
.packet-piece.piece-eth,
.packet-piece.piece-fcs {
  color: #6c5b28;
  border: 1px solid #a8bca8;
  background: #f0f4eb66;
}
.packet-piece:hover {
  filter: brightness(1.25);
  transform: translateY(-2px);
}
.encap-size {
  font: 10px var(--mono);
  color: #607366;
  text-align: right;
}
.wire-path {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 4px 12px;
  font: 8px var(--mono);
  letter-spacing: 0.06em;
  color: #607366;
}
.wire-path > div {
  height: 1px;
  background: #e7eee2;
  flex: 1;
  position: relative;
  overflow: visible;
}
.wire-path i {
  display: block;
  position: absolute;
  left: 0;
  top: -3px;
  height: 7px;
  width: 13px;
  border-radius: 2px;
  background: #d8eee3;
  opacity: 0;
}
.wire-path.is-transmitting i {
  opacity: 1;
  left: calc(100% - 13px);
}
.visual-live {
  font: 11px/1.9 var(--mono) !important;
  color: #336146 !important;
  margin: 18px 0 0 !important;
  min-height: 22px;
}
.piece-inspector {
  padding: 18px 0 0;
  border-top: 1px dashed #dce3d8;
  margin-top: 20px;
}
.piece-inspector strong {
  font: 11px var(--mono);
  color: #286c39;
}
.piece-inspector p {
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: #607366 !important;
  margin: 8px 0 0;
}
.header-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 26px 0 20px;
}
.header-tabs button {
  font: 11px var(--mono);
  padding: 12px 14px;
  border-color: #dce3d8;
  border-radius: 6px;
  color: #607366;
  background: #fbfcf8;
}
.header-tabs button[aria-selected="true"] {
  background: #d8eee4;
  border-color: #a8bca8;
  color: #244634;
}
.header-workbench {
  padding: 23px;
  border: 1px solid #dce3d8;
  background: #fbfcf8;
  border-radius: 9px;
  overflow-x: auto;
}
.header-workbench-title {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}
.header-workbench-title h3 {
  font-size: 20px;
  color: #286c43;
  margin: 0;
  letter-spacing: -0.04em;
}
.header-workbench-title > span {
  font: 9px/1.8 var(--mono);
  color: #607366;
}
.packet-field-grid {
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  gap: 3px;
  min-width: 540px;
}
.header-field {
  grid-column: span var(--field-span);
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 8px;
  padding: 12px 9px;
  min-height: 99px;
  background: #f0f4eb;
  border: 1px solid #dce3d8;
  border-radius: 4px;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.header-field:hover,
.header-field[aria-pressed="true"] {
  background: #f0f4eb;
  border-color: #a8bca8;
  box-shadow: inset 0 0 20px #234d3609;
}
.header-field > span {
  font: 8px var(--mono);
  letter-spacing: 0.06em;
  color: #607366;
}
.header-field > strong {
  font: 500 11px/1.5 var(--sans);
  color: #193a2c;
  overflow-wrap: anywhere;
  word-break: normal;
}
.header-field > code {
  font: 10px/1.6 var(--mono);
  color: #286c4b;
  word-break: break-word;
  background: transparent !important;
  padding: 0 !important;
}
.field-explanation {
  margin-top: 22px;
  border: 1px solid #a8bca8;
  border-left: 3px solid #a8bca8;
  border-radius: 7px;
  background: #fbfcf8;
  padding: 21px;
  min-height: 180px;
}
.field-explanation h4 {
  font-size: 21px;
  margin: 9px 0 12px;
  letter-spacing: -0.04em;
  color: #286c42;
}
.field-explanation p {
  font-size: 13px !important;
  line-height: 1.9 !important;
  color: #607366 !important;
  margin: 0 0 13px;
}
.field-explanation > div {
  font-size: 11px;
  color: #607366;
  line-height: 1.9;
  border-top: 1px solid #dce3d8;
  padding-top: 12px;
}
.visual-exercise {
  margin-top: 23px;
  border: 1px solid #a8bca8;
  border-radius: 9px;
  padding: 24px;
  background: #f0f4eb;
}
.visual-exercise h3 {
  font-size: 23px;
  margin: 12px 0;
}
.visual-exercise p {
  font-size: 13px !important;
  line-height: 1.9 !important;
}
.visual-exercise label {
  font-size: 12px;
  color: #607366;
  display: block;
  margin: 18px 0 12px;
}
.visual-exercise select {
  display: block;
  margin-top: 9px;
  width: 100%;
  font-size: 12px;
  min-height: 42px;
  background: #fbfcf8;
}
.ttl-model {
  border: 1px solid #dce3d8;
  border-radius: 10px;
  padding: 25px;
  background: #fbfcf8;
}
.ttl-model > label {
  font: 12px var(--mono);
  display: block;
  color: #607366;
}
.ttl-model > label > strong {
  color: #286c3d;
  font-size: 22px;
  margin-left: 12px;
}
.ttl-model input[type="range"] {
  display: block;
  margin: 17px 0 25px;
  width: 100%;
  accent-color: #65e5a1;
  padding: 0;
  min-height: 25px;
  background: transparent;
}
.ttl-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 25px 0;
}
.ttl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 5px;
  border: 1px solid #dce3d8;
  border-radius: 8px;
  background: #f0f4eb;
  text-align: center;
  gap: 7px;
}
.ttl-node > span {
  font-size: 27px;
  line-height: 1;
  color: #607366;
}
.ttl-node > b {
  font-size: 10px;
  font-weight: 500;
}
.ttl-node > small {
  font: 8px var(--mono);
  color: #607366;
}
.ttl-node.ttl-reached {
  border-color: #a8bca8;
  background: #e7eee2;
}
.ttl-node.ttl-reached > span,
.ttl-node.ttl-reached > small {
  color: #286c3f;
}
.ttl-node.ttl-expired {
  border-color: #a8bca8;
  background: #f0f4eb;
}
.ttl-node.ttl-expired > small {
  color: #6c4428;
}
.ttl-node.ttl-unreached {
  opacity: 0.35;
}
.ttl-model .visual-exercise {
  background: #f0f4eb;
  padding: 18px;
}
.ttl-model .visual-exercise label {
  margin-top: 0;
}
.concept-scene {
  padding: 24px;
  margin: 0 0 24px;
  border: 1px solid #dce3d8;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, #e7eee244, transparent 75%), #fbfcf8;
  overflow: hidden;
  position: relative;
}
.scene-kicker {
  font: 9px/1.8 var(--mono);
  letter-spacing: 0.12em;
  color: #286c41;
  margin-bottom: 22px;
}
.scene-network {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scene-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 17px 13px;
  border: 1px solid #dce3d8;
  border-radius: 10px;
  min-width: 0;
  flex: 1;
  background: #f0f4eb;
  text-align: center;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.scene-node > span {
  font-size: 30px;
  line-height: 1;
  color: #607366;
}
.scene-node > b {
  font-size: 13px;
  font-weight: 500;
  color: #607366;
}
.scene-node > small {
  font: 9px/1.8 var(--mono);
  color: #607366;
  overflow-wrap: anywhere;
}
.scene-node.scene-active {
  border-color: #a8bca8;
  background: #e7eee2;
  box-shadow: 0 0 20px #234d360c;
}
.scene-node.scene-active > span {
  color: #286c3a;
}
.scene-connector {
  font: 22px var(--mono);
  color: #244634;
}
.scene-connector.flowing {
  color: #286c42;
}
.scene-caption {
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: #607366;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid #dce3d8;
}
.scene-signal {
  font: 12px/1.8 var(--mono);
  color: #2d6643;
  min-width: 90px;
  max-width: 125px;
  text-align: center;
  border-top: 1px dashed #a8bca8;
  border-bottom: 1px dashed #a8bca8;
  padding: 17px 5px;
}
.signal-filtered,
.signal-closed {
  color: #6c4528;
  border-color: #a8bca8;
}
.decision-path {
  display: flex;
  align-items: center;
  gap: 12px;
}
.decision-path > span {
  color: #385c44;
  font-size: 20px;
  flex-shrink: 0;
}
.decision-gate {
  padding: 18px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 103px;
  border: 1px solid #a8bca8;
  border-radius: 9px;
  background: #e7eee2;
}
.decision-gate b {
  font: 8px/1.8 var(--mono);
  letter-spacing: 0.06em;
  color: #2f643b;
  white-space: nowrap;
}
.decision-gate > span {
  font: 15px var(--mono);
  color: #193a2c;
}
.decision-gate.gate-closed {
  border-color: #a8bca8;
  background: #f0f4eb;
}
.gate-closed b,
.gate-closed > span {
  color: #6c4628;
}
.domain-lens {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font: clamp(14px, 1.8vw, 21px)/1.9 var(--mono);
  padding: 22px 0;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: break-word;
}
.domain-lens > span {
  color: #607366;
}
.domain-lens > strong {
  font-weight: 500;
  color: #193a2c;
  background: #e7eee2;
  border: 1px solid #a8bca8;
  padding: 5px 7px;
  border-radius: 6px;
}
.domain-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 9px var(--mono);
  color: #607366;
}
.domain-legend b {
  font-weight: 400;
  color: #326240;
}
.factor-orbits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 23px 0;
}
.factor-orbits > span {
  color: #375d40;
  font-size: 30px;
}
.factor-orbit {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  border: 1px dashed #a8bca8;
  background: #f0f4eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  text-align: center;
}
.factor-orbit > span {
  font: 31px var(--mono);
  color: #607366;
  line-height: 1;
}
.factor-orbit > b {
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  color: #607366;
}
.factor-orbit > small {
  font-size: 10px;
  color: #607366;
  line-height: 1.8;
}
.factor-orbit.orbit-active {
  border: 1px solid #a8bca8;
  background: #e7eee2;
  box-shadow: 0 0 25px #234d3610;
}
.orbit-active > span,
.orbit-active > b {
  color: #193a2c;
}
.avalanche-bits {
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  gap: 3px;
}
.avalanche-bits > i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #e7eee2;
  min-width: 0;
  transition:
    background 0.25s,
    transform 0.25s;
}
.avalanche-bits > i.bit-different {
  background: #eee3d8;
  box-shadow: 0 0 6px #234d3625;
}
.avalanche-total {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 18px;
}
.avalanche-total > strong {
  font: 32px var(--mono);
  color: #6c4928;
  line-height: 1.4;
}
.avalanche-total > span {
  font-size: 11px;
  color: #607366;
}
@media (max-width: 1150px) {
  .visual-chapter {
    padding: 26px;
  }
  .visual-controls {
    gap: 7px;
  }
  .visual-controls > button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .visual-simulator {
    padding: 21px 16px;
  }
  .encap-row {
    grid-template-columns: 90px minmax(0, 1fr) 35px;
    gap: 7px;
    padding: 12px 8px;
  }
  .encap-layer > b {
    font-size: 10px;
  }
  .encap-pieces .packet-piece {
    font-size: 8px;
    padding: 8px 5px;
  }
  .visual-badge {
    font-size: 8px;
  }
  .header-workbench {
    padding: 19px;
  }
  .concept-scene {
    padding: 21px;
  }
  .scene-node {
    padding: 15px 9px;
  }
  .scene-node > b {
    font-size: 12px;
  }
  .scene-node > small {
    font-size: 8px;
  }
  .decision-path {
    gap: 8px;
  }
  .decision-gate {
    min-width: 88px;
    padding: 17px 7px;
  }
  .decision-gate > b {
    font-size: 7px;
  }
  .decision-gate > span {
    font-size: 13px;
  }
  .scene-signal {
    min-width: 75px;
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  .visual-chapter h2 {
    font-size: 40px;
  }
  .encap-row {
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 12px;
  }
  .encap-pieces .packet-piece {
    font-size: 9px;
  }
  .encap-layer > b {
    font-size: 11px;
  }
  .concept-scene {
    padding: 24px;
  }
  .scene-node {
    padding: 18px 12px;
  }
  .scene-node > b {
    font-size: 13px;
  }
  .scene-node > small {
    font-size: 9px;
  }
  .scene-signal {
    font-size: 12px;
    min-width: 95px;
  }
}
@media (max-width: 600px) {
  .visual-chapter {
    padding: 24px 19px;
    margin-top: 22px;
    border-radius: 10px;
  }
  .visual-chapter-head {
    gap: 10px;
    align-items: start;
    flex-wrap: wrap;
  }
  .visual-eyebrow {
    font-size: 9px;
  }
  .visual-badge {
    font-size: 8px;
  }
  .visual-chapter h2 {
    font-size: 36px;
    letter-spacing: -0.055em;
    line-height: 1.12;
    margin: 22px 0;
  }
  .visual-chapter > p {
    font-size: 12px !important;
    line-height: 1.95 !important;
  }
  .visual-simulator {
    padding: 20px 12px;
  }
  .visual-controls {
    gap: 8px;
    padding-bottom: 22px;
    justify-content: flex-start;
  }
  .visual-segment {
    flex: 1 1 100%;
    width: 100%;
  }
  .visual-segment button {
    flex: 1;
  }
  .visual-controls > button {
    font-size: 10px;
  }
  .visual-controls > label {
    font-size: 9px;
  }
  .encap-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 11px;
    padding: 13px 9px;
  }
  .encap-layer {
    grid-column: 1/-1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  .encap-layer > span {
    margin: 0;
    font-size: 8px;
  }
  .encap-layer > b {
    font-size: 10px;
  }
  .encap-layer > small {
    font-size: 9px;
    margin: 0 0 0 auto;
  }
  .encap-pieces .packet-piece {
    font-size: 8px;
    min-height: 36px;
    padding: 8px 6px;
    flex: 1 0 29%;
  }
  .encap-size {
    font-size: 9px;
  }
  .wire-path {
    font-size: 6px;
    gap: 9px;
  }
  .visual-live {
    font-size: 10px !important;
  }
  .piece-inspector p {
    font-size: 11px !important;
  }
  .piece-inspector strong {
    font-size: 10px;
  }
  .header-tabs {
    gap: 6px;
    margin: 21px 0 15px;
  }
  .header-tabs button {
    font-size: 10px;
    padding: 10px 11px;
    flex: 1 1 42%;
  }
  .header-workbench {
    padding: 17px 12px;
  }
  .header-workbench-title h3 {
    font-size: 18px;
  }
  .header-workbench-title > span {
    font-size: 8px;
  }
  .packet-field-grid {
    min-width: 470px;
  }
  .header-field {
    padding: 11px 8px;
    min-height: 96px;
    gap: 8px;
  }
  .header-field > strong {
    font-size: 10px;
  }
  .header-field > code {
    font-size: 9px;
  }
  .header-field > span {
    font-size: 7px;
  }
  .field-explanation {
    padding: 18px 16px;
    min-height: 190px;
  }
  .field-explanation h4 {
    font-size: 21px;
  }
  .field-explanation p {
    font-size: 12px !important;
  }
  .field-explanation > div {
    font-size: 10px;
  }
  .visual-exercise {
    padding: 21px 17px;
  }
  .visual-exercise h3 {
    font-size: 22px;
  }
  .visual-exercise p {
    font-size: 12px !important;
  }
  .visual-exercise label {
    font-size: 11px;
  }
  .visual-exercise select {
    font-size: 11px;
  }
  .ttl-model {
    padding: 20px 14px;
  }
  .ttl-route {
    gap: 5px;
    margin: 23px 0;
  }
  .ttl-node {
    padding: 12px 3px;
    gap: 8px;
    border-radius: 6px;
  }
  .ttl-node > span {
    font-size: 23px;
  }
  .ttl-node > b {
    font-size: 8px;
    line-height: 1.5;
  }
  .ttl-node > small {
    font-size: 6px;
    line-height: 1.8;
  }
  .ttl-model .visual-exercise {
    padding: 17px 13px;
  }
  .ttl-model > label {
    font-size: 11px;
  }
  .ttl-model > label > strong {
    font-size: 20px;
  }
  .concept-scene {
    padding: 22px 16px;
  }
  .scene-kicker {
    font-size: 8px;
    letter-spacing: 0.07em;
    margin-bottom: 18px;
  }
  .scene-network {
    gap: 6px;
  }
  .scene-node {
    padding: 16px 7px;
    gap: 9px;
    border-radius: 7px;
  }
  .scene-node > span {
    font-size: 26px;
  }
  .scene-node > b {
    font-size: 10px;
    line-height: 1.5;
  }
  .scene-node > small {
    font-size: 7px;
    line-height: 1.9;
  }
  .scene-connector {
    font-size: 17px;
  }
  .scene-caption {
    font-size: 11px !important;
  }
  .scene-signal {
    min-width: 65px;
    max-width: 80px;
    font-size: 9px;
    padding: 14px 3px;
  }
  .decision-path {
    gap: 6px;
    flex-wrap: wrap;
  }
  .decision-path > .scene-node {
    min-width: 70px;
  }
  .decision-path > span {
    font-size: 16px;
  }
  .decision-gate {
    min-width: 77px;
    padding: 16px 5px;
    gap: 10px;
  }
  .decision-gate > b {
    font-size: 6px;
  }
  .decision-gate > span {
    font-size: 11px;
  }
  .domain-lens {
    font-size: 14px;
    line-height: 2;
    word-break: break-all;
    padding: 16px 0;
  }
  .domain-lens > strong {
    padding: 4px 6px;
  }
  .domain-legend {
    font-size: 8px;
    line-height: 1.8;
  }
  .factor-orbits {
    gap: 12px;
  }
  .factor-orbits > span {
    font-size: 22px;
  }
  .factor-orbit {
    height: 117px;
    width: 117px;
    padding: 12px;
    gap: 9px;
  }
  .factor-orbit > span {
    font-size: 25px;
  }
  .factor-orbit > b {
    font-size: 7px;
  }
  .factor-orbit > small {
    font-size: 8px;
  }
  .avalanche-bits {
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 3px;
  }
  .avalanche-total > strong {
    font-size: 30px;
  }
  .avalanche-total > span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .wire-path.is-transmitting i {
    animation: wireFlight 1.8s ease-in-out infinite;
  }
  .scene-connector.flowing {
    animation: flowGlow 2s ease-in-out infinite;
  }
  .encap-active .packet-piece {
    animation: wrapperReveal 0.4s ease both;
  }
  .scene-node.scene-active {
    animation: nodeGlow 4s ease-in-out infinite;
  }
  .bit-different {
    animation: bitReveal 0.5s ease both;
  }
}
@keyframes wireFlight {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 13px);
    opacity: 0;
  }
}
@keyframes flowGlow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes wrapperReveal {
  from {
    opacity: 0.3;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nodeGlow {
  0%,
  100% {
    box-shadow: 0 0 8px #234d3608;
  }
  50% {
    box-shadow: 0 0 26px #234d3617;
  }
}
@keyframes bitReveal {
  from {
    opacity: 0.3;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .visual-chapter *,
  .concept-scene * {
    animation: none !important;
    transition: none !important;
  }
}

