.pdf-js-shell {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.96), rgba(13, 18, 31, 0.96)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 36%);
  border: 0;
  border-radius: 0;
  box-shadow: var(--page-dark-shadow);
}

/*
 * PDF 로드 후(.is-empty 아님): workbench .panel + 미리보기 + finder 래퍼의 누적 여백 완화.
 * 빈 드롭존 화면은 기본 패딩·여백 유지.
 */
body.workbench-page #pdfShell.panel.pdf-js-shell:not(.is-empty) {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-preview {
  padding: 8px 10px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-toolbar {
  margin-bottom: 10px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-dropzone {
  padding: 6px 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder {
  padding: 8px 10px;
  margin-bottom: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-part:not(.pdf-js-finder-part-images) {
  padding: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-part-agent {
  padding: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-part + .pdf-js-finder-part {
  margin-top: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-head {
  margin-bottom: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-controls {
  gap: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-finder-actions {
  gap: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-main-action {
  margin-top: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-share-panel {
  padding: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-share-panel-grid {
  gap: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-share-field {
  padding: 6px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-share-expanded {
  gap: 8px;
  margin-top: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-share-expanded-panel {
  padding: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-scroll {
  max-height: calc(100vh - 80px);
}

.pdf-js-shell:not(.is-empty) .pdf-js-pages {
  gap: 12px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-page {
  padding: 8px;
}

.pdf-js-shell:not(.is-empty) .pdf-js-filter-panel {
  padding: 6px;
  margin-bottom: 6px;
}

.pdf-js-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.pdf-js-dropzone {
  border: 1px dashed rgba(148, 163, 184, 0.28);
  padding: 12px;
  align-items: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pdf-js-dropzone.is-drag-over {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) inset;
  transform: translateY(-1px);
}

.pdf-js-dropzone:hover {
  border-color: rgba(148, 163, 184, 0.46);
}

.pdf-js-shell.is-empty .pdf-js-dropzone {
  min-height: 280px;
  border-width: 2px;
  border-color: rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.22), transparent 42%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 40%),
    rgba(7, 10, 14, 0.42);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px 22px;
  cursor: pointer;
}

.pdf-js-shell.is-empty .pdf-js-dropzone:hover,
.pdf-js-shell.is-empty .pdf-js-dropzone:focus-within,
.pdf-js-shell.is-empty .pdf-js-dropzone.is-drag-over {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.18);
}

.pdf-js-dropzone-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.pdf-js-shell.is-empty .pdf-js-dropzone-copy {
  width: 100%;
  max-width: 560px;
  justify-items: center;
}

.pdf-js-dropzone-desc {
  display: none;
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.6;
}

.pdf-js-shell.is-empty .pdf-js-dropzone-desc {
  display: block;
}

.pdf-js-shell.is-empty .pdf-js-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
}

@media (min-width: 769px) {
  .pdf-js-shell.is-empty .pdf-js-dropzone-copy {
    max-width: 920px;
  }

  .pdf-js-shell.is-empty .pdf-js-title {
    white-space: nowrap;
  }
}

.pdf-js-shell.is-empty .pdf-js-status {
  min-height: 1.3em;
  font-size: 0.9rem;
  color: #93c5fd;
}

.pdf-js-shell.is-empty .pdf-js-actions {
  justify-content: center;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pdf-js-eyebrow {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdf-js-title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  word-break: break-word;
}

.pdf-js-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.70rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 상태 줄은 기본 숨김(디버깅 시 hidden 제거). 다른 display 규칙이 이기지 않도록 함 */
#pdfStatus[hidden],
.pdf-js-status[hidden] {
  display: none !important;
}

.pdf-js-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-js-actions .btn,
.pdf-js-highlight-menu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pdf-js-actions .btn:hover,
.pdf-js-highlight-menu .btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.pdf-js-actions .btn:active,
.pdf-js-highlight-menu .btn:active {
  transform: translateY(0);
}

.pdf-js-actions .btn:disabled,
.pdf-js-highlight-menu .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#pickPdfBtn {
  min-height: 0;
  padding: 8px 12px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

#pickPdfBtn:hover,
#pickPdfBtn:focus-visible {
  border: 0;
  background: #3b82f6;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36);
}

.pdf-js-sub-action .btn.pdf-js-making-btn,
.pdf-js-main-action .btn.pdf-js-making-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  border-color: #dc2626;
  color: #fff7f7;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.pdf-js-sub-action .btn.pdf-js-making-btn::before,
.pdf-js-main-action .btn.pdf-js-making-btn::before {
  content: "";
  width: 19px;
  height: 19px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 19px 19px;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.2L6.9 5.3 15.2 10.6 21.2 14.4'/%3E%3Cpath d='M2.4 10.9L6.1 11 14.9 14.2 21.2 14.4'/%3E%3Cpath d='M14.9 14.2L15.8 13.2 16.8 12.1'/%3E%3C/g%3E%3C/svg%3E");
}

.pdf-js-sub-action .btn.pdf-js-making-btn:hover,
.pdf-js-main-action .btn.pdf-js-making-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff7f7;
}

.pdf-js-sub-action .btn.pdf-js-making-btn.pdf-js-making-on,
.pdf-js-main-action .btn.pdf-js-making-btn.pdf-js-making-on {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.45), 0 10px 24px rgba(239, 68, 68, 0.42);
  animation: pdf-making-on-pulse 1.2s ease-in-out infinite;
}

.pdf-js-sub-action .btn.pdf-js-making-btn.pdf-js-making-on:hover,
.pdf-js-main-action .btn.pdf-js-making-btn.pdf-js-making-on:hover {
  background: #f87171;
  border-color: #fca5a5;
}

.pdf-js-sub-action .btn.pdf-js-making-btn:active,
.pdf-js-main-action .btn.pdf-js-making-btn:active {
  transform: scale(0.97);
}

@keyframes pdf-making-on-pulse {
  0% {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.45), 0 10px 24px rgba(239, 68, 68, 0.42);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.28), 0 12px 28px rgba(239, 68, 68, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.45), 0 10px 24px rgba(239, 68, 68, 0.42);
  }
}

.pdf-js-sub-action .btn.pdf-js-clear-btn {
  background: #16a34a;
  border-color: #16a34a;
  color: #f0fdf4;
}

.pdf-js-sub-action .btn.pdf-js-clear-btn:hover {
  background: #15803d;
  border-color: #15803d;
  color: #f0fdf4;
}

.pdf-js-finder-actions #scanKeywordsBtn.btn.primary {
  background: #6b7280;
  border-color: #6b7280;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.26);
}

.pdf-js-finder-actions #scanKeywordsBtn.btn.primary:hover {
  background: #4b5563;
  border-color: #4b5563;
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.34);
}

.pdf-js-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.pdf-js-batch-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.pdf-js-batch-panel[hidden] {
  display: none;
}

.pdf-js-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pdf-js-batch-head strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.pdf-js-batch-summary,
.pdf-js-batch-policy {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.82rem;
}

.pdf-js-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pdf-js-batch-actions .btn,
.pdf-js-batch-row-actions .btn,
.pdf-js-batch-seal-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(45, 212, 191, 0.42) !important;
  background: rgba(15, 118, 110, 0.28) !important;
  color: #ccfbf1 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none !important;
}

.pdf-js-batch-actions .btn:hover,
.pdf-js-batch-actions .btn:focus-visible,
.pdf-js-batch-row-actions .btn:hover,
.pdf-js-batch-row-actions .btn:focus-visible,
.pdf-js-batch-seal-actions .btn:hover,
.pdf-js-batch-seal-actions .btn:focus-visible {
  border-color: rgba(94, 234, 212, 0.78) !important;
  background: rgba(13, 148, 136, 0.54) !important;
  color: #f0fdfa !important;
  outline: none;
}

.pdf-js-batch-actions .pdf-js-batch-icon-btn {
  width: 30px;
  padding: 0 !important;
  flex: 0 0 30px;
}

.pdf-js-batch-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.pdf-js-batch-actions #pdfBatchReinspectAllBtn {
  border-color: rgba(251, 191, 36, 0.58) !important;
  background: rgba(180, 83, 9, 0.34) !important;
  color: #fffbeb !important;
}

.pdf-js-batch-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pdf-js-batch-panel.is-collapsed .pdf-js-batch-policy,
.pdf-js-batch-panel.is-collapsed .pdf-js-batch-list,
.pdf-js-batch-panel.is-collapsed .pdf-js-batch-seal-actions {
  display: none;
}

.pdf-js-batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.pdf-js-batch-row.is-active {
  border-color: rgba(45, 212, 191, 0.72);
  background: rgba(20, 184, 166, 0.12);
}

.pdf-js-batch-row.is-running {
  border-color: rgba(56, 189, 248, 0.82);
  background: rgba(8, 47, 73, 0.46);
}

.pdf-js-batch-name {
  min-width: 0;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-js-batch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.76rem;
  line-height: 1.25;
}

.pdf-js-batch-progress {
  color: #7dd3fc;
  font-weight: 650;
}

.pdf-js-batch-ai-skipped {
  color: #facc15;
  font-weight: 500;
}

.pdf-js-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  background: rgba(51, 65, 85, 0.72);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.pdf-js-batch-status[data-status="inspecting"],
.pdf-js-batch-status[data-status="queued_for_inspection"] {
  background: rgba(14, 116, 144, 0.34);
  color: #cffafe;
}

.pdf-js-batch-status[data-status="sealed"],
.pdf-js-batch-status[data-status="no_seal_needed"] {
  background: rgba(20, 184, 166, 0.22);
  color: #ccfbf1;
}

.pdf-js-batch-status[data-status="review_required"],
.pdf-js-batch-status[data-status="approved_for_seal"] {
  background: rgba(234, 179, 8, 0.18);
  color: #fef3c7;
}

.pdf-js-batch-status[data-status="failed"],
.pdf-js-batch-status[data-status="expired"] {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.pdf-js-batch-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.pdf-js-batch-row-actions .btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.92rem !important;
}

.pdf-js-batch-actions .btn.small,
.pdf-js-batch-seal-actions .btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.92rem !important;
}

.pdf-js-batch-row-actions .btn[data-pdf-batch-action="open"] {
  border-color: rgba(125, 211, 252, 0.48) !important;
  background: rgba(14, 116, 144, 0.28) !important;
  color: #e0f2fe !important;
}

.pdf-js-batch-row-actions .btn[data-pdf-batch-action="reinspect"] {
  border-color: rgba(251, 191, 36, 0.58) !important;
  background: rgba(180, 83, 9, 0.34) !important;
  color: #fffbeb !important;
}

.pdf-js-batch-seal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.pdf-js-batch-seal-actions .btn {
  min-width: 104px;
  border-color: rgba(251, 146, 60, 0.72) !important;
  background: rgba(234, 88, 12, 0.58) !important;
  color: #fff7ed !important;
}

.pdf-js-finder {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(7, 12, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.pdf-js-finder-part {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(2, 6, 23, 0.42);
  padding: 10px;
}

.pdf-js-finder-part + .pdf-js-finder-part {
  margin-top: 12px;
}

.pdf-js-finder-part-keyword {
  border-color: rgba(148, 163, 184, 0.32);
}

.pdf-js-finder-part-agent {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(3, 20, 27, 0.58);
}

.pdf-js-agent-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pdf-js-finder-part-images {
  border-color: rgba(100, 116, 139, 0.34);
}

.pdf-js-finder-part-images {
  border: 0;
  background: transparent;
  padding: 0;
}

.pdf-js-finder-part-policy {
  border-color: rgba(56, 189, 248, 0.34);
}

.pdf-js-finder-head {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.pdf-js-finder-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.pdf-js-finder-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.pdf-js-finder-head-actions .btn {
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.pdf-js-finder-head-actions #clearKeywordInputBtn {
  border: 1px solid #64748b;
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
}

.pdf-js-finder-head-actions #clearKeywordInputBtn:hover,
.pdf-js-finder-head-actions #clearKeywordInputBtn:focus-visible {
  border-color: #94a3b8;
  background: #475569;
  color: #ffffff;
}

.pdf-js-finder-head-actions #scanKeywordsBtn.btn.primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ecfeff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.32);
}

.pdf-js-finder-head-actions #scanKeywordsBtn.btn.primary:hover,
.pdf-js-finder-head-actions #scanKeywordsBtn.btn.primary:focus-visible {
  border-color: #0d9488;
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.pdf-js-filter-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdf-js-icon-btn {
  min-width: 30px;
  min-height: 28px;
  padding: 2px 8px;
  font-size: 0.86rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdf-js-icon-btn .pdf-js-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.pdf-js-icon-btn.is-active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.72);
}

#filterAiSuggestBtn.pdf-js-icon-btn {
  position: relative;
  min-width: 34px;
  width: 34px;
  padding: 0;
  background: #1d4ed8;
  border: 1px solid #2563eb;
  color: #dbeafe;
  font-weight: 300;
}

.pdf-js-filter-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  background: #0f766e;
  color: #ecfeff;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.pdf-js-filter-main-btn:hover {
  background: #0d9488;
  color: #ecfdf5;
  box-shadow: none;
}

.pdf-js-filter-main-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

#filterSuggestBtn.pdf-js-filter-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 12px;
  border: 0 !important;
  background: #0f766e !important;
  color: #ecfeff !important;
  font-size: 0.875rem !important;
  font-weight: 300 !important;
  letter-spacing: 0;
  line-height: normal;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.26) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#filterSuggestBtn.pdf-js-filter-main-btn:hover,
#filterSuggestBtn.pdf-js-filter-main-btn:focus-visible {
  border: 0 !important;
  background: #0d9488 !important;
  color: #ecfdf5 !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.34) !important;
}

#filterSuggestBtn.pdf-js-filter-main-btn:disabled {
  border: 0 !important;
  background: #cbd5e1 !important;
  color: #64748b !important;
  opacity: 0.46;
  box-shadow: none !important;
}

#filterAiSuggestBtn.pdf-js-icon-btn:hover {
  background: #2563eb;
  border-color: #60a5fa;
  color: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.38);
}

#filterAiSuggestBtn.pdf-js-icon-btn.is-running {
  opacity: 0.72;
  cursor: wait;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}

#filterAiSuggestBtn.pdf-js-icon-btn.is-running::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(219, 234, 254, 0.34);
  border-top-color: #ffffff;
  border-radius: 0;
  animation: pdfAiSpin 0.8s linear infinite;
}

@keyframes pdfAiSpin {
  to {
    transform: rotate(360deg);
  }
}

.pdf-agent-inspection-modal .pdf-agent-inspection-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #2b3a4c;
  border-radius: 0;
  background: #101820;
  color: #dce8f4;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-agent-inspection-eyebrow {
  margin: 0 0 8px;
  color: #8fa5bd;
  font-size: 0.74rem;
  line-height: 1.2;
}

.pdf-agent-inspection-file {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: #0a121b;
  color: #f0d27a;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-agent-inspection-policy {
  display: block;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(8, 47, 73, 0.38);
  color: #dbeafe;
  min-width: 0;
}

.pdf-agent-inspection-policy[hidden] {
  display: none !important;
}

.pdf-agent-inspection-policy span {
  display: block;
  margin: 0 0 4px;
  color: #93c5fd;
  font-size: 0.72rem;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-agent-inspection-policy strong {
  display: block;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: normal;
  word-break: normal;
}

.pdf-agent-inspection-policy em {
  display: block;
  color: #bae6fd;
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-agent-inspection-options {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.pdf-agent-inspection-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #26394f;
  background: #0c1622;
  padding: 10px 11px;
  color: #d5e3f2;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pdf-agent-inspection-option:has(input:checked) {
  border-color: #3c7e65;
  background: #10251f;
}

.pdf-agent-inspection-option input {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid #53657b;
  background: #07111c;
  display: grid;
  place-items: center;
}

.pdf-agent-inspection-option input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}

.pdf-agent-inspection-option input:checked {
  border-color: #5ee2a4;
  background: #1f7a55;
  box-shadow: 0 0 0 2px rgba(46, 188, 127, 0.2);
}

.pdf-agent-inspection-option input:checked::after {
  border-left-color: #ffffff;
  border-bottom-color: #ffffff;
}

.pdf-agent-inspection-option input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.pdf-agent-inspection-option strong {
  display: block;
  margin-bottom: 2px;
  color: #f0f6ff;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}

.pdf-agent-inspection-option span span {
  display: block;
  color: #9fb1c7;
  font-size: 0.78rem;
  line-height: 1.4;
}

.pdf-agent-inspection-notice {
  display: grid;
  gap: 4px;
  position: relative;
  margin: 2px 0 0;
  padding: 0 0 0 10px;
}

.pdf-agent-inspection-notice::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  background: #2f88ff;
}

.pdf-agent-inspection-notice p {
  margin: 0;
  color: #a9bdd4;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pdf-ai-progress-modal {
  z-index: 10080;
}

.pdf-ai-progress-modal .pdf-ai-progress-backdrop {
  cursor: wait;
}

.pdf-ai-progress-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 24px 22px;
  border: 1px solid #315071;
  border-radius: 0;
  background: #101820;
  color: #e6f1ff;
  text-align: center;
  cursor: wait;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-ai-progress-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-width: 3px;
}

.pdf-ai-progress-dialog .picseal-confirm-title {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.pdf-ai-progress-dialog .picseal-confirm-message {
  margin: 0;
  color: #b8c7d8;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
}

body.pdf-ai-progress-lock {
  cursor: wait;
}

.pdf-js-filter-close-btn {
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1;
  border-color: rgba(248, 113, 113, 0.58) !important;
  background: rgba(127, 29, 29, 0.42) !important;
  color: #ffe4e6 !important;
}

.pdf-js-filter-close-btn:hover,
.pdf-js-filter-close-btn:focus-visible {
  border-color: rgba(252, 165, 165, 0.78) !important;
  background: rgba(153, 27, 27, 0.62) !important;
  color: #fff1f2 !important;
}

.pdf-js-filter-panel {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.56);
}

.pdf-js-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pdf-js-filter-panel-head strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.pdf-js-filter-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.pdf-js-filter-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(251, 191, 36, 0.88);
  border-radius: 0;
  background: rgba(250, 204, 21, 0.08);
  color: rgba(255, 248, 220, 0.92);
  font-size: 0.74rem;
  line-height: 1.5;
}

.pdf-js-filter-category-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
}

.pdf-js-filter-category-item input {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #60a5fa;
}

.pdf-js-finder-head-right .btn.small {
  padding: 4px 8px;
  min-height: 28px;
  flex: 0 0 auto;
}

#finderToggleBtn {
  margin-left: auto;
  order: 99;
}

#finderToggleBtn {
  background: #374151;
  border-color: #374151;
  color: #f9fafb;
}

#finderToggleBtn:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #f9fafb;
}

#imageSelectAllBtn,
#imageClearSelBtn,
#imageGalleryToggleBtn,
#pdfShareOptionCloseBtn,
#pdfSpotRefreshBtn {
  background: #334155;
  border-color: #475569;
  color: #f8fafc;
}

#imageSelectAllBtn:hover,
#imageClearSelBtn:hover,
#imageGalleryToggleBtn:hover,
#pdfShareOptionCloseBtn:hover,
#pdfSpotRefreshBtn:hover {
  background: #475569;
  border-color: #64748b;
  color: #ffffff;
}

#pdfSpotRefreshBtn.pdf-js-spot-change-btn {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(71, 85, 105, 0.88);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 400;
}

#pdfSpotRefreshBtn.pdf-js-spot-change-btn:hover,
#pdfSpotRefreshBtn.pdf-js-spot-change-btn:focus-visible {
  background: rgba(51, 65, 85, 0.96);
  border-color: rgba(100, 116, 139, 0.96);
  color: #ffffff;
}

.pdf-js-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  white-space: nowrap;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-js-finder-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-js-finder-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.pdf-js-ai-result-panel {
  margin-top: 12px;
  padding: 10px 0 0 12px;
  border-left: 3px solid rgba(96, 165, 250, 0.92);
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-js-ai-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pdf-js-ai-result-head strong {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 500;
}

.pdf-js-ai-result-summary {
  color: #93c5fd;
  font-size: 0.74rem;
  white-space: nowrap;
}

.pdf-js-ai-result-notice {
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-size: 0.74rem;
  line-height: 1.45;
}

.pdf-js-ai-result-notice--danger {
  border-color: rgba(248, 113, 113, 0.78);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.pdf-js-ai-result-notice[hidden] {
  display: none !important;
}

.pdf-js-ai-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 8px 0 0;
  padding: 7px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #b8c7d8;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.45;
}

.pdf-js-ai-context-meta[hidden] {
  display: none !important;
}

.pdf-js-ai-context-meta-status {
  color: #93c5fd;
  font-weight: 300;
}

.pdf-js-ai-context-meta-name strong,
.pdf-js-ai-context-meta-supplement strong {
  color: #e0f2fe;
  font-weight: 300;
}

.pdf-js-ai-context-meta-label {
  font-weight: 300;
}

.pdf-js-ai-context-meta-name code {
  margin-left: 4px;
  padding: 1px 4px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #bfdbfe;
  font-size: 0.66rem;
  font-weight: 200;
}

.pdf-js-ai-context-meta-note {
  color: #8fb4d8;
}

.pdf-js-ai-result-table-wrap {
  max-height: min(52vh, 520px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.pdf-js-ai-result-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(229, 247, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 400;
}

.pdf-js-ai-result-table th,
.pdf-js-ai-result-table td {
  padding: 8px 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
  line-height: 1.45;
}

.pdf-js-ai-result-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0b1520;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 400;
}

.pdf-js-ai-result-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pdf-js-ai-result-select-all input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #22c55e;
  cursor: pointer;
}

.pdf-js-ai-result-table tr.is-unselected {
  opacity: 0.52;
}

.pdf-js-ai-result-table tr.is-locked {
  opacity: 0.74;
}

.pdf-js-ai-result-found {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
}

.pdf-js-ai-result-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.pdf-js-ai-result-select input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #22c55e;
  cursor: pointer;
}

.pdf-js-ai-result-select input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pdf-js-ai-result-found-text {
  min-width: 0;
}

.pdf-js-ai-result-term {
  display: block;
  color: #facc15;
  font-weight: 400;
  letter-spacing: 0;
}

.pdf-js-ai-result-target,
.pdf-js-ai-result-page {
  display: block;
  margin-top: 3px;
  color: #5eead4;
  font-size: 0.68rem;
  line-height: 1.3;
}

.pdf-js-ai-result-page {
  color: #bfdbfe;
}

.pdf-js-ai-result-source {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 0.66rem;
  line-height: 1;
  vertical-align: baseline;
}

.pdf-js-ai-result-source--builtin {
  border-color: rgba(45, 212, 191, 0.5);
  color: #99f6e4;
}

.pdf-js-ai-result-source--ai {
  border-color: rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
}

.pdf-js-ai-result-reason-text {
  color: #dbeafe;
}

.pdf-js-ai-result-policy {
  display: block;
  margin-top: 4px;
  color: #93c5fd;
  font-size: 0.7rem;
  line-height: 1.35;
}

.pdf-js-ai-result-policy strong {
  display: inline-block;
  margin-right: 6px;
  color: #bfdbfe;
  font-weight: 600;
}

.pdf-js-ai-result-severity {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 0;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.pdf-js-ai-result-severity--high {
  background: #f87171;
}

.pdf-js-ai-result-severity--medium {
  background: #fbbf24;
}

.pdf-js-ai-result-severity--low {
  background: #34d399;
}

.pdf-js-ai-result-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 26px;
  padding: 6px 8px;
  border: 1px solid #34465b;
  background: #101a27;
  color: #b8c7d8;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1;
}

.pdf-js-ai-result-mode--high {
  border-color: #ef6a5b;
}

.pdf-js-ai-result-mode--medium {
  border-color: #e3b341;
}

.pdf-js-ai-result-mode--low {
  border-color: #48c48b;
}

.pdf-js-ai-result-mode-group {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 86px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid #24364b;
  background: #0b1520;
}

.pdf-js-ai-result-mode-group--high {
  border-color: #ef6a5b;
}

.pdf-js-ai-result-mode-group--medium {
  border-color: #e3b341;
}

.pdf-js-ai-result-mode-group--low {
  border-color: #48c48b;
}

.pdf-js-ai-result-mode-group button {
  min-width: 0;
  min-height: 20px;
  padding: 4px 4px;
  border: 0;
  background: transparent;
  color: #9fb1c7;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pdf-js-ai-result-mode-group button.is-active {
  background: #1f7a55;
  color: #ffffff;
}

.pdf-js-ai-result-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-size: 0.84rem;
  line-height: 1.5;
}

.pdf-js-ai-running-spinner {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(191, 219, 254, 0.22);
  border-top-color: #60a5fa;
  border-radius: 0;
  animation: pdfAiSpin 0.8s linear infinite;
}

.pdf-js-ai-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.pdf-js-ai-result-actions .btn {
  min-width: 116px;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  background: #101a27;
  color: #c7d7e8;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

.pdf-js-ai-result-actions .pdf-js-ai-result-close-btn {
  min-width: 42px;
  width: 42px;
  padding: 0;
  background: #334155;
  color: #e5eef9;
}

.pdf-js-ai-result-actions .btn.primary {
  min-width: 142px;
  background: #0f6fb5;
  color: #f0f9ff;
}

#pdfAiResultApplyBtn.pdf-js-ai-result-apply-btn {
  font-size: 1rem !important;
  font-weight: 400 !important;
}

.pdf-js-ai-result-actions .btn:hover,
.pdf-js-ai-result-actions .btn:focus-visible {
  background: #475569;
}

.pdf-js-ai-result-actions .btn.primary:hover,
.pdf-js-ai-result-actions .btn.primary:focus-visible {
  background: #0b5f9d;
}

.pdf-js-finder.is-compact #pdfFinderSummary {
  display: none;
}

.pdf-js-finder.is-compact .pdf-js-finder-part-keyword--toolbar > :not(.pdf-js-finder-head) {
  display: none !important;
}

.pdf-js-finder.is-compact .pdf-js-finder-part-keyword--toolbar .pdf-js-finder-head {
  margin-bottom: 0;
}

.pdf-js-finder.is-compact .pdf-js-keyword-input {
  min-height: 3.2em;
  max-height: 3.2em;
  resize: none;
}

.pdf-js-keyword-input {
  width: 100%;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
  resize: vertical;
}

.pdf-js-finder-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.pdf-js-main-action {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Ensure button labels are vertically centered in the PDF main actions row. */
.pdf-js-main-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 34px;
  padding: 0 14px;
  line-height: 1;
  font-size: 0.84rem;
}

.pdf-js-main-action .btn.pdf-docx-action {
  min-height: 0;
  padding: 8px 12px;
  border: 0;
  line-height: normal;
  font-size: 0.875rem !important;
  font-weight: 300 !important;
}

.pdf-js-main-action .btn.pdf-docx-action:disabled {
  border: 0 !important;
  background: #cbd5e1 !important;
  color: #64748b !important;
  opacity: 0.46;
  box-shadow: none !important;
  transform: none;
}

#pdfClearSelectionBtn:not(:disabled) {
  background: #475569;
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

#pdfClearSelectionBtn:not(:disabled):hover,
#pdfClearSelectionBtn:not(:disabled):focus-visible {
  background: #64748b;
  color: #ffffff;
}

.pdf-js-page-seal-btn {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ecfeff !important;
}

.pdf-js-page-seal-btn:hover,
.pdf-js-page-seal-btn:focus-visible {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #f0fdfa !important;
}

.pdf-js-main-action .btn.pdf-js-page-seal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pdf-js-page-seal-btn:disabled:hover,
.pdf-js-page-seal-btn:disabled:focus-visible {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ecfeff !important;
}

.pdf-js-page-seal-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(88vh, 920px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 42%);
  color: #f8fafc;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.62);
}

.pdf-js-page-seal-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
}

.pdf-js-page-seal-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pdf-js-page-seal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pdf-js-page-seal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.pdf-js-page-seal-summary {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pdf-js-page-seal-note {
  margin: 8px 0 0;
  color: rgba(251, 191, 36, 0.92);
  font-size: 0.76rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pdf-js-page-seal-note-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.pdf-js-page-seal-note-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pdf-js-page-seal-close {
  min-width: 30px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-color: rgba(248, 113, 113, 0.52) !important;
  background: rgba(127, 29, 29, 0.34) !important;
  color: #ffe4e6 !important;
}

.pdf-js-page-seal-section {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.48);
}

.pdf-js-page-seal-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.pdf-js-page-seal-mode-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-js-page-seal-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  cursor: pointer;
}

.pdf-js-page-seal-mode input {
  margin: 0;
  accent-color: #14b8a6;
}

.pdf-js-page-seal-apply {
  background: var(--btn-seal-bg) !important;
  border-color: var(--btn-seal-border) !important;
  color: #fff7f7 !important;
}

.pdf-js-page-seal-apply:hover,
.pdf-js-page-seal-apply:focus-visible {
  background: var(--btn-seal-hover-bg) !important;
  border-color: var(--btn-seal-hover-border) !important;
}

.pdf-js-page-seal-section-bottom {
  min-height: 240px;
  max-height: min(56vh, 620px);
  overflow: auto;
  padding: 14px;
}

.pdf-js-page-seal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.pdf-js-page-seal-thumb {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.pdf-js-page-seal-thumb:hover,
.pdf-js-page-seal-thumb:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
}

.pdf-js-page-seal-thumb.is-selected {
  border-color: rgba(45, 212, 191, 0.86);
  background: rgba(15, 118, 110, 0.22);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.32) inset;
}

.pdf-js-page-seal-thumb-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(51, 65, 85, 0.72), rgba(15, 23, 42, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, rgba(255, 255, 255, 0.01) 10px 20px);
}

.pdf-js-page-seal-thumb-img,
.pdf-js-page-seal-thumb-placeholder {
  width: 100%;
  height: 100%;
}

.pdf-js-page-seal-thumb-img {
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.pdf-js-page-seal-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.pdf-js-page-seal-thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
}

.pdf-js-page-seal-thumb-label {
  font-weight: 600;
}

.pdf-js-page-seal-thumb-state {
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.76rem;
}

.pdf-js-page-seal-thumb.is-selected .pdf-js-page-seal-thumb-state {
  color: #99f6e4;
}

.pdf-js-guide-replay-btn {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(248, 250, 252, 0.88) !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.pdf-js-guide-replay-btn:hover,
.pdf-js-guide-replay-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

.pdf-guide {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.pdf-guide[hidden] {
  display: none !important;
}

.pdf-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.34);
  pointer-events: auto;
}

.pdf-guide__spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 0;
  border: 1px solid rgba(250, 204, 21, 0.92);
  background: rgba(250, 204, 21, 0.08);
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.34),
    0 0 0 4px rgba(250, 204, 21, 0.18);
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.pdf-guide__card {
  position: fixed;
  left: 16px;
  top: 16px;
  width: min(248px, calc(100vw - 32px));
  padding: 12px 12px 10px;
  border-radius: 0;
  border: 1px solid rgba(250, 204, 21, 0.32);
  background: linear-gradient(180deg, rgba(18, 23, 37, 0.98), rgba(9, 14, 24, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  color: #f8fafc;
  pointer-events: auto;
}

.pdf-guide__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pdf-guide__step {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 0;
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pdf-guide__skip {
  border: 0;
  background: transparent;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.pdf-guide__skip:hover,
.pdf-guide__skip:focus-visible {
  color: #ffffff;
}

.pdf-guide__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.pdf-guide__message {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.9);
}

.pdf-guide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.pdf-guide__hint {
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.56);
}

.pdf-guide__next {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 0;
  background: rgba(250, 204, 21, 0.14);
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 300;
  cursor: pointer;
}

.pdf-guide__next:hover,
.pdf-guide__next:focus-visible {
  background: rgba(250, 204, 21, 0.24);
  color: #fff7c2;
}

body.pdf-guide-active {
  overflow: hidden;
}

body.pdf-guide-active .pdf-guide-target {
  position: relative;
  z-index: 1201;
}

.pdf-js-main-select {
  display: grid;
  gap: 6px;
  min-width: 180px;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.pdf-js-main-select select {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
}

label[for="pdfSealImageFormatSelect"],
label[for="pdfUnsealOutputModeSelect"] {
  display: none !important;
}

.pdf-js-spot-current {
  margin-top: 0;
  padding-top: 0;
  width: auto;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.pdf-js-sub-action {
  margin-top: 8px;
  padding-left: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.pdf-js-sub-action-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.pdf-js-image-gallery {
  margin-top: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.54);
}

.pdf-js-image-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pdf-js-image-gallery-head strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
}

.pdf-js-image-gallery-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pdf-js-image-gallery-actions .pdf-js-icon-only {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0;
  line-height: 0;
}

.pdf-js-image-gallery-actions .pdf-js-icon-only::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
}

#imageSelectAllBtn.pdf-js-icon-only::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f9fafb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='1.8'/%3E%3Cpath d='M7 9h10M7 12h10M7 15h6'/%3E%3C/g%3E%3C/svg%3E");
}

#imageClearSelBtn.pdf-js-icon-only::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f9fafb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='1.8'/%3E%3C/g%3E%3C/svg%3E");
}

#imageSelectAllBtn.pdf-js-icon-only {
  background: #334155 !important;
  border-color: #475569 !important;
}

#imageSelectAllBtn.pdf-js-icon-only:hover {
  background: #475569 !important;
  border-color: #64748b !important;
}

#imageClearSelBtn.pdf-js-icon-only {
  background: #334155 !important;
  border-color: #475569 !important;
}

#imageClearSelBtn.pdf-js-icon-only:hover {
  background: #475569 !important;
  border-color: #64748b !important;
}

#imageGalleryToggleBtn {
  margin-left: 20px;
}

.pdf-js-image-page-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
}

.pdf-js-image-gallery-list {
  display: block;
}

.pdf-js-image-gallery-note {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 300;
}

.pdf-js-image-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdf-js-image-card {
  flex: 0 0 auto;
  width: 150px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.pdf-js-image-card.is-selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.26) inset;
  background: rgba(34, 197, 94, 0.12);
}

.pdf-js-image-card.is-disabled {
  opacity: 0.58;
  filter: grayscale(0.25);
}

.pdf-js-image-thumb {
  width: 100%;
  height: 88px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.9);
}

.pdf-js-image-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.2;
}

.pdf-js-image-check {
  justify-self: end;
  width: 16px;
  height: 16px;
  margin: 0;
  pointer-events: none;
  accent-color: #22c55e;
}

.pdf-js-image-badge {
  justify-self: start;
  font-size: 0.66rem;
  line-height: 1;
  color: #111827;
  background: #fbbf24;
  border: 0;
  padding: 2px 4px;
  white-space: nowrap;
}

.pdf-js-main-action .btn.pdf-js-seal-btn {
  min-width: 0;
  border: 0 !important;
  background: var(--btn-seal-bg) !important;
  color: #fff !important;
  box-shadow: var(--btn-seal-shadow);
}

.pdf-js-main-action .btn.pdf-js-making-btn {
  min-width: 0;
  margin-right: auto;
}

.pdf-js-main-action .btn.pdf-js-seal-btn:hover {
  transform: translateY(-1px);
  border: 0 !important;
  background: var(--btn-seal-hover-bg) !important;
  box-shadow: var(--btn-seal-hover-shadow);
}

.pdf-js-main-action .btn.pdf-js-seal-btn:active {
  transform: translateY(0);
}

.pdf-js-main-action .btn.pdf-js-seal-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.pdf-js-main-action .btn.pdf-js-unseal-btn {
  min-width: 0;
  border: 0 !important;
  background: var(--btn-unseal-bg) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.pdf-js-main-action .btn.pdf-js-unseal-btn:hover {
  transform: translateY(-1px);
  border: 0 !important;
  background: var(--btn-unseal-hover-bg) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36);
}

.pdf-js-main-action .btn.pdf-js-unseal-btn:active {
  transform: translateY(0);
}

.pdf-js-main-action .btn.pdf-js-unseal-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.pdf-js-preview-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.pdf-js-preview-footer[hidden] {
  display: none !important;
}

.pdf-js-preview-footer .btn.pdf-js-trace-notice-btn {
  min-height: 32px !important;
  padding: 7px 14px !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  background: rgba(30, 64, 175, 0.72) !important;
  color: #eff6ff !important;
  font-size: 0.72rem !important;
  font-weight: 300 !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.28) !important;
}

.pdf-js-preview-footer .btn.pdf-js-trace-notice-btn:hover {
  border-color: rgba(191, 219, 254, 0.82) !important;
  background: rgba(37, 99, 235, 0.82) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34) !important;
}

.pdf-js-trace-modal .pdf-js-modal-dialog {
  width: min(92vw, 460px);
}

.pdf-js-trace-modal-body {
  color: rgba(219, 234, 254, 0.92);
  font-size: 0.84rem;
  line-height: 1.6;
}

.pdf-js-trace-modal-body p {
  margin: 0 0 7px;
}

.pdf-js-trace-modal-body p:last-child {
  margin-bottom: 0;
}

.pdf-js-trace-modal-body a {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdf-js-main-action .btn.pdf-js-save-btn {
  min-width: 0;
  border: 0 !important;
  background: #facc15 !important;
  color: #111827 !important;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.28);
}

.pdf-js-main-action .btn.pdf-js-save-btn:hover {
  transform: translateY(-1px);
  border: 0 !important;
  background: #fde047 !important;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.36);
}

.pdf-js-main-action .btn.pdf-js-save-btn:active {
  transform: translateY(0);
}

.pdf-js-main-action .btn.pdf-js-save-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.pdf-js-share-toggle {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.pdf-js-share-option-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-height: 36px;
}

.pdf-js-share-option-check {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.76);
  line-height: 1;
}

.pdf-js-share-option-check input {
  flex: 0 0 auto;
  margin: 0;
  width: 14px;
  height: 14px;
  align-self: center;
}

.pdf-js-share-option-check span {
  line-height: 1;
}

.pdf-js-spot-center {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.pdf-js-spot-preview {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 36px;
}

.pdf-js-spot-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 36px;
  object-fit: contain;
}

.pdf-js-spot-preview-image[hidden] {
  display: none;
}

.pdf-js-share-option-head #pdfShareOptionCloseBtn {
  margin-left: 0 !important;
  align-self: center !important;
}

.pdf-js-share-toggle > label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.pdf-js-share-toggle input[type="number"],
.pdf-js-share-panel input[type="number"] {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
}

.pdf-js-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.pdf-js-share-panel {
  margin-top: 3px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.76);
}

.pdf-js-share-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pdf-js-share-panel-head strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 400;
}

.pdf-js-share-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.pdf-js-share-field {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  align-content: start;
  align-items: start;
  justify-items: stretch;
  min-height: 100%;
}

.pdf-js-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pdf-js-picker-wrap {
  display: grid;
  gap: 8px;
}

.pdf-js-share-expanded {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.pdf-js-share-expanded-panel {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.pdf-js-share-expanded-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pdf-js-share-expanded-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 500;
}

.pdf-js-share-expanded-body {
  display: grid;
  gap: 8px;
}

.pdf-js-picker-wrap-lg {
  gap: 10px;
}

.pdf-js-toolbar-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-js-actions .btn.small,
.pdf-js-share-panel .btn.small {
  min-height: 32px;
  padding: 0 10px;
}

/* GPS buttons inside share panel: match dark theme */
body.workbench-page #pdfShareGpsPanel .btn.small {
  min-height: var(--nav-btn-min-height) !important;
  padding: var(--nav-btn-pad-y) var(--nav-btn-pad-x) !important;
  line-height: var(--nav-btn-line-height) !important;
  font-size: 0.72rem !important;
  font-weight: 300 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

body.workbench-page #pdfShareGpsPanel .btn.small:hover,
body.workbench-page #pdfShareGpsPanel .btn.small:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* share-panel form control sizing */
body.workbench-page .pdf-js-share-panel .encrypt-share-field select {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
}

body.workbench-page .pdf-js-share-panel .encrypt-share-field input[type="datetime-local"] {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
  color-scheme: dark;
  font-size: 0.78rem;
}

/* 작은 버튼(28px) + 안쪽 화살표만 확대(scale) */
.pdf-js-toggle-chevron-btn.btn.small {
  height: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  padding: 0 6px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  overflow: hidden;
}

.pdf-js-toggle-chevron {
  font-size: 0.62rem !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  display: block !important;
  transform: scale(3);
  transform-origin: center center;
}

#pdfShareOptionCloseBtn[hidden] {
  display: none !important;
}

#imageSelectAllBtn.btn.small,
#imageClearSelBtn.btn.small {
  min-width: var(--nav-btn-min-height) !important;
  min-height: var(--nav-btn-min-height) !important;
  padding: 0 !important;
  line-height: var(--nav-btn-line-height) !important;
  font-size: 0 !important;
  align-self: flex-start !important;
}

#pdfSpotRefreshBtn.btn.small {
  min-height: var(--nav-btn-min-height) !important;
  padding: var(--nav-btn-pad-y) var(--nav-btn-pad-x) !important;
  line-height: var(--nav-btn-line-height) !important;
  font-size: 0.72rem !important;
  font-weight: 300 !important;
  align-self: flex-start !important;
}

.pdf-js-map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.42);
}

.pdf-js-picker-wrap-lg .pdf-js-map-frame {
  height: 320px;
}

.pdf-js-share-field > label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  align-self: start;
  font-weight: 400;
}

.pdf-js-share-field .pdf-js-share-field {
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(2, 6, 23, 0.3);
}

.pdf-js-share-field > .pdf-js-inline-check {
  align-self: start;
}

/* datetime-local calendar icon + dark scheme (pdf share panel) */
body.workbench-page #pdfShareOpenDateInput,
body.workbench-page #pdfShareCloseDateInput {
  color-scheme: dark;
  padding-right: 36px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/%3E%3C/g%3E%3C/svg%3E");
}

body.workbench-page #pdfShareOpenDateInput::-webkit-calendar-picker-indicator,
body.workbench-page #pdfShareCloseDateInput::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

.pdf-js-scroll {
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-right: 4px;
}

.pdf-js-pages {
  display: grid;
  gap: 18px;
}

.pdf-js-page {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.pdf-js-page-meta {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.pdf-js-page-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}

.pdf-js-page-stage.is-picker-active,
.pdf-js-page-stage.is-picker-active .pdf-js-highlight {
  cursor: none !important;
}

.pdf-js-picker-reticle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 30px;
  height: 30px;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.9));
  will-change: transform;
}

.pdf-js-picker-reticle[hidden] {
  display: none;
}

.pdf-js-picker-reticle::before,
.pdf-js-picker-reticle::after {
  position: absolute;
  z-index: 2;
  content: "";
  background: #fbbf24;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 80ms ease, transform 80ms ease;
}

.pdf-js-picker-reticle::before {
  top: 14px;
  left: 6px;
  width: 18px;
  height: 2px;
}

.pdf-js-picker-reticle::after {
  top: 6px;
  left: 14px;
  width: 2px;
  height: 18px;
}

.pdf-js-picker-reticle.is-dragging::before,
.pdf-js-picker-reticle.is-dragging::after {
  opacity: 1;
  transform: scale(1);
}

.pdf-js-reticle-corner {
  --spread-x: 0;
  --spread-y: 0;
  --close-x: 0;
  --close-y: 0;
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: #fbbf24;
  border-style: solid;
  border-width: 0;
  opacity: 1;
  animation: pdf-js-reticle-breathe 1.15s ease-in-out infinite;
  transition: opacity 80ms ease;
}

.pdf-js-picker-reticle.is-dragging .pdf-js-reticle-corner {
  opacity: 0;
}

.pdf-js-reticle-corner.is-top-left {
  --spread-x: -2px;
  --spread-y: -2px;
  --close-x: 1px;
  --close-y: 1px;
  top: 4px;
  left: 4px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.pdf-js-reticle-corner.is-top-right {
  --spread-x: 2px;
  --spread-y: -2px;
  --close-x: -1px;
  --close-y: 1px;
  top: 4px;
  right: 4px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.pdf-js-reticle-corner.is-bottom-left {
  --spread-x: -2px;
  --spread-y: 2px;
  --close-x: 1px;
  --close-y: -1px;
  bottom: 4px;
  left: 4px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.pdf-js-reticle-corner.is-bottom-right {
  --spread-x: 2px;
  --spread-y: 2px;
  --close-x: -1px;
  --close-y: -1px;
  right: 4px;
  bottom: 4px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

@keyframes pdf-js-reticle-breathe {
  0%,
  100% {
    transform: translate(var(--spread-x), var(--spread-y));
  }

  50% {
    transform: translate(var(--close-x), var(--close-y));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-js-reticle-corner {
    animation: none;
    transform: translate(var(--spread-x), var(--spread-y));
  }
}

@media (pointer: coarse) {
  .pdf-js-picker-reticle {
    display: none !important;
  }
}

.pdf-js-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.pdf-js-highlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-js-text-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  line-height: 1;
  transform-origin: 0 0;
}

.pdf-js-text-layer span,
.pdf-js-text-layer br {
  position: absolute;
  white-space: pre;
  transform-origin: 0 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  cursor: text;
}

.pdf-js-text-layer ::selection {
  background: rgba(59, 130, 246, 0.4);
}

@media (pointer: coarse) and (max-width: 480px) {
  .pdf-js-preview[data-preview-gesture-mode="select"] .pdf-js-text-layer {
    touch-action: pan-y;
    -webkit-touch-callout: default;
  }

  .pdf-js-preview[data-preview-gesture-mode="move"] .pdf-js-text-layer {
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
}

.pdf-js-highlight {
  position: absolute;
  border: 1px solid rgba(255, 89, 94, 0.92);
  background: rgba(255, 206, 86, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 89, 94, 0.12);
  cursor: pointer;
  pointer-events: auto;
}

.pdf-js-highlight:hover {
  background: rgba(255, 159, 64, 0.45);
}

.pdf-js-highlight.is-muted {
  opacity: 1;
  background: rgba(37, 99, 235, 0.08);
  border: 2px dashed rgba(37, 99, 235, 0.95);
  box-shadow: none;
}

.pdf-js-picker-preview-bubble {
  position: absolute;
  z-index: 18;
  left: 0;
  top: 0;
  max-width: min(220px, calc(100% - 16px));
  padding: 5px 9px;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.26);
  transform: translate(-50%, -6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pdf-js-picker-preview-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.92);
  transform: translate(-50%, -55%) rotate(45deg);
  border-radius: 0;
}

.pdf-js-picker-preview-bubble.is-visible {
  opacity: 1;
  transform: translate(-50%, -12px);
}

.pdf-js-image-outline {
  position: absolute;
  border: 2px solid transparent;
  background: transparent;
  pointer-events: none;
}

.pdf-js-image-outline.is-selected {
  border: 2px solid rgba(249, 115, 22, 0.96);
  background: rgba(249, 115, 22, 0.18);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.24);
}

.pdf-js-shell[data-secpic-visible="true"] .pdf-js-image-outline.is-selected {
  background: transparent;
}

.pdf-js-region-action {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.34);
}

.pdf-js-region-action.is-seal {
  background: #2563eb;
}

.pdf-js-region-action.is-unseal {
  left: 100%;
  background: #0f766e;
}

.pdf-js-region-action.is-hidden {
  display: none;
}

.pdf-js-region-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pdf-js-region-action svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-js-highlight-menu {
  position: fixed;
  z-index: 40;
  padding: 8px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.pdf-js-modal[hidden] {
  display: none !important;
}

/* 모바일 + 태블릿(≤768): PC(≥769)가 아닌 구간 공통 */
@media (max-width: 768px) {
  .pdf-js-agent-control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-js-agent-control-row .pdf-js-filter-main-btn {
    width: 100%;
    justify-content: center;
  }

  .pdf-js-main-action {
    justify-content: stretch;
  }

  .pdf-js-main-action .btn:not(.pdf-js-guide-replay-btn) {
    width: 100%;
  }

  .pdf-js-main-action .pdf-js-guide-replay-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px !important;
    flex: 0 0 36px;
    padding: 0 !important;
    align-self: center;
    margin-inline: auto;
    font-size: 1rem !important;
    line-height: 1;
  }

  .pdf-js-share-toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pdf-js-share-option-head {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }

  .pdf-js-spot-center {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: nowrap;
  }

  #pdfCurrentSpotInfo {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #pdfSpotRefreshBtn {
    flex: 0 0 auto;
  }

  .pdf-js-scroll {
    max-height: none;
  }

  .pdf-js-toolbar,
  .pdf-js-finder-controls {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .pdf-js-toolbar {
    display: flex;
    align-items: stretch;
  }

  .pdf-js-finder-head {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .pdf-js-share-panel > .encrypt-share-panel-grid,
  .pdf-js-share-panel-grid {
    grid-template-columns: 1fr;
  }

  .pdf-js-picker-wrap-lg .pdf-js-map-frame {
    height: 260px;
  }

  .pdf-js-page-seal-dialog {
    width: calc(100vw - 16px);
    max-height: 92vh;
    border-radius: 0;
  }

  .pdf-js-page-seal-shell {
    padding: 14px;
  }

  .pdf-js-page-seal-section-top {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-js-page-seal-apply {
    width: 100%;
  }

  .pdf-js-page-seal-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }
}

/* 태블릿(426px~768px): 메인 툴바 3열 — 모바일(≤425)은 제외 */
@media (min-width: 426px) and (max-width: 768px) {
  .pdf-js-agent-control-row {
    flex-direction: row;
    align-items: stretch;
  }

  .pdf-js-agent-control-row .pdf-js-share-toggle {
    width: 100%;
  }

  .pdf-js-share-toggle {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .pdf-js-share-option-head {
    width: auto;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pdf-js-spot-center {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  .pdf-js-finder-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .pdf-js-finder-actions {
    align-content: start;
  }

  /* Keep dropzone copy + pick button on one row on tablet. */
  .pdf-js-toolbar.pdf-js-dropzone {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .pdf-js-toolbar.pdf-js-dropzone .pdf-js-actions {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pdf-js-main-action {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
  }

  .pdf-js-main-action > .encrypt-locked-notice {
    grid-column: 1 / -1;
  }

  .pdf-js-main-action .pdf-js-main-select {
    margin-right: 0;
    min-width: 0;
    width: 100%;
  }

  .pdf-js-main-action .btn:not(.pdf-js-guide-replay-btn) {
    width: 100%;
    min-width: 0;
  }

  .pdf-js-main-action .pdf-js-guide-replay-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    justify-self: center;
    font-size: 1rem !important;
  }
}

/* 모바일(≤425): 가이드 카드 + PDF 셸·finder 여백 대폭 축소 */
@media (max-width: 425px) {
  .pdf-js-image-gallery-note {
    display: none;
  }

  .pdf-guide__card {
    width: min(232px, calc(100vw - 24px));
    padding: 11px 11px 9px;
    border-radius: 0;
  }

  .pdf-guide__title {
    font-size: 0.88rem;
  }

  .pdf-guide__message {
    font-size: 0.78rem;
  }

  .pdf-guide__hint {
    font-size: 0.66rem;
  }

  body.workbench-page .container {
    width: min(var(--container-max, 1080px), calc(100vw - 8px));
    padding-top: 6px;
    padding-bottom: 28px;
  }

  body.workbench-page #pdfShell.panel.pdf-js-shell:not(.is-empty) {
    padding: 5px 6px;
    margin-bottom: 5px;
  }

  body.workbench-page #pdfShell.panel.pdf-js-shell.is-empty {
    padding: 8px 6px;
    margin-bottom: 8px;
  }

  .pdf-js-shell.is-empty .pdf-js-dropzone {
    min-height: 200px;
    padding: 14px 10px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-preview {
    padding: 3px 4px;
  }

  .pdf-js-batch-panel {
    padding: 9px 8px;
    margin-bottom: 8px;
  }

  .pdf-js-batch-head {
    display: grid;
    gap: 8px;
  }

  .pdf-js-batch-actions {
    justify-content: stretch;
  }

  .pdf-js-batch-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .pdf-js-batch-seal-actions {
    justify-content: stretch;
  }

  .pdf-js-batch-seal-actions .btn {
    width: 100%;
  }

  .pdf-js-batch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
  }

  .pdf-js-batch-meta,
  .pdf-js-batch-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-toolbar {
    margin-bottom: 6px;
    gap: 8px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-dropzone {
    padding: 4px 6px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder {
    padding: 5px 6px;
    margin-bottom: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder-part:not(.pdf-js-finder-part-images) {
    padding: 4px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder-part + .pdf-js-finder-part {
    margin-top: 4px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder-head {
    margin-bottom: 4px;
    gap: 6px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder-controls {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder-actions {
    gap: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder:not(.is-compact) .pdf-js-keyword-input {
    min-height: 56px;
    padding: 8px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-finder.is-compact .pdf-js-keyword-input {
    padding: 6px 8px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-main-action {
    margin-top: 5px;
    gap: 6px;
  }

  /* Mobile main actions: keep 2 columns instead of a long vertical stack. */
  .pdf-js-main-action {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
  }

  .pdf-js-main-action > .encrypt-locked-notice {
    grid-column: 1 / -1;
  }

  .pdf-js-main-action .btn:not(.pdf-js-guide-replay-btn) {
    width: 100%;
    min-width: 0;
  }

  .pdf-js-main-action .pdf-js-guide-replay-btn {
    justify-self: end;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-panel {
    padding: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-panel-head {
    margin-bottom: 6px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-panel-grid {
    gap: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-field {
    padding: 4px 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-expanded {
    gap: 5px;
    margin-top: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-expanded-panel {
    padding: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-expanded-head {
    margin-bottom: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-filter-panel {
    padding: 5px;
    margin-bottom: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-pages {
    gap: 8px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-page {
    padding: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-page-meta {
    margin: 0 0 6px;
    font-size: 0.8rem;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-picker-wrap-lg .pdf-js-map-frame {
    height: 180px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-scroll {
    max-height: calc(100vh - 80px);
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-share-toggle {
    gap: 5px;
  }

  .pdf-js-shell:not(.is-empty) .pdf-js-hint {
    font-size: 0.76rem;
    line-height: 1.35;
  }
}

.pdf-js-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.pdf-js-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.pdf-js-modal-dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 14vh auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 23, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
}

.pdf-js-modal-dialog h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: #fff;
}

.pdf-js-modal-desc {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

#pdfUnsealUserKeyInput {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
}

.pdf-js-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pdf-js-center-alert .pdf-js-modal-dialog {
  width: min(92vw, 460px);
  margin-top: 12vh;
  text-align: center;
  border-color: rgba(248, 113, 113, 0.7);
  background:
    radial-gradient(circle at top, rgba(220, 38, 38, 0.24), rgba(2, 6, 23, 0.98) 62%),
    rgba(2, 6, 23, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
}

.pdf-js-center-alert-icon {
  width: 52px;
  height: 52px;
  margin: 2px auto 4px;
  border-radius: 0;
  border: 1px solid rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  display: grid;
  place-items: center;
}

.pdf-js-center-alert-icon svg {
  width: 30px;
  height: 30px;
}

.pdf-js-center-alert .pdf-js-modal-dialog h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fee2e2;
}

.pdf-js-center-alert .pdf-js-modal-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 241, 242, 0.96);
  white-space: pre-line;
}

.pdf-js-center-alert-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 214, 0.92);
  font-size: 0.78rem;
  line-height: 1.45;
}

.pdf-js-center-alert .pdf-js-modal-actions {
  justify-content: center;
  gap: 10px;
}

.pdf-js-security-notice .pdf-js-modal-dialog {
  width: min(94vw, 560px);
  margin-top: 9vh;
  align-items: stretch;
  text-align: left;
  border-color: rgba(56, 189, 248, 0.58);
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.98), rgba(2, 6, 23, 0.98)),
    rgba(2, 6, 23, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.54);
}

.pdf-js-security-notice-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-js-security-notice-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.68);
  background: rgba(14, 116, 144, 0.26);
  color: #bae6fd;
}

.pdf-js-security-notice-icon svg {
  width: 27px;
  height: 27px;
}

.pdf-js-security-notice-eyebrow {
  margin: 0 0 3px;
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 400;
}

.pdf-js-security-notice .pdf-js-modal-dialog h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 500;
}

.pdf-js-security-notice-body {
  display: grid;
  gap: 10px;
}

.pdf-js-security-notice-body section {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
}

.pdf-js-security-notice-body strong {
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 400;
}

.pdf-js-security-notice-body p {
  margin: 0;
  color: rgba(241, 245, 249, 0.94);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.55;
  white-space: pre-line;
}

.pdf-js-security-notice .pdf-js-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  color: #f8fafc !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: normal;
  text-align: center;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.42);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.28);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice:hover,
.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.38), 0 0 0 2px rgba(186, 230, 253, 0.18);
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.28);
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice-primary {
  background: linear-gradient(180deg, #0ea5e9, #0369a1) !important;
  border-color: rgba(186, 230, 253, 0.74) !important;
  color: #f0f9ff !important;
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice-secondary {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.96), rgba(15, 118, 110, 0.96)) !important;
  border-color: rgba(153, 246, 228, 0.66) !important;
  color: #ecfeff !important;
}

.pdf-js-security-notice .pdf-js-modal-actions .btn.pdf-js-security-choice-warning {
  background: linear-gradient(180deg, #f59e0b, #b45309) !important;
  border-color: rgba(253, 230, 138, 0.78) !important;
  color: #fff7ed !important;
}

@media (max-width: 640px) {
  .pdf-js-security-notice .pdf-js-modal-actions {
    grid-template-columns: 1fr;
  }
}

.pdf-js-transient-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  text-align: center;
  border: 3px solid #38bdf8;
  background: #e0f7ff;
  color: #075985;
  box-shadow: 0 18px 38px rgba(14, 116, 144, 0.34), 0 0 0 1px rgba(186, 230, 253, 0.7) inset;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 20px));
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.pdf-js-transient-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.pdf-js-transient-notice strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #075985;
}

.pdf-js-transient-notice span {
  font-size: 0.8rem;
  line-height: 1.42;
  color: #0c4a6e;
}

#pdfCenterAlertCancelBtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff1f2;
}

#pdfCenterAlertOkBtn {
  background: #ef4444;
  border-color: #f87171;
  color: #fff7f7;
}
