/* Published campaign analysis and authorized client downloads. */
.nx-cockpit .nxa-analysis{display:grid;gap:20px;min-width:0}
.nx-cockpit .nxa-analysis :is(button,select,input,summary):focus-visible,
.nx-cockpit .nxa-table-scroll:focus-visible,
.nx-cockpit .nx-export-dialog :is(button,select):focus-visible{outline:3px solid var(--cp-focus,var(--nx-purple));outline-offset:3px}
.nx-cockpit .nxa-analysis :is(.fa-solid,.fa-brands){font-size:16px}
.nx-cockpit .nx-top-actions button[data-nx-export]{min-height:36px;padding:7px 11px;gap:7px;border-color:var(--nx-purple);background:var(--nx-purple-soft);color:var(--nx-purple);font-size:11px}
.nx-cockpit .nx-top-actions button[data-nx-export]>.fa-solid{font-size:14px}
.nx-cockpit .nx-top-actions button[data-nx-export]:hover{background:var(--nx-surface);border-color:var(--nx-purple)}
.nx-cockpit .nxa-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.nx-cockpit .nxa-kpi{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:150px;padding:16px 17px;border:1px solid var(--nx-line);border-radius:13px;background:var(--nx-surface);box-shadow:0 2px 4px #16213a02}
.nx-cockpit .nxa-kpi>header{display:flex;align-items:center;gap:8px;min-width:0;color:var(--nx-muted);font-size:12px;font-weight:700;line-height:1.6}
.nx-cockpit .nxa-kpi>header>.fa-solid{display:inline-grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:8px;background:var(--nx-purple-soft);color:var(--nx-purple);font-size:14px}
.nx-cockpit .nxa-kpi:nth-child(3n+2)>header>.fa-solid{background:var(--nx-cyan-soft);color:var(--nx-cyan)}
.nx-cockpit .nxa-kpi-values{display:grid;gap:5px;margin:0;color:var(--nx-ink);font-size:25px;font-weight:800;line-height:1.4;font-variant-numeric:tabular-nums}
.nx-cockpit .nxa-value-line{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}
.nx-cockpit .nxa-value-line bdi{white-space:nowrap;font-weight:800}
.nx-cockpit .nxa-value-line small{font-size:10px;font-weight:600;color:var(--nx-muted);line-height:1.7}
.nx-cockpit .nxa-kpi>p{margin-top:auto;color:var(--nx-muted);font-size:10px;line-height:1.8}
.nx-cockpit .nxa-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:stretch}
.nx-cockpit .nxa-chart-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.nx-cockpit .nxa-chart-panel>header{align-items:flex-start}
.nx-cockpit .nxa-chart-panel>header h3{font-size:16px;line-height:1.7}
.nx-cockpit .nxa-chart-controls{display:flex;align-items:flex-end;justify-content:flex-start;gap:9px;flex-wrap:wrap;min-width:0}
.nx-cockpit .nxa-chart-controls label{display:grid;gap:5px;min-width:115px;max-width:230px;flex:1 1 130px;color:var(--nx-muted);font-size:11px;line-height:1.6}
html[data-cp-scheme] body.cp-client .nx-cockpit .nxa-analysis select,
html[data-cp-scheme] body.cp-client .nx-cockpit .nx-export-options select{width:100%;max-width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--cp-field-border,var(--nx-line));border-radius:8px;background:var(--nx-surface);color:var(--nx-ink);font-family:inherit;font-size:12px;line-height:1.6;cursor:pointer}
.nx-cockpit .nxa-chart-frame{position:relative;display:block;width:100%;min-width:0;margin-top:15px;padding:7px 0 0;direction:ltr;border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--nx-purple) 3%,transparent),transparent 90%)}
.nx-cockpit svg.nxa-trend{display:block;width:100%;height:auto;max-height:270px;overflow:visible;font-family:inherit;direction:ltr}
.nx-cockpit .nxa-grid-line{stroke:var(--nx-line);stroke-width:1;stroke-dasharray:3 5;fill:none}
.nx-cockpit .nxa-axis-text{fill:var(--nx-muted);font-size:12px;line-height:1.5;font-weight:500;letter-spacing:0!important;font-variant-numeric:tabular-nums}
.nx-cockpit .nxa-line{stroke:var(--nx-purple);stroke-width:3;stroke-linejoin:round;stroke-linecap:round;fill:none;vector-effect:non-scaling-stroke}
.nx-cockpit .nxa-line.is-secondary{stroke:var(--nx-cyan)}
.nx-cockpit .nxa-point{fill:var(--nx-surface);stroke:var(--nx-purple);stroke-width:2.5;vector-effect:non-scaling-stroke}
.nx-cockpit .nxa-point.is-secondary{stroke:var(--nx-cyan)}
.nx-cockpit .nxa-bar{fill:var(--nx-purple);rx:4px}
.nx-cockpit .nxa-bar.is-secondary{fill:var(--nx-cyan)}
.nx-cockpit .nxa-chart-caption{display:block;margin-top:12px;color:var(--nx-muted);font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.nx-cockpit .nxa-chart-frame+.nxa-chart-caption{padding-top:11px;border-top:1px solid var(--nx-line)}
.nx-cockpit .nxa-platform-bars{display:grid;gap:11px;margin-top:8px}
.nx-cockpit .nxa-platform-row{display:grid;grid-template-columns:minmax(86px,.9fr) minmax(60px,1fr) auto;align-items:center;gap:11px;min-width:0;min-height:46px;padding:5px 0}
.nx-cockpit .nxa-platform-row>:first-child{display:flex;align-items:center;gap:7px;min-width:0;color:var(--nx-ink);font-size:11px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.nx-cockpit .nxa-platform-row .nx-platform-logo{width:28px;height:28px;flex-basis:28px;border-radius:8px}
.nx-cockpit .nxa-platform-row .nx-platform-logo>.fa-brands{font-size:14px}
.nx-cockpit .nxa-platform-row>svg,.nx-cockpit .nxa-platform-row .nxa-track svg{display:block;width:100%;height:9px;min-width:0;border-radius:6px;overflow:hidden;background:var(--nx-soft)}
.nx-cockpit .nxa-platform-row svg rect{fill:var(--nx-purple)}
.nx-cockpit .nxa-platform-row:nth-child(2n) svg rect{fill:var(--nx-cyan)}
.nx-cockpit .nxa-platform-row>:last-child{font-size:12px;color:var(--nx-ink);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.nx-cockpit .nxa-table-scroll{max-width:100%;width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--nx-line);border-radius:10px;scrollbar-color:var(--nx-line) var(--nx-surface);scrollbar-width:thin;isolation:isolate}
.nx-cockpit table.nxa-table{width:100%;min-width:760px;margin:0;border:0;border-collapse:separate;border-spacing:0;text-align:start;color:var(--nx-ink);font-size:11px;line-height:1.7;background:var(--nx-surface);font-variant-numeric:tabular-nums}
.nx-cockpit .nxa-table caption{padding:11px 13px;text-align:start;color:var(--nx-muted);font-size:11px;line-height:1.8;background:var(--nx-surface);border-bottom:1px solid var(--nx-line)}
.nx-cockpit .nxa-table :is(th,td){min-width:80px;padding:12px 13px;border:0;border-bottom:1px solid var(--nx-line);text-align:start;vertical-align:middle}
.nx-cockpit .nxa-table th{position:sticky;top:0;z-index:1;color:var(--nx-muted);font-size:10px;font-weight:800;white-space:nowrap;background:var(--nx-soft)}
.nx-cockpit .nxa-table th:first-child,.nx-cockpit .nxa-table td:first-child{min-width:195px;max-width:270px}
.nx-cockpit .nxa-table td:first-child{position:sticky;inset-inline-start:0;z-index:2;background:var(--nx-surface);border-inline-end:1px solid var(--nx-line)}
.nx-cockpit .nxa-table th:first-child{inset-inline-start:0;z-index:3;border-inline-end:1px solid var(--nx-line)}
.nx-cockpit .nxa-table tbody tr:last-child td{border-bottom:0}
.nx-cockpit .nxa-table tbody tr:hover td{background:color-mix(in srgb,var(--nx-purple) 4%,var(--nx-surface))}
.nx-cockpit .nxa-table td:has(bdi){white-space:nowrap}
.nx-cockpit .nxa-table td bdi{display:inline-block;direction:ltr;font-variant-numeric:tabular-nums;white-space:nowrap}
.nx-cockpit .nxa-cell-title{display:grid;gap:4px;min-width:0;color:var(--nx-ink);font-size:11px;font-weight:700;line-height:1.7;overflow-wrap:anywhere}
.nx-cockpit .nxa-cell-title small{font-size:10px;color:var(--nx-muted);font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.nx-cockpit .nxa-coverage{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 7px;border:1px solid var(--nx-line);border-radius:6px;background:var(--nx-soft);color:var(--nx-muted);font-size:10px;font-weight:600;line-height:1.6}
.nx-cockpit .nxa-source-note,.nx-cockpit .nxa-dataset-note{display:flex;align-items:flex-start;gap:7px;margin-top:13px;padding:12px 13px;border-inline-start:3px solid var(--nx-line);border-radius:7px;background:var(--nx-bg);color:var(--nx-muted);font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.nx-cockpit .nxa-source-note>.fa-solid,.nx-cockpit .nxa-dataset-note>.fa-solid{flex:0 0 13px;width:13px;min-width:13px;font-size:13px;margin-top:4px;color:var(--nx-cyan)}
.nx-cockpit .nxa-detail-section{min-width:0}
.nx-cockpit .nxa-detail-section .nxa-chart-controls{margin-bottom:14px}
.nx-cockpit .nxa-breakdown-table td:first-child{min-width:210px}
.nx-cockpit .nxa-breakdown-table td small{display:block;font-size:10px;line-height:1.8;color:var(--nx-muted);white-space:normal;overflow-wrap:anywhere}
.nx-cockpit .nxa-breakdown-table td:has(small){max-width:260px;white-space:normal}
.nx-cockpit .nxa-analysis details.nxa-data-details{border:1px solid var(--nx-line);border-radius:10px;background:var(--nx-surface);overflow:hidden}
.nx-cockpit .nxa-data-details>summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 13px;font-size:11px;font-weight:700;cursor:pointer;color:var(--nx-ink)}
.nx-cockpit .nxa-data-details>div{padding:0 13px 13px}

/* Keep export controls in the authenticated workspace and respect its resolved palette. */
html[data-cp-scheme] body.cp-client .nx-cockpit dialog.nx-export-dialog{position:fixed;inset:0;width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(90dvh,820px);height:auto;margin:auto;padding:0;border:1px solid var(--nx-line);border-radius:17px;box-shadow:0 24px 90px #080e2445;background:var(--nx-surface);color:var(--nx-ink);overflow:auto;overscroll-behavior:contain;isolation:isolate}
.nx-cockpit dialog.nx-export-dialog::backdrop{background:#080d1b9c;backdrop-filter:blur(4px)}
.nx-cockpit .nx-export-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:23px 24px 18px;margin:0;border-bottom:1px solid var(--nx-line);background:var(--nx-surface)}
.nx-cockpit .nx-export-head>div{display:grid;gap:5px;min-width:0}
.nx-cockpit .nx-export-head h2{font-size:21px;line-height:1.6;color:var(--nx-ink);font-weight:800}
.nx-cockpit .nx-export-head small{font-size:10px;line-height:1.7;color:var(--nx-muted)}
.nx-cockpit .nx-export-head>button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0;border-radius:8px;color:var(--nx-muted);background:var(--nx-soft);border:1px solid var(--nx-line)}
.nx-cockpit .nx-export-head>button>.fa-solid{font-size:14px}
.nx-cockpit form.nx-export-form{display:grid;gap:18px;margin:0;padding:22px 24px 24px;border:0;background:transparent;color:var(--nx-ink);box-shadow:none}
.nx-cockpit .nx-export-options{display:grid;grid-template-columns:1fr 1fr;gap:15px 14px;min-width:0}
.nx-cockpit .nx-export-options>label{display:grid;gap:7px;color:var(--nx-ink);font-size:12px;font-weight:700;line-height:1.7;min-width:0}
.nx-cockpit .nx-export-options>label:last-child{grid-column:1/-1}
.nx-cockpit .nx-export-preview{padding:13px 14px;border:1px solid var(--nx-line);border-radius:10px;background:var(--nx-soft);color:var(--nx-ink);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.nx-cockpit .nx-export-note{color:var(--nx-muted);font-size:11px;line-height:1.95;overflow-wrap:anywhere}
.nx-cockpit .nx-export-dialog>.nx-export-note{padding:17px 24px 0}
.nx-cockpit .nx-export-status{color:var(--nx-green);font-size:12px;line-height:1.85}
.nx-cockpit .nx-export-status:empty,.nx-cockpit .nx-export-error:empty{display:none}
.nx-cockpit .nx-export-error{padding:11px 12px;border:1px solid var(--nx-red);border-radius:8px;background:var(--cp-error-bg);color:var(--nx-red);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.nx-cockpit .nx-export-actions{display:flex;align-items:center;justify-content:flex-start;gap:9px;flex-wrap:wrap;margin:0;padding-top:4px}
.nx-cockpit .nx-export-actions button{min-height:40px;padding:9px 14px;font-size:12px}
html[data-cp-scheme] body.cp-client .nx-cockpit .nx-export-actions button.cp-primary{background:var(--cp-action);border-color:var(--cp-action);color:#fff}
html[data-cp-scheme] body.cp-client .nx-cockpit .nx-export-actions button.cp-primary:hover{background:var(--cp-action-hover);border-color:var(--cp-action-hover);color:#fff}
.nx-cockpit .nx-export-actions button>.fa-solid{font-size:14px}

@media(min-width:1700px){.nx-cockpit .nxa-metric-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.nx-cockpit .nxa-kpi{padding:15px 13px}.nx-cockpit .nxa-kpi-values{font-size:23px}}
@media(max-width:1100px){.nx-cockpit .nxa-grid{grid-template-columns:1fr}.nx-cockpit .nxa-platform-bars{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 23px}.nx-cockpit .nxa-platform-row{grid-template-columns:minmax(84px,1fr) minmax(45px,1fr) auto;gap:8px}}
@media(max-width:700px){
 .nx-cockpit .nxa-analysis{gap:16px}.nx-cockpit .nxa-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .nx-cockpit .nxa-kpi{min-height:151px;padding:14px 12px;gap:10px}.nx-cockpit .nxa-kpi>header{font-size:11px;gap:7px;align-items:flex-start}.nx-cockpit .nxa-kpi>header>.fa-solid{width:25px;height:25px;flex-basis:25px;font-size:12px;border-radius:7px}
 .nx-cockpit .nxa-kpi-values{font-size:23px}.nx-cockpit .nxa-value-line{gap:5px}.nx-cockpit .nxa-value-line small,.nx-cockpit .nxa-kpi>p{font-size:10px}
 .nx-cockpit .nxa-grid{gap:14px}.nx-cockpit .nxa-chart-controls{width:100%;gap:8px}.nx-cockpit .nxa-chart-controls label{max-width:none;min-width:0;flex:1 1 110px}
 html[data-cp-scheme] body.cp-client .nx-cockpit .nxa-analysis select{min-height:42px;font-size:12px}
 .nx-cockpit .nxa-chart-frame{margin-top:12px}.nx-cockpit .nxa-chart-caption{font-size:11px}.nx-cockpit .nxa-axis-text{font-size:13px}
 .nx-cockpit .nxa-platform-bars{grid-template-columns:1fr;gap:5px}.nx-cockpit .nxa-platform-row{grid-template-columns:minmax(96px,1.1fr) minmax(40px,1fr) auto;gap:9px;min-height:45px}
 .nx-cockpit .nxa-platform-row>:first-child{font-size:11px}.nx-cockpit .nxa-platform-row>:last-child{font-size:12px}
 .nx-cockpit .nxa-table :is(th,td){padding:11px 12px}.nx-cockpit .nxa-table caption{font-size:10px;padding:10px 12px}.nx-cockpit .nxa-table td:first-child{min-width:175px}
 .nx-cockpit .nxa-source-note,.nx-cockpit .nxa-dataset-note{padding:11px;font-size:11px;line-height:1.9}
 .nx-cockpit .nx-top-actions button[data-nx-export]{min-height:40px;font-size:11px;padding:8px 10px}
 html[data-cp-scheme] body.cp-client .nx-cockpit dialog.nx-export-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:14px}
 .nx-cockpit .nx-export-head{padding:19px 18px 15px;gap:12px}.nx-cockpit .nx-export-head h2{font-size:19px}.nx-cockpit .nx-export-head>button{width:38px;height:38px;min-height:38px;flex-basis:38px}
 .nx-cockpit form.nx-export-form{gap:16px;padding:18px}.nx-cockpit .nx-export-dialog>.nx-export-note{padding:15px 18px 0}.nx-cockpit .nx-export-options{grid-template-columns:1fr;gap:14px}.nx-cockpit .nx-export-options>label:last-child{grid-column:auto}
 html[data-cp-scheme] body.cp-client .nx-cockpit .nx-export-options select{min-height:44px;font-size:13px}.nx-cockpit .nx-export-preview{font-size:12px;padding:12px}.nx-cockpit .nx-export-actions{gap:8px}.nx-cockpit .nx-export-actions button{min-height:44px;flex:1 1 auto;padding:10px 13px}.nx-cockpit .nx-export-note{font-size:11px}
}
@media(max-width:380px){.nx-cockpit .nxa-kpi>header{flex-direction:column;gap:7px}.nx-cockpit .nxa-kpi{min-height:164px;padding:13px 11px}.nx-cockpit .nxa-kpi-values{font-size:22px}.nx-cockpit .nxa-value-line{align-items:flex-start;flex-direction:column;gap:0}.nx-cockpit .nxa-platform-row{grid-template-columns:minmax(83px,1fr) minmax(33px,1fr) auto;gap:7px}.nx-cockpit .nxa-platform-row .nx-platform-logo{width:24px;height:24px;flex-basis:24px}.nx-cockpit .nxa-platform-row>:last-child{font-size:11px}}
@media(prefers-reduced-motion:reduce){.nx-cockpit .nxa-analysis *, .nx-cockpit .nx-export-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
