/* Work Popup bTOWk. Declared source dimensions are minima, not fixed sizing. */
.modal-backdrop:has(.work-tools-modal) {
  align-items: center;
  background: rgba(82, 82, 82, 0.6);
}
.modal.work-tools-modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  min-width: 300px;
  max-width: 800px;
  min-height: 300px;
  padding: 24px 24px 28px;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
}
.work-tools-usages {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  min-height: 250px;
}
.work-tools-usage {
  display: flex;
  flex-direction: column;
  min-height: 56px;
}
.work-tools-metadata {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}
.work-tools-text {
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: calc(100% - 4px);
  margin: 0 2px;
  padding: 0 5px;
  border: 2px solid #c7c7c7;
  border-radius: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.work-tools-images {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  min-height: 150px;
  max-height: 600px;
  overflow: auto;
}
.work-tools-image-cell {
  flex-shrink: 0;
  min-height: 56px;
}
.work-tools-image-cell img {
  display: block;
  min-width: 300px;
  min-height: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.work-tools-ok {
  align-self: center;
  min-width: 60px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 200ms ease;
}
.work-tools-ok:hover:not(:disabled) {
  background: #091e7c;
  filter: none;
}
.work-tools-ok:disabled {
  opacity: 0.25;
}
.work-tools-unavailable {
  margin: 0 2px;
  padding: 5px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
