.ofm-reader-action {
  margin: 0 0 1.15rem;
  line-height: 1;
}
#ofm-reader-trigger {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #c2cec9;
  border-radius: 999px;
  background: #f9fbfa;
  color: #234b40;
  font: 600 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  scroll-margin-block-start: 5rem;
}
#ofm-reader-trigger:hover { color: #173a32; background: #edf3ee; border-color: #859b90; text-decoration: none; }
#ofm-reader-trigger svg { flex: 0 0 auto; }
#ofm-reader-trigger:focus-visible, #ofm-reader-close:focus-visible, #ofm-reader-fallback:focus-visible {
  outline: 3px solid #27726b; outline-offset: 3px;
}
#ofm-reader-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(30rem, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 48rem);
  max-height: min(86dvh, 48rem);
  margin: auto;
  border: 1px solid #cad4ce;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  color: #243932;
  background: white;
  box-shadow: 0 16px 70px #112b2333;
  font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: contain;
}
#ofm-reader-dialog:not([open]), #ofm-reader-dialog [hidden] { display: none; }
#ofm-reader-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#ofm-reader-dialog::backdrop { background: rgb(17 33 29 / 46%); }
.ofm-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 10px 12px 10px 22px; border-bottom: 1px solid #dce4df; }
#ofm-reader-title { color: inherit; margin: 0; font: 600 1.25rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; }
#ofm-reader-close {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%; color: #334d42; background: transparent; cursor: pointer;
}
#ofm-reader-close:hover { background: #edf3ee; }
.ofm-reader-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#ofm-reader-status { margin: 1rem 22px; font: inherit; }
#ofm-reader-fallback { display: inline-block; margin: 0 22px 1.2rem; color: #285d4f; text-decoration: underline; }
@media (max-width: 600px) {
  #ofm-reader-dialog {
    width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh;
    border-bottom: 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
