:root {
  color: #102d55;
  background: #e8edf3;
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body { background: #e8edf3; }

.viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  color: #fff;
  background: rgba(5, 34, 72, .96);
  box-shadow: 0 2px 10px rgba(3, 20, 45, .18);
  font-size: 13px;
}

.viewer-toolbar strong { font-size: 14px; }
.viewer-toolbar span { color: rgba(255, 255, 255, .76); }

.pdf-pages {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
}

.pdf-page {
  width: min(100%, 1180px);
  margin: 0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(12, 36, 66, .16);
}

.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pdf-error {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: calc(100vh - 48px);
  padding: 24px;
  text-align: center;
}

.pdf-error[hidden] { display: none; }
.pdf-error a { color: #064c98; font-weight: 700; }

@media (max-width: 640px) {
  .viewer-toolbar { min-height: 44px; padding-block: 8px; }
  .pdf-pages { gap: 8px; padding: 8px; }
  .pdf-page { box-shadow: 0 2px 10px rgba(12, 36, 66, .14); }
}
