.grid {
  display: grid;
  gap: 12px;
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-16 {
  margin-top: 16px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal__dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.3);
  padding: 16px;
}

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

.modal__header h3 {
  margin: 0;
}

.modal__close {
  border: 1px solid #cbd5e1;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.modal__actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .cols-2 {
    grid-template-columns: 1fr;
  }
}
