/* Native document scrolling is also the Reader's progress source. */
html.route-reader.reader-native-scroll { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }
body.route-reader.reader-native-scroll { height: auto !important; overflow: visible !important; }
body.reader-native-scroll #app,
body.reader-native-scroll .chapter-wrapper.mini-interface { height: auto !important; min-height: 100vh; }
body.reader-native-scroll.el-popup-parent--hidden { overflow: hidden !important; }
.reader-search-panel { margin-bottom: 16px; color: var(--reader-text, #30343b); }
.reader-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reader-search-form { display: flex; gap: 8px; align-items: center; }
.reader-search-form input { flex: 1 1 0; min-width: 0; width: 100%; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--reader-border, #ccd2da); border-radius: 10px; background: var(--reader-surface-2, #fff); color: inherit; font-size: 16px; }
.reader-search-panel button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--reader-border, #ccd2da); border-radius: 10px; background: var(--reader-surface-2, #fff); color: inherit; font-size: 14px; cursor: pointer; }
.reader-search-panel button:disabled { opacity: .55; }
.reader-search-status { margin: 10px 0; font-size: 13px; line-height: 1.6; }
.reader-search-results { display: grid; gap: 8px; }
.reader-search-results button { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; line-height: 1.6; }
.reader-search-results strong, .reader-search-results span { display: block; }
.reader-search-panel mark { background: #ffe49b; color: #222; }
.reader-search-panel [hidden] { display: none !important; }
.reader-search-enhanced > .reader-drawer__header .drawer-search { display: none !important; }
.reader-search-enhanced.reader-search-active .data-wrapper { display: none !important; }
@media (max-width: 767px) {
  .bookshelf-navbar { height: auto !important; min-height: 126px; }
  .bookshelf-navbar .bookshelf-navbar-inner { display: grid !important; grid-template-columns: 1fr auto !important; grid-template-rows: 44px auto !important; gap: 10px !important; height: auto !important; padding: 10px 0 12px; }
  .bookshelf-navbar .bookshelf-brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .bookshelf-navbar .bookshelf-nav-actions { grid-column: 2; grid-row: 1; gap: 3px; }
  .bookshelf-navbar .bookshelf-nav-action { min-width: 44px; min-height: 44px; font-size: 14px !important; padding: 8px !important; }
  .bookshelf-navbar .bookshelf-search { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; height: auto !important; min-height: 48px; padding: 4px 8px !important; flex-wrap: wrap; border-radius: 14px; }
  .bookshelf-navbar .bookshelf-search-source { flex: 0 1 118px; max-width: 34%; min-height: 44px; padding: 0 8px; }
  .bookshelf-navbar .bookshelf-search-input { flex: 1 1 90px; width: 0; min-width: 60px; font-size: 16px !important; height: 44px !important; }
  .bookshelf-navbar .bookshelf-search-clear { min-width: 36px; min-height: 44px; }
  .bookshelf-navbar .bookshelf-search-popover { top: calc(100% + 8px); width: 100%; max-height: 60vh; overflow-y: auto; }
  .bookshelf-navbar .bookshelf-search-popover button { min-height: 44px; font-size: 15px; }
  .mini-interface .popper-component { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto !important; overflow-x: hidden; padding: 16px !important; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; }
  .mini-interface .reader-search-enhanced { margin: 0 !important; padding: 0 !important; width: 100%; box-sizing: border-box; }
  .reader-search-panel { position: relative; }
}
