.crd-fpe {
  display: grid;
  gap: 22px;
}

.crd-fpe-head h2 {
  margin: 0 0 8px;
  color: #18202b;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.crd-fpe-head p {
  margin: 0;
  color: #667085;
}

.crd-fpe-notice,
.crd-fpe-message,
.crd-fpe-empty {
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: #344054;
}

.crd-fpe-message {
  border-color: rgba(10, 111, 111, 0.28);
  background: #e6f3f2;
  color: #064f56;
  font-weight: 800;
}

.crd-fpe-toolbar {
  display: flex;
  justify-content: flex-end;
}

.crd-fpe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #0a6f6f;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.crd-fpe-button.secondary {
  color: #0a6f6f;
  background: #e6f3f2;
}

.crd-fpe-link {
  border: 0;
  padding: 0;
  color: #0a6f6f;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.crd-fpe-list {
  display: grid;
  gap: 12px;
}

.crd-fpe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.crd-fpe-row strong,
.crd-fpe-row span {
  display: block;
}

.crd-fpe-row span {
  margin-top: 4px;
  color: #667085;
  font-size: 0.92rem;
}

.crd-fpe-row-actions {
  display: flex;
  gap: 12px;
  font-weight: 850;
}

.crd-fpe-row-actions a {
  color: #0a6f6f;
  text-decoration: none;
}

.crd-fpe-form {
  display: grid;
  gap: 18px;
}

.crd-fpe-form label,
.crd-fpe-editor,
.crd-fpe-image {
  display: grid;
  gap: 8px;
}

.crd-fpe-form label span,
.crd-fpe-editor > span,
.crd-fpe-image span,
.crd-fpe-form legend {
  color: #18202b;
  font-weight: 850;
}

.crd-fpe-form input[type="text"],
.crd-fpe-form textarea,
.crd-fpe-form select {
  width: 100%;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 11px 12px;
  color: #18202b;
  background: #fff;
  font: inherit;
}

.crd-fpe-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) 1fr;
  gap: 18px;
}

.crd-fpe-form fieldset {
  margin: 0;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 14px;
}

.crd-fpe-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.crd-fpe-cats label {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
}

.crd-fpe-image {
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.crd-fpe-image > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.crd-fpe-preview {
  display: grid;
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #d7dde7;
  border-radius: 8px;
  background: #f4f7fb;
}

.crd-fpe-preview.has-image {
  border-style: solid;
}

.crd-fpe-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.crd-fpe-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 760px) {
  .crd-fpe-row,
  .crd-fpe-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .crd-fpe-grid {
    grid-template-columns: 1fr;
  }
}
