/* Phases 5–10. Scope every layout change to the analytics app. Never style replay/captured documents. */
html.completion-workspaces #dashboard .cq-source-tabs{display:none;}
html.completion-workspaces #dashboard :is(.cq-review-picker,.cq-report-picker,.cq-account-picker,.cq-program-picker){display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:12px;margin-block:16px;}
html.completion-workspaces #dashboard :is(.cq-review-picker,.cq-report-picker,.cq-account-picker,.cq-program-picker) select{inline-size:min(300px,100%);min-block-size:44px;}
html.completion-workspaces #dashboard .cq-recordings[data-cq-mode=list] #session-detail{display:none;}
html.completion-workspaces #dashboard .cq-recordings[data-cq-mode=detail] :is(#sessions,#session-filters,.sw-segment-tools,.cq-playlist-tools){display:none;}
html.completion-workspaces #dashboard #session-detail.cq-awaiting>:not(.cq-recording-status):not(.sw-detail-tools){display:none;}
html.completion-workspaces #dashboard .cq-playlist-tools{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin-block:14px;}
html.completion-workspaces #dashboard .cq-playlist-tools label{font-size:12px;min-inline-size:min(280px,100%);}
html.completion-workspaces #dashboard .cq-playlist-count{font-size:12px;color:var(--cc-text-secondary);max-inline-size:70ch;line-height:1.6;}
html.completion-workspaces #dashboard .session-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,240px);gap:18px;inline-size:100%;border-radius:0;border:0;border-block-end:1px solid var(--cc-border);padding:18px;text-align:start;background:var(--cc-surface);}
html.completion-workspaces #dashboard .session-card-list{border:1px solid var(--cc-border);border-radius:12px;overflow:clip;}
html.completion-workspaces #dashboard .cq-replay-state{display:block;font-size:11px;border:1px solid var(--cc-border);border-radius:6px;padding:6px 8px;margin-block-start:9px;}
html.completion-workspaces #dashboard [data-cq-replay=playable] .cq-replay-state{color:var(--ps-accent);}
html.completion-workspaces #dashboard .cq-review-reason{display:block;font-size:12px;line-height:1.6;margin-block-start:8px;font-style:normal;color:var(--cc-text-secondary);}
html.completion-workspaces #dashboard .cq-recording-status{padding:14px 16px;margin-block:12px;border:1px solid var(--cc-border);border-inline-start:3px solid var(--ps-accent);border-radius:8px;background:var(--cc-surface);line-height:1.6;font-size:13px;}
html.completion-workspaces #dashboard .cq-recordings .sw-detail-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0;}
html.completion-workspaces #dashboard .cq-recordings .sw-detail-tools h3{font-size:21px;flex:1 1 220px;}
html.completion-workspaces #dashboard .cq-recordings .session-visual-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-block:12px;}
html.completion-workspaces #dashboard .cq-recordings .sw-primary-filters{padding:14px;gap:12px;}
html.completion-workspaces #dashboard .cq-recordings .journey-timeline li{padding:14px 10px;border-block-end:1px solid var(--cc-border);}
html.completion-workspaces #dashboard :is(.cq-session-context,.cq-session-actions){padding:8px 0;border:0;background:transparent;margin-block:10px;}
html.completion-workspaces #dashboard :is(.cq-session-context,.cq-session-actions)>summary{padding:10px;font-size:12px;cursor:pointer;}
html.completion-workspaces #dashboard :is(.cq-review-save-options,.cq-review-scope,.cq-connection-health){background:transparent;border:0;padding:0;margin-block:8px;}
html.completion-workspaces #dashboard :is(.cq-review-save-options,.cq-review-scope,.cq-connection-health)>summary{padding:10px 4px;cursor:pointer;font-size:12px;}
html.completion-workspaces #dashboard .cq-recordings .replay-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:10px;color:var(--cc-text);}
html.completion-workspaces #dashboard .cq-recordings .replay-controls label{display:grid;gap:5px;flex:0 1 150px;font-size:11px;min-inline-size:0;}
html.completion-workspaces #dashboard .cq-recordings .replay-controls label:has([data-replay-position]){flex:1 1 240px;}
html.completion-workspaces #dashboard .cq-recordings .replay-controls :is(select,input){min-block-size:36px;padding:6px;}
html.completion-workspaces #dashboard .cq-recordings .replay-controls :is(output,small){font-size:11px;line-height:1.5;}
html.completion-workspaces #dashboard .cq-recordings .replay-controls small{flex-basis:100%;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-workspace{grid-template-columns:minmax(0,1fr) minmax(260px,290px);gap:12px;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-canvas-toolbar{padding:10px 12px;gap:10px;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-canvas-toolbar>div{flex:1 1 160px;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-canvas-toolbar label{font-size:11px;max-inline-size:230px;min-inline-size:0;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-canvas-toolbar select{inline-size:100%;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-preview-health{font-size:11px;padding:10px 12px;line-height:1.6;}
html.completion-workspaces #dashboard .cq-layout-notice{padding:14px;margin:12px;border:1px solid var(--ps-accent);border-radius:9px;background:var(--cc-surface);}
html.completion-workspaces #dashboard .cq-layout-notice p{font-size:12px;line-height:1.6;}
html.completion-workspaces #dashboard .cq-layout-notice button{min-block-size:40px;}
html.completion-workspaces #dashboard .cq-heatmap .heatmap-viewport{max-block-size:75dvh;overflow:auto;}
html.completion-workspaces #dashboard .cq-heatmap .hw-jumpbar{margin-block:10px;}
html.completion-workspaces #dashboard .cq-review .nrw-heading{padding:0;block-size:auto;border:0;}
html.completion-workspaces #dashboard .cq-review .nrw-heading h3{font-size:21px;}
html.completion-workspaces #dashboard .cq-review .nrw-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
html.completion-workspaces #dashboard .cq-review .nrw-kpis article{padding:16px;border-radius:12px;background:var(--cc-surface);}
html.completion-workspaces #dashboard .cq-review .nrw-trends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
html.completion-workspaces #dashboard .cq-review .nrw-trends>section{min-inline-size:0;background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:12px;padding:16px;}
html.completion-workspaces #dashboard :is(.cq-review-options,.cq-connection-options,.cq-map-metrics,.cq-project-stages){background:transparent;border:0;padding:0;margin-block:10px;}
html.completion-workspaces #dashboard :is(.cq-review-options,.cq-connection-options,.cq-map-metrics,.cq-project-stages)>summary{padding:10px;font-size:12px;cursor:pointer;}
html.completion-workspaces #dashboard #review-controls{display:flex;flex-wrap:wrap;align-items:end;gap:14px;}
html.completion-workspaces #dashboard #review-controls>label{flex:1 1 180px;min-inline-size:0;}
html.completion-workspaces #dashboard .cq-review-options[open]{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;}
html.completion-workspaces #dashboard .cq-review-options>summary{grid-column:1/-1;}
html.completion-workspaces #dashboard .cq-review-recovery{margin-block:10px;min-block-size:40px;}
html.completion-workspaces #dashboard .cq-catalog{border:1px solid var(--cc-border);border-radius:12px;background:var(--cc-surface);overflow:clip;margin-block:16px;}
html.completion-workspaces #dashboard .cq-catalog-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,160px);gap:10px;padding:18px;inline-size:100%;border:0;border-block-end:1px solid var(--cc-border);border-radius:0;text-align:start;background:transparent;color:var(--cc-text);cursor:pointer;}
html.completion-workspaces #dashboard .cq-catalog-row strong{font-size:15px;overflow-wrap:anywhere;}
html.completion-workspaces #dashboard .cq-catalog-row small{font-size:12px;color:var(--cc-text-secondary);grid-column:1/-1;line-height:1.6;}
html.completion-workspaces #dashboard .cq-show-list .cq-record-card,html.completion-workspaces #dashboard .cq-show-record .cq-record-card:not(.cq-selected-record){display:none;}
html.completion-workspaces #dashboard .cq-back-record{min-block-size:44px;margin-block:14px;}
html.completion-workspaces #dashboard .cq-optimization-flow{display:flex;flex-wrap:wrap;gap:8px;margin-block:14px;}
html.completion-workspaces #dashboard .cq-optimization-flow button{padding:10px 14px;min-block-size:42px;background:var(--cc-surface);color:var(--cc-text-secondary);border:1px solid var(--cc-border);border-radius:8px;}
html.completion-workspaces #dashboard .cq-connections .iw-directory{padding:0;background:transparent;border:0;}
html.completion-workspaces #dashboard .cq-connections .iw-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;}
html.completion-workspaces #dashboard .cq-connections .iw-source{background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:12px;padding:18px;}
html.completion-workspaces #dashboard .cq-connection-options[open]{display:flex;flex-wrap:wrap;gap:12px;}
html.completion-workspaces #dashboard .cq-connection-options>summary{flex-basis:100%;}
html.completion-workspaces #dashboard :is(.cq-catalog-row,.cq-back-record,.cq-optimization-flow button):focus-visible{outline:3px solid var(--ps-accent);outline-offset:3px;}
@media(max-width:1050px){html.completion-workspaces #dashboard .cq-heatmap .heatmap-workspace{grid-template-columns:minmax(0,1fr)}html.completion-workspaces #dashboard .cq-review .nrw-trends{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){html.completion-workspaces #dashboard .session-row{grid-template-columns:minmax(0,1fr)}html.completion-workspaces #dashboard .cq-recordings .session-visual-summary,html.completion-workspaces #dashboard .cq-review .nrw-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}html.completion-workspaces #dashboard .cq-catalog-row{grid-template-columns:minmax(0,1fr)}html.completion-workspaces #dashboard .cq-heatmap .heatmap-canvas-toolbar{flex-wrap:wrap}}
