.reference-pane {
  min-width: 230px;
  resize: horizontal;
  overflow: hidden;
  max-width: 60%;
}
.reference-pane.expanded {
  width: 45%;
  min-width: 330px;
}
.reference-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 10px;
  border-bottom: 1px solid #dce6df;
  color: #3f6157;
}
.reference-heading strong {
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
}
.reference-heading button {
  border: 1px solid #cdded3;
  border-radius: 5px;
  background: #fff;
  width: 27px;
  height: 27px;
  color: #547d6d;
  font-size: 17px;
  padding: 0;
}
.reference-zoom-controls {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 7px 8px !important;
  font-size: 11px;
  border-bottom: 1px solid #e0e8e0;
}
.reference-zoom-controls button {
  border: 1px solid #d2e0d6;
  background: #fff;
  border-radius: 5px;
  padding: 4px 7px;
  min-width: 23px;
  color: #3c6e5c;
  font-size: 11px;
}
.reference-zoom-controls output {
  min-width: 35px;
  text-align: center;
  color: #436a5a;
}
.reference-zoom-controls span {
  color: #829488;
  margin-left: auto;
  white-space: nowrap;
}
.reference-scroll {
  padding: 8px;
  background: #edf1eb;
  touch-action: none;
  cursor: grab;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.reference-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}
.reference-stage {
  transform-origin: 0 0;
  box-shadow: 0 2px 8px #2d4d2d12;
}
.reference-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  background: #fcfcf8;
  pointer-events: none;
}
@media (max-width: 900px) {
  .reference-pane.expanded {
    min-width: 260px;
    width: 42%;
  }
  .reference-zoom-controls span {
    display: none;
  }
}
@media print {
  .reference-pane {
    display: none !important;
  }
}
