/* 最后一轮统一收尾（加载在所有样式之后）：全站提示一套样式 + 按钮内容居中。 */

/* ── 轻提示 toast：底部居中、三种（普通 / 成功 / 失败）同一形状、同一时长（app.js TOAST_MS） ── */
.ok-toast-host{bottom:calc(var(--nav-height,0px) + 16px);z-index:260;gap:8px}
.ok-toast{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;max-width:100%;padding:9px 18px;border-radius:999px;color:#fff;background:rgb(28 28 30 / 82%);font-size:15px;font-weight:var(--ok-weight-medium,500);line-height:20px;text-align:center;box-shadow:0 6px 24px rgb(0 0 0 / 22%),inset 0 .5px 0 rgb(255 255 255 / 16%);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);animation:ok-toast-in .22s var(--ok-ease,ease) both}
.ok-toast.is-error{color:#fff}
.ok-toast-icon{display:grid;flex:none;place-items:center;width:20px;height:20px}
.ok-toast-icon svg{width:20px;height:20px;stroke-width:2.2}
.ok-toast.is-success .ok-toast-icon{color:#34c759}
.ok-toast.is-error .ok-toast-icon{color:#ff6961}
.ok-toast-text{min-width:0;overflow-wrap:anywhere}
html.lowfx .ok-toast{background:rgb(28 28 30 / 94%);-webkit-backdrop-filter:none;backdrop-filter:none}
@media (prefers-reduced-motion:reduce){.ok-toast{animation:none}}

/* ── 表单校验 / 字段说明：统一贴在字段下面，一种字号，错误红、说明灰 ── */
.wl-error,.pg-error,.profile-edit-status,.gt-status.is-error,#sa-error,.ok-field-msg{min-height:18px;margin:6px 4px 0;padding:0;color:var(--ok-danger,#ff453a);font-size:13px;font-weight:var(--ok-weight-regular,400);line-height:18px;text-align:left}
.wl-error:empty,.profile-edit-status:empty,#sa-error:empty{min-height:0;margin:0}
.wl-hint,.pg-hint,.gt-status,.ok-sheet-status,.bet-range-hint,.sc-tip,.ok-field-hint{margin:6px 4px 0;color:var(--ok-label-3);font-size:13px;line-height:18px}
.pg-error{text-align:center}
.bet-range-hint,.sc-tip{text-align:center}
.shop-warn{color:var(--ok-danger,#ff453a);font-size:12px;line-height:16px}

/* ── 按钮：内容水平垂直居中、统一行高 ──
   按钮里的文字不再用 line-height:normal（中文字体的 normal 行高上下不对称，真机上字会偏上 / 偏下）；
   图标 + 文字的按钮一律 flex 居中，图标作块级元素不留基线空隙。 */
button,[role=button]{line-height:1.25}
button>svg,[role=button]>svg{flex:none}
button:not([class*="row"]):not([class*="cell"])>svg{vertical-align:middle}
.primary,.secondary-action,.ok-sheet-confirm,.ok-btn-block,.pf-follow,.cp-follow,.ok-text-btn,.ok-chips>button,.ok-segmented>button,.rw-seg>button,.ok-action-btn{line-height:22px}
.primary,.secondary-action,.ok-sheet-confirm,.ok-btn-block,.pf-follow,.cp-follow{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center}
.ok-btn-block,.ok-page-foot>.primary,.ok-page-foot>.secondary-action,.pf-page .pf-follow,.wl-sheet .primary,.ok-sheet .primary,.ok-sheet-confirm{display:flex;width:100%}
.ok-segmented>button,.rw-seg>button,.ok-chips>button{display:inline-flex;align-items:center;justify-content:center}
/* 顶栏余额胶囊 + 号、tab 栏、游戏钱包圆按钮、商店快捷栏、数字键盘：图标块级居中，文字行高固定 */
.ok-balance{line-height:20px}
.ok-balance-plus{display:grid;place-items:center;line-height:1}
.ok-balance-plus svg,.nav button svg,.lg-wallet-actions button svg,.shop-quick button svg,.pg-keys button svg{display:block}
.nav button{line-height:14px}
.lg-wallet-actions button{line-height:16px}
.lg-wallet-actions button>span:first-child,.lg-wallet-actions button>i{display:grid;place-items:center}
.shop-page .shop-quick button{line-height:16px}
.pg-keys button{display:flex;align-items:center;justify-content:center;line-height:1}
.ok-action-btn{display:flex;align-items:center;justify-content:center;text-align:center}
.ok-action-btn>*{min-width:0}
.vd-actions button,.shop-detail-cart,.lg-side button,.shop-quick button{line-height:16px}
.vd-actions button>span,.shop-detail-cart>span{line-height:16px}

/* 搜索按钮：去掉方框，和输入框同高的文字按钮；没输入时变淡 */
.video-search-form button[type=submit],.shop-search button[type=submit]{min-height:44px;padding:0 4px 0 10px;border:0;border-radius:999px;background:none;box-shadow:none;color:var(--ok-brand-strong);font-size:16px;font-weight:600;transition:opacity .15s}
.video-search-form button[type=submit]:active,.shop-search button[type=submit]:active{opacity:.5}
.video-search-form:has(input:placeholder-shown) button[type=submit],.shop-search:has(input:placeholder-shown) button[type=submit]{opacity:.4}
.video-search-form .video-search-clear{min-height:0;box-shadow:none;background:none;color:var(--ok-label-3)}

/* LadyCat sits in the layout so it never covers text or controls. */
.mascot-entry{display:flex;flex-direction:column;align-items:center;gap:8px}
.feed-status>xx-mascot{display:grid;margin:0 auto 6px}
.pf-id-row>xx-mascot{align-self:center}
.ok-result>xx-mascot{display:grid;margin:0 auto 10px}
