/* The library fills its shell. The portalled viewer remains a full-height right sheet. */
html body .ryra-viral-page { width: 100%; min-width: 0; }
html body .ryra-viral-page .ws-vir-page { width: 100%; max-width: none; padding: 24px; }
html body .ryra-viral-page > .ws-header { justify-content: center; padding: 32px 24px 16px; border: 0; text-align: center; }
html body .ryra-viral-page > .ws-header .ws-title { overflow: visible; white-space: normal; }
html body .ryra-viral-page > .ws-header .ws-subtitle { overflow: visible; white-space: normal; }
html body .ryra-viral-page .ws-vir-search { max-width: 740px; margin: 0 auto 16px; }
html body .ryra-viral-page .ws-vir-search__input { min-height: 54px; border: 1px solid var(--viral-line, #e8e8e3); border-radius: 999px; }
html body .viral-research-latest .ws-vir-card { padding: 10px; border: 1px solid var(--viral-line, #e8e8e3); border-radius: 20px; background: #fff; }
@container (min-width: 820px) {
  html body .viral-research-latest .ws-vir-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
}

/* Tailwind's individual translate property survives transform:none. Reset both so
   the centered Dialog primitives cannot shift half the sheet above the viewport. */
html body .viral-latest-sheet.viral-latest-sheet.viral-latest-sheet {
  inset: 0 0 0 auto; width: min(520px, 100%); max-width: 100%;
  height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 24px 0 0 24px;
  translate: none; transform: none; animation: none;
}
html body .viral-latest-sheet .ws-vd { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
html body .viral-latest-sheet .ws-vd__bar,
html body .viral-latest-sheet .ws-vd__foot { flex-shrink: 0; background: #fff; }
html body .viral-latest-sheet .ws-vd__scroll { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; }
html body .viral-latest-sheet .ws-vd__stage { padding: 20px 16px; }
html body .viral-latest-sheet .ws-vd__media { width: min(248px, 100%, calc(42dvh * 9 / 16)); background: #18181e; }
html body .viral-latest-sheet .ws-vd__media .ws-vir-cover { object-fit: contain; }
html body .viral-latest-sheet .ws-vd__body { gap: 16px; padding: 20px; }
html body .viral-latest-sheet .ws-vd__hook { font-size: 20px; line-height: 1.35; }
html body .viral-latest-sheet .ws-vd__usual { margin-top: -8px; }
html body .viral-latest-sheet .ws-vd__stats { border: 1px solid var(--viral-line); background: #fff; }
html body .viral-latest-sheet .ws-vd__stats > div { gap: 2px; padding: 12px 14px; border-color: var(--viral-line); }
html body .viral-latest-sheet .ws-vd__stats dd { font-size: 16px; }
html body .viral-latest-sheet .ws-vd__card { gap: 0; border-radius: 16px; overflow: hidden; background: var(--viral-fill); }
html body .viral-latest-sheet .ws-vd__row { padding: 12px 14px; }
html body .viral-latest-sheet .ws-vd__avatar { background: #1c1c28; color: #fff; }
html body .viral-latest-sheet .ws-vd__caption { padding: 14px; border: 1px solid var(--viral-line); border-radius: 16px; }
html body .viral-latest-sheet .ws-vd__foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
html body .viral-latest-sheet .ws-vd__bar .ws-vir-save.is-on { background: var(--blue, #ddf56b); color: var(--viral-ink); }
@media (max-width: 640px) {
  html body .ryra-viral-page .ws-vir-page { padding: 16px 12px 32px; }
  html body .ryra-viral-page > .ws-header { padding: 20px 16px 0; }
  html body .viral-research-latest .ws-vir-card { padding: 6px; border-radius: 18px; }
  html body .viral-latest-sheet.viral-latest-sheet.viral-latest-sheet { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  html body .viral-latest-sheet .ws-vd__body { padding: 16px; }
  html body .viral-latest-sheet .ws-vd__foot { padding-inline: 12px; }
}
