.m42-lifecycle {
  border: 1px solid #b8c7e8;
  background: linear-gradient(145deg, #f8faff 0%, #eef4ff 100%);
}

.m42-lifecycle[hidden] {
  display: none;
}

.m42-lifecycle__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8eefb;
  color: #34507f;
  font-size: 12px;
  font-weight: 700;
}

.m42-lifecycle__status[data-tone="ok"] {
  background: #ddf5e8;
  color: #17653b;
}

.m42-lifecycle__status[data-tone="error"] {
  background: #fde8e8;
  color: #9c2e2e;
}

.m42-lifecycle__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.m42-lifecycle__boundary {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #e7c66e;
  border-radius: 8px;
  background: #fff8dd;
  color: #725311;
  font-size: 13px;
  line-height: 1.55;
}

.m42-lifecycle__card,
.m42-lifecycle__editor {
  padding: 14px;
  border: 1px solid #d9e2f4;
  border-radius: 10px;
  background: #fff;
}

.m42-lifecycle__card small,
.m42-lifecycle__editor label {
  display: block;
  margin-bottom: 5px;
  color: #687794;
  font-size: 12px;
}

.m42-lifecycle__card strong,
.m42-lifecycle__card code {
  display: block;
  overflow-wrap: anywhere;
}

.m42-lifecycle__editors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.m42-lifecycle__editor input,
.m42-lifecycle__editor textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #cbd6ea;
  border-radius: 7px;
  background: #fff;
  color: #1c2b44;
  font: inherit;
}

.m42-lifecycle__editor textarea {
  min-height: 100px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.m42-lifecycle__diff {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #17233a;
  color: #eaf0ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 1100px) {
  .m42-lifecycle__grid,
  .m42-lifecycle__editors {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .m42-lifecycle__grid,
  .m42-lifecycle__editors {
    grid-template-columns: 1fr;
  }
}
