.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.settings-card {
  grid-column: 1 / -1;
  max-width: 760px;
}

.settings-card label,
.template-element label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.settings-card textarea,
.template-element input,
.template-element select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #bed0c4;
  border-radius: 9px;
  padding: 8px;
  background: #fff;
}

.template-element {
  border: 1px solid #c8d8ce;
  border-radius: 14px;
  margin: 12px 0;
  padding: 12px;
}

.template-element legend {
  font-weight: 800;
}

.element-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checks input {
  width: auto;
  min-height: 0;
}

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