/* ==========================================================================
   NotebookLM Artifact Studio - Design System & Styles
   ========================================================================== */

:root {
  --bg-dark: #080b11;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-input: rgba(12, 16, 26, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(129, 140, 248, 0.5);
  
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic background lighting */
.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: 10%;
  background: radial-gradient(circle, var(--primary-500) 0%, transparent 70%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: 5%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-3 {
  width: 450px;
  height: 450px;
  top: 40%;
  right: 35%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.15;
}

/* App Layout */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.top-nav {
  height: 72px;
  padding: 0 28px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text h1 span {
  background: linear-gradient(135deg, #818cf8, #c084fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-center {
  flex: 1;
  max-width: 580px;
}

.notebook-quick-select {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.quick-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.select-wrapper {
  flex: 1;
  position: relative;
}

.select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
}

.select-wrapper select option {
  background: #111827;
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.account-badge.expired {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
  cursor: pointer;
}

.account-badge.expired:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: var(--accent-rose);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.account-badge.expired .status-dot {
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
}

/* Workspace Layout */
.workspace-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 340px;
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.sidebar-section:first-child {
  flex: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.role-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.subtle-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.search-box svg {
  color: var(--text-dim);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.notebook-list-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.notebook-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notebook-item {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notebook-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.notebook-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.item-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.notebook-info-section {
  max-height: 280px;
  overflow-y: auto;
}

.notebook-title-active {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.notebook-summary-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sources-list-box {
  margin-top: 6px;
}

.sources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sub-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sources-chip-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.source-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-chip::before {
  content: "📄";
  font-size: 0.8rem;
}

/* Main Content Workspace */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(8, 11, 17, 0.3);
}

/* Tabs */
.view-tabs {
  display: flex;
  padding: 12px 28px;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.4);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.tab-pane {
  display: none;
  padding: 28px;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane.active {
  display: flex;
}

/* Studio Cards */
.studio-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 16px var(--primary-glow);
}

.card-title-row h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Artifact Type Grid */
.artifact-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.type-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.type-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.type-card.selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary-500);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.type-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.type-meta {
  flex: 1;
}

.type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.type-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.type-meta p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.tag-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tag-badge.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-badge.pro {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Prompt Section */
.prompt-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

textarea#promptInput {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: var(--transition);
  line-height: 1.5;
}

textarea#promptInput:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 20px var(--primary-glow);
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.prompt-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.prompt-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

/* Dynamic Options */
.options-container {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.option-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-group select,
.option-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.option-group select:focus,
.option-group input:focus {
  border-color: var(--border-focus);
}

.option-group select option {
  background: #111827;
  color: #fff;
}

/* Action Footer */
.action-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d70f8, #5b53f3);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.generate-cta {
  padding: 14px 32px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.btn-sparkle {
  font-size: 1.2rem;
  animation: pulse-sparkle 2s infinite ease-in-out;
}

@keyframes pulse-sparkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Active Generation Monitor */
.active-job-card {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
  animation: fadeIn 0.3s ease;
}

.job-monitor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.pulse-indicator {
  position: relative;
  width: 24px;
  height: 24px;
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: radar 1.5s infinite linear;
}

@keyframes radar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.job-title-meta {
  flex: 1;
}

.job-title-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.job-title-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.job-timer {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan), var(--accent-purple));
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.terminal-logs-wrapper {
  background: #060910;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.terminal-pill {
  color: var(--accent-emerald);
}

.terminal-body {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.6;
}

/* Gallery & Media Player */
.media-player-container {
  background: #0a0e1a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.player-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-title-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.player-screen {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-screen video {
  max-height: 480px;
  width: 100%;
  outline: none;
}

.audio-screen {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.audio-artwork {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-screen {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.6;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-title h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

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

.artifact-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.artifact-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.art-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.art-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.art-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.art-card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.art-card-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.art-card-actions button {
  flex: 1;
}

/* Chat Tab */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.chat-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.chat-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.message {
  display: flex;
  gap: 14px;
  max-width: 80%;
}

.message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: rgba(16, 185, 129, 0.2);
}

.message-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.user-message .message-content {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.chat-input-area {
  padding: 16px 24px;
  background: rgba(10, 14, 23, 0.6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: none;
  outline: none;
}

.chat-input-area textarea:focus {
  border-color: var(--border-focus);
}

.send-btn {
  height: 44px;
  padding: 0 18px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Header & Sidebar Tool Buttons */
.new-nb-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtle-icon-btn {
  width: 26px;
  height: 26px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.subtle-icon-btn:hover {
  background: var(--primary-500);
  color: #fff;
  transform: scale(1.08);
}

.sources-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiny-icon-btn {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.tiny-icon-btn:hover {
  background: var(--primary-500);
  color: #fff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #0f1523;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-title-wrap p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Modal Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group .required {
  color: var(--accent-rose);
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 16px var(--primary-glow);
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.form-divider span {
  padding: 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Segmented Buttons */
.source-type-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.segment-btn {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.segment-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.segment-btn.active {
  background: var(--primary-500);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: #06281e;
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.4);
  background: #2b0d14;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Dialog Large */
.modal-dialog-lg {
  max-width: 640px;
}

/* Dropzone Styles */
.source-input-panel {
  margin-top: 4px;
}

.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary-500);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 2px;
}

.dropzone-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.selected-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: left;
}

.selected-file-preview .file-icon {
  font-size: 1.3rem;
}

.file-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.selected-file-preview .file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6ee7b7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-file-preview .file-size {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.selected-files-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.selected-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.selected-files-header .count-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.4);
  margin-left: 6px;
}

.selected-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.2s ease;
}

.selected-file-item:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
}

.selected-file-item .file-icon {
  font-size: 1.2rem;
}

.selected-file-item .file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6ee7b7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-file-item .file-size {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.add-more-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
  transition: all 0.2s;
}

.add-more-files-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  color: #fff;
}

.remove-file-btn {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.8rem;
  line-height: 1;
  transition: all 0.2s;
}

.remove-file-btn:hover {
  background: var(--accent-rose);
  color: #fff;
}

/* Video Auto-Generation Card in Modal */
.video-auto-gen-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gen-card-header {
  display: flex;
  align-items: center;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.toggle-container input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: var(--transition);
}

.toggle-container input:checked + .toggle-slider {
  background: var(--primary-500);
  box-shadow: 0 0 12px var(--primary-glow);
}

.toggle-container input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.toggle-label small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.gen-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.modal-prompt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mini-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.mini-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.video-settings-inline {
  display: flex;
  gap: 12px;
}

.inline-group {
  flex: 1;
}

.create-gen-btn {
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Modal Artifact Type Grid */
.modal-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .modal-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modal-type-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  gap: 4px;
}

.modal-type-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.modal-type-chip.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-500);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.modal-type-chip .chip-icon {
  font-size: 1.25rem;
}

.modal-type-chip .chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.modal-type-chip.selected .chip-label {
  color: #c7d2fe;
}

/* ==========================================================================
   Multi-Select & Batch Artifact Generation Styles
   ========================================================================== */

.selection-mode-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.mode-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-pill-btn.active {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.batch-sparkle {
  font-size: 0.85rem;
}

.batch-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease;
}

.batch-control-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-count-tag {
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.batch-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.batch-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bundle-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bundle-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-500);
  color: #fff;
  transform: translateY(-1px);
}

.clear-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.clear-pill:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

/* Card Check Indicator */
.card-check-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-card {
  position: relative;
}

.type-card.selected .card-check-indicator {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transform: scale(1.05);
}

/* Batch Stepper in Job Monitor */
.batch-stepper-box {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.batch-stepper-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.batch-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.batch-step-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary-500);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.batch-step-item.done {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.batch-step-item.failed {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.4);
}

.batch-step-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-step-status {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Batch Download Grid */
.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.batch-result-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.batch-result-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.batch-result-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}



