.picker-hint {
  margin-top: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 92px;
  gap: 9px;
  margin-top: 18px;
}

.action-card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: 700 15px inherit;
}

.action-card:hover {
  border-color: var(--ink);
  background: #fdfefb;
}

.action-card span,
.action-card small {
  display: block;
}

.action-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.other-action {
  border-style: dashed;
  background: transparent;
}

.custom-action {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.custom-action > label:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.custom-icon-title {
  margin: 14px 0 7px;
  color: #425347;
  font-size: 13px;
  font-weight: 700;
}

.custom-icon-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.custom-icon-picker button {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9f4;
  cursor: pointer;
}

.custom-icon-picker button.selected {
  border-color: #8ca66d;
  background: #e3edda;
}

.custom-icon-picker .action-line-icon {
  width: 20px;
  height: 20px;
}

.custom-action-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.custom-action-buttons .compact {
  margin-top: 15px;
}

.delete-custom-action {
  margin-top: 15px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: #aa4a31;
  cursor: pointer;
  font: 700 12px inherit;
}

.action-card.custom-saved-card {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: #f3f7ee;
}

.custom-saved-card .action-select {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 11px 10px 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 15px inherit;
  text-align: left;
}

.custom-saved-card .action-manage {
  position: absolute;
  top: 9px;
  right: 9px;
  margin: 0;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: #e2ecd8;
  color: #547047;
  cursor: pointer;
  font: 700 10px inherit;
}

.save-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.save-tag.hidden {
  display: none;
}

.save-tag input {
  width: auto;
}

.compact {
  margin-top: 15px;
  padding: 12px 14px;
}

#editor #addBodyPicker,
#editor #actionPicker {
  margin-top: 18px;
}

@media (max-width: 390px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}
