.vlm-photo { margin: 12px 0; min-width: 0; }
.vlm-photo svg { display: block; width: 100%; height: auto; border-radius: 7px; overflow: hidden; }
.vlm-photo figcaption { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 7px; }
.vlm-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 14px 0; }
.vlm-gallery .vlm-photo svg { aspect-ratio: 3 / 2; background: var(--surface-2); }
.vlm-gallery .vlm-selected { outline: 2px solid var(--text); outline-offset: 5px; border-radius: 4px; }
.vlm-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.vlm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vlm-legend i { display: inline-block; width: 19px; height: 2px; }
.vlm-grid-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.vlm-masses text { font-size: 18px; }
.vlm-grid-pair .vlm-masses text { font-size: 24px; }
.vlm-plot .dl-plot text { font-size: 18px; }
.vlm-token-strip { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0; }
.vlm-token-strip > span { padding: 6px 9px; border: 1px solid var(--border); border-radius: 4px; font: 13px/1.6 ui-monospace,monospace; }
.vlm-token-strip .vlm-target { border-color: var(--text); background: var(--surface-2); font-weight: 650; }
.vlm-number { font-variant-numeric: tabular-nums; }
.vlm-photo [role=button] { cursor: pointer; }
.vlm-photo [role=button]:focus { outline: 3px solid #ffbf47; outline-offset: -3px; }
@media (max-width: 600px) {
  .vlm-masses text, .vlm-grid-pair .vlm-masses text, .vlm-plot .dl-plot text { font-size: 26px; }
  .vlm-grid-pair { grid-template-columns: minmax(0,1fr); }
  .vlm-gallery { gap: 8px; }
  .vlm-gallery .vlm-photo figcaption { font-size: 11px; }
  .vlm-legend { gap: 9px; }
}
