/* The one photo viewer (components/viewer.js; A3.3, FR-016): the photo, the zoom button, the count dots, the count with the
   previous and next buttons. Every value is a token; the parts keep a gap, nothing touches the text beside it. */
.msheet .viewer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-gap);
}

.msheet .vslide {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-thumb);
  background-color: var(--app-raise);
  overflow: hidden;
  touch-action: pan-y;
}

.msheet .vslide.zoomed {
  touch-action: none;
}

.msheet .vslide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
  user-select: none;
}

/* the two round-cornered square buttons of the viewer: the zoom and the previous and next */
.msheet .vzoom,
.msheet .vnav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--app-line-strong);
  border-radius: var(--radius-thumb);
  background-color: var(--app-surface);
  color: var(--app-ink);
  cursor: pointer;
}

.msheet .vzoom {
  position: absolute;
  inset-block-start: var(--spacing-sm);
  inset-inline-end: var(--spacing-sm);
}

.msheet .vzoom[aria-pressed="true"] {
  border-color: var(--app-btn);
  background-color: var(--app-btn);
  color: var(--app-btn-ink);
}

.msheet .vzoom svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.msheet .vdots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.msheet .vdots i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--app-line-strong);
}

.msheet .vdots i.on {
  background-color: var(--app-btn);
}

.msheet .vnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.msheet .vnav .vc {
  color: var(--app-ink-soft);
  font-size: var(--font-size-title);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.msheet .vnav button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.msheet .vnav .vprev svg {
  transform: scaleX(-1);
}

.msheet .vnav button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* under a web photo (viewer.js openWebViewer; the approved .vseg .vverd .vmeta): the three uses, the verdict, the explainer's (!).
   The sheet's body keeps a gap between them; the box with the verdict keeps its own words a gap apart. */
.msheet .vseg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.msheet .vseg button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 var(--spacing-sm);
  border: 1px solid var(--app-line-strong);
  border-radius: var(--radius-thumb);
  background-color: var(--app-surface);
  color: var(--app-ink);
  font: inherit;
  font-size: var(--font-size-meta);
  font-weight: 700;
  cursor: pointer;
}

.msheet .vseg button.on {
  border-color: var(--app-btn);
  background-color: var(--app-btn);
  color: var(--app-btn-ink);
}

.msheet .vseg button:disabled {
  opacity: 0.4;
  cursor: default;
}

.msheet .vverd {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-row);
  border: 1px solid var(--app-line-strong);
  border-radius: var(--radius-thumb);
  font-size: var(--font-size-title);
  line-height: 1.5;
}

.msheet .vverd b {
  font-weight: 800;
}

.msheet .vverd.ok b {
  color: var(--app-btn);
}

.msheet .vverd.warn b {
  color: var(--app-note-ink);
}

.msheet .vverd span:last-child {
  color: var(--app-ink-soft);
}

.msheet .vmeta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--app-ink-soft);
  font-size: var(--font-size-title);
}

@media (prefers-reduced-motion: reduce) {
  .msheet .vslide img {
    transition: none;
  }
}
