/* 后台提示词模板卡片对齐（热修，兼容当前线上旧 DOM） */
.tpl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.tpl-thumb {
  flex: none;
}
.tpl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tpl-body .tb-row {
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tpl-body .tb-row > div {
  flex: 1;
  min-width: 0;
}
.tpl-body .tb-row > div > b,
.tpl-body .tb-title {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tpl-body .tb-row > .t-mono,
.tpl-body .tb-price {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.tpl-body .tb-cat {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.tpl-foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  min-height: 43px;
}
.tpl-foot .btn {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  justify-content: center;
  gap: 5px;
  padding-left: 8px;
  padding-right: 8px;
}
.tpl-foot .btn svg {
  flex: none;
}
.tpl-foot .btn-icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px;
  height: 30px;
  padding: 0;
}
