/* v25 文本输入行：发送键完整露出
   原因：input 用 flex:1 但没有 min-width:0，按输入框自身固有宽度撑到 297px，
   把「发送」键挤到行外并被右侧图标区盖住，看起来只剩一丝。
   处理：input 允许收缩，发送键固定宽度不缩，行内标签改成两行小字让位。 */

div:has(> input[placeholder="输入文本内容"]) {
  gap: 6px !important;
  overflow: visible !important;
}

/* 「文本输入:」标签 → 两行小字，省出约 26px */
div:has(> input[placeholder="输入文本内容"]) > span:first-child {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  flex: 0 0 26px !important;
  font-size: 0 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  text-align: center !important;
}
div:has(> input[placeholder="输入文本内容"]) > span:first-child::before {
  content: "文本\A输入";
  white-space: pre;
  display: block;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  color: var(--fc-text-mute, #8a94a6);
}

/* 输入框：允许收缩，字号小一档 */
input[placeholder="输入文本内容"] {
  min-width: 0 !important;
  width: 100% !important;
  flex: 1 1 0% !important;
  height: 26px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
}

/* 发送键：固定宽度、不参与收缩、深色底白字 */
input[placeholder="输入文本内容"] + button {
  flex: 0 0 auto !important;
  min-width: 58px !important;
  height: 26px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  background: #0b1420 !important;
  color: #eaf1fa !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  overflow: visible !important;
}
input[placeholder="输入文本内容"] + button:hover {
  background: #1b2a3d !important;
}
