/* 资金页面的报错要看得出是报错。
 *
 * 问题（2026-09-09 生产实测）：
 *   theme-current-profile-v11-inline-fonts-fast-20260810.css 里有一条
 *     .player-action-shell:not(.agent-action-shell)
 *     :where(.funding-alert, .funding-note-card, .notice, .privacy-strip, .support-scope)
 *     { color/background/border-color 全部 !important }
 *   它把 .funding-alert 和普通提示卡片一起刷成鼠尾草绿，连 .danger 也一起压掉。
 *   于是「提现金额超过可提余额」和「充值到账后进入现金钱包」长得一模一样，
 *   玩家分不出哪句是出错。
 *
 * 特异性是这条补丁的关键，不能随手加更高的：
 *   主题那条         .player-action-shell:not(...) :where(...)      = (0,2,0)
 *   本条             .player-action-shell .funding-alert.danger     = (0,3,0)   压得住它
 *   兑换页自己的红   .player-action-shell .exchange-tool-page
 *                    .funding-alert.danger                          = (0,4,0)   仍然赢过本条
 * 所以兑换页原本的渐变红保持不变，只有被主题刷绿的那些页面被还原。
 *
 * 颜色直接沿用 .funding-alert.danger 原本的定义，不自创配色。
 * 那条主题规则没有分层，所以普通 !important 就压得住，不需要 @layer。
 */
.player-action-shell .funding-alert.danger {
  background: rgb(253, 236, 239) !important;
  color: rgb(183, 75, 89) !important;
  border-color: rgb(242, 205, 212) !important;
}

/* 充值确认页：银行提示的第二行被下面的卡片压住。
 *
 * 问题（2026-09-10 用户实拍）：
 *   「Only bank accounts linked and verified in your name can be selected.」
 *   这句是 deposit-bound-bank 补丁后加的，它把 .deposit-checkout-form 的内容
 *   撑到 260px，但该区块被 min-height:252px !important 定住且 height:auto，
 *   在父网格里不会长高，于是内容溢出 17px，下一块从 386 排下来正好盖住第二行。
 *
 * 实测四种改法：
 *   min-height:auto        无效（仍 252）
 *   min-height:0           更糟（缩到 227，溢出 42）
 *   min-height:max-content 区块长高了但父网格的行没跟着长，反而遮挡 34
 *   height:max-content     区块 281、父网格行同步长高、间隔 +20  ← 采用
 *
 * 特异性必须压过内联样式块里那条 html body #root ... {height:auto!important}，
 * 所以这里重复一次类名把特异性再抬一级。不写死像素，换语言文案变长也不会再顶出去。
 */
html body #root .player-action-shell .deposit-form-page .deposit-checkout-form.deposit-checkout-form {
  height: max-content !important;
  min-height: 0 !important;
}

/* 充值确认页：订单卡片第三行「付款银行」被切掉一半。
 *
 * 问题（2026-09-11 用户录屏，中文界面）：
 *   .player-action-page-content 在手机上高度固定为一屏（overflow:auto）并用 grid 排列，
 *   行是 auto。.funding-order-card 被主题设成 overflow:hidden，按 grid 规则它的
 *   最小高度就变成 0。内容总高一旦超过一屏，grid 先把这张卡片压扁再滚动：
 *   实测合规框 326px 时卡片 198px 正常，450px 时压到 81px，520px 以上只剩 30px。
 *   换语言后文案行数不同，页面总高刚好越过一屏，所以看起来像是「换语言才坏」。
 *
 * 修法：把这一页 grid 的行改成按内容定高（max-content），不许压缩，超出就滚动。
 *   内容放得下时 max-content 与 auto 结果完全相同（实测 200/326px 两组逐行一致），
 *   只在超出一屏时才起作用。不给卡片写死像素，以后加行、换语言都不会再切。
 *   提现页内容区不是 grid，不受此问题影响，所以只作用于充值确认页。
 */
html body #root .player-action-shell .deposit-form-page > .player-action-page-content.player-action-page-content {
  grid-auto-rows: max-content !important;
}
