.vv-reader-tools {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 4px;
  border: 1px solid #bacbd6;
  border-radius: 24px;
  background: #fff;
  color: #183445;
  box-shadow: 0 4px 20px #0002;
  font: 700 12px/1.3 system-ui, sans-serif;
}
.vv-reader-tools button {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.vv-reader-tools button[aria-pressed="true"] { background: #166b70; color: #fff; }
.vv-reader-tools button:disabled { opacity: .6; cursor: default; }
.vv-reader-tools button:focus-visible { outline: 3px solid #188f9c; outline-offset: 2px; }
.vv-reader-tools [hidden] { display: none !important; }
.vv-reader-help, .vv-reader-notice {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #bacbd6;
  border-radius: 12px;
  background: #fff;
  color: #183445;
  font-weight: 500;
  box-shadow: 0 4px 20px #0002;
}
.vv-reader-help { z-index: 1; }
.vv-reader-help a { color: inherit; text-decoration: underline; }
.vv-reader-notice { font-size: 13px; line-height: 1.5; }
.vv-reader-notice progress { display: block; width: 100%; height: 8px; margin-top: 10px; accent-color: #166b70; }
.vv-reading {
  outline: 3px solid #118a94 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 5px rgba(17,138,148,.16) !important;
  border-radius: 3px;
}
html[data-vv-theme="dark"] .vv-reader-tools,
html[data-vv-theme="dark"] .vv-reader-help,
html[data-vv-theme="dark"] .vv-reader-notice {
  background: #1d3042;
  color: #eaf6ff;
  border-color: #4c6a80;
}
html[data-vv-theme="dark"] .vv-reading { outline-color: #72e6d4 !important; }
.vv-reader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .vv-reader-tools { right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 56px); }
  .vv-reader-tools button { padding: 9px 10px; }
}
@media print { .vv-reader-tools { display: none; } .vv-reading { outline: none !important; box-shadow: none !important; } }
