/* Shared reader interface. */
body.wyl-library.wyl-frontend-preview {
  --wyl-ui-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  --wyl-header-height:68px;
  --wyl-ink:#30343b; --wyl-ink-2:#515862; --wyl-muted:#68717d; --wyl-faint:#969da7;
  --wyl-line:#eceef2; --wyl-paper:#f5f6f8; --wyl-white:#fff; --wyl-soft:#f3f4f7;
  --wyl-blue:#24735d; --wyl-blue-2:#1b5e49; --wyl-jade:#24735d; --wyl-red:#c35d61;
  --wyl-app-bg:#f5f6f8; --wyl-card:#fff; --wyl-surface:#fff; --wyl-surface-raised:#fff;
  --wyl-surface-soft:#f3f4f7; --wyl-glass:rgba(255,255,255,.96);
  --wyl-shadow:0 8px 30px rgba(31,39,55,.07); --wyl-card-shadow:0 2px 10px rgba(31,39,55,.035);
  --wyl-card-shadow-hover:0 7px 22px rgba(31,39,55,.08); --wyl-ease-out:cubic-bezier(.2,.7,.2,1);
  --wyl-notice-bg:#f3f4f7; --wyl-notice-error-bg:#fff0f1; --wyl-notice-success-bg:#edf7f2;
  --wyl-preview-hero:#fff; --wyl-preview-action:#24735d; --wyl-preview-action-ink:#fff;
  background:var(--wyl-app-bg); color:var(--wyl-ink-2); font:14px/1.7 var(--wyl-ui-font);
  -webkit-font-smoothing:antialiased; accent-color:var(--wyl-jade);
}
html[data-wyl-theme="dark"] body.wyl-library.wyl-frontend-preview {
  --wyl-ink:#f1f2f5; --wyl-ink-2:#d1d4dc; --wyl-muted:#a4a9b3; --wyl-faint:#858b96;
  --wyl-line:#34373f; --wyl-paper:#18191d; --wyl-white:#23252a; --wyl-soft:#2d3037;
  --wyl-blue:#8ac9ae; --wyl-blue-2:#a9d9c4; --wyl-jade:#79bfa4; --wyl-red:#f19a9e;
  --wyl-app-bg:#18191d; --wyl-card:#23252a; --wyl-surface:#23252a; --wyl-surface-raised:#2a2d34;
  --wyl-surface-soft:#2d3037; --wyl-glass:rgba(35,37,42,.96);
  --wyl-shadow:0 8px 30px rgba(0,0,0,.2); --wyl-card-shadow:0 2px 10px rgba(0,0,0,.1);
  --wyl-card-shadow-hover:0 7px 22px rgba(0,0,0,.22);
  --wyl-notice-bg:#2d3037; --wyl-notice-error-bg:#3c292e; --wyl-notice-success-bg:#23372e;
  --wyl-preview-hero:#23252a; --wyl-preview-action:#79bfa4; --wyl-preview-action-ink:#10291d;
}
body.wyl-library.wyl-frontend-preview :is(h1,h2,h3,h4,h5,h6,p,button,input,textarea,select,.wyl-brand strong,.wyl-nav-list a,.wyl-rank,.wyl-catalog-count strong,.wyl-checkin-copy strong,.wyl-genre-directory-item summary strong,.wyl-collection-card summary strong) { font-family:var(--wyl-ui-font); letter-spacing:normal; }
body.wyl-frontend-preview ::selection { background:var(--wyl-preview-action); color:var(--wyl-preview-action-ink); }
body.wyl-frontend-preview :is(input,textarea) { caret-color:var(--wyl-jade); }
body.wyl-frontend-preview :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--wyl-jade); outline-offset:3px; }
body.wyl-frontend-preview a { text-underline-offset:3px; }
body.wyl-frontend-preview :is(button,a) { -webkit-tap-highlight-color:transparent; }
body.wyl-frontend-preview :is(button,[role="button"]):disabled { opacity:.5; cursor:not-allowed; }
body.wyl-frontend-preview :is(main,aside,textarea,nav) { scrollbar-width:thin; scrollbar-color:var(--wyl-line) transparent; }
body.wyl-frontend-preview .wyl-main { width:min(1240px,calc(100% - 48px)); margin:0 auto; padding:24px 0 40px; min-width:0; }
body.wyl-frontend-preview .wyl-site-header { height:var(--wyl-header-height); min-height:var(--wyl-header-height); border-bottom:1px solid var(--wyl-line); background:var(--wyl-surface); box-shadow:none; }
body.wyl-frontend-preview .wyl-site-header.is-scrolled { background:var(--wyl-surface); box-shadow:0 3px 16px rgba(31,39,55,.055); }
body.wyl-frontend-preview .wyl-header-inner { width:min(1240px,calc(100% - 48px)); height:var(--wyl-header-height); gap:24px; }
body.wyl-frontend-preview .wyl-brand { gap:8px; color:var(--wyl-ink); }
/* Reserve the full site name; use the logo's responsive width as its flex basis. */
body.wyl-frontend-preview .wyl-site-header .wyl-brand { flex:none; white-space:nowrap; }
body.wyl-frontend-preview .wyl-site-header .wyl-brand-mark { flex:none; }
body.wyl-frontend-preview .wyl-brand strong { font-size:23px; font-weight:700; line-height:1.2; }
body.wyl-frontend-preview .wyl-brand small { display:none; }
body.wyl-frontend-preview .wyl-brand img { width:32px; height:32px; }
html[data-wyl-theme="dark"] body.wyl-frontend-preview .wyl-brand img { filter:brightness(0) invert(.9); }
body.wyl-frontend-preview .wyl-nav-list { gap:24px; }
body.wyl-frontend-preview .wyl-nav-list > li > a { min-height:var(--wyl-header-height); font-size:14px; font-weight:600; color:var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-nav-list > li.current-menu-item > a { color:var(--wyl-jade); }
body.wyl-frontend-preview .wyl-header-search { min-width:0; background:transparent; }
body.wyl-frontend-preview .wyl-search { height:40px; border:1px solid var(--wyl-line); border-radius:8px; background:var(--wyl-app-bg); box-shadow:none; transition:border-color .18s,box-shadow .18s; }
body.wyl-frontend-preview .wyl-search:focus-within { border-color:var(--wyl-jade); box-shadow:0 0 0 3px color-mix(in srgb,var(--wyl-jade) 10%,transparent); }
body.wyl-frontend-preview .wyl-search input { font-size:13px; }
body.wyl-frontend-preview .wyl-search input:is(:focus,:focus-visible) { outline:0; box-shadow:none; border:0; }
body.wyl-frontend-preview .wyl-search button { min-width:58px; height:32px; margin:3px; border-radius:6px; background:var(--wyl-preview-action); color:var(--wyl-preview-action-ink); font-size:12px; }
body.wyl-frontend-preview .wyl-header-search .wyl-search { border-color:var(--wyl-line); border-radius:8px; background:var(--wyl-app-bg); box-shadow:none; }
body.wyl-frontend-preview .wyl-header-search .wyl-search:focus-within { border-color:var(--wyl-jade); box-shadow:0 0 0 3px color-mix(in srgb,var(--wyl-jade) 10%,transparent); }
body.wyl-frontend-preview .wyl-header-search .wyl-search button { border-radius:6px; background:var(--wyl-preview-action); color:var(--wyl-preview-action-ink); }
body.wyl-frontend-preview .wyl-header-user-tools { gap:10px; }
body.wyl-frontend-preview .wyl-admin-entry { min-height:38px; padding:7px 10px; border:1px solid var(--wyl-line); border-radius:7px; background:var(--wyl-surface-soft); color:var(--wyl-muted); font-size:12px; box-shadow:none; white-space:nowrap; flex-shrink:0; }
body.wyl-frontend-preview :is(.wyl-theme-toggle,.wyl-header-message) { flex:none; width:40px; height:40px; color:var(--wyl-ink-2); border-radius:8px; }
body.wyl-frontend-preview :is(.wyl-theme-toggle,.wyl-header-message):hover { background:var(--wyl-surface-soft); color:var(--wyl-jade); }
body.wyl-frontend-preview .wyl-theme-toggle,
body.wyl-frontend-preview .wyl-theme-toggle:is(:hover,:active,:focus-visible) { transform:none; }
body.wyl-frontend-preview .wyl-header-avatar { flex:none; width:34px; height:34px; }
body.wyl-frontend-preview .wyl-account strong { color:var(--wyl-ink); font-size:13px; }
body.wyl-frontend-preview .wyl-account small { color:var(--wyl-muted); font-size:11px; }
body.wyl-frontend-preview .wyl-section-head { margin:0 0 18px; gap:12px; }
body.wyl-frontend-preview .wyl-section-head h2 { font-size:18px; line-height:1.4; font-weight:650; color:var(--wyl-ink); }
body.wyl-frontend-preview .wyl-section-head :is(a,button) { font-size:12px; color:var(--wyl-blue); }
body.wyl-frontend-preview .wyl-book-copy h3 { color:var(--wyl-ink); font-weight:600; }
body.wyl-frontend-preview .wyl-book-copy h3 a:hover { color:var(--wyl-jade); }
body.wyl-frontend-preview .wyl-button { min-height:42px; border-radius:7px; font-size:14px; }
body.wyl-frontend-preview .wyl-site-footer { margin-top:0; border-top:1px solid var(--wyl-line); background:var(--wyl-surface); color:var(--wyl-muted); box-shadow:none; }
body.wyl-frontend-preview .wyl-footer-inner { max-width:1240px; }
body.wyl-frontend-preview .wyl-mobile-tabbar { background:var(--wyl-glass); border-color:var(--wyl-line); box-shadow:0 -2px 14px rgba(31,39,55,.035); }
body.wyl-frontend-preview .wyl-mobile-tabbar a { color:var(--wyl-muted); }
body.wyl-frontend-preview .wyl-mobile-tabbar a.is-active { color:var(--wyl-jade); }
body.wyl-frontend-preview .wyl-floating-tool { border-radius:8px; background:var(--wyl-surface); border-color:var(--wyl-line); color:var(--wyl-muted); box-shadow:var(--wyl-card-shadow); }
/* Feedback options occupy real scrollable space instead of escaping a clipped sheet. */
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] {
  --wys-sheet-ink:var(--wyl-ink); --wys-sheet-muted:var(--wyl-muted); --wys-sheet-line:var(--wyl-line);
  --wys-sheet-surface:var(--wyl-surface); --wys-sheet-soft:var(--wyl-surface-soft); --wys-sheet-accent:var(--wyl-jade);
}
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] .wys-app-sheet-panel { display:flex; flex-direction:column; }
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] :is(.wys-app-sheet-head,.wys-app-sheet-drag) { flex-shrink:0; }
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] .wys-app-sheet-body { min-height:0; max-height:none; overflow-y:auto; flex:1 1 auto; scroll-padding-block:12px; }
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] .wys-app-sheet-eyebrow { display:none; }
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] .wys-app-sheet-heading h2 { font-size:22px; line-height:1.4; }
body.wyl-frontend-preview [id^="wys-feedback-sheet-"] .wys-app-sheet-heading p { margin-top:6px; font-size:13px; line-height:1.6; }
body.wyl-frontend-preview .wys-feedback-form { gap:16px; }
body.wyl-frontend-preview .wys-feedback-form .wys-app-field > span { font-size:13px; }
body.wyl-frontend-preview .wys-feedback-form :is(.wys-app-static-field,.wys-app-choice-trigger) { min-height:46px; border-radius:8px; }
body.wyl-frontend-preview .wys-feedback-form .wys-app-choice-menu {
  position:static; margin-top:8px; max-height:none; overflow:visible; border-radius:8px; box-shadow:none;
}
body.wyl-frontend-preview .wys-feedback-form .wys-app-choice-menu button { min-height:44px; font-size:13px; line-height:1.5; }
body.wyl-frontend-preview .wys-feedback-form .wys-app-choice-menu button:focus-visible { outline-offset:-3px; }
body.wyl-frontend-preview .wys-feedback-form .wys-feedback-submit { border-radius:8px; background:var(--wyl-preview-action); color:var(--wyl-preview-action-ink); }
@media(max-width:1200px) {
  body.wyl-frontend-preview .wyl-header-inner { gap:16px; }
  body.wyl-frontend-preview .wyl-header-user-tools { gap:6px; }
  body.wyl-frontend-preview .wyl-admin-entry-full { display:none; }
  body.wyl-frontend-preview .wyl-admin-entry-short { display:inline; }
}
@media(max-width:900px) {
  body.wyl-library.wyl-frontend-preview { --wyl-header-height:60px; }
  body.wyl-frontend-preview .wyl-header-inner { width:calc(100% - 32px); gap:10px; }
  body.wyl-frontend-preview .wyl-header-user-tools { display:contents; }
  body.wyl-frontend-preview .wyl-admin-entry { width:44px; height:44px; padding:0; }
  body.wyl-frontend-preview .wyl-brand strong { font-size:21px; }
  body.wyl-frontend-preview .wyl-brand img { width:28px; height:28px; }
  body.wyl-frontend-preview .wyl-main { width:calc(100% - 32px); padding-top:18px; }
  body.wyl-frontend-preview .wyl-header-search { position:absolute; top:calc(100% + 8px); background:var(--wyl-surface); }
  body.wyl-frontend-preview .wyl-floating-tools { display:flex; right:14px; bottom:calc(80px + env(safe-area-inset-bottom)); gap:0; z-index:70; }
  body.wyl-frontend-preview .wyl-floating-qr,body.wyl-frontend-preview .wyl-page-qr { display:none; }
  body.wyl-frontend-preview .wyl-floating-top { width:44px; height:44px; min-height:44px; padding:0; border-radius:50%; box-shadow:var(--wyl-shadow); }
  body.wyl-frontend-preview .wyl-floating-top span { display:none; }
  body.wyl-library.wyl-frontend-preview :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]) { font-size:16px; }
}
@media(max-width:640px) {
  body.wyl-library.wyl-frontend-preview { --wyl-header-height:56px; }
  body.wyl-frontend-preview .wyl-header-inner { width:calc(100% - 24px); gap:4px; }
  body.wyl-frontend-preview .wyl-brand strong { font-size:20px; }
  body.wyl-frontend-preview .wyl-brand img { width:27px; height:27px; }
  body.wyl-frontend-preview :is(.wyl-theme-toggle,.wyl-header-message,.wyl-mobile-search-toggle) { width:44px; height:44px; flex-basis:44px; }
  body.wyl-frontend-preview .wyl-admin-entry { min-height:44px; padding:0; font-size:11px; }
  body.wyl-frontend-preview .wyl-header-inner .wyl-account { display:none; }
  body.wyl-frontend-preview .wyl-search { height:44px; }
  body.wyl-frontend-preview .wyl-search input { font-size:16px; }
  body.wyl-frontend-preview .wyl-search button { height:36px; }
  body.wyl-frontend-preview .wyl-main { width:calc(100% - 24px); padding:12px 0 28px; }
  body.wyl-frontend-preview .wyl-section-head { margin-bottom:15px; }
  body.wyl-frontend-preview .wyl-section-head h2 { font-size:17px; }
  body.wyl-frontend-preview .wyl-section-head :is(a,button) { font-size:11px; }
}
@media(prefers-reduced-motion:no-preference) {
  body.wyl-frontend-preview :is(button,.wyl-book-cover img,.wyl-booklist-card,.wyl-floating-tool) { transition:background-color .18s,border-color .18s,box-shadow .18s,transform .2s var(--wyl-ease-out); }
  body.wyl-frontend-preview :is(.wyl-book-download-main,.wyl-book-favorite-inline,.wyl-button):active { transform:scale(.98); }
}
@media(prefers-reduced-motion:reduce) {
  body.wyl-frontend-preview *,body.wyl-frontend-preview *::before,body.wyl-frontend-preview *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
