/* artifacts.css — Artifacts portal (plan-generated-artifacts.md P1).
   Reuses style.css for .dot; memory.css (now linked in artifacts.html
   alongside it) for .btn-sm, .btn-danger-sm, #toast/.toast-*. */

.art-body {
  margin: 0;
  background: #121212;
  color: #e8e8e8;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

#art-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  background: #161616;
  z-index: 10;
}
#art-topbar h1 { font-size: 1.1rem; margin: 0; flex: 1; font-weight: 600; }
#art-back {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: #9aa0a6; text-decoration: none; font-size: 0.9rem;
}
#art-back:hover { color: #e8e8e8; }
#art-status { display: flex; align-items: center; gap: 0.4rem; }
.mono-label { font-family: ui-monospace, monospace; font-size: 0.8rem; color: #9aa0a6; }

#art-filters {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid #222;
}
.art-filter {
  background: #1e1e1e; color: #cfcfcf; border: 1px solid #333;
  border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.82rem; cursor: pointer;
}
.art-filter:hover { border-color: #555; }
.art-filter.active { background: #2d4a63; color: #fff; border-color: #3d6a8f; }
#art-refresh { margin-left: auto; }

#art-search-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.25rem; border-bottom: 1px solid #222;
  font-size: 0.82rem; color: #9aa0a6;
}
#art-search-bar input {
  background: #1e1e1e; color: #e8e8e8; border: 1px solid #333;
  border-radius: 6px; padding: 0.3rem 0.6rem; font-size: 0.82rem;
}
#art-search { flex: 1 1 200px; min-width: 160px; }
#art-search-bar label { display: inline-flex; align-items: center; gap: 0.35rem; }

#art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.art-card {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.art-prev-link { display: block; }
.art-prev {
  width: 100%; height: 160px; object-fit: cover; display: block;
  background: #0e0e0e;
}
.art-prev-icon {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: #6a7077; height: 160px;
}
.art-audio { width: 100%; }

.art-meta { padding: 0.6rem 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.art-title {
  font-size: 0.9rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-sub { display: flex; gap: 0.5rem; align-items: center; font-size: 0.72rem; color: #8a8f94; }
.art-badge {
  background: #263238; color: #9fd3e6; border-radius: 4px;
  padding: 0.05rem 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.65rem;
}
.art-actions { display: flex; gap: 0.4rem; margin-top: 0.2rem; }
.art-actions .btn-sm { text-decoration: none; text-align: center; }

.art-empty { text-align: center; color: #8a8f94; padding: 3rem 1.25rem; font-size: 0.95rem; }
.hidden { display: none !important; }
