/* Library prototype: the frame every variant fills, and the shared first-page thumbnails. */
.pl-app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.pl-top:empty, .pl-side:empty { display: none; }
.pl-body { flex: 1; display: flex; min-height: 0; }
.pl-side { flex: none; overflow: auto; }
.pl-main { flex: 1; min-width: 0; overflow: auto; outline: none; }
.pc-boot { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--pc-text-2); background: var(--pc-bg); z-index: 200; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-field { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.pc-field input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--pc-border-strong); border-radius: 8px; background: var(--pc-bg); font: 400 14px/1.4 inherit; color: var(--pc-text); }

/* First-page thumbnails (ctx.fileThumb): a white page at A4-ish ratio, scaled to the box */
.pc-thumb { position: relative; display: block; aspect-ratio: 1 / 1.3; overflow: hidden; background: #FFFFFF; border-radius: 3px; box-shadow: 0 0 0 1px rgba(19, 34, 50, .10), 0 1px 3px rgba(19, 34, 50, .10); container-type: inline-size; }
.pc-thumb__page { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pc-thumb__html { width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.pc-thumb__html .pdf-sheet { margin: 0; padding: 32px 40px; background: #fff; color: #1d1d1f; font: 400 13px/1.55 "DS Newsreader", Georgia, serif; display: grid; gap: 10px; }
.pc-thumb__html .pdf-sheet h3 { margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .05em; font-weight: 400; font-size: 18px; }
.pc-thumb__html .pdf-page__meta { display: flex; justify-content: space-between; font: 400 11px/1 "DS Sans", system-ui, sans-serif; color: #5B5B5B; }
.pc-thumb__html p { margin: 0; } .pc-thumb__html mark { background: rgba(221, 165, 52, .38); color: inherit; }
.pc-thumb__cover { display: flex; flex-direction: column; gap: 5cqw; padding: 12cqw 10cqw; color: #1d1d1f; font-family: "DS Newsreader", Georgia, serif; }
.pc-thumb__kicker { font: 600 5cqw/1.2 "DS Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8C8576; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-thumb__title { font-size: 9cqw; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.pc-thumb__rule { height: 1px; background: #D9D2C2; margin-block: 2cqw; }
.pc-thumb__line { height: 2.4cqw; border-radius: 1cqw; background: #ECE6D8; }
.pc-thumb__line--short { width: 60%; }

/* ---------- feeling native on phones and tablets (mobile-native) ---------- */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; }
body.pc { overscroll-behavior: none; }
/* controls: no double-tap-zoom wait, no text selection on a long press */
.pc button, .pc [role="button"], .pc [role="option"], .pc [role="radio"], .pc [role="menuitem"], .pc [role="menuitemradio"] { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pc-toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) {
  body.pc input, body.pc textarea, body.pc select { font-size: 16px; } /* under 16 px, iOS zooms the page into the field */
  .pc-btn, .pc-icon-btn, .pc-toast__act { min-height: 44px; }
  .pc-icon-btn { min-width: 44px; }
  .pc-menu__item { min-height: 44px; }
  .pc-dialog .pc-btn { padding: 0 16px; }
}
