/* funds-records-v1 · 出入金 hub + shared fund-record rows / table / detail (owner accepted the prototype 2026-11-11).
   Built on the account centre's own classes (account-card, account-card-head, account-button, account-acct-row,
   account-chip); only what they lack is here, prefixed afh-. Glass only through the --glass-* variables. */
.afh{grid-column:1/-1;align-self:stretch;width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:24px;min-width:0}
.afh .account-card{min-width:0;box-sizing:border-box}
.afh .account-card-head{margin-bottom:12px}
.afh .account-card-head h2{margin:0}
.afh-num,.afh-amt,.afh-w-big,.afh-w-sub,.afh-d-big,.afh-tbl{font-variant-numeric:tabular-nums}
.afh-mono{font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}
.afh-muted{color:var(--ac-muted,var(--bb-theme-muted))}
.afh-up{color:var(--bb-theme-up,#1f9d55)}

/* wallet card */
.afh-w{display:flex;align-items:center;gap:24px;min-width:0}
.afh-w-main{flex:1;min-width:0}
.afh-w-lab{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
html body .afh .afh-w-lab .account-chip.afh-unit:not(#_):not(#_){height:24px!important;padding:0 10px;font-size:12px;background:transparent;border:1px solid var(--ac-line,var(--bb-theme-line));color:var(--ac-muted,var(--bb-theme-muted));box-shadow:none}
.afh-w-big{font-size:40px;font-weight:650;letter-spacing:-.8px;line-height:1.15;margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-w-big small{font-size:16px;font-weight:500;letter-spacing:0;margin-left:6px;color:var(--ac-muted,var(--bb-theme-muted))}
.afh-w-sub{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--ac-muted,var(--bb-theme-muted))}
.afh-w-sub b{color:var(--ac-text,var(--bb-theme-ink));font-weight:600;margin-left:4px}
.afh-w-acts{display:flex;gap:10px;flex:none}
html body .afh .afh-w-acts .account-button:not(#_):not(#_){height:44px!important;min-height:44px!important;min-width:124px;padding:0 18px!important;border-radius:999px;font-size:15px;font-weight:500}
.afh-w-main>.afh-fail{margin-top:8px}

/* the two columns under the wallet */
.afh-cols{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start;min-width:0}
.afh-cols>*{min-width:0}

/* small and wide buttons (rows, empty lines, failure lines, the detail) */
html body .account-button.afh-sm:not(#_):not(#_){height:36px!important;min-height:36px!important;padding:0 14px!important;border-radius:999px;font-size:14px;flex:none}
html body .account-button.afh-wide:not(#_):not(#_){width:100%;height:44px!important;min-height:44px!important;border-radius:999px;font-size:15px;box-sizing:border-box}
html body .account-sheet .account-button.afh-wide.account-button-primary:not(#_):not(#_){height:48px!important;min-height:48px!important;margin-top:16px}
.afh-all{margin-top:12px}
.account-button:active{transform:scale(.985)}

/* trading accounts */
.afh-acct{min-height:60px}
.afh-acct .account-acct-mark{width:36px;height:36px;border-radius:50%;font-size:11px;font-weight:700;letter-spacing:.02em;background:var(--ac-inner,var(--bb-theme-inset));color:var(--ac-text,var(--bb-theme-ink));border:1px solid var(--ac-line,var(--bb-theme-line))}
.afh-acct-title{display:inline-flex;align-items:center;gap:8px;min-width:0}
.afh-acct .account-acct-text b>span.afh-acct-title{overflow:visible}
.afh-acct-title>span:first-child{flex:none}
.afh-acct-title .afh-demo{flex:none}
html body .afh .account-chip.afh-demo:not(#_):not(#_){height:24px!important;padding:0 8px;font-size:12px;font-weight:500;background:transparent;border:1px solid var(--ac-line,var(--bb-theme-line));color:var(--ac-muted,var(--bb-theme-muted));box-shadow:none}
.afh-acct .account-acct-num{margin-left:auto}
.afh .account-card-head+.account-acct-row,.afh .account-card-head+.afh-fail{border-top:0}
.afh-demo-sub{display:none!important}
html[data-bigbit-skin=glass] body .afh .account-chip:is(.afh-unit,.afh-demo):not(#_):not(#_){border-color:var(--glass-edge-soft)}

/* chips 全部 / 入金 / 出金 / 划转 */
.afh-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px;margin:-4px -4px 8px;min-width:0}
.afh-chips::-webkit-scrollbar{display:none}
html body .afh-chips .afh-chip:not(#_){font-size:13px;line-height:1}
.afh-chip{flex:none;height:28px;padding:0 12px;display:inline-flex;align-items:center;border-radius:999px;border:1px solid var(--glass-edge-soft,var(--ac-line));background:var(--glass-bg-soft,var(--ac-inner));box-shadow:var(--glass-raise,none);color:var(--ac-text,var(--bb-theme-ink));font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s,background .15s}
.afh-chip:hover{background:var(--glass-bg,var(--ac-inner))}
.afh-chip:active{transform:scale(.97)}
.afh-chip[aria-pressed=true]{background:var(--ac-text,var(--bb-theme-ink));color:var(--ac-page,var(--bb-theme-canvas));border-color:var(--ac-text,var(--bb-theme-ink));box-shadow:none}
.afh-chip:focus-visible,.afh-row:focus-visible,.afh-tbl tbody tr:focus-visible,.afh-copy:focus-visible{outline:2px solid var(--bb-theme-accent,#b8ff3d);outline-offset:2px}

/* record rows: flat inside the card, one line between them (owner rule: no second raised layer) */
.afh-rows{display:flex;flex-direction:column;min-width:0}
.afh-row{width:100%;display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;margin:0;border:0;border-top:1px solid var(--ac-line,var(--bb-theme-line));border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s,opacity .15s;min-width:0}
.afh-row:first-child{border-top:0}
.afh-row:hover .afh-row-t b{opacity:.78}
.afh-row:active{transform:scale(.985)}
.afh-mark{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--ac-inner,var(--bb-theme-inset));border:1px solid var(--ac-line,var(--bb-theme-line));color:var(--ac-text,var(--bb-theme-ink));box-sizing:border-box}
html[data-bigbit-skin=glass] .afh-acct .account-acct-mark,html[data-bigbit-skin=glass] .afh-mark:not(.afh-mark-dep){background:var(--glass-bg);border-color:var(--glass-edge-soft)}
.afh-mark svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.afh-mark-dep{background:rgba(var(--bb-theme-accent-rgb,184,255,61),.55);color:#111;border-color:transparent}
.afh-row-t{flex:1;min-width:0}
.afh-row-t b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-row-t small{display:block;font-size:12px;color:var(--ac-muted,var(--bb-theme-muted));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-row-v{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.afh-amt{font-size:15px;font-weight:600;white-space:nowrap}

/* state tags: 已到账 / 处理中 / 已拒绝 / 已取消 */
.afh-st{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;flex:none;box-sizing:border-box}
.afh-st[data-st=done]{background:rgba(var(--bb-theme-accent-rgb,184,255,61),.55);color:#111}
.afh-st[data-st=pending]{background:rgba(245,166,35,.18);color:#8a5200}
.afh-st[data-st=pending]::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;animation:afh-breathe 1.4s ease-in-out infinite}
.afh-st[data-st=rejected]{background:rgba(var(--bb-theme-down-rgb,214,69,69),.14);color:var(--bb-theme-down,#c23b3b)}
.afh-st[data-st=cancelled]{border:1px solid var(--ac-line,var(--bb-theme-line));color:var(--ac-muted,var(--bb-theme-muted))}
html[data-bigbit-theme=dark] .afh-st[data-st=done],html[data-bigbit-theme=dark] .afh-mark-dep{background:rgba(var(--bb-theme-accent-rgb,184,255,61),.2);color:#d9ff9a}
html[data-bigbit-theme=dark] .afh-st[data-st=pending]{background:rgba(245,166,35,.2);color:#ffc46b}
html[data-bigbit-theme=dark] .afh-st[data-st=rejected]{background:rgba(255,107,107,.18);color:#ff8a8a}

/* empty and failure lines */
.afh-empty{display:flex;align-items:center;gap:12px;min-height:56px;font-size:14px;color:var(--ac-muted,var(--bb-theme-muted))}
.afh-empty>span{flex:1;min-width:0}
.afh-fail{display:flex;align-items:center;gap:12px;min-height:44px;margin-top:8px;font-size:13px;line-height:18px;color:var(--bb-theme-down,#d14343)}
.afh-fail>span{flex:1;min-width:0}
.afh-fail small{display:block;font-size:12px;opacity:.85}
.afh .account-card-head+.afh-fail{margin-top:0}

/* desktop table (记录 → 资金记录) */
.afh-tbl-wrap{overflow-x:auto;min-width:0}
.afh-tbl{width:100%;border-collapse:collapse;font-size:14px}
.afh-tbl th{height:36px;padding:0 12px;font-size:12px;font-weight:500;color:var(--ac-muted,var(--bb-theme-muted));text-align:left;white-space:nowrap;border-bottom:1px solid var(--ac-line,var(--bb-theme-line))}
.afh-tbl td{height:56px;padding:0 12px;border-bottom:1px solid var(--ac-line,var(--bb-theme-line));white-space:nowrap}
.afh-tbl tbody tr:last-child td{border-bottom:0}
.afh-tbl .afh-r{text-align:right}
.afh-tbl th:first-child,.afh-tbl td:first-child{padding-left:8px}
.afh-tbl th:last-child,.afh-tbl td:last-child{padding-right:8px}
.afh-tbl td b{font-weight:600}
.afh-tbl tbody tr{cursor:pointer;transition:background .15s}
.afh-tbl tbody tr:hover td{background:var(--glass-bg-soft,var(--ac-inner))}
.afh-tbl tbody tr:active td{background:var(--glass-bg,var(--ac-inner))}

/* detail (C sheet body) */
.afh-detail{display:flex;flex-direction:column;min-width:0}
.afh-d-amt{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.afh-d-big{font-size:26px;font-weight:650;letter-spacing:-.4px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.afh-d-big small{font-size:15px;font-weight:500;letter-spacing:0;margin-left:6px;color:var(--ac-muted,var(--bb-theme-muted))}
.afh-d-amt .afh-st{margin-left:auto}
.afh-why{display:flex;flex-direction:column;gap:4px;margin:6px 0 4px;padding:10px 12px;border-radius:12px;border:1px solid var(--glass-edge-soft,var(--ac-line));font-size:13px;line-height:18px}
.afh-why b{font-weight:600}
.afh-why q{color:var(--ac-muted,var(--bb-theme-muted));quotes:"\201C" "\201D"}
.afh-why span{color:var(--ac-muted,var(--bb-theme-muted))}
.afh-why-bad b{color:var(--bb-theme-down,#c23b3b)}
.afh-kvs{display:flex;flex-direction:column}
.afh-kv{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;border-bottom:1px solid var(--ac-line,var(--bb-theme-line));font-size:14px;min-width:0}
.afh-kv:last-child{border-bottom:0}
.afh-kv>span{color:var(--ac-muted,var(--bb-theme-muted));flex:none}
.afh-kv>b{font-weight:600;text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.afh-copy{max-width:100%;padding:2px 8px;margin-right:-8px;border:0;border-radius:999px;background:transparent;color:inherit;font-size:14px;font-weight:600;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background .15s}
.afh-copy:hover{background:var(--glass-bg-soft,var(--ac-inner))}
.afh-copy[data-done]{background:var(--bb-theme-accent,#b8ff3d);color:#111}
.afh-d-lab{display:block;font-size:13px;color:var(--ac-muted,var(--bb-theme-muted));margin:16px 0 6px}
.afh-tl{list-style:none;margin:6px 0 0;padding:0}
.afh-tl li{position:relative;display:flex;gap:12px;align-items:flex-start;padding:0 0 14px;font-size:14px}
.afh-tl li:last-child{padding-bottom:0}
.afh-tl li::before{content:"";position:absolute;left:5px;top:16px;bottom:-2px;width:1px;background:var(--ac-line,var(--bb-theme-line))}
.afh-tl li:last-child::before{display:none}
.afh-tl li>i{position:relative;width:11px;height:11px;border-radius:50%;margin-top:4px;flex:none;box-sizing:border-box;border:1.5px solid var(--ac-muted,var(--bb-theme-muted));opacity:.6}
.afh-tl li[data-state=done]>i{background:var(--bb-theme-accent,#b8ff3d);border-color:var(--bb-theme-accent,#b8ff3d);opacity:1}
.afh-tl li[data-state=current]>i{background:var(--bb-theme-accent,#b8ff3d);border-color:var(--bb-theme-accent,#b8ff3d);opacity:1;animation:afh-breathe 1.2s ease-in-out infinite}
.afh-tl li[data-state=failed]>i{background:var(--bb-theme-down,#d64545);border-color:var(--bb-theme-down,#d64545);opacity:1}
.afh-tl-t{flex:1;min-width:0}
.afh-tl-t small{display:block;font-size:12px;color:var(--ac-muted,var(--bb-theme-muted));font-variant-numeric:tabular-nums}
.afh-tl li[data-state=todo] .afh-tl-t{color:var(--ac-muted,var(--bb-theme-muted))}
.afh-d-sk{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.afh-d-sk i{display:block;height:20px;width:60%;border-radius:999px;background:var(--glass-bg-soft,var(--ac-inner));animation:afh-calm 1.4s ease-in-out infinite}
.afh-d-sk i:nth-child(2){width:48%}.afh-d-sk i:nth-child(3){width:36%}

/* first paint: title pill + a few big blocks */
.afh-sk{display:flex;flex-direction:column;gap:24px}
.afh-sk i{display:block;border-radius:20px;border:1px solid var(--glass-edge-soft,var(--ac-line));background:var(--glass-bg-soft,var(--ac-inner));animation:afh-calm 1.4s ease-in-out infinite;box-sizing:border-box}
.afh-sk .afh-sk-pill{width:180px;height:20px;border-radius:999px;margin-bottom:-12px}
.afh-sk .afh-sk-wallet{height:142px}
.afh-sk-cols{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start}
.afh-sk .afh-sk-rec{height:420px}
.afh-sk .afh-sk-acc{height:200px}

@keyframes afh-breathe{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes afh-sweep{from{background-position:120% 0}to{background-position:-20% 0}}

@media (max-width:900px){
  .afh,.afh-sk{gap:16px}
  .afh-cols,.afh-sk-cols{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .afh-cols>.afh-accts,.afh-sk-cols>.afh-sk-acc{order:-1}
}
@media (max-width:640px){
  .afh,.afh-sk,.afh-cols,.afh-sk-cols{gap:12px}
  .afh-w{flex-direction:column;align-items:stretch;gap:16px}
  .afh-w-big{font-size:34px}
  .afh-w-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html body .afh .afh-w-acts .account-button:not(#_):not(#_){min-width:0;padding:0 8px!important}
  html body .afh .account-card:not(#_){padding:16px}
  .afh-acct{gap:10px}
  html body .afh .afh-acct .account-button.afh-sm:not(#_):not(#_){padding:0 12px!important}
  html body .afh .account-chip.afh-demo:not(#_):not(#_){height:20px!important;min-height:20px!important;padding:0 6px!important;font-size:11px}
  .afh-acct-title .afh-demo{display:none!important}
  .afh-demo-sub{display:inline-flex!important;margin-right:6px;vertical-align:1px}
  .afh-sk .afh-sk-wallet{height:190px}
  .afh-sk .afh-sk-rec{height:360px}
  .afh-sk .afh-sk-acc{height:160px}
}
@media (prefers-reduced-motion:reduce){
  .afh *,.afh *::before,.afh-detail *,.afh-detail *::before{animation:none!important;transition:none!important}
}
/* funds-records-v1 (parent): the result line after a face check started from a withdrawal detail */
.afh-face-done{margin:16px 0 8px;font-size:15px;line-height:1.5}
/* funds-records-width-v1 (owner 2026-11-12 iPhone: 「宽度是不是有问题」): the 出入金 / 记录 pages are grid items of the account
   content and grew to their widest line (a long 「PIX · 巴西 3 …」 row, the account chips) — the phone then zoomed the whole page
   out (right gap) or cut the page off (记录). Both stay inside the screen; long lines end in 「…」, chip rows scroll on their own. */
[data-account-content]>.account-section-only{min-width:0;max-width:100%;box-sizing:border-box}
.afh,.arc{max-width:100%}
.afh-row,.afh-row-t,.afh .account-acct-row,.afh .account-acct-row>*{min-width:0}
.afh-row-t{flex:1 1 auto}
.arc-head,.arc-top,.arc-filters,.arc-body{min-width:0;max-width:100%}

/* skeleton-plain-v1 (owner 2026-11-12 「正常的骨架就好了，不要搞得这么复杂」): plain blocks that fade gently, no sweeping light */
@keyframes afh-calm{0%,100%{opacity:.45}50%{opacity:.9}}
@media (prefers-reduced-motion:reduce){[class*="afh-sk"] i{animation:none!important}}
/* skeleton-plain-v1: the account content column is a flex box with align-items:start, so a section only as wide as its
   180 px skeleton pill opened narrow on phones and then jumped to full width when the page arrived (「从左往右展开」). */
html body [data-account-content]>.account-section-only{align-self:stretch;width:100%;box-sizing:border-box}
