/* 咸鱼电竞设计系统 · 11-pages
   业主 2026-10-11 v7 部署：资金 / 人员 / 报表 / 设置 / 个人中心各页按全站预览落地
   （预览 css/10-pages.css .row.r-ava / .dtable / .rate-board / .profile + css/11-v7.css）。
   复用 10-reports.css 的 .xy-rep 套件（tabs、搜索、徽章、空态）；本文件只补 .xy-pg 专属部分。
   同样不分层：stage6.css、tailwind.css 没分层，会压过 @layer xy.*。 */

/* ── 页面外壳 ── */
.xy-pg { display: grid; gap: var(--s-6); min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.xy-pg > .xy-lead { margin: 0; }
.xy-pg .rep-board { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.xy-pg .rep-board > .section-head.xy-sec { padding: 4px 4px 0; margin-bottom: 10px; }
.xy-pg .pg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.xy-pg .pg-count { font-size: 12.5px; color: var(--text-4); white-space: nowrap; }
.xy-pg .pg-note { font-size: 12px; color: var(--text-4); white-space: nowrap; }

/* 实底卡（预览 .card） */
.xy-pg .pg-card {
  display: grid; gap: 0; min-width: 0; margin: 0; padding: 4px 0 0; border: 0; border-radius: var(--r-xl, 22px);
  background: linear-gradient(180deg, rgba(255, 236, 245, .022), transparent 160px), var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(255, 228, 240, .045);
}
.xy-pg .pg-card > .section-head.xy-sec { padding: 18px 24px 12px; margin: 0; }
.xy-pg .pg-card > .pg-body { padding: 4px 24px 24px; min-width: 0; }

/* ── tabs：aria-pressed 版（同 .xy-tab[aria-selected]） ── */
.xy-pg .xy-tab[aria-pressed="true"] { color: var(--text-1); font-weight: 600; }
.xy-pg .xy-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.xy-pg .xy-tab[aria-pressed="true"] .num { background: var(--accent-tint); color: var(--accent); }
.xy-pg .xy-tab.withdrawal-filter, .xy-pg .xy-tab.wallet-filter { min-height: 44px; }
.xy-pg .rep-board > .xy-tabs, .xy-pg .rep-board > .wallet-filters { width: 100%; box-sizing: border-box; }
.xy-pg .wallet-filters { position: relative; display: flex; gap: var(--s-5); margin: 0; padding: 0 4px; border: 0; border-bottom: 1px solid var(--hairline); background: none; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
.xy-pg .wallet-filters::-webkit-scrollbar { display: none; }
.xy-pg .wallet-filters .wallet-filter { background: none; color: var(--text-3); box-shadow: none; border-radius: 0; }
.xy-pg .wallet-filters .wallet-filter[aria-pressed="true"] { color: var(--text-1); }

/* ── 工具条：排序分段（老板客户三态排序） ── */
.xy-pg .pg-sort .sort-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; min-height: 32px; margin: 0; padding: 0 14px; border: 0; border-radius: calc(var(--r-md) - 3px);
  background: none; box-shadow: none; font-size: 13px; font-weight: 400; color: var(--text-3); white-space: nowrap; cursor: pointer;
}
.xy-pg .pg-sort .sort-btn small { display: none; }
.xy-pg .pg-sort { box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.xy-pg .pg-sort .sort-btn svg { display: none; width: 13px; height: 13px; }
.xy-pg .pg-sort .sort-btn:not([aria-label$="默认"]) { background: var(--bg-raised); color: var(--text-1); font-weight: 600; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.xy-pg .pg-sort .sort-btn:not([aria-label$="默认"]) svg { display: block; color: var(--accent); }
.xy-pg .rep-tools .wallet-data-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 12.5px; color: var(--text-4); }
.xy-pg .rep-tools .wallet-data-state[data-tone="success"] { display: none; }
.xy-pg .rep-tools .wallet-data-state[data-tone="error"] { color: var(--rose-400); }

/* ── 行卡：一位一张圆角卡（预览 .row.r-ava） ── */
.xy-pg .pg-queue { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; container-type: inline-size; }
.xy-pg .pg-row {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(120px, 1.2fr) 112px minmax(92px, auto) auto;
  align-items: center; gap: var(--s-5); min-height: 76px; margin: 0; padding: 14px 18px 14px 20px; border: 0; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 236, 245, .03), transparent 70%), var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(255, 228, 240, .05), 0 10px 24px -18px rgba(0, 0, 0, .8);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.xy-pg .pg-row:hover { background: linear-gradient(180deg, rgba(255, 236, 245, .045), transparent 70%), var(--bg-raised); }
.xy-pg .pg-row.is-selected { box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(244, 179, 207, .3); }
.xy-pg .pg-row > .xy-ava { width: 40px; height: 40px; font-size: 14px; }
.xy-pg .pg-row > .rep-dot { justify-self: center; }
.xy-pg .pg-main { display: grid; gap: 5px; min-width: 0; }
.xy-pg .pg-main strong { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text-1); white-space: nowrap; }
.xy-pg .pg-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: 12px; color: var(--text-4); }
.xy-pg .pg-people { display: grid; gap: 3px; min-width: 0; font-size: 13px; color: var(--text-2); }
.xy-pg .pg-people > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xy-pg .pg-people em { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: var(--text-4); }
.xy-pg .pg-people b { font-weight: 600; color: var(--text-1); }
.xy-pg .pg-amount { display: grid; justify-items: end; gap: 3px; font-size: 16px; font-weight: 600; color: var(--text-1); white-space: nowrap; }
.xy-pg .pg-amount small { font-family: var(--font-ui); font-size: 11.5px; font-weight: 400; color: var(--text-4); }
.xy-pg .pg-tail { display: grid; justify-items: end; gap: 5px; min-width: 0; }
.xy-pg .pg-tail small { max-width: 100%; overflow: hidden; font-size: 11.5px; color: var(--text-4); text-overflow: ellipsis; white-space: nowrap; }
.xy-pg .pg-tail:empty { visibility: hidden; }
.xy-pg .pg-meta { display: none; }
.xy-pg .pg-acts, .xy-pg .pg-acts > span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.xy-pg .pg-acts:empty { display: none; }
.xy-pg .pg-acts > span { flex-wrap: nowrap; }
.xy-pg .pg-acts button { flex: 0 0 auto; }
.xy-pg .pg-people em + b + em { margin-left: 8px; }
.xy-pg .pg-row:has(.pg-acts:empty) { grid-template-columns: 40px minmax(0, 2fr) minmax(120px, 1.2fr) 112px minmax(92px, auto); }
/* 行内操作按钮做成胶囊，跟液态玻璃按钮一个形状（宝宝 11-02「铺开」） */
.xy-pg .pg-acts button, .xy-pg .pg-acts .ghost, .xy-pg .pg-acts .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; height: 32px; min-height: 32px; margin: 0; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--hairline-strong);
  font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; cursor: pointer;
}
.xy-pg .pg-acts button:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-1); }
.xy-pg .pg-acts button.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; font-weight: 600; }
.xy-pg .pg-acts button.primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-ink); }
.xy-pg .pg-acts button.danger { background: none; color: var(--rose-400); box-shadow: inset 0 0 0 1px rgba(242, 143, 152, .4); }
.xy-pg .pg-acts button.danger:hover:not(:disabled) { background: rgba(242, 143, 152, .12); color: var(--rose-400); }
.xy-pg .pg-acts button:disabled { opacity: .45; cursor: not-allowed; }
.xy-pg .pg-acts button svg { width: 14px; height: 14px; }
.xy-pg .pg-acts .recharge-proof-button.is-empty { color: var(--text-4); }

/* 会员 / 身份小标 */
.xy-pg .pg-vip { display: inline-flex; flex: 0 0 auto; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--text-3); background: rgba(255, 228, 240, .06); }
.xy-pg .pg-vip.is-on { color: var(--accent); background: var(--accent-tint); }
.xy-pg .pg-main .role-tag { flex: 0 0 auto; display: inline-flex; align-items: center; height: auto; min-height: 0; padding: 1px 7px; border-radius: var(--r-xs, 6px); font-size: 11.5px; font-weight: 600; line-height: 1.5; }
:is(.xy-pg) .rep-badge.is-err { background: rgba(242, 143, 152, .14); color: var(--rose-400); }

/* ── 指标格（预览 .stats.metrics） ── */
.xy-pg .pg-metrics { display: flex; flex-wrap: wrap; overflow: hidden; margin: 0 24px; border-radius: 0; }
.xy-pg .pg-metric { display: grid; flex: 1 1 140px; gap: 4px; min-width: 0; padding: 16px 20px; box-shadow: -1px 0 0 var(--hairline), 0 -1px 0 var(--hairline); }
.xy-pg .pg-metric span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.xy-pg .pg-metric strong { font-size: 19px; font-weight: 500; color: var(--text-1); white-space: nowrap; }
.xy-pg .pg-metric.is-accent strong { color: var(--accent); }
.xy-pg .withdrawal-create-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 18px 24px 24px; }
.xy-pg .withdrawal-create-action .withdrawal-create-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px rgba(244, 179, 207, .55);
}
.xy-pg .withdrawal-create-action .withdrawal-create-trigger { width: auto; flex: 0 0 auto; }
.xy-pg .withdrawal-create-action .withdrawal-create-trigger:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.xy-pg .withdrawal-create-action .withdrawal-create-trigger svg { width: 16px; height: 16px; }
.xy-pg .withdrawal-create-reason { font-size: 12.5px; color: var(--text-4); }

/* ── 钱包：流水改右侧抽屉（手机底部） ── */
.xy-pg .wallet-workspace-grid { display: block; min-width: 0; margin: 0; padding: 0; }
.xy-pg .wallet-people-list { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.xy-pg .pg-sheet-backdrop { position: fixed; inset: 0; z-index: 240; background: rgba(4, 5, 8, .62); }
.xy-pg .wallet-detail-panel[hidden] { display: none !important; }
.xy-pg .wallet-detail-panel.is-open {
  position: fixed; top: 12px; right: 12px; bottom: 12px; left: auto; z-index: 241; display: flex; flex-direction: column; gap: 0;
  width: min(480px, calc(100vw - 24px)); margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.xy-pg .wallet-detail-panel .wallet-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 20px 16px 24px; border-bottom: 1px solid var(--hairline); }
.xy-pg .wallet-detail-panel .wallet-detail-head h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-1); }
.xy-pg .wallet-detail-panel .wallet-detail-head p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-4); }
.xy-pg .wallet-detail-panel .wallet-detail-head .icon-btn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--text-3); }
.xy-pg .wallet-detail-panel > :not(.wallet-detail-head) { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 24px 24px; }
.xy-pg .wallet-detail-panel .wallet-ledger-list { display: grid; gap: 8px; }
.xy-pg .wallet-detail-panel .wallet-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-raised); }
.xy-pg .wallet-detail-panel .wallet-ledger-row > div { display: grid; gap: 2px; min-width: 0; }
.xy-pg .wallet-detail-panel .wallet-ledger-row > div:nth-child(2) { justify-items: end; }
.xy-pg .wallet-detail-panel .wallet-ledger-row > div:nth-child(3) { grid-column: 1 / -1; }
.xy-pg .wallet-detail-panel .wallet-ledger-row strong { font-size: 13.5px; color: var(--text-1); }
.xy-pg .wallet-detail-panel .wallet-ledger-row small, .xy-pg .wallet-detail-panel .wallet-ledger-row span { font-size: 12px; color: var(--text-4); }
.xy-pg .wallet-detail-panel .wallet-detail-empty { display: grid; place-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--text-4); }

/* ── 人员页：名册表（预览 .dtable —— 每行一张圆角卡） ── */
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs { display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--s-5); grid-template-columns: none; width: 100%; margin: 0 0 14px; padding: 0 4px; border: 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; box-sizing: border-box; }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs::-webkit-scrollbar { display: none; }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs button.xy-tab { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 6px; width: auto; min-width: 0; min-height: 44px; height: auto; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-3); font-size: 13.5px; font-weight: 400; white-space: nowrap; }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs button.xy-tab:hover { background: none; color: var(--text-1); }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs button.xy-tab .num { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--bg-raised); color: var(--text-3); font-size: 11px; text-align: center; }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs button.xy-tab.active { color: var(--text-1); font-weight: 600; }
.xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs button.xy-tab.active .num { background: var(--accent-tint); color: var(--accent); }
.xy-pg .rep-board > .rep-tools { margin: 0 0 6px; }
.xy-pg .personnel-staff-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.xy-pg .personnel-staff-toolbar .range-bar { margin: 0; padding: 0; border: 0; }
.xy-pg .personnel-application-note { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-4); font-size: 12.5px; }

.xy-pg .pg-dtable { display: block; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-x: auto; }
.xy-pg .pg-dtable table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 8px; margin: -8px 0 0; background: none; font-size: 13.5px; }
.xy-pg .pg-dtable thead th { position: static; padding: 4px 14px 0; border: 0; background: none; color: var(--text-4); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-align: left; white-space: nowrap; }
.xy-pg .pg-dtable tbody tr, .xy-pg .pg-dtable tbody tr:nth-child(even) { background: none; }
.xy-pg .pg-dtable tbody td { padding: 14px; border: 0; background: var(--bg-surface); color: var(--text-2); vertical-align: middle; box-shadow: inset 0 1px 0 rgba(255, 240, 247, .04); }
.xy-pg .pg-dtable tbody td:first-child { border-radius: 16px 0 0 16px; padding-left: 16px; }
.xy-pg .pg-dtable tbody td:last-child { border-radius: 0 16px 16px 0; }
.xy-pg .pg-dtable tbody tr:hover td { background: var(--bg-raised); }
.xy-pg .pg-dtable td strong { color: var(--text-1); font-weight: 600; }
.xy-pg .pg-dtable td.num small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-4); }
.xy-pg .pg-dtable td .pg-acts { justify-content: flex-start; flex-wrap: nowrap; }
.xy-pg .pg-dtable .mini { min-height: 30px; }
.xy-pg .pg-dtable .pg-acts button svg, .xy-pg .pg-mcard .pg-acts button svg { display: none; }
/* 音卡：有 / 没有同一个胶囊（同高同宽同边框），没有的变淡（业主 11-01） */
.xy-pg .pg-dtable :is(.personnel-audio-button, .personnel-audio-empty) { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 104px; height: 30px; min-height: 30px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--hairline-strong, rgba(255, 255, 255, .14)); font: 600 12.5px/1 var(--font-ui); white-space: nowrap; }
.xy-pg .pg-dtable .personnel-audio-button { color: var(--text-1); }
.xy-pg .pg-dtable .personnel-audio-empty { color: var(--text-4); box-shadow: inset 0 0 0 1px var(--hairline, rgba(255, 255, 255, .07)); }
.xy-pg .pg-dtable :is(.personnel-audio-button, .personnel-audio-empty) svg { width: 14px; height: 14px; }
.xy-pg .pg-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.xy-pg .pg-who > .xy-ava { flex: 0 0 auto; width: 38px; height: 38px; font-size: 13.5px; }
.xy-pg .pg-who > div { display: grid; gap: 3px; min-width: 0; }
.xy-pg .pg-who strong { color: var(--text-1); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xy-pg .pg-who small { color: var(--text-4); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 分部档位小标（预览蓝点 chip） */
.xy-pg .division-rank-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.xy-pg .division-rank-chips .tag { display: inline-flex; align-items: center; gap: 5px; min-height: 0; padding: 2px 9px; border: 0; border-radius: 999px; background: var(--st-info-tint); color: var(--st-info); font-size: 12px; font-weight: 500; line-height: 1.6; }
.xy-pg .division-rank-chips .tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.xy-pg .division-rank-chips .tag.gray { background: var(--bg-raised); color: var(--text-4); }
.xy-pg .division-rank-chips .muted-text { color: var(--text-4); font-size: 12.5px; }

/* 空态 / 刷新 */
.xy-pg .personnel-empty, .xy-pg .invite-state { min-height: 0; border-style: solid; }
.xy-pg .pg-head-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--text-3); font-size: 12.5px; }
.xy-pg .pg-head-btn svg { width: 14px; height: 14px; }

/* 手机名册卡：头像 | 名字 + 编号 | 状态；下排数字左、操作右 */
.xy-pg .personnel-mobile-list { display: none; gap: 8px; min-width: 0; }
.xy-pg .pg-mcard, .xy-pg .pg-mcard:hover {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "facts acts"; align-items: center; gap: 10px;
  min-width: 0; margin: 0; padding: 12px 12px 12px 14px; border: 0; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 236, 245, .03), transparent 70%), var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(255, 228, 240, .05); transform: none;
}
.xy-pg .pg-mcard > .personnel-task-head, .xy-pg .pg-mcard > .division-card-head { grid-area: head; display: flex; align-items: center; gap: 10px; min-width: 0; }
.xy-pg .pg-mcard .personnel-task-head > .xy-ava { flex: 0 0 auto; width: 34px; height: 34px; font-size: 12.5px; }
.xy-pg .pg-mcard .personnel-task-head > div, .xy-pg .pg-mcard .division-card-title { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.xy-pg .pg-mcard .personnel-task-head strong, .xy-pg .pg-mcard .division-card-title strong { color: var(--text-1); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xy-pg .pg-mcard .personnel-task-head > div > span, .xy-pg .pg-mcard .division-card-code { color: var(--text-4); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xy-pg .pg-mcard .personnel-primary-facts, .xy-pg .pg-mcard .division-card-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--text-4); font-size: 12px; }
.xy-pg .pg-mcard .personnel-primary-facts b, .xy-pg .pg-mcard .division-card-facts b { margin-left: 3px; color: var(--text-1); font-weight: 600; }
.xy-pg .pg-mcard .personnel-card-actions, .xy-pg .pg-mcard .division-card-actions { grid-area: acts; display: flex; grid-template-columns: none; gap: 4px; }
.xy-pg .pg-mcard .pg-acts button, .xy-pg .pg-mcard .pg-acts .secondary { width: auto; min-width: 0; height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; }
.xy-pg .pg-mcard .personnel-card-actions .danger:nth-child(3) { grid-column: auto; }
.xy-pg .pg-mcard.division-card { grid-template-areas: "head head" "chips chips" "facts acts"; }
.xy-pg .pg-mcard .division-rank-chips { grid-area: chips; }
.xy-pg .pg-mcard.is-disabled { opacity: .72; }

/* 名册：宽于 760px 用表，窄了换卡（stage6 原在 1100px 切换） */
@media (min-width: 761px) {
  .xy-pg.pg-personnel .personnel-table { display: block; }
  .xy-pg.pg-personnel .personnel-mobile-list { display: none; }
}

/* ── 工资 / 提成 / 会员 / 设置 ── */
.xy-pg .section-head.xy-sec .pg-head-btn { margin-left: 10px; }
.xy-pg .pg-range-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 12px; }
.xy-pg .pg-range-row .range-bar-desktop { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; width: auto; margin: 0; padding: 3px; border: 0; border-radius: var(--r-md); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
.xy-pg .pg-range-row .range-bar-desktop > button { height: 32px; min-height: 32px; margin: 0; padding: 0 13px; border: 0; border-radius: calc(var(--r-md) - 3px); background: none; box-shadow: none; color: var(--text-3); font-size: 13px; font-weight: 400; }
.xy-pg .pg-range-row .range-bar-desktop > button:hover { background: none; color: var(--text-1); }
.xy-pg .pg-range-row .range-bar-desktop > button.active { background: var(--bg-raised); color: var(--text-1); font-weight: 600; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.xy-pg .pg-range-row .range-custom { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 0 8px; color: var(--text-4); font-size: 12.5px; }
.xy-pg .pg-range-row .range-custom label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xy-pg .pg-range-row .range-custom input { height: 30px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text-1); font-size: 12.5px; }
.xy-pg .pg-range-row .range-custom button { height: 30px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.xy-pg .pg-range-row .range-error { flex: 1 1 100%; color: var(--rose-400); font-size: 12px; }
.xy-pg .pg-range-row .pg-note { white-space: nowrap; }
.xy-pg .pg-range-row .payroll-summary-strip { display: inline; width: auto; padding: 0; border: 0; color: var(--text-4); font-size: 12px; }
.xy-pg .rep-state.pg-state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 0; padding: 22px 14px; border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: none; text-align: center; font-size: 13px; color: var(--text-4); }
.xy-pg .rep-state.pg-state[data-tone="error"] { color: var(--rose-400); }
.xy-pg .rep-state.pg-state .ghost { height: 30px; min-height: 30px; margin: 0; padding: 0 12px; font-size: 12px; }
.xy-pg .pg-pay-tools { gap: 0; }
.xy-pg .pg-pay-tools > .xy-tabs { margin: 0 0 12px; }
.xy-pg .payroll-division-filter .xy-tab small { margin-left: 4px; font-size: 10.5px; color: var(--text-4); }
.xy-pg .payroll-data-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 12.5px; color: var(--text-4); }
.xy-pg .payroll-data-state svg { width: 14px; height: 14px; }
.xy-pg .payroll-data-state[data-tone="success"] { display: none; }
.xy-pg .payroll-data-state[data-tone="error"] { color: var(--rose-400); }
.xy-pg .payroll-save-status, .xy-pg .settings-save-status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--bg-surface); font-size: 12.5px; color: var(--text-3); }
.xy-pg .payroll-save-status[data-tone="error"], .xy-pg .settings-save-status[data-tone="error"] { color: var(--rose-400); }
.xy-pg .payroll-save-status svg, .xy-pg .settings-save-status svg { width: 14px; height: 14px; }
.xy-pg .settings-save-status button { margin-left: auto; height: 30px; min-height: 30px; padding: 0 12px; font-size: 12px; }
.xy-pg .payroll-report-panel, .xy-pg .payroll-division-panel { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.xy-pg .pg-dtable td.pg-c-idx { width: 36px; color: var(--text-4); }
.xy-pg .pg-dtable td.pg-acts { display: table-cell; white-space: nowrap; }
.xy-pg .pg-dtable td.pg-acts > * + * { margin-left: 6px; }
.xy-pg .pg-dtable .pg-empty-row td { padding: 0; background: none; box-shadow: none; }
.xy-pg .pg-dtable .pg-empty-row .empty { min-height: 0; margin: 0; padding: 22px; border: 0; border-radius: 16px; background: var(--bg-surface); color: var(--text-4); font-size: 13px; }
.xy-pg .pg-dtable .pg-empty-row .empty svg { display: none; }
.xy-pg .pg-tiers td.pg-perk { min-width: 200px; font-size: 12.5px; line-height: 1.6; }
.xy-pg.members-readonly-page .table-wrap.pg-dtable { margin-top: 0; border: 0; }

/* 编号说明（预览 .notes） */
.xy-pg .pg-notes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xy-pg .pg-notes li { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg-surface); color: var(--text-2); font-size: 13px; line-height: 1.6; }
.xy-pg .pg-notes li > .num { flex: 0 0 auto; color: var(--accent); font-size: 12px; font-weight: 600; }

/* 抽成比例板（预览 .rate-board） */
.xy-pg .pg-rate-form { display: grid; gap: 12px; margin: 0; }
.xy-pg .pg-rate { display: grid; gap: 8px; min-width: 0; }
.xy-pg .pg-rate-head, .xy-pg .pg-rate-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; }
.xy-pg .pg-rate-head { padding: 0 16px; font-size: 11.5px; color: var(--text-4); letter-spacing: .04em; }
.xy-pg .pg-rate-row { padding: 14px 16px; border-radius: 16px; background: var(--bg-surface); box-shadow: inset 0 1px 0 rgba(255, 240, 247, .04); }
.xy-pg .pg-rate-row > strong { color: var(--text-1); font-size: 14px; font-weight: 600; }
.xy-pg .pg-rate-row .settings-rate-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.xy-pg .pg-rate-row .settings-rate-field label, .xy-pg .pg-rate-row .settings-rate-field small { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.xy-pg .pg-rate-row .settings-rate-field input { width: 100%; height: 40px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text-1); font-family: var(--font-num, inherit); font-size: 14px; font-weight: 600; text-align: right; }
.xy-pg .pg-rate-row .settings-rate-field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.xy-pg .pg-rate-save { display: flex; justify-content: flex-end; }
.xy-pg .pg-rate-save #settings-save-button { width: auto; min-width: 160px; height: 40px; min-height: 40px; padding: 0 24px; border: 0; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; }

/* ── 个人中心（预览 .profile 粉色头卡 + .fields） ── */
.xy-pg.pg-profile-page { display: grid; gap: var(--s-6); padding-top: 20px; }
.xy-pg.pg-profile-page .account-profile-shell.pg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* 按钮放名字下面，不压右边的鱼丸（压上去玻璃折射会把鱼丸弄弯） */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "head"; align-items: center; gap: 20px;
  margin: 0; padding: 32px 36px; border: 0; border-radius: var(--r-xl);
  background: var(--focus-bg); color: var(--focus-ink);
  box-shadow: 0 30px 60px -36px rgba(244, 179, 207, .45);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.xy-pg.pg-profile-page .account-profile-shell.pg-hero::before, .xy-pg.pg-profile-page .account-profile-shell.pg-hero::after { display: none; }
.xy-pg.pg-profile-page .pg-hero .pg-hero-art {
  position: absolute; z-index: -1; right: -20px; top: 50%; width: 260px; aspect-ratio: 1; transform: translateY(-50%);
  background: url("../xianyu-logo-640.webp?v=20261108-b103") center / cover no-repeat; pointer-events: none;
  /* 鱼丸原图整只露出来，只把最外一圈纯底色淡掉藏住方边（同首页焦点卡 20-unify） */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%); mask-composite: intersect;
}
.xy-pg.pg-profile-page .pg-hero > .section-head { grid-area: head; display: flex; justify-content: flex-start; margin: 0; padding: 0 0 0 108px; border: 0; } /* 108 = 头像 84 + 间距 24，和名字对齐 */
.xy-pg.pg-profile-page .pg-hero > .section-head > div:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 两个按钮等宽（按长的那个），左右对称 */
.xy-pg.pg-profile-page .pg-hero .profile-head-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.xy-pg.pg-profile-page .pg-hero .profile-head-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); font-size: 13.5px; }
.xy-pg.pg-profile-page .pg-hero .profile-head-actions button span { color: inherit; font-size: inherit; }
.xy-pg.pg-profile-page .pg-hero .profile-head-actions button svg { width: 15px; height: 15px; }
.xy-pg.pg-profile-page .pg-hero .profile-edit-locked { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); color: var(--focus-ink-2); font-size: 12.5px; }
.xy-pg.pg-profile-page .pg-hero .profile-edit-locked svg { width: 14px; height: 14px; }
.xy-pg.pg-profile-page .pg-hero .profile-card { grid-area: card; display: flex; align-items: center; gap: 24px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.xy-pg.pg-profile-page .pg-hero .profile-photo {
  flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 50%;
  background: var(--sakura-900); color: var(--sakura-50); font-family: var(--font-serif); font-size: 32px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 14px 30px -14px rgba(58, 20, 40, .7);
}
.xy-pg.pg-profile-page .pg-hero .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.xy-pg.pg-profile-page .pg-hero .pg-hero-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.xy-pg.pg-profile-page .pg-hero .pg-hero-en { flex: 1 0 100%; margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 15px; color: var(--sakura-500); }
.xy-pg.pg-profile-page .pg-hero .pg-hero-copy h3 { flex: 1 0 100%; margin: 0 0 4px; color: var(--focus-ink); font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: .1em; overflow-wrap: anywhere; }
.xy-pg.pg-profile-page .pg-hero .profile-account-line, .xy-pg.pg-profile-page .pg-hero .profile-uid-line { margin: 0; color: var(--focus-ink-2); font-size: 13px; font-family: var(--font-num, inherit); }
.xy-pg.pg-profile-page .pg-hero .profile-account-line + .profile-uid-line::before { content: "·"; margin-right: 10px; color: var(--focus-ink-2); }
.xy-pg.pg-profile-page .pg-hero .profile-facts { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.xy-pg.pg-profile-page .pg-hero .profile-facts > :not(.mv-badge) { display: inline-flex; align-items: center; height: 22px; min-height: 0; margin: 0; padding: 0 10px; line-height: 1; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .6); color: var(--sakura-700); font-size: 12px; font-weight: 600; }
.xy-pg.pg-profile-page .pg-hero .profile-facts > .green { color: #2f8a5c; }
.xy-pg.pg-profile-page .pg-hero .profile-facts > :is(.red, .danger) { color: #b03a5a; }
.xy-pg.pg-profile-page .pg-hero .profile-facts > .gold { color: #9a6a14; }

.xy-pg .pg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--hairline-strong); box-shadow: 0 0 0 1px var(--hairline-strong); }
.xy-pg .pg-field { min-width: 0; margin: 0; padding: 12px 16px; background: var(--bg-surface); }
.xy-pg .pg-field.wide { grid-column: 1 / -1; }
.xy-pg .pg-field dt { margin: 0; color: var(--text-4); font-size: 12px; }
.xy-pg .pg-field dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--text-1); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.xy-pg .pg-field dd .role-tag { height: 22px; padding: 0 8px; font-size: 12px; }

/* ── 手机号恢复审核（预览 tabs + queue） ── */
.xy-pg .phone-recovery-manager-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.xy-pg .phone-recovery-manager-card > .phone-recovery-manager-head { order: 2; display: flex; align-items: center; margin: 0 0 6px; padding: 0; border: 0; }
.xy-pg .phone-recovery-manager-head > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xy-pg .phone-recovery-manager-head > button { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.xy-pg .phone-recovery-manager-head > button svg { width: 14px; height: 14px; }
.xy-pg .phone-recovery-manager-card > .phone-recovery-filters { order: 1; flex: 1 1 auto; display: flex; gap: var(--s-5); min-width: 0; margin: 0; padding: 0 4px; border: 0; border-bottom: 1px solid var(--hairline); background: none; overflow-x: auto; scrollbar-width: none; }
.xy-pg .phone-recovery-filters .phone-recovery-filter { position: relative; height: 44px; min-height: 44px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-3); font-size: 13.5px; font-weight: 400; white-space: nowrap; }
.xy-pg .phone-recovery-filters .phone-recovery-filter:hover { background: none; color: var(--text-1); }
.xy-pg .phone-recovery-filters .phone-recovery-filter.is-active { color: var(--text-1); font-weight: 600; }
.xy-pg .phone-recovery-filters .phone-recovery-filter.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.xy-pg .phone-recovery-manager-card > .phone-recovery-manager-list { order: 3; flex: 1 1 100%; display: grid; gap: 8px; margin: 12px 0 0; }
.xy-pg .phone-recovery-manager-card > .phone-recovery-manager-detail { order: 4; flex: 1 1 100%; margin: 12px 0 0; padding: 16px; border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: 0 0 0 1px var(--hairline); }
.xy-pg .phone-recovery-manager-state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 22px 14px; border: 0; border-radius: 16px; background: var(--bg-surface); color: var(--text-4); font-size: 13px; }
.xy-pg .phone-recovery-manager-state svg { display: none; }
.xy-pg .phone-recovery-manager-state span { flex: 0 1 auto; width: auto; text-align: center; }
.xy-pg .phone-recovery-manager-state[data-tone="error"] { color: var(--rose-400); }
.xy-pg .phone-recovery-manager-state button { height: 30px; min-height: 30px; padding: 0 12px; font-size: 12px; }
.xy-pg .phone-recovery-manager-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; margin: 0; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: inset 0 1px 0 rgba(255, 240, 247, .04); }
.xy-pg .phone-recovery-manager-item-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0; border: 0; }
.xy-pg .phone-recovery-manager-item-head strong { color: var(--text-1); font-size: 14px; font-family: var(--font-num, inherit); }
.xy-pg .phone-recovery-manager-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 0; }
.xy-pg .phone-recovery-manager-facts small { color: var(--text-4); font-size: 11.5px; }
.xy-pg .phone-recovery-manager-facts strong { color: var(--text-1); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.xy-pg .phone-recovery-manager-item > .phone-recovery-view-btn { justify-self: start; height: 30px; min-height: 30px; padding: 0 12px; font-size: 12px; }
.xy-pg .phone-recovery-manager-actions { display: flex; justify-content: flex-end; gap: 8px; }
.xy-pg .phone-recovery-manager-actions button { height: 34px; min-height: 34px; padding: 0 14px; font-size: 12.5px; }

/* ── 窄桌面 ── */
@media (max-width: 1180px) {
  .xy-pg .pg-row { grid-template-columns: 40px minmax(0, 2fr) minmax(110px, 1.1fr) 100px minmax(84px, auto) auto; gap: var(--s-4); }
}

/* ── 平板 / 手机：主操作回到页首右上角（同 10-reports） ── */
@media (max-width: 979px) {
  .xy-pg { gap: 18px; }
  .xy-pg .pg-metrics { margin: 0 16px; }
  .xy-pg .pg-card > .section-head.xy-sec { padding: 16px 18px 10px; }
  .xy-pg .withdrawal-create-action { padding: 16px 18px 18px; }
}

/* 队列本身窄于 620px：手机两行式 —— 头像 | 名字 + 金额 / 摘要 + 操作 */
@container (max-width: 620px) {
  .xy-pg .pg-row, .xy-pg .pg-row:has(.pg-acts:empty) {
    grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "lead main amount" "lead meta acts";
    align-items: start; gap: 6px 12px; min-height: 0; padding: 12px 12px 12px 14px; border-radius: var(--r-md);
  }
  .xy-pg .pg-row > :first-child { grid-area: lead; }
  .xy-pg .pg-row > .xy-ava { width: 34px; height: 34px; font-size: 12.5px; }
  .xy-pg .pg-row > .rep-dot { width: 34px; height: 20px; }
  .xy-pg .pg-main { grid-area: main; gap: 3px; }
  .xy-pg .pg-main strong { gap: 6px; font-size: 14px; }
  .xy-pg .pg-main small { gap: 2px 8px; font-size: 11.5px; }
  .xy-pg .pg-amount { grid-area: amount; gap: 1px; font-size: 15px; }
  .xy-pg .pg-amount small { font-size: 11px; }
  .xy-pg .pg-people, .xy-pg .pg-tail { display: none; }
  .xy-pg .pg-meta { grid-area: meta; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; align-self: center; font-size: 12px; color: var(--text-3); }
  .xy-pg .pg-meta > i { font-style: normal; color: var(--ink-500); }
  .xy-pg .pg-meta .pg-meta-st { font-size: 11.5px; color: var(--text-4); }
  .xy-pg .pg-acts { grid-area: acts; gap: 4px; }
  .xy-pg .pg-acts > span { gap: 4px; }
  .xy-pg .pg-acts button, .xy-pg .pg-acts .ghost, .xy-pg .pg-acts .secondary { height: 28px; min-height: 28px; padding: 0 9px; font-size: 12px; }
  .xy-pg .pg-row:not(:has(.pg-meta)) { grid-template-areas: "lead main amount" "lead acts acts"; }
}

@media (max-width: 760px) {
  /* 个人中心：手机上头卡改紧凑横排（咸鱼 2026-10-29：竖排居中太空、占地方）——左边头像，右边名字 + UID / 身份 / 状态，
     下面一行按钮；「Profile」小字在手机上不要 */
  .xy-pg.pg-profile-page { gap: var(--s-5); }
  .xy-pg.pg-profile-page .account-profile-shell.pg-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "head"; justify-items: stretch; gap: 12px; padding: 16px; text-align: left; }
  /* 鱼丸缩到头像那一行右边（原来 .3 太浅，宝宝 11-02 说快看不见了），不压下面的按钮 */
  /* 高度不超过头像那一行（16 + 58 + 12 = 86），Clear 按钮透明，压一点鱼丸就会被折射弄弯 */
  .xy-pg.pg-profile-page .pg-hero .pg-hero-art { right: 8px; top: 0; width: 92px; transform: none; }
  .xy-pg.pg-profile-page .pg-hero .profile-card { gap: 14px; }
  .xy-pg.pg-profile-page .pg-hero .profile-photo { flex: none; width: 58px; height: 58px; font-size: 22px; }
  .xy-pg.pg-profile-page .pg-hero .pg-hero-en { display: none; }
  .xy-pg.pg-profile-page .pg-hero .pg-hero-copy { gap: 4px 8px; }
  .xy-pg.pg-profile-page .pg-hero .pg-hero-copy h3 { margin: 0; font-size: 21px; letter-spacing: .06em; }
  .xy-pg.pg-profile-page .pg-hero .profile-facts { flex: 0 1 auto; margin: 0; gap: 5px; }
  .xy-pg.pg-profile-page .pg-hero > .section-head { justify-content: center; padding: 0; }
  .xy-pg.pg-profile-page .pg-hero .profile-head-actions { gap: 8px; }
  .xy-pg.pg-profile-page .pg-hero .profile-head-actions button { gap: 5px; height: 32px; min-height: 32px; padding: 0 13px; font-size: 12.5px; }
  .xy-pg.pg-profile-page .pg-hero .profile-head-actions button svg { width: 14px; height: 14px; }
  /* 手机上 #view 按 88% 缩放（03-shell），1px 的格子缝会被舍成 0，分隔线就没了；按缩放补回整 1px */
  .xy-pg .pg-fields { gap: calc(1px / .88); }
  .xy-pg .pg-field { padding: 10px 12px; }
  .xy-pg .pg-field dd { font-size: 13.5px; }
  /* 手机号恢复：事实两列 */
  .xy-pg .phone-recovery-manager-item { padding: 12px 14px; }
  .xy-pg .phone-recovery-manager-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .xy-pg .phone-recovery-manager-card > .phone-recovery-filters { gap: 18px; }
  /* 表格行 → 手机紧凑卡：首格（头像 + 名字）占满一行，状态靠右；其余格带 data-label 小标题 */
  .xy-pg .pg-dtable.pg-cards { overflow: visible; }
  .xy-pg .pg-dtable.pg-cards table, .xy-pg .pg-dtable.pg-cards tbody { display: grid; gap: 8px; width: 100%; min-width: 0; margin: 0; }
  .xy-pg .pg-dtable.pg-cards thead { display: none; }
  .xy-pg .pg-dtable.pg-cards tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; min-width: 0;
    padding: 12px 12px 12px 14px; border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(255, 236, 245, .03), transparent 70%), var(--bg-surface);
    box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(255, 228, 240, .05);
  }
  .xy-pg .pg-dtable.pg-cards-4 tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xy-pg .pg-dtable.pg-cards tbody td, .xy-pg .pg-dtable.pg-cards tbody td:first-child, .xy-pg .pg-dtable.pg-cards tbody td:last-child {
    display: block; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-1); font-size: 13px; overflow-wrap: anywhere;
  }
  .xy-pg .pg-dtable.pg-cards tbody tr:hover td { background: none; }
  .xy-pg .pg-dtable.pg-cards tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--text-4); font-size: 11px; font-weight: 400; letter-spacing: 0; }
  .xy-pg .pg-dtable.pg-cards tbody td.pg-c-head { grid-column: 1 / -1; align-self: center; }
  .xy-pg .pg-dtable.pg-cards tbody tr:has(> .pg-c-badge) > .pg-c-head { grid-column: 1 / -2; }
  .xy-pg .pg-dtable.pg-cards tbody td.pg-c-badge { grid-row: 1; grid-column: -2 / -1; justify-self: end; align-self: center; }
  .xy-pg .pg-dtable.pg-cards tbody td:is(.pg-c-head, .pg-c-badge)::before { display: none; }
  .xy-pg .pg-dtable.pg-cards tbody td:is(.pg-c-idx, .pg-c-m0) { display: none; }
  .xy-pg .pg-dtable.pg-cards tbody td.pg-c-wide { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
  .xy-pg .pg-dtable.pg-cards tbody td.pg-c-span2 { grid-column: span 2; font-size: 12px; }
  .xy-pg .pg-dtable.pg-cards tbody td.pg-c-acts { align-self: end; justify-self: end; }
  .xy-pg .pg-dtable.pg-cards tbody td .pg-who > .xy-ava { width: 34px; height: 34px; font-size: 12.5px; }
  .xy-pg .pg-dtable.pg-cards tbody td .pg-acts button { height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; }
  .xy-pg .pg-dtable.pg-cards tbody tr.pg-empty-row { display: block; padding: 0; background: none; box-shadow: none; }
  .xy-pg .pg-range-row { gap: 6px 10px; }
  .xy-pg .pg-range-row .range-bar-mobile { flex: 1 1 100%; margin: 0; border: 0; border-radius: var(--r-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--hairline); }
  .xy-pg .pg-range-row .range-bar-mobile .range-bar-options button { min-height: 34px; border: 0; border-radius: 8px; background: var(--bg-raised); box-shadow: none; color: var(--text-3); font-weight: 400; }
  .xy-pg .pg-range-row .range-bar-mobile .range-bar-options button.active { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
  .xy-pg .pg-range-row .pg-note { font-size: 11.5px; }
  .xy-pg .pg-notes li { padding: 11px 14px; font-size: 12.5px; }
  .xy-pg .pg-rate-head { display: none; }
  .xy-pg .pg-rate-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-radius: var(--r-md); }
  .xy-pg .pg-rate-row > strong { grid-column: 1 / -1; font-size: 13.5px; }
  .xy-pg .pg-rate-row .settings-rate-field::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--text-4); font-size: 11px; }
  .xy-pg .pg-rate-row .settings-rate-field input { height: 38px; min-height: 38px; }
  .xy-pg .pg-rate-save #settings-save-button { flex: 1 1 100%; }
  .xy-pg.pg-personnel .personnel-table { display: none; }
  .xy-pg.pg-personnel .personnel-mobile-list { display: grid; }
  .xy-pg :is(.personnel-filter, .payroll-division-filter).xy-tabs { gap: 18px; padding: 0 2px; margin-bottom: 12px; }
  .xy-pg .personnel-staff-toolbar { display: grid; gap: 10px; }
  .xy-pg .rep-board > .section-head.xy-sec { padding: 0 2px; }
  .xy-pg .wallet-filters { gap: 18px; padding: 0 2px; }
  .xy-pg .pg-queue { gap: 8px; }
  .xy-pg .pg-sort .sort-btn { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; }
  .xy-pg .wallet-detail-panel.is-open { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .xy-pg .wallet-detail-panel .wallet-detail-head { padding: 20px 12px 12px 18px; }
  .xy-pg .wallet-detail-panel > :not(.wallet-detail-head) { padding: 14px 18px 18px; }
}

@media (max-width: 560px) {
  .xy-pg .xy-lead-stats[data-count="4"] { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  .xy-pg .xy-lead-stats[data-count="4"] > .xy-lead-stat { padding: 10px 6px 11px; border-top: 0; border-left: 0; text-align: center; }
  .xy-pg .xy-lead-stats[data-count="4"] > .xy-lead-stat + .xy-lead-stat { border-left: 1px solid var(--hairline); }
  .xy-pg .xy-lead-stats[data-count="4"] .xy-lead-stat dt { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xy-pg .xy-lead-stats[data-count="4"] .xy-lead-stat dd { margin-top: 3px; font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xy-pg .pg-metrics { margin: 0 12px; }
  .xy-pg .pg-metric { flex-basis: 40%; justify-items: center; padding: 12px 14px; text-align: center; }
  .xy-pg .pg-metric strong { font-size: 16px; }
  .xy-pg .withdrawal-create-action { padding: 14px 14px 16px; }
  .xy-pg .withdrawal-create-action .withdrawal-create-trigger { flex: 1 1 100%; }
}

/* 充值流水：admin.css 在 ≤760px 给 .recharge-record 强加了 !important 的旧网格（id/customer…），
   方案 C 卡片（20-unify.css .pg-c）要用同样的 !important 盖掉旧网格、间距和「> div 去掉上边线」。 */
@layer hotfix {
@media (max-width: 760px) {
  body.p2-operate-active .xy-pg .pg-queue > .pg-row.recharge-record.pg-c { grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: "lead main tail" "facts facts facts" "acts acts acts" !important; gap: 0 12px !important; padding: 12px 12px 12px 14px !important; align-items: center !important; }
  body.p2-operate-active .xy-pg .pg-queue > .pg-row.recharge-record.pg-c > .pg-acts { padding-top: 12px !important; border-top: 1px solid var(--hairline) !important; }
}
}

@media (prefers-reduced-motion: reduce) {
  .xy-pg .pg-row { transition: none; }
}
