/* Keep the story's accessible label while removing its visible heading. */
#ym-create-form #ym-comic-composer > label[for="ym-novel"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#ym-create-form #characterReferenceSummary.character-mention-chips {
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

#ym-comic-composer .character-mention-chip {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  padding: 3px 5px 3px 3px;
  border-color: #dfe1d7;
  border-radius: 10px;
  font-size: 11px;
  line-height: 16px;
}

#ym-comic-composer .character-mention-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#ym-comic-composer .character-mention-chip img {
  flex: none;
  width: 36px;
  height: 24px;
  border-radius: 6px;
}

#ym-comic-composer .character-mention-chip button {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
}

#ym-create-form #ym-comic-composer .ym-source-meta {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

#ym-create-form #ym-comic-composer .ym-source-meta > .ym-btn,
#ym-create-form #ym-comic-composer #characterReferenceButton {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #dfe1d7;
  border-radius: 10px;
  background: #fff;
  color: #5c6152;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 20px;
  white-space: nowrap;
}

#ym-create-form #ym-count {
  margin-left: auto;
  color: #707768;
  font-size: 10px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

#ym-create-form #ym-count[data-over="true"] {
  color: #9c3535;
}

#ym-create-form #ym-comic-composer > .ym-hint {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #707768;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#ym-create-form #ym-comic-composer > .ym-creation-footer {
  margin-top: 16px;
  padding-top: 16px;
}

#ym-comic-composer #characterReferenceButton:focus-visible,
#ym-comic-composer .character-mention-chip button:focus-visible {
  outline: 2px solid #55611b;
  outline-offset: 2px;
}

#ym-comic-composer #characterReferenceButton:active,
#ym-comic-composer .character-mention-chip button:active {
  transform: scale(.98);
}

@media (max-width: 480px) {
  #ym-create-form #ym-count {
    flex-basis: 100%;
    text-align: right;
  }
}
