:root {
  --wyl-ink: #102a43;
  --wyl-ink-2: #243b53;
  --wyl-muted: #6b7c8f;
  --wyl-faint: #9aa8b7;
  --wyl-line: #d9e0e7;
  --wyl-paper: #fbfaf6;
  --wyl-white: #fff;
  --wyl-soft: #f1f4f5;
  --wyl-blue: #174a72;
  --wyl-blue-2: #0f3657;
  --wyl-jade: #1d7a63;
  --wyl-red: #a44437;
  --wyl-shadow: 0 10px 32px rgba(16, 42, 67, .08);
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--wyl-paper); scroll-behavior: smooth; }
body.wyl-library {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: var(--wyl-paper);
  color: var(--wyl-ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 3px solid rgba(29, 122, 99, .35); outline-offset: 3px; }
.wyl-skip {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.wyl-skip:focus {
  position: fixed !important;
  left: 16px;
  top: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--wyl-ink);
  color: #fff;
  text-decoration: none;
}

.wyl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 42, 67, .12);
  background: var(--wyl-paper);
}
.wyl-header-inner {
  width: min(1400px, calc(100% - 56px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wyl-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--wyl-ink);
  text-decoration: none;
}
.wyl-brand svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.wyl-brand-image { width:auto; max-width:190px; height:44px; object-fit:contain; }
.wyl-brand span { display: grid; line-height: 1.15; }
.wyl-brand strong {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 22px;
  letter-spacing: .08em;
}
.wyl-brand small { margin-top: 5px; color: var(--wyl-muted); font-size: 10px; letter-spacing: .13em; }
.wyl-primary-nav { min-width: max-content; }
.wyl-nav-list { display: flex; gap: 27px; margin: 0; padding: 0; list-style: none; }
.wyl-nav-list a {
  position: relative;
  padding: 23px 0;
  color: var(--wyl-ink-2);
  font-weight: 650;
  text-decoration: none;
}
.wyl-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 16px;
  height: 2px;
  background: var(--wyl-jade);
  transition: right .2s;
}
.wyl-nav-list a:hover::after, .wyl-nav-list .current-menu-item > a::after { right: 0; }
.wyl-header-search { flex: 1; max-width: 500px; margin-left: auto; }
.wyl-search {
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #bdc9d3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.wyl-search:focus-within { border-color: var(--wyl-jade); box-shadow: 0 0 0 3px rgba(29, 122, 99, .12); }
.wyl-search svg {
  width: 20px;
  height: 20px;
  margin-left: 14px;
  fill: none;
  stroke: var(--wyl-muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.wyl-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--wyl-ink); }
.wyl-search button { height: 100%; min-width: 72px; border: 0; border-radius: 0; background: var(--wyl-ink); color: #fff; font-weight: 700; cursor: pointer; }
.wyl-search button:hover { background: var(--wyl-blue); }
.wyl-account { min-width: max-content; }
.wyl-account > a { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.wyl-account img { width: 34px; height: 34px; border-radius: 50%; }
.wyl-account span { display: grid; line-height: 1.1; }
.wyl-account strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wyl-account small { margin-top: 5px; color: var(--wyl-muted); font-size: 10px; }
.wyl-account .wyl-login { min-width: 64px; justify-content: center; padding: 7px 14px; border: 1px solid var(--wyl-line); font-weight: 700; }
.wyl-nav-toggle { display: none; border: 0; background: none; padding: 8px; }
.wyl-nav-toggle span { display: block; width: 23px; height: 2px; margin: 5px; background: var(--wyl-ink); }

.wyl-main { width: min(1360px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 64px; }
.wyl-kicker { margin: 0 0 5px; color: var(--wyl-jade); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.wyl-intro {
  position: relative;
  min-height: 174px;
  display: grid;
  grid-template-columns: 1.1fr minmax(420px, .9fr);
  gap: 64px;
  align-items: center;
  padding: 30px 46px;
  overflow: hidden;
  border: 1px solid #d8d6cc;
  background: #f3f0e8;
}
.wyl-intro::before, .wyl-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(16, 42, 67, .12);
  border-radius: 50%;
}
.wyl-intro::before { width: 330px; height: 330px; right: -120px; top: -210px; }
.wyl-intro::after { width: 210px; height: 210px; right: -68px; top: -115px; }
.wyl-intro-copy, .wyl-intro-search { position: relative; z-index: 1; }
.wyl-intro h1 {
  margin: 0;
  color: var(--wyl-ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: .14em;
}
.wyl-intro-copy > p:last-child { margin: 9px 0 0; color: var(--wyl-muted); }
.wyl-intro .wyl-kicker { color: var(--wyl-red); }
.wyl-intro-search .wyl-search { height: 48px; box-shadow: 0 7px 20px rgba(16, 42, 67, .08); }
.wyl-intro-search .wyl-search button { min-width: 86px; background: var(--wyl-blue-2); }
.wyl-intro-search > p { margin: 7px 0 0; color: var(--wyl-muted); font-size: 12px; text-align: right; }
.wyl-intro-stamp { position: absolute; right: 24px; bottom: 15px; color: rgba(164, 68, 55, .32); font-family: serif; font-size: 14px; line-height: 1.05; }

.wyl-shelf, .wyl-genres, .wyl-related { padding-top: 31px; }
.wyl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; border-bottom: 1px solid var(--wyl-line); }
.wyl-section-head > div { padding: 0 0 10px; }
.wyl-section-head p { margin: 0 0 2px; color: var(--wyl-muted); font-size: 11px; letter-spacing: .06em; }
.wyl-section-head h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 24px; line-height: 1.25; letter-spacing: .06em; }
.wyl-section-head > a { padding-bottom: 10px; color: var(--wyl-blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.wyl-book-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 22px 18px; }
.wyl-book-card { min-width: 0; }
.wyl-book-cover {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 42, 67, .14);
  background: #e6ebee;
  color: #8291a0;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(16, 42, 67, .08);
}
.wyl-book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, filter .25s; }
.wyl-book-card:hover img { transform: scale(1.025); filter: saturate(1.05); }
.wyl-cover-fallback { font-family: "Songti SC", serif; font-size: 36px; font-weight: 700; }
.wyl-rank { position: absolute; z-index: 2; left: 0; top: 0; min-width: 26px; height: 27px; display: grid; place-items: center; background: var(--wyl-blue-2); color: #fff; font-family: Georgia, serif; font-size: 13px; }
.wyl-book-grid.is-ranked > :nth-child(-n+3) .wyl-rank { background: var(--wyl-red); }
.wyl-book-copy { min-width: 0; padding-top: 9px; }
.wyl-book-copy h3 { margin: 0; font-size: 14px; line-height: 1.45; }
.wyl-book-copy h3 a { display: block; overflow: hidden; color: var(--wyl-ink); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.wyl-card-author { margin: 3px 0 4px; overflow: hidden; color: var(--wyl-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-card-author a { color: inherit; text-decoration: none; }
.wyl-card-author a:hover { color: var(--wyl-blue); text-decoration: underline; text-underline-offset: 2px; }
.wyl-card-meta { display: flex; gap: 4px; margin: 0; overflow: hidden; white-space: nowrap; }
.wyl-card-meta span { padding: 1px 5px; border: 1px solid #d7dfe5; color: var(--wyl-muted); font-size: 10px; }
.wyl-collecting { padding: 24px; border: 1px dashed var(--wyl-line); color: var(--wyl-muted); text-align: center; }
.wyl-genre-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--wyl-line); border-top: 1px solid var(--wyl-line); }
.wyl-genre-grid a { min-height: 76px; display: grid; align-content: center; gap: 3px; padding: 12px 16px; border-right: 1px solid var(--wyl-line); border-bottom: 1px solid var(--wyl-line); background: rgba(255,255,255,.45); text-decoration: none; }
.wyl-genre-grid a:hover { background: #fff; color: var(--wyl-blue); }
.wyl-genre-grid strong { color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 17px; }
.wyl-genre-grid span { color: var(--wyl-muted); font-size: 11px; }

.wyl-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--wyl-muted); font-size: 12px; }
.wyl-breadcrumb a { text-decoration: none; }
.wyl-breadcrumb strong { color: var(--wyl-ink); }
.wyl-book-entity { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--wyl-line); }
.wyl-entity-main { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 38px; }
.wyl-entity-cover { width: 270px; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(16,42,67,.16); background: #e7ecef; color: var(--wyl-faint); font-family: serif; font-size: 72px; box-shadow: var(--wyl-shadow); }
.wyl-entity-cover img { width: 100%; height: 100%; object-fit: cover; }
.wyl-entity-copy h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: .04em; }
.wyl-entity-author { margin: 11px 0 9px; font-size: 17px; }
.wyl-entity-author span { margin-right: 10px; color: var(--wyl-muted); font-size: 12px; }
.wyl-entity-author a {
  color: var(--wyl-blue);
  font-weight: 700;
  text-decoration: none;
}
.wyl-entity-author a:hover { color: var(--wyl-jade); }
.wyl-entity-lead { max-width: 750px; margin: 15px 0 0; color: var(--wyl-muted); font-family: "Songti SC", serif; font-size: 14px; line-height: 1.8; }
.wyl-fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; color: var(--wyl-ink); font-size: 14px; font-weight: 750; line-height: 1.7; }
.wyl-fact-line .wyl-fact-separator { color: var(--wyl-faint); font-weight: 400; }
.wyl-feature-row { display: flex; gap: 15px; align-items: flex-start; margin-top: 16px; }
.wyl-feature-row > strong { min-width: max-content; padding-top: 3px; color: var(--wyl-muted); font-size: 12px; }
.wyl-feature-row > div { display: flex; flex-wrap: wrap; gap: 6px; }
.wyl-feature-row span { padding: 3px 9px; background: #e9eff2; color: var(--wyl-blue-2); font-size: 12px; }
.wyl-entity-actions { display: grid; align-content: start; gap: 15px; }
.wyl-reader-actions { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--wyl-line); background: rgba(255,255,255,.55); }
.wyl-reader-actions button, .wyl-reader-actions a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--wyl-ink); font-weight: 750; text-decoration: none; cursor: pointer; }
.wyl-reader-actions button { border-right: 1px solid var(--wyl-line); }
.wyl-reader-actions svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wyl-reader-actions .is-active { background: var(--wyl-blue-2); color: #fff; }
.wyl-reader-actions small { font-size: 10px; opacity: .7; }
.wyl-download-panel { border: 1px solid var(--wyl-line); background: #fff; box-shadow: 0 6px 18px rgba(16,42,67,.04); }
.wyl-download-panel > header { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--wyl-line); }
.wyl-download-panel > header svg { width: 25px; fill: none; stroke: var(--wyl-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wyl-download-panel h2 { margin: 0; color: var(--wyl-ink); font-size: 18px; }
.wyl-download-panel header p { margin: 1px 0 0; color: var(--wyl-muted); font-size: 10px; letter-spacing: .06em; }
.wyl-download-list { display: grid; gap: 9px; padding: 12px; }
.wyl-download-list a { display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 10px 13px; border: 1px solid var(--wyl-line); text-decoration: none; }
.wyl-download-list a:hover { border-color: var(--wyl-blue); color: var(--wyl-blue); }
.wyl-download-list a span { display: grid; }
.wyl-download-list strong { font-size: 14px; }
.wyl-download-list small { color: var(--wyl-muted); font-size: 10px; }
.wyl-download-list a > b { font-size: 18px; }
.wyl-resource-empty { margin: 0; padding: 15px; color: var(--wyl-muted); font-size: 13px; }
.wyl-resource-note { margin: 0; padding: 0 15px 14px; color: var(--wyl-faint); font-size: 10px; }
.wys-link-feedback { padding: 0 14px 14px !important; }
.wys-link-feedback form { grid-template-columns: 1fr !important; }
.wys-feedback-status { grid-column: auto !important; }
.wyl-book-comments { max-width: 940px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--wyl-line); scroll-margin-top: 90px; }
.wyl-related { margin-top: 28px; }
.wyl-related .wyl-book-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.wyl-listing { min-height: 70vh; }
.wyl-listing-head { max-width: 760px; padding: 30px 0 24px; }
.wyl-listing-head h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 36px; }
.wyl-listing-head > p:last-child { margin: 6px 0 0; color: var(--wyl-muted); }
.wyl-list-search { max-width: 680px; margin-bottom: 26px; }
.wyl-list-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.nav-links { display: flex; justify-content: center; gap: 7px; margin-top: 38px; }
.nav-links .page-numbers { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--wyl-line); text-decoration: none; }
.nav-links .current { border-color: var(--wyl-ink); background: var(--wyl-ink); color: #fff; }
.wyl-empty { max-width: 720px; margin: 80px auto; padding: 38px; border: 1px solid var(--wyl-line); background: #fff; text-align: center; }
.wyl-empty h1, .wyl-empty h2 { color: var(--wyl-ink); font-family: "Songti SC", serif; }
.wyl-empty .wyl-search { margin: 22px 0; }
.wyl-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 7px 18px; border: 0; background: var(--wyl-blue-2); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.wyl-text-link { color: var(--wyl-blue); font-weight: 700; }

.wyl-comments-inner { max-width: 820px; }
.comment-list { margin: 20px 0; padding: 0; list-style: none; }
.comment-list .comment-body { margin-bottom: 12px; padding: 15px; border: 1px solid var(--wyl-line); background: #fff; }
.comment-author { display: flex; gap: 9px; align-items: center; }
.comment-author img { border-radius: 50%; }
.comment-meta { color: var(--wyl-muted); font-size: 11px; }
.comment-content { padding-left: 51px; }
.comment-respond { margin-top: 24px; }
.comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--wyl-line); background: #fff; }

.wyl-site-footer { margin-top: 28px; border-top: 1px solid var(--wyl-line); background-color: #eef1f1; background-image: linear-gradient(90deg, rgba(244,246,244,.82), rgba(244,246,244,.62) 52%, rgba(244,246,244,.76)), url("../images/hero-ink-library.webp"); background-position: center 61%; background-size: cover; }
.wyl-footer-inner { width: min(1360px, calc(100% - 56px)); min-height: 132px; margin: 0 auto; padding: 24px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-content: center; align-items: center; }
.wyl-footer-inner .wyl-brand { display: inline-flex; }
.wyl-footer-inner nav { display: flex; gap: 22px; align-items: center; }
.wyl-footer-inner nav a { color: var(--wyl-muted); font-size: 13px; text-decoration: none; }
.wyl-copyright { grid-column: 1 / -1; margin: 0; color: var(--wyl-faint); font-size: 11px; }

.wyl-account-page { min-height: 70vh; }
.wyl-account-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; padding: 18px 22px; border: 1px solid var(--wyl-line); background: #fff; }
.wyl-account-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.wyl-account-identity img { width: 58px; height: 58px; border: 1px solid var(--wyl-line); border-radius: 50%; object-fit: cover; }
.wyl-account-identity h1 { margin: 0; overflow: hidden; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-account-identity p { margin: 3px 0 0; color: var(--wyl-muted); font-size: 11px; }
.wyl-account-setting { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 7px 15px; border: 1px solid var(--wyl-line); color: var(--wyl-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.wyl-account-setting:hover { border-color: var(--wyl-blue); color: var(--wyl-blue); }
.wyl-account-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 22px; align-items: start; }
.wyl-account-nav { position: sticky; top: 88px; display: grid; border: 1px solid var(--wyl-line); background: #fff; }
.wyl-account-nav a { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--wyl-line); color: var(--wyl-muted); font-size: 13px; text-decoration: none; }
.wyl-account-nav a:last-child { border-bottom: 0; }
.wyl-account-nav a:hover { color: var(--wyl-blue); }
.wyl-account-nav a.is-active { box-shadow: inset 3px 0 var(--wyl-blue); background: #f0f5f8; color: var(--wyl-ink); font-weight: 700; }
.wyl-account-nav b { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; background: #edf1f3; color: var(--wyl-muted); font-size: 10px; }
.wyl-account-nav b.is-alert { background: var(--wyl-red); color: #fff; }
.wyl-account-nav .wyl-account-logout { color: var(--wyl-faint); }
.wyl-account-content { min-width: 0; }
.wyl-account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wyl-account-stats > div, .wyl-account-stats > a { position: relative; min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; border: 1px solid var(--wyl-line); background: #fff; text-decoration: none; }
.wyl-account-stats > a:hover { border-color: var(--wyl-blue); }
.wyl-account-stats span { display: block; color: var(--wyl-muted); font-size: 11px; }
.wyl-account-stats strong { display: block; margin-top: 3px; color: var(--wyl-ink); font-size: 24px; line-height: 1.1; }
.wyl-account-stats strong b { font: inherit; }
.wyl-account-stats small { margin-left: 2px; color: var(--wyl-muted); font-size: 11px; }
.wyl-account-stats i { position: absolute; right: 14px; bottom: 13px; color: var(--wyl-blue); font-size: 14px; font-style: normal; }
.wyl-checkin-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 10px; padding: 13px 15px; border: 1px solid #b8d3c9; background: #f2f8f6; }
.wyl-checkin-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #b8d3c9; border-radius: 50%; color: var(--wyl-jade); font-family: "Songti SC", serif; font-size: 15px; font-weight: 800; }
.wyl-checkin-copy { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; }
.wyl-checkin-copy p { width: 100%; margin: 0; color: var(--wyl-jade); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.wyl-checkin-copy strong { color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 17px; }
.wyl-checkin-copy span { color: var(--wyl-muted); font-size: 11px; }
.wyl-checkin-card button { min-width: 108px; min-height: 38px; padding: 7px 15px; border: 1px solid var(--wyl-jade); background: var(--wyl-jade); color: #fff; font-weight: 750; cursor: pointer; }
.wyl-checkin-card button:hover { background: var(--wyl-ink); border-color: var(--wyl-ink); }
.wyl-checkin-card button:disabled { opacity: .72; cursor: default; }
.wyl-checkin-card.is-checked { border-color: var(--wyl-line); background: #f1f5f7; }
.wyl-checkin-card.is-checked .wyl-checkin-icon { border-color: var(--wyl-line); color: var(--wyl-blue); }
.wyl-checkin-card.is-checked button { border-color: #cbd5dc; background: transparent; color: var(--wyl-muted); }
.wyl-account-section-head { min-height: 44px; margin: 24px 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--wyl-line); }
.wyl-account-section-head > div { display: flex; align-items: baseline; gap: 12px; }
.wyl-account-section-head h1, .wyl-account-section-head h2 { font-size: 22px; }
.wyl-account-section-head p { margin: 0 !important; color: var(--wyl-muted) !important; font-size: 11px !important; letter-spacing: 0 !important; }
.wyl-account-section-head > a { padding: 4px 0; }
.wyl-account-book-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wyl-account-book { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 11px; border: 1px solid var(--wyl-line); background: #fff; }
.wyl-account-book-cover { aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; background: #e8edef; color: var(--wyl-blue); font-family: "Songti SC", serif; font-size: 28px; text-decoration: none; }
.wyl-account-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.wyl-account-book-copy { min-width: 0; display: flex; flex-direction: column; }
.wyl-account-book-copy h3 { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.wyl-account-book-copy h3 a { display: -webkit-box; overflow: hidden; color: var(--wyl-ink); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wyl-account-book-copy > p { margin: 4px 0 0; overflow: hidden; color: var(--wyl-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-account-book-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.wyl-account-book-meta span { padding: 2px 5px; border: 1px solid var(--wyl-line); color: var(--wyl-muted); font-size: 9px; }
.wyl-account-book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.wyl-account-book-actions a, .wyl-account-book-actions button { padding: 0; border: 0; background: transparent; color: var(--wyl-blue); font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer; }
.wyl-account-book-actions button { color: var(--wyl-muted); }
.wyl-account-book-actions button:hover { color: var(--wyl-red); }
.wyl-account-book.is-removing { opacity: .4; pointer-events: none; transition: opacity .18s ease; }
.wyl-account-empty { min-height: 134px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 24px; border: 1px dashed var(--wyl-line); background: rgba(255,255,255,.55); text-align: left; }
.wyl-account-empty-mark { width: 42px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; background: #e9eef0; color: var(--wyl-blue); font-family: "Songti SC", serif; }
.wyl-account-empty h2 { margin: 0; color: var(--wyl-ink); font-size: 15px; }
.wyl-account-empty p { margin: 3px 0 0; color: var(--wyl-muted); font-size: 11px; }
.wyl-account-empty > a { margin-left: 10px; padding: 7px 12px; border: 1px solid var(--wyl-line); color: var(--wyl-blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.wyl-account-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.wyl-account-mini-panel { min-width: 0; border: 1px solid var(--wyl-line); background: #fff; }
.wyl-account-mini-panel > header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border-bottom: 1px solid var(--wyl-line); }
.wyl-account-mini-panel h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 17px; }
.wyl-account-mini-panel header p { margin: 2px 0 0; color: var(--wyl-muted); font-size: 10px; }
.wyl-account-mini-panel header a { color: var(--wyl-blue); font-size: 10px; font-weight: 700; text-decoration: none; }
.wyl-account-mini-panel ul { margin: 0; padding: 0; list-style: none; }
.wyl-account-mini-panel li + li { border-top: 1px solid var(--wyl-line); }
.wyl-account-mini-panel li a { position: relative; min-height: 49px; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 9px 15px; text-decoration: none; }
.wyl-account-mini-panel li.is-unread a { padding-left: 25px; }
.wyl-account-mini-panel li.is-unread a::before { content: ""; position: absolute; left: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--wyl-red); }
.wyl-account-mini-panel li strong { min-width: 0; overflow: hidden; color: var(--wyl-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-account-mini-panel li span { flex: 0 0 auto; color: var(--wyl-muted); font-size: 10px; }
.wyl-account-mini-empty { min-height: 95px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 16px; color: var(--wyl-muted); font-size: 11px; }
.wyl-account-mini-empty strong { color: var(--wyl-ink); font-size: 12px; }
.wyl-account-mini-empty a { margin-top: 5px; color: var(--wyl-blue); font-weight: 700; text-decoration: none; }
.wyl-profile-list { display: grid; gap: 10px; }
.wyl-profile-panel { border: 1px solid var(--wyl-line); background: #fff; }
.wyl-profile-panel summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; cursor: pointer; list-style: none; }
.wyl-profile-panel summary::-webkit-details-marker { display: none; }
.wyl-profile-panel summary > span { min-width: 0; display: grid; gap: 3px; }
.wyl-profile-panel summary strong { color: var(--wyl-ink); font-size: 14px; }
.wyl-profile-panel summary small { overflow-wrap: anywhere; color: var(--wyl-muted); font-size: 10px; }
.wyl-profile-panel summary small.is-verified { color: var(--wyl-jade); }
.wyl-profile-panel summary small.is-missing { color: var(--wyl-red); }
.wyl-profile-panel summary i { width: 9px; height: 9px; border-right: 1px solid var(--wyl-blue); border-bottom: 1px solid var(--wyl-blue); transform: rotate(45deg); transition: transform .15s ease; }
.wyl-profile-panel[open] summary i { transform: rotate(225deg); }
.wyl-profile-panel-body { padding: 18px 16px; border-top: 1px solid var(--wyl-line); background: #fbfcfc; }
.wyl-profile-panel-body .wyl-auth-form { max-width: 660px; }
.wyl-profile-panel-body .wyl-auth-submit { justify-self: start; min-width: 120px; padding: 0 20px; }
.wyl-password-field,
.wyl-code-field { position: relative; display: block; }
.wyl-password-field input,
.wyl-code-field input { min-width: 0; padding-right: 76px !important; }
.wyl-code-field input { padding-right: 128px !important; }
.wyl-password-field button,
.wyl-code-field button {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 6px;
  bottom: 6px;
  min-width: 58px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: color-mix(in srgb, var(--wyl-blue) 8%, transparent);
  color: var(--wyl-blue);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.wyl-code-field button { min-width: 106px; }
.wyl-password-field button:hover,
.wyl-code-field button:hover { background: color-mix(in srgb, var(--wyl-jade) 13%, transparent); color: var(--wyl-jade); }
.wyl-password-field button:active,
.wyl-code-field button:active { transform: scale(.97); }
.wyl-toast { position: fixed; right: 24px; bottom: 24px; z-index: 10000; max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--wyl-jade) 68%, transparent); border-radius: 10px; background: var(--wyl-ink); color: #fff; box-shadow: 0 8px 28px rgba(16,42,67,.22); font-size: 12px; }
.wyl-toast.is-error { border-color: color-mix(in srgb, var(--wyl-red) 72%, transparent); }

.wyl-catalog-page, .wyl-authors-page { min-height: 72vh; }
.wyl-catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin: 4px 0 28px; padding: 24px 28px; border-top: 3px solid var(--wyl-blue-2); background: #f2efe7; }
.wyl-catalog-head h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 34px; line-height: 1.25; letter-spacing: .06em; }
.wyl-catalog-head > div > p:last-child { max-width: 760px; margin: 8px 0 0; color: var(--wyl-muted); font-size: 13px; }
.wyl-catalog-count { min-width: 130px; padding-left: 26px; border-left: 1px solid #c9c7bf; text-align: right; }
.wyl-catalog-count strong { display: block; color: var(--wyl-ink); font-family: Georgia, serif; font-size: 32px; line-height: 1; }
.wyl-catalog-count span { display: block; margin-top: 8px; color: var(--wyl-muted); font-size: 11px; }
.wyl-catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 30px; align-items: start; }
.wyl-filter-shell { position: sticky; top: 94px; }
.wyl-filter-panel { border: 1px solid var(--wyl-line); background: #fff; }
.wyl-filter-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--wyl-line); color: var(--wyl-ink); font-weight: 750; cursor: pointer; list-style: none; }
.wyl-filter-panel summary::-webkit-details-marker { display: none; }
.wyl-filter-panel summary::after { content: "−"; margin-left: auto; color: var(--wyl-blue); font-size: 18px; }
.wyl-filter-panel:not([open]) summary::after { content: "+"; }
.wyl-filter-panel summary small { color: var(--wyl-muted); font-size: 10px; font-weight: 500; }
.wyl-filter-panel form { display: grid; gap: 13px; padding: 17px; }
.wyl-filter-field { display: grid; gap: 5px; }
.wyl-filter-field > span { color: var(--wyl-muted); font-size: 11px; font-weight: 700; }
.wyl-filter-field select, .wyl-sort select { width: 100%; height: 39px; padding: 0 31px 0 10px; border: 1px solid #cbd5de; border-radius: 0; background: #fff; color: var(--wyl-ink); }
.wyl-filter-field select:disabled { background: #f2f4f5; color: var(--wyl-faint); }
.wyl-filter-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding-top: 4px; }
.wyl-filter-actions a { color: var(--wyl-muted); font-size: 12px; text-decoration: none; }
.wyl-catalog-results { min-width: 0; }
.wyl-catalog-toolbar { min-height: 43px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--wyl-line); }
.wyl-active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wyl-active-filters > span { color: var(--wyl-muted); font-size: 12px; }
.wyl-active-filters a { display: inline-flex; gap: 7px; align-items: center; padding: 4px 8px; border: 1px solid #cbd5de; background: #fff; color: var(--wyl-blue-2); font-size: 11px; text-decoration: none; }
.wyl-active-filters a span { color: var(--wyl-faint); font-size: 14px; }
.wyl-sort { min-width: 128px; }
.wyl-sort select { height: 34px; font-size: 12px; }
.wyl-catalog-results .wyl-list-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.wyl-author-hero { display: flex; align-items: center; gap: 24px; margin: 4px 0 30px; padding: 28px 30px; border-top: 3px solid var(--wyl-blue-2); background: #f2efe7; }
.wyl-author-mark, .wyl-author-letter { display: grid; place-items: center; flex: 0 0 auto; background: var(--wyl-ink); color: #fff; font-family: "Songti SC", serif; }
.wyl-author-mark { width: 82px; height: 82px; font-size: 32px; }
.wyl-author-hero h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 36px; }
.wyl-author-hero p:last-child { margin: 7px 0 0; color: var(--wyl-muted); font-size: 13px; }
.wyl-author-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wyl-author-grid > a { min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--wyl-line); background: rgba(255,255,255,.55); text-decoration: none; }
.wyl-author-grid > a:hover { border-color: var(--wyl-blue); background: #fff; }
.wyl-author-letter { width: 46px; height: 52px; background: #e8edef; color: var(--wyl-blue-2); font-size: 20px; }
.wyl-author-grid > a > span:nth-child(2) { min-width: 0; display: grid; }
.wyl-author-grid strong { overflow: hidden; color: var(--wyl-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-author-grid small { margin-top: 3px; color: var(--wyl-muted); font-size: 10px; }
.wyl-author-grid b { margin-left: auto; color: var(--wyl-faint); font-weight: 400; }

.wyl-rankings-page, .wyl-collections-page { min-height: 72vh; }
.wyl-discovery-head { margin-bottom: 24px; }
.wyl-ranking-section { padding: 25px 0 30px; border-top: 1px solid var(--wyl-line); }
.wyl-ranking-section:first-of-type { border-top: 0; padding-top: 4px; }
.wyl-ranking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 18px; }
.wyl-ranking-head > div { max-width: 820px; }
.wyl-ranking-head p { margin: 0 0 3px; color: var(--wyl-jade); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.wyl-ranking-head h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 25px; letter-spacing: .05em; }
.wyl-ranking-head span { display: block; margin-top: 6px; color: var(--wyl-muted); font-size: 12px; }
.wyl-ranking-head small { min-width: max-content; padding: 4px 8px; border: 1px solid var(--wyl-line); color: var(--wyl-muted); font-size: 10px; }
.wyl-ranking-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.wyl-ranking-grid .wyl-rank { min-width: 30px; height: 30px; font-size: 14px; }

.wyl-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--wyl-line); border-top: 1px solid var(--wyl-line); }
.wyl-collection-grid > a { min-height: 218px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--wyl-line); border-bottom: 1px solid var(--wyl-line); background: rgba(255,255,255,.5); text-decoration: none; }
.wyl-collection-grid > a:hover { position: relative; z-index: 1; background: #fff; box-shadow: inset 0 3px var(--wyl-jade); }
.wyl-collection-grid p { margin: 0; color: var(--wyl-jade); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.wyl-collection-grid h2 { margin: 8px 0 10px; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.wyl-collection-grid > a > span { color: var(--wyl-muted); font-size: 12px; line-height: 1.8; }
.wyl-collection-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; color: var(--wyl-blue); }
.wyl-collection-grid footer b { font-family: Georgia, serif; font-size: 13px; }
.wyl-collection-grid footer em { font-size: 11px; font-style: normal; font-weight: 750; }
.wyl-collection-hero { margin: 4px 0 30px; padding: 28px 30px; border-top: 3px solid var(--wyl-blue-2); background: #f2efe7; }
.wyl-collection-hero h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 38px; letter-spacing: .06em; }
.wyl-collection-hero > div:first-child > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--wyl-muted); font-size: 13px; }
.wyl-collection-books { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.wyl-message-total { padding-bottom: 10px; color: var(--wyl-muted); font-size: 12px; }
.wyl-message-list { border-top: 1px solid var(--wyl-line); }
.wyl-message-item { position: relative; padding: 16px 18px 17px 22px; border: 1px solid var(--wyl-line); border-top: 0; background: #fff; }
.wyl-message-item.is-unread::before { content: ""; position: absolute; left: 8px; top: 23px; width: 6px; height: 6px; border-radius: 50%; background: var(--wyl-red); }
.wyl-message-item.is-read { background: rgba(255,255,255,.55); }
.wyl-message-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--wyl-muted); font-size: 10px; }
.wyl-message-meta span { color: var(--wyl-blue); font-weight: 750; }
.wyl-message-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 5px; }
.wyl-message-item h2 { margin: 0 0 2px; color: var(--wyl-ink); font-size: 15px; }
.wyl-message-title button { flex: 0 0 auto; padding: 3px 8px; border: 1px solid var(--wyl-line); background: #fff; color: var(--wyl-blue); font-size: 10px; cursor: pointer; }
.wyl-message-title button:hover { border-color: var(--wyl-blue); }
.wyl-message-title button:disabled { color: var(--wyl-faint); cursor: wait; }
.wyl-message-item p { margin: 0; color: var(--wyl-muted); font-size: 12px; line-height: 1.7; }
.wyl-message-status { display: block; min-height: 0; margin-top: 2px; color: var(--wyl-jade); font-size: 10px; }
.wyl-message-status:empty { display: none; }
.wyl-message-pages { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 20px; color: var(--wyl-muted); font-size: 12px; }
.wyl-message-pages a { padding: 6px 12px; border: 1px solid var(--wyl-line); background: #fff; color: var(--wyl-blue); text-decoration: none; }
.wyl-message-read-all { min-height: 34px; padding: 6px 12px; border: 1px solid var(--wyl-line); background: #fff; color: var(--wyl-blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.wyl-message-read-all:hover { border-color: var(--wyl-blue); }
.wyl-message-read-all:disabled { color: var(--wyl-faint); cursor: wait; }

.wyl-auth-page { min-height: calc(100vh - 180px); display: grid; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.wyl-auth-shell { width: min(920px, 100%); display: grid; grid-template-columns: 340px minmax(0, 1fr); margin: 0 auto; border: 1px solid var(--wyl-line); background: #fff; box-shadow: var(--wyl-shadow); }
.wyl-auth-intro { padding: 42px 36px; border-top: 4px solid var(--wyl-jade); background: #f0eee7; }
.wyl-auth-intro h1 { margin: 5px 0 12px; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 34px; line-height: 1.2; letter-spacing: .05em; }
.wyl-auth-intro > p:last-of-type { margin: 0; color: var(--wyl-muted); font-size: 13px; line-height: 1.8; }
.wyl-auth-intro dl { display: grid; gap: 9px; margin: 34px 0 0; }
.wyl-auth-intro dl > div { display: flex; justify-content: space-between; gap: 18px; padding-top: 9px; border-top: 1px solid rgba(16,42,67,.12); font-size: 11px; }
.wyl-auth-intro dt { color: var(--wyl-muted); }
.wyl-auth-intro dd { margin: 0; color: var(--wyl-ink); font-weight: 750; }
.wyl-auth-card { min-width: 0; padding: 31px 38px 34px; }
.wyl-auth-nav { display: flex; gap: 22px; margin-bottom: 25px; border-bottom: 1px solid var(--wyl-line); }
.wyl-auth-nav a { position: relative; padding: 0 0 11px; color: var(--wyl-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.wyl-auth-nav a.is-active { color: var(--wyl-ink); }
.wyl-auth-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wyl-jade); }
.wyl-auth-notice { margin: 0 0 18px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--wyl-blue) 24%, var(--wyl-line)); border-radius: 8px; background: #eef3f6; color: var(--wyl-ink-2); font-size: 12px; }
.wyl-auth-notice.is-error { border-color: color-mix(in srgb, var(--wyl-red) 30%, var(--wyl-line)); background: #fbf0ed; }
.wyl-auth-notice.is-success { border-color: color-mix(in srgb, var(--wyl-jade) 30%, var(--wyl-line)); background: #eef7f4; }
.wyl-auth-form { display: grid; gap: 15px; }
.wyl-auth-form label { display: grid; gap: 5px; color: var(--wyl-muted); font-size: 11px; font-weight: 700; }
.wyl-auth-form input[type="text"], .wyl-auth-form input[type="email"], .wyl-auth-form input[type="password"] { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #c4cfd8; border-radius: 0; background: #fff; color: var(--wyl-ink); font-size: 14px; font-weight: 500; }
.wyl-auth-form input:focus { border-color: var(--wyl-jade); outline: 3px solid rgba(29,122,99,.12); outline-offset: 0; }
.wyl-auth-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wyl-code-field button:disabled { border-color: var(--wyl-line); color: var(--wyl-faint); cursor: wait; }
.wyl-auth-inline { min-height: 0; margin-top: -8px; color: var(--wyl-muted); font-size: 11px; }
.wyl-auth-inline:not(:empty) { min-height: 18px; }
.wyl-auth-inline.is-error { color: var(--wyl-red); }
.wyl-auth-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 7px !important; width: max-content; font-weight: 500 !important; cursor: pointer; }
.wyl-auth-check input { margin: 0; accent-color: var(--wyl-jade); }
.wyl-auth-submit, .wyl-auth-empty .wyl-primary-button { min-height: 43px; display: grid; place-items: center; border: 1px solid var(--wyl-blue-2); background: var(--wyl-blue-2); color: #fff; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; }
.wyl-auth-submit:hover, .wyl-auth-empty .wyl-primary-button:hover { background: var(--wyl-ink); }
.wyl-auth-switch { width: 100%; margin-top: 13px; padding: 8px; border: 0; background: transparent; color: var(--wyl-blue); font-size: 12px; cursor: pointer; }
.wyl-auth-switch:hover { text-decoration: underline; text-underline-offset: 3px; }
.wyl-auth-help { margin: -3px 0 0; color: var(--wyl-faint); font-size: 10px; line-height: 1.65; }
.wyl-auth-empty { display: grid; gap: 10px; padding: 28px 0; text-align: center; }
.wyl-auth-empty strong { color: var(--wyl-ink); font-size: 19px; }
.wyl-auth-empty p { margin: 0 0 8px; color: var(--wyl-muted); font-size: 12px; }
.wyl-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1200px) {
  .wyl-header-inner { gap: 20px; }
  .wyl-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; padding: 10px 28px; border-bottom: 1px solid var(--wyl-line); background: var(--wyl-paper); }
  .wyl-primary-nav.is-open { display: block; }
  .wyl-nav-list { justify-content: center; }
  .wyl-nav-toggle { display: block; order: 4; }
  .wyl-book-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .wyl-genre-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-book-entity { grid-template-columns: minmax(0, 1fr) 320px; }
  .wyl-entity-main { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .wyl-entity-cover { width: 230px; }
  .wyl-catalog-results .wyl-list-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wyl-author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-ranking-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-collection-books { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wyl-header-search { display: none; }
  .wyl-main { width: min(100% - 32px, 1360px); }
  .wyl-intro { grid-template-columns: 1fr; gap: 20px; }
  .wyl-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-book-entity { grid-template-columns: 1fr; }
  .wyl-entity-actions { grid-template-columns: 250px minmax(0, 1fr); }
  .wyl-related .wyl-book-grid, .wyl-list-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-account-layout { grid-template-columns: 1fr; }
  .wyl-account-nav { position: static; display: flex; overflow-x: auto; }
  .wyl-account-nav a { min-width: max-content; border-bottom: 0; border-right: 1px solid var(--wyl-line); }
  .wyl-account-nav a.is-active { box-shadow: inset 0 3px var(--wyl-blue); }
  .wyl-account-book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .wyl-catalog-results .wyl-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-ranking-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-collection-hero { grid-template-columns: 1fr; gap: 18px; }
  .wyl-collection-books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wyl-header-inner { width: calc(100% - 24px); height: 62px; gap: 10px; }
  .wyl-brand svg { width: 31px; height: 31px; }
  .wyl-brand strong { font-size: 18px; }
  .wyl-brand small, .wyl-account span { display: none; }
  .wyl-primary-nav { top: 62px; padding: 8px 12px; }
  .wyl-nav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .wyl-nav-list a { display: block; padding: 10px; text-align: center; }
  .wyl-main { width: calc(100% - 24px); padding-top: 16px; }
  .wyl-intro { min-height: 0; padding: 23px 18px; }
  .wyl-intro h1 { font-size: 27px; letter-spacing: .08em; }
  .wyl-intro-copy > p:last-child { font-size: 13px; }
  .wyl-intro-search .wyl-search { height: 44px; }
  .wyl-section-head h2 { font-size: 21px; }
  .wyl-book-grid, .wyl-related .wyl-book-grid, .wyl-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 11px; }
  .wyl-book-copy h3 { font-size: 13px; }
  .wyl-card-meta span:nth-child(n+2) { display: none; }
  .wyl-genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-genre-grid a { min-height: 63px; padding: 9px 11px; }
  .wyl-entity-main { grid-template-columns: 112px minmax(0, 1fr); gap: 17px; align-items: start; }
  .wyl-entity-cover { width: 112px; font-size: 42px; box-shadow: 0 5px 18px rgba(16,42,67,.1); }
  .wyl-entity-copy h1 { font-size: 27px; }
  .wyl-entity-author { margin: 6px 0 11px; font-size: 14px; }
  .wyl-entity-lead { grid-column: 1 / -1; display: none; }
  .wyl-fact-line { gap: 5px; font-size: 12px; }
  .wyl-feature-row { grid-column: 1 / -1; display: block; }
  .wyl-feature-row > div { margin-top: 6px; }
  .wyl-entity-actions { grid-template-columns: 1fr; }
  .wyl-site-footer { margin-top: 20px; }
  .wyl-site-footer { background-position: 58% 62%; }
  .wyl-footer-inner { width: calc(100% - 32px); min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 22px 0 18px; }
  .wyl-footer-inner nav { gap: 16px; }
  .wyl-copyright { grid-column: auto; }
  .wyl-account-head { align-items: center; padding: 14px; }
  .wyl-account-identity img { width: 48px; height: 48px; }
  .wyl-account-identity h1 { font-size: 21px; }
  .wyl-account-identity > div > p:last-child { display: none; }
  .wyl-account-setting { min-height: 34px; padding: 6px 10px; }
  .wyl-account-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .wyl-account-nav a { min-width: 0; min-height: 44px; justify-content: center; padding: 9px 6px; border-right: 1px solid var(--wyl-line); border-bottom: 1px solid var(--wyl-line); text-align: center; }
  .wyl-account-nav a:nth-child(3n) { border-right: 0; }
  .wyl-account-nav a:nth-last-child(-n+3) { border-bottom: 0; }
  .wyl-account-nav a b { position: absolute; margin: -24px 0 0 64px; }
  .wyl-account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-account-stats > div, .wyl-account-stats > a { min-height: 75px; padding: 12px; }
  .wyl-checkin-card { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .wyl-checkin-icon { width: 32px; height: 32px; }
  .wyl-checkin-copy { display: grid; gap: 1px; }
  .wyl-checkin-card button { grid-column: 1 / -1; width: 100%; }
  .wyl-account-section-head { margin-top: 20px; }
  .wyl-account-book-list { grid-template-columns: 1fr; }
  .wyl-account-book-list.is-preview .wyl-account-book:nth-child(n+4) { display: none; }
  .wyl-account-book { grid-template-columns: 72px minmax(0, 1fr); }
  .wyl-account-overview-grid { grid-template-columns: 1fr; }
  .wyl-account-empty { display: grid; justify-items: center; text-align: center; }
  .wyl-account-empty > a { margin-left: 0; }
  .wyl-profile-panel-body { padding: 15px 12px; }
  .wyl-profile-panel-body .wyl-auth-submit { width: 100%; justify-self: stretch; }
  .wyl-password-field button { min-width: 52px; }
  .wyl-message-title { align-items: flex-start; }
  .wyl-message-meta { display: grid; gap: 2px; }
  .wyl-catalog-head { align-items: flex-start; padding: 20px; }
  .wyl-catalog-head h1 { font-size: 27px; }
  .wyl-catalog-count { min-width: 84px; padding-left: 14px; }
  .wyl-catalog-count strong { font-size: 25px; }
  .wyl-catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .wyl-filter-shell { position: static; }
  .wyl-filter-panel:not([open]) summary { border-bottom: 0; }
  .wyl-catalog-toolbar { align-items: center; }
  .wyl-catalog-results .wyl-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-author-hero { gap: 16px; padding: 20px; }
  .wyl-author-mark { width: 62px; height: 62px; font-size: 25px; }
  .wyl-author-hero h1 { font-size: 28px; }
  .wyl-author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-ranking-head { gap: 12px; }
  .wyl-ranking-head span { font-size: 11px; }
  .wyl-ranking-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 11px; }
  .wyl-collection-grid { grid-template-columns: 1fr; }
  .wyl-collection-grid > a { min-height: 178px; padding: 20px; }
  .wyl-collection-hero { padding: 20px; }
  .wyl-collection-hero h1 { font-size: 29px; }
  .wyl-collection-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-auth-page { padding-top: 24px; padding-bottom: 36px; }
  .wyl-auth-shell { grid-template-columns: 1fr; }
  .wyl-auth-intro { padding: 25px 24px; }
  .wyl-auth-intro h1 { font-size: 27px; }
  .wyl-auth-intro dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .wyl-auth-intro dl > div { display: grid; gap: 2px; }
  .wyl-auth-card { padding: 24px; }
}
@media (max-width: 380px) {
  .wyl-book-grid, .wyl-related .wyl-book-grid, .wyl-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-catalog-results .wyl-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-author-grid { grid-template-columns: 1fr; }
  .wyl-ranking-grid, .wyl-collection-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-auth-card { padding: 20px 16px; }
  .wyl-auth-nav { gap: 15px; }
  .wyl-auth-two { grid-template-columns: 1fr; }
  .wyl-auth-intro dl { grid-template-columns: 1fr; }
}

/* 0.8 home: compact editorial library layout, grounded in the selected visual reference. */
body.home.wyl-library { background: #fff; }
body.home .wyl-site-header { background: rgba(255, 255, 255, .97); }
body.home .wyl-header-inner { width: min(1416px, calc(100% - 56px)); height: 70px; gap: 34px; }
body.home .wyl-brand-mark { width: 48px; height: 48px; object-fit: contain; }
body.home .wyl-brand strong { font-size: 24px; letter-spacing: .04em; }
body.home .wyl-brand small { margin-top: 3px; font-size: 10px; letter-spacing: .14em; }
body.home .wyl-primary-nav { margin-left: 20px; }
body.home .wyl-nav-list { gap: 38px; }
body.home .wyl-nav-list a { font-family: "Songti SC", "STSong", serif; font-size: 16px; }
body.home .wyl-header-search { max-width: 510px; }
body.home .wyl-search { height: 38px; border-color: #9caebb; border-radius: 8px; overflow: hidden; }
body.home .wyl-search .wyl-icon { width: 20px; height: 20px; margin-left: 14px; color: var(--wyl-ink); }
body.home .wyl-search button { min-width: 70px; background: var(--wyl-blue-2); }
.wyl-header-message { position: relative; width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; color: var(--wyl-ink); text-decoration: none; }
.wyl-header-message:hover { color: var(--wyl-blue); }
.wyl-header-message b { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: var(--wyl-red); color: #fff; font-size: 8px; line-height: 1; }
body.home .wyl-account strong { max-width: 82px; }

body.home .wyl-main { width: min(1420px, calc(100% - 56px)); padding: 12px 0 0; }
body.home .wyl-intro {
  min-height: 150px;
  display: block;
  padding: 31px 64px;
  border: 0;
  border-radius: 4px;
  background-color: #f3f0e8;
  background-image: url("../images/hero-ink-library.webp");
  background-size: cover;
  background-position: center;
}
body.home .wyl-intro::before,
body.home .wyl-intro::after { display: none; }
body.home .wyl-intro-copy { max-width: 620px; }
body.home .wyl-intro h1 { font-size: clamp(30px, 3.2vw, 43px); letter-spacing: .15em; }
body.home .wyl-intro-copy > p:last-child { display: flex; align-items: center; gap: 13px; margin: 12px 0 0 8px; color: #435a6d; font-family: "Songti SC", "STSong", serif; font-size: 16px; letter-spacing: .16em; }
body.home .wyl-intro-copy > p:last-child span { width: 30px; height: 1px; background: #718594; }
body.home .wyl-shelf,
body.home .wyl-genres { padding-top: 18px; }
body.home .wyl-section-head { margin-bottom: 12px; border-bottom: 0; }
body.home .wyl-section-head > div:first-child { padding: 0; }
body.home .wyl-section-head h2 { font-size: 23px; }
.wyl-section-actions { display: flex; align-items: center; gap: 20px; padding-bottom: 1px; }
.wyl-section-actions button,
.wyl-section-actions a { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--wyl-blue); font-size: 12px; font-weight: 700; line-height: 28px; text-decoration: none; cursor: pointer; }
.wyl-section-actions button:hover,
.wyl-section-actions a:hover { color: var(--wyl-jade); }
.wyl-section-actions .wyl-icon { width: 15px; height: 15px; }
.wyl-batch-slot { min-width: 0; }
.wyl-batch-slot[hidden] { display: none !important; }
body.home .wyl-book-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 18px 24px; }
body.home #new .wyl-book-grid,
body.home #discovery .wyl-book-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 28px; }
body.home .wyl-book-cover { box-shadow: 0 4px 12px rgba(16, 42, 67, .09); }
body.home .wyl-book-card.is-arrival .wyl-book-cover { aspect-ratio: 3 / 4; }
body.home .wyl-book-card.is-arrival .wyl-book-cover img { object-position: center; }
body.home .wyl-book-copy { padding-top: 6px; }
body.home .wyl-book-copy h3 { font-family: "Songti SC", "STSong", serif; font-size: 14px; }
body.home .wyl-card-author { margin: 2px 0; font-size: 11px; }
.wyl-card-facts { display: flex; gap: 0; margin: 0 0 4px; overflow: hidden; color: #698093; font-size: 10px; white-space: nowrap; }
.wyl-card-facts span + span::before { content: " · "; }
body.home .wyl-card-meta { gap: 5px; }
body.home .wyl-card-meta span { border-color: #ddb5ab; background: #fffaf8; color: #a04c3c; }
body.home .wyl-card-meta span:nth-child(2n) { border-color: #b9d9cf; background: #f4fbf8; color: #24735e; }
body.home .wyl-rank { min-width: 24px; height: 24px; }

body.home .wyl-genre-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; border: 0; }
body.home .wyl-genre-grid a { min-height: 0; display: block; padding: 0; overflow: hidden; border: 0; background: transparent; }
body.home .wyl-genre-grid a:hover { background: transparent; }
body.home .wyl-genre-grid img { width: 100%; aspect-ratio: 3.2 / 1; display: block; object-fit: cover; border-radius: 3px; transition: transform .25s, filter .25s; }
body.home .wyl-genre-grid a:hover img { transform: translateY(-2px); filter: saturate(1.05); }
.wyl-genre-copy { display: grid; gap: 1px; padding: 5px 3px 0; }
body.home .wyl-genre-grid strong { font-size: 15px; }
body.home .wyl-genre-grid small { overflow: hidden; color: #718598; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1200px) {
  body.home .wyl-header-inner { gap: 18px; }
  body.home .wyl-primary-nav { margin-left: 0; }
  body.home .wyl-book-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.home .wyl-genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.home .wyl-main { width: min(100% - 32px, 1420px); }
  body.home .wyl-intro { padding: 28px 34px; background-position: 58% center; }
  body.home .wyl-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.home .wyl-genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.home .wyl-header-inner { width: calc(100% - 24px); height: 62px; gap: 9px; }
  body.home .wyl-brand-mark { width: 34px; height: 34px; }
  body.home .wyl-brand strong { font-size: 18px; }
  .wyl-header-message { width: 32px; height: 32px; flex-basis: 32px; }
  body.home .wyl-main { width: calc(100% - 24px); }
  body.home .wyl-intro { min-height: 132px; padding: 25px 20px; background-position: 61% center; }
  body.home .wyl-intro h1 { max-width: 255px; font-size: 26px; line-height: 1.35; }
  body.home .wyl-intro-copy > p:last-child { margin-left: 0; font-size: 12px; }
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 11px; }
  body.home .wyl-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  body.home .wyl-card-facts span:first-child { display: none; }
  .wyl-section-actions { gap: 11px; }
}
@media (max-width: 380px) {
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 0.10 information architecture and interaction polish. */
.wyl-book-summary {
  max-width: 760px;
  margin-top: 16px;
  border-top: 1px solid var(--wyl-line);
  border-bottom: 1px solid var(--wyl-line);
}
.wyl-book-summary summary,
.wyl-book-comments > summary,
.wyl-ranking-section > summary,
.wyl-genre-directory-item > summary,
.wyl-collection-card > summary {
  cursor: pointer;
  list-style: none;
}
.wyl-book-summary summary::-webkit-details-marker,
.wyl-book-comments > summary::-webkit-details-marker,
.wyl-ranking-section > summary::-webkit-details-marker,
.wyl-genre-directory-item > summary::-webkit-details-marker,
.wyl-collection-card > summary::-webkit-details-marker { display: none; }
.wyl-book-summary summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--wyl-blue-2);
  font-size: 13px;
  font-weight: 750;
}
.wyl-book-summary summary i,
.wyl-book-comments > summary i,
.wyl-ranking-head i,
.wyl-genre-directory-item summary i,
.wyl-collection-card summary i {
  width: 9px;
  height: 9px;
  display: block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.wyl-book-summary[open] summary i,
.wyl-book-comments[open] > summary i,
.wyl-ranking-section[open] .wyl-ranking-head i,
.wyl-genre-directory-item[open] summary i,
.wyl-collection-card[open] summary i { transform: rotate(225deg); }
.wyl-book-summary > p { margin: 0; padding: 13px 0 17px; color: var(--wyl-muted); font-family: "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.9; }

.wyl-book-comments {
  max-width: none;
  margin-top: 26px;
  padding-top: 0;
  border: 1px solid var(--wyl-line);
  background: rgba(255,255,255,.48);
}
.wyl-book-comments > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  color: var(--wyl-ink);
  font-weight: 750;
}
.wyl-book-comments > summary small { color: var(--wyl-muted); font-size: 11px; font-weight: 500; }
.wyl-book-comments > summary i { margin-left: auto; color: var(--wyl-blue); }
.wyl-book-comments-body { padding: 0 18px 20px; border-top: 1px solid var(--wyl-line); }
.wyl-comments-inner { max-width: 860px; padding-top: 5px; }

.wyl-ranking-section {
  display: block;
  padding: 0;
  border: 1px solid var(--wyl-line);
  border-top: 0;
  background: rgba(255,255,255,.35);
}
.wyl-ranking-section:first-of-type { padding-top: 0; border-top: 1px solid var(--wyl-line); }
.wyl-ranking-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  margin: 0;
  padding: 14px 18px;
}
.wyl-ranking-head:hover { background: rgba(255,255,255,.65); }
.wyl-ranking-head h2 { font-size: 21px; }
.wyl-ranking-head span { margin: 0; color: var(--wyl-muted); font-size: 11px; }
.wyl-ranking-head i { margin-left: auto; color: var(--wyl-blue); }
.wyl-ranking-section .wyl-ranking-grid,
.wyl-ranking-section .wyl-collecting { margin: 0 18px 22px; }
.wyl-ranking-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 22px; }

.wyl-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.wyl-collection-card { min-width: 0; border: 1px solid var(--wyl-line); background: rgba(255,255,255,.5); }
.wyl-collection-card > summary { min-height: 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 15px; align-items: center; padding: 17px 18px; }
.wyl-collection-card > summary:hover { background: #fff; }
.wyl-collection-card > summary > span { min-width: 0; display: grid; gap: 3px; }
.wyl-collection-card > summary small { overflow: hidden; color: var(--wyl-jade); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.wyl-collection-card > summary strong { overflow: hidden; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-collection-card > summary > b { color: var(--wyl-muted); font-size: 11px; font-weight: 500; }
.wyl-collection-card > summary i { color: var(--wyl-blue); }
.wyl-collection-card > div { padding: 15px 18px 18px; border-top: 1px solid var(--wyl-line); }
.wyl-collection-card > div p { margin: 0 0 13px; color: var(--wyl-muted); font-size: 12px; line-height: 1.75; }
.wyl-collection-card > div a { color: var(--wyl-blue); font-size: 12px; font-weight: 750; text-decoration: none; }

.wyl-genres-page,
.wyl-new-page { min-height: 72vh; }
.wyl-genre-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wyl-genre-directory-item { min-width: 0; align-self: start; border: 1px solid var(--wyl-line); background: rgba(255,255,255,.55); }
.wyl-genre-directory-item > summary { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 15px 18px; }
.wyl-genre-directory-item > summary:hover { background: #fff; }
.wyl-genre-directory-item > summary > span { min-width: 0; display: grid; gap: 1px; }
.wyl-genre-directory-item > summary strong { color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.wyl-genre-directory-item > summary small { color: var(--wyl-muted); font-size: 10px; }
.wyl-genre-directory-item > summary i { margin-left: auto; color: var(--wyl-blue); }
.wyl-genre-directory-content { padding: 14px 17px 17px; border-top: 1px solid var(--wyl-line); }
.wyl-genre-all { display: inline-flex; margin-bottom: 11px; color: var(--wyl-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.wyl-subgenre-links { display: flex; flex-wrap: wrap; gap: 6px; }
.wyl-subgenre-links a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid #d5dde3; background: #fff; color: var(--wyl-ink-2); font-size: 11px; text-decoration: none; }
.wyl-subgenre-links a:hover { border-color: var(--wyl-jade); color: var(--wyl-jade); }
.wyl-subgenre-links small { color: var(--wyl-faint); font-size: 9px; }
.wyl-new-books { grid-template-columns: repeat(8, minmax(0, 1fr)); }

body.home .wyl-book-grid,
body.home #new .wyl-book-grid,
body.home #discovery .wyl-book-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px 25px; }
body.home .wyl-section-head > a { padding-bottom: 1px; }

@media (max-width: 1200px) {
  body.wyl-nav-open::after { content: ""; position: fixed; inset: 72px 0 0; z-index: 90; background: rgba(16,42,67,.24); backdrop-filter: blur(2px); }
  .wyl-primary-nav { z-index: 101; box-shadow: 0 12px 25px rgba(16,42,67,.12); }
  .wyl-new-books { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wyl-genre-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wyl-ranking-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-new-books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.wyl-nav-open { overflow: hidden; }
  body.wyl-nav-open::after { top: 62px; }
  .wyl-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-nav-list a { padding: 12px 10px; }
  .wyl-book-summary { margin-top: 12px; }
  .wyl-book-summary summary { min-height: 38px; }
  .wyl-book-summary > p { max-height: 14em; overflow: auto; padding-top: 10px; font-size: 13px; }
  .wyl-book-comments > summary { min-height: 48px; }
  .wyl-book-comments-body { padding: 0 13px 16px; }
  .wyl-related { margin-top: 18px; }
  .wyl-ranking-head { min-height: 58px; padding: 12px 14px; }
  .wyl-ranking-head h2 { font-size: 19px; }
  .wyl-ranking-section .wyl-ranking-grid,
  .wyl-ranking-section .wyl-collecting { margin: 0 13px 17px; }
  .wyl-ranking-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 11px; }
  .wyl-collection-grid,
  .wyl-genre-directory { grid-template-columns: 1fr; gap: 9px; }
  .wyl-collection-card > summary { min-height: 72px; padding: 13px 15px; }
  .wyl-collection-card > summary strong { font-size: 18px; }
  .wyl-genre-directory-item > summary { min-height: 64px; padding: 12px 15px; }
  .wyl-new-books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 11px; }
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 11px; }
}
@media (max-width: 380px) {
  .wyl-ranking-grid,
  .wyl-new-books,
  body.home .wyl-book-grid,
  body.home #new .wyl-book-grid,
  body.home #discovery .wyl-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 0.11 mainstream novel experience: clearer cards, mobile search and app-like navigation. */
:root {
  --wyl-app-bg: #f5f7f8;
  --wyl-card: #fff;
  --wyl-card-radius: 10px;
  --wyl-card-shadow: 0 4px 18px rgba(16, 42, 67, .065);
  --wyl-touch: 44px;
}

.wyl-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}
.wyl-section-head > a .wyl-icon,
.wyl-section-actions .wyl-icon,
.wyl-account-mini-panel header a .wyl-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}
.wyl-download-list a > b .wyl-icon,
.wyl-author-grid b .wyl-icon,
.wyl-collection-card > div a .wyl-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
}

body.wyl-library { background: var(--wyl-app-bg); }
.wyl-site-header {
  border-bottom-color: rgba(16, 42, 67, .08);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(16, 42, 67, .045);
}
.wyl-mobile-search-toggle,
.wyl-mobile-tabbar { display: none; }
.wyl-mobile-search-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wyl-ink);
  cursor: pointer;
}
.wyl-mobile-search-toggle:hover { background: #eef3f5; }
.wyl-mobile-search-toggle .wyl-icon { width: 21px; height: 21px; }
.wyl-mobile-search-toggle .wyl-search-close-icon { display: none; }
.wyl-mobile-search-toggle[aria-expanded="true"] .wyl-search-open-icon { display: none; }
.wyl-mobile-search-toggle[aria-expanded="true"] .wyl-search-close-icon { display: block; }
.wyl-search,
.wyl-filter-field select,
.wyl-sort select,
.wyl-auth-form input[type="text"],
.wyl-auth-form input[type="email"],
.wyl-auth-form input[type="password"] { border-radius: 8px; }
.wyl-search { overflow: hidden; }
.wyl-search button { border-radius: 0; }
.wyl-account .wyl-login,
.wyl-button,
.wyl-auth-submit,
.wyl-auth-empty .wyl-primary-button { border-radius: 8px; }

.wyl-intro,
.wyl-catalog-head,
.wyl-filter-panel,
.wyl-account-head,
.wyl-account-nav,
.wyl-account-stats > div,
.wyl-account-stats > a,
.wyl-checkin-card,
.wyl-account-book,
.wyl-account-mini-panel,
.wyl-account-empty,
.wyl-profile-panel,
.wyl-message-item,
.wyl-ranking-section,
.wyl-collection-card,
.wyl-genre-directory-item,
.wyl-auth-shell { border-radius: var(--wyl-card-radius); }
.wyl-catalog-head,
.wyl-account-head,
.wyl-account-stats > div,
.wyl-account-stats > a,
.wyl-checkin-card,
.wyl-account-book,
.wyl-account-mini-panel,
.wyl-filter-panel,
.wyl-profile-panel,
.wyl-message-item,
.wyl-auth-shell { box-shadow: var(--wyl-card-shadow); }
.wyl-catalog-head {
  border: 0;
  background: linear-gradient(135deg, #fff 0%, #f0f5f3 100%);
}
.wyl-filter-panel,
.wyl-account-nav,
.wyl-account-head,
.wyl-account-stats > div,
.wyl-account-stats > a,
.wyl-account-book,
.wyl-account-mini-panel,
.wyl-profile-panel,
.wyl-message-item { border-color: rgba(16, 42, 67, .1); }
.wyl-book-cover,
.wyl-account-book-cover { border-radius: 7px; }
.wyl-book-card:hover .wyl-book-copy h3 a { color: var(--wyl-jade); }
.wyl-book-card:hover img { transform: translateY(-2px) scale(1.02); }
.wyl-book-cover img { transition: transform .22s ease, filter .22s ease; }
.wyl-section-head h2,
.wyl-account-mini-panel h2 { letter-spacing: .02em; }

.wyl-account-page { max-width: 1260px; }
.wyl-account-head { padding: 20px 24px; }
.wyl-account-identity img { box-shadow: 0 0 0 4px #edf4f2; }
.wyl-account-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 20px; }
.wyl-account-nav { overflow: hidden; padding: 7px; border: 0; }
.wyl-account-nav a {
  position: relative;
  min-height: 45px;
  justify-content: flex-start;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}
.wyl-account-nav a + a { margin-top: 2px; }
.wyl-account-nav a > .wyl-icon { width: 19px; height: 19px; flex: 0 0 19px; }
.wyl-account-nav a em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wyl-account-nav a.is-active { box-shadow: none; background: #e9f3f0; color: var(--wyl-jade); }
.wyl-account-nav a b { margin-left: auto; }
.wyl-account-stats > div,
.wyl-account-stats > a { min-height: 104px; padding: 16px 17px 15px 54px; border: 0; }
.wyl-account-stats > div > em,
.wyl-account-stats > a > em {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f3f0;
  color: var(--wyl-jade);
  font-size: 16px;
  font-style: normal;
}
.wyl-account-stats strong { margin-top: 8px; font-size: 25px; }
.wyl-checkin-card { border: 1px solid #b8d3c9; }
.wyl-checkin-card button { min-height: 42px; border-radius: 8px; }
.wyl-account-book { border: 0; }
.wyl-account-book-actions a,
.wyl-account-book-actions button { min-height: 28px; display: inline-flex; align-items: center; }
.wyl-account-mini-panel { overflow: hidden; border: 0; }
.wyl-profile-signout { display: none; }

@media (max-width: 900px) {
  .wyl-mobile-search-toggle { display: grid; margin-left: auto; }
  .wyl-header-search {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    z-index: 104;
    display: none;
    max-width: none;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(16, 42, 67, .1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(16, 42, 67, .18);
  }
  .wyl-header-search.is-open { display: block; }
  body.wyl-search-open::after {
    content: "";
    position: fixed;
    inset: 72px 0 0;
    z-index: 99;
    background: rgba(16, 42, 67, .25);
    backdrop-filter: blur(2px);
  }
  .wyl-header-search .wyl-search { height: 46px; }
  .wyl-account-layout { grid-template-columns: 1fr; }
  .wyl-account-nav { position: static; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .wyl-account-nav a { min-width: 0; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 7px 4px; text-align: center; }
  .wyl-account-nav a + a { margin-top: 0; }
  .wyl-account-nav a b { position: absolute; top: 3px; left: 50%; margin-left: 10px; }
  .wyl-account-nav .wyl-account-logout { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  html[style*="margin-top"] { margin-top: 0 !important; }
  #wpadminbar { display: none !important; }
  body.wyl-library { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.wyl-search-open { overflow: hidden; }
  body.wyl-search-open::after { top: 58px; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wyl-site-header { height: 58px; }
  .wyl-header-inner,
  body.home .wyl-header-inner { width: calc(100% - 24px); height: 58px; gap: 5px; }
  .wyl-brand { gap: 7px; }
  .wyl-brand svg,
  body.home .wyl-brand-mark { width: 30px; height: 30px; }
  .wyl-brand-image { max-width: 126px; height: 34px; }
  .wyl-brand strong,
  body.home .wyl-brand strong { font-size: 17px; letter-spacing: .02em; }
  .wyl-brand small { display: none; }
  .wyl-nav-toggle,
  .wyl-primary-nav { display: none !important; }
  .wyl-mobile-search-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .wyl-header-search { left: 12px; right: 12px; top: 65px; padding: 8px; }
  .wyl-header-message { width: 36px; height: 38px; flex-basis: 36px; }
  .wyl-header-message b { right: -1px; }
  .wyl-account { min-width: 38px; }
  .wyl-account > a { min-width: 38px; min-height: 38px; justify-content: center; }
  .wyl-account img { width: 31px; height: 31px; }
  .wyl-account .wyl-login { min-width: 44px; padding: 5px 7px; border: 0; border-radius: 7px; background: #eef3f5; font-size: 12px; }
  .wyl-site-footer { display: none; }
  .wyl-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    height: calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px 6px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(16, 42, 67, .1);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -5px 20px rgba(16, 42, 67, .075);
    backdrop-filter: blur(16px);
  }
  .wyl-mobile-tabbar a {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1px;
    border-radius: 8px;
    color: #718194;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .wyl-mobile-tabbar a:active { background: #edf4f2; transform: scale(.98); }
  .wyl-mobile-tabbar a.is-active { color: var(--wyl-jade); }
  .wyl-mobile-tabbar a.is-active::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--wyl-jade); }
  .wyl-mobile-tabbar .wyl-icon { width: 22px; height: 22px; }
  .wyl-mobile-tabbar b { font-size: 10px; font-weight: 650; }

  .wyl-main,
  body.home .wyl-main { width: calc(100% - 24px); padding-top: 14px; padding-bottom: 28px; }
  .wyl-breadcrumb { margin-bottom: 13px; }
  .wyl-intro,
  body.home .wyl-intro { border-radius: 10px; }
  body.home .wyl-intro { min-height: 124px; padding: 22px 17px; background-position: 65% center; }
  body.home .wyl-intro h1 { max-width: 240px; font-size: 24px; letter-spacing: .08em; }
  body.home .wyl-intro-copy > p:last-child { max-width: 210px; margin-top: 6px; font-size: 11px; letter-spacing: .06em; }
  body.home .wyl-shelf,
  body.home .wyl-genres { padding-top: 20px; }
  .wyl-section-head { min-height: 38px; margin-bottom: 11px; }
  .wyl-section-head h2,
  body.home .wyl-section-head h2 { font-size: 19px; letter-spacing: 0; }
  .wyl-section-head p { display: none; }
  .wyl-section-head > a,
  .wyl-section-actions a,
  .wyl-section-actions button { min-height: var(--wyl-touch); align-items: center; }
  .wyl-section-actions { gap: 4px; }

  body.home .wyl-shelf .wyl-book-grid {
    width: calc(100% + 12px);
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 1px 12px 7px 0;
    scroll-padding-left: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  body.home .wyl-shelf .wyl-book-grid::-webkit-scrollbar,
  .wyl-account-book-list.is-preview::-webkit-scrollbar { display: none; }
  body.home .wyl-shelf .wyl-batch-slot { flex: 0 0 108px; scroll-snap-align: start; }
  body.home .wyl-shelf .wyl-book-card { width: 100%; }
  body.home .wyl-card-meta { display: none; }
  body.home .wyl-card-facts { margin-bottom: 0; }
  body.home .wyl-genre-grid { gap: 10px; }
  body.home .wyl-genre-grid a { border-radius: 8px; }
  body.home .wyl-genre-grid img { border-radius: 8px; }

  .wyl-catalog-head { align-items: center; gap: 12px; margin: 0 0 15px; padding: 16px; }
  .wyl-catalog-head h1 { font-size: 24px; letter-spacing: .02em; }
  .wyl-catalog-head > div > p:last-child { display: none; }
  .wyl-catalog-count { min-width: 63px; padding-left: 10px; border-left-color: rgba(16, 42, 67, .12); }
  .wyl-catalog-count strong { font-size: 23px; }
  .wyl-catalog-count span { margin-top: 4px; font-size: 9px; }
  .wyl-catalog-layout { gap: 12px; }
  .wyl-filter-panel { overflow: hidden; border: 0; box-shadow: var(--wyl-card-shadow); }
  .wyl-filter-panel summary { min-height: 50px; padding: 12px 14px; border: 0; }
  .wyl-filter-panel form { padding: 12px 14px 15px; border-top: 1px solid var(--wyl-line); }
  .wyl-filter-field select,
  .wyl-sort select { min-height: var(--wyl-touch); }
  .wyl-filter-actions .wyl-button { min-height: var(--wyl-touch); }
  .wyl-catalog-toolbar { min-height: 46px; margin-bottom: 12px; }
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-ranking-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 10px; }

  .wyl-genre-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .wyl-genre-directory-item { border: 0; border-radius: 9px; background: #fff; box-shadow: var(--wyl-card-shadow); }
  .wyl-genre-directory-item[open] { grid-column: 1 / -1; }
  .wyl-genre-directory-item > summary { min-height: 62px; gap: 8px; padding: 11px 12px; }
  .wyl-genre-directory-item > summary strong { font-size: 17px; }
  .wyl-genre-directory-item > summary small { font-size: 9px; }
  .wyl-genre-directory-content { padding: 12px; }
  .wyl-subgenre-links a { min-height: 34px; border-radius: 6px; }

  .wyl-account-page { width: 100%; padding: 12px 12px 24px; }
  .wyl-account-head { margin-bottom: 10px; padding: 13px; border: 0; }
  .wyl-account-identity { gap: 11px; }
  .wyl-account-identity img { width: 50px; height: 50px; }
  .wyl-account-identity h1 { max-width: 175px; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
  .wyl-account-identity p { margin-top: 1px; font-size: 10px; }
  .wyl-account-setting { min-width: 42px; min-height: 40px; display: grid; place-items: center; padding: 5px 9px; border: 0; border-radius: 8px; background: #eef3f5; font-size: 11px; }
  .wyl-account-layout { gap: 11px; }
  .wyl-account-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px; border: 0; border-radius: 10px; box-shadow: var(--wyl-card-shadow); }
  .wyl-account-nav a { min-height: 58px; border: 0 !important; border-radius: 7px; font-size: 9px; }
  .wyl-account-nav a > .wyl-icon { width: 20px; height: 20px; }
  .wyl-account-nav a.is-active { box-shadow: none; }
  .wyl-account-nav a b { top: 2px; margin-left: 8px; }
  .wyl-account-stats { gap: 9px; }
  .wyl-account-stats > div,
  .wyl-account-stats > a { min-height: 89px; padding: 13px 12px 12px 47px; border: 0; border-radius: 10px; }
  .wyl-account-stats > div > em,
  .wyl-account-stats > a > em { left: 12px; top: 13px; width: 27px; height: 27px; }
  .wyl-account-stats span { font-size: 10px; }
  .wyl-account-stats strong { margin-top: 7px; font-size: 22px; }
  .wyl-account-stats i { display: none; }
  .wyl-checkin-card { grid-template-columns: 35px minmax(0, 1fr) auto; margin-top: 9px; padding: 11px; }
  .wyl-checkin-card button { grid-column: auto; width: auto; min-width: 88px; min-height: 40px; padding: 6px 10px; font-size: 11px; }
  .wyl-checkin-icon { width: 33px; height: 33px; }
  .wyl-checkin-copy strong { font-size: 14px; }
  .wyl-checkin-copy span { font-size: 9px; }
  .wyl-account-section-head { margin: 19px 0 8px; padding-bottom: 0; border: 0; }
  .wyl-account-section-head h1,
  .wyl-account-section-head h2 { font-size: 19px; }
  .wyl-account-book-list.is-preview {
    width: calc(100% + 12px);
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 1px 12px 7px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .wyl-account-book-list.is-preview .wyl-account-book {
    flex: 0 0 128px;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
  }
  .wyl-account-book-list.is-preview .wyl-account-book:nth-child(n) { display: block; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy { padding: 7px 2px 0; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy h3 { font-size: 12px; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy > p { margin-top: 2px; }
  .wyl-account-book-list.is-preview .wyl-account-book-meta { display: none; }
  .wyl-account-book-list.is-preview .wyl-account-book-actions { padding-top: 5px; }
  .wyl-account-book-list.is-preview .wyl-account-book-actions a { display: none; }
  .wyl-account-book-list:not(.is-preview) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book { display: block; padding: 8px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy { padding-top: 7px; }
  .wyl-account-overview-grid { gap: 9px; margin-top: 17px; }
  .wyl-account-mini-panel > header { min-height: 58px; padding: 10px 13px; border: 0; }
  .wyl-account-mini-panel h2 { font-size: 15px; }
  .wyl-account-mini-panel .wyl-account-mini-empty { min-height: 0; padding: 0 13px 12px; }
  .wyl-account-mini-panel .wyl-account-mini-empty strong { display: none; }
  .wyl-account-mini-panel li a { min-height: var(--wyl-touch); }
  .wyl-profile-panel { overflow: hidden; border: 0; box-shadow: var(--wyl-card-shadow); }
  .wyl-profile-panel summary { min-height: 58px; }
  .wyl-profile-signout { min-height: 46px; display: grid; place-items: center; margin-top: 12px; border-radius: 9px; background: #fff; color: var(--wyl-red); font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: var(--wyl-card-shadow); }
  .wyl-message-item { border: 0; }

  .wyl-auth-page { width: 100%; padding: 12px 12px 28px; }
  .wyl-auth-shell { overflow: hidden; border: 0; }
  .wyl-auth-intro { padding: 21px 19px; }
  .wyl-auth-intro dl { display: none; }
  .wyl-auth-card { padding: 22px 19px 24px; }
  .wyl-auth-form input[type="text"],
  .wyl-auth-form input[type="email"],
  .wyl-auth-form input[type="password"],
  .wyl-auth-submit,
  .wyl-code-field button { min-height: var(--wyl-touch); }
}

@media (max-width: 380px) {
  .wyl-brand strong,
  body.home .wyl-brand strong { font-size: 16px; }
  .wyl-account-book-list.is-preview .wyl-account-book { flex-basis: 116px; }
  body.home .wyl-shelf .wyl-batch-slot { flex-basis: 101px; }
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-ranking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-checkin-copy span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-book-cover img,
  .wyl-mobile-tabbar a { transition: none !important; }
}

/* 0.28.0: report workflow with a review-first, non-destructive contract. */
.wyl-comment-foot { align-items: center; gap: 13px; }
.wyl-comment-foot :is(button,.wyl-comment-like) { min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: var(--wyl-muted); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.wyl-comment-foot :is(button,.wyl-comment-like):hover { color: var(--wyl-jade); }
.wyl-comment-report-content { color: var(--wyl-ink); }
.wyl-comment-report-form { display:grid; gap:14px; }
.wyl-comment-report-context { margin:0; padding:10px 12px; border:1px solid var(--wyl-line); border-radius:10px; background:var(--wyl-surface-soft); color:var(--wyl-ink-2); font-size:12px; overflow-wrap:anywhere; }
.wyl-comment-report-form label { display:grid; gap:6px; color:var(--wyl-muted); font-size:11px; font-weight:750; }
.wyl-comment-report-form label small { font-weight:500; }
.wyl-comment-report-form :is(select,textarea) { width:100%; box-sizing:border-box; padding:10px 11px; border:1px solid var(--wyl-line); border-radius:10px; background:var(--wyl-surface-raised); color:var(--wyl-ink); font-size:16px; line-height:1.5; }
.wyl-comment-report-form textarea { min-height:106px; resize:vertical; }
.wyl-comment-report-form :is(select,textarea):focus { border-color:var(--wyl-jade); outline:0; box-shadow:0 0 0 3px rgba(29,122,99,.12); }
.wyl-comment-report-status { min-height:18px; margin:0; color:var(--wyl-muted); font-size:11px; }
.wyl-comment-report-actions { display:flex; justify-content:flex-end; gap:8px; }
.wyl-comment-report-actions button { min-height:42px; padding:8px 16px; border-radius:10px; font-size:12px; font-weight:750; cursor:pointer; }
.wyl-comment-report-cancel { border:1px solid var(--wyl-line); background:transparent; color:var(--wyl-muted); }
.wyl-comment-report-submit { border:1px solid var(--wyl-jade); background:var(--wyl-jade); color:#fff; }
.wyl-comment-report-submit[aria-busy="true"] { opacity:.58; cursor:wait; }
.wyl-auth-notice a { color:inherit; font-weight:800; text-underline-offset:3px; }
.wyl-appeal-form textarea { width:100%; min-height:150px; box-sizing:border-box; resize:vertical; }
.wyl-account-restriction{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:14px 16px;border:1px solid var(--wyl-line);border-radius:12px;background:var(--wyl-surface-soft);color:var(--wyl-ink)}
.wyl-account-restriction strong{font-size:13px}.wyl-account-restriction p{margin:3px 0 0;color:var(--wyl-muted);font-size:11px}.wyl-account-restriction a{flex:none;color:var(--wyl-jade);font-size:12px;font-weight:750;text-decoration:none}
html[data-wyl-theme="dark"] .wyl-comment-report-form :is(select,textarea) { background:var(--wyl-surface-soft); }
@media(max-width:640px){.wyl-comment-foot{gap:12px}.wyl-comment-foot :is(button,.wyl-comment-like){min-height:40px}.wyl-comment-report-actions{display:grid;grid-template-columns:1fr 1fr}.wyl-comment-report-actions button{width:100%}.wyl-account-restriction{align-items:flex-start;flex-direction:column}.wyl-account-restriction a{min-height:40px;display:inline-flex;align-items:center}}
.wyl-search-empty{display:grid;justify-items:center;gap:8px}
.wyl-search-empty p{max-width:58ch;margin:0;color:var(--wyl-muted);line-height:1.75}
.wyl-search-empty-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:10px}
.wyl-search-suggestions{margin-top:34px}

/* 0.27.2: readable moderation state in the comment workflow. */
.wyl-comment-like.is-disabled { opacity: .56; cursor: not-allowed; }
.wyl-comment-restricted {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, #b13a3a 42%, var(--wyl-line));
  border-radius: 12px;
  background: color-mix(in srgb, #b13a3a 6%, var(--wyl-surface-raised));
  color: var(--wyl-ink);
}
.wyl-comment-restricted strong { display: block; color: #a32f2f; font-size: 14px; }
.wyl-comment-restricted p { margin: 5px 0 0; color: var(--wyl-muted); font-size: 12px; line-height: 1.65; }
html[data-wyl-theme="dark"] .wyl-comment-restricted strong { color: #ff9999; }

/* 0.12: download-first home and community booklists */
.wyl-home { max-width: 1320px; }
.wyl-featured-book {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 32px 56px;
  border-radius: 22px;
  background: linear-gradient(125deg, #e7f0ed 0%, #f7f1e5 48%, #dce9e5 100%);
  box-shadow: 0 18px 60px rgba(16, 42, 67, .1);
}
.wyl-featured-carousel { position: relative; }
.wyl-featured-track { display: grid; }
.wyl-featured-track > .wyl-featured-book {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px) scale(.995);
  transition: opacity .42s var(--wyl-ease-out), transform .42s var(--wyl-ease-out), visibility 0s linear .42s;
}
.wyl-featured-track > .wyl-featured-book.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.wyl-featured-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(255,255,255,.9), transparent 28%), linear-gradient(90deg, transparent, rgba(255,255,255,.42));
  pointer-events: none;
}
.wyl-featured-art { position: relative; z-index: 1; height: 246px; display: grid; place-items: center; }
.wyl-featured-art img { width: 172px; height: 230px; object-fit: cover; border-radius: 10px; box-shadow: 0 20px 42px rgba(16, 42, 67, .24); transform: rotate(-2deg); }
.wyl-featured-copy { position: relative; z-index: 1; max-width: 720px; }
.wyl-featured-copy h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: .02em; }
.wyl-featured-meta { margin: 10px 0 0; color: var(--wyl-jade); font-size: 14px; font-weight: 750; }
.wyl-featured-intro { max-width: 660px; margin: 15px 0 22px; color: #536477; line-height: 1.8; }
.wyl-featured-action { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 12px; background: var(--wyl-ink); color: #fff; font-size: 13px; font-weight: 750; text-decoration: none; box-shadow: 0 8px 20px rgba(16,42,67,.18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.wyl-featured-action:hover { background: var(--wyl-jade); box-shadow: 0 12px 28px rgba(29,122,99,.22); transform: translateY(-2px); }
.wyl-featured-action .wyl-icon { width: 17px; }
.wyl-home-genres { display: flex; gap: 9px; margin-top: 22px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: none; }
.wyl-home-genres::-webkit-scrollbar { display: none; }
.wyl-home-genres a { flex: 0 0 auto; min-height: 36px; display: grid; place-items: center; padding: 0 16px; border: 1px solid rgba(16,42,67,.11); border-radius: 999px; background: #fff; color: var(--wyl-muted); font-size: 12px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.wyl-home-genres a:hover, .wyl-home-genres a.is-active { border-color: var(--wyl-jade); background: var(--wyl-jade); color: #fff; }
.wyl-home-shelf, .wyl-home-booklists { padding-top: 28px; }
.wyl-home-book-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 17px; }
.wyl-home-book-row .wyl-book-card { min-width: 0; }
.wyl-home-book-row .wyl-book-cover { border: 0; border-radius: 10px; box-shadow: 0 8px 22px rgba(16,42,67,.12); }
.wyl-home-book-row .wyl-card-meta { display: none; }
.wyl-booklist-head-actions { display: flex; align-items: center; gap: 18px; padding-bottom: 8px !important; }
.wyl-booklist-head-actions a { display: inline-flex; align-items: center; gap: 5px; color: var(--wyl-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.wyl-booklist-head-actions a.is-create { color: var(--wyl-jade); }
.wyl-booklist-head-actions .wyl-icon { width: 16px; height: 16px; }
.wyl-booklist-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wyl-booklist-card { min-width: 0; display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 15px; padding: 15px; border: 1px solid rgba(16,42,67,.09); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(16,42,67,.055); transition: transform .2s ease, box-shadow .2s ease; }
.wyl-booklist-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16,42,67,.1); }
.wyl-booklist-covers { position: relative; height: 112px; display: block; text-decoration: none; }
.wyl-booklist-cover { position: absolute; bottom: 0; width: 68px; height: 92px; overflow: hidden; border: 2px solid #fff; border-radius: 7px; background: #e9efef; box-shadow: 0 5px 14px rgba(16,42,67,.16); }
.wyl-booklist-cover img { width: 100%; height: 100%; object-fit: cover; }
.wyl-booklist-cover b { height: 100%; display: grid; place-items: center; color: var(--wyl-faint); font-family: serif; }
.wyl-booklist-cover.is-1 { left: 0; z-index: 3; transform: rotate(-3deg); }
.wyl-booklist-cover.is-2 { left: 34px; z-index: 2; transform: translateY(-5px); }
.wyl-booklist-cover.is-3 { left: 68px; z-index: 1; transform: rotate(3deg); }
.wyl-booklist-copy { min-width: 0; }
.wyl-booklist-copy h3 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: 17px; line-height: 1.45; }
.wyl-booklist-copy h3 a { color: inherit; text-decoration: none; }
.wyl-booklist-copy p { margin: 7px 0 0; color: var(--wyl-muted); font-size: 11px; }

.wyl-booklist-page { max-width: 1180px; }
.wyl-booklist-mobile-back { display: none; }
.wyl-booklist-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; padding: 38px 44px; border-radius: 22px; background: linear-gradient(135deg, #e7f1ed, #f9f6ee); }
.wyl-booklist-hero-covers { position: relative; height: 260px; }
.wyl-booklist-hero-covers img { position: absolute; bottom: 0; left: 70px; width: 150px; height: 205px; object-fit: cover; border: 4px solid #fff; border-radius: 10px; box-shadow: 0 18px 36px rgba(16,42,67,.2); }
.wyl-booklist-hero-covers .is-1 { z-index: 3; }
.wyl-booklist-hero-covers .is-2 { left: 15px; z-index: 1; transform: rotate(-9deg) scale(.88); }
.wyl-booklist-hero-covers .is-3 { left: 130px; z-index: 2; transform: rotate(9deg) scale(.88); }
.wyl-booklist-hero-copy h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; }
.wyl-booklist-by { margin: 10px 0; color: var(--wyl-jade); font-size: 13px; font-weight: 750; }
.wyl-booklist-description { color: var(--wyl-muted); line-height: 1.8; }
.wyl-booklist-description p { margin: 8px 0; }
.wyl-booklist-favorite { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 15px; border: 1px solid var(--wyl-line); border-radius: 11px; background: #fff; color: var(--wyl-ink); font-weight: 750; cursor: pointer; }
.wyl-booklist-favorite.is-active { border-color: #dca8a3; background: #fff4f2; color: var(--wyl-red); }
.wyl-booklist-favorite .wyl-icon { width: 18px; }
.wyl-booklist-favorite b { padding-left: 7px; border-left: 1px solid currentColor; font-size: 11px; }
.wyl-booklist-browse-more {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px auto 0;
  color: var(--wyl-blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.wyl-booklist-browse-more .wyl-icon { width: 17px; height: 17px; }

.wyl-booklist-new { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--wyl-jade); color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.wyl-booklist-new .wyl-icon { width: 16px; }
.wyl-booklist-editor { overflow: hidden; margin-bottom: 18px; border: 1px solid rgba(16,42,67,.09); border-radius: 14px; background: #fff; box-shadow: var(--wyl-card-shadow); }
.wyl-booklist-editor > summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; cursor: pointer; list-style: none; }
.wyl-booklist-editor > summary::-webkit-details-marker { display: none; }
.wyl-booklist-editor > summary span { display: grid; }
.wyl-booklist-editor > summary strong { color: var(--wyl-ink); font-size: 15px; }
.wyl-booklist-editor > summary small { margin-top: 2px; color: var(--wyl-muted); font-size: 10px; }
.wyl-booklist-editor > summary i { width: 9px; height: 9px; border-right: 2px solid var(--wyl-muted); border-bottom: 2px solid var(--wyl-muted); transform: rotate(45deg); transition: transform .2s ease; }
.wyl-booklist-editor[open] > summary i { transform: rotate(225deg); }
.wyl-booklist-editor.is-sheet-source { display: none; }
.wyl-booklist-form { display: grid; gap: 14px; padding: 18px; border-top: 1px solid var(--wyl-line); }
.wyl-booklist-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.wyl-booklist-form label { display: grid; gap: 5px; color: var(--wyl-ink); font-size: 11px; font-weight: 750; }
.wyl-booklist-form input, .wyl-booklist-form textarea, .wyl-booklist-form select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--wyl-line); border-radius: 8px; background: #fff; color: var(--wyl-ink); outline: none; }
.wyl-booklist-form input:focus, .wyl-booklist-form textarea:focus, .wyl-booklist-form select:focus { border-color: var(--wyl-jade); box-shadow: 0 0 0 3px rgba(29,122,99,.1); }
.wyl-booklist-search { position: relative; }
.wyl-booklist-search > .wyl-booklist-search-status { position: absolute; right: 10px; top: 50%; color: var(--wyl-muted); font-size: 10px; transform: translateY(-50%); }
.wyl-booklist-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.wyl-booklist-search-results button { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px; border: 1px solid var(--wyl-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.wyl-booklist-search-results button:disabled { opacity: .5; }
.wyl-booklist-search-results img { width: 42px; height: 56px; object-fit: cover; border-radius: 4px; }
.wyl-booklist-search-results span { min-width: 0; display: grid; }
.wyl-booklist-search-results strong, .wyl-booklist-search-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wyl-booklist-search-results strong { color: var(--wyl-ink); font-size: 12px; }
.wyl-booklist-search-results small { color: var(--wyl-muted); font-size: 10px; }
.wyl-booklist-search-results b { color: var(--wyl-jade); font-size: 10px; }
.wyl-booklist-selected { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.wyl-booklist-selected article { position: relative; min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 28px 6px 6px; border-radius: 8px; background: var(--wyl-soft); }
.wyl-booklist-selected img { width: 42px; height: 56px; object-fit: cover; border-radius: 4px; }
.wyl-booklist-selected span { min-width: 0; display: grid; }
.wyl-booklist-selected strong, .wyl-booklist-selected small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wyl-booklist-selected strong { color: var(--wyl-ink); font-size: 11px; }
.wyl-booklist-selected small { color: var(--wyl-muted); font-size: 9px; }
.wyl-booklist-selected button { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; color: var(--wyl-red); cursor: pointer; }
.wyl-booklist-rule { margin: 0; color: var(--wyl-muted); font-size: 10px; line-height: 1.65; }
.wyl-booklist-form-actions { display: flex; align-items: center; gap: 13px; }
.wyl-booklist-form-actions a { color: var(--wyl-muted); font-size: 11px; }
.wyl-booklist-sheet { --wys-sheet-max-height: min(88dvh, 820px); }
.wyl-booklist-sheet .wys-app-sheet-panel { border: 1px solid color-mix(in srgb, var(--wyl-line) 88%, transparent); }
.wyl-booklist-sheet .wyl-booklist-form.is-sheet-copy { padding: 2px 0 0; border: 0; }
.wyl-booklist-sheet .wyl-booklist-form input,
.wyl-booklist-sheet .wyl-booklist-form textarea { min-height: 50px; border-radius: 12px; background: var(--wyl-surface-soft); font-size: 16px; }
.wyl-booklist-sheet .wyl-booklist-form textarea { min-height: 108px; resize: vertical; }
.wyl-booklist-sheet .wyl-booklist-form-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.wyl-booklist-sheet .wyl-booklist-form-actions .wyl-auth-submit { width: 100%; min-height: 50px; border-radius: 12px; }
.wyl-booklist-sheet .wyl-booklist-search-results,
.wyl-booklist-sheet .wyl-booklist-selected { grid-template-columns: 1fr 1fr; }
.wyl-booklist-sheet .wys-app-choice-trigger { min-height: 50px; }
.wyl-booklist-sheet .wys-app-choice-menu { position: relative; z-index: 4; }
.wyl-booklist-sheet .wys-app-choice-menu button { font-size: 13px; }
@media (min-width: 641px) {
  .wyl-booklist-sheet .wys-app-sheet-panel { width: min(720px, calc(100vw - 48px)); max-height: min(820px, calc(100dvh - 48px)); }
}
.wyl-manage-booklists { display: grid; gap: 10px; }
.wyl-manage-booklists > article { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: var(--wyl-card-shadow); }
.wyl-manage-booklist-covers { min-height: 72px; display: flex; align-items: center; }
.wyl-manage-booklist-covers img { width: 50px; height: 68px; object-fit: cover; border: 2px solid #fff; border-radius: 5px; box-shadow: 0 4px 12px rgba(16,42,67,.14); }
.wyl-manage-booklist-covers img + img { margin-left: -20px; }
.wyl-manage-booklists p { margin: 0; color: var(--wyl-jade); font-size: 9px; font-weight: 750; }
.wyl-manage-booklists h2 { margin: 2px 0; color: var(--wyl-ink); font-size: 15px; }
.wyl-manage-booklists span { color: var(--wyl-muted); font-size: 10px; }
.wyl-manage-booklist-actions { display: flex; gap: 8px; }
.wyl-manage-booklist-actions a { padding: 6px 8px; color: var(--wyl-blue); font-size: 10px; font-weight: 700; }
.wyl-manage-booklist-actions a.is-danger { color: var(--wyl-red); }
.wyl-public-booklists, .wyl-auto-collections { padding-top: 22px; }

@media (max-width: 900px) {
  .wyl-home-book-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-booklist-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-booklist-selected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.wyl-library { --wyl-app-radius: 17px; background: #f7f8f8; }
  .wyl-site-header { border: 0; background: rgba(255,255,255,.94); box-shadow: 0 3px 18px rgba(16,42,67,.045); }
  .wyl-header-inner { gap: 2px; }
  .wyl-header-message, .wyl-mobile-search-toggle { border-radius: 50%; }
  .wyl-header-message:active, .wyl-mobile-search-toggle:active { background: #edf4f2; }
  .wyl-home { width: 100% !important; padding: 0 0 26px !important; }
  .wyl-featured-book { min-height: 238px; grid-template-columns: 108px minmax(0, 1fr); gap: 17px; margin: 10px 12px 0; padding: 20px 17px; border-radius: var(--wyl-app-radius); box-shadow: 0 12px 34px rgba(16,42,67,.09); }
  .wyl-featured-art { height: 176px; }
  .wyl-featured-art img { width: 105px; height: 150px; border-radius: 8px; transform: rotate(-2deg); }
  .wyl-featured-copy .wyl-kicker { margin-bottom: 5px; font-size: 9px; }
  .wyl-featured-copy h2 { display: -webkit-box; overflow: hidden; font-size: 24px; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .wyl-featured-meta { margin-top: 6px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .wyl-featured-intro { display: -webkit-box; overflow: hidden; margin: 7px 0 11px; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .wyl-featured-action { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 10px; }
  .wyl-home-genres { margin: 14px 12px 0; padding-bottom: 3px; }
  .wyl-home-genres a { min-height: 33px; padding: 0 14px; font-size: 10px; }
  .wyl-home-shelf, .wyl-home-booklists { padding: 20px 12px 0; }
  .wyl-home .wyl-section-head { min-height: 34px; margin-bottom: 10px; border: 0; }
  .wyl-home .wyl-section-head h2 { font-size: 19px; }
  .wyl-home .wyl-section-head > a, .wyl-booklist-head-actions a { min-height: 34px; padding: 0; font-size: 10px; }
  .wyl-home-book-row { width: calc(100% + 12px); display: flex; gap: 11px; overflow-x: auto; padding: 1px 12px 8px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .wyl-home-book-row::-webkit-scrollbar, .wyl-booklist-row::-webkit-scrollbar { display: none; }
  .wyl-home-book-row .wyl-book-card { flex: 0 0 102px; scroll-snap-align: start; }
  .wyl-home-book-row .wyl-book-copy { padding-top: 7px; }
  .wyl-home-book-row .wyl-book-copy h3 { font-size: 12px; }
  .wyl-home-book-row .wyl-card-author { margin: 2px 0 0; font-size: 9px; }
  .wyl-home-book-row .wyl-card-facts { font-size: 9px; }
  .wyl-rank { min-width: 22px; height: 23px; border-radius: 8px 0 8px 0; font-size: 10px; }
  .wyl-booklist-head-actions { gap: 12px; padding: 0 !important; }
  .wyl-booklist-head-actions .is-create { display: none; }
  .wyl-booklist-row { width: calc(100% + 12px); display: flex; gap: 10px; overflow-x: auto; padding: 1px 12px 8px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .wyl-booklist-card { flex: 0 0 246px; grid-template-columns: 106px minmax(0, 1fr); gap: 9px; padding: 11px; border: 0; border-radius: 14px; box-shadow: 0 8px 22px rgba(16,42,67,.065); scroll-snap-align: start; }
  .wyl-booklist-covers { height: 88px; }
  .wyl-booklist-cover { width: 52px; height: 72px; border-width: 1px; }
  .wyl-booklist-cover.is-2 { left: 26px; }
  .wyl-booklist-cover.is-3 { left: 52px; }
  .wyl-booklist-copy h3 { font-size: 14px; }
  .wyl-booklist-copy p { margin-top: 5px; font-size: 9px; }
  .wyl-mobile-tabbar { height: calc(64px + env(safe-area-inset-bottom)); padding-top: 5px; }
  .wyl-mobile-tabbar a { transition: color .18s ease, background .18s ease, transform .12s ease; }
  .wyl-mobile-tabbar .wyl-icon { width: 21px; height: 21px; }
  .wyl-mobile-tabbar b { font-size: 10px; }

  .wyl-account-nav a[href*="/messages/"] { display: none; }
  .wyl-account-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
  .wyl-booklist-new { min-height: 35px; font-size: 10px; }
  .wyl-booklist-form { padding: 13px; }
  .wyl-booklist-form-grid { grid-template-columns: 1fr; }
  .wyl-booklist-search-results { grid-template-columns: 1fr; }
  .wyl-booklist-selected { grid-template-columns: 1fr 1fr; }
  .wyl-booklist-selected article { grid-template-columns: 38px minmax(0, 1fr); }
  .wyl-booklist-selected img { width: 38px; height: 51px; }
  .wyl-booklist-rule { line-height: 1.55; }
  .wyl-booklist-sheet .wys-app-sheet-panel { border-radius: 24px 24px 0 0; }
  .wyl-booklist-sheet .wys-app-sheet-head { padding-inline: 20px; }
  .wyl-booklist-sheet .wys-app-sheet-heading h2 { font-size: 25px; }
  .wyl-booklist-sheet .wys-app-sheet-body { padding-inline: 20px; }
  .wyl-booklist-sheet .wyl-booklist-form-grid,
  .wyl-booklist-sheet .wyl-booklist-search-results,
  .wyl-booklist-sheet .wyl-booklist-selected { grid-template-columns: 1fr; }
  .wyl-manage-booklists > article { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; }
  .wyl-manage-booklist-covers { min-height: 62px; }
  .wyl-manage-booklist-covers img { width: 43px; height: 58px; }
  .wyl-manage-booklist-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--wyl-line); }

  .wyl-booklist-page { width: 100% !important; padding: 12px 12px 28px !important; }
  .wyl-booklist-mobile-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: -4px 0 8px;
    padding: 0 4px;
    color: var(--wyl-ink);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
  }
  .wyl-booklist-mobile-back .wyl-icon { width: 20px; height: 20px; }
  .wyl-booklist-hero { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 18px 14px; border-radius: 16px; }
  .wyl-booklist-hero-covers { height: 148px; }
  .wyl-booklist-hero-covers img { left: 27px; width: 78px; height: 112px; border-width: 2px; border-radius: 6px; }
  .wyl-booklist-hero-covers .is-2 { left: 1px; }
  .wyl-booklist-hero-covers .is-3 { left: 53px; }
  .wyl-booklist-hero-copy h1 { font-size: 23px; }
  .wyl-booklist-by { margin: 5px 0; font-size: 9px; }
  .wyl-booklist-description { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .wyl-booklist-favorite { min-height: 34px; margin-top: 6px; padding: 0 10px; font-size: 10px; }
  .wyl-booklist-books { padding-top: 20px; }
  .wyl-booklist-browse-more {
    min-height: 50px;
    margin-top: 14px;
    border: 1px solid var(--wyl-line);
    border-radius: 13px;
    background: var(--wyl-surface-raised);
  }

  .wyl-collections-page .wyl-catalog-head { align-items: flex-start; }
  .wyl-collections-page .wyl-catalog-head .wyl-button { min-height: 37px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
  .wyl-collections-page .wyl-booklist-row { width: calc(100% + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-featured-action, .wyl-booklist-card, .wyl-booklist-editor > summary i { transition: none !important; }
}

/* 0.13 visual system: app-like mobile, dark mode, and motion */
:root {
  --wyl-surface: #ffffff;
  --wyl-surface-raised: #ffffff;
  --wyl-surface-soft: #f2f6f5;
  --wyl-glass: rgba(255, 255, 255, .88);
  --wyl-app-bg: #f7f8f7;
  --wyl-card-shadow: 0 10px 28px rgba(16, 42, 67, .075);
  --wyl-card-shadow-hover: 0 18px 44px rgba(16, 42, 67, .13);
  --wyl-ease-out: cubic-bezier(.2, .8, .2, 1);
}

html[data-wyl-theme="dark"] {
  --wyl-ink: #eef5f7;
  --wyl-ink-2: #d7e3e7;
  --wyl-muted: #94a8b2;
  --wyl-faint: #6f858f;
  --wyl-line: #263844;
  --wyl-paper: #0a1117;
  --wyl-white: #101a22;
  --wyl-soft: #15232c;
  --wyl-blue: #84b9de;
  --wyl-blue-2: #b5d7ee;
  --wyl-jade: #56c6a4;
  --wyl-red: #ee8c7d;
  --wyl-surface: #101a22;
  --wyl-surface-raised: #14212a;
  --wyl-surface-soft: #17262f;
  --wyl-glass: rgba(10, 17, 23, .9);
  --wyl-app-bg: #0a1117;
  --wyl-shadow: 0 14px 42px rgba(0, 0, 0, .28);
  --wyl-card-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  --wyl-card-shadow-hover: 0 20px 52px rgba(0, 0, 0, .34);
}

@view-transition { navigation: none; }

.wyl-theme-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--wyl-ink);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .18s var(--wyl-ease-out);
}
.wyl-theme-toggle:hover { border-color: var(--wyl-line); background: var(--wyl-surface-soft); color: var(--wyl-jade); transform: rotate(8deg); }
.wyl-theme-toggle:active { transform: scale(.9); }
.wyl-theme-toggle .wyl-icon { width: 19px; height: 19px; }
.wyl-theme-icon-dark { display: none; }
html[data-wyl-theme="dark"] .wyl-theme-icon-light { display: none; }
html[data-wyl-theme="dark"] .wyl-theme-icon-dark { display: block; }

.wyl-main { animation: none; transform: none; }
.wyl-book-card,
.wyl-account-stats > div,
.wyl-account-stats > a,
.wyl-account-book,
.wyl-account-mini-panel,
.wyl-collection-card,
.wyl-genre-directory-item,
.wyl-ranking-section {
  transition: transform .22s var(--wyl-ease-out), box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
@media (hover: hover) {
  .wyl-account-stats > a:hover,
  .wyl-account-book:hover,
  .wyl-account-mini-panel:hover,
  .wyl-ranking-section:hover { transform: translateY(-2px); box-shadow: var(--wyl-card-shadow-hover); }
}
.wyl-profile-panel[open] > .wyl-profile-panel-body,
.wyl-booklist-editor[open] > .wyl-booklist-form,
.wyl-collection-card[open] > div,
.wyl-genre-directory-item[open] > .wyl-genre-directory-content { animation: wyl-panel-open .24s var(--wyl-ease-out) both; }
@keyframes wyl-panel-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.wyl-home-genres a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.wyl-genre-icon { width: 20px; height: 20px; display: block; flex: 0 0 auto; overflow: visible; }
.wyl-home-genres .wyl-genre-icon { width: 17px; height: 17px; }
.wyl-genre-directory-item > summary { grid-template-columns: 42px minmax(0, 1fr) auto; }
.wyl-genre-directory-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(29,122,99,.09);
  color: var(--wyl-jade);
  font-style: normal;
}
.wyl-genre-directory-icon .wyl-genre-icon { width: 23px; height: 23px; }
.wyl-featured-dots { display: none; }

/* Dark surfaces are explicit so the theme remains designed, not inverted. */
html[data-wyl-theme="dark"] body.wyl-library,
html[data-wyl-theme="dark"] body.home.wyl-library { background: var(--wyl-app-bg); color: var(--wyl-ink-2); }
html[data-wyl-theme="dark"] .wyl-site-header,
html[data-wyl-theme="dark"] body.home .wyl-site-header { border-bottom-color: var(--wyl-line); background: var(--wyl-glass); box-shadow: 0 3px 18px rgba(0,0,0,.2); }
html[data-wyl-theme="dark"] .wyl-search,
html[data-wyl-theme="dark"] .wyl-header-search,
html[data-wyl-theme="dark"] .wyl-account-head,
html[data-wyl-theme="dark"] .wyl-account-nav,
html[data-wyl-theme="dark"] .wyl-account-stats > div,
html[data-wyl-theme="dark"] .wyl-account-stats > a,
html[data-wyl-theme="dark"] .wyl-account-book,
html[data-wyl-theme="dark"] .wyl-account-mini-panel,
html[data-wyl-theme="dark"] .wyl-profile-panel,
html[data-wyl-theme="dark"] .wyl-message-item,
html[data-wyl-theme="dark"] .wyl-filter-panel,
html[data-wyl-theme="dark"] .wyl-auth-shell,
html[data-wyl-theme="dark"] .wyl-auth-card,
html[data-wyl-theme="dark"] .wyl-booklist-card,
html[data-wyl-theme="dark"] .wyl-booklist-editor,
html[data-wyl-theme="dark"] .wyl-manage-booklists > article,
html[data-wyl-theme="dark"] .wyl-booklist-favorite,
html[data-wyl-theme="dark"] .wyl-booklist-search-results button,
html[data-wyl-theme="dark"] .wyl-booklist-form input,
html[data-wyl-theme="dark"] .wyl-booklist-form textarea,
html[data-wyl-theme="dark"] .wyl-booklist-form select,
html[data-wyl-theme="dark"] .wyl-filter-field select,
html[data-wyl-theme="dark"] .wyl-sort select,
html[data-wyl-theme="dark"] .wyl-auth-form input[type="text"],
html[data-wyl-theme="dark"] .wyl-auth-form input[type="email"],
html[data-wyl-theme="dark"] .wyl-auth-form input[type="password"],
html[data-wyl-theme="dark"] .comment-list .comment-body,
html[data-wyl-theme="dark"] .comment-form textarea,
html[data-wyl-theme="dark"] .wyl-empty { border-color: var(--wyl-line); background: var(--wyl-surface-raised); color: var(--wyl-ink-2); }
html[data-wyl-theme="dark"] .wyl-home-genres a { border-color: var(--wyl-line); background: var(--wyl-surface); color: var(--wyl-muted); }
html[data-wyl-theme="dark"] .wyl-home-genres a:hover,
html[data-wyl-theme="dark"] .wyl-home-genres a.is-active { border-color: var(--wyl-jade); background: var(--wyl-jade); color: #07130f; }
html[data-wyl-theme="dark"] .wyl-catalog-head { background: linear-gradient(135deg, #14232c, #101a22); }
html[data-wyl-theme="dark"] .wyl-featured-book,
html[data-wyl-theme="dark"] .wyl-booklist-hero { background: linear-gradient(125deg, #132721, #2b261d 51%, #12231f); }
html[data-wyl-theme="dark"] .wyl-featured-book::before { background: radial-gradient(circle at 78% 28%, rgba(100,160,140,.14), transparent 28%), linear-gradient(90deg, transparent, rgba(255,255,255,.035)); }
html[data-wyl-theme="dark"] .wyl-featured-intro { color: var(--wyl-muted); }
html[data-wyl-theme="dark"] .wyl-mobile-tabbar { border-top-color: var(--wyl-line); background: rgba(16,26,34,.94); }
html[data-wyl-theme="dark"] .wyl-booklist-cover { border-color: #243641; }
html[data-wyl-theme="dark"] .wyl-booklist-selected button,
html[data-wyl-theme="dark"] .wyl-profile-signout { background: var(--wyl-surface); }
html[data-wyl-theme="dark"] .wyl-account-nav a.is-active,
html[data-wyl-theme="dark"] .wyl-account-stats > div > em,
html[data-wyl-theme="dark"] .wyl-account-stats > a > em { background: rgba(86,198,164,.13); }
html[data-wyl-theme="dark"] .wyl-book-cover img,
html[data-wyl-theme="dark"] .wyl-account-book-cover img { filter: brightness(.9) saturate(.92); }
html[data-wyl-theme="dark"] .wyl-book-card:hover img { filter: brightness(1) saturate(1); }
html[data-wyl-theme="dark"] .wyl-download-panel,
html[data-wyl-theme="dark"] .wyl-ranking-section,
html[data-wyl-theme="dark"] .wyl-collection-card,
html[data-wyl-theme="dark"] .wyl-genre-directory-item,
html[data-wyl-theme="dark"] .wyl-book-summary,
html[data-wyl-theme="dark"] .wyl-book-comments,
html[data-wyl-theme="dark"] .wyl-checkin-card { border-color: var(--wyl-line); background: var(--wyl-surface); }
html[data-wyl-theme="dark"] .wyl-collection-card > summary:hover,
html[data-wyl-theme="dark"] .wyl-genre-directory-item > summary:hover,
html[data-wyl-theme="dark"] .wyl-ranking-head:hover { background: var(--wyl-surface-soft); }
html[data-wyl-theme="dark"] .wyl-auth-intro { background: linear-gradient(145deg, #18272f, #17201f); }
html[data-wyl-theme="dark"] .wyl-site-footer {
  background-color: #101a22;
  background-image: linear-gradient(90deg, rgba(10,17,23,.92), rgba(10,17,23,.76) 52%, rgba(10,17,23,.9)), url("../images/hero-ink-library.webp");
}
html[data-wyl-theme="dark"] body.home .wyl-card-meta span { border-color: #6b413b; background: #281d1b; color: #ef9c8d; }
html[data-wyl-theme="dark"] body.home .wyl-card-meta span:nth-child(2n) { border-color: #285648; background: #13271f; color: #72d2b4; }

@media (max-width: 640px) {
  .wyl-theme-toggle { width: 34px; height: 34px; flex-basis: 34px; }
  .wyl-theme-toggle .wyl-icon { width: 18px; height: 18px; }

  /* Mobile hero uses the real featured cover as a cinematic card image. */
  .wyl-featured-book {
    min-height: 160px;
    display: block;
    isolation: isolate;
    margin: 0;
    padding: 0;
    background: var(--wyl-surface-soft);
  }
  .wyl-featured-carousel { margin: 11px 12px 0; }
  .wyl-featured-book::before {
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(247,248,247,.99) 0%, rgba(247,248,247,.95) 33%, rgba(247,248,247,.57) 53%, rgba(247,248,247,.06) 82%),
      linear-gradient(0deg, rgba(16,42,67,.12), transparent 38%);
  }
  .wyl-featured-art {
    position: absolute;
    z-index: 0;
    inset: 0;
    height: auto;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f1, #e9e4db);
  }
  .wyl-featured-art img {
    width: 76%;
    height: 100%;
    margin-left: auto;
    display: block;
    object-fit: cover;
    object-position: center 36%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    filter: saturate(.9) contrast(.98);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.16) 12%, #000 43%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.16) 12%, #000 43%);
  }
  .wyl-featured-copy {
    z-index: 2;
    width: 60%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 15px 0 20px 18px;
  }
  .wyl-featured-copy .wyl-kicker { display: none; }
  .wyl-featured-copy h2 { max-width: 100%; font-size: 26px; line-height: 1.16; text-shadow: 0 1px rgba(255,255,255,.5); }
  .wyl-featured-meta { display: none; }
  .wyl-featured-intro { display: -webkit-box; margin: 7px 0 10px; color: #526575; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .wyl-featured-action { min-height: 31px; padding: 0 11px; border-radius: 9px; background: var(--wyl-jade); box-shadow: 0 7px 17px rgba(29,122,99,.2); }
  .wyl-featured-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 6px;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
  }
  .wyl-featured-dots button { width: 15px; height: 15px; min-width: 0; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .wyl-featured-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.78); box-shadow: 0 1px 4px rgba(16,42,67,.25); transform: scaleX(1); transition: transform .22s var(--wyl-ease-out), background-color .22s ease; }
  .wyl-featured-dots button:hover::before { transform: scale(1.25); }
  .wyl-featured-dots button.is-active::before { border-radius: 4px; background: var(--wyl-jade); transform: scaleX(2.5); }

  .wyl-home-genres { gap: 7px; margin-top: 13px; }
  .wyl-home-genres a { min-height: 35px; gap: 5px; padding: 0 11px; }
  .wyl-home-genres .wyl-genre-icon { width: 17px; height: 17px; }
  .wyl-home-book-row .wyl-book-card { flex-basis: 87px; }
  .wyl-home-book-row .wyl-card-meta { display: flex; gap: 3px; margin-top: 4px; }
  .wyl-home-book-row .wyl-card-meta span { max-width: 49px; overflow: hidden; padding: 1px 3px; border-radius: 3px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

  html[data-wyl-theme="dark"] .wyl-featured-book::before {
    background:
      linear-gradient(90deg, rgba(10,17,23,.99) 0%, rgba(10,17,23,.95) 33%, rgba(10,17,23,.57) 55%, rgba(10,17,23,.06) 84%),
      linear-gradient(0deg, rgba(0,0,0,.26), transparent 40%);
  }
  html[data-wyl-theme="dark"] .wyl-featured-copy h2 { text-shadow: 0 1px rgba(0,0,0,.35); }
  html[data-wyl-theme="dark"] .wyl-featured-intro { color: #b0c0c7; }
  html[data-wyl-theme="dark"] .wyl-featured-art { background: linear-gradient(135deg, #17242c, #211e1a); }
  html[data-wyl-theme="dark"] .wyl-featured-action { background: #277f69; color: #f5fffb; }
  html[data-wyl-theme="dark"] .wyl-site-header { background: rgba(10,17,23,.93); }
  html[data-wyl-theme="dark"] .wyl-header-search { background: var(--wyl-surface-raised); }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-main { animation: none; }
  .wyl-book-card, .wyl-account-stats > div, .wyl-account-stats > a, .wyl-account-book, .wyl-account-mini-panel, .wyl-collection-card, .wyl-genre-directory-item, .wyl-ranking-section, .wyl-theme-toggle { transition: none !important; }
}

/* 0.14 page system: compact discovery, download-first detail, and mature account flows. */
.wyl-breadcrumb { margin-bottom: 14px; font-size: 11px; }
.wyl-catalog-head {
  min-height: 82px;
  align-items: center;
  margin: 0 0 18px;
  padding: 17px 20px;
  border-radius: 14px;
}
.wyl-catalog-head h1 { font-size: 29px; letter-spacing: .025em; }
.wyl-catalog-count { min-width: 0; display: flex; align-items: baseline; gap: 6px; padding-left: 18px; }
.wyl-catalog-count strong { font-size: 25px; }
.wyl-catalog-count span { margin: 0; font-size: 10px; white-space: nowrap; }
.wyl-discovery-head { margin-bottom: 18px; }
.wyl-listing-head { max-width: none; padding: 8px 0 18px; }
.wyl-listing-head .wyl-kicker { display: none; }
.wyl-listing-head h1 { font-size: 30px; }
.wyl-listing-head > p:last-child { margin-top: 3px; font-size: 12px; }
.wyl-list-search { margin-bottom: 20px; }
.wyl-collection-hero,
.wyl-author-hero { margin: 0 0 20px; padding: 20px 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--wyl-surface-raised), var(--wyl-surface-soft)); box-shadow: var(--wyl-card-shadow); }
.wyl-collection-hero h1,
.wyl-author-hero h1 { font-size: 31px; letter-spacing: .025em; }
.wyl-author-mark { width: 62px; height: 62px; border-radius: 15px; font-size: 25px; }
.wyl-empty { margin: 42px auto; padding: 30px; border: 0; border-radius: 15px; box-shadow: var(--wyl-card-shadow); }

/* Catalogue becomes a browsing surface instead of a permanent control sidebar. */
.wyl-filter-panel { overflow: hidden; border: 0; border-radius: 13px; box-shadow: var(--wyl-card-shadow); }
.wyl-filter-panel summary { min-height: 49px; padding: 12px 15px; border-bottom: 0; }
.wyl-filter-panel[open] summary { border-bottom: 1px solid var(--wyl-line); }
.wyl-catalog-toolbar { align-items: center; margin-bottom: 14px; }
.wyl-active-filters a { border-radius: 999px; }
.wyl-sort select { border-radius: 8px; }

/* Directory and ranking panels use compact, tappable rows. */
.wyl-genre-directory { gap: 10px; }
.wyl-genre-directory-item { overflow: hidden; border: 0; border-radius: 12px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }
.wyl-genre-directory-item > summary { min-height: 66px; gap: 11px; padding: 12px 14px; }
.wyl-genre-directory-item > summary strong { font-size: 18px; }
.wyl-genre-directory-icon { width: 38px; height: 38px; }
.wyl-genre-directory-content { padding: 12px 14px 14px; }
.wyl-subgenre-links a { min-height: 31px; align-items: center; border-radius: 7px; }
.wyl-ranking-section { overflow: hidden; margin-bottom: 10px; border: 0 !important; border-radius: 13px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }
.wyl-ranking-head { min-height: 58px; padding: 11px 16px; }
.wyl-ranking-head h2 { font-size: 19px; }
.wyl-ranking-section .wyl-ranking-grid,
.wyl-ranking-section .wyl-collecting { margin: 0 16px 18px; }
.wyl-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wyl-collection-card { overflow: hidden; border: 0; border-radius: 12px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }
.wyl-collection-card > summary { min-height: 72px; padding: 13px 15px; }
.wyl-collection-card > summary strong { font-size: 18px; }
.wyl-public-booklists,
.wyl-auto-collections { padding-top: 18px; }

/* Book pages put the primary download task before secondary reader actions. */
.wyl-book-entity { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; padding-bottom: 24px; }
.wyl-entity-main { grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }
.wyl-entity-cover { width: 230px; border: 0; border-radius: 11px; box-shadow: var(--wyl-card-shadow-hover); }
.wyl-entity-copy h1 { font-size: clamp(31px, 3.4vw, 44px); }
.wyl-entity-actions { gap: 10px; }
.wyl-download-panel { overflow: hidden; border: 0; border-radius: 13px; box-shadow: var(--wyl-card-shadow); }
.wyl-download-panel > header { padding: 14px 16px; }
.wyl-download-list { padding: 10px; }
.wyl-download-list a { min-height: 53px; border: 0; border-radius: 9px; background: var(--wyl-surface-soft); }
.wyl-download-list a:hover { background: rgba(29,122,99,.1); }
.wyl-reader-actions { overflow: hidden; border: 0; border-radius: 12px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }
.wyl-reader-actions button,
.wyl-reader-actions a { min-height: 48px; }
.wyl-entity-actions > .wys-link-feedback { display: flex; flex-wrap: wrap; justify-content: flex-end; padding: 0 4px !important; }
.wyl-entity-actions > .wys-link-feedback summary { min-height: 32px; display: inline-flex !important; align-items: center; color: var(--wyl-muted); font-size: 11px; }
.wyl-entity-actions > .wys-link-feedback form { width: 100%; }
.wyl-book-comments { overflow: hidden; border: 0; border-radius: 13px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }

/* Account navigation remains a single, deliberate row on tablet widths. */
.wyl-account-head { margin-bottom: 13px; padding: 14px 17px; border: 0; border-radius: 14px; }
.wyl-account-identity img { width: 50px; height: 50px; }
.wyl-account-identity h1 { font-size: 22px; }
.wyl-account-setting { min-height: 40px; border-radius: 9px; }
.wyl-account-layout { gap: 15px; }
.wyl-account-empty { min-height: 112px; padding: 20px; border: 0; border-radius: 13px; background: var(--wyl-surface-raised); box-shadow: var(--wyl-card-shadow); }
.wyl-account-empty-mark { width: 43px; height: 43px; border-radius: 12px; background: rgba(29,122,99,.1); color: var(--wyl-jade); }
.wyl-account-empty-mark .wyl-icon { width: 22px; height: 22px; }
.wyl-account-empty > a { min-height: 38px; display: inline-flex; align-items: center; border-radius: 8px; }

/* Authentication stays focused: one short identity panel and one form. */
.wyl-auth-shell { grid-template-columns: 245px minmax(0, 1fr); overflow: hidden; border: 0; border-radius: 17px; }
.wyl-auth-intro { display: flex; flex-direction: column; justify-content: center; padding: 30px 26px; }
.wyl-auth-intro h1 { font-size: 30px; }
.wyl-auth-intro > p:last-child { margin: 8px 0 0; font-size: 12px; }
.wyl-auth-card { padding: 28px; }

html[data-wyl-theme="dark"] .wyl-collection-hero,
html[data-wyl-theme="dark"] .wyl-author-hero { background: linear-gradient(135deg, #14232c, #101a22); }
html[data-wyl-theme="dark"] .wyl-download-list a,
html[data-wyl-theme="dark"] .wyl-account-empty { background: var(--wyl-surface-soft); }

@media (max-width: 1100px) {
  .wyl-catalog-layout { grid-template-columns: 1fr; gap: 14px; }
  .wyl-filter-shell { position: static; }
  .wyl-filter-panel form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .wyl-filter-actions { grid-column: 1 / -1; grid-template-columns: minmax(130px, 180px) auto; justify-content: start; }
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-collection-books { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-book-entity { grid-template-columns: 1fr; }
  .wyl-entity-actions { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
  .wyl-entity-actions > .wyl-download-panel { grid-column: 1; grid-row: 1; }
  .wyl-entity-actions > .wys-link-feedback { grid-column: 1; grid-row: 2; margin-top: 0; }
  .wyl-entity-actions > .wyl-reader-actions { grid-column: 2; grid-row: 1; }
  .wyl-reader-actions { grid-template-columns: 1fr; }
  .wyl-reader-actions button { border-right: 0; border-bottom: 1px solid var(--wyl-line); }
  .wyl-account-layout { grid-template-columns: 1fr; }
  .wyl-account-nav { position: static; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; padding: 5px; }
  .wyl-account-nav a { min-width: 0; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 7px 4px; text-align: center; }
  .wyl-account-nav a + a { margin-top: 0; }
  .wyl-account-nav a b { position: absolute; top: 3px; left: 50%; margin-left: 10px; }
  .wyl-account-nav .wyl-account-logout { display: none; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .wyl-book-entity { grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; }
  .wyl-entity-main { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
  .wyl-entity-cover { width: 160px; }
  .wyl-entity-copy h1 { font-size: 30px; }
  .wyl-entity-actions { grid-template-columns: 1fr; }
  .wyl-entity-actions > .wyl-download-panel,
  .wyl-entity-actions > .wys-link-feedback,
  .wyl-entity-actions > .wyl-reader-actions { grid-column: 1; grid-row: auto; }
  .wyl-reader-actions { grid-template-columns: 1fr 1fr; }
  .wyl-reader-actions button { border-right: 1px solid var(--wyl-line); border-bottom: 0; }
}

@media (max-width: 900px) {
  .wyl-main:not(.wyl-home) { padding-top: 18px; }
  .wyl-genre-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-genre-directory-item[open] { grid-column: span 2; }
  .wyl-ranking-section .wyl-ranking-grid {
    width: calc(100% - 16px);
    display: flex;
    gap: 13px;
    overflow-x: auto;
    margin: 0 0 15px 16px;
    padding: 1px 16px 8px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .wyl-ranking-section .wyl-ranking-grid::-webkit-scrollbar { display: none; }
  .wyl-ranking-grid .wyl-book-card { flex: 0 0 126px; scroll-snap-align: start; }
  .wyl-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-auth-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .wyl-auth-intro { padding: 25px 20px; }
  .wyl-auth-card { padding: 24px; }
}

@media (max-width: 760px) {
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-collection-books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-filter-panel form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-entity-main { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .wyl-entity-cover { width: 170px; }
  .wyl-entity-copy h1 { font-size: 30px; }
  .wyl-auth-shell { grid-template-columns: 1fr; }
  .wyl-auth-intro { padding: 19px 22px; }
  .wyl-auth-intro h1 { font-size: 24px; }
  .wyl-auth-card { padding: 22px; }
}

@media (max-width: 640px) {
  .wyl-breadcrumb { display: none; }
  .wyl-main:not(.wyl-home) { padding-top: 12px; }
  .wyl-catalog-head { min-height: 63px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; }
  .wyl-catalog-head h1 { font-size: 23px; }
  .wyl-catalog-count { padding-left: 11px; }
  .wyl-catalog-count strong { font-size: 21px; }
  .wyl-catalog-count span { display: none; }
  .wyl-filter-panel form { grid-template-columns: 1fr 1fr; }
  .wyl-filter-actions { grid-template-columns: 1fr auto; }
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-collection-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wyl-genre-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyl-genre-directory-item[open] { grid-column: 1 / -1; }
  .wyl-genre-directory-item > summary { min-height: 59px; padding: 10px; }
  .wyl-genre-directory-icon { width: 34px; height: 34px; }
  .wyl-genre-directory-item > summary strong { font-size: 16px; }
  .wyl-collection-grid { grid-template-columns: 1fr; }
  .wyl-collection-card > summary { min-height: 64px; }
  .wyl-collection-hero,
  .wyl-author-hero { padding: 16px; }
  .wyl-collection-hero h1,
  .wyl-author-hero h1 { font-size: 25px; }
  .wyl-empty { margin: 28px auto; padding: 24px 18px; }
  .wyl-book-entity { gap: 16px; }
  .wyl-entity-main { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .wyl-entity-cover { width: 112px; border-radius: 8px; }
  .wyl-entity-copy h1 { font-size: 24px; }
  .wyl-entity-author { margin: 6px 0; font-size: 13px; }
  .wyl-fact-line { gap: 4px; font-size: 10px; }
  .wyl-book-summary { margin-top: 9px; }
  .wyl-feature-row { margin-top: 10px; }
  .wyl-feature-row > strong { display: none; }
  .wyl-feature-row span { padding: 2px 6px; font-size: 9px; }
  .wyl-entity-actions { grid-template-columns: 1fr; }
  .wyl-entity-actions > .wyl-download-panel,
  .wyl-entity-actions > .wys-link-feedback,
  .wyl-entity-actions > .wyl-reader-actions { grid-column: 1; grid-row: auto; }
  .wyl-reader-actions { grid-template-columns: 1fr 1fr; }
  .wyl-reader-actions button { border-right: 1px solid var(--wyl-line); border-bottom: 0; }
  .wyl-account-head { padding: 12px; }
  .wyl-account-nav a[href*="/messages/"] { display: none; }
  .wyl-account-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wyl-account-empty { min-height: 0; gap: 10px; padding: 17px; }
  .wyl-account-empty-mark { width: 39px; height: 39px; }
  .wyl-account-empty > a { margin-top: 4px; }
  .wyl-auth-intro { padding: 17px 19px; }
  .wyl-auth-intro > p:last-child { margin-top: 4px; }
  .wyl-auth-card { padding: 20px 18px 22px; }
}

@media (max-width: 380px) {
  .wyl-catalog-results .wyl-list-grid,
  .wyl-new-books,
  .wyl-collection-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 0.15 interaction rebuild: native-feeling tabs, actions, and mobile navigation. */
.wyl-ranking-browser { display: grid; gap: 14px; }
.wyl-ranking-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--wyl-surface-soft);
}
.wyl-ranking-tabs button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--wyl-muted);
  font-weight: 750;
  cursor: pointer;
  transition: background .2s var(--wyl-ease-out), color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.wyl-ranking-tabs button small { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(107,124,143,.11); font-size: 10px; }
.wyl-ranking-tabs button[aria-selected="true"] { background: var(--wyl-surface-raised); color: var(--wyl-jade); box-shadow: 0 5px 16px rgba(16,42,67,.08); }
.wyl-ranking-tabs button:active { transform: scale(.98); }
.wyl-ranking-panel[hidden] { display: none; }
.wyl-ranking-panel:not([hidden]) { animation: wyl-ranking-enter .24s var(--wyl-ease-out) both; }
@keyframes wyl-ranking-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wyl-ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wyl-ranking-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 76px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  padding: 10px 10px 10px 8px;
  border-radius: 13px;
  background: var(--wyl-surface-raised);
  box-shadow: var(--wyl-card-shadow);
}
.wyl-ranking-number { color: var(--wyl-faint); font-family: Georgia, serif; font-size: 17px; font-weight: 700; text-align: center; }
.wyl-ranking-item.is-top .wyl-ranking-number { color: var(--wyl-red); font-size: 22px; }
.wyl-ranking-cover { width: 76px; aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--wyl-surface-soft); color: var(--wyl-muted); text-decoration: none; }
.wyl-ranking-cover img { width: 100%; height: 100%; object-fit: cover; }
.wyl-ranking-copy { min-width: 0; }
.wyl-ranking-copy h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 17px; line-height: 1.35; }
.wyl-ranking-copy h2 a { display: block; overflow: hidden; color: var(--wyl-ink); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.wyl-ranking-copy > p { margin: 5px 0 8px; overflow: hidden; color: var(--wyl-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-ranking-copy > div { display: flex; gap: 5px; overflow: hidden; }
.wyl-ranking-copy > div span { min-width: 0; overflow: hidden; padding: 2px 6px; border-radius: 5px; background: var(--wyl-surface-soft); color: var(--wyl-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-ranking-open { width: 32px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--wyl-muted); text-decoration: none; }
.wyl-ranking-open:hover { background: var(--wyl-surface-soft); color: var(--wyl-jade); }
.wyl-ranking-open .wyl-icon { width: 18px; height: 18px; }

/* Download is the primary task: one clear action, not nested neutral cards. */
.wyl-download-panel { padding: 14px; }
.wyl-download-panel > header { padding: 0 2px 12px; border: 0; }
.wyl-download-panel > header > div { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wyl-download-panel h2 { flex: 0 0 auto; font-size: 17px; white-space: nowrap; }
.wyl-download-panel header p { min-width: 0; flex: 1 1 auto; overflow: hidden; margin: 0; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.wyl-download-list { gap: 8px; padding: 0; }
.wyl-download-list a {
  min-height: 58px;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #21866d, #176650);
  color: #fff;
  box-shadow: 0 9px 22px rgba(29,122,99,.2);
}
.wyl-download-list a:hover { background: linear-gradient(135deg, #176f5a, #104d3d); color: #fff; transform: translateY(-1px); }
.wyl-download-source { min-width: 0; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px; }
.wyl-download-source > .wyl-icon { width: 21px; height: 21px; flex: 0 0 auto; }
.wyl-download-source > span { min-width: 0; display: grid; }
.wyl-download-list a strong { color: inherit; }
.wyl-download-list a small { color: rgba(255,255,255,.72); }
.wyl-download-list a > b { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 11px; white-space: nowrap; }
.wyl-download-list a > b .wyl-icon { width: 15px; height: 15px; }
.wyl-entity-actions > .wys-link-feedback summary { color: var(--wyl-muted); }

@media (max-width: 1100px) {
  .wyl-account-nav {
    width: max-content;
    max-width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 auto;
    padding: 4px;
    border-radius: 13px;
    background: var(--wyl-surface-raised);
    box-shadow: var(--wyl-card-shadow);
    scrollbar-width: none;
  }
  .wyl-account-nav::-webkit-scrollbar { display: none; }
  .wyl-account-nav a {
    min-width: 92px;
    min-height: 48px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    text-align: left;
  }
  .wyl-account-nav a + a { margin: 0; }
  .wyl-account-nav a b { position: static; margin: 0 0 0 2px; }
}

@media (max-width: 640px) {
  .wyl-site-header,
  .wyl-header-inner,
  body.home .wyl-header-inner { height: 56px; }
  .wyl-header-inner,
  body.home .wyl-header-inner { width: calc(100% - 24px); gap: 3px; }
  .wyl-brand { gap: 6px; }
  .wyl-brand svg,
  body.home .wyl-brand-mark { width: 29px; height: 29px; }
  .wyl-brand strong,
  body.home .wyl-brand strong { font-size: 16px; }
  .wyl-mobile-search-toggle,
  .wyl-theme-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .wyl-header-message { display: none; }
  .wyl-account { min-width: 36px; }
  .wyl-account > a { min-width: 36px; min-height: 36px; }
  .wyl-account img { width: 30px; height: 30px; }
  .wyl-account .wyl-login { min-width: 43px; min-height: 36px; }

  .wyl-rankings-page .wyl-catalog-head { margin-bottom: 9px; background: transparent; box-shadow: none; }
  .wyl-rankings-page .wyl-catalog-head { min-height: 45px; padding: 4px 2px; }
  .wyl-rankings-page .wyl-catalog-head h1 { font-size: 24px; }
  .wyl-ranking-browser { gap: 10px; }
  .wyl-ranking-tabs { position: sticky; top: 62px; z-index: 8; gap: 3px; padding: 4px; border-radius: 11px; box-shadow: 0 8px 22px rgba(16,42,67,.06); }
  .wyl-ranking-tabs button { min-height: 42px; gap: 5px; padding: 6px 7px; border-radius: 8px; font-size: 12px; }
  .wyl-ranking-tabs button small { min-width: 17px; height: 17px; padding: 0 4px; font-size: 8px; }
  .wyl-ranking-list { grid-template-columns: 1fr; gap: 8px; }
  .wyl-ranking-item { grid-template-columns: 27px 62px minmax(0, 1fr) 28px; min-height: 94px; gap: 9px; padding: 8px 7px; border-radius: 11px; box-shadow: 0 6px 18px rgba(16,42,67,.055); }
  .wyl-ranking-cover { width: 62px; border-radius: 6px; }
  .wyl-ranking-number { font-size: 15px; }
  .wyl-ranking-item.is-top .wyl-ranking-number { font-size: 19px; }
  .wyl-ranking-copy h2 { font-size: 15px; }
  .wyl-ranking-copy > p { margin: 3px 0 6px; font-size: 10px; }
  .wyl-ranking-copy > div span { padding: 1px 4px; font-size: 8px; }

  .wyl-book-page { width: 100%; padding: 12px 12px 28px; }
  .wyl-download-panel { padding: 12px; border-radius: 14px; }
  .wyl-download-panel > header { padding: 0 2px 10px; }
  .wyl-download-panel h2 { font-size: 16px; }
  .wyl-download-list a { min-height: 56px; }
  .wyl-entity-actions > .wys-link-feedback { margin-top: -3px; padding: 0 5px !important; }
  .wyl-entity-actions > .wys-link-feedback summary { min-height: 29px; font-size: 10px; }
  .wyl-reader-actions { border-radius: 12px; box-shadow: 0 7px 18px rgba(16,42,67,.055); }
  .wyl-reader-actions button,
  .wyl-reader-actions a { min-height: 46px; font-size: 12px; }
  .wyl-related .wyl-book-grid {
    width: calc(100% + 12px);
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 1px 12px 8px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .wyl-related .wyl-book-grid::-webkit-scrollbar { display: none; }
  .wyl-related .wyl-book-card { flex: 0 0 104px; scroll-snap-align: start; }

  .wyl-account-nav { width: 100%; max-width: none; justify-content: space-between; gap: 2px; padding: 3px; }
  .wyl-account-nav a { min-width: 0; min-height: 50px; flex: 1 1 20%; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 5px 2px; font-size: 9px; text-align: center; }
  .wyl-account-nav a > .wyl-icon { width: 18px; height: 18px; }
  .wyl-account-nav a b { position: absolute; top: 2px; left: 50%; margin-left: 7px; }
}

html[data-wyl-theme="dark"] .wyl-ranking-tabs { background: var(--wyl-surface-soft); }
html[data-wyl-theme="dark"] .wyl-ranking-tabs button[aria-selected="true"],
html[data-wyl-theme="dark"] .wyl-ranking-item { background: var(--wyl-surface-raised); }

@media (prefers-reduced-motion: reduce) {
  .wyl-ranking-panel:not([hidden]) { animation: none; }
  .wyl-ranking-tabs button,
  .wyl-download-list a { transition: none !important; }
}

/* 0.16 book detail: stable header, restrained actions, and a complete comment flow. */
.wyl-site-header {
  width: 100%;
  height: 72px;
  min-height: 72px;
  left: 0;
  right: 0;
  isolation: isolate;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wyl-site-header .wyl-header-inner { height: 100%; }
.wyl-site-header .wyl-brand { height: 100%; align-items: center; line-height: 1; }
.wyl-site-header .wyl-brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: block; object-fit: contain; }
.wyl-site-header .wyl-mobile-search-toggle,
.wyl-site-header .wyl-theme-toggle,
.wyl-site-header .wyl-nav-toggle { align-self: center; }
.wyl-site-header.is-scrolled {
  border-bottom-color: transparent;
  background: rgba(251,250,246,.985);
  box-shadow: 0 7px 24px rgba(16,42,67,.09);
}
body.admin-bar .wyl-site-header { top: 32px; }

.wyl-book-entity { align-items: start; border-bottom: 0; }
.wyl-entity-main { align-items: start; }
.wyl-entity-cover { grid-row: 1 / span 2; }
.wyl-book-summary {
  --wyl-summary-collapsed-height: 5.7em;
  min-width: 0;
  grid-column: 2;
  margin: 17px 0 0;
  border: 0;
}
.wyl-book-summary > .wyl-book-summary-text {
  overflow: hidden;
  margin: 0;
  max-height: var(--wyl-summary-collapsed-height);
  padding: 0;
  color: var(--wyl-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  line-height: 1.9;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  transition: none;
}
.wyl-book-summary.is-expanded > .wyl-book-summary-text {
  max-height: var(--wyl-summary-full-height, 80em);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 100%);
}
.wyl-book-summary-control {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 3px;
}
.wyl-book-summary-control[hidden] { display: none; }
.wyl-book-summary-control > span[aria-hidden="true"] { height: 1px; background: var(--wyl-line); }
.wyl-book-summary-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: var(--wyl-blue);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.wyl-book-summary-toggle .wyl-icon { width: 15px; height: 15px; transition: transform .26s var(--wyl-ease-out); }
.wyl-book-summary.is-expanded .wyl-book-summary-toggle .wyl-icon { transform: rotate(180deg); }
.wyl-book-summary-toggle:hover { color: var(--wyl-jade); }
.wyl-book-summary-toggle[hidden] { display: none; }

.wyl-download-panel { padding: 11px; border-radius: 12px; }
.wyl-download-panel > header { padding: 0 1px 8px; }
.wyl-download-panel h2 { font-size: 15px; }
.wyl-download-panel header p { font-size: 8px; letter-spacing: .04em; }
.wyl-download-list { gap: 7px; }
.wyl-download-list a {
  min-height: 48px;
  padding: 8px 11px;
  border-radius: 9px;
  box-shadow: 0 7px 16px rgba(29,122,99,.16);
}
.wyl-download-source { gap: 8px; }
.wyl-download-source > .wyl-icon { width: 18px; height: 18px; }
.wyl-download-list a strong { font-size: 13px; }
.wyl-download-list a small { font-size: 9px; }
.wyl-download-list a > b { font-size: 10px; }

.wyl-reader-actions {
  width: fit-content;
  min-width: 150px;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.wyl-reader-actions button,
.wyl-reader-actions a {
  width: 100%;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink);
  font-size: 12px;
  box-shadow: 0 5px 14px rgba(16,42,67,.045);
}
.wyl-reader-actions button { border-right: 1px solid var(--wyl-line); border-bottom: 1px solid var(--wyl-line); }
.wyl-reader-actions button:hover { border-color: rgba(29,122,99,.5); color: var(--wyl-jade); }
.wyl-reader-actions .is-active { border-color: rgba(29,122,99,.3); background: rgba(29,122,99,.1); color: var(--wyl-jade); }
.wyl-reader-actions svg { width: 17px; }

.wyl-entity-actions > .wys-link-feedback {
  display: block;
  margin: -1px 0 0;
  padding: 0 2px !important;
}
.wyl-entity-actions .wys-feedback-trigger { min-height: 31px; color: var(--wyl-muted); font-size: 10px; }
.wyl-entity-actions .wys-feedback-trigger strong { color: var(--wyl-blue); font-size: 10px; }
.wys-feedback-sheet { background: var(--wyl-surface-raised); color: var(--wyl-ink); }
.wys-feedback-sheet h2 { color: var(--wyl-ink); }
.wys-feedback-sheet header p,
.wys-feedback-close,
.wys-feedback-sheet label,
.wys-feedback-status { color: var(--wyl-muted); }
.wys-feedback-sheet select { border-color: var(--wyl-line); background: var(--wyl-surface-raised); color: var(--wyl-ink); }
.wys-feedback-submit { background: var(--wyl-jade); }

.wyl-book-comments {
  width: min(940px, 100%);
  max-width: none;
  overflow: visible;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--wyl-surface-raised);
  box-shadow: var(--wyl-card-shadow);
  scroll-margin-top: 92px;
}
.wyl-book-comments-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--wyl-line);
}
.wyl-book-comments-head > div { display: flex; align-items: baseline; gap: 9px; }
.wyl-book-comments-head h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.wyl-book-comments-head span { color: var(--wyl-muted); font-size: 11px; }
.wyl-book-comments-head > button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--wyl-line);
  border-radius: 8px;
  background: transparent;
  color: var(--wyl-blue);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.wyl-book-comments-head > button:hover { border-color: var(--wyl-jade); color: var(--wyl-jade); }
.wyl-book-comments-body { padding: 18px; border: 0; }
.wyl-comments-inner { max-width: none; }
.wyl-comments-empty { margin-bottom: 18px; padding: 18px; border-radius: 10px; background: var(--wyl-surface-soft); text-align: center; }
.wyl-comments-empty strong { color: var(--wyl-ink); font-size: 14px; }
.wyl-comments-empty p { margin: 4px 0 0; color: var(--wyl-muted); font-size: 11px; }
.comment-list { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.comment-list .children { display: grid; gap: 10px; margin: 10px 0 0 24px; padding: 0; list-style: none; }
.wyl-comment-card { padding: 14px 15px; border: 1px solid var(--wyl-line); border-radius: 11px; background: var(--wyl-surface-raised); }
.wyl-comment-author { display: flex; align-items: center; gap: 10px; }
.wyl-comment-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wyl-comment-author > div { min-width: 0; display: grid; }
.wyl-comment-author strong { overflow: hidden; color: var(--wyl-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-comment-author strong a { text-decoration: none; }
.wyl-comment-author > div > a { color: var(--wyl-muted); font-size: 10px; text-decoration: none; }
.wyl-comment-content { padding: 9px 0 0; color: var(--wyl-ink-2); font-size: 13px; line-height: 1.8; }
.wyl-comment-content p { margin: 0 0 8px; }
.wyl-comment-content p:last-child { margin-bottom: 0; }
.wyl-comment-foot { min-height: 24px; display: flex; justify-content: flex-end; margin-top: 5px; }
.wyl-comment-foot a { color: var(--wyl-muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.wyl-comment-foot a:hover { color: var(--wyl-jade); }
.wyl-comment-awaiting { margin: 9px 0 0; padding: 7px 9px; border-radius: 6px; background: #fff7df; color: #865c16; font-size: 11px; }
.comment-respond { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--wyl-line); }
.comment-reply-title { margin: 0; color: var(--wyl-ink); font-size: 16px; }
.comment-reply-title small { margin-left: 8px; font-size: 10px; }
.comment-notes { margin: 4px 0 13px; color: var(--wyl-muted); font-size: 10px; }
.wyl-comment-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.wyl-comment-form p { margin: 0; }
.wyl-comment-form label { display: grid; gap: 5px; color: var(--wyl-muted); font-size: 11px; font-weight: 700; }
.wyl-comment-form label small { font-weight: 500; }
.wyl-comment-form input,
.wyl-comment-form textarea {
  width: 100%;
  border: 1px solid var(--wyl-line);
  border-radius: 9px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink);
}
.wyl-comment-form input { min-height: 40px; padding: 7px 10px; }
.wyl-comment-form textarea { min-height: 116px; padding: 10px 11px; resize: vertical; line-height: 1.65; }
.wyl-comment-form input:focus,
.wyl-comment-form textarea:focus { border-color: var(--wyl-jade); outline: 0; box-shadow: 0 0 0 3px rgba(29,122,99,.1); }
.wyl-comment-form .comment-form-comment,
.wyl-comment-form .comment-notes,
.wyl-comment-form .logged-in-as,
.wyl-comment-form .form-submit,
.wyl-comment-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.wyl-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 7px; color: var(--wyl-muted); font-size: 10px; }
.wyl-comment-form .comment-form-cookies-consent input { width: auto; min-height: 0; margin-top: 3px; }
.wyl-comment-submit { min-height: 38px; padding: 6px 16px; border-radius: 8px; background: var(--wyl-jade); font-size: 12px; }
.wyl-comment-form .form-submit { display: flex; justify-content: flex-start; }

html[data-wyl-theme="dark"] .wyl-site-header.is-scrolled { background: rgba(10,17,23,.985); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
html[data-wyl-theme="dark"] .wyl-reader-actions button,
html[data-wyl-theme="dark"] .wyl-comment-card,
html[data-wyl-theme="dark"] .wyl-comment-form input,
html[data-wyl-theme="dark"] .wyl-comment-form textarea,
html[data-wyl-theme="dark"] .wys-feedback-sheet,
html[data-wyl-theme="dark"] .wys-feedback-sheet select { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-comments-empty { background: var(--wyl-surface-soft); }
html[data-wyl-theme="dark"] .wyl-comment-awaiting { background: rgba(161,111,25,.18); color: #e3bb70; }

@media (max-width: 1100px) {
  .wyl-entity-actions > .wyl-reader-actions { justify-self: end; }
}

@media (max-width: 782px) {
  body.admin-bar .wyl-site-header { top: 46px; }
}

@media (max-width: 640px) {
  body.admin-bar .wyl-site-header { top: 0; }
  .wyl-site-header { height: 56px; min-height: 56px; }
  .wyl-site-header.is-scrolled { box-shadow: 0 5px 18px rgba(16,42,67,.085); }
  .wyl-site-header .wyl-brand-mark { width: 29px; height: 29px; flex-basis: 29px; }

  .wyl-book-page { padding: 10px 12px calc(94px + env(safe-area-inset-bottom)); }
  .wyl-book-entity { gap: 13px; padding-bottom: 18px; }
  .wyl-entity-main { grid-template-columns: 104px minmax(0,1fr); gap: 13px; }
  .wyl-entity-cover { grid-row: auto; }
  .wyl-entity-cover { width: 104px; }
  .wyl-book-summary { --wyl-summary-collapsed-height: 5.34em; grid-column: 1 / -1; margin-top: 1px; }
  .wyl-book-summary > .wyl-book-summary-text { overflow: hidden; padding: 0; font-size: 13px; line-height: 1.78; }
  .wyl-book-summary-control { gap: 8px; margin-top: 1px; }
  .wyl-book-summary-toggle { min-height: 34px; padding-inline: 6px; font-size: 11px; }

  .wyl-entity-actions { gap: 7px; }
  .wyl-download-panel { padding: 10px; border-radius: 12px; }
  .wyl-download-panel > header { padding-bottom: 7px; }
  .wyl-download-panel h2 { font-size: 15px; }
  .wyl-download-list a { min-height: 47px; padding: 7px 10px; border-radius: 9px; }
  .wyl-download-source > .wyl-icon { width: 17px; height: 17px; }
  .wyl-download-list a strong { font-size: 12px; }
  .wyl-download-list a > b { font-size: 10px; }
  .wyl-entity-actions > .wys-link-feedback { margin-top: -2px; padding: 0 !important; }
  .wyl-entity-actions .wys-feedback-trigger { min-height: 29px; font-size: 9px; }
  .wyl-reader-actions { min-width: 138px; justify-self: start !important; }
  .wyl-reader-actions button { min-height: 38px; padding: 6px 11px; font-size: 11px; }

  .wyl-book-comments { width: 100%; margin-top: 22px; border-radius: 12px; scroll-margin-top: 68px; }
  .wyl-book-comments-head { min-height: 52px; padding: 9px 12px; }
  .wyl-book-comments-head h2 { font-size: 18px; }
  .wyl-book-comments-head > button { min-height: 31px; padding: 4px 9px; font-size: 10px; }
  .wyl-book-comments-body { padding: 12px; }
  .wyl-comments-empty { margin-bottom: 14px; padding: 15px 12px; }
  .comment-list { gap: 9px; margin-bottom: 15px; }
  .comment-list .children { margin-left: 15px; }
  .wyl-comment-card { padding: 11px 12px; border-radius: 9px; }
  .wyl-comment-author img { width: 34px; height: 34px; }
  .wyl-comment-content { font-size: 12px; }
  .comment-respond { margin-top: 14px; padding-top: 14px; }
  .comment-reply-title { font-size: 15px; }
  .wyl-comment-form { grid-template-columns: 1fr; gap: 9px; }
  .wyl-comment-form .comment-form-comment,
  .wyl-comment-form .comment-notes,
  .wyl-comment-form .logged-in-as,
  .wyl-comment-form .form-submit,
  .wyl-comment-form .comment-form-cookies-consent { grid-column: auto; }
  .wyl-comment-form textarea { min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-site-header,
  .wyl-book-summary-toggle { transition: none !important; }
}

/* 0.17 detail interaction: zero-offset app header, inline bookshelf action,
   and theme tokens for the reusable bottom sheet owned by the core plugin. */
html { margin-top: 0 !important; }
body.wyl-library.admin-bar { margin-top: 0 !important; }
body.wyl-library #wpadminbar { display: none !important; }
body.admin-bar .wyl-site-header { top: 0 !important; }

.wyl-book-favorite-inline {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--wyl-line);
  border-radius: 999px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink-2);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16,42,67,.045);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.wyl-book-favorite-inline:hover { border-color: rgba(29,122,99,.5); color: var(--wyl-jade); transform: translateY(-1px); }
.wyl-book-favorite-inline:active { transform: scale(.98); }
.wyl-book-favorite-inline.is-active { border-color: rgba(29,122,99,.3); background: rgba(29,122,99,.1); color: var(--wyl-jade); }
.wyl-book-favorite-inline .wyl-icon { width: 16px; height: 16px; }
.wyl-book-favorite-inline small { padding-left: 7px; border-left: 1px solid currentColor; font-size: 9px; opacity: .72; }

.wys-app-sheet-panel { background: var(--wyl-surface-raised); color: var(--wyl-ink); }
.wys-app-sheet-close,
.wys-app-field select { background: var(--wyl-surface-soft); }
.wys-app-field select { border-color: var(--wyl-line); color: var(--wyl-ink); }
.wys-feedback-submit { background: var(--wyl-jade) !important; }

html[data-wyl-theme="dark"] .wyl-book-favorite-inline,
html[data-wyl-theme="dark"] .wys-app-sheet-panel { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wys-app-sheet-close,
html[data-wyl-theme="dark"] .wys-app-field select { background: var(--wyl-surface-soft); color: var(--wyl-ink); }

@media (max-width: 640px) {
  .wyl-book-favorite-inline { min-height: 34px; margin-top: 8px; padding: 5px 10px; font-size: 10px; }
  .wys-app-sheet-head { padding-inline: 16px; }
  .wys-app-sheet-body { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-book-favorite-inline { transition: none !important; }
}

/* 0.17 comment flow: keep the lightweight thread, move only editing into App Sheet. */
.wyl-book-comments { padding: 0; background: transparent; box-shadow: none; }
.wyl-book-comments-head { min-height: 54px; padding: 8px 2px 10px; border-bottom-color: var(--wyl-line); }
.wyl-book-comments-head > button { min-height: 34px; border-radius: 999px; background: var(--wyl-surface-raised); box-shadow: 0 4px 12px rgba(16,42,67,.04); }
.wyl-book-comments-head > button[aria-expanded="true"] { border-color: rgba(29,122,99,.35); background: rgba(29,122,99,.08); color: var(--wyl-jade); }
.wyl-book-comments-body { padding: 14px 0 0; }
.wyl-comments-empty { margin: 0 0 16px; padding: 17px 15px; border: 1px dashed var(--wyl-line); border-radius: 12px; background: transparent; text-align: left; }
.wyl-comments-empty strong { font-size: 13px; }
.wyl-comments-empty p { margin-top: 3px; font-size: 10px; }

.comment-list { gap: 0; margin-bottom: 14px; }
.comment-list > .comment { border-bottom: 1px solid var(--wyl-line); }
.comment-list > .comment:last-child { border-bottom: 0; }
.wyl-comment-card { padding: 15px 2px; border: 0; border-radius: 0; background: transparent; }
.wyl-comment-author { align-items: flex-start; }
.wyl-comment-author > img.avatar { width: 38px; height: 38px; flex: 0 0 38px; }
.wyl-comment-author-copy { min-width: 0; display: grid; gap: 3px; padding-top: 1px; }
.wyl-comment-author-line { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.wyl-comment-author-line > strong { max-width: min(440px, 64vw); overflow: hidden; color: var(--wyl-ink); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.wyl-comment-author-copy > a { width: fit-content; color: var(--wyl-muted); font-size: 10px; line-height: 1.3; text-decoration: none; }
.wyl-comment-identity { display: inline-flex; align-items: center; gap: 4px; }
.wyl-comment-medal-badge,
.wyl-comment-level-badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.wyl-comment-medal-badge img { width: 21px; height: 21px; display: block; object-fit: contain; }
.wyl-comment-level-badge img { width: auto; height: 19px; display: block; object-fit: contain; }
.wyl-comment-author-badge { min-height: 20px; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: rgba(29,122,99,.12); color: var(--wyl-jade); font-size: 9px; font-weight: 800; line-height: 1; }
.wyl-comment-content { padding: 6px 0 0 46px; color: var(--wyl-ink-2); font-size: 12px; line-height: 1.72; }
.wyl-comment-foot { min-height: 32px; margin-top: 4px; padding-left: 46px; justify-content: flex-start; }
.wyl-comment-foot { align-items: center; gap: 16px; }
.wyl-comment-foot :is(a, button) { min-height: 32px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; color: var(--wyl-muted); font: inherit; font-size: 10px; font-weight: 700; line-height: 1; text-decoration: none; touch-action: manipulation; cursor: pointer; transition: color .18s ease; }
.wyl-comment-foot :is(a, button):hover,
.wyl-comment-foot :is(a, button)[aria-expanded="true"],
.wyl-comment-foot .wyl-comment-like.is-active { color: var(--wyl-jade); text-decoration: underline; text-underline-offset: 3px; }
.wyl-comment-like b { font-size: inherit; font-variant-numeric: tabular-nums; }
.wyl-comment-like[aria-busy="true"] { opacity: .55; cursor: wait; }
.comment-list .children { position: relative; gap: 0; margin: 0 0 0 46px; padding-left: 14px; border-left: 1px solid var(--wyl-line); }
.comment-list .children .wyl-comment-card { padding-block: 11px; }
.comment-list .children[hidden] { display: none; }
.wyl-comment-thread-toggle,
.wyl-comment-thread-collapse {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wyl-jade);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease;
}
.wyl-comment-thread-toggle { margin: 0 0 7px 46px; }
.wyl-comment-thread-collapse { margin: 3px 0 12px 60px; }
.wyl-comment-thread-toggle:hover,
.wyl-comment-thread-collapse:hover { color: var(--wyl-blue); text-decoration: underline; text-underline-offset: 3px; }
.wyl-comment-thread-toggle[hidden],
.wyl-comment-thread-collapse[hidden] { display: none !important; }
.wyl-comment-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 8px 0 14px; }
.wyl-comment-pagination .page-numbers { min-width: 33px; min-height: 33px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border: 1px solid var(--wyl-line); border-radius: 9px; background: var(--wyl-surface-raised); color: var(--wyl-muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.wyl-comment-pagination .page-numbers.current { border-color: var(--wyl-jade); background: var(--wyl-jade); color: #fff; }
.wyl-comment-pagination .prev,
.wyl-comment-pagination .next { padding-inline: 12px; }

.comment-respond { margin-top: 12px; padding: 15px; border: 1px solid var(--wyl-line); border-radius: 13px; background: var(--wyl-surface-raised); box-shadow: 0 10px 26px rgba(16,42,67,.06); }
.wyl-book-comments.is-enhanced .comment-respond:not(.is-open) { display: none; }
.comment-respond.is-open { animation: wylCommentComposer .2s ease both; }
@keyframes wylCommentComposer { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.comment-reply-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.comment-reply-title small { margin-left: auto; }
#cancel-comment-reply-link { min-height: 34px; align-items: center; padding: 5px 10px; border: 1px solid var(--wyl-line); border-radius: 8px; color: var(--wyl-muted); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; font-size: 10px; font-weight: 700; text-decoration: none; }
.comment-notes { margin: 4px 0 10px; font-size: 9px; }
.logged-in-as { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 4px 0 10px !important; color: var(--wyl-muted); font-size: 10px; }
.logged-in-as a { color: var(--wyl-blue); }
.wyl-comment-form { gap: 8px; }
.wyl-comment-form textarea { min-height: 88px; padding: 11px 12px; border-radius: 10px; background: var(--wyl-surface-soft); font-size: 12px; resize: vertical; }
.wyl-comment-form .form-submit { display: flex; flex-direction: row; justify-content: flex-end; gap: 8px; }
.wyl-comment-submit,
.wyl-comment-cancel { min-height: 36px; padding: 6px 14px; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; }
.wyl-comment-submit { border: 1px solid var(--wyl-jade); background: var(--wyl-jade); color: #fff; }
.wyl-comment-cancel { min-width: 62px; border: 1px solid var(--wyl-line); background: transparent; color: var(--wyl-muted); white-space: nowrap; }
.comment-list .comment-respond { margin: 0 0 12px 46px; }

.wys-comment-sheet .wys-app-sheet-body { padding-top: 1px; }
.wys-comment-sheet .comment-respond {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.wys-comment-sheet .comment-reply-title { display: none; }
.wys-comment-sheet .comment-notes { margin-top: 0; }
.wys-comment-sheet .wyl-comment-form textarea { min-height: 116px; border: 1px solid var(--wyl-line); background: var(--wyl-surface-soft); }
.wys-comment-sheet .wyl-comment-form .form-submit { margin-top: 2px; }
.wys-comment-sheet .wyl-comment-submit { flex: 1 1 auto; min-height: 44px; }
.wys-comment-sheet .wyl-comment-cancel { min-width: 78px; min-height: 44px; }

html[data-wyl-theme="dark"] .comment-respond { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-comment-form textarea { background: var(--wyl-surface-soft); }
html[data-wyl-theme="dark"] .wyl-comment-foot :is(a, button),
html[data-wyl-theme="dark"] .wyl-comment-thread-toggle,
html[data-wyl-theme="dark"] .wyl-comment-thread-collapse { background: transparent; }

@media (max-width: 640px) {
  .wyl-book-comments { margin-top: 20px; padding-inline: 0; border-radius: 0; }
  .wyl-book-comments-head { min-height: 48px; padding-inline: 0; }
  .wyl-book-comments-head h2 { font-size: 17px; }
  .wyl-book-comments-body { padding: 10px 0 0; }
  .wyl-comments-empty { margin-bottom: 12px; padding: 13px 12px; }
  .wyl-comment-card { padding: 12px 1px; }
  .wyl-comment-author > img.avatar { width: 35px; height: 35px; flex-basis: 35px; }
  .wyl-comment-author-line > strong { max-width: min(245px, 58vw); font-size: 14px; }
  .wyl-comment-author-copy > a { font-size: 11px; }
  .wyl-comment-medal-badge img { width: 20px; height: 20px; }
  .wyl-comment-level-badge img { height: 18px; }
  .wyl-comment-content { padding-left: 42px; font-size: 11px; }
  .wyl-comment-foot { padding-left: 42px; }
  .wyl-comment-foot :is(a, button) { min-width: 0; min-height: 40px; padding-inline: 1px 14px; }
  .comment-list .children { margin-left: 34px; padding-left: 10px; }
  .wyl-comment-thread-toggle { margin-left: 42px; }
  .wyl-comment-thread-collapse { margin-left: 52px; }
  .comment-respond { margin-top: 9px; padding: 12px; border-radius: 12px; }
  .comment-list .comment-respond { margin-left: 0; }
  .wyl-comment-form textarea { min-height: 82px; }
  .wys-comment-sheet .wyl-comment-form textarea { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .comment-respond.is-open { animation: none; }
  .wyl-book-summary > .wyl-book-summary-text,
  .wyl-book-summary-toggle .wyl-icon { transition: none !important; }
}

/* 0.17.1: compact download switcher beside the bookshelf action. */
.wyl-book-entity { grid-template-columns: minmax(0, 1fr); }
.wyl-entity-main { width: min(100%, 980px); }
.wyl-entity-quick-actions {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.wyl-entity-quick-actions .wyl-book-favorite-inline { min-height: 40px; margin: 0; border-radius: 10px; }
.wyl-book-download {
  position: relative;
  min-width: 126px;
  max-width: min(210px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 4px 12px rgba(16,42,67,.045);
}
.wyl-entity-quick-actions > .wyl-book-download.download-section {
  margin: 0;
  padding: 0;
}
.wyl-entity-quick-actions > .wyl-book-favorite-inline,
.wyl-entity-quick-actions > .wyl-book-download {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  align-self: flex-start;
}
.wyl-book-download.is-single { grid-template-columns: minmax(0, 1fr); }
.wyl-book-download-main {
  min-width: 0;
  height: 38px;
  min-height: 38px;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  color: var(--wyl-ink-2);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}
.wyl-book-download.is-single .wyl-book-download-main { justify-content: center; }
.wyl-book-download-main:hover { color: var(--wyl-jade); }
.wyl-book-download-main .wyl-icon { width: 16px; height: 16px; flex: 0 0 auto; transform: translateY(-1px); }
.wyl-book-download-main strong { min-width: 0; overflow: hidden; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.wyl-book-download-toggle {
  height: 38px;
  min-height: 38px;
  align-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--wyl-line);
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: var(--wyl-muted);
  cursor: pointer;
}
.wyl-book-download-toggle:hover,
.wyl-book-download-toggle[aria-expanded="true"] { background: var(--wyl-surface-soft); color: var(--wyl-jade); }
.wyl-book-download-toggle .wyl-icon { width: 18px; height: 18px; }
.wyl-book-download-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: -1px;
  width: min(245px, calc(100vw - 30px));
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 16px 38px rgba(16,42,67,.16);
  opacity: 0;
  transform: translateY(-5px) scale(.985);
  transform-origin: top right;
  transition: opacity .16s ease, transform .18s var(--wyl-ease-out);
}
.wyl-book-download-menu[hidden] { display: none; }
.wyl-book-download.is-open .wyl-book-download-menu { opacity: 1; transform: none; }
.wyl-book-download-menu button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wyl-ink-2);
  text-align: left;
  cursor: pointer;
}
.wyl-book-download-menu button:hover,
.wyl-book-download-menu button:focus-visible,
.wyl-book-download-menu button[aria-selected="true"] { background: rgba(29,122,99,.09); color: var(--wyl-jade); outline: none; }
.wyl-book-download-menu button > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.wyl-book-download-menu button .wyl-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.wyl-book-download-menu button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-book-download-menu button small { flex: 0 0 auto; color: var(--wyl-muted); font-size: 9px; }
.wyl-entity-quick-actions > .wys-link-feedback { flex: 0 0 100%; margin: -2px 0 0; }
.wyl-entity-quick-actions > .wys-link-feedback .wys-feedback-trigger { width: auto; min-height: 28px; justify-content: flex-start; padding: 2px 0; font-size: 9px; }
.wyl-book-formats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 11px;
  color: var(--wyl-muted);
  font-size: 10px;
}
.wyl-book-formats > strong { color: var(--wyl-ink-2); font-size: 10px; }
.wyl-book-formats > div { display: flex; flex-wrap: wrap; gap: 5px; }
.wyl-book-formats span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--wyl-line);
  border-radius: 6px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink-2);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .02em;
}

html[data-wyl-theme="dark"] .wyl-book-download,
html[data-wyl-theme="dark"] .wyl-book-download-menu { background: var(--wyl-surface-raised); }

@media (max-width: 640px) {
  .wyl-entity-quick-actions { gap: 6px; margin-top: 8px; }
  .wyl-entity-quick-actions .wyl-book-favorite-inline { height: 44px; min-height: 44px; max-height: 44px; padding: 7px 10px; }
  .wyl-entity-quick-actions > .wyl-book-download { height: 44px; min-height: 44px; max-height: 44px; }
  .wyl-book-download { min-width: 119px; grid-template-columns: minmax(0, 1fr) 34px; }
  .wyl-book-download-main { height: 42px; min-height: 42px; padding: 7px 9px; font-size: 10px; }
  .wyl-book-download-toggle { height: 42px; min-height: 42px; }
  .wyl-book-download-menu { left: auto; right: -1px; }
  .wyl-book-formats { margin-top: 9px; }
}

@media (max-width: 370px) {
  .wyl-entity-quick-actions { flex-wrap: wrap; gap: 4px; width: 100%; }
  .wyl-entity-quick-actions .wyl-book-favorite-inline {
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    gap: 4px;
    padding-inline: 6px;
    font-size: 9px;
  }
  .wyl-entity-quick-actions .wyl-book-favorite-inline .wyl-icon { width: 14px; height: 14px; }
  .wyl-entity-quick-actions .wyl-book-favorite-inline small { display: none; }
  .wyl-book-download { min-width: 0; max-width: none; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) 28px; }
  .wyl-entity-quick-actions > .wyl-book-download { height: 44px; min-height: 44px; max-height: 44px; }
  .wyl-book-download-main { height: 42px; min-height: 42px; gap: 4px; padding-inline: 6px; font-size: 9px; }
  .wyl-book-download-main .wyl-icon { width: 14px; height: 14px; }
  .wyl-book-download-toggle { height: 42px; min-height: 42px; }
  .wyl-book-download-toggle .wyl-icon { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-book-download-menu { transition: none; }
}

/* 0.17.3: real iPhone fixes for the detail page and native form controls. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-wyl-theme="dark"] .wyl-book-summary,
html[data-wyl-theme="dark"] .wyl-book-comments,
html[data-wyl-theme="dark"] .wyl-comment-card {
  border-color: transparent;
  background: transparent;
}

.wyl-comment-foot,
.wyl-comment-foot :is(a, button) {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  body.single-post .wyl-site-header {
    position: sticky;
    top: 0;
  }

  .wyl-entity-quick-actions > .wyl-book-favorite-inline,
  .wyl-entity-quick-actions > .wyl-book-download {
    align-self: flex-start;
  }

  body.wyl-library input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  body.wyl-library select,
  body.wyl-library textarea {
    font-size: 16px !important;
  }

  .wyl-comment-foot :is(a, button) {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .wyl-comment-author strong { font-size: 14px; }
  .wyl-comment-author > div > a { font-size: 11px; }
  .wyl-comment-content { font-size: 14px; line-height: 1.7; }
  .wyl-comment-foot :is(a, button) { min-height: 44px; font-size: 12px; font-weight: 700; }
  .wyl-comment-thread-toggle,
  .wyl-comment-thread-collapse { min-height: 44px; font-size: 12px; }
  .wyl-comment-pagination .page-numbers { min-width: 44px; min-height: 44px; font-size: 12px; }
  .wyl-comments-empty strong { font-size: 15px; }
  .wyl-comments-empty p { font-size: 12px; line-height: 1.65; }
}

@media (max-width: 640px) {
  .wyl-book-comments-head > button,
  .wyl-book-summary-toggle,
  .wyl-entity-quick-actions > .wys-link-feedback .wys-feedback-trigger { min-height: 44px; }
}

/* 0.17.7: compact catalogue controls and a narrow side filter drawer. */
.wyl-catalog-page > .wyl-catalog-head { display: none !important; }
.wyl-catalog-page { animation: none; transform: none; }
.wyl-catalog-layout { display: block; }
.wyl-catalog-results { width: 100%; }
body.wyl-filter-open { overflow: hidden; }

.wyl-filter-shell {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 180;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .24s;
}
.wyl-filter-shell.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.wyl-filter-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(6, 15, 21, .48);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(2px);
  transition: opacity .2s ease;
}
.wyl-filter-shell.is-open .wyl-filter-backdrop { opacity: 1; }
.wyl-filter-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(344px, calc(100vw - 48px));
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--wyl-line);
  border-radius: 0 18px 18px 0;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink-2);
  box-shadow: 18px 0 48px rgba(6, 15, 21, .2);
  transform: translateX(-102%);
  transition: transform .24s var(--wyl-ease-out);
}
.wyl-filter-shell.is-open .wyl-filter-panel { transform: translateX(0); }
.wyl-filter-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--wyl-line);
  background: var(--wyl-surface-raised);
}
.wyl-filter-head > div { min-width: 0; display: grid; gap: 2px; }
.wyl-filter-head strong { color: var(--wyl-ink); font-size: 18px; line-height: 1.3; }
.wyl-filter-head small { color: var(--wyl-muted); font-size: 11px; }
.wyl-filter-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink-2);
  cursor: pointer;
}
.wyl-filter-close span { font-size: 24px; font-weight: 350; line-height: 1; transform: translateY(-1px); }
.wyl-filter-panel form {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  border: 0;
  overscroll-behavior: contain;
}
.wyl-filter-field { gap: 6px; }
.wyl-filter-field > span { color: var(--wyl-muted); font-size: 12px; }
.wyl-filter-field select,
.wyl-sort select {
  border-color: var(--wyl-line);
  background-color: var(--wyl-surface-raised);
  color: var(--wyl-ink-2);
}
.wyl-filter-field select:disabled {
  border-color: var(--wyl-line);
  background: var(--wyl-surface-soft);
  color: var(--wyl-faint);
  opacity: .72;
}
.wyl-filter-actions {
  position: sticky;
  bottom: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px 0 0;
  background: var(--wyl-surface-raised);
}
.wyl-filter-actions .wyl-button { min-height: 44px; border-radius: 11px; background: var(--wyl-jade); color: #fff; }
.wyl-filter-actions a {
  min-width: 54px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wyl-line);
  border-radius: 11px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-muted);
}

.wyl-catalog-toolbar { align-items: center; }
.wyl-catalog-controls { display: flex; align-items: center; gap: 8px; }
.wyl-filter-trigger {
  min-width: 92px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink-2);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 42, 67, .035);
}
.wyl-filter-trigger > span {
  width: 16px;
  height: 14px;
  flex: 0 0 16px;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 3px 0 / 5px 5px no-repeat,
    radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 9px 5px / 5px 5px no-repeat,
    radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 5px 10px / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 2px / 16px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 16px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 16px 1px no-repeat;
}
.wyl-filter-trigger strong { font-weight: 750; }
.wyl-filter-trigger b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wyl-jade);
  color: #fff;
  font-size: 10px;
}
.wyl-filter-trigger:hover,
.wyl-filter-trigger[aria-expanded="true"] { border-color: rgba(29, 122, 99, .45); background: rgba(29, 122, 99, .08); color: var(--wyl-jade); }
.wyl-sort { min-width: 132px; }
.wyl-sort select { height: 40px; border-radius: 10px; }

html[data-wyl-theme="dark"] .wyl-filter-panel,
html[data-wyl-theme="dark"] .wyl-filter-head,
html[data-wyl-theme="dark"] .wyl-filter-panel form,
html[data-wyl-theme="dark"] .wyl-filter-actions { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-filter-trigger,
html[data-wyl-theme="dark"] .wyl-filter-close,
html[data-wyl-theme="dark"] .wyl-filter-actions a,
html[data-wyl-theme="dark"] .wyl-filter-field select,
html[data-wyl-theme="dark"] .wyl-sort select {
  border-color: var(--wyl-line);
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink-2);
}
html[data-wyl-theme="dark"] .wyl-filter-trigger:hover,
html[data-wyl-theme="dark"] .wyl-filter-trigger[aria-expanded="true"] { border-color: rgba(86, 198, 164, .5); background: rgba(86, 198, 164, .13); color: var(--wyl-jade); }
html[data-wyl-theme="dark"] .wyl-active-filters a { border-color: var(--wyl-line); background: var(--wyl-surface-soft); color: var(--wyl-blue); }
html[data-wyl-theme="dark"] :is(.wyl-button, .wyl-auth-submit, .wyl-auth-empty .wyl-primary-button, .wyl-checkin-card button:not(:disabled)) {
  border-color: var(--wyl-jade);
  background: var(--wyl-jade);
  color: #07130f;
}
html[data-wyl-theme="dark"] :is(.wyl-message-title button, .wyl-password-field button, .wyl-code-field button) {
  border-color: var(--wyl-line);
  background: var(--wyl-surface-soft);
  color: var(--wyl-blue);
}

@media (max-width: 640px) {
  .wyl-catalog-page { padding-top: 10px !important; }
  .wyl-catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .wyl-catalog-controls { order: 1; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 7px; }
  .wyl-active-filters { order: 2; min-height: 24px; }
  .wyl-filter-trigger,
  .wyl-sort,
  .wyl-sort label,
  .wyl-sort select { width: 100%; min-width: 0; }
  .wyl-filter-trigger,
  .wyl-sort select { height: 42px; }
  .wyl-filter-panel { width: min(316px, calc(100vw - 46px)); border-radius: 0 16px 16px 0; }
  .wyl-filter-head { min-height: 68px; padding-inline: 14px; }
  .wyl-filter-panel form { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px max(16px, env(safe-area-inset-bottom)); }
  .wyl-filter-field select { min-height: 46px; font-size: 16px !important; }
  .wyl-filter-actions { grid-template-columns: minmax(0, 1fr) 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-filter-shell,
  .wyl-filter-backdrop,
  .wyl-filter-panel { transition: none !important; }
}

/* 0.17.8: complete dark-theme coverage for interactive controls. */
html[data-wyl-theme="dark"] .nav-links .page-numbers,
html[data-wyl-theme="dark"] .wyl-comment-pagination .page-numbers {
  border-color: var(--wyl-line);
  background: var(--wyl-surface-raised);
  color: var(--wyl-muted);
}
html[data-wyl-theme="dark"] .nav-links a.page-numbers:hover,
html[data-wyl-theme="dark"] .nav-links a.page-numbers:focus-visible,
html[data-wyl-theme="dark"] .wyl-comment-pagination a.page-numbers:hover,
html[data-wyl-theme="dark"] .wyl-comment-pagination a.page-numbers:focus-visible {
  border-color: rgba(86, 198, 164, .58);
  background: rgba(86, 198, 164, .13);
  color: var(--wyl-jade);
}
html[data-wyl-theme="dark"] .nav-links .page-numbers.current,
html[data-wyl-theme="dark"] .wyl-comment-pagination .page-numbers.current {
  border-color: var(--wyl-jade);
  background: var(--wyl-jade);
  color: #07130f;
}

html[data-wyl-theme="dark"] .wyl-search button,
html[data-wyl-theme="dark"] body.home .wyl-search button,
html[data-wyl-theme="dark"] .wyl-intro-search .wyl-search button,
html[data-wyl-theme="dark"] .wyl-booklist-new,
html[data-wyl-theme="dark"] .wys-feedback-submit,
html[data-wyl-theme="dark"] .wyl-comment-submit {
  border-color: var(--wyl-jade);
  background: var(--wyl-jade);
  color: #07130f;
}
html[data-wyl-theme="dark"] .wyl-search button:hover,
html[data-wyl-theme="dark"] .wyl-booklist-new:hover,
html[data-wyl-theme="dark"] .wys-feedback-submit:hover,
html[data-wyl-theme="dark"] .wyl-comment-submit:hover {
  border-color: #76d9bb;
  background: #76d9bb;
  color: #07130f;
}

html[data-wyl-theme="dark"] .wyl-account .wyl-login,
html[data-wyl-theme="dark"] .wyl-message-pages a,
html[data-wyl-theme="dark"] .wyl-message-read-all,
html[data-wyl-theme="dark"] .wyl-booklist-favorite,
html[data-wyl-theme="dark"] .wyl-booklist-search-results button,
html[data-wyl-theme="dark"] .wyl-booklist-selected button,
html[data-wyl-theme="dark"] .wyl-subgenre-links a {
  border-color: var(--wyl-line);
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink-2);
}
html[data-wyl-theme="dark"] .wyl-account .wyl-login:hover,
html[data-wyl-theme="dark"] .wyl-message-pages a:hover,
html[data-wyl-theme="dark"] .wyl-message-read-all:hover,
html[data-wyl-theme="dark"] .wyl-booklist-favorite:hover,
html[data-wyl-theme="dark"] .wyl-booklist-search-results button:hover,
html[data-wyl-theme="dark"] .wyl-subgenre-links a:hover {
  border-color: rgba(86, 198, 164, .58);
  background: rgba(86, 198, 164, .13);
  color: var(--wyl-jade);
}
html[data-wyl-theme="dark"] .wyl-booklist-favorite.is-active {
  border-color: rgba(238, 140, 125, .52);
  background: rgba(238, 140, 125, .12);
  color: var(--wyl-red);
}
html[data-wyl-theme="dark"] .wyl-booklist-selected button { color: var(--wyl-red); }

html[data-wyl-theme="dark"] .wyl-author-grid > a,
html[data-wyl-theme="dark"] .wyl-collection-grid > a,
html[data-wyl-theme="dark"] .wyl-subgenre-links a,
html[data-wyl-theme="dark"] .wyl-book-cover {
  border-color: var(--wyl-line);
  background: var(--wyl-surface);
}
html[data-wyl-theme="dark"] .wyl-author-grid > a:hover,
html[data-wyl-theme="dark"] .wyl-collection-grid > a:hover {
  border-color: rgba(86, 198, 164, .5);
  background: var(--wyl-surface-soft);
}
html[data-wyl-theme="dark"] .wyl-author-letter {
  background: var(--wyl-surface-soft);
  color: var(--wyl-blue);
}

html[data-wyl-theme="dark"] .wyl-mobile-search-toggle:hover,
html[data-wyl-theme="dark"] .wyl-mobile-search-toggle[aria-expanded="true"],
html[data-wyl-theme="dark"] .wyl-header-message:active,
html[data-wyl-theme="dark"] .wyl-mobile-search-toggle:active,
html[data-wyl-theme="dark"] .wyl-mobile-tabbar a:active {
  background: var(--wyl-surface-soft);
  color: var(--wyl-jade);
}

html[data-wyl-theme="dark"] :is(
  .wyl-account .wyl-login,
  .nav-links .page-numbers,
  .wyl-comment-pagination .page-numbers,
  .wyl-message-pages a,
  .wyl-message-read-all,
  .wyl-message-title button,
  .wyl-password-field button,
  .wyl-code-field button,
  .wyl-booklist-new,
  .wyl-booklist-favorite,
  .wyl-booklist-search-results button,
  .wyl-booklist-selected button,
  .wyl-filter-trigger,
  .wyl-filter-close,
  .wyl-book-comments-head > button,
  .wyl-book-favorite-inline,
  .wyl-book-download-toggle,
  .wyl-ranking-tabs button,
  .wyl-subgenre-links a
):focus-visible {
  outline: 2px solid var(--wyl-jade);
  outline-offset: 2px;
}

/* 0.17.9: keep mobile pagination compact and prevent closed drawers from widening the page. */
.nav-links .page-numbers { white-space: nowrap; }

@media (max-width: 640px) {
  .nav-links { flex-wrap: nowrap; gap: 4px; }
  .nav-links .page-numbers {
    width: 32px;
    min-width: 32px;
    height: 38px;
    flex: 0 0 32px;
    padding: 0 4px;
    font-size: 11px;
  }
  .nav-links .prev,
  .nav-links .next {
    width: 42px;
    min-width: 42px;
    flex-basis: 42px;
    padding-inline: 5px;
  }
}

/* 0.18.0: the mobile search is a real sliding panel with a dismissible backdrop. */
.wyl-search-backdrop { display: none; }

@media (max-width: 900px) {
  body.wyl-search-open { overflow: hidden; }
  body.wyl-search-open::after { display: none; }

  .wyl-header-search {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 104;
    display: block;
    max-width: none;
    margin: 0;
    padding: 14px max(16px, calc((100vw - 720px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(16, 42, 67, .11);
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(16, 42, 67, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -18px, 0);
    transform-origin: top center;
    transition:
      transform .34s cubic-bezier(.22, 1, .36, 1),
      opacity .22s ease,
      visibility 0s linear .34s;
    will-change: transform, opacity;
  }
  .wyl-header-search.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }
  .wyl-header-search .wyl-search {
    width: min(720px, 100%);
    height: 50px;
    margin: 0 auto;
    border-color: rgba(16, 42, 67, .18);
    border-radius: 14px;
    background: var(--wyl-surface-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  .wyl-header-search .wyl-search:focus-within {
    border-color: var(--wyl-jade);
    box-shadow: 0 0 0 4px rgba(29, 122, 99, .14);
  }
  .wyl-header-search .wyl-search input { font-size: 16px; }
  .wyl-header-search .wyl-search button {
    min-width: 88px;
    /* The parent owns the outer curve; a second radius creates a visible
       crescent that makes the button look detached from the field. */
    border-radius: 0;
    background: var(--wyl-jade);
    color: #fff;
    font-size: 14px;
  }
  .wyl-header-search .wyl-search button:hover { background: #176b57; }

  .wyl-search-backdrop {
    position: fixed;
    inset: 72px 0 0;
    z-index: 99;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(9, 20, 28, .32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .24s ease, visibility 0s linear .34s;
  }
  body.wyl-search-open .wyl-search-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .wyl-mobile-search-toggle .wyl-icon {
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
  }
  .wyl-mobile-search-toggle[aria-expanded="true"] {
    background: var(--wyl-surface-soft);
    color: var(--wyl-jade);
  }
  .wyl-mobile-search-toggle[aria-expanded="true"] .wyl-search-close-icon { transform: rotate(90deg); }

  html[data-wyl-theme="dark"] .wyl-header-search {
    border-bottom-color: var(--wyl-line);
    background: rgba(16, 26, 34, .96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  }
  html[data-wyl-theme="dark"] .wyl-header-search .wyl-search {
    border-color: var(--wyl-line);
    background: var(--wyl-surface-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  }
  html[data-wyl-theme="dark"] .wyl-header-search .wyl-search button {
    background: var(--wyl-jade);
    color: #07130f;
  }
}

@media (max-width: 640px) {
  .wyl-header-search {
    left: 0;
    right: 0;
    top: 56px;
    padding: 12px;
    border-radius: 0 0 16px 16px;
  }
  .wyl-search-backdrop { inset: 56px 0 calc(64px + env(safe-area-inset-bottom)); }
  .wyl-header-search .wyl-search { height: 48px; }
  .wyl-header-search .wyl-search button { min-width: 76px; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-header-search,
  .wyl-search-backdrop,
  .wyl-mobile-search-toggle .wyl-icon { transition: none !important; }
}

/* 0.19.0: standalone, filterable message center. */
.wyl-account-page.is-messages {
  width: min(1120px, calc(100% - 56px));
  max-width: none;
  padding-top: 24px;
}
.wyl-account-page.is-messages > .wyl-account-head,
.wyl-account-page.is-messages .wyl-account-nav { display: none; }
.wyl-account-page.is-messages .wyl-account-layout { display: block; }
.wyl-account-page.is-messages .wyl-account-content { min-width: 0; }
.wyl-message-center { display: grid; gap: 16px; }

.wyl-message-hero {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: center;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(29, 122, 99, .16), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f3f8f6 100%);
  box-shadow: var(--wyl-card-shadow);
}
.wyl-message-hero-copy { min-width: 0; }
.wyl-message-hero-copy .wyl-kicker { margin-bottom: 8px; font-size: 10px; }
.wyl-message-hero h1 {
  margin: 0;
  color: var(--wyl-ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: .04em;
  line-height: 1.14;
}
.wyl-message-hero-copy > p:last-child { margin: 9px 0 0; color: var(--wyl-muted); font-size: 13px; }
.wyl-message-overview { display: flex; gap: 10px; }
.wyl-message-overview > span {
  min-width: 90px;
  min-height: 82px;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}
.wyl-message-overview b { color: var(--wyl-ink); font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.wyl-message-overview small { color: var(--wyl-muted); font-size: 10px; }
.wyl-message-hero-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wyl-message-hero-actions > a,
.wyl-message-read-all {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--wyl-line);
  border-radius: 11px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .16s ease;
}
.wyl-message-hero-actions > a .wyl-icon { width: 15px; height: 15px; transform: rotate(180deg); }
.wyl-message-read-all .wyl-icon { width: 16px; height: 16px; }
.wyl-message-hero-actions > a:hover,
.wyl-message-read-all:hover { border-color: rgba(29, 122, 99, .42); background: rgba(29, 122, 99, .08); color: var(--wyl-jade); }
.wyl-message-hero-actions > a:active,
.wyl-message-read-all:active { transform: scale(.97); }
.wyl-message-read-all:disabled { opacity: .6; cursor: wait; }
.wyl-message-read-all[hidden],
.wyl-mobile-unread[hidden],
[data-wyl-message-badge][hidden] { display: none !important; }

.wyl-message-filters {
  display: flex;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 14px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 5px 18px rgba(16, 42, 67, .045);
}
.wyl-message-filters a {
  min-height: 42px;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  color: var(--wyl-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.wyl-message-filters a b {
  min-width: 22px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-faint);
  font-size: 9px;
}
.wyl-message-filters a:hover { color: var(--wyl-ink); background: var(--wyl-surface-soft); }
.wyl-message-filters a.is-active { background: var(--wyl-ink); color: #fff; box-shadow: 0 6px 16px rgba(16, 42, 67, .15); }
.wyl-message-filters a.is-active b { background: rgba(255, 255, 255, .16); color: inherit; }

.wyl-message-list {
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, .09);
  border-radius: 18px;
  background: var(--wyl-surface-raised);
  box-shadow: var(--wyl-card-shadow);
}
.wyl-message-item {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 22px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity .22s ease, transform .22s var(--wyl-ease-out), background-color .2s ease;
}
.wyl-message-item + .wyl-message-item { border-top: 1px solid var(--wyl-line); }
.wyl-message-item.is-unread { background: linear-gradient(90deg, rgba(29, 122, 99, .085), rgba(29, 122, 99, .018) 58%, transparent); }
.wyl-message-item.is-unread::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  height: auto;
  border-radius: 0;
  background: var(--wyl-jade);
}
.wyl-message-item.is-read { background: transparent; }
.wyl-message-item.is-leaving { opacity: 0; transform: translateX(16px); pointer-events: none; }
.wyl-message-type-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(82, 136, 169, .1);
  color: var(--wyl-blue);
}
.wyl-message-type-icon .wyl-icon { width: 20px; height: 20px; }
.wyl-message-item[data-message-type="favorite"] .wyl-message-type-icon { background: rgba(204, 94, 86, .1); color: var(--wyl-red); }
.wyl-message-item[data-message-type="comment"] .wyl-message-type-icon,
.wyl-message-item[data-message-type="private"] .wyl-message-type-icon { background: rgba(29, 122, 99, .11); color: var(--wyl-jade); }
.wyl-message-item[data-message-type="medal"] .wyl-message-type-icon,
.wyl-message-item[data-message-type="hot"] .wyl-message-type-icon { background: rgba(188, 132, 42, .12); color: #a86f16; }
.wyl-message-body { min-width: 0; }
.wyl-message-meta { display: flex; align-items: center; justify-content: flex-start; gap: 9px; color: var(--wyl-muted); font-size: 10px; }
.wyl-message-meta span { color: var(--wyl-jade); font-weight: 800; letter-spacing: .04em; }
.wyl-message-meta time::before { content: "·"; margin-right: 9px; color: var(--wyl-faint); }
.wyl-message-title { display: flex; align-items: flex-start; justify-content: flex-start; gap: 9px; margin-top: 7px; }
.wyl-message-item h2 { margin: 0; color: var(--wyl-ink); font-size: 16px; line-height: 1.45; }
.wyl-message-unread-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 8px; border-radius: 50%; background: var(--wyl-jade); box-shadow: 0 0 0 4px rgba(29, 122, 99, .1); }
.wyl-message-item p { max-width: 820px; margin: 7px 0 0; color: var(--wyl-muted); font-size: 12px; line-height: 1.75; }
.wyl-message-actions { min-height: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 10px; }
.wyl-message-actions > div { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.wyl-message-actions a { display: inline-flex; align-items: center; gap: 2px; color: var(--wyl-blue); font-size: 11px; font-weight: 750; text-decoration: none; }
.wyl-message-actions a:hover { color: var(--wyl-jade); }
.wyl-message-actions a .wyl-icon { width: 13px; height: 13px; }
.wyl-message-actions button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.wyl-message-actions button:hover { color: var(--wyl-jade); background: rgba(29, 122, 99, .1); }
.wyl-message-actions button:disabled { opacity: .6; cursor: wait; }
.wyl-message-status { margin-top: 3px; color: var(--wyl-jade); font-size: 10px; }

.wyl-message-empty {
  min-height: 290px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 34px;
  border: 1px dashed var(--wyl-line);
  border-radius: 18px;
  background: var(--wyl-surface-raised);
  text-align: center;
}
.wyl-message-empty[hidden] { display: none; }
.wyl-message-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--wyl-surface-soft); color: var(--wyl-jade); }
.wyl-message-empty > span .wyl-icon { width: 24px; height: 24px; }
.wyl-message-empty h2 { margin: 16px 0 0; color: var(--wyl-ink); font-size: 18px; }
.wyl-message-empty p { margin: 6px 0 0; color: var(--wyl-muted); font-size: 12px; }
.wyl-message-empty a { margin-top: 15px; color: var(--wyl-blue); font-size: 12px; font-weight: 750; }

.wyl-message-pages { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; gap: 12px; margin-top: 4px; }
.wyl-message-pages > div { grid-column: 2; grid-row: 1; display: flex; justify-content: center; gap: 6px; }
.wyl-message-pages a,
.wyl-message-pages .current,
.wyl-message-pages .dots {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-muted);
  font-size: 11px;
  text-decoration: none;
}
.wyl-message-pages .current { border-color: var(--wyl-jade); background: var(--wyl-jade); color: #fff; font-weight: 800; }
.wyl-message-pages .dots { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.wyl-message-pages > .prev,
.wyl-message-pages > .next { gap: 4px; }
.wyl-message-pages > .prev { grid-column: 1; grid-row: 1; justify-self: start; }
.wyl-message-pages > .prev .wyl-icon { transform: rotate(180deg); }
.wyl-message-pages > .next { grid-column: 3; grid-row: 1; justify-self: end; }
.wyl-message-pages .wyl-icon { width: 14px; height: 14px; }
.wyl-message-pages a:hover { border-color: rgba(29, 122, 99, .42); color: var(--wyl-jade); }

.wyl-mobile-tabbar a { position: relative; }
.wyl-mobile-unread {
  position: absolute;
  top: 1px;
  left: calc(50% + 8px);
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--wyl-surface-raised);
  border-radius: 9px;
  background: var(--wyl-red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

html[data-wyl-theme="dark"] .wyl-message-hero {
  border-color: var(--wyl-line);
  background:
    radial-gradient(circle at 88% 0%, rgba(86, 198, 164, .13), transparent 38%),
    linear-gradient(135deg, #111d25 0%, #0f1920 100%);
}
html[data-wyl-theme="dark"] .wyl-message-overview > span,
html[data-wyl-theme="dark"] .wyl-message-filters,
html[data-wyl-theme="dark"] .wyl-message-list,
html[data-wyl-theme="dark"] .wyl-message-empty { border-color: var(--wyl-line); background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-message-filters a.is-active { background: var(--wyl-jade); color: #07130f; }
html[data-wyl-theme="dark"] .wyl-message-filters a.is-active b { background: rgba(7, 19, 15, .16); color: inherit; }
html[data-wyl-theme="dark"] .wyl-message-item.is-unread { background: linear-gradient(90deg, rgba(86, 198, 164, .12), rgba(86, 198, 164, .025) 62%, transparent); }
html[data-wyl-theme="dark"] .wyl-message-item[data-message-type="medal"] .wyl-message-type-icon,
html[data-wyl-theme="dark"] .wyl-message-item[data-message-type="hot"] .wyl-message-type-icon { color: #e4b866; }
html[data-wyl-theme="dark"] .wyl-message-pages .current { color: #07130f; }

@media (max-width: 640px) {
  .wyl-account-page.is-messages { width: 100%; padding: 12px 12px 24px !important; }
  .wyl-account-page.is-messages .wyl-account-layout { gap: 0; }
  .wyl-message-center { gap: 11px; }
  .wyl-message-hero { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 17px 12px; padding: 20px 18px; border-radius: 18px; }
  .wyl-message-hero-copy .wyl-kicker { margin-bottom: 5px; font-size: 9px; }
  .wyl-message-hero h1 { font-size: 29px; }
  .wyl-message-hero-copy > p:last-child { margin-top: 6px; font-size: 11px; }
  .wyl-message-overview { gap: 6px; }
  .wyl-message-overview > span { min-width: 58px; min-height: 62px; border-radius: 13px; }
  .wyl-message-overview b { font-size: 20px; }
  .wyl-message-overview small { font-size: 8px; }
  .wyl-message-hero-actions { gap: 8px; }
  .wyl-message-hero-actions > a,
  .wyl-message-read-all { min-height: 42px; flex: 1 1 0; padding: 7px 10px; font-size: 11px; }

  .wyl-message-filters {
    position: sticky;
    top: 61px;
    z-index: 9;
    gap: 3px;
    margin: 0 -4px;
    padding: 4px;
    overflow-x: auto;
    border-radius: 13px;
    scrollbar-width: none;
  }
  .wyl-message-filters::-webkit-scrollbar { display: none; }
  .wyl-message-filters a { min-width: 72px; min-height: 40px; gap: 5px; padding: 6px 9px; font-size: 11px; }
  .wyl-message-filters a b { min-width: 19px; height: 18px; padding: 0 5px; font-size: 8px; }
  .wyl-message-list { border-radius: 16px; }
  .wyl-message-item { min-height: 0; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 17px 14px 17px 12px; }
  .wyl-message-type-icon { width: 38px; height: 38px; border-radius: 12px; }
  .wyl-message-type-icon .wyl-icon { width: 18px; height: 18px; }
  .wyl-message-meta { gap: 7px; font-size: 9px; }
  .wyl-message-meta time::before { margin-right: 7px; }
  .wyl-message-title { margin-top: 6px; }
  .wyl-message-item h2 { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .wyl-message-unread-dot { margin-top: 7px; }
  .wyl-message-item p { display: -webkit-box; overflow: hidden; margin-top: 6px; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .wyl-message-actions { min-height: 36px; align-items: center; margin-top: 8px; }
  .wyl-message-actions a { min-height: 36px; font-size: 10px; }
  .wyl-message-actions button { min-height: 36px; padding: 6px 9px; font-size: 10px; }
  .wyl-message-empty { min-height: 250px; border-radius: 16px; }

  .wyl-message-pages { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .wyl-message-pages > .prev,
  .wyl-message-pages > .next { width: 42px; min-width: 42px; padding: 0; }
  .wyl-message-pages > .prev span,
  .wyl-message-pages > .next span { display: none; }
  .wyl-message-pages a,
  .wyl-message-pages .current,
  .wyl-message-pages .dots { min-width: 34px; height: 36px; padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-message-item,
  .wyl-message-hero-actions > a,
  .wyl-message-read-all,
  .wyl-message-filters a { transition: none !important; }
}

/* 0.20 account center: one cohesive app surface instead of stacked admin cards. */
.wyl-account-page:not(.is-messages) { max-width: 1180px; }
.wyl-account-page:not(.is-messages) .wyl-account-head {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 82%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--wyl-jade) 13%, transparent), transparent 34%),
    var(--wyl-surface-raised);
  box-shadow: 0 14px 36px rgba(16, 42, 67, .08);
}
.wyl-account-page:not(.is-messages) .wyl-account-identity img {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wyl-jade) 16%, var(--wyl-surface-raised));
}
.wyl-account-page:not(.is-messages) .wyl-account-setting {
  border-radius: 999px;
  background: color-mix(in srgb, var(--wyl-jade) 9%, transparent);
  color: var(--wyl-jade);
}
.wyl-account-page:not(.is-messages) .wyl-account-nav {
  border: 1px solid color-mix(in srgb, var(--wyl-line) 82%, transparent);
  border-radius: 17px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 14px 34px rgba(16, 42, 67, .07);
}
.wyl-account-page:not(.is-messages) .wyl-account-nav a.is-active {
  background: color-mix(in srgb, var(--wyl-jade) 13%, transparent);
  color: var(--wyl-jade);
}

.wyl-account-data {
  overflow: hidden;
  padding: 16px 18px 5px;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 82%, transparent);
  border-radius: 18px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 14px 34px rgba(16, 42, 67, .07);
}
.wyl-account-data > header { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.wyl-account-data > header > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--wyl-jade); }
.wyl-account-data > header .wyl-icon { width: 22px; height: 22px; }
.wyl-account-data > header h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 18px; }
.wyl-account-data .wyl-account-stats { gap: 0; }
.wyl-account-data .wyl-account-stats > div,
.wyl-account-data .wyl-account-stats > a {
  min-height: 94px;
  align-items: center;
  padding: 10px 13px 13px;
  border: 0;
  border-right: 1px solid var(--wyl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.wyl-account-data .wyl-account-stats > :last-child { border-right: 0; }
.wyl-account-data .wyl-account-stats > div > em,
.wyl-account-data .wyl-account-stats > a > em {
  position: static;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  background: transparent;
  color: var(--wyl-jade);
}
.wyl-account-data .wyl-account-stats > * > em .wyl-icon { width: 21px; height: 21px; }
.wyl-account-data .wyl-account-stats strong { margin-top: 5px; font-size: 25px; }
.wyl-account-data .wyl-account-stats i { display: none; }
.wyl-account-overview-grid { grid-template-columns: 1fr; }
.wyl-account-overview-grid .wyl-account-mini-panel { border-radius: 17px; }

.wyl-profile-group { margin-top: 22px; }
.wyl-profile-group > header { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; padding: 0 3px; }
.wyl-profile-group > header > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--wyl-jade); }
.wyl-profile-group > header .wyl-icon { width: 21px; height: 21px; }
.wyl-profile-group > header h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 19px; }
.wyl-profile-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 86%, transparent);
  border-radius: 16px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 14px 34px rgba(16, 42, 67, .065);
}
.wyl-profile-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wyl-profile-panel + .wyl-profile-panel { border-top: 1px solid var(--wyl-line); }
.wyl-profile-panel summary { min-height: 70px; padding: 13px 17px; }
.wyl-profile-panel summary strong { font-size: 14px; }
.wyl-profile-panel summary small { margin-top: 2px; font-size: 11px; }
.wyl-profile-panel summary i { transform: rotate(-45deg); }
.wyl-profile-panel[open] summary i { transform: rotate(45deg); }
.wyl-profile-panel-body { border-top-color: var(--wyl-line); background: var(--wyl-surface-soft); }
.wyl-profile-signout {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 10px 17px;
  border: 1px solid color-mix(in srgb, var(--wyl-red) 20%, var(--wyl-line));
  border-radius: 16px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-red);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(16, 42, 67, .055);
}
.wyl-profile-signout .wyl-icon { width: 17px; height: 17px; }

.wyl-profile-sheet .wys-app-sheet-panel { border: 1px solid color-mix(in srgb, var(--wyl-line) 88%, transparent); }
.wyl-profile-sheet .wyl-profile-panel-body.is-sheet-copy { padding: 2px 0 0; border: 0; background: transparent; }
.wyl-profile-sheet .wyl-auth-form { max-width: none; gap: 14px; }
.wyl-profile-sheet .wyl-auth-form > label > span:first-child { font-size: 12px; }
.wyl-profile-sheet .wyl-auth-form input[type="text"],
.wyl-profile-sheet .wyl-auth-form input[type="email"],
.wyl-profile-sheet .wyl-auth-form input[type="password"] {
  min-height: 52px;
  border-radius: 12px;
  background: var(--wyl-surface-soft);
  font-size: 16px;
}
.wyl-profile-sheet .wyl-password-field button,
.wyl-profile-sheet .wyl-code-field button {
  top: 7px;
  right: 7px;
  bottom: 7px;
  min-height: 38px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--wyl-blue) 8%, transparent);
}
.wyl-profile-sheet .wyl-auth-submit { width: 100%; min-height: 52px; justify-self: stretch; border-radius: 12px; font-size: 15px; }

html[data-wyl-theme="dark"] .wyl-account-page:not(.is-messages) .wyl-account-head,
html[data-wyl-theme="dark"] .wyl-account-page:not(.is-messages) .wyl-account-nav,
html[data-wyl-theme="dark"] .wyl-account-data,
html[data-wyl-theme="dark"] .wyl-profile-list,
html[data-wyl-theme="dark"] .wyl-profile-signout { background-color: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-account-data .wyl-account-stats > div,
html[data-wyl-theme="dark"] .wyl-account-data .wyl-account-stats > a,
html[data-wyl-theme="dark"] .wyl-profile-panel { background: transparent; }
html[data-wyl-theme="dark"] .wyl-profile-panel-body,
html[data-wyl-theme="dark"] .wyl-profile-sheet .wyl-auth-form input { border-color: var(--wyl-line); background: var(--wyl-surface-soft); color: var(--wyl-ink); }
html[data-wyl-theme="dark"] .wyl-profile-sheet .wyl-password-field button,
html[data-wyl-theme="dark"] .wyl-profile-sheet .wyl-code-field button {
  border: 0;
  background: rgba(125, 211, 252, .1);
  color: var(--wyl-blue);
}

@media (max-width: 640px) {
  input,
  select,
  textarea { font-size: 16px !important; }

  .wyl-account-page:not(.is-messages) {
    width: 100%;
    padding: 10px 12px calc(96px + env(safe-area-inset-bottom));
  }
  .wyl-account-page:not(.is-messages) .wyl-account-head {
    min-height: 88px;
    margin: 0 0 10px;
    padding: 14px 15px;
    border-radius: 18px;
  }
  .wyl-account-page:not(.is-messages) .wyl-account-identity img { width: 56px; height: 56px; }
  .wyl-account-page:not(.is-messages) .wyl-account-identity h1 { max-width: 180px; font-size: 21px; }
  .wyl-account-page:not(.is-messages) .wyl-account-setting { min-width: 42px; min-height: 42px; padding: 6px 10px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav { padding: 5px; border-radius: 16px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a { min-height: 58px; border-radius: 11px; }

  .wyl-account-data { padding: 14px 8px 3px; border-radius: 17px; }
  .wyl-account-data .wyl-account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wyl-account-data > header { padding: 0 5px; }
  .wyl-account-data > header h2 { font-size: 17px; }
  .wyl-account-data .wyl-account-stats > div,
  .wyl-account-data .wyl-account-stats > a { min-height: 91px; padding: 8px 4px 11px; }
  .wyl-account-data .wyl-account-stats span { font-size: 9px; white-space: nowrap; }
  .wyl-account-data .wyl-account-stats strong { font-size: clamp(19px, 5.4vw, 23px); }
  .wyl-account-data .wyl-account-stats small { font-size: 9px; }

  .wyl-checkin-card { min-height: 88px; border-radius: 16px; }
  .wyl-account-section-head { margin-top: 22px; }
  .wyl-account-section-head h1,
  .wyl-account-section-head h2 { font-size: 22px; }

  .wyl-account-book-list.is-preview {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0;
  }
  .wyl-account-book-list.is-preview .wyl-account-book {
    min-height: 116px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--wyl-line) 86%, transparent);
    border-radius: 16px;
    background: var(--wyl-surface-raised);
    box-shadow: 0 14px 34px rgba(16, 42, 67, .065);
  }
  .wyl-account-book-list.is-preview .wyl-account-book:nth-child(n) { display: grid; }
  .wyl-account-book-list.is-preview .wyl-account-book-cover { width: 72px; border-radius: 9px; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy { justify-content: center; padding: 0; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy h3 { font-size: 16px; }
  .wyl-account-book-list.is-preview .wyl-account-book-copy > p { margin-top: 5px; font-size: 12px; }
  .wyl-account-book-list.is-preview .wyl-account-book-actions { display: none; }
  .wyl-account-overview-grid { margin-top: 20px; }
  .wyl-account-mini-panel { border-radius: 16px; }
  .wyl-account-mini-panel .wyl-account-mini-empty { min-height: 98px; align-items: center; padding: 14px; }
  .wyl-account-mini-panel .wyl-account-mini-empty strong { display: block; }

  .wyl-account-page.is-profile .wyl-account-section-head { margin-top: 8px; }
  .wyl-account-page.is-profile .wyl-account-section-head p { display: none; }
  .wyl-profile-group { margin-top: 20px; }
  .wyl-profile-group > header h2 { font-size: 20px; }
  .wyl-profile-list { border-radius: 16px; }
  .wyl-profile-panel { overflow: visible; box-shadow: none; }
  .wyl-profile-panel summary { min-height: 70px; padding: 12px 16px; }
  .wyl-profile-panel summary strong { font-size: 15px; }
  .wyl-profile-panel summary small { max-width: 240px; font-size: 12px; }
  .wyl-profile-panel-body { padding: 17px 15px; }
  .wyl-profile-signout { min-height: 58px; margin-top: 20px; border-radius: 16px; font-size: 14px; }
  .wyl-profile-sheet .wys-app-sheet-panel { border-radius: 24px 24px 0 0; }
  .wyl-profile-sheet .wys-app-sheet-head { padding-inline: 20px; }
  .wyl-profile-sheet .wys-app-sheet-heading h2 { font-size: 25px; }
  .wyl-profile-sheet .wys-app-sheet-body { padding-inline: 20px; }
  .wyl-profile-sheet .wyl-auth-two { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .wyl-account-data .wyl-account-stats span { font-size: 8px; }
  .wyl-account-data .wyl-account-stats strong { font-size: 18px; }
  .wyl-profile-panel summary small { max-width: 190px; }
}

/* 0.21 desktop account refinement and compact book-list editor. */
.wyl-account-tab-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding: 0 3px 11px;
  border-bottom: 1px solid var(--wyl-line);
}
.wyl-account-tab-toolbar p { margin: 0; color: var(--wyl-muted); font-size: 12px; font-weight: 650; }
.wyl-booklist-form label > span small { margin-left: 4px; color: var(--wyl-muted); font-size: .9em; font-weight: 600; }
.wyl-booklist-picker { position: relative; }
.wyl-booklist-search { position: relative; z-index: 8; }
.wyl-booklist-search input { padding-right: 44px; }
.wyl-booklist-search input::-webkit-search-cancel-button { margin: 0; cursor: pointer; }
.wyl-booklist-search .wyl-booklist-search-status { right: 46px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.wyl-booklist-search-results {
  position: absolute;
  top: calc(100% + 7px);
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 12;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--wyl-line);
  border-radius: 13px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 18px 42px rgba(11, 24, 37, .18);
}
.wyl-booklist-search-results[hidden] { display: none !important; }
.wyl-booklist-search-results button:nth-of-type(n + 5) { display: none; }
.wyl-booklist-search-results button {
  min-height: 61px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.wyl-booklist-search-results button + button { border-top: 1px solid var(--wyl-line); border-radius: 0; }
.wyl-booklist-search-results button:hover { background: var(--wyl-surface-soft); }
.wyl-booklist-search-results img { width: 36px; height: 48px; }
.wyl-booklist-cover-placeholder {
  width: 36px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-blue);
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-style: normal;
}
.wyl-booklist-search-results strong { font-size: 13px; }
.wyl-booklist-search-results small { margin-top: 2px; font-size: 10px; }
.wyl-booklist-search-results b { padding: 7px 8px; font-size: 11px; }
.wyl-booklist-results-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 8px 5px;
  border-bottom: 1px solid var(--wyl-line);
  color: var(--wyl-muted);
  font-size: 10px;
  font-weight: 700;
}
.wyl-booklist-results-head .wyl-booklist-results-close {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 0;
  border-radius: 7px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-jade);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.wyl-booklist-results-head .wyl-booklist-results-close:hover { background: color-mix(in srgb, var(--wyl-jade) 12%, var(--wyl-surface-soft)); }
.wyl-booklist-sheet { --wys-sheet-max-height: min(86dvh, 760px); }
.wyl-booklist-sheet .wyl-booklist-form.is-sheet-copy { gap: 12px; }
.wyl-booklist-sheet .wyl-booklist-form textarea { min-height: 86px; max-height: 130px; }
.wyl-booklist-sheet .wys-app-choice-menu { position: absolute; }
.wyl-booklist-sheet .wyl-booklist-search-results { grid-template-columns: 1fr; }
.wyl-booklist-sheet .wyl-booklist-selected { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wyl-booklist-selected .wyl-booklist-cover-placeholder { width: 42px; height: 56px; }
.wyl-booklist-sheet .wyl-booklist-selected:empty { display: none; }
.wyl-booklist-sheet .wyl-booklist-rule { padding-top: 3px; }
.wyl-booklist-sheet .wys-app-sheet-head { position: relative; padding-right: 76px; }
.wyl-booklist-sheet .wys-app-sheet-close {
  position: absolute;
  top: 17px;
  right: 20px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
}
.wyl-booklist-sheet .wys-app-sheet-close::before { content: "\00d7"; font-size: 24px; font-weight: 500; }
.wyl-booklist-sheet .wys-app-sheet-close:has(.wyl-icon)::before { display: none; }

@media (min-width: 901px) {
  .wyl-account-page:not(.is-messages) { max-width: 1380px; }
  .wyl-account-page:not(.is-messages) .wyl-account-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .wyl-account-page:not(.is-messages) .wyl-account-content { min-width: 0; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav { top: 84px; padding: 10px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a { min-height: 50px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }

  .wyl-account-content > .wyl-account-book-list:not(.is-preview) {
    display: block;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--wyl-line) 88%, transparent);
    border-radius: 18px;
    background: var(--wyl-surface-raised);
    box-shadow: 0 14px 34px rgba(16, 42, 67, .06);
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book {
    min-height: 138px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book + .wyl-account-book { border-top: 1px solid var(--wyl-line); }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book:hover { background: color-mix(in srgb, var(--wyl-jade) 3%, transparent); transform: none; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-cover { width: 84px; height: 112px; border-radius: 9px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 28px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy h3,
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy > p,
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-meta { grid-column: 1; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy h3 { margin: 0; font-size: 17px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy > p { margin-top: 4px; font-size: 12px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-meta { margin-top: 10px; gap: 6px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-meta span { padding: 3px 7px; border-radius: 5px; font-size: 10px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions a {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wyl-jade) 10%, transparent);
    color: var(--wyl-jade);
    font-size: 12px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions button { min-height: 40px; padding-inline: 5px; font-size: 11px; }

  .wyl-booklist-sheet .wys-app-sheet-panel { width: min(760px, calc(100vw - 64px)); max-height: min(760px, calc(100dvh - 48px)); }
  .wyl-booklist-sheet .wys-app-sheet-head { padding: 18px 24px 12px; }
  .wyl-booklist-sheet .wys-app-sheet-body { max-height: calc(100dvh - 150px); padding: 0 24px 22px; }
  .wyl-booklist-sheet .wys-app-sheet-heading h2 { font-size: 24px; }
  .wyl-booklist-sheet .wys-app-sheet-heading p { font-size: 11px; }
  .wyl-booklist-sheet .wyl-booklist-form-grid { grid-template-columns: minmax(0, 1fr) 210px; }
}

@media (min-width: 901px) and (min-height: 760px) {
  .wyl-booklist-sheet .wys-app-sheet-panel,
  .wyl-booklist-sheet .wys-app-sheet-body { overflow: visible; }
  .wyl-booklist-sheet .wys-app-sheet-body { max-height: none; }
}

html[data-wyl-theme="dark"] .wyl-account-content > .wyl-account-book-list:not(.is-preview),
html[data-wyl-theme="dark"] .wyl-booklist-search-results { border-color: var(--wyl-line); background: var(--wyl-surface-raised); }

@media (max-width: 640px) {
  .wyl-account-tab-toolbar { min-height: 40px; margin: 8px 0 10px; padding: 0 2px 8px; }
  .wyl-account-tab-toolbar p { font-size: 11px; }
  .wyl-booklist-search input { padding-right: 42px; }
  .wyl-booklist-search .wyl-booklist-search-status { right: 44px; max-width: 68px; font-size: 9px; }
  .wyl-booklist-search-results {
    top: calc(100% + 7px);
  }
  .wyl-booklist-search-results button:nth-of-type(n + 4) { display: none; }
  .wyl-booklist-sheet .wyl-booklist-selected { grid-template-columns: 1fr; }
  .wyl-booklist-sheet .wys-app-sheet-head { padding-right: 68px; }
  .wyl-booklist-sheet .wys-app-sheet-close { top: 16px; right: 18px; }
}

/* 0.22 booklist management: books stay on the page; metadata and search use focused sheets. */
.wyl-booklist-manager {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 90%, transparent);
  border-radius: 20px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 18px 46px rgba(16, 42, 67, .075);
}
.wyl-booklist-manager-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--wyl-line); }
.wyl-booklist-manager-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--wyl-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.wyl-booklist-manager-back .wyl-icon { width: 18px; height: 18px; color: var(--wyl-ink); }
.wyl-booklist-manager-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wyl-booklist-manager-title h2 {
  margin: 0;
  color: var(--wyl-ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}
.wyl-booklist-manager-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  color: var(--wyl-muted);
  font-size: 11px;
}
.wyl-booklist-manager-summary span { display: inline-flex; align-items: center; gap: 5px; }
.wyl-booklist-manager-summary strong { color: inherit; font-size: inherit; }
.wyl-booklist-manager-summary .wyl-icon { width: 15px; height: 15px; }
.wyl-booklist-meta-button,
.wyl-booklist-add-button,
.wyl-booklist-save-order {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid var(--wyl-line);
  border-radius: 11px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}
.wyl-booklist-meta-button:hover,
.wyl-booklist-add-button:hover { border-color: color-mix(in srgb, var(--wyl-jade) 45%, var(--wyl-line)); color: var(--wyl-jade); }
.wyl-booklist-books-form { display: grid; }
.wyl-booklist-manager-list { display: grid; padding: 0 24px; }
.wyl-booklist-manager-row {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 36px 56px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wyl-line);
  background: var(--wyl-surface-raised);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wyl-booklist-manager-row.is-dragging {
  z-index: 2;
  border-radius: 13px;
  background: color-mix(in srgb, var(--wyl-jade) 7%, var(--wyl-surface-raised));
  box-shadow: 0 12px 30px rgba(16, 42, 67, .14);
  transform: scale(1.008);
}
.wyl-booklist-manager-row > img,
.wyl-booklist-manager-row > .wyl-booklist-cover-placeholder { width: 56px; height: 76px; object-fit: cover; border-radius: 7px; }
.wyl-booklist-drag {
  width: 36px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wyl-muted);
  cursor: grab;
  touch-action: none;
}
.wyl-booklist-drag:active { cursor: grabbing; }
.wyl-booklist-drag:hover,
.wyl-booklist-drag:focus-visible { background: var(--wyl-surface-soft); color: var(--wyl-jade); outline: none; }
.wyl-booklist-drag .wyl-icon { width: 21px; height: 21px; stroke-width: 1.8; }
.wyl-booklist-manager-copy { min-width: 0; display: grid; gap: 5px; }
.wyl-booklist-manager-copy strong,
.wyl-booklist-manager-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wyl-booklist-manager-copy strong { color: var(--wyl-ink); font-size: 15px; }
.wyl-booklist-manager-copy small { color: var(--wyl-muted); font-size: 11px; }
.wyl-booklist-remove {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wyl-line);
  border-radius: 50%;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink);
  cursor: pointer;
}
.wyl-booklist-remove .wyl-icon { width: 17px; height: 17px; }
.wyl-booklist-remove:hover { border-color: color-mix(in srgb, var(--wyl-red) 30%, var(--wyl-line)); background: color-mix(in srgb, var(--wyl-red) 8%, var(--wyl-surface-soft)); color: var(--wyl-red); }
.wyl-booklist-manager-empty { margin: 22px 24px; padding: 26px; border: 1px dashed var(--wyl-line); border-radius: 14px; text-align: center; }
.wyl-booklist-manager-empty[hidden] { display: none; }
.wyl-booklist-manager-empty strong { color: var(--wyl-ink); font-size: 16px; }
.wyl-booklist-manager-empty p { margin: 6px 0 0; color: var(--wyl-muted); font-size: 11px; }
.wyl-booklist-sort-status { min-height: 18px; margin: 8px 24px 0; color: var(--wyl-muted); font-size: 10px; }
.wyl-booklist-manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  background: var(--wyl-surface-raised);
}
.wyl-booklist-add-button { border-color: var(--wyl-jade); background: transparent; color: var(--wyl-jade); }
.wyl-booklist-add-button .wyl-icon { width: 16px; height: 16px; }
.wyl-booklist-save-order { min-width: 132px; border-color: #57ceb0; background: linear-gradient(135deg, #62d7bc, #50c9a9); color: #063d33; }
.wyl-booklist-save-order:disabled { border-color: #8adac6; background: linear-gradient(135deg, #91dfcd, #7fd5bd); color: #356b60; cursor: default; opacity: .88; }
.wyl-booklist-manager.is-dirty .wyl-booklist-save-order { box-shadow: 0 8px 20px rgba(80, 201, 169, .22); }
.wyl-booklist-manager template { display: none; }
.wyl-booklist-description-field { position: relative; }
.wyl-booklist-description-field textarea { padding-bottom: 28px !important; }
.wyl-booklist-description-count { position: absolute; right: 13px; bottom: 10px; color: var(--wyl-faint); font-size: 10px; font-weight: 600; }
.wyl-booklist-sheet .wys-app-choice-trigger small .wyl-icon { width: 17px; height: 17px; color: var(--wyl-ink); }
.wyl-booklist-add-form { min-height: 122px; padding-bottom: 18px !important; }
.wyl-booklist-add-form .wyl-booklist-search-results { position: relative; top: auto; margin-top: 8px; }
.wyl-booklist-add-form .wyl-booklist-rule { padding-top: 5px; }

html[data-wyl-theme="dark"] .wyl-booklist-manager,
html[data-wyl-theme="dark"] .wyl-booklist-manager-row,
html[data-wyl-theme="dark"] .wyl-booklist-manager-actions { border-color: var(--wyl-line); background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-booklist-manager-row.is-dragging { background: color-mix(in srgb, var(--wyl-jade) 12%, var(--wyl-surface-raised)); }

@media (min-width: 901px) {
  .wyl-booklist-manager { max-width: 980px; }
  .wyl-booklist-sheet:has(.wyl-booklist-add-form) .wys-app-sheet-panel { width: min(620px, calc(100vw - 64px)); }
}

@media (max-width: 640px) {
  .wyl-booklist-manager { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .wyl-booklist-manager-head { margin-bottom: 10px; padding: 12px 3px 15px; border: 0; }
  .wyl-booklist-manager-back { min-height: 38px; margin: 0 0 8px; font-size: 11px; }
  .wyl-booklist-manager-title { align-items: center; gap: 10px; }
  .wyl-booklist-manager-title h2 { font-size: 24px; }
  .wyl-booklist-manager-title p { margin-top: 5px; font-size: 10px; }
  .wyl-booklist-meta-button { min-height: 39px; flex: 0 0 auto; padding-inline: 12px; border-radius: 10px; background: var(--wyl-surface-raised); font-size: 11px; }
  .wyl-booklist-books-form { border: 1px solid color-mix(in srgb, var(--wyl-line) 90%, transparent); border-radius: 17px; background: var(--wyl-surface-raised); box-shadow: 0 14px 34px rgba(16, 42, 67, .065); }
  .wyl-booklist-manager-list { padding: 0 11px; }
  .wyl-booklist-manager-row {
    min-height: 86px;
    grid-template-columns: 27px 46px minmax(0, 1fr) 43px;
    gap: 8px;
    padding: 10px 0;
  }
  .wyl-booklist-manager-row > img,
  .wyl-booklist-manager-row > .wyl-booklist-cover-placeholder { width: 46px; height: 62px; border-radius: 6px; }
  .wyl-booklist-drag { width: 27px; height: 42px; border-radius: 8px; }
  .wyl-booklist-manager-copy { gap: 3px; }
  .wyl-booklist-manager-copy strong { font-size: 13px; }
  .wyl-booklist-manager-copy small { font-size: 10px; }
  .wyl-booklist-remove { width: 34px; height: 34px; }
  .wyl-booklist-manager-empty { margin: 15px 12px; padding: 22px 14px; }
  .wyl-booklist-sort-status { min-height: 16px; margin: 6px 13px 0; font-size: 9px; }
  .wyl-booklist-manager-actions {
    position: sticky;
    z-index: 5;
    bottom: calc(73px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    padding: 10px 11px;
    border-radius: 0 0 17px 17px;
    box-shadow: 0 -10px 24px rgba(16, 42, 67, .07);
  }
  .wyl-booklist-add-button,
  .wyl-booklist-save-order { min-width: 0; min-height: 46px; padding: 0 10px; border-radius: 11px; font-size: 12px; }
  .wyl-booklist-add-button { background: var(--wyl-surface-soft); }
  .wyl-booklist-add-form { min-height: 154px; }
  .wyl-booklist-add-form .wyl-booklist-search-results { max-height: min(390px, 46dvh); overflow-y: auto; }
  .wyl-booklist-add-form .wyl-booklist-search-results button:nth-of-type(n) { display: grid; }
}

@media (max-width: 370px) {
  .wyl-booklist-manager-row { grid-template-columns: 25px 42px minmax(0, 1fr) 40px; gap: 7px; }
  .wyl-booklist-manager-row > img,
  .wyl-booklist-manager-row > .wyl-booklist-cover-placeholder { width: 42px; height: 57px; }
}

/* 0.22.1: the mobile booklist editor is a focused app screen matching the approved mock. */
@media (max-width: 640px) {
  body.wyl-booklist-editor-view { min-height: 100dvh; background: var(--wyl-surface-raised); }
  body.wyl-booklist-editor-view .wyl-site-header,
  body.wyl-booklist-editor-view .wyl-search-backdrop,
  body.wyl-booklist-editor-view .wyl-site-footer,
  body.wyl-booklist-editor-view .wyl-mobile-tabbar { display: none !important; }
  body.wyl-booklist-editor-view .wyl-account-page.is-booklist-editor {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: 0 0 calc(88px + env(safe-area-inset-bottom));
    animation: none;
  }
  .wyl-account-page.is-booklist-editor > .wyl-account-head,
  .wyl-account-page.is-booklist-editor .wyl-account-nav { display: none; }
  .wyl-account-page.is-booklist-editor .wyl-account-layout { display: block; }
  .wyl-account-page.is-booklist-editor .wyl-account-content { width: 100%; }
  .wyl-account-page.is-booklist-editor .wyl-auth-notice { display: none; }

  .wyl-account-page.is-booklist-editor .wyl-booklist-manager { width: 100%; min-height: calc(100dvh - 88px); }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-head {
    margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 20px 0;
    border: 0;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-back {
    min-height: 48px;
    margin: 0 0 10px;
    gap: 9px;
    color: var(--wyl-ink);
    font-size: 16px;
    font-weight: 800;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-back .wyl-icon { width: 24px; height: 24px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-title { align-items: center; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-title h2 {
    min-width: 0;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-meta-button {
    min-height: 38px;
    padding: 0 14px;
    border-color: #57ceb0;
    border-radius: 999px;
    background: transparent;
    color: #168069;
    font-size: 12px;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-summary {
    min-height: 52px;
    margin-top: 10px;
    border-bottom: 1px solid var(--wyl-line);
    font-size: 12px;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-summary span:last-child { color: var(--wyl-faint); }
  .wyl-account-page.is-booklist-editor .wyl-booklist-books-form {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-list { padding: 0 20px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-row {
    min-height: 111px;
    grid-template-columns: 32px 61px minmax(0, 1fr) 38px;
    gap: 13px;
    padding: 13px 0;
    background: transparent;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-row > img,
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-row > .wyl-booklist-cover-placeholder {
    width: 61px;
    height: 83px;
    border-radius: 5px;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-drag { width: 32px; height: 52px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-drag .wyl-icon { width: 23px; height: 23px; color: #8292a1; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-copy { gap: 6px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-family: "Songti SC", "STSong", serif;
    font-size: 16px;
    line-height: 1.42;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-copy small { font-size: 12px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-remove { width: 38px; height: 38px; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-sort-status { min-height: 0; margin: 0; }
  .wyl-account-page.is-booklist-editor .wyl-booklist-manager-actions {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wyl-line);
    border-radius: 0;
    background: color-mix(in srgb, var(--wyl-surface-raised) 96%, transparent);
    box-shadow: 0 -10px 28px rgba(16, 42, 67, .08);
    backdrop-filter: blur(16px);
  }
  .wyl-account-page.is-booklist-editor .wyl-booklist-add-button,
  .wyl-account-page.is-booklist-editor .wyl-booklist-save-order {
    min-height: 52px;
    border-radius: 9px;
    font-size: 14px;
  }

  .wyl-booklist-sheet.is-booklist-metadata-sheet { --wys-sheet-max-height: min(66dvh, 620px) !important; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-panel { border-radius: 26px 26px 0 0; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-drag { height: 27px; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-head { align-items: center; padding: 0 20px 16px; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-eyebrow,
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-heading p { display: none; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-heading h2 { font-family: "Songti SC", "STSong", serif; font-size: 25px; }
  .wyl-booklist-sheet .wys-app-sheet-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
  }
  .wyl-booklist-sheet .wys-app-sheet-close .wyl-icon { width: 21px; height: 21px; color: var(--wyl-ink); }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-sheet-body { max-height: calc(var(--wys-sheet-max-height) - 96px); padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wyl-booklist-meta-form { gap: 18px; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wyl-booklist-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wyl-booklist-meta-form label { gap: 8px; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wyl-booklist-meta-form label > span { color: var(--wyl-ink); font-size: 12px; font-weight: 800; }
  .wyl-booklist-sheet.is-booklist-metadata-sheet input,
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-choice-trigger { min-height: 52px; border-radius: 10px; background: var(--wyl-surface-raised); }
  .wyl-booklist-sheet.is-booklist-metadata-sheet textarea { min-height: 126px; border-radius: 10px; background: var(--wyl-surface-raised); }
  .wyl-booklist-sheet.is-booklist-metadata-sheet .wyl-auth-submit { min-height: 54px; border: 0 !important; border-radius: 10px; background: linear-gradient(135deg, #62d7bc, #50c9a9); color: #063d33; font-size: 14px; }
}

html[data-wyl-theme="dark"] body.wyl-booklist-editor-view { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-booklist-sheet.is-booklist-metadata-sheet input,
html[data-wyl-theme="dark"] .wyl-booklist-sheet.is-booklist-metadata-sheet textarea,
html[data-wyl-theme="dark"] .wyl-booklist-sheet.is-booklist-metadata-sheet .wys-app-choice-trigger { border-color: var(--wyl-line); background: var(--wyl-surface-soft); color: var(--wyl-ink); }

/* 0.22.3 public booklists: stable mobile context and a real list layout. */
.wyl-collections-page { max-width: 1180px; }
.wyl-collections-page .wyl-catalog-head { margin-bottom: 20px; }
.wyl-collections-page .wyl-public-booklists { padding-top: 0; }
.wyl-booklist-list-meta {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--wyl-line);
}
.wyl-booklist-list-meta strong { color: var(--wyl-ink); font-size: 17px; }
.wyl-booklist-list-meta span { color: var(--wyl-muted); font-size: 12px; }
.wyl-collections-page .wyl-booklist-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
}
.wyl-collections-page .wyl-booklist-card {
  width: 100%;
  min-height: 150px;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 17px;
  padding: 16px;
  border: 1px solid var(--wyl-line);
  border-radius: 16px;
  box-shadow: var(--wyl-card-shadow);
}
.wyl-collections-page .wyl-booklist-covers { height: 116px; }
.wyl-collections-page .wyl-booklist-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wyl-collections-page .wyl-booklist-copy p { font-size: 11px; line-height: 1.6; }

@media (max-width: 640px) {
  .wyl-booklist-mobile-back {
    position: sticky;
    top: 56px;
    z-index: 95;
    width: calc(100% + 24px);
    margin: -4px -12px 8px;
    padding: 0 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--wyl-line) 74%, transparent);
    background: color-mix(in srgb, var(--wyl-app-bg) 96%, transparent);
    box-shadow: 0 5px 14px rgba(16, 42, 67, .04);
    backdrop-filter: blur(14px);
  }
  .wyl-collections-page { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .wyl-collections-page .wyl-catalog-head {
    min-height: 72px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
  }
  .wyl-collections-page .wyl-catalog-head .wyl-button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .wyl-collections-page .wyl-booklist-list-meta { min-height: 36px; margin-bottom: 10px; padding-bottom: 8px; }
  .wyl-collections-page .wyl-booklist-list-meta strong { font-size: 16px; }
  .wyl-collections-page .wyl-booklist-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .wyl-collections-page .wyl-booklist-card {
    width: 100%;
    min-height: 126px;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 13px;
    flex: none;
    padding: 13px;
    border: 1px solid var(--wyl-line);
    border-radius: 14px;
    scroll-snap-align: none;
  }
  .wyl-collections-page .wyl-booklist-covers { height: 98px; }
  .wyl-collections-page .wyl-booklist-cover { width: 60px; height: 82px; }
  .wyl-collections-page .wyl-booklist-cover.is-2 { left: 30px; }
  .wyl-collections-page .wyl-booklist-cover.is-3 { left: 60px; }
  .wyl-collections-page .wyl-booklist-copy h3 { font-size: 16px; }
  .wyl-collections-page .wyl-booklist-copy p { margin-top: 7px; font-size: 10px; }
}

html[data-wyl-theme="dark"] .wyl-booklist-mobile-back {
  background: color-mix(in srgb, var(--wyl-app-bg) 96%, transparent);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}

/* 0.23 personal center: task-first navigation, readable lists, and production-sized controls. */
.wyl-account-page:not(.is-messages) .wyl-account-identity > div { min-width: 0; }
.wyl-account-page:not(.is-messages) .wyl-account-setting {
  gap: 7px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid color-mix(in srgb, var(--wyl-jade) 24%, var(--wyl-line));
  white-space: nowrap;
}
.wyl-account-setting .wyl-icon { width: 17px; height: 17px; }
.wyl-account-setting-short { display: none; }
.wyl-account-data .wyl-account-stats strong,
.wyl-account-nav b,
.wyl-account-tab-toolbar p { font-variant-numeric: tabular-nums; }
.wyl-checkin-card { border-left-width: 1px; }

.wyl-account-recent-downloads li a {
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 11px;
  padding: 7px 14px;
}
.wyl-account-recent-downloads .wyl-account-download-cover {
  width: 38px;
  height: 51px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  border-radius: 6px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-blue);
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}
.wyl-account-recent-downloads .wyl-account-download-cover img { width: 100%; height: 100%; object-fit: cover; }
.wyl-account-recent-downloads .wyl-account-download-copy {
  min-width: 0;
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  gap: 3px;
}
.wyl-account-recent-downloads .wyl-account-download-copy strong,
.wyl-account-recent-downloads .wyl-account-download-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wyl-account-recent-downloads .wyl-account-download-copy small { color: var(--wyl-muted); font-size: 10px; }
.wyl-account-recent-downloads li a > i { display: grid; place-items: center; color: var(--wyl-faint); }
.wyl-account-recent-downloads li a > i .wyl-icon { width: 17px; height: 17px; }

.wyl-manage-booklist-copy { min-width: 0; }
.wyl-manage-booklist-copy > p > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wyl-jade) 10%, transparent);
  color: var(--wyl-jade);
  font-size: 10px;
  font-weight: 750;
}
.wyl-manage-booklist-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--wyl-surface-soft);
  text-decoration: none;
}
.wyl-manage-booklist-actions a:hover { background: color-mix(in srgb, var(--wyl-jade) 10%, var(--wyl-surface-soft)); color: var(--wyl-jade); }
.wyl-manage-booklist-actions a.is-danger:hover { background: color-mix(in srgb, var(--wyl-red) 8%, var(--wyl-surface-soft)); color: var(--wyl-red); }

.wyl-account-page:not(.is-messages) :is(a, button, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wyl-jade) 34%, transparent);
  outline-offset: 2px;
}

@media (min-width: 901px) {
  .wyl-account-page:not(.is-messages) { max-width: 1240px; }
  .wyl-account-page:not(.is-messages) .wyl-account-layout { grid-template-columns: 216px minmax(0, 1fr); gap: 24px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav { padding: 11px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a { min-height: 52px; }
  .wyl-account-page:not(.is-messages) .wyl-account-content { max-width: 1000px; }
  .wyl-account-page:not(.is-messages) .wyl-account-tab-toolbar { margin-bottom: 15px; }
  .wyl-booklist-new { min-height: 44px; padding-inline: 16px; }
  .wyl-manage-booklists > article { min-height: 122px; padding: 16px; border-radius: 16px; }
}

@media (max-width: 640px) {
  body.wyl-account-view .wyl-site-header {
    z-index: 120;
    background: var(--wyl-surface);
    box-shadow: 0 1px 0 var(--wyl-line), 0 8px 22px rgba(16, 42, 67, .08);
    backdrop-filter: none;
  }
  .wyl-account-page:not(.is-messages) { overflow: visible; }
  .wyl-account-page:not(.is-messages) .wyl-account-head {
    min-height: 82px;
    overflow: visible;
    padding: 12px 13px;
  }
  .wyl-account-page:not(.is-messages) .wyl-account-identity {
    min-width: 0;
    flex: 1 1 auto;
    gap: 11px;
  }
  .wyl-account-page:not(.is-messages) .wyl-account-identity img { width: 54px; height: 54px; }
  .wyl-account-page:not(.is-messages) .wyl-account-identity h1 { max-width: none; font-size: 20px; }
  .wyl-account-page:not(.is-messages) .wyl-account-setting {
    min-width: 62px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 11px;
  }
  .wyl-account-setting-label { display: none; }
  .wyl-account-setting-short { display: inline; }

  .wyl-account-page:not(.is-messages) .wyl-account-nav {
    position: sticky;
    top: 62px;
    z-index: 105;
    align-self: start;
    overflow: hidden;
    margin-inline: -2px;
    padding: 5px;
    border-color: color-mix(in srgb, var(--wyl-line) 90%, transparent);
    background: var(--wyl-surface-raised);
    box-shadow: 0 10px 26px rgba(16, 42, 67, .11);
  }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a {
    min-height: 60px;
    padding: 6px 2px;
    font-size: 10px;
  }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a > .wyl-icon { width: 19px; height: 19px; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a b { min-width: 18px; height: 18px; }
  .wyl-account-content { padding-top: 1px; }

  .wyl-account-tab-toolbar { min-height: 48px; margin-top: 4px; }
  .wyl-booklist-new { min-height: 44px; padding-inline: 14px; font-size: 11px; }

  .wyl-account-book-list:not(.is-preview) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book {
    min-height: 128px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 10px;
    border-radius: 15px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-cover { width: 76px; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-copy { min-width: 0; padding: 0; }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions {
    width: 100%;
    display: flex;
    gap: 6px;
    padding-top: 7px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions a,
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions button {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--wyl-surface-soft);
    font-size: 11px;
  }
  .wyl-account-book-list:not(.is-preview) .wyl-account-book-actions a { color: var(--wyl-jade); }

  .wyl-manage-booklists { gap: 11px; }
  .wyl-manage-booklists > article {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--wyl-line) 88%, transparent);
    border-radius: 16px;
  }
  .wyl-manage-booklists h2 { margin: 5px 0 3px; font-size: 16px; }
  .wyl-manage-booklists .wyl-manage-booklist-copy > span { font-size: 11px; }
  .wyl-manage-booklist-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 7px;
    justify-content: stretch;
    padding-top: 10px;
  }
  .wyl-manage-booklist-actions a { min-height: 44px; flex: 1 1 0; padding-inline: 8px; font-size: 11px; }

  .wyl-account-recent-downloads li a { min-height: 72px; }
  .wyl-account-mini-panel > header a,
  .wyl-account-section-head > a { min-height: 44px; display: inline-flex; align-items: center; }
  .wyl-account-empty > a { min-height: 44px; }
  .wyl-profile-sheet .wyl-password-field button,
  .wyl-profile-sheet .wyl-code-field button { top: 4px; bottom: 4px; min-height: 44px; }
  .wyl-profile-sheet .wys-app-sheet-close { min-width: 44px; min-height: 44px; }
}

@media (max-width: 360px) {
  .wyl-account-page:not(.is-messages) .wyl-account-setting { min-width: 48px; padding-inline: 8px; }
  .wyl-account-page:not(.is-messages) .wyl-account-setting .wyl-icon { display: none; }
  .wyl-account-page:not(.is-messages) .wyl-account-nav a { font-size: 9px; }
}

html[data-wyl-theme="dark"] body.wyl-account-view .wyl-site-header { background: var(--wyl-app-bg); }

/* 0.23.1: profile personalization, useful search discovery, and fully tappable downloads. */
.wyl-search-panel-content { width: 100%; }
.wyl-hot-searches { display: none; }

.wyl-account-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
.wyl-account-avatar > img { display: block; object-fit: cover; }
.wyl-account-avatar > span { display: none; }
.wyl-account-page:not(.is-messages) .wyl-account-setting {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  display: grid;
  padding: 0;
  place-items: center;
  border-radius: 14px;
}
.wyl-account-page:not(.is-messages) .wyl-account-setting .wyl-icon {
  width: 20px;
  height: 20px;
}
.wyl-account-data { padding-top: 8px; }

.wyl-account-book.is-card-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.wyl-account-book.is-card-link .wyl-account-book-open {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--wyl-jade) 8%, transparent);
  color: var(--wyl-jade);
  transition: background-color .2s ease, transform .2s ease;
}
.wyl-account-book.is-card-link .wyl-account-book-open .wyl-icon { width: 17px; height: 17px; }
.wyl-account-book.is-card-link:hover .wyl-account-book-open {
  background: color-mix(in srgb, var(--wyl-jade) 14%, transparent);
  transform: translateX(2px);
}

.wyl-profile-avatar-summary {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.wyl-profile-avatar-summary > img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wyl-jade) 12%, transparent);
}
.wyl-profile-avatar-summary > span { display: grid; gap: 3px; }
.wyl-avatar-form { gap: 18px !important; }
.wyl-avatar-preview {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 4px 0 2px;
}
.wyl-avatar-preview img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--wyl-jade) 12%, transparent), 0 14px 34px rgba(16, 42, 67, .12);
}
.wyl-avatar-preview strong { color: var(--wyl-ink); font-size: 15px; }
.wyl-avatar-picker {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--wyl-jade) 38%, var(--wyl-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--wyl-jade) 5%, var(--wyl-surface-soft));
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.wyl-avatar-picker:hover {
  border-color: var(--wyl-jade);
  background: color-mix(in srgb, var(--wyl-jade) 9%, var(--wyl-surface-soft));
}
.wyl-avatar-picker > span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
}
.wyl-avatar-picker .wyl-icon {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  justify-self: center;
  color: var(--wyl-jade);
}
.wyl-avatar-picker b {
  overflow: hidden;
  color: var(--wyl-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wyl-avatar-picker small { color: var(--wyl-muted); font-size: 10px; }

html[data-wyl-theme="dark"] .wyl-avatar-picker {
  border-color: color-mix(in srgb, var(--wyl-jade) 44%, var(--wyl-line));
  background: color-mix(in srgb, var(--wyl-jade) 7%, var(--wyl-surface-soft));
}

@media (max-width: 900px) {
  .wyl-header-search {
    top: 80px;
    left: 12px;
    right: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 42, 67, .1);
    border-radius: 18px;
  }
  .wyl-hot-searches {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px 12px;
    align-items: start;
    margin: 13px auto 1px;
  }
  .wyl-hot-searches > span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--wyl-muted);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
  }
  .wyl-hot-searches > span .wyl-icon { width: 15px; height: 15px; color: var(--wyl-jade); }
  .wyl-hot-searches > div { display: flex; flex-wrap: wrap; gap: 7px; }
  .wyl-hot-searches a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    max-width: min(210px, 100%);
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--wyl-line) 82%, transparent);
    border-radius: 9px;
    background: var(--wyl-surface-soft);
    color: var(--wyl-muted);
    font-size: 11px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wyl-hot-searches a:hover { border-color: color-mix(in srgb, var(--wyl-jade) 38%, var(--wyl-line)); color: var(--wyl-jade); }
  html[data-wyl-theme="dark"] .wyl-header-search { border-color: var(--wyl-line); }
}

@media (max-width: 640px) {
  .wyl-header-search {
    top: 64px;
    left: 10px;
    right: 10px;
    padding: 12px;
    border-radius: 16px;
  }
  .wyl-hot-searches {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
  }
  .wyl-hot-searches > span { min-height: 20px; }
  .wyl-hot-searches > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wyl-hot-searches a { width: 100%; max-width: none; }

  .wyl-account-page:not(.is-messages) .wyl-account-setting {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .wyl-account-page:not(.is-messages) .wyl-account-setting .wyl-icon {
    display: block !important;
    width: 20px;
    height: 20px;
  }
  .wyl-account-avatar > span {
    position: absolute;
    right: 1px;
    bottom: -2px;
    left: 1px;
    display: block;
    overflow: hidden;
    padding: 2px 4px;
    border-radius: 7px;
    background: rgba(9, 20, 28, .72);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wyl-account-data { padding: 5px 8px 3px; }
  .wyl-account-book.is-card-link .wyl-account-book-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    grid-template-rows: auto auto auto;
    column-gap: 9px;
  }
  .wyl-account-book.is-card-link .wyl-account-book-copy h3,
  .wyl-account-book.is-card-link .wyl-account-book-copy > p,
  .wyl-account-book.is-card-link .wyl-account-book-meta { grid-column: 1; }
  .wyl-account-book.is-card-link .wyl-account-book-open { grid-column: 2; grid-row: 1 / span 3; }
  .wyl-profile-sheet.is-avatar .wys-app-sheet-panel { min-height: min(58vh, 560px); }
  .wyl-profile-sheet.is-avatar .wys-app-sheet-body { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .wyl-avatar-picker { min-height: 76px; }
}

@media (max-width: 360px) {
  .wyl-hot-searches a { padding-inline: 8px; font-size: 10px; }
  .wyl-account-page:not(.is-messages) .wyl-account-setting { width: 44px; min-width: 44px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-account-book.is-card-link .wyl-account-book-open,
  .wyl-avatar-picker { transition: none !important; }
}

/* 0.24 reader growth: legacy-compatible levels, medals, check-in and profile avatar. */
button.wyl-account-avatar {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.wyl-account-identity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wyl-account-identity-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wyl-account-page .wyl-account-identity .wyl-account-identity-meta img {
  width: 28px;
  height: 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.wyl-growth-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--wyl-jade) 24%, var(--wyl-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--wyl-jade) 5%, var(--wyl-surface-raised));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 42, 67, .055);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wyl-growth-summary-card:hover { border-color: color-mix(in srgb, var(--wyl-jade) 48%, var(--wyl-line)); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(16, 42, 67, .08); }
.wyl-growth-summary-level { min-width: 72px; display: grid; justify-items: center; gap: 4px; }
.wyl-growth-summary-level img { width: 62px; height: 32px; object-fit: contain; }
.wyl-growth-summary-level b { color: var(--wyl-blue); font-size: 11px; }
.wyl-growth-summary-copy { min-width: 0; display: grid; gap: 4px; }
.wyl-growth-summary-copy strong { color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 20px; }
.wyl-growth-summary-copy small { color: var(--wyl-muted); font-size: 11px; }
.wyl-growth-summary-copy i { height: 5px; overflow: hidden; margin-top: 3px; border-radius: 999px; background: var(--wyl-line); }
.wyl-growth-summary-copy i span { display: block; height: 100%; border-radius: inherit; background: var(--wyl-jade); }
.wyl-growth-summary-medals { min-width: 66px; display: grid; justify-items: end; gap: 1px; }
.wyl-growth-summary-medals b { color: var(--wyl-ink); font-size: 20px; }
.wyl-growth-summary-medals small { color: var(--wyl-muted); font-size: 10px; }
.wyl-growth-summary-card > .wyl-icon { width: 18px; height: 18px; color: var(--wyl-jade); }

.wyl-growth-page { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wyl-growth-page > *,
.wyl-growth-columns > *,
.wyl-growth-medal-grid > * { min-width: 0; }
.wyl-growth-page-head { display: flex; align-items: flex-start; gap: 14px; }
.wyl-growth-page-head > a { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface-raised); color: var(--wyl-ink); text-decoration: none; }
.wyl-growth-page-head > a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.wyl-growth-page-head > a .wyl-icon { width: 18px; height: 18px; }
.wyl-growth-page-head > div { min-width: 0; }
.wyl-growth-page-head p,
.wyl-growth-panel > header p,
.wyl-growth-medals > header p { margin: 0 0 2px; color: var(--wyl-jade); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.wyl-growth-page-head h1 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: clamp(25px, 3vw, 34px); }
.wyl-growth-page-head div > span { color: var(--wyl-muted); font-size: 11px; }

.wyl-growth-level-card {
  padding: 22px;
  border-radius: 18px;
  background: #102f4a;
  color: #fff;
  box-shadow: 0 18px 42px rgba(16, 47, 74, .18);
}
.wyl-growth-level-main { display: flex; align-items: center; gap: 16px; }
.wyl-growth-level-icon { width: 92px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.08); }
.wyl-growth-level-icon img { width: 76px; height: 42px; object-fit: contain; }
.wyl-growth-level-main p { margin: 0 0 2px; color: rgba(255,255,255,.62); font-size: 10px; }
.wyl-growth-level-main h2 { margin: 0; color: #fff; font-family: "Songti SC", "STSong", serif; font-size: 30px; }
.wyl-growth-level-main div > span { color: rgba(255,255,255,.72); font-size: 11px; }
.wyl-growth-progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; color: rgba(255,255,255,.72); font-size: 10px; }
.wyl-growth-progress { height: 7px; overflow: hidden; margin-top: 7px; border-radius: 999px; background: rgba(255,255,255,.14); }
.wyl-growth-progress > span { display: block; height: 100%; border-radius: inherit; background: #57c9a9; }
.wyl-growth-level-scale { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; margin-top: 18px; padding: 4px 1px 2px; scrollbar-width: thin; }
.wyl-growth-level-scale > span { min-width: 62px; display: grid; justify-items: center; gap: 3px; opacity: .48; }
.wyl-growth-level-scale > span.is-current { opacity: 1; }
.wyl-growth-level-scale img { width: 42px; height: 24px; object-fit: contain; }
.wyl-growth-level-scale b { color: #fff; font-size: 9px; }
.wyl-growth-level-scale small { color: rgba(255,255,255,.58); font-size: 8px; }

.wyl-growth-checkin { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 19px; border: 1px solid color-mix(in srgb, var(--wyl-jade) 28%, var(--wyl-line)); border-radius: 16px; background: color-mix(in srgb, var(--wyl-jade) 7%, var(--wyl-surface-raised)); }
.wyl-growth-checkin p { margin: 0 0 2px; color: var(--wyl-jade); font-size: 10px; font-weight: 800; }
.wyl-growth-checkin h2 { margin: 0; color: var(--wyl-ink); font-size: 17px; }
.wyl-growth-checkin div > span { color: var(--wyl-muted); font-size: 10px; }
.wyl-growth-checkin button { min-width: 120px; min-height: 44px; padding: 8px 17px; border: 0; border-radius: 12px; background: var(--wyl-jade); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.wyl-growth-checkin button:disabled { border: 1px solid var(--wyl-line); background: transparent; color: var(--wyl-muted); cursor: default; }

.wyl-growth-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.wyl-growth-panel,
.wyl-growth-medals { overflow: hidden; border: 1px solid var(--wyl-line); border-radius: 17px; background: var(--wyl-surface-raised); box-shadow: 0 10px 28px rgba(16,42,67,.045); }
.wyl-growth-panel > header,
.wyl-growth-medals > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--wyl-line); }
.wyl-growth-panel > header h2,
.wyl-growth-medals > header h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 19px; }
.wyl-growth-panel > header > span,
.wyl-growth-medals > header > span { color: var(--wyl-muted); font-size: 10px; }
.wyl-growth-task-list,
.wyl-growth-history { display: grid; }
.wyl-growth-task-list article { min-height: 68px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--wyl-line); }
.wyl-growth-task-list article:last-child,
.wyl-growth-history article:last-child { border-bottom: 0; }
.wyl-growth-task-list article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--wyl-jade) 9%, var(--wyl-surface-soft)); color: var(--wyl-jade); }
.wyl-growth-task-list article > span .wyl-icon { width: 17px; height: 17px; }
.wyl-growth-task-list h3,
.wyl-growth-history h3 { margin: 0; color: var(--wyl-ink); font-size: 12px; }
.wyl-growth-task-list p { margin: 2px 0 0; color: var(--wyl-muted); font-size: 9px; }
.wyl-growth-task-list article > b { color: var(--wyl-jade); font-size: 13px; }
.wyl-growth-task-list article.is-complete > b::after { content: " 已完成"; color: var(--wyl-muted); font-size: 8px; font-weight: 600; }
.wyl-growth-history article { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 17px; border-bottom: 1px solid var(--wyl-line); }
.wyl-growth-history time { color: var(--wyl-muted); font-size: 9px; }
.wyl-growth-history strong { color: var(--wyl-jade); font-size: 13px; }
.wyl-growth-empty { margin: 0; padding: 20px 17px; color: var(--wyl-muted); font-size: 11px; line-height: 1.7; }

@media (min-width: 761px) {
  .wyl-growth-history { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

.wyl-growth-medal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.wyl-growth-medal-grid article { position: relative; min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--wyl-line); border-radius: 14px; background: var(--wyl-surface-soft); }
.wyl-growth-medal-grid article.is-locked { opacity: .52; filter: grayscale(1); }
.wyl-growth-medal-art { position: relative; width: 72px; height: 82px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--wyl-jade) 8%, var(--wyl-surface-raised)); }
.wyl-growth-medal-art img { width: 58px; height: 58px; object-fit: contain; }
.wyl-growth-medal-art span { position: absolute; right: 4px; bottom: 4px; left: 4px; padding: 2px 3px; border-radius: 5px; background: rgba(16,42,67,.82); color: #fff; font-size: 7px; font-weight: 800; text-align: center; }
.wyl-growth-medal-grid article > div:nth-child(2) { min-width: 0; }
.wyl-growth-medal-grid p { margin: 0 0 2px; color: var(--wyl-jade); font-size: 8px; font-weight: 800; }
.wyl-growth-medal-grid h3 { overflow: hidden; margin: 0; color: var(--wyl-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-growth-medal-grid div > span { display: block; margin-top: 3px; color: var(--wyl-muted); font-size: 9px; line-height: 1.4; }
.wyl-growth-medal-grid article > button { grid-column: 1 / -1; min-height: 34px; border: 1px solid color-mix(in srgb, var(--wyl-jade) 38%, var(--wyl-line)); border-radius: 9px; background: transparent; color: var(--wyl-jade); font-size: 10px; font-weight: 800; cursor: pointer; }
.wyl-growth-medal-grid article > button:disabled { border-color: transparent; background: color-mix(in srgb, var(--wyl-jade) 10%, transparent); cursor: default; }

.wyl-profile-avatar-trigger { width: 100%; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wyl-profile-avatar-trigger > i { display: grid; place-items: center; color: var(--wyl-blue); }
.wyl-profile-avatar-trigger > i .wyl-icon { width: 17px; height: 17px; }
.wyl-avatar-stage { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 0 5px; }
.wyl-avatar-preview { padding: 0; }
.wyl-avatar-preview.is-square img { width: 140px; height: 140px; border-radius: 18px; }
.wyl-avatar-preview.is-round img { width: 76px; height: 76px; border-radius: 50%; }
.wyl-avatar-help { margin: -6px 0 0; color: var(--wyl-muted); font-size: 10px; line-height: 1.6; }
.wyl-avatar-sheet .wys-app-sheet-panel { max-width: 520px; }

.wyl-toast.wyl-status-stack {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 10020;
  width: min(340px, calc(100vw - 28px));
  max-width: none;
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  pointer-events: none;
}
.wyl-status-toast { position: relative; display: grid; grid-template-columns: 31px minmax(0, 1fr) 30px; align-items: center; gap: 9px; min-height: 58px; padding: 9px 9px 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #102a43; color: #fff; box-shadow: 0 16px 36px rgba(5,18,29,.24); pointer-events: auto; animation: wylStatusIn .26s cubic-bezier(.22,.8,.3,1) both; }
.wyl-status-toast.is-leaving { animation: wylStatusOut .2s ease both; }
.wyl-status-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.09); font-size: 15px; }
.wyl-status-toast.is-success .wyl-status-icon { background: rgba(87,201,169,.14); color: #75dfc1; }
.wyl-status-toast.is-error .wyl-status-icon { background: rgba(239,124,105,.15); color: #ff9d8d; }
.wyl-status-toast.is-warning .wyl-status-icon,
.wyl-status-toast.is-loading .wyl-status-icon { background: rgba(230,179,90,.15); color: #f1c879; }
.wyl-status-copy { min-width: 0; display: grid; gap: 2px; }
.wyl-status-copy strong { color: #fff; font-size: 11px; }
.wyl-status-copy span { color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.45; }
.wyl-status-close { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.68); font-size: 17px; cursor: pointer; }
.wyl-status-close:hover { background: rgba(255,255,255,.08); color: #fff; }
@keyframes wylStatusIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes wylStatusOut { to { opacity: 0; transform: translateX(20px); } }

html[data-wyl-theme="dark"] .wyl-growth-summary-card,
html[data-wyl-theme="dark"] .wyl-growth-checkin,
html[data-wyl-theme="dark"] .wyl-growth-panel,
html[data-wyl-theme="dark"] .wyl-growth-medals,
html[data-wyl-theme="dark"] .wyl-growth-page-head > a { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-growth-medal-grid article,
html[data-wyl-theme="dark"] .wyl-growth-medal-art { background: var(--wyl-surface-soft); }

@media (max-width: 980px) {
  .wyl-growth-medal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wyl-account-nav .wyl-account-growth-nav { display: none; }
  .wyl-growth-summary-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; padding: 13px; border-radius: 14px; }
  .wyl-growth-summary-level { min-width: 54px; }
  .wyl-growth-summary-level img { width: 52px; height: 28px; }
  .wyl-growth-summary-copy strong { font-size: 17px; }
  .wyl-growth-summary-medals { display: none; }
  .wyl-growth-summary-card > .wyl-icon { width: 16px; height: 16px; }
  .wyl-growth-page { gap: 12px; }
  .wyl-growth-page-head { align-items: center; }
  .wyl-growth-page-head > a { min-width: 44px; min-height: 44px; }
  .wyl-growth-page-head h1 { font-size: 24px; }
  .wyl-growth-level-card { padding: 17px 15px; border-radius: 16px; }
  .wyl-growth-level-icon { width: 74px; height: 56px; }
  .wyl-growth-level-icon img { width: 62px; height: 35px; }
  .wyl-growth-level-main h2 { font-size: 26px; }
  .wyl-growth-level-scale { margin-right: -15px; padding-right: 15px; }
  .wyl-growth-checkin { grid-template-columns: 1fr; gap: 11px; padding: 15px; }
  .wyl-growth-checkin button { width: 100%; min-height: 44px; }
  .wyl-growth-columns { grid-template-columns: 1fr; gap: 12px; }
  .wyl-growth-panel,
  .wyl-growth-medals { border-radius: 15px; }
  .wyl-growth-medal-grid { grid-template-columns: 1fr; padding: 12px; }
  .wyl-growth-medal-grid article { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 11px; }
  .wyl-growth-medal-art { width: 64px; height: 72px; }
  .wyl-growth-medal-art img { width: 50px; height: 50px; }
  .wyl-growth-medal-grid article > button { grid-column: 3; grid-row: 1; min-width: 64px; min-height: 36px; }
  .wyl-avatar-sheet .wys-app-sheet-panel { min-height: min(64vh, 600px); }
  .wyl-avatar-sheet .wys-app-sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .wyl-avatar-stage { gap: 17px; }
  .wyl-avatar-preview.is-square img { width: 124px; height: 124px; }
  .wyl-toast.wyl-status-stack { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-growth-summary-card,
  .wyl-status-toast { transition: none !important; animation: none !important; }
}

/* 0.25 mature growth, medal and avatar interactions, based on the legacy reader UI. */
.wyl-account-worn-medal {
  width: auto;
  height: auto;
  display: inline-grid !important;
  place-items: center;
  margin-left: 0;
  border-radius: 0;
  background: transparent;
}
.wyl-account-worn-medal[hidden] { display: none !important; }
.wyl-account-page .wyl-account-identity .wyl-account-identity-meta .wyl-account-worn-medal > img {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.wyl-account-level-mark,
.wyl-account-worn-medal { box-shadow: none !important; }
.wyl-account-level-mark::before,
.wyl-account-worn-medal::before { content: none !important; }

.wyl-growth-page-head p { display: none; }
.wyl-growth-level-overview {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  gap: 16px;
}
.wyl-growth-level-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
  color: #866127;
  box-shadow: 0 16px 38px rgba(134,97,39,.16);
}
.wyl-growth-level-decoration,
.wyl-growth-level-decoration::before,
.wyl-growth-level-decoration::after {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(25deg, rgba(234,190,123,.6), rgba(255,247,229,.55));
  content: "";
  pointer-events: none;
}
.wyl-growth-level-decoration { right: -84px; bottom: -158px; width: 270px; height: 270px; }
.wyl-growth-level-decoration::before { right: 88px; top: -122px; width: 320px; height: 190px; transform: rotate(-18deg); opacity: .46; }
.wyl-growth-level-decoration::after { right: -72px; top: -170px; width: 250px; height: 150px; transform: rotate(19deg); opacity: .58; }
.wyl-growth-level-owner,
.wyl-growth-level-main,
.wyl-growth-progress-copy,
.wyl-growth-progress { position: relative; z-index: 1; }
.wyl-growth-level-owner { display: flex; align-items: center; gap: 7px; color: #866127; font-size: 11px; }
.wyl-growth-level-owner > span { width: 30px; height: 30px; overflow: hidden; border-radius: 50%; }
.wyl-growth-level-owner img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.wyl-growth-level-main { gap: 12px; }
.wyl-growth-level-icon {
  width: 78px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.wyl-growth-level-icon img { width: 74px; height: 40px; }
.wyl-growth-level-main h2 { color: #866127; font-size: 29px; }
.wyl-growth-level-main div > span { color: rgba(111,77,28,.78); }
.wyl-growth-progress-copy { margin-top: 18px; }
.wyl-growth-progress-copy { color: rgba(111,77,28,.82); }
.wyl-growth-progress { height: 4px; margin-top: 8px; background: #dbbd8e; }
.wyl-growth-progress > span { background: #9b6b4e; box-shadow: none; }
.wyl-growth-ladder {
  min-width: 0;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px 20px 14px;
  border: 1px solid var(--wyl-line);
  border-radius: 18px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 12px 32px rgba(16,42,67,.055);
}
.wyl-growth-ladder > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wyl-growth-ladder > header strong { color: var(--wyl-ink); font-size: 13px; }
.wyl-growth-ladder > header span { color: var(--wyl-jade); font-size: 10px; font-weight: 750; }
.wyl-growth-ladder .wyl-growth-level-scale {
  align-items: end;
  gap: 9px;
  margin: 8px -3px 0;
  padding: 0 3px 2px;
}
.wyl-growth-ladder .wyl-growth-level-scale > span {
  min-width: 52px;
  gap: 4px;
  opacity: .4;
}
.wyl-growth-ladder .wyl-growth-level-scale > span.is-reached { opacity: .72; }
.wyl-growth-ladder .wyl-growth-level-scale > span.is-current { opacity: 1; }
.wyl-growth-ladder .wyl-growth-level-scale small { order: 0; color: var(--wyl-muted); font-size: 7px; }
.wyl-growth-ladder .wyl-growth-level-scale i {
  order: 1;
  width: 24px;
  min-height: 8px;
  border-radius: 7px 7px 3px 3px;
  background: color-mix(in srgb, var(--wyl-blue) 17%, var(--wyl-line));
}
.wyl-growth-ladder .wyl-growth-level-scale .is-reached i { background: color-mix(in srgb, var(--wyl-jade) 62%, var(--wyl-blue)); }
.wyl-growth-ladder .wyl-growth-level-scale .is-current i { background: linear-gradient(180deg, #69d5b8, #1c9075); box-shadow: 0 8px 18px rgba(28,144,117,.2); }
.wyl-growth-ladder .wyl-growth-level-scale img { order: 2; width: 42px; height: 23px; }

.wyl-growth-medal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.wyl-growth-medal-card {
  position: relative;
  min-width: 0;
  min-height: 168px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 13px 10px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.wyl-growth-medal-card:hover,
.wyl-growth-medal-card:focus-visible {
  border-color: color-mix(in srgb, var(--wyl-jade) 26%, var(--wyl-line));
  background: color-mix(in srgb, var(--wyl-jade) 5%, var(--wyl-surface-soft));
  transform: translateY(-2px);
  outline: none;
}
.wyl-growth-medal-card.is-locked { opacity: .48; filter: grayscale(1); }
.wyl-growth-medal-card.is-worn { border-color: color-mix(in srgb, var(--wyl-jade) 42%, var(--wyl-line)); background: color-mix(in srgb, var(--wyl-jade) 7%, var(--wyl-surface-soft)); }
.wyl-growth-medal-card .wyl-growth-medal-art {
  position: relative;
  width: 76px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}
.wyl-growth-medal-card .wyl-growth-medal-art img { width: 68px; height: 68px; object-fit: contain; }
.wyl-growth-medal-card .wyl-growth-medal-art i {
  position: absolute;
  right: -8px;
  bottom: 0;
  padding: 3px 6px;
  border: 2px solid var(--wyl-surface-raised);
  border-radius: 999px;
  background: var(--wyl-blue);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.wyl-growth-medal-card.is-worn .wyl-growth-medal-art i { background: var(--wyl-jade); }
.wyl-growth-medal-copy { min-width: 0; display: grid; justify-items: center; gap: 2px; }
.wyl-growth-medal-copy small { color: var(--wyl-jade); font-size: 8px; font-weight: 750; }
.wyl-growth-medal-copy strong { max-width: 100%; overflow: hidden; color: var(--wyl-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wyl-growth-medal-copy em { max-width: 100%; overflow: hidden; color: var(--wyl-muted); font-size: 9px; font-style: normal; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

.wyl-medal-sheet .wys-app-sheet-panel { max-width: 430px; }
.wyl-medal-detail { display: grid; gap: 14px; }
.wyl-medal-hero {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px 24px 24px;
  border: 1px solid var(--wyl-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wyl-jade) 5%, var(--wyl-surface-soft));
  text-align: center;
}
.wyl-medal-hero > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wyl-medal-hero-copy { position: relative; display: grid; justify-items: center; gap: 7px; }
.wyl-medal-hero-copy > img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(16,42,67,.16)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wyl-medal-hero-copy small { color: var(--wyl-jade); font-size: 10px; font-weight: 750; }
.wyl-medal-hero-copy h3 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.wyl-medal-hero-copy p { margin: 0; color: var(--wyl-muted); font-size: 11px; line-height: 1.6; }
.wyl-medal-earned-at { color: var(--wyl-blue) !important; font-size: 10px !important; }
.wyl-medal-sheet-action { min-height: 46px; border: 0; border-radius: 12px; background: var(--wyl-jade); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.wyl-medal-sheet-action:disabled { background: color-mix(in srgb, var(--wyl-jade) 11%, var(--wyl-surface-soft)); color: var(--wyl-muted); cursor: default; }

.wyl-avatar-sheet .wys-app-sheet-panel { max-width: 650px; }
.wyl-avatar-form { gap: 14px !important; }
.wyl-avatar-editor { display: grid; grid-template-columns: minmax(0, 1fr) 116px; align-items: center; gap: 18px; }
.wyl-avatar-crop {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 330px);
  overflow: hidden;
  justify-self: center;
  border: 1px solid var(--wyl-line);
  border-radius: 20px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--wyl-line) 70%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--wyl-line) 70%, transparent) 75%),
    linear-gradient(45deg, color-mix(in srgb, var(--wyl-line) 70%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--wyl-line) 70%, transparent) 75%),
    var(--wyl-surface-soft);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.wyl-avatar-crop::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.48); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16,42,67,.05); pointer-events: none; }
.wyl-avatar-crop .wyl-avatar-current,
.wyl-avatar-crop canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.wyl-avatar-crop .wyl-avatar-current[hidden],
.wyl-avatar-crop canvas[hidden],
.wyl-avatar-preview img[hidden],
.wyl-avatar-preview canvas[hidden] { display: none !important; }
.wyl-avatar-crop canvas { cursor: grab; touch-action: none; user-select: none; }
.wyl-avatar-crop canvas:active { cursor: grabbing; }
.wyl-avatar-crop > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(12,39,57,.72);
  color: #fff;
  font-size: 9px;
  text-align: center;
  backdrop-filter: blur(9px);
}
.wyl-avatar-preview-rail { display: grid; align-content: center; justify-items: center; gap: 20px; }
.wyl-avatar-preview { gap: 6px; padding: 0; }
.wyl-avatar-preview > span { display: grid; place-items: center; overflow: hidden; border: 1px solid var(--wyl-line); background: var(--wyl-surface-soft); }
.wyl-avatar-preview > span img,
.wyl-avatar-preview > span canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.wyl-avatar-preview.is-square > span img,
.wyl-avatar-preview.is-square > span canvas,
.wyl-avatar-preview.is-round > span img,
.wyl-avatar-preview.is-round > span canvas { width: 100%; height: 100%; border-radius: inherit; }
.wyl-avatar-preview.is-square > span { width: 92px; height: 92px; border-radius: 15px; }
.wyl-avatar-preview.is-round > span { width: 68px; height: 68px; border-radius: 50%; }
.wyl-avatar-preview strong { color: var(--wyl-muted); font-size: 9px; font-weight: 650; }
.wyl-avatar-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.wyl-avatar-tools[hidden] { display: none; }
.wyl-avatar-tools label { display: grid; gap: 7px; color: var(--wyl-ink); font-size: 10px; font-weight: 750; }
.wyl-avatar-tools input[type="range"] { width: 100%; accent-color: var(--wyl-jade); }
.wyl-avatar-tools button { min-height: 38px; padding: 0 15px; border: 1px solid var(--wyl-line); border-radius: 10px; background: var(--wyl-surface-soft); color: var(--wyl-blue); font-size: 10px; font-weight: 750; cursor: pointer; }
.wyl-avatar-picker {
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
}
.wyl-avatar-picker > img { width: 44px; height: 44px; border-radius: 11px; }
.wyl-avatar-picker > span { display: grid; gap: 3px; }
.wyl-avatar-picker b { font-size: 11px; }
.wyl-avatar-picker input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}
.wyl-avatar-help { margin: 0; }
.wyl-avatar-help.is-error { color: var(--wyl-danger, #c65348); }
.wyl-avatar-form .wyl-auth-submit:disabled { opacity: .48; cursor: not-allowed; }

.wyl-toast.wyl-status-stack { right: 0; bottom: 6em; width: min(320px, calc(100vw - 20px)); gap: 7px; }
.wyl-status-toast {
  min-width: 210px;
  min-height: 48px;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  gap: 8px;
  padding: 9px 13px 9px 12px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(135deg, rgba(45,113,179,.94), rgba(35,83,132,.94));
  box-shadow: 0 12px 32px rgba(14,35,52,.19);
  backdrop-filter: saturate(1.4) blur(18px);
}
.wyl-status-toast.is-success { background: linear-gradient(135deg, rgba(34,160,127,.95), rgba(27,122,102,.95)); }
.wyl-status-toast.is-error { background: linear-gradient(135deg, rgba(213,79,71,.95), rgba(170,54,55,.95)); }
.wyl-status-toast.is-warning,
.wyl-status-toast.is-loading { background: linear-gradient(135deg, rgba(213,145,43,.96), rgba(180,105,27,.96)); }
.wyl-status-icon { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14) !important; color: #fff !important; }
.wyl-status-icon .wyl-icon { width: 15px; height: 15px; }
.wyl-status-copy { display: block; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.45; }
.wyl-status-close { color: rgba(255,255,255,.82); }
.wyl-status-close .wyl-icon { width: 15px; height: 15px; }
@keyframes wylStatusIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes wylStatusOut { to { opacity: 0; transform: translateX(100%); } }

html[data-wyl-theme="dark"] .wyl-growth-ladder { background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-growth-medal-card.is-worn { background: color-mix(in srgb, var(--wyl-jade) 12%, var(--wyl-surface-soft)); }

@media (max-width: 1120px) {
  .wyl-growth-level-overview { grid-template-columns: 1fr; }
  .wyl-growth-medal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wyl-growth-page-head div > span { font-size: 10px; }
  .wyl-growth-level-overview { gap: 10px; }
  .wyl-growth-level-card { min-height: 172px; padding: 16px; border-radius: 16px; }
  .wyl-growth-ladder { min-height: 166px; padding: 14px 13px 10px; border-radius: 16px; }
  .wyl-growth-ladder .wyl-growth-level-scale { margin-right: -13px; padding-right: 13px; }
  .wyl-growth-ladder .wyl-growth-level-scale > span { min-width: 48px; }
  .wyl-growth-medal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px; }
  .wyl-growth-medal-card { min-height: 154px; padding: 10px 8px; }
  .wyl-growth-medal-card .wyl-growth-medal-art { width: 68px; height: 70px; }
  .wyl-growth-medal-card .wyl-growth-medal-art img { width: 60px; height: 60px; }
  .wyl-medal-sheet .wys-app-sheet-panel { min-height: min(58vh, 530px); }
  .wyl-avatar-sheet .wys-app-sheet-panel { min-height: min(74vh, 680px); }
  .wyl-avatar-editor { grid-template-columns: minmax(0, 1fr) 82px; gap: 12px; }
  .wyl-avatar-crop { width: min(100%, 280px); border-radius: 17px; }
  .wyl-avatar-preview-rail { gap: 14px; }
  .wyl-avatar-preview.is-square > span { width: 72px; height: 72px; border-radius: 12px; }
  .wyl-avatar-preview.is-round > span { width: 56px; height: 56px; }
  .wyl-avatar-picker { min-height: 62px; grid-template-columns: 38px minmax(0, 1fr); }
  .wyl-avatar-picker > img { width: 38px; height: 38px; }
  .wyl-toast.wyl-status-stack { right: 0; bottom: calc(78px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 16px)); }
}

/* 0.25.2: compact account identity, quiet growth ladder, and a balanced desktop detail page. */
.wyl-header-user-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wyl-header-user-tools .wyl-account > a { gap: 8px; }
.wyl-header-user-tools .wyl-account img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
}

.wyl-account-identity-meta { gap: 4px 7px; }
.wyl-account-page .wyl-account-identity .wyl-account-identity-meta .wyl-account-level-mark > img {
  width: 48px;
  height: 26px;
}
.wyl-growth-level-scale {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wyl-growth-level-scale::-webkit-scrollbar { display: none; }

.wyl-book-summary-title {
  margin: 0 0 8px;
  color: var(--wyl-ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
}

@media (min-width: 1101px) {
  .wyl-book-page { width: min(1240px, calc(100% - 64px)); padding-top: 24px; }
  .wyl-book-page .wyl-breadcrumb { margin-bottom: 18px; }
  .wyl-book-page .wyl-book-entity { padding-bottom: 34px; }
  .wyl-book-page .wyl-entity-main {
    width: min(100%, 1180px);
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 42px;
    row-gap: 0;
    margin-inline: auto;
  }
  .wyl-book-page .wyl-entity-cover { width: 250px; }
  .wyl-book-page .wyl-entity-copy { max-width: 820px; padding-top: 4px; }
  .wyl-book-page .wyl-entity-copy h1 { max-width: 18em; font-size: clamp(38px, 3vw, 50px); }
  .wyl-book-page .wyl-entity-author { margin-top: 14px; }
  .wyl-book-page .wyl-book-summary { max-width: 820px; margin-top: 15px; }
  .wyl-book-page .wyl-book-summary > .wyl-book-summary-text { max-width: 75ch; font-size: 15px; line-height: 1.86; }
  .wyl-book-page .wyl-book-comments { width: min(100%, 1180px); margin: 34px auto 0; }
  .wyl-book-page .wyl-book-comments-body { max-width: 920px; }
  .wyl-book-page .wyl-related { margin-top: 38px; }
}

@media (max-width: 900px) {
  .wyl-header-user-tools { display: contents; }
}

@media (max-width: 640px) {
  .wyl-header-avatar {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  .wyl-header-user-tools .wyl-account img { width: 100%; height: 100%; }
  .wyl-book-summary-title { margin-bottom: 6px; font-size: 12px; }
}

/* 0.25.4: stable production-preview compositing and a true avatar crop. */
.wyl-main { animation: none; transform: none; }
.wyl-site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-wyl-theme="dark"] .wyl-site-header,
html[data-wyl-theme="dark"] body.home .wyl-site-header { background: var(--wyl-app-bg); }

.wyl-header-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wyl-surface-soft);
}
.wyl-header-user-tools .wyl-account .wyl-header-avatar img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.wyl-rankings-page > .wyl-breadcrumb,
.wyl-collections-page > .wyl-breadcrumb { margin-bottom: 18px; }
.wyl-rankings-page .wyl-ranking-browser { margin-top: 0; }

.wyl-booklist-list-meta > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wyl-booklist-list-create {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 10px;
  white-space: nowrap;
}
.wyl-booklist-list-create .wyl-icon { width: 15px; height: 15px; }

.wyl-message-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--wyl-line);
}
.wyl-message-toolbar > p {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  color: var(--wyl-muted);
  font-size: 13px;
}
.wyl-message-toolbar .wyl-message-overview { flex: 0 0 auto; gap: 6px; }
.wyl-message-toolbar .wyl-message-overview > span {
  min-width: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--wyl-surface-soft);
}
.wyl-message-toolbar .wyl-message-overview b { font-family: inherit; font-size: 14px; }
.wyl-message-toolbar .wyl-message-overview small { font-size: 10px; }
.wyl-message-toolbar .wyl-message-hero-actions {
  grid-column: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: 2px;
}
.wyl-message-toolbar .wyl-message-hero-actions > a,
.wyl-message-toolbar .wyl-message-read-all { min-height: 36px; padding: 6px 11px; }

html[data-wyl-theme="dark"] .wyl-featured-action {
  background: #277f69;
  color: #f5fffb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
html[data-wyl-theme="dark"] .wyl-featured-action:hover { background: #56c6a4; color: #07130f; }
html[data-wyl-theme="dark"] body.home .wyl-rank {
  border: 1px solid rgba(132, 185, 222, .28);
  background: #24475b;
  color: #eaf5fb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .24);
}
html[data-wyl-theme="dark"] body.home .wyl-home-book-row.is-ranked > :nth-child(-n+3) .wyl-rank {
  border-color: rgba(238, 140, 125, .32);
  background: #7d493f;
  color: #fff4f1;
}
html[data-wyl-theme="dark"] .wyl-featured-dots button::before {
  background: rgba(181, 215, 238, .38);
  box-shadow: none;
}
html[data-wyl-theme="dark"] .wyl-featured-dots button.is-active::before { background: var(--wyl-jade); }
html[data-wyl-theme="dark"] .wyl-message-toolbar { border-bottom-color: var(--wyl-line); }
html[data-wyl-theme="dark"] .wyl-message-toolbar .wyl-message-overview > span { background: var(--wyl-surface-soft); }

@media (max-width: 640px) {
  .wyl-header-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .wyl-header-user-tools .wyl-account .wyl-header-avatar img { width: 100%; height: 100%; }
  .wyl-rankings-page > .wyl-breadcrumb,
  .wyl-collections-page > .wyl-breadcrumb { margin-bottom: 11px; }
  .wyl-booklist-list-meta { min-height: 44px !important; }
  .wyl-booklist-list-create { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .wyl-message-toolbar { min-height: 48px; gap: 8px; padding: 0 0 10px; }
  .wyl-message-toolbar > p { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .wyl-message-toolbar .wyl-message-overview { gap: 4px; }
  .wyl-message-toolbar .wyl-message-overview > span { min-height: 30px; gap: 3px; padding: 0 8px; }
  .wyl-message-toolbar .wyl-message-overview b { font-size: 12px; }
  .wyl-message-toolbar .wyl-message-overview small { font-size: 8px; }
  .wyl-message-toolbar .wyl-message-hero-actions { gap: 5px; margin-left: 0; }
  .wyl-message-toolbar .wyl-message-hero-actions > a { display: none; }
  .wyl-message-toolbar .wyl-message-read-all { min-height: 34px; flex: 0 0 auto; padding: 5px 9px; font-size: 10px; }
}

/* 0.25.5: readable comment actions, legacy avatars, and a persistent catalogue toolbar. */
.wyl-catalog-toolbar {
  position: sticky;
  top: 72px;
  z-index: 70;
  padding: 10px 4px;
  background: var(--wyl-app-bg);
  box-shadow: 0 1px 0 var(--wyl-line);
}

.wyl-comment-author > img.avatar {
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 640px) {
  .wyl-catalog-toolbar {
    top: 56px;
    margin-inline: -12px;
    padding: 8px 12px 9px;
  }
}

/* 0.25.8: legacy-sized header avatar with a stable, centered square crop. */
.wyl-header-user-tools { gap: 6px; }
.wyl-header-user-tools .wyl-account > a { gap: 7px; }
.wyl-header-avatar {
  position: relative;
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}
.wyl-header-user-tools .wyl-account .wyl-header-avatar img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

body.wyl-auth-dialog-open { overflow: hidden; }
.wyl-auth-dialog[hidden] { display: none !important; }
.wyl-auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.wyl-auth-dialog.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.wyl-auth-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 15, 22, .62);
  cursor: default;
}
.wyl-auth-dialog-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 30px 30px;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 82%, transparent);
  border-radius: 18px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink-2);
  box-shadow: 0 30px 80px rgba(5, 15, 22, .34);
  transform: translateY(12px) scale(.985);
  transition: transform .2s var(--wyl-ease-out);
  outline: 0;
  scrollbar-width: thin;
}
.wyl-auth-dialog.is-open .wyl-auth-dialog-panel { transform: translateY(0) scale(1); }
.wyl-auth-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wyl-line);
  border-radius: 11px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-muted);
  cursor: pointer;
}
.wyl-auth-dialog-close .wyl-icon { width: 19px; height: 19px; }
.wyl-auth-dialog-close:hover { border-color: var(--wyl-jade); color: var(--wyl-jade); }
.wyl-auth-dialog-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 50px;
  color: var(--wyl-ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-weight: 800;
}
.wyl-auth-dialog-brand img { width: 34px; height: 34px; object-fit: contain; }
.wyl-auth-dialog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 23px;
}
.wyl-auth-dialog-head p { margin: 0 0 3px; color: var(--wyl-jade); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.wyl-auth-dialog-head h2 { margin: 0; color: var(--wyl-ink); font-family: "Songti SC", "STSong", serif; font-size: 30px; line-height: 1.1; }
.wyl-auth-dialog-head > button,
.wyl-auth-dialog-options button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wyl-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.wyl-auth-dialog-head > button { min-height: 32px; text-align: right; }
.wyl-auth-dialog-head > button:hover,
.wyl-auth-dialog-options button:hover { color: var(--wyl-jade); text-decoration: underline; text-underline-offset: 3px; }
.wyl-auth-dialog-view[hidden],
.wyl-auth-dialog .wyl-auth-method[hidden] { display: none !important; }
.wyl-auth-dialog .wyl-auth-form { gap: 14px; }
.wyl-auth-dialog .wyl-auth-form label { font-size: 11px; }
.wyl-auth-dialog .wyl-auth-form input[type="text"],
.wyl-auth-dialog .wyl-auth-form input[type="email"],
.wyl-auth-dialog .wyl-auth-form input[type="password"] {
  min-height: 46px;
  border-radius: 9px;
  background: var(--wyl-surface);
}
.wyl-auth-dialog-options {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.wyl-auth-dialog-options > span { display: inline-flex; align-items: center; gap: 7px; }
.wyl-auth-dialog-options i { color: var(--wyl-faint); font-size: 10px; font-style: normal; }
.wyl-auth-dialog .wyl-auth-check { color: var(--wyl-muted); font-size: 11px; }
.wyl-auth-policy { align-items: flex-start; line-height: 1.6; }
.wyl-auth-policy input { margin-top: 3px; }
.wyl-auth-policy a { color: var(--wyl-blue); text-underline-offset: 2px; }
.wyl-auth-dialog .wyl-auth-submit {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: var(--wyl-jade);
  color: #fff;
}
.wyl-auth-dialog .wyl-auth-submit:hover { background: color-mix(in srgb, var(--wyl-jade) 82%, var(--wyl-ink)); }
.wyl-auth-dialog .wyl-auth-help { text-align: center; }
.wyl-auth-dialog :is(button, input):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wyl-jade) 28%, transparent);
  outline-offset: 2px;
}
html[data-wyl-theme="dark"] .wyl-auth-dialog-backdrop { background: rgba(1, 8, 12, .78); }
html[data-wyl-theme="dark"] .wyl-auth-dialog-panel { border-color: var(--wyl-line); background: var(--wyl-surface-raised); }
html[data-wyl-theme="dark"] .wyl-auth-dialog .wyl-auth-form input[type="text"],
html[data-wyl-theme="dark"] .wyl-auth-dialog .wyl-auth-form input[type="email"],
html[data-wyl-theme="dark"] .wyl-auth-dialog .wyl-auth-form input[type="password"] { background: var(--wyl-surface); }

@media (max-width: 640px) {
  .wyl-header-avatar { width: 29px; height: 29px; flex-basis: 29px; }
  .wyl-auth-dialog { place-items: end center; padding: 0; }
  .wyl-auth-dialog-panel {
    width: 100%;
    max-height: min(88dvh, 760px);
    padding: 23px 20px calc(24px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(24px);
  }
  .wyl-auth-dialog-close { top: 13px; right: 14px; }
  .wyl-auth-dialog-brand { padding-right: 48px; }
  .wyl-auth-dialog-head { align-items: center; margin: 22px 0 19px; }
  .wyl-auth-dialog-head h2 { font-size: 27px; }
  .wyl-auth-dialog .wyl-auth-form input[type="text"],
  .wyl-auth-dialog .wyl-auth-form input[type="email"],
  .wyl-auth-dialog .wyl-auth-form input[type="password"] { font-size: 16px; }
  .wyl-auth-dialog .wyl-auth-two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-auth-dialog,
  .wyl-auth-dialog-panel { transition: none; }
}

/* 0.25.9: production acceptance fixes for lists, touch, overflow and motion. */
html,
body.wyl-library { max-width: 100%; overflow-x: clip; }

.wyl-booklist-excerpt,
.wyl-booklist-open { display: none; }

.wyl-collections-page .wyl-booklist-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wyl-collections-page .wyl-booklist-card {
  min-height: 174px;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 20px;
}
.wyl-collections-page .wyl-booklist-covers { height: 138px; }
.wyl-collections-page .wyl-booklist-cover { width: 82px; height: 112px; }
.wyl-collections-page .wyl-booklist-cover.is-2 { left: 41px; }
.wyl-collections-page .wyl-booklist-cover.is-3 { left: 82px; }
.wyl-collections-page .wyl-booklist-copy {
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 24px;
  align-content: center;
}
.wyl-collections-page .wyl-booklist-copy h3 { grid-column: 1; font-size: 21px; }
.wyl-collections-page .wyl-booklist-meta { grid-column: 1; margin-top: 6px; font-size: 12px; }
.wyl-collections-page .wyl-booklist-excerpt {
  grid-column: 1;
  display: -webkit-box;
  max-width: 72ch;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--wyl-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wyl-collections-page .wyl-booklist-open {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--wyl-jade) 32%, var(--wyl-line));
  border-radius: 9px;
  color: var(--wyl-jade);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.wyl-collections-page .wyl-booklist-open .wyl-icon { width: 15px; height: 15px; }
.wyl-collections-page .wyl-booklist-open:hover { color: var(--wyl-blue); }

@media (max-width: 640px) {
  .wyl-mobile-search-toggle,
  .wyl-theme-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .wyl-account { min-width: 44px; }
  .wyl-account > a { min-width: 44px; min-height: 44px; }
  .wyl-account .wyl-login { min-width: 50px; min-height: 44px; padding-inline: 9px; }

  .wyl-collections-page .wyl-booklist-card {
    min-height: 136px;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }
  .wyl-collections-page .wyl-booklist-covers { height: 108px; }
  .wyl-collections-page .wyl-booklist-copy {
    min-height: 108px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 0;
    align-content: center;
  }
  .wyl-collections-page .wyl-booklist-copy h3 { font-size: 16px; }
  .wyl-collections-page .wyl-booklist-excerpt {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }
  .wyl-collections-page .wyl-booklist-open { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wyl-featured-dots button::before { transition: none; }
}

/* 0.27.1: viewport-edge tools and a scroll-aware mobile home action. */
.wyl-floating-tools {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: 30px;
  z-index: 96;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}
.wyl-floating-tool {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 84%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--wyl-surface-raised) 94%, transparent);
  color: var(--wyl-blue);
  box-shadow: 0 8px 24px rgba(8, 34, 50, .12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  pointer-events: auto;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s var(--wyl-ease-out), opacity .18s ease;
}
.wyl-floating-tool .wyl-icon { width: 20px; height: 20px; }
.wyl-floating-tool span {
  position: absolute;
  right: 56px;
  width: max-content;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--wyl-ink);
  color: var(--wyl-surface);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .16s ease, transform .16s var(--wyl-ease-out);
  pointer-events: none;
}
.wyl-floating-tool:hover,
.wyl-floating-tool:focus-visible,
.wyl-floating-tool[aria-expanded="true"] { border-color: color-mix(in srgb, var(--wyl-jade) 46%, var(--wyl-line)); background: var(--wyl-jade); color: #fff; transform: translateY(-1px); }
.wyl-floating-tool:hover span,
.wyl-floating-tool:focus-visible span { opacity: 1; transform: translateX(0); }
.wyl-floating-top { opacity: 0; transform: translateY(8px); pointer-events: none; }
body.wyl-has-scrolled .wyl-floating-top { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wyl-page-qr {
  width: 220px;
  margin-bottom: 2px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--wyl-line) 86%, transparent);
  border-radius: 15px;
  background: var(--wyl-surface-raised);
  color: var(--wyl-ink);
  box-shadow: 0 20px 54px rgba(5, 25, 38, .2);
  opacity: 0;
  transform: translateY(7px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .18s var(--wyl-ease-out);
  pointer-events: auto;
}
.wyl-page-qr.is-open { opacity: 1; transform: translateY(0) scale(1); }
.wyl-page-qr header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wyl-page-qr header strong { font-family: "Songti SC", "STSong", serif; font-size: 15px; }
.wyl-page-qr header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-muted);
  cursor: pointer;
}
.wyl-page-qr header .wyl-icon { width: 16px; height: 16px; }
.wyl-page-qr-canvas { display: grid; place-items: center; min-height: 190px; padding: 11px; border-radius: 10px; background: #fff; }
.wyl-page-qr-canvas svg { width: 168px; height: 168px; display: block; }
.wyl-page-qr > p { margin: 9px 0 0; color: var(--wyl-muted); font-size: 10px; line-height: 1.5; text-align: center; }

.wyl-lazy-image { transition: opacity .26s ease, filter .26s ease, transform .22s ease; }
.wyl-lazy-image:not(.is-loaded) { opacity: .72; filter: saturate(.82); }
.wyl-motion-ready .wyl-reveal { opacity: 0; transform: translateY(10px); }
.wyl-motion-ready .wyl-reveal.is-revealed { opacity: 1; transform: translateY(0); transition: opacity .32s ease, transform .32s var(--wyl-ease-out); }

html[data-wyl-theme="dark"] .wyl-floating-tool { background: color-mix(in srgb, var(--wyl-surface-raised) 92%, transparent); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
html[data-wyl-theme="dark"] .wyl-floating-tool:hover,
html[data-wyl-theme="dark"] .wyl-floating-tool:focus-visible,
html[data-wyl-theme="dark"] .wyl-floating-tool[aria-expanded="true"] { background: var(--wyl-jade); }
html[data-wyl-theme="dark"] .wyl-page-qr { border-color: var(--wyl-line); background: var(--wyl-surface-raised); }

@media (max-width: 640px) {
  .wyl-floating-tools { display: none; }
  .wyl-mobile-tabbar a {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1px;
    padding: 0;
    border-radius: 8px;
    color: #718194;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .wyl-mobile-home-state {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1px;
  }
  .wyl-mobile-home-state.is-top { display: none; }
  .wyl-mobile-home-top.is-available { color: var(--wyl-jade); }
  .wyl-mobile-home-top.is-available .wyl-mobile-home-state.is-home { display: none; }
  .wyl-mobile-home-top.is-available .wyl-mobile-home-state.is-top { display: grid; }
  .wyl-mobile-home-top.is-available::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--wyl-jade); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .wyl-floating-tool,
  .wyl-floating-tool span,
  .wyl-page-qr,
  .wyl-lazy-image,
  .wyl-motion-ready .wyl-reveal,
  .wyl-motion-ready .wyl-reveal.is-revealed { transition: none !important; transform: none !important; }
}
