:root {
  color-scheme: dark;
  --u: min(calc(100vw / 2048), calc(100svh / 1152));
  --ink: #c6cfca;
  --nav-ink: #f4f6f2;
  --muted: #bac4be;
  --green: #e2f7c1;
  --background: #111916;
  --field: #101816;
  --line: #abb4ae;
  --soft-line: #68736d;
  --header: max(45px, calc(72 * var(--u)));
  --header-inset: clamp(1.1rem, 3.25vw, 5.5rem);
  --pad: calc(74 * var(--u));
  --text-meta: clamp(.75rem, calc(.625rem + .2vw), .875rem);
  --text-ui: clamp(.8125rem, calc(.6875rem + .2vw), .9375rem);
  --text-reading: clamp(.9375rem, calc(.8125rem + .2vw), 1.0625rem);
  --text-item: clamp(1rem, calc(.75rem + .4vw), 1.25rem);
  --text-card: clamp(1.125rem, calc(.875rem + .53vw), 1.625rem);
  --text-heading: clamp(1.625rem, calc(1rem + 1.32vw), 2.75rem);
  --text-feature: clamp(2rem, calc(1.3rem + 1.66vw), 3.5rem);
  --nav-en: clamp(.75rem, 1.145833vw, 1.5rem);
  --nav-zh: clamp(.625rem, .729167vw, .95rem);
  --font-zh: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: "Oswald Medium", var(--font-zh);
  font-synthesis: weight style;
  scroll-padding-top: var(--header);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-size: var(--text-ui); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
img { display: block; width: 100%; height: auto; }
button:hover:not(:disabled), a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 100; padding: .7em 1em; background: var(--green); color: #101812; }
.skip-link:focus { transform: none; }
.initial { padding: 2rem; }
.accent, .eyebrow, .active { color: var(--green); }
.eyebrow { font-size: var(--text-meta); }
.empty { padding: 2rem 0; color: var(--muted); }
.magnifier { display: inline-block; width: 1em; height: 1em; border: 1.5px solid currentColor; border-radius: 50%; position: relative; vertical-align: -.06em; flex: none; }
.magnifier::after { content: ""; position: absolute; width: .42em; height: 1.5px; background: currentColor; bottom: -.13em; right: -.27em; transform: rotate(47deg); }
.site-header {
  color: var(--nav-ink);
  height: var(--header); display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: stretch; position: sticky; top: 0; z-index: 20;
  gap: clamp(.9rem, 2.3vw, 3.75rem); padding-inline: var(--header-inset);
  background: #101714;
}
.brand { display: grid; place-items: center; align-self: center; margin-right: auto; min-height: 44px; }
.brand img {
  width: auto;
  height: clamp(1.75rem, calc(var(--header) - 1.1rem), 3.25rem);
  max-width: clamp(6rem, 13vw, 12rem);
  object-fit: contain;
  /* Center the Chinese wordmark above its English subtitle. */
  transform: translateY(9.8%);
}
.site-nav { display: flex; justify-content: space-between; align-items: stretch; gap: .35rem; }
.site-nav a, .submit-link, .contact-toggle {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  white-space: nowrap; font-weight: 500; transition: color .3s;
}
.nav-en {
  font-size: var(--nav-en); line-height: 1.364;
}
.nav-zh {
  font-size: var(--nav-zh); line-height: 1.446;
}
.site-header .current, .search-toggle[aria-expanded="true"] { color: var(--green); }
.header-actions { display: flex; align-items: stretch; gap: clamp(.8rem, 1.7vw, 2.7rem); }
.search-toggle { display: grid; place-items: center; width: 1.45em; font-size: clamp(1rem, 1.3vw, 1.45rem); }
.contact-drawer {
  position: fixed; inset: var(--header) 0 0 auto; margin: 0;
  width: min(16rem, calc(100% - .75rem)); max-width: none; height: auto; max-height: none;
  padding: 1rem .75rem; overflow: auto; overscroll-behavior: contain;
  border: 0; border-inline-start: 1px solid #a7c9b94d;
  background: #9ac7b021; color: var(--nav-ink);
}
.contact-drawer[open] {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  animation: contact-slide-in .28s ease-out;
}
.contact-drawer::backdrop { background: transparent; }
.contact-drawer :focus-visible { outline-color: currentColor; outline-offset: 1px; }
:root:has(.contact-drawer[open]) { overflow: hidden; }
@keyframes contact-slide-in { from { translate: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .contact-drawer[open] { animation: none; }
}
.contact-drawer-content { font-family: var(--font-zh); }
.contact-drawer-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  padding: .5rem .4rem .85rem .8rem;
  border-radius: .2rem;
  background: #edf3e6eb; color: #172c23;
}
.contact-drawer-heading h2 {
  font-family: "Ma Shan Zheng", "Kaiti SC", KaiTi, serif;
  font-size: 2.25rem; font-weight: 400; line-height: 1.15;
}
.contact-drawer-heading p {
  grid-column: 1 / -1; margin-top: .35rem;
  font-size: var(--text-ui); line-height: 1.55;
}
.contact-close {
  display: grid; place-items: center; align-self: start; width: 2.75rem; height: 2.75rem;
}
.contact-close:hover:not(:disabled) { color: #41654c; }
.contact-close::before, .contact-close::after {
  content: ""; grid-area: 1 / 1; width: 1.15rem; height: 2px; background: currentColor; rotate: 45deg;
}
.contact-close::after { rotate: -45deg; }
.contact-methods {
  display: grid; gap: .375rem; margin: .85rem 0 0;
}
.contact-methods > div {
  position: relative; padding: .5rem .65rem .5rem 2.6rem;
  background: #111d19ed; border-radius: .2rem;
}
.contact-methods > .contact-method-custom { padding-inline-start: .65rem; overflow-wrap: anywhere; }
.contact-method-icon {
  position: absolute; inset-inline-start: .65rem; top: 50%; translate: 0 -50%;
  width: 1.35rem; height: 1.35rem; color: var(--green);
}
.contact-methods dt { color: var(--muted); font-size: var(--text-meta); }
.contact-methods dd { margin: .15rem 0 0; font-size: var(--text-ui); overflow-wrap: anywhere; }
.contact-methods a { text-decoration: underline; text-underline-offset: .2em; }
.contact-methods a .icon-arrow-external { margin-inline-start: .3em; vertical-align: -.12em; }
.mobile-menu, .mobile-primary { display: none; }
.home { overflow: clip; }
.screen { position: relative; min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; isolation: isolate; }
.screen:focus { outline: none; }
@media (min-width: 701px) {
  :root { --header: clamp(3.5rem, 5.625vw, 6.6rem); }
  :root:has(.home) {
    --u: min(calc(100vw / 2048), calc((100svh - var(--header)) / 1080));
  }
  .home { max-width: calc(2304 * var(--u)); margin-inline: auto; }
  .home:has(> :is(.hero, .analysis, .research, .fiction, .timeline, .glossary, .guide).scene-current) { max-width: none; }
  .home > .screen:not(.scene-current) { display: none; }
  #site:has(.home) .site-header {
    view-transition-name: site-navigation;
  }
  #site:has(.hero.scene-current) .site-header { position: absolute; inset: 0 0 auto; }
  .home .hero { min-height: 100svh; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root) { animation-duration: 480ms; }
  ::view-transition-old(root) {
    animation: 360ms cubic-bezier(.35, 0, .48, 1) both scene-out;
    mix-blend-mode: normal;
  }
  ::view-transition-new(root) {
    animation: 480ms cubic-bezier(.16, 1, .3, 1) both scene-in;
    mix-blend-mode: normal;
  }
  ::view-transition-group(site-navigation) { z-index: 1; animation: none; }
  ::view-transition-old(site-navigation) { display: none; }
  ::view-transition-new(site-navigation) { animation: none; mix-blend-mode: normal; }
}
@media (min-width: 1080px) {
  .site-nav {
    justify-content: flex-end;
    gap: clamp(1rem, 3.35vw, 4.75rem);
  }
}
@media (701px <= width <= 1199px), (1200px <= width <= 1366px) and (pointer: coarse) {
  .site-header { gap: clamp(.9rem, 2.8vw, 2.5rem); }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
  }
  .site-nav a { justify-self: center; }
  .header-actions { gap: clamp(.3rem, 1.2vw, 1rem); }
  .search-toggle { width: clamp(2rem, 4vw, 2.75rem); }
}
@keyframes scene-out {
  from { opacity: 1; filter: brightness(1); transform: translateY(0); }
  to { opacity: 0; filter: brightness(.58); transform: translateY(calc(-10px * var(--scene-direction, 1))); }
}
@keyframes scene-in {
  from { opacity: 0; transform: translateY(calc(18px * var(--scene-direction, 1))); }
  to { opacity: 1; transform: translateY(0); }
}
.section-title {
  font-size: var(--text-heading); font-weight: 760; line-height: 1.18;
  letter-spacing: .025em; color: var(--ink);
}
.scroll-next { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.scroll-next .icon-arrow { font-size: 1.45em; }
.research-footer .scroll-next, .hero > .scroll-next { position: absolute; left: 50%; transform: translateX(-50%); }
.hero { overflow: hidden; background: #0b100f; }
.hero-image, .hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image { z-index: -2; object-position: center var(--hero-desktop-y, 28%); }
.hero-backdrop { display: none; z-index: -3; }
.hero::after {
  position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none;
  background: linear-gradient(180deg, #080d0ce8 0%, #080d0c82 9%, #080d0c00 25%, #080d0c00 77%, #080d0c88 100%);
}
.hero > .scroll-next { bottom: clamp(.75rem, 4vh, 3rem); }
.hero > .scroll-next .icon-arrow { font-size: 1.7em; }
@media (min-width: 701px) and (max-aspect-ratio: 6/5) {
  .hero-backdrop { display: block; filter: blur(28px) brightness(.45); transform: scale(1.06); }
  .hero-image {
    inset: 50% 0 auto; height: min(100%, 78vw); transform: translateY(-50%);
    mask-image: linear-gradient(180deg, transparent, #000 13%, #000 88%, transparent);
  }
}
.choices { display: flex; align-items: stretch; gap: calc(57 * var(--u)); }
.choices button { position: relative; min-height: 36px; white-space: nowrap; font-size: var(--text-meta); line-height: 1.4; padding: 0 calc(6 * var(--u)); }
.choices button.active::after { content: ""; position: absolute; inset-inline: 0; height: max(2px, calc(4 * var(--u))); bottom: 0; background: var(--green); }
.analysis { background: radial-gradient(ellipse at 82% 21%, #172420 0%, #0b1210 72%); }
.analysis::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, #afc9bd 1px, transparent 1.4px) 0 0 / 8px 8px;
  opacity: .15; mask-image: linear-gradient(166deg, #000, #0008 47%, transparent 90%);
}
.analysis-stage {
  --analysis-pad: clamp(1rem, 2.4vw, 4rem);
  --analysis-gutter: clamp(1.5rem, 9vw, 12rem);
  --analysis-left-shift: clamp(0px, calc(15vw - 150px), 7rem);
  --analysis-left-inset: calc(var(--header-inset) + var(--analysis-left-shift));
  --analysis-copy-width: 29%;
  --analysis-right-inset: calc(var(--header-inset) + clamp(1.25rem, 3.2vw, 4rem));
  flex: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: calc(var(--analysis-copy-width) + var(--analysis-left-shift)) minmax(0, 1fr) var(--analysis-right-inset);
  grid-template-rows: minmax(min-content, 1fr) auto;
}
.analysis-index {
  grid-area: 1 / 1;
  align-self: start;
  padding: clamp(1rem, 3.2svh, 2.75rem) var(--analysis-pad) 0 var(--analysis-left-inset);
  min-width: 0;
}
.analysis-index > .empty { padding: 1.25rem 0; }
.analysis-filters { margin-bottom: .65rem; }
.analysis-filters .choices { gap: .65rem; }
.analysis-filters .choices button { min-height: 32px; padding-inline: .8em; }
.analysis-filters .choices button.active::after { content: none; }
.analysis-filters button.active, .analysis-browse-tabs a[aria-current="page"] { background: var(--green); color: #0b1210; }
.analysis-list { display: grid; gap: clamp(.75rem, 1.5svh, 1.125rem); }
.analysis-choice {
  display: grid; align-content: center;
  min-height: clamp(3.25rem, 6.55svh, 4.75rem); text-align: left; padding: .55rem .4rem;
  border-bottom: 1px solid #bac9bf38; color: var(--ink); line-height: 1.35;
}
.analysis-date { color: var(--muted); font-size: var(--text-meta); white-space: nowrap; }
.analysis-choice .analysis-date { margin-bottom: .35em; }
.analysis-choice strong { display: block; font-weight: 650; overflow-wrap: anywhere; }
.analysis-all {
  margin-top: 1rem;
}
.analysis-watermark, .research-watermark, .glossary-watermark, .timeline-watermark {
  position: absolute; inset-inline-start: 7.5%; z-index: -1;
  display: flex; align-items: flex-end; height: .95em; overflow: hidden; white-space: nowrap;
  font-family: "Oswald Medium", sans-serif; font-weight: 500;
  font-size: clamp(3rem, 5.833333vw, 12rem); letter-spacing: -.05em; color: #242424;
  pointer-events: none; user-select: none;
}
.analysis-watermark { inset-block-start: 100%; transform: translateY(-.4em); }
.analysis-preview {
  display: grid; grid-area: 1 / 1 / -1 / -1;
  grid-template: subgrid / subgrid;
  pointer-events: none;
}
.analysis-visual {
  position: relative; grid-area: 1 / 2 / -1 / 3; min-width: 0; overflow: hidden;
  margin-block: clamp(1.25rem, 5svh, 3.5rem);
  margin-inline-start: max(0px, calc(var(--analysis-gutter) - var(--header-inset)));
  background: #111a17; pointer-events: auto;
}
.analysis-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0b121098, transparent 17%), linear-gradient(0deg, #0b1210, transparent 18%);
}
.analysis-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.analysis-pair .analysis-cover { width: 50%; }
.analysis-pair .analysis-cover + .analysis-cover { left: 50%; }
.analysis-caption {
  grid-area: 2 / 1; align-self: end; min-width: 0; pointer-events: auto;
  padding: clamp(1.75rem, 5.5svh, 4.5rem) var(--analysis-pad) clamp(.75rem, 2.2svh, 1.9rem) var(--analysis-left-inset);
}
.analysis-caption h2 {
  margin-top: .2em; font-size: clamp(1.35rem, 2.15vw, 2.75rem); line-height: 1.25;
  font-weight: 760; overflow-wrap: anywhere;
}
.analysis-caption p { margin-top: .6em; color: var(--muted); line-height: 1.55; }
.analysis-caption p, .analysis-caption h2, .analysis-choice strong, .fiction-summary {
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.analysis-choice strong { -webkit-line-clamp: 2; }
.analysis-read {
  min-width: 10em; margin-top: 1.25rem;
}
.analysis-footer { display: grid; place-items: center; min-height: clamp(3.25rem, 10svh, 7rem); }
@media (min-width: 701px) and (max-aspect-ratio: 4/3) {
  .analysis-pair .analysis-cover:first-child { object-position: 38% 42%; }
  .analysis-pair .analysis-cover + .analysis-cover { object-position: 53% 42%; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .analysis-stage {
    --analysis-gutter: clamp(1rem, 4vw, 2.25rem);
    --analysis-copy-width: max(29%, 17rem);
  }
}
.research { background: radial-gradient(ellipse at 67% 45%, #17201d, #0d1311 76%); }
.research::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, #97a99d 1px, transparent 1px),
    linear-gradient(#97a99d 1px, transparent 1px),
    linear-gradient(45deg, transparent 49.6%, #97a99d 50%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, #97a99d 50%, transparent 50.4%);
  background-size: clamp(7rem, 13.5vw, 17rem) clamp(7rem, 13.5vw, 17rem);
  opacity: .06; mask-image: linear-gradient(180deg, #000b, #000 36%, #0008 77%, transparent);
}
.research-stage {
  flex: 1; position: relative; isolation: isolate;
  display: grid; grid-template-columns: 50vw calc(100vw / 3); align-items: center;
  gap: 5vw;
  padding: clamp(1.4rem, 4.5svh, 3.75rem) 0
    clamp(2rem, 6svh, 4.5rem) clamp(1.5rem, 7.5vw, 10rem);
}
.research:has(> .research-stage:not(.is-preview))::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, #0d131166, #0d131199 58%, #0d1311b3),
    var(--research-background, none) center 43% / cover no-repeat;
  filter: grayscale(1) brightness(.78) blur(12px); opacity: .36;
  clip-path: inset(0);
  mask-image: linear-gradient(180deg, #000b, #000 16%, #000 77%, #0005);
}
.research-index { display: grid; min-width: 0; }
.research-choice {
  display: flex; align-items: center;
  min-height: clamp(3.2rem, 8.1svh, 5.15rem); padding: .55em 0; border-bottom: 1px solid #b8c8bf4d;
  text-align: left; color: var(--ink); transition: color .2s, border-color .2s;
}
.research-choice strong {
  font-size: clamp(1.1rem, 1.8vw, 2.1rem); line-height: 1.22; font-weight: 760; overflow-wrap: anywhere;
}
@media (min-width: 701px) and (max-width: 1700px) {
  .research-choice strong { font-size: clamp(1.1rem, 1.6vw, 1.7rem); }
}
.research-choice:hover { border-color: var(--green); }
.research-collection-entry {
  display: grid; justify-items: start; gap: .35rem;
  margin-inline: clamp(1.5rem, 7.5vw, 10rem);
}
.research-watermark {
  position: static; z-index: auto;
  font-size: clamp(3rem, min(5.833333vw, 10svh), 12rem);
}
.research-emblem { display: grid; place-items: center; min-width: 0; }
.research-emblem img {
  width: min(100%, 30vw); height: auto;
  translate: 0 clamp(.5rem, 1.75vw, 1.75rem);
  filter: grayscale(1) contrast(1.18) brightness(.78);
  mask-image: radial-gradient(circle at 2px 2px, #000 1.05px, transparent 1.45px); mask-size: 4px 4px;
  opacity: .72;
}
.research-stage.is-preview {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.5rem, 4svh, 4rem) clamp(1.5rem, 6.4vw, 9rem);
}
.research-preview {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1.05fr) minmax(0, 1fr) 2.75rem;
  align-items: center; column-gap: clamp(1rem, 3.2vw, 4rem);
}
.research-plate { grid-area: 1 / 2; min-width: 0; display: grid; place-items: center; }
.research-cover {
  width: auto; max-width: 100%; max-height: min(63svh, 43rem); object-fit: contain;
  filter: grayscale(1) contrast(1.26) brightness(1.25);
  mask-image: radial-gradient(circle at 1.75px 1.75px, #000 1.05px, transparent 1.55px),
    radial-gradient(ellipse at 50% 48%, #000 28%, #000d 54%, transparent 75%);
  mask-size: 3.5px 3.5px, 100% 100%;
  mask-repeat: repeat, no-repeat; mask-composite: intersect;
}
.research-cover:is(
  [src="/assets/research-revenged-love-bts.webp"],
  [src="/assets/research-rays-sweet-corn.webp"],
  [src="/assets/research-sweet-corn-red-flags.webp"],
  [src="/assets/research-birthday-interview.webp"],
  [src="/assets/research-revenged-love-studio.webp"],
  [src="/assets/research-sweet-corn-charity.webp"],
  [src^="/assets/research-sweet-corn-overseas/"],
  [src^="/assets/research-sweet-corn-wuxi-route/"],
  [src^="/assets/research-sweet-corn-fan-language/"],
  [src^="/assets/research-tian-ziyu-camera-resemblance/"],
  [src^="/assets/research-sweet-corn-macau-concert/"],
  [src^="/assets/research-sweet-corn-gift-exchange/"],
  [src^="/assets/research-sweet-corn-concert-companions/"]
) {
  filter: none; mask-image: none;
}
.research-copy { grid-area: 1 / 3; min-width: 0; }
.research-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.75rem); font-weight: 760; line-height: 1.28;
  text-wrap: balance; overflow-wrap: anywhere; line-break: strict;
}
.research-copy h2:focus { outline: none; }
.research-topic { display: block; margin-top: .45rem; font-size: clamp(1rem, 1.65vw, 1.75rem); line-height: 1.2; }
.research-description { margin-top: 1.1rem; border-top: 1px dashed #a6b4ac80; padding-top: 1rem; }
.research-copy p { max-width: 33em; color: var(--ink); font-size: var(--text-reading); line-height: 1.65; }
.research-read { display: inline-flex; align-items: center; gap: .8em; min-height: 44px; margin-top: .55rem; color: var(--green); }
.icon-arrow {
  display: inline-block; width: .4667em; height: 1em; flex: none; background: currentColor;
  vertical-align: -.14em; pointer-events: none;
  clip-path: polygon(0 0, 62% 31%, 43% 40%, 0 19%, 0 0, 0 81%, 81% 40%, 100% 50%, 0 100%, 0 81%);
}
.arrow-back { transform: rotate(180deg); }
.arrow-down { transform: rotate(90deg); }
.icon-arrow-external {
  display: inline-block; width: .875em; height: .875em; flex: none;
  vertical-align: -.08em; pointer-events: none;
}
:where(a:not(.action-link, .fiction-book-read)) > .icon-arrow-external { margin-inline-start: .35em; }
.research-step {
  display: grid; place-items: center; min-width: 44px; min-height: 52px;
  font-size: clamp(1.7rem, 3.5vw, 3.15rem); color: #aab6ae; transition: color .2s;
}
.research-step.previous { grid-area: 1 / 1; }
.research-step.next { grid-area: 1 / 4; }
.research-footer {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  min-height: clamp(3.5rem, 9svh, 6rem); padding-inline: var(--pad);
}
.research-footer.is-preview { align-items: flex-start; min-height: clamp(5.5rem, 12svh, 8rem); padding-inline: 0; }
.research-footer.is-preview .scroll-next { bottom: .2rem; }
.research-progress { flex: 1; height: 4px; margin-top: 22px; background: #c7d3ca45; }
.research-progress span {
  display: block; width: 100%; height: 100%; background: var(--green);
  transform: scaleX(var(--progress)); transform-origin: left;
}
.research-back {
  display: inline-flex; align-items: center; gap: clamp(.75rem, 1.9vw, 2rem);
  min-height: 48px; padding: .45rem clamp(1rem, 2.4vw, 2.75rem); background: #bac9c036; text-align: left;
}
.research-back .icon-arrow { font-size: 1.25rem; }
.research-back small { display: block; margin-top: .1rem; font-size: .7em; }
.fiction { background: radial-gradient(ellipse at 64% 35%, #192520, #0c1210 72%); }
.fiction-stage {
  flex: 1; position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center;
  gap: clamp(1.5rem, 5.5vw, 7rem);
  padding-block: clamp(1.5rem, 5svh, 5rem) clamp(3.5rem, 10svh, 8rem);
  padding-inline: clamp(1.5rem, 12.5vw, 14rem) clamp(1.5rem, 2.5vw, 4rem);
}
.fiction-panel { grid-area: 1 / 1; min-width: 0; max-width: 30rem; }
.fiction-artwork { grid-area: 1 / 2; min-width: 0; display: grid; place-items: center; }
.fiction-hero {
  width: auto; max-width: 100%; max-height: min(66svh, 58rem); object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 95%, transparent), linear-gradient(#000 84%, transparent);
  mask-composite: intersect;
}
.fiction-echo {
  position: absolute; inset: 0 auto auto 0; z-index: -2; width: 77%; height: 79%; object-fit: cover;
  object-position: 45% 35%; opacity: .17; filter: grayscale(1);
  mask-image: radial-gradient(ellipse at 45% 35%, #000 6%, transparent 72%);
  pointer-events: none;
}
.fiction-watermark {
  position: absolute; z-index: -1; inset: auto auto 11% 3%; pointer-events: none; user-select: none;
  font-family: "Oswald Medium", sans-serif; font-size: clamp(6rem, 18vw, 23rem); line-height: 1;
  letter-spacing: -.06em; color: #c4d8cb0b;
}
.fiction-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 4.3rem); line-height: 1.15; overflow-wrap: anywhere;
}
.fiction-rating-summary {
  display: flex; align-items: baseline; gap: .35em;
  font-size: var(--text-meta); line-height: 1.5;
}
.fiction-rating-summary > span:first-child { color: #976219; }
.fiction-summary {
  width: fit-content; max-width: 31em; margin-top: 1.1em; padding: .55em .85em;
  background: #090e0cbd; border-inline-start: 2px solid #e2f7c16e; line-height: 1.6;
}
.start-reading { margin-top: .9rem; }
.fiction-all { margin-top: .9rem; }
.covers {
  --cover-gap: clamp(.45rem, 1vw, .9rem);
  display: flex; gap: var(--cover-gap); overflow-x: auto; margin-top: clamp(.5rem, 1.8svh, 1.5rem); padding: .35rem 0;
  scrollbar-width: thin; scrollbar-color: #95a78b55 transparent;
}
.book {
  position: relative; flex: 0 0 min(calc((100% - 3 * var(--cover-gap)) / 4), 6rem, 11svh);
  min-width: 0; aspect-ratio: 2 / 3; border: 2px solid #acb9b48c; text-align: left; color: var(--ink);
}
.book img, .book .image-empty { width: 100%; height: 100%; object-fit: cover; }
.book[data-id="before-bloom"] img { object-position: 78% center; }
.book[data-id="evening-wind"] img { object-position: 33% center; }
.book span {
  position: absolute; inset: auto 0 0; padding: 1em .25rem .3rem; line-height: 1.2; font-size: var(--text-meta);
  background: linear-gradient(transparent, #090e0ce8 65%); overflow-wrap: anywhere;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.book.active { border-color: var(--green); }
.book.active::after {
  content: ""; position: absolute; inset: -2px -2px auto auto;
  border: .45rem solid transparent; border-top-color: var(--green); border-right-color: var(--green);
}
.book:focus-visible { outline-offset: -3px; }
.fiction-stage > .scroll-next, .archive-stage > .scroll-next, .glossary-stage > .scroll-next {
  position: absolute; inset: auto auto clamp(.35rem, 2.25svh, 2rem) 50%; translate: -50%;
}
.archive-stage { flex: 1; position: relative; min-height: calc(992 * var(--u)); isolation: isolate; background: #141b19; }
.archive-artwork {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size;
  --image-x: 50%; --image-y: 50%; --image-width: max(100cqw, calc(100cqh * 2048 / 993));
}
.archive-art, .archive-print-layout {
  position: absolute; left: var(--image-x); top: var(--image-y);
  translate: calc(-1 * var(--image-x)) calc(-1 * var(--image-y));
}
.archive-art { width: var(--image-width); aspect-ratio: 2048 / 993; }
.archive-print-layout {
  width: 1400px; aspect-ratio: 2048 / 993;
  scale: tan(atan2(var(--image-width), 1400px));
  transform-origin: var(--image-x) var(--image-y);
  pointer-events: none;
}
.archive-print { position: absolute; inset: 0 auto auto 0; overflow: hidden; transform-origin: 0 0; background: #222725; }
.archive-print img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.87) saturate(.8); }
.archive-duo-print img { object-position: 50% 33%; }
.archive-tian-print img { object-position: 57% 45%; }
.archive-ziyu-print img { object-position: 54% 14%; }
.archive-contact {
  display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
  gap: 2px; background: #665f52;
}
.archive-contact img { filter: brightness(.62) saturate(.55); object-position: 50% 38%; }
.archive-contact img:last-child { grid-column: span 2; }
.archive-film-print img { filter: brightness(.57) saturate(.65); object-position: 50% 27%; }
@media (min-width: 701px) and (max-aspect-ratio: 6/5) {
  .archive-artwork { --image-x: 54%; }
}
.archive-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #141b19c9 0%, #141b1980 20%, transparent 36%); }
.archive-all {
  position: absolute; inset: auto auto clamp(.35rem, 2.25svh, 2rem) 6.2%;
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
}
.archive-label {
  position: absolute; display: grid; justify-items: start; padding: .05em .2em .22em;
  background: linear-gradient(90deg, #101714e6, #101714ad 72%, #10171400);
  text-shadow: 0 1px 8px #080d0c;
  font-family: "Source Han Sans SC Bold", var(--font-zh);
  font-weight: 700; font-size: 2.8125vw; line-height: normal; white-space: nowrap;
}
.archive-label-en {
  margin-top: 1.25vw; font: 600 .833333vw/1.2 Arial, Helvetica, sans-serif; letter-spacing: .025em;
}
.archive-label::after {
  content: ""; width: 5.625vw; height: 1px; margin-top: 1.041667vw; background: currentColor;
}
.archive-label.duo { left: min(calc(75% - 2em), calc(100% - 6.7em)); top: 6.6%; }
.archive-label.tian { left: 8%; top: 50%; translate: 0 -50%; }
.archive-label > span:first-child { font-size: .8em; }
.archive-label.ziyu { right: 4.8%; bottom: clamp(2rem, 4.5svh, 4.5rem); }
.guide { background: radial-gradient(ellipse at 50% 43%, #28332a, #101714 73%); }
.timeline { background: #0d1512; }
.timeline-feed { flex: 1; }
.timeline-feed::after { content: ""; display: block; height: calc(var(--timeline-steps) * clamp(18rem, 68svh, 40rem)); }
.timeline-stage {
  position: sticky; top: var(--header); isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: clamp(5rem, 6vw, 7rem) minmax(0, 1fr); align-items: center;
  min-height: calc(100svh - var(--header)); gap: clamp(1rem, 1.5vw, 2.25rem);
  padding: clamp(1.5rem, 5svh, 4rem) clamp(1.5rem, 7.5vw, 10rem) 4rem;
  background: radial-gradient(ellipse at 44% 40%, #202d25, #0d1512 80%);
}
.timeline-backdrop {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none;
  object-fit: cover; object-position: 50% 34%; opacity: .23; filter: grayscale(1);
}
.timeline-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #0d151283, transparent 31%, #0d1512a8 82%),
    linear-gradient(0deg, #0d1512 3%, transparent 63%);
}
.timeline-empty { display: grid; place-items: center; }
.timeline-dates {
  display: flex; flex-direction: column; gap: clamp(.4rem, 2svh, 1.15rem);
  max-height: min(54svh, 30rem); padding-inline-end: .6rem; overflow: hidden auto;
  overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #8b9d8d88 transparent;
}
.timeline-dates button {
  display: grid; align-content: center; gap: .13rem;
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: .25rem .3rem; text-align: left; white-space: nowrap;
  color: #a0afa8; font-size: clamp(.9rem, 1.23vw, 1.25rem); transition: color .2s;
}
.timeline-rail-year { color: inherit; opacity: .8; font-size: .73em; line-height: 1; }
.timeline-dates button:hover { color: var(--ink); }
.timeline-dates button[aria-pressed="true"] { color: var(--green); }
.timeline-dates button[aria-pressed="true"] > span { opacity: 1; scale: 1.14; transform-origin: left center; }
.timeline-dates button:focus-visible { outline-offset: -2px; }
.timeline-entry { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: center; gap: clamp(1.5rem, 5vw, 6.5rem); }
.timeline-entry[hidden], .timeline-stage > .scroll-next[hidden] { display: none; }
.timeline-visual {
  --timeline-cut: polygon(17% 3%, 58% 0, 87% 13%, 100% 40%, 94% 75%, 73% 96%, 39% 100%, 8% 83%, 0 49%);
  position: relative; isolation: isolate; justify-self: center; width: min(100%, 35rem, 62svh); aspect-ratio: 1.05;
  filter: drop-shadow(0 1.75rem 2.1rem #060c15bd);
}
.timeline-visual::before, .timeline-visual::after { content: ""; position: absolute; clip-path: var(--timeline-cut); }
.timeline-visual::before {
  inset: 3% 0 0 1%; z-index: -1;
  background: conic-gradient(from 12deg at 52% 49%, #597c98, #1e3d55 22%, #10243a 47%, #152b41 69%, #36627e 88%, #597c98);
}
.timeline-photo, .timeline-visual::after { position: absolute; inset: 0 4% 5% 0; width: 96%; height: 95%; clip-path: var(--timeline-cut); }
.timeline-photo { object-fit: cover; object-position: 50% 36%; filter: brightness(.91) saturate(.78); }
.timeline-visual::after { background: linear-gradient(140deg, #7daed64d, transparent 35%, #0a132b4d 85%); pointer-events: none; }
.timeline-visual-contained .timeline-photo { object-fit: contain; object-position: center; padding: 0 12%; clip-path: none; filter: none; }
.timeline-visual-contained::after { content: none; }
.timeline-visual[href]:hover .timeline-photo { filter: none; }
.timeline-story { min-width: 0; container-type: inline-size; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin-bottom: clamp(.7rem, 2.4svh, 1.65rem); color: #a8baca; }
.timeline-meta time { font-size: clamp(.95rem, 1.2vw, 1.2rem); letter-spacing: .075em; white-space: nowrap; }
.timeline-kind { font-size: var(--text-meta); }
.timeline-entry.fan .timeline-kind { color: var(--green); }
.timeline-story h3 {
  font-size: min(clamp(1.9rem, 3.6vw, 4.25rem), max(1.4rem, 10.5cqi));
  font-weight: 500; line-height: 1.2; overflow-wrap: anywhere;
}
.timeline-story p { margin-top: 1.15em; max-width: 23em; font-size: var(--text-reading); line-height: 1.7; color: #b6c5d1; }
.timeline-stage > .scroll-next { position: absolute; inset: auto auto clamp(.35rem, 2.25svh, 2rem) 50%; translate: -50%; }
.timeline-watermark {
  z-index: 0; inset-block-end: clamp(3.6rem, 8svh, 7rem);
  color: #b7c4ba30; font-size: clamp(2.25rem, min(5.83vw, 9svh), 8rem);
}
@media (prefers-reduced-motion: no-preference) {
  .timeline-entry:not([hidden]) .timeline-backdrop { animation: timeline-backdrop-in 420ms ease-out; }
  .timeline-entry:not([hidden]) .timeline-visual { animation: timeline-art-in 400ms ease-out both; }
  .timeline-entry:not([hidden]) .timeline-story { animation: timeline-copy-in 340ms ease-out both; }
  @keyframes timeline-backdrop-in { from { opacity: 0; } }
  @keyframes timeline-art-in { from { opacity: .25; scale: .96; } }
  @keyframes timeline-copy-in { from { opacity: .3; translate: 0 .55rem; } }
}
.glossary { background: radial-gradient(ellipse at 68% 40%, #26332b, #0b1210 73%); }
.glossary-stage {
  position: relative; flex: 1; isolation: isolate; overflow: clip;
  display: grid; grid-template: 1fr auto / minmax(0, 1fr) minmax(0, 2fr);
  gap: .6rem clamp(1.25rem, 4vw, 5rem); align-items: center;
  padding: clamp(2rem, 8svh, 7rem) clamp(1.5rem, 7.5vw, 10rem) clamp(3.5rem, 10svh, 8rem);
}
.glossary-backdrop {
  position: absolute; inset: -10px; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, #0b1210b8, #14181442 54%, #0b12104d),
    linear-gradient(0deg, #0b1210 2%, transparent 48%, #0b121054),
    var(--glossary-background, none) center 42% / cover;
  filter: blur(8px);
  opacity: .43;
}
.glossary-stage::before, .glossary-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.glossary-stage::before {
  background: linear-gradient(90deg, #98ad9c 1px, transparent 1px), linear-gradient(#98ad9c 1px, transparent 1px);
  background-size: clamp(6rem, 11vw, 15rem) clamp(6rem, 11vw, 15rem);
  opacity: .06; mask-image: radial-gradient(ellipse at 65% 37%, #000 12%, transparent 74%);
}
.glossary-stage::after {
  background: radial-gradient(circle at 1px 1px, #abc4b4 1px, transparent 1.6px) 0 0 / 10px 10px;
  opacity: .19; mask-image: radial-gradient(ellipse at 13% 74%, #000, transparent 38%);
}
.glossary-art {
  grid-area: 1 / 2; width: min(100%, 52vw, 55rem); justify-self: center; margin: 0;
}
.glossary-art img {
  width: min(100%, 82svh); margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 88%, transparent),
    linear-gradient(0deg, transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
}
.glossary-art figcaption { margin-top: .55rem; text-align: right; color: var(--muted); font-size: var(--text-meta); }
.glossary-copy { grid-area: 1 / 1; }
.glossary-english { font-size: clamp(1.45rem, 2.604167vw, 3.4rem); line-height: 1; }
.glossary-copy h2 {
  margin-top: .14em; font: 700 clamp(2rem, 3.125vw, 4rem)/1.25 var(--font-zh);
}
.glossary-copy h2::after {
  content: ""; display: block; width: min(3.85em, 100%); height: 4px; background: var(--green); margin-top: .28em;
}
.glossary-summary { max-width: 25em; margin-top: 1.2em; font-size: var(--text-reading); line-height: 1.7; text-wrap: balance; }
.glossary-copy .glossary-detail-link { margin-top: .8rem; background: #505653; color: #fff; }
.glossary-copy .glossary-detail-link:hover { background: #636b66; }
.glossary-footer { grid-area: 2 / 1; justify-self: start; display: grid; justify-items: start; gap: .55rem; }
.glossary-watermark { position: static; color: #d6d9cb26; }
.guide-stage {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center;
  gap: clamp(1rem, 3.1svh, 2.5rem); padding: clamp(1.75rem, 4.5svh, 4rem) var(--header-inset);
}
.guide-book {
  --book-rule: #c6ac7856;
  --book-paper: #302b21;
  --book-grain: radial-gradient(ellipse at 19% 29%, #c3a57212 0 1px, transparent 2px),
    radial-gradient(ellipse at 63% 67%, #0003 0 1px, transparent 2px);
  width: min(100%, 76rem, max(42rem, calc((100svh - var(--header) - 12rem) * 1.8)));
  position: relative; isolation: isolate; perspective: 1800px; touch-action: pan-y pinch-zoom;
}
.guide-book::before {
  content: ""; position: absolute; inset: -6px -15px -19px; z-index: -2; border: 1px solid #625541;
  border-radius: 3% 3% 4% 4% / 3% 3% 5% 5%; background:
    linear-gradient(90deg, #181612 0, #44372a 2%, #211b13 46%, #17140e 50%, #211b13 54%, #3d3326 98%, #181612);
  box-shadow: 0 4px 2px #090c08, 0 1.9rem 3.6rem #070b08c9, inset 0 0 0 3px #12130fd6;
}
.guide-book::after {
  content: ""; position: absolute; inset: 3px -7px -11px; z-index: -1;
  border-radius: 2% 2% 4% 4% / 3% 3% 5% 5%;
  background: linear-gradient(90deg, #241e12a6, transparent 10%, transparent 43%, #211a10e6 50%, transparent 57%, transparent 90%, #241e12a6),
    repeating-linear-gradient(0deg, #675640 0 1px, #a08a66 1px 2px, #837152 2px 3px);
}
.guide-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 24rem; aspect-ratio: 1.8; }
.guide-spread[hidden] { display: none; }
.guide-page {
  position: relative; isolation: isolate; min-width: 0; overflow: hidden; display: grid; align-items: center;
  padding: clamp(1.6rem, 3.1vw, 3.5rem); color: var(--ink); background-color: var(--book-paper);
}
.guide-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 1.75rem #100c08a6;
}
.guide-photo-page {
  align-items: end; border-radius: 3% 12% 12% 3% / 2% 3% 4% 2%;
  background-image: linear-gradient(90deg, #100c08b5, #6e5c352a 17%, #78644030 67%, #100c08 100%),
    var(--book-grain);
  background-size: auto, 7px 9px, 11px 7px;
}
.guide-text-page {
  border-radius: 12% 3% 3% 12% / 3% 2% 2% 4%;
  background-image: linear-gradient(90deg, #100c08 0%, #211910b9 4%, transparent 17%, #806b442d 78%, #161109ad 100%),
    var(--book-grain);
  background-size: auto, 7px 9px, 11px 7px;
}
.guide-image {
  position: absolute; inset: 0; z-index: -1; height: 100%; object-fit: cover; object-position: 50% 42%;
  filter: saturate(.72) sepia(.18) brightness(.92); user-select: none;
  mask-image: linear-gradient(0deg, transparent 3%, #0005 16%, #000 42%, #000 90%, #000b),
    linear-gradient(90deg, #0009, #000 13%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.guide-image-left, .guide-image-right { width: 63%; }
.guide-image-left {
  right: auto; clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
  mask-image: linear-gradient(0deg, transparent 3%, #0005 16%, #000 42%);
}
.guide-image-right {
  left: auto; clip-path: polygon(41% 0, 100% 0, 100% 100%, 6% 100%);
}
.guide-photo-page h2 {
  position: relative; z-index: 1; width: fit-content; margin-bottom: .25em; padding-block: .3em .5em;
  border-bottom: 1px solid #c6ac788c; font-size: clamp(1.55rem, 2.65vw, 3rem);
  line-height: 1.22; overflow-wrap: anywhere; text-shadow: 0 2px 12px #121008;
}
.guide-chapter { display: grid; justify-items: start; align-content: center; padding-inline-start: clamp(0rem, 1.2vw, 1.2rem); }
.guide-chapter p {
  font-size: var(--text-reading); line-height: 1.8; overflow-wrap: anywhere;
}
.guide-chapter p + p { margin-top: .85em; }
.guide-modules { margin: 0; width: 100%; }
.guide-modules > div { padding-block: .45em; border-bottom: 1px solid var(--book-rule, #abb4ae47); }
.guide-modules dt { font-weight: 700; }
.guide-modules dt a { color: #e9d4a1; }
.guide-modules dd { margin: .2em 0 0; line-height: 1.45; }
.reading-text > .guide-modules > div { padding-block: .75em; }
.guide-read {
  display: inline-flex; align-items: center; gap: .85em; min-height: 44px;
  margin-top: clamp(.85rem, 2.2svh, 1.65rem); color: #e9d4a1; border-bottom: 1px solid currentColor;
}
.guide-links { display: flex; flex-wrap: wrap; gap: 0 1.05rem; margin-top: .6rem; }
.guide-links a { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.guide-chapter a:not(.action-link):hover { color: #fff1c5; }
.guide-corner {
  position: absolute; z-index: 3; bottom: 0; width: clamp(3.25rem, 5.6vw, 6rem); aspect-ratio: 1;
  touch-action: none; cursor: grab; color: #f1d2a4;
}
.guide-corner:active { cursor: grabbing; }
.guide-corner.next { right: 0; }
.guide-corner.previous { left: 0; }
.guide-corner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform-origin: right bottom;
  transition: transform .22s ease-out;
}
.guide-corner::before {
  background: linear-gradient(135deg, #2a2119 49%, #6f5736 50%, #bf9c6c 55%, #71593a 64%, #2b2117 95%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 42% 78%, 72% 46%);
  transform: scale(.65);
}
.guide-corner .icon-arrow { position: absolute; inset: auto 16% 16% auto; font-size: .9rem; }
.guide-corner.previous .icon-arrow { inset: auto auto 16% 16%; }
.guide-corner.previous::before { transform: scaleX(-1) scale(.65); transform-origin: center; inset: auto auto 0 0; width: 75%; height: 75%; }
.guide-corner:is(:hover, :focus-visible)::before { transform: scale(1); }
.guide-corner.previous:is(:hover, :focus-visible)::before { transform: scaleX(-1); }
.guide-corner[aria-disabled="true"] { visibility: hidden; }
.guide-book.is-turning .guide-corner { opacity: 0; }
.guide-stationary, .guide-leaf {
  position: absolute; inset-block: 0; width: 50%; pointer-events: none;
}
.guide-stationary { z-index: 1; }
.guide-stationary.forward, .guide-leaf.backward { left: 0; }
.guide-stationary.backward, .guide-leaf.forward { right: 0; }
.guide-leaf { z-index: 2; transform-style: preserve-3d; }
.guide-leaf.forward { transform-origin: left center; }
.guide-leaf.backward { transform-origin: right center; }
.guide-leaf > .guide-page { position: absolute; inset: 0; backface-visibility: hidden; }
.guide-leaf-back { transform: rotateY(180deg); }
.guide-controls { display: flex; align-items: center; justify-content: center; width: min(100%, 76rem); gap: clamp(.1rem, 1.5vw, 1.4rem); }
.guide-turn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; font-size: 1.4rem; color: #e8d9b6; }
.guide-turn[aria-disabled="true"] { opacity: .32; cursor: default; }
.guide-chapters { display: flex; flex-wrap: wrap; justify-content: center; min-width: 0; gap: .15rem clamp(.65rem, 2vw, 2rem); }
.guide-chapters button { min-height: 44px; color: #bdc3b9; padding-block: .5rem; border-bottom: 1px solid transparent; text-wrap: balance; }
.guide-chapters button[aria-pressed="true"] { color: #eddeb9; border-color: #cbb784; }
.image-empty { background: #202d27; min-height: 80px; }

.inner-page {
  width: min(100% - 3rem, 1370px); min-height: calc(100svh - var(--header));
  margin: 0 auto; padding: clamp(25px, 2.1vw, 58px) 0 clamp(32px, 3.2vw, 80px);
}
.inner-page h1 { font-size: var(--text-heading); font-weight: 760; line-height: 1.23; overflow-wrap: anywhere; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(16px, 1.35vw, 32px); }
.page-heading a, .page-heading button { flex-shrink: 0; white-space: nowrap; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 1.4rem; }
.section-note { color: var(--muted); margin-bottom: .9rem; line-height: 1.6; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.listing-card { border: 1px solid var(--soft-line); min-width: 0; }
.listing-card a { display: flex; flex-direction: column; height: 100%; }
.listing-image { aspect-ratio: 16 / 8; object-fit: cover; }
.listing-card a > div { display: grid; gap: .5em; padding: 1rem; }
.listing-card h2 { font-size: var(--text-item); line-height: 1.32; }
.listing-summary { color: var(--muted); line-height: 1.65; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.inner-page.archive-collection {
  --ink: #151a16; --muted: #555d57; --green: #315e45;
  width: 100%; padding-top: 0; color: var(--ink); color-scheme: light; background: #fff;
}
.archive-collection-hero {
  display: grid; grid-template-columns: min(100%, clamp(18rem, 62vw, 30rem)); justify-content: center;
  gap: clamp(1.15rem, 3.6vw, 1.875rem);
  padding: clamp(2.15rem, 8.45vw, 4.375rem) clamp(1rem, 5.8vw, 3rem);
  background-color: #253a32;
  background-image: linear-gradient(180deg, #10211d75, #10211d9c 55%, #10211dcd),
    var(--archive-collection-background, none);
  background-position: center, center 15%;
  background-size: cover;
}
.archive-collection-hero h1 {
  font-family: var(--font-zh); font-size: clamp(1.85rem, 5.31vw, 2.75rem); font-weight: 500;
  line-height: 1.5; text-align: center; color: #fff; text-shadow: 0 1px 10px #10211d;
}
.archive-collection-search {
  --archive-search-inset: .9375rem;
  display: flex; align-items: center;
  min-height: 46px; border: 1px solid #fff9; border-radius: .5rem; background: #fffffff2;
}
.archive-collection-search .magnifier { font-size: .875rem; }
.archive-collection-search input { flex: 1; min-width: 0; border: 0; padding: .6rem .65rem .6rem 0; background: transparent; }
.archive-collection-search input::placeholder { color: var(--muted); }
.archive-collection-search button {
  align-self: stretch; display: grid; place-items: center;
  flex: 0 0 calc(2 * var(--archive-search-inset) + .875rem);
  border-start-start-radius: inherit; border-end-start-radius: inherit;
}
.archive-collection-search button:focus-visible, .archive-collection-search input:focus-visible { outline-offset: -4px; }
.archive-search-type { position: relative; flex: none; border-inline-start: 1px solid #b3b7b4; }
.archive-search-type .icon-arrow {
  position: absolute; inset-inline-end: var(--archive-search-inset); inset-block-start: 50%;
  translate: 0 -50%; font-size: .75rem;
}
.archive-search-type select {
  display: block; appearance: none; padding: .45rem calc(var(--archive-search-inset) + .85rem) .45rem .85rem;
  border: 0; background: transparent; color: inherit;
}
.archive-collection-owners, .archive-collection-types {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .15rem clamp(.25rem, 2vw, 1.25rem); padding-inline: .75rem; font-size: .875rem;
}
.archive-collection-owners { min-height: 61px; }
.archive-collection-owners a, .archive-collection-types a {
  display: inline-flex; align-items: center; white-space: nowrap; text-align: center;
}
.archive-collection-owners a { min-height: 32px; padding: .35rem clamp(.45rem, 1.7vw, 1rem); }
.archive-collection-owners a[aria-current] {
  text-decoration: underline .16em var(--green);
  text-decoration-skip-ink: none;
  text-underline-offset: .45em;
}
.archive-collection-types { min-height: 64px; padding-block: .55rem; background: #f4f4f4; }
.archive-collection-types a { min-height: 32px; padding: .35rem clamp(.45rem, 1.6vw, 1.3rem); border-radius: .26rem; }
.archive-collection-types a[aria-current] { background: #666; color: #fff; }
.archive-category-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-category-photo, .archive-photo { position: relative; display: block; isolation: isolate; overflow: hidden; background: #243229; color: #fff; }
.archive-category-photo { height: clamp(9rem, 38.6vw, 20rem); }
.archive-category-photo img, .archive-photo-image { width: 100%; height: 100%; object-fit: cover; }
.archive-category-photo img { object-position: center 36%; }
.archive-category-photo[data-owner="ziyu"] img { object-position: center 18%; }
.archive-category-photo::after, .archive-photo::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(transparent 30%, #101714e6);
}
.archive-category-photo span, .archive-photo-caption {
  position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(.5rem, 1.8vw, 1.3rem);
}
.archive-category-photo span { font-weight: 400; font-size: 1rem; }
.archive-category-photo:hover::after { background-color: #0003; }
.archive-category-photo:hover, .archive-photo:hover { color: #fff; }
.archive-photo:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.archive-category-photo:focus-visible, .archive-photo:focus-visible { outline-offset: -4px; outline-color: #e2f7c1; z-index: 3; }
.archive-collection-results { padding: clamp(2rem, 7.7vw, 4rem) clamp(.6rem, 1.25vw, 1rem) 0; }
.archive-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin: 0 clamp(0rem, 2vw, 1rem) clamp(1.3rem, 4vw, 2.5rem); }
.archive-results-heading h2 { font-size: clamp(1.6rem, 5.3vw, 2.75rem); font-weight: 400; }
.archive-results-heading p, .archive-event-filter { color: var(--muted); }
.archive-event-filter { margin-bottom: .85rem; }
.archive-event-filter a { margin-inline-start: .55em; color: var(--green); text-decoration: underline; }
.archive-photo-wall {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.archive-photo-wall > li {
  flex: 0 0 var(--archive-photo-width, 100%);
  min-width: 0; max-width: 100%;
}
.archive-photo { height: var(--archive-photo-height, 180px); }
.archive-photo::after {
  background: linear-gradient(transparent 35%, #1118 70%, #111e);
}
.archive-photo-type { position: absolute; z-index: 1; top: .65rem; right: .65rem; padding: .1rem .4rem; border-radius: .2rem; background: #080808a6; font-size: var(--text-meta); }
.archive-photo-caption { padding: clamp(.55rem, 1.05vw, 1rem); }
.archive-photo-caption time { display: block; font-size: var(--text-meta); color: #eeefed; margin-bottom: .15rem; }
.archive-photo-caption h3 { font-size: clamp(.85rem, 1.4vw, 1.125rem); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.archive-photo .image-empty { background: #29392f; }
@media (max-width: 480px) {
  .archive-category-photo span { font-size: var(--text-meta); }
}
body:has(.analysis-collection) { background: #fff; }
.analysis-collection {
  color-scheme: light;
  --ink: #262a27;
  --analysis-heading-ink: #202522;
  --muted: #526259;
  --green: #315e45;
  --line: #dce3d8;
  --soft-line: #d6dfd4;
  color: var(--ink);
}

.inner-page.analysis-collection { max-width: 80rem; padding-top: clamp(1.05rem, 2.2vw, 2rem); }
.analysis-collection .back-link {
  display: inline-flex; align-items: center; gap: .6em; min-height: 32px;
  margin-bottom: clamp(.65rem, 1.4vw, 1.1rem);
}
.analysis-browse-intro {
  display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2.5vw, 2rem);
  max-width: 35rem; margin: .35rem auto clamp(1.15rem, 2.6vh, 1.75rem);
}
.analysis-browse-emblem {
  flex: none; width: clamp(4rem, 13vw, 8rem); aspect-ratio: 1; object-fit: contain;
}
.analysis-browse-intro p {
  max-width: 24em; color: var(--ink); font-size: var(--text-reading); line-height: 1.6;
}
.analysis-browse-controls {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .65rem 1.25rem; margin-bottom: clamp(1rem, 2vw, 1.75rem);
}
.analysis-browse-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.analysis-browse-tabs a {
  display: inline-grid; align-items: center; min-height: 40px; padding: .4em .75em;
  border: 1px solid var(--soft-line); border-radius: 5px; background: #fff;
}
.analysis-collection .analysis-browse-tabs a[aria-current="page"] { color: #fff; border-color: var(--green); }
.analysis-browse-search {
  display: flex; width: min(100%, 19rem); border: 1px solid var(--soft-line); border-radius: 5px; background: #fff;
}
.analysis-browse-search input {
  flex: 1; min-width: 0; min-height: 40px; padding: .48rem .7rem; border: 0; border-radius: inherit; background: transparent;
}
.analysis-browse-search input::placeholder { color: var(--muted); }
.analysis-browse-search button { flex: 0 0 2.55rem; color: var(--green); }
.analysis-browse-results { margin-bottom: .9rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.analysis-browse-results a { margin-inline-start: .75em; text-decoration: underline; text-underline-offset: .2em; }
.analysis-browse-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4.95vw, 2.5rem); list-style: none; margin: 0; padding: 0;
}
.analysis-browse-list article { height: 100%; }
.analysis-browse-card {
  display: block; height: 100%; min-width: 0; background: #fff;
}
.analysis-browse-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e5eae1; }
.analysis-browse-card h2 {
  padding: clamp(.85rem, 1.5vw, 1.25rem) clamp(.65rem, 1.6vw, 1.5rem);
  font-size: clamp(1rem, calc(.8rem + .4vw), 1.45rem); font-weight: 550; line-height: 1.4;
  text-align: center; color: var(--analysis-heading-ink); overflow-wrap: anywhere;
}
.analysis-browse-card:hover h2 { color: var(--green); text-decoration: underline; text-underline-offset: .23em; }

.inner-page.analysis-detail { max-width: 52.625rem; }
.analysis-case-heading { margin: .5rem 0 clamp(1rem, 2.4vw, 1.8rem); }
.analysis-case-heading h1 {
  margin-bottom: .45em; font-size: clamp(2rem, 6.2vw, 3.75rem); font-weight: 600;
  text-align: center; text-wrap: balance; color: var(--analysis-heading-ink);
}
.analysis-case-episode { color: var(--muted); font-size: var(--text-ui); font-weight: 650; }
.analysis-case-player { margin: 0; }
.analysis-case-player iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #161a18;
}
.analysis-detail-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.analysis-case-player figcaption { margin-top: .6rem; font-size: var(--text-ui); }
.analysis-case-link { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.analysis-case-link:hover { color: #1a402b; }
.analysis-case-source { margin-top: 1.25rem; font-size: var(--text-reading); font-weight: 650; }
.analysis-case-intro, .analysis-case-reading p {
  font-size: clamp(1rem, calc(.9rem + .4vw), 1.2rem); line-height: 1.8;
}
.analysis-case-intro { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.analysis-case-section { margin-top: clamp(2rem, 4vw, 3.25rem); }
.analysis-case-section h2 {
  margin-bottom: .8rem; color: var(--analysis-heading-ink); font-size: var(--text-heading); font-weight: 650;
}
.analysis-case-reading p + p { margin-top: 1em; }
.analysis-rewatch-guide { margin-bottom: 1.25rem; }
.analysis-rewatch-guide p + p { margin-top: .35em; }
.analysis-rewatch-cue + .analysis-rewatch-cue { margin-top: 1rem; }
.analysis-rewatch-cue h3 { margin-bottom: .25rem; font-size: var(--text-item); }
.analysis-rewatch-times {
  display: flex; flex-wrap: wrap; gap: .15rem 1rem;
  list-style: none; margin: 0 0 .35rem; padding: 0;
  font-size: var(--text-ui); color: var(--muted);
}
.analysis-version + .analysis-version { margin-top: 1.35rem; }
.analysis-version h3 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .7rem;
  color: var(--analysis-heading-ink); font-size: var(--text-item);
}
.analysis-version h3 a { font-size: var(--text-ui); font-weight: 500; }
.analysis-version ul { list-style: none; margin: .45rem 0 0; padding: 0; }
.analysis-version li {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: .65rem;
  padding: .22em 0; line-height: 1.65; font-size: var(--text-reading);
}
.analysis-timecode { justify-self: start; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analysis-case-resources { margin: 0; padding-inline-start: 1.25em; line-height: 1.7; font-size: var(--text-reading); }
@media (max-width: 1024px) {
  .analysis-browse-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .analysis-browse-list { grid-template-columns: minmax(0, 1fr); }
  .analysis-browse-search { width: 100%; }
}
.inner-page:is(.fiction-shelf, .fiction-book-page, .author-page, .dictionary-page, .search-page) {
  color-scheme: light; width: 100%; min-height: calc(100svh - var(--header));
  --ink: #26312d; --muted: #535d56; --green: #375d49; --soft-line: #d9dbd0;
  color: var(--ink); background: #faf9f5;
}
.inner-page:is(.fiction-shelf, .fiction-book-page, .author-page) { padding-inline: clamp(1rem, 3.7vw, 4rem); }
.inner-page.fiction-shelf { padding-top: .65rem; }
.fiction-shelf-inner { max-width: 70rem; margin-inline: auto; }
.fiction-shelf-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem clamp(.5rem, 1vw, 1rem); padding-block: .25rem .75rem;
}
.fiction-shelf-tabs a {
  display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: .35rem .68rem;
  border-radius: 2rem; color: var(--ink); font-weight: 700;
}
.fiction-shelf-tabs a[aria-current] { background: var(--green); color: #fff; }
.fiction-shelf-tabs a:hover:not([aria-current]) {
  color: var(--green); background: #e8ede3;
}
.fiction-feature {
  position: relative; margin-block: clamp(.5rem, 1.5vw, 1.25rem) clamp(2rem, 5vw, 3.9rem);
}
.fiction-feature-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 3);
  gap: .5rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.fiction-feature-track > li { min-width: 0; scroll-snap-align: start; }
.fiction-feature-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 7 / 8; min-height: 13rem; padding: 0 9% 9%;
  border-radius: clamp(.65rem, 1.6vw, 1.3rem); background: #26312d; color: #fff;
}
.fiction-feature-card:is(:hover, :focus-visible) { color: #fff; }
.fiction-feature-card:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.fiction-feature-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%; z-index: -2;
}
.fiction-feature-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(transparent 28%, #101713c9 74%, #101713);
}
.fiction-feature-copy { min-width: 0; text-align: center; }
.fiction-feature-copy h2 { font-size: clamp(1rem, 2.05vw, 1.65rem); line-height: 1.25; overflow-wrap: anywhere; }
.fiction-feature-copy p {
  margin-top: .45rem; font-size: var(--text-ui); line-height: 1.55; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.fiction-feature > button {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  display: grid; place-items: center; width: 2.45rem; aspect-ratio: 1;
  border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 .12rem .45rem #26312d23;
}
.fiction-feature-prev { left: max(-1.2rem, -3vw); }
.fiction-feature-next { right: max(-1.2rem, -3vw); }
@media (min-width: 701px) {
  .fiction-feature:has(.fiction-feature-track > :last-child:nth-child(-n + 3)) > button { display: none; }
}
@media (max-width: 700px) {
  .fiction-feature-track { grid-auto-columns: min(78%, 22rem); }
}
.fiction-shelf-heading { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .9rem; }
.fiction-shelf-heading h2 { font-size: clamp(1.125rem, 2vw, 1.45rem); }
.fiction-shelf-count { margin-inline-start: auto; color: var(--muted); font-size: var(--text-meta); }
.fiction-shelf-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.7rem, 1.25vw, 1rem); margin: 0; padding: 0; list-style: none;
}
.fiction-shelf-book { display: grid; align-content: start; gap: .3rem; }
.fiction-shelf-artwork { display: grid; min-width: 0; }
.fiction-shelf-artwork > * { grid-area: 1 / 1; }
.fiction-shelf-featured {
  align-self: start;
  justify-self: end;
  z-index: 1;
  margin: .4rem;
  padding: .18rem .45rem;
  border-radius: .25rem;
  background: #234936;
  color: #f0f7e6;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}
.fiction-shelf-cover, .fiction-book-cover {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .3rem; background: #e5e7de;
}
.fiction-shelf-book h3 { margin-top: .15rem; font-size: var(--text-item); line-height: 1.35; overflow-wrap: anywhere; }
.fiction-shelf-book:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.fiction-shelf-meta { color: var(--muted); line-height: 1.55; font-size: var(--text-meta); overflow-wrap: anywhere; }
@media (max-width: 950px) { .fiction-shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fiction-shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fiction-book-inner, .fiction-reader-inner { max-width: 54rem; margin-inline: auto; }
.fiction-book-back { display: inline-flex; gap: .55em; align-items: center; color: var(--muted); min-height: 32px; margin-bottom: .8rem; }
.fiction-book-intro {
  display: grid; grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
  gap: clamp(.9rem, 3.6vw, 2.5rem); align-items: start;
}
.fiction-book-cover { box-shadow: 0 .1rem .45rem #26312d22; }
.fiction-book-copy h1, .fiction-reader-inner h1 { margin-bottom: .4rem; }
.fiction-book-meta {
  display: grid; gap: .25rem; margin: .6rem 0 0;
  color: var(--muted); font-size: var(--text-meta); line-height: 1.55;
}
.fiction-book-meta > div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: .5em; }
.fiction-book-meta dt { color: var(--ink); font-weight: 700; }
.fiction-book-meta dd { margin: 0; overflow-wrap: anywhere; }
.fiction-book-author, .fiction-book-rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .8rem; }
.fiction-author-link { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.author-inner { max-width: 60rem; margin-inline: auto; }
.author-profile {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem;
  padding: clamp(.7rem, 1.5vw, 1rem) clamp(.85rem, 2vw, 1.35rem);
  border: .25rem solid #eaeae1; background: #fffefa;
}
.author-profile h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.author-profile .fiction-author-link { white-space: nowrap; }
.author-works-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; margin-top: clamp(1.3rem, 4vw, 2.4rem);
}
.author-works-heading h2 { font-size: var(--text-item); }
.author-works-heading h2 span { margin-inline-start: .45em; color: var(--muted); font-size: var(--text-meta); font-weight: 400; }
.author-works-heading nav { display: flex; flex-wrap: wrap; gap: .75rem; font-size: var(--text-meta); }
.author-works-heading nav [aria-current] { color: var(--green); font-weight: 700; }
.author-works { margin: .7rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--soft-line); }
.author-works > li { border-bottom: 1px solid var(--soft-line); }
.author-work {
  display: grid; grid-template-columns: clamp(4.5rem, 13vw, 7.5rem) minmax(0, 1fr);
  align-items: start; gap: clamp(.8rem, 3vw, 1.35rem); padding-block: .9rem;
}
.author-work-copy { display: grid; gap: .3rem; overflow-wrap: anywhere; }
.author-work-copy h3 { font-size: var(--text-item); line-height: 1.35; }
.author-work:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.author-work-cover { aspect-ratio: 4 / 3; object-fit: cover; border-radius: .25rem; background: #eaeae1; }
.author-work-fiction .author-work-cover { aspect-ratio: 2 / 3; }
.author-work-summary {
  color: var(--muted); line-height: 1.55; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.fiction-rating-trigger {
  color: var(--green);
  font-size: var(--text-meta); font-weight: 700; line-height: 1.5;
  text-decoration: underline; text-underline-offset: .18em;
}
.fiction-rating-dialog {
  width: min(22rem, calc(100% - 2rem)); padding: clamp(1rem, 4vw, 1.6rem);
  border: 1px solid var(--soft-line); border-radius: .6rem;
  background: #faf9f5; color: var(--ink); text-align: center;
  box-shadow: 0 .6rem 2.4rem #15261c40;
}
.fiction-rating-dialog::backdrop { background: #141d19a6; }
.fiction-rating-dialog h2 { font-size: var(--text-item); overflow-wrap: anywhere; }
.fiction-rating-stars {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem;
  min-width: 0; margin: .65rem 0 0; padding: 0; border: 0;
}
.fiction-rating-stars button {
  display: grid; place-items: center; min-width: 2.35rem; min-height: 2.65rem;
  border-radius: .25rem; color: #666e65; font: 1.65rem/1 system-ui, sans-serif;
}
.fiction-rating-stars button:is(:hover, :focus-visible, :has(~ button:is(:hover, :focus-visible))):not(:disabled) {
  color: #976219;
}
.fiction-rating-message, .fiction-rating-error { color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.fiction-rating-error:not(:empty) { margin-top: .35rem; }
.fiction-rating-cancel { margin-top: .65rem; padding: .35rem .65rem; color: var(--green); }
.fiction-book-description { margin-top: clamp(.8rem, 2.5vw, 1.45rem); }
.fiction-book-description h2 { font-size: var(--text-ui); margin-bottom: .35rem; }
.fiction-book-description p { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.fiction-book-read {
  display: inline-flex; min-height: 42px; align-items: center; gap: .8em; margin-top: 1rem; padding-inline: 1rem;
  border-radius: .28rem; background: var(--green); color: #fff; font-weight: 700;
}
.fiction-book-read:hover { color: #fff; background: #264636; }
.fiction-book-contents { margin-top: clamp(2rem, 4vw, 3rem); }
.fiction-book-contents ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--soft-line); }
.fiction-book-contents li { border-bottom: 1px solid var(--soft-line); }
.fiction-book-contents li a {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .8rem .65rem; min-height: 52px; overflow-wrap: anywhere;
}
.fiction-book-contents li a:hover { background: #eef1e8; }
.fiction-chapter-action { display: inline-flex; align-items: center; gap: .45em; flex: none; color: var(--green); }
.fiction-reader-inner { max-width: 43rem; }
.fiction-reader-inner .reading-text { margin-top: 1.5rem; line-height: 1.9; }
.fiction-reader-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--soft-line); padding-top: 1rem; }
.fiction-reader-nav a { min-height: 40px; display: inline-flex; align-items: center; gap: .5em; color: var(--green); }
.inner-page.dictionary-page {
  padding: 0 0 clamp(3.5rem, 7vw, 6rem);
  background-image: radial-gradient(#375d4912 .6px, transparent .6px);
  background-position: center top;
  background-size: 24px 24px;
  font-family: var(--font-zh);
}
.dictionary-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(10.5rem, 24vw, 16rem);
  padding: 2.25rem 1rem;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(120deg, var(--background), #253a32);
  color: var(--nav-ink);
  text-align: center;
}
.dictionary-hero-copy { position: relative; }
.inner-page .dictionary-hero h1 {
  font-size: clamp(2.1rem, 5.8vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: .035em;
  white-space: nowrap;
}
.dictionary-hero h1 span { color: #e2f7c1; }
.dictionary-intro {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  max-width: 33rem;
  color: #c6cfca;
  font-size: clamp(.9rem, 1.35vw, 1.05rem);
  line-height: 1.8;
  text-wrap: balance;
}
.dictionary-cover-terms {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: 100rem;
  margin-inline: auto;
  color: inherit;
  opacity: .055;
  pointer-events: none;
  font-size: clamp(1.15rem, 4.2vw, 3.45rem);
  font-weight: 700;
  line-height: 1.2;
}
.dictionary-cover-terms span {
  position: absolute;
  max-width: 28%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dictionary-cover-terms span:nth-child(1) { top: 16%; left: 9%; }
.dictionary-cover-terms span:nth-child(2) { top: 21%; right: 8%; }
.dictionary-cover-terms span:nth-child(3) { bottom: 17%; left: 15%; }
.dictionary-cover-terms span:nth-child(4) { bottom: 19%; right: 10%; }
@media (max-width: 700px) {
  .dictionary-cover-terms span:nth-child(3) { left: 5%; bottom: 7%; }
  .dictionary-cover-terms span:nth-child(4) { right: 5%; bottom: 7%; }
}
.dictionary-inner { width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 76rem); margin-inline: auto; }
.dictionary-results { padding-top: clamp(1rem, 2.6vw, 2rem); }
.dictionary-entries { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.dictionary-entry > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(.6rem, 2.3vw, 1.85rem);
  min-height: 6.3rem;
  padding: .95rem clamp(1rem, 2.4vw, 1.8rem);
  border: 1px solid var(--soft-line);
  border-radius: 1rem;
  background: #fff;
  overflow-wrap: anywhere;
  transition: border-color .18s, box-shadow .18s;
}
@media (min-width: 701px) {
  .dictionary-entry > a:has(> .dictionary-entry-labels) { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.dictionary-entry > a:hover {
  border-color: #9eafa2;
  color: inherit;
  box-shadow: 0 4px 14px #15261c12;
}
.dictionary-entry-title { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.3; }
.dictionary-entry-summary { margin-top: .3rem; color: var(--muted); line-height: 1.65; }
.dictionary-entry-labels { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.dictionary-entry-tag { padding: .25rem .64rem; border-radius: 999px; background: #e8ede3; color: var(--green); }
.dictionary-entry .icon-arrow { color: var(--muted); }
.dictionary-entry > a:hover .icon-arrow { color: var(--green); }
.dictionary-page .empty { padding: 1.4rem; border: 1px dashed var(--soft-line); border-radius: .75rem; background: #fff; color: var(--muted); }
.dictionary-back {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: clamp(.8rem, 2.1vw, 1.4rem);
  min-height: 32px;
  color: var(--muted);
  font-weight: 650;
}
.dictionary-back .icon-arrow { color: var(--green); }
.dictionary-back:hover, .dictionary-source-links a:hover, .dictionary-related a:hover { color: var(--green); }
.dictionary-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 26%);
  align-items: start;
  gap: clamp(1.2rem, 3.2vw, 2.55rem);
  padding-top: clamp(1.1rem, 3.1vw, 2.55rem);
}
.dictionary-detail-single { grid-template-columns: minmax(0, 1fr); }
.dictionary-detail-main { display: grid; gap: clamp(.85rem, 1.8vw, 1.35rem); }
.dictionary-panel {
  padding: clamp(1.1rem, 3vw, 2.25rem);
  border: 1px solid var(--soft-line);
  border-radius: 1.1rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.dictionary-term-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.3rem; }
.inner-page .dictionary-term-heading h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
  line-height: 1.08;
}
.dictionary-pronunciation {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .99rem;
  line-height: 1.4;
  letter-spacing: .03em;
}
.dictionary-detail-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; font-size: .8rem; }
.dictionary-aliases { margin-top: .65rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.dictionary-aliases span { margin-inline-start: .35rem; color: var(--ink); }
.dictionary-term-actions { text-align: right; }
.dictionary-term-actions button {
  min-height: 2.65rem;
  padding: .4rem .8rem;
  border: 1px solid var(--soft-line);
  border-radius: .55rem;
  color: var(--muted);
}
.dictionary-term-actions button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.dictionary-toast {
  position: fixed; z-index: 30; left: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 2rem); padding: .65rem 1rem; border-radius: 999px; background: var(--background); color: var(--nav-ink);
  pointer-events: none; box-shadow: 0 .4rem 1.15rem #15261c2b;
}
.dictionary-toast:empty { padding: 0; box-shadow: none; }
.dictionary-panel h2 {
  padding-left: .62rem;
  border-left: 3px solid var(--green);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}
.dictionary-detail-main section h2 { margin-bottom: 1.05rem; }
.dictionary-detail-main section p { color: var(--muted); font-size: var(--text-reading); line-height: 1.8; }
.dictionary-detail-section p + p { margin-top: .65em; }
.dictionary-detail-section ol { margin: .7rem 0 0; padding-inline-start: 1.5em; color: var(--muted); line-height: 1.75; }
.dictionary-detail-section li + li { margin-top: .4rem; }
.dictionary-detail-section a { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.dictionary-definition mark { padding: 0 .15em; background: #e2f7c1; color: var(--ink); }
.dictionary-editor-text { margin-top: 1rem; line-height: 1.75; }
.dictionary-origin {
  padding: .9rem clamp(.8rem, 2vw, 1.4rem);
  border-left: 3px solid var(--green);
  border-radius: .45rem;
  background: #f3f5ef;
}
.dictionary-origin p + p { margin-top: .6rem; }
.dictionary-source-links, .dictionary-examples, .dictionary-related ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.dictionary-origin + .dictionary-source-links { margin-top: .85rem; }
.dictionary-source-links { color: var(--green); }
.dictionary-examples li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .75rem;
  padding: .6rem .8rem;
  border: 1px solid var(--soft-line);
  border-radius: .45rem;
  background: #f3f5ef;
}
.dictionary-examples li > span { color: var(--green); font-size: .8rem; }
.dictionary-examples strong { color: var(--green); }
.dictionary-related { padding: clamp(1.05rem, 2vw, 1.55rem); }
.dictionary-related ul { gap: 0; margin-top: .75rem; }
.dictionary-related li + li { border-top: 1px solid var(--soft-line); }
.dictionary-related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem .6rem;
  padding: .7rem .2rem;
}
.dictionary-related small { grid-column: 1; color: var(--muted); }
.dictionary-related .icon-arrow { grid-row: 1 / span 2; grid-column: 2; }
@media (max-width: 700px) {
  .dictionary-entry > a { row-gap: .55rem; }
  .dictionary-entry-labels { grid-column: 1; grid-row: 2; }
  .dictionary-entry .icon-arrow { grid-column: 2; grid-row: 1; }
  .dictionary-entry-labels + .icon-arrow { grid-row: 1 / span 2; }
  .dictionary-detail-layout { grid-template-columns: minmax(0, 1fr); }
}
.inner-page.search-page {
  padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1rem, 5vw, 4rem) 4rem;
  font-family: var(--font-zh);
}
.search-page-inner, .site-search { width: min(100%, 66rem); margin-inline: auto; }
.site-search {
  --search-radius: 5px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: clamp(3.3rem, 6vw, 5.3rem);
}
.search-field {
  display: flex; align-items: center; min-width: 0; padding-inline: clamp(.8rem, 1.8vw, 1.6rem);
  gap: clamp(.7rem, 1.5vw, 1.4rem); border: 1px solid #92a79ba6; border-right: 0;
  border-radius: var(--search-radius) 0 0 var(--search-radius);
  background: #101a17e8; color: var(--ink); font-size: clamp(1.05rem, 1.65vw, 1.6rem);
}
.search-field:focus-within { border-color: var(--green); color: var(--green); }
.search-field input { min-width: 0; width: 100%; align-self: stretch; background: transparent; border: 0; outline: none; color: var(--ink); }
.search-field input::placeholder { color: #a4b2a9; }
.site-search .button-primary {
  min-width: 0; justify-self: stretch; gap: clamp(.35rem, 1vw, 1rem); border-radius: 0 var(--search-radius) var(--search-radius) 0;
  padding: .6em clamp(.8rem, 2.4vw, 2.25rem); font-size: clamp(.9rem, 1.45vw, 1.25rem);
}
.search-page .site-search { min-height: 3.25rem; }
.search-page .search-field {
  background: #fff; color: var(--green);
  border-color: var(--soft-line); font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.search-page .search-field:focus-within { border-color: var(--green); }
.search-page .search-field input::placeholder { color: var(--muted); }
.search-page .site-search .button-primary { color: #fff; }
.search-page .site-search .button-primary:hover:not(:disabled) { background: #264636; color: #fff; }
.search-results { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.search-group { padding: 1.2rem 0; }
.search-group > h2 { font-size: var(--text-card); margin-bottom: .7em; }
.search-group > a { margin-top: 1rem; }
.search-results .action-link { color: #fff; }
.search-results :is(.action-link:hover, a:hover .action-link) { background: #264636; color: #fff; }
.search-results .listing-card {
  overflow-wrap: anywhere; background: #fff; border-radius: .5rem;
}
.search-results .listing-image { border-radius: .45rem .45rem 0 0; }
.search-results .listing-card a:hover { color: var(--green); }
.site-header:has(.header-search:not([hidden])) > :is(.brand, .site-nav, .header-actions) {
  visibility: hidden;
}
.header-search {
  position: absolute; inset: 0 0 auto;
  background: #101714df;
  backdrop-filter: blur(14px);
  box-shadow: 0 .75rem 2rem #0004;
}
.header-search-bar {
  position: relative; display: grid; align-items: center; height: var(--header);
  padding-inline: calc(var(--header-inset) + 2.75rem);
}
.header-search .site-search {
  height: clamp(2.25rem, calc(var(--header) - 1.25rem), 3.6rem);
  min-height: 0;
}
.header-search .search-field { background: transparent; }
/* Clip the browser's autofill tint without covering the translucent header. */
.header-search .search-field input { background-clip: text; }
.header-search .search-field input:is(:autofill, :-webkit-autofill) { -webkit-text-fill-color: var(--ink); }
.header-search .search-field input::placeholder {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(.875rem, 1.15vw, 1.125rem);
  font-weight: 400;
}
.header-search .site-search .button-primary { min-height: 0; padding-block: 0; }
.header-search-close {
  position: absolute; inset-inline-end: var(--header-inset); top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
}
.header-search-close::before, .header-search-close::after {
  content: ""; grid-area: 1 / 1; width: 1.2rem; height: 2px; background: currentColor;
  rotate: 45deg;
}
.header-search-close::after { rotate: -45deg; }
@media (max-width: 700px) {
  .header-search-bar { padding-inline-start: var(--header-inset); }
}
.reader { max-width: 900px; margin-inline: auto; }
.reader .page-heading { margin-bottom: .65rem; }
.reader-meta, .sample-note { display: inline-block; font-size: var(--text-meta); }
.reader-meta { color: var(--green); }
.sample-note { color: var(--muted); }
.reader-meta + .sample-note { margin-inline-start: .85em; }
.reader-summary { color: var(--muted); line-height: 1.65; margin-top: .65rem; }
.reader-cover { max-height: min(46vw, 25rem); object-fit: cover; object-position: center 40%; margin-top: clamp(1.2rem, 1.5vw, 1.65rem); }
.reader-cover-figure { margin: 0; }
.reader-cover-figure .reader-cover { object-fit: contain; background: #f2efe7; }
.reader-cover-figure figcaption { margin-top: .5rem; color: var(--muted); font-size: var(--text-meta); }
.reading-text { line-height: 1.8; font-size: var(--text-reading); max-width: 52em; overflow-wrap: anywhere; }
.reading-text p { margin-block: .8em; }
.reader .reading-text { max-width: 46em; margin-block: clamp(1.5rem, 2.1vw, 2.5rem); }
.inline-image { max-height: 540px; width: auto; max-width: 100%; object-fit: contain; margin-block: 1rem; }
.reader-sources { border-top: 1px solid var(--soft-line); margin-top: 2rem; padding-top: 1.5rem; display: grid; gap: .7rem; }
.reader-sources h2 { font-size: var(--text-item); }
.inner-page.paper-page {
  color-scheme: light;
  --ink: #26302b;
  --muted: #566058;
  --green: #375d49;
  --soft-line: #c9c8bb;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 4.5rem) clamp(1.25rem, 7vw, 7rem) clamp(3rem, 8vw, 7rem);
  background: var(--paper-background);
  color: var(--ink);
  font-family: var(--font-zh);
}
#site:has(> .paper-page) { --paper-background: #f2efe7; }
.inner-page.research-collection {
  min-height: calc(100svh - var(--header));
  --research-gutter: clamp(1.25rem, 6vw, 7rem);
  --research-width: 83rem;
  padding-top: clamp(.85rem, 1.5vw, 1.4rem); padding-inline: 0;
}
.research-collection.research-filtered { --research-width: 78rem; }
.research-collection-inner {
  width: min(calc(100% - 2 * var(--research-gutter)), var(--research-width)); margin-inline: auto;
}
.research-filter-strip { border-bottom: 4px solid var(--ink); margin-bottom: 1rem; }
.research-filter-bar {
  display: flex; align-items: center; gap: 0 clamp(1.15rem, 3vw, 3.4rem); flex-wrap: wrap;
  padding-bottom: .55rem;
}
.research-filter-return {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  margin-inline-start: auto; padding-inline: .15rem; white-space: nowrap; font-weight: 700;
}
.research-filter-return span { text-decoration: underline; text-underline-offset: .22em; }
.research-search {
  display: flex; align-items: stretch; width: clamp(9rem, 22vw, 18rem); min-height: 40px;
  margin-inline-start: auto; background: #faf9f4; border: 1px solid #8e9a8e; border-radius: .2rem;
}
.research-search:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.research-search input { width: 100%; min-width: 0; padding: .4rem .65rem; border: 0; background: transparent; outline: none; }
.research-search button { display: grid; place-items: center; width: 2.5rem; flex: none; }
.research-filter-return + .research-search { margin-inline-start: 0; }
@media (max-width: 540px) {
  .research-search { width: 100%; margin-block-start: .45rem; }
}
.research-filter { position: relative; }
.research-filter summary {
  display: flex; align-items: center; gap: .65em; min-height: 48px;
  padding: .35rem .15rem; font-size: clamp(1rem, 1.3vw, 1.35rem); font-weight: 700;
  list-style: none; cursor: pointer; white-space: nowrap;
}
.research-filter summary::-webkit-details-marker { display: none; }
.research-filter summary span:first-child {
  text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .22em;
}
.research-filter[open] summary, .research-filter summary:hover { background: #e5e6dc; color: var(--green); }
.research-filter[open] summary .arrow-down { transform: rotate(-90deg); }
.research-filter ul {
  position: absolute; inset: calc(100% + .55rem) auto auto 0; z-index: 2;
  width: max-content; min-width: 10.5rem; list-style: none; margin: 0; padding: .5rem;
  background: #182420; color: #faf8ef; box-shadow: 0 .45rem 1rem #10171430;
}
.research-filter a {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 40px;
  padding: .35rem .75rem; text-decoration: underline; text-underline-offset: .18em;
}
.research-filter a:is(:hover, :focus-visible, [aria-current]) { background: #2b4036; color: #e2f7c1; }
.research-filter a[aria-current]::after { content: "✓" / ""; }
.research-filter a:focus-visible { outline-color: #d9f1bc; outline-offset: -2px; }
.research-lead {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: #26332f; color: #faf8ef;
}
.research-lead.no-cover { grid-template-columns: minmax(0, 1fr); }
.research-lead-copy { align-self: start; padding: clamp(1.25rem, 2.6vw, 2.5rem); }
.research-lead h2 { font-size: clamp(1.5rem, 2.55vw, 2.5rem); line-height: 1.24; }
.research-lead :is(h2 a, h2 a:hover) { color: inherit; }
.research-lead a::after { position: absolute; inset: 0; content: ""; }
.research-lead a:focus-visible { outline-color: #d9f1bc; }
.research-lead p { margin-top: .95rem; color: #edece2; font-size: var(--text-reading); line-height: 1.55; }
.research-lead-image { height: 100%; aspect-ratio: 735 / 400; object-fit: cover; }
.research-lead-image:is(
  [src^="/assets/research-sweet-corn-fan-language/"],
  [src^="/assets/research-tian-ziyu-camera-resemblance/"],
  [src^="/assets/research-sweet-corn-macau-concert/"],
  [src^="/assets/research-sweet-corn-gift-exchange/"],
  [src^="/assets/research-sweet-corn-concert-companions/"]
) { object-fit: contain; background: #26332f; }
.research-collection h2 a {
  text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .17em;
}
.research-edition {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.05rem;
}
.research-edition, .research-results {
  list-style: none; margin: 1rem 0 0; padding: 0;
}
.research-edition-card {
  display: flex; flex-direction: column; height: 100%; gap: .6rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--soft-line);
}
.research-edition-image { aspect-ratio: 290 / 158; object-fit: cover; }
.research-edition-image:is(
  [src^="/assets/research-sweet-corn-overseas/"],
  [src^="/assets/research-sweet-corn-wuxi-route/"],
  [src^="/assets/research-sweet-corn-fan-language/"],
  [src^="/assets/research-tian-ziyu-camera-resemblance/"],
  [src^="/assets/research-sweet-corn-macau-concert/"],
  [src^="/assets/research-sweet-corn-gift-exchange/"],
  [src^="/assets/research-sweet-corn-concert-companions/"]
) {
  object-fit: contain; background: #26332f;
}
.research-edition-card h2 { font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.35; }
.research-edition-summary { margin-top: .4rem; line-height: 1.58; color: var(--muted); }
.research-edition-meta { margin-top: auto; padding-top: .45rem; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.research-edition-meta p { color: var(--ink); margin-bottom: .2rem; }
.research-edition-meta span + time { border-inline-start: 1px solid var(--soft-line); padding-inline-start: .4rem; margin-inline-start: .4rem; }
.research-results { margin-top: 0; }
.research-results > li { border-bottom: 1px solid var(--soft-line); padding-bottom: 1rem; margin-bottom: 1rem; }
.research-results .research-edition-card {
  display: grid; grid-template-columns: minmax(0, 1fr) min(35%, 230px); align-items: start;
  gap: .65rem clamp(.8rem, 2vw, 1.5rem); border: 0; padding: 0;
}
.research-results .research-edition-copy { grid-column: 1; grid-row: 1; }
.research-results .research-edition-image {
  grid-column: 2; grid-row: 1; max-width: 230px; justify-self: end; border: 1px solid var(--soft-line);
}
.research-results .research-edition-meta { grid-column: 1; padding: 0; }
.research-results .research-edition-card h2 { font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.25; }
.research-results .research-edition-summary { font-size: .875rem; line-height: 1.55; }
.research-results .research-edition-author { margin-top: .65rem; font-size: .875rem; }
@media (min-width: 1024px) {
  .research-results .research-edition-card {
    grid-template-columns: minmax(0, 14.375rem) minmax(0, 1fr) minmax(0, 14.375rem);
  }
  .research-results .research-edition-meta { grid-area: 1 / 1; margin-top: 0; }
  .research-results .research-edition-copy { grid-column: 2; }
  .research-results .research-edition-image { grid-column: 3; }
  .research-results .research-edition-meta span { display: block; color: var(--ink); font-weight: 700; }
  .research-results .research-edition-meta time { display: block; margin: .2rem 0 0; padding: 0; border: 0; }
}
.inner-page.paper-page.reader-page { padding-top: clamp(1rem, 2vw, 2rem); }
.paper { max-width: 72rem; }
.paper-heading {
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: clamp(1.4rem, 3vw, 2.3rem);
}
.paper-heading .back-link {
  display: inline-flex; align-items: center; gap: .55em;
  margin-bottom: clamp(.8rem, 1.4vw, 1.35rem); font-size: var(--text-meta);
}
.paper-heading .back-link .icon-arrow { color: var(--green); }
.paper-heading h1 {
  font-size: clamp(1.875rem, 3.2vw, 3.5rem);
  line-height: 1.16;
  font-weight: 700;
  text-wrap: balance;
}
.paper-heading .page-heading { margin-bottom: 1.1rem; }
.paper .reader-meta, .paper .sample-note { line-height: 1.6; }
.paper .paper-byline {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .45rem 1.1rem; color: var(--muted);
}
.paper-author { color: var(--ink); font-weight: 700; }
.paper-byline a {
  color: var(--green); text-decoration: underline; text-underline-offset: .24em; white-space: nowrap;
}
.paper-layout { display: grid; grid-template-columns: minmax(0, 49rem); padding-top: clamp(1.65rem, 4vw, 3.3rem); }
.paper-layout.has-contents { grid-template-columns: minmax(0, 49rem) minmax(10rem, 1fr); gap: clamp(1.75rem, 5vw, 5.5rem); }
.paper-column { grid-column: 1; grid-row: 1; min-width: 0; }
.paper-contents {
  grid-column: 2; grid-row: 1; align-self: start; position: sticky;
  top: calc(var(--header) + 1.5rem); border-left: 1px solid var(--soft-line); padding-left: 1.15rem;
}
.paper-contents p { font-size: var(--text-meta); color: var(--muted); margin-bottom: .55rem; }
.paper-contents ul { margin: 0; padding: 0; list-style: none; }
.paper-contents a { display: block; padding-block: .38rem; color: var(--green); overflow-wrap: anywhere; }
.paper h2 { font-weight: 700; font-size: clamp(1.25rem, 2.25vw, 1.65rem); line-height: 1.35; scroll-margin-top: 1.5rem; }
.paper .reader-summary, .paper .reading-text { font-size: clamp(1.075rem, 1.3vw, 1.25rem); line-height: 1.85; }
.paper .reader-summary { color: var(--ink); margin-top: .6rem; }
.paper .reading-text { max-width: none; margin-block: clamp(1.6rem, 3vw, 2.75rem); }
.paper .reading-text h2 { margin-top: 1.4em; }
.paper .reading-text h3 { margin-top: 1.3em; font-size: 1.08em; font-weight: 700; line-height: 1.45; }
.paper .reading-text p { margin-block: .55em 1.3em; }
.paper-table-scroll { overflow-x: auto; margin-block: .9em 1.6em; }
.paper-table {
  width: 100%; min-width: 29rem; table-layout: fixed; border-collapse: collapse; font-size: .84em; line-height: 1.65;
}
.paper-table[data-columns="2"] { --paper-label-width: 36%; min-width: 0; }
.paper-table[data-columns="3"] { --paper-label-width: 30%; --paper-second-width: 32%; }
.paper-table[data-columns="3"].paper-table-numbered { --paper-label-width: 4.5em; --paper-second-width: 34%; }
.paper-table[data-columns="3"].paper-table-timeline { --paper-label-width: 24%; --paper-second-width: auto; }
.paper-table :is(th, td) {
  padding: .65em .8em; border-bottom: 1px solid var(--soft-line); text-align: start; vertical-align: top;
}
.paper-table thead { background: #e8e6db; border-top: 2px solid var(--green); }
.paper-table thead th:first-child { width: var(--paper-label-width, auto); }
.paper-table thead th:nth-child(2):not(:last-child) { width: var(--paper-second-width, auto); }
.paper-table tbody th { font-weight: 600; color: var(--muted); }
.paper-table-timeline thead th:last-child { width: 8em; }
.paper-table-sources { display: flex; flex-wrap: wrap; gap: .3em .65em; }
@media (max-width: 600px) {
  .paper-table[data-columns="2"] { --paper-label-width: 42%; }
  .paper-table[data-columns="2"] :is(th, td) { padding-inline: .55em; }
}
.paper-citations { margin: .65em 0 1.75em; padding: 0; list-style: none; font-size: .9em; line-height: 1.75; }
.paper-citations > li {
  display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: .65em;
  border-bottom: 1px solid var(--soft-line); padding: .65em 0;
}
.paper-citations > li:first-child { border-top: 1px solid var(--soft-line); }
.paper-citation-number { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.paper .reader-cover { max-height: clamp(11rem, 24vw, 21rem); margin-top: 1.65rem; }
.paper-figure { margin: 1.6em 0; }
.paper-figure-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 55rem; margin-inline: auto; }
.paper-figure figcaption { margin-top: .6rem; color: var(--muted); font-size: var(--text-meta); }
.paper .reader-sources { gap: 0; }
.paper .reader-sources h2 { margin-bottom: .65rem; }
.paper .reader-sources p { margin-block: .3rem .6rem; overflow-wrap: anywhere; }
.paper .reader-sources a {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px;
  width: 100%; padding: .65rem 0; border-bottom: 1px solid var(--soft-line);
  background: transparent; color: var(--green); font-weight: 500; overflow-wrap: anywhere;
}
.paper a:hover { text-decoration: underline; text-underline-offset: .2em; }
.paper .reading-text a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .research-filter:last-of-type ul { inset-inline: auto 0; }
  .research-lead { grid-template-columns: minmax(0, 1fr); }
  .research-lead-image { grid-row: 1; }
  .research-edition { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .8rem; }
  .paper-layout.has-contents { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .paper-column { grid-row: auto; }
  .paper-contents { grid-column: 1; grid-row: auto; position: static; }
  .paper-contents ul { display: flex; flex-wrap: wrap; column-gap: 1rem; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .research-edition { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .research-filter-bar { column-gap: .85rem; }
  .research-filter summary { font-size: .9375rem; }
}
.submission-page { width: min(80%, 2520px); }
.submission-landing {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header)); padding-block: 0 clamp(1.25rem, 3svh, 3rem);
}
.submission-landing .submission-whale {
  display: block; width: 100%; height: clamp(14.5rem, 31svh, 21rem);
  pointer-events: none; opacity: .82;
}
.submission-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: #a8b8af56; border-bottom: 1px solid #a8b8af56;
}
.submission-option { position: relative; display: grid; }
.submission-option > .receipt-link {
  position: absolute; inset: clamp(.65rem, 1.4vw, 1.35rem) clamp(.65rem, 1.4vw, 1.35rem) auto auto;
  font-size: var(--text-meta);
}
.submission-card {
  position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden;
  min-height: clamp(23rem, 53svh, 43rem); color: var(--ink); background: #111916;
}
.submission-card img {
  position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover;
  filter: saturate(.72); transition: transform .45s ease, filter .35s ease;
}
.submission-card.original img { object-position: 49% 35%; }
.submission-card.article img { object-position: 50% 36%; }
.submission-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #1017148a, #10171409 30%, #10171435 47%, #0a100dd9 76%, #0a100d 100%);
}
.submission-card:is(:hover, :focus-visible) { color: var(--ink); }
.submission-card:is(:hover, :focus-visible) img { transform: scale(1.035); filter: saturate(.95); }
.submission-card:focus-visible { outline-offset: -4px; }
.submission-card-copy { padding: clamp(1.3rem, 4vw, 4.2rem); }
.submission-card-copy h2 { font-size: clamp(1.8rem, 3.6vw, 4.2rem); line-height: 1.15; }
.submission-card-en { display: block; margin-block: .6em .8em; font-size: var(--text-meta); letter-spacing: .05em; }
.submission-card-copy p { margin-bottom: 1.2rem; }
.submission-tabs { display: flex; gap: clamp(22px, 3.2vw, 105px); border-bottom: 1px solid var(--line); margin-bottom: clamp(14px, 1.36vw, 40px); }
.submission-tabs > button { display: inline-block; padding: .3em .23em .62em; font-weight: 650; font-size: var(--text-item); position: relative; }
.submission-tabs .active::after { content: ""; position: absolute; left: 0; right: 0; height: .2em; bottom: -1px; background: var(--green); }
.submission-form { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(18px, 1.9vw, 60px); }
.submission-fields, .admin-form { display: grid; align-content: start; gap: clamp(10px, .95vw, 26px); }
.submission-section { display: grid; gap: 1rem; min-width: 0; }
.submission-category-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.submission-section h2, .submission-panel h2 { font-size: var(--text-item); line-height: 1.35; }
.submission-actions { min-width: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 74px); }
.field { display: grid; gap: .5em; min-width: 0; line-height: 1.4; }
.field-select > .icon-arrow { display: none; }
.field > span, .field > label, .type-group legend, .upload-label { font-weight: 650; }
.field :is(input,select,textarea), .editor {
  border: 1px solid var(--line); border-radius: 2px; width: 100%; min-width: 0; background: #121b18; color: var(--ink); padding: .48em .9em;
}
.field select[multiple] { padding: .4em; }
.field :is(input, textarea)::placeholder { color: #a6afaa; }
.field select:invalid { color: #a6afaa; }
.field input, .field select { min-height: clamp(34px, 2.15vw, 58px); }
.field textarea { line-height: 1.5; resize: vertical; }
.editor { padding: 0; }
.editor-toolbar { padding: 0 .7em; display: flex; align-items: center; gap: .65em; border-bottom: 1px solid var(--line); background: #202b27; }
.editor-toolbar button { min-width: 1.45em; padding: .24em .12em; font-size: 1.12em; }
.editor textarea { display: block; border: 0; min-height: clamp(80px, 6.7vw, 180px); }
.association[hidden] { display: none; }
.type-group { margin: 0; padding: 0; border: 0; }
.type-group legend { padding: 0 0 .5em; }
.type-group > div { display: flex; gap: 1.1rem; }
.type-option { border: 1px solid var(--line); border-radius: 2px; min-width: 8.7em; padding: .58em .9em; display: flex; align-items: center; justify-content: center; gap: .7em; cursor: pointer; }
.type-option.active { border-color: var(--green); }
.type-option input, .check-label input { accent-color: var(--green); }
.submission-aside { padding-left: clamp(17px, 1.9vw, 68px); border-left: 1px solid var(--soft-line); }
.upload-group { margin-bottom: clamp(17px, 1.6vw, 50px); }
.upload-label { display: block; margin-bottom: .65em; }
.upload-cover { display: grid; place-content: center; gap: .25em; text-align: center; border: 1px dashed var(--line); min-height: clamp(108px, 11vw, 340px); cursor: pointer; overflow-wrap: anywhere; padding: .7em; }
.upload-cover:focus-within, .upload-attachment:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.upload-plus { color: var(--green); font-size: 1.95em; line-height: 1; }
.upload-attachment { border: 1px solid var(--line); padding: .47em .9em; display: inline-block; border-radius: 2px; cursor: pointer; overflow-wrap: anywhere; max-width: 100%; }
.upload-attachment span::before { content: "＋ "; color: var(--green); }
.field-help { color: var(--muted); margin-top: .55em; }
.receipt-tip { padding-top: 1.15em; border-top: 1px solid var(--line); line-height: 1.65; }
.review-policy { margin-bottom: 1.5em; line-height: 1.75; }
.review-policy h2, .receipt-card h2 { font-size: var(--text-item); }
.review-policy h2 { margin-bottom: .45em; }
.button-primary { justify-self: start; display: inline-flex; justify-content: center; align-items: center; background: var(--green); color: #101811; border-radius: 2px; padding: .56em 1.5em; min-width: 9em; font-weight: 700; min-height: 38px; white-space: nowrap; }
.button-primary:hover:not(:disabled) { color: #101811; background: #f0ffd9; }
.feedback-slot:empty { display: none; }
.form-feedback { padding: .6rem 0; line-height: 1.5; color: var(--green); }
.form-feedback.error { color: #ffbbae; }
.receipt-form, .token-row { max-width: 760px; display: flex; gap: .85rem; align-items: flex-end; margin: 1rem 0; }
.receipt-form .field, .token-row .field { flex: 1; min-width: 0; }
.receipt-card { margin-top: 1.5rem; padding: clamp(16px, 2vw, 30px); border: 1px solid var(--soft-line); display: grid; gap: .75rem; }
.receipt-card h2 { overflow-wrap: anywhere; }
.receipt-card summary { color: var(--green); margin-bottom: 1.2rem; }
.receipt-reason { white-space: pre-wrap; }
.receipt-dialog {
  --ink: #26312d; --muted: #535d56; --green: #375d49;
  --line: #b1bbb2; --soft-line: #d9dbd0;
  width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 4vw, 1.75rem); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--soft-line); border-radius: .85rem;
  color-scheme: light; background: #faf9f5; color: var(--ink);
  font-family: var(--font-zh); box-shadow: 0 .6rem 2.4rem #15261c40;
}
.receipt-dialog::backdrop { background: #141d19a6; }
.receipt-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.receipt-dialog-heading h2 { font-size: var(--text-item); }
.receipt-close { flex: none; width: 36px; height: 36px; border-radius: .35rem; font-size: 1.45rem; }
.receipt-close:hover { background: #e8ede3; }
.receipt-dialog .field :is(input, select, textarea), .receipt-dialog .editor-toolbar { background: #fff; }
.receipt-dialog .field :is(input, textarea)::placeholder, .receipt-dialog .field select:invalid { color: #626f66; }
.receipt-dialog .button-primary,
.receipt-dialog .receipt-card > .action-link { color: #fff; border-radius: .4rem; min-height: 42px; }
.receipt-dialog .button-primary:hover:not(:disabled),
.receipt-dialog .receipt-card > .action-link:hover { color: #fff; background: #264636; }
.receipt-dialog .receipt-form { margin-block: 1.5rem 0; }
.receipt-dialog .receipt-form .field { row-gap: .85rem; }
.receipt-dialog .receipt-form input { min-height: 42px; }
.receipt-dialog .receipt-form button { min-width: auto; }
.receipt-dialog .form-feedback.error { color: #9a362c; }
.receipt-dialog .receipt-card { overflow-wrap: anywhere; background: #fff; border-radius: .55rem; }
.receipt-dialog .submission-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.receipt-dialog .submission-aside { padding: 0; border: 0; }
.admin-card { border: 1px solid var(--soft-line); padding: 1rem; margin-bottom: .65rem; overflow-wrap: anywhere; }
.admin-card > summary { cursor: pointer; font-size: 1.12em; }
.admin-card summary small { color: var(--muted); margin-left: .65rem; }
.admin-card[open] > summary { margin-bottom: 1.1rem; }
.admin-card .admin-form { max-width: 720px; margin-top: .8rem; }
.review-cover { width: min(100%, 400px); max-height: 280px; object-fit: contain; object-position: left; margin-top: 1rem; }
.admin-card > a { display: block; margin-block: .4em; }
.check-label { display: inline-flex; align-items: center; gap: .45em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.action-link, .action-link:hover, button.action-link:hover:not(:disabled) {
  display: inline-flex; align-items: center; justify-content: space-between; justify-self: start;
  gap: 1.15em; max-width: 100%; min-height: 42px; padding: .55em .9em;
  background: var(--green); color: #0b1210; font-weight: 700; line-height: 1.25;
  border-bottom: 0; text-shadow: none;
}
.action-link:hover, a:hover .action-link { background: #f0ffd9; }
.action-link:is(.analysis-all, .fiction-all, .submission-option > .receipt-link) {
  min-height: 30px; padding: .3em .8em; background: #505050; color: var(--ink);
}
.action-link:is(.analysis-all, .fiction-all, .submission-option > .receipt-link):hover:not(:disabled) { background: #585858; color: var(--ink); }
@media (min-width: 1700px) {
  .inner-page { width: min(86%, 2230px); }
  .submission-page { width: min(80%, 3000px); }
  .reader { max-width: 1130px; }
}
@media (max-width: 900px) {
  :root { --pad: 24px; }
}
@media (max-width: 700px) {
  :root {
    --header: 54px;
    --header-inset: 16px;
    --pad: 18px;
    --text-ui: .875rem;
    --text-reading: 1rem;
    --nav-en: .875rem;
    --nav-zh: .6875rem;
  }
  .site-header { display: flex; gap: 15px; }
  .site-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #14201c; padding: .75rem 1rem; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .site-header.menu-open .site-nav { display: grid; }
  .site-nav a { padding: .65rem; }
  .header-actions { gap: clamp(.5rem, 2.6vw, 1.125rem); }
  .mobile-menu { display: grid; place-content: center; gap: 4px; width: 22px; }
  .mobile-menu span { width: 17px; border-top: 1px solid currentColor; }
  .mobile-primary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); color: var(--nav-ink); }
  .mobile-primary a { display: grid; place-items: center; padding: .85em .2em; position: relative; }
  .mobile-primary a.active::after { content: ""; position: absolute; bottom: -1px; inset-inline: 13%; height: 2px; background: var(--green); }
  .primary-screen:not(.mobile-visible) { display: none; }
  .screen { min-height: auto; }
  .hero { height: clamp(205px, 59vw, 390px); }
  .hero-image { object-position: 50% var(--hero-mobile-y, 0%); }
  .hero::after { background: linear-gradient(0deg, #080d0c86, transparent 35%); }
  .hero > .scroll-next { bottom: .25rem; }
  .choices { gap: 11px; }
  .choices button { font-size: var(--text-ui); padding-inline: 0; }
  .analysis-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 1rem var(--header-inset) .5rem; }
  .analysis-index, .analysis-preview { display: contents; }
  .analysis-filters { grid-area: 1 / 1; margin-bottom: .8rem; }
  .analysis-filters .choices button { min-height: 34px; }
  .analysis-visual { grid-area: 2 / 1; aspect-ratio: 1.68; margin: 0; }
  .analysis-watermark {
    grid-area: 3 / 1; position: relative; inset: auto; transform: none;
    align-self: end; justify-self: end; font-size: clamp(2.4rem, 12vw, 4rem);
  }
  .analysis-caption { grid-area: 3 / 1; padding: .65rem 0 1.15rem; }
  .analysis-caption h2 { font-size: var(--text-card); }
  .analysis-list, .analysis-index > .empty { grid-area: 4 / 1; }
  .analysis-all { grid-area: 5 / 1; justify-self: start; }
  .analysis-footer { min-height: 48px; }
  .research-stage { grid-template-columns: minmax(0, 1fr); padding: 1.2rem var(--pad); gap: 1.25rem; }
  .research-choice { min-height: 54px; }
  .research-collection-entry { margin-inline: var(--pad); }
  .research-watermark { font-size: clamp(2.4rem, 12vw, 4rem); }
  .research-stage.is-preview { padding: 1.2rem var(--pad); }
  .research-preview { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: 1.25rem .35rem; }
  .research-cover { max-height: min(39svh, 18rem); }
  .research-copy { grid-area: 2 / 1 / 3 / -1; }
  .research-step.next { grid-area: 1 / 3; }
  .fiction-stage { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: .8rem var(--pad) 3.5rem; }
  .fiction-artwork { grid-area: 1 / 1; min-height: clamp(11rem, 58vw, 20rem); }
  .fiction-artwork:not(:has(img)) { min-height: 0; }
  .fiction-hero { max-height: clamp(11rem, 58vw, 20rem); }
  .fiction-panel { grid-area: 2 / 1; width: 100%; justify-self: center; }
  .fiction-echo { display: none; }
  .fiction-watermark { inset: auto auto 8% 3%; font-size: 19vw; }
  .book { flex-basis: min(calc((100% - 3 * var(--cover-gap)) / 4), 5.5rem); }
  .archive-stage { min-height: 420px; display: flex; flex-direction: column; justify-content: end; padding-bottom: 3rem; }
  .archive-artwork { --image-x: 66%; --image-y: 0%; }
  .archive-stage::after { background: linear-gradient(0deg, #141b19 1%, #141b19df 31%, transparent 80%); }
  .archive-all { inset-inline-start: var(--pad); }
  .archive-labels { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 var(--pad) 1rem; }
  .archive-label {
    position: static; translate: none; place-items: center; border: 1px solid var(--line); padding: .5em .15em;
    background: #141b19d4; text-align: center; font-size: clamp(.75rem, 3.4vw, 1.125rem); white-space: normal;
  }
  .archive-label-en { margin-top: .4rem; font-size: clamp(.5rem, 2.1vw, .625rem); }
  .archive-label::after { width: 2rem; margin-top: .4rem; }
  .timeline-stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1rem; padding: 1rem var(--pad) 6.5rem; }
  .timeline-watermark { inset-inline-start: var(--pad); inset-block-end: 3rem; }
  .timeline-backdrop { opacity: .17; }
  .timeline-dates {
    flex-direction: row; gap: .55rem; max-height: none; padding: 0 0 .35rem;
    overflow: auto hidden; overscroll-behavior: contain auto;
  }
  .timeline-dates button { min-width: 3rem; text-align: center; }
  .timeline-dates button[aria-pressed="true"] > span { transform-origin: center; }
  .timeline-entry { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .timeline-visual { width: min(87%, 18rem, 39svh); }
  .glossary-stage { grid-template: auto auto auto / minmax(0, 1fr); gap: .95rem; padding: 2rem var(--pad) 3.5rem; }
  .glossary-art { grid-area: 1 / 1; width: min(100%, 29rem); }
  .glossary-art img { width: min(100%, 48svh); }
  .glossary-copy { grid-area: 2 / 1; }
  .glossary-footer { grid-area: 3 / 1; margin-top: .6rem; }
  .glossary-watermark { font-size: clamp(2.4rem, 12vw, 4rem); }
  .guide-stage { gap: 1.75rem; padding: 2rem max(var(--pad), 1.5rem); }
  .guide-book { width: min(100%, 28rem); }
  .guide-book::before { inset: -6px -8px -11px; }
  .guide-book::after { inset: 0 -5px -7px; }
  .guide-spread { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; aspect-ratio: auto; }
  .guide-page { padding: 1.4rem; border-radius: 3px; }
  .guide-photo-page { min-height: clamp(11rem, 52vw, 16rem); }
  .guide-photo-page h2 { margin: 0; }
  .guide-text-page { padding-bottom: 2.3rem; }
  .guide-leaf { width: 100%; }
  .guide-leaf .guide-spread { height: 100%; backface-visibility: hidden; }
  .guide-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem .35rem; }
  .guide-chapters button { font-size: var(--text-meta); }
  .inner-page, .submission-page { width: calc(100% - 2rem); }
  .submission-cards { grid-template-columns: minmax(0, 1fr); }
  .submission-card { min-height: clamp(15rem, 58vw, 22rem); }
  .submission-landing .submission-whale { height: clamp(10rem, 24svh, 13rem); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .listing-card a > div { padding: .65rem; }
  .field :is(input, select, textarea), .search-field input { font-size: 1rem; }
  .submission-form { display: flex; flex-direction: column; }
  .submission-aside { border: 1px solid var(--soft-line); padding: 13px; }
  .upload-cover { min-height: 100px; }
  .receipt-form, .token-row { flex-wrap: wrap; }
}
@media (max-width: 385px) {
  .listing-grid { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .page-heading a { white-space: normal; }
}

.inner-page.submission-detail {
  --ink: #26312d; --muted: #535d56; --green: #375d49;
  --line: #b1bbb2; --soft-line: #d9dbd0;
  --submission-padding: clamp(1rem, 4.6vw, 2.25rem);
  --submission-inset: clamp(1rem, 4.1vw, 2rem);
  --submission-serif: "Songti SC", "Noto Serif CJK SC", SimSun, var(--font-zh);
  width: 100%;
  padding: 0 0 clamp(2.5rem, 6vw, 5rem);
  color-scheme: light;
  color: var(--ink);
  background: radial-gradient(#375d4912 .6px, transparent .6px) center top / 24px 24px, #faf9f5;
  font-family: var(--font-zh);
  font-size: .9375rem;
}
.submission-detail-inner { width: min(100%, 80rem); margin-inline: auto; padding-inline: var(--submission-inset); }
.submission-path { border-bottom: 1px solid var(--soft-line); }
.submission-path .submission-detail-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .25rem 1rem; min-height: 3.85rem; padding-block: .55rem; font-size: .875rem;
}
.submission-back {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 32px; color: var(--muted); font-weight: 650;
}
.submission-lookup { color: var(--muted); }
.submission-detail #submission-state { padding-top: clamp(1.6rem, 4vw, 2.5rem); }
.submission-intro { grid-area: intro; margin-bottom: clamp(1.35rem, 3.6vw, 2rem); }
.submission-detail .submission-intro h1 {
  font: 800 clamp(1.85rem, 4.6vw, 2.25rem)/1.2 var(--submission-serif);
  margin-bottom: .85rem;
}
.submission-intro p { color: var(--muted); line-height: 1.75; }
.submission-detail .receipt-link {
  display: inline-block; margin-top: .75rem; color: var(--green); font-size: .875rem;
}
.submission-detail .receipt-link:hover { text-decoration: underline; }
.submission-detail .submission-form {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  grid-template-areas: "intro aside" "fields aside" "actions aside";
  align-items: start; gap: 0 clamp(1.5rem, 3.15vw, 2.5rem);
}
.submission-detail .submission-fields {
  grid-area: fields;
  padding: var(--submission-padding);
  border: 1px solid var(--soft-line); border-bottom: 0; border-radius: 1rem 1rem 0 0;
  background: #fff; gap: clamp(1.4rem, 3vw, 2rem);
}
.submission-detail .submission-section { gap: 1.25rem; }
.submission-detail .submission-section + .submission-section {
  padding-top: clamp(1.4rem, 3.5vw, 2rem); border-top: 1px dashed var(--soft-line);
}
.submission-detail .submission-section h2, .submission-detail .submission-panel h2 {
  padding-inline-start: .65rem; border-inline-start: .2rem solid var(--green);
  font: 700 1.125rem/1.2 var(--submission-serif);
}
.submission-detail .field-pair { gap: 1.25rem; }
.submission-detail .field > :is(span, label), .submission-detail .type-group legend, .submission-detail .upload-label {
  font-size: .875rem; font-weight: 550;
}
.submission-detail .field :is(input, select, textarea), .submission-detail .editor {
  background: #fff; border-radius: .5rem;
}
.submission-detail .field :is(input, select) { min-height: 45px; }
.submission-detail .field :is(input, textarea)::placeholder, .submission-detail .field select:invalid { color: #626f66; }
.submission-detail .editor { overflow: hidden; }
.submission-detail .editor-toolbar { background: #f3f5ef; border-color: var(--soft-line); }
.submission-detail .editor-toolbar button { min-height: 34px; min-width: 29px; }
.submission-detail .editor-toolbar button:focus-visible { outline-offset: -3px; }
.submission-detail .editor textarea:focus-visible { outline-offset: -3px; }
.submission-detail .type-group > div { flex-wrap: wrap; gap: .6rem; }
.submission-detail .type-option { min-width: 0; justify-content: start; border-radius: .4rem; }
.submission-detail .type-option.active { background: #e8ede3; }
.submission-detail .submission-aside {
  grid-area: aside; display: grid; gap: 1.15rem; padding: 0; border: 0;
}
.submission-detail .submission-panel {
  padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--soft-line); border-radius: 1rem; background: #fff;
}
.submission-detail .submission-panel h2 { margin-bottom: .75rem; }
.submission-detail .submission-panel p { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.submission-detail .upload-group { margin-bottom: .85rem; }
.submission-detail .upload-group:last-child { margin-bottom: 0; }
.submission-detail .upload-cover { background: #f8faf6; border-radius: .5rem; }
.submission-detail .upload-attachment { border-radius: .4rem; }
.submission-detail .review-policy { margin: 0; }
.submission-detail .review-policy p + p { margin-top: .35rem; }
.submission-detail .submission-actions {
  grid-area: actions; padding: 0 var(--submission-padding) var(--submission-padding);
  border: 1px solid var(--soft-line); border-top: 0; border-radius: 0 0 1rem 1rem; background: #fff;
}
.submission-detail .button-primary { min-height: 42px; border-radius: .4rem; color: #fff; }
.submission-detail .button-primary:hover:not(:disabled) { color: #fff; background: #264636; }
.submission-detail .form-feedback.error { color: #9a362c; }
@media (forced-colors: none) {
  .submission-form .field-select > select {
    grid-area: 2 / 1; appearance: none; padding-inline-end: 2.5rem;
  }
  .submission-form .field-select > .icon-arrow {
    display: block; grid-area: 2 / 1; align-self: center; justify-self: end;
    margin-inline-end: 1.2rem; font-size: .75rem; color: var(--muted);
  }
  @supports (appearance: base-select) and selector(::picker(select)) {
    .submission-form .field-select > select,
    .submission-form .field-select > select::picker(select) { appearance: base-select; }
    .submission-form .field-select > select::picker-icon { display: none; }
    .submission-form .field-select > select:open { background: #e5e6dc; color: #375d49; }
    .submission-form .field-select > select:open + .arrow-down { transform: rotate(-90deg); color: #375d49; }
    .submission-form .field-select > select::picker(select) {
      max-block-size: min(18rem, 45dvh); margin-block: .35rem; padding: .5rem;
      overflow: auto; border: 0; background: #182420; color: #faf8ef;
      box-shadow: 0 .45rem 1rem #10171430;
    }
    .submission-form .field-select option {
      justify-content: space-between; gap: .65rem; min-block-size: 40px;
      padding: .35rem .75rem; text-decoration: underline; text-underline-offset: .18em;
    }
    .submission-form .field-select select:required > option[value=""] { display: none; }
    .submission-form .field-select option:is(:hover, :focus-visible, :checked) { background: #2b4036; color: #e2f7c1; }
    .submission-form .field-select option:focus-visible { outline-color: #d9f1bc; outline-offset: -2px; }
    .submission-form .field-select option::checkmark { order: 1; content: "✓" / ""; }
  }
}
@media (max-width: 1024px) {
  .submission-detail .submission-form { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "fields" "aside" "actions"; }
  .submission-detail .submission-aside { margin-block: 1rem; }
  .submission-detail .submission-fields { border-bottom: 1px solid var(--soft-line); border-radius: .75rem; }
  .submission-detail .submission-actions { padding: 0; border: 0; background: transparent; }
}
@media (max-width: 430px) {
  .submission-detail .field-pair { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.admin-config-details > summary { cursor: pointer; padding-block: .65rem; color: var(--green); }
.config-fields { display: grid; gap: .85rem; }
.config-fields :is(input, select, textarea) { min-width: 0; }
.config-record, .config-list {
  min-inline-size: 0; margin: 0; padding: .7rem .85rem .85rem; border: 1px solid var(--soft-line);
}
.config-record legend, .config-list legend { padding-inline: .38rem; color: var(--green); }
.config-row { padding: .75rem 0; border-bottom: 1px solid var(--soft-line); }
.config-row:first-child { padding-top: .15rem; }
.config-row-controls, .config-image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.config-row-controls { margin-top: .6rem; }
.config-image-actions { margin-top: .35rem; }
.config-row-controls button, .config-image-actions button, .config-add {
  display: inline-block; padding: .3em .6em; border: 1px solid var(--soft-line); color: var(--green); cursor: pointer;
}
.config-list > .config-add { margin-top: .75rem; }
.config-add:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.author-avatar { width: 4rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.fiction-book-figure { margin: 0; min-width: 0; }
.fiction-book-figure figcaption { margin: .55rem 0; font-size: var(--text-meta); color: var(--muted); }
.field input.sr-only { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

:root:has(.admin-shell, .admin-login-page) {
  color-scheme: light;
  --background: #f5f6f3;
  --ink: #1e2b24;
  --muted: #59665e;
  --green: #245c40;
  --soft-line: #dde3dd;
  --line: #c8d1c9;
  --admin-white: #fff;
  --admin-selected: #e5f0e7;
  --admin-header: 3.85rem;
  font-family: var(--font-zh);
  scroll-padding-top: calc(var(--admin-header) + .75rem);
}
.admin-shell {
  display: grid;
  grid-template-columns: clamp(13.5rem, 17vw, 16rem) minmax(0, 1fr);
  min-height: 100svh;
  font-size: .875rem;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  background: #fbfcfa;
  border-inline-end: 1px solid var(--soft-line);
  padding: 1.15rem .8rem 1.5rem;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.65rem;
  margin: 0 .55rem 1.4rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-brand strong { display: block; font-size: 1rem; font-weight: 750; }
.admin-brand small { color: var(--muted); font-size: .75rem; }
.admin-emblem { width: 2.45rem; height: 2.45rem; object-fit: contain; flex: none; }
.admin-menu-group + .admin-menu-group { margin-top: 1.45rem; }
.admin-menu-group > p {
  margin: 0 .6rem .45rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
}
.admin-menu-group > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  margin-block: .15rem;
  padding: .36rem .6rem .36rem .8rem;
  border-radius: .4rem;
  overflow-wrap: anywhere;
}
.admin-menu-group > a:hover { background: #eef2ec; }
.admin-menu-group > a[aria-current] { background: var(--admin-selected); color: var(--green); font-weight: 700; }
.admin-menu-group > a[aria-current]::before {
  content: "";
  position: absolute;
  inset: .58rem auto .58rem .27rem;
  width: 2px;
  border-radius: 2px;
  background: var(--green);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--admin-header);
  padding: .5rem clamp(1rem, 3.1vw, 3.25rem);
  background: var(--admin-white);
  border-bottom: 1px solid var(--soft-line);
}
.admin-site-link { margin-inline-start: auto; color: var(--green); font-weight: 650; white-space: nowrap; }
.admin-session {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--soft-line);
}
.admin-session > span { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.admin-session small { display: block; color: var(--muted); font-weight: 500; line-height: 1.25; }
.admin-session button, .admin-menu-toggle { white-space: nowrap; min-height: 2.1rem; color: var(--muted); }
.admin-session button:hover, .admin-menu-toggle:hover { color: var(--green); }
.admin-menu-toggle { display: none; }
.admin-main { min-width: 0; padding: clamp(1rem, 3.1vw, 2.6rem) clamp(1rem, 3.1vw, 3.25rem) 3rem; }
.admin-main h1 { font-size: clamp(1.6rem, 2.5vw, 2.05rem); line-height: 1.25; font-weight: 750; margin-bottom: 1.5rem; }
.admin-view-tabs {
  display: flex;
  gap: .35rem clamp(.65rem, 2.1vw, 1.55rem);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.admin-view-tabs a { border-bottom: 2px solid transparent; padding: .25rem .15rem .62rem; color: var(--muted); margin-bottom: -1px; }
.admin-view-tabs a[aria-current] { border-color: var(--green); color: var(--green); font-weight: 700; }
.admin-archive-album-tabs { margin-bottom: .75rem; }
.admin-archive-album-tabs [role="tab"] {
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: .35rem .15rem .6rem;
  color: var(--muted);
}
.admin-archive-album-tabs [aria-selected="true"] { border-color: var(--green); color: var(--green); font-weight: 700; }
.admin-card, .admin-list, .admin-login {
  background: var(--admin-white);
  border: 1px solid var(--soft-line);
  border-radius: .55rem;
}
.admin-card { padding: .95rem 1.15rem; }
.admin-card > summary { line-height: 1.5; font-size: .95rem; font-weight: 650; }
.admin-card summary small { font-size: .75rem; font-weight: 500; }
.admin-card .admin-form { max-width: none; padding-block: .2rem .35rem; }
.admin-list-tools {
  display: flex;
  align-items: center;
  gap: .65rem .75rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  color: var(--muted);
}
.admin-filter { min-width: 0; position: relative; }
.admin-filter input { width: min(43vw, 17rem); min-width: 0; }
.admin-filter select { min-width: 6.4rem; }
.admin-list-tools .admin-new-entry { margin-inline-start: auto; }
.admin-catalog-note { padding: 0 1.2rem .8rem; color: var(--muted); }
.admin-fiction-home-table { min-width: 29rem; }
.admin-fiction-home-table :is(th, td):first-child { width: 5.5rem; white-space: nowrap; }
.admin-fiction-home-table td:last-child { width: 18.5rem; }
.admin-catalog-table.admin-bookshelf-order-table { min-width: 20rem; }
.admin-bookshelf-order-table th:first-child { width: 5.5rem; white-space: nowrap; }
.admin-bookshelf-order-table td:last-child { width: 8.5rem; }
.admin-catalog-table.admin-archive-settings-table { min-width: 24rem; }
.admin-archive-settings-table td:last-child { width: 13rem; }
.admin-archive-settings-table th:first-child { width: 24%; }
.admin-archive-thumb {
  display: block;
  width: 4.5rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .25rem;
  background: var(--soft-line);
}
.admin-fiction-home-default {
  display: inline-block;
  margin-inline-start: .55rem;
  padding: .1rem .38rem;
  border-radius: .25rem;
  background: var(--admin-selected);
  color: var(--green);
  font-size: .75rem;
  white-space: nowrap;
}
.admin-author-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-inline-size: 28rem;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.fiction-book-tagline { color: var(--muted); margin: .35rem 0 1rem; }
.admin-table-scroll { overflow-x: auto; }
.admin-catalog-table {
  width: 100%;
  min-width: 40rem;
  border-spacing: 0;
  text-align: start;
}
.admin-time-col { width: 11.5rem; }
.admin-type-col { width: 7rem; }
.admin-glossary-type-col { width: 12rem; }
.admin-content-type { white-space: nowrap; color: var(--muted); }
.admin-catalog-table:has(.admin-glossary-type-col) .admin-content-type { white-space: normal; overflow-wrap: anywhere; }
.admin-status-col { width: 6.25rem; }
.admin-operation-col { width: 12rem; }
.admin-works-table .admin-operation-col { width: 22rem; }
.admin-catalog-table :is(th,td) {
  padding: .78rem .9rem;
  text-align: start;
  vertical-align: middle;
}
.admin-catalog-table :is(th,td):first-child { padding-inline-start: 1.2rem; }
.admin-catalog-table :is(th,td):last-child { padding-inline-end: 1.2rem; }
.admin-catalog-table thead th {
  border-block: 1px solid var(--soft-line);
  padding-block: .7rem;
  background: #f0f3ef;
  color: var(--muted);
  font-weight: 650;
}
.admin-catalog-table thead th button { display: inline-flex; align-items: center; gap: .5rem; font-weight: inherit; }
.admin-catalog-table thead [aria-sort] button { color: var(--green); }
.admin-sort-icon {
  display: inline-grid;
  gap: 2px;
  color: #7e8b81;
}
.admin-sort-icon::before, .admin-sort-icon::after {
  content: "";
  border-inline: 3px solid transparent;
  border-bottom: 4px solid currentColor;
}
.admin-sort-icon::after { transform: rotate(180deg); }
[aria-sort="ascending"] .admin-sort-icon::before, [aria-sort="descending"] .admin-sort-icon::after { color: var(--green); }
.admin-catalog-table tbody tr:hover { background: #f8faf7; }
.admin-catalog-table tbody tr + tr > * { border-block-start: 1px solid var(--soft-line); }
.admin-catalog-rank-title { display: flex; align-items: center; gap: .35rem; }
.admin-catalog-grip, .admin-catalog-grip-spacer { flex: 0 0 1.7rem; }
.admin-catalog-grip {
  display: grid;
  place-items: center;
  height: 1.7rem;
  border-radius: .3rem;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}
.admin-catalog-grip::before {
  content: "";
  width: 8px;
  height: 12px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 0 / 4px 4px;
  pointer-events: none;
}
.admin-catalog-grip:is(:hover,:focus-visible) { color: var(--green); background-color: var(--admin-selected); }
.admin-catalog-sorting, .admin-catalog-sorting .admin-catalog-grip { cursor: grabbing; user-select: none; }
.admin-catalog-table[aria-busy="true"] .admin-catalog-grip { cursor: progress; }
.admin-catalog-table tbody .admin-catalog-dragging { background: var(--admin-selected); }
.admin-catalog-table [data-catalog-drop="before"] > * { box-shadow: inset 0 2px var(--green); }
.admin-catalog-table [data-catalog-drop="after"] > * { box-shadow: inset 0 -2px var(--green); }
.admin-item-title { line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.admin-featured { color: #6c521b; font-size: .72rem; font-weight: 650; white-space: nowrap; margin-inline-start: .5em; }
.admin-catalog-table .admin-featured-title {
  position: relative;
  padding-block: 1.45rem .5rem;
}
.admin-featured-corner {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  margin-inline-start: 0;
  padding: .16rem .55rem;
  border-end-end-radius: .35rem;
  background: #f5e8c5;
  line-height: 1.2;
}
.admin-date { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-date-source { color: var(--muted); display: block; margin-top: .15em; font-size: .68rem; }
.admin-status {
  display: inline-block;
  white-space: nowrap;
  padding: .16rem .48rem;
  border-radius: .3rem;
  background: #edf0ed;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.admin-status.is-published { background: var(--admin-selected); color: #28553b; }
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; color: var(--muted); }
.admin-row-actions button { white-space: nowrap; min-height: 1.65rem; }
.admin-row-actions button:hover { text-decoration: underline; text-underline-offset: .22em; }
.admin-edit-action { color: var(--green); font-weight: 650; }
.admin-row-actions .admin-unpublish:hover { color: #9a362c; }
.admin-catalog-table td.admin-table-empty { text-align: center; color: var(--muted); padding-block: 2.25rem; }
.admin-staff-table td:last-child { width: 8rem; }
.admin-catalog-table.admin-contact-table { min-width: 18rem; }
.admin-contact-table td { overflow-wrap: anywhere; }
.admin-contact-table td:last-child { width: 7.5rem; }
.admin-catalog-table.admin-guide-settings-table { min-width: 27rem; }
.admin-guide-settings-table td { overflow-wrap: anywhere; }
.admin-guide-settings-table td:last-child { width: 13rem; }
.admin-analysis-home-table :is(th,td):first-child { width: 5rem; white-space: nowrap; }
.admin-analysis-home-table th:nth-child(2), .admin-research-home-table th:first-child { width: 9rem; white-space: nowrap; }
:is(.admin-analysis-home-table, .admin-research-home-table) td:last-child { width: 16rem; }
.admin-analysis-slot { color: var(--green); font-weight: 650; white-space: nowrap; }
.admin-people-table td:last-child { width: 11rem; }
.admin-staff-name { overflow-wrap: anywhere; }
.admin-navigation-table .admin-menu-order { width: 5.25rem; color: var(--muted); white-space: nowrap; }
.admin-menu-destination { color: var(--muted); overflow-wrap: anywhere; }
.admin-navigation-table td:last-child { width: 14rem; }
.admin-navigation-table th:nth-last-child(-n+3) { white-space: nowrap; }
.admin-navigation-table .admin-row-actions button:disabled { color: var(--muted); opacity: .55; text-decoration: none; }
.admin-list-footer { color: var(--muted); border-block-start: 1px solid var(--soft-line); padding: .8rem 1.2rem; }
.admin-table-feedback:not(:empty) {
  position: fixed;
  inset: auto 1.2rem 1.2rem auto;
  z-index: 4;
  max-width: min(27rem, calc(100% - 2.4rem));
  background: var(--admin-white);
  border: 1px solid var(--line);
  box-shadow: 0 .3rem 1.4rem #15261c19;
  border-radius: .5rem;
  padding: .25rem 1rem;
}
.admin-config-form { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); padding: clamp(1rem, 2.2vw, 1.65rem); }
.admin-config-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; }
.admin-config-heading h2 { font-size: 1.08rem; }
.admin-config-links { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
.admin-config-heading a { display: inline-flex; align-items: center; gap: .25rem; color: var(--green); font-weight: 650; }
.admin-config-heading a:hover { text-decoration: underline; text-underline-offset: .22em; }
.admin-config-context { color: var(--muted); line-height: 1.55; }
.admin-recommendation-settings { display: grid; gap: .9rem; }
.admin-recommendation-settings .feedback-slot:empty { display: none; }
.admin-recommendation-settings .accent { font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.admin-recommendation-preview {
  border: 1px solid var(--soft-line);
  border-radius: .45rem;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.admin-recommendation-preview-header {
  padding: .7rem clamp(.9rem, 2vw, 1.2rem);
  border-bottom: 1px solid var(--soft-line);
  background: #f0f3ef;
}
.admin-recommendation-preview-header h3 { font-size: .86rem; color: var(--muted); }
.admin-recommendation-preview-body { display: grid; gap: .95rem; padding: clamp(.9rem, 2vw, 1.2rem); }
.admin-recommendation-preview-body p { margin: .25rem 0 0; color: var(--muted); line-height: 1.5; }
.admin-analysis-list-intro { display: flex; align-items: center; gap: .85rem; }
.admin-analysis-list-intro img { width: 3.5rem; aspect-ratio: 1; object-fit: contain; flex: none; }
.admin-analysis-list-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-analysis-list-tabs span { padding: .3rem .65rem; border: 1px solid var(--soft-line); border-radius: .25rem; }
.admin-research-lead-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .85rem 1.15rem;
  padding: .9rem 1.2rem;
}
.admin-research-lead-preview img {
  width: min(100%, 12rem);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .25rem;
}
.admin-research-lead-preview > div { flex: 1 1 14rem; min-width: 0; }
.admin-research-lead-preview p { margin: .35rem 0 0; line-height: 1.55; }
.admin-research-lead-preview small { display: block; margin-top: .5rem; color: var(--muted); }
.admin-research-directory-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .6rem 1.15rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--soft-line);
  border-radius: .45rem;
}
.admin-research-directory-summary dt { color: var(--muted); }
.admin-research-directory-summary dd { margin: 0; overflow-wrap: anywhere; }
.admin-settings-copy { min-width: 0; margin: .3rem 0 0; padding: .85rem; border: 1px solid var(--soft-line); border-radius: .5rem; }
.admin-settings-copy > legend { padding: 0 .35rem; color: var(--green); font-weight: 700; }
.admin-settings-copy > .admin-config-context { margin-bottom: .75rem; }
.admin-shell .admin-form, .admin-login { gap: .85rem; }
.admin-shell .field-pair { gap: .85rem 1.1rem; }
:is(.admin-shell, .admin-login) .field :is(input, select, textarea), .admin-filter :is(input, select) {
  background: var(--admin-white);
  border: 1px solid var(--line);
  border-radius: .32rem;
  color: var(--ink);
  padding: .48em .68em;
  min-height: 2.2rem;
}
:is(.admin-shell, .admin-login) :is(input, textarea)::placeholder { color: #69776d; }
.admin-shell .config-record, .admin-shell .config-list, .admin-menu-scope {
  border: 1px solid var(--soft-line);
  border-radius: .35rem;
  margin: 0;
  min-inline-size: 0;
  padding: .75rem;
}
.admin-menu-scope legend { color: var(--green); padding-inline: .35rem; }
.admin-menu-options { display: grid; gap: .7rem; border: 0; margin: .3rem 0 0; padding: 0; min-inline-size: 0; }
.admin-menu-options:disabled { opacity: .55; }
.admin-menu-options-group > p { color: var(--muted); font-weight: 650; margin-bottom: .25rem; }
.admin-menu-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .15rem .7rem; }
.admin-shell input[type="checkbox"] { accent-color: var(--green); }
.admin-shell .config-row { padding-block: .75rem; }
.admin-shell .config-row:last-child { border: 0; }
.admin-shell .config-row-fold > summary { color: var(--green); font-weight: 650; cursor: pointer; }
.admin-shell .config-row-fold[open] > summary { margin-bottom: .65rem; }
.admin-shell :is(.config-row-controls button, .config-image-actions button, .config-add) {
  border-radius: .25rem;
  min-height: 1.9rem;
}
:is(.admin-shell, .admin-login) .button-primary, .admin-shell .action-link {
  border-radius: .32rem;
  background: var(--green);
  color: var(--admin-white);
  min-width: 0;
}
:is(.admin-shell, .admin-login) .button-primary:hover:not(:disabled), .admin-shell .action-link:hover {
  background: #184930;
  color: var(--admin-white);
}
:is(.admin-shell, .admin-login) .form-feedback.error { color: #9a362c; }
.admin-login-page { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 1rem; padding: 2rem 1rem; }
.admin-login-page .admin-brand { margin: 0; }
.admin-login { width: min(100%, 25rem); padding: clamp(1.25rem, 5vw, 2rem); }
.admin-login h1 { font-size: 1.45rem; margin-bottom: .25rem; }
.admin-login-page > a:last-child { color: var(--green); }
:root:has(.admin-editor-drawer[open]) { overflow: hidden; }
.admin-editor-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 43rem);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--admin-white);
  color: var(--ink);
  box-shadow: -10px 0 42px #192b2030;
  font-size: .875rem;
}
.admin-editor-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: admin-drawer-in .2s ease-out; }
.admin-editor-drawer::backdrop { background: #17241d47; }
@keyframes admin-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .admin-editor-drawer[open] { animation: none; } }
.admin-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .88rem clamp(1rem, 3vw, 1.7rem);
  border-bottom: 1px solid var(--soft-line);
}
.admin-drawer-heading h2 { font-size: 1.23rem; font-weight: 750; }
.admin-drawer-close { font-size: 1.6rem; line-height: 1; width: 2.25rem; height: 2.25rem; color: var(--muted); }
.admin-drawer-close:hover { background: #eef2ec; border-radius: .3rem; }
.admin-shell .admin-drawer-form { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: 0; min-width: 0; min-height: 0; }
.admin-drawer-body {
  display: grid;
  align-content: start;
  gap: .95rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.25rem clamp(1rem, 3vw, 1.7rem) 1.6rem;
}
.admin-drawer-body .admin-config-details { border: 1px solid var(--soft-line); border-radius: .35rem; padding: 0 .8rem; }
.admin-drawer-body .admin-config-details[open] { padding-bottom: .8rem; }
.admin-material-picker { position: relative; min-width: 0; }
.admin-material-picker summary {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  min-height: 2.4rem; padding: .5rem .75rem;
  border: 1px solid var(--line); border-radius: .35rem; background: var(--admin-white); cursor: pointer;
}
.admin-material-picker summary::-webkit-details-marker { display: none; }
.admin-material-picker summary > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-material-caret { flex: 0 0 .45rem; height: .45rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.admin-material-picker[open] .admin-material-caret { transform: rotate(225deg); }
.admin-material-options {
  position: absolute; inset: 100% 0 auto; z-index: 1;
  display: grid; gap: .45rem; margin-top: .3rem; padding: .65rem;
  border: 1px solid var(--line); border-radius: .35rem; box-shadow: 0 .35rem 1rem #15261c12; background: var(--admin-white);
}
.admin-material-options > input { width: 100%; }
.admin-material-list { max-height: 13.5rem; overflow: auto; overscroll-behavior: contain; }
.admin-material-option {
  display: grid; grid-template-columns: 1rem minmax(0, 1fr); align-items: center; gap: .55rem;
  min-height: 2rem; padding: .3rem .45rem; border-radius: .25rem; color: var(--ink); cursor: pointer;
}
.admin-material-option:hover { background: #eef2ec; }
.admin-material-option[hidden] { display: none; }
.admin-material-option > span { min-width: 0; overflow-wrap: anywhere; }
.admin-shell .admin-material-option > input[type="checkbox"] {
  width: 1rem; height: 1rem; min-height: 0; padding: 0; margin: 0; accent-color: var(--green);
}
.admin-rich-frame { min-width: 0; border: 1px solid var(--line); border-radius: .4rem; background: var(--admin-white); }
.admin-rich-toolbar, .admin-rich-link {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem;
  padding: .38rem .55rem; background: #f5f7f4; border-bottom: 1px solid var(--soft-line);
}
.admin-rich-toolbar { border-radius: .4rem .4rem 0 0; }
.admin-rich-toolbar button, .admin-rich-link button { padding: .25rem .55rem; min-height: 2rem; border-radius: .25rem; }
.admin-rich-toolbar button:hover, .admin-rich-toolbar button[aria-pressed="true"], .admin-rich-link button:hover { background: #e4ece5; color: var(--green); }
.admin-rich-toolbar button:disabled { opacity: .45; }
.admin-rich-toolbar [data-rich-heading] { width: auto; }
.admin-rich-link[hidden], .admin-rich-content[hidden], .admin-rich-frame textarea[hidden] { display: none; }
.admin-rich-link input { flex: 1 1 12rem; min-width: 0; }
.admin-rich-content {
  min-height: 12rem; max-height: 30rem; padding: .85rem 1rem; overflow: auto; overscroll-behavior: contain;
  overflow-wrap: anywhere; color: var(--ink); line-height: 1.7; font-size: .95rem;
}
.admin-rich-content :is(p,ul,ol,figure,blockquote,table) { margin: 0 0 .75rem; }
.admin-rich-content :is(ul,ol) { padding-inline-start: 1.6em; }
.admin-rich-content h2 { font-size: 1.3rem; line-height: 1.45; margin: .4rem 0 .5rem; }
.admin-rich-content h3 { font-size: 1.1rem; line-height: 1.45; margin: .35rem 0 .4rem; }
.admin-rich-content blockquote { border-inline-start: 3px solid var(--line); padding-inline-start: .8em; color: var(--muted); }
.admin-rich-content img { max-width: 100%; max-height: 20rem; width: auto; object-fit: contain; }
.admin-rich-content .paper-table-scroll { margin: 0; }
.admin-rich-content table { width: 100%; border-collapse: collapse; }
.admin-rich-content :is(td,th) { padding: .3rem .5rem; border: 1px solid var(--soft-line); text-align: start; }
.admin-rich-content th { background: #f5f7f4; }
.admin-rich-frame [data-rich-source] { width: 100%; border: 0; padding: .85rem 1rem; font-family: ui-monospace, monospace; }
.admin-rich-feedback { padding: .4rem .75rem; color: var(--muted); }
.admin-chapter-book { font-size: 1.05rem; }
.admin-chapter-tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-chapter-import { display: inline-flex; align-items: center; cursor: pointer; }
.admin-chapter-import:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.admin-chapter-import:has(input:disabled) { opacity: .45; cursor: default; }
.admin-chapter-table { width: 100%; min-width: 26rem; border-collapse: collapse; text-align: start; }
.admin-chapter-table :is(td,th) { text-align: start; border-bottom: 1px solid var(--soft-line); padding: .55rem .5rem; }
.admin-chapter-table thead { background: #f5f7f4; }
.admin-chapter-table th[scope="row"] { width: 48%; overflow-wrap: anywhere; font-weight: 650; }
.admin-editor-scope { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.admin-editor-scope[hidden] { display: none; }
.admin-config-details > .admin-editor-scope:not([hidden]) { margin-block-start: .85rem; }
.admin-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--soft-line);
  background: var(--admin-white);
  padding: .8rem clamp(1rem, 3vw, 1.7rem) max(.8rem, env(safe-area-inset-bottom));
}
.admin-drawer-footer .feedback-slot { margin-inline-end: auto; max-width: 100%; overflow-wrap: anywhere; }
.admin-drawer-footer .form-feedback { padding-block: .2rem; }
.admin-secondary { border: 1px solid var(--line); border-radius: .32rem; min-height: 38px; padding: .5em 1.1em; }
@media (min-width: 900px) {
  .admin-config-form[data-section="navigation"] .config-row > .config-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-menu-toggle { display: inline-block; color: var(--green); font-weight: 700; }
  .admin-sidebar { display: none; position: fixed; z-index: 3; inset: var(--admin-header) auto 0 0; height: auto; width: min(17rem, 88vw); box-shadow: .4rem 0 1.5rem #1e2b2420; }
  .admin-menu-open .admin-sidebar { display: block; }
  .admin-topbar { padding-inline: .9rem; gap: .65rem; }
  .admin-session { gap: .55rem; padding-inline-start: .65rem; }
  .admin-main { padding-inline: .9rem; }
}
@media (max-width: 430px) {
  .admin-session small { display: none; }
  .admin-card, .admin-list-tools { padding-inline: .7rem; }
  .admin-list-tools .admin-new-entry { padding-inline: .8rem; }
}
