/* 私信（ADR-0221，dm.js）：「消息 → 私信」里的没读个数和陌生人小牌子、一段陌生人私信、第一次发私信。
   大舞台和直播间都用；卡片的底色和字照 ui.css 的 .sheet-card（大舞台上 stage.css 让卡片里的字一直是深色） */

.dm-head {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--size, 40px);
  height: var(--size, 40px);
  overflow: hidden;
  border-radius: 50%;
  background: #ece6db;
  color: #9a958c;
}

.dm-head svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dm-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 「消息」里那一行右边的没读个数 */
.dm-count {
  flex: none;
  align-self: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d64541;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.dm-tag,
.sv-itag.dm-tag {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: #efeae1;
  color: #6f6a62;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

/* 最上面「陌生人私信 N」那一行底下多一条线和下面的对话分开 */
.dm-pilerow {
  border-bottom: 1px solid #e4ddd0;
}

.dm-note,
.dm-card .dm-note {
  margin: 6px 0 10px;
  color: #6f6a62;
  font-size: 13px;
  line-height: 1.5;
}

.dm-fine {
  margin: 4px 0 8px;
  color: #8a857c;
  font-size: 12px;
  text-align: center;
}

.dm-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dm-top b {
  font-size: 16px;
}

/* 消息一条一条往下排，太多了在这一块里面滚 */
.dm-list {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  padding: 4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dm-msg {
  display: grid;
  justify-items: start;
  gap: 2px;
  cursor: pointer;
}

.dm-msg.mine {
  justify-items: end;
  cursor: default;
}

.dm-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #f1ece3;
  color: #1a1814;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dm-msg.mine .dm-bubble {
  border-radius: 14px 14px 4px 14px;
  background: #1a1814;
  color: #fffcf7;
}

.dm-msg small {
  color: #8a857c;
  font-size: 11px;
}

.dm-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: end;
  margin: 4px 0 8px;
}

.dm-compose textarea {
  grid-row: 1;
  grid-column: 1;
  resize: none;
}

.dm-compose .btn {
  grid-row: 1;
  grid-column: 2;
}

.dm-compose .dm-left {
  grid-row: 2;
  grid-column: 1;
}

.dm-left {
  display: block;
  color: #8a857c;
  font-size: 12px;
  text-align: right;
}

.dm-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 评论里别人的头像能点（出写评论的人那一张） */
.dm-tap {
  cursor: pointer;
}
