.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.view-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.view-meta .v-title {
  font-family: 'Mirador', 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.view-meta .v-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.view-meta .v-sub strong {
  color: var(--brand-d);
}

.progress-bar-wrap {
  width: 220px;
  background: var(--border);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
  display: none;
}

.progress-bar-wrap.show {
  display: block;
}

.progress-bar {
  height: 100%;
  background: var(--brand);
  width: 0%;
  transition: width 0.3s;
}

.nl-pages-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.nl-page {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  max-height: 1123px;
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  font-family: 'Karla', sans-serif;
  flex-shrink: 0;
}

.view-fields {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 794px;
  align-self: center;
}

.view-fields h3 {
  font-family: 'Mirador', 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.view-field {
  margin-bottom: 14px;
}

.view-field-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 4px;
}

.view-field-val {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.6;
  background: var(--warm);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.view-field-val.empty {
  color: var(--muted);
  font-style: italic;
}

.view-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.view-photos a {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--cream);
}

.view-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.view-photos a:hover img {
  transform: scale(1.04);
}

#capture-area {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 880px) {
  .nl-pages-wrap .nl-page {
    transform: scale(0.7);
    transform-origin: top center;
    margin-bottom: -340px;
  }
  .view-fields {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .nl-pages-wrap .nl-page {
    transform: scale(0.45);
    margin-bottom: -620px;
  }
}

#capture-area .nl-page {
  transform: none !important;
  margin-bottom: 0 !important;
}
