.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card.is-active {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.project-thumb {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  background: linear-gradient(135deg, #252a38, #11131a);
  color: rgba(255,255,255,.48);
}

.project-active-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 9px;
  color: #171922;
  font-size: 0.62rem;
  font-weight: 700;
}

.project-thumb svg {
  width: 46px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.project-body {
  padding: 16px;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-folder-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--text-tertiary);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.project-card-actions button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.project-card-actions button:hover {
  background: var(--surface-muted);
  color: var(--foreground);
}

.project-card-actions button.is-danger:hover {
  background: color-mix(in srgb, #dc2626 10%, var(--surface));
  color: #e85d55;
}

.project-card-actions svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-body h3 {
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.project-body p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.62rem;
}

.project-open-button {
  width: 100%;
  margin-top: 16px;
}

.empty-project {
  grid-column: 1 / -1;
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  text-align: center;
}

.empty-project svg {
  width: 42px;
  stroke: var(--text-tertiary);
  stroke-width: 1.5;
}

.empty-project h3 {
  margin: 12px 0 4px;
}

.empty-project p {
  max-width: 340px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

