/* Saved audience records: bounded list with compact pagination. */
.bp-record-popover[open]{display:flex;flex-direction:column;height:490px;max-height:calc(100dvh - 24px);overflow:hidden}
.bp-record-popover .bp-record-head{flex:none}
.bp-record-popover .bp-record-head h2{line-height:20px}
.bp-record-popover .bp-record-head p{font-size:14px;line-height:14px}
.bp-record-popover .bp-record-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:15px 23px 0}
.bp-record-popover .bp-record-body input{flex:none;line-height:14px}
.bp-record-popover #bp-record-list{flex:1;min-height:0;max-height:none;margin-top:12px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}
.bp-record-popover .bp-record-footer{position:static;display:grid;gap:12px;flex:none;margin:0;padding:16px 23px 23px;width:100%;min-width:0}
.bp-record-footer-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
.bp-record-range{font-size:14px;line-height:14px;color:var(--cy-white-55);white-space:nowrap}
.bp-record-footer .bp-button:disabled{opacity:.35;cursor:default}
.bp-record-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.bp-record-page-size{flex:none;width:88px;height:32px;padding:0 4px;border:1px solid var(--cy-white-10);border-radius:4px;background:transparent;color:var(--cy-white-75);font:400 14px/14px Inter,'PingFang SC','Microsoft YaHei',sans-serif;cursor:pointer;color-scheme:dark}
.bp-record-page-size option{background:var(--cy-surface);color:var(--cy-white-95)}
.bp-record-pages{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
.bp-record-pages button,.bp-record-page-ellipsis{display:grid;place-items:center;width:24px;min-width:24px;height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--cy-white-55);font:400 14px/14px Inter,sans-serif}
.bp-record-pages button:hover:not(:disabled){background:var(--cy-white-5);color:var(--cy-white-95)}
.bp-record-pages button[aria-current=page]{background:#3d5bf6;color:rgb(255 255 255 / .95)}
.bp-record-pages button:disabled{opacity:.35;cursor:default}
.bp-record-pages button:focus-visible,.bp-record-page-size:focus-visible{outline:2px solid #7197ff;outline-offset:1px}
html[data-theme=light] .bp-record-page-size{color-scheme:light}
@media(max-height:540px){.bp-record-popover .bp-record-head{padding-top:20px}.bp-record-popover .bp-record-footer{padding-top:12px;padding-bottom:16px}.bp-record-popover .bp-record-body{padding-top:12px}}

.bp-record-popover .bp-record-footer{justify-content:stretch}

/* Taller saved audience list, with the user-requested 8/10 records per page. */
.bp-record-popover[open]{height:640px}
.bp-record-popover[open][data-record-limit="10"]{height:740px}

/* Content area follows Figma 人群添加记录 / 1413:13952; retain the existing pagination footer. */
.bp-record-popover .bp-record-head h2{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.bp-record-popover .bp-record-head p{font-size:14px;line-height:18px}
.bp-record-popover .bp-record-head .bp-record-close{top:23px}
.bp-record-popover .bp-record-body input{font-size:14px;line-height:18px}
.bp-record-popover #bp-record-list{margin-top:10px}
.bp-record-popover .bp-record-row{height:46px}
.bp-record-popover .bp-record-open{grid-template-rows:14px 12px;gap:4px 8px;padding:7px 40px 7px 17px;font-size:16px;line-height:16px}
.bp-record-popover .bp-record-open>span{font-family:Inter,'PingFang SC','Microsoft YaHei',sans-serif;font-weight:500}
.bp-record-popover .bp-record-open small{font-size:14px;line-height:14px}
.bp-record-popover .bp-record-open b{font:700 16px/16px 'D-DIN',Inter,sans-serif;color:#bea6da}
.bp-record-popover .bp-record-remove{top:50%;transform:translateY(-50%)}
.bp-record-popover[open]{height:648px}
.bp-record-popover[open][data-record-limit="10"]{height:756px}

.bp-record-popover #bp-record-list{scrollbar-gutter:auto}

/* Match the OneID footer: range on the left, limit and page navigation on the right. */
.bp-record-popover[open]{width:364px;height:789px}
.bp-record-popover[open][data-record-limit="10"]{height:789px}
.bp-record-popover .bp-record-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;height:64px;min-height:64px;padding:16px 23px;border-top:1px solid var(--cy-white-10)}
.bp-record-popover .bp-record-range{flex:none;font-size:16px;line-height:16px}
.bp-record-popover .bp-record-paging{flex:none;justify-content:flex-end;gap:12px}
.bp-record-popover .bp-record-page-size{width:96px;height:32px;border:0;background:transparent;font-size:16px;line-height:16px}
.bp-record-popover .bp-record-pages button,.bp-record-popover .bp-record-page-ellipsis{width:28px;min-width:28px;height:32px;font-size:16px;line-height:16px}
.bp-record-popover .bp-record-clear{position:absolute;right:54px;top:21px;width:64px;height:36px;padding:0;background:transparent;border:1px solid var(--cy-white-10);border-radius:4px;color:var(--cy-white-75);font-size:16px;line-height:16px}
.bp-record-popover .bp-record-clear:disabled{opacity:.35;cursor:default}
@media(max-width:540px){.bp-record-popover .bp-record-footer{height:auto;min-height:64px;flex-wrap:wrap;gap:12px}.bp-record-popover .bp-record-paging{margin-left:auto}}

.bp-record-popover[open]{max-width:calc(100vw / var(--app-ui-scale) - 24px);max-height:calc(100dvh / var(--app-ui-scale) - 24px)}

/* Restore the exact Figma 人群添加记录 dimensions; keep pagination within that width. */
.bp-record-popover[open],.bp-record-popover[open][data-record-limit="10"]{width:364px;height:789px}
.bp-record-popover .bp-record-footer{gap:12px;flex-wrap:nowrap}
.bp-record-popover .bp-record-range{font-size:14px;line-height:14px}
.bp-record-popover .bp-record-paging{gap:6px;margin-left:0}
.bp-record-popover .bp-record-page-size{width:68px;padding:0 2px;font-size:14px;line-height:14px}
.bp-record-popover .bp-record-pages{gap:2px}
.bp-record-popover .bp-record-pages button,.bp-record-popover .bp-record-page-ellipsis{width:22px;min-width:22px;height:32px;font-size:14px;line-height:14px}

/* Fixed 10 rows per page; bounded page numbers and optional jump ellipses. */
.bp-record-fixed-limit{display:block;flex:none;width:56px;font-size:14px;line-height:14px;color:var(--cy-white-75);white-space:nowrap}
.bp-record-page-jump{appearance:none;-webkit-appearance:none;display:block;flex:none;width:22px;min-width:22px;height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--cy-white-55);font:400 14px/14px Inter,sans-serif;text-align:center;text-align-last:center;cursor:pointer;color-scheme:dark}
.bp-record-page-jump option{background:var(--cy-surface);color:var(--cy-white-95);font-size:14px;text-align:left}
.bp-record-page-jump:focus-visible{outline:2px solid #7197ff;outline-offset:1px}
html[data-theme=light] .bp-record-page-jump{color-scheme:light}

.bp-record-popover .bp-record-pages button[data-page]{width:auto;min-width:22px;padding:0 2px;font-family:'D-DIN',Inter,sans-serif}

/* Pagination appearance from the supplied reference: square active page, larger numerals, wider rhythm. */
.bp-record-popover .bp-record-pages{gap:8px}
.bp-record-popover .bp-record-pages button,.bp-record-popover .bp-record-page-ellipsis,.bp-record-popover .bp-record-page-jump{height:36px;font-size:16px;line-height:16px}
.bp-record-popover .bp-record-pages button[aria-current=page]{width:32px;min-width:32px;height:32px;padding:0;border-radius:4px;background:var(--cy-primary);color:rgb(255 255 255 / .95)}
.bp-record-popover .bp-record-pages button:first-child,.bp-record-popover .bp-record-pages button:last-child{width:20px;min-width:20px;padding:0}

/* Use the reference's even 32px rhythm; compact only longer seven-slot page strips. */
.bp-record-popover .bp-record-footer{gap:8px}
.bp-record-popover .bp-record-pages button[data-page],.bp-record-popover .bp-record-pages button:first-child,.bp-record-popover .bp-record-pages button:last-child,.bp-record-popover .bp-record-page-jump{width:32px;min-width:32px;padding:0}
.bp-record-popover .bp-record-pages:has(> :nth-child(7)) button:not([aria-current=page]){width:22px;min-width:22px;padding:0 2px}
.bp-record-popover .bp-record-pages:has(> :nth-child(7)) .bp-record-page-jump{width:22px;min-width:22px}
.bp-record-popover .bp-record-pages:has(> :nth-child(7)) button:first-child,.bp-record-popover .bp-record-pages:has(> :nth-child(7)) button:last-child{width:20px;min-width:20px;padding:0}
