.viewer-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.viewer-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 66px; }
.viewer-header .brand { display: flex; min-height: 44px; }
.viewer-back { display: flex; align-items: center; min-height: 44px; color: var(--link); font-size: .9375rem; font-weight: 680; }
.viewer-back:hover { text-decoration: underline; text-underline-offset: .2em; }
.viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: max(360px, calc(100svh - 67px));
  justify-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding-block: 18px 24px;
}
.viewer-title { text-align: center; }
.viewer-device { color: var(--muted); font-size: .875rem; margin-bottom: 6px; }
.viewer h1 { font-size: clamp(1.5rem, 3vw, 2.45rem); text-wrap: balance; }
.viewer-picture { width: 100%; min-height: 0; }
.viewer-picture img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .viewer-header .brand img { width: 119px; }
  .viewer-header-inner { min-height: 60px; }
  .viewer-back { font-size: .875rem; }
  .viewer { height: max(360px, calc(100svh - 61px)); }
}
