.record-details > .record-view {
  display: block;
  margin: 8px 0 0;
}

.coin-viewer .dialog-head { z-index: 1; }
.coin-viewer .dialog-head h2 { min-inline-size: 0; overflow-wrap: anywhere; }
.coin-viewer-actions { display: flex; flex: none; gap: 4px; }
.coin-viewer-actions .page-tool {
  display: grid;
  place-items: center;
  inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
}
.coin-viewer-actions .page-tool:disabled { opacity: .45; cursor: default; }
.coin-viewer-previous svg { transform: rotate(180deg); }
.coin-viewer-content { display: grid; gap: 12px; justify-items: center; }
.coin-viewer-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  max-height: 58dvh;
  background: #182421;
  color: #edf3f0;
  container-type: size;
  isolation: isolate;
  overflow: hidden;
  touch-action: none;
}

.coin-viewer-stage > * { grid-area: 1 / 1; }
.coin-viewer-watermark {
  place-self: center;
  z-index: 0;
  color: #36413e;
  font-size: clamp(26px, 15cqw, 76px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(calc(-1 * atan2(100cqh, 100cqw)));
  pointer-events: none;
  user-select: none;
}
.coin-viewer-stage > :is(canvas, .coin-viewer-still) { z-index: 1; }
.coin-viewer-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.coin-viewer-stage canvas:active { cursor: grabbing; }
.coin-viewer-stage canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.coin-viewer-still {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.coin-viewer-still figure {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  text-align: center;
}
.coin-viewer-still img {
  width: min(100%, 29dvh);
  aspect-ratio: 1;
  object-fit: contain;
}
.coin-viewer-reference-credits {
  max-width: min(100%, 560px);
  color: var(--muted);
  font-size: .82em;
  text-align: center;
  overflow-wrap: anywhere;
}

.coin-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.coin-viewer-controls button { min-height: 44px; }
.coin-viewer-controls button[aria-pressed="true"] { color: var(--gold); }
.coin-viewer-wireframe[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .2em; }
.coin-viewer-controls[hidden], .coin-viewer-stage > [hidden] { display: none; }
.coin-viewer-status { margin: 0; color: var(--muted); text-align: center; }
.coin-viewer-size {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 0;
}
.coin-viewer-size > div { display: grid; gap: 4px; text-align: center; }
.coin-viewer-size dt { color: var(--muted); }
.coin-viewer-size dd { margin: 0; font-variant-numeric: tabular-nums; }
.coin-viewer-pair { width: min(100%, 260px); }
