:root {
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #f2f3f5;
  --paper-deep: #e5e6eb;
  --ink: #27254c;
  --ink-2: #4e5969;
  --muted: #5c6370;
  --line: #e5e6eb;
  --line-strong: #c9cdd4;
  --accent: #0958d9;
  --accent-hover: #003eb3;
  --accent-soft: #e8f1ff;
  --green: #0e7a2e;
  --green-soft: #e8ffea;
  --white: #ffffff;

  --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(1.75rem, 2.8vw, 2.25rem);
  --fs-h2: 1.375rem;
  --fs-h3: 1rem;
  --fs-body: 0.875rem;
  --fs-sm: 0.75rem;
  --fs-xs: 0.6875rem;
  --lh-display: 1.25;
  --lh-heading: 1.4;
  --lh-body: 1.65;

  --container: 1320px;
  --gutter: 14px;
  --page-x: 24px;
  --radius: 4px;
  --shadow-card: 0 2px 8px rgba(39, 37, 76, 0.06);
  --shadow-pop: 0 8px 28px rgba(39, 37, 76, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
}

/* ============================================================
   知仓源部落模板素材 · styles.css
   Direction A / paper archive
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 12px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-x);
  position: relative;
  z-index: 2;
}
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------------- header ---------------- */
.utility {
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .12em;
}
.utility .wrap {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility a { color: var(--paper); opacity: .72; }
.utility a:hover { opacity: 1; color: var(--paper); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 229, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
.brand small {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right var(--dur) var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 11px;
  color: var(--ink-2);
}
.search-trigger:hover { border-color: var(--ink); color: var(--ink); }
.search-trigger kbd {
  font-family: var(--font-ui);
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 1px 5px;
  color: var(--muted);
}
.menu-trigger {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 12px var(--page-x) 20px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mobile-nav.is-open { display: block; }

/* ---------------- hero ---------------- */
.hero {
  padding: 76px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 22px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  max-width: 35em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 30px;
}
.hero-sub strong { font-weight: 500; color: var(--ink); }
.search-form {
  display: flex;
  height: 56px;
  max-width: 560px;
  border: 1px solid var(--ink);
  background: var(--white);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.search-form:focus-within {
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 18px;
  font-size: 13px;
  outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
  width: 56px;
  border: 0;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.search-form button:hover { background: var(--accent-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 10px;
  letter-spacing: .04em;
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  color: var(--ink-2);
  background: transparent;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats i { width: 4px; height: 4px; background: var(--accent); display: inline-block; font-style: normal; }

.specimens { position: relative; height: 500px; min-width: 0; }
.specimen {
  position: absolute;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 9px 9px 10px;
  box-shadow: 0 18px 38px -26px rgba(28,26,22,.55);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.specimen img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line); }
.specimen figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.specimen figcaption b { font-weight: 500; color: var(--ink); }
.specimen:nth-child(1) { left: 0; top: 56px; transform: rotate(-5deg); z-index: 1; }
.specimen:nth-child(2) { right: 0; top: 18px; transform: rotate(3.5deg); z-index: 2; }
.specimen:nth-child(3) { left: 82px; bottom: 16px; transform: rotate(-1.5deg); z-index: 3; }
.specimen:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-pop); z-index: 5; }
.specimen:nth-child(1):hover { transform: rotate(0) translate(-4px, -6px); }
.specimen:nth-child(2):hover { transform: rotate(0) translate(4px, -6px); }

/* ---------------- section ---------------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
}
.sec-title { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.sec-num { font-size: 10px; letter-spacing: .2em; color: var(--accent); white-space: nowrap; }
.sec-title h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.sec-sub { font-size: 11px; color: var(--muted); margin-left: 4px; }
.sec-link {
  margin-left: auto;
  font-size: 11px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------------- item cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.item-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: var(--ink); }
.item-card:hover { color: var(--ink); }
.card-media {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 8px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}
.item-card:hover .card-media {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.card-sub {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 2px;
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted);
}
.card-meta .dot { width: 3px; height: 3px; background: var(--line-strong); border-radius: 50%; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
.badge--self { border-color: var(--green); color: var(--green); }
.badge--authorized { border-color: var(--ink-2); color: var(--ink-2); }
.badge--attribution { border-color: var(--accent); color: var(--accent); }

/* latest asymmetric */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }

/* ---------------- scene index ---------------- */
.scene-list { border-top: 1px solid var(--line); }
.scene-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 36px;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.scene-row:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; }
.scene-row h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
.scene-row .scene-en { font-size: 9px; letter-spacing: .18em; color: var(--muted); margin-left: 12px; }
.scene-count { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.scene-arrow { font-size: 16px; color: var(--accent); text-align: right; transition: transform var(--dur) var(--ease); }
.scene-row:hover .scene-arrow { transform: translateX(4px); }
.scene-preview {
  position: absolute;
  right: 120px;
  top: 50%;
  width: 128px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) rotate(-4deg) scale(.96);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.scene-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-row:hover .scene-preview { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }

/* ---------------- collections ---------------- */
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.collection-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.collection-index {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  opacity: .28;
}
.collection-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  margin: 10px 0 8px;
  max-width: 70%;
}
.collection-card p {
  position: relative;
  z-index: 2;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58%;
}
.collection-meta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
}
.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper-2) 0%, rgba(234,227,213,.94) 44%, rgba(234,227,213,0) 78%);
}
.collection-thumbs {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 47%;
  height: 82%;
  opacity: .78;
}
.collection-thumbs img {
  position: absolute;
  width: 74%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 28px -20px rgba(28,26,22,.6);
  background: var(--paper);
}
.collection-thumbs img:nth-child(1) { right: 52%; top: 4%; transform: rotate(-6deg); }
.collection-thumbs img:nth-child(2) { right: 12%; top: 22%; transform: rotate(3deg); }
.collection-thumbs img:nth-child(3) { right: -8%; top: 48%; transform: rotate(-2deg); }

/* ---------------- process ---------------- */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.process-step { border-top: 1px solid var(--ink); padding-top: 16px; }
.process-step .pnum {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.process-step p { font-size: 11.5px; line-height: 1.8; color: var(--muted); }

/* ---------------- license band ---------------- */
.license-band { background: var(--ink); color: var(--paper); padding: 72px 0; }
.license-band .wrap { z-index: 2; }
.license-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.seal {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}
.license-band h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
  margin: 22px 0 14px;
}
.license-band .lead { font-size: 12px; line-height: 1.9; color: rgba(244,239,229,.65); max-width: 30em; }
.license-band .lead a { color: var(--paper); border-bottom: 1px solid rgba(244,239,229,.4); }
.license-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(244,239,229,.16);
}
.license-row:first-child { border-top: 1px solid rgba(244,239,229,.16); }
.license-row b { font-size: 10px; letter-spacing: .12em; color: var(--accent-soft); font-weight: 500; }
.license-row span { font-size: 11.5px; line-height: 1.75; color: rgba(244,239,229,.78); }
.license-band .more { display: inline-block; margin-top: 26px; font-size: 11px; color: var(--paper); border-bottom: 1px solid rgba(244,239,229,.5); padding-bottom: 2px; }

/* ---------------- genealogy ---------------- */
.genealogy { padding: 60px 0; text-align: center; }
.genealogy .seal { margin: 0 auto 16px; width: 42px; height: 42px; font-size: 20px; }
.genealogy p { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.genealogy strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em; }

/* ---------------- page head ---------------- */
.page-head { padding: 44px 0 38px; border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:not([aria-current]) { opacity: .45; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 16px 0 10px;
}
.page-head .lede { max-width: 42em; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
}
.head-meta b { font-weight: 500; color: var(--ink-2); }

/* ---------------- listing ---------------- */
.listing { padding: 36px 0 96px; }
.listing-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.filters { position: sticky; top: 116px; }
.filter-group { border-top: 1px solid var(--line); padding: 15px 0 17px; }
.filter-group:last-child { border-bottom: 1px solid var(--line); }
.filter-group h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.6;
}
.filter-option input {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  margin: 0;
  flex: 0 0 auto;
  position: relative;
}
.filter-option input:checked { background: var(--accent); border-color: var(--accent); }
.filter-option input:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 7px;
  border: solid var(--paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.filter-option:hover { color: var(--ink); }
.filter-count { margin-left: auto; font-size: 9px; color: var(--muted); }
.filter-clear {
  margin-top: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.filter-clear:hover { color: var(--accent); border-color: var(--accent); }
.mobile-filter-bar { display: none; gap: 10px; margin-bottom: 18px; }
.mobile-filter-bar button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 11px;
}
.mobile-filter-bar button:hover { border-color: var(--ink); }

.listing-main { min-width: 0; }
.listing-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.result-count { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.result-count b { font-weight: 600; color: var(--ink); }
.inline-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.inline-search input {
  width: 150px;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: none;
  padding: 2px 0;
}
.inline-search svg { opacity: .45; }
.sort-select {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 0;
  outline: none;
}
.card-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
.empty-state {
  display: none;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.empty-state .chips { justify-content: center; }

/* ---------------- detail ---------------- */
.detail { padding: 36px 0 96px; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .78fr);
  gap: 56px;
  align-items: start;
}
.gallery-main {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 10px;
}
.gallery-main img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.gallery-main .zoom-hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: rgba(28,26,22,.82);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: .08em;
  padding: 5px 9px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb {
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  opacity: .62;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumb:hover { opacity: .9; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--ink); }
.detail-info { position: sticky; top: 112px; }
.detail-catalog { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 10px 0 8px;
}
.detail-sub { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.meta-table { margin: 0 0 18px; }
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
}
.meta-row dt { color: var(--muted); flex: 0 0 auto; }
.meta-row dd { margin: 0; text-align: right; color: var(--ink-2); }
.license-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 10px;
  color: var(--muted);
}
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .04em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.download-btn:hover { background: var(--accent-hover); color: var(--paper); transform: translateY(-1px); }
.download-btn svg { width: 17px; height: 17px; }
.download-note { margin-top: 8px; font-size: 9px; color: var(--muted); text-align: center; }
.includes { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.includes-title { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.includes li { list-style: none; display: flex; gap: 8px; font-size: 10.5px; line-height: 1.8; color: var(--ink-2); }
.includes li::before { content: "·"; color: var(--accent); }
.detail-actions { display: flex; gap: 16px; margin-top: 16px; }
.text-btn { border: 0; background: transparent; padding: 0; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.text-btn:hover { color: var(--accent); border-color: var(--accent); }

.detail-body { max-width: 820px; margin-top: 56px; }
.detail-body > section { padding: 34px 0; border-top: 1px solid var(--line); }
.detail-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}
.detail-body h3 { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin: 18px 0 8px; }
.detail-body p { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); margin-bottom: 12px; }
.detail-body ul { list-style: none; }
.detail-body ul li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.detail-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.note-box { background: var(--paper-2); border-left: 2px solid var(--accent); padding: 16px 18px; font-size: 12px; line-height: 1.9; color: var(--ink-2); }
.license-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.license-table th, .license-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.license-table th { font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.license-table td { color: var(--ink-2); line-height: 1.7; }
.related { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.related .sec-head { margin-bottom: 24px; }
.sticky-download {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(244,239,229,.97);
  border-top: 1px solid var(--line);
  padding: 10px var(--page-x) calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
  align-items: center;
  backdrop-filter: blur(10px);
}
.sticky-download .sd-title { font-size: 11px; line-height: 1.4; flex: 1; min-width: 0; }
.sticky-download .sd-title b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.sticky-download .download-btn { width: auto; padding: 0 18px; height: 44px; flex: 0 0 auto; }

/* ---------------- prose / legal ---------------- */
.prose { max-width: 780px; padding: 48px 0 96px; }
.prose h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.35; margin: 42px 0 14px; }
.prose h3 { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 28px 0 8px; }
.prose p { font-size: 13.5px; line-height: 2; color: var(--ink-2); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { font-size: 13px; line-height: 1.95; color: var(--ink-2); margin-bottom: 6px; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 20px; line-height: 1.7; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 14px 0 20px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.prose td { color: var(--ink-2); line-height: 1.7; }

/* ---------------- about ---------------- */
.about-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; max-width: 12em; }
.about-hero h1 em { font-style: normal; color: var(--accent); }
.about-hero .lede { max-width: 38em; font-size: 14px; line-height: 2; color: var(--ink-2); margin-top: 22px; }
.about-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 64px 0 96px; }
.about-aside { position: sticky; top: 120px; align-self: start; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.about-aside .seal { width: 48px; height: 48px; font-size: 22px; margin-bottom: 14px; }
.about-aside strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); letter-spacing: 0; margin-bottom: 6px; }
.about-aside p { font-size: 10.5px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.lineage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 8px; font-family: var(--font-display); font-size: 17px; }
.lineage span { color: var(--muted); font-family: var(--font-ui); font-size: 12px; }
.lineage b { font-weight: 600; }
.lineage .current { color: var(--accent); }

/* ---------------- changelog ---------------- */
.log { max-width: 900px; padding: 36px 0 96px; }
.log-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.log-date { font-size: 10px; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.log-date b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.log-items { display: grid; gap: 8px; }
.log-item { display: flex; align-items: baseline; gap: 10px; font-size: 12px; line-height: 1.6; }
.log-item .tag { font-size: 8.5px; letter-spacing: .08em; border: 1px solid var(--line-strong); padding: 1px 5px; color: var(--muted); flex: 0 0 auto; }
.log-item a { border-bottom: 1px solid transparent; }
.log-item a:hover { border-color: var(--accent); }
.log-item .log-meta { margin-left: auto; font-size: 9px; color: var(--muted); }

/* ---------------- search overlay ---------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(244,239,229,.985);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}
.search-overlay[hidden] { display: none; }
.search-top { border-bottom: 1px solid var(--line); }
.search-top .wrap { display: flex; align-items: center; gap: 20px; height: 92px; }
.search-top .search-label { font-size: 9px; letter-spacing: .18em; color: var(--muted); white-space: nowrap; }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); }
.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  padding: 10px 0;
  min-width: 0;
}
.search-close { border: 1px solid var(--line-strong); background: transparent; width: 38px; height: 38px; display: grid; place-items: center; }
.search-close:hover { border-color: var(--ink); }
.search-body { overflow: auto; flex: 1; }
.search-inner { max-width: 900px; margin: 0 auto; padding: 24px var(--page-x) 80px; }
.search-hint { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; }
.search-results { border-top: 1px solid var(--line); }
.search-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.search-result:hover, .search-result.is-selected { background: var(--paper-2); }
.search-result img { width: 92px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.search-result h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.search-result p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.search-result .sr-meta { font-size: 9px; color: var(--muted); text-align: right; white-space: nowrap; }
.search-empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 12px; }
.search-empty b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* ---------------- dialog / toast ---------------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(28,26,22,.42); backdrop-filter: blur(3px); }
.modal {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 30px;
  box-shadow: var(--shadow-pop);
}
.modal-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.modal h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.3; }
.modal .modal-sub { font-size: 10px; color: var(--muted); margin-top: 4px; }
.modal-close { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px; }
.modal-license { background: var(--paper-2); border-left: 2px solid var(--accent); padding: 12px 14px; margin: 18px 0; font-size: 11px; line-height: 1.8; color: var(--ink-2); }
.modal-license b { font-weight: 600; color: var(--ink); }
.modal-check { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; line-height: 1.6; color: var(--ink-2); margin: 14px 0 18px; cursor: pointer; }
.modal-check input { margin-top: 3px; accent-color: var(--accent); width: 14px; height: 14px; }
.modal .download-btn { width: 100%; height: 50px; }
.modal .download-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.modal-file { margin-top: 10px; text-align: center; font-size: 9px; color: var(--muted); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 60px 0 20px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { max-width: 26em; font-size: 11px; line-height: 1.9; color: var(--muted); }
.footer-brand .seal { width: 34px; height: 34px; font-size: 16px; margin-top: 16px; }
.footer-title { font-size: 9px; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.footer-col a { display: block; font-size: 11.5px; line-height: 1.9; color: var(--ink-2); padding: 2px 0; min-height: 24px; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { font-size: 10px; line-height: 1.9; color: var(--muted); }
.footer-legal a { display: inline; border-bottom: 1px solid var(--line-strong); }
.footer-legal .footer-icp { color: var(--ink-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted);
}
.footer-bottom .genealogy-line { display: flex; gap: 10px; align-items: center; }
.footer-bottom .genealogy-line b { font-weight: 500; color: var(--ink-2); }

/* ---------------- 404 ---------------- */
.notfound { min-height: 58vh; display: flex; align-items: center; padding: 72px 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 11rem); line-height: .9; color: var(--accent); opacity: .9; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 10px 0 10px; }
.notfound p { font-size: 13px; color: var(--muted); max-width: 32em; margin-bottom: 22px; }
.notfound .chips { margin-top: 18px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .specimens { height: 460px; max-width: 700px; margin: 0 auto; width: 100%; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-info { position: static; }
  .detail-body { max-width: none; }
  .license-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { position: static; }
}
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .card-grid, .card-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-trigger { display: inline-flex; }
  .header-inner { gap: 16px; }
  .header-tools { margin-left: auto; }
  .search-trigger span { display: none; }
  .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; justify-content: center; padding: 0; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 68px 0; }
  .collection-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-step { padding-top: 12px; }
  .listing-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { display: none; position: static; margin-bottom: 26px; padding: 4px 0 0; }
  .filters.is-open { display: block; }
  .mobile-filter-bar { display: flex; }
  .detail-info h1 { font-size: 36px; }
  .sticky-download { display: flex; }
  .detail { padding-bottom: 110px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .utility { font-size: 9px; letter-spacing: .06em; }
  .utility .wrap { height: 28px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 8px; padding-left: 8px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hero-sub { font-size: 13.5px; }
  .hero-grid { gap: 0; }
  .specimens { display: none; }
  .specimen { width: 210px; }
  .specimen:nth-child(1) { left: 0; top: 24px; }
  .specimen:nth-child(2) { right: 0; top: 8px; }
  .specimen:nth-child(3) { left: 44px; bottom: 6px; }
  .section { padding: 56px 0; }
  .sec-head { flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 26px; }
  .sec-title h2 { font-size: 26px; }
  .sec-sub { display: none; }
  .sec-link { margin-left: 0; }
  .card-grid, .card-grid--listing { grid-template-columns: 1fr; gap: 30px; }
  .latest-grid { display: block; }
  .latest-grid .item-card { margin-bottom: 30px; }
  .scene-row { grid-template-columns: 1fr auto; gap: 12px; }
  .scene-row h3 { font-size: 20px; }
  .scene-arrow { display: none; }
  .scene-preview { display: none; }
  .collection-card { min-height: 220px; padding: 22px; }
  .collection-card h3 { font-size: 23px; max-width: 76%; }
  .collection-card p { max-width: 66%; }
  .collection-thumbs { width: 42%; right: -30px; }
  .license-band { padding: 52px 0; }
  .license-band h2 { font-size: 30px; }
  .license-row { grid-template-columns: 78px 1fr; gap: 12px; }
  .page-head { padding: 34px 0 30px; }
  .page-head h1 { font-size: 34px; }
  .listing { padding: 26px 0 72px; }
  .listing-toolbar { gap: 10px; }
  .inline-search { margin-left: 0; width: 100%; }
  .inline-search input { width: 100%; }
  .card-grid--listing { gap: 30px; }
  .detail { padding: 24px 0 110px; }
  .detail-info h1 { font-size: 32px; }
  .detail-body h2 { font-size: 24px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .license-table { font-size: 10.5px; }
  .related .card-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .related .card-title { font-size: 16px; }
  .about-hero { padding: 52px 0 40px; }
  .about-grid { padding: 40px 0 72px; }
  .log-day { grid-template-columns: 1fr; gap: 10px; }
  .search-top .wrap { height: 72px; gap: 12px; }
  .search-top .search-label { display: none; }
  .search-result { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .search-result img { width: 64px; }
  .search-result .sr-meta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; line-height: 2; }
  .modal { padding: 24px 20px; }
  .sticky-download .sd-title b { font-size: 13px; }
  .sticky-download .download-btn { padding: 0 14px; font-size: 11px; }
}

/* ---------------- additions ---------------- */
[hidden] { display: none !important; }
.gallery-main { cursor: zoom-in; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.related-grid .card-title { font-size: 17px; }
.related-grid .card-sub { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(20,18,15,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244,239,229,.4);
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
}
.lightbox-close:hover { border-color: var(--paper); }
.prose details { border-top: 1px solid var(--line); padding: 14px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; font-size: 13px; font-weight: 500; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; float: right; color: var(--accent); }
.prose details[open] summary::after { content: "−"; }
.prose details p { margin-top: 10px; font-size: 12px; }
.listing-note { border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 1100px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .related-grid .card-title { font-size: 15px; }
  .lightbox { padding: 16px; }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 4px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.step b { display: block; font-size: 9px; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 12px; line-height: 1.8; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.modal .download-btn[aria-disabled="true"] {
  opacity: 1;
  background: var(--paper-3);
  border-color: var(--line-strong);
  color: var(--muted);
}

.filter-head { display: none; }
@media (max-width: 900px) {
  .filters {
    display: none;
    position: fixed;
    top: calc(30px + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 18px var(--page-x) 90px;
    background: var(--paper);
    overflow: auto;
    border-top: 1px solid var(--line);
  }
  .filters.is-open { display: block; }
  .filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--muted);
  }
  .filter-close {
    border: 0;
    background: transparent;
    padding: 0 0 2px;
    font-size: 11px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
  }
}
@media (max-width: 768px) {
  .filters { top: calc(28px + var(--header-h)); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.filter-group-title { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; }
.search-result-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }

.search-result p.search-result-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

/* ============================================================
   v2 · ModelScope-inspired catalog
   Loaded after the base styles; overrides palette, type and card layout.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #f2f3f5;
  --paper-deep: #e5e6eb;
  --ink: #27254c;
  --ink-2: #4e5969;
  --muted: #5c6370;
  --line: #e5e6eb;
  --line-strong: #c9cdd4;
  --accent: #0958d9;
  --accent-hover: #003eb3;
  --accent-soft: #e8f1ff;
  --green: #0e7a2e;
  --green-soft: #e8ffea;
  --white: #ffffff;
  --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(1.75rem, 2.8vw, 2.25rem);
  --fs-h2: 1.375rem;
  --fs-h3: 1rem;
  --fs-body: 0.875rem;
  --fs-sm: 0.75rem;
  --fs-xs: 0.6875rem;
  --lh-display: 1.25;
  --lh-heading: 1.4;
  --lh-body: 1.65;
  --radius: 4px;
  --shadow-card: 0 2px 8px rgba(39, 37, 76, 0.06);
  --shadow-pop: 0 8px 28px rgba(39, 37, 76, 0.12);
}

html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
}
body::before { display: none; }
::selection { background: var(--accent); color: #fff; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1320px; padding: 0 24px; }

/* ---------- header ---------- */
.utility { background: #f7f8fa; color: var(--muted); border-bottom: 1px solid #f2f3f5; }
.utility .wrap { height: 32px; }
.utility a { color: var(--muted); }
.utility a:hover { color: var(--accent); }
.site-header {
  background: #fff;
  border-bottom: 1px solid #f2f3f5;
  backdrop-filter: none;
}
.header-inner { height: 60px; gap: 28px; }
.brand { gap: 8px; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6c5ce7 0%, #1677ff 100%);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 auto;
}
.brand strong { font-family: var(--font-ui); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.brand small { font-size: 10px; letter-spacing: .08em; border-left: 1px solid var(--line); padding-left: 8px; color: var(--muted); }
.nav { gap: 26px; }
.nav a { font-size: 13px; color: var(--ink-2); padding: 18px 0; }
.nav a::after { height: 2px; background: var(--accent); bottom: 0; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.header-tools { gap: 8px; }
.header-search {
  display: flex;
  align-items: center;
  width: 256px;
  height: 34px;
  background: #f7f8fa;
  border: 1px solid #f2f3f5;
  border-radius: 4px;
  padding: 0 4px 0 10px;
  color: var(--muted);
}
.header-search:focus-within { border-color: var(--accent); background: #fff; }
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--ink);
  padding: 0 6px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.header-search button:hover { color: var(--accent); background: var(--accent-soft); }
.header-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-hover); color: #fff; }
.search-trigger { display: none; width: 36px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #f7f8fa; }
.search-trigger:hover { border-color: var(--accent); color: var(--accent); }
.menu-trigger { display: none; border: 1px solid var(--line); border-radius: 4px; background: #f7f8fa; }

/* ---------- hero ---------- */
.hero { padding: 46px 0 42px; border-bottom: 1px solid #f2f3f5; background: #fff; overflow: visible; }
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: 52px; align-items: center; }
.eyebrow { font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.eyebrow::before { width: 18px; background: var(--accent); }
.hero h1 {
  font-family: var(--font-ui);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 16px 0 12px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 14px; line-height: 1.8; color: var(--ink-2); max-width: 38em; margin-bottom: 24px; }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.search-form {
  height: 48px;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8fa;
  box-shadow: none;
  transform: none;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: none; }
.search-form input { font-size: 13px; padding: 0 14px; }
.search-form button { width: 48px; background: var(--accent); border-radius: 0 3px 3px 0; }
.search-form button:hover { background: var(--accent-hover); }
.chips { gap: 8px; margin-top: 12px; }
.chip {
  border: 0;
  background: #f2f3f5;
  color: var(--ink-2);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0;
}
.chip:hover { background: var(--accent-soft); color: var(--accent); }
.hero-stats { margin-top: 20px; font-size: 11px; color: var(--muted); gap: 16px; }
.hero-stats i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.specimens { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.specimen {
  position: static;
  width: auto;
  padding: 7px;
  border: 1px solid #f2f3f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.specimen:nth-child(1), .specimen:nth-child(2), .specimen:nth-child(3), .specimen:nth-child(4) { position: static; inset: auto; transform: none; }
.specimen:hover, .specimen:nth-child(1):hover, .specimen:nth-child(2):hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.specimen img { aspect-ratio: 4 / 3; border: 0; border-radius: 8px; background: #f7f8fa; }
.specimen figcaption { padding-top: 6px; font-size: 9px; color: var(--muted); }
.specimen figcaption b { color: var(--ink-2); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 48px 0; border-bottom: 1px solid #f2f3f5; }
.sec-head { margin-bottom: 22px; gap: 14px; }
.sec-title { gap: 10px; }
.sec-num { font-size: 11px; letter-spacing: .04em; color: var(--accent); }
.sec-title h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.sec-sub { font-size: 12px; color: var(--muted); }
.sec-link { font-size: 12px; color: var(--accent); border: 0; padding: 0; }
.sec-link:hover { color: var(--accent-hover); }

/* ---------- cards ---------- */
.card-grid { gap: 14px; }
.item-card {
  background: #fff;
  border: 1px solid #f2f3f5;
  border-radius: 12px;
  padding: 10px;
  gap: 6px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.item-card:hover { transform: translateY(-1px); border-color: var(--line); box-shadow: var(--shadow-card); color: var(--ink); }
.card-media { padding: 0; border: 0; border-radius: 8px; background: #f7f8fa; overflow: hidden; }
.card-media img { border: 0; border-radius: 8px; background: #f7f8fa; }
.card-top { font-size: 9px; letter-spacing: .04em; color: var(--muted); }
.card-title { font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.card-sub { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.card-meta { font-size: 10px; color: var(--muted); gap: 7px; }
.badge { border: 0; background: #f2f3f5; color: var(--ink-2); border-radius: 4px; height: 19px; padding: 0 6px; font-size: 9px; }
.badge--self { background: var(--green-soft); color: var(--green); }
.badge--authorized { background: var(--accent-soft); color: var(--accent); }
.badge--attribution { background: #fff7e8; color: #ad4e00; }

/* latest: four dense rows, ModelScope-like */
.latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.latest-grid .item-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 2px 12px; padding: 10px; }
.latest-grid .card-media { grid-column: 1; grid-row: 1 / 5; margin: 0; align-self: start; }
.latest-grid .card-top, .latest-grid .card-title, .latest-grid .card-sub, .latest-grid .card-meta { grid-column: 2; }
.latest-grid .card-title { font-size: 16px; margin-top: 2px; }
.latest-grid .card-sub { -webkit-line-clamp: 2; }
.latest-grid .card-meta { align-self: end; padding-top: 6px; }

/* ---------- scene index ---------- */
.scene-list { border-top: 1px solid #f2f3f5; }
.scene-row { padding: 12px 8px; border-bottom: 1px solid #f2f3f5; grid-template-columns: 1fr auto 24px; }
.scene-row:hover { background: #f7f8fa; padding-left: 8px; padding-right: 8px; }
.scene-row h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 400; }
.scene-row .scene-en { font-size: 9px; letter-spacing: .08em; color: var(--muted); margin-left: 8px; }
.scene-count { font-size: 11px; color: var(--muted); }
.scene-arrow { color: var(--accent); font-size: 14px; }
.scene-preview { right: 80px; width: 120px; border-radius: 8px; border-color: var(--line); box-shadow: var(--shadow-pop); padding: 4px; }
.scene-preview img { border-radius: 6px; }

/* ---------- collections ---------- */
.collection-grid { gap: 14px; }
.collection-card { background: #fff; border: 1px solid #f2f3f5; border-radius: 12px; padding: 22px; min-height: 210px; }
.collection-card::after { display: none; }
.collection-card:hover { border-color: var(--line); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.collection-index { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--accent); opacity: 1; }
.collection-card h3 { font-family: var(--font-ui); font-size: 19px; font-weight: 500; max-width: 70%; margin: 8px 0 6px; }
.collection-card p { font-size: 11.5px; color: var(--muted); max-width: 58%; }
.collection-meta { font-size: 10px; color: var(--muted); }
.collection-thumbs { opacity: .9; right: -18px; bottom: -22px; width: 44%; height: 78%; }
.collection-thumbs img { border-radius: 6px; border-color: var(--line); box-shadow: 0 6px 18px rgba(39,37,76,.1); }

/* ---------- process ---------- */
.process-grid { gap: 14px; }
.process-step { border: 1px solid #f2f3f5; border-radius: 12px; padding: 18px; background: #fff; }
.process-step .pnum { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--accent); }
.process-step h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 500; margin: 8px 0 4px; }
.process-step p { font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* ---------- license band ---------- */
.license-band { background: #f7f8fa; color: var(--ink); padding: 48px 0; }
.license-grid { gap: 56px; }
.seal { border-radius: 8px; background: linear-gradient(135deg, #6c5ce7 0%, #1677ff 100%); color: #fff; font-family: var(--font-ui); font-size: 22px; font-weight: 600; }
.license-band h2 { font-family: var(--font-ui); font-size: 26px; font-weight: 600; line-height: 1.35; margin: 16px 0 10px; }
.license-band .lead { color: var(--ink-2); font-size: 12px; line-height: 1.8; }
.license-band .lead a { color: var(--accent); border: 0; }
.license-row { border-bottom: 1px solid var(--line); grid-template-columns: 92px 1fr; padding: 12px 0; }
.license-row:first-child { border-top: 1px solid var(--line); }
.license-row b { color: var(--accent); font-size: 10px; }
.license-row span { color: var(--ink-2); font-size: 11.5px; }
.license-band .more { color: var(--accent); border: 0; margin-top: 18px; font-size: 12px; }

/* ---------- genealogy ---------- */
.genealogy { padding: 38px 0; }
.genealogy .seal { width: 36px; height: 36px; font-size: 15px; margin-bottom: 10px; }
.genealogy strong { font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: var(--ink); }
.genealogy p { font-size: 11px; color: var(--muted); }

/* ---------- page head / listing ---------- */
.page-head { padding: 28px 0 22px; border-bottom: 1px solid #f2f3f5; }
.breadcrumb { font-size: 11px; gap: 6px; }
.page-head h1 { font-family: var(--font-ui); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 12px 0 6px; }
.page-head .lede { font-size: 12px; line-height: 1.7; color: var(--muted); }
.head-meta { font-size: 11px; color: var(--muted); margin-top: 10px; }
.head-meta b { color: var(--ink-2); }
.listing { padding: 24px 0 64px; }
.listing-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.filters { top: 84px; border-top: 0; }
.filter-group { padding: 12px 0; border-top: 0; border-bottom: 1px solid #f2f3f5; }
.filter-group:last-child { border-bottom: 0; }
.filter-group-title { font-size: 11px; letter-spacing: .04em; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; text-transform: none; }
.filter-option { font-size: 12px; color: var(--ink-2); padding: 3px 0; }
.filter-option input { border-radius: 2px; border-color: var(--line-strong); }
.filter-option input:checked { background: var(--accent); border-color: var(--accent); }
.filter-count { font-size: 10px; }
.filter-clear { font-size: 11px; color: var(--muted); border: 0; }
.listing-toolbar { padding-bottom: 12px; border-bottom: 1px solid #f2f3f5; margin-bottom: 18px; }
.result-count { font-size: 11px; }
.inline-search { border: 1px solid #f2f3f5; background: #f7f8fa; border-radius: 4px; padding: 0 8px; height: 30px; }
.inline-search input { width: 150px; font-size: 11px; }
.sort-select { font-size: 11px; color: var(--ink-2); height: 30px; border: 1px solid #f2f3f5; border-radius: 4px; padding: 0 6px; background: #fff; }
.card-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-grid--listing .item-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 2px 12px; padding: 10px; }
.card-grid--listing .card-media { grid-column: 1; grid-row: 1 / 5; margin: 0; align-self: start; }
.card-grid--listing .card-top, .card-grid--listing .card-title, .card-grid--listing .card-sub, .card-grid--listing .card-meta { grid-column: 2; }
.card-grid--listing .card-title { font-size: 16px; margin-top: 2px; }
.card-grid--listing .card-meta { align-self: end; padding-top: 6px; }
.mobile-filter-bar button { height: 32px; border-radius: 4px; border-color: var(--line); font-size: 11px; }
.listing-note { color: var(--muted); }

/* ---------- detail ---------- */
.detail { padding: 22px 0 64px; }
.detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 36px; }
.gallery-main { padding: 8px; border: 1px solid #f2f3f5; border-radius: 12px; background: #f7f8fa; }
.gallery-main img { border: 0; border-radius: 8px; }
.gallery-main .zoom-hint { right: 16px; bottom: 16px; background: rgba(39,37,76,.72); border-radius: 4px; font-size: 9px; padding: 4px 8px; }
.gallery-thumbs { gap: 8px; margin-top: 8px; }
.gallery-thumb { padding: 4px; border: 1px solid #f2f3f5; border-radius: 8px; background: #f7f8fa; }
.gallery-thumb img { border-radius: 5px; }
.gallery-thumb.is-active { border-color: var(--accent); }
.detail-info { top: 84px; }
.detail-catalog { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.detail-info h1 { font-family: var(--font-ui); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 8px 0 6px; }
.detail-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.meta-table { margin-bottom: 14px; }
.meta-row { padding: 6px 0; border-bottom: 1px solid #f2f3f5; font-size: 11px; }
.meta-row dt { color: var(--muted); }
.meta-row dd { color: var(--ink-2); }
.license-line { font-size: 10px; margin-bottom: 12px; }
.download-btn { height: 42px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); font-size: 12px; }
.download-btn:hover { background: var(--accent-hover); color: #fff; }
.download-note { font-size: 9px; color: var(--muted); }
.includes { border-top: 1px solid #f2f3f5; margin-top: 16px; padding-top: 12px; }
.includes-title { font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.includes li { font-size: 11px; color: var(--ink-2); }
.detail-actions { margin-top: 12px; }
.text-btn { font-size: 10px; color: var(--muted); border: 0; }
.detail-body { max-width: 900px; margin-top: 28px; }
.detail-body > section { padding: 22px 24px; border: 1px solid #f2f3f5; border-radius: 12px; background: #fff; margin-bottom: 14px; }
.detail-body h2 { font-family: var(--font-ui); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.detail-body h3 { font-size: 11px; color: var(--muted); }
.detail-body p { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.detail-body ul li { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.note-box { border: 0; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-soft); font-size: 11.5px; color: var(--ink-2); padding: 12px 14px; }
.license-table { font-size: 11px; }
.license-table th { font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.license-table td { font-size: 11px; color: var(--ink-2); }
.steps { gap: 14px; }
.step { border: 1px solid #f2f3f5; border-radius: 8px; padding: 12px; border-top: 1px solid #f2f3f5; }
.step b { color: var(--accent); font-size: 10px; letter-spacing: .04em; }
.step p { font-size: 11px; }
.related { margin-top: 36px; padding-top: 22px; border-top: 1px solid #f2f3f5; }
.related-grid { gap: 12px; }
.related-grid .card-title { font-size: 14px; }
.sticky-download { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.sticky-download .sd-title b { font-family: var(--font-ui); font-size: 13px; font-weight: 500; }

/* detail tabs */
.detail-tabs { display: flex; gap: 24px; border-bottom: 1px solid #f2f3f5; margin-top: 14px; }
.detail-tabs a { padding: 10px 0; font-size: 13px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.detail-tabs a:hover, .detail-tabs a.active { color: var(--accent); border-color: var(--accent); }

/* ---------- prose ---------- */
.prose h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 600; margin: 28px 0 10px; }
.prose h3 { font-size: 11px; color: var(--muted); }
.prose p, .prose li { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.prose a { color: var(--accent); border: 0; }
.prose blockquote { border-left: 3px solid var(--accent); font-family: var(--font-ui); font-size: 17px; }
.prose table { font-size: 12px; }
.prose th { font-size: 10px; color: var(--muted); }
.prose td { font-size: 12px; color: var(--ink-2); }
.about-hero { padding: 48px 0 32px; }
.about-hero h1 { font-family: var(--font-ui); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.about-hero h1 em { color: var(--accent); }
.about-hero .lede { font-size: 13px; color: var(--muted); }
.about-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding: 36px 0 64px; }
.about-aside { top: 84px; }
.about-aside strong { font-family: var(--font-ui); font-size: 15px; }
.lineage { font-family: var(--font-ui); font-size: 15px; }
.lineage .current { color: var(--accent); }

/* ---------- changelog ---------- */
.log { padding: 22px 0 64px; }
.log-day { grid-template-columns: 130px minmax(0, 1fr); padding: 16px 0; }
.log-date { font-size: 11px; color: var(--muted); }
.log-date b { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--ink); }
.log-item { font-size: 12px; }
.log-item .tag { border: 0; background: #f2f3f5; color: var(--ink-2); border-radius: 4px; font-size: 9px; }
.log-item a:hover { color: var(--accent); }
.log-meta { font-size: 9px; }

/* ---------- search ---------- */
.search-overlay { background: rgba(255,255,255,.99); backdrop-filter: blur(6px); }
.search-top { border-bottom: 1px solid #f2f3f5; }
.search-top .wrap { height: 72px; }
.search-label { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.search-field { border-bottom: 1px solid var(--line); }
.search-field input { font-family: var(--font-ui); font-size: 24px; font-weight: 500; padding: 8px 0; }
.search-close { border: 1px solid var(--line); border-radius: 4px; background: #f7f8fa; }
.search-result { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 10px 8px; border-bottom: 1px solid #f2f3f5; }
.search-result img { width: 72px; border-radius: 6px; border-color: #f2f3f5; }
.search-result:hover, .search-result.is-selected { background: #f7f8fa; }
.search-result-title { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--ink); }
.search-result p { font-size: 10px; color: var(--muted); }
.search-result .sr-meta { font-size: 10px; }
.search-empty b { font-family: var(--font-ui); font-size: 18px; font-weight: 500; }

/* ---------- dialog / toast ---------- */
dialog::backdrop { background: rgba(39,37,76,.36); }
.modal { border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow-pop); padding: 24px; }
.modal h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 600; }
.modal .modal-sub { font-size: 11px; color: var(--muted); }
.modal-license { border: 0; border-radius: 8px; background: #f7f8fa; border-left: 3px solid var(--accent); font-size: 11px; color: var(--ink-2); }
.modal-license b { color: var(--ink); }
.modal-check { font-size: 11px; color: var(--ink-2); }
.modal .download-btn { height: 42px; border-radius: 4px; }
.modal .download-btn[aria-disabled="true"] { background: #f2f3f5; border-color: #f2f3f5; color: var(--muted); }
.modal-file { font-size: 9px; color: var(--muted); }
.toast { background: var(--ink); border-radius: 4px; font-size: 11px; }

/* ---------- footer ---------- */
.site-footer { background: #f7f8fa; border-top: 1px solid #f2f3f5; padding: 38px 0 16px; }
.footer-grid { gap: 32px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 11px; color: var(--muted); }
.footer-brand .seal { width: 30px; height: 30px; font-size: 13px; margin-top: 12px; }
.footer-title { font-size: 11px; letter-spacing: .02em; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.footer-col a { font-size: 12px; color: var(--muted); padding: 1px 0; min-height: 24px; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { font-size: 10.5px; color: var(--muted); }
.footer-legal a { border-bottom: 1px solid var(--line); }
.footer-bottom { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound .code { font-family: var(--font-ui); font-size: 96px; font-weight: 600; color: var(--accent); opacity: .18; }
.notfound h1 { font-family: var(--font-ui); font-size: 30px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { gap: 32px; }
  .header-search { width: 210px; }
  .latest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .card-grid--listing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-search { display: none; }
  .search-trigger { display: inline-grid; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .specimens { max-width: 620px; margin: 0 auto; }
  .latest-grid { grid-template-columns: 1fr; }
  .listing-layout { gap: 0; }
  .detail-tabs { overflow-x: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 56px; }
  .brand strong { font-size: 16px; }
  .brand small { display: none; }
  .hero { padding: 32px 0 30px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 13px; }
  .specimens { display: none; }
  .section { padding: 34px 0; }
  .sec-title h2 { font-size: 19px; }
  .latest-grid .item-card, .card-grid--listing .item-card { grid-template-columns: 108px minmax(0, 1fr); }
  .latest-grid .card-title, .card-grid--listing .card-title { font-size: 14px; }
  .latest-grid .card-sub, .card-grid--listing .card-sub { display: none; }
  .page-head h1 { font-size: 24px; }
  .detail-info h1 { font-size: 24px; }
  .detail-body > section { padding: 18px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* listing head */
.header-search > span { display: grid; place-items: center; color: var(--muted); }
.ms-page-head { background: #fff; border-bottom: 1px solid #f2f3f5; padding: 22px 0 0; }
.ms-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 10px; }
.ms-head-row h1 { font-family: var(--font-ui); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ms-head-row p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.ms-head-count { font-size: 11px; color: var(--muted); white-space: nowrap; padding-bottom: 3px; }
.ms-search { display: flex; height: 44px; max-width: 720px; margin-top: 18px; border: 1px solid #f2f3f5; border-radius: 4px; background: #f7f8fa; }
.ms-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.ms-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 14px; font-size: 13px; }
.ms-search button { width: 76px; border: 0; background: var(--accent); color: #fff; font-size: 12px; border-radius: 0 3px 3px 0; }
.ms-tabs { display: flex; gap: 24px; margin-top: 14px; }
.ms-tabs a { padding: 10px 0; font-size: 13px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.ms-tabs a.active { color: var(--accent); border-color: var(--accent); }
.ms-tabs a:hover { color: var(--accent); }
.detail-tabs { margin-top: 8px; }
@media (max-width: 640px) {
  .ms-head-row h1 { font-size: 24px; }
  .ms-search { height: 40px; }
  .ms-tabs { gap: 16px; overflow-x: auto; white-space: nowrap; }
  .ms-tabs a { font-size: 12px; }
}

.card-size { margin-left: auto; color: var(--accent); white-space: nowrap; }

/* responsive fixes that must come after the v2 desktop rules */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-info { position: static; }
  .detail-body { max-width: none; }
}
@media (max-width: 900px) {
  .menu-trigger { display: inline-grid; }
  .header-search { display: none; }
  .header-cta { display: none; }
  .search-trigger { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; }
}
@media (max-width: 640px) {
  .ms-head-count { display: none; }
  .collection-thumbs { display: none; }
  .card-grid--listing .card-size { display: none; }
  .detail-tabs { margin-top: 2px; }
}

/* accessibility fixes */
.utility a { opacity: 1; font-size: 10px; }
.utility .wrap { font-size: 10px; }
.breadcrumb a, .breadcrumb span[aria-current] { display: inline-flex; align-items: center; min-height: 24px; }

.license-band .lead a { text-decoration: underline; text-underline-offset: 2px; }

.prose a { text-decoration: underline; text-underline-offset: 2px; }

.notfound .code { opacity: 1; color: var(--accent); }

.collection-card h3 { margin-top: 0; }
.process-step h3 { margin-top: 0; }
