/* A quiet workbook: diagrams stay white and match the printed edition. */
.notes-demo {
  margin: 2em 0;
  border: 1px solid var(--notes-line, #c6d2cc);
  border-top: 3px solid #497563;
  border-radius: 4px;
  padding: 18px;
  background: var(--global-bg-color, #fff);
}
.notes-demo-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.notes-demo-title {
  font:
    600 17px/1.6 "Songti SC",
    "Noto Serif CJK SC",
    serif;
  margin: 0 !important;
}
.notes-demo-count {
  white-space: nowrap;
  font-size: 12px;
  color: var(--notes-muted);
  font-variant-numeric: tabular-nums;
}
.notes-demo-scene {
  background: #fff;
  border: 1px solid #e2e9e5;
  margin: 16px 0;
  overflow-x: auto;
}
.notes-demo-scene svg {
  display: block;
  width: 100%;
  min-width: 500px;
}
.notes-demo-action {
  font-weight: 550;
  margin: 10px 0 !important;
}
.notes-demo-reason {
  font-size: 14px;
  line-height: 1.85;
  margin: 10px 0 20px !important;
}
.notes-demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.notes-demo button,
.notes-demo select {
  color: inherit;
  font: inherit;
  font-size: 13px;
  background: var(--global-bg-color, #fff);
  border: 1px solid var(--notes-line, #c6d2cc);
  border-radius: 3px;
  min-height: 38px;
  padding: 6px 12px;
  cursor: pointer;
}
.notes-demo button:disabled {
  opacity: 0.4;
  cursor: default;
}
.notes-demo button:hover:not(:disabled) {
  border-color: #497563;
}
.notes-demo-speed {
  margin: 0 0 0 auto;
  font-size: 12px;
}
.notes-demo-timeline {
  display: block;
  font-size: 12px;
  color: var(--notes-muted);
  margin: 18px 0 12px;
}
.notes-demo-timeline input {
  display: block;
  width: 100%;
  accent-color: #497563;
  margin: 12px 0;
  cursor: ew-resize;
}
.notes-demo-predict,
.notes-demo-static {
  font-size: 13px;
  margin-top: 12px;
}
.notes-demo summary {
  cursor: pointer;
}
.notes-demo-predict p {
  padding: 12px;
  border-left: 2px solid #bd8943;
}
.notes-demo-static img {
  margin-top: 15px;
}
@media (max-width: 600px) {
  .notes-demo {
    padding: 12px;
  }
  .notes-demo-top {
    display: block;
  }
  .notes-demo-count {
    display: block;
    margin-top: 4px;
  }
  .notes-demo-speed {
    margin-left: 0;
  }
}
@media print {
  .notes-demo-controls,
  .notes-demo-timeline,
  .notes-demo-predict,
  .notes-demo-scene,
  .notes-demo-action,
  .notes-demo-reason {
    display: none;
  }
  .notes-demo-static {
    display: block;
  }
  .notes-demo-static > summary {
    display: none;
  }
  .notes-demo-static > p {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notes-demo * {
    animation: none !important;
    transition: none !important;
  }
}
.notes-figure-open {
  display: block;
  border: 0;
  padding: 0;
  margin: 1em 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
}
.notes-figure-open img {
  display: block;
  margin: 0 auto;
}
.notes-figure-dialog {
  width: min(1500px, 94vw);
  max-width: 94vw;
  max-height: 94vh;
  padding: 16px;
  border: 1px solid #a6b9ae;
  border-radius: 4px;
  color: #25332f;
  background: #fff;
}
.notes-figure-dialog::backdrop {
  background: #17231dcc;
}
.notes-figure-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font:
    14px/1.7 "PingFang SC",
    sans-serif;
}
.notes-figure-bar button {
  padding: 8px 14px;
  cursor: pointer;
  background: #f5f8f6;
  border: 1px solid #a6b9ae;
  border-radius: 3px;
}
.notes-figure-bar label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.notes-figure-caption {
  font-size: 13px;
}
.notes-figure-body {
  overflow: auto;
  max-height: 72vh;
  background: #fff;
}
.notes-figure-body img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}
