:root{--app-ui-scale:1;--app-canvas-gutter:0px;--app-content-scrollbar:0px}
html{zoom:var(--app-ui-scale);width:100%;height:100%;overflow:hidden}
body{width:100%;height:100%;min-height:0;overflow:hidden}
.app-shell{height:calc(100vh / var(--app-ui-scale));height:calc(100dvh / var(--app-ui-scale));min-height:0}
.workspace-content{overflow-x:hidden}
.workspace-content>.dashboard,.workspace-content>.business-pages{width:calc(100% + var(--scrollbar-compensation,0px));max-width:none}
#attribution-table .bp-table-wrap.has-fitting-table{overflow:visible}
table th.align-leading,table td.align-leading{text-align:left!important}
html:not([data-theme=light]) .dashboard .distribution-panel{background:rgb(255 255 255 / .05);border-color:rgb(255 255 255 / .1)}
html:not([data-theme=light]){--bp-card:#2b2b3a}
html:not([data-theme=light]) .dashboard{--dash-card:#2b2b3a;--dash-green:#42cf8a;--dash-red:#e15454;--dash-orange:#ea9d4d}
:is(#filter-reset,.bp-filter-actions [data-bp=reset]){font-size:16px;line-height:16px;font-weight:400;transition:background-color 100ms ease}
html:not([data-theme=light]) :is(#filter-reset,.bp-filter-actions [data-bp=reset]){background:transparent;color:rgb(255 255 255 / .75);border-color:rgb(255 255 255 / .1)}
html:not([data-theme=light]) :is(#filter-reset,.bp-filter-actions [data-bp=reset]):hover:not(:disabled),html:not([data-theme=light]) :is(#filter-reset,.bp-filter-actions [data-bp=reset]):active:not(:disabled){background:rgb(255 255 255 / .05)}
html[data-theme=light] :is(#filter-reset,.bp-filter-actions [data-bp=reset]){background:rgb(0 0 0 / .01);color:rgb(0 0 0 / .95);border-color:rgb(0 0 0 / .05)}
html[data-theme=light] :is(#filter-reset,.bp-filter-actions [data-bp=reset]):hover:not(:disabled),html[data-theme=light] :is(#filter-reset,.bp-filter-actions [data-bp=reset]):active:not(:disabled){background:rgb(0 0 0 / .05)}
:is(#filter-reset,.bp-filter-actions [data-bp=reset]):active:not(:disabled){transform:translateY(2px)}
:is(#filter-reset,.bp-filter-actions [data-bp=reset]):focus-visible{outline:2px solid #3d5bf6;outline-offset:2px}

/* P1/P2/P3 source geometry in logical 1920×1080 canvas units. */
.app-shell[data-page=attribution] .business-pages{padding:30px}
.app-shell[data-page=attribution] .bp-heading{position:relative;height:53px;min-height:53px;margin:0 0 30px;align-items:flex-start}
.app-shell[data-page=attribution] .bp-heading h1{font-size:24px;line-height:24px;margin:0 0 15px;font-weight:600}
.app-shell[data-page=attribution] .bp-heading p{font-size:16px;line-height:16px;margin:0;white-space:nowrap}
.app-shell[data-page=attribution] .bp-heading-actions{position:absolute;right:0;top:7px;height:32px}
.app-shell[data-page=attribution] .bp-heading-actions .bp-record-trigger{width:140px;height:36px;padding:0 16px;gap:4px;font-size:16px;line-height:16px;color:var(--cy-white-75)}
.app-shell[data-page=attribution] .bp-heading-actions .bp-record-trigger img{width:16px;height:16px;flex-basis:16px}
.app-shell[data-page=attribution] .bp-record-count{width:16px;min-width:16px;height:16px;line-height:16px;right:-5px;top:-8px;padding:0}
.app-shell[data-page=attribution] .business-pages>.bp-callout{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:32px;align-items:center;height:96px;margin:0 0 30px;padding:19px 29px;border-radius:8px;box-sizing:border-box}
.app-shell[data-page=attribution] .business-pages>.bp-callout>strong{display:block;width:80px;min-width:80px;font-size:20px;line-height:20px;font-weight:500}
.app-shell[data-page=attribution] .business-pages>.bp-callout>strong small{display:block;width:80px;margin-top:8px;font-size:14px;line-height:14px;font-weight:400;text-align:center}
.app-shell[data-page=attribution] .business-pages>.bp-callout>div{position:relative;padding:0;border:0;font-size:16px;line-height:16px;min-width:0}
.app-shell[data-page=attribution] .business-pages>.bp-callout>div:before{content:'';position:absolute;left:-32px;top:50%;width:1px;height:56px;transform:translateY(-50%);background:var(--bp-border)}
.app-shell[data-page=attribution] .business-pages>.bp-callout p{font-size:16px;line-height:16px;margin:0;white-space:nowrap}
.app-shell[data-page=attribution] .business-pages>.bp-callout p+p{margin-top:8px}
.app-shell[data-page=attribution] .bp-attribution-kpis{display:grid;grid-template-columns:358fr 394fr 394fr 394fr;gap:30px;margin:0 0 30px}
.app-shell.is-sidebar-collapsed[data-page=attribution] .bp-attribution-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.app-shell[data-page=attribution] .bp-kpi{position:relative;height:222px;min-height:222px;padding:0;border-radius:8px}
.app-shell[data-page=attribution] .bp-kpi>.bp-badge{left:0;top:0;height:28px;padding:5px 11px;font-size:14px;line-height:14px;border-radius:4px}
.app-shell[data-page=attribution] .bp-kpi h3{position:absolute;left:29px;top:43px;font-size:20px;line-height:20px;font-weight:500;margin:0}
.app-shell[data-page=attribution] .bp-kpi .bp-number{position:absolute;left:29px;top:75px;font:700 40px/40px 'D-DIN','Bahnschrift',Inter,sans-serif;letter-spacing:0px}
.app-shell[data-page=attribution] .bp-kpi .bp-number small{display:inline-block;vertical-align:bottom;font:400 14px/14px Inter,'Microsoft YaHei',sans-serif}
.app-shell[data-page=attribution] .bp-kpi:last-child .bp-number small{font-size:20px;line-height:20px}
.app-shell[data-page=attribution] .bp-kpi footer{position:absolute;left:29px;right:29px;top:140px;display:grid;row-gap:12px;margin:0;padding:14px 0 0;border-top:1px solid var(--bp-border);font-size:14px;line-height:14px}
.app-shell[data-page=attribution] .bp-kpi footer>span{display:block;font-size:14px;line-height:14px}
.app-shell[data-page=attribution] .bp-attribution-charts{display:grid;grid-template-columns:minmax(0,1fr) 643px;gap:30px;align-items:start;margin:0 0 30px}
.app-shell[data-page=attribution] .bp-attribution-charts>.bp-panel{height:687px;padding:0;margin:0;overflow:hidden}
.app-shell[data-page=attribution] .bp-attribution-matrix .bp-attribution-plot{width:957px;max-width:none;height:687px;margin:0}
.app-shell[data-page=attribution] .bp-attribution-mix .bp-attribution-plot{width:643px;max-width:none;height:687px;margin:0}
.app-shell[data-page=attribution] .bp-attribution-plot svg{width:100%;height:687px}
html:not([data-theme=light]) .app-shell:not(.is-sidebar-collapsed)[data-page=attribution] .bp-attribution-mix{margin-top:2px}
.app-shell[data-page=attribution] #attribution-charts{scroll-margin-top:30px}
html:not([data-theme=light]) .app-shell:not(.is-sidebar-collapsed)[data-page=attribution] #attribution-charts{scroll-margin-top:28px}
.app-shell[data-page=attribution] #attribution-table{margin:0;scroll-margin-top:30px}
html:not([data-theme=light]) .app-shell[data-page=attribution] .bp-kpi>.bp-badge.green{background:rgb(66 207 138 / .15);border-color:rgb(66 207 138 / .35);color:#56ffac}
.app-shell[data-page=attribution] .bp-kpi>.bp-badge.red{background:rgb(225 84 84 / .15);border-color:rgb(225 84 84 / .35);color:#fb6b54}
.app-shell[data-page=attribution] .bp-kpi>.bp-badge.orange{background:rgb(234 157 77 / .15);border-color:rgb(234 157 77 / .35);color:#ea9d4d}

html:not([data-theme=light]) .app-shell[data-page=attribution] .business-pages>.bp-callout{background:rgb(234 157 77 / .1);border-color:rgb(234 157 77 / .35)}
.app-shell[data-page=attribution] .bp-kpi>.bp-badge{left:-1px;top:-1px}
html[data-theme=light] .app-shell[data-page=attribution] .bp-kpi>.bp-badge.blue{color:#3d5bf6}
.app-shell[data-page=attribution] .business-pages>.bp-demo-note{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.app-shell[data-page=attribution] #attribution-table{padding-bottom:0;min-height:532px}

html:not([data-theme=light]) .app-shell:not(.is-sidebar-collapsed)[data-page=attribution] .business-pages{padding-bottom:32px}
html[data-theme=light] .app-shell[data-source-frame="1184:24181"] .bp-attribution-charts{transform:translateX(-18px)}

/* A fluid shell uses all available width; the common UI scale stays uniform. */
.app-shell{width:100%;min-width:0;max-width:none;margin-left:0;margin-right:0}
/* Portal coordinates remain viewport-based; the content mask stops at the centered work area. */
body:has(.app-shell)::after{right:var(--app-canvas-gutter,0px)!important}
/* Match the usable content edge at each uniform display scale, including embedded review scrollbars. */
.app-shell #workspace .workspace-header>#cy-top-audience-tags{right:calc(30px + var(--app-content-scrollbar,0px))!important}

/* Fixed sidepanels align with the full-width workspace edge. */
body:has(.app-shell) :is(#bp-activity-drawer,#drillPanel,.cy-audience-export-history){right:var(--app-canvas-gutter,0px)!important}

/* Sidebar and content share the same unscaled design pixels. */
.app-shell > .sidebar {
  zoom: var(--app-menu-zoom, 1);
  height: 100%;
}
/* Body submenu uses the same 1:1 scale as its sidebar anchor. */
body > #assets-submenu {
  zoom: var(--app-menu-zoom, 1);
}

/* Cards remain on one row and fit uniformly; no local horizontal scrolling. */
html body .app-shell #workspace #asset-dashboard>.asset-cards-viewport{max-width:calc(100% + 2px);min-width:0;overflow:clip!important;overscroll-behavior-x:auto}
html body .app-shell #workspace #asset-dashboard .asset-cards-viewport>#dash-cards.asset-grid{min-width:var(--canvas-card-min-width,1630px)!important;grid-auto-flow:column;grid-template-rows:auto auto;}
html body .app-shell #workspace #asset-dashboard #dash-cards>.asset-card{grid-row:2;}
html body .app-shell #workspace #asset-dashboard #dash-cards>.c5a-card-help{grid-row:1;}
html body .app-shell #workspace #asset-dashboard #dash-cards.asset-grid{--card-heading-track:28px;}
html body .app-shell [data-ui-text-rule="singleline"][data-ui-nowrap]{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
