:root {
  --canvas: #fff;
  --surface: #f7f7f8;
  --ink: #171719;
  --text: #3f3f46;
  --muted: #71717a;
  --line: #e5e5e7;
  --line-strong: #d4d4d8;
  --accent: #10a37f;
  --media: #111;
  --max: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-site), -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }

.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: 6px; transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 30; top: 0; min-height: 62px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2))); min-height: 62px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: block; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.brand-name { font-family: var(--font-site-en), var(--font-site); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.brand-divider, .brand-context { color: var(--muted); font-size: 12px; font-weight: 400; }
nav { display: flex; gap: 24px; align-items: center; white-space: nowrap; }
nav a { padding: 7px 0; color: var(--text); font-size: 13px; font-weight: 700; }
nav a:hover { color: var(--accent); }
.status-pill { justify-self: end; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); }

main, footer { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: clamp(48px, 8vw, 118px); align-items: center; padding: clamp(84px, 12vw, 144px) 0 88px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-family: var(--font-site-en), var(--font-site); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 780px; margin: 0; font-size: clamp(52px, 6vw, 76px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 680px; margin: 28px 0 34px; color: var(--text); font-size: 18px; font-weight: 300; line-height: 1.72; }
.intent-search label, .filter-search label, .filter-group legend { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-box { display: flex; max-width: 680px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; overflow: hidden; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 163, 127, .12); }
.search-box input { min-width: 0; flex: 1; padding: 13px 15px; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: 0; }
.search-box button, .dock-actions .primary, .dialog-select { border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.search-box button { margin: 5px; padding: 0 16px; }
.search-box button:hover, .dock-actions .primary:hover, .dialog-select:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.query-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.query-prompts button, .filter-chip, .reset-button { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; cursor: pointer; }
.query-prompts button:hover, .filter-chip:hover, .filter-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(16, 163, 127, .06); }
.reset-button:hover { border-color: var(--ink); color: var(--ink); }

.selection-logic { padding: 28px 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.logic-label { margin: 0; color: var(--accent); font-family: var(--font-site-en), var(--font-site); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.logic-kicker { margin: 14px 0 18px; font-size: 19px; font-weight: 300; line-height: 1.5; }
.selection-logic ol { margin: 0; padding: 0; list-style: none; }
.selection-logic li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.selection-logic li > span, .method-cards article > span { color: var(--accent); font-family: var(--font-site-en), var(--font-site); font-size: 14px; font-weight: 700; }
.selection-logic strong, .selection-logic small { display: block; }
.selection-logic strong { font-size: 15px; font-weight: 700; }
.selection-logic small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 300; line-height: 1.55; }

.proof-strip { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(20px, 4vw, 52px); align-items: center; padding: 24px 0; border-block: 1px solid var(--line); }
.proof-strip div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.proof-strip strong { font-family: var(--font-site-en), var(--font-site); font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.proof-strip span, .proof-strip p { color: var(--muted); font-size: 12px; font-weight: 300; }
.proof-strip p { justify-self: end; max-width: 420px; margin: 0; line-height: 1.55; text-align: right; }

.library-section { padding: 108px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 32px; }
h2 { max-width: 780px; margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 300; white-space: nowrap; }
.section-heading > p span { color: var(--accent); font-family: var(--font-site-en), var(--font-site); font-size: 24px; font-weight: 700; }
.filter-panel { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.1fr) auto; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filter-search input { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.filter-search input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(16, 163, 127, .12); }
.filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend { padding: 0; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-group legend { flex-basis: 100%; }
.collection-filters .filter-chip { font-weight: 700; }
.filter-chip { font-size: 11px; }
.reset-button { align-self: end; min-height: 37px; }
.active-query { margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.55; }
.result-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; margin-top: 34px; }
.shot-card { min-width: 0; border-bottom: 1px solid var(--line); background: #fff; transition: border-color 180ms ease; }
.shot-card:hover, .shot-card:focus-within { border-color: var(--accent); }
.shot-media { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border: 1px solid rgba(0, 0, 0, .06); border-radius: 6px; background: var(--media); }
.shot-media video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 180ms ease; }
.world-shot-card .shot-media { background: var(--surface); }
.world-preview-slot { width: 100%; height: 100%; }
.world-preview-slot .world-preview { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.world-preview-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-card:hover .shot-media video, .shot-card:focus-within .shot-media video { transform: scale(1.015); }
.shot-code, .shot-project, .preview-toggle { position: absolute; z-index: 2; color: #fff; font-family: var(--font-site-en), var(--font-site); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.shot-code, .shot-project { top: 10px; padding: 5px 7px; border-radius: 4px; background: rgba(17, 17, 17, .72); backdrop-filter: blur(8px); }
.shot-code { left: 10px; }
.shot-project { right: 10px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-toggle { right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; background: rgba(17, 17, 17, .72); cursor: pointer; }
.preview-toggle:hover, .preview-toggle[aria-pressed="true"] { border-color: var(--accent); color: #fff; background: rgba(16, 163, 127, .88); }
.shot-body { padding: 17px 0 18px; }
.shot-taxonomy { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.taxonomy-tag { padding: 4px 6px; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 10px; font-weight: 400; }
.taxonomy-tag.family { border: 1px solid var(--line); background: #fff; }
.taxonomy-tag.collection { font-family: var(--font-site-en), var(--font-site); font-weight: 700; letter-spacing: .03em; }
.taxonomy-tag.collection.world-rebuild { border-color: rgba(16, 163, 127, .34); color: #087a5f; background: rgba(16, 163, 127, .08); }
.taxonomy-tag.collection.own-proven { border-color: var(--line-strong); color: var(--ink); }
.taxonomy-tag.evidence, .taxonomy-tag.evidence.reported, .taxonomy-tag.evidence.inference, .taxonomy-tag.evidence.sentiment { color: #087a5f; background: rgba(16, 163, 127, .1); }
.shot-card h3 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.shot-summary { min-height: 51px; margin: 9px 0 15px; color: var(--text); font-size: 14px; font-weight: 300; line-height: 1.65; }
.shot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 300; }
.shot-meta span:nth-child(n + 3) { color: var(--text); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 15px; }
.card-actions button { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.card-actions .detail-button:hover { border-color: var(--ink); color: var(--ink); }
.card-actions .select-button { width: 40px; font-size: 18px; }
.card-actions .select-button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.empty-state { margin-top: 32px; padding: 64px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; }
.empty-state strong { font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 14px; font-weight: 300; }
.empty-state button { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

.source-section { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(42px, 7vw, 92px); padding: 92px 0; border-top: 1px solid var(--line); }
.source-heading > p:last-child { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.75; }
.source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; border-top: 1px solid var(--line); }
.source-link { display: flex; min-width: 0; justify-content: space-between; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.source-links .source-link:nth-child(odd) { padding-right: 18px; }
.source-links .source-link:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.source-link span { font-family: var(--font-site-en), var(--font-site); font-size: 13px; font-weight: 700; }
.source-link small { color: var(--muted); font-size: 11px; font-weight: 300; text-align: right; }
.source-link:hover { color: var(--accent); }
.source-link:hover small { color: var(--accent); }

.method-section { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(42px, 7vw, 96px); padding: 92px 0; border-top: 1px solid var(--line); }
.method-title-block p:last-child { max-width: 510px; color: var(--muted); font-size: 17px; font-weight: 300; line-height: 1.65; }
.method-cards { display: grid; }
.method-cards article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.method-cards article:last-child { border-bottom: 1px solid var(--line); }
.method-cards h3, .method-cards p { margin: 0; }
.method-cards h3 { font-size: 18px; font-weight: 700; }
.method-cards p { margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.65; }

.handoff-section { margin-bottom: 82px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.handoff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.handoff-grid > div { padding-top: 15px; border-top: 1px solid var(--line-strong); }
.handoff-grid small, .handoff-grid strong { display: block; }
.handoff-grid small { margin-bottom: 8px; color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.handoff-grid strong { color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.6; }
.domain-blank { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 116px; color: var(--muted); font-size: 12px; font-weight: 300; }

.sequence-dock { position: fixed; z-index: 25; right: 24px; bottom: 22px; left: 24px; display: flex; justify-content: space-between; gap: 24px; max-width: 760px; margin: auto; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 42px rgba(23, 23, 25, .13); backdrop-filter: blur(14px); align-items: center; }
.sequence-dock small, .sequence-dock strong { display: block; }
.sequence-dock small { color: var(--accent); font-size: 11px; font-weight: 700; }
.sequence-dock strong { margin-top: 2px; color: var(--text); font-size: 13px; font-weight: 700; }
.selected-codes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.selected-item { display: inline-flex; gap: 5px; align-items: center; padding: 3px 4px 3px 6px; border-radius: 4px; background: var(--surface); color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 10px; }
.selected-item > span:first-child { display: inline-flex; gap: 4px; align-items: center; }
.selected-item b { color: var(--accent); font-size: 9px; }
.selected-item-actions { display: inline-flex; gap: 2px; }
.selected-item-actions button { display: grid; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 3px; background: #fff; color: var(--text); cursor: pointer; place-items: center; }
.selected-item-actions button:hover { color: var(--accent); }
.selected-item-actions button:disabled { cursor: default; color: var(--line-strong); }
.dock-actions { display: flex; gap: 8px; align-items: center; }
.dock-actions button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.dock-actions .primary { padding: 0 15px; }

.shot-dialog { width: min(1024px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 24px 72px rgba(23, 23, 25, .22); }
.shot-dialog::backdrop { background: rgba(23, 23, 25, .5); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 5; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.54); border-radius: 50%; background: rgba(17,17,17,.76); color: #fff; font-size: 22px; cursor: pointer; place-items: center; }
.dialog-layout { display: grid; grid-template-columns: 1.08fr .92fr; }
.dialog-media { min-height: 100%; padding: 24px; background: var(--media); }
.dialog-media video { width: 100%; aspect-ratio: 2 / 1; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; object-fit: cover; }
.world-dialog-media { background: var(--surface); }
.world-dialog-preview { width: 100%; }
.world-dialog-preview .world-preview { width: 100%; aspect-ratio: 2 / 1; border-color: var(--line-strong); }
.dialog-media p { margin: 15px 0 0; color: #c7c7cc; font-family: var(--font-site-en), var(--font-site); font-size: 11px; font-weight: 300; line-height: 1.65; }
.dialog-media .media-description { color: #f7f7f8; font-family: var(--font-site); font-size: 13px; line-height: 1.65; }
.dialog-media .source-path { margin-top: 12px; color: #a8a8af; }
.world-dialog-media .media-description { color: var(--text); }
.world-dialog-media .source-path { color: var(--muted); overflow-wrap: anywhere; }
.dialog-info { padding: 40px 32px 34px; }
.dialog-info h2 { margin-top: 14px; font-size: 39px; }
.dialog-summary { margin: 15px 0 23px; color: var(--text); font-size: 14px; font-weight: 300; line-height: 1.7; }
.detail-row { padding: 13px 0; border-top: 1px solid var(--line); }
.detail-row small, .detail-row strong { display: block; }
.detail-row small { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.detail-row strong { color: var(--text); font-size: 13px; font-weight: 300; line-height: 1.65; }
.detail-row .dialog-source-link { display: inline-flex; width: auto; justify-content: flex-start; padding: 2px 0 4px; border-color: var(--line-strong); color: var(--accent); font-size: 13px; font-weight: 700; }
.parameter-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.parameter-list span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 11px; }
.dialog-select { width: 100%; min-height: 42px; margin-top: 18px; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
  nav { grid-row: 2; grid-column: 1 / -1; width: 100%; padding: 0 0 10px; overflow-x: auto; }
  .site-header, .nav-inner { min-height: 62px; }
  .hero, .source-section, .method-section { grid-template-columns: 1fr; }
  .selection-logic { max-width: 640px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .handoff-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 114px; }
  .nav-inner { width: calc(100% - 32px); }
  .brand-context, .brand-divider { display: none; }
  .status-pill { font-size: 10px; }
  .hero { gap: 48px; padding: 70px 0 60px; }
  h1 { font-size: clamp(50px, 14vw, 64px); }
  .hero-intro { font-size: 16px; }
  .search-box { display: block; overflow: visible; border: 0; background: transparent; }
  .search-box input { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; }
  .search-box button { width: 100%; min-height: 42px; margin: 9px 0 0; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .proof-strip div { display: grid; gap: 2px; text-align: center; }
  .proof-strip div { white-space: normal; }
  .proof-strip span { line-height: 1.35; }
  .proof-strip p { grid-column: 1 / -1; justify-self: stretch; margin-top: 9px; text-align: left; }
  .library-section { padding: 76px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; white-space: normal; }
  .filter-panel { grid-template-columns: 1fr; padding: 14px; }
  .reset-button { justify-self: start; }
  .shot-grid { grid-template-columns: 1fr; gap: 38px; }
  .shot-summary { min-height: 0; }
  .shot-code, .shot-project, .preview-toggle, .taxonomy-tag { font-size: 11px; }
  .shot-meta { font-size: 12px; font-weight: 400; }
  .method-section { padding: 70px 0; }
  .source-section { padding: 70px 0; }
  .source-links { grid-template-columns: 1fr; }
  .source-links .source-link:nth-child(odd), .source-links .source-link:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .handoff-section { margin-bottom: 60px; padding: 42px 0; }
  footer { display: grid; padding-bottom: 62px; }
  body.has-sequence { padding-bottom: calc(var(--sequence-dock-height, 0px) + 28px); }
  .sequence-dock { right: 12px; bottom: 12px; left: 12px; display: block; max-height: calc(100svh - 24px); padding: 13px; overflow: hidden; }
  .selected-codes { max-height: 84px; padding-right: 2px; overflow-y: auto; overscroll-behavior: contain; }
  .dock-actions { margin-top: 10px; }
  .dock-actions .primary { flex: 1; }
  .shot-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media { padding: 18px; }
  .dialog-info { padding: 30px 20px; }
  .dialog-info h2 { font-size: 32px; }
  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
  body.has-sequence .toast { bottom: calc(var(--sequence-dock-height, 0px) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .shot-card:hover .shot-media video, .shot-card:focus-within .shot-media video { transform: none; }
}

/* ===========================================================================
 * v0.4 落地化试点新增
 * ========================================================================= */
.proof-strip { grid-template-columns: repeat(4, auto) 1fr; }
.proof-strip p { max-width: 520px; }

.shelf-note { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.7; }

.taxonomy-tag.maturity { border: 1px solid var(--line-strong); background: #fff; color: var(--muted); }
.taxonomy-tag.maturity.m-grounded-prototype { border-color: rgba(16, 163, 127, .4); background: rgba(16, 163, 127, .09); color: #087a5f; }
.taxonomy-tag.maturity.m-proven-in-video { border-color: var(--ink); background: var(--ink); color: #fff; }

.shot-voiceover { margin: 10px 0 0; padding: 10px 12px; border-left: 2px solid var(--accent, #10a37f); background: rgba(16, 163, 127, .05); color: var(--text); font-size: 13px; font-weight: 400; line-height: 1.65; }
.shot-voiceover small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .04em; }

.shot-retired { margin: 10px 0 0; padding: 9px 12px; border-left: 2px solid rgba(194, 65, 12, .55); background: rgba(194, 65, 12, .06); color: #7c2d12; font-size: 12px; font-weight: 300; line-height: 1.6; }

.shot-card.shelf-lab .shot-media { opacity: .82; }
.shot-card.shelf-retired { opacity: .72; }

.shot-meta { grid-template-columns: 1fr 1fr; }
.shot-summary { min-height: 0; }

.detail-row.is-retired strong { color: #7c2d12; }
.detail-row.is-review strong { color: #7c2d12; }
.detail-row strong small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 300; line-height: 1.6; }
.asset-list { margin: 0; padding-left: 1.1em; color: var(--text); font-size: 13px; font-weight: 300; line-height: 1.75; }
.asset-list li { margin: 0; }

.demo-disclosure { max-width: 760px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 300; line-height: 1.75; }
.demo-disclosure strong { font-weight: 700; }

.handoff-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .proof-strip { grid-template-columns: repeat(2, auto); }
  .proof-strip p { max-width: none; grid-column: 1 / -1; justify-self: start; text-align: left; }
  .handoff-grid { grid-template-columns: 1fr; }
}

/* 世界参考卡片的编号与媒介标签已经画在预览内部，避免叠加层遮住 DEMO 标记 */
.world-shot-card .shot-media .shot-code, .world-shot-card .shot-media .shot-project { display: none; }

/* ===========================================================================
 * v0.5 marketplace 布局
 * 打开即镜头网格：左侧窄边栏 + 右侧主区，主区顶部只留标题 / 搜索 / 筛选 / 计数。
 * 已删除 hero、selector 侧栏、proof strip、来源段、方法段、进度段。
 * ========================================================================= */
html { scroll-behavior: auto; scroll-padding-top: 0; }
body { background: var(--canvas); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.app { display: flex; align-items: flex-start; min-height: 100vh; }

/* --- 边栏 ---------------------------------------------------------------- */
.side {
  position: sticky; top: 0; flex: 0 0 212px; width: 212px; height: 100vh;
  display: flex; flex-direction: column; gap: 26px;
  padding: 22px 18px; border-right: 1px solid var(--line); background: var(--surface);
}
.side-brand { display: flex; align-items: center; gap: 10px; }
.side-brand span { display: block; min-width: 0; }
.side-brand strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.side-brand small { display: block; color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 10px; letter-spacing: .06em; }
.side-nav { flex: 1 1 auto; min-height: 0; }
.side-shelf { display: flex; flex-direction: column; gap: 4px; }
.side-shelf legend { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.side-shelf .filter-chip {
  width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; font-size: 12.5px; text-align: left;
}
.side-shelf .filter-chip:hover { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.side-shelf .filter-chip.active { background: #fff; border-color: var(--accent); color: var(--accent); font-weight: 700; }
.side-foot { color: var(--muted); font-size: 11px; line-height: 1.7; }
.side-foot p { margin: 0 0 4px; }
.side-foot b { color: var(--ink); font-weight: 700; }

/* --- 主区 ---------------------------------------------------------------- */
.main { flex: 1 1 auto; min-width: 0; padding: 26px clamp(18px, 3vw, 40px) 40px; }
.lib-head { max-width: 1400px; }
.lib-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.lib-sub { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 300; line-height: 1.7; }
.lib-search { display: flex; gap: 8px; margin: 18px 0 14px; max-width: 620px; }
.lib-search input {
  flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px;
}
.lib-search input::placeholder { color: var(--muted); }
.lib-search input:focus { border-color: var(--accent); outline: none; }
.lib-filters { display: flex; flex-direction: column; gap: 8px; }
.lib-filters .filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lib-filters legend { flex: 0 0 62px; padding: 0; color: var(--muted); font-size: 11px; }
.lib-count { margin: 16px 0 0; color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 12px; }
.lib-count span:first-child { color: var(--ink); font-weight: 700; }
.lib-count-note { margin-left: 10px; font-family: var(--font-site); }
.lib-count-note:not(:empty)::before { content: "· "; }
.lib-legal { max-width: 860px; margin: 44px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 300; line-height: 1.75; }
.lib-legal b { color: var(--ink); font-weight: 700; }

/* --- 网格与紧凑卡片 ------------------------------------------------------ */
.shot-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px 18px; margin-top: 20px; }
.shot-card { display: flex; flex-direction: column; border-bottom: 0; }
.shot-card .shot-media { aspect-ratio: 16 / 10; border-radius: 8px; }
.shot-card h3 { margin: 6px 0 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.shot-body { display: flex; flex-direction: column; gap: 0; padding: 10px 2px 0; }

.shot-kicker { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; }
.shot-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.shot-kicker .dot.j-entry { background: #d97706; }
.shot-kicker .dot.j-structure { background: #2563eb; }
.shot-kicker .dot.j-mechanism { background: #7c3aed; }
.shot-kicker .dot.j-data { background: #059669; }
.shot-kicker .dot.j-change { background: #db2777; }
.shot-kicker .dot.j-judgment { background: #0891b2; }
.shot-kicker em { margin-left: auto; overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.shot-card .shot-voiceover {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 7px 0 0; padding: 0 0 0 9px; border-left: 2px solid rgba(16, 163, 127, .5);
  background: none; color: var(--text); font-size: 12px; font-weight: 300; line-height: 1.6;
}
.shot-card .shot-retired {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 7px 0 0; padding: 0 0 0 9px; border-left: 2px solid rgba(194, 65, 12, .5);
  background: none; font-size: 11.5px; line-height: 1.55;
}
.shot-foot { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.shot-foot .shot-id { margin-left: auto; color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 10.5px; letter-spacing: .04em; }
.shot-card .card-actions { display: flex; gap: 6px; margin-top: 10px; }
.shot-card .detail-button { flex: 1 1 auto; padding: 7px 10px; font-size: 12px; }
.shot-card .select-button { flex: 0 0 34px; width: 34px; padding: 7px 0; font-size: 12px; }

.shot-duration {
  position: absolute; z-index: 3; right: 8px; top: 8px; padding: 3px 7px; border-radius: 4px;
  background: rgba(23, 23, 25, .78); color: #fff;
  font-family: var(--font-site-en), var(--font-site); font-size: 10.5px; font-variant-numeric: tabular-nums;
}
.shot-card .preview-toggle {
  right: 8px; bottom: 8px; left: auto; width: 28px; height: 28px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px;
}

/* --- 响应式 -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .app { flex-direction: column; }
  .side {
    position: static; flex: 0 0 auto; width: 100%; height: auto; flex-direction: row;
    align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 14px var(--gutter);
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side-nav { flex: 1 1 240px; }
  .side-shelf { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-shelf legend { flex-basis: 100%; margin-bottom: 4px; }
  .side-shelf .filter-chip { width: auto; border-radius: 999px; border-color: var(--line-strong); }
  .side-foot { flex-basis: 100%; }
  .main { padding: 20px var(--gutter) 36px; }
}
@media (max-width: 640px) {
  .shot-grid { grid-template-columns: 1fr; gap: 26px; }
  .lib-head h1 { font-size: 24px; }
  .lib-filters legend { flex-basis: 100%; }
}

/* --- v0.5 顶部收紧：让网格尽快出现 ---------------------------------------- */
.lib-sub { margin-top: 6px; font-size: 12.5px; }
.lib-search { margin: 14px 0 10px; }
.lib-search input { padding: 8px 12px; }
.lib-filters { gap: 5px; }
.lib-filters .filter-group { gap: 5px; }
.lib-filters .filter-chip { padding: 4px 9px; font-size: 11px; }
.lib-filters .reset-button { padding: 4px 9px; font-size: 11px; }
.lib-count { margin-top: 12px; }
.shot-grid { margin-top: 14px; }
.active-query { margin: 10px 0 0; padding: 8px 12px; font-size: 12px; }

/* --- v0.5 时长回到卡片正文，避免叠加层盖住预览里的 DEMO 标记 -------------- */
.shot-duration {
  position: static; padding: 0; border-radius: 0; background: none;
  color: var(--ink); font-family: var(--font-site-en), var(--font-site);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.shot-kicker .shot-duration::before { content: "·"; margin: 0 5px 0 3px; color: var(--line-strong); font-weight: 400; }

/* --- v0.5 手机端：把顶部压到一屏之内，让网格尽快出现 --------------------- */
@media (max-width: 760px) {
  .side { gap: 10px 14px; padding: 12px var(--gutter); }
  .side-brand strong { font-size: 13px; }
  .side-brand small { font-size: 9.5px; }
  .side-nav { flex: 1 1 100%; }
  .side-shelf { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .side-shelf::-webkit-scrollbar { display: none; }
  .side-shelf legend { display: none; }
  .side-shelf .filter-chip { flex: 0 0 auto; padding: 6px 12px; font-size: 12px; }
  .side-foot { flex-basis: 100%; font-size: 10.5px; line-height: 1.5; }
  .side-foot p { display: inline; margin: 0; }
  .side-foot p + p::before { content: " · "; }

  .main { padding: 16px var(--gutter) 32px; }
  .lib-head h1 { font-size: 22px; }
  .lib-sub { display: none; }
  .lib-search { margin: 10px 0 8px; }
  .lib-filters .filter-group {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: 1px;
  }
  .lib-filters .filter-group::-webkit-scrollbar { display: none; }
  .lib-filters legend { flex: 0 0 auto; }
  .lib-filters .filter-chip { flex: 0 0 auto; }
  .lib-count { margin-top: 10px; }
  .lib-count-note { display: block; margin: 3px 0 0; }
  .shot-grid { margin-top: 12px; }
  .lib-legal { margin-top: 32px; font-size: 11px; }
}

/* ===========================================================================
 * v0.6 public release
 * Claude Design 的「薄顶栏 + 筛选工作台 + 直接入库网格」被转写为无外部运行时
 * 的静态 CSS。真实成片与原创虚拟镜头共用一张网格；真实成片稳定排在前面，
 * 每张卡仍保留来源标签，避免牺牲检索与版权边界。
 * ======================================================================== */
html { scroll-padding-top: 150px; }
body { background: #fff; color: var(--ink); }

.site-topbar {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topbar-inner {
  width: min(1120px, calc(100% - (var(--gutter) * 2)));
  min-height: 62px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-brand .brand-mark { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.topbar-brand span { display: block; min-width: 0; }
.topbar-brand strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.topbar-brand small { display: block; margin-top: 1px; color: #a1a1aa; font-family: var(--font-site-en), var(--font-site); font-size: 10px; font-weight: 300; letter-spacing: .06em; white-space: nowrap; }
.topbar-nav { display: flex; align-items: center; gap: 19px; margin-left: auto; }
.topbar-nav a { padding: 8px 0; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.topbar-nav a:hover { color: var(--ink); }
.admin-login { display: flex; align-items: center; gap: 6px; }
.admin-login input {
  width: 110px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 11.5px; outline: 0;
}
.admin-login input:focus { border-color: var(--ink); }
.admin-login button, .admin-session button {
  height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--text); font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.admin-login button:hover, .admin-session button:hover { border-color: var(--ink); color: var(--ink); }
.admin-login button:disabled { color: var(--muted); cursor: wait; }
.admin-session { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.admin-session span { color: #087a5f; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.admin-message {
  width: min(1120px, calc(100% - (var(--gutter) * 2))); margin: -2px auto 8px;
  color: var(--muted); font-size: 11.5px; line-height: 1.45; text-align: right;
}
.admin-message[data-type="error"] { color: #9a3412; }
.admin-message[data-type="success"] { color: #087a5f; }

.filter-shell {
  position: sticky; top: 62px; z-index: 50;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.filter-inner { width: min(1120px, calc(100% - (var(--gutter) * 2))); margin: 0 auto; padding: 13px 0; }
.filter-primary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.library-search { position: relative; flex: 1 1 340px; min-width: 0; }
.library-search input {
  width: 100%; height: 42px; padding: 0 15px 0 39px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 300; outline: 0;
}
.library-search input:focus { border-color: var(--ink); background: #fff; }
.library-search input::placeholder { color: #a1a1aa; }
.search-mark {
  position: absolute; z-index: 1; top: 50%; left: 14px; width: 11px; height: 11px;
  border: 1.5px solid #a1a1aa; border-radius: 50%; transform: translateY(-58%); pointer-events: none;
}
.search-mark::after {
  content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.5px;
  background: #a1a1aa; transform: rotate(45deg); transform-origin: left center;
}
.filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend { margin: 0; padding: 0; }
.shelf-filter {
  display: flex; flex: 0 0 auto; align-items: center; gap: 2px; max-width: 100%;
  padding: 3px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.filter-chip {
  min-height: 28px; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 400; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 11px; }
.filter-label { flex: 0 0 auto; margin-right: 2px; color: #a1a1aa; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.filter-row .filter-group { display: flex; flex: 1 1 420px; flex-wrap: wrap; gap: 6px; }
.filter-row .filter-chip { min-height: 26px; padding: 3px 9px; border-color: var(--line); background: #fff; color: var(--text); font-size: 11px; }
.filter-row .filter-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.more-filters-toggle {
  min-height: 26px; padding: 3px 9px; border: 0; background: transparent;
  color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.more-filters-toggle:hover { color: var(--accent); }
.extra-filters { display: grid; gap: 0; padding-top: 10px; }
.extra-filters .filter-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

.library-main { width: min(1120px, calc(100% - (var(--gutter) * 2))); margin: 0 auto; padding: 0 0 46px; }
.library-result-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 0 16px; }
.library-count { margin: 0; color: var(--muted); font-family: var(--font-site-en), var(--font-site); font-size: 12.5px; font-weight: 300; }
.library-count strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.library-count #shelf-note { margin-left: 8px; font-family: var(--font-site); }
.library-count #shelf-note:not(:empty)::before { content: "· "; color: var(--line-strong); }
.library-result-row .reset-button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.library-result-row .reset-button:hover { color: var(--accent); }
.active-query { margin: 0 0 16px; padding: 10px 13px; border-left: 2px solid var(--accent); background: var(--surface); font-size: 12px; }

.shot-section { padding: 18px 0 42px; }
.shot-section + .shot-section { padding-top: 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 0 0 24px; }
.section-eyebrow { margin: 0 0 5px; color: var(--accent); font-family: var(--font-site-en), var(--font-site); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.section-heading h1, .section-heading h2 { max-width: none; margin: 0; color: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.65; white-space: normal; text-align: right; }
.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; margin: 0; }
.shot-card { min-width: 0; border: 0; background: transparent; transition: none; }
.shot-card:hover, .shot-card:focus-within { border-color: transparent; }
.shot-card .shot-media { aspect-ratio: 16 / 10; border-radius: 7px; background: var(--surface); }
.shot-card .shot-media video { transition: transform .25s ease; }
.shot-card:hover .shot-media video { transform: scale(1.015); }
.shot-card .shot-body { padding: 11px 1px 0; }
.shot-kicker { gap: 6px; color: var(--muted); font-size: 10.5px; }
.shot-kind { display: inline-flex; align-items: center; min-height: 18px; padding: 1px 5px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--font-site-en), var(--font-site); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; }
.shot-kind.virtual { background: #087a5f; }
.shot-kicker .dot { width: 5px; height: 5px; }
.shot-kicker em { font-size: 10px; }
.shot-card h3 { margin: 8px 0 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.shot-card .shot-voiceover { margin-top: 7px; padding-left: 9px; font-size: 12px; line-height: 1.62; }
.shot-card .shot-foot { gap: 7px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f0f0f1; }
.shot-foot .taxonomy-tag { padding: 3px 7px; font-size: 9.5px; }
.shot-foot .shot-id { font-size: 10px; }
.card-alert { display: inline-flex; min-height: 19px; align-items: center; padding: 2px 6px; border-radius: 4px; font-family: var(--font-site-en), var(--font-site); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.demo-alert { background: rgba(16, 163, 127, .1); color: #087a5f; }
.review-alert { background: rgba(194, 65, 12, .08); color: #9a3412; }
.shot-card .card-actions { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.shot-card .card-actions button { min-height: 30px; border-color: var(--line); border-radius: 999px; color: var(--muted); font-size: 10.5px; }
.shot-card .detail-button { flex: 1 1 auto; background: #fff; }
.shot-card .detail-button:hover { border-color: var(--ink); color: var(--ink); }
.shot-card .select-button { flex: 0 0 30px; width: 30px; padding: 0; border-radius: 50%; background: var(--surface); font-size: 13px; }
.shot-card .select-button.selected { background: var(--accent); color: #fff; }
.shot-card .preview-toggle { width: 28px; height: 28px; border-color: rgba(255,255,255,.3); font-size: 9px; }
.library-legal { max-width: 760px; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #a1a1aa; font-size: 11.5px; font-weight: 300; line-height: 1.75; }
.library-legal b { color: var(--muted); font-weight: 700; }
.site-footer { width: min(1120px, calc(100% - (var(--gutter) * 2))); margin: 0 auto; padding: 18px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 300; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; }
.site-footer b { color: var(--ink); font-weight: 700; }

.source-access { margin: 22px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); }
.source-access small { display: block; color: #a1a1aa; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.source-access > div > p { margin: 6px 0 13px; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.6; }
.source-code-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.source-code-button:hover { border-color: var(--ink); color: var(--ink); }
.source-code-button:disabled { color: var(--muted); cursor: wait; }
.source-access-status { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; font-weight: 300; line-height: 1.5; }
.source-code-viewer { max-height: 420px; margin: 13px 0 0; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #111; color: #f5f5f5; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; line-height: 1.65; white-space: pre; tab-size: 2; }

@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 0; }
  .topbar-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .admin-login { margin-left: auto; }
  .filter-shell { top: 102px; }
  html { scroll-padding-top: 190px; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-topbar { position: relative; }
  .topbar-inner { min-height: 0; padding: 11px 0; }
  .topbar-brand small { display: none; }
  .topbar-nav { gap: 14px; order: 3; }
  .topbar-nav a { font-size: 11px; }
  .admin-login { width: 100%; order: 4; margin-left: 0; }
  .admin-login input { flex: 1 1 auto; width: auto; }
  .admin-session { order: 4; width: 100%; margin-left: 0; justify-content: space-between; }
  .admin-message { margin: 0 auto 8px; text-align: left; }
  .filter-shell { position: relative; top: auto; }
  html { scroll-padding-top: 20px; }
  .filter-inner { padding: 11px 0; }
  .filter-primary-row { gap: 9px; }
  .library-search { flex-basis: 100%; }
  .shelf-filter { width: 100%; overflow-x: auto; }
  .shelf-filter .filter-chip { flex: 0 0 auto; }
  .filter-row { align-items: flex-start; margin-top: 9px; }
  .filter-label { flex-basis: 100%; }
  .filter-row .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1px; }
  .filter-row .filter-chip { flex: 0 0 auto; }
  .more-filters-toggle { margin-left: auto; }
  .library-result-row { padding: 15px 0 13px; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-heading h1, .section-heading h2 { font-size: 22px; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .shot-section { padding-bottom: 30px; }
  .shot-section + .shot-section { padding-top: 30px; }
  .shot-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: 28px; }
  .sequence-dock { right: 12px; bottom: 12px; left: 12px; padding: 12px; }
  .dock-actions { width: 100%; }
  .dock-actions button { flex: 1 1 auto; }
  .source-code-viewer { max-height: 320px; font-size: 10px; }
}
