/* ==========================================================================
   Kerr Maya Vase Browser — Archaeological Research Station
   Dark obsidian base, terracotta + jade accents, limestone text
   ========================================================================== */

:root {
  /* Obsidian / charcoal base */
  --bg-deep: #0e0e0f;
  --bg-surface: #161618;
  --bg-raised: #1e1e21;
  --bg-hover: #26262a;
  --bg-active: #2e2e33;

  /* Limestone / cream text */
  --text-primary: #e8e0d4;
  --text-secondary: #a89f90;
  --text-tertiary: #706a5f;
  --text-dim: #4a4640;

  /* Terracotta accent (Maya red) */
  --accent: #c45a3c;
  --accent-muted: #9e4a32;
  --accent-glow: rgba(196, 90, 60, 0.15);

  /* Jade accent */
  --jade: #4a8b6f;
  --jade-muted: #3a7059;

  /* Borders */
  --border: #2a2a2e;
  --border-subtle: #1f1f23;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-h: 56px;
  --sidebar-w: 280px;
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---------- Reset & Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--bg-active) var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------- Nav ---------- */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-glyph {
  font-size: 1.3rem;
  color: var(--accent);
  opacity: 0.9;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); }

.nav-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ---------- Main layout ---------- */

main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.view { animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Gallery view ---------- */

#view-gallery {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* -- Sidebar -- */

#filter-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.filter-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-glow); }

.filter-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.filter-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.filter-input::placeholder { color: var(--text-dim); }
.filter-input:focus { border-color: var(--accent-muted); }
.filter-input-sm { font-size: 0.78rem; padding: 6px 8px; margin-bottom: 6px; }

.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.82rem;
}
.filter-check:hover { background: var(--bg-hover); }

.filter-check input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--text-dim);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.12s, background 0.12s;
}
.filter-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid var(--bg-deep);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.filter-check .count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.filter-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.filter-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
}
.filter-list-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.filter-list-item.selected { color: var(--accent); background: var(--accent-glow); }
.filter-list-item .count {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.filter-row { display: flex; gap: 6px; }

.filter-select {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--accent-muted); }
.filter-select option { background: var(--bg-raised); color: var(--text-primary); }

/* -- Gallery main -- */

#gallery-main {
  padding: 20px 24px;
}

/* Visual search bar */
.visual-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.visual-search-bar input {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.visual-search-bar input:focus { border-color: var(--jade); }
.visual-search-bar input::placeholder { color: var(--text-dim); }
.visual-search-bar button {
  padding: 9px 18px;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.visual-search-bar button:hover { background: var(--accent-muted); }
.visual-search-bar .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 9px 12px;
}
.visual-search-bar .btn-ghost:hover { color: var(--text-primary); border-color: var(--text-dim); }
.search-bar-spacer { flex: 0 0 1px; height: 24px; background: var(--border); margin: 0 4px; }
#gallery-collection-select { flex: 0 0 auto; max-width: 180px; font-size: 0.8rem; }

.image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  background: var(--bg-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.image-upload-btn:hover { border-color: var(--jade); color: var(--jade); }
.image-upload-btn svg { flex-shrink: 0; }

.upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--jade-muted);
  border-radius: 6px;
}
.upload-preview-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.upload-preview-label {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.upload-preview-remove:hover { color: var(--accent); }

.visual-search-tag {
  font-size: 0.72rem;
  color: var(--jade);
  font-weight: 600;
  margin-right: 4px;
}

.gallery-status {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* -- Vase card -- */

.vase-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.vase-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.vase-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg-raised);
}

.vase-card-info {
  padding: 10px 12px;
}

.vase-card-kerr {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.vase-card-type {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.vase-card-site {
  font-size: 0.72rem;
  color: var(--jade);
  margin-top: 1px;
}

/* -- Pagination -- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding-bottom: 32px;
}

.page-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  font-variant-numeric: tabular-nums;
}
.page-btn:hover { border-color: var(--text-dim); color: var(--text-primary); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); font-weight: 600; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Detail view ---------- */

#view-detail { padding: 24px 32px; max-width: 1800px; margin: 0 auto; }
#view-detail:not(:has(.detail-compare-wrap)) { max-width: 1200px; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.12s;
}
.detail-back:hover { color: var(--accent); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.detail-image-wrap {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Crop-to-search overlay */
.crop-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 5;
}
.crop-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 6;
}
.crop-btn {
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.crop-btn:hover { background: var(--accent-muted); }
.crop-btn-go { background: var(--jade); }
.crop-btn-go:hover { background: var(--jade-muted); }
.crop-btn-ghost {
  background: rgba(30,30,33,0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.crop-btn-ghost:hover { color: var(--text-primary); }

.detail-image {
  width: 100%;
  display: block;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-kerr {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-field-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.detail-field-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.detail-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.element-tag {
  display: inline-block;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.element-tag:hover { color: var(--jade); border-color: var(--jade-muted); }

.detail-cluster-badges {
  display: flex;
  gap: 8px;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.cluster-badge:hover { background: rgba(196, 90, 60, 0.25); }
.cluster-badge.jade { background: rgba(74, 139, 111, 0.12); border-color: var(--jade-muted); color: var(--jade); }
.cluster-badge.jade:hover { background: rgba(74, 139, 111, 0.22); }

/* -- Similar vases strip -- */

/* Figures overlay on vase image */
.figures-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  display: none;
}

.crop-btn-active {
  background: var(--terracotta) !important;
  color: var(--obsidian) !important;
}

/* Extracted figures */
.figures-section {
  margin-top: 36px;
}

.figures-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.figure-card {
  flex-shrink: 0;
  width: 120px;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.figure-card:hover {
  transform: scale(1.05);
}

.figure-card img {
  width: 120px;
  height: 140px;
  object-fit: contain;
  background: var(--obsidian);
}

.figure-card-labels {
  padding: 4px 6px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.figure-card-active {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
}

/* Review buttons */
.review-btns {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 2px 0 4px;
}
.review-btn {
  width: 28px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.review-btn:hover { border-color: var(--text-secondary); }
.review-yes.active { background: #1a3a1a; border-color: #4caf50; color: #4caf50; }
.review-no.active { background: #3a1a1a; border-color: #e94560; color: #e94560; }
.figure-card.review-correct { outline: 2px solid #4caf50; outline-offset: -2px; }
.figure-card.review-incorrect { outline: 2px solid #e94560; outline-offset: -2px; opacity: 0.5; }

/* Figure similarity search results */
.figure-search-results {
  margin-top: 16px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 16px;
}

.figure-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.figure-results-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

.figure-results-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
}

.figure-results-close:hover {
  color: var(--terracotta);
}

.figure-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}

.figure-result-card {
  background: var(--obsidian);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s;
}

.figure-result-card:hover {
  transform: scale(1.05);
}

.figure-result-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: var(--obsidian);
}

.figure-result-info {
  display: flex;
  justify-content: space-between;
  padding: 3px 6px;
  font-size: 0.65rem;
}

.figure-result-kerr {
  color: var(--text-primary);
}

.figure-result-score {
  color: var(--jade);
}

.similar-section {
  margin-top: 36px;
}

.similar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.similar-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.similar-card {
  flex-shrink: 0;
  width: 150px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.similar-card:hover { border-color: var(--accent-muted); transform: translateY(-2px); }

.similar-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg-raised);
}

.similar-card-info {
  padding: 6px 8px;
}

.similar-card-kerr {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.similar-card-score {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.similar-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* -- Comparison panel -- */

.detail-compare-wrap {
  display: flex;
  gap: 24px;
}

.detail-compare-wrap .detail-layout,
.detail-compare-wrap #compare-panel {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  min-width: 0;
}

.detail-compare-wrap .detail-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-compare-wrap .detail-layout .detail-meta {
  gap: 10px;
}

.compare-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

.compare-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-nav-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.compare-nav-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-muted); }
.compare-nav-btn:disabled { opacity: 0.3; cursor: default; }

.compare-nav-pos {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.compare-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.compare-close:hover { color: var(--accent); border-color: var(--accent-muted); }

.compare-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.compare-header .detail-kerr {
  font-size: 1.6rem;
}

.compare-similarity {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.compare-image-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-image-wrap img {
  width: 100%;
  display: block;
}

.compare-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-open-link {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
}
.compare-open-link:hover { color: var(--text-primary); }

/* ---------- Scatter view ---------- */

#view-scatter {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h));
}

.scatter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.scatter-elem-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.scatter-elem-filter .filter-input {
  width: 180px;
  margin-bottom: 0;
}

.scatter-elem-clear-btn { margin-left: 2px; }

.scatter-elem-count {
  font-size: 0.72rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: 4px;
}

.scatter-main {
  flex: 1;
  display: flex;
  gap: 12px;
  min-height: 0;
}

.scatter-container {
  flex: 1;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.scatter-preview {
  flex: 0 0 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.2s ease;
}

.scatter-preview-close {
  align-self: flex-end;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.scatter-preview-close:hover { color: var(--accent); border-color: var(--accent-muted); }

.scatter-preview-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.scatter-preview-kerr {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scatter-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scatter-preview-link {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
}
.scatter-preview-link:hover { color: var(--text-primary); }

#scatter-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scatter-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.scatter-tooltip img {
  width: 120px;
  display: block;
  border-radius: 2px;
  margin-bottom: 4px;
}

.scatter-tooltip-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  max-height: 90px;
  overflow-y: auto;
  padding: 4px 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
  user-select: none;
}
.legend-item:hover { background: var(--bg-hover); }
.legend-item.active {
  background: var(--accent-glow);
  border-color: var(--accent-muted);
  color: var(--text-primary);
}

.legend-count {
  color: var(--text-dim);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Site network view ---------- */

#view-geomorph {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h));
}

.threshold-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.threshold-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.threshold-value {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
}

.edge-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.node-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.node-filter-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.node-filter-check input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.node-filter-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  margin-left: 4px;
}

.min-vases-input {
  width: 48px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 3px 6px;
  border-radius: var(--radius);
  outline: none;
  font-variant-numeric: tabular-nums;
}
.min-vases-input:focus { border-color: var(--accent-muted); }

.morph-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  background: var(--bg-active);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.morph-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  cursor: pointer;
  transition: transform 0.1s;
}
.morph-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.morph-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  cursor: pointer;
}

.geomorph-info {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Clusters view ---------- */

#view-clusters { padding: 20px 24px; }

.clusters-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.clusters-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.15s;
}
.cluster-card:hover { border-color: var(--accent-muted); }

.cluster-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.cluster-card-id {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cluster-card-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.cluster-thumbs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.cluster-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg-raised);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.12s;
}
.cluster-thumb:hover { border-color: var(--accent-muted); }

.cluster-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 10px;
}

.cluster-type-dist {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.cluster-type-bar { height: 100%; }

.cluster-browse-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
}
.cluster-browse-btn:hover { color: var(--text-primary); }

/* ---------- Throne Scatter View ---------- */

#view-throne-scatter {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h));
}

.throne-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.throne-mode-btns {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.throne-mode-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.throne-mode-btn:not(:last-child) { border-right: 1px solid var(--border); }
.throne-mode-btn:hover { background: var(--bg-hover); }
.throne-mode-btn.active {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.throne-slider-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.throne-slider-label input[type="range"] {
  width: 100px;
  accent-color: var(--accent);
}

.throne-slider-val {
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.throne-stats {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.throne-scatter-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

.throne-canvas-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-deep);
}

#throne-scatter-canvas {
  flex: 1;
  display: block;
  min-height: 200px;
}

#throne-dendro-canvas {
  width: 100%;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

.throne-side-panel {
  flex: 0 0 280px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}

.throne-placeholder {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  padding: 40px 12px;
}

.throne-img-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.throne-tab {
  flex: 1;
  padding: 5px 0;
  font-size: 0.72rem;
  font-family: var(--font-body);
  background: var(--bg-raised);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.throne-tab:not(:last-child) { border-right: 1px solid var(--border); }
.throne-tab:hover { background: var(--bg-hover); }
.throne-tab.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.throne-img-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
}

.throne-img-wrap.crop-mode .throne-sel-img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 250px;
}

.throne-img-wrap.full-mode .throne-sel-img {
  width: 100%;
  display: block;
}

.throne-sel-info {
  font-size: 0.82rem;
  line-height: 1.6;
}

.throne-kerr-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.12s;
}
.throne-kerr-link:hover { color: var(--text-primary); }

.throne-score {
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}

.throne-cluster-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.throne-override-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
  margin-left: 4px;
}

.throne-assign-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.throne-assign-row select {
  flex: 1;
  font-size: 0.75rem;
}

.throne-cluster-list-header {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.throne-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}

.throne-cluster-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.12s;
}
.throne-cluster-item:hover { background: var(--bg-hover); }
.throne-cluster-item.active {
  background: var(--accent-glow);
  outline: 1px solid var(--accent-muted);
}

.throne-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.throne-cname {
  flex: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.throne-counts {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
}

.throne-rename-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s;
}
.throne-cluster-item:hover .throne-rename-btn { opacity: 1; }
.throne-rename-btn:hover { color: var(--accent); }

/* ---------- Loading / empty states ---------- */

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* ---------- Type colors ---------- */

.type-polychrome  { background: #c45a3c; }
.type-codex       { background: #8a7d6a; }
.type-carved      { background: #4a8b6f; }
.type-incised     { background: #6a7db5; }
.type-molded      { background: #b5876a; }
.type-blackwhite  { background: #7a7a7a; }
.type-other       { background: #5a5a5a; }

/* ---------- Search preview overlay ---------- */

.search-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.search-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.search-preview-content {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 1200px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.search-preview-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.search-preview-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.search-preview-image-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg-deep);
  padding: 12px;
  min-width: 0;
}

.search-preview-img {
  max-width: 100%;
  max-height: calc(88vh - 60px);
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.search-preview-meta {
  flex: 0 0 300px;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-preview-kerr {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.search-preview-sim {
  font-size: 0.85rem;
  color: var(--jade);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.search-preview-seg {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin-top: 4px;
  background: var(--bg-raised);
}

.search-preview-open {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
}
.search-preview-open:hover { color: var(--text-primary); }

/* Highlight active card in grid */
.vase-card.preview-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---------- Collect button on vase cards ---------- */

.vase-card-collect {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 14, 15, 0.75);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vase-card:hover .vase-card-collect,
.vase-card-collect.collected {
  opacity: 1;
}
.vase-card-collect:hover {
  background: var(--jade);
  color: var(--bg-deep);
}
.vase-card-collect.collected {
  background: var(--jade-muted);
  color: var(--text-primary);
}

/* ---------- Floating collector bar ---------- */

.collector-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg-raised);
  border-top: 1px solid var(--jade-muted);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.collector-bar-link {
  color: var(--jade);
  font-weight: 600;
  text-decoration: none;
}
.collector-bar-link:hover { color: var(--text-primary); }

/* ---------- About page ---------- */

.about-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: var(--text-primary);
  line-height: 1.7;
}
.about-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.about-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 36px;
  margin-bottom: 12px;
}
.about-page p {
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.about-page ul {
  margin: 0 0 16px 20px;
  padding: 0;
}
.about-page li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.about-page a {
  color: var(--jade);
  text-decoration: none;
}
.about-page a:hover {
  text-decoration: underline;
}
.about-page strong {
  color: var(--text-primary);
}
.about-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Collector view ---------- */

.collector-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 24px 12px;
}
.collector-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
}
.collector-subtitle {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  flex: 1;
}

.collector-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 14px;
}
.collector-selector select {
  min-width: 180px;
}
.collector-action-btn {
  padding: 6px 12px;
  background: var(--bg-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.collector-action-btn:hover { border-color: var(--jade); color: var(--jade); }
.collector-action-danger:hover { border-color: var(--accent); color: var(--accent); }

.collector-sets {
  display: flex;
  gap: 24px;
  padding: 0 24px 16px;
  flex-wrap: wrap;
}
.collector-set {
  flex: 1;
  min-width: 200px;
}
.collector-set-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.collector-set-label span {
  color: var(--text-dim);
  font-weight: 400;
}
.collector-set-neg .collector-set-label { color: var(--accent-muted); }

.collector-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 60px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.collector-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 12px;
}
.collector-thumb {
  position: relative;
  width: 56px;
  cursor: pointer;
}
.collector-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--jade-muted);
}
.collector-thumb.rejected img {
  border-color: var(--accent-muted);
  opacity: 0.5;
}
.collector-thumb-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.collector-thumb:hover .collector-thumb-remove { display: flex; align-items: center; justify-content: center; }
.collector-thumb-remove:hover { background: var(--accent); color: var(--bg-deep); }
.collector-thumb-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 2px;
}

.collector-suggestions {
  padding: 0 24px 24px;
}
.collector-suggest-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.collector-suggest-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Accept/reject buttons on suggestion cards */
.collector-actions {
  display: flex;
  gap: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.collector-card:hover .collector-actions { opacity: 1; }
.collector-accept, .collector-reject {
  flex: 1;
  border: none;
  padding: 7px 0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.collector-accept {
  background: rgba(74, 139, 111, 0.85);
  color: var(--text-primary);
}
.collector-accept:hover { background: var(--jade); }
.collector-reject {
  background: rgba(196, 90, 60, 0.85);
  color: var(--text-primary);
}
.collector-reject:hover { background: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  #view-gallery { grid-template-columns: 1fr; }
  #filter-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .detail-layout { grid-template-columns: 1fr; }
  .vase-card-collect { opacity: 1; }
}
