.scope-report { --report-model:#7198c8; --report-genxis:#53b9a6; --report-software:#c49b52; border:1px solid var(--border,#34404a); border-radius:6px; padding:10px 12px; margin:8px 0; min-width:0; color:var(--text,#e5e9ee); background:var(--panel,#171d24); font-size:11px; text-align:left; }
.scope-report:empty { display:none; }
.scope-report-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.scope-report-head>strong { font-size:11px; letter-spacing:.03em; }
.scope-report button,.scope-report-dialog button { font:inherit; color:inherit; border:1px solid var(--border,#465564); background:transparent; border-radius:4px; padding:5px 8px; cursor:pointer; }
.scope-report button:hover,.scope-report-dialog button:hover { background:#71809622; }
.scope-report button:focus-visible,.scope-report-dialog :focus-visible { outline:2px solid #53b9a6; outline-offset:3px; }
.scope-report-meters { display:grid; grid-template-columns:1fr 1.35fr; gap:16px; margin-top:10px; }
.scope-report-meters>span { min-width:0; }
.scope-report-meters strong { float:right; font-size:11px; }
.scope-report-track { display:flex; height:6px; border-radius:2px; overflow:hidden; background:#71809633; margin:7px 0 5px; }
.scope-report-track span { height:100%; display:block; }
.scope-report-score,.scope-report-genxis { background:#53b9a6; }
.scope-report-model { background:#7198c8; }
.scope-report-software { background:#c49b52; }
p.scope-report-genxis { color:var(--text,#e5e9ee); background:none; font-weight:600; margin:7px 0 3px; }
.scope-report-note { font-size:10px; opacity:.8; margin:3px 0 0; }
#conversation-report { margin:4px 16px 8px; flex-shrink:0; }
#left:not(:has(>#chat.on))>#conversation-report { display:none; }
.project-option-row>.scope-report { grid-column:1 / -1; box-sizing:border-box; }
.kanban-card>.scope-report { padding:8px; }
.kanban-card .scope-report-meters { grid-template-columns:1fr; gap:5px; }
.scope-report-dialog { --report-model:#7198c8; --report-genxis:#53b9a6; --report-software:#c49b52; width:min(700px,calc(100vw - 32px)); max-height:85dvh; box-sizing:border-box; padding:22px; color:var(--text,#e5e9ee); background:var(--panel,#171d24); border:1px solid var(--border,#465564); border-radius:8px; overflow:auto; }
.scope-report-dialog::backdrop { background:#0009; }
.scope-report-dialog h2 { font-size:18px; margin:0 0 12px; }
.scope-report-dialog h3 { font-size:14px; margin-top:24px; }
.scope-report-dialog p { font-size:12px; line-height:1.6; }
.scope-report-dialog select { max-width:100%; color:inherit; background:var(--panel,#171d24); padding:8px; border:1px solid #465564; }
.scope-report-hash,.scope-report-evidence pre { overflow-wrap:anywhere; white-space:pre-wrap; font-size:11px; }
.scope-report-evidence { padding-left:20px; }
.scope-report-evidence li { padding:10px 0; border-bottom:1px solid #71809633; }
@media(max-width:520px) { #conversation-report { margin:4px 8px; } .scope-report-meters { gap:10px; } .scope-report-dialog { padding:14px; } }

.scope-report button.scope-report-meter-action { display:block; width:100%; padding:0 0 4px; border:0; text-align:left; }
.scope-report-history { border-top:1px solid #71809633; margin-top:16px; }
.scope-report-legend { display:flex; gap:16px; font-size:12px; margin:10px 0; }
.scope-report-legend>span { display:flex; align-items:center; gap:6px; }
.scope-report-legend>span:first-child { font-weight:700; }
.scope-report-legend i { display:inline-block; width:9px; height:9px; order:-1; }
.scope-report-history-chart { display:flex; gap:5px; overflow-x:auto; padding:4px 2px 8px; }
.scope-report-history-turn { flex:1 0 24px; min-width:24px; text-align:center; }
.scope-report-history-performance,.scope-report-history-operations { display:flex; flex-direction:column; justify-content:flex-end; height:70px; background:#71809612; border-bottom:1px solid #71809655; padding:0 4px; }
.scope-report-history-performance { margin-bottom:12px; }
.scope-report-history-performance>span,.scope-report-history-operations>span { display:block; flex-shrink:0; }
.scope-report-history-gap { color:#aeb9c4; background:none; }
.scope-report-history-turn small { display:block; font-size:10px; margin-top:4px; color:#aeb9c4; }

/* Surface controls stay small; evidence is scoped inside the existing Activity drawer. */
.scope-report { border:0; padding:0; background:none; margin:5px 0; }
.kanban-card>.scope-report { padding:0; }
.scope-report-open { font-size:11px; }
#scoped-report-activity { width:100%; max-height:none; border:0; padding:0; border-radius:0; overflow:visible; background:none; }
#scoped-report-activity[hidden] { display:none; }
#workspace-activity-panel.scope-report-active>.work-theatre-head,
#workspace-activity-panel.scope-report-active>.work-theatre-grid { display:none; }
.scope-report-subject { font-weight:650; overflow-wrap:anywhere; }
.scope-report-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.scope-report-actions button:disabled { opacity:.5; cursor:default; }
@media(max-width:520px) { #scoped-report-activity .scope-report-meters { grid-template-columns:1fr; } .scope-report-head { align-items:flex-start; } }

/* Execution evidence is deliberately separate from logical operation meters. */
.scope-report-execution { border-top:2px solid #53b9a6; margin:20px 0; padding:0 0 16px; border-bottom:1px solid #71809655; }
.scope-report-http-metrics { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; margin:12px 0; }
.scope-report-http-metrics dt,.scope-report-http-metrics dd { margin:0; padding:7px 0; border-bottom:1px solid #71809633; font-size:12px; }
.scope-report-http-metrics dd { text-align:right; font-weight:650; overflow-wrap:anywhere; }
.scope-report-request summary { cursor:pointer; padding:8px 0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.scope-report-request summary strong { color:var(--text,#e5e9ee); }
.scope-report-request-state,.scope-report-request-purpose { display:block; margin-left:16px; font-size:11px; }
.scope-report-request-state { color:var(--muted,#a9c9e8); }
.scope-report-contribution { border-left:2px solid #53b9a6; padding-left:10px; }
.scope-report-request-fields { display:grid; grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr); gap:8px 12px; font-size:11px; line-height:1.6; }
.scope-report-request-fields dt { color:var(--muted,#b5c0ca); }
.scope-report-request-fields dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.scope-report-raw pre { max-height:300px; overflow:auto; padding:10px; background:#71809612; }
.scope-report-http-list { margin:0; }
.scope-report-request :focus-visible { outline:2px solid #53b9a6; outline-offset:3px; }
@media(max-width:520px) { .scope-report-request-fields { grid-template-columns:minmax(0,1fr); gap:3px; } .scope-report-request-fields dd { margin-bottom:9px; } }
