:root {
  color-scheme: light dark;
  --paper: #f2f0eb;
  --surface: #fbfaf7;
  --surface-2: #e8e5df;
  --ink: #191919;
  --muted: #686762;
  --line: #cfccc5;
  --strong: #2a2a29;
  --focus: #5b77a6;
  --danger: #9b483e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.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; }

.site-header {
  min-height: 72px;
  padding: 0 max(22px, calc((100vw - 1380px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 720; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--paper); background: var(--strong); border-radius: 4px; font-size: 14px; }
.updated { margin: 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.shell { width: min(1380px, calc(100% - 44px)); margin: 0 auto; padding: 38px 0 84px; }
.catalog-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); align-items: end; gap: 32px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); font-weight: 540; letter-spacing: -.06em; line-height: .98; }
.intro-copy { margin: 0; color: var(--muted); line-height: 1.6; max-width: 52ch; }

.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.primary-tabs { width: 100%; justify-content: center; }
.primary-tabs button { min-width: 112px; }
.tabs, .query-tools { display: flex; align-items: center; gap: 8px; }
.tabs button, input, select, .save-button, .data-button, .data-actions button, .file-button, .lead-form button, .personal-form button, .state-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
}
.tabs button { background: transparent; white-space: nowrap; }
.tabs button.active { color: var(--paper); background: var(--strong); border-color: var(--strong); }
.data-button { flex: 0 0 auto; }
input { width: min(33vw, 340px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .card:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 48%, transparent); outline-offset: 3px; }

.discover-tools { display: grid; grid-template-columns: auto auto minmax(240px, 1fr) auto auto; gap: 10px; align-items: center; margin-top: 18px; }
.discover-tools.switch-mode { grid-template-columns: auto auto auto minmax(220px, 1fr) auto auto; }
.discover-tools.atlas-mode { grid-template-columns: auto minmax(240px, 1fr) auto auto; }
.category-segments, .stage-segments { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.category-segments button, .stage-segments button { min-height: 38px; padding: 7px 13px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); white-space: nowrap; }
.category-segments button.active, .stage-segments button.active { color: var(--paper); background: var(--strong); }
.switch-silent-toggle { min-height: 44px; padding: 10px 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; white-space: nowrap; }
.switch-silent-toggle input { width: 16px; min-height: 16px; margin: 0; }
.search-wrap input { width: 100%; }
.sort-wrap { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.filter-panel { position: relative; }
.filter-panel > summary { min-height: 44px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; list-style: none; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel .query-tools { position: absolute; z-index: 9; top: calc(100% + 7px); right: 0; min-width: 760px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 18px 44px #0002; }
.filter-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }

.discover-sections { display: grid; gap: 26px; margin-top: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.discover-sections:empty { display: none; }
.switch-browse-index { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.switch-browse-index > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.switch-browse-index h2 { margin: 0; font-size: 22px; }
.switch-browse-index header > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.switch-brand-index { display: flex; gap: 8px; margin-top: 16px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.switch-brand-tile { flex: 0 0 auto; min-width: 116px; padding: 11px 12px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface-2); text-align: left; }
.switch-brand-tile strong { font-size: 12px; }
.switch-brand-tile span { color: var(--muted); font-size: 10px; }
.switch-brand-tile.active { color: var(--paper); background: var(--strong); border-color: var(--strong); }
.switch-brand-tile.active span { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.switch-active-filters { min-height: 27px; margin-top: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 10px; }
.switch-active-filters button { min-height: 28px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 10px; }
.switch-active-filters .clear-switch-filters { border-color: transparent; color: var(--danger); background: transparent; }
.discover-group { min-width: 0; overflow: hidden; }
.discover-group header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.discover-group h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.discover-group header p { margin: 0; color: var(--muted); font-size: 11px; }
.spotlight-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spotlight-card { min-width: 0; padding: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); text-align: left; }
.spotlight-media { min-height: 82px; background: var(--surface-2); }
.spotlight-image, .spotlight-media .image-fallback { width: 100%; height: 100%; min-height: 82px; object-fit: cover; }
.spotlight-media .image-fallback small { display: none; }
.spotlight-copy { min-width: 0; padding: 11px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.spotlight-copy small, .spotlight-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.coverage { width: min(1380px, calc(100% - 44px)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.coverage summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.coverage summary::-webkit-details-marker { display: none; }
.coverage summary > span:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.coverage summary strong { font-size: 13px; }
#source-summary { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.coverage-action { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.coverage-action::after { content: " ↓"; }
.coverage[open] .coverage-action::after { content: " ↑"; }
.coverage[open] .source-stats { padding: 4px 0 22px; }
.coverage:not([open]) .source-stats { display: none; }
.source-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.source-stat { min-width: 0; padding-left: 12px; border-left: 2px solid var(--strong); display: flex; flex-direction: column; gap: 5px; }
.source-stat.failed { border-color: var(--danger); }
.source-stat strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.source-stat span, .source-stat small { color: var(--muted); font-size: 11px; line-height: 1.35; }

.results-line { display: flex; justify-content: space-between; gap: 24px; margin: 28px 0 16px; color: var(--muted); font-size: 12px; }
.results-line p { margin: 0; }
.results-line p:first-child { color: var(--ink); font-weight: 680; }
.quiet-notice { margin: -6px 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--paper); font-size: 12px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; cursor: pointer; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ink) 55%, var(--line)); box-shadow: 0 18px 38px #18171418; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-image, .detail-image { display: block; width: 100%; object-fit: cover; }
.card-image { height: 100%; }
.card-image { transition: transform .35s ease; }
.card:hover .card-image { transform: scale(1.025); }
.image-fallback { width: 100%; height: 100%; display: grid; place-content: center; gap: 7px; min-height: 180px; color: var(--muted); background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--surface))); text-align: center; }
.image-fallback span { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.image-fallback small { font-size: 11px; }
.category-badge { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 3px; color: #f6f4ef; background: #171717d9; backdrop-filter: blur(6px); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.switch-card .category-badge { text-transform: none; letter-spacing: .03em; }
.switch-card .category-badge[data-switch-feel="linear"] { background: #344889e8; }
.switch-card .category-badge[data-switch-feel="tactile"] { background: #46744ee8; }
.switch-card .category-badge[data-switch-feel="clicky"] { background: #286c77e8; }
.switch-card .category-badge[data-switch-feel="silent-linear"], .switch-card .category-badge[data-switch-feel="silent-tactile"] { background: #b66822e8; }
.switch-card .category-badge[data-switch-feel="magnetic"], .switch-card .category-badge[data-switch-feel="optical"] { background: #76529ce8; }
.switch-card .category-badge[data-switch-feel="low-profile"] { background: #6d594be8; }
.card-save { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #171717; background: #f6f4efdd; font-size: 18px; }
.card-body { padding: 15px 15px 17px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.card-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.card h2 { min-height: 2.45em; margin: 11px 0 16px; font-size: 17px; line-height: 1.22; font-weight: 610; letter-spacing: -.025em; overflow-wrap: anywhere; }
.card[lang="zh"] h2 { line-break: strict; word-break: break-word; }
.card-verification { margin: 0; color: var(--muted); font-size: 11px; }
.card-summary { min-height: 4.5em; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-facts { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.card-facts span:last-child { color: var(--muted); text-align: right; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-tags:empty { display: none; }
.card-tags span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.switch-card .card-summary { min-height: 3em; }
.switch-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 12px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--line); }
.switch-card-specs:empty { display: none; }
.switch-card-specs div { min-width: 0; padding: 8px 9px; background: var(--surface-2); }
.switch-card-specs dt { color: var(--muted); font-size: 9px; }
.switch-card-specs dd { margin: 3px 0 0; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
/* 套件图鉴 */
.atlas-context { display: flex; flex-wrap: wrap; gap: 6px; margin: -5px 0 10px; }
.atlas-context:empty { display: none; }
.atlas-context a { max-width: 100%; overflow: hidden; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 9px; font-weight: 650; line-height: 1.2; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.atlas-context a:hover { border-color: var(--ink); }
.atlas-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 12px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--line); }
.atlas-specs div { min-width: 0; padding: 7px 9px; background: var(--surface-2); }
.atlas-specs dt { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.atlas-specs dd { margin: 3px 0 0; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.atlas-specs dd.missing { color: var(--muted); font-weight: 400; }
.card-facts .review-count { color: var(--ink); font-weight: 650; }
.review-block .review-item { padding: 10px 0; border-top: 1px solid var(--line); }
.review-block .review-item:first-of-type { border-top: 0; padding-top: 2px; }
.review-block .review-item a { color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.review-block .review-item a:hover { text-decoration: underline; }
.review-block .review-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.review-block .review-item p { margin: 6px 0 0; color: var(--ink); font-size: 12px; }
.review-block .review-item .review-edition { color: var(--muted); font-size: 11px; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 11px 15px 14px; border-top: 1px solid var(--line); }
.card-links:empty { display: none; }
.compare-toggle { min-height: 34px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); padding: 7px 12px; font: inherit; font-size: 11px; font-weight: 680; cursor: pointer; }
.compare-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.compare-tray { position: fixed; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(920px, calc(100% - 28px)); padding: 12px; border: 1px solid var(--ink); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 16px 45px rgba(35, 31, 26, .18); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.compare-tray[hidden] { display: none; }
.compare-tray > div:first-child { display: grid; gap: 2px; }
.compare-tray span { font-size: .82rem; color: var(--muted); }
.compare-chips { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.compare-chip { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 12px; background: var(--surface-2); }
.compare-chip::before { content: attr(data-compare-index); display: none; }
.compare-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink) !important; }
.compare-chip button { width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
.compare-chip button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.compare-tray > button { min-height: 40px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 0 14px; font: inherit; }
.compare-tray > button:last-child { background: var(--ink); color: var(--paper); }
.compare-tray > button:disabled { opacity: .4; cursor: not-allowed; }
.compare-dialog { width: min(1120px, calc(100% - 28px)); max-height: 92vh; border: 0; border-radius: 22px; padding: 0; background: var(--paper); color: var(--ink); }
.compare-dialog::backdrop { background: rgba(20, 18, 15, .58); }
.compare-dialog-body { padding: 28px; overflow: auto; }
.compare-note { color: var(--muted); }
.compare-variant-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.compare-variant-selectors label { display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.compare-variant-selectors select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 8px; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.compare-table th { width: 130px; color: var(--muted); font-weight: 500; }
.compare-table tr.is-different td { background: color-mix(in srgb, var(--focus) 12%, transparent); }
.compare-table a { display: inline-block; margin-top: 5px; color: inherit; text-decoration-thickness: 1px; }
.compare-useful-only { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0; font-size: .9rem; }
.compare-missing { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); }

@media (max-width: 700px) {
  .compare-tray { left: 10px; right: 10px; bottom: 10px; width: auto; transform: none; grid-template-columns: 1fr auto auto; }
  .compare-tray > div:first-child { grid-column: 1 / -1; }
  .compare-chips { grid-column: 1 / -1; grid-template-columns: 1fr; width: 100%; }
  .compare-chip { grid-template-columns: 28px minmax(0, 1fr) 44px 44px; min-height: 48px; }
  .compare-chip::before { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
  .compare-chip button { width: 44px; height: 44px; }
  .compare-dialog { width: 100%; max-height: 96vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .compare-dialog-body { padding: 22px 14px 28px; }
  .compare-variant-selectors { grid-template-columns: 1fr; }
  .compare-table { min-width: 680px; }
  #compare-table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
  .compare-table th { position: sticky; left: 0; z-index: 1; width: 108px; background: var(--paper); }
}

@media (min-width: 701px) and (max-width: 900px) {
  .compare-tray { grid-template-columns: auto 1fr auto auto; }
  .compare-chips { grid-column: 1 / -1; }
}
.source-link { display: inline-flex; min-height: 34px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 10px; font-weight: 680; text-decoration: none; }
.source-link:hover { border-color: var(--ink); }
.more-links { position: relative; }
.more-links summary { min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 10px; list-style: none; }
.more-links summary::-webkit-details-marker { display: none; }
.more-links-menu { position: absolute; z-index: 8; left: 0; bottom: calc(100% + 6px); min-width: 210px; padding: 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 18px 44px #0003; }
.more-links-menu a { display: block; padding: 9px; font-size: 11px; text-decoration: none; }
.more-links-menu a:hover { background: var(--surface-2); }
.archive-card { background: color-mix(in srgb, var(--surface) 72%, var(--surface-2)); }
.archive-card .card-media { aspect-ratio: 16 / 9; }
.historical-card { opacity: .94; }
.needs-review .category-badge { background: #6d594bd9; }
.empty { padding: 80px 20px; border: 1px dashed var(--line); text-align: center; }
.empty h2 { margin: 0 0 8px; font-size: 22px; }
.empty p { margin: 0; color: var(--muted); }

.detail-dialog { width: min(1040px, calc(100% - 34px)); max-height: min(860px, calc(100dvh - 34px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 35px 100px #0006; }
.detail-dialog::backdrop { background: #0d0d0da8; backdrop-filter: blur(5px); }
.dialog-close { position: fixed; z-index: 3; top: max(27px, calc((100dvh - min(860px, calc(100dvh - 34px))) / 2 + 10px)); right: max(27px, calc((100vw - min(1040px, calc(100vw - 34px))) / 2 + 10px)); width: 42px; height: 42px; border: 1px solid #ffffff2a; border-radius: 50%; color: white; background: #171717d9; font-size: 24px; line-height: 1; }
#detail-content { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); min-height: 620px; }
.detail-gallery { min-width: 0; background: var(--surface-2); }
.detail-gallery.multi { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; gap: 2px; align-content: start; }
.detail-gallery .detail-image { height: auto; aspect-ratio: 4/3; }
.detail-gallery figure { margin: 0; min-width: 0; }
.detail-gallery figcaption { padding: .45rem .65rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.detail-gallery:not(.multi) .detail-image, .detail-gallery:not(.multi) .image-fallback { height: 100%; min-height: 620px; }
.detail-body { padding: 48px 38px 36px; overflow-wrap: anywhere; }
.detail-kicker { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-body h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -.05em; font-weight: 560; }
.detail-maker { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.detail-tags { margin: 14px 0 0; }
.situation { margin-top: 24px; padding: 16px; border-radius: 6px; background: var(--surface-2); }
.situation h3 { margin: 0 0 6px; font-size: 12px; }
.situation .detail-note { margin: 0; }
.detail-note { margin: 22px 0; color: var(--muted); line-height: 1.55; }
.spec-evidence, .correction-box { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.spec-evidence summary, .correction-box summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.spec-evidence p { display: grid; gap: 2px; margin: 10px 0 0; }
.spec-evidence a { font-size: 12px; }
.spec-evidence small { color: var(--muted); }
.correction-box form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.correction-box input, .correction-box button { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 8px; }
.correction-box small { display: block; margin-top: 6px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 120px 1fr; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.facts dt, .facts dd { margin: 0; padding: 6px 0; }
.facts dt { color: var(--muted); }
.variant-block, .timeline-placeholder { padding: 18px 0; border-bottom: 1px solid var(--line); }
.variant-block h3, .timeline-placeholder h3 { margin: 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.variant-block p, .timeline-placeholder p { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.variant-block strong { display: inline-block; min-width: 88px; margin-right: 5px; color: var(--ink); }
.blank-data { font-style: italic; }
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.detail-source-links { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-actions a { font-size: 13px; font-weight: 650; }
.detail-actions .disabled-link { color: var(--muted); font-weight: 450; text-decoration: none; }
.save-button[aria-pressed="true"] { color: var(--paper); background: var(--strong); border-color: var(--strong); }
.rights { margin: 20px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.provenance { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.provenance summary { color: var(--muted); cursor: pointer; font-size: 11px; }
.provenance .facts { margin-top: 12px; }
.state-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.state-button { min-height: 38px; padding: 8px 10px; font-size: 11px; }
.state-button[aria-pressed="true"] { color: var(--paper); background: var(--strong); border-color: var(--strong); }
.variant-note { width: 100%; margin-top: 7px; }
.tracking-label { margin-top: 14px !important; color: var(--ink) !important; font-weight: 650; }
.event-preferences { display: flex; flex-wrap: wrap; gap: 8px; }
.event-preferences label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; }
.event-preferences input { accent-color: var(--strong); }
.freshness.fresh { border-color: #5b7658; color: #41613e; }
.freshness.aging { border-color: #a68443; color: #7b5f25; }
.freshness.stale, .freshness.manual { border-color: #95624f; color: #7c4b39; }

.event-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.event-tools label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.digest { display: grid; grid-template-columns: auto auto 1fr; gap: 10px 18px; align-items: baseline; margin: 12px 0 0; padding: 15px 17px; border-radius: 6px; color: var(--paper); background: var(--strong); font-size: 12px; }
.digest strong { font-size: 13px; }
.digest span:last-child { overflow: hidden; color: color-mix(in srgb, var(--paper) 72%, transparent); text-overflow: ellipsis; white-space: nowrap; }
.event-list { display: grid; gap: 12px; }
.event-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.event-image { min-height: 150px; background: var(--surface-2); }
.event-thumbnail, .event-image .image-fallback { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.event-card > div:last-child { padding: 18px 20px; }
.event-card h2 { margin: 2px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.event-card p { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.event-meta { color: var(--ink) !important; font-size: 10px !important; font-weight: 730; letter-spacing: .07em; text-transform: uppercase; }
.event-changes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.event-actions button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.watch-match { padding: 7px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10px; }

.lab { display: grid; gap: 18px; }
.lab-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 4vw, 46px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lab-case header { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lab-case header h2 { margin: 4px 0 10px; font-size: clamp(32px, 5vw, 58px); letter-spacing: -.05em; }
.lab-case header p:last-child, .lab-caveat { color: var(--muted); font-size: 12px; line-height: 1.55; }
.lab-case section { display: grid; align-content: start; gap: 9px; }
.lab-case h3 { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lab-case textarea { width: 100%; min-height: 132px; resize: vertical; line-height: 1.5; }
.lab-case section label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.lab-case section input { margin-top: 2px; accent-color: var(--strong); }
.lab-strength { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.lab-evidence { grid-column: 1 / -1; }
.lab-evidence ul { margin: 0; padding-left: 18px; overflow-wrap: anywhere; font-size: 12px; }
.lab-evidence form { display: flex; gap: 8px; }
.lab-evidence input { flex: 1; min-width: 0; }
.lab-caveat { align-self: end; margin: 0; padding: 13px; border-left: 3px solid var(--line); }

.data-dialog { width: min(640px, calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }
.data-dialog::backdrop { background: #0d0d0da8; backdrop-filter: blur(5px); }
.data-close { position: absolute; top: 14px; right: 14px; }
.data-dialog-body { padding: 40px; }
.data-dialog-body h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.data-dialog-body > p { color: var(--muted); line-height: 1.55; }
.data-actions { display: flex; gap: 9px; margin: 24px 0 8px; }
.import-preview { margin: 12px 0 22px; padding: 14px; border: 1px solid var(--line); background: var(--soft); }
.import-preview p { margin: 0 0 10px; font-size: 12px; line-height: 1.5; }
.import-preview label { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 12px; }
.personal-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.personal-section > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.personal-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.personal-heading h3 { margin: 2px 0 0; font-size: 20px; }
.personal-heading > span { color: var(--muted); font-size: 12px; text-align: right; }
.personal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.personal-form label, .experiment-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.personal-form .wide { grid-column: 1 / -1; }
.personal-form input, .personal-form select, .personal-form textarea, .experiment-form input, .experiment-form select, .experiment-form textarea { width: 100%; }
.personal-form textarea { min-height: 74px; resize: vertical; }
.personal-form button { justify-self: start; }
.personal-list { display: grid; gap: 10px; }
.personal-card { padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.personal-card h4 { margin: 0 0 7px; font-size: 15px; }
.personal-card p, .personal-card li { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.personal-card li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.personal-card li button { padding: 5px 8px; font-size: 10px; }
.personal-card ul { margin: 8px 0; padding-left: 18px; }
.personal-card .personal-counts { color: var(--ink); font-weight: 650; }
.personal-card.legacy { border-style: dashed; }
.personal-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.personal-card-actions input { min-width: 70px; width: 90px; }
.build-edit, .build-assignment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 9px; }
.build-assignment { grid-template-columns: minmax(0, 1.4fr) 80px minmax(0, 1fr) auto; }
.build-edit input, .build-assignment input, .build-assignment select { min-width: 0; width: 100%; }
.personal-empty { color: var(--muted); font-size: 12px; }
.experiment-workspace { border-color: var(--strong); }
.experiment-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.experiment-form label:nth-child(1), .experiment-form label:nth-child(2), .experiment-form label:nth-child(n+5) { grid-column: 1 / -1; }
.experiment-form fieldset { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px; border: 1px solid var(--line); }
.experiment-form fieldset legend { padding: 0 5px; color: var(--muted); font-size: 11px; }
.experiment-form fieldset label { display: flex; grid-column: auto; align-items: center; gap: 6px; }
.experiment-form textarea { min-height: 84px; resize: vertical; }
.experiment-form button { justify-self: start; }
.experiment-diff { grid-column: 1 / -1; margin: 0; padding: 12px; background: var(--soft); color: var(--muted); font-size: 12px; }
.experiment-record { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.experiment-record p { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.file-button { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.data-message { min-height: 1.4em; font-size: 12px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.lead-form h3, .lead-form p { grid-column: 1 / -1; margin: 0; }
.lead-form h3 { font-size: 16px; }
.lead-form p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.lead-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.lead-form label:nth-of-type(1), .lead-form label:nth-of-type(2) { grid-column: 1 / -1; }
.lead-form input, .lead-form select { width: 100%; }
.lead-form button { justify-self: start; }

.identity-review-panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.identity-review-panel > summary { cursor: pointer; font-weight: 680; }
.identity-review-panel > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.identity-review-completed { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.identity-review-completed > summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 650; }
.identity-review-empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.identity-review-list { display: grid; gap: 9px; margin-top: 12px; }
.identity-review-item { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.identity-review-item strong { font-size: 12px; overflow-wrap: anywhere; }
.identity-review-item p { margin: 6px 0; color: var(--muted); font-size: 11px; }
.identity-review-links, .identity-review-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.identity-review-links a { font-size: 10px; }
.identity-review-controls button { min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.identity-review-controls button[aria-pressed="true"] { color: var(--paper); background: var(--strong); }

.purchase-channels { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.purchase-channels h3 { margin: 0 0 12px; font-size: 17px; }
.offer-list { display: grid; gap: 8px; }
.offer-item { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.offer-item > div { display: grid; gap: 2px; }
.offer-item span, .offer-item small { color: var(--muted); font-size: 10px; }
.offer-item p { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.45; }
.offer-item a { color: var(--ink); font-size: 11px; font-weight: 650; white-space: nowrap; }

.site-footer { width: min(1380px, calc(100% - 44px)); margin: 0 auto; padding: 22px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #171717; --surface: #202020; --surface-2: #2a2a29; --ink: #f0eee8; --muted: #aaa8a2; --line: #3c3b38; --strong: #efede6; }
  .brand-mark, .tabs button.active, .save-button[aria-pressed="true"] { color: #181818; }
  .card:hover { box-shadow: 0 18px 40px #0005; }
}

@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .query-tools { flex-wrap: wrap; }
  .discover-tools { grid-template-columns: auto auto minmax(200px, 1fr) auto; }
  .discover-tools.switch-mode { grid-template-columns: auto auto auto minmax(180px, 1fr); }
  .filter-panel { grid-column: 1 / -1; }
  .filter-panel .query-tools { left: 0; right: auto; width: min(760px, calc(100vw - 44px)); min-width: 0; }
  .spotlight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 0 15px; }
  .updated { max-width: 52%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .shell, .site-footer, .coverage { width: calc(100% - 30px); }
  .shell { padding-top: 25px; }
  .catalog-intro { grid-template-columns: 1fr; gap: 16px; }
  .intro-copy { font-size: 14px; }
  .tabs { width: calc(100% + 15px); padding-right: 15px; overflow-x: auto; }
  .tabs button { flex: 0 0 auto; }
  .primary-tabs { justify-content: flex-start; scrollbar-width: none; }
  .primary-tabs::-webkit-scrollbar { display: none; }
  .primary-tabs button { min-width: 82px; }
  .discover-tools { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .discover-tools.atlas-mode, .discover-tools.switch-mode { grid-template-columns: minmax(0, 1fr); }
  .category-segments, .stage-segments { grid-column: 1 / -1; min-width: 0; max-width: 100%; overflow-x: auto; }
  .switch-silent-toggle { grid-column: 1; width: max-content; }
  .category-segments button, .stage-segments button { flex: 1; }
  .search-wrap { min-width: 0; grid-column: 1; }
  .sort-wrap { grid-column: 1 / -1; justify-content: space-between; }
  .sort-wrap select { flex: 1; }
  .filter-panel { grid-column: 1; grid-row: auto; }
  .filter-panel .query-tools { position: fixed; z-index: 30; inset: auto 15px 15px; min-width: 0; padding: 18px; box-shadow: 0 18px 70px #0007; }
  .query-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .query-tools label:first-child { grid-column: 1 / -1; }
  .query-tools input, .query-tools select { width: 100%; }
  .coverage summary > span:first-child { display: grid; gap: 2px; }
  .source-stats { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .source-stat { min-width: 210px; }
  .results-line p:last-child { max-width: 58%; text-align: right; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card h2 { min-height: 0; font-size: 15px; margin-bottom: 13px; }
  .card-meta { display: block; }
  .card-meta span { display: block; margin-bottom: 5px; text-align: left !important; }
  .card-verification { display: none; }
  #detail-content { grid-template-columns: 1fr; }
  .detail-gallery { min-height: 280px; }
  .detail-gallery:not(.multi) .detail-image, .detail-gallery:not(.multi) .image-fallback { min-height: 280px; height: 42dvh; }
  .detail-body { padding: 28px 20px 30px; }
  .dialog-close { top: 27px; right: 27px; }
  .data-dialog-body { padding: 34px 20px 28px; }
  .digest { grid-template-columns: 1fr; gap: 5px; }
  .event-card { grid-template-columns: 132px minmax(0, 1fr); }
  .switch-browse-index { padding: 17px 15px; }
  .switch-browse-index > header { display: block; }
  .switch-browse-index header > p { margin-top: 6px; text-align: left; }
  .lab-case { grid-template-columns: 1fr; padding: 22px 18px; }
  .lab-case header { grid-column: 1; }
  .lab-evidence { grid-column: 1; }
  .lab-evidence form { align-items: stretch; flex-direction: column; }
}

@media (max-width: 430px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .shell { max-width: calc(100% - 30px); overflow-x: hidden; }
  h1 { font-size: 40px; }
  .tabs:not(.primary-tabs) { width: calc(100% + 15px); padding-right: 15px; overflow-x: auto; flex-wrap: nowrap; }
  .tabs:not(.primary-tabs) button { flex: 0 0 82px; }
  .primary-tabs { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; overflow: visible; padding: 0; }
  .primary-tabs button { min-width: 0; padding-inline: 5px; font-size: 12px; }
  .category-segments { width: 100%; overflow: hidden; }
  .category-segments button { min-width: 0; padding-inline: 7px; font-size: 12px; }
  .stage-segments { scrollbar-width: none; }
  .stage-segments::-webkit-scrollbar { display: none; }
  .spotlight-row { width: 100%; display: flex; overflow-x: auto; padding-bottom: 4px; }
  .spotlight-card { flex: 0 0 260px; }
  .discover-group header { display: block; }
  .discover-group header p { margin-top: 4px; }
  .grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 11; }
  .results-line { align-items: flex-start; }
  .results-line p:last-child { max-width: 65%; }
  .detail-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .dialog-close { top: 12px; right: 12px; }
  .detail-gallery.multi { grid-template-columns: 1fr 1fr; }
  .detail-gallery .detail-image { height: auto; aspect-ratio: 4/3; }
  .site-footer { flex-direction: column; gap: 6px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form label { grid-column: 1 / -1; }
  .personal-form, .experiment-form { grid-template-columns: 1fr; }
  .personal-form label, .personal-form .wide, .experiment-form label:nth-child(n) { grid-column: 1; }
  .personal-heading { align-items: start; flex-direction: column; gap: 4px; }
  .data-actions { align-items: stretch; flex-direction: column; }
  .build-edit, .build-assignment { grid-template-columns: 1fr; }
  .event-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .event-tools label:last-child { grid-column: 1 / -1; }
  .event-tools select { width: 100%; }
  .event-card { grid-template-columns: 1fr; }
  .event-image, .event-thumbnail, .event-image .image-fallback { min-height: 190px; max-height: 240px; }
}

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

/* Primary form actions read as actions, not browser-default buttons. */
.personal-form button[type="submit"], .lead-form button[type="submit"] {
  color: var(--paper);
  background: var(--strong);
  border-color: var(--strong);
  font-weight: 600;
}
.personal-form button[type="submit"]:hover, .lead-form button[type="submit"]:hover { opacity: .88; }

/* --- 2026-10-19 visual pass -------------------------------------------- */
/* Primary navigation as one segmented control, matching category/stage
   segments instead of five heavy outlined boxes. */
.catalog-tools { padding: 12px 0; }
.primary-tabs { width: auto; margin: 0 auto; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.primary-tabs button { min-height: 40px; border: 0; border-radius: 5px; color: var(--muted); font-weight: 500; }
.primary-tabs button:hover:not(.active) { color: var(--ink); background: color-mix(in srgb, var(--strong) 6%, transparent); }
.primary-tabs button.active { color: var(--paper); background: var(--strong); }
.primary-tabs button span { margin-left: 4px; font-family: inherit; font-size: .85em; opacity: .7; font-variant-numeric: tabular-nums; }
/* Shorter hero so results start above the fold. */
.catalog-intro { margin-bottom: 18px; }
.catalog-intro h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 4px 0 0; }
/* Change summaries are prose, not diffs. */
.event-changes { font-family: inherit; font-size: 12px !important; color: var(--muted); }
@media (max-width: 760px) {
  .primary-tabs { width: 100%; }
  .catalog-intro h1 { font-size: 40px; }
}

/* --- 2026-10-25 cleanup pass ------------------------------------------- */
/* The tab bar already names the page; keep the heading modest. */
.catalog-intro { margin-bottom: 14px; gap: 24px; }
.catalog-intro h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.03em; }
.catalog-intro .intro-copy { font-size: 14px; }
.discover-group + .discover-group { margin-top: 4px; }
@media (max-width: 760px) {
  .catalog-intro { gap: 8px; margin-bottom: 8px; }
  .catalog-intro h1 { font-size: 30px; }
  .catalog-intro .intro-copy { font-size: 13px; }
  /* Toolbar: segments, then a full search row, then sort + 筛选 side by side. */
  .discover-tools, .discover-tools.atlas-mode, .discover-tools.switch-mode { grid-template-columns: minmax(0, 1fr) auto; }
  .discover-tools .category-segments, .discover-tools .stage-segments { grid-column: 1 / -1; }
  .discover-tools .search-wrap { grid-column: 1 / -1; }
  .discover-tools .sort-wrap { grid-column: 1; }
  .discover-tools .filter-panel { grid-column: 2; }
  .discover-tools .switch-silent-toggle { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .stage-segments button { min-width: 0; padding-inline: 7px; font-size: 12px; }
}
@media (max-width: 430px) {
  .updated[data-short]:not([data-short=""]) { font-size: 0; }
  .updated[data-short]:not([data-short=""])::after { content: attr(data-short); font-size: 11px; }
}
.grid-more { display: block; margin: 22px auto 8px; min-height: 42px; padding: 0 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 600; }
.grid-more:hover { background: var(--surface-2); }
.situation-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
