/* Entry artwork only: preserve both complete portraits in every existing card size. */
[data-ai-fun-theme="ai_line_memory"] .ai-fun-theme-image-stack,
[data-h5-recommend="ai_line_memory"] .h5-theme-icon { background: #fcf5e9; }
body [data-ai-fun-theme="ai_line_memory"] .ai-fun-theme-image-stack > img,
body.h5-workspace #aiFunThemeGrid [data-ai-fun-theme="ai_line_memory"] .ai-fun-theme-icon img,
[data-h5-recommend="ai_line_memory"] .h5-theme-icon img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}
/* The standard library hides descriptions; use its existing copy area. */
body [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy {
  grid-template-rows: 20px 18px 21px;
  row-gap: 0 !important;
}
body [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy > strong {
  min-height: 0 !important;
  height: 20px !important;
  line-height: 20px !important;
}
body [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy > small {
  display: block !important;
  min-height: 0;
  height: 18px;
  margin: 0;
  overflow: hidden;
  color: #786655;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 850px) {
  body.h5-workspace [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy {
    display: grid;
    height: 56px;
    min-height: 56px;
    padding: 5px 8px;
    grid-template-rows: 18px 14px 14px;
    box-sizing: border-box;
  }
  body.h5-workspace [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy > strong {
    height: 18px !important;
    line-height: 18px !important;
  }
  body.h5-workspace [data-ai-fun-theme="ai_line_memory"] .ai-creation-copy > small {
    height: 14px;
    font-size: 10.5px;
    line-height: 14px;
  }
}
