.topic-cover-preview {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 12px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #203d2c;
  border-radius: 16px;
}
.topic-cover-preview canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #203d2c;
}
.topic-font-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.topic-font-cell {
  display: grid;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(18 63 53 / 14%);
  border-radius: 12px;
  background: #fffdf9;
  color: inherit;
  cursor: pointer;
}
.topic-font-cell.is-selected {
  border-color: #bd8a37;
  box-shadow: 0 0 0 2px rgb(189 138 55 / 35%);
}
.topic-font-cell canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 8px;
  background: #e7e3da;
}
.topic-font-cell span {
  display: block;
  color: #123f35;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
.topic-photo-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 8px 0 4px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.topic-photo-thumb {
  box-sizing: content-box;
  position: relative;
  flex: none;
  width: 64px;
  height: 86px;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7ddd3;
  border-radius: 8px;
  cursor: pointer;
}
.topic-photo-thumb.is-cover {
  border-color: #bd8a37;
  box-shadow: 0 0 0 2px rgb(189 138 55 / 35%);
}
.topic-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  background: #e7e3da;
}
.topic-field { margin: 12px 0 0; }
.topic-field label,
.topic-field .field-label {
  display: block;
  margin: 0 0 6px;
  color: #5f6d68;
  font-size: 12px;
  font-weight: 700;
}
.topic-field .field-control,
.topic-field textarea,
.topic-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(18 63 53 / 14%);
  border-radius: 12px;
  background: #fffdf9;
  color: #123f35;
}
.topic-field textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.6;
}
.topic-field textarea[data-topic-field="coverText"] { min-height: 72px; }
.topic-count-hint {
  display: block;
  margin: 6px 0 0;
  color: #a15b32;
  font-size: 11px;
  line-height: 1.45;
}
.topic-count-hint:empty { display: none; }
.topic-hint {
  margin: 8px 0 0;
  color: #6f7b76;
  font-size: 12px;
  line-height: 1.55;
}
