/* ── Creative Diversity Matrix — standalone app shell ──────────────
   Deliberately its own small stylesheet, not dashboard.css's topbar/
   kpi-bar/tabs system. Reuses dashboard.css's --color-*/--space-*/
   --radius-* tokens (linked alongside this file) for theme + dark-mode
   consistency, but every layout/component rule here is purpose-built for
   this page — see SPEC_creative_diversity.md §11. Most component styling
   lives as inline styles in js/ui/diversity.js's render functions (matching
   this codebase's existing convention); this file only covers what inline
   styles can't do well (hover states) and the page shell itself. */

body.div-app {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
}

/* ── Top nav ──────────────────────────────────────────────────────── */
.div-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.div-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text);
}
.div-nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-brand);
}
.div-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.div-nav-links a, .div-nav-links button {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.div-nav-links a:hover, .div-nav-links button:hover { color: var(--color-brand-strong); }

/* ── Content shell ────────────────────────────────────────────────── */
.div-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* ── Catalog cards / rows ─────────────────────────────────────────── */
.div-card {
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.div-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-brand);
}
tr.div-card:hover {
  background: var(--color-surface-muted);
}

/* ── Taxonomy admin modal ─────────────────────────────────────────── */
#div-taxonomy-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
}
.div-tax-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 20, 0.45);
}
.div-tax-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}
.div-tax-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--color-text-subtle);
}

@media (max-width: 640px) {
  .div-nav-links { gap: 10px; }
  .div-shell { padding: 16px; }
}
