/**
 * web-ui-control-integrity · 全仓共享 P0 兜底
 * 真身：tools/agent-capabilities/skills/web_ui/web-ui-control-integrity/control-integrity.css
 * 各 Web UI 经 sync-web-ui-integrity.sh 软链接入，禁止复制粘贴分叉。
 *
 * 覆盖：按钮/开关/工具条文案不换行；操作区不被挤扁的基础保护。
 * 布局拆栏（.mods-scroll / .mods-ops）仍由各产品实现，见 SKILL.md。
 */

/* 操作与标签：禁止折行撑高 / 裁半截 */
button,
[type="button"],
[type="submit"],
[type="reset"],
.el-button,
.el-button > span,
.el-button .el-icon + span,
.el-radio-button__inner,
.el-checkbox-button__inner,
.el-check-tag,
.el-tag,
.el-link,
input[type="button"],
input[type="submit"],
.tool-btn,
.tools-btn,
.action-btn,
.icon-btn,
.nav-btn,
.rail-btn,
.rail-label,
.dtab,
.tab-btn,
.event-tab,
.event-more,
.action-key,
.pane-toggle,
.si-cell,
.kpi,
.search-chip,
.w-ctrl button,
.w-tabs button,
.w-enter,
.wall-cta,
.mods-ops button,
.mods-ops .el-button,
.row-acts button,
.row-acts .el-button,
.title-acts button,
.title-acts .el-button {
  white-space: nowrap;
}

/* 带文案控件：禁止 flex 挤成竖条（nowrap 挡不住 min-width:0 / flex:1 缩扁） */
button,
[type="button"],
[type="submit"],
[type="reset"],
.el-button,
.tool-btn,
.tools-btn,
.action-btn,
.action-key,
.nav-btn,
.rail-btn,
.dtab,
.tab-btn,
.event-tab,
.event-more,
.wall-cta,
.w-enter,
.mods-ops button,
.mods-ops .el-button,
.row-acts button,
.row-acts .el-button,
.title-acts button,
.title-acts .el-button,
.foot-actions .el-button,
.foot-actions button {
  flex-shrink: 0;
  min-width: max-content;
  box-sizing: border-box;
}

/* 误给按钮套 .grow 时：取消 min-width:0，禁止缩扁 */
button.grow,
.el-button.grow,
[type="button"].grow,
[type="submit"].grow,
.tool-btn.grow {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: unset;
}

/* 操作簇：不被 flex 挤扁 */
.row-acts,
.title-acts,
.mods-ops,
.foot-actions {
  flex-shrink: 0;
}

/* 文本列才允许缩：勿给操作列加 min-width:0 */
.mods-ops,
.row-acts,
.foot-actions.row {
  min-width: max-content;
}
