.dxf-view .lt-stage {
  padding: .65rem;
  min-height: 0;
  border: 1px solid var(--ap-edge);
  background: var(--ap-wash);
}

.dxf-view canvas {
  display: block;
  max-width: 100%;
  max-height: min(48vh, 340px);
  width: auto;
  height: auto;
  border: 1px solid var(--ap-edge);
  background: white;
}

.dxf-view figure { margin: 0; min-width: 0; }
.dxf-view figcaption { margin-bottom: .5rem; font-size: .9rem; font-weight: 650; }
.dxf-view [hidden] { display: none; }
.dxf-grid { grid-template-columns: minmax(250px, .85fr) minmax(0, 2fr); }
.dxf-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.dxf-field-label { display: flex; justify-content: space-between; gap: 1rem; }
.dxf-field-label output { font-variant-numeric: tabular-nums; }
.dxf-view #dxf-threshold { padding: .55rem 0; border: 0; }
.dxf-view #dxf-controls { margin-top: 1.3rem; }
.dxf-view #dxf-controls .lt-check { margin-bottom: 1rem; white-space: normal; }
.dxf-view #dxf-info { display: block; margin-top: .7rem; }
.dxf-view #dxf-example { margin: 0; }
.dxf-view #dxf-placeholder { min-height: 12rem; text-align: center; padding: 1rem; }

@media (max-width: 820px) {
  .dxf-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .dxf-previews { grid-template-columns: minmax(0, 1fr); }
}
