.mp-org-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-ink);
  color: var(--mp-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-projects-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.mp-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.mp-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.mp-project-card,
.mp-new-project-card {
  background: var(--mp-white);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  border: 1px solid var(--mp-gray-200);
  display: block;
  position: relative;
}

.mp-project-card:hover {
  box-shadow: var(--mp-shadow-md);
}

.mp-project-thumb {
  aspect-ratio: 4 / 3;
  background: var(--mp-canvas-bg);
  display: block;
}

.mp-project-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mp-project-info {
  padding: 12px 14px 14px;
}

.mp-project-info h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
}

.mp-project-info p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--mp-gray-600);
  line-height: 1.4;
}

.mp-project-date {
  font-size: 11.5px;
  color: var(--mp-gray-400);
}

.mp-card-menu {
  position: absolute;
  bottom: 82px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--mp-shadow-sm);
  font-weight: 700;
  color: var(--mp-gray-600);
  z-index: 5;
}

.mp-favorite-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--mp-shadow-sm);
  font-size: 15px;
  z-index: 5;
}

/* Sits immediately left of the favorite star — same size/shape, but a
   passive badge (not a button): only appears once a project has been
   marked available offline via the card's "..." menu. */
.mp-offline-chip {
  position: absolute;
  top: 10px;
  right: 46px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--mp-shadow-sm);
  color: var(--mp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.mp-offline-chip svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mp-new-project-card {
  aspect-ratio: unset;
  min-height: 210px;
  border: 1.5px dashed var(--mp-gray-300);
  background: var(--mp-gray-25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mp-gray-500);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: none;
}

.mp-new-project-card .mp-plus {
  font-size: 30px;
  font-weight: 300;
  color: var(--mp-gray-400);
}

.mp-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-gray-500);
}
