/* Administrator preview: compact neutral discovery, account and form surfaces. */

/* Neutral shelves group content; book tiles stay unboxed. */
body.wyl-frontend-preview :is(.wyl-listing-head, .wyl-author-hero, .wyl-collection-hero) {
  margin-bottom: 20px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--wyl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.wyl-frontend-preview :is(.wyl-listing-head, .wyl-author-hero, .wyl-collection-hero) h1 {
  max-width: 24em;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.wyl-frontend-preview :is(.wyl-listing-head, .wyl-author-hero, .wyl-collection-hero) p {
  color: var(--wyl-muted);
  font-size: 14px;
  line-height: 1.75;
}
body.wyl-frontend-preview .wyl-list-search { margin-bottom: 20px; }
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-list-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-book-copy {
  padding-top: 10px;
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-book-copy h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-book-copy h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) :is(.wyl-card-author, .wyl-card-facts) {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-card-facts { flex-wrap: wrap; white-space: normal; }
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-card-facts span:first-child { display: inline; }
body.wyl-frontend-preview .wyl-catalog-toolbar {
  top: var(--wyl-header-height);
  min-height: 64px;
  margin-bottom: 16px;
  padding: 10px 0;
  background: var(--wyl-surface);
  box-shadow: 0 1px 0 var(--wyl-line);
}
body.wyl-frontend-preview .wyl-active-filters { gap: 8px; font-size: 14px; }
body.wyl-frontend-preview .wyl-active-filters a {
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
}
body.wyl-frontend-preview :is(.wyl-filter-trigger, .wyl-sort select) {
  min-height: 46px;
  height: auto;
  padding-inline: 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-sort select { padding-right: 34px; }
body.wyl-frontend-preview .wyl-filter-panel { width: min(380px, calc(100vw - 28px)); }
body.wyl-frontend-preview .wyl-filter-head { min-height: 76px; padding-inline: 24px; }
body.wyl-frontend-preview .wyl-filter-head strong { font-size: 22px; }
body.wyl-frontend-preview .wyl-filter-head small { font-size: 13px; }
body.wyl-frontend-preview .wyl-filter-close { width: 44px; height: 44px; flex-basis: 44px; }
body.wyl-frontend-preview .wyl-filter-panel form { gap: 18px; padding: 20px; }
body.wyl-frontend-preview .wyl-filter-field { gap: 8px; }
body.wyl-frontend-preview .wyl-filter-field > span { color: var(--wyl-ink-2); font-size: 14px; }
body.wyl-frontend-preview .wyl-filter-field select { height: 48px; border-radius: 10px; font-size: 15px; }
body.wyl-frontend-preview .wyl-filter-actions { padding-top: 10px; padding-bottom: env(safe-area-inset-bottom); }
body.wyl-frontend-preview .wyl-filter-actions :is(a, button) { min-height: 48px; font-size: 14px; }

/* Lists keep a quiet edge; selection and hover carry the interaction. */
body.wyl-frontend-preview .wyl-ranking-browser { gap: 16px; }
body.wyl-frontend-preview .wyl-ranking-tabs {
  width: min(620px, 100%);
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface-soft);
}
body.wyl-frontend-preview .wyl-ranking-tabs button { min-height: 48px; font-size: 15px; }
body.wyl-frontend-preview .wyl-ranking-tabs button small { font-size: 12px; }
body.wyl-frontend-preview .wyl-ranking-list { gap: 0 24px; }
body.wyl-frontend-preview .wyl-ranking-item {
  grid-template-columns: 24px 66px minmax(0, 1fr) 44px;
  gap: 18px;
  min-height: 120px;
  padding: 16px 0;
  border-bottom: 1px solid var(--wyl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-ranking-cover { width: 66px; border-radius: 7px; }
body.wyl-frontend-preview .wyl-ranking-copy h2 { font-size: 16px; line-height: 1.55; }
body.wyl-frontend-preview .wyl-ranking-copy h2 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
body.wyl-frontend-preview .wyl-ranking-copy > p { margin: 6px 0 8px; font-size: 13px; }
body.wyl-frontend-preview .wyl-ranking-copy > div { flex-wrap: wrap; gap: 5px; }
body.wyl-frontend-preview .wyl-ranking-copy > div span { font-size: 11px; }
body.wyl-frontend-preview .wyl-ranking-open { width: 44px; height: 44px; }
body.wyl-frontend-preview .wyl-author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
body.wyl-frontend-preview .wyl-author-grid > a {
  min-height: 88px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--wyl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-author-grid strong { font-size: 16px; }
body.wyl-frontend-preview .wyl-author-grid small { margin-top: 5px; font-size: 13px; }
body.wyl-frontend-preview .wyl-author-letter { border-radius: 8px; background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-author-mark { border-radius: 10px; background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-booklist-list-meta { margin-bottom: 20px; }
body.wyl-frontend-preview .wyl-booklist-list-meta > div > strong { font-size: 24px; }
body.wyl-frontend-preview .wyl-booklist-list-meta > div > span { font-size: 13px; }
body.wyl-frontend-preview .wyl-booklist-list-create { min-height: 44px; padding-inline: 16px; font-size: 14px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-card {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 132px;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--wyl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-covers { height: 94px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover { width: 58px; height: 80px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover.is-2 { left: 26px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover.is-3 { left: 52px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-copy { min-height: 0; grid-template-columns: minmax(0, 1fr); align-content: center; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-copy h3 { font-size: 17px; line-height: 1.5; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-meta { font-size: 12px; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-excerpt { margin-top: 10px; font-size: 14px; line-height: 1.75; -webkit-line-clamp: 2; }
body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-open { display: none; }

/* One personal workspace, with stronger type and less competing elevation. */
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-head {
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface);
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-account-identity h1 { font-size: 24px; line-height: 1.35; }
body.wyl-frontend-preview .wyl-account-identity p { font-size: 13px; }
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav {
  top: calc(var(--wyl-header-height) + 16px);
  padding: 8px;
  border-color: var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface);
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav a { min-height: 46px; font-size: 14px; }
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav a.is-active {
  background: color-mix(in srgb, var(--wyl-jade) 10%, var(--wyl-surface));
  color: var(--wyl-jade);
  box-shadow: none;
}
body.wyl-frontend-preview :is(.wyl-account-data, .wyl-account-mini-panel, .wyl-profile-list, .wyl-profile-signout, .wyl-checkin-card, .wyl-growth-summary-card) {
  border-color: var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface);
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-account-data { padding: 16px 12px; }
body.wyl-frontend-preview .wyl-account-data > header h2 { font-size: 22px; }
body.wyl-frontend-preview .wyl-account-data .wyl-account-stats > :is(div, a) { min-height: 88px; padding-block: 8px; }
body.wyl-frontend-preview .wyl-account-data .wyl-account-stats span { font-size: 13px; }
body.wyl-frontend-preview .wyl-account-data .wyl-account-stats strong { font-size: 25px; font-variant-numeric: tabular-nums; }
body.wyl-frontend-preview .wyl-account-mini-panel > header { min-height: 60px; padding: 10px 20px; }
body.wyl-frontend-preview .wyl-account-mini-panel h2 { font-size: 18px; }
body.wyl-frontend-preview .wyl-account-mini-panel header :is(p, a) { font-size: 13px; }
body.wyl-frontend-preview .wyl-account-mini-panel header a { min-height: 44px; display: inline-flex; align-items: center; }
body.wyl-frontend-preview .wyl-account-mini-panel li a { min-height: 64px; padding-inline: 20px; }
body.wyl-frontend-preview .wyl-account-mini-panel li strong { font-size: 15px; }
body.wyl-frontend-preview .wyl-account-mini-panel li span,
body.wyl-frontend-preview .wyl-account-recent-downloads .wyl-account-download-copy small { font-size: 12px; }
body.wyl-frontend-preview .wyl-account-tab-toolbar { min-height: 58px; margin-bottom: 18px; }
body.wyl-frontend-preview .wyl-account-tab-toolbar p { font-size: 14px; }
body.wyl-frontend-preview :is(.wyl-account-empty, .wyl-account-mini-empty) { padding: 28px; border-radius: 12px; font-size: 14px; }
body.wyl-frontend-preview :is(.wyl-account-empty, .wyl-account-mini-empty) :is(h2, strong) { font-size: 18px; }
body.wyl-frontend-preview .wyl-account-empty p { font-size: 14px; line-height: 1.75; }
body.wyl-frontend-preview .wyl-account-book { padding: 15px; border-radius: 12px; box-shadow: none; }
body.wyl-frontend-preview .wyl-account-book-copy h3 { font-size: 16px; line-height: 1.55; }
body.wyl-frontend-preview .wyl-account-book-copy > p { font-size: 13px; }
body.wyl-frontend-preview .wyl-account-book-meta span { font-size: 12px; }
body.wyl-frontend-preview .wyl-account-book-actions :is(a, button) { min-height: 44px; font-size: 13px; }
body.wyl-frontend-preview .wyl-profile-group { margin-top: 22px; }
body.wyl-frontend-preview .wyl-profile-group > header { margin-bottom: 14px; }
body.wyl-frontend-preview .wyl-profile-group > header h2 { font-size: 18px; }
body.wyl-frontend-preview .wyl-profile-panel summary { min-height: 72px; padding: 14px 20px; }
body.wyl-frontend-preview .wyl-profile-panel summary strong { font-size: 16px; }
body.wyl-frontend-preview .wyl-profile-panel summary small { margin-top: 5px; font-size: 13px; line-height: 1.6; }
body.wyl-frontend-preview .wyl-profile-signout { min-height: 60px; font-size: 15px; }

/* Forms and dialogs share readable labels and deliberate control sizing. */
body.wyl-frontend-preview .wyl-auth-shell { border: 1px solid var(--wyl-line); border-radius: 12px; box-shadow: var(--wyl-shadow); }
body.wyl-frontend-preview .wyl-auth-intro { background: var(--wyl-surface-soft); color: var(--wyl-ink); }
body.wyl-frontend-preview .wyl-auth-intro h1 { font-size: 28px; line-height: 1.4; }
body.wyl-frontend-preview .wyl-auth-intro p { color: var(--wyl-muted); font-size: 15px; line-height: 1.8; }
body.wyl-frontend-preview .wyl-auth-card { padding: 28px; }
body.wyl-frontend-preview .wyl-auth-nav a { min-height: 44px; font-size: 15px; }
body.wyl-frontend-preview .wyl-auth-form { gap: 16px; }
body.wyl-frontend-preview :is(.wyl-auth-form, .wyl-booklist-form) label { gap: 9px; font-size: 14px; }
body.wyl-frontend-preview :is(.wyl-auth-form, .wyl-booklist-form) :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea) {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink);
  font-size: 16px;
  line-height: 1.5;
  caret-color: var(--wyl-jade);
}
body.wyl-frontend-preview :is(.wyl-password-field, .wyl-code-field) input { padding-right: 132px; }
body.wyl-frontend-preview :is(.wyl-password-field, .wyl-code-field) button { top: 3px; bottom: 3px; min-height: 44px; font-size: 13px; }
body.wyl-frontend-preview .wyl-auth-form .wyl-auth-check { min-height: 44px; gap: 9px; font-size: 13px; }
body.wyl-frontend-preview :is(.wyl-auth-submit, .wyl-auth-switch, .wyl-booklist-submit) { min-height: 48px; font-size: 15px; }
body.wyl-frontend-preview :is(.wyl-auth-help, .wyl-auth-notice, .wyl-auth-inline, .wyl-booklist-notice) { font-size: 13px; line-height: 1.75; }
body.wyl-frontend-preview :is(.wyl-auth-dialog-panel, .wys-app-sheet-panel) { border-color: var(--wyl-line); border-radius: 12px; }
body.wyl-frontend-preview .wys-app-sheet-head { padding: 20px 24px; }
body.wyl-frontend-preview .wyl-auth-dialog-head { padding: 0; margin: 24px 0 18px; }
body.wyl-frontend-preview :is(.wyl-auth-dialog-head, .wys-app-sheet-head) :is(h2, h3) { font-size: 25px; line-height: 1.4; }
body.wyl-frontend-preview .wys-app-sheet-body { padding-inline: 24px; }
body.wyl-frontend-preview :is(.wyl-auth-dialog-close, .wys-app-sheet-close) { min-width: 44px; min-height: 44px; }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-sheet-head { padding-right: 82px; }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-sheet-close { top: 18px; right: 20px; }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-choice-trigger { background: var(--wyl-surface-soft); color: var(--wyl-ink); border-color: var(--wyl-line); }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-choice-menu { background: var(--wyl-surface); border-color: var(--wyl-line); }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-choice-menu [role="option"] { min-height: 44px; color: var(--wyl-ink-2); font-size: 14px; }
body.wyl-frontend-preview .wyl-booklist-sheet .wys-app-choice-menu [role="option"][aria-selected="true"] { background: color-mix(in srgb, var(--wyl-jade) 9%, var(--wyl-surface)); color: var(--wyl-jade); }

/* Message content reads like correspondence, with quiet unread emphasis. */
body.wyl-frontend-preview .wyl-message-center { gap: 16px; }
body.wyl-frontend-preview .wyl-message-toolbar { min-height: 64px; padding-bottom: 18px; }
body.wyl-frontend-preview .wyl-message-toolbar > p { font-size: 15px; }
body.wyl-frontend-preview .wyl-message-toolbar .wyl-message-overview :is(b, small) { font-size: 13px; }
body.wyl-frontend-preview .wyl-message-filters { padding: 5px; border-color: var(--wyl-line); box-shadow: none; }
body.wyl-frontend-preview .wyl-message-filters a { min-height: 48px; font-size: 14px; }
body.wyl-frontend-preview .wyl-message-filters a b { font-size: 11px; }
body.wyl-frontend-preview .wyl-message-list { border-color: var(--wyl-line); border-radius: 10px; box-shadow: none; }
body.wyl-frontend-preview .wyl-message-item { min-height: 0; padding: 20px; gap: 16px; }
body.wyl-frontend-preview .wyl-message-item.is-unread { background: transparent; }
body.wyl-frontend-preview .wyl-message-item.is-unread::before { display: none; }
body.wyl-frontend-preview .wyl-message-meta { font-size: 12px; }
body.wyl-frontend-preview .wyl-message-item h2 { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
body.wyl-frontend-preview .wyl-message-item p { max-width: 70ch; margin-top: 10px; font-size: 14px; line-height: 1.75; }
body.wyl-frontend-preview .wyl-message-actions :is(a, button),
body.wyl-frontend-preview .wyl-message-toolbar .wyl-message-hero-actions > a,
body.wyl-frontend-preview .wyl-message-toolbar .wyl-message-read-all { min-height: 44px; font-size: 13px; }
body.wyl-frontend-preview .wyl-message-actions { align-items: center; }
body.wyl-frontend-preview .wyl-message-empty { border-radius: 10px; box-shadow: none; }
body.wyl-frontend-preview .wyl-message-empty p { font-size: 15px; line-height: 1.8; }

/* Explicit type resets also cover legacy Songti strong/number selectors. */
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page, .wyl-rankings-page, .wyl-account-page, .wyl-auth-page, .wyl-auth-dialog, .wys-app-sheet-panel) :is(h1, h2, h3, h4, strong, b, button, input, select, textarea, .wyl-author-letter, .wyl-author-mark, .wyl-ranking-number, .wyl-auth-dialog-brand) { font-family: var(--wyl-ui-font); letter-spacing: 0; }
body.wyl-frontend-preview :is(.wyl-catalog-head, .wyl-listing-head) h1 { font-size: 26px; line-height: 1.4; }
body.wyl-frontend-preview .wyl-catalog-count strong { font-size: 24px; font-variant-numeric: tabular-nums; }
body.wyl-frontend-preview :is(.wyl-catalog-results, .wyl-listing > .wyl-list-grid, .wyl-new-page > .wyl-list-grid, .wyl-authors-page > .wyl-list-grid, .wyl-collections-page > .wyl-list-grid, .wyl-booklist-books) { padding: 20px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: var(--wyl-card-shadow); }
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-book-card { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.wyl-frontend-preview :is(.wyl-ranking-list, .wyl-author-grid, .wyl-collections-page .wyl-booklist-row) { padding: 4px 20px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: var(--wyl-card-shadow); }
body.wyl-frontend-preview :is(.wyl-author-hero, .wyl-collection-hero) { padding: 20px 24px; margin: 0 0 16px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: var(--wyl-card-shadow); }
body.wyl-frontend-preview .wyl-ranking-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--wyl-jade) 9%, var(--wyl-surface)); color: var(--wyl-jade); box-shadow: none; }
body.wyl-frontend-preview .wyl-booklist-hero { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: var(--wyl-card-shadow); }
body.wyl-frontend-preview .wyl-booklist-hero-covers { height: 186px; }
body.wyl-frontend-preview .wyl-booklist-hero-covers img { left: 44px; width: 112px; height: 156px; border: 3px solid var(--wyl-surface); border-radius: 6px; box-shadow: var(--wyl-shadow); }
body.wyl-frontend-preview .wyl-booklist-hero-covers .is-2 { left: 4px; }
body.wyl-frontend-preview .wyl-booklist-hero-covers .is-3 { left: 84px; }
body.wyl-frontend-preview .wyl-booklist-hero-copy { min-width: 0; }
body.wyl-frontend-preview .wyl-booklist-hero-copy h1 { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.4; overflow-wrap: anywhere; }
body.wyl-frontend-preview .wyl-booklist-hero-copy > .wyl-kicker { display: none; }
body.wyl-frontend-preview .wyl-booklist-by { margin-top: 8px; color: var(--wyl-muted); font-size: 13px; }
body.wyl-frontend-preview .wyl-booklist-description { max-width: 70ch; margin-top: 10px; color: var(--wyl-ink-2); font-size: 14px; line-height: 1.75; }
body.wyl-frontend-preview .wyl-booklist-favorite { min-height: 44px; margin-top: 16px; border-radius: 8px; font-size: 13px; }
body.wyl-frontend-preview .wyl-booklist-books { margin-top: 16px; }
body.wyl-frontend-preview .wyl-booklist-books > .wyl-section-head { margin: 0 0 18px; }
body.wyl-frontend-preview .wyl-booklist-browse-more { min-height: 44px; margin-top: 16px; font-size: 14px; }
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-layout { grid-template-columns: 196px minmax(0, 1fr); gap: 18px; }
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-identity img { box-shadow: none; }
body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-setting { background: var(--wyl-surface-soft); color: var(--wyl-ink-2); border-radius: 8px; }
body.wyl-frontend-preview .wyl-account-data .wyl-account-stats > :is(div, a) { background: transparent; box-shadow: none; }
body.wyl-frontend-preview .wyl-account-data .wyl-account-stats > :is(div, a) > em { color: var(--wyl-muted); }
body.wyl-frontend-preview :is(.wyl-checkin-card, .wyl-growth-summary-card) { margin-top: 16px; padding: 16px 20px; gap: 16px; }
body.wyl-frontend-preview .wyl-checkin-icon { border: 0; background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-checkin-copy strong { font-size: 16px; }
body.wyl-frontend-preview .wyl-checkin-copy :is(p, span) { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-checkin-card button { min-height: 44px; border-radius: 8px; font-size: 13px; }
body.wyl-frontend-preview .wyl-growth-summary-copy strong { font-size: 17px; }
body.wyl-frontend-preview .wyl-growth-summary-copy small { font-size: 12px; }
body.wyl-frontend-preview .wyl-account-overview-grid { gap: 16px; margin-top: 16px; }
body.wyl-frontend-preview .wyl-account-overview-grid .wyl-account-mini-panel { border-radius: 12px; }
body.wyl-frontend-preview .wyl-account-book.is-card-link .wyl-account-book-open { width: 44px; height: 44px; background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-manage-booklists > article { padding: 18px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: none; }
body.wyl-frontend-preview .wyl-manage-booklist-actions a { min-height: 44px; font-size: 13px; }

/* Real growth data and badges remain; decorative gold/green gradients do not. */
body.wyl-frontend-preview .wyl-growth-page { gap: 16px; }
body.wyl-frontend-preview .wyl-growth-page-head h1 { font-size: 24px; }
body.wyl-frontend-preview .wyl-growth-page-head > a { min-width: 44px; min-height: 44px; }
body.wyl-frontend-preview .wyl-growth-page-head div > span { font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-level-overview { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 16px; }
body.wyl-frontend-preview :is(.wyl-growth-level-card, .wyl-growth-ladder, .wyl-growth-checkin, .wyl-growth-panel, .wyl-growth-medals) { border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); color: var(--wyl-ink); box-shadow: var(--wyl-card-shadow); }
body.wyl-frontend-preview :is(.wyl-growth-level-card, .wyl-growth-ladder) { min-height: 184px; padding: 20px; }
body.wyl-frontend-preview .wyl-growth-level-decoration { display: none; }
body.wyl-frontend-preview .wyl-growth-level-owner { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-level-icon { border: 0; background: transparent; }
body.wyl-frontend-preview .wyl-growth-level-main h2 { color: var(--wyl-ink); font-size: 26px; }
body.wyl-frontend-preview .wyl-growth-level-main :is(p, div > span) { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-progress-copy { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-progress { height: 5px; background: var(--wyl-surface-soft); }
body.wyl-frontend-preview .wyl-growth-progress > span { background: var(--wyl-jade); box-shadow: none; }
body.wyl-frontend-preview .wyl-growth-ladder > header strong { font-size: 14px; }
body.wyl-frontend-preview .wyl-growth-ladder > header span { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale > span { min-width: 54px; opacity: 1; }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale small { color: var(--wyl-muted); font-size: 10px; }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale b { color: var(--wyl-ink-2); font-size: 11px; }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale i { background: var(--wyl-line); }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale .is-reached i { background: color-mix(in srgb, var(--wyl-jade) 42%, var(--wyl-line)); }
body.wyl-frontend-preview .wyl-growth-ladder .wyl-growth-level-scale .is-current i { background: var(--wyl-jade); box-shadow: none; }
body.wyl-frontend-preview .wyl-growth-checkin { padding: 16px 20px; }
body.wyl-frontend-preview .wyl-growth-checkin :is(p, div > span) { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-growth-checkin button { min-height: 44px; border-radius: 8px; font-size: 13px; }
body.wyl-frontend-preview :is(.wyl-growth-panel, .wyl-growth-medals) > header { min-height: 64px; padding: 14px 20px; }
body.wyl-frontend-preview :is(.wyl-growth-panel, .wyl-growth-medals) > header h2 { font-size: 18px; }
body.wyl-frontend-preview :is(.wyl-growth-panel, .wyl-growth-medals) > header > span { font-size: 12px; }
body.wyl-frontend-preview :is(.wyl-growth-panel, .wyl-growth-medals) > header p { display: none; }
body.wyl-frontend-preview .wyl-growth-task-list article { padding: 14px 20px; }
body.wyl-frontend-preview .wyl-growth-task-list article > span { background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview :is(.wyl-growth-task-list, .wyl-growth-history) h3 { font-size: 13px; }
body.wyl-frontend-preview .wyl-growth-task-list p { font-size: 12px; line-height: 1.5; }
body.wyl-frontend-preview .wyl-growth-task-list article.is-complete > b::after { font-size: 11px; }
body.wyl-frontend-preview .wyl-growth-history article { padding: 12px 20px; }
body.wyl-frontend-preview .wyl-growth-history time { font-size: 11px; }
body.wyl-frontend-preview .wyl-growth-empty { font-size: 13px; }
body.wyl-frontend-preview .wyl-growth-medal-grid { gap: 8px; padding: 16px; }
body.wyl-frontend-preview .wyl-growth-medal-card { min-height: 160px; padding: 12px 8px; border-radius: 10px; }
body.wyl-frontend-preview .wyl-growth-medal-card.is-worn { border-color: var(--wyl-line); background: var(--wyl-surface-soft); }
body.wyl-frontend-preview .wyl-growth-medal-art { background: transparent; }
body.wyl-frontend-preview .wyl-growth-medal-copy small { font-size: 11px; }
body.wyl-frontend-preview .wyl-growth-medal-copy strong { font-size: 14px; }
body.wyl-frontend-preview .wyl-growth-medal-copy em { font-size: 12px; }
body.wyl-frontend-preview .wyl-medal-hero { min-height: 220px; border-radius: 10px; background: var(--wyl-surface-soft); }
body.wyl-frontend-preview .wyl-medal-hero-copy h3 { font-size: 22px; }
body.wyl-frontend-preview .wyl-medal-hero-copy :is(small, p) { font-size: 13px; }
body.wyl-frontend-preview .wyl-auth-intro { padding: 28px; border-top: 0; }
body.wyl-frontend-preview .wyl-auth-dialog-panel { padding: 24px; }
body.wyl-frontend-preview .wyl-auth-dialog-head p { display: none; }
body.wyl-frontend-preview .wyl-auth-dialog-head > button { min-height: 44px; font-size: 13px; }
body.wyl-frontend-preview .wyl-auth-dialog .wyl-auth-form label { font-size: 13px; }
body.wyl-frontend-preview .wyl-auth-dialog-options button { min-height: 44px; font-size: 12px; }
body.wyl-frontend-preview .wyl-avatar-tools button { min-height: 44px; font-size: 13px; }
body.wyl-frontend-preview .wyl-avatar-tools label { font-size: 13px; }
body.wyl-frontend-preview .wyl-avatar-preview strong { font-size: 12px; }
body.wyl-frontend-preview .wyl-avatar-picker > span { min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px; }
body.wyl-frontend-preview .wyl-avatar-picker b { font-size: 14px; line-height: 1.5; }
body.wyl-frontend-preview .wyl-avatar-picker small { font-size: 12px; line-height: 1.5; }
body.wyl-frontend-preview .wyl-message-type-icon { background: var(--wyl-surface-soft); color: var(--wyl-ink-2); }
body.wyl-frontend-preview .wyl-message-filters a.is-active { background: color-mix(in srgb, var(--wyl-jade) 9%, var(--wyl-surface)); color: var(--wyl-jade); box-shadow: none; }
body.wyl-frontend-preview .wyl-message-pages :is(a, .current) { min-width: 44px; min-height: 44px; }
body.wyl-frontend-preview :is(.wyl-auth-submit, .wyl-booklist-submit, .wyl-medal-sheet-action, .wyl-growth-checkin button, .wyl-checkin-card button):not(:disabled) { background: var(--wyl-preview-action, var(--wyl-jade)); color: var(--wyl-preview-action-ink, var(--wyl-surface)); box-shadow: none; }
body.wyl-frontend-preview :is(.wyl-growth-checkin, .wyl-checkin-card) button:disabled { border: 1px solid var(--wyl-line); background: var(--wyl-surface-soft); color: var(--wyl-muted); }
body.wyl-frontend-preview :is(.wyl-auth-form, .wyl-booklist-form) input::placeholder { color: var(--wyl-muted); opacity: 1; }

@media (hover: hover) {
  body.wyl-frontend-preview :is(.wyl-author-grid > a, .wyl-ranking-item, .wyl-collections-page .wyl-booklist-card):hover { background: var(--wyl-surface-soft); }
  body.wyl-frontend-preview :is(.wyl-account-stats > a, .wyl-account-book, .wyl-account-mini-panel, .wyl-collections-page .wyl-booklist-card):hover { transform: none; box-shadow: none; }
  body.wyl-frontend-preview .wyl-account-book:hover { border-color: var(--wyl-jade); }
}
body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-rankings-page, .wyl-account-page, .wyl-auth-page, .wyl-message-page) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wyl-jade) 58%, transparent);
  outline-offset: 3px;
}
body.wyl-frontend-preview :is(.wyl-auth-form, .wyl-booklist-form, .wyl-filter-panel) :is(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 1100px) {
  body.wyl-frontend-preview .wyl-growth-level-overview { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview .wyl-growth-medal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-list-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-row { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview .wyl-ranking-item { grid-template-columns: 24px 66px minmax(0, 1fr) 44px; gap: 12px; }
  body.wyl-frontend-preview .wyl-ranking-cover { width: 66px; }
}
@media (max-width: 900px) {
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.wyl-frontend-preview .wyl-author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.wyl-frontend-preview .wyl-ranking-list { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview .wyl-catalog-toolbar { top: var(--wyl-header-height); }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav { top: calc(var(--wyl-header-height) + 8px); }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav a { font-size: 12px; }
  body.wyl-frontend-preview .wyl-auth-card { padding: 28px; }
}
@media (max-width: 640px) {
  body.wyl-frontend-preview :is(.wyl-catalog-results, .wyl-listing > .wyl-list-grid, .wyl-new-page > .wyl-list-grid, .wyl-authors-page > .wyl-list-grid, .wyl-collections-page > .wyl-list-grid, .wyl-booklist-books) { padding: 16px; border-radius: 10px; }
  body.wyl-frontend-preview :is(.wyl-ranking-list, .wyl-author-grid, .wyl-collections-page .wyl-booklist-row) { padding-inline: 16px; }
  body.wyl-frontend-preview :is(.wyl-author-hero, .wyl-collection-hero) { padding: 18px; }
  body.wyl-frontend-preview :is(.wyl-catalog-head, .wyl-listing-head, .wyl-author-hero, .wyl-collection-hero) h1 { font-size: 22px; }
  body.wyl-frontend-preview .wyl-booklist-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
  body.wyl-frontend-preview .wyl-booklist-hero-covers { height: 132px; }
  body.wyl-frontend-preview .wyl-booklist-hero-covers img { left: 24px; width: 66px; height: 96px; border-width: 2px; }
  body.wyl-frontend-preview .wyl-booklist-hero-covers .is-2 { left: 1px; }
  body.wyl-frontend-preview .wyl-booklist-hero-covers .is-3 { left: 47px; }
  body.wyl-frontend-preview .wyl-booklist-hero-copy h1 { font-size: 21px; }
  body.wyl-frontend-preview :is(.wyl-checkin-card, .wyl-growth-summary-card) { padding: 16px; gap: 12px; }
  body.wyl-frontend-preview .wyl-growth-columns { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview :is(.wyl-growth-level-card, .wyl-growth-ladder) { padding: 18px; }
  body.wyl-frontend-preview .wyl-growth-checkin { gap: 12px; padding: 16px; }
  body.wyl-frontend-preview .wyl-growth-checkin button { min-width: 96px; padding-inline: 10px; }
  body.wyl-frontend-preview .wyl-growth-medal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 12px 8px; }
  body.wyl-frontend-preview .wyl-growth-medal-card { min-height: 152px; padding-inline: 4px; }
  body.wyl-frontend-preview .wyl-growth-medal-copy strong { font-size: 13px; }
  body.wyl-frontend-preview .wyl-growth-medal-copy em { white-space: normal; font-size: 11px; }
  body.wyl-frontend-preview .wyl-auth-dialog-panel { padding: 22px 20px; }
  body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
  body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-book-copy h3 { font-size: 15px; }
  body.wyl-frontend-preview .wyl-catalog-toolbar { top: var(--wyl-header-height); min-height: 0; gap: 10px; padding-block: 12px; margin-inline: 0; margin-bottom: 16px; }
  body.wyl-frontend-preview .wyl-filter-panel form { padding: 20px; }
  body.wyl-frontend-preview .wyl-filter-head { padding-inline: 20px; }
  body.wyl-frontend-preview .wyl-ranking-tabs { padding: 4px; }
  body.wyl-frontend-preview .wyl-ranking-tabs button { gap: 5px; padding-inline: 7px; font-size: 14px; }
  body.wyl-frontend-preview .wyl-ranking-list { gap: 0; }
  body.wyl-frontend-preview .wyl-ranking-item { min-height: 112px; grid-template-columns: 20px 58px minmax(0, 1fr) 44px; gap: 10px; padding-block: 14px; }
  body.wyl-frontend-preview .wyl-ranking-cover { width: 58px; }
  body.wyl-frontend-preview .wyl-ranking-copy h2 { font-size: 15px; }
  body.wyl-frontend-preview .wyl-ranking-open { width: 44px; }
  body.wyl-frontend-preview .wyl-author-grid { gap: 0 18px; }
  body.wyl-frontend-preview .wyl-author-grid > a { gap: 10px; }
  body.wyl-frontend-preview .wyl-author-letter { width: 36px; height: 46px; font-size: 19px; }
  body.wyl-frontend-preview .wyl-author-grid strong { font-size: 15px; }
  body.wyl-frontend-preview .wyl-author-grid small { font-size: 12px; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; min-height: 132px; padding: 16px 0; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover { width: 58px; height: 80px; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover.is-2 { left: 27px; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-cover.is-3 { left: 54px; }
  body.wyl-frontend-preview .wyl-collections-page :is(.wyl-booklist-covers, .wyl-booklist-copy) { min-height: 94px; height: auto; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-copy h3 { font-size: 16px; }
  body.wyl-frontend-preview .wyl-collections-page .wyl-booklist-excerpt { font-size: 13px; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-head { padding: 16px; margin-bottom: 16px; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-identity h1 { font-size: 21px; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav { top: var(--wyl-header-height); padding: 5px; margin-inline: 0; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages) .wyl-account-nav a { min-height: 56px; padding-inline: 3px; font-size: 11px; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages):not(.is-booklist-editor) .wyl-account-nav { display: flex; justify-content: flex-start; gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  body.wyl-frontend-preview .wyl-account-page:not(.is-messages):not(.is-booklist-editor) .wyl-account-nav a:not(.wyl-account-logout) { display: grid; flex: 0 0 66px; min-width: 66px; justify-items: center; align-content: center; }
  body.wyl-frontend-preview .wyl-account-data { padding: 12px 4px; }
  body.wyl-frontend-preview .wyl-account-data > header h2 { font-size: 20px; }
  body.wyl-frontend-preview .wyl-account-data .wyl-account-stats > :is(div, a) { min-height: 88px; padding-inline: 3px; }
  body.wyl-frontend-preview .wyl-account-data .wyl-account-stats span { font-size: 11px; }
  body.wyl-frontend-preview .wyl-account-data .wyl-account-stats strong { font-size: 25px; }
  body.wyl-frontend-preview .wyl-account-mini-panel > header { padding: 14px 16px; }
  body.wyl-frontend-preview .wyl-account-mini-panel li a { padding-inline: 16px; }
  body.wyl-frontend-preview .wyl-account-mini-panel h2 { font-size: 19px; }
  body.wyl-frontend-preview .wyl-profile-panel summary { padding: 14px 16px; }
  body.wyl-frontend-preview .wyl-auth-card { padding: 22px 20px; }
  body.wyl-frontend-preview .wyl-auth-intro { padding: 22px 20px; }
  body.wyl-frontend-preview .wyl-auth-two { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview :is(.wyl-auth-dialog-panel, .wys-app-sheet-panel) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  body.wyl-frontend-preview .wys-app-sheet-head { padding: 18px 20px; }
  body.wyl-frontend-preview .wys-app-sheet-body { padding-inline: 20px; }
  body.wyl-frontend-preview .wyl-message-toolbar { flex-wrap: wrap; gap: 12px; }
  body.wyl-frontend-preview .wyl-message-toolbar > p { font-size: 14px; }
  body.wyl-frontend-preview .wyl-message-filters a { gap: 5px; padding-inline: 7px; font-size: 13px; }
  body.wyl-frontend-preview .wyl-message-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  body.wyl-frontend-preview .wyl-message-type-icon { width: 36px; height: 36px; border-radius: 8px; }
  body.wyl-frontend-preview .wyl-message-item h2 { font-size: 17px; }
  body.wyl-frontend-preview .wyl-message-item p { font-size: 14px; }
  body.wyl-frontend-preview .wyl-message-actions { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 380px) {
  body.wyl-frontend-preview .wyl-author-grid { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview .wyl-booklist-hero { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview .wyl-booklist-hero-covers { width: 112px; justify-self: center; }
  body.wyl-frontend-preview :is(.wyl-catalog-page, .wyl-listing, .wyl-new-page, .wyl-authors-page, .wyl-collections-page, .wyl-booklist-page) .wyl-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.wyl-frontend-preview :is(.wyl-ranking-panel, .wyl-ranking-tabs button, .wyl-author-grid > a, .wyl-account-book, .wyl-account-mini-panel, .wyl-profile-panel-body, .wyl-growth-summary-card, .wyl-growth-medal-card, .wyl-filter-panel, .wyl-message-item, .wys-app-sheet-panel, .wyl-auth-dialog-panel) {
    animation: none;
    transition: none;
  }
}
