/* v10.57 — Work encyclopedia user browse/detail. Scoped to avoid affecting readers. */
.work-catalog-page {
  --wc-bg:var(--theme-surface-strong,var(--surface-strong,#fff));
  --wc-soft:var(--theme-surface,var(--surface,#fffdf9));
  --wc-tint:var(--theme-surface-soft,#f8f4ed);
  --wc-line:var(--theme-line,#ddd7ce);
  --wc-ink:var(--theme-text,#191816);
  --wc-muted:var(--theme-muted,#77716a);
  --wc-shadow:0 16px 40px rgba(34,31,30,.06);
  --wc-indigo:var(--theme-text,#191816);
  color:var(--wc-ink);
}
.work-catalog-page [hidden] {display:none!important;}
.work-catalog-page button,.work-catalog-page input,.work-catalog-page select {font:inherit;}
.work-catalog-page button {cursor:pointer;}
.work-catalog-page button:focus-visible,.work-catalog-page input:focus-visible,.work-catalog-page select:focus-visible,.work-catalog-page summary:focus-visible {outline:2px solid var(--wc-indigo);outline-offset:3px;}
.wc-hero {position:relative;overflow:hidden;margin:15px 0 15px;padding:20px 24px 19px;border:1px solid var(--wc-line);border-radius:15px;background:var(--wc-tint);}
.wc-hero::before {content:"";position:absolute;inset:17px auto 17px 0;width:3px;border-radius:0 3px 3px 0;background:var(--wc-ink);opacity:.38;}
.wc-overline,.wc-results-kicker,.wc-section-num {font-size:10px;letter-spacing:.12em;font-weight:750;color:var(--wc-muted);}
.wc-hero-copy {min-width:0;}
.wc-hero h3 {font-family:inherit;font-size:clamp(21px,2.45vw,28px);line-height:1.42;font-weight:750;letter-spacing:-.045em;margin:7px 0 9px;word-break:keep-all;}
.wc-hero h3 em {font-style:normal;color:var(--wc-ink);}
.wc-hero p {max-width:850px;font-size:12px;line-height:1.72;color:var(--wc-muted);margin:0;word-break:keep-all;}
.wc-hero-topics {display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin-top:12px;color:var(--wc-ink);font-size:11px;font-weight:650;}
.wc-hero-topics span+span::before {content:"·";margin:0 10px;color:var(--wc-muted);font-weight:400;}
.wc-hero .wc-hero-status {font-size:10px;line-height:1.55;margin-top:10px;color:var(--wc-muted);}
.wc-search {display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 6px 5px 14px;background:var(--wc-bg);border:1px solid var(--wc-line);border-radius:12px;}
.wc-search-symbol {font-size:25px;color:var(--wc-muted);line-height:1;}
.work-catalog-page .wc-search input {flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent!important;color:var(--wc-ink);font-size:13px;padding:6px 0;box-shadow:none;}
.wc-search input::-webkit-search-cancel-button {cursor:pointer;}
.wc-search button {border:0;background:var(--theme-primary-bg);color:var(--theme-primary-text);border-radius:8px;min-height:36px;padding:0 15px;font-size:12px;font-weight:700;}
.wc-discovery {display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 20px;}
.wc-genre {min-height:32px;padding:5px 12px;border:1px solid var(--wc-line);border-radius:999px;background:var(--wc-bg);font-size:12px;font-weight:650;color:var(--wc-muted);}
.wc-genre.is-active {color:var(--theme-primary-text);background:var(--theme-primary-bg);border-color:var(--theme-primary-bg);}
.wc-layout {display:grid;grid-template-columns:242px minmax(0,1fr);align-items:start;gap:26px;}
.wc-filter-panel {position:relative;border:1px solid var(--wc-line);background:var(--wc-bg);border-radius:17px;padding:20px 18px;}
.wc-panel-title {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;}
.wc-panel-title strong {font-size:15px;}
.wc-panel-title button {background:none;border:0;color:var(--wc-muted);font-size:11px;white-space:nowrap;padding:5px;}
.wc-filter-block {border-top:1px solid var(--wc-line);padding:17px 0;}
.wc-filter-heading {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;}
.wc-filter-heading strong,.wc-filter-block label {display:block;font-size:12px;font-weight:800;color:var(--wc-ink);margin-bottom:9px;}
.wc-filter-heading strong {margin-bottom:0;}
.wc-filter-heading small {font-size:10px;color:var(--wc-muted);}
.wc-tag-choices,.wc-detail-tagline {display:flex;flex-wrap:wrap;gap:7px;}
.wc-tag {min-height:30px;max-width:100%;overflow-wrap:anywhere;text-align:left;font-size:11px;color:var(--wc-muted);background:var(--wc-tint);border:1px solid var(--wc-line);border-radius:7px;padding:5px 9px;}
.wc-tag.is-active {border-color:var(--wc-ink);color:var(--wc-ink);background:var(--theme-hover);font-weight:750;}
.wc-mode {display:grid;grid-template-columns:repeat(2,1fr);border:1px solid var(--wc-line);border-radius:10px;overflow:hidden;margin-top:15px;}
.wc-mode button {padding:7px 3px;min-height:33px;border:0;background:var(--wc-tint);font-size:11px;color:var(--wc-muted);}
.wc-mode button+button {border-left:1px solid var(--wc-line);}
.wc-mode button.is-active {background:var(--theme-primary-bg);color:var(--theme-primary-text);font-weight:750;}
.wc-filter-block select,.wc-sort-label select {display:block;width:100%;height:39px;border:1px solid var(--wc-line);background:var(--wc-bg);color:var(--wc-ink);border-radius:10px;padding:0 10px;font-size:12px;}
.wc-filter-hint,.wc-filter-footnote {color:var(--wc-muted);font-size:11px;line-height:1.7;}
.wc-filter-footnote {margin:8px 0 0;}
.wc-results {min-width:0;}
.wc-results-head {display:flex;justify-content:space-between;align-items:end;gap:10px;margin:3px 0 17px;}
.wc-results-head h3 {margin:6px 0 4px;font-size:22px;letter-spacing:-.05em;}
.wc-results-head p {font-size:11px;color:var(--wc-muted);margin:0;}
.wc-sort-label {font-size:11px;white-space:nowrap;color:var(--wc-muted);display:flex;align-items:center;gap:9px;}
.wc-sort-label select {width:123px;height:36px;}
.wc-active-filters {display:flex;gap:6px;flex-wrap:wrap;margin:-2px 0 14px;}
.wc-active-filters button {border:1px solid var(--wc-line);background:var(--wc-tint);border-radius:999px;min-height:30px;padding:4px 10px;font-size:11px;color:var(--wc-ink);}
.wc-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.wc-card {min-width:0;background:var(--wc-bg);border:1px solid var(--wc-line);border-radius:16px;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease;}
.wc-card:hover {transform:translateY(-2px);box-shadow:var(--wc-shadow);}
.wc-card-open {display:flex;gap:15px;text-align:left;width:100%;height:100%;padding:16px;border:0;background:transparent;min-width:0;}
.wc-book {flex:0 0 78px;width:78px;min-height:112px;display:flex;flex-direction:column;justify-content:space-between;border-radius:3px 9px 9px 3px;border-left:5px solid rgba(0,0,0,.21);box-shadow:2px 4px 11px rgba(0,0,0,.14);padding:9px 8px 10px;color:#fff;}
.wc-book--ink {background:linear-gradient(145deg,#4e677a,#23394a);}
.wc-book--plum {background:linear-gradient(140deg,#987689,#4e445a);}
.wc-book--moss {background:linear-gradient(135deg,#7c9189,#375a59);}
.wc-book--rose {background:linear-gradient(140deg,#bd8f86,#7b5e6c);}
.wc-book--slate {background:linear-gradient(145deg,#8296b1,#45516b);}
.wc-book--ochre {background:linear-gradient(145deg,#b0a18b,#72634e);}
.wc-book-top,.wc-book-bottom {font-size:7px;letter-spacing:.13em;line-height:1.4;opacity:.84;font-weight:800;}
.wc-book-mark {font-size:27px;font-family:serif;text-align:center;font-weight:400;}
.wc-card-main {display:flex;flex-direction:column;min-width:0;flex:1;gap:5px;}
.wc-card-heading {font-weight:800;line-height:1.35;font-size:14px;overflow-wrap:anywhere;}
.wc-card-author {font-size:11px;color:var(--wc-muted);}
.wc-card-tags {display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;}
.wc-card-tags span {display:inline-flex;font-size:10px;color:var(--wc-muted);border-radius:5px;background:var(--wc-tint);padding:4px 6px;max-width:100%;overflow-wrap:anywhere;}
.wc-card-bottom {display:flex;justify-content:space-between;align-items:end;gap:6px;margin-top:auto;padding-top:9px;font-size:10px;color:var(--wc-muted);}
.wc-card-arrow {font-size:17px;color:var(--wc-ink);}
.wc-catalog-status {padding:33px 16px;border:1px dashed var(--wc-line);border-radius:14px;background:var(--wc-tint);text-align:center;font-size:13px;color:var(--wc-muted);line-height:1.8;}
.wc-catalog-status[data-kind="error"] {border-color:#bf8480;color:#b04a48;}
.work-catalog-page .wc-more-wrap {margin:0;padding:22px 0 8px;}
.work-catalog-page .wc-more-button {font:inherit;}
@media(max-width:640px) {.work-catalog-page .wc-more-wrap {padding-top:16px;}}
.wc-mobile-filter-row {display:none;}
/* Detail */
.wc-detail {max-width:990px;margin:5px auto 30px;}
.wc-detail-top {display:flex;align-items:center;justify-content:space-between;gap:15px;margin:16px 0 25px;}
.wc-detail-back {border:1px solid var(--wc-line);background:var(--wc-bg);min-height:35px;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:750;}
.wc-detail-subtitle {font-size:10px;color:var(--wc-muted);letter-spacing:.15em;}
.wc-detail-hero {display:flex;gap:36px;align-items:center;padding:27px 35px;background:var(--wc-tint);border:1px solid var(--wc-line);border-radius:19px;}
.wc-book--large {flex-basis:132px;width:132px;min-height:177px;padding:15px 13px;border-left-width:8px;}
.wc-book--large .wc-book-mark {font-size:44px;}
.wc-book--large .wc-book-top,.wc-book--large .wc-book-bottom {font-size:10px;}
.wc-detail-heading {min-width:0;}
.wc-detail-heading h3 {font-family:'Ridibatang',Georgia,serif;font-size:clamp(25px,3.6vw,35px);line-height:1.4;letter-spacing:-.04em;margin:12px 0 10px;overflow-wrap:anywhere;}
.wc-detail-author {font-size:14px;font-weight:650;margin:0 0 7px;}
.wc-detail-original {font-size:12px;color:var(--wc-muted);margin:0 0 12px;overflow-wrap:anywhere;}
.wc-detail-properties {display:flex;flex-wrap:wrap;gap:7px;margin-top:17px;}
.wc-detail-properties span {background:var(--wc-bg);border:1px solid var(--wc-line);border-radius:8px;padding:7px 11px;font-size:11px;font-weight:700;}
.wc-detail-grid {display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:25px;align-items:start;padding-top:24px;}
.wc-detail-section {border:1px solid var(--wc-line);background:var(--wc-bg);border-radius:17px;padding:24px;margin-bottom:17px;overflow-wrap:anywhere;}
.wc-detail-section h4,.wc-detail-facts h4 {font-size:18px;margin:9px 0 15px;letter-spacing:-.04em;}
.wc-story-text {font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;}
.wc-muted {font-size:12px;color:var(--wc-muted);}
.wc-detail-tag-label {font-size:11px;color:var(--wc-muted);margin:16px 0 9px;}
.wc-detail-tag {display:inline-block;border-radius:999px;background:var(--wc-tint);border:1px solid var(--wc-line);font-size:11px;padding:7px 11px;overflow-wrap:anywhere;}
.wc-recommendations {list-style:none;margin:0;padding:0;display:grid;gap:11px;}
.wc-recommendations li {display:flex;gap:10px;font-size:12px;line-height:1.75;}
.wc-recommendations li::before {content:'✦';color:var(--wc-muted);}
.wc-detail-facts {border:1px solid var(--wc-line);background:var(--wc-bg);border-radius:17px;padding:22px;}
.wc-detail-facts dl {margin:0 0 10px;}
.wc-detail-facts dl div {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 0;border-top:1px solid var(--wc-line);font-size:12px;}
.wc-detail-facts dt {color:var(--wc-muted);}
.wc-detail-facts dd {margin:0;font-weight:800;text-align:right;}
.wc-spoiler {border-top:1px solid var(--wc-line);padding:13px 0;}
.wc-spoiler summary {cursor:pointer;font-size:12px;font-weight:700;line-height:1.6;}
.wc-spoiler summary span {display:block;font-size:10px;color:var(--wc-muted);font-weight:500;}
.wc-spoiler p {white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;}
.wc-detail-note {background:var(--wc-tint);border:1px solid var(--wc-line);border-radius:15px;padding:19px;margin-top:14px;}
.wc-detail-note strong {font-size:12px;}
.wc-detail-note p {font-size:11px;line-height:1.8;margin:7px 0 0;color:var(--wc-muted);}
html.theme-dark .work-catalog-page .wc-catalog-status[data-kind="error"] {color:#f6b5b0;}
@media(max-width:900px) {.wc-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.wc-cards{grid-template-columns:1fr}.wc-detail-grid{grid-template-columns:minmax(0,1fr) 238px;gap:15px}.wc-card-open{padding:15px}}
@media(max-width:640px) {
  .work-catalog-page {padding-bottom:22px;}
  .work-catalog-page .quote-feed-head {align-items:flex-start;gap:7px;}
  .work-catalog-page .quote-feed-head h2 {font-size:24px;}
  .work-catalog-page #workCatalogBackButton {display:none;}
  .wc-hero {padding:16px 17px;margin:10px 0 13px;border-radius:13px;}
  .wc-hero::before {inset:13px auto 13px 0;width:3px;}
  .wc-hero h3 {font-size:clamp(19px,5.4vw,23px);margin:6px 0 7px;line-height:1.4;}
  .wc-hero p {font-size:11px;line-height:1.62;}
  .wc-overline {font-size:9px;letter-spacing:.04em;}
  .wc-hero-topics {font-size:10px;margin-top:10px;gap:4px 0;}
  .wc-hero-topics span+span::before {margin:0 7px;}
  .wc-hero .wc-hero-status {font-size:10px;margin-top:8px;}
  .wc-search {min-height:45px;padding:4px 5px 4px 11px;gap:7px;border-radius:11px;}
  .wc-search-symbol {font-size:23px;}
  .work-catalog-page .wc-search input {font-size:12px;min-height:36px;padding:7px 0;}
  .wc-search button {padding:0 12px;min-height:36px;font-size:11px;}
  .wc-discovery {flex-wrap:nowrap;overflow:auto;margin:12px -1px 12px;padding:1px 1px 8px;scrollbar-width:none;}
  .wc-discovery::-webkit-scrollbar {display:none;}
  .wc-genre {flex:none;font-size:11px;min-height:36px;padding:6px 12px;}
  .wc-mobile-filter-row {display:flex;justify-content:flex-start;margin-bottom:10px;}
  .wc-filter-toggle {width:auto;min-height:40px;padding:7px 14px;text-align:center;border:1px solid var(--wc-line);border-radius:999px;background:var(--wc-bg);color:var(--wc-ink);font-size:11px;font-weight:750;}
  .wc-filter-toggle span {margin-left:5px;color:var(--wc-muted);}
  .wc-layout {display:flex;flex-direction:column;gap:10px;}
  .wc-filter-panel {display:none;width:100%;padding:14px 16px;}
  .wc-filter-panel.is-mobile-open {display:block;}
  .wc-results {width:100%;}
  .wc-results-head {align-items:end;}
  .wc-results-head h3 {font-size:19px;}
  .wc-results-kicker {font-size:9px;}
  .wc-sort-label {gap:5px;font-size:10px;}
  .wc-sort-label select {width:105px;height:34px;font-size:10px;padding:0 5px;}
  .wc-cards {grid-template-columns:1fr;gap:10px;}
  .wc-card-open {gap:14px;padding:13px;}
  .wc-card-heading {font-size:13px;}
  .wc-card-tags {margin-top:4px;}
  .wc-book {flex-basis:73px;width:73px;min-height:103px;}
  .wc-detail-top {margin:12px 0 18px;}
  .wc-detail-subtitle {display:none;}
  .wc-detail-hero {gap:20px;padding:20px 16px;border-radius:14px;}
  .wc-book--large {flex:0 0 95px;width:95px;min-height:137px;padding:11px 9px;border-left-width:6px;}
  .wc-book--large .wc-book-mark {font-size:30px;}
  .wc-book--large .wc-book-top,.wc-book--large .wc-book-bottom {font-size:7px;}
  .wc-detail-heading h3 {font-size:23px;margin:7px 0;}
  .wc-detail-author {font-size:12px;}
  .wc-detail-grid {display:flex;flex-direction:column;gap:0;padding-top:14px;}
  .wc-detail-primary,.wc-detail-side {width:100%;}
  .wc-detail-section {padding:19px;margin-bottom:12px;}
}
@media(prefers-reduced-motion:reduce) {.wc-card {transition:none;}.wc-card:hover{transform:none;}}

.wc-retry-button {display:block;margin:12px auto 0;min-height:38px;padding:7px 15px;border:1px solid var(--wc-line);border-radius:999px;background:var(--wc-bg);color:var(--wc-ink);font-weight:750;font-size:12px;}
/* v10.58: quieter typography and compact, touch-friendly mobile filters. */
.wc-hero {padding:18px 22px;background:var(--wc-soft);border-radius:16px;}
.wc-hero::before {display:none;}
.wc-hero h3 {font-size:22px;margin:0 0 6px;letter-spacing:-.035em;}
.wc-hero .wc-hero-status {margin-top:8px;}
.wc-book {justify-content:center;position:relative;box-shadow:none;border-left-color:rgba(0,0,0,.12);}
.wc-book::after {content:"";position:absolute;inset:12px 9px;border:1px solid rgba(255,255,255,.2);border-radius:2px 5px 5px 2px;}
.wc-book-mark {opacity:.8;}
.wc-detail-hero {gap:24px;padding:24px;background:var(--wc-soft);}
.wc-detail-heading h3 {font-family:inherit;font-weight:750;font-size:clamp(23px,3vw,30px);}
.wc-filter-done {display:none;}
@media(max-width:640px) {
  .wc-hero {padding:13px 15px;margin:10px 0 12px;}
  .wc-hero h3 {font-size:17px;line-height:1.4;margin:0 0 4px;}
  .wc-hero p {font-size:11px;line-height:1.55;}
  .wc-hero .wc-hero-status {font-size:10px;margin-top:5px;}
  .wc-mobile-filter-row {margin-bottom:12px;}
  .wc-filter-toggle {border-radius:10px;min-height:42px;padding:9px 14px;}
  .wc-filter-panel.is-mobile-open {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px;padding:16px;border-radius:14px;background:var(--wc-soft);}
  .wc-filter-head,.wc-filter-panel .wc-filter-block:nth-child(2),.wc-filter-footnote,.wc-filter-done {grid-column:1/-1;}
  .wc-filter-block {padding:13px 0;min-width:0;}
  .wc-tag-choices {max-height:160px;overflow:auto;overscroll-behavior:contain;padding:2px;}
  .wc-tag {min-height:36px;padding:7px 10px;border-radius:999px;}
  .wc-mode {margin-top:12px;}
  .wc-mode button {min-height:38px;}
  .wc-filter-block select {height:42px;}
  .wc-filter-footnote {font-size:10px;line-height:1.6;margin:0 0 12px;}
  .wc-filter-done {display:block;min-height:42px;border:0;border-radius:10px;background:var(--theme-primary-bg);color:var(--theme-primary-text);font-size:12px;font-weight:700;}
  .wc-detail-hero {gap:15px;padding:17px 15px;}
  .wc-book--large {flex-basis:65px;width:65px;min-height:94px;padding:9px 7px;}
  .wc-detail-heading h3 {font-size:21px;line-height:1.4;}
  .wc-detail-properties {gap:5px;margin-top:10px;}
  .wc-detail-properties span {font-size:10px;padding:5px 8px;}
}

/* Public quotes reuse the catalog typography and theme. */
.wc-work-quote { border-bottom:1px solid var(--theme-line); padding:12px 0; }
.wc-work-quote summary { display:flex; cursor:pointer; gap:8px; align-items:center; }
.wc-work-quote summary::after { content:'＋'; flex:none; }
.wc-work-quote[open] summary::after { content:'−'; }
.wc-work-quote summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:1; }
.wc-work-quote p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
@media(max-width:700px) { .wc-work-quote summary span { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; } }

/* v10.60: reader contributed information. Keyboard focus on a programmatically
   targeted noninteractive heading must not create a transient browser outline. */
.work-catalog-page #wcDetailHeading:focus {outline:none;}
.work-catalog-page .wc-inline-edit {display:inline-flex;align-items:center;vertical-align:middle;min-height:28px;margin-left:8px;padding:4px 9px;border:1px solid var(--wc-line);border-radius:999px;background:var(--wc-soft);color:var(--wc-muted);font-size:11px;font-weight:650;line-height:1.3;white-space:nowrap;}
.work-catalog-page .wc-inline-edit:hover {color:var(--wc-ink);background:var(--wc-tint);}
.work-catalog-page .wc-side-edit-actions {display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px;}
.work-catalog-page .wc-side-edit-actions .wc-inline-edit {margin:0;}
.work-catalog-page .wc-edit-entry {margin-top:12px;padding:8px 14px;min-height:36px;border:1px solid var(--wc-line);border-radius:10px;background:var(--wc-bg);color:var(--wc-ink);font-size:12px;font-weight:750;}
.work-catalog-page .wc-edit-dialog {width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(88dvh,680px);overflow-y:auto;margin:auto;padding:0;border:1px solid var(--wc-line);border-radius:18px;background:var(--wc-bg);color:var(--wc-ink);box-shadow:0 22px 65px rgba(0,0,0,.2);}
.work-catalog-page .wc-edit-dialog::backdrop {background:rgba(17,20,27,.52);}
.work-catalog-page .wc-edit-form {display:flex;flex-direction:column;gap:14px;padding:22px;}
.work-catalog-page .wc-edit-head {display:flex;align-items:start;justify-content:space-between;gap:12px;}
.work-catalog-page .wc-edit-head h3 {margin:5px 0 0;font-size:20px;letter-spacing:-.04em;}
.work-catalog-page .wc-edit-close {flex-shrink:0;width:32px;height:32px;border:1px solid var(--wc-line);border-radius:50%;background:var(--wc-soft);color:var(--wc-ink);font-size:21px;line-height:1;}
.work-catalog-page .wc-edit-description {margin:0;color:var(--wc-muted);font-size:12px;line-height:1.7;}
.work-catalog-page .wc-edit-field {display:flex;flex-direction:column;gap:7px;color:var(--wc-ink);font-size:12px;font-weight:750;}
.work-catalog-page .wc-edit-field textarea,.work-catalog-page .wc-edit-field select,.work-catalog-page #wcEditBgmUrl {width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--wc-line);border-radius:10px;background:var(--wc-soft);color:var(--wc-ink);font:inherit;font-size:13px;font-weight:450;line-height:1.65;resize:vertical;}
.work-catalog-page .wc-edit-field[hidden] {display:none;}
.work-catalog-page .wc-edit-message {min-height:18px;margin:0;color:var(--wc-muted);font-size:12px;line-height:1.6;}
.work-catalog-page .wc-edit-message button {border:0;background:transparent;color:var(--wc-ink);text-decoration:underline;font-size:12px;font-weight:750;}
.work-catalog-page .wc-edit-actions {display:flex;gap:8px;justify-content:flex-end;}
.work-catalog-page .wc-edit-actions button {min-height:40px;padding:9px 15px;border-radius:10px;border:1px solid var(--wc-line);font-size:12px;font-weight:750;}
.work-catalog-page .wc-edit-cancel {background:var(--wc-soft);color:var(--wc-muted);}
.work-catalog-page #wcEditSave {background:var(--wc-ink);border-color:var(--wc-ink);color:var(--wc-bg);}
.work-catalog-page #wcEditSave:disabled {opacity:.55;cursor:wait;}
@media(max-width:640px) {
  .work-catalog-page .wc-edit-dialog {width:calc(100vw - 22px);max-height:82dvh;border-radius:15px;}
  .work-catalog-page .wc-edit-form {padding:17px;}
  .work-catalog-page .wc-inline-edit {margin-left:5px;min-height:30px;}
}

/* v10.61 — show secondary relationship details only when requested. */
.work-catalog-page .wc-detail-facts dl {margin-bottom:0;}
.work-catalog-page .wc-extra-facts {border-top:1px solid var(--wc-line);padding:12px 0 0;}
.work-catalog-page .wc-extra-facts > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:12px;font-weight:700;line-height:1.6;}
.work-catalog-page .wc-extra-facts > summary span {color:var(--wc-muted);font-size:11px;font-weight:500;}
.work-catalog-page .wc-extra-facts-body {padding:12px 0 1px;}
.work-catalog-page .wc-extra-facts-row {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;}
.work-catalog-page .wc-extra-facts-row > span {color:var(--wc-muted);}
.work-catalog-page .wc-extra-facts-row strong {font-size:12px;}
.work-catalog-page .wc-extra-facts .wc-side-edit-actions {margin:10px 0 0;}
.work-catalog-page .wc-extra-facts .wc-inline-edit {font-size:10px;min-height:26px;padding:3px 9px;}

/* v10.62: compact work registration entry and matching editor, catalog scoped. */
.work-catalog-page .wc-results-actions {display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.work-catalog-page .wc-create-entry {min-height:34px;padding:6px 13px;border:1px solid var(--wc-line);border-radius:999px;background:var(--theme-surface-strong,var(--wc-bg));color:var(--wc-ink);font-size:11px;font-weight:750;white-space:nowrap;}
.work-catalog-page .wc-create-entry:hover {background:var(--wc-tint);}
.work-catalog-page .wc-create-dialog .wc-edit-field input {display:block;width:100%;min-height:40px;margin-top:7px;border:1px solid var(--wc-line);background:var(--wc-soft);color:var(--wc-ink);border-radius:10px;padding:9px 11px;font-size:13px;box-sizing:border-box;}
.work-catalog-page .wc-create-dialog .wc-edit-field input:focus-visible {outline:2px solid var(--theme-accent,#817889);outline-offset:2px;}
.work-catalog-page .wc-create-optional {font-size:11px;font-weight:500;color:var(--wc-muted);}
.work-catalog-page .wc-create-notice {margin:0;padding:11px 12px;background:var(--wc-tint);border-radius:10px;color:var(--wc-muted);font-size:11px;line-height:1.65;}
.work-catalog-page .wc-create-dialog .wc-edit-message button {margin-left:4px;text-decoration:underline;color:var(--wc-ink);background:transparent;border:0;padding:2px;font:inherit;font-weight:700;}
@media(max-width:640px) {
  .work-catalog-page .wc-results-head {align-items:flex-start;gap:9px;flex-wrap:wrap;}
  .work-catalog-page .wc-results-actions {width:100%;justify-content:space-between;gap:6px;}
  .work-catalog-page .wc-create-entry {min-height:32px;padding:5px 10px;font-size:10px;}
}

/* v10.63 — compact search dropdown and linked-original actions */
.work-catalog-page .wc-create-dialog .wc-create-matches {margin:-4px 0 10px;border:1px solid var(--wc-line);border-radius:12px;background:var(--wc-bg);box-shadow:0 9px 22px rgba(30,30,30,.1);max-height:235px;overflow-y:auto;overscroll-behavior:contain;}
.work-catalog-page .wc-create-matches[hidden],.work-catalog-page .wc-create-selected[hidden] {display:none!important;}
.work-catalog-page .wc-create-matches button {display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:10px 12px;background:transparent;border:0;border-bottom:1px solid var(--wc-line);color:var(--wc-ink);font-size:12px;text-align:left;}
.work-catalog-page .wc-create-matches button:last-child {border-bottom:0;}
.work-catalog-page .wc-create-matches button:hover,.work-catalog-page .wc-create-matches button:focus-visible {background:var(--wc-tint);}
.work-catalog-page .wc-create-matches button span {min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;}
.work-catalog-page .wc-create-matches button small {font-size:10px;color:var(--wc-muted);}
.work-catalog-page .wc-create-matches button em,.work-catalog-page .wc-create-selected small {font-style:normal;font-size:10px;font-weight:700;border:1px solid var(--wc-line);padding:3px 7px;border-radius:7px;white-space:nowrap;color:var(--wc-muted);}
.work-catalog-page .wc-create-empty {margin:0;padding:15px;font-size:12px;color:var(--wc-muted);}
.work-catalog-page .wc-create-selected {display:grid;gap:5px;border:1px solid var(--wc-line);border-radius:11px;padding:12px;background:var(--wc-tint);font-size:12px;overflow-wrap:anywhere;}
.work-catalog-page .wc-create-selected span {display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.work-catalog-page .wc-source-links {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px;font-size:11px;color:var(--wc-muted);}
.work-catalog-page .wc-source-open {padding:7px 13px;min-height:32px;background:var(--theme-primary-bg);color:var(--theme-primary-text);border:1px solid var(--theme-primary-bg);border-radius:999px;font-size:11px;font-weight:750;}
.work-catalog-page .wc-source-open:hover {opacity:.88;}
.work-catalog-page .wc-source-note {font-size:11px;color:var(--wc-muted);}

/* v10.64 — dense mobile browse controls and a short bottom-sheet filter editor. */
.wc-quick-filters {display:block;}
.wc-filter-close {display:none;}
.wc-filter-backdrop[hidden] {display:none!important;}
.wc-detail-top .wc-source-links {margin:0 0 0 auto;justify-content:flex-end;min-width:0;}
.wc-detail-top .wc-source-open {min-height:30px;padding:5px 12px;font-size:11px;}
@media (max-width:640px) {
  .wc-quick-filters {display:flex;align-items:center;gap:8px;margin:9px 0 12px;min-width:0;}
  .wc-quick-filters .wc-discovery {display:flex;flex:1 1 auto;min-width:0;margin:0;padding:2px 0 3px;gap:6px;}
  .wc-quick-filters .wc-mobile-filter-row {display:flex;flex:0 0 auto;margin:0;}
  .wc-genre {min-height:30px!important;padding:5px 10px!important;font-size:10px!important;white-space:nowrap;}
  .wc-filter-toggle {min-height:31px!important;padding:5px 10px!important;border-radius:999px!important;font-size:10px!important;white-space:nowrap;}
  .wc-search {min-height:42px;}
  .wc-search button {min-height:33px;padding:0 11px;font-size:10px;}
  .wc-filter-backdrop:not([hidden]) {display:block;position:fixed;inset:0;z-index:145;background:rgba(17,17,17,.38);}
  .wc-filter-panel.is-mobile-open {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px;
    position:fixed;z-index:146;left:0;right:0;bottom:0;top:auto;
    width:100%;box-sizing:border-box;max-height:min(76dvh,620px);overflow:auto;overscroll-behavior:contain;
    border-radius:19px 19px 0 0;padding:15px 17px calc(12px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -14px 48px rgba(0,0,0,.15);background:var(--wc-bg);
  }
  .wc-filter-panel.is-mobile-open .wc-panel-title {position:sticky;top:-15px;z-index:1;display:flex;align-items:center;gap:8px;margin:0;padding:6px 0 12px;background:var(--wc-bg);}
  .wc-filter-panel .wc-panel-title strong {font-size:14px;margin-right:auto;}
  .wc-filter-panel .wc-panel-title #wcResetFilters {flex:none;min-height:29px;padding:4px 7px;margin:0;font-size:10px;}
  .wc-filter-close {display:grid;place-items:center;flex:0 0 28px;min-width:28px;min-height:28px;border:1px solid var(--wc-line)!important;border-radius:50%;background:var(--wc-soft)!important;color:var(--wc-ink)!important;font-size:20px!important;line-height:1;}
  .wc-filter-panel .wc-filter-block {padding:10px 0;}
  .wc-filter-panel .wc-filter-heading {margin-bottom:6px;}
  .wc-filter-panel .wc-filter-heading strong,.wc-filter-panel .wc-filter-block label {font-size:11px;margin-bottom:6px;}
  .wc-filter-panel .wc-tag-choices {max-height:105px;gap:5px;}
  .wc-filter-panel .wc-tag {min-height:28px;padding:4px 8px;border-radius:999px;font-size:10px;}
  .wc-filter-panel .wc-mode {margin-top:7px;}
  .wc-filter-panel .wc-mode button {min-height:32px;font-size:10px;}
  .wc-filter-panel .wc-filter-block select {height:34px;font-size:11px;}
  .wc-filter-panel .wc-filter-footnote {margin:2px 0 7px;font-size:10px;}
  .wc-filter-panel .wc-filter-done {position:sticky;bottom:-12px;z-index:1;min-height:37px;font-size:11px;box-shadow:0 -5px 10px var(--wc-bg);}
  body.wc-filter-sheet-open {overflow:hidden;}
  .wc-detail-top {gap:8px;flex-wrap:nowrap;margin:9px 0 13px;}
  .wc-detail-top .wc-detail-back {flex:0 0 auto;min-height:32px;padding:6px 10px;font-size:10px;}
  .wc-detail-top .wc-source-links {margin:0 0 0 auto;gap:5px;flex:1 1 auto;justify-content:flex-end;}
  .wc-detail-top .wc-source-open {min-height:31px;padding:5px 9px;font-size:10px;white-space:nowrap;}
}

/* v10.65 — compact filter controls, full-width sheet header and editable warnings. */
.wc-panel-actions {display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;}
.wc-panel-actions #wcResetFilters {display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 11px;border:1px solid var(--wc-line);border-radius:999px;background:var(--wc-soft);color:var(--wc-muted);font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap;}
.wc-warning-content {padding:4px 0 2px;}
.wc-warning-content p {white-space:pre-wrap;overflow-wrap:anywhere;}
.wc-warning-content .wc-inline-edit {margin-top:8px;}
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters .wc-filter-toggle {
    border:1px solid var(--theme-primary-bg)!important;
    background:var(--theme-primary-bg)!important;
    color:var(--theme-primary-text)!important;
    font-weight:700;
  }
  .work-catalog-page .wc-quick-filters .wc-filter-toggle span {color:inherit;opacity:.83;}
  .work-catalog-page .wc-filter-panel.is-mobile-open .wc-panel-title {
    grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    top:-15px;margin:0 0 4px;padding:8px 0 13px;
    border-bottom:1px solid var(--wc-line);
  }
  .work-catalog-page .wc-filter-panel.is-mobile-open .wc-panel-title strong {
    margin:0;min-width:0;font-size:14px;white-space:nowrap;
  }
  .work-catalog-page .wc-filter-panel.is-mobile-open .wc-panel-actions {margin-left:auto;gap:8px;}
  .work-catalog-page .wc-filter-panel.is-mobile-open #wcResetFilters {
    min-height:31px;padding:5px 11px;margin:0;border:1px solid var(--wc-line);
    background:var(--wc-soft);border-radius:999px;color:var(--wc-muted);font-size:11px;
  }
  .work-catalog-page .wc-filter-panel.is-mobile-open .wc-filter-close {
    flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;
    display:flex;align-items:center;justify-content:center;box-sizing:border-box;
    border:1px solid var(--wc-line)!important;border-radius:50%;
    background:var(--wc-soft)!important;color:var(--wc-ink)!important;
    padding:0!important;line-height:1!important;
  }
  .work-catalog-page .wc-filter-close svg {display:block;flex-shrink:0;}
  .work-catalog-page .wc-filter-panel.is-mobile-open > .wc-filter-block:nth-child(2) {grid-column:1/-1;}
}

/* v10.66 — Simple, field-first community contributions. Catalog scoped. */
.work-catalog-page .wc-edit-choices {min-width:0;margin:0;padding:0;border:0;}
.work-catalog-page .wc-edit-choices legend {margin-bottom:9px;font-size:12px;font-weight:750;color:var(--wc-ink);}
.work-catalog-page .wc-edit-choice-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.work-catalog-page .wc-edit-choice-grid button {display:flex;align-items:center;gap:8px;min-width:0;min-height:39px;padding:8px 10px;border:1px solid var(--wc-line);border-radius:11px;background:var(--wc-soft);color:var(--wc-ink);text-align:left;font-size:12px;font-weight:650;line-height:1.35;}
.work-catalog-page .wc-edit-choice-grid button > span {display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:6px;background:var(--wc-bg);color:var(--wc-muted);font-size:12px;font-weight:750;}
.work-catalog-page .wc-edit-choice-grid button:hover {background:var(--wc-tint);}
.work-catalog-page .wc-edit-choice-grid button.is-selected {background:var(--theme-primary-bg,var(--wc-ink));color:var(--theme-primary-text,#fff);border-color:var(--theme-primary-bg,var(--wc-ink));}
.work-catalog-page .wc-edit-choice-grid button.is-selected > span {background:rgba(255,255,255,.16);color:inherit;}
.work-catalog-page .wc-edit-input-area {display:grid;gap:11px;padding-top:12px;border-top:1px solid var(--wc-line);}
.work-catalog-page .wc-edit-input-area[hidden],.work-catalog-page .wc-edit-batch[hidden] {display:none!important;}
.work-catalog-page .wc-edit-batch {display:grid;gap:9px;}
.work-catalog-page .wc-edit-batch-action {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.work-catalog-page .wc-edit-batch-action span {font-size:11px;line-height:1.5;color:var(--wc-muted);}
.work-catalog-page .wc-edit-batch-action button {flex:0 0 auto;min-height:33px;padding:6px 10px;border:1px solid var(--wc-line);background:var(--wc-bg);color:var(--wc-ink);border-radius:9px;font-size:11px;font-weight:700;}
.work-catalog-page .wc-edit-queued {display:flex;flex-wrap:wrap;gap:6px;}
.work-catalog-page .wc-edit-pending-item {display:inline-flex;align-items:center;max-width:100%;overflow-wrap:anywhere;gap:7px;border:1px solid var(--wc-line);border-radius:9px;padding:5px 6px 5px 9px;background:var(--wc-tint);color:var(--wc-ink);font-size:11px;line-height:1.5;}
.work-catalog-page .wc-edit-pending-item > span {min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;}
.work-catalog-page .wc-edit-pending-item button {flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--wc-line);border-radius:50%;background:var(--wc-bg);color:var(--wc-muted);font-size:15px;line-height:1;}
.work-catalog-page .wc-edit-queued:empty {display:none;}
.work-catalog-page .wc-edit-dialog .wc-edit-message:empty {display:none;}
@media(max-width:640px) {
  .work-catalog-page .wc-edit-choice-grid {gap:6px;}
  .work-catalog-page .wc-edit-choice-grid button {min-height:38px;padding:7px 8px;gap:6px;font-size:11px;}
  .work-catalog-page .wc-edit-choices legend {font-size:11px;}
  .work-catalog-page .wc-edit-dialog {max-height:86dvh;}
  .work-catalog-page .wc-edit-batch-action button {min-height:34px;}
}
/* v10.67 · compact inline editing and safe history summary. */
.work-catalog-page .wc-mapped-status {display:block;font-size:10px;font-weight:500;color:var(--wc-muted);line-height:1.6;}
.work-catalog-page .wc-detail-tag-label .wc-inline-edit {margin-left:8px;vertical-align:middle;}
.work-catalog-page .wc-history {margin-top:13px;border-top:1px solid var(--wc-line);padding-top:12px;}
.work-catalog-page .wc-history > summary {cursor:pointer;font-size:11px;font-weight:700;color:var(--wc-muted);}
.work-catalog-page .wc-history-items {margin-top:12px;font-size:11px;line-height:1.7;color:var(--wc-muted);}
.work-catalog-page .wc-history-item {display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 10px;padding:7px 0;border-top:1px solid var(--wc-line);}
.work-catalog-page .wc-history-item:first-child {border-top:none;}
.work-catalog-page .wc-history-item time {font-size:10px;color:var(--wc-muted);}

/* v10.68 — unified encyclopedia detail actions and quieter quote typography. */
.work-catalog-page .wc-detail-section,
.work-catalog-page .wc-detail-facts {
  border-radius:15px;
}
.work-catalog-page .wc-section-title-row,
.work-catalog-page .wc-subsection-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.work-catalog-page .wc-section-title-row {margin:9px 0 16px;}
.work-catalog-page .wc-section-title-row h4 {
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:17px;
  line-height:1.45;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
.work-catalog-page .wc-subsection-title-row {margin:17px 0 10px;}
.work-catalog-page .wc-subsection-title-row .wc-detail-tag-label {
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:12px;
  font-weight:700;
}
.work-catalog-page .wc-inline-actions {
  display:inline-flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.work-catalog-page .wc-section-title-row > .wc-inline-actions,
.work-catalog-page .wc-subsection-title-row > .wc-inline-actions {
  max-width:100%;
}
.work-catalog-page .wc-inline-edit,
.work-catalog-page .wc-extra-facts .wc-inline-edit {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  box-sizing:border-box;
  min-width:48px;
  height:29px;
  min-height:29px;
  margin:0;
  padding:4px 10px;
  border:1px solid var(--wc-line);
  border-radius:9px;
  background:var(--wc-soft);
  color:var(--wc-muted);
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.work-catalog-page .wc-inline-edit:hover {
  background:var(--wc-tint);
  color:var(--wc-ink);
}
.work-catalog-page .wc-inline-edit:focus-visible {
  outline:2px solid var(--wc-indigo);
  outline-offset:2px;
}
.work-catalog-page .wc-detail-facts dl .wc-fact-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
  align-items:center;
  gap:8px;
  padding:12px 0;
}
.work-catalog-page .wc-detail-facts dl .wc-fact-row-editable {
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;
}
.work-catalog-page .wc-fact-row dt,
.work-catalog-page .wc-fact-row dd {min-width:0;overflow-wrap:anywhere;}
.work-catalog-page .wc-detail-facts .wc-fact-row dd {
  text-align:right;
  font-weight:750;
  line-height:1.5;
}
.work-catalog-page .wc-extra-facts .wc-extra-facts-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.work-catalog-page .wc-extra-facts-row strong {text-align:right;min-width:0;overflow-wrap:anywhere;}
.work-catalog-page .wc-warning-content .wc-subsection-title-row {margin:2px 0 10px;}
.work-catalog-page .wc-warning-content p {margin:0;font-size:12px;line-height:1.8;}
.work-catalog-page .wc-work-quote summary span {
  font-size:12.5px;
  line-height:1.65;
  font-weight:500;
}
.work-catalog-page .wc-work-quote p {
  font-size:12.5px;
  line-height:1.75;
  margin:9px 0 4px;
}
@media(max-width:640px) {
  .work-catalog-page .wc-section-title-row {gap:9px;margin:8px 0 13px;align-items:flex-start;}
  .work-catalog-page .wc-section-title-row h4 {font-size:16px;}
  .work-catalog-page .wc-subsection-title-row {margin:15px 0 9px;gap:9px;align-items:flex-start;}
  .work-catalog-page .wc-inline-actions {gap:7px;}
  .work-catalog-page .wc-inline-edit,
  .work-catalog-page .wc-extra-facts .wc-inline-edit {
    min-width:46px;
    height:30px;
    min-height:30px;
    padding:4px 9px;
    font-size:11px;
  }
  .work-catalog-page .wc-work-quote summary span,
  .work-catalog-page .wc-work-quote p {font-size:12px;}
}
@media(prefers-reduced-motion:reduce) {
  .work-catalog-page .wc-inline-edit {transition:none;}
}

/* v10.70 — A small shared progress cue, with an optional quest sheet. */
.work-catalog-page .wc-contribution-success {
  display:flex;align-items:center;gap:9px;margin:0 0 12px;padding:11px 14px;
  border:1px solid var(--wc-line);border-radius:12px;background:var(--wc-soft);
  color:var(--wc-ink);font-size:12px;font-weight:650;line-height:1.5;
}
.work-catalog-page .wc-contribution-success > span:first-child {font-size:15px;color:var(--wc-muted);}
.work-catalog-page .wc-edit-field-hint {margin:0;color:var(--wc-muted);font-size:11px;line-height:1.65;}
.work-catalog-page .wc-edit-existing-info {margin:0;padding:8px 10px;border:1px solid var(--wc-line);border-radius:9px;background:var(--wc-tint);color:var(--wc-muted);font-size:11px;line-height:1.65;overflow-wrap:anywhere;}
.work-catalog-page .wc-edit-existing-info[hidden] {display:none;}

/* Shared 5-item fill score. The count measures presence, not accuracy. */
.work-catalog-page .wc-card-fill {display:flex;align-items:center;gap:7px;margin-top:7px;color:var(--wc-muted);font-size:10px;line-height:1.3;}
.work-catalog-page .wc-card-fill > span:first-child {flex:none;white-space:nowrap;}
.work-catalog-page .wc-card-fill strong {flex:none;font-size:10px;color:var(--wc-ink);font-weight:700;font-variant-numeric:tabular-nums;}
.work-catalog-page .wc-card-fill-track,.work-catalog-page .wc-quest-trigger-track,.work-catalog-page .wc-quest-track {display:block;background:var(--wc-line);overflow:hidden;border-radius:999px;}
.work-catalog-page .wc-card-fill-track {flex:1;min-width:24px;max-width:92px;height:4px;}
.work-catalog-page .wc-card-fill-track i,.work-catalog-page .wc-quest-trigger-track i,.work-catalog-page .wc-quest-track span {display:block;height:100%;border-radius:inherit;background:var(--wc-ink);opacity:.68;transition:width .24s ease;}
.work-catalog-page .wc-quest-trigger {display:flex;align-items:center;gap:11px;max-width:100%;width:100%;margin:9px 0 17px;padding:10px 14px;border:1px solid var(--wc-line);border-radius:12px;background:var(--wc-bg);color:var(--wc-ink);text-align:left;cursor:pointer;box-shadow:none;}
.work-catalog-page .wc-quest-trigger:hover {background:var(--wc-soft);}
.work-catalog-page .wc-quest-trigger:focus-visible {outline:2px solid var(--wc-indigo);outline-offset:3px;}
.work-catalog-page .wc-quest-trigger-icon {width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:8px;background:var(--wc-tint);color:var(--wc-ink);font-size:16px;}
.work-catalog-page .wc-quest-trigger-label {flex:none;font-size:12px;font-weight:700;white-space:nowrap;}
.work-catalog-page .wc-quest-trigger-label strong {margin-left:5px;font-size:12px;font-variant-numeric:tabular-nums;}
.work-catalog-page .wc-quest-trigger-track {height:5px;flex:1;min-width:18px;max-width:160px;}
.work-catalog-page .wc-quest-trigger-next {flex:none;margin-left:auto;color:var(--wc-muted);font-size:11px;white-space:nowrap;}
.work-catalog-page .wc-quest-trigger-arrow {font-size:18px;color:var(--wc-muted);line-height:1;}
/* Native modal ensures Escape, keyboard focus containment and backdrop accessibility. */
.work-catalog-page .wc-quest-dialog {position:fixed;inset:auto 23px 24px auto;box-sizing:border-box;width:min(390px,calc(100vw - 28px));max-height:min(680px,calc(100dvh - 32px));margin:0;padding:19px 20px 18px;border:1px solid var(--wc-line);border-radius:19px;background:var(--wc-bg);color:var(--wc-ink);box-shadow:0 22px 65px rgba(26,25,23,.18);overflow-y:auto;overscroll-behavior:contain;}
.work-catalog-page .wc-quest-dialog::backdrop {background:rgba(16,18,20,.34);}
.work-catalog-page .wc-quest-dialog[open] {animation:wc-quest-rise .2s ease-out both;}
.work-catalog-page .wc-quest-handle {display:none;}
.work-catalog-page .wc-quest-head {display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;}
.work-catalog-page .wc-quest-head h3 {font-size:19px;letter-spacing:-.035em;margin:4px 0 5px;}
.work-catalog-page .wc-quest-head p {font-size:11px;line-height:1.55;color:var(--wc-muted);margin:0;}
.work-catalog-page .wc-quest-close {width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border:1px solid var(--wc-line);border-radius:50%;background:var(--wc-soft);color:var(--wc-ink);font-size:18px;line-height:1;cursor:pointer;}
.work-catalog-page .wc-quest-summary {display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--wc-muted);}
.work-catalog-page .wc-quest-summary strong {color:var(--wc-ink);font-variant-numeric:tabular-nums;}
.work-catalog-page .wc-quest-track {height:6px;margin:9px 0 12px;}
.work-catalog-page .wc-quest-tasks {border-top:1px solid var(--wc-line);}
.work-catalog-page .wc-quest-task {display:flex;align-items:center;gap:10px;padding:11px 1px;border-bottom:1px solid var(--wc-line);}
.work-catalog-page .wc-quest-check {flex:0 0 23px;width:23px;height:23px;display:grid;place-items:center;border:1px solid var(--wc-line);border-radius:50%;color:var(--wc-muted);font-size:13px;}
.work-catalog-page .wc-quest-task.is-complete .wc-quest-check {color:var(--wc-ink);background:var(--wc-tint);border-color:var(--wc-tint);}
.work-catalog-page .wc-quest-task-copy {flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.work-catalog-page .wc-quest-task-copy strong {font-size:12px;font-weight:750;}
.work-catalog-page .wc-quest-task-copy small {font-size:10px;color:var(--wc-muted);line-height:1.4;}
.work-catalog-page .wc-quest-done {font-size:10px;color:var(--wc-muted);white-space:nowrap;}
.work-catalog-page .wc-quest-write {flex:none;min-height:30px;padding:5px 11px;border:1px solid var(--wc-line);border-radius:9px;background:var(--wc-tint);color:var(--wc-ink);font-size:11px;font-weight:750;cursor:pointer;}
.work-catalog-page .wc-quest-write:hover {background:var(--wc-soft);}
.work-catalog-page .wc-quest-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;padding-top:14px;color:var(--wc-muted);font-size:11px;line-height:1.6;}
.work-catalog-page .wc-quest-foot button {border:0;background:transparent;color:var(--wc-ink);font-size:11px;font-weight:750;cursor:pointer;padding:3px 0;}
.work-catalog-page .wc-quest-close:focus-visible,.work-catalog-page .wc-quest-write:focus-visible,.work-catalog-page .wc-quest-foot button:focus-visible {outline:2px solid var(--wc-indigo);outline-offset:2px;}
@keyframes wc-quest-rise {from{opacity:.45;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){
  .work-catalog-page .wc-quest-trigger {gap:8px;padding:9px 11px;margin:7px 0 13px;border-radius:11px;}
  .work-catalog-page .wc-quest-trigger-label,.work-catalog-page .wc-quest-trigger-label strong {font-size:11px;}
  .work-catalog-page .wc-quest-trigger-next {font-size:10px;}
  .work-catalog-page .wc-quest-trigger-icon {width:23px;height:23px;flex-basis:23px;font-size:14px;}
  .work-catalog-page .wc-quest-dialog {inset:auto 0 0 0;width:100vw;max-width:100vw;max-height:min(82dvh,670px);padding:12px 17px max(19px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;border-bottom:0;}
  .work-catalog-page .wc-quest-handle {display:block;width:34px;height:4px;margin:0 auto 16px;border-radius:999px;background:var(--wc-line);}
}
@media(max-width:350px){.work-catalog-page .wc-quest-trigger-track {max-width:44px}.work-catalog-page .wc-quest-trigger-next {font-size:9px;}}
@media(prefers-reduced-motion:reduce){.work-catalog-page .wc-quest-dialog[open]{animation:none}.work-catalog-page .wc-quest-track span,.work-catalog-page .wc-card-fill-track i,.work-catalog-page .wc-quest-trigger-track i{transition:none}}

/* v10.71 — compact fixed-size cover, tidier metadata and spoiler-first reading. */
.work-catalog-page .wc-card-open {align-items:flex-start;gap:12px;}
.work-catalog-page .wc-card-open .wc-book {
  flex:0 0 70px;width:70px;height:96px;min-height:0;max-height:96px;
  box-sizing:border-box;align-self:flex-start;overflow:hidden;
}
.work-catalog-page .wc-card-main {gap:5px;align-self:stretch;}
.work-catalog-page .wc-card-heading-row {display:flex;align-items:flex-start;gap:8px;min-width:0;justify-content:space-between;}
.work-catalog-page .wc-card-heading {min-width:0;flex:1;}
.work-catalog-page .wc-card-heading-row .wc-card-arrow {flex:none;font-size:15px;line-height:1.3;}
.work-catalog-page .wc-card-meta {display:flex;align-items:center;gap:5px 9px;flex-wrap:wrap;min-width:0;}
.work-catalog-page .wc-card-cp {color:var(--wc-muted);font-size:11px;overflow-wrap:anywhere;}
.work-catalog-page .wc-card-status {display:inline-flex;align-items:center;border:1px solid var(--wc-line);border-radius:6px;padding:3px 6px;background:var(--wc-soft);color:var(--wc-ink);font-size:10px;line-height:1.3;white-space:normal;}
.work-catalog-page .wc-card-mapped {color:var(--wc-muted);font-size:9px;}
.work-catalog-page .wc-card-tags {margin-top:2px;}
.work-catalog-page .wc-card-fill {margin-top:5px;}
.work-catalog-page .wc-quotes-spoiler {margin-top:2px;border:1px solid var(--wc-line);border-radius:11px;overflow:hidden;background:var(--wc-soft);}
.work-catalog-page .wc-quotes-spoiler > summary {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 13px;cursor:pointer;font-size:12px;font-weight:700;list-style:none;}
.work-catalog-page .wc-quotes-spoiler > summary::-webkit-details-marker {display:none;}
.work-catalog-page .wc-quotes-spoiler > summary::after {content:'⌄';font-size:15px;color:var(--wc-muted);margin-left:auto;}
.work-catalog-page .wc-quotes-spoiler[open] > summary::after {content:'⌃';}
.work-catalog-page .wc-quotes-spoiler > summary small {font-size:10px;color:var(--wc-muted);font-weight:500;}
.work-catalog-page .wc-quotes-spoiler #wcWorkQuotes {padding:0 13px 10px;border-top:1px solid var(--wc-line);}
.work-catalog-page .wc-warnings > summary span {font-size:10px;color:var(--wc-muted);}
@media(max-width:640px){
  .work-catalog-page .wc-card-open {gap:11px;}
  .work-catalog-page .wc-card-open .wc-book {flex-basis:64px;width:64px;height:89px;max-height:89px;}
  .work-catalog-page .wc-card-status {font-size:9.5px;}
  .work-catalog-page .wc-card-mapped {font-size:9px;}
  .work-catalog-page .wc-quotes-spoiler > summary {padding:11px;font-size:11px;}
}

/* v10.75 — compact user corrections within the existing edit dialog. */
.work-catalog-page .wc-subsection-title-row,.work-catalog-page .wc-section-title-row {flex-wrap:wrap;}
.work-catalog-page .wc-edit-manage {display:grid;gap:9px;min-width:0;}
.work-catalog-page .wc-edit-manage-list {display:grid;gap:7px;max-height:min(35dvh,255px);overflow:auto;}
.work-catalog-page .wc-edit-manage-row {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border:1px solid var(--wc-line);border-radius:10px;background:var(--wc-soft);padding:9px 10px;}
.work-catalog-page .wc-edit-manage-row>span {min-width:0;flex:1;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--wc-ink);font-size:12px;line-height:1.5;}
.work-catalog-page .wc-edit-manage-row>div {display:flex;flex:0 0 auto;gap:5px;}
.work-catalog-page .wc-edit-manage-row button,.work-catalog-page .wc-edit-manage-back {min-height:31px;padding:5px 9px;border:1px solid var(--wc-line);border-radius:8px;background:var(--wc-bg);color:var(--wc-ink);font-size:11px;font-weight:700;}
.work-catalog-page .wc-edit-manage-row button:hover,.work-catalog-page .wc-edit-manage-back:hover {background:var(--wc-tint);}
.work-catalog-page .wc-edit-manage-back {justify-self:start;}
@media(max-width:360px){.work-catalog-page .wc-edit-manage-row {padding:8px;gap:5px}.work-catalog-page .wc-edit-manage-row button {padding:5px 7px}}

/* v10.86: confirmed narrative-content caution, distinct from tags and free-text warnings. */
.wc-adult-scene-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:7px 0 13px;border-bottom:1px solid var(--wc-line);margin-bottom:12px;font-size:12px}
.wc-adult-scene-row>span{color:var(--wc-muted)}
.wc-adult-scene-row>strong{font-size:12px;color:var(--wc-ink)}
.wc-adult-scene-row>.wc-inline-edit{margin-left:auto}

/* v10.93: compact genre (2 rows) and taste keyword (5 rows) choices. */
.work-catalog-page .wc-genre-group {min-width:0;flex:1 1 auto;}
.work-catalog-page .wc-genre-group .wc-discovery {margin-bottom:0;}
.work-catalog-page .wc-discovery.wc-choices-collapsed,
.work-catalog-page .wc-tag-choices.wc-choices-collapsed {overflow:hidden!important;}
.work-catalog-page .wc-choices-more {
  display:inline-flex;align-items:center;gap:4px;min-height:26px;margin-top:5px;
  padding:3px 8px;border:1px solid var(--wc-line);border-radius:8px;
  background:var(--wc-bg);color:var(--wc-muted);font-size:10px;font-weight:650;
}
.work-catalog-page .wc-choices-more[hidden] {display:none!important;}
.work-catalog-page .wc-choices-more:focus-visible {outline:2px solid var(--theme-primary-bg);outline-offset:2px;}
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters {align-items:flex-start;}
  .work-catalog-page .wc-quick-filters .wc-genre-group {min-width:0;}
  .work-catalog-page .wc-quick-filters .wc-discovery {
    flex-wrap:wrap;overflow:visible;margin:0; padding:1px 0 0;
    scrollbar-width:auto;gap:6px;
  }
  .work-catalog-page .wc-filter-panel .wc-tag-choices {max-height:none;overflow:visible;}
}

/* v10.94: give the collapsed genre control a clear right-aligned action row. */
.work-catalog-page .wc-genre-group {display:flex;flex-direction:column;align-items:stretch;}
.work-catalog-page #wcGenreMore {align-self:flex-end;margin-top:11px;margin-bottom:7px;margin-right:2px;}
.work-catalog-page #wcTagMore {margin-top:9px;}

/* v11.02: keep the genre expansion action attached to the chip group on phones. */
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters .wc-genre-group {
    display:flex;flex-direction:column;align-items:stretch;min-width:0;
  }
  .work-catalog-page .wc-quick-filters #wcGenreMore {
    align-self:flex-start;
    margin:5px 0 4px;
  }
}

/* v11.10 revised — card taxonomy only; respect the existing site theme in light/dark modes. */
.work-catalog-page .wc-card-tags{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:5px;min-width:0}
.work-catalog-page .wc-card-tags .wc-card-genres,
.work-catalog-page .wc-card-tags .wc-card-keywords{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;max-width:100%}
.work-catalog-page .wc-card-tags .wc-card-genre{
  display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;
  border:1px solid var(--wc-line);border-radius:999px;
  background:var(--wc-soft);color:var(--wc-ink);font-size:10px;font-weight:700;
  line-height:1.35;overflow-wrap:anywhere
}
.work-catalog-page .wc-card-tags .wc-card-keyword{
  display:inline-flex;align-items:center;max-width:100%;padding:3px 6px;
  border:1px solid color-mix(in srgb,var(--wc-line) 55%,transparent);
  border-radius:5px;background:color-mix(in srgb,var(--wc-tint) 55%,transparent);
  color:var(--wc-muted);font-size:9px;font-weight:450;line-height:1.4;
  overflow-wrap:anywhere
}
.work-catalog-page .wc-card-tags .wc-card-taxonomy-empty{color:var(--wc-muted);font-size:10px}
.work-catalog-page #wcGenreMore{align-self:flex-end;margin:7px 1px 4px auto}
.work-catalog-page #wcTagMore{display:flex;width:max-content;margin:8px 0 2px auto}
.work-catalog-page .wc-choices-more{color:var(--wc-ink);background:var(--wc-bg);border-color:var(--wc-line)}
@media(max-width:640px){
  .work-catalog-page .wc-quick-filters #wcGenreMore{align-self:flex-end;margin:6px 1px 3px auto}
  .work-catalog-page .wc-filter-panel #wcTagMore{margin:8px 0 3px auto}
  .work-catalog-page .wc-card-tags{gap:4px;margin-top:4px}
  .work-catalog-page .wc-card-tags .wc-card-genre{font-size:9.5px;padding:3px 8px}
  .work-catalog-page .wc-card-tags .wc-card-keyword{font-size:8.5px;padding:3px 6px}
}

/* v11.11: remove inherited background/padding from card taxonomy row wrappers. */
.work-catalog-page .wc-card-tags > .wc-card-genres,
.work-catalog-page .wc-card-tags > .wc-card-keywords {
  background:transparent!important;border:0!important;border-radius:0!important;
  padding:0!important;box-shadow:none!important;
}
/* Preserve the separate genre pills and translucent keyword chips. */
.work-catalog-page .wc-card-tags .wc-card-genre {background:var(--wc-soft);border-radius:999px;}
.work-catalog-page .wc-card-tags .wc-card-keyword {background:color-mix(in srgb,var(--wc-tint) 55%,transparent);border-radius:5px;}
/* Keep expansion visibly adjacent to the genre rows rather than floating far below. */
.work-catalog-page #wcGenreMore {margin:2px 0 0 auto;align-self:flex-end;line-height:1.2;}
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters .wc-genre-group {row-gap:0;}
  .work-catalog-page .wc-quick-filters .wc-discovery {padding-bottom:0;}
  .work-catalog-page .wc-quick-filters #wcGenreMore {
    align-self:flex-end;margin:2px 0 0 auto;min-height:25px;padding:3px 9px;
  }
}

/* v11.12 — mobile genre 'more' lives visually inside row 2, not on a separate action row.
   Reserve its width before JS measures wrapping; do not change desktop or taste-filter layout. */
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more {
    position:relative;
    display:block;
    min-width:0;
  }
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more #wcGenreChoices {
    box-sizing:border-box;
    width:100%;
    padding-right:76px;
  }
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more #wcGenreMore:not([hidden]) {
    position:absolute;
    right:0;
    bottom:1px;
    z-index:1;
    margin:0;
    min-height:29px;
    padding:3px 8px;
    white-space:nowrap;
  }
}

/* v11.13 — mobile browse rail, not a multi-row expansion panel.
   Genre is a horizontal scroller; the detailed filter button stays accessible.
   Preserve existing theme tokens, desktop wrapping, and keyword filters. */
@media (max-width:640px) {
  .work-catalog-page .wc-quick-filters {
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    margin:10px 0 15px;
  }
  .work-catalog-page .wc-quick-filters .wc-genre-group,
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more {
    display:block;
    flex:1 1 0;
    min-width:0;
    position:relative;
    overflow:hidden;
  }
  .work-catalog-page .wc-quick-filters .wc-genre-group::after {
    content:"";
    position:absolute;
    top:0;bottom:0;right:0;
    width:18px;
    pointer-events:none;
    background:linear-gradient(to right,transparent,var(--wc-bg));
    opacity:.9;
  }
  .work-catalog-page .wc-quick-filters #wcGenreChoices,
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more #wcGenreChoices {
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    width:100%;
    max-height:none!important;
    padding:2px 12px 3px 0;
    margin:0;
    gap:7px;
    box-sizing:border-box;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
  }
  .work-catalog-page #wcGenreChoices::-webkit-scrollbar {display:none;}
  .work-catalog-page #wcGenreChoices .wc-genre {
    flex:0 0 auto;
    scroll-snap-align:start;
    min-height:36px!important;
    padding:7px 13px!important;
    font-size:11px!important;
  }
  .work-catalog-page .wc-quick-filters #wcGenreMore,
  .work-catalog-page .wc-quick-filters .wc-genre-group.wc-inline-more #wcGenreMore {display:none!important;}
  .work-catalog-page .wc-quick-filters .wc-mobile-filter-row {
    flex:0 0 auto;
    align-self:center;
    margin:0;
  }
  .work-catalog-page .wc-quick-filters .wc-filter-toggle {
    min-height:36px!important;
    padding:6px 12px!important;
  }
}

/* Metadata-only BGM recommendations; reuse catalog theme and spacing. */
.work-catalog-page .wc-bgm-list {list-style:none;margin:0;padding:0;}
.work-catalog-page .wc-bgm-list li+li {border-top:1px solid var(--wc-line);}
.work-catalog-page .wc-bgm-list a {display:block;padding:12px 0;color:var(--wc-ink);text-decoration:none;overflow-wrap:anywhere;}
.work-catalog-page .wc-bgm-list a:hover {text-decoration:underline;}
.work-catalog-page .wc-bgm-list a span {display:block;margin-top:4px;font-size:11px;color:var(--wc-muted);}
