/* Product-wide readability and interaction contract. No metric or workflow changes. */

:root{--ui-font: "Segoe UI","PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;--ui-ink:#182638;--ui-muted:#627187;--ui-line:#e3e8ef;--ui-accent:#315fe9;--ui-surface:#f6f8fb;font-family:var(--ui-font);font-synthesis:none}

body{font-family:var(--ui-font);color:var(--ui-ink);font-size:14px;line-height:1.6;background:var(--ui-surface)}

button,input,select,textarea{font-family:var(--ui-font);font-size:inherit}button,a,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}

.customer-view{font-family:var(--ui-font);font-size:14px;--ds-ink:var(--ui-ink);--ds-muted:var(--ui-muted);--ds-space:20px;--ds-gutter:24px;--ds-border:var(--ui-line);--ds-radius:10px}

.customer-view .main{max-width:1600px;padding:24px 28px 40px;min-width:0}

/* The cockpit has only the primary rail: use its full available canvas. */

.customer-view:has(.cockpit-v2) .main{width:100%;max-width:none;margin-inline:0;padding-inline:24px}

.customer-view:has(.cockpit-v2) .topbar{padding-inline:24px}

@media(max-width:700px){.customer-view:has(.cockpit-v2) .shell{margin-left:64px!important}.customer-view:has(.cockpit-v2) .main,.customer-view:has(.cockpit-v2) .topbar{padding-inline:12px}}

.customer-view .topbar{height:72px;padding-inline:28px}.customer-view .topbar h1{font-size:26px;font-weight:600;letter-spacing:-.4px}.customer-view .topbar .workspace-heading{min-width:0}.customer-view .topbar h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.customer-view .rail-link{font-size:13px;line-height:1.4;min-height:64px}.customer-view .subnav .sub-link{font-size:14px;min-height:42px}.customer-view .nav-label{font-size:13px}.customer-view .nav-note{font-size:13px}

.customer-view .real-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;min-width:0}.customer-view .real-filters .filter-item{height:40px;min-width:0;max-width:100%;font-size:13px;display:flex;align-items:center;gap:10px;padding:0 12px}.customer-view .real-filters select{min-width:0;max-width:100%;flex:1;text-overflow:ellipsis}.customer-view .real-filters .scope-count{font-size:13px;margin-left:auto;white-space:normal}.customer-view .real-filters .btn{min-height:40px;flex-shrink:0}

.customer-view .ds-section-tabs{gap:6px;margin-bottom:20px;padding-bottom:12px}.customer-view .ds-section-tabs a{font-size:14px;padding:8px 14px;min-height:38px}

.customer-view .customer-dashboard,.customer-view .cockpit-v2{font-family:var(--ui-font);font-size:14px;line-height:1.6;min-width:0}

.customer-view :is(.cap-panel,.cd-panel,.cock-hero){border-color:var(--ui-line);border-radius:10px;box-shadow:0 1px 2px #17283c04}

.customer-view :is(.cap-panel,.cd-panel)>header{min-height:58px;padding:16px 24px;gap:12px;flex-wrap:wrap}.customer-view :is(.cap-panel,.cd-panel)>header h2{font-size:20px;font-weight:600;line-height:1.45;letter-spacing:-.15px}.customer-view :is(.cap-panel,.cd-panel)>header a{font-size:13px;flex-shrink:0}

.customer-view :is(.table-wrap,.cap-table,.cd-table){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}

.customer-view table{font-size:14px;line-height:1.6}.customer-view table th{font-size:13px;font-weight:600;color:var(--ui-muted);padding:12px 16px;background:#f7f9fc;white-space:nowrap}.customer-view table td{font-size:14px;padding:14px 16px;vertical-align:top;overflow-wrap:anywhere}.customer-view table td small{font-size:13px;line-height:1.5}.customer-view tbody tr:hover{background:#f8faff}

.customer-view table button.link{font-size:13px;line-height:1.5;min-height:32px;padding:4px 0;white-space:normal;text-align:left}.customer-view .ds-platform-table{min-width:850px}.customer-view .answer-evidence table{min-width:780px}

.customer-view .ae-order{min-width:180px;gap:6px}.customer-view .ae-order>span{font-size:13px;line-height:1.55;padding:4px 8px}.customer-view .ae-text{font-family:var(--ui-font);font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}

.customer-view :is(.cd-note,.cap-note,.cap-scope,.ds-data-caption){font-size:13px;line-height:1.65;color:var(--ui-muted)}

.customer-view :is(.cock-hero,.platform-evidence-metrics,.cd-kpis,.cap-metrics) strong{font-variant-numeric:tabular-nums}.customer-view .cock-hero small{font-size:13px}.customer-view .cock-hero header{padding:18px 24px}.customer-view .cap-media button{font-size:13px;min-height:36px}.customer-view .cap-legend span{font-size:13px}

/* Reading evidence never stretches the page or hides its close control. */

#overlay{position:relative;z-index:100}.overlay-backdrop{z-index:100}

.drawer,.modal{font-family:var(--ui-font);font-size:14px;color:var(--ui-ink);line-height:1.7;max-width:100vw;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden}

.drawer{width:min(960px,94vw)}.drawer-head,.modal-head{flex:none;padding:20px 24px;min-height:78px;gap:20px;align-items:flex-start;border-bottom:1px solid var(--ui-line);background:white;z-index:1}.drawer-head h2,.modal-head h2{font-size:21px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}.drawer-head .icon-btn,.modal-head .icon-btn{flex:0 0 36px;min-width:36px;height:36px;border-radius:6px;background:#f3f5f8}.drawer-head small{font-size:13px;color:var(--ui-muted)}

.drawer-body,.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px;overflow-wrap:anywhere}.drawer-footer,.modal-footer{flex:none;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding:16px 24px;background:#fff;border-top:1px solid var(--ui-line)}

.drawer-body :is(table,pre){max-width:100%}.drawer-body .table-wrap{overflow-x:auto}.drawer-body table{min-width:600px}.drawer-body .detail-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.drawer-body .real-answer{font-family:var(--ui-font);font-size:16px;line-height:1.85;white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere;max-height:500px;overflow:auto;background:#f8fafc;border:1px solid var(--ui-line);border-radius:8px;padding:16px}

.capture-card{min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--ui-line);border-radius:10px;margin-bottom:20px}.capture-card header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:16px 20px}.capture-card h3{font-size:16px;line-height:1.7;margin:16px 20px}.capture-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 16px}.capture-actions .btn{min-height:36px;font-size:13px}.capture-original{overflow:auto;background:#eef1f6;padding:12px}.capture-original img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.capture-caption,.capture-audit{font-size:13px;line-height:1.7;padding:12px 20px;color:var(--ui-muted)}.capture-audit summary,.capture-transcript summary{cursor:pointer;min-height:32px;padding-block:6px}.capture-audit p{overflow-wrap:anywhere}

/* Admin and customer workspaces use the same type and spacing scale. */

body:has(header.top){font-family:var(--ui-font)}header.top{gap:16px;min-height:72px}header.top #project-select{min-width:0;max-width:340px}.layout>main{min-width:0}.layout .table-wrap{max-width:100%}.layout .panel>header h2{font-size:20px}.layout td{font-size:14px}.layout aside a{min-height:40px}.layout .actions{flex-wrap:wrap}.layout .doc{font-family:var(--ui-font);font-size:15px;line-height:1.9;max-width:85ch}

dialog{max-height:90dvh;overflow:auto}dialog header{position:sticky;top:0;background:#fff;z-index:2}dialog header button{min-width:36px;min-height:36px}dialog .detail{overflow-wrap:anywhere}dialog table{min-width:600px}dialog .table-wrap{max-width:100%;overflow:auto}

@media(max-width:1100px){.customer-view .main{padding:20px}.customer-view .real-filters .filter-item{flex:1 1 220px}.customer-view .real-filters .scope-count{flex-basis:100%;margin:0}.customer-view :is(.cap-grid-main,.cd-grid){grid-template-columns:minmax(0,1fr)}.customer-view .topbar{padding-inline:20px}header.top{flex-wrap:wrap}}

@media(max-width:700px){.customer-view{--rail:64px;--nav:0px;--ds-gutter:16px}.customer-view .rail{width:64px}.customer-view .rail-link{font-size:13px;min-height:60px}.customer-view .rail-items{padding-inline:3px}.customer-view .shell{margin-left:64px;min-width:0}.customer-view .main{padding:16px 12px;max-width:100%}.customer-view .topbar{padding:12px;height:auto;min-height:64px;gap:8px}.customer-view .topbar h1{font-size:19px}.customer-view .brand-selector{display:none}.customer-view .heading-divider{display:none}.customer-view .top-actions{gap:6px}.customer-view .subnav.mobile-open{left:64px;width:min(240px,calc(100vw - 64px));--nav:240px;box-shadow:10px 0 30px #18263820}.customer-view .real-filters .filter-item{flex:1 1 100%;width:100%;height:42px;min-width:0}.customer-view .real-filters .scope-count{font-size:13px}.customer-view :is(.cap-panel,.cd-panel)>header{padding:14px 16px}.customer-view :is(.cap-panel,.cd-panel)>header h2{font-size:16px}.customer-view .ds-section-tabs{gap:2px}.customer-view .ds-section-tabs a{font-size:13px;padding:8px 10px}.customer-view .cap-media>div{grid-template-columns:16px 90px minmax(20px,1fr) 32px;gap:6px}.drawer{width:100vw}.drawer-head,.modal-head{padding:16px}.drawer-body,.modal-body{padding:16px}.drawer-head h2,.modal-head h2{font-size:18px}.capture-actions{padding-inline:12px}.capture-card header{padding:12px}.capture-card h3{margin:12px}.drawer-footer,.modal-footer{padding:12px 16px}.customer-view .cock-hero small{font-size:13px}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}



/* Resolve legacy density overrides at the component boundary. */

.customer-view .customer-dashboard:not(:has(.cockpit-v2)) table td{font-size:14px;padding-block:14px;line-height:1.65}

.customer-view .customer-dashboard:not(:has(.cockpit-v2)) table th{font-size:13px;padding-block:12px}

.customer-view .customer-dashboard:not(:has(.cockpit-v2)) table td small{font-size:13px}

.customer-view .customer-dashboard:not(:has(.cockpit-v2)) :is(.cd-panel,.cap-panel)>header h2{font-size:20px}

.customer-view .cock-hero h2{font-size:20px}.customer-view .cock-hero>header>span{font-size:13px}.customer-view .cock-hero-fraction{font-size:13px;line-height:1.7}.customer-view .cock-hero-value{height:auto;min-height:56px}.customer-view .cock-hero-label{font-size:15px}

.drawer-body p{font-size:16px;line-height:1.85;color:#46566b}.drawer-body h3{font-size:16px;color:#24364d;line-height:1.5}.drawer-body small{font-size:13px;color:#65758c}.capture-original{max-height:60dvh;overscroll-behavior:contain}

@media(max-width:700px){.customer-view .customer-dashboard:not(:has(.cockpit-v2)) table td{font-size:13px}.customer-view .table-wrap:has(table),.customer-view .cap-table:has(table){border-bottom:3px solid #e6edf7}.customer-view .real-filters .filter-item{flex-basis:100%!important;max-width:100%!important}}



.capture-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#f5f7fb;border-top:1px solid var(--ui-line)}.capture-tools span{font-size:13px;color:var(--ui-muted)}.capture-tools .btn{min-height:34px;font-size:13px}.capture-zoomed .capture-original img{width:auto;max-width:none;height:auto}.capture-original img{transition:none}

@media(max-width:700px){.customer-view .drawer{width:100vw;max-width:100vw}.capture-tools{gap:6px}.capture-tools span{font-size:13px}}





/* Preserve the SVG aspect ratio so the plot fills the card without letterboxing. */

.customer-dashboard .cd-source-trend svg{width:100%;height:auto;max-height:none}

.cockpit-v2 .cock-plot{max-width:none;min-width:0}

.customer-dashboard .ds-platform-trend svg{width:100%;height:auto;max-height:none}



/* Typography roles: vivid metric/platform/link colors deliberately unchanged. */

.customer-view{--ui-caption:#526176}

.customer-view .cock-hero-label{font-size:15px;font-weight:600}

.customer-view .cock-hero-value strong,.customer-view .cock-hero-metric.primary .cock-hero-value strong{font-size:40px;font-weight:700}

.customer-view .cock-hero-value{min-height:60px}

.customer-view .cock-hero-fraction,.customer-view .cock-hero-fraction b{font-size:13px}

.customer-view .cock-day-platforms>div{font-size:14px;grid-template-columns:100px minmax(24px,1fr) 60px;gap:12px;min-height:34px}

.customer-view .cock-day-platforms b{font-size:15px;font-weight:600}

.customer-view .cock-hero-support span{font-size:14px}

.customer-view .cock-hero-support strong,.customer-view .cock-rank-summary strong,.customer-view .cock-trend-summary strong,.customer-view .cock-source-side .cock-stats strong{font-size:28px;font-weight:700}

.customer-view .cockpit-v2 :is(.cock-note,.cock-trend-summary small,.cock-rank-summary span,.cock-stats small,.cock-hero-support small){font-size:13px;color:var(--ui-caption)}

.customer-view .cock-hero>header>span,.customer-view .real-filters .scope-count{color:var(--ui-caption)}

.customer-view .cockpit-v2 :is(.cap-panel>header h2,.cock-section h2),.customer-view .cock-hero h2{font-size:20px;font-weight:600;line-height:1.4}

.customer-view .cock-subtitle h3{font-size:16px;font-weight:600}

.customer-view .cockpit-v2 .cap-ranks :is(b,strong){font-size:15px}

.customer-view .cockpit-v2 .cap-ranks>div{min-height:54px}

.customer-view .cockpit-v2 .cap-table :is(td,th){font-size:14px;line-height:1.65;padding:14px 16px}

.customer-view .cock-matrix-value b{font-size:15px;font-weight:600}

.customer-view .cockpit-v2 .cap-table .cock-matrix-value small{font-size:13px}

.customer-view .customer-dashboard .cd-bar-row button,.customer-view .customer-dashboard .cd-bar-row a{font-size:15px;line-height:1.65;text-align:left;white-space:normal}

.customer-view .customer-dashboard .cd-bars>div:not(.cd-bar-row){font-size:14px}

.customer-view .customer-dashboard .cd-bars>div:not(.cd-bar-row) strong,.customer-view .ds-percent>b{font-size:16px;font-weight:600}

.customer-view .cap-media button,.customer-view .cockpit-v2 .cap-media button{font-size:14px;line-height:1.6}

.customer-view .cap-legend,.customer-view .cockpit-v2 .cap-legend,.customer-view .ds-chart-legend{font-size:13px;line-height:1.6}

.customer-view table td small{font-size:13px}

.customer-view table button.link,.customer-view .cap-panel>header a,.customer-view .cd-panel>header a{font-size:14px;min-height:32px}

.customer-view .bk-chapter p,.customer-view .bk-tone blockquote{font-size:16px;line-height:1.85;max-width:920px}

.customer-view .bk-chapter h3{font-size:18px;font-weight:600}

.customer-view .bk-source,.customer-view .bk-original small{font-size:13px;color:var(--ui-caption)}

.customer-view .real-filters .filter-item,.customer-view .cock-tabs span{font-size:14px}

.customer-view .cock-hero-support a,.customer-view .cock-subtitle a{font-size:14px}

.customer-view .rail-link{font-size:13px;line-height:1.45}

.layout :is(td,button,input,select){font-size:14px}

.layout .doc{font-size:16px;line-height:1.85}

@media(max-width:700px){

 .customer-view .topbar h1{font-size:21px}

 .customer-view .rail-link{font-size:12px}

 .customer-view .customer-dashboard:not(:has(.cockpit-v2)) table td{font-size:14px}

 .customer-view .cock-hero-grid{grid-template-columns:1fr}

 .customer-view .cock-hero-support>div{display:flex;flex-direction:column;align-items:flex-start}

 .customer-view .cock-hero>header{flex-wrap:wrap}

 .customer-view .cock-hero>header>span{max-width:none}

 .customer-view .cock-tabs span{padding:8px;font-size:13px}

 .customer-view .cock-rank-summary{flex-wrap:wrap}

}

/* Asset summaries preserve the vivid palette while keeping long material on demand. */

.customer-view .asset-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}

.customer-view .asset-overview>div{display:flex;flex-direction:column;gap:10px;min-width:0}

.customer-view .asset-overview strong{font-size:26px;color:#345bff}

.customer-view .asset-overview small{font-size:13px;overflow-wrap:anywhere}

.customer-view .asset-document summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;color:#345bff;font-size:16px}

.customer-view .asset-document summary span{font-size:13px}

.customer-view .asset-document[open] summary{margin-bottom:20px}

@media(max-width:700px){.customer-view .asset-overview{grid-template-columns:1fr}.customer-view .asset-document summary{flex-wrap:wrap}}

.ib-toolbar{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px}

.ib-toolbar button,#inline-brand-editor button{border:1px solid #dce4f4;border-radius:7px;padding:9px 14px;background:#eef2ff;color:#345bff;font:600 14px inherit;cursor:pointer}

#inline-brand-editor{width:min(860px,calc(100vw - 32px));max-height:88dvh;padding:0;border:1px solid #dce4f4;border-radius:14px;color:#20334b;overflow:auto}

#inline-brand-editor::backdrop{background:#16264166}

#inline-brand-editor header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #e4eaf4;gap:16px}

#inline-brand-editor h2{font-size:20px;margin:0}

#inline-brand-editor .ib-body{padding:22px}

#inline-brand-editor form,#inline-brand-editor label{display:flex;flex-direction:column;gap:10px}

#inline-brand-editor form{gap:18px}

#inline-brand-editor :is(input,textarea,select){width:100%;box-sizing:border-box;border:1px solid #ccd7e7;border-radius:7px;padding:10px;font-size:15px;font-family:inherit}

#inline-brand-editor .ib-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin-top:20px}

#inline-brand-editor article{padding:16px;border:1px solid #e0e7f1;border-radius:10px;min-width:0}

#inline-brand-editor article small{display:block;color:#526176;margin:8px 0}

#inline-brand-editor article p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}

#inline-brand-editor article img{width:100%;height:150px;object-fit:contain;display:block;margin-bottom:12px}

#inline-brand-editor .ib-error{color:#bf3152;white-space:pre-wrap}

/* One customer shell: readable business navigation and in-page asset management. */

.customer-view .rail{background:#fff;border-right:1px solid #e5e9f2}

.customer-view .rail-word{display:none}

.customer-view .subnav{background:#fafbfe;border-right:1px solid #e5e9f2}

.customer-view .subnav .brand-word{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;height:96px;padding:20px;letter-spacing:0}

.customer-view .subnav .brand-word small{border:0;padding:0;color:#758099;font-size:12px;letter-spacing:.3px}

.customer-view .subnav .brand-word strong{font-size:18px;line-height:1.4;color:#182940}

.customer-view .subnav-scroll{padding:6px 12px 20px}

.customer-view .subnav .nav-label{margin:12px 10px;color:#8791a5;font-size:12px}

.customer-view .subnav .sub-link{width:auto;min-height:44px;margin:5px 0;padding:10px 12px;gap:10px;border-radius:8px;font-size:14px;line-height:1.5;color:#536079;position:relative}

.customer-view .subnav .sub-link .dot{display:none}

.customer-view .subnav .sub-link.active{color:#6546ff;background:#ede9ff;font-weight:600;box-shadow:inset 3px 0 #7554ff}

.customer-view .subnav .sub-link.active::before{display:none}

.customer-view .subnav .sub-link:hover:not(.active){background:#f0f3fa;color:#243b68}

.customer-view .nav-note{padding:16px 20px;font-size:12px;color:#7a8599;line-height:1.8}

@media(min-width:1101px){

 .customer-view{--rail:176px;--nav:184px}

 .customer-view .rail{width:176px;align-items:stretch}

 .customer-view .rail .logo{height:82px;min-height:82px;display:flex;justify-content:flex-start;padding:0 17px;gap:10px}

 .customer-view .rail .logo-mark{width:32px;height:32px;border-radius:9px;box-shadow:none;background:#28233f}

 .customer-view .rail-word{display:flex;align-items:baseline;gap:4px;white-space:nowrap;font-size:17px;font-weight:700;color:#17273e}

 .customer-view .rail-word small{font-size:10px;letter-spacing:.5px;color:#7656ff}

 .customer-view .rail-items{padding:8px 10px;scrollbar-width:thin}

 .customer-view .rail-link{flex-direction:row;justify-content:flex-start;width:auto;height:auto;min-height:47px;margin:0 0 6px;padding:11px 13px;gap:11px;border-radius:9px;color:#5d6880;font-weight:500}

 .customer-view .rail-link span{font-size:14px;white-space:nowrap;line-height:1.5}

 .customer-view .rail-link svg{width:19px;height:19px;stroke-width:1.7}

 .customer-view .rail-link.active{background:#ede9ff;color:#6743ff;font-weight:600}

 .customer-view .rail-link:hover:not(.active){background:#f3f5fa;color:#253b64}

 .customer-view .rail-bottom{padding:12px 10px}

 .customer-view .rail-bottom .rail-link{width:auto;min-height:42px;margin:0}

 .customer-view .rail-bottom .avatar{display:none}

 .customer-view .subnav{left:176px;width:184px}

 .customer-view .shell{margin-left:360px}

 .customer-view:has(.cockpit-v2) .shell{margin-left:176px}

}

@media(min-width:701px) and (max-width:1100px){

 .customer-view .rail{width:82px}

 .customer-view .rail-link{width:72px;margin:0 auto 5px;min-height:64px}

 .customer-view .rail-link span{white-space:normal;font-size:12px;text-align:center}

 .customer-view .subnav{left:82px;width:178px}

 .customer-view .shell{margin-left:260px}

 .customer-view:has(.cockpit-v2) .shell{margin-left:82px}

}

@media(max-width:700px){.customer-view .rail-link span{white-space:normal;line-height:1.4}.customer-view .subnav .brand-word{height:86px}.customer-view .subnav.mobile-open{display:flex}}

#inline-brand-content{margin-bottom:20px;overflow:hidden}

#inline-brand-content>header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #e4eaf4}

#inline-brand-content h2{font-size:20px;margin:0}

#inline-brand-content .ib-body{padding:22px}

#inline-brand-content button{padding:8px 14px;border:1px solid #dce4f4;border-radius:7px;background:#eef2ff;color:#345bff;cursor:pointer;font-size:14px}

#inline-brand-content .ib-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px}

#inline-brand-content article{padding:18px;border:1px solid #e2e8f2;border-radius:10px;min-width:0}

#inline-brand-content article small{display:block;color:#65758d;margin:10px 0;font-size:13px}

#inline-brand-content article img{width:100%;height:180px;object-fit:contain;margin-bottom:14px}

#inline-brand-content article p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px}

#inline-brand-content article details{margin-top:14px}

#inline-brand-content .ib-status{color:#345bff}

.period-dates input{min-width:0;max-width:145px;font:inherit;color:inherit;border:0;background:transparent}.period-comparison>p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.period-comparison>p>b{color:#3569f5}.period-comparison>p>span{color:#5f6f8c}.real-filters{flex-wrap:wrap}.period-dates{gap:6px}

/* Scoped reputation workbench: preserve global navigation and strong palette. */
.reputation-workbench{display:grid;gap:20px;color:#172b48}.rw-context{display:flex;justify-content:space-between;gap:16px;align-items:center}.rw-context b{font-size:22px;margin-right:16px}.rw-context span{color:#586c86}.rw-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.rw-stats>div{padding:22px;background:white;border:1px solid #dfe6f1;border-top:4px solid var(--tone);border-radius:12px;min-width:0}.rw-stats strong{display:block;color:var(--tone);font-size:34px;margin:12px 0}.rw-stats small{display:block;color:#566980;line-height:1.6;min-height:44px}.rw-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start}.rw-panel{min-width:0;margin:0!important;overflow:hidden}.rw-panel>svg{display:block;width:calc(100% - 40px);margin:20px;height:auto}.rw-panel svg text{font-size:12px;fill:#5d708c}.rw-panel .period-comparison{padding:20px}.rw-legend{display:flex;flex-wrap:wrap;gap:14px;padding:20px;font-size:14px}.rw-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.rw-donut{width:180px;height:180px;border-radius:50%;margin:24px auto;display:grid;place-items:center}.rw-donut>div{background:white;border-radius:50%;width:130px;height:130px;display:grid;align-content:center;text-align:center}.rw-donut strong{font-size:32px}.rw-donut span{color:#5d708c}.rw-drill{border-top:1px solid #e6ebf4;padding:14px 20px;min-width:0}.rw-drill summary{cursor:pointer;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.rw-drill summary>span{display:block;color:#3569f5;font-size:12px}.rw-drill[open]{background:#f6f8fe}.rw-drill>div{max-height:520px;overflow:auto}.rw-stats .rw-drill{padding:12px 0 0;margin-top:10px}.rw-evidence{padding:14px 0;border-bottom:1px solid #dfe6f1;font-size:14px;overflow-wrap:anywhere}.rw-evidence>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.rw-evidence span,.rw-evidence p{color:#60718a}.rw-evidence blockquote{margin:12px 0;padding:10px 14px;border-left:3px solid #3569ff;background:white;line-height:1.8}.rw-platform{padding:18px 20px;border-top:1px solid #e6ebf4}.rw-platform>span{float:right;font-size:13px}.rw-stack{display:flex;height:10px;background:#edf1f7;border-radius:5px;overflow:hidden;margin:14px 0}.rw-platform .rw-drill{padding:8px 0 0}.period-compare-control{white-space:nowrap;font-size:14px;color:#34537b}.rw-panel .cd-note{line-height:1.7}.rw-context a{color:#3569ff}
@media(max-width:1100px){.rw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rw-main{grid-template-columns:1fr}}@media(max-width:600px){.rw-stats{grid-template-columns:1fr}.rw-context{align-items:start;flex-direction:column}.rw-context span{display:block;margin-top:8px}}

.rw-range-shortcuts{display:flex;gap:8px;margin:0 0 12px}.rw-range-shortcuts button{border:1px solid #d9e2f1;border-radius:8px;background:white;padding:9px 16px;color:#334765;cursor:pointer;font-weight:600}.rw-range-shortcuts button[aria-pressed=true]{border-color:#2864ff;background:#edf3ff;color:#205bfa}

/* Project first; analytical controls stay on the right. */
.rw-project-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 22px}.rw-project-heading{flex:0 0 170px;padding-top:8px;display:grid;gap:8px}.rw-project-heading strong{font-size:22px;color:#172b48}.rw-project-heading span{color:#61748e;font-size:14px}.rw-project-heading a{font-size:13px;color:#2864ff}.rw-toolbar-controls{flex:0 1 1120px;min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.rw-toolbar-controls .rw-range-shortcuts{justify-content:flex-end;margin:0;width:100%}.rw-toolbar-controls .rw-right-filters{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;width:100%;margin:0;padding:0;min-height:0}.rw-toolbar-controls .filter-item{flex:0 1 auto!important;min-width:0!important;width:auto!important;max-width:240px;padding:8px 10px}.rw-toolbar-controls .filter-item select{min-width:0!important;width:auto!important;max-width:175px}.rw-toolbar-controls .scope-count{flex-basis:100%;text-align:right;margin:0;font-size:12px}.rw-toolbar-controls .period-compare-control{align-self:center}.rw-toolbar-controls .period-dates{max-width:none}.rw-toolbar-controls .rw-range-shortcuts button{padding:8px 13px}
@media(min-width:1700px){.rw-toolbar-controls{flex-basis:1300px}.rw-toolbar-controls .rw-range-shortcuts{width:auto;align-self:flex-start}.rw-toolbar-controls .rw-right-filters{width:auto;flex:1}.rw-toolbar-controls .filter-item{max-width:205px}.rw-toolbar-controls .filter-item select{max-width:140px}}
@media(max-width:760px){.rw-project-toolbar{flex-direction:column;gap:14px}.rw-project-heading{flex-basis:auto}.rw-toolbar-controls{flex-basis:auto;width:100%}.rw-toolbar-controls .rw-range-shortcuts{flex-wrap:wrap}.rw-toolbar-controls .filter-item{max-width:100%}}

.rw-toolbar-controls .rw-range-shortcuts{width:auto;flex:0 0 auto;gap:6px}.rw-toolbar-controls .rw-right-filters{display:contents!important}.rw-toolbar-controls .rw-right-filters>.filter-item{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:210px!important}.rw-toolbar-controls .rw-right-filters>.filter-item select{width:auto!important;min-width:0!important;max-width:145px!important}.rw-toolbar-controls .scope-count{width:100%;flex-basis:100%;height:18px}.rw-toolbar-controls{align-items:center}.rw-toolbar-controls .advanced-filters{margin:0}.rw-toolbar-controls .rw-right-filters>.period-dates{max-width:100%!important}

.brand-consistency-view{display:grid;gap:20px;color:#172b48}.bc-intro{display:flex;justify-content:space-between;gap:20px;align-items:center}.bc-intro h2{font-size:19px;margin:0 0 8px}.bc-intro p{font-size:14px;color:#5d7089;margin:0;line-height:1.7}.bc-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bc-metrics article{background:white;border:1px solid #dce5f2;border-top:3px solid #2463ff;border-radius:12px;padding:20px;min-width:0}.bc-metrics article:nth-child(2){border-top-color:#f23e63}.bc-metrics article:nth-child(3){border-top-color:#f29a15}.bc-metrics strong{display:block;font-size:30px;color:#2463ff;margin:14px 0}.bc-metrics article:nth-child(2) strong{color:#f23e63}.bc-metrics article:nth-child(3) strong{color:#d98400}.bc-metrics small{display:block;color:#5d7089;line-height:1.7}.bc-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bc-panel{margin:0!important;min-width:0}.bc-status-bar{display:flex;height:14px;margin:24px;background:#edf1f7;border-radius:7px;overflow:hidden}.bc-status-list{display:grid;gap:14px;margin:24px}.bc-status-list span{display:flex;gap:9px;align-items:center}.bc-status-list i{height:9px;width:9px;border-radius:50%}.bc-status-list b{margin-left:auto}.bc-next{padding:24px;line-height:1.8}.bc-next p{color:#5d7089}.bc-next a{display:inline-block;margin-right:18px}.bc-group{border-top:1px solid #dfe6f2}.bc-group summary{padding:18px 24px;cursor:pointer;font-weight:600}.bc-group summary span{float:right;color:#5d7089}.bc-proof{padding:20px 24px;border-top:1px solid #e8edf5}.bc-proof-heading{display:flex;gap:16px;align-items:start}.bc-proof-heading b{flex-shrink:0;color:#2463ff}.bc-proof-heading span{color:#5d7089;font-size:14px}.bc-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.bc-pair>div{background:#f5f8ff;padding:18px;border-radius:8px;min-width:0;overflow-wrap:anywhere}.bc-pair small{color:#5d7089}.bc-pair p{line-height:1.8;margin:10px 0 0}.bc-proof button{font-size:14px}
@media(max-width:1100px){.bc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.bc-summary,.bc-pair,.bc-metrics{grid-template-columns:1fr}.bc-intro{align-items:start;flex-direction:column}.bc-proof-heading{flex-direction:column}}

/* Content-only SaaS polish: stable shell, aligned data tables, inline evidence. */
.expression-overview{display:grid;gap:20px;min-width:0}.expression-overview .cd-panel{margin:0!important;min-width:0}.ops-table{width:100%;border-collapse:collapse;font-size:14px;color:#203653;table-layout:fixed}.ops-table th,.ops-table td{padding:18px 20px;text-align:left;border-bottom:1px solid #e5ebf4;vertical-align:top;line-height:1.65;overflow-wrap:anywhere}.ops-table thead th{background:#f5f8fd;color:#536780;font-size:13px;font-weight:600}.ops-table tbody th{font-weight:600}.ops-table tbody tr:hover{background:#fafbff}.ops-table p{margin:8px 0;color:#51647e;line-height:1.75}.ops-table small{display:block;font-size:12px;color:#5c708b;margin-top:8px}.ops-table strong{color:#2864ff;font-size:21px;font-variant-numeric:tabular-nums}.ops-bar{height:7px;background:#edf1f7;border-radius:4px;overflow:hidden;margin:10px 0;min-width:70px}.ops-bar>i{display:block;height:100%;background:#3569ff;border-radius:4px}.ops-status{display:inline-block;color:var(--status);font-size:13px;font-weight:600;white-space:nowrap}.ops-status:before{content:'';display:inline-block;background:var(--status);width:7px;height:7px;border-radius:50%;margin-right:7px}.expression-table th:first-child{width:37%}.expression-table th:nth-child(2){width:19%}.expression-table th:nth-child(3){width:24%}.expression-table th:nth-child(4){width:20%}.ops-table .rw-drill{padding:0;border:0}.ops-table .rw-drill summary,.ops-evidence summary{cursor:pointer;color:#2864ff;font-size:13px;line-height:1.8}.ops-table .rw-drill>div,.ops-evidence>div{max-height:390px;overflow:auto;margin-top:12px;background:#f6f8fe;border-radius:8px;padding:12px}.ops-evidence .ex-quote{padding:12px 0;border-bottom:1px solid #dce5f2;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.ops-evidence .ex-quote button{font-size:13px}.ops-distribution{padding:20px 24px}.ops-distribution>div{display:grid;grid-template-columns:70px minmax(0,1fr) 58px 45px;align-items:center;gap:12px;padding:14px 0}.ops-distribution>div>span{font-size:14px}.ops-distribution>div>span>i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px}.ops-distribution b{text-align:right;font-size:15px;font-variant-numeric:tabular-nums}.ops-distribution small{text-align:right;color:#60738d;font-size:12px}.ops-distribution .ops-bar{margin:0}.reputation-workbench .rw-stats>div{padding:20px}.reputation-workbench .rw-stats small{min-height:40px}.rw-cohort{font-size:12px;line-height:1.7;color:#526987;background:#f3f6fd;padding:8px;border-radius:6px}.rw-platform-section .rw-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rw-platform-section .rw-panel>header{grid-column:1/-1}.ex-matrix{min-width:750px}.ex-matrix th:first-child{width:180px}.ex-matrix td,.ex-matrix th{padding:16px}.ex-matrix summary{list-style:none}.ex-matrix summary b{font-size:15px;color:#2864ff}.bc-fact-audit{border:1px solid #dfe6f1;border-radius:12px;padding:20px;background:white}.bc-fact-audit>summary{cursor:pointer;font-size:17px;font-weight:600}.bc-fact-audit>summary span{font-size:13px;font-weight:400;color:#60738d;margin-left:12px}.bc-fact-audit[open]>.bc-metrics,.bc-fact-audit[open]>.bc-summary,.bc-fact-audit[open]>.cd-panel{margin-top:20px!important}.expression-overview .table-wrap{max-width:100%;overflow-x:auto}.expression-table{min-width:800px}.ops-table .rw-evidence>div{display:block}.ops-table .rw-evidence>div span{display:block}.rw-panel>header,.bc-panel>header,.expression-overview .cd-panel>header{align-items:center}
@media(max-width:700px){.rw-platform-section .rw-panel{grid-template-columns:1fr}.ops-table{min-width:650px}.ops-distribution{padding:16px}.ops-distribution>div{grid-template-columns:60px minmax(0,1fr) 50px 35px;gap:7px}.reputation-workbench .table-wrap{overflow-x:auto;max-width:100%}}


/* Header v4: reversible horizontal project and keyword context. */
.header-v4.customer-view .subnav{display:none!important}
.header-v4.customer-view .shell{margin-left:var(--rail)!important;min-width:0}
.header-v4 .topbar{position:relative;display:flex;gap:20px;padding:18px 28px;min-height:78px;height:auto;z-index:30;overflow:visible}
.header-v4 .topbar.with-scope{display:grid;grid-template-columns:auto minmax(240px,1fr) auto auto;align-items:center}
.header-v4 .workspace-heading{min-width:0}.header-v4 .workspace-heading .mobile-menu{display:none}
.header-v4 .header-screenreader{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}
.header-v4.customer-view .brand-selector{display:flex;padding:0;white-space:nowrap}.header-v4 .brand-selector strong{display:inline}.header-v4 .top-actions{gap:10px;margin-left:auto}
.header-v4 .search-launch{width:32px!important;min-width:32px;font-size:0;padding:8px}.header-v4 .search-launch .kbd{display:none}
.header-v4 .context-row{display:flex;align-items:center;gap:16px;padding:0 28px;min-height:58px;background:#fff;border-bottom:1px solid #e4e9f3;position:relative;z-index:20;flex-wrap:wrap}
.header-v4 .context-tabs{display:flex;align-items:stretch;gap:22px;flex:1;min-width:0;overflow-x:auto}
.header-v4 .context-tabs .sub-link{display:flex;align-items:center;flex-shrink:0;width:auto;margin:0;padding:17px 0;border-radius:0;background:transparent;font-size:15px;border-bottom:3px solid transparent}
.header-v4 .context-tabs .sub-link.active{color:#6546ff;border-bottom-color:#7657ff;font-weight:700}
.header-v4 .context-tabs .sub-link:before,.header-v4 .context-tabs .dot{display:none}
.header-v4 .main{padding:24px 28px!important;max-width:none!important;width:auto!important;margin:0!important}
.header-v4 .header-period,.header-v4 .header-platform{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px;width:auto;min-width:0;font-size:12px;white-space:nowrap;color:#6b7891;background:#fff;border:1px solid #dce3ef;border-radius:8px}
.header-v4 .header-period select,.header-v4 .header-platform select{max-width:170px;width:auto;font-size:13px;color:#263d62;border:0;background:transparent}
.header-v4 .scope-count{font-size:12px;white-space:nowrap;margin:0;color:#6b7891}
.header-v4 .keyword-picker{position:relative;min-width:0;max-width:660px}
.header-v4 .keyword-picker summary{display:flex;gap:14px;align-items:center;cursor:pointer;border:1px solid #cfd8ed;border-radius:8px;padding:10px 14px;background:#f9faff;list-style:none;font-size:13px}
.header-v4 .keyword-picker summary strong{color:#23385c;font-size:14px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-v4 .keyword-picker summary>span:first-child{color:#697995}
.header-v4 .keyword-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:80;width:min(620px,calc(100vw - 110px));max-width:none;padding:16px;background:#fff;border:1px solid #dce3ef;border-radius:12px;box-shadow:0 12px 35px #142e5726}
.header-v4 .keyword-popover input[type=search]{width:100%;padding:10px 12px;border:1px solid #dce3ef;border-radius:6px;font:inherit}
.header-v4 .keyword-options{max-height:320px;overflow:auto;margin:10px 0}
.header-v4 .keyword-options label{display:flex;align-items:flex-start;gap:10px;padding:10px 4px;font-size:14px;line-height:1.6;color:#263d62;cursor:pointer}
.header-v4 .keyword-options label[hidden]{display:none}.header-v4 .keyword-options input{margin-top:5px;accent-color:#7657ff}
.header-v4 .keyword-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f7;padding-top:12px}
.header-v4 .advanced-filters{position:relative}.header-v4 .advanced-filters summary{cursor:pointer;font-size:12px;white-space:nowrap}
.header-v4 .advanced-filters .filter-popover{right:0;left:auto;width:300px}
.header-v4 .header-admin-link{font-size:11px;color:#7886a1;padding:8px;text-align:center}
@media(max-width:1200px){.header-v4 .topbar{gap:12px;padding:16px 20px}.header-v4 .context-row{padding:0 20px;gap:12px}.header-v4 .scope-count{display:none}.header-v4 .main{padding:20px!important}.header-v4 .top-actions .search-launch{display:none}}
@media(max-width:900px){.header-v4 .topbar.with-scope{grid-template-columns:auto minmax(180px,1fr) auto}.header-v4 .topbar.with-scope .top-actions{display:none}.header-v4 .context-tabs{flex-basis:100%}.header-v4 .context-row{padding-bottom:10px;gap:10px}.header-v4 .scope-count{display:block;margin-left:auto}.header-v4 .context-tabs .sub-link{padding:12px 0}}
@media(max-width:600px){.header-v4 .topbar.with-scope{grid-template-columns:1fr auto;gap:12px}.header-v4 .keyword-picker{grid-row:2;grid-column:1/-1}.header-v4 .topbar{padding:14px}.header-v4 .context-row{padding:0 14px 10px}.header-v4 .main{padding:16px 12px!important}.header-v4 .scope-count{width:100%;margin:0}.header-v4 .context-tabs{gap:18px}.header-v4 .keyword-popover{width:calc(100vw - 105px);padding:10px}.header-v4 .keyword-footer{flex-wrap:wrap}.header-v4 .header-period select{max-width:110px}}

/* Header v5: keep the original navigation; adjust only content context. */
.header-v5.customer-view .subnav{display:flex!important}
.header-v5.customer-view .shell{margin-left:calc(var(--rail) + var(--nav))!important}
.header-v5.customer-view:has(.cockpit-v2) .shell{margin-left:var(--rail)!important}
.header-v5.customer-view:has(.cockpit-v2) .subnav{display:none!important}
.header-v5 .topbar{min-height:72px;padding:14px 28px;position:relative;z-index:20}
.header-v5 .workspace-heading h1{font-size:23px;line-height:1.35}
.header-v5 .top-actions .search-launch{font-size:12px;width:145px!important;min-width:32px;padding:8px}.header-v5 .top-actions .search-launch .kbd{display:inline}
.header-v5 .project-context{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin:0 0 20px;padding:0;position:relative;z-index:25}
.header-v5 .project-context>.brand-selector{flex:0 0 auto;gap:8px;font-size:14px;padding-right:16px;border-right:1px solid #dce3ef}
.header-v5 .keyword-picker{flex:1 1 240px;max-width:450px;min-width:200px}
.header-v5 .keyword-picker summary{background:#fff;border-color:#dce3ef;padding:10px 12px;gap:10px}
.header-v5 .context-secondary{display:flex;gap:10px;align-items:center;margin-left:auto;flex:0 0 auto}
.header-v5 .scope-count{flex:1 0 100%;text-align:right;font-size:12px;line-height:1.2;color:#73829b}
.header-v5 .main{padding:20px 28px!important}
.header-v5 .keyword-popover{width:min(570px,calc(100vw - 410px))}
@media(max-width:1200px){.header-v5 .project-context{gap:10px}.header-v5 .context-secondary{flex-wrap:wrap}.header-v5 .keyword-picker{max-width:none}.header-v5 .main{padding:20px!important}.header-v5 .topbar{padding:14px 20px}.header-v5 .scope-count{display:block}}
@media(max-width:900px){.header-v5 .context-secondary{flex:1 0 100%;justify-content:flex-end}.header-v5 .keyword-popover{width:min(500px,calc(100vw - 300px))}.header-v5 .top-actions .search-launch{display:none}}
@media(max-width:700px){.header-v5.customer-view .subnav{display:none!important}.header-v5.customer-view .subnav.mobile-open{display:flex!important}.header-v5 .workspace-heading .mobile-menu{display:inline-flex}.header-v5 .keyword-popover{width:calc(100vw - 106px)}.header-v5 .main{padding:16px 12px!important}.header-v5 .context-secondary{justify-content:flex-start;gap:8px}.header-v5 .keyword-picker{flex-basis:100%}.header-v5 .project-context>.brand-selector{border:0}.header-v5 .topbar{padding:12px}.header-v5 .topbar h1{font-size:19px}.header-v5 .scope-count{text-align:left}}
/* 2026-10-23: presentation-only refinement, original navigation and data retained. */
.header-v5 .topbar{min-height:76px;padding:16px 28px;}
.header-v5 .workspace-heading{min-width:0;gap:16px}
.header-v5 .workspace-heading .brand-selector{display:flex;align-items:center;gap:9px;flex-shrink:0;font-size:14px}
.header-v5 .workspace-heading h1{font-size:22px;letter-spacing:-.3px;font-weight:700;white-space:normal}
.header-v5 .workspace-heading .heading-divider{display:block;width:1px;height:22px;flex-shrink:0}
.header-v5 .project-context{gap:12px 20px;margin:0 0 20px;padding:0 0 14px;align-items:center}
.header-v5 .keyword-picker{flex:1 1 260px;max-width:520px;min-width:0}
.header-v5 .keyword-picker summary{height:42px;box-sizing:border-box;padding:0 14px;border-radius:8px}
.header-v5 .keyword-picker summary strong{font-size:14px;font-weight:600}
.header-v5 .context-secondary{gap:8px}
.header-v5 .header-period,.header-v5 .header-platform{height:42px;border-radius:8px;box-sizing:border-box}
.header-v5 .scope-count{flex-basis:100%;font-size:12px;line-height:18px;text-align:right;margin:0}
.header-v5 .advanced-filters>summary{min-height:42px;display:flex;align-items:center;box-sizing:border-box}
.header-v5 .main{padding:20px 28px 32px!important}
.header-v5 #page-content :is(.panel,.cd-panel){border-radius:10px;}
.header-v5 #page-content :is(.panel-head,.cd-panel>header){padding:18px 22px;gap:16px;align-items:center}
.header-v5 #page-content :is(.panel-title,.cd-panel>header h2,.cd-panel>header h3){font-size:17px;line-height:1.5;font-weight:650}
.header-v5 #page-content th{font-weight:500;}
.header-v5 #page-content td{line-height:1.6}
@media(max-width:1200px){.header-v5 .topbar{padding:16px 20px}.header-v5 .main{padding:20px!important}.header-v5 .keyword-picker{max-width:none}.header-v5 .top-actions .search-launch{display:none}.header-v5 .project-context{gap:12px}.header-v5 .header-period select,.header-v5 .header-platform select{max-width:145px}}
@media(max-width:900px){.header-v5 .context-secondary{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-start}.header-v5 .keyword-picker{flex-basis:100%}.header-v5 .scope-count{flex:1 1 auto}.header-v5 .workspace-heading{gap:10px}.header-v5 .workspace-heading h1{font-size:20px}}
@media(max-width:700px){.header-v5 .topbar{padding:12px}.header-v5 .top-actions{display:none}.header-v5 .workspace-heading{flex-wrap:wrap}.header-v5 .workspace-heading h1{font-size:18px}.header-v5 .main{padding:16px 12px!important}.header-v5 .scope-count{flex-basis:100%;text-align:left}.header-v5 .context-secondary{gap:8px;max-width:100%}.header-v5 .header-period,.header-v5 .header-platform{flex:1 1 auto}.header-v5 #page-content :is(.panel-head,.cd-panel>header){padding:16px}.header-v5 .keyword-picker summary{gap:8px}}

/* 2026-10-24 audited layout refinement; preserve all existing paint values. */
.header-v5 .project-context{gap:8px 16px;margin-bottom:12px;padding-bottom:8px}
.header-v5 .ds-section-tabs{margin-top:0;margin-bottom:16px}
.delivery-details{padding:16px 22px;margin-top:16px}.delivery-details>summary,.execution-options>summary{cursor:pointer;font-weight:600;line-height:2}
.execution-options{margin:12px 0}.execution-options .handoff-fields{padding-top:12px}
.bk-document .bk-chapter p{max-width:78ch;line-height:1.8}
@media(max-width:700px){.header-v5 .rail-link span{font-size:10px;line-height:1.3;word-break:keep-all}.header-v5 .rail-link{padding:8px 2px;min-height:48px}.header-v5 .context-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;flex-basis:100%}.header-v5 .header-period,.header-v5 .header-platform{min-width:0;width:auto;padding:0 6px}.header-v5 .header-period select,.header-v5 .header-platform select{min-width:0;width:100%;max-width:100%;font-size:12px}.header-v5 .advanced-filters{grid-column:2}.header-v5 .project-context{gap:8px}.header-v5 .scope-count{font-size:12px}.header-v5 .rail-link span{max-width:60px}}

.bk-chapter>summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;line-height:1.8}
@media(max-width:700px){.header-v5 .header-platform{font-size:0}.header-v5 .header-platform select{font-size:12px}}

/* Strategy flow: existing palette inherited, layout only. */
.strategy-steps{display:flex;gap:12px;margin:8px 0 24px;flex-wrap:wrap}.strategy-steps .btn{cursor:default;min-width:150px;text-align:center}
.strategy-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.strategy-layout>div{min-width:0}.strategy-summary{position:sticky;top:20px}.strategy-summary-values{display:grid;grid-template-columns:1fr auto;gap:18px;margin:24px}.strategy-summary-values dd{margin:0;font-size:20px;font-weight:700;text-align:right}.strategy-summary-values dt{align-self:center}.strategy-media{border:0;padding:20px 0;margin:0;display:flex;gap:16px 24px;flex-wrap:wrap}.strategy-media legend{font-weight:700;padding:0}.strategy-media label{display:flex;align-items:center;gap:6px}.strategy-actions{justify-content:flex-end;padding:20px 0}.strategy-layout .handoff-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}.strategy-layout .handoff-form details{margin:16px 0}.strategy-layout .cd-panel{margin-bottom:0}
@media(max-width:1050px){.strategy-layout{grid-template-columns:minmax(0,1fr)}.strategy-summary{position:static}.strategy-summary-values{grid-template-columns:1fr auto 1fr auto}}
@media(max-width:600px){.strategy-layout .handoff-fields{grid-template-columns:1fr}.strategy-steps{gap:6px}.strategy-steps .btn{min-width:0;flex:1;padding:10px 6px}.strategy-summary-values{grid-template-columns:1fr auto}.strategy-actions{flex-wrap:wrap}}

.strategy-evidence{margin:20px 24px}.strategy-evidence summary{cursor:pointer}.strategy-media{padding-top:24px!important}.strategy-layout .handoff-form>.cd-note{padding-left:0;padding-right:0}

/* Assistant is a start state inside the existing workspace. */
body.customer-view.header-v5.assistant-start-view .subnav{display:none!important}body.customer-view.header-v5.assistant-start-view .shell{margin-left:180px!important}body.customer-view.header-v5.assistant-start-view .main{max-width:none!important;background:#faf9f6;min-height:calc(100vh - 72px)}body.customer-view.header-v5.assistant-start-view .footer-note{display:none}body.customer-view.header-v5.assistant-start-view .logo-mark{display:none}body.customer-view.header-v5.assistant-start-view .topbar{background:#fff}@media(max-width:700px){body.customer-view.header-v5.assistant-start-view .shell{margin-left:64px!important}}

body.customer-view.header-v5.assistant-start-view .main{padding:0!important;width:100%!important}body.customer-view.header-v5.assistant-start-view .workspace-heading .brand-selector,body.customer-view.header-v5.assistant-start-view .workspace-heading .heading-divider{display:none}body.customer-view.header-v5.assistant-start-view .top-actions{display:flex!important}body.customer-view.header-v5.assistant-start-view .topbar{padding-inline:28px}body.assistant-start-view #assistant-login{color:#6743ff;border-color:#dfd7fa;background:#fff;min-width:80px}

/* Assistant unified canvas: no secondary-navigation reservation. */
body.customer-view.header-v5.assistant-start-view .shell{margin-left:var(--rail)!important;width:calc(100% - var(--rail))!important}
body.customer-view.header-v5.assistant-start-view .topbar{min-height:68px;padding:14px 28px}
body.customer-view.header-v5.assistant-start-view .workspace-heading h1{font-size:20px}
body.customer-view.header-v5.assistant-start-view .main{min-height:calc(100vh - 68px);background:#f7f8fc}
body.customer-view.header-v5.assistant-start-view #page-content{width:100%;max-width:none;margin:0;padding:0}
body.customer-view.header-v5.assistant-start-view .workspace-heading .brand-selector,body.customer-view.header-v5.assistant-start-view .workspace-heading .heading-divider{display:none!important}
@media(max-width:700px){body.customer-view.header-v5.assistant-start-view .topbar{padding:12px 16px}}

/* Result-first customer chrome: secondary sampling metadata stays available on demand. */
body.customer-view.result-first:not(.assistant-start-view) .topbar{min-height:56px;height:56px;padding:10px 28px;box-sizing:border-box}
body.customer-view.result-first:not(.assistant-start-view) .main{padding-top:12px!important}
body.customer-view.result-first:not(.assistant-start-view) .project-context{padding:10px 12px;margin-bottom:16px;gap:8px 12px;min-height:58px;box-sizing:border-box}
body.customer-view.result-first .project-context .keyword-picker{max-width:450px;min-width:180px}
body.customer-view.result-first .filter-popover .scope-count{display:block;margin-top:12px;padding-top:12px;border-top:1px solid #e6ebf4;text-align:left;white-space:normal}
body.customer-view.result-first .result-supporting-notes{margin-top:24px}
body.customer-view.result-first .result-supporting-notes .cock-disclosure{margin:8px 0;line-height:1.6}
body.customer-view.result-first .result-supporting-notes .collection-completed{margin:8px 0}
.result-first .ir-result-meta{display:flex;align-items:center;gap:16px;font-size:12px;color:#7485a5}
.result-first .ir-stat-details{position:relative}
.result-first .ir-stat-details summary{cursor:pointer;color:#556987;list-style:none;padding:6px 0}
.result-first .ir-stat-details summary::after{content:' ⓘ'}
.result-first .ir-stat-details[open]>div{position:absolute;right:0;top:32px;z-index:20;width:min(380px,70vw);padding:16px;background:white;border:1px solid #dce4f2;border-radius:10px;box-shadow:0 10px 32px #182d501a;line-height:1.7;color:#526687}
.result-first .ir-stat-details p{margin:0 0 8px}
.result-first .ir-result-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 20px;border-bottom:1px solid #e6ebf4}
.result-first .ir-result-tools .cx-rank-platforms{padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}
.result-first .ir-result-tools .ir-toolbar{padding:0;margin:0;background:transparent;display:flex;align-items:center;gap:8px}
.result-first .ir-result-tools .ir-toolbar label{display:flex;align-items:center}
.result-first .ir-result-tools .ir-toolbar input{width:180px;max-width:100%}
.result-first .ir-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1200px){body.customer-view.result-first .project-context .context-secondary{flex:0 1 auto;flex-wrap:wrap}body.customer-view.result-first .project-context .keyword-picker{flex:1 1 200px}.result-first .ir-result-tools{gap:10px}}
@media(max-width:700px){body.customer-view.result-first:not(.assistant-start-view) .topbar{padding:10px 16px}.result-first .ir-result-tools{padding:12px}.result-first .ir-result-meta{gap:8px}body.customer-view.result-first .project-context .context-secondary{margin-left:0;flex:1 1 100%}}

body.customer-view.result-first #page-content .industry-ranking>.cd-panel>header{min-height:52px;padding:12px 20px;box-sizing:border-box}
body.customer-view.result-first #page-content .ir-result-tools .ir-toolbar{padding:0!important;background:transparent;min-height:0;border:0}
body.customer-view.result-first #page-content .ir-result-tools{padding:12px 20px}

/* Local priority remediation: result-first, scoped away from the protected homepage. */
.cd-context-summary{margin:0 0 12px;color:#697a92;font-size:13px}
.cd-context-summary>summary{cursor:pointer;padding:8px 0}
.cd-context-summary .cd-kpis{margin-top:10px}
.delivery-records tr[hidden]{display:none!important}
.delivery-records{scroll-margin-top:72px}
.delivery-records>.cd-pagination{padding:12px 20px;border-top:1px solid #e7edf5}
[data-customer-delivery="visibility/questions"]>.cd-kpis,
[data-customer-delivery="visibility/runs"]>.cd-kpis,
[data-customer-delivery="brand/assets"]>.cd-kpis{display:flex;flex-wrap:wrap;gap:12px 28px;padding:12px 20px;margin-bottom:16px}
[data-customer-delivery="visibility/questions"]>.cd-kpis>article,
[data-customer-delivery="visibility/runs"]>.cd-kpis>article,
[data-customer-delivery="brand/assets"]>.cd-kpis>article{display:flex;align-items:baseline;gap:10px;padding:0;border:0}
[data-customer-delivery="visibility/questions"]>.cd-kpis strong,
[data-customer-delivery="visibility/runs"]>.cd-kpis strong,
[data-customer-delivery="brand/assets"]>.cd-kpis strong{font-size:22px}
body.customer-view .cd-comparison .cmp-toolbar{padding:12px 16px;margin-bottom:10px;gap:10px;min-height:0}
body.customer-view .cd-comparison .cu-scope{margin:0 0 10px;font-size:12px}
body.customer-view .cd-comparison .cd-kpis{margin:0 0 16px}
body.customer-view .cd-comparison .cd-kpis>article{padding:14px 18px}
body.customer-view .cd-comparison .cd-kpis strong{font-size:26px;line-height:1.2;margin:6px 0}
body.customer-view .cd-comparison .cd-kpis small{font-size:12px;line-height:1.5}
body.customer-view .av-page .av-summary{padding:14px 20px}
body.customer-view .av-page .av-summary .cx-brand-legend{margin-bottom:10px}
body.customer-view .av-page .av-metrics article>div{margin:6px 0}
body.customer-view .av-page .av-metrics strong{font-size:26px}
body.customer-view .av-page .av-metrics b{font-size:21px}
body.customer-view .av-page .av-insight{margin-top:10px;padding-top:8px}
body.customer-view .av-analysis-heading{margin:14px 0 10px}
body.customer-view .cs-unified-tools{gap:10px;align-items:center;padding:12px 16px}
body.customer-view .cd-comparison .cs-rich-source td:nth-child(4),
body.customer-view .cd-comparison .cs-rich-source td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
body.customer-view .cd-comparison .cs-rich-source th:last-child,
body.customer-view .cd-comparison .cs-rich-source td:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 8px #233a5510;z-index:1;min-width:80px}
@media(min-width:1100px) and (max-width:1450px){
 body.customer-view .cd-comparison .cs-rich-source{min-width:860px;table-layout:auto}
 body.customer-view .cs-platform-badges{min-width:180px;gap:5px}
 body.customer-view .cs-platform-badge{font-size:12px;white-space:nowrap}
 body.customer-view .cs-source-brand{min-width:85px}
 body.customer-view .cs-source-name{min-width:105px}
}
.bc-unstarted{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:14px 18px;margin-bottom:18px;background:#fff;border:1px solid #e3e9f3;border-radius:10px;font-size:13px}
.bc-unstarted span{color:#6a7b91}.bc-unstarted a{margin-left:auto}
/* Final precedence over legacy page-specific density rules. */
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cmp-toolbar{padding:8px 12px;gap:10px;margin-bottom:8px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cd-kpis>article{padding:10px 14px;gap:3px;min-height:0}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cd-kpis strong{font-size:24px;line-height:1.15;margin:3px 0}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cd-kpis small{font-size:12px;line-height:1.4}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cu-scope{margin:0 0 8px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cd-kpis{margin-bottom:12px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .av-summary{padding:12px 16px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .av-summary .cx-brand-legend{margin-bottom:8px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .av-metrics article>div{margin:4px 0}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .av-metrics strong{font-size:26px}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .av-analysis-heading{margin:12px 0}
body.customer-view.customer-ui-vnext #page-content [data-customer-delivery="visibility/questions"]>.cd-kpis>article,
body.customer-view.customer-ui-vnext #page-content [data-customer-delivery="visibility/runs"]>.cd-kpis>article,
body.customer-view.customer-ui-vnext #page-content [data-customer-delivery="brand/assets"]>.cd-kpis>article{padding:0;flex-direction:row;gap:10px;align-items:baseline}
body.customer-view.customer-ui-vnext #page-content .cd-comparison .cs-rich-source td:nth-child(5){white-space:nowrap}

/* Verified result-first comparison controls; homepage excluded. */
body.customer-view .result-comparison-controls{background:#fff;border:1px solid #dfe6f3;border-radius:10px;margin-bottom:12px;padding:0 12px}
body.customer-view.customer-ui-vnext #page-content .result-comparison-controls>.real-filters{border:0;box-shadow:none;margin:0;padding:10px 0;min-height:0}
body.customer-view.customer-ui-vnext #page-content .result-comparison-controls>.cmp-toolbar{border:0;border-top:1px solid #edf0f6;border-radius:0;box-shadow:none;margin:0;padding:8px 0;background:transparent}
body.customer-view.customer-ui-vnext #page-content .cd-comparison[data-customer-page="compare/companies"] .cd-kpis{border:0;border-bottom:1px solid #e5ebf5;border-radius:0;margin:0}
body.customer-view .cd-comparison .cv-chart-heading{margin:4px 0 18px}
body.customer-view .cd-comparison .cx-panel-context{padding-top:12px;padding-bottom:12px}
body.customer-view .cd-comparison .cp-keyword-trend{width:100%;height:auto;max-height:none;min-height:0;padding:12px 24px}
body.customer-view .reputation-workbench .rw-stats>div{padding:14px 16px;min-height:0}
body.customer-view .reputation-workbench .rw-stats strong{font-size:26px;margin:8px 0}
body.customer-view .reputation-workbench .rw-stats .rw-drill{margin-top:8px}
@media(max-width:700px){body.customer-view .cd-comparison .cp-keyword-trend{height:240px;padding:10px 4px}}

body.customer-view .cd-comparison[data-customer-page="compare/companies"] .cd-kpis>article:nth-child(2) strong{color:#9255f9}
body.customer-view .reputation-workbench .rw-panel>.rw-drill{margin:0 20px;padding:10px 0}

body.customer-view main:has(.industry-ranking)>.real-filters .header-platform{display:none}

/* Result-first integration: one data surface, supporting context inside. */
body.customer-view .result-integrated-panel{overflow:visible}
body.customer-view .result-integrated-panel>header{padding:14px 20px;min-height:0}
body.customer-view .result-integrated-controls,
body.customer-view .result-integrated-controls.result-comparison-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 16px;margin:0;border:0;border-bottom:1px solid #e7ecf5;border-radius:0;background:#fff}
body.customer-view .result-integrated-controls>.real-filters{display:contents!important}
body.customer-view .result-integrated-controls .context-secondary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
body.customer-view .result-integrated-controls .keyword-scope{flex:1 1 250px;max-width:460px}
body.customer-view .result-integrated-controls>.cmp-toolbar{display:contents!important}
body.customer-view .result-integrated-controls .cmp-control{margin:0}
body.customer-view .result-context-details{margin:0;padding:10px 20px;border-top:1px solid #e7ecf5;background:#fafbfe;font-size:12px;color:#64748b}
body.customer-view .result-context-details>summary{cursor:pointer;width:fit-content;color:#64748b;font-size:12px}
body.customer-view .result-context-details[open]>summary{margin-bottom:12px}
body.customer-view .result-context-details .cd-kpis,
body.customer-view .result-context-details .av-summary{margin:0;border:0;box-shadow:none;background:transparent}
body.customer-view .result-context-details .cd-kpis strong{font-size:22px}
body.customer-view .result-context-details .cd-context-summary{border:0;margin:0;padding:0}
body.customer-view main:has(.industry-ranking) .result-integrated-controls .header-platform{display:none}
body.customer-view .result-integrated-panel .ir-result-tools{margin:0;padding:10px 16px}
body.customer-view .result-integrated-panel>.cs-unified-tools{border-top:0;padding:10px 16px}
body.customer-view .result-integrated-panel .cd-context-summary{box-shadow:none}
@media(max-width:700px){
 body.customer-view .result-integrated-controls{padding:10px;gap:8px}
 body.customer-view .result-integrated-controls .context-secondary{margin-left:0;width:100%}
 body.customer-view .result-integrated-controls .cmp-control{flex:1 1 160px}
}

body.customer-view .result-integrated-controls .keyword-picker{flex:1 1 240px;max-width:450px;min-width:200px}
body.customer-view .result-chart-group,body.customer-view .kw-discovery.result-integrated-panel{border:1px solid #dfe6f3;border-radius:12px;background:#fff;margin-bottom:20px}
body.customer-view .result-chart-group>.av-analysis-heading{padding:12px 18px;margin:0}
body.customer-view .result-chart-group>.av-analysis-grid{margin:0;gap:0}
body.customer-view .result-chart-group>.av-analysis-grid>.cd-panel{border:0;border-radius:0;margin:0;box-shadow:none}
body.customer-view .result-chart-group>.av-analysis-grid>.cd-panel+ .cd-panel{border-left:1px solid #e7ecf5}
body.customer-view .kw-discovery.result-integrated-panel .kw-pair{gap:0;margin:0}
body.customer-view .kw-discovery.result-integrated-panel .kw-pair>.kw-surface{border:0;border-radius:0}
body.customer-view .kw-discovery.result-integrated-panel .kw-priority{border-left:1px solid #e7ecf5!important}
body.customer-view .result-integrated-controls .av-peer-toolbar-note{display:none}
body.customer-view .rw-panel>.rw-stats{margin:0;padding:0;border-bottom:1px solid #e7ecf5;gap:0}
body.customer-view .rw-panel>.rw-stats>div{border:0;border-radius:0;box-shadow:none}
@media(max-width:900px){body.customer-view .result-chart-group>.av-analysis-grid>.cd-panel+ .cd-panel{border-left:0;border-top:1px solid #e7ecf5}}

body.customer-view .reputation-workbench>.result-integrated-controls{border:1px solid #e1e7f2;border-radius:10px;margin-bottom:16px}
body.customer-view .rw-expression-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;margin-bottom:20px}
body.customer-view .rw-word-cloud{min-height:260px;display:flex;align-content:center;justify-content:center;align-items:center;gap:18px 24px;flex-wrap:wrap;padding:24px}
body.customer-view .rw-word-cloud button{font-weight:600;line-height:1.4}
body.customer-view .rw-ring{width:164px;height:164px;border-radius:50%;margin:20px auto;display:grid;place-items:center}
body.customer-view .rw-ring>div{width:126px;height:126px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}
body.customer-view .rw-ring strong{font-size:28px;color:#2463ff}
body.customer-view .rw-ring span{font-size:12px;color:#8090aa}
body.customer-view .rw-stat-details{padding:12px 20px;color:#7788a3;font-size:12px}
body.customer-view .rw-main .rw-legend{margin-bottom:16px}
@media(max-width:1000px){body.customer-view .rw-expression-grid{grid-template-columns:1fr}}
body.customer-view .rw-main{align-items:stretch}
body.customer-view .rw-main .rw-panel>svg{width:calc(100% - 40px);height:280px;max-height:none;min-height:0;margin:12px 20px}
body.customer-view .rw-main .rw-legend{padding:16px 20px;margin:0}
body.customer-view .rw-distribution-panel .rw-ring{width:128px;height:128px;margin:16px auto}
body.customer-view .rw-distribution-panel .rw-ring>div{width:98px;height:98px}
body.customer-view .rw-distribution-panel .rw-ring strong{font-size:24px}
body.customer-view .rw-distribution-panel .ops-distribution{padding:6px 20px}
body.customer-view .rw-distribution-panel .ops-distribution>div{padding:8px 0}
body.customer-view .rw-main .cd-note{margin:10px 20px 16px;padding:0}

/* Reputation page: chart-first composition, compact evidence and consistent surfaces. */
body.customer-view .rw-refined{gap:16px;--rw-border:#e6eaf2}
body.customer-view .rw-refined>.result-integrated-controls{margin:0;padding:10px 16px}
body.customer-view .rw-refined .cd-panel{border-color:var(--rw-border);border-radius:12px;box-shadow:0 2px 5px #1e325004}
body.customer-view .rw-refined .rw-panel>header{padding:16px 20px;min-height:0;background:#fff;border-bottom:1px solid #eef1f6}
body.customer-view .rw-refined .rw-panel>header h2{font-size:16px;font-weight:650;line-height:1.5;letter-spacing:0}
body.customer-view .rw-refined .rw-main{grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);gap:16px}
body.customer-view .rw-refined .rw-main>.rw-panel:first-child{display:flex;flex-direction:column}
body.customer-view .rw-refined .rw-main .rw-legend{padding:12px 20px;font-size:12px;gap:16px}
body.customer-view .rw-refined .rw-main .rw-panel>svg{flex:1;width:calc(100% - 32px);height:240px;min-height:220px;max-height:280px;margin:4px 16px 8px}
body.customer-view .rw-refined .rw-main .cd-note{font-size:11px;color:#7c8aa1;margin:6px 20px 14px;line-height:1.65}
body.customer-view .rw-refined .rw-distribution-content{display:grid;grid-template-columns:124px minmax(0,1fr);align-items:center;gap:12px;padding:22px 18px 12px}
body.customer-view .rw-refined .rw-distribution-content .rw-ring{width:120px;height:120px;margin:0}
body.customer-view .rw-refined .rw-distribution-content .rw-ring>div{width:92px;height:92px}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution{padding:0;min-width:0}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution>div{grid-template-columns:48px minmax(24px,1fr) 48px 36px;gap:8px;padding:10px 0}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution>div>span{font-size:12px;white-space:nowrap}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution b{font-size:13px}
body.customer-view .rw-refined .rw-distribution-content>.cd-note{grid-column:1/-1;margin:8px 0 0}
body.customer-view .rw-refined .rw-expression-surface{grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:0;border:1px solid var(--rw-border);border-radius:12px;overflow:hidden;background:#fff;margin:0}
body.customer-view .rw-refined .rw-expression-surface>.rw-panel{border:0;border-radius:0;box-shadow:none}
body.customer-view .rw-refined .rw-expression-surface>.rw-panel+ .rw-panel{border-left:1px solid var(--rw-border)}
body.customer-view .rw-refined .rw-word-cloud{min-height:150px;padding:24px 20px;gap:14px 20px}
body.customer-view .rw-refined .rw-word-cloud button{line-height:1.6}

body.customer-view .rw-refined .rw-expression-surface .cd-note{font-size:11px;margin:12px 20px;color:#7c8aa1}
body.customer-view .rw-refined .ops-table th,body.customer-view .rw-refined .ops-table td{padding:12px 16px;font-size:13px}
body.customer-view .rw-refined .ops-table th{background:#fafbfe;font-weight:500;color:#76859c}
body.customer-view .rw-refined .ops-table tbody th{background:#fff;color:#203650;font-weight:600}
body.customer-view .rw-refined .ops-table .rw-drill summary{font-size:12px}
body.customer-view .rw-refined .rw-drill summary>span{display:inline;margin-left:12px;color:#8290a6;font-size:11px}
body.customer-view .rw-refined .rw-platform-section .rw-panel{display:block}
body.customer-view .rw-refined .rw-platform{display:grid;grid-template-columns:minmax(100px,1fr) 150px minmax(140px,2fr) minmax(140px,1.2fr);align-items:center;gap:20px;padding:12px 20px;font-size:13px}
body.customer-view .rw-refined .rw-platform>span{float:none;font-size:12px;color:#667b95}
body.customer-view .rw-refined .rw-platform .rw-stack{margin:0;height:8px}
body.customer-view .rw-refined .rw-platform .rw-drill{border:0;padding:0}
body.customer-view .rw-refined .rw-platform .rw-drill[open]{grid-column:1/-1;padding:12px;background:#f7f9fd}
body.customer-view .rw-refined>.rw-panel>.rw-drill{padding:12px 0;margin:0 20px}
@media(max-width:1500px){body.customer-view .rw-refined .rw-distribution-content{grid-template-columns:1fr;padding:12px 20px}body.customer-view .rw-refined .rw-distribution-content .rw-ring{width:94px;height:94px;margin:0 auto 4px}body.customer-view .rw-refined .rw-distribution-content .rw-ring>div{width:72px;height:72px}body.customer-view .rw-refined .rw-distribution-content .rw-ring strong{font-size:20px}body.customer-view .rw-refined .rw-distribution-content .ops-distribution>div{padding:6px 0}}
@media(max-width:1050px){body.customer-view .rw-refined .rw-main{grid-template-columns:1fr}body.customer-view .rw-refined .rw-distribution-content{grid-template-columns:124px minmax(0,1fr)}body.customer-view .rw-refined .rw-expression-surface{grid-template-columns:1fr}body.customer-view .rw-refined .rw-expression-surface>.rw-panel+ .rw-panel{border-left:0;border-top:1px solid var(--rw-border)}body.customer-view .rw-refined .rw-platform{grid-template-columns:1fr 1fr;gap:12px}}
@media(max-width:600px){body.customer-view .rw-refined .rw-distribution-content{grid-template-columns:1fr}.rw-refined .ops-table{min-width:530px}body.customer-view .rw-refined .rw-main .rw-panel>svg{height:210px;min-height:0}}

body.customer-view .rw-refined .rw-panel>header{background:#fff!important}

/* Sentiment plot uses measured pixel dimensions, never a scaled fixed canvas. */
body.customer-view .rw-refined geo-sentiment-trend{display:block;min-width:0;width:calc(100% - 32px);height:250px;margin:4px 16px 8px;flex:none}
body.customer-view .rw-refined geo-sentiment-trend>svg{display:block;width:100%;height:250px;margin:0;max-height:none}
body.customer-view .rw-refined geo-sentiment-trend text{font-size:12px}
body.customer-view .rw-refined .rw-main>.rw-panel:first-child>.cd-note{margin-top:auto;padding-top:6px}

/* Evidence-led sentiment composition; short vocabularies do not need an empty cloud. */
body.customer-view .rw-refined .rw-main{grid-template-columns:minmax(0,1.9fr) minmax(300px,1fr)}
body.customer-view .rw-refined .rw-panel>header{padding:14px 20px}
body.customer-view .rw-refined .rw-main .rw-legend{gap:12px;padding:12px 20px 8px;color:#516581}
body.customer-view .rw-refined .rw-distribution-content{display:flex;flex-direction:column;gap:12px;padding:16px 20px}
body.customer-view .rw-refined .rw-distribution-content .rw-ring{width:124px;height:124px;margin:0 auto}
body.customer-view .rw-refined .rw-distribution-content .rw-ring>div{width:98px;height:98px}
body.customer-view .rw-refined .rw-distribution-content .rw-ring strong{font-size:24px}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution{width:100%}
body.customer-view .rw-refined .rw-distribution-content .ops-distribution>div{padding:5px 0}
body.customer-view .rw-refined .rw-distribution-content>.cd-note{margin:0;font-size:11px}
body.customer-view .rw-refined .rw-phrase-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));padding:20px;gap:16px}
body.customer-view .rw-refined .rw-phrase-card{min-width:0;border-right:1px solid #e9edf5;padding:0 20px 0 0}
body.customer-view .rw-refined .rw-phrase-card:last-child{border-right:0;padding-right:0}
body.customer-view .rw-refined .rw-phrase-heading{display:flex;align-items:center;gap:12px}
body.customer-view .rw-refined .rw-phrase-heading h3{margin:0;font-size:22px;font-weight:650;color:#2463ff}
body.customer-view .rw-refined .rw-phrase-heading span{font-size:12px;color:#72839b}
body.customer-view .rw-refined .rw-phrase-value{display:flex;align-items:baseline;gap:12px;margin:12px 0}
body.customer-view .rw-refined .rw-phrase-value strong{font-size:24px;font-weight:600;color:#203650}
body.customer-view .rw-refined .rw-phrase-value span{font-size:12px;color:#72839b}
body.customer-view .rw-refined .rw-phrase-card blockquote{margin:0 0 12px;padding:10px 12px;border-left:2px solid #d9e3ff;background:#f8faff;color:#526580;font-size:13px;line-height:1.7;max-height:86px;overflow:auto}
body.customer-view .rw-refined .rw-phrase-card .rw-drill{margin:0;padding:8px 0;border:0}
body.customer-view .rw-refined .rw-phrase-card .rw-drill summary{font-size:12px}
@media(max-width:1050px){body.customer-view .rw-refined .rw-main{grid-template-columns:1fr}body.customer-view .rw-refined .rw-distribution-content{display:grid;grid-template-columns:140px minmax(0,1fr)}body.customer-view .rw-refined .rw-distribution-content>.cd-note{grid-column:1/-1}}
@media(max-width:650px){body.customer-view .rw-refined .rw-phrase-cards{grid-template-columns:1fr}body.customer-view .rw-refined .rw-phrase-card{border-right:0;border-bottom:1px solid #e9edf5;padding:0 0 16px}body.customer-view .rw-refined .rw-phrase-card:last-child{border:0;padding:0}body.customer-view .rw-refined .rw-distribution-content{display:flex}}

body.customer-view .rw-refined .rw-trend-period{font-size:12px;color:#72839b;padding:0 20px 6px}
body.customer-view .rw-refined .rw-daily-evidence{margin:4px 20px 12px;font-size:12px;color:#526580}
body.customer-view .rw-refined .rw-daily-evidence>summary{cursor:pointer;color:#3569f5}
body.customer-view .rw-refined .rw-daily-evidence .rw-drill{padding:10px 0}

/* Paired keyword evidence and honest delivery empty states. */
.cp-cloud-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cp-cloud-brand{min-width:0;border:1px solid #e6ebf4;border-radius:12px;overflow:hidden}
.cp-cloud-brand header{padding:16px 20px;border-bottom:1px solid #eef1f7;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
.cp-cloud-brand header span{color:#74839b;font-size:12px}
.cp-cloud-brand .kw-cloud{position:relative;height:310px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:12px;padding:16px;overflow:hidden}
.cp-cloud-brand .kw-cloud button{font-size:var(--kw-size);font-weight:650;border:0;background:none;padding:3px;white-space:nowrap;cursor:pointer;line-height:1.25}
.cp-cloud-brand .kw-packed button{position:absolute}
.cp-cloud-brand .kw-cloud button:hover{text-decoration:underline}
.cp-cloud-brand .kw-cloud button:focus-visible{outline:2px solid #6253ff;outline-offset:3px}
.delivery-empty{padding:32px 28px;border:1px solid #e4e9f3;border-radius:12px;background:#fff}
.delivery-empty h3{margin:0 0 10px;font-size:18px}
.delivery-empty p{color:#6d7d98;line-height:1.8;max-width:680px}
@media(max-width:900px){.cp-cloud-pair{grid-template-columns:1fr}.cp-cloud-brand .kw-cloud{height:280px}}

geo-customer-trend{display:block;min-width:0;padding:16px 20px}.ct-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#78879f;font-size:12px}.ct-tools>div{display:flex;gap:6px}.ct-tools .btn{min-height:30px;padding:5px 10px}.ct-legend{display:flex;gap:12px 20px;flex-wrap:wrap;margin:16px 0 8px;font-size:12px}.ct-legend span{display:flex;gap:6px;align-items:center}.ct-legend i{width:8px;height:8px;border-radius:50%}geo-customer-trend svg{display:block;width:100%;height:270px!important;max-height:none!important}geo-customer-trend svg text{font:12px system-ui;fill:#71819c}.ct-note{font-size:12px;color:#7a88a1;line-height:1.7;margin:8px 0}.ct-proof{font-size:12px;color:#5d7295}.ct-proof summary{cursor:pointer;padding:8px 0}.ct-proof td small{display:block;margin-top:5px}.av-summary .av-metrics{gap:0}.av-summary .av-metrics article{padding-top:12px;padding-bottom:12px}@media(max-width:600px){geo-customer-trend{padding:12px 8px}.ct-tools{align-items:flex-start}}

.delivery-result{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 24px;gap:24px}.delivery-result>div{display:grid;gap:8px}.delivery-result span{font-size:13px;color:#5f718d}.delivery-result strong{font-size:28px;color:#3864ff;font-variant-numeric:tabular-nums}.delivery-result small{font-size:12px;color:#8390a6}.delivery-next{display:flex;flex-wrap:wrap;gap:12px 24px;padding:8px 4px 20px}.rw-word-cloud .link{max-width:100%;white-space:normal;line-height:1.5}.rw-phrase-heading h3{overflow-wrap:anywhere}.rw-phrase-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}@media(max-width:600px){.delivery-result{grid-template-columns:1fr;gap:16px}}
/* One scope row: keyword, comparison brand, platform, period, optional filters. */
body.customer-view .scope-single-row{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px!important;padding:10px 16px!important;min-width:0}
body.customer-view .scope-single-row>.real-filters{display:contents!important}
body.customer-view .scope-single-row .context-secondary{display:contents!important}
body.customer-view .scope-single-row>.keyword-picker{flex:1.4 1 180px!important;min-width:140px!important;max-width:none!important;margin:0}
body.customer-view .scope-single-row>.scope-peer,body.customer-view .scope-single-row>.scope-platform,body.customer-view .scope-single-row>.header-period{display:flex;align-items:center;gap:8px;box-sizing:border-box;height:40px!important;flex:1 1 160px!important;width:auto!important;min-width:125px!important;max-width:270px!important;margin:0!important;padding:0 10px!important;border:1px solid #dce4f3;border-radius:7px;background:#fff;white-space:nowrap;font-size:13px;color:#7183a0}
body.customer-view .scope-single-row>.header-period{flex:.75 1 130px!important;max-width:190px!important}
body.customer-view .scope-single-row>label select,body.customer-view .scope-single-row>.filter-item select{flex:1;width:0!important;min-width:0!important;max-width:none!important;height:36px;min-height:0;padding:0!important;border:0!important;background:transparent;font:inherit;color:#17304f;text-overflow:ellipsis}
body.customer-view .scope-single-row>.keyword-picker>summary{height:40px!important;padding:0 10px!important;gap:6px;white-space:nowrap}
body.customer-view .scope-single-row>.keyword-picker>summary strong{overflow:hidden;text-overflow:ellipsis}
body.customer-view .scope-single-row>.advanced-filters{flex:0 0 auto;margin:0}
body.customer-view .scope-single-row>.advanced-filters>summary{height:40px;box-sizing:border-box;display:flex;align-items:center;padding:0 10px}
body.customer-view .scope-single-row .scope-superseded{display:none!important}
body.customer-view .scope-single-row .filter-popover{min-width:280px;max-width:calc(100vw - 48px);display:none}
body.customer-view .scope-single-row .advanced-filters[open]>.filter-popover{display:grid;gap:12px}
body.customer-view .scope-single-row .filter-popover .cmp-control{display:flex;flex-wrap:wrap;gap:8px;margin:0}
@media(max-width:1050px){body.customer-view .scope-single-row{gap:6px!important;padding-inline:10px!important}body.customer-view .scope-single-row>.keyword-picker{min-width:125px!important}body.customer-view .scope-single-row>.scope-peer,body.customer-view .scope-single-row>.scope-platform,body.customer-view .scope-single-row>.header-period{min-width:105px!important;padding-inline:7px!important;gap:4px}}
@media(max-width:700px){body.customer-view .scope-single-row{overflow-x:auto;flex-wrap:nowrap!important}body.customer-view .scope-single-row>.keyword-picker{flex:0 0 170px!important}body.customer-view .scope-single-row>.scope-peer,body.customer-view .scope-single-row>.scope-platform,body.customer-view .scope-single-row>.header-period{flex:0 0 150px!important}body.customer-view .scope-single-row .keyword-popover,body.customer-view .scope-single-row .filter-popover{position:fixed;top:125px;left:80px;right:12px;width:auto;z-index:100}}
body.customer-view .scope-single-row>.keyword-picker,body.customer-view .scope-single-row>.advanced-filters{padding:0!important;border:0!important;height:40px!important;min-height:40px!important;box-sizing:border-box;margin:0!important;background:transparent}
body.customer-view .scope-single-row>details>summary{margin:0!important;min-height:40px!important;height:40px!important;box-sizing:border-box}
