:root {
  --ink: #dfe5e5;
  --muted: #899396;
  --faint: #596467;
  --canvas: #111518;
  --surface: #181e21;
  --surface-raised: #20282b;
  --line: #2e393c;
  --accent: #d3a75f;
  --accent-soft: #76613d;
  --red: #b85d4e;
  --green: #76a48d;
  --sans: "Segoe UI", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
}

button, input { font: inherit; }
button { color: inherit; }

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.app-shell { min-height: 100vh; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #13191c;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 10px/1 var(--sans);
  letter-spacing: 1px;
}

.brand-name, .brand-subtitle { display: block; }
.brand-name { font: 700 15px/1.3 var(--serif); letter-spacing: .08em; }
.brand-subtitle { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .2em; }

.topbar-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.build-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 10px; letter-spacing: .12em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(118, 164, 141, .12); }
.edition { padding-left: 18px; border-left: 1px solid var(--line); }
.work-navigation { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-link, .work-link { color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.topbar-link:hover, .work-link:hover, .work-link.is-active { color: var(--accent); }
.work-navigation-items { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-status { margin-left: 4px; color: var(--faint); font-size: 9px; }

.works-home { min-height: calc(100vh - 76px); border-bottom: 1px solid var(--line); background: #13191c; }
.works-home-shell { max-width: 1180px; margin: 0 auto; padding: 76px clamp(22px, 6vw, 88px) 92px; }
.works-home h1 { margin: 14px 0 14px; font: 700 clamp(34px, 5vw, 64px)/1.08 var(--serif); letter-spacing: .02em; }
.works-home-lede { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.work-card { position: relative; display: flex; min-height: 230px; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.work-card:hover, .work-card:focus-visible { border-color: var(--accent); background: var(--surface-raised); transform: translateY(-2px); outline: none; }
.work-card.is-planned { color: var(--muted); background: #151a1d; }
.work-card-kicker { color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.work-card h2 { margin: 24px 0 10px; font: 700 30px/1.15 var(--serif); }
.work-card p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.work-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.work-card-meta b { color: var(--ink); font-weight: 500; }
.work-card-arrow { position: absolute; right: 24px; top: 24px; color: var(--accent); font-size: 21px; }
.planned-work-view { min-height: calc(100vh - 76px); background: #13191c; }
.planned-work-shell { max-width: 820px; margin: 0 auto; padding: 88px clamp(22px, 6vw, 88px); }
.planned-work-shell h1 { margin: 15px 0; font: 700 clamp(34px, 5vw, 56px)/1.1 var(--serif); }
.planned-work-lede { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.planned-work-note { display: flex; gap: 14px; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.planned-work-note strong { font: 700 17px var(--serif); }
.planned-work-note p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.planned-work-shell--framework { max-width: 1120px; }
.framework-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.framework-status strong { color: var(--ink); font-size: 12px; font-weight: 500; }
.framework-status > span:last-child { color: var(--faint); }
.framework-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 44px 0 72px; border: 1px solid var(--line); background: var(--line); }
.framework-stat { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; padding: 17px 18px; background: var(--surface); }
.framework-stat strong { color: var(--ink); font: 700 38px/1 var(--serif); }
.framework-stat span { color: var(--muted); font-size: 11px; }
.framework-stat.is-primary strong { color: var(--accent); }
.framework-section { margin-top: 64px; }
.framework-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.framework-section-heading h2 { margin: 10px 0 0; font: 700 28px/1.15 var(--serif); }
.framework-section-count { color: var(--muted); font-size: 11px; }
.framework-faction-list { border-bottom: 1px solid var(--line); }
.framework-faction-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px 76px; gap: 24px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); }
.framework-faction-row:last-child { border-bottom: 0; }
.framework-faction-name { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; align-items: start; min-width: 0; }
.framework-index { color: var(--accent); font: 11px var(--sans); letter-spacing: .1em; }
.framework-faction-name h3 { margin: 0; color: var(--ink); font: 700 18px/1.3 var(--serif); }
.framework-faction-name p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.framework-tier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.framework-tier span { display: flex; min-height: 45px; flex-direction: column; justify-content: space-between; padding: 7px 8px; border-left: 1px solid var(--line); }
.framework-tier b { color: var(--ink); font: 700 19px/1 var(--serif); }
.framework-tier small { color: var(--faint); font-size: 9px; }
.framework-total { padding-left: 14px; border-left: 1px solid var(--line); text-align: right; }
.framework-total strong { display: block; color: var(--accent); font: 700 24px/1 var(--serif); }
.framework-total span { color: var(--faint); font-size: 9px; }
.framework-rules ul { display: grid; gap: 10px; margin: 0; padding: 20px 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.framework-rules li::marker { color: var(--accent); }
.text-link { color: var(--accent); font-size: 12px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.workspace { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 76px); }

.sidebar { display: flex; flex-direction: column; padding: 34px 20px 24px; border-right: 1px solid var(--line); background: #151a1d; }
.sidebar-intro { padding: 0 12px; }
.eyebrow, .section-label { color: var(--accent); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.sidebar h1 { margin: 15px 0 14px; font: 700 26px/1.26 var(--serif); letter-spacing: .03em; }
.sidebar-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.side-nav { display: grid; gap: 3px; margin: 38px 0 32px; }
.nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.nav-item.is-active { border-color: var(--line); background: var(--surface-raised); color: var(--ink); }
.nav-item.is-active .nav-icon { color: var(--accent); }
.nav-icon { color: var(--faint); font-size: 16px; }
.nav-count { color: var(--faint); font: 11px var(--sans); }

.sidebar-section { padding: 22px 12px; border-top: 1px solid var(--line); }
.scope-stat { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; }
.scope-stat strong { color: var(--ink); font: 700 24px/1 var(--serif); }
.scope-stat span { color: var(--muted); font-size: 11px; }
.format-row { display: flex; justify-content: space-between; padding-top: 13px; color: var(--muted); font-size: 11px; }
.format-row b { color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.sidebar-footnote { display: flex; align-items: center; gap: 9px; margin: auto 12px 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.signal-line { width: 24px; height: 1px; background: var(--accent); }

.catalog { min-width: 0; padding: 40px clamp(22px, 4vw, 64px) 64px; }
.catalog-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.catalog h2 { margin: 9px 0 0; font: 700 clamp(28px, 3vw, 42px)/1 var(--serif); letter-spacing: .02em; }
.catalog-actions { display: flex; align-items: center; gap: 8px; }
.collection-switcher { display: flex; gap: 2px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 8px; min-width: min(310px, 45vw); padding: 9px 11px; border: 1px solid var(--line); background: var(--surface); }
.search-icon { color: var(--accent); font-size: 19px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: var(--faint); }
.icon-button, .close-button { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-button { width: 38px; height: 38px; font-size: 20px; }
.icon-button:hover, .close-button:hover { border-color: var(--accent); color: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 33px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.secondary-toolbar { display: flex; justify-content: space-between; gap: 14px; margin: -10px 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.filter-pill { border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.filter-pill { padding: 6px 9px; }
.filter-pill:hover { color: var(--ink); }
.filter-pill.is-active { border-color: var(--accent-soft); color: var(--accent); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.asset-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.asset-card:hover, .asset-card:focus-visible { border-color: var(--accent-soft); background: var(--surface-raised); transform: translateY(-2px); }
.asset-card.is-selected { border-color: var(--accent); background: var(--surface-raised); box-shadow: inset 0 0 0 1px rgba(211,167,95,.18); }
.asset-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.asset-visual { position: relative; overflow: hidden; background: #20282a; aspect-ratio: 2 / 3; }
.asset-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: saturate(.88); }
.asset-visual::after { position: absolute; inset: 0; content: ""; pointer-events: none; border: 1px solid rgba(255,255,255,.06); }
.visual-index { position: absolute; right: 10px; bottom: 9px; z-index: 1; color: rgba(255,255,255,.62); font: 10px var(--sans); letter-spacing: .1em; }
.placeholder-visual { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; background: radial-gradient(circle at 58% 34%, #384244, #20282a 58%, #14191b 100%); }
.placeholder-visual::before, .placeholder-visual::after { position: absolute; content: ""; border: 1px solid rgba(211,167,95,.27); transform: rotate(45deg); }
.placeholder-visual::before { width: 160px; height: 160px; }
.placeholder-visual::after { width: 230px; height: 230px; }
.placeholder-content { position: relative; z-index: 1; text-align: center; }
.placeholder-star { color: var(--accent); font-size: 11px; letter-spacing: .18em; }
.placeholder-name { margin: 14px 0 8px; color: var(--ink); font: 700 30px/1 var(--serif); }
.placeholder-copy { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.asset-meta { padding: 14px 14px 15px; }
.asset-title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.asset-name { margin: 0; color: var(--ink); font: 700 17px/1.2 var(--serif); }
.asset-rank { color: var(--accent); font-size: 10px; }
.asset-epithet { margin-top: 5px; color: var(--muted); font-size: 11px; }
.asset-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--faint); font-size: 10px; }
.asset-footer span:last-child { color: var(--green); }

.empty-state { padding: 70px 20px; border: 1px dashed var(--line); text-align: center; }
.empty-mark { color: var(--accent); font-size: 28px; }
.empty-state h3 { margin: 14px 0 6px; font: 700 21px var(--serif); }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.detail-panel { position: fixed; z-index: 5; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); overflow-y: auto; padding: 28px 30px 44px; border-left: 1px solid var(--line); background: #171d20; box-shadow: -24px 0 60px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .25s ease; }
.detail-panel.is-open { transform: translateX(0); }
.close-button { width: 34px; height: 34px; margin-left: auto; font-size: 23px; line-height: 1; }
.detail-kicker { margin-top: 32px; color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.detail-title { margin: 9px 0 5px; font: 700 36px/1.1 var(--serif); }
.detail-subtitle { color: var(--muted); font-size: 13px; }
.detail-visual { margin: 24px 0; aspect-ratio: 16 / 9; overflow: hidden; background: #20282a; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual .placeholder-visual { position: relative; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-action { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; font-size: 11px; line-height: 1.35; text-decoration: none; }
.detail-action:hover, .detail-action:focus-visible { border-color: var(--accent); background: rgba(211,167,95,.08); color: var(--accent); outline: none; }
.detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 13px; color: var(--accent); font-size: 10px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; }
.detail-section p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.8; }
.recognition-section { border-top-color: var(--accent-soft); background: rgba(211,167,95,.035); }
.research-pending { border-left: 2px solid var(--red); padding-left: 12px; }
.source-evidence-list { display: grid; gap: 10px; }
.source-evidence { padding: 11px 12px; border-left: 2px solid var(--green); background: rgba(118,164,141,.06); }
.source-evidence p { margin: 0 0 8px; }
.source-evidence a { color: var(--accent); font-size: 10px; text-decoration: none; }
.source-evidence a:hover { text-decoration: underline; }
.anchor-group { margin-bottom: 13px; }
.anchor-group > span { display: block; margin-bottom: 6px; color: var(--faint); font-size: 10px; letter-spacing: .08em; }
.anchor-group > div { display: block; color: var(--ink); font-size: 11px; line-height: 1.8; }
.anchor-group b { display: inline; padding: 0; border: 0; color: var(--ink); font-size: 11px; font-weight: 500; line-height: inherit; }
.anchor-group b:not(:last-child)::after { content: " / "; color: var(--faint); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; }
.detail-field span { display: block; margin-bottom: 4px; color: var(--faint); font-size: 10px; }
.detail-field b { color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.55; }
.biography-section { background: rgba(211,167,95,.035); }
.biography-block { margin-bottom: 15px; }
.biography-block span, .moment-list > span { display: block; margin-bottom: 5px; color: var(--faint); font-size: 10px; letter-spacing: .08em; }
.biography-block p { color: var(--ink); }
.moment-list > div { display: flex; flex-wrap: wrap; gap: 6px; }
.moment-list b { padding: 5px 7px; border: 1px solid var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 500; }
.asset-plan-list { display: grid; gap: 8px; }
.asset-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--ink); font-size: 11px; }
.asset-plan-row b { color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: .05em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.evidence-list { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence { padding: 5px 7px; color: var(--green); background: rgba(118,164,141,.1); font-size: 10px; }
.prompt-box { padding: 12px; border-left: 2px solid var(--accent); background: #13191b; color: var(--muted); font-size: 11px; line-height: 1.7; }
.asset-status-list { display: grid; gap: 7px; }

@media (max-width: 960px) {
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .catalog { padding-inline: 28px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { padding: 0 18px; }
  .edition { display: none; }
  .workspace { display: block; }
  .sidebar { display: none; }
  .catalog { padding: 26px 16px 48px; }
  .catalog-header { display: block; }
  .catalog-actions { margin-top: 22px; }
  .collection-switcher { overflow-x: auto; }
  .search-box { flex: 1; min-width: 0; }
  .toolbar { display: block; }
  .ratio-switcher { margin-top: 14px; }
  .secondary-toolbar { display: block; }
  .secondary-toolbar .filter-pills + .filter-pills { margin-top: 10px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asset-meta { padding: 11px; }
  .asset-name { font-size: 15px; }
  .asset-footer { display: block; line-height: 1.7; }
  .detail-panel { padding-inline: 20px; }
}

@media (max-width: 720px) {
  .work-navigation { max-width: 42vw; overflow-x: auto; }
  .work-navigation-items { gap: 8px; }
  .work-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .work-card { min-height: 200px; padding: 20px; }
  .work-card h2 { margin-top: 20px; font-size: 26px; }
  .works-home-shell, .planned-work-shell { padding-top: 48px; padding-bottom: 56px; }
  .framework-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 34px 0 54px; }
  .framework-stat { min-height: 92px; }
  .framework-stat strong { font-size: 31px; }
  .framework-section { margin-top: 48px; }
  .framework-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .framework-faction-row { grid-template-columns: minmax(0, 1fr) 58px; gap: 14px; }
  .framework-tier { grid-column: 1 / -1; grid-row: 2; }
  .framework-total { grid-column: 2; grid-row: 1; }
  .framework-faction-name { grid-column: 1; grid-row: 1; }
}

@media (max-width: 390px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.loading-state[hidden] { display: none; }
.ink-stroke { display: block; width: 42px; height: 1px; margin-top: 4px; background: var(--accent); opacity: .8; }
.site-footer { padding: 54px clamp(22px, 4vw, 64px) 24px; border-top: 1px solid var(--line); background: #13191c; }
.site-footer-main { display: flex; justify-content: space-between; gap: 32px; max-width: 1180px; margin: 0 auto; }
.site-footer-copy { max-width: 620px; }
.site-footer-copy h2 { margin: 13px 0 10px; font: 700 24px/1.2 var(--serif); }
.site-footer-copy p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.contact-card { display: flex; align-items: center; gap: 14px; min-width: 190px; }
.contact-qr { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--line); background: var(--surface); }
.contact-card img { width: 70px; height: 70px; object-fit: cover; }
.contact-qr-fallback { padding: 8px; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.contact-card strong, .contact-card span { display: block; }
.contact-card strong { font-size: 12px; }
.contact-card span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 34px auto 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-visual { aspect-ratio: 2 / 3; }
.detail-visual img { object-fit: contain; }
.asset-title-line, .asset-meta, .asset-footer, .asset-footer span, .detail-section, .detail-field, .anchor-group, .anchor-group > div, .asset-plan-row { min-width: 0; }
.asset-title-line { min-width: 0; }
.asset-title-line { align-items: flex-start; }
.asset-name { flex: 1 1 auto; min-width: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.asset-footer { align-items: flex-start; line-height: 1.5; }
.asset-footer span { flex: 1 1 0; overflow-wrap: anywhere; }
.asset-footer span:last-child { text-align: right; }
.detail-title, .detail-subtitle, .detail-section p, .detail-field b, .prompt-box, .asset-plan-row span, .asset-plan-row b { min-width: 0; overflow-wrap: anywhere; }
.detail-title { line-height: 1.2; }
.detail-subtitle { line-height: 1.6; }
.prompt-box { white-space: pre-wrap; word-break: normal; line-height: 1.85; }
.prompt-empty { color: var(--faint) !important; font-size: 11px !important; line-height: 1.7 !important; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member-card { min-width: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.member-card:hover, .member-card:focus-visible { border-color: var(--accent); outline: none; }
.member-card-reserved { cursor: default; opacity: .82; }
.member-card-reserved:hover { border-color: var(--line); }
.member-card-visual { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #20282a; }
.member-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.member-card-reserved .member-card-visual { display: grid; place-items: center; padding: 10px; background: radial-gradient(circle at center, #303a3d, #171d20 72%); }
.reserved-slot-mark { color: var(--accent); font-size: 9px; letter-spacing: .12em; text-align: center; }
.member-card-meta { display: block; min-width: 0; padding: 8px; }
.member-card-meta b, .member-card-meta small { display: block; min-width: 0; overflow-wrap: anywhere; }
.member-card-meta b { font: 700 13px/1.25 var(--serif); }
.member-card-meta small { margin-top: 4px; color: var(--faint); font-size: 9px; line-height: 1.4; }
.asset-visual.is-image-error, .detail-visual.is-image-error { display: grid; place-items: center; }
.asset-visual.is-image-error::before, .detail-visual.is-image-error::before { content: "暂无视觉资产"; color: var(--faint); font-size: 11px; letter-spacing: .12em; }

@media (max-width: 720px) {
  .site-footer-main, .site-footer-bottom { display: block; }
  .contact-card { margin-top: 24px; }
  .site-footer-bottom span { display: block; margin-top: 7px; }
}

/* Shared work navigation and the first world-state views. */
.topbar {
  display: grid;
  grid-template-areas: "brand navigation meta";
  grid-template-columns: minmax(250px, 1fr) auto auto;
  column-gap: clamp(20px, 3vw, 44px);
  min-height: 72px;
  padding-inline: clamp(20px, 3vw, 44px);
}
.brand { grid-area: brand; min-width: 0; }
.work-navigation { grid-area: navigation; justify-self: end; gap: 22px; }
.work-navigation-items { gap: 20px; }
.topbar-link, .work-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1;
}
.topbar-link:hover, .topbar-link.is-active, .work-link:hover, .work-link.is-active { color: var(--accent); }
.topbar-link.is-active, .work-link.is-active { border-bottom: 1px solid var(--accent); }
.topbar-meta { grid-area: meta; white-space: nowrap; }
.world-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}
.world-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.world-link:hover, .world-link.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.world-view { min-height: calc(100vh - 72px); border-bottom: 1px solid var(--line); background: #13191c; }
.world-view-shell { max-width: 1120px; margin: 0 auto; padding: 48px clamp(22px, 6vw, 88px) 84px; }
.world-view-switch { display: flex; gap: 18px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.world-view-switch-link { padding: 0 0 10px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11px; text-decoration: none; }
.world-view-switch-link:hover, .world-view-switch-link.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.world-view-shell h1 { margin: 14px 0 14px; font: 700 clamp(34px, 5vw, 58px)/1.1 var(--serif); letter-spacing: .02em; }
.world-view-lede { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.world-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.world-status strong { color: var(--ink); font-weight: 500; }
.world-status span:last-child { color: var(--faint); }
.world-section { margin-top: 66px; }
.world-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.world-section-heading h2 { margin: 9px 0 0; font: 700 28px/1.2 var(--serif); }
.world-section-count { color: var(--faint); font-size: 10px; white-space: nowrap; }
.relationship-map { border-top: 1px solid var(--line); }
.relationship-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, .8fr) minmax(160px, 1fr); gap: 20px; align-items: center; min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.relationship-node { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 0; }
.relationship-node > span { grid-row: 1 / 3; color: var(--accent); font: 12px var(--sans); }
.relationship-node strong { min-width: 0; color: var(--ink); font: 700 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.relationship-node small { margin-top: 4px; color: var(--faint); font: 9px var(--sans); overflow-wrap: anywhere; }
.relationship-node--target { text-align: right; }
.relationship-node--target > span { grid-column: 2; }
.relationship-node--target strong, .relationship-node--target small { grid-column: 1; }
.relationship-node--target strong { grid-row: 1; }
.relationship-node--target small { grid-row: 2; }
.relationship-edge { position: relative; display: grid; gap: 7px; min-width: 0; text-align: center; }
.relationship-line { position: absolute; top: -2px; left: 0; right: 0; height: 1px; background: var(--accent-soft); }
.relationship-edge b { position: relative; justify-self: center; padding: 4px 9px; border: 1px solid var(--accent-soft); background: #13191c; color: var(--accent); font-size: 11px; font-weight: 500; }
.relationship-edge small { color: var(--faint); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.timeline-list { position: relative; display: grid; gap: 0; }
.timeline-list::before { position: absolute; top: 14px; bottom: 14px; left: 14px; width: 1px; content: ""; background: var(--accent-soft); }
.timeline-phase { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 20px; padding-bottom: 42px; }
.timeline-phase:last-child { padding-bottom: 0; }
.timeline-phase-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--accent); background: #13191c; color: var(--accent); font: 10px var(--sans); }
.timeline-phase-content { min-width: 0; }
.timeline-phase-content h3 { margin: 7px 0 16px; color: var(--ink); font: 700 22px/1.3 var(--serif); }
.timeline-events { display: grid; gap: 10px; }
.timeline-event { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.timeline-event-top, .timeline-event-footer, .timeline-participants { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.timeline-event-top { color: var(--faint); font-size: 10px; }
.timeline-event h3 { margin: 10px 0 7px; color: var(--ink); font: 700 19px/1.3 var(--serif); }
.timeline-event p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.timeline-event-footer, .timeline-participants { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); color: var(--faint); font-size: 10px; }
.timeline-event-footer b { max-width: 78%; color: var(--ink); font-size: 11px; font-weight: 500; text-align: right; }
.timeline-participants { display: block; }
.timeline-participants > span { display: block; margin-bottom: 7px; }
.timeline-participants > div { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-participants a { padding: 4px 7px; border: 1px solid var(--line); color: var(--accent); font-size: 10px; text-decoration: none; }
.timeline-participants a:hover { border-color: var(--accent); }
.world-disclaimer { margin: 56px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; line-height: 1.7; }

@media (max-width: 1100px) {
  .topbar { grid-template-areas: "brand navigation meta"; grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 0; min-height: 72px; padding-block: 0; }
  .work-navigation { justify-self: end; width: auto; padding-bottom: 0; overflow: visible; }
  .world-view { min-height: calc(100vh - 72px); }
}

@media (max-width: 720px) {
  .topbar { grid-template-areas: "brand meta" "navigation navigation"; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; min-height: 104px; padding-inline: 16px; padding-block: 12px 0; }
  .brand-name { font-size: 14px; letter-spacing: .06em; }
  .work-navigation { justify-self: end; gap: 17px; padding-bottom: 12px; }
  .topbar-link, .work-link { font-size: 11px; }
  .world-navigation { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .world-navigation::-webkit-scrollbar { display: none; }
  .world-view-shell { padding-top: 36px; padding-bottom: 56px; }
  .world-view-switch { gap: 16px; margin-bottom: 42px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .world-view-switch::-webkit-scrollbar { display: none; }
  .world-section { margin-top: 48px; }
  .world-section-heading { display: block; }
  .world-section-count { display: block; margin-top: 10px; }
  .relationship-row { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; }
  .relationship-node { grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; }
  .relationship-node strong { font-size: 16px; }
  .relationship-node small { font-size: 8px; }
  .relationship-node--target { grid-template-columns: minmax(0, 1fr) 20px; }
  .relationship-edge { min-width: 24px; }
  .relationship-edge b { width: max-content; max-width: 76px; padding: 3px 5px; font-size: 9px; writing-mode: vertical-rl; }
  .relationship-line { top: 50%; left: -4px; right: -4px; }
  .relationship-edge small { display: none; }
  .timeline-phase { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
  .timeline-phase-marker { width: 24px; height: 24px; font-size: 9px; }
  .timeline-list::before { left: 11px; }
  .timeline-phase-content h3 { font-size: 19px; }
  .timeline-event { padding: 14px; }
  .timeline-event-top, .timeline-event-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .timeline-event-footer b { max-width: none; text-align: left; }
}
