:root {
  --ink: #f3f1e9;
  --paper: #10120f;
  --surface: #171a16;
  --surface-2: #20241e;
  --muted: #9ca197;
  --line: #30352d;
  --accent: #c7f25b;
  --accent-dark: #172007;
  --danger: #ff8c7d;
  --serif: Iowan Old Style, Baskerville, Palatino Linotype, Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --page: min(1540px, calc(100vw - 64px));
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.45; letter-spacing: -.01em; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--accent); color: #0b0d09; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.masthead { width: var(--page); min-height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #62695c; border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 13px; font-style: italic; }
.brand strong, .brand small, .sync-block small, .sync-block strong { display: block; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.brand small, .sync-block small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sync-block { display: flex; align-items: center; gap: 10px; }
.sync-block strong { font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px #9ca19718; }
.sync-dot.ready { background: var(--accent); box-shadow: 0 0 0 4px #c7f25b1a; }
.sync-dot.error { background: var(--danger); }
.scan-button, .secondary-button { min-height: 42px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 2px; padding: 0 16px; cursor: pointer; transition: background .18s, color .18s, border .18s; }
.scan-button { margin-left: 12px; background: var(--accent); color: #0b0d09; border-color: var(--accent); font-weight: 700; }
.scan-button:hover { background: #d6ff72; }
.scan-button:disabled { opacity: .65; cursor: wait; }
.overview { width: var(--page); margin: 0 auto; padding: clamp(56px, 7vw, 104px) 0 38px; }
.eyebrow-row, .overview-head, .catalog-head, .results-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font: 600 10px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.scan-state { color: var(--muted); font-size: 12px; }
h1 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(50px, 7vw, 104px); font-weight: 400; line-height: .88; letter-spacing: -.055em; }
h1 em { color: var(--accent); font-weight: 400; }
.overview-head > p { max-width: 390px; margin: 0 0 7px; color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.kpis { margin-top: clamp(56px, 7vw, 92px); display: grid; grid-template-columns: 1.1fr .8fr .8fr .9fr 1.25fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis article { min-height: 158px; padding: 23px 20px 18px 0; border-right: 1px solid var(--line); }
.kpis article + article { padding-left: 20px; }
.kpis article:last-child { border-right: 0; }
.kpis span { color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.kpis strong { display: block; margin-top: 17px; font-family: var(--serif); font-size: clamp(35px, 4vw, 58px); font-weight: 400; line-height: .9; font-variant-numeric: tabular-nums; }
.kpis p { max-width: 220px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.kpis p span { color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: none; }
.scan-detail { margin-top: 16px; padding: 12px 14px; border: 1px solid #c7f25b50; background: var(--accent-dark); color: #dfffa0; font-size: 12px; }
.coverage-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1px solid #c7f25b50; border-top-color: var(--accent); border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
.catalog { min-height: 100vh; margin-top: 0; padding: 48px max(32px, calc((100vw - min(1540px, calc(100vw - 64px))) / 2)) 72px; background: var(--paper); color: var(--ink); }
.catalog .eyebrow { color: var(--accent); }
.catalog h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); font-weight: 400; letter-spacing: -.045em; }
.segmented, .tabs { display: flex; padding: 3px; margin: 0; border: 1px solid var(--line); background: var(--surface); }
.segmented { border-radius: 3px; }
.segmented button, .tabs button { min-height: 38px; padding: 0 17px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.segmented button.active, .tabs button.active { background: var(--accent); color: #10130b; }
.toolbar { margin-top: 36px; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.source-filter { grid-column: 1 / -1; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
.source-filter legend { float: left; color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.source-filter button { border: 1px solid var(--line); background: var(--surface); min-height: 30px; padding: 0 9px; cursor: pointer; }
.source-filter div { display: flex; flex-wrap: wrap; gap: 7px; }
.source-filter label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); padding: 6px 8px; font-size: 12px; cursor: pointer; }
.search { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.search svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search input { width: 100%; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.tabs { background: transparent; border: 0; gap: 2px; padding: 0; }
.tabs button { min-height: 42px; }
.tabs button.active { background: var(--accent); color: #10130b; }
.sort { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sort input, .sort select { min-height: 42px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 0 11px; color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 12px; color-scheme: dark; }
.sort select { padding-right: 34px; }

.results-meta { padding: 20px 0 14px; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.results-meta p { margin: 0; }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 18px; }
.media-card { min-width: 0; }
.card-open { width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.media-shell { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.media-shell img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card-open:hover .media-shell img { transform: scale(1.025); }
.media-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.badge { padding: 6px 8px; background: #121410e8; color: #f0efe9; font: 650 9px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.badge.new { background: var(--accent); color: #11150a; }
.card-copy { padding-top: 13px; }
.card-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 600 9px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.card-copy h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 20px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.model-card .media-shell { aspect-ratio: 3 / 2; }
.image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.state-card { grid-column: 1 / -1; min-height: 300px; display: grid; place-items: center; padding: 40px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.state-card strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 27px; font-weight: 500; }
.skeleton .media-shell, .skeleton-line { background: linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton-line { width: 55%; height: 9px; margin-top: 9px; }
.skeleton-line.wide { width: 85%; height: 16px; margin-top: 14px; }
.scroll-sentinel { display: flex; min-height: 70px; align-items: center; justify-content: center; opacity: 0; }
.scroll-sentinel.loading { opacity: 1; }
.catalog .secondary-button { background: transparent; color: var(--ink); border-color: var(--line); min-width: 150px; }
footer { width: var(--page); margin: 0 auto; padding: 33px 0 44px; display: flex; justify-content: space-between; gap: 40px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
footer p { margin: 0; max-width: 720px; }
footer strong { color: var(--ink); }
dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid #3a3e36; background: #141612; color: var(--ink); box-shadow: 0 30px 100px #000b; }
dialog::backdrop { background: #050604d9; backdrop-filter: blur(4px); }
.dialog-frame { position: relative; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid #ffffff35; border-radius: 50%; background: #121410d9; color: white; font-size: 25px; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.detail-media { min-height: 280px; display: grid; place-items: center; background: #090a08; overflow: auto; }
.detail-media img, .detail-media video { display: block; max-width: 100%; max-height: 58vh; object-fit: contain; }
.detail-gallery { width: 100%; min-height: 280px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: stretch; }
.gallery-stage { min-width: 0; min-height: 280px; margin: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.gallery-stage img { max-width: 100%; max-height: 58vh; }
.gallery-nav { width: 100%; border: 0; border-right: 1px solid var(--line); background: #121410; color: var(--ink); font-size: 26px; cursor: pointer; transition: background .18s, color .18s; }
.gallery-nav.gallery-next { border-right: 0; border-left: 1px solid var(--line); }
.gallery-nav:hover:not(:disabled) { background: var(--accent); color: #10130b; }
.gallery-nav:disabled { color: #555a51; cursor: default; }
.gallery-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 7px 10px; background: #10120ee6; color: var(--ink); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.detail-copy { min-width: 0; padding: 16px 24px 24px; }
.detail-copy .eyebrow { margin-bottom: 20px; }
.detail-copy h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(31px, 4vw, 50px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; border-top: 1px solid var(--line); }
.detail-meta div { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); }
.detail-meta dt { color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.detail-meta dd { margin: 7px 0 0; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); padding: 5px 7px; color: #bec2b8; font-size: 10px; }
.original-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--accent); color: #11150a; font-weight: 700; text-decoration: none; }
.detail-note { margin-top: 20px; color: var(--muted); font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpis article:nth-child(3) { border-right: 0; }
  .kpis article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); }
  .masthead { min-height: 68px; }
  .sync-block > span:not(.sync-dot) { display: none; }
  .scan-button { margin-left: 2px; padding: 0 12px; }
  .overview { padding-top: 48px; }
  .eyebrow-row, .overview-head, .catalog-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .scan-state { margin: 0; }
  .overview-head > p { font-size: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .kpis article { min-height: 140px; border-top: 1px solid var(--line); }
  .kpis article:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
  .kpis article:nth-child(even) { border-right: 0; padding-left: 16px; }
  .kpis article:first-child, .kpis article:nth-child(2) { border-top: 0; }
  .kpis article:last-child { grid-column: 1 / -1; }
  .catalog { padding: 52px 16px; }
  .toolbar { display: flex; align-items: stretch; flex-direction: column; gap: 8px; }
  .search { border-bottom: 1px solid var(--line); }
  .tabs { overflow-x: auto; }
  .tabs button { flex: 1; min-width: 64px; }
  .sort { justify-content: space-between; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .card-copy h3 { font-size: 17px; }
  .results-meta p:last-child { display: none; }
  footer { flex-direction: column; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { min-height: 280px; }
  .detail-gallery { min-height: 280px; grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .gallery-stage { min-height: 280px; }
  .detail-copy { padding: 12px 16px 20px; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .kpis strong { font-size: 38px; }
  .kpis p { font-size: 10px; }
  .results-grid { grid-template-columns: 1fr; gap: 36px; }
  .media-shell { aspect-ratio: 4 / 4.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
.catalog-health { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.catalog-health #scan-state { color: var(--ink); }
.detail-header { min-width: 0; padding: 18px 72px 16px 24px; }
.detail-header .eyebrow { margin-bottom: 8px; overflow-wrap: anywhere; }
.detail-header h2 { margin: 0; font: 500 24px/1.2 var(--serif); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.evidence-group { min-width: 0; margin: 10px 0; padding: 12px; border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 13px; }
.evidence-group summary { cursor: pointer; font-weight: 600; }
.evidence-group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.evidence-group p, .full-caption { white-space: pre-wrap; }
.evidence-summary { margin: 0 0 10px; font-size: 13px; overflow-wrap: anywhere; }
.detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tags li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.card-kicker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-filter { min-width: 0; flex-wrap: wrap; }
.source-filter div, .source-filter label, .sort { min-width: 0; max-width: 100%; }
.source-filter label { overflow-wrap: anywhere; }
.sort input, .sort select { min-width: 0; max-width: 60%; }
