.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 12rem));
  gap: 1rem;
  justify-content: start;
}

.status-card {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 12rem;
  justify-self: start;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.status-card-empty {
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-style: dashed;
  text-align: center;
}

.status-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.status-modal.hidden {
  display: none;
}

.status-modal-card {
  border-radius: 1.5rem;
  max-width: 52rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.status-modal-header {
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.status-modal-body {
  flex: 1;
  overflow-y: auto;
}

.status-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
  justify-content: start;
}

.status-menu-list.status-menu-list--grouped {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-menu-item {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.status-menu-tags {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.status-menu-group {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.75rem;
}

.status-menu-group-title {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.status-menu-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
  justify-content: start;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.status-filter-btn {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.status-filter-btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
}

.status-filter-btn.is-active {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 48rem) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .status-card {
    max-width: none;
    padding: 0.85rem;
  }

  .status-modal {
    padding: 0;
    align-items: stretch;
  }

  .status-modal-card {
    border-radius: 0;
    max-width: none;
    max-height: none;
    height: 100%;
  }

  .status-menu-list {
    grid-template-columns: 1fr;
  }

  .status-menu-group-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 60rem) {
  .status-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 13rem));
  }

  .status-card {
    max-width: 13rem;
  }
}
