#mobile-pdf-viewer {
  position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: #e8ece9; overflow: hidden;
}
#mobile-pdf-viewer[open] { display: flex; flex-direction: column; }
#mobile-pdf-viewer .mobile-pdf-toolbar {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 12px; flex: 0 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 22px max(20px, env(safe-area-inset-left));
  background: #182a24; color: #fff;
}
#mobile-pdf-viewer .pdf-back, #mobile-pdf-viewer .pdf-save {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 14px; border: 1px solid #6f8075; border-radius: 9px;
  color: #fff; background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
#mobile-pdf-viewer .pdf-back { justify-self: start; }
#mobile-pdf-viewer .pdf-back span { font-size: 21px; line-height: 1; }
#mobile-pdf-viewer .pdf-save { grid-column: 2; grid-row: 1; background: #e8d8af; color: #26372d; border-color: #e8d8af; }
#mobile-pdf-viewer .mobile-pdf-identity { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
#mobile-pdf-viewer .mobile-pdf-identity > span { font-size: 9px; letter-spacing: 1.8px; color: #c4d0c6; }
#mobile-pdf-viewer h2 { margin: 7px 0 0; font-size: 19px; line-height: 1.3; color: white; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mobile-pdf-viewer .mobile-pdf-controls { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #d5ded7; }
#mobile-pdf-viewer .pdf-page-navigation { display: flex; align-items: center; gap: 10px; }
#mobile-pdf-viewer .pdf-page-navigation > span { min-width: 56px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
#mobile-pdf-viewer .mobile-pdf-controls button { min-width: 44px; min-height: 44px; border: 1px solid #d8e0da; background: #f7f9f6; border-radius: 8px; color: #243b2c; font-size: 24px; cursor: pointer; }
#mobile-pdf-viewer .mobile-pdf-controls .pdf-zoom { padding: 0 14px; font: inherit; font-size: 12px; font-weight: 600; }
#mobile-pdf-viewer button:disabled { opacity: .35; cursor: default; }
#mobile-pdf-viewer button:focus-visible, #mobile-pdf-viewer a:focus-visible { outline: 3px solid #bc9245; outline-offset: 3px; }
#mobile-pdf-viewer [hidden] { display: none; }
#mobile-pdf-viewer .mobile-pdf-status { margin: 0; padding: 16px 20px; font-size: 13px; line-height: 1.5; flex: 0 0 auto; background: #fff9e9; color: #584928; }
#mobile-pdf-viewer .mobile-pdf-document { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
#mobile-pdf-viewer canvas { display: block; background: white; box-shadow: 0 3px 15px #26392d24; max-width: none; }
