.reader-trigger,
.reader-panel button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  background: #111c30;
  color: #f4f7fc;
  font: inherit;
  cursor: pointer;
}
.reader-trigger {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px #0006;
}
.reader-trigger[hidden] {
  display: none;
}
.reader-panel {
  position: fixed;
  inset: auto 16px 76px auto;
  margin: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--light-blue);
  border-radius: 12px;
  background: #111c30;
  color: #f4f7fc;
}
.reader-panel::backdrop {
  background: #080e1b99;
}
.reader-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.reader-panel p {
  font-size: 0.9rem;
  margin-block: 12px;
}
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reader-panel button:disabled {
  color: #b4c0d3;
  border-color: #60728e;
  cursor: default;
}
body:has(.reader-trigger:not([hidden])) .site-footer {
  padding-bottom: 92px;
}
@media print {
  .reader-trigger,
  .reader-panel {
    display: none;
  }
}
