html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  color: #e2e8f0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .24);
  background: rgba(2, 6, 23, .92);
}

.viewer-back-link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: .15em;
  font-weight: 600;
}

.viewer-hint {
  margin: 0;
  font-size: .92rem;
  color: #cbd5e1;
}

.viewer-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.viewer-page-title {
  margin: .5rem 1rem 0;
  font-size: .9rem;
  font-weight: 500;
  color: #94a3b8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#viewer {
  width: 100%;
  height: 100%;
}

#viewer-error {
  display: none;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid rgba(248, 113, 113, .6);
  border-radius: .75rem;
  background: rgba(127, 29, 29, .22);
  color: #fecaca;
}

#viewer-error[data-visible="true"] {
  display: block;
}
