.app-view-panel--chenyuance-editor .app-view-panel__body {
  background: #f7f5f2;
}

.cyc-editor-page {
  min-height: 100%;
  padding: 12px 12px 28px;
  background: #f7f5f2;
}

.cyc-editor-page--profile,
.cyc-editor-page--character {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cyc-editor-page__nav {
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  gap: 12px;
}

.cyc-editor-page__back,
.cyc-editor-page__action {
  min-height: 42px;
  border: none;
  background: transparent;
  color: #4a5260;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.cyc-editor-page__back:hover,
.cyc-editor-page__action:hover {
  transform: translateY(-1px);
  background: transparent;
  box-shadow: none;
}

.cyc-editor-page__back {
  justify-self: start;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cyc-editor-page__action {
  width: 42px;
  border-radius: 14px;
  font-size: 22px;
  line-height: 1;
}

.cyc-editor-page__action--plus {
  font-weight: 400;
}

.cyc-editor-card {
  padding: 18px 16px;
  border-radius: 26px;
}

.cyc-editor-card--profile-avatar,
.cyc-editor-card--character-avatar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.cyc-editor-avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyc-editor-avatar-box__button {
  width: 92px;
  height: 92px;
  padding: 5px;
  border: 1px solid rgba(96, 102, 112, 0.14);
  border-radius: 24px;
  background: #fbfaf8;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.cyc-editor-avatar-box__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(78, 83, 92, 0.08);
  background: #ffffff;
}

.cyc-editor-avatar-box__button--square {
  border-radius: 22px;
}

.cyc-editor-avatar-box__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}

.cyc-editor-avatar-box__image--square {
  border-radius: 17px;
}

.cyc-editor-url-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-self: center;
}

.cyc-editor-url-box__label,
.cyc-editor-card__title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(77, 84, 95, 0.84);
}

.cyc-editor-card__title {
  margin-bottom: 16px;
}

.cyc-grid--editor-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 16px;
}

.cyc-grid--editor-inline .cyc-field--full {
  grid-column: 1 / -1;
}

.cyc-editor-card .cyc-field {
  gap: 10px;
}

.cyc-editor-card .cyc-solid-button,
.cyc-editor-card .cyc-outline-button {
  margin-top: 16px;
}

.cyc-editor-card--preview {
  padding-top: 18px;
}

.cyc-editor-preview-stack {
  display: grid;
  gap: 14px;
}

.cyc-preview-box {
  min-height: 120px;
  padding: 16px 16px;
  border: 1px dashed rgba(106, 111, 120, 0.18);
  border-radius: 18px;
  background: #faf8f5;
  color: rgba(77, 84, 95, 0.84);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 420px) {
  .cyc-editor-page {
    padding: 10px 10px 22px;
  }

  .cyc-editor-card {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .cyc-editor-card--profile-avatar,
  .cyc-editor-card--character-avatar {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .cyc-grid--editor-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 14px;
  }

  .cyc-editor-avatar-box {
    justify-content: flex-start;
  }

  .cyc-editor-avatar-box__button {
    width: 84px;
    height: 84px;
  }

  .cyc-editor-page__nav {
    grid-template-columns: 1fr 44px;
  }

  .cyc-editor-page__back {
    padding: 0 16px;
    font-size: 13px;
  }

  .cyc-editor-page__action {
    width: 44px;
  }

  .cyc-preview-box {
    min-height: 108px;
  }
}

.app-view-panel--chenyuance-editor .app-view-panel__body,
.cyc-editor-page {
  background: #dceced;
}

.cyc-editor-avatar-box__button,
.cyc-preview-box {
  border-color: rgba(171, 187, 209, 0.3);
  background: rgba(254, 253, 248, 0.76);
  color: #54627d;
  box-shadow:
    0 12px 28px rgba(171, 187, 209, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cyc-editor-page__back,
.cyc-editor-page__action {
  color: #5d6e8b;
}

.cyc-editor-page__back {
  border: 1px solid rgba(171, 187, 209, 0.5);
  background: rgba(254, 253, 248, 0.74);
  box-shadow:
    0 8px 18px rgba(171, 187, 209, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cyc-editor-page__action {
  border: 1px solid rgba(171, 187, 209, 0.34);
  background: rgba(254, 253, 248, 0.6);
  box-shadow:
    0 10px 22px rgba(171, 187, 209, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.cyc-editor-page__back:hover,
.cyc-editor-page__action:hover {
  background: rgba(254, 253, 248, 0.92);
}

.cyc-editor-page__back:hover {
  border-color: rgba(171, 187, 209, 0.72);
  box-shadow:
    0 10px 22px rgba(171, 187, 209, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.cyc-editor-page__action:hover {
  border-color: rgba(171, 187, 209, 0.5);
}

.cyc-editor-avatar-box__button:hover {
  border-color: rgba(171, 187, 209, 0.46);
  background: rgba(254, 253, 248, 0.92);
}

.cyc-editor-url-box__label,
.cyc-editor-card__title {
  color: rgba(93, 110, 139, 0.76);
}

.cyc-preview-box {
  border-style: dashed;
  border-color: rgba(171, 187, 209, 0.34);
  background: rgba(220, 236, 237, 0.38);
}
