/* Measured from Figma 所有页面 / OneID 人群列表 1413:9216, 2026-11-20.
   Source canvas 1920×1080; content x260; panel x260/y184/w1630/h866.
   Header x: 290,410,510,598,712,800,908,1008,1088,1228,1508,1608,1776. */
@font-face{font-family:'D-DIN';src:url('assets/D-DIN.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'D-DIN';src:url('assets/D-DIN-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
.app-shell[data-page=audience] .business-pages{padding:30px}
.app-shell[data-page=audience] .bp-heading{margin-bottom:7px;align-items:flex-start}
.app-shell[data-page=audience] .bp-heading h1{font-size:20px;line-height:20px;margin:0 0 15px}
.app-shell[data-page=audience] .bp-heading p{font-size:16px;line-height:16px}
.app-shell[data-page=audience] .bp-audience-scope-row{padding:0;min-height:32px;margin:0 0 30px;align-items:flex-end;gap:16px 24px}
.app-shell[data-page=audience] .bp-audience-scope-row .bp-heading-actions{transform:none;gap:12px}
.app-shell[data-page=audience] .bp-audience-tags{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0}
.app-shell[data-page=audience] .bp-audience-tags .bp-badge{font-size:14px;line-height:14px;height:28px;padding:5px 11px}
.app-shell[data-page=audience] .bp-audience-panel{min-height:0;padding:0;border:0;outline:1px solid var(--bp-border);outline-offset:-1px;border-radius:12px;overflow:hidden}
.app-shell[data-page=audience] .bp-audience-toolbar{height:auto;min-height:62px;padding:15px 28px 15px 30px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 24px}
.app-shell[data-page=audience] .bp-audience-toolbar .bp-search{width:340px;max-width:100%;height:36px;font-size:16px;line-height:16px;padding-left:36px;background-position:12px center}
.app-shell[data-page=audience] .bp-audience-counts{display:flex;align-items:center;gap:48px;transform:translateY(-1px);margin-left:auto}
.app-shell[data-page=audience] .bp-audience-counts>span{position:relative;display:grid;grid-template-columns:minmax(56px,max-content) 6px minmax(21px,max-content) 15px 14px;column-gap:0;align-items:center;height:20px;margin:0;padding:0;border:0;white-space:nowrap}
.app-shell[data-page=audience] .bp-audience-counts>span+span{grid-template-columns:minmax(42px,max-content) 8px minmax(21px,max-content) 15px 14px;margin:0;padding:0;border:0}
.app-shell[data-page=audience] .bp-audience-counts>span+span:before{content:'';position:absolute;left:-22px;top:0;width:1px;height:20px;background:var(--bp-border)}
.app-shell[data-page=audience] .bp-audience-counts .bp-count-label,.app-shell[data-page=audience] .bp-audience-counts .bp-count-unit{font-size:16px;line-height:16px}
.app-shell[data-page=audience] .bp-audience-counts .bp-count-unit{grid-column:5}
.app-shell[data-page=audience] .bp-audience-counts b{grid-column:3;font:700 20px/20px 'D-DIN',Inter,sans-serif;width:auto;min-width:21px;margin:0;font-variant-numeric:tabular-nums}
.app-shell[data-page=audience] #bp-audience-results>.bp-table-wrap{overflow-x:auto;min-width:0}
.app-shell[data-page=audience] .bp-audience-table{width:100%;min-width:1630px;table-layout:fixed;font-size:16px;line-height:16px}
.app-shell[data-page=audience] .bp-audience-table :is(th,td){padding:0 16px 0 0;text-align:left;vertical-align:middle;box-sizing:border-box;white-space:nowrap}
.app-shell[data-page=audience] .bp-audience-table th{height:48px;font:400 16px/16px Inter,'PingFang SC','Microsoft YaHei',sans-serif}
.app-shell[data-page=audience] .bp-audience-table td{height:58px;font:400 16px/16px Inter,'PingFang SC','Microsoft YaHei',sans-serif}
.app-shell[data-page=audience] .bp-audience-table :is(th,td):first-child{padding-left:30px}
.app-shell[data-page=audience] .bp-audience-table :is(th,td):last-child{text-align:left;padding-left:0;padding-right:30px}
.app-shell[data-page=audience] .bp-audience-table .numeric,.app-shell[data-page=audience] .bp-audience-table td:nth-child(9),.app-shell[data-page=audience] .bp-audience-table td:last-child,.app-shell[data-page=audience] .bp-audience-table .bp-text-button{font:400 16px/16px 'D-DIN',Inter,sans-serif;font-variant-numeric:tabular-nums}
.app-shell[data-page=audience] .bp-audience-table .bp-badge{height:24px;font-size:14px;line-height:14px;padding:3px 11px}
.app-shell[data-page=audience] .bp-audience-email{font:400 16px/16px Inter,'PingFang SC','Microsoft YaHei',sans-serif}
.app-shell[data-page=audience] .bp-font-din{font-family:'D-DIN',Inter,sans-serif;font-size:inherit;line-height:inherit;font-weight:400}
.app-shell[data-page=audience] .bp-email-entry{display:grid;grid-template-columns:141px max-content;column-gap:0;align-items:center;height:22px;font-size:16px;line-height:16px}
.app-shell[data-page=audience] .bp-email-entry+.bp-email-entry{height:14px;margin-top:2px}
.app-shell[data-page=audience] .bp-email-entry>span:first-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell[data-page=audience] .bp-email-tag{height:18px;min-width:71px;display:inline-flex;align-items:center;padding:2px 6px;border-radius:4px;font-size:14px;line-height:14px;font-weight:400;background:rgb(61 91 246 / .1)}
.app-shell[data-page=audience] .bp-email-secondary{display:inline-flex;align-items:center;padding-left:6px;font-size:16px;line-height:16px;font-weight:400}
.app-shell[data-page=audience] .bp-audience-panel .bp-pagination{height:auto;min-height:64px;padding:16px 17px 16px 30px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 24px;font-size:16px;line-height:16px}
.app-shell[data-page=audience] .bp-pagination>span{position:static;top:auto;white-space:nowrap}
.app-shell[data-page=audience] .bp-audience-panel .bp-page-buttons{display:flex;align-items:center;gap:8px;transform:none;margin-left:auto}
.app-shell[data-page=audience] .bp-page-buttons button,.app-shell[data-page=audience] .bp-page-jump-select{height:36px;min-width:32px;font:400 16px/16px 'D-DIN',Inter,sans-serif}
.app-shell[data-page=audience] .bp-page-buttons .bp-input{height:36px;width:78px;margin-right:16px;padding:0;border:0;background:transparent;font-size:16px;line-height:16px}
.app-shell[data-page=attribution] .bp-attribution-plot svg text.attr-axis{font-family:'D-DIN',Inter,'PingFang SC','Microsoft YaHei',sans-serif}
.app-shell[data-page=attribution] .bp-attribution-plot svg text.attr-axis-title{font-family:Inter,'PingFang SC','Microsoft YaHei',sans-serif}
@media(max-width:760px){
  .app-shell[data-page=audience] .business-pages{padding:20px}
  .app-shell[data-page=audience] .bp-heading p{line-height:20px}
  .app-shell[data-page=audience] .bp-audience-toolbar{padding:16px 20px}
  .app-shell[data-page=audience] .bp-audience-toolbar .bp-search{width:100%}
  .app-shell[data-page=audience] .bp-audience-counts{gap:30px}
  .app-shell[data-page=audience] .bp-audience-counts>span+span:before{left:-16px}
  .app-shell[data-page=audience] .bp-audience-panel .bp-pagination{padding:16px 20px}
  .app-shell[data-page=audience] .bp-audience-scope-row .bp-heading-actions{margin-left:0}
}
/* Keep masked names on one line; only overflowing values expose a tooltip. */
.app-shell[data-page=audience] .bp-audience-name{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:16px}
.app-shell[data-page=audience] .bp-audience-name[data-overflow=true]{cursor:help}
.app-shell[data-page=audience] .bp-audience-name:focus-visible{outline:2px solid var(--cy-tab-accent);outline-offset:3px;border-radius:2px}
.bp-name-tooltip{position:fixed;z-index:2000;width:max-content;max-width:320px;margin:0;padding:8px 12px;border:1px solid var(--bp-border);border-radius:4px;background:var(--cy-surface);color:var(--bp-text);box-shadow:0 4px 16px rgb(0 0 0 / .18);font:400 16px/22px Inter,'PingFang SC','Microsoft YaHei',sans-serif;white-space:normal;overflow-wrap:anywhere}
/* Saved audience switcher: match the existing flat page-tab design. */
.app-shell[data-page=audience] .cy-audience-switcher{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;height:62px;min-height:62px;min-width:0;margin:-30px -30px 30px;padding:0 12px;border-bottom:0;background:var(--cy-base)}
.cy-audience-switcher::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--cy-white-5);pointer-events:none}
.cy-audience-switcher button{flex:none;font-family:'PingFang SC',sans-serif;font-size:16px;line-height:16px;letter-spacing:0px;font-weight:400;color:var(--cy-white-55);cursor:pointer}
.cy-audience-return,.cy-audience-tab-nav>button{display:flex;align-items:center;justify-content:center;gap:8px;height:32px;padding:0 8px;border:0;border-radius:0;background:transparent}
.cy-audience-return>img,.cy-audience-prev>img{transform:rotate(180deg)}
.cy-audience-tab-nav{display:flex;flex:none;gap:0}
.cy-audience-tab-nav>button{width:32px;padding:0}
.cy-audience-switcher button:disabled{opacity:.35;cursor:default}
.cy-audience-tabs{display:flex;flex:1;align-items:stretch;gap:0;height:62px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-padding-inline:4px;padding-right:4px}
.cy-audience-tabs::-webkit-scrollbar{display:none}
.cy-audience-tab{position:relative;display:flex;align-items:center;flex:none;height:62px;min-width:0;border:0;border-radius:0;background:transparent}
.cy-audience-tab.is-active{background:transparent}
.cy-audience-tab.is-active::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--cy-tab-accent,#7197ff);pointer-events:none}
.cy-audience-tab-switch{display:flex;align-items:center;gap:8px;height:62px;min-width:0;padding:0 8px 0 12px;border:0;border-radius:0;background:transparent;font-family:'PingFang SC',sans-serif!important;font-size:16px!important;line-height:16px!important;font-weight:600!important;letter-spacing:0px}
.cy-audience-tab-label{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cy-audience-tab-count{font-family:'D-DIN',sans-serif;font-size:16px;line-height:16px;font-weight:400;white-space:nowrap}
.cy-audience-tab.is-active .cy-audience-tab-switch{color:var(--cy-tab-accent,#7197ff)}
.cy-audience-tab-close{display:grid;place-items:center;width:26px;height:62px;padding:0;border:0;border-radius:0;background:transparent}
.cy-audience-switcher img{display:block;flex:none;width:14px;height:14px}
.cy-audience-tab.is-active .cy-audience-tab-close>img,.cy-audience-tab:hover .cy-audience-tab-close>img{content:url('assets/tab-close-14.svg')}
.cy-audience-switcher button:focus-visible{outline:2px solid var(--cy-tab-accent);outline-offset:-2px}
html[data-theme=light] .cy-audience-switcher img{filter:brightness(0)}
html[data-theme=light] .cy-audience-tab.is-active .cy-audience-tab-close>img,html[data-theme=light] .cy-audience-tab:hover .cy-audience-tab-close>img{filter:none}
@media(max-width:760px){.app-shell[data-page=audience] .cy-audience-switcher{margin:-20px -20px 30px;padding-right:8px;padding-left:8px;gap:8px}.cy-audience-return{padding:0 8px}.cy-audience-tab-label{max-width:130px}}

body:has(#cy-audience-records:popover-open) .app-shell[data-page=audience] .cy-audience-switcher{z-index:95}

.app-shell[data-page=audience] .cy-audience-switcher::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--cy-white-10);pointer-events:none}

/* Keep the audience header short: recently viewed tabs plus the shared select. */
.cy-audience-switcher .cy-audience-return{margin-left:18px;padding:0 8px;color:var(--cy-white-55)}
.cy-audience-switcher .cy-audience-tabs{gap:12px}
.cy-audience-switcher .cy-audience-tab-label{max-width:240px}
.cy-audience-tab-close{opacity:0;visibility:hidden;pointer-events:none}
.cy-audience-tab:hover .cy-audience-tab-close,.cy-audience-tab:has(:focus-visible) .cy-audience-tab-close{opacity:1;visibility:visible;pointer-events:auto}
.cy-audience-quick-switch{flex:none;margin-right:18px}
.cy-audience-quick-switch .cy-audience-quick-select{width:132px;height:36px;margin:0;font-family:'PingFang SC',sans-serif;font-size:16px;line-height:16px;font-weight:400;letter-spacing:0px}
.cy-audience-switcher .cy-audience-quick-select.bp-select-trigger{color:var(--cy-white-75);padding:0 10px;border:1px solid var(--cy-white-10);border-radius:4px;background:transparent}
.cy-audience-switcher .cy-audience-quick-select.bp-select-trigger:hover:not(:disabled){background:var(--cy-white-5)}
@media(max-width:760px){.cy-audience-switcher .cy-audience-return{margin-left:12px}.cy-audience-quick-switch{margin-right:12px}.cy-audience-switcher .cy-audience-tab-label{max-width:130px}}

/* User reference: 32px bordered rectangular tabs, R4, no pill or top indicator. */
.cy-audience-switcher .cy-audience-return,.cy-audience-tab-nav>button{height:32px;border:1px solid rgb(113 151 255 / .35);border-radius:4px;background:transparent}
.cy-audience-switcher .cy-audience-return{padding:0 12px;color:var(--cy-tab-accent,#7197ff)}
.cy-audience-tab-nav{gap:12px}
.cy-audience-tab-nav>button{width:32px;padding:0}
.cy-audience-tab-nav .cy-audience-prev>img{width:8px;height:5px;transform:rotate(90deg)}
.cy-audience-tab-nav .cy-audience-next>img{width:8px;height:5px;transform:rotate(-90deg)}
.cy-audience-switcher .cy-audience-tabs{height:36px;align-items:center;padding:2px 4px;box-sizing:border-box}
.cy-audience-tab{height:32px;border:1px solid rgb(113 151 255 / .35);border-radius:4px;background:var(--cy-white-5)}
.cy-audience-tab.is-active{border-color:var(--cy-tab-accent,#7197ff);background:rgb(113 151 255 / .1)}
.cy-audience-tab.is-active::before{content:none}
.cy-audience-tab-switch{height:30px;border-radius:4px 0 0 4px;color:var(--cy-tab-accent,#7197ff)!important}
.cy-audience-tab-close{height:30px;border-radius:0 4px 4px 0}

/* OneID audience navigation shares the fixed top row with the global audience-tags entry. */
.app-shell[data-page="audience"] .cy-audience-switcher{position:fixed;top:0;left:var(--cy-content-left,var(--sidebar-width,230px));right:var(--cy-audience-toolbar-right,210px);z-index:30;display:flex;flex-wrap:nowrap;align-items:center;gap:12px;box-sizing:border-box;width:auto;max-width:none;min-width:0;height:62px;min-height:62px;margin:0;padding:0 0 0 30px;border:0;background:transparent;box-shadow:none}
.app-shell[data-page="audience"] .cy-audience-switcher::before,.app-shell[data-page="audience"] .cy-audience-switcher::after{content:none;display:none}
.app-shell[data-page="audience"] .cy-audience-switcher .cy-audience-return{margin-left:0}
.app-shell[data-page="audience"] .cy-audience-switcher .cy-audience-tabs{flex:1;min-width:0;max-width:100%;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}

/* Audience tags use the shared 32px header action on every page. */
