html.ps-viewer-open {
  overflow: hidden;
}
.ps-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  padding: 0;
  margin: auto;
  width: min(1440px, calc(100% - 40px));
  height: calc(100% - 40px);
  height: calc(100dvh - 40px);
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ffffff75;
  background: #f6f8f3;
  color: #173a30;
  box-shadow: 0 24px 100px #061b1661;
  font: 500 16px/1.35 "DM Sans", Arial, sans-serif;
}
.ps-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.ps-viewer::backdrop {
  background: #08291fcc;
  backdrop-filter: blur(7px);
}
.ps-viewer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #c2cfc5;
}
.ps-viewer-close,
.ps-viewer-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
.ps-viewer-close {
  width: 44px;
  flex-shrink: 0;
  background: #fff;
  color: #104738;
  border: 1px solid #bacac0;
}
.ps-viewer-close:hover { background: #e5ede6; }
.ps-viewer-identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.ps-viewer-identity span { font-size: 12px; color: #52685e; }
.ps-viewer-identity strong { font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.ps-viewer-choose {
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  background: #104738;
  color: white;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.ps-viewer-choose:hover { background: #116146; }
.ps-viewer :is(a,button):focus-visible {
  outline: 3px solid #116146;
  outline-offset: 3px;
}
.ps-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: white;
}
@media (max-width: 640px) {
  .ps-viewer {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .ps-viewer-bar {
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  }
  .ps-viewer-choose { padding-inline: 13px; }
}
