/* PresentTool™ Dashboard — AI Runs view (v3.7.0) */

.runs-root {}

/* ── Toolbar ── */
.runs-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.runs-filter-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.run-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--pt-border); border-radius: 999px;
  background: var(--pt-surface-0); color: var(--pt-text-muted); cursor: pointer;
}
.run-chip:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.run-chip.is-active { background: var(--pt-accent-soft); border-color: var(--pt-accent-mid); color: var(--pt-primary); }
.run-chip svg { width: 12px; height: 12px; }

/* ── Run rows ── */
.runs-list { display: flex; flex-direction: column; gap: 8px; }
.run-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 12px 16px;
  transition: box-shadow 0.12s ease;
}
.run-row:hover { box-shadow: var(--pt-shadow-card); }
.run-thumb {
  width: 64px; height: 48px; border-radius: 6px;
  background: var(--pt-surface-3); flex: 0 0 auto;
  overflow: hidden; position: relative;
}
.run-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.run-thumb-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--pt-text-muted);
}
.run-thumb-icon svg { width: 22px; height: 22px; }
.run-body { flex: 1; min-width: 0; }
.run-name {
  font-size: 13.5px; font-weight: 500; color: var(--pt-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.run-meta {
  font-size: 12px; color: var(--pt-text-muted); margin-top: 2px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.run-meta .sep { color: var(--pt-text-subtle); }
.run-credits {
  font-family: var(--pt-mono); font-size: 11.5px;
  background: var(--pt-accent-soft); color: var(--pt-primary);
  border-radius: 4px; padding: 1px 6px;
}
.run-status { flex: 0 0 auto; }
.run-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.run-btn-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: transparent; border: 1px solid var(--pt-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--pt-text-muted); cursor: pointer;
}
.run-btn-icon:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.run-btn-icon svg { width: 13px; height: 13px; }

/* ── Empty state ── */
.runs-empty {
  text-align: center; padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--pt-text-muted);
}
.runs-empty svg { width: 36px; height: 36px; opacity: 0.35; }
.runs-empty .title { font-family: var(--pt-serif); font-style: italic; font-size: 20px; color: var(--pt-text); margin: 0; }

/* ── Load more ── */
.runs-load-more { text-align: center; margin-top: 20px; }

/* ── Skeleton ── */
.run-row-skel {
  height: 72px; border-radius: var(--pt-radius-md);
  background: linear-gradient(90deg, var(--pt-surface-2) 25%, var(--pt-surface-3) 50%, var(--pt-surface-2) 75%);
  background-size: 200% 100%;
  animation: skel-slide 1.4s ease infinite;
}
@keyframes skel-slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .run-row { padding: 10px 12px; gap: 10px; }
  .run-thumb { width: 48px; height: 36px; }
  .run-meta { display: none; }
}
