.trial-stage {
  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e7e2d8;
  border-radius: inherit;
  color: #333b37;
  font-family: inherit;
}
.trial-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.trial-canvas:focus-visible { outline: 3px solid #39867b; outline-offset: -3px; }
.trial-camera-tools, .trial-layer-control, .trial-caption, .trial-legend, .trial-item-tag { position: absolute; }
.trial-camera-tools { display: flex; top: 10px; left: 10px; align-items: center; }
.trial-camera-tools, .trial-layer-control {
  border: 1px solid rgb(70 61 51 / .22);
  border-radius: 9px;
  background: rgb(255 253 247 / .94);
  box-shadow: 0 2px 7px rgb(51 42 29 / .11);
}
.trial-stage .trial-control {
  appearance: none;
  cursor: pointer;
  color: #393e38;
  font-family: inherit;
  font-weight: 650;
  font-size: 12px;
  line-height: 1.1;
  min-width: 39px;
  min-height: 37px;
  padding: 4px 10px;
}
.trial-camera-tools .trial-control {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.trial-camera-tools .trial-control:first-child { border-radius: 8px 0 0 8px; }
.trial-camera-tools .trial-control:last-child { border-radius: 0 8px 8px 0; }
.trial-camera-tools .trial-control + .trial-control { border-left: 1px solid rgb(70 61 51 / .13); }
.trial-camera-tools [data-trial-action^="zoom"] { font-size: 19px; line-height: 1; padding-inline: 6px; }
.trial-layer-control { top: 10px; right: 10px; }
.trial-layer-control[aria-pressed="true"] { border-color: #637c69; background: #e4eee6; }
.trial-stage button:focus-visible { outline: 2px solid #2b765e; outline-offset: 1px; }
.trial-caption, .trial-legend, .trial-item-tag { pointer-events: none; }
.trial-caption, .trial-legend {
  bottom: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #454840;
  background: rgb(255 253 246 / .87);
  font-size: 10px;
  line-height: 1.25;
}
.trial-caption { right: 9px; }
.trial-legend { left: 9px; display: flex; gap: 9px; align-items: center; }
.trial-legend span { display: inline-flex; align-items: center; gap: 4px; }
.trial-legend span::before { content: ""; width: 12px; height: 8px; box-sizing: border-box; border-radius: 2px; }
.trial-legend-origin::before { background: #cbb198; border: 1px dashed #756b5a; }
.trial-legend-target::before { background: #8db4da; border: 1px solid #3868ae; }
.trial-item-tag {
  max-width: min(200px, 42%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translate(-50%, -110%);
  color: #fffcf7;
  background: #31483e;
  border-radius: 5px;
  padding: 4px 8px;
  font: 600 11px/1.25 system-ui, sans-serif;
  box-shadow: 0 2px 5px rgb(35 37 27 / .15);
}
.trial-stage [hidden] { display: none; }
@media (pointer: coarse) {
  .trial-stage .trial-control { min-height: 43px; min-width: 43px; }
}
@media (max-width: 420px) {
  .trial-camera-tools { left: 6px; top: 6px; }
  .trial-layer-control { right: 6px; top: 6px; }
  .trial-stage .trial-control { padding-inline: 7px; }
  .trial-legend { left: 6px; gap: 5px; }
  .trial-caption { right: 6px; }
}
