/* Metadata analysis shares the console's appearance, spacing and focus tokens. */
.space[data-space="insights"] { grid-template-columns:minmax(0, 1fr) 290px; }
.space[data-space="insights"] .col { display:flex; flex-direction:column; min-width:0; }
.space[data-space="insights"] .pane { flex:none; }
.space[data-space="insights"] .pane-b { padding:16px; }
.space[data-space="insights"] .pane[data-lens] { display:none; }
.space[data-space="insights"][data-lens="Analysis"] .pane[data-lens="Analysis"],
.space[data-space="insights"][data-lens="Exports"] .pane[data-lens="Exports"],
.space[data-space="insights"][data-lens="Approvals"] .pane[data-lens="Approvals"] { display:flex; }
.insight-questions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.insight-questions button { text-align:left; padding:14px; border:1px solid var(--line); border-radius:7px; background:var(--panel); color:var(--ink); }
.insight-questions button[aria-pressed="true"] { border-color:var(--accent); box-shadow:inset 3px 0 var(--accent); }
.insight-questions span,.insight-questions strong { display:block; }
.insight-questions span { color:var(--quiet); font-size: 12px; margin-top:6px; }
.insight-filters { display:flex; align-items:end; gap:10px; margin-top:18px; flex-wrap:wrap; }
.insight-filters label { min-width:120px; flex:1; font-size: 12px; }
.insight-filters label span { display:block; margin-bottom:5px; color:var(--quiet); }
.insight-filters select { width:100%; max-width:240px; }
.insight-answer-head { display:flex; align-items:start; justify-content:space-between; gap:14px; }
.insight-answer-head h2 { font-size:18px; margin:0; }
.insight-answer-head p { color:var(--quiet); font-size: 12px; }
.insight-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:18px 0; border-bottom:1px solid var(--line); margin-bottom:18px; }
.insight-metrics strong,.insight-metrics small,.insight-metrics span { display:block; }
.insight-metrics strong { font-size:24px; font-weight:500; margin:8px 0; }
.insight-metrics span,.insight-metrics small { color:var(--quiet); font-size: 12px; }
.insight-trend .series { height:175px; }
.insight-trend p { font-size: 12px; }
.insight-advice { margin-top:22px; }
.insight-advice button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; background:transparent; border:0; border-top:1px solid var(--line); color:var(--ink); padding:14px 0; text-align:left; }
.insight-advice small { color:var(--quiet); }
.insight-coverage { display:grid; grid-template-columns:1fr auto; gap:10px; font-size:12px; margin:20px 0; }
.insight-coverage dd { margin:0; }
.insight-digest { overflow-wrap:anywhere; white-space:pre-wrap; color:var(--quiet); font-size: 12px; }
.insight-destination,.insight-proposal { display:flex; flex-direction:column; align-items:start; gap:10px; padding:16px 0; border-bottom:1px solid var(--line); }
.insight-proposal header { display:flex; gap:16px; }
.insight-proposal pre { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; font-size: 12px; }
.insight-proposal footer { display:flex; gap:8px; }
@media(max-width:1000px) { .space[data-space="insights"] { grid-template-columns:minmax(0,1fr); } .space[data-space="insights"] .col.side { display:grid; grid-template-columns:1fr 1fr; } }
@media(max-width:600px) { .insight-questions,.space[data-space="insights"] .col.side { grid-template-columns:1fr; } .insight-metrics { grid-template-columns:1fr 1fr; } .insight-answer-head,.insight-advice button { flex-wrap:wrap; } .insight-filters select { max-width:100%; } }

.evidence-workflow { padding:18px; }
.evidence-workflow > header { display:flex; align-items:start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.evidence-workflow h2 { margin:0; font-size:18px; }

.insight-filters select { border:1px solid var(--line-2); background:var(--inst); color:var(--ink); border-radius:5px; min-height:30px; padding:4px 8px; }
.insight-single-day { border-left:3px solid var(--accent); background:var(--inst); padding:25px; font-size:13px; }
.insight-single-day strong { display:block; font-size:32px; margin-bottom:8px; }
.space[data-space="insights"] .col.main { overflow:auto; }
.space[data-space="insights"] .col.main > .pane { flex:none; }

/* Outcomes uses the same read-only Insights space and theme tokens. */
.space[data-space="insights"][data-lens="Outcomes"] .pane[data-lens="Outcomes"] { display:flex; }
.space[data-space="insights"]:is([data-lens="Exports"],[data-lens="Approvals"]) { grid-template-columns:minmax(0,1fr); }
.space[data-space="insights"]:is([data-lens="Exports"],[data-lens="Approvals"]) .col.side { display:none; }
.outcome-intro { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.outcome-intro h2 { margin:0 0 6px; font-size:21px; font-weight:500; letter-spacing:-.3px; }
.outcome-intro p { margin:0; max-width:64ch; color:var(--ink-2); font-size:12px; }
.outcome-period { color:var(--quiet); font-size: 12px; margin:14px 0 0; }
.outcome-filters { margin:12px 0 6px; }
.outcome-filters label { max-width:320px; }
.outcome-filters select { max-width:none; }
.outcome-filters input[type="search"] { box-sizing:border-box; width:100%; min-width:0; min-height:30px; border:1px solid var(--line-2); background:var(--inst); color:var(--ink); border-radius:5px; padding:4px 8px; font:inherit; }
.outcome-filters input[aria-invalid="true"] { border-color:var(--stop); }
.outcome-project-count { margin:0 0 18px; color:var(--quiet); font-size:12px; line-height:1.5; }
.outcome-error { margin:12px 0; padding:10px 12px; color:var(--stop); background:var(--stop-wash); border-radius:5px; font-size:12px; }
.outcome-summary { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:1px; border:1px solid var(--line); border-radius:7px; overflow:hidden; background:var(--line); }
.outcome-summary article { background:var(--inst); min-width:0; padding:16px; }
.outcome-summary span,.outcome-summary strong,.outcome-summary small { display:block; }
.outcome-summary span { font-size: 12px; color:var(--ink-2); }
.outcome-summary strong { font-size:29px; font-weight:500; letter-spacing:-.5px; color:var(--accent); margin:6px 0; overflow-wrap:anywhere; }
.outcome-summary article:last-child strong { font-size:25px; }
.outcome-summary small { color:var(--quiet); font-size: 12px; line-height:1.5; }
.outcome-summary small + small { margin-top:3px; }
.outcome-section-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:20px 0 10px; }
.outcome-section-head h3 { margin:0; font-size:12px; font-weight:500; }
.outcome-section-head span { color:var(--quiet); font-size: 12px; }
.outcome-lifecycle { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; list-style:none; margin:0; padding:0; }
.outcome-lifecycle li { padding:10px; min-width:0; background:var(--panel-2); border-radius:5px; border-top:2px solid var(--line-2); }
.outcome-lifecycle li[data-state="accepted"],.outcome-lifecycle li[data-state="deployed"] { border-top-color:var(--good); }
.outcome-lifecycle li[data-state="reopened"],.outcome-lifecycle li[data-state="reverted"] { border-top-color:var(--warn); }
.outcome-lifecycle strong { display:block; margin-bottom:4px; font-size:21px; font-weight:500; }
.outcome-lifecycle span { font-size: 12px; color:var(--ink-2); }
.outcome-quality { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); color:var(--quiet); font-size: 12px; }
.outcome-quality strong { color:var(--ink); font-weight:500; }
.outcome-note { color:var(--quiet); font-size: 12px; line-height:1.6; margin:10px 0 0; }
.outcome-cohorts { margin:14px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.outcome-cohort { border:1px solid var(--line); border-radius:6px; padding:13px; min-width:0; background:var(--inst); }
.outcome-cohort header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px; }
.outcome-cohort header strong { font-size: 12px; font-weight:500; }
.outcome-cohort dl { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:8px 12px; font-size: 12px; margin:14px 0; }
.outcome-cohort dt { color:var(--quiet); }
.outcome-cohort dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.outcome-cohort .outcome-ratio { font-size:15px; color:var(--accent); }
.outcome-cohort .tb { margin:10px 6px 0 0; }
.outcome-list-tools { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.outcome-list-tools span { font-size: 12px; color:var(--quiet); }
.outcome-list { display:flex; flex-direction:column; }
.outcome-row { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; border:0; border-top:1px solid var(--line); padding:12px 0; background:transparent; color:var(--ink); text-align:left; }
.outcome-row:hover { background:var(--panel-2); }
.outcome-row strong { display:block; font-size:12px; font-weight:500; }
.outcome-row small { display:block; color:var(--quiet); font-size: 12px; margin-top:4px; overflow-wrap:anywhere; }
.outcome-row-cost { text-align:right; font-size:12px; }
.outcome-row .st { justify-self:start; }
.outcome-pagination { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px; font-size: 12px; color:var(--quiet); }
.outcome-pagination div { display:flex; flex-wrap:wrap; gap:6px; }
.outcome-coverage-copy { font-size:12px; color:var(--ink-2); line-height:1.65; margin:0; }
.outcome-coverage { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; font-size: 12px; margin:16px 0; }
.outcome-coverage dt { color:var(--quiet); }
.outcome-coverage dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.outcome-coverage-heading { font-size:12px; font-weight:500; margin:20px 0 10px; padding-top:16px; border-top:1px solid var(--line); }
.outcome-unmatched { margin:12px 0 4px; font-size:21px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.outcome-evidence-facts { display:grid; grid-template-columns:minmax(90px,.5fr) minmax(0,1fr); gap:10px; font-size: 12px; }
.outcome-evidence-facts dt { color:var(--quiet); }
.outcome-evidence-facts dd { margin:0; overflow-wrap:anywhere; }
.outcome-reference-list { margin:8px 0; padding:0; list-style:none; }
.outcome-reference-list li { padding:8px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; font-size: 12px; }
.outcome-reference-list small { display:block; margin-top:4px; color:var(--quiet); }
@media(max-width:1150px) { .outcome-lifecycle { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) {
  .outcome-intro { flex-wrap:wrap; }
  .outcome-intro h2 { font-size:19px; }
  .outcome-summary { grid-template-columns:1fr 1fr; }
  .outcome-summary article { padding:13px; }
  .outcome-summary article:last-child { grid-column:1/-1; }
  .outcome-summary strong { font-size:26px; }
  .outcome-cohorts { grid-template-columns:1fr; }
  .outcome-filters label { max-width:none; min-width:100%; }
  .outcome-filters button { min-height:36px; }
  .outcome-row { grid-template-columns:minmax(0,1fr) auto; gap:9px 12px; }
  .outcome-row .st { grid-row:2; }
  .outcome-row-cost { grid-column:2; grid-row:1/3; max-width:130px; overflow-wrap:anywhere; }
  .outcome-pagination { flex-wrap:wrap; }
}

/* Typed approval summaries keep exact metadata behind an explicit evidence control. */
.insight-proposal { min-width:0; }
.insight-proposal > p { margin:0; max-width:75ch; font-size:12px; line-height:1.6; color:var(--ink-2); }
.insight-proposal header { flex-wrap:wrap; align-items:center; }
.insight-review-facts { display:grid; grid-template-columns:minmax(120px,.4fr) minmax(0,1fr); gap:8px 18px; margin:4px 0; width:100%; max-width:760px; font-size:12px; }
.insight-review-facts dt { color:var(--quiet); }
.insight-review-facts dd { margin:0; overflow-wrap:anywhere; }
.insight-review-evidence { width:100%; font-size:12px; }
.insight-review-evidence summary { cursor:pointer; color:var(--ink-2); padding:6px 0; }
@media(max-width:600px) { .insight-review-facts { grid-template-columns:minmax(90px,.4fr) minmax(0,1fr); gap:8px 12px; } .insight-proposal footer { flex-wrap:wrap; } }

/* A dated read-only cohort is explicit and independent of the current window. */
.outcome-reading { margin:16px 0 12px; padding:12px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); }
.outcome-reading-options { display:flex; flex-wrap:wrap; gap:6px; }
.outcome-reading-options .tb { min-height:36px; height:auto; font-size:12px; }
.outcome-reading-options [aria-pressed="true"] { color:var(--accent); border-color:var(--accent); }
.outcome-reading p { margin:9px 0 0; font-size:12px; color:var(--quiet); line-height:1.6; }
